vendor.js 935 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340153411534215343153441534515346153471534815349153501535115352153531535415355153561535715358153591536015361153621536315364153651536615367153681536915370153711537215373153741537515376153771537815379153801538115382153831538415385153861538715388153891539015391153921539315394153951539615397153981539915400154011540215403154041540515406154071540815409154101541115412154131541415415154161541715418154191542015421154221542315424154251542615427154281542915430154311543215433154341543515436154371543815439154401544115442154431544415445154461544715448154491545015451154521545315454154551545615457154581545915460154611546215463154641546515466154671546815469154701547115472154731547415475154761547715478154791548015481154821548315484154851548615487154881548915490154911549215493154941549515496154971549815499155001550115502155031550415505155061550715508155091551015511155121551315514155151551615517155181551915520155211552215523155241552515526155271552815529155301553115532155331553415535155361553715538155391554015541155421554315544155451554615547155481554915550155511555215553155541555515556155571555815559155601556115562155631556415565155661556715568155691557015571155721557315574155751557615577155781557915580155811558215583155841558515586155871558815589155901559115592155931559415595155961559715598155991560015601156021560315604156051560615607156081560915610156111561215613156141561515616156171561815619156201562115622156231562415625156261562715628156291563015631156321563315634156351563615637156381563915640156411564215643156441564515646156471564815649156501565115652156531565415655156561565715658156591566015661156621566315664156651566615667156681566915670156711567215673156741567515676156771567815679156801568115682156831568415685156861568715688156891569015691156921569315694156951569615697156981569915700157011570215703157041570515706157071570815709157101571115712157131571415715157161571715718157191572015721157221572315724157251572615727157281572915730157311573215733157341573515736157371573815739157401574115742157431574415745157461574715748157491575015751157521575315754157551575615757157581575915760157611576215763157641576515766157671576815769157701577115772157731577415775157761577715778157791578015781157821578315784157851578615787157881578915790157911579215793157941579515796157971579815799158001580115802158031580415805158061580715808158091581015811158121581315814158151581615817158181581915820158211582215823158241582515826158271582815829158301583115832158331583415835158361583715838158391584015841158421584315844158451584615847158481584915850158511585215853158541585515856158571585815859158601586115862158631586415865158661586715868158691587015871158721587315874158751587615877158781587915880158811588215883158841588515886158871588815889158901589115892158931589415895158961589715898158991590015901159021590315904159051590615907159081590915910159111591215913159141591515916159171591815919159201592115922159231592415925159261592715928159291593015931159321593315934159351593615937159381593915940159411594215943159441594515946159471594815949159501595115952159531595415955159561595715958159591596015961159621596315964159651596615967159681596915970159711597215973159741597515976159771597815979159801598115982159831598415985159861598715988159891599015991159921599315994159951599615997159981599916000160011600216003160041600516006160071600816009160101601116012160131601416015160161601716018160191602016021160221602316024160251602616027160281602916030160311603216033160341603516036160371603816039160401604116042160431604416045160461604716048160491605016051160521605316054160551605616057160581605916060160611606216063160641606516066160671606816069160701607116072160731607416075160761607716078160791608016081160821608316084160851608616087160881608916090160911609216093160941609516096160971609816099161001610116102161031610416105161061610716108161091611016111161121611316114161151611616117161181611916120161211612216123161241612516126161271612816129161301613116132161331613416135161361613716138161391614016141161421614316144161451614616147161481614916150161511615216153161541615516156161571615816159161601616116162161631616416165161661616716168161691617016171161721617316174161751617616177161781617916180161811618216183161841618516186161871618816189161901619116192161931619416195161961619716198161991620016201162021620316204162051620616207162081620916210162111621216213162141621516216162171621816219162201622116222162231622416225162261622716228162291623016231162321623316234162351623616237162381623916240162411624216243162441624516246162471624816249162501625116252162531625416255162561625716258162591626016261162621626316264162651626616267162681626916270162711627216273162741627516276162771627816279162801628116282162831628416285162861628716288162891629016291162921629316294162951629616297162981629916300163011630216303163041630516306163071630816309163101631116312163131631416315163161631716318163191632016321163221632316324163251632616327163281632916330163311633216333163341633516336163371633816339163401634116342163431634416345163461634716348163491635016351163521635316354163551635616357163581635916360163611636216363163641636516366163671636816369163701637116372163731637416375163761637716378163791638016381163821638316384163851638616387163881638916390163911639216393163941639516396163971639816399164001640116402164031640416405164061640716408164091641016411164121641316414164151641616417164181641916420164211642216423164241642516426164271642816429164301643116432164331643416435164361643716438164391644016441164421644316444164451644616447164481644916450164511645216453164541645516456164571645816459164601646116462164631646416465164661646716468164691647016471164721647316474164751647616477164781647916480164811648216483164841648516486164871648816489164901649116492164931649416495164961649716498164991650016501165021650316504165051650616507165081650916510165111651216513165141651516516165171651816519165201652116522165231652416525165261652716528165291653016531165321653316534165351653616537165381653916540165411654216543165441654516546165471654816549165501655116552165531655416555165561655716558165591656016561165621656316564165651656616567165681656916570165711657216573165741657516576165771657816579165801658116582165831658416585165861658716588165891659016591165921659316594165951659616597165981659916600166011660216603166041660516606166071660816609166101661116612166131661416615166161661716618166191662016621166221662316624166251662616627166281662916630166311663216633166341663516636166371663816639166401664116642166431664416645166461664716648166491665016651166521665316654166551665616657166581665916660166611666216663166641666516666166671666816669166701667116672166731667416675166761667716678166791668016681166821668316684166851668616687166881668916690166911669216693166941669516696166971669816699167001670116702167031670416705167061670716708167091671016711167121671316714167151671616717167181671916720167211672216723167241672516726167271672816729167301673116732167331673416735167361673716738167391674016741167421674316744167451674616747167481674916750167511675216753167541675516756167571675816759167601676116762167631676416765167661676716768167691677016771167721677316774167751677616777167781677916780167811678216783167841678516786167871678816789167901679116792167931679416795167961679716798167991680016801168021680316804168051680616807168081680916810168111681216813168141681516816168171681816819168201682116822168231682416825168261682716828168291683016831168321683316834168351683616837168381683916840168411684216843168441684516846168471684816849168501685116852168531685416855168561685716858168591686016861168621686316864168651686616867168681686916870168711687216873168741687516876168771687816879168801688116882168831688416885168861688716888168891689016891168921689316894168951689616897168981689916900169011690216903169041690516906169071690816909169101691116912169131691416915169161691716918169191692016921169221692316924169251692616927169281692916930169311693216933169341693516936169371693816939169401694116942169431694416945169461694716948169491695016951169521695316954169551695616957169581695916960169611696216963169641696516966169671696816969169701697116972169731697416975169761697716978169791698016981169821698316984169851698616987169881698916990169911699216993169941699516996169971699816999170001700117002170031700417005170061700717008170091701017011170121701317014170151701617017170181701917020170211702217023170241702517026170271702817029170301703117032170331703417035170361703717038170391704017041170421704317044170451704617047170481704917050170511705217053170541705517056170571705817059170601706117062170631706417065170661706717068170691707017071170721707317074170751707617077170781707917080170811708217083170841708517086170871708817089170901709117092170931709417095170961709717098170991710017101171021710317104171051710617107171081710917110171111711217113171141711517116171171711817119171201712117122171231712417125171261712717128171291713017131171321713317134171351713617137171381713917140171411714217143171441714517146171471714817149171501715117152171531715417155171561715717158171591716017161171621716317164171651716617167171681716917170171711717217173171741717517176171771717817179171801718117182171831718417185171861718717188171891719017191171921719317194171951719617197171981719917200172011720217203172041720517206172071720817209172101721117212172131721417215172161721717218172191722017221172221722317224172251722617227172281722917230172311723217233172341723517236172371723817239172401724117242172431724417245172461724717248172491725017251172521725317254172551725617257172581725917260172611726217263172641726517266172671726817269172701727117272172731727417275172761727717278172791728017281172821728317284172851728617287172881728917290172911729217293172941729517296172971729817299173001730117302173031730417305173061730717308173091731017311173121731317314173151731617317173181731917320173211732217323173241732517326173271732817329173301733117332173331733417335173361733717338173391734017341173421734317344173451734617347173481734917350173511735217353173541735517356173571735817359173601736117362173631736417365173661736717368173691737017371173721737317374173751737617377173781737917380173811738217383173841738517386173871738817389173901739117392173931739417395173961739717398173991740017401174021740317404174051740617407174081740917410174111741217413174141741517416174171741817419174201742117422174231742417425174261742717428174291743017431174321743317434174351743617437174381743917440174411744217443174441744517446174471744817449174501745117452174531745417455174561745717458174591746017461174621746317464174651746617467174681746917470174711747217473174741747517476174771747817479174801748117482174831748417485174861748717488174891749017491174921749317494174951749617497174981749917500175011750217503175041750517506175071750817509175101751117512175131751417515175161751717518175191752017521175221752317524175251752617527175281752917530175311753217533175341753517536175371753817539175401754117542175431754417545175461754717548175491755017551175521755317554175551755617557175581755917560175611756217563175641756517566175671756817569175701757117572175731757417575175761757717578175791758017581175821758317584175851758617587175881758917590175911759217593175941759517596175971759817599176001760117602176031760417605176061760717608176091761017611176121761317614176151761617617176181761917620176211762217623176241762517626176271762817629176301763117632176331763417635176361763717638176391764017641176421764317644176451764617647176481764917650176511765217653176541765517656176571765817659176601766117662176631766417665176661766717668176691767017671176721767317674176751767617677176781767917680176811768217683176841768517686176871768817689176901769117692176931769417695176961769717698176991770017701177021770317704177051770617707177081770917710177111771217713177141771517716177171771817719177201772117722177231772417725177261772717728177291773017731177321773317734177351773617737177381773917740177411774217743177441774517746177471774817749177501775117752177531775417755177561775717758177591776017761177621776317764177651776617767177681776917770177711777217773177741777517776177771777817779177801778117782177831778417785177861778717788177891779017791177921779317794177951779617797177981779917800178011780217803178041780517806178071780817809178101781117812178131781417815178161781717818178191782017821178221782317824178251782617827178281782917830178311783217833178341783517836178371783817839178401784117842178431784417845178461784717848178491785017851178521785317854178551785617857178581785917860178611786217863178641786517866178671786817869178701787117872178731787417875178761787717878178791788017881178821788317884178851788617887178881788917890178911789217893178941789517896178971789817899179001790117902179031790417905179061790717908179091791017911179121791317914179151791617917179181791917920179211792217923179241792517926179271792817929179301793117932179331793417935179361793717938179391794017941179421794317944179451794617947179481794917950179511795217953179541795517956179571795817959179601796117962179631796417965179661796717968179691797017971179721797317974179751797617977179781797917980179811798217983179841798517986179871798817989179901799117992179931799417995179961799717998179991800018001180021800318004180051800618007180081800918010180111801218013180141801518016180171801818019180201802118022180231802418025180261802718028180291803018031180321803318034180351803618037180381803918040180411804218043180441804518046180471804818049180501805118052180531805418055180561805718058180591806018061180621806318064180651806618067180681806918070180711807218073180741807518076180771807818079180801808118082180831808418085180861808718088180891809018091180921809318094180951809618097180981809918100181011810218103181041810518106181071810818109181101811118112181131811418115181161811718118181191812018121181221812318124181251812618127181281812918130181311813218133181341813518136181371813818139181401814118142181431814418145181461814718148181491815018151181521815318154181551815618157181581815918160181611816218163181641816518166181671816818169181701817118172181731817418175181761817718178181791818018181181821818318184181851818618187181881818918190181911819218193181941819518196181971819818199182001820118202182031820418205182061820718208182091821018211182121821318214182151821618217182181821918220182211822218223182241822518226182271822818229182301823118232182331823418235182361823718238182391824018241182421824318244182451824618247182481824918250182511825218253182541825518256182571825818259182601826118262182631826418265182661826718268182691827018271182721827318274182751827618277182781827918280182811828218283182841828518286182871828818289182901829118292182931829418295182961829718298182991830018301183021830318304183051830618307183081830918310183111831218313183141831518316183171831818319183201832118322183231832418325183261832718328183291833018331183321833318334183351833618337183381833918340183411834218343183441834518346183471834818349183501835118352183531835418355183561835718358183591836018361183621836318364183651836618367183681836918370183711837218373183741837518376183771837818379183801838118382183831838418385183861838718388183891839018391183921839318394183951839618397183981839918400184011840218403184041840518406184071840818409184101841118412184131841418415184161841718418184191842018421184221842318424184251842618427184281842918430184311843218433184341843518436184371843818439184401844118442184431844418445184461844718448184491845018451184521845318454184551845618457184581845918460184611846218463184641846518466184671846818469184701847118472184731847418475184761847718478184791848018481184821848318484184851848618487184881848918490184911849218493184941849518496184971849818499185001850118502185031850418505185061850718508185091851018511185121851318514185151851618517185181851918520185211852218523185241852518526185271852818529185301853118532185331853418535185361853718538185391854018541185421854318544185451854618547185481854918550185511855218553185541855518556185571855818559185601856118562185631856418565185661856718568185691857018571185721857318574185751857618577185781857918580185811858218583185841858518586185871858818589185901859118592185931859418595185961859718598185991860018601186021860318604186051860618607186081860918610186111861218613186141861518616186171861818619186201862118622186231862418625186261862718628186291863018631186321863318634186351863618637186381863918640186411864218643186441864518646186471864818649186501865118652186531865418655186561865718658186591866018661186621866318664186651866618667186681866918670186711867218673186741867518676186771867818679186801868118682186831868418685186861868718688186891869018691186921869318694186951869618697186981869918700187011870218703187041870518706187071870818709187101871118712187131871418715187161871718718187191872018721187221872318724187251872618727187281872918730187311873218733187341873518736187371873818739187401874118742187431874418745187461874718748187491875018751187521875318754187551875618757187581875918760187611876218763187641876518766187671876818769187701877118772187731877418775187761877718778187791878018781187821878318784187851878618787187881878918790187911879218793187941879518796187971879818799188001880118802188031880418805188061880718808188091881018811188121881318814188151881618817188181881918820188211882218823188241882518826188271882818829188301883118832188331883418835188361883718838188391884018841188421884318844188451884618847188481884918850188511885218853188541885518856188571885818859188601886118862188631886418865188661886718868188691887018871188721887318874188751887618877188781887918880188811888218883188841888518886188871888818889188901889118892188931889418895188961889718898188991890018901189021890318904189051890618907189081890918910189111891218913189141891518916189171891818919189201892118922189231892418925189261892718928189291893018931189321893318934189351893618937189381893918940189411894218943189441894518946189471894818949189501895118952189531895418955189561895718958189591896018961189621896318964189651896618967189681896918970189711897218973189741897518976189771897818979189801898118982189831898418985189861898718988189891899018991189921899318994189951899618997189981899919000190011900219003190041900519006190071900819009190101901119012190131901419015190161901719018190191902019021190221902319024190251902619027190281902919030190311903219033190341903519036190371903819039190401904119042190431904419045190461904719048190491905019051190521905319054190551905619057190581905919060190611906219063190641906519066190671906819069190701907119072190731907419075190761907719078190791908019081190821908319084190851908619087190881908919090190911909219093190941909519096190971909819099191001910119102191031910419105191061910719108191091911019111191121911319114191151911619117191181911919120191211912219123191241912519126191271912819129191301913119132191331913419135191361913719138191391914019141191421914319144191451914619147191481914919150191511915219153191541915519156191571915819159191601916119162191631916419165191661916719168191691917019171191721917319174191751917619177191781917919180191811918219183191841918519186191871918819189191901919119192191931919419195191961919719198191991920019201192021920319204192051920619207192081920919210192111921219213192141921519216192171921819219192201922119222192231922419225192261922719228192291923019231192321923319234192351923619237192381923919240192411924219243192441924519246192471924819249192501925119252192531925419255192561925719258192591926019261192621926319264192651926619267192681926919270192711927219273192741927519276192771927819279192801928119282192831928419285192861928719288192891929019291192921929319294192951929619297192981929919300193011930219303193041930519306193071930819309193101931119312193131931419315193161931719318193191932019321193221932319324193251932619327193281932919330193311933219333193341933519336193371933819339193401934119342193431934419345193461934719348193491935019351193521935319354193551935619357193581935919360193611936219363193641936519366193671936819369193701937119372193731937419375193761937719378193791938019381193821938319384193851938619387193881938919390193911939219393193941939519396193971939819399194001940119402194031940419405194061940719408194091941019411194121941319414194151941619417194181941919420194211942219423194241942519426194271942819429194301943119432194331943419435194361943719438194391944019441194421944319444194451944619447194481944919450194511945219453194541945519456194571945819459194601946119462194631946419465194661946719468194691947019471194721947319474194751947619477194781947919480194811948219483194841948519486194871948819489194901949119492194931949419495194961949719498194991950019501195021950319504195051950619507195081950919510195111951219513195141951519516195171951819519195201952119522195231952419525195261952719528195291953019531195321953319534195351953619537195381953919540195411954219543195441954519546195471954819549195501955119552195531955419555195561955719558195591956019561195621956319564195651956619567195681956919570195711957219573195741957519576195771957819579195801958119582195831958419585195861958719588195891959019591195921959319594195951959619597195981959919600196011960219603196041960519606196071960819609196101961119612196131961419615196161961719618196191962019621196221962319624196251962619627196281962919630196311963219633196341963519636196371963819639196401964119642196431964419645196461964719648196491965019651196521965319654196551965619657196581965919660196611966219663196641966519666196671966819669196701967119672196731967419675196761967719678196791968019681196821968319684196851968619687196881968919690196911969219693196941969519696196971969819699197001970119702197031970419705197061970719708197091971019711197121971319714197151971619717197181971919720197211972219723197241972519726197271972819729197301973119732197331973419735197361973719738197391974019741197421974319744197451974619747197481974919750197511975219753197541975519756197571975819759197601976119762197631976419765197661976719768197691977019771197721977319774197751977619777197781977919780197811978219783197841978519786197871978819789197901979119792197931979419795197961979719798197991980019801198021980319804198051980619807198081980919810198111981219813198141981519816198171981819819198201982119822198231982419825198261982719828198291983019831198321983319834198351983619837198381983919840198411984219843198441984519846198471984819849198501985119852198531985419855198561985719858198591986019861198621986319864198651986619867198681986919870198711987219873198741987519876198771987819879198801988119882198831988419885198861988719888198891989019891198921989319894198951989619897198981989919900199011990219903199041990519906199071990819909199101991119912199131991419915199161991719918199191992019921199221992319924199251992619927199281992919930199311993219933199341993519936199371993819939199401994119942199431994419945199461994719948199491995019951199521995319954199551995619957199581995919960199611996219963199641996519966199671996819969199701997119972199731997419975199761997719978199791998019981199821998319984199851998619987199881998919990199911999219993199941999519996199971999819999200002000120002200032000420005200062000720008200092001020011200122001320014200152001620017200182001920020200212002220023200242002520026200272002820029200302003120032200332003420035200362003720038200392004020041200422004320044200452004620047200482004920050200512005220053200542005520056200572005820059200602006120062200632006420065200662006720068200692007020071200722007320074200752007620077200782007920080200812008220083200842008520086200872008820089200902009120092200932009420095200962009720098200992010020101201022010320104201052010620107201082010920110201112011220113201142011520116201172011820119201202012120122201232012420125201262012720128201292013020131201322013320134201352013620137201382013920140201412014220143201442014520146201472014820149201502015120152201532015420155201562015720158201592016020161201622016320164201652016620167201682016920170201712017220173201742017520176201772017820179201802018120182201832018420185201862018720188201892019020191201922019320194201952019620197201982019920200202012020220203202042020520206202072020820209202102021120212202132021420215202162021720218202192022020221202222022320224202252022620227202282022920230202312023220233202342023520236202372023820239202402024120242202432024420245202462024720248202492025020251202522025320254202552025620257202582025920260202612026220263202642026520266202672026820269202702027120272202732027420275202762027720278202792028020281202822028320284202852028620287202882028920290202912029220293202942029520296202972029820299203002030120302203032030420305203062030720308203092031020311203122031320314203152031620317203182031920320203212032220323203242032520326203272032820329203302033120332203332033420335203362033720338203392034020341203422034320344203452034620347203482034920350203512035220353203542035520356203572035820359203602036120362203632036420365203662036720368203692037020371203722037320374203752037620377203782037920380203812038220383203842038520386203872038820389203902039120392203932039420395203962039720398203992040020401204022040320404204052040620407204082040920410204112041220413204142041520416204172041820419204202042120422204232042420425204262042720428204292043020431204322043320434204352043620437204382043920440204412044220443204442044520446204472044820449204502045120452204532045420455204562045720458204592046020461204622046320464204652046620467204682046920470204712047220473204742047520476204772047820479204802048120482204832048420485204862048720488204892049020491204922049320494204952049620497204982049920500205012050220503205042050520506205072050820509205102051120512205132051420515205162051720518205192052020521205222052320524205252052620527205282052920530205312053220533205342053520536205372053820539205402054120542205432054420545205462054720548205492055020551205522055320554205552055620557205582055920560205612056220563205642056520566205672056820569205702057120572205732057420575205762057720578205792058020581205822058320584205852058620587205882058920590205912059220593205942059520596205972059820599206002060120602206032060420605206062060720608206092061020611206122061320614206152061620617206182061920620206212062220623206242062520626206272062820629206302063120632206332063420635206362063720638206392064020641206422064320644206452064620647206482064920650206512065220653206542065520656206572065820659206602066120662206632066420665206662066720668206692067020671206722067320674206752067620677206782067920680206812068220683206842068520686206872068820689206902069120692206932069420695206962069720698206992070020701207022070320704207052070620707207082070920710207112071220713207142071520716207172071820719207202072120722207232072420725207262072720728207292073020731207322073320734207352073620737207382073920740207412074220743207442074520746207472074820749207502075120752207532075420755207562075720758207592076020761207622076320764207652076620767207682076920770207712077220773207742077520776207772077820779207802078120782207832078420785207862078720788207892079020791207922079320794207952079620797207982079920800208012080220803208042080520806208072080820809208102081120812208132081420815208162081720818208192082020821208222082320824208252082620827208282082920830208312083220833208342083520836208372083820839208402084120842208432084420845208462084720848208492085020851208522085320854208552085620857208582085920860208612086220863208642086520866208672086820869208702087120872208732087420875208762087720878208792088020881208822088320884208852088620887208882088920890208912089220893208942089520896208972089820899209002090120902209032090420905209062090720908209092091020911209122091320914209152091620917209182091920920209212092220923209242092520926209272092820929209302093120932209332093420935209362093720938209392094020941209422094320944209452094620947209482094920950209512095220953209542095520956209572095820959209602096120962209632096420965209662096720968209692097020971209722097320974209752097620977209782097920980209812098220983209842098520986209872098820989209902099120992209932099420995209962099720998209992100021001210022100321004210052100621007210082100921010210112101221013210142101521016210172101821019210202102121022210232102421025210262102721028210292103021031210322103321034210352103621037210382103921040210412104221043210442104521046210472104821049210502105121052210532105421055210562105721058210592106021061210622106321064210652106621067210682106921070210712107221073210742107521076210772107821079210802108121082210832108421085210862108721088210892109021091210922109321094210952109621097210982109921100211012110221103211042110521106211072110821109211102111121112211132111421115211162111721118211192112021121211222112321124211252112621127211282112921130211312113221133211342113521136211372113821139211402114121142211432114421145211462114721148211492115021151211522115321154211552115621157211582115921160211612116221163211642116521166211672116821169211702117121172211732117421175211762117721178211792118021181211822118321184211852118621187211882118921190211912119221193211942119521196211972119821199212002120121202212032120421205212062120721208212092121021211212122121321214212152121621217212182121921220212212122221223212242122521226212272122821229212302123121232212332123421235212362123721238212392124021241212422124321244212452124621247212482124921250212512125221253212542125521256212572125821259212602126121262212632126421265212662126721268212692127021271212722127321274212752127621277212782127921280212812128221283212842128521286212872128821289212902129121292212932129421295212962129721298212992130021301213022130321304213052130621307213082130921310213112131221313213142131521316213172131821319213202132121322213232132421325213262132721328213292133021331213322133321334213352133621337213382133921340213412134221343213442134521346213472134821349213502135121352213532135421355213562135721358213592136021361213622136321364213652136621367213682136921370213712137221373213742137521376213772137821379213802138121382213832138421385213862138721388213892139021391213922139321394213952139621397213982139921400214012140221403214042140521406214072140821409214102141121412214132141421415214162141721418214192142021421214222142321424214252142621427214282142921430214312143221433214342143521436214372143821439214402144121442214432144421445214462144721448214492145021451214522145321454214552145621457214582145921460214612146221463214642146521466214672146821469214702147121472214732147421475214762147721478214792148021481214822148321484214852148621487214882148921490214912149221493214942149521496214972149821499215002150121502215032150421505215062150721508215092151021511215122151321514215152151621517215182151921520215212152221523215242152521526215272152821529215302153121532215332153421535215362153721538215392154021541215422154321544215452154621547215482154921550215512155221553215542155521556215572155821559215602156121562215632156421565215662156721568215692157021571215722157321574215752157621577215782157921580215812158221583215842158521586215872158821589215902159121592215932159421595215962159721598215992160021601216022160321604216052160621607216082160921610216112161221613216142161521616216172161821619216202162121622216232162421625216262162721628216292163021631216322163321634216352163621637216382163921640216412164221643216442164521646216472164821649216502165121652216532165421655216562165721658216592166021661216622166321664216652166621667216682166921670216712167221673216742167521676216772167821679216802168121682216832168421685216862168721688216892169021691216922169321694216952169621697216982169921700217012170221703217042170521706217072170821709217102171121712217132171421715217162171721718217192172021721217222172321724217252172621727217282172921730217312173221733217342173521736217372173821739217402174121742217432174421745217462174721748217492175021751217522175321754217552175621757217582175921760217612176221763217642176521766217672176821769217702177121772217732177421775217762177721778217792178021781217822178321784217852178621787217882178921790217912179221793217942179521796217972179821799218002180121802218032180421805218062180721808218092181021811218122181321814218152181621817218182181921820218212182221823218242182521826218272182821829218302183121832218332183421835218362183721838218392184021841218422184321844218452184621847218482184921850218512185221853218542185521856218572185821859218602186121862218632186421865218662186721868218692187021871218722187321874218752187621877218782187921880218812188221883218842188521886218872188821889218902189121892218932189421895218962189721898218992190021901219022190321904219052190621907219082190921910219112191221913219142191521916219172191821919219202192121922219232192421925219262192721928219292193021931219322193321934219352193621937219382193921940219412194221943219442194521946219472194821949219502195121952219532195421955219562195721958219592196021961219622196321964219652196621967219682196921970219712197221973219742197521976219772197821979219802198121982219832198421985219862198721988219892199021991219922199321994219952199621997219982199922000220012200222003220042200522006220072200822009220102201122012220132201422015220162201722018220192202022021220222202322024220252202622027220282202922030220312203222033220342203522036220372203822039220402204122042220432204422045220462204722048220492205022051220522205322054220552205622057220582205922060220612206222063220642206522066220672206822069220702207122072220732207422075220762207722078220792208022081220822208322084220852208622087220882208922090220912209222093220942209522096220972209822099221002210122102221032210422105221062210722108221092211022111221122211322114221152211622117221182211922120221212212222123221242212522126221272212822129221302213122132221332213422135221362213722138221392214022141221422214322144221452214622147221482214922150221512215222153221542215522156221572215822159221602216122162221632216422165221662216722168221692217022171221722217322174221752217622177221782217922180221812218222183221842218522186221872218822189221902219122192221932219422195221962219722198221992220022201222022220322204222052220622207222082220922210222112221222213222142221522216222172221822219222202222122222222232222422225222262222722228222292223022231222322223322234222352223622237222382223922240222412224222243222442224522246222472224822249222502225122252222532225422255222562225722258222592226022261222622226322264222652226622267222682226922270222712227222273222742227522276222772227822279222802228122282222832228422285222862228722288222892229022291222922229322294222952229622297222982229922300223012230222303223042230522306223072230822309223102231122312223132231422315223162231722318223192232022321223222232322324223252232622327223282232922330223312233222333223342233522336223372233822339223402234122342223432234422345223462234722348223492235022351223522235322354223552235622357223582235922360223612236222363223642236522366223672236822369223702237122372223732237422375223762237722378223792238022381223822238322384223852238622387223882238922390223912239222393223942239522396223972239822399224002240122402224032240422405224062240722408224092241022411224122241322414224152241622417224182241922420224212242222423224242242522426224272242822429224302243122432224332243422435224362243722438224392244022441224422244322444224452244622447224482244922450224512245222453224542245522456224572245822459224602246122462224632246422465224662246722468224692247022471224722247322474224752247622477224782247922480224812248222483224842248522486224872248822489224902249122492224932249422495224962249722498224992250022501225022250322504225052250622507225082250922510225112251222513225142251522516225172251822519225202252122522225232252422525225262252722528225292253022531225322253322534225352253622537225382253922540225412254222543225442254522546225472254822549225502255122552225532255422555225562255722558225592256022561225622256322564225652256622567225682256922570225712257222573225742257522576225772257822579225802258122582225832258422585225862258722588225892259022591225922259322594225952259622597225982259922600226012260222603226042260522606226072260822609226102261122612226132261422615226162261722618226192262022621226222262322624226252262622627226282262922630226312263222633226342263522636226372263822639226402264122642226432264422645226462264722648226492265022651226522265322654226552265622657226582265922660226612266222663226642266522666226672266822669226702267122672226732267422675226762267722678226792268022681226822268322684226852268622687226882268922690226912269222693226942269522696226972269822699227002270122702227032270422705227062270722708227092271022711227122271322714227152271622717227182271922720227212272222723227242272522726227272272822729227302273122732227332273422735227362273722738227392274022741227422274322744227452274622747227482274922750227512275222753227542275522756227572275822759227602276122762227632276422765227662276722768227692277022771227722277322774227752277622777227782277922780227812278222783227842278522786227872278822789227902279122792227932279422795227962279722798227992280022801228022280322804228052280622807228082280922810228112281222813228142281522816228172281822819228202282122822228232282422825228262282722828228292283022831228322283322834228352283622837228382283922840228412284222843228442284522846228472284822849228502285122852228532285422855228562285722858228592286022861228622286322864228652286622867228682286922870228712287222873228742287522876228772287822879228802288122882228832288422885228862288722888228892289022891228922289322894228952289622897228982289922900229012290222903229042290522906229072290822909229102291122912229132291422915229162291722918229192292022921229222292322924229252292622927229282292922930229312293222933229342293522936229372293822939229402294122942229432294422945229462294722948229492295022951229522295322954229552295622957229582295922960229612296222963229642296522966229672296822969229702297122972229732297422975229762297722978229792298022981229822298322984229852298622987229882298922990229912299222993229942299522996229972299822999230002300123002230032300423005230062300723008230092301023011230122301323014230152301623017230182301923020230212302223023230242302523026230272302823029230302303123032230332303423035230362303723038230392304023041230422304323044230452304623047230482304923050230512305223053230542305523056230572305823059230602306123062230632306423065230662306723068230692307023071230722307323074230752307623077230782307923080230812308223083230842308523086230872308823089230902309123092230932309423095230962309723098230992310023101231022310323104231052310623107231082310923110231112311223113231142311523116231172311823119231202312123122231232312423125231262312723128231292313023131231322313323134231352313623137231382313923140231412314223143231442314523146231472314823149231502315123152231532315423155231562315723158231592316023161231622316323164231652316623167231682316923170231712317223173231742317523176231772317823179231802318123182231832318423185231862318723188231892319023191231922319323194231952319623197231982319923200232012320223203232042320523206232072320823209232102321123212232132321423215232162321723218232192322023221232222322323224232252322623227232282322923230232312323223233232342323523236232372323823239232402324123242232432324423245232462324723248232492325023251232522325323254232552325623257232582325923260232612326223263232642326523266232672326823269232702327123272232732327423275232762327723278232792328023281232822328323284232852328623287232882328923290232912329223293232942329523296232972329823299233002330123302233032330423305233062330723308233092331023311233122331323314233152331623317233182331923320233212332223323233242332523326233272332823329233302333123332233332333423335233362333723338233392334023341233422334323344233452334623347233482334923350233512335223353233542335523356233572335823359233602336123362233632336423365233662336723368233692337023371233722337323374233752337623377233782337923380233812338223383233842338523386233872338823389233902339123392233932339423395233962339723398233992340023401234022340323404234052340623407234082340923410234112341223413234142341523416234172341823419234202342123422234232342423425234262342723428234292343023431234322343323434234352343623437234382343923440234412344223443234442344523446234472344823449234502345123452234532345423455234562345723458234592346023461234622346323464234652346623467234682346923470234712347223473234742347523476234772347823479234802348123482234832348423485234862348723488234892349023491234922349323494234952349623497234982349923500235012350223503235042350523506235072350823509235102351123512235132351423515235162351723518235192352023521235222352323524235252352623527235282352923530235312353223533235342353523536235372353823539235402354123542235432354423545235462354723548235492355023551235522355323554235552355623557235582355923560235612356223563235642356523566235672356823569235702357123572235732357423575235762357723578235792358023581235822358323584235852358623587235882358923590235912359223593235942359523596235972359823599236002360123602236032360423605236062360723608236092361023611236122361323614236152361623617236182361923620236212362223623236242362523626236272362823629236302363123632236332363423635236362363723638236392364023641236422364323644236452364623647236482364923650236512365223653236542365523656236572365823659236602366123662236632366423665236662366723668236692367023671236722367323674236752367623677236782367923680236812368223683236842368523686236872368823689236902369123692236932369423695236962369723698236992370023701237022370323704237052370623707237082370923710237112371223713237142371523716237172371823719237202372123722237232372423725237262372723728237292373023731237322373323734237352373623737237382373923740237412374223743237442374523746237472374823749237502375123752237532375423755237562375723758237592376023761237622376323764237652376623767237682376923770237712377223773237742377523776237772377823779237802378123782237832378423785237862378723788237892379023791237922379323794237952379623797237982379923800238012380223803238042380523806238072380823809238102381123812238132381423815238162381723818238192382023821238222382323824238252382623827238282382923830238312383223833238342383523836238372383823839238402384123842238432384423845238462384723848238492385023851238522385323854238552385623857238582385923860238612386223863238642386523866238672386823869238702387123872238732387423875238762387723878238792388023881238822388323884238852388623887238882388923890238912389223893238942389523896238972389823899239002390123902239032390423905239062390723908239092391023911239122391323914239152391623917239182391923920239212392223923239242392523926239272392823929239302393123932239332393423935239362393723938239392394023941239422394323944239452394623947239482394923950239512395223953239542395523956239572395823959239602396123962239632396423965239662396723968239692397023971239722397323974239752397623977239782397923980239812398223983239842398523986239872398823989239902399123992239932399423995239962399723998239992400024001240022400324004240052400624007240082400924010240112401224013240142401524016240172401824019240202402124022240232402424025240262402724028240292403024031240322403324034240352403624037240382403924040240412404224043240442404524046240472404824049240502405124052240532405424055240562405724058240592406024061240622406324064240652406624067240682406924070240712407224073240742407524076240772407824079240802408124082240832408424085240862408724088240892409024091240922409324094240952409624097240982409924100241012410224103241042410524106241072410824109241102411124112241132411424115241162411724118241192412024121241222412324124241252412624127241282412924130241312413224133241342413524136241372413824139241402414124142241432414424145241462414724148241492415024151241522415324154241552415624157241582415924160241612416224163241642416524166241672416824169241702417124172241732417424175241762417724178241792418024181241822418324184241852418624187241882418924190241912419224193241942419524196241972419824199242002420124202242032420424205242062420724208242092421024211242122421324214242152421624217242182421924220242212422224223242242422524226242272422824229242302423124232242332423424235242362423724238242392424024241242422424324244242452424624247242482424924250242512425224253242542425524256242572425824259242602426124262242632426424265242662426724268242692427024271242722427324274242752427624277242782427924280242812428224283242842428524286242872428824289242902429124292242932429424295242962429724298242992430024301243022430324304243052430624307243082430924310243112431224313243142431524316243172431824319243202432124322243232432424325243262432724328243292433024331243322433324334243352433624337243382433924340243412434224343243442434524346243472434824349243502435124352243532435424355243562435724358243592436024361243622436324364243652436624367243682436924370243712437224373243742437524376243772437824379243802438124382243832438424385243862438724388243892439024391243922439324394243952439624397243982439924400244012440224403244042440524406244072440824409244102441124412244132441424415244162441724418244192442024421244222442324424244252442624427244282442924430244312443224433244342443524436244372443824439244402444124442244432444424445244462444724448244492445024451244522445324454244552445624457244582445924460244612446224463244642446524466244672446824469244702447124472244732447424475244762447724478244792448024481244822448324484244852448624487244882448924490244912449224493244942449524496244972449824499245002450124502245032450424505245062450724508245092451024511245122451324514245152451624517245182451924520245212452224523245242452524526245272452824529245302453124532245332453424535245362453724538245392454024541245422454324544245452454624547245482454924550245512455224553245542455524556245572455824559245602456124562245632456424565245662456724568245692457024571245722457324574245752457624577245782457924580245812458224583245842458524586245872458824589245902459124592245932459424595245962459724598245992460024601246022460324604246052460624607246082460924610246112461224613246142461524616246172461824619246202462124622246232462424625246262462724628246292463024631246322463324634246352463624637246382463924640246412464224643246442464524646246472464824649246502465124652246532465424655246562465724658246592466024661246622466324664246652466624667246682466924670246712467224673246742467524676246772467824679246802468124682246832468424685246862468724688246892469024691246922469324694246952469624697246982469924700247012470224703247042470524706247072470824709247102471124712247132471424715247162471724718247192472024721247222472324724247252472624727247282472924730247312473224733247342473524736247372473824739247402474124742247432474424745247462474724748247492475024751247522475324754247552475624757247582475924760247612476224763247642476524766247672476824769247702477124772247732477424775247762477724778247792478024781247822478324784247852478624787247882478924790247912479224793247942479524796247972479824799248002480124802248032480424805248062480724808248092481024811248122481324814248152481624817248182481924820248212482224823248242482524826248272482824829248302483124832248332483424835248362483724838248392484024841248422484324844248452484624847248482484924850248512485224853248542485524856248572485824859248602486124862248632486424865248662486724868248692487024871248722487324874248752487624877248782487924880248812488224883248842488524886248872488824889248902489124892248932489424895248962489724898248992490024901249022490324904249052490624907249082490924910249112491224913249142491524916249172491824919249202492124922249232492424925249262492724928249292493024931249322493324934249352493624937249382493924940249412494224943249442494524946249472494824949249502495124952249532495424955249562495724958249592496024961249622496324964249652496624967249682496924970249712497224973249742497524976249772497824979249802498124982249832498424985249862498724988249892499024991249922499324994249952499624997249982499925000250012500225003250042500525006250072500825009250102501125012250132501425015250162501725018250192502025021250222502325024250252502625027250282502925030250312503225033250342503525036250372503825039250402504125042250432504425045250462504725048250492505025051250522505325054250552505625057250582505925060250612506225063250642506525066250672506825069250702507125072250732507425075250762507725078250792508025081250822508325084250852508625087250882508925090250912509225093250942509525096250972509825099251002510125102251032510425105251062510725108251092511025111251122511325114251152511625117251182511925120251212512225123251242512525126251272512825129251302513125132251332513425135251362513725138251392514025141251422514325144251452514625147251482514925150251512515225153251542515525156251572515825159251602516125162251632516425165251662516725168251692517025171251722517325174251752517625177251782517925180251812518225183251842518525186251872518825189251902519125192251932519425195251962519725198251992520025201252022520325204252052520625207252082520925210252112521225213252142521525216252172521825219252202522125222252232522425225252262522725228252292523025231252322523325234252352523625237252382523925240252412524225243252442524525246252472524825249252502525125252252532525425255252562525725258252592526025261252622526325264252652526625267252682526925270252712527225273252742527525276252772527825279252802528125282252832528425285252862528725288252892529025291252922529325294252952529625297252982529925300253012530225303253042530525306253072530825309253102531125312253132531425315253162531725318253192532025321253222532325324253252532625327253282532925330253312533225333253342533525336253372533825339253402534125342253432534425345253462534725348253492535025351253522535325354253552535625357253582535925360253612536225363253642536525366253672536825369253702537125372253732537425375253762537725378253792538025381253822538325384253852538625387253882538925390253912539225393253942539525396253972539825399254002540125402254032540425405254062540725408254092541025411254122541325414254152541625417254182541925420254212542225423254242542525426254272542825429254302543125432254332543425435254362543725438254392544025441254422544325444254452544625447254482544925450254512545225453254542545525456254572545825459254602546125462254632546425465254662546725468254692547025471254722547325474254752547625477254782547925480254812548225483254842548525486254872548825489254902549125492254932549425495254962549725498254992550025501255022550325504255052550625507255082550925510255112551225513255142551525516255172551825519255202552125522255232552425525255262552725528255292553025531255322553325534255352553625537255382553925540255412554225543255442554525546255472554825549255502555125552255532555425555255562555725558255592556025561255622556325564255652556625567255682556925570255712557225573255742557525576255772557825579255802558125582255832558425585255862558725588255892559025591255922559325594255952559625597255982559925600256012560225603256042560525606256072560825609256102561125612256132561425615256162561725618256192562025621256222562325624256252562625627256282562925630256312563225633256342563525636256372563825639256402564125642256432564425645256462564725648256492565025651256522565325654256552565625657256582565925660256612566225663256642566525666256672566825669256702567125672256732567425675256762567725678256792568025681256822568325684256852568625687256882568925690256912569225693256942569525696256972569825699257002570125702257032570425705257062570725708257092571025711257122571325714257152571625717257182571925720257212572225723257242572525726257272572825729257302573125732257332573425735257362573725738257392574025741257422574325744257452574625747257482574925750257512575225753257542575525756257572575825759257602576125762257632576425765257662576725768257692577025771257722577325774257752577625777257782577925780257812578225783257842578525786257872578825789257902579125792257932579425795257962579725798257992580025801258022580325804258052580625807258082580925810258112581225813258142581525816258172581825819258202582125822258232582425825258262582725828258292583025831258322583325834258352583625837258382583925840258412584225843258442584525846258472584825849258502585125852258532585425855258562585725858258592586025861258622586325864258652586625867258682586925870258712587225873258742587525876258772587825879258802588125882258832588425885258862588725888258892589025891258922589325894258952589625897258982589925900259012590225903259042590525906259072590825909259102591125912259132591425915259162591725918259192592025921259222592325924259252592625927259282592925930259312593225933259342593525936259372593825939259402594125942259432594425945259462594725948259492595025951
  1. (global["webpackJsonp"] = global["webpackJsonp"] || []).push([["common/vendor"],[
  2. /* 0 */,
  3. /* 1 */
  4. /*!************************************************************!*\
  5. !*** ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js ***!
  6. \************************************************************/
  7. /*! no static exports found */
  8. /***/ (function(module, exports, __webpack_require__) {
  9. "use strict";
  10. /* WEBPACK VAR INJECTION */(function(global) {Object.defineProperty(exports, "__esModule", { value: true });exports.createApp = createApp;exports.createComponent = createComponent;exports.createPage = createPage;exports.createPlugin = createPlugin;exports.createSubpackageApp = createSubpackageApp;exports.default = void 0;var _uniI18n = __webpack_require__(/*! @dcloudio/uni-i18n */ 3);
  11. var _vue = _interopRequireDefault(__webpack_require__(/*! vue */ 4));function _interopRequireDefault(obj) {return obj && obj.__esModule ? obj : { default: obj };}function ownKeys(object, enumerableOnly) {var keys = Object.keys(object);if (Object.getOwnPropertySymbols) {var symbols = Object.getOwnPropertySymbols(object);if (enumerableOnly) symbols = symbols.filter(function (sym) {return Object.getOwnPropertyDescriptor(object, sym).enumerable;});keys.push.apply(keys, symbols);}return keys;}function _objectSpread(target) {for (var i = 1; i < arguments.length; i++) {var source = arguments[i] != null ? arguments[i] : {};if (i % 2) {ownKeys(Object(source), true).forEach(function (key) {_defineProperty(target, key, source[key]);});} else if (Object.getOwnPropertyDescriptors) {Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));} else {ownKeys(Object(source)).forEach(function (key) {Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));});}}return target;}function _slicedToArray(arr, i) {return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest();}function _nonIterableRest() {throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");}function _iterableToArrayLimit(arr, i) {if (typeof Symbol === "undefined" || !(Symbol.iterator in Object(arr))) return;var _arr = [];var _n = true;var _d = false;var _e = undefined;try {for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) {_arr.push(_s.value);if (i && _arr.length === i) break;}} catch (err) {_d = true;_e = err;} finally {try {if (!_n && _i["return"] != null) _i["return"]();} finally {if (_d) throw _e;}}return _arr;}function _arrayWithHoles(arr) {if (Array.isArray(arr)) return arr;}function _defineProperty(obj, key, value) {if (key in obj) {Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true });} else {obj[key] = value;}return obj;}function _toConsumableArray(arr) {return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread();}function _nonIterableSpread() {throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");}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);}function _iterableToArray(iter) {if (typeof Symbol !== "undefined" && Symbol.iterator in Object(iter)) return Array.from(iter);}function _arrayWithoutHoles(arr) {if (Array.isArray(arr)) return _arrayLikeToArray(arr);}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;}
  12. var realAtob;
  13. var b64 = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=';
  14. var b64re = /^(?:[A-Za-z\d+/]{4})*?(?:[A-Za-z\d+/]{2}(?:==)?|[A-Za-z\d+/]{3}=?)?$/;
  15. if (typeof atob !== 'function') {
  16. realAtob = function realAtob(str) {
  17. str = String(str).replace(/[\t\n\f\r ]+/g, '');
  18. if (!b64re.test(str)) {throw new Error("Failed to execute 'atob' on 'Window': The string to be decoded is not correctly encoded.");}
  19. // Adding the padding if missing, for semplicity
  20. str += '=='.slice(2 - (str.length & 3));
  21. var bitmap;var result = '';var r1;var r2;var i = 0;
  22. for (; i < str.length;) {
  23. bitmap = b64.indexOf(str.charAt(i++)) << 18 | b64.indexOf(str.charAt(i++)) << 12 |
  24. (r1 = b64.indexOf(str.charAt(i++))) << 6 | (r2 = b64.indexOf(str.charAt(i++)));
  25. result += r1 === 64 ? String.fromCharCode(bitmap >> 16 & 255) :
  26. r2 === 64 ? String.fromCharCode(bitmap >> 16 & 255, bitmap >> 8 & 255) :
  27. String.fromCharCode(bitmap >> 16 & 255, bitmap >> 8 & 255, bitmap & 255);
  28. }
  29. return result;
  30. };
  31. } else {
  32. // 注意atob只能在全局对象上调用,例如:`const Base64 = {atob};Base64.atob('xxxx')`是错误的用法
  33. realAtob = atob;
  34. }
  35. function b64DecodeUnicode(str) {
  36. return decodeURIComponent(realAtob(str).split('').map(function (c) {
  37. return '%' + ('00' + c.charCodeAt(0).toString(16)).slice(-2);
  38. }).join(''));
  39. }
  40. function getCurrentUserInfo() {
  41. var token = wx.getStorageSync('uni_id_token') || '';
  42. var tokenArr = token.split('.');
  43. if (!token || tokenArr.length !== 3) {
  44. return {
  45. uid: null,
  46. role: [],
  47. permission: [],
  48. tokenExpired: 0 };
  49. }
  50. var userInfo;
  51. try {
  52. userInfo = JSON.parse(b64DecodeUnicode(tokenArr[1]));
  53. } catch (error) {
  54. throw new Error('获取当前用户信息出错,详细错误信息为:' + error.message);
  55. }
  56. userInfo.tokenExpired = userInfo.exp * 1000;
  57. delete userInfo.exp;
  58. delete userInfo.iat;
  59. return userInfo;
  60. }
  61. function uniIdMixin(Vue) {
  62. Vue.prototype.uniIDHasRole = function (roleId) {var _getCurrentUserInfo =
  63. getCurrentUserInfo(),role = _getCurrentUserInfo.role;
  64. return role.indexOf(roleId) > -1;
  65. };
  66. Vue.prototype.uniIDHasPermission = function (permissionId) {var _getCurrentUserInfo2 =
  67. getCurrentUserInfo(),permission = _getCurrentUserInfo2.permission;
  68. return this.uniIDHasRole('admin') || permission.indexOf(permissionId) > -1;
  69. };
  70. Vue.prototype.uniIDTokenValid = function () {var _getCurrentUserInfo3 =
  71. getCurrentUserInfo(),tokenExpired = _getCurrentUserInfo3.tokenExpired;
  72. return tokenExpired > Date.now();
  73. };
  74. }
  75. var _toString = Object.prototype.toString;
  76. var hasOwnProperty = Object.prototype.hasOwnProperty;
  77. function isFn(fn) {
  78. return typeof fn === 'function';
  79. }
  80. function isStr(str) {
  81. return typeof str === 'string';
  82. }
  83. function isPlainObject(obj) {
  84. return _toString.call(obj) === '[object Object]';
  85. }
  86. function hasOwn(obj, key) {
  87. return hasOwnProperty.call(obj, key);
  88. }
  89. function noop() {}
  90. /**
  91. * Create a cached version of a pure function.
  92. */
  93. function cached(fn) {
  94. var cache = Object.create(null);
  95. return function cachedFn(str) {
  96. var hit = cache[str];
  97. return hit || (cache[str] = fn(str));
  98. };
  99. }
  100. /**
  101. * Camelize a hyphen-delimited string.
  102. */
  103. var camelizeRE = /-(\w)/g;
  104. var camelize = cached(function (str) {
  105. return str.replace(camelizeRE, function (_, c) {return c ? c.toUpperCase() : '';});
  106. });
  107. function sortObject(obj) {
  108. var sortObj = {};
  109. if (isPlainObject(obj)) {
  110. Object.keys(obj).sort().forEach(function (key) {
  111. sortObj[key] = obj[key];
  112. });
  113. }
  114. return !Object.keys(sortObj) ? obj : sortObj;
  115. }
  116. var HOOKS = [
  117. 'invoke',
  118. 'success',
  119. 'fail',
  120. 'complete',
  121. 'returnValue'];
  122. var globalInterceptors = {};
  123. var scopedInterceptors = {};
  124. function mergeHook(parentVal, childVal) {
  125. var res = childVal ?
  126. parentVal ?
  127. parentVal.concat(childVal) :
  128. Array.isArray(childVal) ?
  129. childVal : [childVal] :
  130. parentVal;
  131. return res ?
  132. dedupeHooks(res) :
  133. res;
  134. }
  135. function dedupeHooks(hooks) {
  136. var res = [];
  137. for (var i = 0; i < hooks.length; i++) {
  138. if (res.indexOf(hooks[i]) === -1) {
  139. res.push(hooks[i]);
  140. }
  141. }
  142. return res;
  143. }
  144. function removeHook(hooks, hook) {
  145. var index = hooks.indexOf(hook);
  146. if (index !== -1) {
  147. hooks.splice(index, 1);
  148. }
  149. }
  150. function mergeInterceptorHook(interceptor, option) {
  151. Object.keys(option).forEach(function (hook) {
  152. if (HOOKS.indexOf(hook) !== -1 && isFn(option[hook])) {
  153. interceptor[hook] = mergeHook(interceptor[hook], option[hook]);
  154. }
  155. });
  156. }
  157. function removeInterceptorHook(interceptor, option) {
  158. if (!interceptor || !option) {
  159. return;
  160. }
  161. Object.keys(option).forEach(function (hook) {
  162. if (HOOKS.indexOf(hook) !== -1 && isFn(option[hook])) {
  163. removeHook(interceptor[hook], option[hook]);
  164. }
  165. });
  166. }
  167. function addInterceptor(method, option) {
  168. if (typeof method === 'string' && isPlainObject(option)) {
  169. mergeInterceptorHook(scopedInterceptors[method] || (scopedInterceptors[method] = {}), option);
  170. } else if (isPlainObject(method)) {
  171. mergeInterceptorHook(globalInterceptors, method);
  172. }
  173. }
  174. function removeInterceptor(method, option) {
  175. if (typeof method === 'string') {
  176. if (isPlainObject(option)) {
  177. removeInterceptorHook(scopedInterceptors[method], option);
  178. } else {
  179. delete scopedInterceptors[method];
  180. }
  181. } else if (isPlainObject(method)) {
  182. removeInterceptorHook(globalInterceptors, method);
  183. }
  184. }
  185. function wrapperHook(hook) {
  186. return function (data) {
  187. return hook(data) || data;
  188. };
  189. }
  190. function isPromise(obj) {
  191. return !!obj && (typeof obj === 'object' || typeof obj === 'function') && typeof obj.then === 'function';
  192. }
  193. function queue(hooks, data) {
  194. var promise = false;
  195. for (var i = 0; i < hooks.length; i++) {
  196. var hook = hooks[i];
  197. if (promise) {
  198. promise = Promise.resolve(wrapperHook(hook));
  199. } else {
  200. var res = hook(data);
  201. if (isPromise(res)) {
  202. promise = Promise.resolve(res);
  203. }
  204. if (res === false) {
  205. return {
  206. then: function then() {} };
  207. }
  208. }
  209. }
  210. return promise || {
  211. then: function then(callback) {
  212. return callback(data);
  213. } };
  214. }
  215. function wrapperOptions(interceptor) {var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  216. ['success', 'fail', 'complete'].forEach(function (name) {
  217. if (Array.isArray(interceptor[name])) {
  218. var oldCallback = options[name];
  219. options[name] = function callbackInterceptor(res) {
  220. queue(interceptor[name], res).then(function (res) {
  221. /* eslint-disable no-mixed-operators */
  222. return isFn(oldCallback) && oldCallback(res) || res;
  223. });
  224. };
  225. }
  226. });
  227. return options;
  228. }
  229. function wrapperReturnValue(method, returnValue) {
  230. var returnValueHooks = [];
  231. if (Array.isArray(globalInterceptors.returnValue)) {
  232. returnValueHooks.push.apply(returnValueHooks, _toConsumableArray(globalInterceptors.returnValue));
  233. }
  234. var interceptor = scopedInterceptors[method];
  235. if (interceptor && Array.isArray(interceptor.returnValue)) {
  236. returnValueHooks.push.apply(returnValueHooks, _toConsumableArray(interceptor.returnValue));
  237. }
  238. returnValueHooks.forEach(function (hook) {
  239. returnValue = hook(returnValue) || returnValue;
  240. });
  241. return returnValue;
  242. }
  243. function getApiInterceptorHooks(method) {
  244. var interceptor = Object.create(null);
  245. Object.keys(globalInterceptors).forEach(function (hook) {
  246. if (hook !== 'returnValue') {
  247. interceptor[hook] = globalInterceptors[hook].slice();
  248. }
  249. });
  250. var scopedInterceptor = scopedInterceptors[method];
  251. if (scopedInterceptor) {
  252. Object.keys(scopedInterceptor).forEach(function (hook) {
  253. if (hook !== 'returnValue') {
  254. interceptor[hook] = (interceptor[hook] || []).concat(scopedInterceptor[hook]);
  255. }
  256. });
  257. }
  258. return interceptor;
  259. }
  260. function invokeApi(method, api, options) {for (var _len = arguments.length, params = new Array(_len > 3 ? _len - 3 : 0), _key = 3; _key < _len; _key++) {params[_key - 3] = arguments[_key];}
  261. var interceptor = getApiInterceptorHooks(method);
  262. if (interceptor && Object.keys(interceptor).length) {
  263. if (Array.isArray(interceptor.invoke)) {
  264. var res = queue(interceptor.invoke, options);
  265. return res.then(function (options) {
  266. return api.apply(void 0, [wrapperOptions(interceptor, options)].concat(params));
  267. });
  268. } else {
  269. return api.apply(void 0, [wrapperOptions(interceptor, options)].concat(params));
  270. }
  271. }
  272. return api.apply(void 0, [options].concat(params));
  273. }
  274. var promiseInterceptor = {
  275. returnValue: function returnValue(res) {
  276. if (!isPromise(res)) {
  277. return res;
  278. }
  279. return new Promise(function (resolve, reject) {
  280. res.then(function (res) {
  281. if (res[0]) {
  282. reject(res[0]);
  283. } else {
  284. resolve(res[1]);
  285. }
  286. });
  287. });
  288. } };
  289. var SYNC_API_RE =
  290. /^\$|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/;
  291. var CONTEXT_API_RE = /^create|Manager$/;
  292. // Context例外情况
  293. var CONTEXT_API_RE_EXC = ['createBLEConnection'];
  294. // 同步例外情况
  295. var ASYNC_API = ['createBLEConnection', 'createPushMessage'];
  296. var CALLBACK_API_RE = /^on|^off/;
  297. function isContextApi(name) {
  298. return CONTEXT_API_RE.test(name) && CONTEXT_API_RE_EXC.indexOf(name) === -1;
  299. }
  300. function isSyncApi(name) {
  301. return SYNC_API_RE.test(name) && ASYNC_API.indexOf(name) === -1;
  302. }
  303. function isCallbackApi(name) {
  304. return CALLBACK_API_RE.test(name) && name !== 'onPush';
  305. }
  306. function handlePromise(promise) {
  307. return promise.then(function (data) {
  308. return [null, data];
  309. }).
  310. catch(function (err) {return [err];});
  311. }
  312. function shouldPromise(name) {
  313. if (
  314. isContextApi(name) ||
  315. isSyncApi(name) ||
  316. isCallbackApi(name))
  317. {
  318. return false;
  319. }
  320. return true;
  321. }
  322. /* eslint-disable no-extend-native */
  323. if (!Promise.prototype.finally) {
  324. Promise.prototype.finally = function (callback) {
  325. var promise = this.constructor;
  326. return this.then(
  327. function (value) {return promise.resolve(callback()).then(function () {return value;});},
  328. function (reason) {return promise.resolve(callback()).then(function () {
  329. throw reason;
  330. });});
  331. };
  332. }
  333. function promisify(name, api) {
  334. if (!shouldPromise(name)) {
  335. return api;
  336. }
  337. return function promiseApi() {var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};for (var _len2 = arguments.length, params = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {params[_key2 - 1] = arguments[_key2];}
  338. if (isFn(options.success) || isFn(options.fail) || isFn(options.complete)) {
  339. return wrapperReturnValue(name, invokeApi.apply(void 0, [name, api, options].concat(params)));
  340. }
  341. return wrapperReturnValue(name, handlePromise(new Promise(function (resolve, reject) {
  342. invokeApi.apply(void 0, [name, api, Object.assign({}, options, {
  343. success: resolve,
  344. fail: reject })].concat(
  345. params));
  346. })));
  347. };
  348. }
  349. var EPS = 1e-4;
  350. var BASE_DEVICE_WIDTH = 750;
  351. var isIOS = false;
  352. var deviceWidth = 0;
  353. var deviceDPR = 0;
  354. function checkDeviceWidth() {var _wx$getSystemInfoSync =
  355. wx.getSystemInfoSync(),platform = _wx$getSystemInfoSync.platform,pixelRatio = _wx$getSystemInfoSync.pixelRatio,windowWidth = _wx$getSystemInfoSync.windowWidth; // uni=>wx runtime 编译目标是 uni 对象,内部不允许直接使用 uni
  356. deviceWidth = windowWidth;
  357. deviceDPR = pixelRatio;
  358. isIOS = platform === 'ios';
  359. }
  360. function upx2px(number, newDeviceWidth) {
  361. if (deviceWidth === 0) {
  362. checkDeviceWidth();
  363. }
  364. number = Number(number);
  365. if (number === 0) {
  366. return 0;
  367. }
  368. var result = number / BASE_DEVICE_WIDTH * (newDeviceWidth || deviceWidth);
  369. if (result < 0) {
  370. result = -result;
  371. }
  372. result = Math.floor(result + EPS);
  373. if (result === 0) {
  374. if (deviceDPR === 1 || !isIOS) {
  375. result = 1;
  376. } else {
  377. result = 0.5;
  378. }
  379. }
  380. return number < 0 ? -result : result;
  381. }
  382. var LOCALE_ZH_HANS = 'zh-Hans';
  383. var LOCALE_ZH_HANT = 'zh-Hant';
  384. var LOCALE_EN = 'en';
  385. var LOCALE_FR = 'fr';
  386. var LOCALE_ES = 'es';
  387. var messages = {};
  388. var locale;
  389. {
  390. locale = normalizeLocale(wx.getSystemInfoSync().language) || LOCALE_EN;
  391. }
  392. function initI18nMessages() {
  393. if (!isEnableLocale()) {
  394. return;
  395. }
  396. var localeKeys = Object.keys(__uniConfig.locales);
  397. if (localeKeys.length) {
  398. localeKeys.forEach(function (locale) {
  399. var curMessages = messages[locale];
  400. var userMessages = __uniConfig.locales[locale];
  401. if (curMessages) {
  402. Object.assign(curMessages, userMessages);
  403. } else {
  404. messages[locale] = userMessages;
  405. }
  406. });
  407. }
  408. }
  409. initI18nMessages();
  410. var i18n = (0, _uniI18n.initVueI18n)(
  411. locale,
  412. {});
  413. var t = i18n.t;
  414. var i18nMixin = i18n.mixin = {
  415. beforeCreate: function beforeCreate() {var _this = this;
  416. var unwatch = i18n.i18n.watchLocale(function () {
  417. _this.$forceUpdate();
  418. });
  419. this.$once('hook:beforeDestroy', function () {
  420. unwatch();
  421. });
  422. },
  423. methods: {
  424. $$t: function $$t(key, values) {
  425. return t(key, values);
  426. } } };
  427. var setLocale = i18n.setLocale;
  428. var getLocale = i18n.getLocale;
  429. function initAppLocale(Vue, appVm, locale) {
  430. var state = Vue.observable({
  431. locale: locale || i18n.getLocale() });
  432. var localeWatchers = [];
  433. appVm.$watchLocale = function (fn) {
  434. localeWatchers.push(fn);
  435. };
  436. Object.defineProperty(appVm, '$locale', {
  437. get: function get() {
  438. return state.locale;
  439. },
  440. set: function set(v) {
  441. state.locale = v;
  442. localeWatchers.forEach(function (watch) {return watch(v);});
  443. } });
  444. }
  445. function isEnableLocale() {
  446. return typeof __uniConfig !== 'undefined' && __uniConfig.locales && !!Object.keys(__uniConfig.locales).length;
  447. }
  448. function include(str, parts) {
  449. return !!parts.find(function (part) {return str.indexOf(part) !== -1;});
  450. }
  451. function startsWith(str, parts) {
  452. return parts.find(function (part) {return str.indexOf(part) === 0;});
  453. }
  454. function normalizeLocale(locale, messages) {
  455. if (!locale) {
  456. return;
  457. }
  458. locale = locale.trim().replace(/_/g, '-');
  459. if (messages && messages[locale]) {
  460. return locale;
  461. }
  462. locale = locale.toLowerCase();
  463. if (locale === 'chinese') {
  464. // 支付宝
  465. return LOCALE_ZH_HANS;
  466. }
  467. if (locale.indexOf('zh') === 0) {
  468. if (locale.indexOf('-hans') > -1) {
  469. return LOCALE_ZH_HANS;
  470. }
  471. if (locale.indexOf('-hant') > -1) {
  472. return LOCALE_ZH_HANT;
  473. }
  474. if (include(locale, ['-tw', '-hk', '-mo', '-cht'])) {
  475. return LOCALE_ZH_HANT;
  476. }
  477. return LOCALE_ZH_HANS;
  478. }
  479. var lang = startsWith(locale, [LOCALE_EN, LOCALE_FR, LOCALE_ES]);
  480. if (lang) {
  481. return lang;
  482. }
  483. }
  484. // export function initI18n() {
  485. // const localeKeys = Object.keys(__uniConfig.locales || {})
  486. // if (localeKeys.length) {
  487. // localeKeys.forEach((locale) =>
  488. // i18n.add(locale, __uniConfig.locales[locale])
  489. // )
  490. // }
  491. // }
  492. function getLocale$1() {
  493. // 优先使用 $locale
  494. var app = getApp({
  495. allowDefault: true });
  496. if (app && app.$vm) {
  497. return app.$vm.$locale;
  498. }
  499. return normalizeLocale(wx.getSystemInfoSync().language) || LOCALE_EN;
  500. }
  501. function setLocale$1(locale) {
  502. var app = getApp();
  503. if (!app) {
  504. return false;
  505. }
  506. var oldLocale = app.$vm.$locale;
  507. if (oldLocale !== locale) {
  508. app.$vm.$locale = locale;
  509. onLocaleChangeCallbacks.forEach(function (fn) {return fn({
  510. locale: locale });});
  511. return true;
  512. }
  513. return false;
  514. }
  515. var onLocaleChangeCallbacks = [];
  516. function onLocaleChange(fn) {
  517. if (onLocaleChangeCallbacks.indexOf(fn) === -1) {
  518. onLocaleChangeCallbacks.push(fn);
  519. }
  520. }
  521. if (typeof global !== 'undefined') {
  522. global.getLocale = getLocale$1;
  523. }
  524. var interceptors = {
  525. promiseInterceptor: promiseInterceptor };
  526. var baseApi = /*#__PURE__*/Object.freeze({
  527. __proto__: null,
  528. upx2px: upx2px,
  529. getLocale: getLocale$1,
  530. setLocale: setLocale$1,
  531. onLocaleChange: onLocaleChange,
  532. addInterceptor: addInterceptor,
  533. removeInterceptor: removeInterceptor,
  534. interceptors: interceptors });
  535. function findExistsPageIndex(url) {
  536. var pages = getCurrentPages();
  537. var len = pages.length;
  538. while (len--) {
  539. var page = pages[len];
  540. if (page.$page && page.$page.fullPath === url) {
  541. return len;
  542. }
  543. }
  544. return -1;
  545. }
  546. var redirectTo = {
  547. name: function name(fromArgs) {
  548. if (fromArgs.exists === 'back' && fromArgs.delta) {
  549. return 'navigateBack';
  550. }
  551. return 'redirectTo';
  552. },
  553. args: function args(fromArgs) {
  554. if (fromArgs.exists === 'back' && fromArgs.url) {
  555. var existsPageIndex = findExistsPageIndex(fromArgs.url);
  556. if (existsPageIndex !== -1) {
  557. var delta = getCurrentPages().length - 1 - existsPageIndex;
  558. if (delta > 0) {
  559. fromArgs.delta = delta;
  560. }
  561. }
  562. }
  563. } };
  564. var previewImage = {
  565. args: function args(fromArgs) {
  566. var currentIndex = parseInt(fromArgs.current);
  567. if (isNaN(currentIndex)) {
  568. return;
  569. }
  570. var urls = fromArgs.urls;
  571. if (!Array.isArray(urls)) {
  572. return;
  573. }
  574. var len = urls.length;
  575. if (!len) {
  576. return;
  577. }
  578. if (currentIndex < 0) {
  579. currentIndex = 0;
  580. } else if (currentIndex >= len) {
  581. currentIndex = len - 1;
  582. }
  583. if (currentIndex > 0) {
  584. fromArgs.current = urls[currentIndex];
  585. fromArgs.urls = urls.filter(
  586. function (item, index) {return index < currentIndex ? item !== urls[currentIndex] : true;});
  587. } else {
  588. fromArgs.current = urls[0];
  589. }
  590. return {
  591. indicator: false,
  592. loop: false };
  593. } };
  594. var UUID_KEY = '__DC_STAT_UUID';
  595. var deviceId;
  596. function useDeviceId(result) {
  597. deviceId = deviceId || wx.getStorageSync(UUID_KEY);
  598. if (!deviceId) {
  599. deviceId = Date.now() + '' + Math.floor(Math.random() * 1e7);
  600. wx.setStorage({
  601. key: UUID_KEY,
  602. data: deviceId });
  603. }
  604. result.deviceId = deviceId;
  605. }
  606. function addSafeAreaInsets(result) {
  607. if (result.safeArea) {
  608. var safeArea = result.safeArea;
  609. result.safeAreaInsets = {
  610. top: safeArea.top,
  611. left: safeArea.left,
  612. right: result.windowWidth - safeArea.right,
  613. bottom: result.screenHeight - safeArea.bottom };
  614. }
  615. }
  616. function populateParameters(result) {var _result$brand =
  617. result.brand,brand = _result$brand === void 0 ? '' : _result$brand,_result$model = result.model,model = _result$model === void 0 ? '' : _result$model,_result$system = result.system,system = _result$system === void 0 ? '' : _result$system,_result$language = result.language,language = _result$language === void 0 ? '' : _result$language,theme = result.theme,version = result.version,platform = result.platform,fontSizeSetting = result.fontSizeSetting,SDKVersion = result.SDKVersion,pixelRatio = result.pixelRatio,deviceOrientation = result.deviceOrientation;
  618. // const isQuickApp = "mp-weixin".indexOf('quickapp-webview') !== -1
  619. // osName osVersion
  620. var osName = '';
  621. var osVersion = '';
  622. {
  623. osName = system.split(' ')[0] || '';
  624. osVersion = system.split(' ')[1] || '';
  625. }
  626. var hostVersion = version;
  627. // deviceType
  628. var deviceType = getGetDeviceType(result, model);
  629. // deviceModel
  630. var deviceBrand = getDeviceBrand(brand);
  631. // hostName
  632. var _hostName = getHostName(result);
  633. // deviceOrientation
  634. var _deviceOrientation = deviceOrientation; // 仅 微信 百度 支持
  635. // devicePixelRatio
  636. var _devicePixelRatio = pixelRatio;
  637. // SDKVersion
  638. var _SDKVersion = SDKVersion;
  639. // hostLanguage
  640. var hostLanguage = language.replace(/_/g, '-');
  641. // wx.getAccountInfoSync
  642. var parameters = {
  643. appId: "__UNI__DBE6C8D",
  644. appName: "cbz",
  645. appVersion: "1.0.0",
  646. appVersionCode: "100",
  647. appLanguage: getAppLanguage(hostLanguage),
  648. uniCompileVersion: "3.6.4",
  649. uniRuntimeVersion: "3.6.4",
  650. uniPlatform: undefined || "mp-weixin",
  651. deviceBrand: deviceBrand,
  652. deviceModel: model,
  653. deviceType: deviceType,
  654. devicePixelRatio: _devicePixelRatio,
  655. deviceOrientation: _deviceOrientation,
  656. osName: osName.toLocaleLowerCase(),
  657. osVersion: osVersion,
  658. hostTheme: theme,
  659. hostVersion: hostVersion,
  660. hostLanguage: hostLanguage,
  661. hostName: _hostName,
  662. hostSDKVersion: _SDKVersion,
  663. hostFontSizeSetting: fontSizeSetting,
  664. windowTop: 0,
  665. windowBottom: 0,
  666. // TODO
  667. osLanguage: undefined,
  668. osTheme: undefined,
  669. ua: undefined,
  670. hostPackageName: undefined,
  671. browserName: undefined,
  672. browserVersion: undefined };
  673. Object.assign(result, parameters);
  674. }
  675. function getGetDeviceType(result, model) {
  676. var deviceType = result.deviceType || 'phone';
  677. {
  678. var deviceTypeMaps = {
  679. ipad: 'pad',
  680. windows: 'pc',
  681. mac: 'pc' };
  682. var deviceTypeMapsKeys = Object.keys(deviceTypeMaps);
  683. var _model = model.toLocaleLowerCase();
  684. for (var index = 0; index < deviceTypeMapsKeys.length; index++) {
  685. var _m = deviceTypeMapsKeys[index];
  686. if (_model.indexOf(_m) !== -1) {
  687. deviceType = deviceTypeMaps[_m];
  688. break;
  689. }
  690. }
  691. }
  692. return deviceType;
  693. }
  694. function getDeviceBrand(brand) {
  695. var deviceBrand = brand;
  696. if (deviceBrand) {
  697. deviceBrand = brand.toLocaleLowerCase();
  698. }
  699. return deviceBrand;
  700. }
  701. function getAppLanguage(defaultLanguage) {
  702. return getLocale$1 ?
  703. getLocale$1() :
  704. defaultLanguage;
  705. }
  706. function getHostName(result) {
  707. var _platform = 'WeChat';
  708. var _hostName = result.hostName || _platform; // mp-jd
  709. {
  710. if (result.environment) {
  711. _hostName = result.environment;
  712. } else if (result.host && result.host.env) {
  713. _hostName = result.host.env;
  714. }
  715. }
  716. return _hostName;
  717. }
  718. var getSystemInfo = {
  719. returnValue: function returnValue(result) {
  720. useDeviceId(result);
  721. addSafeAreaInsets(result);
  722. populateParameters(result);
  723. } };
  724. var showActionSheet = {
  725. args: function args(fromArgs) {
  726. if (typeof fromArgs === 'object') {
  727. fromArgs.alertText = fromArgs.title;
  728. }
  729. } };
  730. var getAppBaseInfo = {
  731. returnValue: function returnValue(result) {var _result =
  732. result,version = _result.version,language = _result.language,SDKVersion = _result.SDKVersion,theme = _result.theme;
  733. var _hostName = getHostName(result);
  734. var hostLanguage = language.replace('_', '-');
  735. result = sortObject(Object.assign(result, {
  736. appId: "__UNI__DBE6C8D",
  737. appName: "cbz",
  738. appVersion: "1.0.0",
  739. appVersionCode: "100",
  740. appLanguage: getAppLanguage(hostLanguage),
  741. hostVersion: version,
  742. hostLanguage: hostLanguage,
  743. hostName: _hostName,
  744. hostSDKVersion: SDKVersion,
  745. hostTheme: theme }));
  746. } };
  747. var getDeviceInfo = {
  748. returnValue: function returnValue(result) {var _result2 =
  749. result,brand = _result2.brand,model = _result2.model;
  750. var deviceType = getGetDeviceType(result, model);
  751. var deviceBrand = getDeviceBrand(brand);
  752. useDeviceId(result);
  753. result = sortObject(Object.assign(result, {
  754. deviceType: deviceType,
  755. deviceBrand: deviceBrand,
  756. deviceModel: model }));
  757. } };
  758. var getWindowInfo = {
  759. returnValue: function returnValue(result) {
  760. addSafeAreaInsets(result);
  761. result = sortObject(Object.assign(result, {
  762. windowTop: 0,
  763. windowBottom: 0 }));
  764. } };
  765. var getAppAuthorizeSetting = {
  766. returnValue: function returnValue(result) {var
  767. locationReducedAccuracy = result.locationReducedAccuracy;
  768. result.locationAccuracy = 'unsupported';
  769. if (locationReducedAccuracy === true) {
  770. result.locationAccuracy = 'reduced';
  771. } else if (locationReducedAccuracy === false) {
  772. result.locationAccuracy = 'full';
  773. }
  774. } };
  775. // import navigateTo from 'uni-helpers/navigate-to'
  776. var protocols = {
  777. redirectTo: redirectTo,
  778. // navigateTo, // 由于在微信开发者工具的页面参数,会显示__id__参数,因此暂时关闭mp-weixin对于navigateTo的AOP
  779. previewImage: previewImage,
  780. getSystemInfo: getSystemInfo,
  781. getSystemInfoSync: getSystemInfo,
  782. showActionSheet: showActionSheet,
  783. getAppBaseInfo: getAppBaseInfo,
  784. getDeviceInfo: getDeviceInfo,
  785. getWindowInfo: getWindowInfo,
  786. getAppAuthorizeSetting: getAppAuthorizeSetting };
  787. var todos = [
  788. 'vibrate',
  789. 'preloadPage',
  790. 'unPreloadPage',
  791. 'loadSubPackage'];
  792. var canIUses = [];
  793. var CALLBACKS = ['success', 'fail', 'cancel', 'complete'];
  794. function processCallback(methodName, method, returnValue) {
  795. return function (res) {
  796. return method(processReturnValue(methodName, res, returnValue));
  797. };
  798. }
  799. function processArgs(methodName, fromArgs) {var argsOption = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};var returnValue = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : {};var keepFromArgs = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : false;
  800. if (isPlainObject(fromArgs)) {// 一般 api 的参数解析
  801. var toArgs = keepFromArgs === true ? fromArgs : {}; // returnValue 为 false 时,说明是格式化返回值,直接在返回值对象上修改赋值
  802. if (isFn(argsOption)) {
  803. argsOption = argsOption(fromArgs, toArgs) || {};
  804. }
  805. for (var key in fromArgs) {
  806. if (hasOwn(argsOption, key)) {
  807. var keyOption = argsOption[key];
  808. if (isFn(keyOption)) {
  809. keyOption = keyOption(fromArgs[key], fromArgs, toArgs);
  810. }
  811. if (!keyOption) {// 不支持的参数
  812. console.warn("The '".concat(methodName, "' method of platform '\u5FAE\u4FE1\u5C0F\u7A0B\u5E8F' does not support option '").concat(key, "'"));
  813. } else if (isStr(keyOption)) {// 重写参数 key
  814. toArgs[keyOption] = fromArgs[key];
  815. } else if (isPlainObject(keyOption)) {// {name:newName,value:value}可重新指定参数 key:value
  816. toArgs[keyOption.name ? keyOption.name : key] = keyOption.value;
  817. }
  818. } else if (CALLBACKS.indexOf(key) !== -1) {
  819. if (isFn(fromArgs[key])) {
  820. toArgs[key] = processCallback(methodName, fromArgs[key], returnValue);
  821. }
  822. } else {
  823. if (!keepFromArgs) {
  824. toArgs[key] = fromArgs[key];
  825. }
  826. }
  827. }
  828. return toArgs;
  829. } else if (isFn(fromArgs)) {
  830. fromArgs = processCallback(methodName, fromArgs, returnValue);
  831. }
  832. return fromArgs;
  833. }
  834. function processReturnValue(methodName, res, returnValue) {var keepReturnValue = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : false;
  835. if (isFn(protocols.returnValue)) {// 处理通用 returnValue
  836. res = protocols.returnValue(methodName, res);
  837. }
  838. return processArgs(methodName, res, returnValue, {}, keepReturnValue);
  839. }
  840. function wrapper(methodName, method) {
  841. if (hasOwn(protocols, methodName)) {
  842. var protocol = protocols[methodName];
  843. if (!protocol) {// 暂不支持的 api
  844. return function () {
  845. console.error("Platform '\u5FAE\u4FE1\u5C0F\u7A0B\u5E8F' does not support '".concat(methodName, "'."));
  846. };
  847. }
  848. return function (arg1, arg2) {// 目前 api 最多两个参数
  849. var options = protocol;
  850. if (isFn(protocol)) {
  851. options = protocol(arg1);
  852. }
  853. arg1 = processArgs(methodName, arg1, options.args, options.returnValue);
  854. var args = [arg1];
  855. if (typeof arg2 !== 'undefined') {
  856. args.push(arg2);
  857. }
  858. if (isFn(options.name)) {
  859. methodName = options.name(arg1);
  860. } else if (isStr(options.name)) {
  861. methodName = options.name;
  862. }
  863. var returnValue = wx[methodName].apply(wx, args);
  864. if (isSyncApi(methodName)) {// 同步 api
  865. return processReturnValue(methodName, returnValue, options.returnValue, isContextApi(methodName));
  866. }
  867. return returnValue;
  868. };
  869. }
  870. return method;
  871. }
  872. var todoApis = Object.create(null);
  873. var TODOS = [
  874. 'onTabBarMidButtonTap',
  875. 'subscribePush',
  876. 'unsubscribePush',
  877. 'onPush',
  878. 'offPush',
  879. 'share'];
  880. function createTodoApi(name) {
  881. return function todoApi(_ref)
  882. {var fail = _ref.fail,complete = _ref.complete;
  883. var res = {
  884. errMsg: "".concat(name, ":fail method '").concat(name, "' not supported") };
  885. isFn(fail) && fail(res);
  886. isFn(complete) && complete(res);
  887. };
  888. }
  889. TODOS.forEach(function (name) {
  890. todoApis[name] = createTodoApi(name);
  891. });
  892. var providers = {
  893. oauth: ['weixin'],
  894. share: ['weixin'],
  895. payment: ['wxpay'],
  896. push: ['weixin'] };
  897. function getProvider(_ref2)
  898. {var service = _ref2.service,success = _ref2.success,fail = _ref2.fail,complete = _ref2.complete;
  899. var res = false;
  900. if (providers[service]) {
  901. res = {
  902. errMsg: 'getProvider:ok',
  903. service: service,
  904. provider: providers[service] };
  905. isFn(success) && success(res);
  906. } else {
  907. res = {
  908. errMsg: 'getProvider:fail service not found' };
  909. isFn(fail) && fail(res);
  910. }
  911. isFn(complete) && complete(res);
  912. }
  913. var extraApi = /*#__PURE__*/Object.freeze({
  914. __proto__: null,
  915. getProvider: getProvider });
  916. var getEmitter = function () {
  917. var Emitter;
  918. return function getUniEmitter() {
  919. if (!Emitter) {
  920. Emitter = new _vue.default();
  921. }
  922. return Emitter;
  923. };
  924. }();
  925. function apply(ctx, method, args) {
  926. return ctx[method].apply(ctx, args);
  927. }
  928. function $on() {
  929. return apply(getEmitter(), '$on', Array.prototype.slice.call(arguments));
  930. }
  931. function $off() {
  932. return apply(getEmitter(), '$off', Array.prototype.slice.call(arguments));
  933. }
  934. function $once() {
  935. return apply(getEmitter(), '$once', Array.prototype.slice.call(arguments));
  936. }
  937. function $emit() {
  938. return apply(getEmitter(), '$emit', Array.prototype.slice.call(arguments));
  939. }
  940. var eventApi = /*#__PURE__*/Object.freeze({
  941. __proto__: null,
  942. $on: $on,
  943. $off: $off,
  944. $once: $once,
  945. $emit: $emit });
  946. /**
  947. * 框架内 try-catch
  948. */
  949. /**
  950. * 开发者 try-catch
  951. */
  952. function tryCatch(fn) {
  953. return function () {
  954. try {
  955. return fn.apply(fn, arguments);
  956. } catch (e) {
  957. // TODO
  958. console.error(e);
  959. }
  960. };
  961. }
  962. function getApiCallbacks(params) {
  963. var apiCallbacks = {};
  964. for (var name in params) {
  965. var param = params[name];
  966. if (isFn(param)) {
  967. apiCallbacks[name] = tryCatch(param);
  968. delete params[name];
  969. }
  970. }
  971. return apiCallbacks;
  972. }
  973. var cid;
  974. var cidErrMsg;
  975. var enabled;
  976. function normalizePushMessage(message) {
  977. try {
  978. return JSON.parse(message);
  979. } catch (e) {}
  980. return message;
  981. }
  982. function invokePushCallback(
  983. args)
  984. {
  985. if (args.type === 'enabled') {
  986. enabled = true;
  987. } else if (args.type === 'clientId') {
  988. cid = args.cid;
  989. cidErrMsg = args.errMsg;
  990. invokeGetPushCidCallbacks(cid, args.errMsg);
  991. } else if (args.type === 'pushMsg') {
  992. var message = {
  993. type: 'receive',
  994. data: normalizePushMessage(args.message) };
  995. for (var i = 0; i < onPushMessageCallbacks.length; i++) {
  996. var callback = onPushMessageCallbacks[i];
  997. callback(message);
  998. // 该消息已被阻止
  999. if (message.stopped) {
  1000. break;
  1001. }
  1002. }
  1003. } else if (args.type === 'click') {
  1004. onPushMessageCallbacks.forEach(function (callback) {
  1005. callback({
  1006. type: 'click',
  1007. data: normalizePushMessage(args.message) });
  1008. });
  1009. }
  1010. }
  1011. var getPushCidCallbacks = [];
  1012. function invokeGetPushCidCallbacks(cid, errMsg) {
  1013. getPushCidCallbacks.forEach(function (callback) {
  1014. callback(cid, errMsg);
  1015. });
  1016. getPushCidCallbacks.length = 0;
  1017. }
  1018. function getPushClientId(args) {
  1019. if (!isPlainObject(args)) {
  1020. args = {};
  1021. }var _getApiCallbacks =
  1022. getApiCallbacks(args),success = _getApiCallbacks.success,fail = _getApiCallbacks.fail,complete = _getApiCallbacks.complete;
  1023. var hasSuccess = isFn(success);
  1024. var hasFail = isFn(fail);
  1025. var hasComplete = isFn(complete);
  1026. Promise.resolve().then(function () {
  1027. if (typeof enabled === 'undefined') {
  1028. enabled = false;
  1029. cid = '';
  1030. cidErrMsg = 'uniPush is not enabled';
  1031. }
  1032. getPushCidCallbacks.push(function (cid, errMsg) {
  1033. var res;
  1034. if (cid) {
  1035. res = {
  1036. errMsg: 'getPushClientId:ok',
  1037. cid: cid };
  1038. hasSuccess && success(res);
  1039. } else {
  1040. res = {
  1041. errMsg: 'getPushClientId:fail' + (errMsg ? ' ' + errMsg : '') };
  1042. hasFail && fail(res);
  1043. }
  1044. hasComplete && complete(res);
  1045. });
  1046. if (typeof cid !== 'undefined') {
  1047. invokeGetPushCidCallbacks(cid, cidErrMsg);
  1048. }
  1049. });
  1050. }
  1051. var onPushMessageCallbacks = [];
  1052. // 不使用 defineOnApi 实现,是因为 defineOnApi 依赖 UniServiceJSBridge ,该对象目前在小程序上未提供,故简单实现
  1053. var onPushMessage = function onPushMessage(fn) {
  1054. if (onPushMessageCallbacks.indexOf(fn) === -1) {
  1055. onPushMessageCallbacks.push(fn);
  1056. }
  1057. };
  1058. var offPushMessage = function offPushMessage(fn) {
  1059. if (!fn) {
  1060. onPushMessageCallbacks.length = 0;
  1061. } else {
  1062. var index = onPushMessageCallbacks.indexOf(fn);
  1063. if (index > -1) {
  1064. onPushMessageCallbacks.splice(index, 1);
  1065. }
  1066. }
  1067. };
  1068. var api = /*#__PURE__*/Object.freeze({
  1069. __proto__: null,
  1070. getPushClientId: getPushClientId,
  1071. onPushMessage: onPushMessage,
  1072. offPushMessage: offPushMessage,
  1073. invokePushCallback: invokePushCallback });
  1074. var MPPage = Page;
  1075. var MPComponent = Component;
  1076. var customizeRE = /:/g;
  1077. var customize = cached(function (str) {
  1078. return camelize(str.replace(customizeRE, '-'));
  1079. });
  1080. function initTriggerEvent(mpInstance) {
  1081. var oldTriggerEvent = mpInstance.triggerEvent;
  1082. var newTriggerEvent = function newTriggerEvent(event) {for (var _len3 = arguments.length, args = new Array(_len3 > 1 ? _len3 - 1 : 0), _key3 = 1; _key3 < _len3; _key3++) {args[_key3 - 1] = arguments[_key3];}
  1083. // 事件名统一转驼峰格式,仅处理:当前组件为 vue 组件、当前组件为 vue 组件子组件
  1084. if (this.$vm || this.dataset && this.dataset.comType) {
  1085. event = customize(event);
  1086. } else {
  1087. // 针对微信/QQ小程序单独补充驼峰格式事件,以兼容历史项目
  1088. var newEvent = customize(event);
  1089. if (newEvent !== event) {
  1090. oldTriggerEvent.apply(this, [newEvent].concat(args));
  1091. }
  1092. }
  1093. return oldTriggerEvent.apply(this, [event].concat(args));
  1094. };
  1095. try {
  1096. // 京东小程序 triggerEvent 为只读
  1097. mpInstance.triggerEvent = newTriggerEvent;
  1098. } catch (error) {
  1099. mpInstance._triggerEvent = newTriggerEvent;
  1100. }
  1101. }
  1102. function initHook(name, options, isComponent) {
  1103. var oldHook = options[name];
  1104. if (!oldHook) {
  1105. options[name] = function () {
  1106. initTriggerEvent(this);
  1107. };
  1108. } else {
  1109. options[name] = function () {
  1110. initTriggerEvent(this);for (var _len4 = arguments.length, args = new Array(_len4), _key4 = 0; _key4 < _len4; _key4++) {args[_key4] = arguments[_key4];}
  1111. return oldHook.apply(this, args);
  1112. };
  1113. }
  1114. }
  1115. if (!MPPage.__$wrappered) {
  1116. MPPage.__$wrappered = true;
  1117. Page = function Page() {var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
  1118. initHook('onLoad', options);
  1119. return MPPage(options);
  1120. };
  1121. Page.after = MPPage.after;
  1122. Component = function Component() {var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
  1123. initHook('created', options);
  1124. return MPComponent(options);
  1125. };
  1126. }
  1127. var PAGE_EVENT_HOOKS = [
  1128. 'onPullDownRefresh',
  1129. 'onReachBottom',
  1130. 'onAddToFavorites',
  1131. 'onShareTimeline',
  1132. 'onShareAppMessage',
  1133. 'onPageScroll',
  1134. 'onResize',
  1135. 'onTabItemTap'];
  1136. function initMocks(vm, mocks) {
  1137. var mpInstance = vm.$mp[vm.mpType];
  1138. mocks.forEach(function (mock) {
  1139. if (hasOwn(mpInstance, mock)) {
  1140. vm[mock] = mpInstance[mock];
  1141. }
  1142. });
  1143. }
  1144. function hasHook(hook, vueOptions) {
  1145. if (!vueOptions) {
  1146. return true;
  1147. }
  1148. if (_vue.default.options && Array.isArray(_vue.default.options[hook])) {
  1149. return true;
  1150. }
  1151. vueOptions = vueOptions.default || vueOptions;
  1152. if (isFn(vueOptions)) {
  1153. if (isFn(vueOptions.extendOptions[hook])) {
  1154. return true;
  1155. }
  1156. if (vueOptions.super &&
  1157. vueOptions.super.options &&
  1158. Array.isArray(vueOptions.super.options[hook])) {
  1159. return true;
  1160. }
  1161. return false;
  1162. }
  1163. if (isFn(vueOptions[hook])) {
  1164. return true;
  1165. }
  1166. var mixins = vueOptions.mixins;
  1167. if (Array.isArray(mixins)) {
  1168. return !!mixins.find(function (mixin) {return hasHook(hook, mixin);});
  1169. }
  1170. }
  1171. function initHooks(mpOptions, hooks, vueOptions) {
  1172. hooks.forEach(function (hook) {
  1173. if (hasHook(hook, vueOptions)) {
  1174. mpOptions[hook] = function (args) {
  1175. return this.$vm && this.$vm.__call_hook(hook, args);
  1176. };
  1177. }
  1178. });
  1179. }
  1180. function initUnknownHooks(mpOptions, vueOptions) {var excludes = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : [];
  1181. findHooks(vueOptions).forEach(function (hook) {return initHook$1(mpOptions, hook, excludes);});
  1182. }
  1183. function findHooks(vueOptions) {var hooks = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : [];
  1184. if (vueOptions) {
  1185. Object.keys(vueOptions).forEach(function (name) {
  1186. if (name.indexOf('on') === 0 && isFn(vueOptions[name])) {
  1187. hooks.push(name);
  1188. }
  1189. });
  1190. }
  1191. return hooks;
  1192. }
  1193. function initHook$1(mpOptions, hook, excludes) {
  1194. if (excludes.indexOf(hook) === -1 && !hasOwn(mpOptions, hook)) {
  1195. mpOptions[hook] = function (args) {
  1196. return this.$vm && this.$vm.__call_hook(hook, args);
  1197. };
  1198. }
  1199. }
  1200. function initVueComponent(Vue, vueOptions) {
  1201. vueOptions = vueOptions.default || vueOptions;
  1202. var VueComponent;
  1203. if (isFn(vueOptions)) {
  1204. VueComponent = vueOptions;
  1205. } else {
  1206. VueComponent = Vue.extend(vueOptions);
  1207. }
  1208. vueOptions = VueComponent.options;
  1209. return [VueComponent, vueOptions];
  1210. }
  1211. function initSlots(vm, vueSlots) {
  1212. if (Array.isArray(vueSlots) && vueSlots.length) {
  1213. var $slots = Object.create(null);
  1214. vueSlots.forEach(function (slotName) {
  1215. $slots[slotName] = true;
  1216. });
  1217. vm.$scopedSlots = vm.$slots = $slots;
  1218. }
  1219. }
  1220. function initVueIds(vueIds, mpInstance) {
  1221. vueIds = (vueIds || '').split(',');
  1222. var len = vueIds.length;
  1223. if (len === 1) {
  1224. mpInstance._$vueId = vueIds[0];
  1225. } else if (len === 2) {
  1226. mpInstance._$vueId = vueIds[0];
  1227. mpInstance._$vuePid = vueIds[1];
  1228. }
  1229. }
  1230. function initData(vueOptions, context) {
  1231. var data = vueOptions.data || {};
  1232. var methods = vueOptions.methods || {};
  1233. if (typeof data === 'function') {
  1234. try {
  1235. data = data.call(context); // 支持 Vue.prototype 上挂的数据
  1236. } catch (e) {
  1237. if (Object({"NODE_ENV":"development","VUE_APP_NAME":"cbz","VUE_APP_PLATFORM":"mp-weixin","BASE_URL":"/"}).VUE_APP_DEBUG) {
  1238. console.warn('根据 Vue 的 data 函数初始化小程序 data 失败,请尽量确保 data 函数中不访问 vm 对象,否则可能影响首次数据渲染速度。', data);
  1239. }
  1240. }
  1241. } else {
  1242. try {
  1243. // 对 data 格式化
  1244. data = JSON.parse(JSON.stringify(data));
  1245. } catch (e) {}
  1246. }
  1247. if (!isPlainObject(data)) {
  1248. data = {};
  1249. }
  1250. Object.keys(methods).forEach(function (methodName) {
  1251. if (context.__lifecycle_hooks__.indexOf(methodName) === -1 && !hasOwn(data, methodName)) {
  1252. data[methodName] = methods[methodName];
  1253. }
  1254. });
  1255. return data;
  1256. }
  1257. var PROP_TYPES = [String, Number, Boolean, Object, Array, null];
  1258. function createObserver(name) {
  1259. return function observer(newVal, oldVal) {
  1260. if (this.$vm) {
  1261. this.$vm[name] = newVal; // 为了触发其他非 render watcher
  1262. }
  1263. };
  1264. }
  1265. function initBehaviors(vueOptions, initBehavior) {
  1266. var vueBehaviors = vueOptions.behaviors;
  1267. var vueExtends = vueOptions.extends;
  1268. var vueMixins = vueOptions.mixins;
  1269. var vueProps = vueOptions.props;
  1270. if (!vueProps) {
  1271. vueOptions.props = vueProps = [];
  1272. }
  1273. var behaviors = [];
  1274. if (Array.isArray(vueBehaviors)) {
  1275. vueBehaviors.forEach(function (behavior) {
  1276. behaviors.push(behavior.replace('uni://', "wx".concat("://")));
  1277. if (behavior === 'uni://form-field') {
  1278. if (Array.isArray(vueProps)) {
  1279. vueProps.push('name');
  1280. vueProps.push('value');
  1281. } else {
  1282. vueProps.name = {
  1283. type: String,
  1284. default: '' };
  1285. vueProps.value = {
  1286. type: [String, Number, Boolean, Array, Object, Date],
  1287. default: '' };
  1288. }
  1289. }
  1290. });
  1291. }
  1292. if (isPlainObject(vueExtends) && vueExtends.props) {
  1293. behaviors.push(
  1294. initBehavior({
  1295. properties: initProperties(vueExtends.props, true) }));
  1296. }
  1297. if (Array.isArray(vueMixins)) {
  1298. vueMixins.forEach(function (vueMixin) {
  1299. if (isPlainObject(vueMixin) && vueMixin.props) {
  1300. behaviors.push(
  1301. initBehavior({
  1302. properties: initProperties(vueMixin.props, true) }));
  1303. }
  1304. });
  1305. }
  1306. return behaviors;
  1307. }
  1308. function parsePropType(key, type, defaultValue, file) {
  1309. // [String]=>String
  1310. if (Array.isArray(type) && type.length === 1) {
  1311. return type[0];
  1312. }
  1313. return type;
  1314. }
  1315. function initProperties(props) {var isBehavior = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;var file = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : '';var options = arguments.length > 3 ? arguments[3] : undefined;
  1316. var properties = {};
  1317. if (!isBehavior) {
  1318. properties.vueId = {
  1319. type: String,
  1320. value: '' };
  1321. {
  1322. if (options.virtualHost) {
  1323. properties.virtualHostStyle = {
  1324. type: null,
  1325. value: '' };
  1326. properties.virtualHostClass = {
  1327. type: null,
  1328. value: '' };
  1329. }
  1330. }
  1331. // scopedSlotsCompiler auto
  1332. properties.scopedSlotsCompiler = {
  1333. type: String,
  1334. value: '' };
  1335. properties.vueSlots = { // 小程序不能直接定义 $slots 的 props,所以通过 vueSlots 转换到 $slots
  1336. type: null,
  1337. value: [],
  1338. observer: function observer(newVal, oldVal) {
  1339. var $slots = Object.create(null);
  1340. newVal.forEach(function (slotName) {
  1341. $slots[slotName] = true;
  1342. });
  1343. this.setData({
  1344. $slots: $slots });
  1345. } };
  1346. }
  1347. if (Array.isArray(props)) {// ['title']
  1348. props.forEach(function (key) {
  1349. properties[key] = {
  1350. type: null,
  1351. observer: createObserver(key) };
  1352. });
  1353. } else if (isPlainObject(props)) {// {title:{type:String,default:''},content:String}
  1354. Object.keys(props).forEach(function (key) {
  1355. var opts = props[key];
  1356. if (isPlainObject(opts)) {// title:{type:String,default:''}
  1357. var value = opts.default;
  1358. if (isFn(value)) {
  1359. value = value();
  1360. }
  1361. opts.type = parsePropType(key, opts.type);
  1362. properties[key] = {
  1363. type: PROP_TYPES.indexOf(opts.type) !== -1 ? opts.type : null,
  1364. value: value,
  1365. observer: createObserver(key) };
  1366. } else {// content:String
  1367. var type = parsePropType(key, opts);
  1368. properties[key] = {
  1369. type: PROP_TYPES.indexOf(type) !== -1 ? type : null,
  1370. observer: createObserver(key) };
  1371. }
  1372. });
  1373. }
  1374. return properties;
  1375. }
  1376. function wrapper$1(event) {
  1377. // TODO 又得兼容 mpvue 的 mp 对象
  1378. try {
  1379. event.mp = JSON.parse(JSON.stringify(event));
  1380. } catch (e) {}
  1381. event.stopPropagation = noop;
  1382. event.preventDefault = noop;
  1383. event.target = event.target || {};
  1384. if (!hasOwn(event, 'detail')) {
  1385. event.detail = {};
  1386. }
  1387. if (hasOwn(event, 'markerId')) {
  1388. event.detail = typeof event.detail === 'object' ? event.detail : {};
  1389. event.detail.markerId = event.markerId;
  1390. }
  1391. if (isPlainObject(event.detail)) {
  1392. event.target = Object.assign({}, event.target, event.detail);
  1393. }
  1394. return event;
  1395. }
  1396. function getExtraValue(vm, dataPathsArray) {
  1397. var context = vm;
  1398. dataPathsArray.forEach(function (dataPathArray) {
  1399. var dataPath = dataPathArray[0];
  1400. var value = dataPathArray[2];
  1401. if (dataPath || typeof value !== 'undefined') {// ['','',index,'disable']
  1402. var propPath = dataPathArray[1];
  1403. var valuePath = dataPathArray[3];
  1404. var vFor;
  1405. if (Number.isInteger(dataPath)) {
  1406. vFor = dataPath;
  1407. } else if (!dataPath) {
  1408. vFor = context;
  1409. } else if (typeof dataPath === 'string' && dataPath) {
  1410. if (dataPath.indexOf('#s#') === 0) {
  1411. vFor = dataPath.substr(3);
  1412. } else {
  1413. vFor = vm.__get_value(dataPath, context);
  1414. }
  1415. }
  1416. if (Number.isInteger(vFor)) {
  1417. context = value;
  1418. } else if (!propPath) {
  1419. context = vFor[value];
  1420. } else {
  1421. if (Array.isArray(vFor)) {
  1422. context = vFor.find(function (vForItem) {
  1423. return vm.__get_value(propPath, vForItem) === value;
  1424. });
  1425. } else if (isPlainObject(vFor)) {
  1426. context = Object.keys(vFor).find(function (vForKey) {
  1427. return vm.__get_value(propPath, vFor[vForKey]) === value;
  1428. });
  1429. } else {
  1430. console.error('v-for 暂不支持循环数据:', vFor);
  1431. }
  1432. }
  1433. if (valuePath) {
  1434. context = vm.__get_value(valuePath, context);
  1435. }
  1436. }
  1437. });
  1438. return context;
  1439. }
  1440. function processEventExtra(vm, extra, event, __args__) {
  1441. var extraObj = {};
  1442. if (Array.isArray(extra) && extra.length) {
  1443. /**
  1444. *[
  1445. * ['data.items', 'data.id', item.data.id],
  1446. * ['metas', 'id', meta.id]
  1447. *],
  1448. *[
  1449. * ['data.items', 'data.id', item.data.id],
  1450. * ['metas', 'id', meta.id]
  1451. *],
  1452. *'test'
  1453. */
  1454. extra.forEach(function (dataPath, index) {
  1455. if (typeof dataPath === 'string') {
  1456. if (!dataPath) {// model,prop.sync
  1457. extraObj['$' + index] = vm;
  1458. } else {
  1459. if (dataPath === '$event') {// $event
  1460. extraObj['$' + index] = event;
  1461. } else if (dataPath === 'arguments') {
  1462. extraObj['$' + index] = event.detail ? event.detail.__args__ || __args__ : __args__;
  1463. } else if (dataPath.indexOf('$event.') === 0) {// $event.target.value
  1464. extraObj['$' + index] = vm.__get_value(dataPath.replace('$event.', ''), event);
  1465. } else {
  1466. extraObj['$' + index] = vm.__get_value(dataPath);
  1467. }
  1468. }
  1469. } else {
  1470. extraObj['$' + index] = getExtraValue(vm, dataPath);
  1471. }
  1472. });
  1473. }
  1474. return extraObj;
  1475. }
  1476. function getObjByArray(arr) {
  1477. var obj = {};
  1478. for (var i = 1; i < arr.length; i++) {
  1479. var element = arr[i];
  1480. obj[element[0]] = element[1];
  1481. }
  1482. return obj;
  1483. }
  1484. function processEventArgs(vm, event) {var args = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : [];var extra = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : [];var isCustom = arguments.length > 4 ? arguments[4] : undefined;var methodName = arguments.length > 5 ? arguments[5] : undefined;
  1485. var isCustomMPEvent = false; // wxcomponent 组件,传递原始 event 对象
  1486. // fixed 用户直接触发 mpInstance.triggerEvent
  1487. var __args__ = isPlainObject(event.detail) ?
  1488. event.detail.__args__ || [event.detail] :
  1489. [event.detail];
  1490. if (isCustom) {// 自定义事件
  1491. isCustomMPEvent = event.currentTarget &&
  1492. event.currentTarget.dataset &&
  1493. event.currentTarget.dataset.comType === 'wx';
  1494. if (!args.length) {// 无参数,直接传入 event 或 detail 数组
  1495. if (isCustomMPEvent) {
  1496. return [event];
  1497. }
  1498. return __args__;
  1499. }
  1500. }
  1501. var extraObj = processEventExtra(vm, extra, event, __args__);
  1502. var ret = [];
  1503. args.forEach(function (arg) {
  1504. if (arg === '$event') {
  1505. if (methodName === '__set_model' && !isCustom) {// input v-model value
  1506. ret.push(event.target.value);
  1507. } else {
  1508. if (isCustom && !isCustomMPEvent) {
  1509. ret.push(__args__[0]);
  1510. } else {// wxcomponent 组件或内置组件
  1511. ret.push(event);
  1512. }
  1513. }
  1514. } else {
  1515. if (Array.isArray(arg) && arg[0] === 'o') {
  1516. ret.push(getObjByArray(arg));
  1517. } else if (typeof arg === 'string' && hasOwn(extraObj, arg)) {
  1518. ret.push(extraObj[arg]);
  1519. } else {
  1520. ret.push(arg);
  1521. }
  1522. }
  1523. });
  1524. return ret;
  1525. }
  1526. var ONCE = '~';
  1527. var CUSTOM = '^';
  1528. function isMatchEventType(eventType, optType) {
  1529. return eventType === optType ||
  1530. optType === 'regionchange' && (
  1531. eventType === 'begin' ||
  1532. eventType === 'end');
  1533. }
  1534. function getContextVm(vm) {
  1535. var $parent = vm.$parent;
  1536. // 父组件是 scoped slots 或者其他自定义组件时继续查找
  1537. while ($parent && $parent.$parent && ($parent.$options.generic || $parent.$parent.$options.generic || $parent.$scope._$vuePid)) {
  1538. $parent = $parent.$parent;
  1539. }
  1540. return $parent && $parent.$parent;
  1541. }
  1542. function handleEvent(event) {var _this2 = this;
  1543. event = wrapper$1(event);
  1544. // [['tap',[['handle',[1,2,a]],['handle1',[1,2,a]]]]]
  1545. var dataset = (event.currentTarget || event.target).dataset;
  1546. if (!dataset) {
  1547. return console.warn('事件信息不存在');
  1548. }
  1549. var eventOpts = dataset.eventOpts || dataset['event-opts']; // 支付宝 web-view 组件 dataset 非驼峰
  1550. if (!eventOpts) {
  1551. return console.warn('事件信息不存在');
  1552. }
  1553. // [['handle',[1,2,a]],['handle1',[1,2,a]]]
  1554. var eventType = event.type;
  1555. var ret = [];
  1556. eventOpts.forEach(function (eventOpt) {
  1557. var type = eventOpt[0];
  1558. var eventsArray = eventOpt[1];
  1559. var isCustom = type.charAt(0) === CUSTOM;
  1560. type = isCustom ? type.slice(1) : type;
  1561. var isOnce = type.charAt(0) === ONCE;
  1562. type = isOnce ? type.slice(1) : type;
  1563. if (eventsArray && isMatchEventType(eventType, type)) {
  1564. eventsArray.forEach(function (eventArray) {
  1565. var methodName = eventArray[0];
  1566. if (methodName) {
  1567. var handlerCtx = _this2.$vm;
  1568. if (handlerCtx.$options.generic) {// mp-weixin,mp-toutiao 抽象节点模拟 scoped slots
  1569. handlerCtx = getContextVm(handlerCtx) || handlerCtx;
  1570. }
  1571. if (methodName === '$emit') {
  1572. handlerCtx.$emit.apply(handlerCtx,
  1573. processEventArgs(
  1574. _this2.$vm,
  1575. event,
  1576. eventArray[1],
  1577. eventArray[2],
  1578. isCustom,
  1579. methodName));
  1580. return;
  1581. }
  1582. var handler = handlerCtx[methodName];
  1583. if (!isFn(handler)) {
  1584. var _type = _this2.$vm.mpType === 'page' ? 'Page' : 'Component';
  1585. var path = _this2.route || _this2.is;
  1586. throw new Error("".concat(_type, " \"").concat(path, "\" does not have a method \"").concat(methodName, "\""));
  1587. }
  1588. if (isOnce) {
  1589. if (handler.once) {
  1590. return;
  1591. }
  1592. handler.once = true;
  1593. }
  1594. var params = processEventArgs(
  1595. _this2.$vm,
  1596. event,
  1597. eventArray[1],
  1598. eventArray[2],
  1599. isCustom,
  1600. methodName);
  1601. params = Array.isArray(params) ? params : [];
  1602. // 参数尾部增加原始事件对象用于复杂表达式内获取额外数据
  1603. if (/=\s*\S+\.eventParams\s*\|\|\s*\S+\[['"]event-params['"]\]/.test(handler.toString())) {
  1604. // eslint-disable-next-line no-sparse-arrays
  1605. params = params.concat([,,,,,,,,,, event]);
  1606. }
  1607. ret.push(handler.apply(handlerCtx, params));
  1608. }
  1609. });
  1610. }
  1611. });
  1612. if (
  1613. eventType === 'input' &&
  1614. ret.length === 1 &&
  1615. typeof ret[0] !== 'undefined')
  1616. {
  1617. return ret[0];
  1618. }
  1619. }
  1620. var eventChannels = {};
  1621. var eventChannelStack = [];
  1622. function getEventChannel(id) {
  1623. if (id) {
  1624. var eventChannel = eventChannels[id];
  1625. delete eventChannels[id];
  1626. return eventChannel;
  1627. }
  1628. return eventChannelStack.shift();
  1629. }
  1630. var hooks = [
  1631. 'onShow',
  1632. 'onHide',
  1633. 'onError',
  1634. 'onPageNotFound',
  1635. 'onThemeChange',
  1636. 'onUnhandledRejection'];
  1637. function initEventChannel() {
  1638. _vue.default.prototype.getOpenerEventChannel = function () {
  1639. // 微信小程序使用自身getOpenerEventChannel
  1640. {
  1641. return this.$scope.getOpenerEventChannel();
  1642. }
  1643. };
  1644. var callHook = _vue.default.prototype.__call_hook;
  1645. _vue.default.prototype.__call_hook = function (hook, args) {
  1646. if (hook === 'onLoad' && args && args.__id__) {
  1647. this.__eventChannel__ = getEventChannel(args.__id__);
  1648. delete args.__id__;
  1649. }
  1650. return callHook.call(this, hook, args);
  1651. };
  1652. }
  1653. function initScopedSlotsParams() {
  1654. var center = {};
  1655. var parents = {};
  1656. _vue.default.prototype.$hasScopedSlotsParams = function (vueId) {
  1657. var has = center[vueId];
  1658. if (!has) {
  1659. parents[vueId] = this;
  1660. this.$on('hook:destroyed', function () {
  1661. delete parents[vueId];
  1662. });
  1663. }
  1664. return has;
  1665. };
  1666. _vue.default.prototype.$getScopedSlotsParams = function (vueId, name, key) {
  1667. var data = center[vueId];
  1668. if (data) {
  1669. var object = data[name] || {};
  1670. return key ? object[key] : object;
  1671. } else {
  1672. parents[vueId] = this;
  1673. this.$on('hook:destroyed', function () {
  1674. delete parents[vueId];
  1675. });
  1676. }
  1677. };
  1678. _vue.default.prototype.$setScopedSlotsParams = function (name, value) {
  1679. var vueIds = this.$options.propsData.vueId;
  1680. if (vueIds) {
  1681. var vueId = vueIds.split(',')[0];
  1682. var object = center[vueId] = center[vueId] || {};
  1683. object[name] = value;
  1684. if (parents[vueId]) {
  1685. parents[vueId].$forceUpdate();
  1686. }
  1687. }
  1688. };
  1689. _vue.default.mixin({
  1690. destroyed: function destroyed() {
  1691. var propsData = this.$options.propsData;
  1692. var vueId = propsData && propsData.vueId;
  1693. if (vueId) {
  1694. delete center[vueId];
  1695. delete parents[vueId];
  1696. }
  1697. } });
  1698. }
  1699. function parseBaseApp(vm, _ref3)
  1700. {var mocks = _ref3.mocks,initRefs = _ref3.initRefs;
  1701. initEventChannel();
  1702. {
  1703. initScopedSlotsParams();
  1704. }
  1705. if (vm.$options.store) {
  1706. _vue.default.prototype.$store = vm.$options.store;
  1707. }
  1708. uniIdMixin(_vue.default);
  1709. _vue.default.prototype.mpHost = "mp-weixin";
  1710. _vue.default.mixin({
  1711. beforeCreate: function beforeCreate() {
  1712. if (!this.$options.mpType) {
  1713. return;
  1714. }
  1715. this.mpType = this.$options.mpType;
  1716. this.$mp = _defineProperty({
  1717. data: {} },
  1718. this.mpType, this.$options.mpInstance);
  1719. this.$scope = this.$options.mpInstance;
  1720. delete this.$options.mpType;
  1721. delete this.$options.mpInstance;
  1722. if (this.mpType === 'page' && typeof getApp === 'function') {// hack vue-i18n
  1723. var app = getApp();
  1724. if (app.$vm && app.$vm.$i18n) {
  1725. this._i18n = app.$vm.$i18n;
  1726. }
  1727. }
  1728. if (this.mpType !== 'app') {
  1729. initRefs(this);
  1730. initMocks(this, mocks);
  1731. }
  1732. } });
  1733. var appOptions = {
  1734. onLaunch: function onLaunch(args) {
  1735. if (this.$vm) {// 已经初始化过了,主要是为了百度,百度 onShow 在 onLaunch 之前
  1736. return;
  1737. }
  1738. {
  1739. if (wx.canIUse && !wx.canIUse('nextTick')) {// 事实 上2.2.3 即可,简单使用 2.3.0 的 nextTick 判断
  1740. console.error('当前微信基础库版本过低,请将 微信开发者工具-详情-项目设置-调试基础库版本 更换为`2.3.0`以上');
  1741. }
  1742. }
  1743. this.$vm = vm;
  1744. this.$vm.$mp = {
  1745. app: this };
  1746. this.$vm.$scope = this;
  1747. // vm 上也挂载 globalData
  1748. this.$vm.globalData = this.globalData;
  1749. this.$vm._isMounted = true;
  1750. this.$vm.__call_hook('mounted', args);
  1751. this.$vm.__call_hook('onLaunch', args);
  1752. } };
  1753. // 兼容旧版本 globalData
  1754. appOptions.globalData = vm.$options.globalData || {};
  1755. // 将 methods 中的方法挂在 getApp() 中
  1756. var methods = vm.$options.methods;
  1757. if (methods) {
  1758. Object.keys(methods).forEach(function (name) {
  1759. appOptions[name] = methods[name];
  1760. });
  1761. }
  1762. initAppLocale(_vue.default, vm, normalizeLocale(wx.getSystemInfoSync().language) || LOCALE_EN);
  1763. initHooks(appOptions, hooks);
  1764. initUnknownHooks(appOptions, vm.$options);
  1765. return appOptions;
  1766. }
  1767. var mocks = ['__route__', '__wxExparserNodeId__', '__wxWebviewId__'];
  1768. function findVmByVueId(vm, vuePid) {
  1769. var $children = vm.$children;
  1770. // 优先查找直属(反向查找:https://github.com/dcloudio/uni-app/issues/1200)
  1771. for (var i = $children.length - 1; i >= 0; i--) {
  1772. var childVm = $children[i];
  1773. if (childVm.$scope._$vueId === vuePid) {
  1774. return childVm;
  1775. }
  1776. }
  1777. // 反向递归查找
  1778. var parentVm;
  1779. for (var _i = $children.length - 1; _i >= 0; _i--) {
  1780. parentVm = findVmByVueId($children[_i], vuePid);
  1781. if (parentVm) {
  1782. return parentVm;
  1783. }
  1784. }
  1785. }
  1786. function initBehavior(options) {
  1787. return Behavior(options);
  1788. }
  1789. function isPage() {
  1790. return !!this.route;
  1791. }
  1792. function initRelation(detail) {
  1793. this.triggerEvent('__l', detail);
  1794. }
  1795. function selectAllComponents(mpInstance, selector, $refs) {
  1796. var components = mpInstance.selectAllComponents(selector);
  1797. components.forEach(function (component) {
  1798. var ref = component.dataset.ref;
  1799. $refs[ref] = component.$vm || component;
  1800. {
  1801. if (component.dataset.vueGeneric === 'scoped') {
  1802. component.selectAllComponents('.scoped-ref').forEach(function (scopedComponent) {
  1803. selectAllComponents(scopedComponent, selector, $refs);
  1804. });
  1805. }
  1806. }
  1807. });
  1808. }
  1809. function initRefs(vm) {
  1810. var mpInstance = vm.$scope;
  1811. Object.defineProperty(vm, '$refs', {
  1812. get: function get() {
  1813. var $refs = {};
  1814. selectAllComponents(mpInstance, '.vue-ref', $refs);
  1815. // TODO 暂不考虑 for 中的 scoped
  1816. var forComponents = mpInstance.selectAllComponents('.vue-ref-in-for');
  1817. forComponents.forEach(function (component) {
  1818. var ref = component.dataset.ref;
  1819. if (!$refs[ref]) {
  1820. $refs[ref] = [];
  1821. }
  1822. $refs[ref].push(component.$vm || component);
  1823. });
  1824. return $refs;
  1825. } });
  1826. }
  1827. function handleLink(event) {var _ref4 =
  1828. event.detail || event.value,vuePid = _ref4.vuePid,vueOptions = _ref4.vueOptions; // detail 是微信,value 是百度(dipatch)
  1829. var parentVm;
  1830. if (vuePid) {
  1831. parentVm = findVmByVueId(this.$vm, vuePid);
  1832. }
  1833. if (!parentVm) {
  1834. parentVm = this.$vm;
  1835. }
  1836. vueOptions.parent = parentVm;
  1837. }
  1838. function parseApp(vm) {
  1839. return parseBaseApp(vm, {
  1840. mocks: mocks,
  1841. initRefs: initRefs });
  1842. }
  1843. function createApp(vm) {
  1844. App(parseApp(vm));
  1845. return vm;
  1846. }
  1847. var encodeReserveRE = /[!'()*]/g;
  1848. var encodeReserveReplacer = function encodeReserveReplacer(c) {return '%' + c.charCodeAt(0).toString(16);};
  1849. var commaRE = /%2C/g;
  1850. // fixed encodeURIComponent which is more conformant to RFC3986:
  1851. // - escapes [!'()*]
  1852. // - preserve commas
  1853. var encode = function encode(str) {return encodeURIComponent(str).
  1854. replace(encodeReserveRE, encodeReserveReplacer).
  1855. replace(commaRE, ',');};
  1856. function stringifyQuery(obj) {var encodeStr = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : encode;
  1857. var res = obj ? Object.keys(obj).map(function (key) {
  1858. var val = obj[key];
  1859. if (val === undefined) {
  1860. return '';
  1861. }
  1862. if (val === null) {
  1863. return encodeStr(key);
  1864. }
  1865. if (Array.isArray(val)) {
  1866. var result = [];
  1867. val.forEach(function (val2) {
  1868. if (val2 === undefined) {
  1869. return;
  1870. }
  1871. if (val2 === null) {
  1872. result.push(encodeStr(key));
  1873. } else {
  1874. result.push(encodeStr(key) + '=' + encodeStr(val2));
  1875. }
  1876. });
  1877. return result.join('&');
  1878. }
  1879. return encodeStr(key) + '=' + encodeStr(val);
  1880. }).filter(function (x) {return x.length > 0;}).join('&') : null;
  1881. return res ? "?".concat(res) : '';
  1882. }
  1883. function parseBaseComponent(vueComponentOptions)
  1884. {var _ref5 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {},isPage = _ref5.isPage,initRelation = _ref5.initRelation;var _initVueComponent =
  1885. initVueComponent(_vue.default, vueComponentOptions),_initVueComponent2 = _slicedToArray(_initVueComponent, 2),VueComponent = _initVueComponent2[0],vueOptions = _initVueComponent2[1];
  1886. var options = _objectSpread({
  1887. multipleSlots: true,
  1888. addGlobalClass: true },
  1889. vueOptions.options || {});
  1890. {
  1891. // 微信 multipleSlots 部分情况有 bug,导致内容顺序错乱 如 u-list,提供覆盖选项
  1892. if (vueOptions['mp-weixin'] && vueOptions['mp-weixin'].options) {
  1893. Object.assign(options, vueOptions['mp-weixin'].options);
  1894. }
  1895. }
  1896. var componentOptions = {
  1897. options: options,
  1898. data: initData(vueOptions, _vue.default.prototype),
  1899. behaviors: initBehaviors(vueOptions, initBehavior),
  1900. properties: initProperties(vueOptions.props, false, vueOptions.__file, options),
  1901. lifetimes: {
  1902. attached: function attached() {
  1903. var properties = this.properties;
  1904. var options = {
  1905. mpType: isPage.call(this) ? 'page' : 'component',
  1906. mpInstance: this,
  1907. propsData: properties };
  1908. initVueIds(properties.vueId, this);
  1909. // 处理父子关系
  1910. initRelation.call(this, {
  1911. vuePid: this._$vuePid,
  1912. vueOptions: options });
  1913. // 初始化 vue 实例
  1914. this.$vm = new VueComponent(options);
  1915. // 处理$slots,$scopedSlots(暂不支持动态变化$slots)
  1916. initSlots(this.$vm, properties.vueSlots);
  1917. // 触发首次 setData
  1918. this.$vm.$mount();
  1919. },
  1920. ready: function ready() {
  1921. // 当组件 props 默认值为 true,初始化时传入 false 会导致 created,ready 触发, 但 attached 不触发
  1922. // https://developers.weixin.qq.com/community/develop/doc/00066ae2844cc0f8eb883e2a557800
  1923. if (this.$vm) {
  1924. this.$vm._isMounted = true;
  1925. this.$vm.__call_hook('mounted');
  1926. this.$vm.__call_hook('onReady');
  1927. }
  1928. },
  1929. detached: function detached() {
  1930. this.$vm && this.$vm.$destroy();
  1931. } },
  1932. pageLifetimes: {
  1933. show: function show(args) {
  1934. this.$vm && this.$vm.__call_hook('onPageShow', args);
  1935. },
  1936. hide: function hide() {
  1937. this.$vm && this.$vm.__call_hook('onPageHide');
  1938. },
  1939. resize: function resize(size) {
  1940. this.$vm && this.$vm.__call_hook('onPageResize', size);
  1941. } },
  1942. methods: {
  1943. __l: handleLink,
  1944. __e: handleEvent } };
  1945. // externalClasses
  1946. if (vueOptions.externalClasses) {
  1947. componentOptions.externalClasses = vueOptions.externalClasses;
  1948. }
  1949. if (Array.isArray(vueOptions.wxsCallMethods)) {
  1950. vueOptions.wxsCallMethods.forEach(function (callMethod) {
  1951. componentOptions.methods[callMethod] = function (args) {
  1952. return this.$vm[callMethod](args);
  1953. };
  1954. });
  1955. }
  1956. if (isPage) {
  1957. return componentOptions;
  1958. }
  1959. return [componentOptions, VueComponent];
  1960. }
  1961. function parseComponent(vueComponentOptions) {
  1962. return parseBaseComponent(vueComponentOptions, {
  1963. isPage: isPage,
  1964. initRelation: initRelation });
  1965. }
  1966. var hooks$1 = [
  1967. 'onShow',
  1968. 'onHide',
  1969. 'onUnload'];
  1970. hooks$1.push.apply(hooks$1, PAGE_EVENT_HOOKS);
  1971. function parseBasePage(vuePageOptions, _ref6)
  1972. {var isPage = _ref6.isPage,initRelation = _ref6.initRelation;
  1973. var pageOptions = parseComponent(vuePageOptions);
  1974. initHooks(pageOptions.methods, hooks$1, vuePageOptions);
  1975. pageOptions.methods.onLoad = function (query) {
  1976. this.options = query;
  1977. var copyQuery = Object.assign({}, query);
  1978. delete copyQuery.__id__;
  1979. this.$page = {
  1980. fullPath: '/' + (this.route || this.is) + stringifyQuery(copyQuery) };
  1981. this.$vm.$mp.query = query; // 兼容 mpvue
  1982. this.$vm.__call_hook('onLoad', query);
  1983. };
  1984. initUnknownHooks(pageOptions.methods, vuePageOptions, ['onReady']);
  1985. return pageOptions;
  1986. }
  1987. function parsePage(vuePageOptions) {
  1988. return parseBasePage(vuePageOptions, {
  1989. isPage: isPage,
  1990. initRelation: initRelation });
  1991. }
  1992. function createPage(vuePageOptions) {
  1993. {
  1994. return Component(parsePage(vuePageOptions));
  1995. }
  1996. }
  1997. function createComponent(vueOptions) {
  1998. {
  1999. return Component(parseComponent(vueOptions));
  2000. }
  2001. }
  2002. function createSubpackageApp(vm) {
  2003. var appOptions = parseApp(vm);
  2004. var app = getApp({
  2005. allowDefault: true });
  2006. vm.$scope = app;
  2007. var globalData = app.globalData;
  2008. if (globalData) {
  2009. Object.keys(appOptions.globalData).forEach(function (name) {
  2010. if (!hasOwn(globalData, name)) {
  2011. globalData[name] = appOptions.globalData[name];
  2012. }
  2013. });
  2014. }
  2015. Object.keys(appOptions).forEach(function (name) {
  2016. if (!hasOwn(app, name)) {
  2017. app[name] = appOptions[name];
  2018. }
  2019. });
  2020. if (isFn(appOptions.onShow) && wx.onAppShow) {
  2021. wx.onAppShow(function () {for (var _len5 = arguments.length, args = new Array(_len5), _key5 = 0; _key5 < _len5; _key5++) {args[_key5] = arguments[_key5];}
  2022. vm.__call_hook('onShow', args);
  2023. });
  2024. }
  2025. if (isFn(appOptions.onHide) && wx.onAppHide) {
  2026. wx.onAppHide(function () {for (var _len6 = arguments.length, args = new Array(_len6), _key6 = 0; _key6 < _len6; _key6++) {args[_key6] = arguments[_key6];}
  2027. vm.__call_hook('onHide', args);
  2028. });
  2029. }
  2030. if (isFn(appOptions.onLaunch)) {
  2031. var args = wx.getLaunchOptionsSync && wx.getLaunchOptionsSync();
  2032. vm.__call_hook('onLaunch', args);
  2033. }
  2034. return vm;
  2035. }
  2036. function createPlugin(vm) {
  2037. var appOptions = parseApp(vm);
  2038. if (isFn(appOptions.onShow) && wx.onAppShow) {
  2039. wx.onAppShow(function () {for (var _len7 = arguments.length, args = new Array(_len7), _key7 = 0; _key7 < _len7; _key7++) {args[_key7] = arguments[_key7];}
  2040. vm.__call_hook('onShow', args);
  2041. });
  2042. }
  2043. if (isFn(appOptions.onHide) && wx.onAppHide) {
  2044. wx.onAppHide(function () {for (var _len8 = arguments.length, args = new Array(_len8), _key8 = 0; _key8 < _len8; _key8++) {args[_key8] = arguments[_key8];}
  2045. vm.__call_hook('onHide', args);
  2046. });
  2047. }
  2048. if (isFn(appOptions.onLaunch)) {
  2049. var args = wx.getLaunchOptionsSync && wx.getLaunchOptionsSync();
  2050. vm.__call_hook('onLaunch', args);
  2051. }
  2052. return vm;
  2053. }
  2054. todos.forEach(function (todoApi) {
  2055. protocols[todoApi] = false;
  2056. });
  2057. canIUses.forEach(function (canIUseApi) {
  2058. var apiName = protocols[canIUseApi] && protocols[canIUseApi].name ? protocols[canIUseApi].name :
  2059. canIUseApi;
  2060. if (!wx.canIUse(apiName)) {
  2061. protocols[canIUseApi] = false;
  2062. }
  2063. });
  2064. var uni = {};
  2065. if (typeof Proxy !== 'undefined' && "mp-weixin" !== 'app-plus') {
  2066. uni = new Proxy({}, {
  2067. get: function get(target, name) {
  2068. if (hasOwn(target, name)) {
  2069. return target[name];
  2070. }
  2071. if (baseApi[name]) {
  2072. return baseApi[name];
  2073. }
  2074. if (api[name]) {
  2075. return promisify(name, api[name]);
  2076. }
  2077. {
  2078. if (extraApi[name]) {
  2079. return promisify(name, extraApi[name]);
  2080. }
  2081. if (todoApis[name]) {
  2082. return promisify(name, todoApis[name]);
  2083. }
  2084. }
  2085. if (eventApi[name]) {
  2086. return eventApi[name];
  2087. }
  2088. if (!hasOwn(wx, name) && !hasOwn(protocols, name)) {
  2089. return;
  2090. }
  2091. return promisify(name, wrapper(name, wx[name]));
  2092. },
  2093. set: function set(target, name, value) {
  2094. target[name] = value;
  2095. return true;
  2096. } });
  2097. } else {
  2098. Object.keys(baseApi).forEach(function (name) {
  2099. uni[name] = baseApi[name];
  2100. });
  2101. {
  2102. Object.keys(todoApis).forEach(function (name) {
  2103. uni[name] = promisify(name, todoApis[name]);
  2104. });
  2105. Object.keys(extraApi).forEach(function (name) {
  2106. uni[name] = promisify(name, todoApis[name]);
  2107. });
  2108. }
  2109. Object.keys(eventApi).forEach(function (name) {
  2110. uni[name] = eventApi[name];
  2111. });
  2112. Object.keys(api).forEach(function (name) {
  2113. uni[name] = promisify(name, api[name]);
  2114. });
  2115. Object.keys(wx).forEach(function (name) {
  2116. if (hasOwn(wx, name) || hasOwn(protocols, name)) {
  2117. uni[name] = promisify(name, wrapper(name, wx[name]));
  2118. }
  2119. });
  2120. }
  2121. wx.createApp = createApp;
  2122. wx.createPage = createPage;
  2123. wx.createComponent = createComponent;
  2124. wx.createSubpackageApp = createSubpackageApp;
  2125. wx.createPlugin = createPlugin;
  2126. var uni$1 = uni;var _default =
  2127. uni$1;exports.default = _default;
  2128. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../../../webpack/buildin/global.js */ 2)))
  2129. /***/ }),
  2130. /* 2 */
  2131. /*!***********************************!*\
  2132. !*** (webpack)/buildin/global.js ***!
  2133. \***********************************/
  2134. /*! no static exports found */
  2135. /***/ (function(module, exports) {
  2136. var g;
  2137. // This works in non-strict mode
  2138. g = (function() {
  2139. return this;
  2140. })();
  2141. try {
  2142. // This works if eval is allowed (see CSP)
  2143. g = g || new Function("return this")();
  2144. } catch (e) {
  2145. // This works if the window reference is available
  2146. if (typeof window === "object") g = window;
  2147. }
  2148. // g can still be undefined, but nothing to do about it...
  2149. // We return undefined, instead of nothing here, so it's
  2150. // easier to handle this case. if(!global) { ...}
  2151. module.exports = g;
  2152. /***/ }),
  2153. /* 3 */
  2154. /*!*************************************************************!*\
  2155. !*** ./node_modules/@dcloudio/uni-i18n/dist/uni-i18n.es.js ***!
  2156. \*************************************************************/
  2157. /*! no static exports found */
  2158. /***/ (function(module, exports, __webpack_require__) {
  2159. "use strict";
  2160. /* WEBPACK VAR INJECTION */(function(uni, global) {Object.defineProperty(exports, "__esModule", { value: true });exports.compileI18nJsonStr = compileI18nJsonStr;exports.hasI18nJson = hasI18nJson;exports.initVueI18n = initVueI18n;exports.isI18nStr = isI18nStr;exports.normalizeLocale = normalizeLocale;exports.parseI18nJson = parseI18nJson;exports.resolveLocale = resolveLocale;exports.isString = exports.LOCALE_ZH_HANT = exports.LOCALE_ZH_HANS = exports.LOCALE_FR = exports.LOCALE_ES = exports.LOCALE_EN = exports.I18n = exports.Formatter = void 0;function _slicedToArray(arr, i) {return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest();}function _nonIterableRest() {throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");}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);}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;}function _iterableToArrayLimit(arr, i) {if (typeof Symbol === "undefined" || !(Symbol.iterator in Object(arr))) return;var _arr = [];var _n = true;var _d = false;var _e = undefined;try {for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) {_arr.push(_s.value);if (i && _arr.length === i) break;}} catch (err) {_d = true;_e = err;} finally {try {if (!_n && _i["return"] != null) _i["return"]();} finally {if (_d) throw _e;}}return _arr;}function _arrayWithHoles(arr) {if (Array.isArray(arr)) return arr;}function _classCallCheck(instance, Constructor) {if (!(instance instanceof Constructor)) {throw new TypeError("Cannot call a class as a function");}}function _defineProperties(target, props) {for (var i = 0; i < props.length; i++) {var descriptor = props[i];descriptor.enumerable = descriptor.enumerable || false;descriptor.configurable = true;if ("value" in descriptor) descriptor.writable = true;Object.defineProperty(target, descriptor.key, descriptor);}}function _createClass(Constructor, protoProps, staticProps) {if (protoProps) _defineProperties(Constructor.prototype, protoProps);if (staticProps) _defineProperties(Constructor, staticProps);return Constructor;}var isArray = Array.isArray;
  2161. var isObject = function isObject(val) {return val !== null && typeof val === 'object';};
  2162. var defaultDelimiters = ['{', '}'];var
  2163. BaseFormatter = /*#__PURE__*/function () {
  2164. function BaseFormatter() {_classCallCheck(this, BaseFormatter);
  2165. this._caches = Object.create(null);
  2166. }_createClass(BaseFormatter, [{ key: "interpolate", value: function interpolate(
  2167. message, values) {var delimiters = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : defaultDelimiters;
  2168. if (!values) {
  2169. return [message];
  2170. }
  2171. var tokens = this._caches[message];
  2172. if (!tokens) {
  2173. tokens = parse(message, delimiters);
  2174. this._caches[message] = tokens;
  2175. }
  2176. return compile(tokens, values);
  2177. } }]);return BaseFormatter;}();exports.Formatter = BaseFormatter;
  2178. var RE_TOKEN_LIST_VALUE = /^(?:\d)+/;
  2179. var RE_TOKEN_NAMED_VALUE = /^(?:\w)+/;
  2180. function parse(format, _ref) {var _ref2 = _slicedToArray(_ref, 2),startDelimiter = _ref2[0],endDelimiter = _ref2[1];
  2181. var tokens = [];
  2182. var position = 0;
  2183. var text = '';
  2184. while (position < format.length) {
  2185. var char = format[position++];
  2186. if (char === startDelimiter) {
  2187. if (text) {
  2188. tokens.push({ type: 'text', value: text });
  2189. }
  2190. text = '';
  2191. var sub = '';
  2192. char = format[position++];
  2193. while (char !== undefined && char !== endDelimiter) {
  2194. sub += char;
  2195. char = format[position++];
  2196. }
  2197. var isClosed = char === endDelimiter;
  2198. var type = RE_TOKEN_LIST_VALUE.test(sub) ?
  2199. 'list' :
  2200. isClosed && RE_TOKEN_NAMED_VALUE.test(sub) ?
  2201. 'named' :
  2202. 'unknown';
  2203. tokens.push({ value: sub, type: type });
  2204. }
  2205. // else if (char === '%') {
  2206. // // when found rails i18n syntax, skip text capture
  2207. // if (format[position] !== '{') {
  2208. // text += char
  2209. // }
  2210. // }
  2211. else {
  2212. text += char;
  2213. }
  2214. }
  2215. text && tokens.push({ type: 'text', value: text });
  2216. return tokens;
  2217. }
  2218. function compile(tokens, values) {
  2219. var compiled = [];
  2220. var index = 0;
  2221. var mode = isArray(values) ?
  2222. 'list' :
  2223. isObject(values) ?
  2224. 'named' :
  2225. 'unknown';
  2226. if (mode === 'unknown') {
  2227. return compiled;
  2228. }
  2229. while (index < tokens.length) {
  2230. var token = tokens[index];
  2231. switch (token.type) {
  2232. case 'text':
  2233. compiled.push(token.value);
  2234. break;
  2235. case 'list':
  2236. compiled.push(values[parseInt(token.value, 10)]);
  2237. break;
  2238. case 'named':
  2239. if (mode === 'named') {
  2240. compiled.push(values[token.value]);
  2241. } else
  2242. {
  2243. if (true) {
  2244. console.warn("Type of token '".concat(token.type, "' and format of value '").concat(mode, "' don't match!"));
  2245. }
  2246. }
  2247. break;
  2248. case 'unknown':
  2249. if (true) {
  2250. console.warn("Detect 'unknown' type of token!");
  2251. }
  2252. break;}
  2253. index++;
  2254. }
  2255. return compiled;
  2256. }
  2257. var LOCALE_ZH_HANS = 'zh-Hans';exports.LOCALE_ZH_HANS = LOCALE_ZH_HANS;
  2258. var LOCALE_ZH_HANT = 'zh-Hant';exports.LOCALE_ZH_HANT = LOCALE_ZH_HANT;
  2259. var LOCALE_EN = 'en';exports.LOCALE_EN = LOCALE_EN;
  2260. var LOCALE_FR = 'fr';exports.LOCALE_FR = LOCALE_FR;
  2261. var LOCALE_ES = 'es';exports.LOCALE_ES = LOCALE_ES;
  2262. var hasOwnProperty = Object.prototype.hasOwnProperty;
  2263. var hasOwn = function hasOwn(val, key) {return hasOwnProperty.call(val, key);};
  2264. var defaultFormatter = new BaseFormatter();
  2265. function include(str, parts) {
  2266. return !!parts.find(function (part) {return str.indexOf(part) !== -1;});
  2267. }
  2268. function startsWith(str, parts) {
  2269. return parts.find(function (part) {return str.indexOf(part) === 0;});
  2270. }
  2271. function normalizeLocale(locale, messages) {
  2272. if (!locale) {
  2273. return;
  2274. }
  2275. locale = locale.trim().replace(/_/g, '-');
  2276. if (messages && messages[locale]) {
  2277. return locale;
  2278. }
  2279. locale = locale.toLowerCase();
  2280. if (locale.indexOf('zh') === 0) {
  2281. if (locale.indexOf('-hans') > -1) {
  2282. return LOCALE_ZH_HANS;
  2283. }
  2284. if (locale.indexOf('-hant') > -1) {
  2285. return LOCALE_ZH_HANT;
  2286. }
  2287. if (include(locale, ['-tw', '-hk', '-mo', '-cht'])) {
  2288. return LOCALE_ZH_HANT;
  2289. }
  2290. return LOCALE_ZH_HANS;
  2291. }
  2292. var lang = startsWith(locale, [LOCALE_EN, LOCALE_FR, LOCALE_ES]);
  2293. if (lang) {
  2294. return lang;
  2295. }
  2296. }var
  2297. I18n = /*#__PURE__*/function () {
  2298. function I18n(_ref3) {var locale = _ref3.locale,fallbackLocale = _ref3.fallbackLocale,messages = _ref3.messages,watcher = _ref3.watcher,formater = _ref3.formater;_classCallCheck(this, I18n);
  2299. this.locale = LOCALE_EN;
  2300. this.fallbackLocale = LOCALE_EN;
  2301. this.message = {};
  2302. this.messages = {};
  2303. this.watchers = [];
  2304. if (fallbackLocale) {
  2305. this.fallbackLocale = fallbackLocale;
  2306. }
  2307. this.formater = formater || defaultFormatter;
  2308. this.messages = messages || {};
  2309. this.setLocale(locale || LOCALE_EN);
  2310. if (watcher) {
  2311. this.watchLocale(watcher);
  2312. }
  2313. }_createClass(I18n, [{ key: "setLocale", value: function setLocale(
  2314. locale) {var _this = this;
  2315. var oldLocale = this.locale;
  2316. this.locale = normalizeLocale(locale, this.messages) || this.fallbackLocale;
  2317. if (!this.messages[this.locale]) {
  2318. // 可能初始化时不存在
  2319. this.messages[this.locale] = {};
  2320. }
  2321. this.message = this.messages[this.locale];
  2322. // 仅发生变化时,通知
  2323. if (oldLocale !== this.locale) {
  2324. this.watchers.forEach(function (watcher) {
  2325. watcher(_this.locale, oldLocale);
  2326. });
  2327. }
  2328. } }, { key: "getLocale", value: function getLocale()
  2329. {
  2330. return this.locale;
  2331. } }, { key: "watchLocale", value: function watchLocale(
  2332. fn) {var _this2 = this;
  2333. var index = this.watchers.push(fn) - 1;
  2334. return function () {
  2335. _this2.watchers.splice(index, 1);
  2336. };
  2337. } }, { key: "add", value: function add(
  2338. locale, message) {var override = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true;
  2339. var curMessages = this.messages[locale];
  2340. if (curMessages) {
  2341. if (override) {
  2342. Object.assign(curMessages, message);
  2343. } else
  2344. {
  2345. Object.keys(message).forEach(function (key) {
  2346. if (!hasOwn(curMessages, key)) {
  2347. curMessages[key] = message[key];
  2348. }
  2349. });
  2350. }
  2351. } else
  2352. {
  2353. this.messages[locale] = message;
  2354. }
  2355. } }, { key: "f", value: function f(
  2356. message, values, delimiters) {
  2357. return this.formater.interpolate(message, values, delimiters).join('');
  2358. } }, { key: "t", value: function t(
  2359. key, locale, values) {
  2360. var message = this.message;
  2361. if (typeof locale === 'string') {
  2362. locale = normalizeLocale(locale, this.messages);
  2363. locale && (message = this.messages[locale]);
  2364. } else
  2365. {
  2366. values = locale;
  2367. }
  2368. if (!hasOwn(message, key)) {
  2369. console.warn("Cannot translate the value of keypath ".concat(key, ". Use the value of keypath as default."));
  2370. return key;
  2371. }
  2372. return this.formater.interpolate(message[key], values).join('');
  2373. } }]);return I18n;}();exports.I18n = I18n;
  2374. function watchAppLocale(appVm, i18n) {
  2375. // 需要保证 watch 的触发在组件渲染之前
  2376. if (appVm.$watchLocale) {
  2377. // vue2
  2378. appVm.$watchLocale(function (newLocale) {
  2379. i18n.setLocale(newLocale);
  2380. });
  2381. } else
  2382. {
  2383. appVm.$watch(function () {return appVm.$locale;}, function (newLocale) {
  2384. i18n.setLocale(newLocale);
  2385. });
  2386. }
  2387. }
  2388. function getDefaultLocale() {
  2389. if (typeof uni !== 'undefined' && uni.getLocale) {
  2390. return uni.getLocale();
  2391. }
  2392. // 小程序平台,uni 和 uni-i18n 互相引用,导致访问不到 uni,故在 global 上挂了 getLocale
  2393. if (typeof global !== 'undefined' && global.getLocale) {
  2394. return global.getLocale();
  2395. }
  2396. return LOCALE_EN;
  2397. }
  2398. function initVueI18n(locale) {var messages = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};var fallbackLocale = arguments.length > 2 ? arguments[2] : undefined;var watcher = arguments.length > 3 ? arguments[3] : undefined;
  2399. // 兼容旧版本入参
  2400. if (typeof locale !== 'string') {var _ref4 =
  2401. [
  2402. messages,
  2403. locale];locale = _ref4[0];messages = _ref4[1];
  2404. }
  2405. if (typeof locale !== 'string') {
  2406. // 因为小程序平台,uni-i18n 和 uni 互相引用,导致此时访问 uni 时,为 undefined
  2407. locale = getDefaultLocale();
  2408. }
  2409. if (typeof fallbackLocale !== 'string') {
  2410. fallbackLocale =
  2411. typeof __uniConfig !== 'undefined' && __uniConfig.fallbackLocale ||
  2412. LOCALE_EN;
  2413. }
  2414. var i18n = new I18n({
  2415. locale: locale,
  2416. fallbackLocale: fallbackLocale,
  2417. messages: messages,
  2418. watcher: watcher });
  2419. var _t = function t(key, values) {
  2420. if (typeof getApp !== 'function') {
  2421. // app view
  2422. /* eslint-disable no-func-assign */
  2423. _t = function t(key, values) {
  2424. return i18n.t(key, values);
  2425. };
  2426. } else
  2427. {
  2428. var isWatchedAppLocale = false;
  2429. _t = function t(key, values) {
  2430. var appVm = getApp().$vm;
  2431. // 可能$vm还不存在,比如在支付宝小程序中,组件定义较早,在props的default里使用了t()函数(如uni-goods-nav),此时app还未初始化
  2432. // options: {
  2433. // type: Array,
  2434. // default () {
  2435. // return [{
  2436. // icon: 'shop',
  2437. // text: t("uni-goods-nav.options.shop"),
  2438. // }, {
  2439. // icon: 'cart',
  2440. // text: t("uni-goods-nav.options.cart")
  2441. // }]
  2442. // }
  2443. // },
  2444. if (appVm) {
  2445. // 触发响应式
  2446. appVm.$locale;
  2447. if (!isWatchedAppLocale) {
  2448. isWatchedAppLocale = true;
  2449. watchAppLocale(appVm, i18n);
  2450. }
  2451. }
  2452. return i18n.t(key, values);
  2453. };
  2454. }
  2455. return _t(key, values);
  2456. };
  2457. return {
  2458. i18n: i18n,
  2459. f: function f(message, values, delimiters) {
  2460. return i18n.f(message, values, delimiters);
  2461. },
  2462. t: function t(key, values) {
  2463. return _t(key, values);
  2464. },
  2465. add: function add(locale, message) {var override = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true;
  2466. return i18n.add(locale, message, override);
  2467. },
  2468. watch: function watch(fn) {
  2469. return i18n.watchLocale(fn);
  2470. },
  2471. getLocale: function getLocale() {
  2472. return i18n.getLocale();
  2473. },
  2474. setLocale: function setLocale(newLocale) {
  2475. return i18n.setLocale(newLocale);
  2476. } };
  2477. }
  2478. var isString = function isString(val) {return typeof val === 'string';};exports.isString = isString;
  2479. var formater;
  2480. function hasI18nJson(jsonObj, delimiters) {
  2481. if (!formater) {
  2482. formater = new BaseFormatter();
  2483. }
  2484. return walkJsonObj(jsonObj, function (jsonObj, key) {
  2485. var value = jsonObj[key];
  2486. if (isString(value)) {
  2487. if (isI18nStr(value, delimiters)) {
  2488. return true;
  2489. }
  2490. } else
  2491. {
  2492. return hasI18nJson(value, delimiters);
  2493. }
  2494. });
  2495. }
  2496. function parseI18nJson(jsonObj, values, delimiters) {
  2497. if (!formater) {
  2498. formater = new BaseFormatter();
  2499. }
  2500. walkJsonObj(jsonObj, function (jsonObj, key) {
  2501. var value = jsonObj[key];
  2502. if (isString(value)) {
  2503. if (isI18nStr(value, delimiters)) {
  2504. jsonObj[key] = compileStr(value, values, delimiters);
  2505. }
  2506. } else
  2507. {
  2508. parseI18nJson(value, values, delimiters);
  2509. }
  2510. });
  2511. return jsonObj;
  2512. }
  2513. function compileI18nJsonStr(jsonStr, _ref5) {var locale = _ref5.locale,locales = _ref5.locales,delimiters = _ref5.delimiters;
  2514. if (!isI18nStr(jsonStr, delimiters)) {
  2515. return jsonStr;
  2516. }
  2517. if (!formater) {
  2518. formater = new BaseFormatter();
  2519. }
  2520. var localeValues = [];
  2521. Object.keys(locales).forEach(function (name) {
  2522. if (name !== locale) {
  2523. localeValues.push({
  2524. locale: name,
  2525. values: locales[name] });
  2526. }
  2527. });
  2528. localeValues.unshift({ locale: locale, values: locales[locale] });
  2529. try {
  2530. return JSON.stringify(compileJsonObj(JSON.parse(jsonStr), localeValues, delimiters), null, 2);
  2531. }
  2532. catch (e) {}
  2533. return jsonStr;
  2534. }
  2535. function isI18nStr(value, delimiters) {
  2536. return value.indexOf(delimiters[0]) > -1;
  2537. }
  2538. function compileStr(value, values, delimiters) {
  2539. return formater.interpolate(value, values, delimiters).join('');
  2540. }
  2541. function compileValue(jsonObj, key, localeValues, delimiters) {
  2542. var value = jsonObj[key];
  2543. if (isString(value)) {
  2544. // 存在国际化
  2545. if (isI18nStr(value, delimiters)) {
  2546. jsonObj[key] = compileStr(value, localeValues[0].values, delimiters);
  2547. if (localeValues.length > 1) {
  2548. // 格式化国际化语言
  2549. var valueLocales = jsonObj[key + 'Locales'] = {};
  2550. localeValues.forEach(function (localValue) {
  2551. valueLocales[localValue.locale] = compileStr(value, localValue.values, delimiters);
  2552. });
  2553. }
  2554. }
  2555. } else
  2556. {
  2557. compileJsonObj(value, localeValues, delimiters);
  2558. }
  2559. }
  2560. function compileJsonObj(jsonObj, localeValues, delimiters) {
  2561. walkJsonObj(jsonObj, function (jsonObj, key) {
  2562. compileValue(jsonObj, key, localeValues, delimiters);
  2563. });
  2564. return jsonObj;
  2565. }
  2566. function walkJsonObj(jsonObj, walk) {
  2567. if (isArray(jsonObj)) {
  2568. for (var i = 0; i < jsonObj.length; i++) {
  2569. if (walk(jsonObj, i)) {
  2570. return true;
  2571. }
  2572. }
  2573. } else
  2574. if (isObject(jsonObj)) {
  2575. for (var key in jsonObj) {
  2576. if (walk(jsonObj, key)) {
  2577. return true;
  2578. }
  2579. }
  2580. }
  2581. return false;
  2582. }
  2583. function resolveLocale(locales) {
  2584. return function (locale) {
  2585. if (!locale) {
  2586. return locale;
  2587. }
  2588. locale = normalizeLocale(locale) || locale;
  2589. return resolveLocaleChain(locale).find(function (locale) {return locales.indexOf(locale) > -1;});
  2590. };
  2591. }
  2592. function resolveLocaleChain(locale) {
  2593. var chain = [];
  2594. var tokens = locale.split('-');
  2595. while (tokens.length) {
  2596. chain.push(tokens.join('-'));
  2597. tokens.pop();
  2598. }
  2599. return chain;
  2600. }
  2601. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 1)["default"], __webpack_require__(/*! ./../../../webpack/buildin/global.js */ 2)))
  2602. /***/ }),
  2603. /* 4 */
  2604. /*!******************************************************************************************!*\
  2605. !*** ./node_modules/@dcloudio/vue-cli-plugin-uni/packages/mp-vue/dist/mp.runtime.esm.js ***!
  2606. \******************************************************************************************/
  2607. /*! exports provided: default */
  2608. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  2609. "use strict";
  2610. __webpack_require__.r(__webpack_exports__);
  2611. /* WEBPACK VAR INJECTION */(function(global) {/*!
  2612. * Vue.js v2.6.11
  2613. * (c) 2014-2022 Evan You
  2614. * Released under the MIT License.
  2615. */
  2616. /* */
  2617. var emptyObject = Object.freeze({});
  2618. // These helpers produce better VM code in JS engines due to their
  2619. // explicitness and function inlining.
  2620. function isUndef (v) {
  2621. return v === undefined || v === null
  2622. }
  2623. function isDef (v) {
  2624. return v !== undefined && v !== null
  2625. }
  2626. function isTrue (v) {
  2627. return v === true
  2628. }
  2629. function isFalse (v) {
  2630. return v === false
  2631. }
  2632. /**
  2633. * Check if value is primitive.
  2634. */
  2635. function isPrimitive (value) {
  2636. return (
  2637. typeof value === 'string' ||
  2638. typeof value === 'number' ||
  2639. // $flow-disable-line
  2640. typeof value === 'symbol' ||
  2641. typeof value === 'boolean'
  2642. )
  2643. }
  2644. /**
  2645. * Quick object check - this is primarily used to tell
  2646. * Objects from primitive values when we know the value
  2647. * is a JSON-compliant type.
  2648. */
  2649. function isObject (obj) {
  2650. return obj !== null && typeof obj === 'object'
  2651. }
  2652. /**
  2653. * Get the raw type string of a value, e.g., [object Object].
  2654. */
  2655. var _toString = Object.prototype.toString;
  2656. function toRawType (value) {
  2657. return _toString.call(value).slice(8, -1)
  2658. }
  2659. /**
  2660. * Strict object type check. Only returns true
  2661. * for plain JavaScript objects.
  2662. */
  2663. function isPlainObject (obj) {
  2664. return _toString.call(obj) === '[object Object]'
  2665. }
  2666. function isRegExp (v) {
  2667. return _toString.call(v) === '[object RegExp]'
  2668. }
  2669. /**
  2670. * Check if val is a valid array index.
  2671. */
  2672. function isValidArrayIndex (val) {
  2673. var n = parseFloat(String(val));
  2674. return n >= 0 && Math.floor(n) === n && isFinite(val)
  2675. }
  2676. function isPromise (val) {
  2677. return (
  2678. isDef(val) &&
  2679. typeof val.then === 'function' &&
  2680. typeof val.catch === 'function'
  2681. )
  2682. }
  2683. /**
  2684. * Convert a value to a string that is actually rendered.
  2685. */
  2686. function toString (val) {
  2687. return val == null
  2688. ? ''
  2689. : Array.isArray(val) || (isPlainObject(val) && val.toString === _toString)
  2690. ? JSON.stringify(val, null, 2)
  2691. : String(val)
  2692. }
  2693. /**
  2694. * Convert an input value to a number for persistence.
  2695. * If the conversion fails, return original string.
  2696. */
  2697. function toNumber (val) {
  2698. var n = parseFloat(val);
  2699. return isNaN(n) ? val : n
  2700. }
  2701. /**
  2702. * Make a map and return a function for checking if a key
  2703. * is in that map.
  2704. */
  2705. function makeMap (
  2706. str,
  2707. expectsLowerCase
  2708. ) {
  2709. var map = Object.create(null);
  2710. var list = str.split(',');
  2711. for (var i = 0; i < list.length; i++) {
  2712. map[list[i]] = true;
  2713. }
  2714. return expectsLowerCase
  2715. ? function (val) { return map[val.toLowerCase()]; }
  2716. : function (val) { return map[val]; }
  2717. }
  2718. /**
  2719. * Check if a tag is a built-in tag.
  2720. */
  2721. var isBuiltInTag = makeMap('slot,component', true);
  2722. /**
  2723. * Check if an attribute is a reserved attribute.
  2724. */
  2725. var isReservedAttribute = makeMap('key,ref,slot,slot-scope,is');
  2726. /**
  2727. * Remove an item from an array.
  2728. */
  2729. function remove (arr, item) {
  2730. if (arr.length) {
  2731. var index = arr.indexOf(item);
  2732. if (index > -1) {
  2733. return arr.splice(index, 1)
  2734. }
  2735. }
  2736. }
  2737. /**
  2738. * Check whether an object has the property.
  2739. */
  2740. var hasOwnProperty = Object.prototype.hasOwnProperty;
  2741. function hasOwn (obj, key) {
  2742. return hasOwnProperty.call(obj, key)
  2743. }
  2744. /**
  2745. * Create a cached version of a pure function.
  2746. */
  2747. function cached (fn) {
  2748. var cache = Object.create(null);
  2749. return (function cachedFn (str) {
  2750. var hit = cache[str];
  2751. return hit || (cache[str] = fn(str))
  2752. })
  2753. }
  2754. /**
  2755. * Camelize a hyphen-delimited string.
  2756. */
  2757. var camelizeRE = /-(\w)/g;
  2758. var camelize = cached(function (str) {
  2759. return str.replace(camelizeRE, function (_, c) { return c ? c.toUpperCase() : ''; })
  2760. });
  2761. /**
  2762. * Capitalize a string.
  2763. */
  2764. var capitalize = cached(function (str) {
  2765. return str.charAt(0).toUpperCase() + str.slice(1)
  2766. });
  2767. /**
  2768. * Hyphenate a camelCase string.
  2769. */
  2770. var hyphenateRE = /\B([A-Z])/g;
  2771. var hyphenate = cached(function (str) {
  2772. return str.replace(hyphenateRE, '-$1').toLowerCase()
  2773. });
  2774. /**
  2775. * Simple bind polyfill for environments that do not support it,
  2776. * e.g., PhantomJS 1.x. Technically, we don't need this anymore
  2777. * since native bind is now performant enough in most browsers.
  2778. * But removing it would mean breaking code that was able to run in
  2779. * PhantomJS 1.x, so this must be kept for backward compatibility.
  2780. */
  2781. /* istanbul ignore next */
  2782. function polyfillBind (fn, ctx) {
  2783. function boundFn (a) {
  2784. var l = arguments.length;
  2785. return l
  2786. ? l > 1
  2787. ? fn.apply(ctx, arguments)
  2788. : fn.call(ctx, a)
  2789. : fn.call(ctx)
  2790. }
  2791. boundFn._length = fn.length;
  2792. return boundFn
  2793. }
  2794. function nativeBind (fn, ctx) {
  2795. return fn.bind(ctx)
  2796. }
  2797. var bind = Function.prototype.bind
  2798. ? nativeBind
  2799. : polyfillBind;
  2800. /**
  2801. * Convert an Array-like object to a real Array.
  2802. */
  2803. function toArray (list, start) {
  2804. start = start || 0;
  2805. var i = list.length - start;
  2806. var ret = new Array(i);
  2807. while (i--) {
  2808. ret[i] = list[i + start];
  2809. }
  2810. return ret
  2811. }
  2812. /**
  2813. * Mix properties into target object.
  2814. */
  2815. function extend (to, _from) {
  2816. for (var key in _from) {
  2817. to[key] = _from[key];
  2818. }
  2819. return to
  2820. }
  2821. /**
  2822. * Merge an Array of Objects into a single Object.
  2823. */
  2824. function toObject (arr) {
  2825. var res = {};
  2826. for (var i = 0; i < arr.length; i++) {
  2827. if (arr[i]) {
  2828. extend(res, arr[i]);
  2829. }
  2830. }
  2831. return res
  2832. }
  2833. /* eslint-disable no-unused-vars */
  2834. /**
  2835. * Perform no operation.
  2836. * Stubbing args to make Flow happy without leaving useless transpiled code
  2837. * with ...rest (https://flow.org/blog/2017/05/07/Strict-Function-Call-Arity/).
  2838. */
  2839. function noop (a, b, c) {}
  2840. /**
  2841. * Always return false.
  2842. */
  2843. var no = function (a, b, c) { return false; };
  2844. /* eslint-enable no-unused-vars */
  2845. /**
  2846. * Return the same value.
  2847. */
  2848. var identity = function (_) { return _; };
  2849. /**
  2850. * Check if two values are loosely equal - that is,
  2851. * if they are plain objects, do they have the same shape?
  2852. */
  2853. function looseEqual (a, b) {
  2854. if (a === b) { return true }
  2855. var isObjectA = isObject(a);
  2856. var isObjectB = isObject(b);
  2857. if (isObjectA && isObjectB) {
  2858. try {
  2859. var isArrayA = Array.isArray(a);
  2860. var isArrayB = Array.isArray(b);
  2861. if (isArrayA && isArrayB) {
  2862. return a.length === b.length && a.every(function (e, i) {
  2863. return looseEqual(e, b[i])
  2864. })
  2865. } else if (a instanceof Date && b instanceof Date) {
  2866. return a.getTime() === b.getTime()
  2867. } else if (!isArrayA && !isArrayB) {
  2868. var keysA = Object.keys(a);
  2869. var keysB = Object.keys(b);
  2870. return keysA.length === keysB.length && keysA.every(function (key) {
  2871. return looseEqual(a[key], b[key])
  2872. })
  2873. } else {
  2874. /* istanbul ignore next */
  2875. return false
  2876. }
  2877. } catch (e) {
  2878. /* istanbul ignore next */
  2879. return false
  2880. }
  2881. } else if (!isObjectA && !isObjectB) {
  2882. return String(a) === String(b)
  2883. } else {
  2884. return false
  2885. }
  2886. }
  2887. /**
  2888. * Return the first index at which a loosely equal value can be
  2889. * found in the array (if value is a plain object, the array must
  2890. * contain an object of the same shape), or -1 if it is not present.
  2891. */
  2892. function looseIndexOf (arr, val) {
  2893. for (var i = 0; i < arr.length; i++) {
  2894. if (looseEqual(arr[i], val)) { return i }
  2895. }
  2896. return -1
  2897. }
  2898. /**
  2899. * Ensure a function is called only once.
  2900. */
  2901. function once (fn) {
  2902. var called = false;
  2903. return function () {
  2904. if (!called) {
  2905. called = true;
  2906. fn.apply(this, arguments);
  2907. }
  2908. }
  2909. }
  2910. var ASSET_TYPES = [
  2911. 'component',
  2912. 'directive',
  2913. 'filter'
  2914. ];
  2915. var LIFECYCLE_HOOKS = [
  2916. 'beforeCreate',
  2917. 'created',
  2918. 'beforeMount',
  2919. 'mounted',
  2920. 'beforeUpdate',
  2921. 'updated',
  2922. 'beforeDestroy',
  2923. 'destroyed',
  2924. 'activated',
  2925. 'deactivated',
  2926. 'errorCaptured',
  2927. 'serverPrefetch'
  2928. ];
  2929. /* */
  2930. var config = ({
  2931. /**
  2932. * Option merge strategies (used in core/util/options)
  2933. */
  2934. // $flow-disable-line
  2935. optionMergeStrategies: Object.create(null),
  2936. /**
  2937. * Whether to suppress warnings.
  2938. */
  2939. silent: false,
  2940. /**
  2941. * Show production mode tip message on boot?
  2942. */
  2943. productionTip: "development" !== 'production',
  2944. /**
  2945. * Whether to enable devtools
  2946. */
  2947. devtools: "development" !== 'production',
  2948. /**
  2949. * Whether to record perf
  2950. */
  2951. performance: false,
  2952. /**
  2953. * Error handler for watcher errors
  2954. */
  2955. errorHandler: null,
  2956. /**
  2957. * Warn handler for watcher warns
  2958. */
  2959. warnHandler: null,
  2960. /**
  2961. * Ignore certain custom elements
  2962. */
  2963. ignoredElements: [],
  2964. /**
  2965. * Custom user key aliases for v-on
  2966. */
  2967. // $flow-disable-line
  2968. keyCodes: Object.create(null),
  2969. /**
  2970. * Check if a tag is reserved so that it cannot be registered as a
  2971. * component. This is platform-dependent and may be overwritten.
  2972. */
  2973. isReservedTag: no,
  2974. /**
  2975. * Check if an attribute is reserved so that it cannot be used as a component
  2976. * prop. This is platform-dependent and may be overwritten.
  2977. */
  2978. isReservedAttr: no,
  2979. /**
  2980. * Check if a tag is an unknown element.
  2981. * Platform-dependent.
  2982. */
  2983. isUnknownElement: no,
  2984. /**
  2985. * Get the namespace of an element
  2986. */
  2987. getTagNamespace: noop,
  2988. /**
  2989. * Parse the real tag name for the specific platform.
  2990. */
  2991. parsePlatformTagName: identity,
  2992. /**
  2993. * Check if an attribute must be bound using property, e.g. value
  2994. * Platform-dependent.
  2995. */
  2996. mustUseProp: no,
  2997. /**
  2998. * Perform updates asynchronously. Intended to be used by Vue Test Utils
  2999. * This will significantly reduce performance if set to false.
  3000. */
  3001. async: true,
  3002. /**
  3003. * Exposed for legacy reasons
  3004. */
  3005. _lifecycleHooks: LIFECYCLE_HOOKS
  3006. });
  3007. /* */
  3008. /**
  3009. * unicode letters used for parsing html tags, component names and property paths.
  3010. * using https://www.w3.org/TR/html53/semantics-scripting.html#potentialcustomelementname
  3011. * skipping \u10000-\uEFFFF due to it freezing up PhantomJS
  3012. */
  3013. 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/;
  3014. /**
  3015. * Check if a string starts with $ or _
  3016. */
  3017. function isReserved (str) {
  3018. var c = (str + '').charCodeAt(0);
  3019. return c === 0x24 || c === 0x5F
  3020. }
  3021. /**
  3022. * Define a property.
  3023. */
  3024. function def (obj, key, val, enumerable) {
  3025. Object.defineProperty(obj, key, {
  3026. value: val,
  3027. enumerable: !!enumerable,
  3028. writable: true,
  3029. configurable: true
  3030. });
  3031. }
  3032. /**
  3033. * Parse simple path.
  3034. */
  3035. var bailRE = new RegExp(("[^" + (unicodeRegExp.source) + ".$_\\d]"));
  3036. function parsePath (path) {
  3037. if (bailRE.test(path)) {
  3038. return
  3039. }
  3040. var segments = path.split('.');
  3041. return function (obj) {
  3042. for (var i = 0; i < segments.length; i++) {
  3043. if (!obj) { return }
  3044. obj = obj[segments[i]];
  3045. }
  3046. return obj
  3047. }
  3048. }
  3049. /* */
  3050. // can we use __proto__?
  3051. var hasProto = '__proto__' in {};
  3052. // Browser environment sniffing
  3053. var inBrowser = typeof window !== 'undefined';
  3054. var inWeex = typeof WXEnvironment !== 'undefined' && !!WXEnvironment.platform;
  3055. var weexPlatform = inWeex && WXEnvironment.platform.toLowerCase();
  3056. var UA = inBrowser && window.navigator.userAgent.toLowerCase();
  3057. var isIE = UA && /msie|trident/.test(UA);
  3058. var isIE9 = UA && UA.indexOf('msie 9.0') > 0;
  3059. var isEdge = UA && UA.indexOf('edge/') > 0;
  3060. var isAndroid = (UA && UA.indexOf('android') > 0) || (weexPlatform === 'android');
  3061. var isIOS = (UA && /iphone|ipad|ipod|ios/.test(UA)) || (weexPlatform === 'ios');
  3062. var isChrome = UA && /chrome\/\d+/.test(UA) && !isEdge;
  3063. var isPhantomJS = UA && /phantomjs/.test(UA);
  3064. var isFF = UA && UA.match(/firefox\/(\d+)/);
  3065. // Firefox has a "watch" function on Object.prototype...
  3066. var nativeWatch = ({}).watch;
  3067. if (inBrowser) {
  3068. try {
  3069. var opts = {};
  3070. Object.defineProperty(opts, 'passive', ({
  3071. get: function get () {
  3072. }
  3073. })); // https://github.com/facebook/flow/issues/285
  3074. window.addEventListener('test-passive', null, opts);
  3075. } catch (e) {}
  3076. }
  3077. // this needs to be lazy-evaled because vue may be required before
  3078. // vue-server-renderer can set VUE_ENV
  3079. var _isServer;
  3080. var isServerRendering = function () {
  3081. if (_isServer === undefined) {
  3082. /* istanbul ignore if */
  3083. if (!inBrowser && !inWeex && typeof global !== 'undefined') {
  3084. // detect presence of vue-server-renderer and avoid
  3085. // Webpack shimming the process
  3086. _isServer = global['process'] && global['process'].env.VUE_ENV === 'server';
  3087. } else {
  3088. _isServer = false;
  3089. }
  3090. }
  3091. return _isServer
  3092. };
  3093. // detect devtools
  3094. var devtools = inBrowser && window.__VUE_DEVTOOLS_GLOBAL_HOOK__;
  3095. /* istanbul ignore next */
  3096. function isNative (Ctor) {
  3097. return typeof Ctor === 'function' && /native code/.test(Ctor.toString())
  3098. }
  3099. var hasSymbol =
  3100. typeof Symbol !== 'undefined' && isNative(Symbol) &&
  3101. typeof Reflect !== 'undefined' && isNative(Reflect.ownKeys);
  3102. var _Set;
  3103. /* istanbul ignore if */ // $flow-disable-line
  3104. if (typeof Set !== 'undefined' && isNative(Set)) {
  3105. // use native Set when available.
  3106. _Set = Set;
  3107. } else {
  3108. // a non-standard Set polyfill that only works with primitive keys.
  3109. _Set = /*@__PURE__*/(function () {
  3110. function Set () {
  3111. this.set = Object.create(null);
  3112. }
  3113. Set.prototype.has = function has (key) {
  3114. return this.set[key] === true
  3115. };
  3116. Set.prototype.add = function add (key) {
  3117. this.set[key] = true;
  3118. };
  3119. Set.prototype.clear = function clear () {
  3120. this.set = Object.create(null);
  3121. };
  3122. return Set;
  3123. }());
  3124. }
  3125. /* */
  3126. var warn = noop;
  3127. var tip = noop;
  3128. var generateComponentTrace = (noop); // work around flow check
  3129. var formatComponentName = (noop);
  3130. if (true) {
  3131. var hasConsole = typeof console !== 'undefined';
  3132. var classifyRE = /(?:^|[-_])(\w)/g;
  3133. var classify = function (str) { return str
  3134. .replace(classifyRE, function (c) { return c.toUpperCase(); })
  3135. .replace(/[-_]/g, ''); };
  3136. warn = function (msg, vm) {
  3137. var trace = vm ? generateComponentTrace(vm) : '';
  3138. if (config.warnHandler) {
  3139. config.warnHandler.call(null, msg, vm, trace);
  3140. } else if (hasConsole && (!config.silent)) {
  3141. console.error(("[Vue warn]: " + msg + trace));
  3142. }
  3143. };
  3144. tip = function (msg, vm) {
  3145. if (hasConsole && (!config.silent)) {
  3146. console.warn("[Vue tip]: " + msg + (
  3147. vm ? generateComponentTrace(vm) : ''
  3148. ));
  3149. }
  3150. };
  3151. formatComponentName = function (vm, includeFile) {
  3152. if (vm.$root === vm) {
  3153. if (vm.$options && vm.$options.__file) { // fixed by xxxxxx
  3154. return ('') + vm.$options.__file
  3155. }
  3156. return '<Root>'
  3157. }
  3158. var options = typeof vm === 'function' && vm.cid != null
  3159. ? vm.options
  3160. : vm._isVue
  3161. ? vm.$options || vm.constructor.options
  3162. : vm;
  3163. var name = options.name || options._componentTag;
  3164. var file = options.__file;
  3165. if (!name && file) {
  3166. var match = file.match(/([^/\\]+)\.vue$/);
  3167. name = match && match[1];
  3168. }
  3169. return (
  3170. (name ? ("<" + (classify(name)) + ">") : "<Anonymous>") +
  3171. (file && includeFile !== false ? (" at " + file) : '')
  3172. )
  3173. };
  3174. var repeat = function (str, n) {
  3175. var res = '';
  3176. while (n) {
  3177. if (n % 2 === 1) { res += str; }
  3178. if (n > 1) { str += str; }
  3179. n >>= 1;
  3180. }
  3181. return res
  3182. };
  3183. generateComponentTrace = function (vm) {
  3184. if (vm._isVue && vm.$parent) {
  3185. var tree = [];
  3186. var currentRecursiveSequence = 0;
  3187. while (vm && vm.$options.name !== 'PageBody') {
  3188. if (tree.length > 0) {
  3189. var last = tree[tree.length - 1];
  3190. if (last.constructor === vm.constructor) {
  3191. currentRecursiveSequence++;
  3192. vm = vm.$parent;
  3193. continue
  3194. } else if (currentRecursiveSequence > 0) {
  3195. tree[tree.length - 1] = [last, currentRecursiveSequence];
  3196. currentRecursiveSequence = 0;
  3197. }
  3198. }
  3199. !vm.$options.isReserved && tree.push(vm);
  3200. vm = vm.$parent;
  3201. }
  3202. return '\n\nfound in\n\n' + tree
  3203. .map(function (vm, i) { return ("" + (i === 0 ? '---> ' : repeat(' ', 5 + i * 2)) + (Array.isArray(vm)
  3204. ? ((formatComponentName(vm[0])) + "... (" + (vm[1]) + " recursive calls)")
  3205. : formatComponentName(vm))); })
  3206. .join('\n')
  3207. } else {
  3208. return ("\n\n(found in " + (formatComponentName(vm)) + ")")
  3209. }
  3210. };
  3211. }
  3212. /* */
  3213. var uid = 0;
  3214. /**
  3215. * A dep is an observable that can have multiple
  3216. * directives subscribing to it.
  3217. */
  3218. var Dep = function Dep () {
  3219. this.id = uid++;
  3220. this.subs = [];
  3221. };
  3222. Dep.prototype.addSub = function addSub (sub) {
  3223. this.subs.push(sub);
  3224. };
  3225. Dep.prototype.removeSub = function removeSub (sub) {
  3226. remove(this.subs, sub);
  3227. };
  3228. Dep.prototype.depend = function depend () {
  3229. if (Dep.SharedObject.target) {
  3230. Dep.SharedObject.target.addDep(this);
  3231. }
  3232. };
  3233. Dep.prototype.notify = function notify () {
  3234. // stabilize the subscriber list first
  3235. var subs = this.subs.slice();
  3236. if ( true && !config.async) {
  3237. // subs aren't sorted in scheduler if not running async
  3238. // we need to sort them now to make sure they fire in correct
  3239. // order
  3240. subs.sort(function (a, b) { return a.id - b.id; });
  3241. }
  3242. for (var i = 0, l = subs.length; i < l; i++) {
  3243. subs[i].update();
  3244. }
  3245. };
  3246. // The current target watcher being evaluated.
  3247. // This is globally unique because only one watcher
  3248. // can be evaluated at a time.
  3249. // fixed by xxxxxx (nvue shared vuex)
  3250. /* eslint-disable no-undef */
  3251. Dep.SharedObject = {};
  3252. Dep.SharedObject.target = null;
  3253. Dep.SharedObject.targetStack = [];
  3254. function pushTarget (target) {
  3255. Dep.SharedObject.targetStack.push(target);
  3256. Dep.SharedObject.target = target;
  3257. Dep.target = target;
  3258. }
  3259. function popTarget () {
  3260. Dep.SharedObject.targetStack.pop();
  3261. Dep.SharedObject.target = Dep.SharedObject.targetStack[Dep.SharedObject.targetStack.length - 1];
  3262. Dep.target = Dep.SharedObject.target;
  3263. }
  3264. /* */
  3265. var VNode = function VNode (
  3266. tag,
  3267. data,
  3268. children,
  3269. text,
  3270. elm,
  3271. context,
  3272. componentOptions,
  3273. asyncFactory
  3274. ) {
  3275. this.tag = tag;
  3276. this.data = data;
  3277. this.children = children;
  3278. this.text = text;
  3279. this.elm = elm;
  3280. this.ns = undefined;
  3281. this.context = context;
  3282. this.fnContext = undefined;
  3283. this.fnOptions = undefined;
  3284. this.fnScopeId = undefined;
  3285. this.key = data && data.key;
  3286. this.componentOptions = componentOptions;
  3287. this.componentInstance = undefined;
  3288. this.parent = undefined;
  3289. this.raw = false;
  3290. this.isStatic = false;
  3291. this.isRootInsert = true;
  3292. this.isComment = false;
  3293. this.isCloned = false;
  3294. this.isOnce = false;
  3295. this.asyncFactory = asyncFactory;
  3296. this.asyncMeta = undefined;
  3297. this.isAsyncPlaceholder = false;
  3298. };
  3299. var prototypeAccessors = { child: { configurable: true } };
  3300. // DEPRECATED: alias for componentInstance for backwards compat.
  3301. /* istanbul ignore next */
  3302. prototypeAccessors.child.get = function () {
  3303. return this.componentInstance
  3304. };
  3305. Object.defineProperties( VNode.prototype, prototypeAccessors );
  3306. var createEmptyVNode = function (text) {
  3307. if ( text === void 0 ) text = '';
  3308. var node = new VNode();
  3309. node.text = text;
  3310. node.isComment = true;
  3311. return node
  3312. };
  3313. function createTextVNode (val) {
  3314. return new VNode(undefined, undefined, undefined, String(val))
  3315. }
  3316. // optimized shallow clone
  3317. // used for static nodes and slot nodes because they may be reused across
  3318. // multiple renders, cloning them avoids errors when DOM manipulations rely
  3319. // on their elm reference.
  3320. function cloneVNode (vnode) {
  3321. var cloned = new VNode(
  3322. vnode.tag,
  3323. vnode.data,
  3324. // #7975
  3325. // clone children array to avoid mutating original in case of cloning
  3326. // a child.
  3327. vnode.children && vnode.children.slice(),
  3328. vnode.text,
  3329. vnode.elm,
  3330. vnode.context,
  3331. vnode.componentOptions,
  3332. vnode.asyncFactory
  3333. );
  3334. cloned.ns = vnode.ns;
  3335. cloned.isStatic = vnode.isStatic;
  3336. cloned.key = vnode.key;
  3337. cloned.isComment = vnode.isComment;
  3338. cloned.fnContext = vnode.fnContext;
  3339. cloned.fnOptions = vnode.fnOptions;
  3340. cloned.fnScopeId = vnode.fnScopeId;
  3341. cloned.asyncMeta = vnode.asyncMeta;
  3342. cloned.isCloned = true;
  3343. return cloned
  3344. }
  3345. /*
  3346. * not type checking this file because flow doesn't play well with
  3347. * dynamically accessing methods on Array prototype
  3348. */
  3349. var arrayProto = Array.prototype;
  3350. var arrayMethods = Object.create(arrayProto);
  3351. var methodsToPatch = [
  3352. 'push',
  3353. 'pop',
  3354. 'shift',
  3355. 'unshift',
  3356. 'splice',
  3357. 'sort',
  3358. 'reverse'
  3359. ];
  3360. /**
  3361. * Intercept mutating methods and emit events
  3362. */
  3363. methodsToPatch.forEach(function (method) {
  3364. // cache original method
  3365. var original = arrayProto[method];
  3366. def(arrayMethods, method, function mutator () {
  3367. var args = [], len = arguments.length;
  3368. while ( len-- ) args[ len ] = arguments[ len ];
  3369. var result = original.apply(this, args);
  3370. var ob = this.__ob__;
  3371. var inserted;
  3372. switch (method) {
  3373. case 'push':
  3374. case 'unshift':
  3375. inserted = args;
  3376. break
  3377. case 'splice':
  3378. inserted = args.slice(2);
  3379. break
  3380. }
  3381. if (inserted) { ob.observeArray(inserted); }
  3382. // notify change
  3383. ob.dep.notify();
  3384. return result
  3385. });
  3386. });
  3387. /* */
  3388. var arrayKeys = Object.getOwnPropertyNames(arrayMethods);
  3389. /**
  3390. * In some cases we may want to disable observation inside a component's
  3391. * update computation.
  3392. */
  3393. var shouldObserve = true;
  3394. function toggleObserving (value) {
  3395. shouldObserve = value;
  3396. }
  3397. /**
  3398. * Observer class that is attached to each observed
  3399. * object. Once attached, the observer converts the target
  3400. * object's property keys into getter/setters that
  3401. * collect dependencies and dispatch updates.
  3402. */
  3403. var Observer = function Observer (value) {
  3404. this.value = value;
  3405. this.dep = new Dep();
  3406. this.vmCount = 0;
  3407. def(value, '__ob__', this);
  3408. if (Array.isArray(value)) {
  3409. if (hasProto) {
  3410. {// fixed by xxxxxx 微信小程序使用 plugins 之后,数组方法被直接挂载到了数组对象上,需要执行 copyAugment 逻辑
  3411. if(value.push !== value.__proto__.push){
  3412. copyAugment(value, arrayMethods, arrayKeys);
  3413. } else {
  3414. protoAugment(value, arrayMethods);
  3415. }
  3416. }
  3417. } else {
  3418. copyAugment(value, arrayMethods, arrayKeys);
  3419. }
  3420. this.observeArray(value);
  3421. } else {
  3422. this.walk(value);
  3423. }
  3424. };
  3425. /**
  3426. * Walk through all properties and convert them into
  3427. * getter/setters. This method should only be called when
  3428. * value type is Object.
  3429. */
  3430. Observer.prototype.walk = function walk (obj) {
  3431. var keys = Object.keys(obj);
  3432. for (var i = 0; i < keys.length; i++) {
  3433. defineReactive$$1(obj, keys[i]);
  3434. }
  3435. };
  3436. /**
  3437. * Observe a list of Array items.
  3438. */
  3439. Observer.prototype.observeArray = function observeArray (items) {
  3440. for (var i = 0, l = items.length; i < l; i++) {
  3441. observe(items[i]);
  3442. }
  3443. };
  3444. // helpers
  3445. /**
  3446. * Augment a target Object or Array by intercepting
  3447. * the prototype chain using __proto__
  3448. */
  3449. function protoAugment (target, src) {
  3450. /* eslint-disable no-proto */
  3451. target.__proto__ = src;
  3452. /* eslint-enable no-proto */
  3453. }
  3454. /**
  3455. * Augment a target Object or Array by defining
  3456. * hidden properties.
  3457. */
  3458. /* istanbul ignore next */
  3459. function copyAugment (target, src, keys) {
  3460. for (var i = 0, l = keys.length; i < l; i++) {
  3461. var key = keys[i];
  3462. def(target, key, src[key]);
  3463. }
  3464. }
  3465. /**
  3466. * Attempt to create an observer instance for a value,
  3467. * returns the new observer if successfully observed,
  3468. * or the existing observer if the value already has one.
  3469. */
  3470. function observe (value, asRootData) {
  3471. if (!isObject(value) || value instanceof VNode) {
  3472. return
  3473. }
  3474. var ob;
  3475. if (hasOwn(value, '__ob__') && value.__ob__ instanceof Observer) {
  3476. ob = value.__ob__;
  3477. } else if (
  3478. shouldObserve &&
  3479. !isServerRendering() &&
  3480. (Array.isArray(value) || isPlainObject(value)) &&
  3481. Object.isExtensible(value) &&
  3482. !value._isVue
  3483. ) {
  3484. ob = new Observer(value);
  3485. }
  3486. if (asRootData && ob) {
  3487. ob.vmCount++;
  3488. }
  3489. return ob
  3490. }
  3491. /**
  3492. * Define a reactive property on an Object.
  3493. */
  3494. function defineReactive$$1 (
  3495. obj,
  3496. key,
  3497. val,
  3498. customSetter,
  3499. shallow
  3500. ) {
  3501. var dep = new Dep();
  3502. var property = Object.getOwnPropertyDescriptor(obj, key);
  3503. if (property && property.configurable === false) {
  3504. return
  3505. }
  3506. // cater for pre-defined getter/setters
  3507. var getter = property && property.get;
  3508. var setter = property && property.set;
  3509. if ((!getter || setter) && arguments.length === 2) {
  3510. val = obj[key];
  3511. }
  3512. var childOb = !shallow && observe(val);
  3513. Object.defineProperty(obj, key, {
  3514. enumerable: true,
  3515. configurable: true,
  3516. get: function reactiveGetter () {
  3517. var value = getter ? getter.call(obj) : val;
  3518. if (Dep.SharedObject.target) { // fixed by xxxxxx
  3519. dep.depend();
  3520. if (childOb) {
  3521. childOb.dep.depend();
  3522. if (Array.isArray(value)) {
  3523. dependArray(value);
  3524. }
  3525. }
  3526. }
  3527. return value
  3528. },
  3529. set: function reactiveSetter (newVal) {
  3530. var value = getter ? getter.call(obj) : val;
  3531. /* eslint-disable no-self-compare */
  3532. if (newVal === value || (newVal !== newVal && value !== value)) {
  3533. return
  3534. }
  3535. /* eslint-enable no-self-compare */
  3536. if ( true && customSetter) {
  3537. customSetter();
  3538. }
  3539. // #7981: for accessor properties without setter
  3540. if (getter && !setter) { return }
  3541. if (setter) {
  3542. setter.call(obj, newVal);
  3543. } else {
  3544. val = newVal;
  3545. }
  3546. childOb = !shallow && observe(newVal);
  3547. dep.notify();
  3548. }
  3549. });
  3550. }
  3551. /**
  3552. * Set a property on an object. Adds the new property and
  3553. * triggers change notification if the property doesn't
  3554. * already exist.
  3555. */
  3556. function set (target, key, val) {
  3557. if ( true &&
  3558. (isUndef(target) || isPrimitive(target))
  3559. ) {
  3560. warn(("Cannot set reactive property on undefined, null, or primitive value: " + ((target))));
  3561. }
  3562. if (Array.isArray(target) && isValidArrayIndex(key)) {
  3563. target.length = Math.max(target.length, key);
  3564. target.splice(key, 1, val);
  3565. return val
  3566. }
  3567. if (key in target && !(key in Object.prototype)) {
  3568. target[key] = val;
  3569. return val
  3570. }
  3571. var ob = (target).__ob__;
  3572. if (target._isVue || (ob && ob.vmCount)) {
  3573. true && warn(
  3574. 'Avoid adding reactive properties to a Vue instance or its root $data ' +
  3575. 'at runtime - declare it upfront in the data option.'
  3576. );
  3577. return val
  3578. }
  3579. if (!ob) {
  3580. target[key] = val;
  3581. return val
  3582. }
  3583. defineReactive$$1(ob.value, key, val);
  3584. ob.dep.notify();
  3585. return val
  3586. }
  3587. /**
  3588. * Delete a property and trigger change if necessary.
  3589. */
  3590. function del (target, key) {
  3591. if ( true &&
  3592. (isUndef(target) || isPrimitive(target))
  3593. ) {
  3594. warn(("Cannot delete reactive property on undefined, null, or primitive value: " + ((target))));
  3595. }
  3596. if (Array.isArray(target) && isValidArrayIndex(key)) {
  3597. target.splice(key, 1);
  3598. return
  3599. }
  3600. var ob = (target).__ob__;
  3601. if (target._isVue || (ob && ob.vmCount)) {
  3602. true && warn(
  3603. 'Avoid deleting properties on a Vue instance or its root $data ' +
  3604. '- just set it to null.'
  3605. );
  3606. return
  3607. }
  3608. if (!hasOwn(target, key)) {
  3609. return
  3610. }
  3611. delete target[key];
  3612. if (!ob) {
  3613. return
  3614. }
  3615. ob.dep.notify();
  3616. }
  3617. /**
  3618. * Collect dependencies on array elements when the array is touched, since
  3619. * we cannot intercept array element access like property getters.
  3620. */
  3621. function dependArray (value) {
  3622. for (var e = (void 0), i = 0, l = value.length; i < l; i++) {
  3623. e = value[i];
  3624. e && e.__ob__ && e.__ob__.dep.depend();
  3625. if (Array.isArray(e)) {
  3626. dependArray(e);
  3627. }
  3628. }
  3629. }
  3630. /* */
  3631. /**
  3632. * Option overwriting strategies are functions that handle
  3633. * how to merge a parent option value and a child option
  3634. * value into the final value.
  3635. */
  3636. var strats = config.optionMergeStrategies;
  3637. /**
  3638. * Options with restrictions
  3639. */
  3640. if (true) {
  3641. strats.el = strats.propsData = function (parent, child, vm, key) {
  3642. if (!vm) {
  3643. warn(
  3644. "option \"" + key + "\" can only be used during instance " +
  3645. 'creation with the `new` keyword.'
  3646. );
  3647. }
  3648. return defaultStrat(parent, child)
  3649. };
  3650. }
  3651. /**
  3652. * Helper that recursively merges two data objects together.
  3653. */
  3654. function mergeData (to, from) {
  3655. if (!from) { return to }
  3656. var key, toVal, fromVal;
  3657. var keys = hasSymbol
  3658. ? Reflect.ownKeys(from)
  3659. : Object.keys(from);
  3660. for (var i = 0; i < keys.length; i++) {
  3661. key = keys[i];
  3662. // in case the object is already observed...
  3663. if (key === '__ob__') { continue }
  3664. toVal = to[key];
  3665. fromVal = from[key];
  3666. if (!hasOwn(to, key)) {
  3667. set(to, key, fromVal);
  3668. } else if (
  3669. toVal !== fromVal &&
  3670. isPlainObject(toVal) &&
  3671. isPlainObject(fromVal)
  3672. ) {
  3673. mergeData(toVal, fromVal);
  3674. }
  3675. }
  3676. return to
  3677. }
  3678. /**
  3679. * Data
  3680. */
  3681. function mergeDataOrFn (
  3682. parentVal,
  3683. childVal,
  3684. vm
  3685. ) {
  3686. if (!vm) {
  3687. // in a Vue.extend merge, both should be functions
  3688. if (!childVal) {
  3689. return parentVal
  3690. }
  3691. if (!parentVal) {
  3692. return childVal
  3693. }
  3694. // when parentVal & childVal are both present,
  3695. // we need to return a function that returns the
  3696. // merged result of both functions... no need to
  3697. // check if parentVal is a function here because
  3698. // it has to be a function to pass previous merges.
  3699. return function mergedDataFn () {
  3700. return mergeData(
  3701. typeof childVal === 'function' ? childVal.call(this, this) : childVal,
  3702. typeof parentVal === 'function' ? parentVal.call(this, this) : parentVal
  3703. )
  3704. }
  3705. } else {
  3706. return function mergedInstanceDataFn () {
  3707. // instance merge
  3708. var instanceData = typeof childVal === 'function'
  3709. ? childVal.call(vm, vm)
  3710. : childVal;
  3711. var defaultData = typeof parentVal === 'function'
  3712. ? parentVal.call(vm, vm)
  3713. : parentVal;
  3714. if (instanceData) {
  3715. return mergeData(instanceData, defaultData)
  3716. } else {
  3717. return defaultData
  3718. }
  3719. }
  3720. }
  3721. }
  3722. strats.data = function (
  3723. parentVal,
  3724. childVal,
  3725. vm
  3726. ) {
  3727. if (!vm) {
  3728. if (childVal && typeof childVal !== 'function') {
  3729. true && warn(
  3730. 'The "data" option should be a function ' +
  3731. 'that returns a per-instance value in component ' +
  3732. 'definitions.',
  3733. vm
  3734. );
  3735. return parentVal
  3736. }
  3737. return mergeDataOrFn(parentVal, childVal)
  3738. }
  3739. return mergeDataOrFn(parentVal, childVal, vm)
  3740. };
  3741. /**
  3742. * Hooks and props are merged as arrays.
  3743. */
  3744. function mergeHook (
  3745. parentVal,
  3746. childVal
  3747. ) {
  3748. var res = childVal
  3749. ? parentVal
  3750. ? parentVal.concat(childVal)
  3751. : Array.isArray(childVal)
  3752. ? childVal
  3753. : [childVal]
  3754. : parentVal;
  3755. return res
  3756. ? dedupeHooks(res)
  3757. : res
  3758. }
  3759. function dedupeHooks (hooks) {
  3760. var res = [];
  3761. for (var i = 0; i < hooks.length; i++) {
  3762. if (res.indexOf(hooks[i]) === -1) {
  3763. res.push(hooks[i]);
  3764. }
  3765. }
  3766. return res
  3767. }
  3768. LIFECYCLE_HOOKS.forEach(function (hook) {
  3769. strats[hook] = mergeHook;
  3770. });
  3771. /**
  3772. * Assets
  3773. *
  3774. * When a vm is present (instance creation), we need to do
  3775. * a three-way merge between constructor options, instance
  3776. * options and parent options.
  3777. */
  3778. function mergeAssets (
  3779. parentVal,
  3780. childVal,
  3781. vm,
  3782. key
  3783. ) {
  3784. var res = Object.create(parentVal || null);
  3785. if (childVal) {
  3786. true && assertObjectType(key, childVal, vm);
  3787. return extend(res, childVal)
  3788. } else {
  3789. return res
  3790. }
  3791. }
  3792. ASSET_TYPES.forEach(function (type) {
  3793. strats[type + 's'] = mergeAssets;
  3794. });
  3795. /**
  3796. * Watchers.
  3797. *
  3798. * Watchers hashes should not overwrite one
  3799. * another, so we merge them as arrays.
  3800. */
  3801. strats.watch = function (
  3802. parentVal,
  3803. childVal,
  3804. vm,
  3805. key
  3806. ) {
  3807. // work around Firefox's Object.prototype.watch...
  3808. if (parentVal === nativeWatch) { parentVal = undefined; }
  3809. if (childVal === nativeWatch) { childVal = undefined; }
  3810. /* istanbul ignore if */
  3811. if (!childVal) { return Object.create(parentVal || null) }
  3812. if (true) {
  3813. assertObjectType(key, childVal, vm);
  3814. }
  3815. if (!parentVal) { return childVal }
  3816. var ret = {};
  3817. extend(ret, parentVal);
  3818. for (var key$1 in childVal) {
  3819. var parent = ret[key$1];
  3820. var child = childVal[key$1];
  3821. if (parent && !Array.isArray(parent)) {
  3822. parent = [parent];
  3823. }
  3824. ret[key$1] = parent
  3825. ? parent.concat(child)
  3826. : Array.isArray(child) ? child : [child];
  3827. }
  3828. return ret
  3829. };
  3830. /**
  3831. * Other object hashes.
  3832. */
  3833. strats.props =
  3834. strats.methods =
  3835. strats.inject =
  3836. strats.computed = function (
  3837. parentVal,
  3838. childVal,
  3839. vm,
  3840. key
  3841. ) {
  3842. if (childVal && "development" !== 'production') {
  3843. assertObjectType(key, childVal, vm);
  3844. }
  3845. if (!parentVal) { return childVal }
  3846. var ret = Object.create(null);
  3847. extend(ret, parentVal);
  3848. if (childVal) { extend(ret, childVal); }
  3849. return ret
  3850. };
  3851. strats.provide = mergeDataOrFn;
  3852. /**
  3853. * Default strategy.
  3854. */
  3855. var defaultStrat = function (parentVal, childVal) {
  3856. return childVal === undefined
  3857. ? parentVal
  3858. : childVal
  3859. };
  3860. /**
  3861. * Validate component names
  3862. */
  3863. function checkComponents (options) {
  3864. for (var key in options.components) {
  3865. validateComponentName(key);
  3866. }
  3867. }
  3868. function validateComponentName (name) {
  3869. if (!new RegExp(("^[a-zA-Z][\\-\\.0-9_" + (unicodeRegExp.source) + "]*$")).test(name)) {
  3870. warn(
  3871. 'Invalid component name: "' + name + '". Component names ' +
  3872. 'should conform to valid custom element name in html5 specification.'
  3873. );
  3874. }
  3875. if (isBuiltInTag(name) || config.isReservedTag(name)) {
  3876. warn(
  3877. 'Do not use built-in or reserved HTML elements as component ' +
  3878. 'id: ' + name
  3879. );
  3880. }
  3881. }
  3882. /**
  3883. * Ensure all props option syntax are normalized into the
  3884. * Object-based format.
  3885. */
  3886. function normalizeProps (options, vm) {
  3887. var props = options.props;
  3888. if (!props) { return }
  3889. var res = {};
  3890. var i, val, name;
  3891. if (Array.isArray(props)) {
  3892. i = props.length;
  3893. while (i--) {
  3894. val = props[i];
  3895. if (typeof val === 'string') {
  3896. name = camelize(val);
  3897. res[name] = { type: null };
  3898. } else if (true) {
  3899. warn('props must be strings when using array syntax.');
  3900. }
  3901. }
  3902. } else if (isPlainObject(props)) {
  3903. for (var key in props) {
  3904. val = props[key];
  3905. name = camelize(key);
  3906. res[name] = isPlainObject(val)
  3907. ? val
  3908. : { type: val };
  3909. }
  3910. } else if (true) {
  3911. warn(
  3912. "Invalid value for option \"props\": expected an Array or an Object, " +
  3913. "but got " + (toRawType(props)) + ".",
  3914. vm
  3915. );
  3916. }
  3917. options.props = res;
  3918. }
  3919. /**
  3920. * Normalize all injections into Object-based format
  3921. */
  3922. function normalizeInject (options, vm) {
  3923. var inject = options.inject;
  3924. if (!inject) { return }
  3925. var normalized = options.inject = {};
  3926. if (Array.isArray(inject)) {
  3927. for (var i = 0; i < inject.length; i++) {
  3928. normalized[inject[i]] = { from: inject[i] };
  3929. }
  3930. } else if (isPlainObject(inject)) {
  3931. for (var key in inject) {
  3932. var val = inject[key];
  3933. normalized[key] = isPlainObject(val)
  3934. ? extend({ from: key }, val)
  3935. : { from: val };
  3936. }
  3937. } else if (true) {
  3938. warn(
  3939. "Invalid value for option \"inject\": expected an Array or an Object, " +
  3940. "but got " + (toRawType(inject)) + ".",
  3941. vm
  3942. );
  3943. }
  3944. }
  3945. /**
  3946. * Normalize raw function directives into object format.
  3947. */
  3948. function normalizeDirectives (options) {
  3949. var dirs = options.directives;
  3950. if (dirs) {
  3951. for (var key in dirs) {
  3952. var def$$1 = dirs[key];
  3953. if (typeof def$$1 === 'function') {
  3954. dirs[key] = { bind: def$$1, update: def$$1 };
  3955. }
  3956. }
  3957. }
  3958. }
  3959. function assertObjectType (name, value, vm) {
  3960. if (!isPlainObject(value)) {
  3961. warn(
  3962. "Invalid value for option \"" + name + "\": expected an Object, " +
  3963. "but got " + (toRawType(value)) + ".",
  3964. vm
  3965. );
  3966. }
  3967. }
  3968. /**
  3969. * Merge two option objects into a new one.
  3970. * Core utility used in both instantiation and inheritance.
  3971. */
  3972. function mergeOptions (
  3973. parent,
  3974. child,
  3975. vm
  3976. ) {
  3977. if (true) {
  3978. checkComponents(child);
  3979. }
  3980. if (typeof child === 'function') {
  3981. child = child.options;
  3982. }
  3983. normalizeProps(child, vm);
  3984. normalizeInject(child, vm);
  3985. normalizeDirectives(child);
  3986. // Apply extends and mixins on the child options,
  3987. // but only if it is a raw options object that isn't
  3988. // the result of another mergeOptions call.
  3989. // Only merged options has the _base property.
  3990. if (!child._base) {
  3991. if (child.extends) {
  3992. parent = mergeOptions(parent, child.extends, vm);
  3993. }
  3994. if (child.mixins) {
  3995. for (var i = 0, l = child.mixins.length; i < l; i++) {
  3996. parent = mergeOptions(parent, child.mixins[i], vm);
  3997. }
  3998. }
  3999. }
  4000. var options = {};
  4001. var key;
  4002. for (key in parent) {
  4003. mergeField(key);
  4004. }
  4005. for (key in child) {
  4006. if (!hasOwn(parent, key)) {
  4007. mergeField(key);
  4008. }
  4009. }
  4010. function mergeField (key) {
  4011. var strat = strats[key] || defaultStrat;
  4012. options[key] = strat(parent[key], child[key], vm, key);
  4013. }
  4014. return options
  4015. }
  4016. /**
  4017. * Resolve an asset.
  4018. * This function is used because child instances need access
  4019. * to assets defined in its ancestor chain.
  4020. */
  4021. function resolveAsset (
  4022. options,
  4023. type,
  4024. id,
  4025. warnMissing
  4026. ) {
  4027. /* istanbul ignore if */
  4028. if (typeof id !== 'string') {
  4029. return
  4030. }
  4031. var assets = options[type];
  4032. // check local registration variations first
  4033. if (hasOwn(assets, id)) { return assets[id] }
  4034. var camelizedId = camelize(id);
  4035. if (hasOwn(assets, camelizedId)) { return assets[camelizedId] }
  4036. var PascalCaseId = capitalize(camelizedId);
  4037. if (hasOwn(assets, PascalCaseId)) { return assets[PascalCaseId] }
  4038. // fallback to prototype chain
  4039. var res = assets[id] || assets[camelizedId] || assets[PascalCaseId];
  4040. if ( true && warnMissing && !res) {
  4041. warn(
  4042. 'Failed to resolve ' + type.slice(0, -1) + ': ' + id,
  4043. options
  4044. );
  4045. }
  4046. return res
  4047. }
  4048. /* */
  4049. function validateProp (
  4050. key,
  4051. propOptions,
  4052. propsData,
  4053. vm
  4054. ) {
  4055. var prop = propOptions[key];
  4056. var absent = !hasOwn(propsData, key);
  4057. var value = propsData[key];
  4058. // boolean casting
  4059. var booleanIndex = getTypeIndex(Boolean, prop.type);
  4060. if (booleanIndex > -1) {
  4061. if (absent && !hasOwn(prop, 'default')) {
  4062. value = false;
  4063. } else if (value === '' || value === hyphenate(key)) {
  4064. // only cast empty string / same name to boolean if
  4065. // boolean has higher priority
  4066. var stringIndex = getTypeIndex(String, prop.type);
  4067. if (stringIndex < 0 || booleanIndex < stringIndex) {
  4068. value = true;
  4069. }
  4070. }
  4071. }
  4072. // check default value
  4073. if (value === undefined) {
  4074. value = getPropDefaultValue(vm, prop, key);
  4075. // since the default value is a fresh copy,
  4076. // make sure to observe it.
  4077. var prevShouldObserve = shouldObserve;
  4078. toggleObserving(true);
  4079. observe(value);
  4080. toggleObserving(prevShouldObserve);
  4081. }
  4082. if (
  4083. true
  4084. ) {
  4085. assertProp(prop, key, value, vm, absent);
  4086. }
  4087. return value
  4088. }
  4089. /**
  4090. * Get the default value of a prop.
  4091. */
  4092. function getPropDefaultValue (vm, prop, key) {
  4093. // no default, return undefined
  4094. if (!hasOwn(prop, 'default')) {
  4095. return undefined
  4096. }
  4097. var def = prop.default;
  4098. // warn against non-factory defaults for Object & Array
  4099. if ( true && isObject(def)) {
  4100. warn(
  4101. 'Invalid default value for prop "' + key + '": ' +
  4102. 'Props with type Object/Array must use a factory function ' +
  4103. 'to return the default value.',
  4104. vm
  4105. );
  4106. }
  4107. // the raw prop value was also undefined from previous render,
  4108. // return previous default value to avoid unnecessary watcher trigger
  4109. if (vm && vm.$options.propsData &&
  4110. vm.$options.propsData[key] === undefined &&
  4111. vm._props[key] !== undefined
  4112. ) {
  4113. return vm._props[key]
  4114. }
  4115. // call factory function for non-Function types
  4116. // a value is Function if its prototype is function even across different execution context
  4117. return typeof def === 'function' && getType(prop.type) !== 'Function'
  4118. ? def.call(vm)
  4119. : def
  4120. }
  4121. /**
  4122. * Assert whether a prop is valid.
  4123. */
  4124. function assertProp (
  4125. prop,
  4126. name,
  4127. value,
  4128. vm,
  4129. absent
  4130. ) {
  4131. if (prop.required && absent) {
  4132. warn(
  4133. 'Missing required prop: "' + name + '"',
  4134. vm
  4135. );
  4136. return
  4137. }
  4138. if (value == null && !prop.required) {
  4139. return
  4140. }
  4141. var type = prop.type;
  4142. var valid = !type || type === true;
  4143. var expectedTypes = [];
  4144. if (type) {
  4145. if (!Array.isArray(type)) {
  4146. type = [type];
  4147. }
  4148. for (var i = 0; i < type.length && !valid; i++) {
  4149. var assertedType = assertType(value, type[i]);
  4150. expectedTypes.push(assertedType.expectedType || '');
  4151. valid = assertedType.valid;
  4152. }
  4153. }
  4154. if (!valid) {
  4155. warn(
  4156. getInvalidTypeMessage(name, value, expectedTypes),
  4157. vm
  4158. );
  4159. return
  4160. }
  4161. var validator = prop.validator;
  4162. if (validator) {
  4163. if (!validator(value)) {
  4164. warn(
  4165. 'Invalid prop: custom validator check failed for prop "' + name + '".',
  4166. vm
  4167. );
  4168. }
  4169. }
  4170. }
  4171. var simpleCheckRE = /^(String|Number|Boolean|Function|Symbol)$/;
  4172. function assertType (value, type) {
  4173. var valid;
  4174. var expectedType = getType(type);
  4175. if (simpleCheckRE.test(expectedType)) {
  4176. var t = typeof value;
  4177. valid = t === expectedType.toLowerCase();
  4178. // for primitive wrapper objects
  4179. if (!valid && t === 'object') {
  4180. valid = value instanceof type;
  4181. }
  4182. } else if (expectedType === 'Object') {
  4183. valid = isPlainObject(value);
  4184. } else if (expectedType === 'Array') {
  4185. valid = Array.isArray(value);
  4186. } else {
  4187. valid = value instanceof type;
  4188. }
  4189. return {
  4190. valid: valid,
  4191. expectedType: expectedType
  4192. }
  4193. }
  4194. /**
  4195. * Use function string name to check built-in types,
  4196. * because a simple equality check will fail when running
  4197. * across different vms / iframes.
  4198. */
  4199. function getType (fn) {
  4200. var match = fn && fn.toString().match(/^\s*function (\w+)/);
  4201. return match ? match[1] : ''
  4202. }
  4203. function isSameType (a, b) {
  4204. return getType(a) === getType(b)
  4205. }
  4206. function getTypeIndex (type, expectedTypes) {
  4207. if (!Array.isArray(expectedTypes)) {
  4208. return isSameType(expectedTypes, type) ? 0 : -1
  4209. }
  4210. for (var i = 0, len = expectedTypes.length; i < len; i++) {
  4211. if (isSameType(expectedTypes[i], type)) {
  4212. return i
  4213. }
  4214. }
  4215. return -1
  4216. }
  4217. function getInvalidTypeMessage (name, value, expectedTypes) {
  4218. var message = "Invalid prop: type check failed for prop \"" + name + "\"." +
  4219. " Expected " + (expectedTypes.map(capitalize).join(', '));
  4220. var expectedType = expectedTypes[0];
  4221. var receivedType = toRawType(value);
  4222. var expectedValue = styleValue(value, expectedType);
  4223. var receivedValue = styleValue(value, receivedType);
  4224. // check if we need to specify expected value
  4225. if (expectedTypes.length === 1 &&
  4226. isExplicable(expectedType) &&
  4227. !isBoolean(expectedType, receivedType)) {
  4228. message += " with value " + expectedValue;
  4229. }
  4230. message += ", got " + receivedType + " ";
  4231. // check if we need to specify received value
  4232. if (isExplicable(receivedType)) {
  4233. message += "with value " + receivedValue + ".";
  4234. }
  4235. return message
  4236. }
  4237. function styleValue (value, type) {
  4238. if (type === 'String') {
  4239. return ("\"" + value + "\"")
  4240. } else if (type === 'Number') {
  4241. return ("" + (Number(value)))
  4242. } else {
  4243. return ("" + value)
  4244. }
  4245. }
  4246. function isExplicable (value) {
  4247. var explicitTypes = ['string', 'number', 'boolean'];
  4248. return explicitTypes.some(function (elem) { return value.toLowerCase() === elem; })
  4249. }
  4250. function isBoolean () {
  4251. var args = [], len = arguments.length;
  4252. while ( len-- ) args[ len ] = arguments[ len ];
  4253. return args.some(function (elem) { return elem.toLowerCase() === 'boolean'; })
  4254. }
  4255. /* */
  4256. function handleError (err, vm, info) {
  4257. // Deactivate deps tracking while processing error handler to avoid possible infinite rendering.
  4258. // See: https://github.com/vuejs/vuex/issues/1505
  4259. pushTarget();
  4260. try {
  4261. if (vm) {
  4262. var cur = vm;
  4263. while ((cur = cur.$parent)) {
  4264. var hooks = cur.$options.errorCaptured;
  4265. if (hooks) {
  4266. for (var i = 0; i < hooks.length; i++) {
  4267. try {
  4268. var capture = hooks[i].call(cur, err, vm, info) === false;
  4269. if (capture) { return }
  4270. } catch (e) {
  4271. globalHandleError(e, cur, 'errorCaptured hook');
  4272. }
  4273. }
  4274. }
  4275. }
  4276. }
  4277. globalHandleError(err, vm, info);
  4278. } finally {
  4279. popTarget();
  4280. }
  4281. }
  4282. function invokeWithErrorHandling (
  4283. handler,
  4284. context,
  4285. args,
  4286. vm,
  4287. info
  4288. ) {
  4289. var res;
  4290. try {
  4291. res = args ? handler.apply(context, args) : handler.call(context);
  4292. if (res && !res._isVue && isPromise(res) && !res._handled) {
  4293. res.catch(function (e) { return handleError(e, vm, info + " (Promise/async)"); });
  4294. // issue #9511
  4295. // avoid catch triggering multiple times when nested calls
  4296. res._handled = true;
  4297. }
  4298. } catch (e) {
  4299. handleError(e, vm, info);
  4300. }
  4301. return res
  4302. }
  4303. function globalHandleError (err, vm, info) {
  4304. if (config.errorHandler) {
  4305. try {
  4306. return config.errorHandler.call(null, err, vm, info)
  4307. } catch (e) {
  4308. // if the user intentionally throws the original error in the handler,
  4309. // do not log it twice
  4310. if (e !== err) {
  4311. logError(e, null, 'config.errorHandler');
  4312. }
  4313. }
  4314. }
  4315. logError(err, vm, info);
  4316. }
  4317. function logError (err, vm, info) {
  4318. if (true) {
  4319. warn(("Error in " + info + ": \"" + (err.toString()) + "\""), vm);
  4320. }
  4321. /* istanbul ignore else */
  4322. if ((inBrowser || inWeex) && typeof console !== 'undefined') {
  4323. console.error(err);
  4324. } else {
  4325. throw err
  4326. }
  4327. }
  4328. /* */
  4329. var callbacks = [];
  4330. var pending = false;
  4331. function flushCallbacks () {
  4332. pending = false;
  4333. var copies = callbacks.slice(0);
  4334. callbacks.length = 0;
  4335. for (var i = 0; i < copies.length; i++) {
  4336. copies[i]();
  4337. }
  4338. }
  4339. // Here we have async deferring wrappers using microtasks.
  4340. // In 2.5 we used (macro) tasks (in combination with microtasks).
  4341. // However, it has subtle problems when state is changed right before repaint
  4342. // (e.g. #6813, out-in transitions).
  4343. // Also, using (macro) tasks in event handler would cause some weird behaviors
  4344. // that cannot be circumvented (e.g. #7109, #7153, #7546, #7834, #8109).
  4345. // So we now use microtasks everywhere, again.
  4346. // A major drawback of this tradeoff is that there are some scenarios
  4347. // where microtasks have too high a priority and fire in between supposedly
  4348. // sequential events (e.g. #4521, #6690, which have workarounds)
  4349. // or even between bubbling of the same event (#6566).
  4350. var timerFunc;
  4351. // The nextTick behavior leverages the microtask queue, which can be accessed
  4352. // via either native Promise.then or MutationObserver.
  4353. // MutationObserver has wider support, however it is seriously bugged in
  4354. // UIWebView in iOS >= 9.3.3 when triggered in touch event handlers. It
  4355. // completely stops working after triggering a few times... so, if native
  4356. // Promise is available, we will use it:
  4357. /* istanbul ignore next, $flow-disable-line */
  4358. if (typeof Promise !== 'undefined' && isNative(Promise)) {
  4359. var p = Promise.resolve();
  4360. timerFunc = function () {
  4361. p.then(flushCallbacks);
  4362. // In problematic UIWebViews, Promise.then doesn't completely break, but
  4363. // it can get stuck in a weird state where callbacks are pushed into the
  4364. // microtask queue but the queue isn't being flushed, until the browser
  4365. // needs to do some other work, e.g. handle a timer. Therefore we can
  4366. // "force" the microtask queue to be flushed by adding an empty timer.
  4367. if (isIOS) { setTimeout(noop); }
  4368. };
  4369. } else if (!isIE && typeof MutationObserver !== 'undefined' && (
  4370. isNative(MutationObserver) ||
  4371. // PhantomJS and iOS 7.x
  4372. MutationObserver.toString() === '[object MutationObserverConstructor]'
  4373. )) {
  4374. // Use MutationObserver where native Promise is not available,
  4375. // e.g. PhantomJS, iOS7, Android 4.4
  4376. // (#6466 MutationObserver is unreliable in IE11)
  4377. var counter = 1;
  4378. var observer = new MutationObserver(flushCallbacks);
  4379. var textNode = document.createTextNode(String(counter));
  4380. observer.observe(textNode, {
  4381. characterData: true
  4382. });
  4383. timerFunc = function () {
  4384. counter = (counter + 1) % 2;
  4385. textNode.data = String(counter);
  4386. };
  4387. } else if (typeof setImmediate !== 'undefined' && isNative(setImmediate)) {
  4388. // Fallback to setImmediate.
  4389. // Technically it leverages the (macro) task queue,
  4390. // but it is still a better choice than setTimeout.
  4391. timerFunc = function () {
  4392. setImmediate(flushCallbacks);
  4393. };
  4394. } else {
  4395. // Fallback to setTimeout.
  4396. timerFunc = function () {
  4397. setTimeout(flushCallbacks, 0);
  4398. };
  4399. }
  4400. function nextTick (cb, ctx) {
  4401. var _resolve;
  4402. callbacks.push(function () {
  4403. if (cb) {
  4404. try {
  4405. cb.call(ctx);
  4406. } catch (e) {
  4407. handleError(e, ctx, 'nextTick');
  4408. }
  4409. } else if (_resolve) {
  4410. _resolve(ctx);
  4411. }
  4412. });
  4413. if (!pending) {
  4414. pending = true;
  4415. timerFunc();
  4416. }
  4417. // $flow-disable-line
  4418. if (!cb && typeof Promise !== 'undefined') {
  4419. return new Promise(function (resolve) {
  4420. _resolve = resolve;
  4421. })
  4422. }
  4423. }
  4424. /* */
  4425. /* not type checking this file because flow doesn't play well with Proxy */
  4426. var initProxy;
  4427. if (true) {
  4428. var allowedGlobals = makeMap(
  4429. 'Infinity,undefined,NaN,isFinite,isNaN,' +
  4430. 'parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,' +
  4431. 'Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl,' +
  4432. 'require' // for Webpack/Browserify
  4433. );
  4434. var warnNonPresent = function (target, key) {
  4435. warn(
  4436. "Property or method \"" + key + "\" is not defined on the instance but " +
  4437. 'referenced during render. Make sure that this property is reactive, ' +
  4438. 'either in the data option, or for class-based components, by ' +
  4439. 'initializing the property. ' +
  4440. 'See: https://vuejs.org/v2/guide/reactivity.html#Declaring-Reactive-Properties.',
  4441. target
  4442. );
  4443. };
  4444. var warnReservedPrefix = function (target, key) {
  4445. warn(
  4446. "Property \"" + key + "\" must be accessed with \"$data." + key + "\" because " +
  4447. 'properties starting with "$" or "_" are not proxied in the Vue instance to ' +
  4448. 'prevent conflicts with Vue internals. ' +
  4449. 'See: https://vuejs.org/v2/api/#data',
  4450. target
  4451. );
  4452. };
  4453. var hasProxy =
  4454. typeof Proxy !== 'undefined' && isNative(Proxy);
  4455. if (hasProxy) {
  4456. var isBuiltInModifier = makeMap('stop,prevent,self,ctrl,shift,alt,meta,exact');
  4457. config.keyCodes = new Proxy(config.keyCodes, {
  4458. set: function set (target, key, value) {
  4459. if (isBuiltInModifier(key)) {
  4460. warn(("Avoid overwriting built-in modifier in config.keyCodes: ." + key));
  4461. return false
  4462. } else {
  4463. target[key] = value;
  4464. return true
  4465. }
  4466. }
  4467. });
  4468. }
  4469. var hasHandler = {
  4470. has: function has (target, key) {
  4471. var has = key in target;
  4472. var isAllowed = allowedGlobals(key) ||
  4473. (typeof key === 'string' && key.charAt(0) === '_' && !(key in target.$data));
  4474. if (!has && !isAllowed) {
  4475. if (key in target.$data) { warnReservedPrefix(target, key); }
  4476. else { warnNonPresent(target, key); }
  4477. }
  4478. return has || !isAllowed
  4479. }
  4480. };
  4481. var getHandler = {
  4482. get: function get (target, key) {
  4483. if (typeof key === 'string' && !(key in target)) {
  4484. if (key in target.$data) { warnReservedPrefix(target, key); }
  4485. else { warnNonPresent(target, key); }
  4486. }
  4487. return target[key]
  4488. }
  4489. };
  4490. initProxy = function initProxy (vm) {
  4491. if (hasProxy) {
  4492. // determine which proxy handler to use
  4493. var options = vm.$options;
  4494. var handlers = options.render && options.render._withStripped
  4495. ? getHandler
  4496. : hasHandler;
  4497. vm._renderProxy = new Proxy(vm, handlers);
  4498. } else {
  4499. vm._renderProxy = vm;
  4500. }
  4501. };
  4502. }
  4503. /* */
  4504. var seenObjects = new _Set();
  4505. /**
  4506. * Recursively traverse an object to evoke all converted
  4507. * getters, so that every nested property inside the object
  4508. * is collected as a "deep" dependency.
  4509. */
  4510. function traverse (val) {
  4511. _traverse(val, seenObjects);
  4512. seenObjects.clear();
  4513. }
  4514. function _traverse (val, seen) {
  4515. var i, keys;
  4516. var isA = Array.isArray(val);
  4517. if ((!isA && !isObject(val)) || Object.isFrozen(val) || val instanceof VNode) {
  4518. return
  4519. }
  4520. if (val.__ob__) {
  4521. var depId = val.__ob__.dep.id;
  4522. if (seen.has(depId)) {
  4523. return
  4524. }
  4525. seen.add(depId);
  4526. }
  4527. if (isA) {
  4528. i = val.length;
  4529. while (i--) { _traverse(val[i], seen); }
  4530. } else {
  4531. keys = Object.keys(val);
  4532. i = keys.length;
  4533. while (i--) { _traverse(val[keys[i]], seen); }
  4534. }
  4535. }
  4536. var mark;
  4537. var measure;
  4538. if (true) {
  4539. var perf = inBrowser && window.performance;
  4540. /* istanbul ignore if */
  4541. if (
  4542. perf &&
  4543. perf.mark &&
  4544. perf.measure &&
  4545. perf.clearMarks &&
  4546. perf.clearMeasures
  4547. ) {
  4548. mark = function (tag) { return perf.mark(tag); };
  4549. measure = function (name, startTag, endTag) {
  4550. perf.measure(name, startTag, endTag);
  4551. perf.clearMarks(startTag);
  4552. perf.clearMarks(endTag);
  4553. // perf.clearMeasures(name)
  4554. };
  4555. }
  4556. }
  4557. /* */
  4558. var normalizeEvent = cached(function (name) {
  4559. var passive = name.charAt(0) === '&';
  4560. name = passive ? name.slice(1) : name;
  4561. var once$$1 = name.charAt(0) === '~'; // Prefixed last, checked first
  4562. name = once$$1 ? name.slice(1) : name;
  4563. var capture = name.charAt(0) === '!';
  4564. name = capture ? name.slice(1) : name;
  4565. return {
  4566. name: name,
  4567. once: once$$1,
  4568. capture: capture,
  4569. passive: passive
  4570. }
  4571. });
  4572. function createFnInvoker (fns, vm) {
  4573. function invoker () {
  4574. var arguments$1 = arguments;
  4575. var fns = invoker.fns;
  4576. if (Array.isArray(fns)) {
  4577. var cloned = fns.slice();
  4578. for (var i = 0; i < cloned.length; i++) {
  4579. invokeWithErrorHandling(cloned[i], null, arguments$1, vm, "v-on handler");
  4580. }
  4581. } else {
  4582. // return handler return value for single handlers
  4583. return invokeWithErrorHandling(fns, null, arguments, vm, "v-on handler")
  4584. }
  4585. }
  4586. invoker.fns = fns;
  4587. return invoker
  4588. }
  4589. function updateListeners (
  4590. on,
  4591. oldOn,
  4592. add,
  4593. remove$$1,
  4594. createOnceHandler,
  4595. vm
  4596. ) {
  4597. var name, def$$1, cur, old, event;
  4598. for (name in on) {
  4599. def$$1 = cur = on[name];
  4600. old = oldOn[name];
  4601. event = normalizeEvent(name);
  4602. if (isUndef(cur)) {
  4603. true && warn(
  4604. "Invalid handler for event \"" + (event.name) + "\": got " + String(cur),
  4605. vm
  4606. );
  4607. } else if (isUndef(old)) {
  4608. if (isUndef(cur.fns)) {
  4609. cur = on[name] = createFnInvoker(cur, vm);
  4610. }
  4611. if (isTrue(event.once)) {
  4612. cur = on[name] = createOnceHandler(event.name, cur, event.capture);
  4613. }
  4614. add(event.name, cur, event.capture, event.passive, event.params);
  4615. } else if (cur !== old) {
  4616. old.fns = cur;
  4617. on[name] = old;
  4618. }
  4619. }
  4620. for (name in oldOn) {
  4621. if (isUndef(on[name])) {
  4622. event = normalizeEvent(name);
  4623. remove$$1(event.name, oldOn[name], event.capture);
  4624. }
  4625. }
  4626. }
  4627. /* */
  4628. /* */
  4629. // fixed by xxxxxx (mp properties)
  4630. function extractPropertiesFromVNodeData(data, Ctor, res, context) {
  4631. var propOptions = Ctor.options.mpOptions && Ctor.options.mpOptions.properties;
  4632. if (isUndef(propOptions)) {
  4633. return res
  4634. }
  4635. var externalClasses = Ctor.options.mpOptions.externalClasses || [];
  4636. var attrs = data.attrs;
  4637. var props = data.props;
  4638. if (isDef(attrs) || isDef(props)) {
  4639. for (var key in propOptions) {
  4640. var altKey = hyphenate(key);
  4641. var result = checkProp(res, props, key, altKey, true) ||
  4642. checkProp(res, attrs, key, altKey, false);
  4643. // externalClass
  4644. if (
  4645. result &&
  4646. res[key] &&
  4647. externalClasses.indexOf(altKey) !== -1 &&
  4648. context[camelize(res[key])]
  4649. ) {
  4650. // 赋值 externalClass 真正的值(模板里 externalClass 的值可能是字符串)
  4651. res[key] = context[camelize(res[key])];
  4652. }
  4653. }
  4654. }
  4655. return res
  4656. }
  4657. function extractPropsFromVNodeData (
  4658. data,
  4659. Ctor,
  4660. tag,
  4661. context// fixed by xxxxxx
  4662. ) {
  4663. // we are only extracting raw values here.
  4664. // validation and default values are handled in the child
  4665. // component itself.
  4666. var propOptions = Ctor.options.props;
  4667. if (isUndef(propOptions)) {
  4668. // fixed by xxxxxx
  4669. return extractPropertiesFromVNodeData(data, Ctor, {}, context)
  4670. }
  4671. var res = {};
  4672. var attrs = data.attrs;
  4673. var props = data.props;
  4674. if (isDef(attrs) || isDef(props)) {
  4675. for (var key in propOptions) {
  4676. var altKey = hyphenate(key);
  4677. if (true) {
  4678. var keyInLowerCase = key.toLowerCase();
  4679. if (
  4680. key !== keyInLowerCase &&
  4681. attrs && hasOwn(attrs, keyInLowerCase)
  4682. ) {
  4683. tip(
  4684. "Prop \"" + keyInLowerCase + "\" is passed to component " +
  4685. (formatComponentName(tag || Ctor)) + ", but the declared prop name is" +
  4686. " \"" + key + "\". " +
  4687. "Note that HTML attributes are case-insensitive and camelCased " +
  4688. "props need to use their kebab-case equivalents when using in-DOM " +
  4689. "templates. You should probably use \"" + altKey + "\" instead of \"" + key + "\"."
  4690. );
  4691. }
  4692. }
  4693. checkProp(res, props, key, altKey, true) ||
  4694. checkProp(res, attrs, key, altKey, false);
  4695. }
  4696. }
  4697. // fixed by xxxxxx
  4698. return extractPropertiesFromVNodeData(data, Ctor, res, context)
  4699. }
  4700. function checkProp (
  4701. res,
  4702. hash,
  4703. key,
  4704. altKey,
  4705. preserve
  4706. ) {
  4707. if (isDef(hash)) {
  4708. if (hasOwn(hash, key)) {
  4709. res[key] = hash[key];
  4710. if (!preserve) {
  4711. delete hash[key];
  4712. }
  4713. return true
  4714. } else if (hasOwn(hash, altKey)) {
  4715. res[key] = hash[altKey];
  4716. if (!preserve) {
  4717. delete hash[altKey];
  4718. }
  4719. return true
  4720. }
  4721. }
  4722. return false
  4723. }
  4724. /* */
  4725. // The template compiler attempts to minimize the need for normalization by
  4726. // statically analyzing the template at compile time.
  4727. //
  4728. // For plain HTML markup, normalization can be completely skipped because the
  4729. // generated render function is guaranteed to return Array<VNode>. There are
  4730. // two cases where extra normalization is needed:
  4731. // 1. When the children contains components - because a functional component
  4732. // may return an Array instead of a single root. In this case, just a simple
  4733. // normalization is needed - if any child is an Array, we flatten the whole
  4734. // thing with Array.prototype.concat. It is guaranteed to be only 1-level deep
  4735. // because functional components already normalize their own children.
  4736. function simpleNormalizeChildren (children) {
  4737. for (var i = 0; i < children.length; i++) {
  4738. if (Array.isArray(children[i])) {
  4739. return Array.prototype.concat.apply([], children)
  4740. }
  4741. }
  4742. return children
  4743. }
  4744. // 2. When the children contains constructs that always generated nested Arrays,
  4745. // e.g. <template>, <slot>, v-for, or when the children is provided by user
  4746. // with hand-written render functions / JSX. In such cases a full normalization
  4747. // is needed to cater to all possible types of children values.
  4748. function normalizeChildren (children) {
  4749. return isPrimitive(children)
  4750. ? [createTextVNode(children)]
  4751. : Array.isArray(children)
  4752. ? normalizeArrayChildren(children)
  4753. : undefined
  4754. }
  4755. function isTextNode (node) {
  4756. return isDef(node) && isDef(node.text) && isFalse(node.isComment)
  4757. }
  4758. function normalizeArrayChildren (children, nestedIndex) {
  4759. var res = [];
  4760. var i, c, lastIndex, last;
  4761. for (i = 0; i < children.length; i++) {
  4762. c = children[i];
  4763. if (isUndef(c) || typeof c === 'boolean') { continue }
  4764. lastIndex = res.length - 1;
  4765. last = res[lastIndex];
  4766. // nested
  4767. if (Array.isArray(c)) {
  4768. if (c.length > 0) {
  4769. c = normalizeArrayChildren(c, ((nestedIndex || '') + "_" + i));
  4770. // merge adjacent text nodes
  4771. if (isTextNode(c[0]) && isTextNode(last)) {
  4772. res[lastIndex] = createTextVNode(last.text + (c[0]).text);
  4773. c.shift();
  4774. }
  4775. res.push.apply(res, c);
  4776. }
  4777. } else if (isPrimitive(c)) {
  4778. if (isTextNode(last)) {
  4779. // merge adjacent text nodes
  4780. // this is necessary for SSR hydration because text nodes are
  4781. // essentially merged when rendered to HTML strings
  4782. res[lastIndex] = createTextVNode(last.text + c);
  4783. } else if (c !== '') {
  4784. // convert primitive to vnode
  4785. res.push(createTextVNode(c));
  4786. }
  4787. } else {
  4788. if (isTextNode(c) && isTextNode(last)) {
  4789. // merge adjacent text nodes
  4790. res[lastIndex] = createTextVNode(last.text + c.text);
  4791. } else {
  4792. // default key for nested array children (likely generated by v-for)
  4793. if (isTrue(children._isVList) &&
  4794. isDef(c.tag) &&
  4795. isUndef(c.key) &&
  4796. isDef(nestedIndex)) {
  4797. c.key = "__vlist" + nestedIndex + "_" + i + "__";
  4798. }
  4799. res.push(c);
  4800. }
  4801. }
  4802. }
  4803. return res
  4804. }
  4805. /* */
  4806. function initProvide (vm) {
  4807. var provide = vm.$options.provide;
  4808. if (provide) {
  4809. vm._provided = typeof provide === 'function'
  4810. ? provide.call(vm)
  4811. : provide;
  4812. }
  4813. }
  4814. function initInjections (vm) {
  4815. var result = resolveInject(vm.$options.inject, vm);
  4816. if (result) {
  4817. toggleObserving(false);
  4818. Object.keys(result).forEach(function (key) {
  4819. /* istanbul ignore else */
  4820. if (true) {
  4821. defineReactive$$1(vm, key, result[key], function () {
  4822. warn(
  4823. "Avoid mutating an injected value directly since the changes will be " +
  4824. "overwritten whenever the provided component re-renders. " +
  4825. "injection being mutated: \"" + key + "\"",
  4826. vm
  4827. );
  4828. });
  4829. } else {}
  4830. });
  4831. toggleObserving(true);
  4832. }
  4833. }
  4834. function resolveInject (inject, vm) {
  4835. if (inject) {
  4836. // inject is :any because flow is not smart enough to figure out cached
  4837. var result = Object.create(null);
  4838. var keys = hasSymbol
  4839. ? Reflect.ownKeys(inject)
  4840. : Object.keys(inject);
  4841. for (var i = 0; i < keys.length; i++) {
  4842. var key = keys[i];
  4843. // #6574 in case the inject object is observed...
  4844. if (key === '__ob__') { continue }
  4845. var provideKey = inject[key].from;
  4846. var source = vm;
  4847. while (source) {
  4848. if (source._provided && hasOwn(source._provided, provideKey)) {
  4849. result[key] = source._provided[provideKey];
  4850. break
  4851. }
  4852. source = source.$parent;
  4853. }
  4854. if (!source) {
  4855. if ('default' in inject[key]) {
  4856. var provideDefault = inject[key].default;
  4857. result[key] = typeof provideDefault === 'function'
  4858. ? provideDefault.call(vm)
  4859. : provideDefault;
  4860. } else if (true) {
  4861. warn(("Injection \"" + key + "\" not found"), vm);
  4862. }
  4863. }
  4864. }
  4865. return result
  4866. }
  4867. }
  4868. /* */
  4869. /**
  4870. * Runtime helper for resolving raw children VNodes into a slot object.
  4871. */
  4872. function resolveSlots (
  4873. children,
  4874. context
  4875. ) {
  4876. if (!children || !children.length) {
  4877. return {}
  4878. }
  4879. var slots = {};
  4880. for (var i = 0, l = children.length; i < l; i++) {
  4881. var child = children[i];
  4882. var data = child.data;
  4883. // remove slot attribute if the node is resolved as a Vue slot node
  4884. if (data && data.attrs && data.attrs.slot) {
  4885. delete data.attrs.slot;
  4886. }
  4887. // named slots should only be respected if the vnode was rendered in the
  4888. // same context.
  4889. if ((child.context === context || child.fnContext === context) &&
  4890. data && data.slot != null
  4891. ) {
  4892. var name = data.slot;
  4893. var slot = (slots[name] || (slots[name] = []));
  4894. if (child.tag === 'template') {
  4895. slot.push.apply(slot, child.children || []);
  4896. } else {
  4897. slot.push(child);
  4898. }
  4899. } else {
  4900. // fixed by xxxxxx 临时 hack 掉 uni-app 中的异步 name slot page
  4901. if(child.asyncMeta && child.asyncMeta.data && child.asyncMeta.data.slot === 'page'){
  4902. (slots['page'] || (slots['page'] = [])).push(child);
  4903. }else{
  4904. (slots.default || (slots.default = [])).push(child);
  4905. }
  4906. }
  4907. }
  4908. // ignore slots that contains only whitespace
  4909. for (var name$1 in slots) {
  4910. if (slots[name$1].every(isWhitespace)) {
  4911. delete slots[name$1];
  4912. }
  4913. }
  4914. return slots
  4915. }
  4916. function isWhitespace (node) {
  4917. return (node.isComment && !node.asyncFactory) || node.text === ' '
  4918. }
  4919. /* */
  4920. function normalizeScopedSlots (
  4921. slots,
  4922. normalSlots,
  4923. prevSlots
  4924. ) {
  4925. var res;
  4926. var hasNormalSlots = Object.keys(normalSlots).length > 0;
  4927. var isStable = slots ? !!slots.$stable : !hasNormalSlots;
  4928. var key = slots && slots.$key;
  4929. if (!slots) {
  4930. res = {};
  4931. } else if (slots._normalized) {
  4932. // fast path 1: child component re-render only, parent did not change
  4933. return slots._normalized
  4934. } else if (
  4935. isStable &&
  4936. prevSlots &&
  4937. prevSlots !== emptyObject &&
  4938. key === prevSlots.$key &&
  4939. !hasNormalSlots &&
  4940. !prevSlots.$hasNormal
  4941. ) {
  4942. // fast path 2: stable scoped slots w/ no normal slots to proxy,
  4943. // only need to normalize once
  4944. return prevSlots
  4945. } else {
  4946. res = {};
  4947. for (var key$1 in slots) {
  4948. if (slots[key$1] && key$1[0] !== '$') {
  4949. res[key$1] = normalizeScopedSlot(normalSlots, key$1, slots[key$1]);
  4950. }
  4951. }
  4952. }
  4953. // expose normal slots on scopedSlots
  4954. for (var key$2 in normalSlots) {
  4955. if (!(key$2 in res)) {
  4956. res[key$2] = proxyNormalSlot(normalSlots, key$2);
  4957. }
  4958. }
  4959. // avoriaz seems to mock a non-extensible $scopedSlots object
  4960. // and when that is passed down this would cause an error
  4961. if (slots && Object.isExtensible(slots)) {
  4962. (slots)._normalized = res;
  4963. }
  4964. def(res, '$stable', isStable);
  4965. def(res, '$key', key);
  4966. def(res, '$hasNormal', hasNormalSlots);
  4967. return res
  4968. }
  4969. function normalizeScopedSlot(normalSlots, key, fn) {
  4970. var normalized = function () {
  4971. var res = arguments.length ? fn.apply(null, arguments) : fn({});
  4972. res = res && typeof res === 'object' && !Array.isArray(res)
  4973. ? [res] // single vnode
  4974. : normalizeChildren(res);
  4975. return res && (
  4976. res.length === 0 ||
  4977. (res.length === 1 && res[0].isComment) // #9658
  4978. ) ? undefined
  4979. : res
  4980. };
  4981. // this is a slot using the new v-slot syntax without scope. although it is
  4982. // compiled as a scoped slot, render fn users would expect it to be present
  4983. // on this.$slots because the usage is semantically a normal slot.
  4984. if (fn.proxy) {
  4985. Object.defineProperty(normalSlots, key, {
  4986. get: normalized,
  4987. enumerable: true,
  4988. configurable: true
  4989. });
  4990. }
  4991. return normalized
  4992. }
  4993. function proxyNormalSlot(slots, key) {
  4994. return function () { return slots[key]; }
  4995. }
  4996. /* */
  4997. /**
  4998. * Runtime helper for rendering v-for lists.
  4999. */
  5000. function renderList (
  5001. val,
  5002. render
  5003. ) {
  5004. var ret, i, l, keys, key;
  5005. if (Array.isArray(val) || typeof val === 'string') {
  5006. ret = new Array(val.length);
  5007. for (i = 0, l = val.length; i < l; i++) {
  5008. ret[i] = render(val[i], i, i, i); // fixed by xxxxxx
  5009. }
  5010. } else if (typeof val === 'number') {
  5011. ret = new Array(val);
  5012. for (i = 0; i < val; i++) {
  5013. ret[i] = render(i + 1, i, i, i); // fixed by xxxxxx
  5014. }
  5015. } else if (isObject(val)) {
  5016. if (hasSymbol && val[Symbol.iterator]) {
  5017. ret = [];
  5018. var iterator = val[Symbol.iterator]();
  5019. var result = iterator.next();
  5020. while (!result.done) {
  5021. ret.push(render(result.value, ret.length, i, i++)); // fixed by xxxxxx
  5022. result = iterator.next();
  5023. }
  5024. } else {
  5025. keys = Object.keys(val);
  5026. ret = new Array(keys.length);
  5027. for (i = 0, l = keys.length; i < l; i++) {
  5028. key = keys[i];
  5029. ret[i] = render(val[key], key, i, i); // fixed by xxxxxx
  5030. }
  5031. }
  5032. }
  5033. if (!isDef(ret)) {
  5034. ret = [];
  5035. }
  5036. (ret)._isVList = true;
  5037. return ret
  5038. }
  5039. /* */
  5040. /**
  5041. * Runtime helper for rendering <slot>
  5042. */
  5043. function renderSlot (
  5044. name,
  5045. fallback,
  5046. props,
  5047. bindObject
  5048. ) {
  5049. var scopedSlotFn = this.$scopedSlots[name];
  5050. var nodes;
  5051. if (scopedSlotFn) { // scoped slot
  5052. props = props || {};
  5053. if (bindObject) {
  5054. if ( true && !isObject(bindObject)) {
  5055. warn(
  5056. 'slot v-bind without argument expects an Object',
  5057. this
  5058. );
  5059. }
  5060. props = extend(extend({}, bindObject), props);
  5061. }
  5062. // fixed by xxxxxx app-plus scopedSlot
  5063. nodes = scopedSlotFn(props, this, props._i) || fallback;
  5064. } else {
  5065. nodes = this.$slots[name] || fallback;
  5066. }
  5067. var target = props && props.slot;
  5068. if (target) {
  5069. return this.$createElement('template', { slot: target }, nodes)
  5070. } else {
  5071. return nodes
  5072. }
  5073. }
  5074. /* */
  5075. /**
  5076. * Runtime helper for resolving filters
  5077. */
  5078. function resolveFilter (id) {
  5079. return resolveAsset(this.$options, 'filters', id, true) || identity
  5080. }
  5081. /* */
  5082. function isKeyNotMatch (expect, actual) {
  5083. if (Array.isArray(expect)) {
  5084. return expect.indexOf(actual) === -1
  5085. } else {
  5086. return expect !== actual
  5087. }
  5088. }
  5089. /**
  5090. * Runtime helper for checking keyCodes from config.
  5091. * exposed as Vue.prototype._k
  5092. * passing in eventKeyName as last argument separately for backwards compat
  5093. */
  5094. function checkKeyCodes (
  5095. eventKeyCode,
  5096. key,
  5097. builtInKeyCode,
  5098. eventKeyName,
  5099. builtInKeyName
  5100. ) {
  5101. var mappedKeyCode = config.keyCodes[key] || builtInKeyCode;
  5102. if (builtInKeyName && eventKeyName && !config.keyCodes[key]) {
  5103. return isKeyNotMatch(builtInKeyName, eventKeyName)
  5104. } else if (mappedKeyCode) {
  5105. return isKeyNotMatch(mappedKeyCode, eventKeyCode)
  5106. } else if (eventKeyName) {
  5107. return hyphenate(eventKeyName) !== key
  5108. }
  5109. }
  5110. /* */
  5111. /**
  5112. * Runtime helper for merging v-bind="object" into a VNode's data.
  5113. */
  5114. function bindObjectProps (
  5115. data,
  5116. tag,
  5117. value,
  5118. asProp,
  5119. isSync
  5120. ) {
  5121. if (value) {
  5122. if (!isObject(value)) {
  5123. true && warn(
  5124. 'v-bind without argument expects an Object or Array value',
  5125. this
  5126. );
  5127. } else {
  5128. if (Array.isArray(value)) {
  5129. value = toObject(value);
  5130. }
  5131. var hash;
  5132. var loop = function ( key ) {
  5133. if (
  5134. key === 'class' ||
  5135. key === 'style' ||
  5136. isReservedAttribute(key)
  5137. ) {
  5138. hash = data;
  5139. } else {
  5140. var type = data.attrs && data.attrs.type;
  5141. hash = asProp || config.mustUseProp(tag, type, key)
  5142. ? data.domProps || (data.domProps = {})
  5143. : data.attrs || (data.attrs = {});
  5144. }
  5145. var camelizedKey = camelize(key);
  5146. var hyphenatedKey = hyphenate(key);
  5147. if (!(camelizedKey in hash) && !(hyphenatedKey in hash)) {
  5148. hash[key] = value[key];
  5149. if (isSync) {
  5150. var on = data.on || (data.on = {});
  5151. on[("update:" + key)] = function ($event) {
  5152. value[key] = $event;
  5153. };
  5154. }
  5155. }
  5156. };
  5157. for (var key in value) loop( key );
  5158. }
  5159. }
  5160. return data
  5161. }
  5162. /* */
  5163. /**
  5164. * Runtime helper for rendering static trees.
  5165. */
  5166. function renderStatic (
  5167. index,
  5168. isInFor
  5169. ) {
  5170. var cached = this._staticTrees || (this._staticTrees = []);
  5171. var tree = cached[index];
  5172. // if has already-rendered static tree and not inside v-for,
  5173. // we can reuse the same tree.
  5174. if (tree && !isInFor) {
  5175. return tree
  5176. }
  5177. // otherwise, render a fresh tree.
  5178. tree = cached[index] = this.$options.staticRenderFns[index].call(
  5179. this._renderProxy,
  5180. null,
  5181. this // for render fns generated for functional component templates
  5182. );
  5183. markStatic(tree, ("__static__" + index), false);
  5184. return tree
  5185. }
  5186. /**
  5187. * Runtime helper for v-once.
  5188. * Effectively it means marking the node as static with a unique key.
  5189. */
  5190. function markOnce (
  5191. tree,
  5192. index,
  5193. key
  5194. ) {
  5195. markStatic(tree, ("__once__" + index + (key ? ("_" + key) : "")), true);
  5196. return tree
  5197. }
  5198. function markStatic (
  5199. tree,
  5200. key,
  5201. isOnce
  5202. ) {
  5203. if (Array.isArray(tree)) {
  5204. for (var i = 0; i < tree.length; i++) {
  5205. if (tree[i] && typeof tree[i] !== 'string') {
  5206. markStaticNode(tree[i], (key + "_" + i), isOnce);
  5207. }
  5208. }
  5209. } else {
  5210. markStaticNode(tree, key, isOnce);
  5211. }
  5212. }
  5213. function markStaticNode (node, key, isOnce) {
  5214. node.isStatic = true;
  5215. node.key = key;
  5216. node.isOnce = isOnce;
  5217. }
  5218. /* */
  5219. function bindObjectListeners (data, value) {
  5220. if (value) {
  5221. if (!isPlainObject(value)) {
  5222. true && warn(
  5223. 'v-on without argument expects an Object value',
  5224. this
  5225. );
  5226. } else {
  5227. var on = data.on = data.on ? extend({}, data.on) : {};
  5228. for (var key in value) {
  5229. var existing = on[key];
  5230. var ours = value[key];
  5231. on[key] = existing ? [].concat(existing, ours) : ours;
  5232. }
  5233. }
  5234. }
  5235. return data
  5236. }
  5237. /* */
  5238. function resolveScopedSlots (
  5239. fns, // see flow/vnode
  5240. res,
  5241. // the following are added in 2.6
  5242. hasDynamicKeys,
  5243. contentHashKey
  5244. ) {
  5245. res = res || { $stable: !hasDynamicKeys };
  5246. for (var i = 0; i < fns.length; i++) {
  5247. var slot = fns[i];
  5248. if (Array.isArray(slot)) {
  5249. resolveScopedSlots(slot, res, hasDynamicKeys);
  5250. } else if (slot) {
  5251. // marker for reverse proxying v-slot without scope on this.$slots
  5252. if (slot.proxy) {
  5253. slot.fn.proxy = true;
  5254. }
  5255. res[slot.key] = slot.fn;
  5256. }
  5257. }
  5258. if (contentHashKey) {
  5259. (res).$key = contentHashKey;
  5260. }
  5261. return res
  5262. }
  5263. /* */
  5264. function bindDynamicKeys (baseObj, values) {
  5265. for (var i = 0; i < values.length; i += 2) {
  5266. var key = values[i];
  5267. if (typeof key === 'string' && key) {
  5268. baseObj[values[i]] = values[i + 1];
  5269. } else if ( true && key !== '' && key !== null) {
  5270. // null is a special value for explicitly removing a binding
  5271. warn(
  5272. ("Invalid value for dynamic directive argument (expected string or null): " + key),
  5273. this
  5274. );
  5275. }
  5276. }
  5277. return baseObj
  5278. }
  5279. // helper to dynamically append modifier runtime markers to event names.
  5280. // ensure only append when value is already string, otherwise it will be cast
  5281. // to string and cause the type check to miss.
  5282. function prependModifier (value, symbol) {
  5283. return typeof value === 'string' ? symbol + value : value
  5284. }
  5285. /* */
  5286. function installRenderHelpers (target) {
  5287. target._o = markOnce;
  5288. target._n = toNumber;
  5289. target._s = toString;
  5290. target._l = renderList;
  5291. target._t = renderSlot;
  5292. target._q = looseEqual;
  5293. target._i = looseIndexOf;
  5294. target._m = renderStatic;
  5295. target._f = resolveFilter;
  5296. target._k = checkKeyCodes;
  5297. target._b = bindObjectProps;
  5298. target._v = createTextVNode;
  5299. target._e = createEmptyVNode;
  5300. target._u = resolveScopedSlots;
  5301. target._g = bindObjectListeners;
  5302. target._d = bindDynamicKeys;
  5303. target._p = prependModifier;
  5304. }
  5305. /* */
  5306. function FunctionalRenderContext (
  5307. data,
  5308. props,
  5309. children,
  5310. parent,
  5311. Ctor
  5312. ) {
  5313. var this$1 = this;
  5314. var options = Ctor.options;
  5315. // ensure the createElement function in functional components
  5316. // gets a unique context - this is necessary for correct named slot check
  5317. var contextVm;
  5318. if (hasOwn(parent, '_uid')) {
  5319. contextVm = Object.create(parent);
  5320. // $flow-disable-line
  5321. contextVm._original = parent;
  5322. } else {
  5323. // the context vm passed in is a functional context as well.
  5324. // in this case we want to make sure we are able to get a hold to the
  5325. // real context instance.
  5326. contextVm = parent;
  5327. // $flow-disable-line
  5328. parent = parent._original;
  5329. }
  5330. var isCompiled = isTrue(options._compiled);
  5331. var needNormalization = !isCompiled;
  5332. this.data = data;
  5333. this.props = props;
  5334. this.children = children;
  5335. this.parent = parent;
  5336. this.listeners = data.on || emptyObject;
  5337. this.injections = resolveInject(options.inject, parent);
  5338. this.slots = function () {
  5339. if (!this$1.$slots) {
  5340. normalizeScopedSlots(
  5341. data.scopedSlots,
  5342. this$1.$slots = resolveSlots(children, parent)
  5343. );
  5344. }
  5345. return this$1.$slots
  5346. };
  5347. Object.defineProperty(this, 'scopedSlots', ({
  5348. enumerable: true,
  5349. get: function get () {
  5350. return normalizeScopedSlots(data.scopedSlots, this.slots())
  5351. }
  5352. }));
  5353. // support for compiled functional template
  5354. if (isCompiled) {
  5355. // exposing $options for renderStatic()
  5356. this.$options = options;
  5357. // pre-resolve slots for renderSlot()
  5358. this.$slots = this.slots();
  5359. this.$scopedSlots = normalizeScopedSlots(data.scopedSlots, this.$slots);
  5360. }
  5361. if (options._scopeId) {
  5362. this._c = function (a, b, c, d) {
  5363. var vnode = createElement(contextVm, a, b, c, d, needNormalization);
  5364. if (vnode && !Array.isArray(vnode)) {
  5365. vnode.fnScopeId = options._scopeId;
  5366. vnode.fnContext = parent;
  5367. }
  5368. return vnode
  5369. };
  5370. } else {
  5371. this._c = function (a, b, c, d) { return createElement(contextVm, a, b, c, d, needNormalization); };
  5372. }
  5373. }
  5374. installRenderHelpers(FunctionalRenderContext.prototype);
  5375. function createFunctionalComponent (
  5376. Ctor,
  5377. propsData,
  5378. data,
  5379. contextVm,
  5380. children
  5381. ) {
  5382. var options = Ctor.options;
  5383. var props = {};
  5384. var propOptions = options.props;
  5385. if (isDef(propOptions)) {
  5386. for (var key in propOptions) {
  5387. props[key] = validateProp(key, propOptions, propsData || emptyObject);
  5388. }
  5389. } else {
  5390. if (isDef(data.attrs)) { mergeProps(props, data.attrs); }
  5391. if (isDef(data.props)) { mergeProps(props, data.props); }
  5392. }
  5393. var renderContext = new FunctionalRenderContext(
  5394. data,
  5395. props,
  5396. children,
  5397. contextVm,
  5398. Ctor
  5399. );
  5400. var vnode = options.render.call(null, renderContext._c, renderContext);
  5401. if (vnode instanceof VNode) {
  5402. return cloneAndMarkFunctionalResult(vnode, data, renderContext.parent, options, renderContext)
  5403. } else if (Array.isArray(vnode)) {
  5404. var vnodes = normalizeChildren(vnode) || [];
  5405. var res = new Array(vnodes.length);
  5406. for (var i = 0; i < vnodes.length; i++) {
  5407. res[i] = cloneAndMarkFunctionalResult(vnodes[i], data, renderContext.parent, options, renderContext);
  5408. }
  5409. return res
  5410. }
  5411. }
  5412. function cloneAndMarkFunctionalResult (vnode, data, contextVm, options, renderContext) {
  5413. // #7817 clone node before setting fnContext, otherwise if the node is reused
  5414. // (e.g. it was from a cached normal slot) the fnContext causes named slots
  5415. // that should not be matched to match.
  5416. var clone = cloneVNode(vnode);
  5417. clone.fnContext = contextVm;
  5418. clone.fnOptions = options;
  5419. if (true) {
  5420. (clone.devtoolsMeta = clone.devtoolsMeta || {}).renderContext = renderContext;
  5421. }
  5422. if (data.slot) {
  5423. (clone.data || (clone.data = {})).slot = data.slot;
  5424. }
  5425. return clone
  5426. }
  5427. function mergeProps (to, from) {
  5428. for (var key in from) {
  5429. to[camelize(key)] = from[key];
  5430. }
  5431. }
  5432. /* */
  5433. /* */
  5434. /* */
  5435. /* */
  5436. // inline hooks to be invoked on component VNodes during patch
  5437. var componentVNodeHooks = {
  5438. init: function init (vnode, hydrating) {
  5439. if (
  5440. vnode.componentInstance &&
  5441. !vnode.componentInstance._isDestroyed &&
  5442. vnode.data.keepAlive
  5443. ) {
  5444. // kept-alive components, treat as a patch
  5445. var mountedNode = vnode; // work around flow
  5446. componentVNodeHooks.prepatch(mountedNode, mountedNode);
  5447. } else {
  5448. var child = vnode.componentInstance = createComponentInstanceForVnode(
  5449. vnode,
  5450. activeInstance
  5451. );
  5452. child.$mount(hydrating ? vnode.elm : undefined, hydrating);
  5453. }
  5454. },
  5455. prepatch: function prepatch (oldVnode, vnode) {
  5456. var options = vnode.componentOptions;
  5457. var child = vnode.componentInstance = oldVnode.componentInstance;
  5458. updateChildComponent(
  5459. child,
  5460. options.propsData, // updated props
  5461. options.listeners, // updated listeners
  5462. vnode, // new parent vnode
  5463. options.children // new children
  5464. );
  5465. },
  5466. insert: function insert (vnode) {
  5467. var context = vnode.context;
  5468. var componentInstance = vnode.componentInstance;
  5469. if (!componentInstance._isMounted) {
  5470. callHook(componentInstance, 'onServiceCreated');
  5471. callHook(componentInstance, 'onServiceAttached');
  5472. componentInstance._isMounted = true;
  5473. callHook(componentInstance, 'mounted');
  5474. }
  5475. if (vnode.data.keepAlive) {
  5476. if (context._isMounted) {
  5477. // vue-router#1212
  5478. // During updates, a kept-alive component's child components may
  5479. // change, so directly walking the tree here may call activated hooks
  5480. // on incorrect children. Instead we push them into a queue which will
  5481. // be processed after the whole patch process ended.
  5482. queueActivatedComponent(componentInstance);
  5483. } else {
  5484. activateChildComponent(componentInstance, true /* direct */);
  5485. }
  5486. }
  5487. },
  5488. destroy: function destroy (vnode) {
  5489. var componentInstance = vnode.componentInstance;
  5490. if (!componentInstance._isDestroyed) {
  5491. if (!vnode.data.keepAlive) {
  5492. componentInstance.$destroy();
  5493. } else {
  5494. deactivateChildComponent(componentInstance, true /* direct */);
  5495. }
  5496. }
  5497. }
  5498. };
  5499. var hooksToMerge = Object.keys(componentVNodeHooks);
  5500. function createComponent (
  5501. Ctor,
  5502. data,
  5503. context,
  5504. children,
  5505. tag
  5506. ) {
  5507. if (isUndef(Ctor)) {
  5508. return
  5509. }
  5510. var baseCtor = context.$options._base;
  5511. // plain options object: turn it into a constructor
  5512. if (isObject(Ctor)) {
  5513. Ctor = baseCtor.extend(Ctor);
  5514. }
  5515. // if at this stage it's not a constructor or an async component factory,
  5516. // reject.
  5517. if (typeof Ctor !== 'function') {
  5518. if (true) {
  5519. warn(("Invalid Component definition: " + (String(Ctor))), context);
  5520. }
  5521. return
  5522. }
  5523. // async component
  5524. var asyncFactory;
  5525. if (isUndef(Ctor.cid)) {
  5526. asyncFactory = Ctor;
  5527. Ctor = resolveAsyncComponent(asyncFactory, baseCtor);
  5528. if (Ctor === undefined) {
  5529. // return a placeholder node for async component, which is rendered
  5530. // as a comment node but preserves all the raw information for the node.
  5531. // the information will be used for async server-rendering and hydration.
  5532. return createAsyncPlaceholder(
  5533. asyncFactory,
  5534. data,
  5535. context,
  5536. children,
  5537. tag
  5538. )
  5539. }
  5540. }
  5541. data = data || {};
  5542. // resolve constructor options in case global mixins are applied after
  5543. // component constructor creation
  5544. resolveConstructorOptions(Ctor);
  5545. // transform component v-model data into props & events
  5546. if (isDef(data.model)) {
  5547. transformModel(Ctor.options, data);
  5548. }
  5549. // extract props
  5550. var propsData = extractPropsFromVNodeData(data, Ctor, tag, context); // fixed by xxxxxx
  5551. // functional component
  5552. if (isTrue(Ctor.options.functional)) {
  5553. return createFunctionalComponent(Ctor, propsData, data, context, children)
  5554. }
  5555. // extract listeners, since these needs to be treated as
  5556. // child component listeners instead of DOM listeners
  5557. var listeners = data.on;
  5558. // replace with listeners with .native modifier
  5559. // so it gets processed during parent component patch.
  5560. data.on = data.nativeOn;
  5561. if (isTrue(Ctor.options.abstract)) {
  5562. // abstract components do not keep anything
  5563. // other than props & listeners & slot
  5564. // work around flow
  5565. var slot = data.slot;
  5566. data = {};
  5567. if (slot) {
  5568. data.slot = slot;
  5569. }
  5570. }
  5571. // install component management hooks onto the placeholder node
  5572. installComponentHooks(data);
  5573. // return a placeholder vnode
  5574. var name = Ctor.options.name || tag;
  5575. var vnode = new VNode(
  5576. ("vue-component-" + (Ctor.cid) + (name ? ("-" + name) : '')),
  5577. data, undefined, undefined, undefined, context,
  5578. { Ctor: Ctor, propsData: propsData, listeners: listeners, tag: tag, children: children },
  5579. asyncFactory
  5580. );
  5581. return vnode
  5582. }
  5583. function createComponentInstanceForVnode (
  5584. vnode, // we know it's MountedComponentVNode but flow doesn't
  5585. parent // activeInstance in lifecycle state
  5586. ) {
  5587. var options = {
  5588. _isComponent: true,
  5589. _parentVnode: vnode,
  5590. parent: parent
  5591. };
  5592. // check inline-template render functions
  5593. var inlineTemplate = vnode.data.inlineTemplate;
  5594. if (isDef(inlineTemplate)) {
  5595. options.render = inlineTemplate.render;
  5596. options.staticRenderFns = inlineTemplate.staticRenderFns;
  5597. }
  5598. return new vnode.componentOptions.Ctor(options)
  5599. }
  5600. function installComponentHooks (data) {
  5601. var hooks = data.hook || (data.hook = {});
  5602. for (var i = 0; i < hooksToMerge.length; i++) {
  5603. var key = hooksToMerge[i];
  5604. var existing = hooks[key];
  5605. var toMerge = componentVNodeHooks[key];
  5606. if (existing !== toMerge && !(existing && existing._merged)) {
  5607. hooks[key] = existing ? mergeHook$1(toMerge, existing) : toMerge;
  5608. }
  5609. }
  5610. }
  5611. function mergeHook$1 (f1, f2) {
  5612. var merged = function (a, b) {
  5613. // flow complains about extra args which is why we use any
  5614. f1(a, b);
  5615. f2(a, b);
  5616. };
  5617. merged._merged = true;
  5618. return merged
  5619. }
  5620. // transform component v-model info (value and callback) into
  5621. // prop and event handler respectively.
  5622. function transformModel (options, data) {
  5623. var prop = (options.model && options.model.prop) || 'value';
  5624. var event = (options.model && options.model.event) || 'input'
  5625. ;(data.attrs || (data.attrs = {}))[prop] = data.model.value;
  5626. var on = data.on || (data.on = {});
  5627. var existing = on[event];
  5628. var callback = data.model.callback;
  5629. if (isDef(existing)) {
  5630. if (
  5631. Array.isArray(existing)
  5632. ? existing.indexOf(callback) === -1
  5633. : existing !== callback
  5634. ) {
  5635. on[event] = [callback].concat(existing);
  5636. }
  5637. } else {
  5638. on[event] = callback;
  5639. }
  5640. }
  5641. /* */
  5642. var SIMPLE_NORMALIZE = 1;
  5643. var ALWAYS_NORMALIZE = 2;
  5644. // wrapper function for providing a more flexible interface
  5645. // without getting yelled at by flow
  5646. function createElement (
  5647. context,
  5648. tag,
  5649. data,
  5650. children,
  5651. normalizationType,
  5652. alwaysNormalize
  5653. ) {
  5654. if (Array.isArray(data) || isPrimitive(data)) {
  5655. normalizationType = children;
  5656. children = data;
  5657. data = undefined;
  5658. }
  5659. if (isTrue(alwaysNormalize)) {
  5660. normalizationType = ALWAYS_NORMALIZE;
  5661. }
  5662. return _createElement(context, tag, data, children, normalizationType)
  5663. }
  5664. function _createElement (
  5665. context,
  5666. tag,
  5667. data,
  5668. children,
  5669. normalizationType
  5670. ) {
  5671. if (isDef(data) && isDef((data).__ob__)) {
  5672. true && warn(
  5673. "Avoid using observed data object as vnode data: " + (JSON.stringify(data)) + "\n" +
  5674. 'Always create fresh vnode data objects in each render!',
  5675. context
  5676. );
  5677. return createEmptyVNode()
  5678. }
  5679. // object syntax in v-bind
  5680. if (isDef(data) && isDef(data.is)) {
  5681. tag = data.is;
  5682. }
  5683. if (!tag) {
  5684. // in case of component :is set to falsy value
  5685. return createEmptyVNode()
  5686. }
  5687. // warn against non-primitive key
  5688. if ( true &&
  5689. isDef(data) && isDef(data.key) && !isPrimitive(data.key)
  5690. ) {
  5691. {
  5692. warn(
  5693. 'Avoid using non-primitive value as key, ' +
  5694. 'use string/number value instead.',
  5695. context
  5696. );
  5697. }
  5698. }
  5699. // support single function children as default scoped slot
  5700. if (Array.isArray(children) &&
  5701. typeof children[0] === 'function'
  5702. ) {
  5703. data = data || {};
  5704. data.scopedSlots = { default: children[0] };
  5705. children.length = 0;
  5706. }
  5707. if (normalizationType === ALWAYS_NORMALIZE) {
  5708. children = normalizeChildren(children);
  5709. } else if (normalizationType === SIMPLE_NORMALIZE) {
  5710. children = simpleNormalizeChildren(children);
  5711. }
  5712. var vnode, ns;
  5713. if (typeof tag === 'string') {
  5714. var Ctor;
  5715. ns = (context.$vnode && context.$vnode.ns) || config.getTagNamespace(tag);
  5716. if (config.isReservedTag(tag)) {
  5717. // platform built-in elements
  5718. if ( true && isDef(data) && isDef(data.nativeOn)) {
  5719. warn(
  5720. ("The .native modifier for v-on is only valid on components but it was used on <" + tag + ">."),
  5721. context
  5722. );
  5723. }
  5724. vnode = new VNode(
  5725. config.parsePlatformTagName(tag), data, children,
  5726. undefined, undefined, context
  5727. );
  5728. } else if ((!data || !data.pre) && isDef(Ctor = resolveAsset(context.$options, 'components', tag))) {
  5729. // component
  5730. vnode = createComponent(Ctor, data, context, children, tag);
  5731. } else {
  5732. // unknown or unlisted namespaced elements
  5733. // check at runtime because it may get assigned a namespace when its
  5734. // parent normalizes children
  5735. vnode = new VNode(
  5736. tag, data, children,
  5737. undefined, undefined, context
  5738. );
  5739. }
  5740. } else {
  5741. // direct component options / constructor
  5742. vnode = createComponent(tag, data, context, children);
  5743. }
  5744. if (Array.isArray(vnode)) {
  5745. return vnode
  5746. } else if (isDef(vnode)) {
  5747. if (isDef(ns)) { applyNS(vnode, ns); }
  5748. if (isDef(data)) { registerDeepBindings(data); }
  5749. return vnode
  5750. } else {
  5751. return createEmptyVNode()
  5752. }
  5753. }
  5754. function applyNS (vnode, ns, force) {
  5755. vnode.ns = ns;
  5756. if (vnode.tag === 'foreignObject') {
  5757. // use default namespace inside foreignObject
  5758. ns = undefined;
  5759. force = true;
  5760. }
  5761. if (isDef(vnode.children)) {
  5762. for (var i = 0, l = vnode.children.length; i < l; i++) {
  5763. var child = vnode.children[i];
  5764. if (isDef(child.tag) && (
  5765. isUndef(child.ns) || (isTrue(force) && child.tag !== 'svg'))) {
  5766. applyNS(child, ns, force);
  5767. }
  5768. }
  5769. }
  5770. }
  5771. // ref #5318
  5772. // necessary to ensure parent re-render when deep bindings like :style and
  5773. // :class are used on slot nodes
  5774. function registerDeepBindings (data) {
  5775. if (isObject(data.style)) {
  5776. traverse(data.style);
  5777. }
  5778. if (isObject(data.class)) {
  5779. traverse(data.class);
  5780. }
  5781. }
  5782. /* */
  5783. function initRender (vm) {
  5784. vm._vnode = null; // the root of the child tree
  5785. vm._staticTrees = null; // v-once cached trees
  5786. var options = vm.$options;
  5787. var parentVnode = vm.$vnode = options._parentVnode; // the placeholder node in parent tree
  5788. var renderContext = parentVnode && parentVnode.context;
  5789. vm.$slots = resolveSlots(options._renderChildren, renderContext);
  5790. vm.$scopedSlots = emptyObject;
  5791. // bind the createElement fn to this instance
  5792. // so that we get proper render context inside it.
  5793. // args order: tag, data, children, normalizationType, alwaysNormalize
  5794. // internal version is used by render functions compiled from templates
  5795. vm._c = function (a, b, c, d) { return createElement(vm, a, b, c, d, false); };
  5796. // normalization is always applied for the public version, used in
  5797. // user-written render functions.
  5798. vm.$createElement = function (a, b, c, d) { return createElement(vm, a, b, c, d, true); };
  5799. // $attrs & $listeners are exposed for easier HOC creation.
  5800. // they need to be reactive so that HOCs using them are always updated
  5801. var parentData = parentVnode && parentVnode.data;
  5802. /* istanbul ignore else */
  5803. if (true) {
  5804. defineReactive$$1(vm, '$attrs', parentData && parentData.attrs || emptyObject, function () {
  5805. !isUpdatingChildComponent && warn("$attrs is readonly.", vm);
  5806. }, true);
  5807. defineReactive$$1(vm, '$listeners', options._parentListeners || emptyObject, function () {
  5808. !isUpdatingChildComponent && warn("$listeners is readonly.", vm);
  5809. }, true);
  5810. } else {}
  5811. }
  5812. var currentRenderingInstance = null;
  5813. function renderMixin (Vue) {
  5814. // install runtime convenience helpers
  5815. installRenderHelpers(Vue.prototype);
  5816. Vue.prototype.$nextTick = function (fn) {
  5817. return nextTick(fn, this)
  5818. };
  5819. Vue.prototype._render = function () {
  5820. var vm = this;
  5821. var ref = vm.$options;
  5822. var render = ref.render;
  5823. var _parentVnode = ref._parentVnode;
  5824. if (_parentVnode) {
  5825. vm.$scopedSlots = normalizeScopedSlots(
  5826. _parentVnode.data.scopedSlots,
  5827. vm.$slots,
  5828. vm.$scopedSlots
  5829. );
  5830. }
  5831. // set parent vnode. this allows render functions to have access
  5832. // to the data on the placeholder node.
  5833. vm.$vnode = _parentVnode;
  5834. // render self
  5835. var vnode;
  5836. try {
  5837. // There's no need to maintain a stack because all render fns are called
  5838. // separately from one another. Nested component's render fns are called
  5839. // when parent component is patched.
  5840. currentRenderingInstance = vm;
  5841. vnode = render.call(vm._renderProxy, vm.$createElement);
  5842. } catch (e) {
  5843. handleError(e, vm, "render");
  5844. // return error render result,
  5845. // or previous vnode to prevent render error causing blank component
  5846. /* istanbul ignore else */
  5847. if ( true && vm.$options.renderError) {
  5848. try {
  5849. vnode = vm.$options.renderError.call(vm._renderProxy, vm.$createElement, e);
  5850. } catch (e) {
  5851. handleError(e, vm, "renderError");
  5852. vnode = vm._vnode;
  5853. }
  5854. } else {
  5855. vnode = vm._vnode;
  5856. }
  5857. } finally {
  5858. currentRenderingInstance = null;
  5859. }
  5860. // if the returned array contains only a single node, allow it
  5861. if (Array.isArray(vnode) && vnode.length === 1) {
  5862. vnode = vnode[0];
  5863. }
  5864. // return empty vnode in case the render function errored out
  5865. if (!(vnode instanceof VNode)) {
  5866. if ( true && Array.isArray(vnode)) {
  5867. warn(
  5868. 'Multiple root nodes returned from render function. Render function ' +
  5869. 'should return a single root node.',
  5870. vm
  5871. );
  5872. }
  5873. vnode = createEmptyVNode();
  5874. }
  5875. // set parent
  5876. vnode.parent = _parentVnode;
  5877. return vnode
  5878. };
  5879. }
  5880. /* */
  5881. function ensureCtor (comp, base) {
  5882. if (
  5883. comp.__esModule ||
  5884. (hasSymbol && comp[Symbol.toStringTag] === 'Module')
  5885. ) {
  5886. comp = comp.default;
  5887. }
  5888. return isObject(comp)
  5889. ? base.extend(comp)
  5890. : comp
  5891. }
  5892. function createAsyncPlaceholder (
  5893. factory,
  5894. data,
  5895. context,
  5896. children,
  5897. tag
  5898. ) {
  5899. var node = createEmptyVNode();
  5900. node.asyncFactory = factory;
  5901. node.asyncMeta = { data: data, context: context, children: children, tag: tag };
  5902. return node
  5903. }
  5904. function resolveAsyncComponent (
  5905. factory,
  5906. baseCtor
  5907. ) {
  5908. if (isTrue(factory.error) && isDef(factory.errorComp)) {
  5909. return factory.errorComp
  5910. }
  5911. if (isDef(factory.resolved)) {
  5912. return factory.resolved
  5913. }
  5914. var owner = currentRenderingInstance;
  5915. if (owner && isDef(factory.owners) && factory.owners.indexOf(owner) === -1) {
  5916. // already pending
  5917. factory.owners.push(owner);
  5918. }
  5919. if (isTrue(factory.loading) && isDef(factory.loadingComp)) {
  5920. return factory.loadingComp
  5921. }
  5922. if (owner && !isDef(factory.owners)) {
  5923. var owners = factory.owners = [owner];
  5924. var sync = true;
  5925. var timerLoading = null;
  5926. var timerTimeout = null
  5927. ;(owner).$on('hook:destroyed', function () { return remove(owners, owner); });
  5928. var forceRender = function (renderCompleted) {
  5929. for (var i = 0, l = owners.length; i < l; i++) {
  5930. (owners[i]).$forceUpdate();
  5931. }
  5932. if (renderCompleted) {
  5933. owners.length = 0;
  5934. if (timerLoading !== null) {
  5935. clearTimeout(timerLoading);
  5936. timerLoading = null;
  5937. }
  5938. if (timerTimeout !== null) {
  5939. clearTimeout(timerTimeout);
  5940. timerTimeout = null;
  5941. }
  5942. }
  5943. };
  5944. var resolve = once(function (res) {
  5945. // cache resolved
  5946. factory.resolved = ensureCtor(res, baseCtor);
  5947. // invoke callbacks only if this is not a synchronous resolve
  5948. // (async resolves are shimmed as synchronous during SSR)
  5949. if (!sync) {
  5950. forceRender(true);
  5951. } else {
  5952. owners.length = 0;
  5953. }
  5954. });
  5955. var reject = once(function (reason) {
  5956. true && warn(
  5957. "Failed to resolve async component: " + (String(factory)) +
  5958. (reason ? ("\nReason: " + reason) : '')
  5959. );
  5960. if (isDef(factory.errorComp)) {
  5961. factory.error = true;
  5962. forceRender(true);
  5963. }
  5964. });
  5965. var res = factory(resolve, reject);
  5966. if (isObject(res)) {
  5967. if (isPromise(res)) {
  5968. // () => Promise
  5969. if (isUndef(factory.resolved)) {
  5970. res.then(resolve, reject);
  5971. }
  5972. } else if (isPromise(res.component)) {
  5973. res.component.then(resolve, reject);
  5974. if (isDef(res.error)) {
  5975. factory.errorComp = ensureCtor(res.error, baseCtor);
  5976. }
  5977. if (isDef(res.loading)) {
  5978. factory.loadingComp = ensureCtor(res.loading, baseCtor);
  5979. if (res.delay === 0) {
  5980. factory.loading = true;
  5981. } else {
  5982. timerLoading = setTimeout(function () {
  5983. timerLoading = null;
  5984. if (isUndef(factory.resolved) && isUndef(factory.error)) {
  5985. factory.loading = true;
  5986. forceRender(false);
  5987. }
  5988. }, res.delay || 200);
  5989. }
  5990. }
  5991. if (isDef(res.timeout)) {
  5992. timerTimeout = setTimeout(function () {
  5993. timerTimeout = null;
  5994. if (isUndef(factory.resolved)) {
  5995. reject(
  5996. true
  5997. ? ("timeout (" + (res.timeout) + "ms)")
  5998. : undefined
  5999. );
  6000. }
  6001. }, res.timeout);
  6002. }
  6003. }
  6004. }
  6005. sync = false;
  6006. // return in case resolved synchronously
  6007. return factory.loading
  6008. ? factory.loadingComp
  6009. : factory.resolved
  6010. }
  6011. }
  6012. /* */
  6013. function isAsyncPlaceholder (node) {
  6014. return node.isComment && node.asyncFactory
  6015. }
  6016. /* */
  6017. function getFirstComponentChild (children) {
  6018. if (Array.isArray(children)) {
  6019. for (var i = 0; i < children.length; i++) {
  6020. var c = children[i];
  6021. if (isDef(c) && (isDef(c.componentOptions) || isAsyncPlaceholder(c))) {
  6022. return c
  6023. }
  6024. }
  6025. }
  6026. }
  6027. /* */
  6028. /* */
  6029. function initEvents (vm) {
  6030. vm._events = Object.create(null);
  6031. vm._hasHookEvent = false;
  6032. // init parent attached events
  6033. var listeners = vm.$options._parentListeners;
  6034. if (listeners) {
  6035. updateComponentListeners(vm, listeners);
  6036. }
  6037. }
  6038. var target;
  6039. function add (event, fn) {
  6040. target.$on(event, fn);
  6041. }
  6042. function remove$1 (event, fn) {
  6043. target.$off(event, fn);
  6044. }
  6045. function createOnceHandler (event, fn) {
  6046. var _target = target;
  6047. return function onceHandler () {
  6048. var res = fn.apply(null, arguments);
  6049. if (res !== null) {
  6050. _target.$off(event, onceHandler);
  6051. }
  6052. }
  6053. }
  6054. function updateComponentListeners (
  6055. vm,
  6056. listeners,
  6057. oldListeners
  6058. ) {
  6059. target = vm;
  6060. updateListeners(listeners, oldListeners || {}, add, remove$1, createOnceHandler, vm);
  6061. target = undefined;
  6062. }
  6063. function eventsMixin (Vue) {
  6064. var hookRE = /^hook:/;
  6065. Vue.prototype.$on = function (event, fn) {
  6066. var vm = this;
  6067. if (Array.isArray(event)) {
  6068. for (var i = 0, l = event.length; i < l; i++) {
  6069. vm.$on(event[i], fn);
  6070. }
  6071. } else {
  6072. (vm._events[event] || (vm._events[event] = [])).push(fn);
  6073. // optimize hook:event cost by using a boolean flag marked at registration
  6074. // instead of a hash lookup
  6075. if (hookRE.test(event)) {
  6076. vm._hasHookEvent = true;
  6077. }
  6078. }
  6079. return vm
  6080. };
  6081. Vue.prototype.$once = function (event, fn) {
  6082. var vm = this;
  6083. function on () {
  6084. vm.$off(event, on);
  6085. fn.apply(vm, arguments);
  6086. }
  6087. on.fn = fn;
  6088. vm.$on(event, on);
  6089. return vm
  6090. };
  6091. Vue.prototype.$off = function (event, fn) {
  6092. var vm = this;
  6093. // all
  6094. if (!arguments.length) {
  6095. vm._events = Object.create(null);
  6096. return vm
  6097. }
  6098. // array of events
  6099. if (Array.isArray(event)) {
  6100. for (var i$1 = 0, l = event.length; i$1 < l; i$1++) {
  6101. vm.$off(event[i$1], fn);
  6102. }
  6103. return vm
  6104. }
  6105. // specific event
  6106. var cbs = vm._events[event];
  6107. if (!cbs) {
  6108. return vm
  6109. }
  6110. if (!fn) {
  6111. vm._events[event] = null;
  6112. return vm
  6113. }
  6114. // specific handler
  6115. var cb;
  6116. var i = cbs.length;
  6117. while (i--) {
  6118. cb = cbs[i];
  6119. if (cb === fn || cb.fn === fn) {
  6120. cbs.splice(i, 1);
  6121. break
  6122. }
  6123. }
  6124. return vm
  6125. };
  6126. Vue.prototype.$emit = function (event) {
  6127. var vm = this;
  6128. if (true) {
  6129. var lowerCaseEvent = event.toLowerCase();
  6130. if (lowerCaseEvent !== event && vm._events[lowerCaseEvent]) {
  6131. tip(
  6132. "Event \"" + lowerCaseEvent + "\" is emitted in component " +
  6133. (formatComponentName(vm)) + " but the handler is registered for \"" + event + "\". " +
  6134. "Note that HTML attributes are case-insensitive and you cannot use " +
  6135. "v-on to listen to camelCase events when using in-DOM templates. " +
  6136. "You should probably use \"" + (hyphenate(event)) + "\" instead of \"" + event + "\"."
  6137. );
  6138. }
  6139. }
  6140. var cbs = vm._events[event];
  6141. if (cbs) {
  6142. cbs = cbs.length > 1 ? toArray(cbs) : cbs;
  6143. var args = toArray(arguments, 1);
  6144. var info = "event handler for \"" + event + "\"";
  6145. for (var i = 0, l = cbs.length; i < l; i++) {
  6146. invokeWithErrorHandling(cbs[i], vm, args, vm, info);
  6147. }
  6148. }
  6149. return vm
  6150. };
  6151. }
  6152. /* */
  6153. var activeInstance = null;
  6154. var isUpdatingChildComponent = false;
  6155. function setActiveInstance(vm) {
  6156. var prevActiveInstance = activeInstance;
  6157. activeInstance = vm;
  6158. return function () {
  6159. activeInstance = prevActiveInstance;
  6160. }
  6161. }
  6162. function initLifecycle (vm) {
  6163. var options = vm.$options;
  6164. // locate first non-abstract parent
  6165. var parent = options.parent;
  6166. if (parent && !options.abstract) {
  6167. while (parent.$options.abstract && parent.$parent) {
  6168. parent = parent.$parent;
  6169. }
  6170. parent.$children.push(vm);
  6171. }
  6172. vm.$parent = parent;
  6173. vm.$root = parent ? parent.$root : vm;
  6174. vm.$children = [];
  6175. vm.$refs = {};
  6176. vm._watcher = null;
  6177. vm._inactive = null;
  6178. vm._directInactive = false;
  6179. vm._isMounted = false;
  6180. vm._isDestroyed = false;
  6181. vm._isBeingDestroyed = false;
  6182. }
  6183. function lifecycleMixin (Vue) {
  6184. Vue.prototype._update = function (vnode, hydrating) {
  6185. var vm = this;
  6186. var prevEl = vm.$el;
  6187. var prevVnode = vm._vnode;
  6188. var restoreActiveInstance = setActiveInstance(vm);
  6189. vm._vnode = vnode;
  6190. // Vue.prototype.__patch__ is injected in entry points
  6191. // based on the rendering backend used.
  6192. if (!prevVnode) {
  6193. // initial render
  6194. vm.$el = vm.__patch__(vm.$el, vnode, hydrating, false /* removeOnly */);
  6195. } else {
  6196. // updates
  6197. vm.$el = vm.__patch__(prevVnode, vnode);
  6198. }
  6199. restoreActiveInstance();
  6200. // update __vue__ reference
  6201. if (prevEl) {
  6202. prevEl.__vue__ = null;
  6203. }
  6204. if (vm.$el) {
  6205. vm.$el.__vue__ = vm;
  6206. }
  6207. // if parent is an HOC, update its $el as well
  6208. if (vm.$vnode && vm.$parent && vm.$vnode === vm.$parent._vnode) {
  6209. vm.$parent.$el = vm.$el;
  6210. }
  6211. // updated hook is called by the scheduler to ensure that children are
  6212. // updated in a parent's updated hook.
  6213. };
  6214. Vue.prototype.$forceUpdate = function () {
  6215. var vm = this;
  6216. if (vm._watcher) {
  6217. vm._watcher.update();
  6218. }
  6219. };
  6220. Vue.prototype.$destroy = function () {
  6221. var vm = this;
  6222. if (vm._isBeingDestroyed) {
  6223. return
  6224. }
  6225. callHook(vm, 'beforeDestroy');
  6226. vm._isBeingDestroyed = true;
  6227. // remove self from parent
  6228. var parent = vm.$parent;
  6229. if (parent && !parent._isBeingDestroyed && !vm.$options.abstract) {
  6230. remove(parent.$children, vm);
  6231. }
  6232. // teardown watchers
  6233. if (vm._watcher) {
  6234. vm._watcher.teardown();
  6235. }
  6236. var i = vm._watchers.length;
  6237. while (i--) {
  6238. vm._watchers[i].teardown();
  6239. }
  6240. // remove reference from data ob
  6241. // frozen object may not have observer.
  6242. if (vm._data.__ob__) {
  6243. vm._data.__ob__.vmCount--;
  6244. }
  6245. // call the last hook...
  6246. vm._isDestroyed = true;
  6247. // invoke destroy hooks on current rendered tree
  6248. vm.__patch__(vm._vnode, null);
  6249. // fire destroyed hook
  6250. callHook(vm, 'destroyed');
  6251. // turn off all instance listeners.
  6252. vm.$off();
  6253. // remove __vue__ reference
  6254. if (vm.$el) {
  6255. vm.$el.__vue__ = null;
  6256. }
  6257. // release circular reference (#6759)
  6258. if (vm.$vnode) {
  6259. vm.$vnode.parent = null;
  6260. }
  6261. };
  6262. }
  6263. function updateChildComponent (
  6264. vm,
  6265. propsData,
  6266. listeners,
  6267. parentVnode,
  6268. renderChildren
  6269. ) {
  6270. if (true) {
  6271. isUpdatingChildComponent = true;
  6272. }
  6273. // determine whether component has slot children
  6274. // we need to do this before overwriting $options._renderChildren.
  6275. // check if there are dynamic scopedSlots (hand-written or compiled but with
  6276. // dynamic slot names). Static scoped slots compiled from template has the
  6277. // "$stable" marker.
  6278. var newScopedSlots = parentVnode.data.scopedSlots;
  6279. var oldScopedSlots = vm.$scopedSlots;
  6280. var hasDynamicScopedSlot = !!(
  6281. (newScopedSlots && !newScopedSlots.$stable) ||
  6282. (oldScopedSlots !== emptyObject && !oldScopedSlots.$stable) ||
  6283. (newScopedSlots && vm.$scopedSlots.$key !== newScopedSlots.$key)
  6284. );
  6285. // Any static slot children from the parent may have changed during parent's
  6286. // update. Dynamic scoped slots may also have changed. In such cases, a forced
  6287. // update is necessary to ensure correctness.
  6288. var needsForceUpdate = !!(
  6289. renderChildren || // has new static slots
  6290. vm.$options._renderChildren || // has old static slots
  6291. hasDynamicScopedSlot
  6292. );
  6293. vm.$options._parentVnode = parentVnode;
  6294. vm.$vnode = parentVnode; // update vm's placeholder node without re-render
  6295. if (vm._vnode) { // update child tree's parent
  6296. vm._vnode.parent = parentVnode;
  6297. }
  6298. vm.$options._renderChildren = renderChildren;
  6299. // update $attrs and $listeners hash
  6300. // these are also reactive so they may trigger child update if the child
  6301. // used them during render
  6302. vm.$attrs = parentVnode.data.attrs || emptyObject;
  6303. vm.$listeners = listeners || emptyObject;
  6304. // update props
  6305. if (propsData && vm.$options.props) {
  6306. toggleObserving(false);
  6307. var props = vm._props;
  6308. var propKeys = vm.$options._propKeys || [];
  6309. for (var i = 0; i < propKeys.length; i++) {
  6310. var key = propKeys[i];
  6311. var propOptions = vm.$options.props; // wtf flow?
  6312. props[key] = validateProp(key, propOptions, propsData, vm);
  6313. }
  6314. toggleObserving(true);
  6315. // keep a copy of raw propsData
  6316. vm.$options.propsData = propsData;
  6317. }
  6318. // fixed by xxxxxx update properties(mp runtime)
  6319. vm._$updateProperties && vm._$updateProperties(vm);
  6320. // update listeners
  6321. listeners = listeners || emptyObject;
  6322. var oldListeners = vm.$options._parentListeners;
  6323. vm.$options._parentListeners = listeners;
  6324. updateComponentListeners(vm, listeners, oldListeners);
  6325. // resolve slots + force update if has children
  6326. if (needsForceUpdate) {
  6327. vm.$slots = resolveSlots(renderChildren, parentVnode.context);
  6328. vm.$forceUpdate();
  6329. }
  6330. if (true) {
  6331. isUpdatingChildComponent = false;
  6332. }
  6333. }
  6334. function isInInactiveTree (vm) {
  6335. while (vm && (vm = vm.$parent)) {
  6336. if (vm._inactive) { return true }
  6337. }
  6338. return false
  6339. }
  6340. function activateChildComponent (vm, direct) {
  6341. if (direct) {
  6342. vm._directInactive = false;
  6343. if (isInInactiveTree(vm)) {
  6344. return
  6345. }
  6346. } else if (vm._directInactive) {
  6347. return
  6348. }
  6349. if (vm._inactive || vm._inactive === null) {
  6350. vm._inactive = false;
  6351. for (var i = 0; i < vm.$children.length; i++) {
  6352. activateChildComponent(vm.$children[i]);
  6353. }
  6354. callHook(vm, 'activated');
  6355. }
  6356. }
  6357. function deactivateChildComponent (vm, direct) {
  6358. if (direct) {
  6359. vm._directInactive = true;
  6360. if (isInInactiveTree(vm)) {
  6361. return
  6362. }
  6363. }
  6364. if (!vm._inactive) {
  6365. vm._inactive = true;
  6366. for (var i = 0; i < vm.$children.length; i++) {
  6367. deactivateChildComponent(vm.$children[i]);
  6368. }
  6369. callHook(vm, 'deactivated');
  6370. }
  6371. }
  6372. function callHook (vm, hook) {
  6373. // #7573 disable dep collection when invoking lifecycle hooks
  6374. pushTarget();
  6375. var handlers = vm.$options[hook];
  6376. var info = hook + " hook";
  6377. if (handlers) {
  6378. for (var i = 0, j = handlers.length; i < j; i++) {
  6379. invokeWithErrorHandling(handlers[i], vm, null, vm, info);
  6380. }
  6381. }
  6382. if (vm._hasHookEvent) {
  6383. vm.$emit('hook:' + hook);
  6384. }
  6385. popTarget();
  6386. }
  6387. /* */
  6388. var MAX_UPDATE_COUNT = 100;
  6389. var queue = [];
  6390. var activatedChildren = [];
  6391. var has = {};
  6392. var circular = {};
  6393. var waiting = false;
  6394. var flushing = false;
  6395. var index = 0;
  6396. /**
  6397. * Reset the scheduler's state.
  6398. */
  6399. function resetSchedulerState () {
  6400. index = queue.length = activatedChildren.length = 0;
  6401. has = {};
  6402. if (true) {
  6403. circular = {};
  6404. }
  6405. waiting = flushing = false;
  6406. }
  6407. // Async edge case #6566 requires saving the timestamp when event listeners are
  6408. // attached. However, calling performance.now() has a perf overhead especially
  6409. // if the page has thousands of event listeners. Instead, we take a timestamp
  6410. // every time the scheduler flushes and use that for all event listeners
  6411. // attached during that flush.
  6412. var currentFlushTimestamp = 0;
  6413. // Async edge case fix requires storing an event listener's attach timestamp.
  6414. var getNow = Date.now;
  6415. // Determine what event timestamp the browser is using. Annoyingly, the
  6416. // timestamp can either be hi-res (relative to page load) or low-res
  6417. // (relative to UNIX epoch), so in order to compare time we have to use the
  6418. // same timestamp type when saving the flush timestamp.
  6419. // All IE versions use low-res event timestamps, and have problematic clock
  6420. // implementations (#9632)
  6421. if (inBrowser && !isIE) {
  6422. var performance = window.performance;
  6423. if (
  6424. performance &&
  6425. typeof performance.now === 'function' &&
  6426. getNow() > document.createEvent('Event').timeStamp
  6427. ) {
  6428. // if the event timestamp, although evaluated AFTER the Date.now(), is
  6429. // smaller than it, it means the event is using a hi-res timestamp,
  6430. // and we need to use the hi-res version for event listener timestamps as
  6431. // well.
  6432. getNow = function () { return performance.now(); };
  6433. }
  6434. }
  6435. /**
  6436. * Flush both queues and run the watchers.
  6437. */
  6438. function flushSchedulerQueue () {
  6439. currentFlushTimestamp = getNow();
  6440. flushing = true;
  6441. var watcher, id;
  6442. // Sort queue before flush.
  6443. // This ensures that:
  6444. // 1. Components are updated from parent to child. (because parent is always
  6445. // created before the child)
  6446. // 2. A component's user watchers are run before its render watcher (because
  6447. // user watchers are created before the render watcher)
  6448. // 3. If a component is destroyed during a parent component's watcher run,
  6449. // its watchers can be skipped.
  6450. queue.sort(function (a, b) { return a.id - b.id; });
  6451. // do not cache length because more watchers might be pushed
  6452. // as we run existing watchers
  6453. for (index = 0; index < queue.length; index++) {
  6454. watcher = queue[index];
  6455. if (watcher.before) {
  6456. watcher.before();
  6457. }
  6458. id = watcher.id;
  6459. has[id] = null;
  6460. watcher.run();
  6461. // in dev build, check and stop circular updates.
  6462. if ( true && has[id] != null) {
  6463. circular[id] = (circular[id] || 0) + 1;
  6464. if (circular[id] > MAX_UPDATE_COUNT) {
  6465. warn(
  6466. 'You may have an infinite update loop ' + (
  6467. watcher.user
  6468. ? ("in watcher with expression \"" + (watcher.expression) + "\"")
  6469. : "in a component render function."
  6470. ),
  6471. watcher.vm
  6472. );
  6473. break
  6474. }
  6475. }
  6476. }
  6477. // keep copies of post queues before resetting state
  6478. var activatedQueue = activatedChildren.slice();
  6479. var updatedQueue = queue.slice();
  6480. resetSchedulerState();
  6481. // call component updated and activated hooks
  6482. callActivatedHooks(activatedQueue);
  6483. callUpdatedHooks(updatedQueue);
  6484. // devtool hook
  6485. /* istanbul ignore if */
  6486. if (devtools && config.devtools) {
  6487. devtools.emit('flush');
  6488. }
  6489. }
  6490. function callUpdatedHooks (queue) {
  6491. var i = queue.length;
  6492. while (i--) {
  6493. var watcher = queue[i];
  6494. var vm = watcher.vm;
  6495. if (vm._watcher === watcher && vm._isMounted && !vm._isDestroyed) {
  6496. callHook(vm, 'updated');
  6497. }
  6498. }
  6499. }
  6500. /**
  6501. * Queue a kept-alive component that was activated during patch.
  6502. * The queue will be processed after the entire tree has been patched.
  6503. */
  6504. function queueActivatedComponent (vm) {
  6505. // setting _inactive to false here so that a render function can
  6506. // rely on checking whether it's in an inactive tree (e.g. router-view)
  6507. vm._inactive = false;
  6508. activatedChildren.push(vm);
  6509. }
  6510. function callActivatedHooks (queue) {
  6511. for (var i = 0; i < queue.length; i++) {
  6512. queue[i]._inactive = true;
  6513. activateChildComponent(queue[i], true /* true */);
  6514. }
  6515. }
  6516. /**
  6517. * Push a watcher into the watcher queue.
  6518. * Jobs with duplicate IDs will be skipped unless it's
  6519. * pushed when the queue is being flushed.
  6520. */
  6521. function queueWatcher (watcher) {
  6522. var id = watcher.id;
  6523. if (has[id] == null) {
  6524. has[id] = true;
  6525. if (!flushing) {
  6526. queue.push(watcher);
  6527. } else {
  6528. // if already flushing, splice the watcher based on its id
  6529. // if already past its id, it will be run next immediately.
  6530. var i = queue.length - 1;
  6531. while (i > index && queue[i].id > watcher.id) {
  6532. i--;
  6533. }
  6534. queue.splice(i + 1, 0, watcher);
  6535. }
  6536. // queue the flush
  6537. if (!waiting) {
  6538. waiting = true;
  6539. if ( true && !config.async) {
  6540. flushSchedulerQueue();
  6541. return
  6542. }
  6543. nextTick(flushSchedulerQueue);
  6544. }
  6545. }
  6546. }
  6547. /* */
  6548. var uid$2 = 0;
  6549. /**
  6550. * A watcher parses an expression, collects dependencies,
  6551. * and fires callback when the expression value changes.
  6552. * This is used for both the $watch() api and directives.
  6553. */
  6554. var Watcher = function Watcher (
  6555. vm,
  6556. expOrFn,
  6557. cb,
  6558. options,
  6559. isRenderWatcher
  6560. ) {
  6561. this.vm = vm;
  6562. if (isRenderWatcher) {
  6563. vm._watcher = this;
  6564. }
  6565. vm._watchers.push(this);
  6566. // options
  6567. if (options) {
  6568. this.deep = !!options.deep;
  6569. this.user = !!options.user;
  6570. this.lazy = !!options.lazy;
  6571. this.sync = !!options.sync;
  6572. this.before = options.before;
  6573. } else {
  6574. this.deep = this.user = this.lazy = this.sync = false;
  6575. }
  6576. this.cb = cb;
  6577. this.id = ++uid$2; // uid for batching
  6578. this.active = true;
  6579. this.dirty = this.lazy; // for lazy watchers
  6580. this.deps = [];
  6581. this.newDeps = [];
  6582. this.depIds = new _Set();
  6583. this.newDepIds = new _Set();
  6584. this.expression = true
  6585. ? expOrFn.toString()
  6586. : undefined;
  6587. // parse expression for getter
  6588. if (typeof expOrFn === 'function') {
  6589. this.getter = expOrFn;
  6590. } else {
  6591. this.getter = parsePath(expOrFn);
  6592. if (!this.getter) {
  6593. this.getter = noop;
  6594. true && warn(
  6595. "Failed watching path: \"" + expOrFn + "\" " +
  6596. 'Watcher only accepts simple dot-delimited paths. ' +
  6597. 'For full control, use a function instead.',
  6598. vm
  6599. );
  6600. }
  6601. }
  6602. this.value = this.lazy
  6603. ? undefined
  6604. : this.get();
  6605. };
  6606. /**
  6607. * Evaluate the getter, and re-collect dependencies.
  6608. */
  6609. Watcher.prototype.get = function get () {
  6610. pushTarget(this);
  6611. var value;
  6612. var vm = this.vm;
  6613. try {
  6614. value = this.getter.call(vm, vm);
  6615. } catch (e) {
  6616. if (this.user) {
  6617. handleError(e, vm, ("getter for watcher \"" + (this.expression) + "\""));
  6618. } else {
  6619. throw e
  6620. }
  6621. } finally {
  6622. // "touch" every property so they are all tracked as
  6623. // dependencies for deep watching
  6624. if (this.deep) {
  6625. traverse(value);
  6626. }
  6627. popTarget();
  6628. this.cleanupDeps();
  6629. }
  6630. return value
  6631. };
  6632. /**
  6633. * Add a dependency to this directive.
  6634. */
  6635. Watcher.prototype.addDep = function addDep (dep) {
  6636. var id = dep.id;
  6637. if (!this.newDepIds.has(id)) {
  6638. this.newDepIds.add(id);
  6639. this.newDeps.push(dep);
  6640. if (!this.depIds.has(id)) {
  6641. dep.addSub(this);
  6642. }
  6643. }
  6644. };
  6645. /**
  6646. * Clean up for dependency collection.
  6647. */
  6648. Watcher.prototype.cleanupDeps = function cleanupDeps () {
  6649. var i = this.deps.length;
  6650. while (i--) {
  6651. var dep = this.deps[i];
  6652. if (!this.newDepIds.has(dep.id)) {
  6653. dep.removeSub(this);
  6654. }
  6655. }
  6656. var tmp = this.depIds;
  6657. this.depIds = this.newDepIds;
  6658. this.newDepIds = tmp;
  6659. this.newDepIds.clear();
  6660. tmp = this.deps;
  6661. this.deps = this.newDeps;
  6662. this.newDeps = tmp;
  6663. this.newDeps.length = 0;
  6664. };
  6665. /**
  6666. * Subscriber interface.
  6667. * Will be called when a dependency changes.
  6668. */
  6669. Watcher.prototype.update = function update () {
  6670. /* istanbul ignore else */
  6671. if (this.lazy) {
  6672. this.dirty = true;
  6673. } else if (this.sync) {
  6674. this.run();
  6675. } else {
  6676. queueWatcher(this);
  6677. }
  6678. };
  6679. /**
  6680. * Scheduler job interface.
  6681. * Will be called by the scheduler.
  6682. */
  6683. Watcher.prototype.run = function run () {
  6684. if (this.active) {
  6685. var value = this.get();
  6686. if (
  6687. value !== this.value ||
  6688. // Deep watchers and watchers on Object/Arrays should fire even
  6689. // when the value is the same, because the value may
  6690. // have mutated.
  6691. isObject(value) ||
  6692. this.deep
  6693. ) {
  6694. // set new value
  6695. var oldValue = this.value;
  6696. this.value = value;
  6697. if (this.user) {
  6698. try {
  6699. this.cb.call(this.vm, value, oldValue);
  6700. } catch (e) {
  6701. handleError(e, this.vm, ("callback for watcher \"" + (this.expression) + "\""));
  6702. }
  6703. } else {
  6704. this.cb.call(this.vm, value, oldValue);
  6705. }
  6706. }
  6707. }
  6708. };
  6709. /**
  6710. * Evaluate the value of the watcher.
  6711. * This only gets called for lazy watchers.
  6712. */
  6713. Watcher.prototype.evaluate = function evaluate () {
  6714. this.value = this.get();
  6715. this.dirty = false;
  6716. };
  6717. /**
  6718. * Depend on all deps collected by this watcher.
  6719. */
  6720. Watcher.prototype.depend = function depend () {
  6721. var i = this.deps.length;
  6722. while (i--) {
  6723. this.deps[i].depend();
  6724. }
  6725. };
  6726. /**
  6727. * Remove self from all dependencies' subscriber list.
  6728. */
  6729. Watcher.prototype.teardown = function teardown () {
  6730. if (this.active) {
  6731. // remove self from vm's watcher list
  6732. // this is a somewhat expensive operation so we skip it
  6733. // if the vm is being destroyed.
  6734. if (!this.vm._isBeingDestroyed) {
  6735. remove(this.vm._watchers, this);
  6736. }
  6737. var i = this.deps.length;
  6738. while (i--) {
  6739. this.deps[i].removeSub(this);
  6740. }
  6741. this.active = false;
  6742. }
  6743. };
  6744. /* */
  6745. var sharedPropertyDefinition = {
  6746. enumerable: true,
  6747. configurable: true,
  6748. get: noop,
  6749. set: noop
  6750. };
  6751. function proxy (target, sourceKey, key) {
  6752. sharedPropertyDefinition.get = function proxyGetter () {
  6753. return this[sourceKey][key]
  6754. };
  6755. sharedPropertyDefinition.set = function proxySetter (val) {
  6756. this[sourceKey][key] = val;
  6757. };
  6758. Object.defineProperty(target, key, sharedPropertyDefinition);
  6759. }
  6760. function initState (vm) {
  6761. vm._watchers = [];
  6762. var opts = vm.$options;
  6763. if (opts.props) { initProps(vm, opts.props); }
  6764. if (opts.methods) { initMethods(vm, opts.methods); }
  6765. if (opts.data) {
  6766. initData(vm);
  6767. } else {
  6768. observe(vm._data = {}, true /* asRootData */);
  6769. }
  6770. if (opts.computed) { initComputed(vm, opts.computed); }
  6771. if (opts.watch && opts.watch !== nativeWatch) {
  6772. initWatch(vm, opts.watch);
  6773. }
  6774. }
  6775. function initProps (vm, propsOptions) {
  6776. var propsData = vm.$options.propsData || {};
  6777. var props = vm._props = {};
  6778. // cache prop keys so that future props updates can iterate using Array
  6779. // instead of dynamic object key enumeration.
  6780. var keys = vm.$options._propKeys = [];
  6781. var isRoot = !vm.$parent;
  6782. // root instance props should be converted
  6783. if (!isRoot) {
  6784. toggleObserving(false);
  6785. }
  6786. var loop = function ( key ) {
  6787. keys.push(key);
  6788. var value = validateProp(key, propsOptions, propsData, vm);
  6789. /* istanbul ignore else */
  6790. if (true) {
  6791. var hyphenatedKey = hyphenate(key);
  6792. if (isReservedAttribute(hyphenatedKey) ||
  6793. config.isReservedAttr(hyphenatedKey)) {
  6794. warn(
  6795. ("\"" + hyphenatedKey + "\" is a reserved attribute and cannot be used as component prop."),
  6796. vm
  6797. );
  6798. }
  6799. defineReactive$$1(props, key, value, function () {
  6800. if (!isRoot && !isUpdatingChildComponent) {
  6801. {
  6802. if(vm.mpHost === 'mp-baidu' || vm.mpHost === 'mp-kuaishou' || vm.mpHost === 'mp-xhs'){//百度、快手、小红书 observer 在 setData callback 之后触发,直接忽略该 warn
  6803. return
  6804. }
  6805. //fixed by xxxxxx __next_tick_pending,uni://form-field 时不告警
  6806. if(
  6807. key === 'value' &&
  6808. Array.isArray(vm.$options.behaviors) &&
  6809. vm.$options.behaviors.indexOf('uni://form-field') !== -1
  6810. ){
  6811. return
  6812. }
  6813. if(vm._getFormData){
  6814. return
  6815. }
  6816. var $parent = vm.$parent;
  6817. while($parent){
  6818. if($parent.__next_tick_pending){
  6819. return
  6820. }
  6821. $parent = $parent.$parent;
  6822. }
  6823. }
  6824. warn(
  6825. "Avoid mutating a prop directly since the value will be " +
  6826. "overwritten whenever the parent component re-renders. " +
  6827. "Instead, use a data or computed property based on the prop's " +
  6828. "value. Prop being mutated: \"" + key + "\"",
  6829. vm
  6830. );
  6831. }
  6832. });
  6833. } else {}
  6834. // static props are already proxied on the component's prototype
  6835. // during Vue.extend(). We only need to proxy props defined at
  6836. // instantiation here.
  6837. if (!(key in vm)) {
  6838. proxy(vm, "_props", key);
  6839. }
  6840. };
  6841. for (var key in propsOptions) loop( key );
  6842. toggleObserving(true);
  6843. }
  6844. function initData (vm) {
  6845. var data = vm.$options.data;
  6846. data = vm._data = typeof data === 'function'
  6847. ? getData(data, vm)
  6848. : data || {};
  6849. if (!isPlainObject(data)) {
  6850. data = {};
  6851. true && warn(
  6852. 'data functions should return an object:\n' +
  6853. 'https://vuejs.org/v2/guide/components.html#data-Must-Be-a-Function',
  6854. vm
  6855. );
  6856. }
  6857. // proxy data on instance
  6858. var keys = Object.keys(data);
  6859. var props = vm.$options.props;
  6860. var methods = vm.$options.methods;
  6861. var i = keys.length;
  6862. while (i--) {
  6863. var key = keys[i];
  6864. if (true) {
  6865. if (methods && hasOwn(methods, key)) {
  6866. warn(
  6867. ("Method \"" + key + "\" has already been defined as a data property."),
  6868. vm
  6869. );
  6870. }
  6871. }
  6872. if (props && hasOwn(props, key)) {
  6873. true && warn(
  6874. "The data property \"" + key + "\" is already declared as a prop. " +
  6875. "Use prop default value instead.",
  6876. vm
  6877. );
  6878. } else if (!isReserved(key)) {
  6879. proxy(vm, "_data", key);
  6880. }
  6881. }
  6882. // observe data
  6883. observe(data, true /* asRootData */);
  6884. }
  6885. function getData (data, vm) {
  6886. // #7573 disable dep collection when invoking data getters
  6887. pushTarget();
  6888. try {
  6889. return data.call(vm, vm)
  6890. } catch (e) {
  6891. handleError(e, vm, "data()");
  6892. return {}
  6893. } finally {
  6894. popTarget();
  6895. }
  6896. }
  6897. var computedWatcherOptions = { lazy: true };
  6898. function initComputed (vm, computed) {
  6899. // $flow-disable-line
  6900. var watchers = vm._computedWatchers = Object.create(null);
  6901. // computed properties are just getters during SSR
  6902. var isSSR = isServerRendering();
  6903. for (var key in computed) {
  6904. var userDef = computed[key];
  6905. var getter = typeof userDef === 'function' ? userDef : userDef.get;
  6906. if ( true && getter == null) {
  6907. warn(
  6908. ("Getter is missing for computed property \"" + key + "\"."),
  6909. vm
  6910. );
  6911. }
  6912. if (!isSSR) {
  6913. // create internal watcher for the computed property.
  6914. watchers[key] = new Watcher(
  6915. vm,
  6916. getter || noop,
  6917. noop,
  6918. computedWatcherOptions
  6919. );
  6920. }
  6921. // component-defined computed properties are already defined on the
  6922. // component prototype. We only need to define computed properties defined
  6923. // at instantiation here.
  6924. if (!(key in vm)) {
  6925. defineComputed(vm, key, userDef);
  6926. } else if (true) {
  6927. if (key in vm.$data) {
  6928. warn(("The computed property \"" + key + "\" is already defined in data."), vm);
  6929. } else if (vm.$options.props && key in vm.$options.props) {
  6930. warn(("The computed property \"" + key + "\" is already defined as a prop."), vm);
  6931. }
  6932. }
  6933. }
  6934. }
  6935. function defineComputed (
  6936. target,
  6937. key,
  6938. userDef
  6939. ) {
  6940. var shouldCache = !isServerRendering();
  6941. if (typeof userDef === 'function') {
  6942. sharedPropertyDefinition.get = shouldCache
  6943. ? createComputedGetter(key)
  6944. : createGetterInvoker(userDef);
  6945. sharedPropertyDefinition.set = noop;
  6946. } else {
  6947. sharedPropertyDefinition.get = userDef.get
  6948. ? shouldCache && userDef.cache !== false
  6949. ? createComputedGetter(key)
  6950. : createGetterInvoker(userDef.get)
  6951. : noop;
  6952. sharedPropertyDefinition.set = userDef.set || noop;
  6953. }
  6954. if ( true &&
  6955. sharedPropertyDefinition.set === noop) {
  6956. sharedPropertyDefinition.set = function () {
  6957. warn(
  6958. ("Computed property \"" + key + "\" was assigned to but it has no setter."),
  6959. this
  6960. );
  6961. };
  6962. }
  6963. Object.defineProperty(target, key, sharedPropertyDefinition);
  6964. }
  6965. function createComputedGetter (key) {
  6966. return function computedGetter () {
  6967. var watcher = this._computedWatchers && this._computedWatchers[key];
  6968. if (watcher) {
  6969. if (watcher.dirty) {
  6970. watcher.evaluate();
  6971. }
  6972. if (Dep.SharedObject.target) {// fixed by xxxxxx
  6973. watcher.depend();
  6974. }
  6975. return watcher.value
  6976. }
  6977. }
  6978. }
  6979. function createGetterInvoker(fn) {
  6980. return function computedGetter () {
  6981. return fn.call(this, this)
  6982. }
  6983. }
  6984. function initMethods (vm, methods) {
  6985. var props = vm.$options.props;
  6986. for (var key in methods) {
  6987. if (true) {
  6988. if (typeof methods[key] !== 'function') {
  6989. warn(
  6990. "Method \"" + key + "\" has type \"" + (typeof methods[key]) + "\" in the component definition. " +
  6991. "Did you reference the function correctly?",
  6992. vm
  6993. );
  6994. }
  6995. if (props && hasOwn(props, key)) {
  6996. warn(
  6997. ("Method \"" + key + "\" has already been defined as a prop."),
  6998. vm
  6999. );
  7000. }
  7001. if ((key in vm) && isReserved(key)) {
  7002. warn(
  7003. "Method \"" + key + "\" conflicts with an existing Vue instance method. " +
  7004. "Avoid defining component methods that start with _ or $."
  7005. );
  7006. }
  7007. }
  7008. vm[key] = typeof methods[key] !== 'function' ? noop : bind(methods[key], vm);
  7009. }
  7010. }
  7011. function initWatch (vm, watch) {
  7012. for (var key in watch) {
  7013. var handler = watch[key];
  7014. if (Array.isArray(handler)) {
  7015. for (var i = 0; i < handler.length; i++) {
  7016. createWatcher(vm, key, handler[i]);
  7017. }
  7018. } else {
  7019. createWatcher(vm, key, handler);
  7020. }
  7021. }
  7022. }
  7023. function createWatcher (
  7024. vm,
  7025. expOrFn,
  7026. handler,
  7027. options
  7028. ) {
  7029. if (isPlainObject(handler)) {
  7030. options = handler;
  7031. handler = handler.handler;
  7032. }
  7033. if (typeof handler === 'string') {
  7034. handler = vm[handler];
  7035. }
  7036. return vm.$watch(expOrFn, handler, options)
  7037. }
  7038. function stateMixin (Vue) {
  7039. // flow somehow has problems with directly declared definition object
  7040. // when using Object.defineProperty, so we have to procedurally build up
  7041. // the object here.
  7042. var dataDef = {};
  7043. dataDef.get = function () { return this._data };
  7044. var propsDef = {};
  7045. propsDef.get = function () { return this._props };
  7046. if (true) {
  7047. dataDef.set = function () {
  7048. warn(
  7049. 'Avoid replacing instance root $data. ' +
  7050. 'Use nested data properties instead.',
  7051. this
  7052. );
  7053. };
  7054. propsDef.set = function () {
  7055. warn("$props is readonly.", this);
  7056. };
  7057. }
  7058. Object.defineProperty(Vue.prototype, '$data', dataDef);
  7059. Object.defineProperty(Vue.prototype, '$props', propsDef);
  7060. Vue.prototype.$set = set;
  7061. Vue.prototype.$delete = del;
  7062. Vue.prototype.$watch = function (
  7063. expOrFn,
  7064. cb,
  7065. options
  7066. ) {
  7067. var vm = this;
  7068. if (isPlainObject(cb)) {
  7069. return createWatcher(vm, expOrFn, cb, options)
  7070. }
  7071. options = options || {};
  7072. options.user = true;
  7073. var watcher = new Watcher(vm, expOrFn, cb, options);
  7074. if (options.immediate) {
  7075. try {
  7076. cb.call(vm, watcher.value);
  7077. } catch (error) {
  7078. handleError(error, vm, ("callback for immediate watcher \"" + (watcher.expression) + "\""));
  7079. }
  7080. }
  7081. return function unwatchFn () {
  7082. watcher.teardown();
  7083. }
  7084. };
  7085. }
  7086. /* */
  7087. var uid$3 = 0;
  7088. function initMixin (Vue) {
  7089. Vue.prototype._init = function (options) {
  7090. var vm = this;
  7091. // a uid
  7092. vm._uid = uid$3++;
  7093. var startTag, endTag;
  7094. /* istanbul ignore if */
  7095. if ( true && config.performance && mark) {
  7096. startTag = "vue-perf-start:" + (vm._uid);
  7097. endTag = "vue-perf-end:" + (vm._uid);
  7098. mark(startTag);
  7099. }
  7100. // a flag to avoid this being observed
  7101. vm._isVue = true;
  7102. // merge options
  7103. if (options && options._isComponent) {
  7104. // optimize internal component instantiation
  7105. // since dynamic options merging is pretty slow, and none of the
  7106. // internal component options needs special treatment.
  7107. initInternalComponent(vm, options);
  7108. } else {
  7109. vm.$options = mergeOptions(
  7110. resolveConstructorOptions(vm.constructor),
  7111. options || {},
  7112. vm
  7113. );
  7114. }
  7115. /* istanbul ignore else */
  7116. if (true) {
  7117. initProxy(vm);
  7118. } else {}
  7119. // expose real self
  7120. vm._self = vm;
  7121. initLifecycle(vm);
  7122. initEvents(vm);
  7123. initRender(vm);
  7124. callHook(vm, 'beforeCreate');
  7125. !vm._$fallback && initInjections(vm); // resolve injections before data/props
  7126. initState(vm);
  7127. !vm._$fallback && initProvide(vm); // resolve provide after data/props
  7128. !vm._$fallback && callHook(vm, 'created');
  7129. /* istanbul ignore if */
  7130. if ( true && config.performance && mark) {
  7131. vm._name = formatComponentName(vm, false);
  7132. mark(endTag);
  7133. measure(("vue " + (vm._name) + " init"), startTag, endTag);
  7134. }
  7135. if (vm.$options.el) {
  7136. vm.$mount(vm.$options.el);
  7137. }
  7138. };
  7139. }
  7140. function initInternalComponent (vm, options) {
  7141. var opts = vm.$options = Object.create(vm.constructor.options);
  7142. // doing this because it's faster than dynamic enumeration.
  7143. var parentVnode = options._parentVnode;
  7144. opts.parent = options.parent;
  7145. opts._parentVnode = parentVnode;
  7146. var vnodeComponentOptions = parentVnode.componentOptions;
  7147. opts.propsData = vnodeComponentOptions.propsData;
  7148. opts._parentListeners = vnodeComponentOptions.listeners;
  7149. opts._renderChildren = vnodeComponentOptions.children;
  7150. opts._componentTag = vnodeComponentOptions.tag;
  7151. if (options.render) {
  7152. opts.render = options.render;
  7153. opts.staticRenderFns = options.staticRenderFns;
  7154. }
  7155. }
  7156. function resolveConstructorOptions (Ctor) {
  7157. var options = Ctor.options;
  7158. if (Ctor.super) {
  7159. var superOptions = resolveConstructorOptions(Ctor.super);
  7160. var cachedSuperOptions = Ctor.superOptions;
  7161. if (superOptions !== cachedSuperOptions) {
  7162. // super option changed,
  7163. // need to resolve new options.
  7164. Ctor.superOptions = superOptions;
  7165. // check if there are any late-modified/attached options (#4976)
  7166. var modifiedOptions = resolveModifiedOptions(Ctor);
  7167. // update base extend options
  7168. if (modifiedOptions) {
  7169. extend(Ctor.extendOptions, modifiedOptions);
  7170. }
  7171. options = Ctor.options = mergeOptions(superOptions, Ctor.extendOptions);
  7172. if (options.name) {
  7173. options.components[options.name] = Ctor;
  7174. }
  7175. }
  7176. }
  7177. return options
  7178. }
  7179. function resolveModifiedOptions (Ctor) {
  7180. var modified;
  7181. var latest = Ctor.options;
  7182. var sealed = Ctor.sealedOptions;
  7183. for (var key in latest) {
  7184. if (latest[key] !== sealed[key]) {
  7185. if (!modified) { modified = {}; }
  7186. modified[key] = latest[key];
  7187. }
  7188. }
  7189. return modified
  7190. }
  7191. function Vue (options) {
  7192. if ( true &&
  7193. !(this instanceof Vue)
  7194. ) {
  7195. warn('Vue is a constructor and should be called with the `new` keyword');
  7196. }
  7197. this._init(options);
  7198. }
  7199. initMixin(Vue);
  7200. stateMixin(Vue);
  7201. eventsMixin(Vue);
  7202. lifecycleMixin(Vue);
  7203. renderMixin(Vue);
  7204. /* */
  7205. function initUse (Vue) {
  7206. Vue.use = function (plugin) {
  7207. var installedPlugins = (this._installedPlugins || (this._installedPlugins = []));
  7208. if (installedPlugins.indexOf(plugin) > -1) {
  7209. return this
  7210. }
  7211. // additional parameters
  7212. var args = toArray(arguments, 1);
  7213. args.unshift(this);
  7214. if (typeof plugin.install === 'function') {
  7215. plugin.install.apply(plugin, args);
  7216. } else if (typeof plugin === 'function') {
  7217. plugin.apply(null, args);
  7218. }
  7219. installedPlugins.push(plugin);
  7220. return this
  7221. };
  7222. }
  7223. /* */
  7224. function initMixin$1 (Vue) {
  7225. Vue.mixin = function (mixin) {
  7226. this.options = mergeOptions(this.options, mixin);
  7227. return this
  7228. };
  7229. }
  7230. /* */
  7231. function initExtend (Vue) {
  7232. /**
  7233. * Each instance constructor, including Vue, has a unique
  7234. * cid. This enables us to create wrapped "child
  7235. * constructors" for prototypal inheritance and cache them.
  7236. */
  7237. Vue.cid = 0;
  7238. var cid = 1;
  7239. /**
  7240. * Class inheritance
  7241. */
  7242. Vue.extend = function (extendOptions) {
  7243. extendOptions = extendOptions || {};
  7244. var Super = this;
  7245. var SuperId = Super.cid;
  7246. var cachedCtors = extendOptions._Ctor || (extendOptions._Ctor = {});
  7247. if (cachedCtors[SuperId]) {
  7248. return cachedCtors[SuperId]
  7249. }
  7250. var name = extendOptions.name || Super.options.name;
  7251. if ( true && name) {
  7252. validateComponentName(name);
  7253. }
  7254. var Sub = function VueComponent (options) {
  7255. this._init(options);
  7256. };
  7257. Sub.prototype = Object.create(Super.prototype);
  7258. Sub.prototype.constructor = Sub;
  7259. Sub.cid = cid++;
  7260. Sub.options = mergeOptions(
  7261. Super.options,
  7262. extendOptions
  7263. );
  7264. Sub['super'] = Super;
  7265. // For props and computed properties, we define the proxy getters on
  7266. // the Vue instances at extension time, on the extended prototype. This
  7267. // avoids Object.defineProperty calls for each instance created.
  7268. if (Sub.options.props) {
  7269. initProps$1(Sub);
  7270. }
  7271. if (Sub.options.computed) {
  7272. initComputed$1(Sub);
  7273. }
  7274. // allow further extension/mixin/plugin usage
  7275. Sub.extend = Super.extend;
  7276. Sub.mixin = Super.mixin;
  7277. Sub.use = Super.use;
  7278. // create asset registers, so extended classes
  7279. // can have their private assets too.
  7280. ASSET_TYPES.forEach(function (type) {
  7281. Sub[type] = Super[type];
  7282. });
  7283. // enable recursive self-lookup
  7284. if (name) {
  7285. Sub.options.components[name] = Sub;
  7286. }
  7287. // keep a reference to the super options at extension time.
  7288. // later at instantiation we can check if Super's options have
  7289. // been updated.
  7290. Sub.superOptions = Super.options;
  7291. Sub.extendOptions = extendOptions;
  7292. Sub.sealedOptions = extend({}, Sub.options);
  7293. // cache constructor
  7294. cachedCtors[SuperId] = Sub;
  7295. return Sub
  7296. };
  7297. }
  7298. function initProps$1 (Comp) {
  7299. var props = Comp.options.props;
  7300. for (var key in props) {
  7301. proxy(Comp.prototype, "_props", key);
  7302. }
  7303. }
  7304. function initComputed$1 (Comp) {
  7305. var computed = Comp.options.computed;
  7306. for (var key in computed) {
  7307. defineComputed(Comp.prototype, key, computed[key]);
  7308. }
  7309. }
  7310. /* */
  7311. function initAssetRegisters (Vue) {
  7312. /**
  7313. * Create asset registration methods.
  7314. */
  7315. ASSET_TYPES.forEach(function (type) {
  7316. Vue[type] = function (
  7317. id,
  7318. definition
  7319. ) {
  7320. if (!definition) {
  7321. return this.options[type + 's'][id]
  7322. } else {
  7323. /* istanbul ignore if */
  7324. if ( true && type === 'component') {
  7325. validateComponentName(id);
  7326. }
  7327. if (type === 'component' && isPlainObject(definition)) {
  7328. definition.name = definition.name || id;
  7329. definition = this.options._base.extend(definition);
  7330. }
  7331. if (type === 'directive' && typeof definition === 'function') {
  7332. definition = { bind: definition, update: definition };
  7333. }
  7334. this.options[type + 's'][id] = definition;
  7335. return definition
  7336. }
  7337. };
  7338. });
  7339. }
  7340. /* */
  7341. function getComponentName (opts) {
  7342. return opts && (opts.Ctor.options.name || opts.tag)
  7343. }
  7344. function matches (pattern, name) {
  7345. if (Array.isArray(pattern)) {
  7346. return pattern.indexOf(name) > -1
  7347. } else if (typeof pattern === 'string') {
  7348. return pattern.split(',').indexOf(name) > -1
  7349. } else if (isRegExp(pattern)) {
  7350. return pattern.test(name)
  7351. }
  7352. /* istanbul ignore next */
  7353. return false
  7354. }
  7355. function pruneCache (keepAliveInstance, filter) {
  7356. var cache = keepAliveInstance.cache;
  7357. var keys = keepAliveInstance.keys;
  7358. var _vnode = keepAliveInstance._vnode;
  7359. for (var key in cache) {
  7360. var cachedNode = cache[key];
  7361. if (cachedNode) {
  7362. var name = getComponentName(cachedNode.componentOptions);
  7363. if (name && !filter(name)) {
  7364. pruneCacheEntry(cache, key, keys, _vnode);
  7365. }
  7366. }
  7367. }
  7368. }
  7369. function pruneCacheEntry (
  7370. cache,
  7371. key,
  7372. keys,
  7373. current
  7374. ) {
  7375. var cached$$1 = cache[key];
  7376. if (cached$$1 && (!current || cached$$1.tag !== current.tag)) {
  7377. cached$$1.componentInstance.$destroy();
  7378. }
  7379. cache[key] = null;
  7380. remove(keys, key);
  7381. }
  7382. var patternTypes = [String, RegExp, Array];
  7383. var KeepAlive = {
  7384. name: 'keep-alive',
  7385. abstract: true,
  7386. props: {
  7387. include: patternTypes,
  7388. exclude: patternTypes,
  7389. max: [String, Number]
  7390. },
  7391. created: function created () {
  7392. this.cache = Object.create(null);
  7393. this.keys = [];
  7394. },
  7395. destroyed: function destroyed () {
  7396. for (var key in this.cache) {
  7397. pruneCacheEntry(this.cache, key, this.keys);
  7398. }
  7399. },
  7400. mounted: function mounted () {
  7401. var this$1 = this;
  7402. this.$watch('include', function (val) {
  7403. pruneCache(this$1, function (name) { return matches(val, name); });
  7404. });
  7405. this.$watch('exclude', function (val) {
  7406. pruneCache(this$1, function (name) { return !matches(val, name); });
  7407. });
  7408. },
  7409. render: function render () {
  7410. var slot = this.$slots.default;
  7411. var vnode = getFirstComponentChild(slot);
  7412. var componentOptions = vnode && vnode.componentOptions;
  7413. if (componentOptions) {
  7414. // check pattern
  7415. var name = getComponentName(componentOptions);
  7416. var ref = this;
  7417. var include = ref.include;
  7418. var exclude = ref.exclude;
  7419. if (
  7420. // not included
  7421. (include && (!name || !matches(include, name))) ||
  7422. // excluded
  7423. (exclude && name && matches(exclude, name))
  7424. ) {
  7425. return vnode
  7426. }
  7427. var ref$1 = this;
  7428. var cache = ref$1.cache;
  7429. var keys = ref$1.keys;
  7430. var key = vnode.key == null
  7431. // same constructor may get registered as different local components
  7432. // so cid alone is not enough (#3269)
  7433. ? componentOptions.Ctor.cid + (componentOptions.tag ? ("::" + (componentOptions.tag)) : '')
  7434. : vnode.key;
  7435. if (cache[key]) {
  7436. vnode.componentInstance = cache[key].componentInstance;
  7437. // make current key freshest
  7438. remove(keys, key);
  7439. keys.push(key);
  7440. } else {
  7441. cache[key] = vnode;
  7442. keys.push(key);
  7443. // prune oldest entry
  7444. if (this.max && keys.length > parseInt(this.max)) {
  7445. pruneCacheEntry(cache, keys[0], keys, this._vnode);
  7446. }
  7447. }
  7448. vnode.data.keepAlive = true;
  7449. }
  7450. return vnode || (slot && slot[0])
  7451. }
  7452. };
  7453. var builtInComponents = {
  7454. KeepAlive: KeepAlive
  7455. };
  7456. /* */
  7457. function initGlobalAPI (Vue) {
  7458. // config
  7459. var configDef = {};
  7460. configDef.get = function () { return config; };
  7461. if (true) {
  7462. configDef.set = function () {
  7463. warn(
  7464. 'Do not replace the Vue.config object, set individual fields instead.'
  7465. );
  7466. };
  7467. }
  7468. Object.defineProperty(Vue, 'config', configDef);
  7469. // exposed util methods.
  7470. // NOTE: these are not considered part of the public API - avoid relying on
  7471. // them unless you are aware of the risk.
  7472. Vue.util = {
  7473. warn: warn,
  7474. extend: extend,
  7475. mergeOptions: mergeOptions,
  7476. defineReactive: defineReactive$$1
  7477. };
  7478. Vue.set = set;
  7479. Vue.delete = del;
  7480. Vue.nextTick = nextTick;
  7481. // 2.6 explicit observable API
  7482. Vue.observable = function (obj) {
  7483. observe(obj);
  7484. return obj
  7485. };
  7486. Vue.options = Object.create(null);
  7487. ASSET_TYPES.forEach(function (type) {
  7488. Vue.options[type + 's'] = Object.create(null);
  7489. });
  7490. // this is used to identify the "base" constructor to extend all plain-object
  7491. // components with in Weex's multi-instance scenarios.
  7492. Vue.options._base = Vue;
  7493. extend(Vue.options.components, builtInComponents);
  7494. initUse(Vue);
  7495. initMixin$1(Vue);
  7496. initExtend(Vue);
  7497. initAssetRegisters(Vue);
  7498. }
  7499. initGlobalAPI(Vue);
  7500. Object.defineProperty(Vue.prototype, '$isServer', {
  7501. get: isServerRendering
  7502. });
  7503. Object.defineProperty(Vue.prototype, '$ssrContext', {
  7504. get: function get () {
  7505. /* istanbul ignore next */
  7506. return this.$vnode && this.$vnode.ssrContext
  7507. }
  7508. });
  7509. // expose FunctionalRenderContext for ssr runtime helper installation
  7510. Object.defineProperty(Vue, 'FunctionalRenderContext', {
  7511. value: FunctionalRenderContext
  7512. });
  7513. Vue.version = '2.6.11';
  7514. /**
  7515. * https://raw.githubusercontent.com/Tencent/westore/master/packages/westore/utils/diff.js
  7516. */
  7517. var ARRAYTYPE = '[object Array]';
  7518. var OBJECTTYPE = '[object Object]';
  7519. // const FUNCTIONTYPE = '[object Function]'
  7520. function diff(current, pre) {
  7521. var result = {};
  7522. syncKeys(current, pre);
  7523. _diff(current, pre, '', result);
  7524. return result
  7525. }
  7526. function syncKeys(current, pre) {
  7527. if (current === pre) { return }
  7528. var rootCurrentType = type(current);
  7529. var rootPreType = type(pre);
  7530. if (rootCurrentType == OBJECTTYPE && rootPreType == OBJECTTYPE) {
  7531. if(Object.keys(current).length >= Object.keys(pre).length){
  7532. for (var key in pre) {
  7533. var currentValue = current[key];
  7534. if (currentValue === undefined) {
  7535. current[key] = null;
  7536. } else {
  7537. syncKeys(currentValue, pre[key]);
  7538. }
  7539. }
  7540. }
  7541. } else if (rootCurrentType == ARRAYTYPE && rootPreType == ARRAYTYPE) {
  7542. if (current.length >= pre.length) {
  7543. pre.forEach(function (item, index) {
  7544. syncKeys(current[index], item);
  7545. });
  7546. }
  7547. }
  7548. }
  7549. function _diff(current, pre, path, result) {
  7550. if (current === pre) { return }
  7551. var rootCurrentType = type(current);
  7552. var rootPreType = type(pre);
  7553. if (rootCurrentType == OBJECTTYPE) {
  7554. if (rootPreType != OBJECTTYPE || Object.keys(current).length < Object.keys(pre).length) {
  7555. setResult(result, path, current);
  7556. } else {
  7557. var loop = function ( key ) {
  7558. var currentValue = current[key];
  7559. var preValue = pre[key];
  7560. var currentType = type(currentValue);
  7561. var preType = type(preValue);
  7562. if (currentType != ARRAYTYPE && currentType != OBJECTTYPE) {
  7563. if (currentValue !== pre[key]) {
  7564. setResult(result, (path == '' ? '' : path + ".") + key, currentValue);
  7565. }
  7566. } else if (currentType == ARRAYTYPE) {
  7567. if (preType != ARRAYTYPE) {
  7568. setResult(result, (path == '' ? '' : path + ".") + key, currentValue);
  7569. } else {
  7570. if (currentValue.length < preValue.length) {
  7571. setResult(result, (path == '' ? '' : path + ".") + key, currentValue);
  7572. } else {
  7573. currentValue.forEach(function (item, index) {
  7574. _diff(item, preValue[index], (path == '' ? '' : path + ".") + key + '[' + index + ']', result);
  7575. });
  7576. }
  7577. }
  7578. } else if (currentType == OBJECTTYPE) {
  7579. if (preType != OBJECTTYPE || Object.keys(currentValue).length < Object.keys(preValue).length) {
  7580. setResult(result, (path == '' ? '' : path + ".") + key, currentValue);
  7581. } else {
  7582. for (var subKey in currentValue) {
  7583. _diff(currentValue[subKey], preValue[subKey], (path == '' ? '' : path + ".") + key + '.' + subKey, result);
  7584. }
  7585. }
  7586. }
  7587. };
  7588. for (var key in current) loop( key );
  7589. }
  7590. } else if (rootCurrentType == ARRAYTYPE) {
  7591. if (rootPreType != ARRAYTYPE) {
  7592. setResult(result, path, current);
  7593. } else {
  7594. if (current.length < pre.length) {
  7595. setResult(result, path, current);
  7596. } else {
  7597. current.forEach(function (item, index) {
  7598. _diff(item, pre[index], path + '[' + index + ']', result);
  7599. });
  7600. }
  7601. }
  7602. } else {
  7603. setResult(result, path, current);
  7604. }
  7605. }
  7606. function setResult(result, k, v) {
  7607. // if (type(v) != FUNCTIONTYPE) {
  7608. result[k] = v;
  7609. // }
  7610. }
  7611. function type(obj) {
  7612. return Object.prototype.toString.call(obj)
  7613. }
  7614. /* */
  7615. function flushCallbacks$1(vm) {
  7616. if (vm.__next_tick_callbacks && vm.__next_tick_callbacks.length) {
  7617. if (Object({"NODE_ENV":"development","VUE_APP_NAME":"cbz","VUE_APP_PLATFORM":"mp-weixin","BASE_URL":"/"}).VUE_APP_DEBUG) {
  7618. var mpInstance = vm.$scope;
  7619. console.log('[' + (+new Date) + '][' + (mpInstance.is || mpInstance.route) + '][' + vm._uid +
  7620. ']:flushCallbacks[' + vm.__next_tick_callbacks.length + ']');
  7621. }
  7622. var copies = vm.__next_tick_callbacks.slice(0);
  7623. vm.__next_tick_callbacks.length = 0;
  7624. for (var i = 0; i < copies.length; i++) {
  7625. copies[i]();
  7626. }
  7627. }
  7628. }
  7629. function hasRenderWatcher(vm) {
  7630. return queue.find(function (watcher) { return vm._watcher === watcher; })
  7631. }
  7632. function nextTick$1(vm, cb) {
  7633. //1.nextTick 之前 已 setData 且 setData 还未回调完成
  7634. //2.nextTick 之前存在 render watcher
  7635. if (!vm.__next_tick_pending && !hasRenderWatcher(vm)) {
  7636. if(Object({"NODE_ENV":"development","VUE_APP_NAME":"cbz","VUE_APP_PLATFORM":"mp-weixin","BASE_URL":"/"}).VUE_APP_DEBUG){
  7637. var mpInstance = vm.$scope;
  7638. console.log('[' + (+new Date) + '][' + (mpInstance.is || mpInstance.route) + '][' + vm._uid +
  7639. ']:nextVueTick');
  7640. }
  7641. return nextTick(cb, vm)
  7642. }else{
  7643. if(Object({"NODE_ENV":"development","VUE_APP_NAME":"cbz","VUE_APP_PLATFORM":"mp-weixin","BASE_URL":"/"}).VUE_APP_DEBUG){
  7644. var mpInstance$1 = vm.$scope;
  7645. console.log('[' + (+new Date) + '][' + (mpInstance$1.is || mpInstance$1.route) + '][' + vm._uid +
  7646. ']:nextMPTick');
  7647. }
  7648. }
  7649. var _resolve;
  7650. if (!vm.__next_tick_callbacks) {
  7651. vm.__next_tick_callbacks = [];
  7652. }
  7653. vm.__next_tick_callbacks.push(function () {
  7654. if (cb) {
  7655. try {
  7656. cb.call(vm);
  7657. } catch (e) {
  7658. handleError(e, vm, 'nextTick');
  7659. }
  7660. } else if (_resolve) {
  7661. _resolve(vm);
  7662. }
  7663. });
  7664. // $flow-disable-line
  7665. if (!cb && typeof Promise !== 'undefined') {
  7666. return new Promise(function (resolve) {
  7667. _resolve = resolve;
  7668. })
  7669. }
  7670. }
  7671. /* */
  7672. function cloneWithData(vm) {
  7673. // 确保当前 vm 所有数据被同步
  7674. var ret = Object.create(null);
  7675. var dataKeys = [].concat(
  7676. Object.keys(vm._data || {}),
  7677. Object.keys(vm._computedWatchers || {}));
  7678. dataKeys.reduce(function(ret, key) {
  7679. ret[key] = vm[key];
  7680. return ret
  7681. }, ret);
  7682. // vue-composition-api
  7683. var compositionApiState = vm.__composition_api_state__ || vm.__secret_vfa_state__;
  7684. var rawBindings = compositionApiState && compositionApiState.rawBindings;
  7685. if (rawBindings) {
  7686. Object.keys(rawBindings).forEach(function (key) {
  7687. ret[key] = vm[key];
  7688. });
  7689. }
  7690. //TODO 需要把无用数据处理掉,比如 list=>l0 则 list 需要移除,否则多传输一份数据
  7691. Object.assign(ret, vm.$mp.data || {});
  7692. if (
  7693. Array.isArray(vm.$options.behaviors) &&
  7694. vm.$options.behaviors.indexOf('uni://form-field') !== -1
  7695. ) { //form-field
  7696. ret['name'] = vm.name;
  7697. ret['value'] = vm.value;
  7698. }
  7699. return JSON.parse(JSON.stringify(ret))
  7700. }
  7701. var patch = function(oldVnode, vnode) {
  7702. var this$1 = this;
  7703. if (vnode === null) { //destroy
  7704. return
  7705. }
  7706. if (this.mpType === 'page' || this.mpType === 'component') {
  7707. var mpInstance = this.$scope;
  7708. var data = Object.create(null);
  7709. try {
  7710. data = cloneWithData(this);
  7711. } catch (err) {
  7712. console.error(err);
  7713. }
  7714. data.__webviewId__ = mpInstance.data.__webviewId__;
  7715. var mpData = Object.create(null);
  7716. Object.keys(data).forEach(function (key) { //仅同步 data 中有的数据
  7717. mpData[key] = mpInstance.data[key];
  7718. });
  7719. var diffData = this.$shouldDiffData === false ? data : diff(data, mpData);
  7720. if (Object.keys(diffData).length) {
  7721. if (Object({"NODE_ENV":"development","VUE_APP_NAME":"cbz","VUE_APP_PLATFORM":"mp-weixin","BASE_URL":"/"}).VUE_APP_DEBUG) {
  7722. console.log('[' + (+new Date) + '][' + (mpInstance.is || mpInstance.route) + '][' + this._uid +
  7723. ']差量更新',
  7724. JSON.stringify(diffData));
  7725. }
  7726. this.__next_tick_pending = true;
  7727. mpInstance.setData(diffData, function () {
  7728. this$1.__next_tick_pending = false;
  7729. flushCallbacks$1(this$1);
  7730. });
  7731. } else {
  7732. flushCallbacks$1(this);
  7733. }
  7734. }
  7735. };
  7736. /* */
  7737. function createEmptyRender() {
  7738. }
  7739. function mountComponent$1(
  7740. vm,
  7741. el,
  7742. hydrating
  7743. ) {
  7744. if (!vm.mpType) {//main.js 中的 new Vue
  7745. return vm
  7746. }
  7747. if (vm.mpType === 'app') {
  7748. vm.$options.render = createEmptyRender;
  7749. }
  7750. if (!vm.$options.render) {
  7751. vm.$options.render = createEmptyRender;
  7752. if (true) {
  7753. /* istanbul ignore if */
  7754. if ((vm.$options.template && vm.$options.template.charAt(0) !== '#') ||
  7755. vm.$options.el || el) {
  7756. warn(
  7757. 'You are using the runtime-only build of Vue where the template ' +
  7758. 'compiler is not available. Either pre-compile the templates into ' +
  7759. 'render functions, or use the compiler-included build.',
  7760. vm
  7761. );
  7762. } else {
  7763. warn(
  7764. 'Failed to mount component: template or render function not defined.',
  7765. vm
  7766. );
  7767. }
  7768. }
  7769. }
  7770. !vm._$fallback && callHook(vm, 'beforeMount');
  7771. var updateComponent = function () {
  7772. vm._update(vm._render(), hydrating);
  7773. };
  7774. // we set this to vm._watcher inside the watcher's constructor
  7775. // since the watcher's initial patch may call $forceUpdate (e.g. inside child
  7776. // component's mounted hook), which relies on vm._watcher being already defined
  7777. new Watcher(vm, updateComponent, noop, {
  7778. before: function before() {
  7779. if (vm._isMounted && !vm._isDestroyed) {
  7780. callHook(vm, 'beforeUpdate');
  7781. }
  7782. }
  7783. }, true /* isRenderWatcher */);
  7784. hydrating = false;
  7785. return vm
  7786. }
  7787. /* */
  7788. function renderClass (
  7789. staticClass,
  7790. dynamicClass
  7791. ) {
  7792. if (isDef(staticClass) || isDef(dynamicClass)) {
  7793. return concat(staticClass, stringifyClass(dynamicClass))
  7794. }
  7795. /* istanbul ignore next */
  7796. return ''
  7797. }
  7798. function concat (a, b) {
  7799. return a ? b ? (a + ' ' + b) : a : (b || '')
  7800. }
  7801. function stringifyClass (value) {
  7802. if (Array.isArray(value)) {
  7803. return stringifyArray(value)
  7804. }
  7805. if (isObject(value)) {
  7806. return stringifyObject(value)
  7807. }
  7808. if (typeof value === 'string') {
  7809. return value
  7810. }
  7811. /* istanbul ignore next */
  7812. return ''
  7813. }
  7814. function stringifyArray (value) {
  7815. var res = '';
  7816. var stringified;
  7817. for (var i = 0, l = value.length; i < l; i++) {
  7818. if (isDef(stringified = stringifyClass(value[i])) && stringified !== '') {
  7819. if (res) { res += ' '; }
  7820. res += stringified;
  7821. }
  7822. }
  7823. return res
  7824. }
  7825. function stringifyObject (value) {
  7826. var res = '';
  7827. for (var key in value) {
  7828. if (value[key]) {
  7829. if (res) { res += ' '; }
  7830. res += key;
  7831. }
  7832. }
  7833. return res
  7834. }
  7835. /* */
  7836. var parseStyleText = cached(function (cssText) {
  7837. var res = {};
  7838. var listDelimiter = /;(?![^(]*\))/g;
  7839. var propertyDelimiter = /:(.+)/;
  7840. cssText.split(listDelimiter).forEach(function (item) {
  7841. if (item) {
  7842. var tmp = item.split(propertyDelimiter);
  7843. tmp.length > 1 && (res[tmp[0].trim()] = tmp[1].trim());
  7844. }
  7845. });
  7846. return res
  7847. });
  7848. // normalize possible array / string values into Object
  7849. function normalizeStyleBinding (bindingStyle) {
  7850. if (Array.isArray(bindingStyle)) {
  7851. return toObject(bindingStyle)
  7852. }
  7853. if (typeof bindingStyle === 'string') {
  7854. return parseStyleText(bindingStyle)
  7855. }
  7856. return bindingStyle
  7857. }
  7858. /* */
  7859. var MP_METHODS = ['createSelectorQuery', 'createIntersectionObserver', 'selectAllComponents', 'selectComponent'];
  7860. function getTarget(obj, path) {
  7861. var parts = path.split('.');
  7862. var key = parts[0];
  7863. if (key.indexOf('__$n') === 0) { //number index
  7864. key = parseInt(key.replace('__$n', ''));
  7865. }
  7866. if (parts.length === 1) {
  7867. return obj[key]
  7868. }
  7869. return getTarget(obj[key], parts.slice(1).join('.'))
  7870. }
  7871. function internalMixin(Vue) {
  7872. Vue.config.errorHandler = function(err, vm, info) {
  7873. Vue.util.warn(("Error in " + info + ": \"" + (err.toString()) + "\""), vm);
  7874. console.error(err);
  7875. /* eslint-disable no-undef */
  7876. var app = typeof getApp === 'function' && getApp();
  7877. if (app && app.onError) {
  7878. app.onError(err);
  7879. }
  7880. };
  7881. var oldEmit = Vue.prototype.$emit;
  7882. Vue.prototype.$emit = function(event) {
  7883. if (this.$scope && event) {
  7884. var triggerEvent = this.$scope['_triggerEvent'] || this.$scope['triggerEvent'];
  7885. if (triggerEvent) {
  7886. triggerEvent.call(this.$scope, event, {
  7887. __args__: toArray(arguments, 1)
  7888. });
  7889. }
  7890. }
  7891. return oldEmit.apply(this, arguments)
  7892. };
  7893. Vue.prototype.$nextTick = function(fn) {
  7894. return nextTick$1(this, fn)
  7895. };
  7896. MP_METHODS.forEach(function (method) {
  7897. Vue.prototype[method] = function(args) {
  7898. if (this.$scope && this.$scope[method]) {
  7899. return this.$scope[method](args)
  7900. }
  7901. // mp-alipay
  7902. if (typeof my === 'undefined') {
  7903. return
  7904. }
  7905. if (method === 'createSelectorQuery') {
  7906. /* eslint-disable no-undef */
  7907. return my.createSelectorQuery(args)
  7908. } else if (method === 'createIntersectionObserver') {
  7909. /* eslint-disable no-undef */
  7910. return my.createIntersectionObserver(args)
  7911. }
  7912. // TODO mp-alipay 暂不支持 selectAllComponents,selectComponent
  7913. };
  7914. });
  7915. Vue.prototype.__init_provide = initProvide;
  7916. Vue.prototype.__init_injections = initInjections;
  7917. Vue.prototype.__call_hook = function(hook, args) {
  7918. var vm = this;
  7919. // #7573 disable dep collection when invoking lifecycle hooks
  7920. pushTarget();
  7921. var handlers = vm.$options[hook];
  7922. var info = hook + " hook";
  7923. var ret;
  7924. if (handlers) {
  7925. for (var i = 0, j = handlers.length; i < j; i++) {
  7926. ret = invokeWithErrorHandling(handlers[i], vm, args ? [args] : null, vm, info);
  7927. }
  7928. }
  7929. if (vm._hasHookEvent) {
  7930. vm.$emit('hook:' + hook, args);
  7931. }
  7932. popTarget();
  7933. return ret
  7934. };
  7935. Vue.prototype.__set_model = function(target, key, value, modifiers) {
  7936. if (Array.isArray(modifiers)) {
  7937. if (modifiers.indexOf('trim') !== -1) {
  7938. value = value.trim();
  7939. }
  7940. if (modifiers.indexOf('number') !== -1) {
  7941. value = this._n(value);
  7942. }
  7943. }
  7944. if (!target) {
  7945. target = this;
  7946. }
  7947. // 解决动态属性添加
  7948. Vue.set(target, key, value);
  7949. };
  7950. Vue.prototype.__set_sync = function(target, key, value) {
  7951. if (!target) {
  7952. target = this;
  7953. }
  7954. // 解决动态属性添加
  7955. Vue.set(target, key, value);
  7956. };
  7957. Vue.prototype.__get_orig = function(item) {
  7958. if (isPlainObject(item)) {
  7959. return item['$orig'] || item
  7960. }
  7961. return item
  7962. };
  7963. Vue.prototype.__get_value = function(dataPath, target) {
  7964. return getTarget(target || this, dataPath)
  7965. };
  7966. Vue.prototype.__get_class = function(dynamicClass, staticClass) {
  7967. return renderClass(staticClass, dynamicClass)
  7968. };
  7969. Vue.prototype.__get_style = function(dynamicStyle, staticStyle) {
  7970. if (!dynamicStyle && !staticStyle) {
  7971. return ''
  7972. }
  7973. var dynamicStyleObj = normalizeStyleBinding(dynamicStyle);
  7974. var styleObj = staticStyle ? extend(staticStyle, dynamicStyleObj) : dynamicStyleObj;
  7975. return Object.keys(styleObj).map(function (name) { return ((hyphenate(name)) + ":" + (styleObj[name])); }).join(';')
  7976. };
  7977. Vue.prototype.__map = function(val, iteratee) {
  7978. //TODO 暂不考虑 string
  7979. var ret, i, l, keys, key;
  7980. if (Array.isArray(val)) {
  7981. ret = new Array(val.length);
  7982. for (i = 0, l = val.length; i < l; i++) {
  7983. ret[i] = iteratee(val[i], i);
  7984. }
  7985. return ret
  7986. } else if (isObject(val)) {
  7987. keys = Object.keys(val);
  7988. ret = Object.create(null);
  7989. for (i = 0, l = keys.length; i < l; i++) {
  7990. key = keys[i];
  7991. ret[key] = iteratee(val[key], key, i);
  7992. }
  7993. return ret
  7994. } else if (typeof val === 'number') {
  7995. ret = new Array(val);
  7996. for (i = 0, l = val; i < l; i++) {
  7997. // 第一个参数暂时仍和小程序一致
  7998. ret[i] = iteratee(i, i);
  7999. }
  8000. return ret
  8001. }
  8002. return []
  8003. };
  8004. }
  8005. /* */
  8006. var LIFECYCLE_HOOKS$1 = [
  8007. //App
  8008. 'onLaunch',
  8009. 'onShow',
  8010. 'onHide',
  8011. 'onUniNViewMessage',
  8012. 'onPageNotFound',
  8013. 'onThemeChange',
  8014. 'onError',
  8015. 'onUnhandledRejection',
  8016. //Page
  8017. 'onInit',
  8018. 'onLoad',
  8019. // 'onShow',
  8020. 'onReady',
  8021. // 'onHide',
  8022. 'onUnload',
  8023. 'onPullDownRefresh',
  8024. 'onReachBottom',
  8025. 'onTabItemTap',
  8026. 'onAddToFavorites',
  8027. 'onShareTimeline',
  8028. 'onShareAppMessage',
  8029. 'onResize',
  8030. 'onPageScroll',
  8031. 'onNavigationBarButtonTap',
  8032. 'onBackPress',
  8033. 'onNavigationBarSearchInputChanged',
  8034. 'onNavigationBarSearchInputConfirmed',
  8035. 'onNavigationBarSearchInputClicked',
  8036. //Component
  8037. // 'onReady', // 兼容旧版本,应该移除该事件
  8038. 'onPageShow',
  8039. 'onPageHide',
  8040. 'onPageResize',
  8041. 'onUploadDouyinVideo'
  8042. ];
  8043. function lifecycleMixin$1(Vue) {
  8044. //fixed vue-class-component
  8045. var oldExtend = Vue.extend;
  8046. Vue.extend = function(extendOptions) {
  8047. extendOptions = extendOptions || {};
  8048. var methods = extendOptions.methods;
  8049. if (methods) {
  8050. Object.keys(methods).forEach(function (methodName) {
  8051. if (LIFECYCLE_HOOKS$1.indexOf(methodName)!==-1) {
  8052. extendOptions[methodName] = methods[methodName];
  8053. delete methods[methodName];
  8054. }
  8055. });
  8056. }
  8057. return oldExtend.call(this, extendOptions)
  8058. };
  8059. var strategies = Vue.config.optionMergeStrategies;
  8060. var mergeHook = strategies.created;
  8061. LIFECYCLE_HOOKS$1.forEach(function (hook) {
  8062. strategies[hook] = mergeHook;
  8063. });
  8064. Vue.prototype.__lifecycle_hooks__ = LIFECYCLE_HOOKS$1;
  8065. }
  8066. /* */
  8067. // install platform patch function
  8068. Vue.prototype.__patch__ = patch;
  8069. // public mount method
  8070. Vue.prototype.$mount = function(
  8071. el ,
  8072. hydrating
  8073. ) {
  8074. return mountComponent$1(this, el, hydrating)
  8075. };
  8076. lifecycleMixin$1(Vue);
  8077. internalMixin(Vue);
  8078. /* */
  8079. /* harmony default export */ __webpack_exports__["default"] = (Vue);
  8080. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../../../../../webpack/buildin/global.js */ 2)))
  8081. /***/ }),
  8082. /* 5 */
  8083. /*!************************************!*\
  8084. !*** E:/代码/cbz/cbz/cbz/pages.json ***!
  8085. \************************************/
  8086. /*! no static exports found */
  8087. /***/ (function(module, exports) {
  8088. /***/ }),
  8089. /* 6 */,
  8090. /* 7 */,
  8091. /* 8 */,
  8092. /* 9 */,
  8093. /* 10 */,
  8094. /* 11 */
  8095. /*!**********************************************************************************************************!*\
  8096. !*** ./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/runtime/componentNormalizer.js ***!
  8097. \**********************************************************************************************************/
  8098. /*! exports provided: default */
  8099. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  8100. "use strict";
  8101. __webpack_require__.r(__webpack_exports__);
  8102. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return normalizeComponent; });
  8103. /* globals __VUE_SSR_CONTEXT__ */
  8104. // IMPORTANT: Do NOT use ES2015 features in this file (except for modules).
  8105. // This module is a runtime utility for cleaner component module output and will
  8106. // be included in the final webpack user bundle.
  8107. function normalizeComponent (
  8108. scriptExports,
  8109. render,
  8110. staticRenderFns,
  8111. functionalTemplate,
  8112. injectStyles,
  8113. scopeId,
  8114. moduleIdentifier, /* server only */
  8115. shadowMode, /* vue-cli only */
  8116. components, // fixed by xxxxxx auto components
  8117. renderjs // fixed by xxxxxx renderjs
  8118. ) {
  8119. // Vue.extend constructor export interop
  8120. var options = typeof scriptExports === 'function'
  8121. ? scriptExports.options
  8122. : scriptExports
  8123. // fixed by xxxxxx auto components
  8124. if (components) {
  8125. if (!options.components) {
  8126. options.components = {}
  8127. }
  8128. var hasOwn = Object.prototype.hasOwnProperty
  8129. for (var name in components) {
  8130. if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {
  8131. options.components[name] = components[name]
  8132. }
  8133. }
  8134. }
  8135. // fixed by xxxxxx renderjs
  8136. if (renderjs) {
  8137. (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {
  8138. this[renderjs.__module] = this
  8139. });
  8140. (options.mixins || (options.mixins = [])).push(renderjs)
  8141. }
  8142. // render functions
  8143. if (render) {
  8144. options.render = render
  8145. options.staticRenderFns = staticRenderFns
  8146. options._compiled = true
  8147. }
  8148. // functional template
  8149. if (functionalTemplate) {
  8150. options.functional = true
  8151. }
  8152. // scopedId
  8153. if (scopeId) {
  8154. options._scopeId = 'data-v-' + scopeId
  8155. }
  8156. var hook
  8157. if (moduleIdentifier) { // server build
  8158. hook = function (context) {
  8159. // 2.3 injection
  8160. context =
  8161. context || // cached call
  8162. (this.$vnode && this.$vnode.ssrContext) || // stateful
  8163. (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional
  8164. // 2.2 with runInNewContext: true
  8165. if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {
  8166. context = __VUE_SSR_CONTEXT__
  8167. }
  8168. // inject component styles
  8169. if (injectStyles) {
  8170. injectStyles.call(this, context)
  8171. }
  8172. // register component module identifier for async chunk inferrence
  8173. if (context && context._registeredComponents) {
  8174. context._registeredComponents.add(moduleIdentifier)
  8175. }
  8176. }
  8177. // used by ssr in case component is cached and beforeCreate
  8178. // never gets called
  8179. options._ssrRegister = hook
  8180. } else if (injectStyles) {
  8181. hook = shadowMode
  8182. ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }
  8183. : injectStyles
  8184. }
  8185. if (hook) {
  8186. if (options.functional) {
  8187. // for template-only hot-reload because in that case the render fn doesn't
  8188. // go through the normalizer
  8189. options._injectStyles = hook
  8190. // register for functioal component in vue file
  8191. var originalRender = options.render
  8192. options.render = function renderWithStyleInjection (h, context) {
  8193. hook.call(context)
  8194. return originalRender(h, context)
  8195. }
  8196. } else {
  8197. // inject component registration as beforeCreate hook
  8198. var existing = options.beforeCreate
  8199. options.beforeCreate = existing
  8200. ? [].concat(existing, hook)
  8201. : [hook]
  8202. }
  8203. }
  8204. return {
  8205. exports: scriptExports,
  8206. options: options
  8207. }
  8208. }
  8209. /***/ }),
  8210. /* 12 */
  8211. /*!*******************************************************!*\
  8212. !*** E:/代码/cbz/cbz/cbz/uni_modules/uview-ui/index.js ***!
  8213. \*******************************************************/
  8214. /*! no static exports found */
  8215. /***/ (function(module, exports, __webpack_require__) {
  8216. "use strict";
  8217. /* WEBPACK VAR INJECTION */(function(uni) {Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0;
  8218. var _mixin = _interopRequireDefault(__webpack_require__(/*! ./libs/mixin/mixin.js */ 13));
  8219. var _mpMixin = _interopRequireDefault(__webpack_require__(/*! ./libs/mixin/mpMixin.js */ 14));
  8220. var _luchRequest = _interopRequireDefault(__webpack_require__(/*! ./libs/luch-request */ 15));
  8221. var _route = _interopRequireDefault(__webpack_require__(/*! ./libs/util/route.js */ 33));
  8222. var _colorGradient = _interopRequireDefault(__webpack_require__(/*! ./libs/function/colorGradient.js */ 37));
  8223. var _test = _interopRequireDefault(__webpack_require__(/*! ./libs/function/test.js */ 38));
  8224. var _debounce = _interopRequireDefault(__webpack_require__(/*! ./libs/function/debounce.js */ 39));
  8225. var _throttle = _interopRequireDefault(__webpack_require__(/*! ./libs/function/throttle.js */ 40));
  8226. var _index = _interopRequireDefault(__webpack_require__(/*! ./libs/function/index.js */ 41));
  8227. var _config = _interopRequireDefault(__webpack_require__(/*! ./libs/config/config.js */ 43));
  8228. var _props = _interopRequireDefault(__webpack_require__(/*! ./libs/config/props.js */ 44));
  8229. var _zIndex = _interopRequireDefault(__webpack_require__(/*! ./libs/config/zIndex.js */ 134));
  8230. var _color = _interopRequireDefault(__webpack_require__(/*! ./libs/config/color.js */ 92));
  8231. var _platform = _interopRequireDefault(__webpack_require__(/*! ./libs/function/platform */ 135));function _interopRequireDefault(obj) {return obj && obj.__esModule ? obj : { default: obj };}function ownKeys(object, enumerableOnly) {var keys = Object.keys(object);if (Object.getOwnPropertySymbols) {var symbols = Object.getOwnPropertySymbols(object);if (enumerableOnly) symbols = symbols.filter(function (sym) {return Object.getOwnPropertyDescriptor(object, sym).enumerable;});keys.push.apply(keys, symbols);}return keys;}function _objectSpread(target) {for (var i = 1; i < arguments.length; i++) {var source = arguments[i] != null ? arguments[i] : {};if (i % 2) {ownKeys(Object(source), true).forEach(function (key) {_defineProperty(target, key, source[key]);});} else if (Object.getOwnPropertyDescriptors) {Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));} else {ownKeys(Object(source)).forEach(function (key) {Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));});}}return target;}function _defineProperty(obj, key, value) {if (key in obj) {Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true });} else {obj[key] = value;}return obj;} // 看到此报错,是因为没有配置vue.config.js的【transpileDependencies】,详见:https://www.uviewui.com/components/npmSetting.html#_5-cli模式额外配置
  8232. var pleaseSetTranspileDependencies = {},babelTest = pleaseSetTranspileDependencies === null || pleaseSetTranspileDependencies === void 0 ? void 0 : pleaseSetTranspileDependencies.test; // 引入全局mixin
  8233. var $u = _objectSpread(_objectSpread({
  8234. route: _route.default,
  8235. date: _index.default.timeFormat, // 另名date
  8236. colorGradient: _colorGradient.default.colorGradient,
  8237. hexToRgb: _colorGradient.default.hexToRgb,
  8238. rgbToHex: _colorGradient.default.rgbToHex,
  8239. colorToRgba: _colorGradient.default.colorToRgba,
  8240. test: _test.default,
  8241. type: ['primary', 'success', 'error', 'warning', 'info'],
  8242. http: new _luchRequest.default(),
  8243. config: _config.default, // uView配置信息相关,比如版本号
  8244. zIndex: _zIndex.default,
  8245. debounce: _debounce.default,
  8246. throttle: _throttle.default,
  8247. mixin: _mixin.default,
  8248. mpMixin: _mpMixin.default,
  8249. props: _props.default },
  8250. _index.default), {}, {
  8251. color: _color.default,
  8252. platform: _platform.default });
  8253. // $u挂载到uni对象上
  8254. uni.$u = $u;
  8255. var install = function install(Vue) {
  8256. // 时间格式化,同时两个名称,date和timeFormat
  8257. Vue.filter('timeFormat', function (timestamp, format) {return uni.$u.timeFormat(timestamp, format);});
  8258. Vue.filter('date', function (timestamp, format) {return uni.$u.timeFormat(timestamp, format);});
  8259. // 将多久以前的方法,注入到全局过滤器
  8260. Vue.filter('timeFrom', function (timestamp, format) {return uni.$u.timeFrom(timestamp, format);});
  8261. // 同时挂载到uni和Vue.prototype中
  8262. // 只有vue,挂载到Vue.prototype才有意义,因为nvue中全局Vue.prototype和Vue.mixin是无效的
  8263. Vue.prototype.$u = $u;
  8264. Vue.mixin(_mixin.default);
  8265. };var _default =
  8266. {
  8267. install: install };exports.default = _default;
  8268. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 1)["default"]))
  8269. /***/ }),
  8270. /* 13 */
  8271. /*!******************************************************************!*\
  8272. !*** E:/代码/cbz/cbz/cbz/uni_modules/uview-ui/libs/mixin/mixin.js ***!
  8273. \******************************************************************/
  8274. /*! no static exports found */
  8275. /***/ (function(module, exports, __webpack_require__) {
  8276. /* WEBPACK VAR INJECTION */(function(uni) {module.exports = {
  8277. // 定义每个组件都可能需要用到的外部样式以及类名
  8278. props: {
  8279. // 每个组件都有的父组件传递的样式,可以为字符串或者对象形式
  8280. customStyle: {
  8281. type: [Object, String],
  8282. default: function _default() {return {};} },
  8283. customClass: {
  8284. type: String,
  8285. default: '' },
  8286. // 跳转的页面路径
  8287. url: {
  8288. type: String,
  8289. default: '' },
  8290. // 页面跳转的类型
  8291. linkType: {
  8292. type: String,
  8293. default: 'navigateTo' } },
  8294. data: function data() {
  8295. return {};
  8296. },
  8297. onLoad: function onLoad() {
  8298. // getRect挂载到$u上,因为这方法需要使用in(this),所以无法把它独立成一个单独的文件导出
  8299. this.$u.getRect = this.$uGetRect;
  8300. },
  8301. created: function created() {
  8302. // 组件当中,只有created声明周期,为了能在组件使用,故也在created中将方法挂载到$u
  8303. this.$u.getRect = this.$uGetRect;
  8304. },
  8305. computed: {
  8306. // 在2.x版本中,将会把$u挂载到uni对象下,导致在模板中无法使用uni.$u.xxx形式
  8307. // 所以这里通过computed计算属性将其附加到this.$u上,就可以在模板或者js中使用uni.$u.xxx
  8308. // 只在nvue环境通过此方式引入完整的$u,其他平台会出现性能问题,非nvue则按需引入(主要原因是props过大)
  8309. $u: function $u() {
  8310. // 在非nvue端,移除props,http,mixin等对象,避免在小程序setData时数据过大影响性能
  8311. return uni.$u.deepMerge(uni.$u, {
  8312. props: undefined,
  8313. http: undefined,
  8314. mixin: undefined });
  8315. },
  8316. /**
  8317. * 生成bem规则类名
  8318. * 由于微信小程序,H5,nvue之间绑定class的差异,无法通过:class="[bem()]"的形式进行同用
  8319. * 故采用如下折中做法,最后返回的是数组(一般平台)或字符串(支付宝和字节跳动平台),类似['a', 'b', 'c']或'a b c'的形式
  8320. * @param {String} name 组件名称
  8321. * @param {Array} fixed 一直会存在的类名
  8322. * @param {Array} change 会根据变量值为true或者false而出现或者隐藏的类名
  8323. * @returns {Array|string}
  8324. */
  8325. bem: function bem() {
  8326. return function (name, fixed, change) {var _this = this;
  8327. // 类名前缀
  8328. var prefix = "u-".concat(name, "--");
  8329. var classes = {};
  8330. if (fixed) {
  8331. fixed.map(function (item) {
  8332. // 这里的类名,会一直存在
  8333. classes[prefix + _this[item]] = true;
  8334. });
  8335. }
  8336. if (change) {
  8337. change.map(function (item) {
  8338. // 这里的类名,会根据this[item]的值为true或者false,而进行添加或者移除某一个类
  8339. _this[item] ? classes[prefix + item] = _this[item] : delete classes[prefix + item];
  8340. });
  8341. }
  8342. return Object.keys(classes);
  8343. // 支付宝,头条小程序无法动态绑定一个数组类名,否则解析出来的结果会带有",",而导致失效
  8344. };
  8345. } },
  8346. methods: {
  8347. // 跳转某一个页面
  8348. openPage: function openPage() {var urlKey = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'url';
  8349. var url = this[urlKey];
  8350. if (url) {
  8351. // 执行类似uni.navigateTo的方法
  8352. uni[this.linkType]({
  8353. url: url });
  8354. }
  8355. },
  8356. // 查询节点信息
  8357. // 目前此方法在支付宝小程序中无法获取组件跟接点的尺寸,为支付宝的bug(2020-07-21)
  8358. // 解决办法为在组件根部再套一个没有任何作用的view元素
  8359. $uGetRect: function $uGetRect(selector, all) {var _this2 = this;
  8360. return new Promise(function (resolve) {
  8361. uni.createSelectorQuery().
  8362. in(_this2)[all ? 'selectAll' : 'select'](selector).
  8363. boundingClientRect(function (rect) {
  8364. if (all && Array.isArray(rect) && rect.length) {
  8365. resolve(rect);
  8366. }
  8367. if (!all && rect) {
  8368. resolve(rect);
  8369. }
  8370. }).
  8371. exec();
  8372. });
  8373. },
  8374. getParentData: function getParentData() {var _this3 = this;var parentName = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
  8375. // 避免在created中去定义parent变量
  8376. if (!this.parent) this.parent = {};
  8377. // 这里的本质原理是,通过获取父组件实例(也即类似u-radio的父组件u-radio-group的this)
  8378. // 将父组件this中对应的参数,赋值给本组件(u-radio的this)的parentData对象中对应的属性
  8379. // 之所以需要这么做,是因为所有端中,头条小程序不支持通过this.parent.xxx去监听父组件参数的变化
  8380. // 此处并不会自动更新子组件的数据,而是依赖父组件u-radio-group去监听data的变化,手动调用更新子组件的方法去重新获取
  8381. this.parent = uni.$u.$parent.call(this, parentName);
  8382. if (this.parent.children) {
  8383. // 如果父组件的children不存在本组件的实例,才将本实例添加到父组件的children中
  8384. this.parent.children.indexOf(this) === -1 && this.parent.children.push(this);
  8385. }
  8386. if (this.parent && this.parentData) {
  8387. // 历遍parentData中的属性,将parent中的同名属性赋值给parentData
  8388. Object.keys(this.parentData).map(function (key) {
  8389. _this3.parentData[key] = _this3.parent[key];
  8390. });
  8391. }
  8392. },
  8393. // 阻止事件冒泡
  8394. preventEvent: function preventEvent(e) {
  8395. e && typeof e.stopPropagation === 'function' && e.stopPropagation();
  8396. },
  8397. // 空操作
  8398. noop: function noop(e) {
  8399. this.preventEvent(e);
  8400. } },
  8401. onReachBottom: function onReachBottom() {
  8402. uni.$emit('uOnReachBottom');
  8403. },
  8404. beforeDestroy: function beforeDestroy() {var _this4 = this;
  8405. // 判断当前页面是否存在parent和chldren,一般在checkbox和checkbox-group父子联动的场景会有此情况
  8406. // 组件销毁时,移除子组件在父组件children数组中的实例,释放资源,避免数据混乱
  8407. if (this.parent && uni.$u.test.array(this.parent.children)) {
  8408. // 组件销毁时,移除父组件中的children数组中对应的实例
  8409. var childrenList = this.parent.children;
  8410. childrenList.map(function (child, index) {
  8411. // 如果相等,则移除
  8412. if (child === _this4) {
  8413. childrenList.splice(index, 1);
  8414. }
  8415. });
  8416. }
  8417. } };
  8418. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 1)["default"]))
  8419. /***/ }),
  8420. /* 14 */
  8421. /*!********************************************************************!*\
  8422. !*** E:/代码/cbz/cbz/cbz/uni_modules/uview-ui/libs/mixin/mpMixin.js ***!
  8423. \********************************************************************/
  8424. /*! no static exports found */
  8425. /***/ (function(module, exports, __webpack_require__) {
  8426. "use strict";
  8427. Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0;var _default = {
  8428. // 将自定义节点设置成虚拟的,更加接近Vue组件的表现,能更好的使用flex属性
  8429. options: {
  8430. virtualHost: true } };exports.default = _default;
  8431. /***/ }),
  8432. /* 15 */
  8433. /*!*************************************************************************!*\
  8434. !*** E:/代码/cbz/cbz/cbz/uni_modules/uview-ui/libs/luch-request/index.js ***!
  8435. \*************************************************************************/
  8436. /*! no static exports found */
  8437. /***/ (function(module, exports, __webpack_require__) {
  8438. "use strict";
  8439. Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0;var _Request = _interopRequireDefault(__webpack_require__(/*! ./core/Request */ 16));function _interopRequireDefault(obj) {return obj && obj.__esModule ? obj : { default: obj };}var _default =
  8440. _Request.default;exports.default = _default;
  8441. /***/ }),
  8442. /* 16 */
  8443. /*!********************************************************************************!*\
  8444. !*** E:/代码/cbz/cbz/cbz/uni_modules/uview-ui/libs/luch-request/core/Request.js ***!
  8445. \********************************************************************************/
  8446. /*! no static exports found */
  8447. /***/ (function(module, exports, __webpack_require__) {
  8448. "use strict";
  8449. Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0;
  8450. var _dispatchRequest = _interopRequireDefault(__webpack_require__(/*! ./dispatchRequest */ 17));
  8451. var _InterceptorManager = _interopRequireDefault(__webpack_require__(/*! ./InterceptorManager */ 25));
  8452. var _mergeConfig = _interopRequireDefault(__webpack_require__(/*! ./mergeConfig */ 26));
  8453. var _defaults = _interopRequireDefault(__webpack_require__(/*! ./defaults */ 27));
  8454. var _utils = __webpack_require__(/*! ../utils */ 20);
  8455. var _clone = _interopRequireDefault(__webpack_require__(/*! ../utils/clone */ 28));function _interopRequireDefault(obj) {return obj && obj.__esModule ? obj : { default: obj };}function ownKeys(object, enumerableOnly) {var keys = Object.keys(object);if (Object.getOwnPropertySymbols) {var symbols = Object.getOwnPropertySymbols(object);if (enumerableOnly) symbols = symbols.filter(function (sym) {return Object.getOwnPropertyDescriptor(object, sym).enumerable;});keys.push.apply(keys, symbols);}return keys;}function _objectSpread(target) {for (var i = 1; i < arguments.length; i++) {var source = arguments[i] != null ? arguments[i] : {};if (i % 2) {ownKeys(Object(source), true).forEach(function (key) {_defineProperty(target, key, source[key]);});} else if (Object.getOwnPropertyDescriptors) {Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));} else {ownKeys(Object(source)).forEach(function (key) {Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));});}}return target;}function _defineProperty(obj, key, value) {if (key in obj) {Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true });} else {obj[key] = value;}return obj;}function _classCallCheck(instance, Constructor) {if (!(instance instanceof Constructor)) {throw new TypeError("Cannot call a class as a function");}}function _defineProperties(target, props) {for (var i = 0; i < props.length; i++) {var descriptor = props[i];descriptor.enumerable = descriptor.enumerable || false;descriptor.configurable = true;if ("value" in descriptor) descriptor.writable = true;Object.defineProperty(target, descriptor.key, descriptor);}}function _createClass(Constructor, protoProps, staticProps) {if (protoProps) _defineProperties(Constructor.prototype, protoProps);if (staticProps) _defineProperties(Constructor, staticProps);return Constructor;}var
  8456. Request = /*#__PURE__*/function () {
  8457. /**
  8458. * @param {Object} arg - 全局配置
  8459. * @param {String} arg.baseURL - 全局根路径
  8460. * @param {Object} arg.header - 全局header
  8461. * @param {String} arg.method = [GET|POST|PUT|DELETE|CONNECT|HEAD|OPTIONS|TRACE] - 全局默认请求方式
  8462. * @param {String} arg.dataType = [json] - 全局默认的dataType
  8463. * @param {String} arg.responseType = [text|arraybuffer] - 全局默认的responseType。支付宝小程序不支持
  8464. * @param {Object} arg.custom - 全局默认的自定义参数
  8465. * @param {Number} arg.timeout - 全局默认的超时时间,单位 ms。默认60000。H5(HBuilderX 2.9.9+)、APP(HBuilderX 2.9.9+)、微信小程序(2.10.0)、支付宝小程序
  8466. * @param {Boolean} arg.sslVerify - 全局默认的是否验证 ssl 证书。默认true.仅App安卓端支持(HBuilderX 2.3.3+)
  8467. * @param {Boolean} arg.withCredentials - 全局默认的跨域请求时是否携带凭证(cookies)。默认false。仅H5支持(HBuilderX 2.6.15+)
  8468. * @param {Boolean} arg.firstIpv4 - 全DNS解析时优先使用ipv4。默认false。仅 App-Android 支持 (HBuilderX 2.8.0+)
  8469. * @param {Function(statusCode):Boolean} arg.validateStatus - 全局默认的自定义验证器。默认statusCode >= 200 && statusCode < 300
  8470. */
  8471. function Request() {var arg = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};_classCallCheck(this, Request);
  8472. if (!(0, _utils.isPlainObject)(arg)) {
  8473. arg = {};
  8474. console.warn('设置全局参数必须接收一个Object');
  8475. }
  8476. this.config = (0, _clone.default)(_objectSpread(_objectSpread({}, _defaults.default), arg));
  8477. this.interceptors = {
  8478. request: new _InterceptorManager.default(),
  8479. response: new _InterceptorManager.default() };
  8480. }
  8481. /**
  8482. * @Function
  8483. * @param {Request~setConfigCallback} f - 设置全局默认配置
  8484. */_createClass(Request, [{ key: "setConfig", value: function setConfig(
  8485. f) {
  8486. this.config = f(this.config);
  8487. } }, { key: "middleware", value: function middleware(
  8488. config) {
  8489. config = (0, _mergeConfig.default)(this.config, config);
  8490. var chain = [_dispatchRequest.default, undefined];
  8491. var promise = Promise.resolve(config);
  8492. this.interceptors.request.forEach(function (interceptor) {
  8493. chain.unshift(interceptor.fulfilled, interceptor.rejected);
  8494. });
  8495. this.interceptors.response.forEach(function (interceptor) {
  8496. chain.push(interceptor.fulfilled, interceptor.rejected);
  8497. });
  8498. while (chain.length) {
  8499. promise = promise.then(chain.shift(), chain.shift());
  8500. }
  8501. return promise;
  8502. }
  8503. /**
  8504. * @Function
  8505. * @param {Object} config - 请求配置项
  8506. * @prop {String} options.url - 请求路径
  8507. * @prop {Object} options.data - 请求参数
  8508. * @prop {Object} [options.responseType = config.responseType] [text|arraybuffer] - 响应的数据类型
  8509. * @prop {Object} [options.dataType = config.dataType] - 如果设为 json,会尝试对返回的数据做一次 JSON.parse
  8510. * @prop {Object} [options.header = config.header] - 请求header
  8511. * @prop {Object} [options.method = config.method] - 请求方法
  8512. * @returns {Promise<unknown>}
  8513. */ }, { key: "request", value: function request()
  8514. {var config = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
  8515. return this.middleware(config);
  8516. } }, { key: "get", value: function get(
  8517. url) {var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  8518. return this.middleware(_objectSpread({
  8519. url: url,
  8520. method: 'GET' },
  8521. options));
  8522. } }, { key: "post", value: function post(
  8523. url, data) {var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
  8524. return this.middleware(_objectSpread({
  8525. url: url,
  8526. data: data,
  8527. method: 'POST' },
  8528. options));
  8529. } }, { key: "put", value: function put(
  8530. url, data) {var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
  8531. return this.middleware(_objectSpread({
  8532. url: url,
  8533. data: data,
  8534. method: 'PUT' },
  8535. options));
  8536. } }, { key: "delete", value: function _delete(
  8537. url, data) {var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
  8538. return this.middleware(_objectSpread({
  8539. url: url,
  8540. data: data,
  8541. method: 'DELETE' },
  8542. options));
  8543. } }, { key: "connect", value: function connect(
  8544. url, data) {var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
  8545. return this.middleware(_objectSpread({
  8546. url: url,
  8547. data: data,
  8548. method: 'CONNECT' },
  8549. options));
  8550. } }, { key: "head", value: function head(
  8551. url, data) {var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
  8552. return this.middleware(_objectSpread({
  8553. url: url,
  8554. data: data,
  8555. method: 'HEAD' },
  8556. options));
  8557. } }, { key: "options", value: function options(
  8558. url, data) {var _options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
  8559. return this.middleware(_objectSpread({
  8560. url: url,
  8561. data: data,
  8562. method: 'OPTIONS' },
  8563. _options));
  8564. } }, { key: "trace", value: function trace(
  8565. url, data) {var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
  8566. return this.middleware(_objectSpread({
  8567. url: url,
  8568. data: data,
  8569. method: 'TRACE' },
  8570. options));
  8571. } }, { key: "upload", value: function upload(
  8572. url) {var config = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  8573. config.url = url;
  8574. config.method = 'UPLOAD';
  8575. return this.middleware(config);
  8576. } }, { key: "download", value: function download(
  8577. url) {var config = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  8578. config.url = url;
  8579. config.method = 'DOWNLOAD';
  8580. return this.middleware(config);
  8581. } }]);return Request;}();
  8582. /**
  8583. * setConfig回调
  8584. * @return {Object} - 返回操作后的config
  8585. * @callback Request~setConfigCallback
  8586. * @param {Object} config - 全局默认config
  8587. */exports.default = Request;
  8588. /***/ }),
  8589. /* 17 */
  8590. /*!****************************************************************************************!*\
  8591. !*** E:/代码/cbz/cbz/cbz/uni_modules/uview-ui/libs/luch-request/core/dispatchRequest.js ***!
  8592. \****************************************************************************************/
  8593. /*! no static exports found */
  8594. /***/ (function(module, exports, __webpack_require__) {
  8595. "use strict";
  8596. Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0;var _index = _interopRequireDefault(__webpack_require__(/*! ../adapters/index */ 18));function _interopRequireDefault(obj) {return obj && obj.__esModule ? obj : { default: obj };}var _default =
  8597. function _default(config) {return (0, _index.default)(config);};exports.default = _default;
  8598. /***/ }),
  8599. /* 18 */
  8600. /*!**********************************************************************************!*\
  8601. !*** E:/代码/cbz/cbz/cbz/uni_modules/uview-ui/libs/luch-request/adapters/index.js ***!
  8602. \**********************************************************************************/
  8603. /*! no static exports found */
  8604. /***/ (function(module, exports, __webpack_require__) {
  8605. "use strict";
  8606. /* WEBPACK VAR INJECTION */(function(uni) {Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0;var _buildURL = _interopRequireDefault(__webpack_require__(/*! ../helpers/buildURL */ 19));
  8607. var _buildFullPath = _interopRequireDefault(__webpack_require__(/*! ../core/buildFullPath */ 21));
  8608. var _settle = _interopRequireDefault(__webpack_require__(/*! ../core/settle */ 24));
  8609. var _utils = __webpack_require__(/*! ../utils */ 20);function _interopRequireDefault(obj) {return obj && obj.__esModule ? obj : { default: obj };}function ownKeys(object, enumerableOnly) {var keys = Object.keys(object);if (Object.getOwnPropertySymbols) {var symbols = Object.getOwnPropertySymbols(object);if (enumerableOnly) symbols = symbols.filter(function (sym) {return Object.getOwnPropertyDescriptor(object, sym).enumerable;});keys.push.apply(keys, symbols);}return keys;}function _objectSpread(target) {for (var i = 1; i < arguments.length; i++) {var source = arguments[i] != null ? arguments[i] : {};if (i % 2) {ownKeys(Object(source), true).forEach(function (key) {_defineProperty(target, key, source[key]);});} else if (Object.getOwnPropertyDescriptors) {Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));} else {ownKeys(Object(source)).forEach(function (key) {Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));});}}return target;}function _defineProperty(obj, key, value) {if (key in obj) {Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true });} else {obj[key] = value;}return obj;}
  8610. /**
  8611. * 返回可选值存在的配置
  8612. * @param {Array} keys - 可选值数组
  8613. * @param {Object} config2 - 配置
  8614. * @return {{}} - 存在的配置项
  8615. */
  8616. var mergeKeys = function mergeKeys(keys, config2) {
  8617. var config = {};
  8618. keys.forEach(function (prop) {
  8619. if (!(0, _utils.isUndefined)(config2[prop])) {
  8620. config[prop] = config2[prop];
  8621. }
  8622. });
  8623. return config;
  8624. };var _default =
  8625. function _default(config) {return new Promise(function (resolve, reject) {
  8626. var fullPath = (0, _buildURL.default)((0, _buildFullPath.default)(config.baseURL, config.url), config.params);
  8627. var _config = {
  8628. url: fullPath,
  8629. header: config.header,
  8630. complete: function complete(response) {
  8631. config.fullPath = fullPath;
  8632. response.config = config;
  8633. try {
  8634. // 对可能字符串不是json 的情况容错
  8635. if (typeof response.data === 'string') {
  8636. response.data = JSON.parse(response.data);
  8637. }
  8638. // eslint-disable-next-line no-empty
  8639. } catch (e) {
  8640. }
  8641. (0, _settle.default)(resolve, reject, response);
  8642. } };
  8643. var requestTask;
  8644. if (config.method === 'UPLOAD') {
  8645. delete _config.header['content-type'];
  8646. delete _config.header['Content-Type'];
  8647. var otherConfig = {
  8648. filePath: config.filePath,
  8649. name: config.name };
  8650. var optionalKeys = [
  8651. 'formData'];
  8652. requestTask = uni.uploadFile(_objectSpread(_objectSpread(_objectSpread({}, _config), otherConfig), mergeKeys(optionalKeys, config)));
  8653. } else if (config.method === 'DOWNLOAD') {
  8654. requestTask = uni.downloadFile(_config);
  8655. } else {
  8656. var _optionalKeys = [
  8657. 'data',
  8658. 'method',
  8659. 'timeout',
  8660. 'dataType',
  8661. 'responseType'];
  8662. requestTask = uni.request(_objectSpread(_objectSpread({}, _config), mergeKeys(_optionalKeys, config)));
  8663. }
  8664. if (config.getTask) {
  8665. config.getTask(requestTask, config);
  8666. }
  8667. });};exports.default = _default;
  8668. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 1)["default"]))
  8669. /***/ }),
  8670. /* 19 */
  8671. /*!************************************************************************************!*\
  8672. !*** E:/代码/cbz/cbz/cbz/uni_modules/uview-ui/libs/luch-request/helpers/buildURL.js ***!
  8673. \************************************************************************************/
  8674. /*! no static exports found */
  8675. /***/ (function(module, exports, __webpack_require__) {
  8676. "use strict";
  8677. Object.defineProperty(exports, "__esModule", { value: true });exports.default = buildURL;
  8678. var utils = _interopRequireWildcard(__webpack_require__(/*! ../utils */ 20));function _getRequireWildcardCache() {if (typeof WeakMap !== "function") return null;var cache = new WeakMap();_getRequireWildcardCache = function _getRequireWildcardCache() {return cache;};return cache;}function _interopRequireWildcard(obj) {if (obj && obj.__esModule) {return obj;}if (obj === null || typeof obj !== "object" && typeof obj !== "function") {return { default: obj };}var cache = _getRequireWildcardCache();if (cache && cache.has(obj)) {return cache.get(obj);}var newObj = {};var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor;for (var key in obj) {if (Object.prototype.hasOwnProperty.call(obj, key)) {var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null;if (desc && (desc.get || desc.set)) {Object.defineProperty(newObj, key, desc);} else {newObj[key] = obj[key];}}}newObj.default = obj;if (cache) {cache.set(obj, newObj);}return newObj;}
  8679. function encode(val) {
  8680. return encodeURIComponent(val).
  8681. replace(/%40/gi, '@').
  8682. replace(/%3A/gi, ':').
  8683. replace(/%24/g, '$').
  8684. replace(/%2C/gi, ',').
  8685. replace(/%20/g, '+').
  8686. replace(/%5B/gi, '[').
  8687. replace(/%5D/gi, ']');
  8688. }
  8689. /**
  8690. * Build a URL by appending params to the end
  8691. *
  8692. * @param {string} url The base of the url (e.g., http://www.google.com)
  8693. * @param {object} [params] The params to be appended
  8694. * @returns {string} The formatted url
  8695. */
  8696. function buildURL(url, params) {
  8697. /* eslint no-param-reassign:0 */
  8698. if (!params) {
  8699. return url;
  8700. }
  8701. var serializedParams;
  8702. if (utils.isURLSearchParams(params)) {
  8703. serializedParams = params.toString();
  8704. } else {
  8705. var parts = [];
  8706. utils.forEach(params, function (val, key) {
  8707. if (val === null || typeof val === 'undefined') {
  8708. return;
  8709. }
  8710. if (utils.isArray(val)) {
  8711. key = "".concat(key, "[]");
  8712. } else {
  8713. val = [val];
  8714. }
  8715. utils.forEach(val, function (v) {
  8716. if (utils.isDate(v)) {
  8717. v = v.toISOString();
  8718. } else if (utils.isObject(v)) {
  8719. v = JSON.stringify(v);
  8720. }
  8721. parts.push("".concat(encode(key), "=").concat(encode(v)));
  8722. });
  8723. });
  8724. serializedParams = parts.join('&');
  8725. }
  8726. if (serializedParams) {
  8727. var hashmarkIndex = url.indexOf('#');
  8728. if (hashmarkIndex !== -1) {
  8729. url = url.slice(0, hashmarkIndex);
  8730. }
  8731. url += (url.indexOf('?') === -1 ? '?' : '&') + serializedParams;
  8732. }
  8733. return url;
  8734. }
  8735. /***/ }),
  8736. /* 20 */
  8737. /*!*************************************************************************!*\
  8738. !*** E:/代码/cbz/cbz/cbz/uni_modules/uview-ui/libs/luch-request/utils.js ***!
  8739. \*************************************************************************/
  8740. /*! no static exports found */
  8741. /***/ (function(module, exports, __webpack_require__) {
  8742. "use strict";
  8743. // utils is a library of generic helper functions non-specific to axios
  8744. Object.defineProperty(exports, "__esModule", { value: true });exports.isArray = isArray;exports.isObject = isObject;exports.isDate = isDate;exports.isURLSearchParams = isURLSearchParams;exports.forEach = forEach;exports.isBoolean = isBoolean;exports.isPlainObject = isPlainObject;exports.deepMerge = deepMerge;exports.isUndefined = isUndefined;var
  8745. toString = Object.prototype.toString;
  8746. /**
  8747. * Determine if a value is an Array
  8748. *
  8749. * @param {Object} val The value to test
  8750. * @returns {boolean} True if value is an Array, otherwise false
  8751. */
  8752. function isArray(val) {
  8753. return toString.call(val) === '[object Array]';
  8754. }
  8755. /**
  8756. * Determine if a value is an Object
  8757. *
  8758. * @param {Object} val The value to test
  8759. * @returns {boolean} True if value is an Object, otherwise false
  8760. */
  8761. function isObject(val) {
  8762. return val !== null && typeof val === 'object';
  8763. }
  8764. /**
  8765. * Determine if a value is a Date
  8766. *
  8767. * @param {Object} val The value to test
  8768. * @returns {boolean} True if value is a Date, otherwise false
  8769. */
  8770. function isDate(val) {
  8771. return toString.call(val) === '[object Date]';
  8772. }
  8773. /**
  8774. * Determine if a value is a URLSearchParams object
  8775. *
  8776. * @param {Object} val The value to test
  8777. * @returns {boolean} True if value is a URLSearchParams object, otherwise false
  8778. */
  8779. function isURLSearchParams(val) {
  8780. return typeof URLSearchParams !== 'undefined' && val instanceof URLSearchParams;
  8781. }
  8782. /**
  8783. * Iterate over an Array or an Object invoking a function for each item.
  8784. *
  8785. * If `obj` is an Array callback will be called passing
  8786. * the value, index, and complete array for each item.
  8787. *
  8788. * If 'obj' is an Object callback will be called passing
  8789. * the value, key, and complete object for each property.
  8790. *
  8791. * @param {Object|Array} obj The object to iterate
  8792. * @param {Function} fn The callback to invoke for each item
  8793. */
  8794. function forEach(obj, fn) {
  8795. // Don't bother if no value provided
  8796. if (obj === null || typeof obj === 'undefined') {
  8797. return;
  8798. }
  8799. // Force an array if not already something iterable
  8800. if (typeof obj !== 'object') {
  8801. /* eslint no-param-reassign:0 */
  8802. obj = [obj];
  8803. }
  8804. if (isArray(obj)) {
  8805. // Iterate over array values
  8806. for (var i = 0, l = obj.length; i < l; i++) {
  8807. fn.call(null, obj[i], i, obj);
  8808. }
  8809. } else {
  8810. // Iterate over object keys
  8811. for (var key in obj) {
  8812. if (Object.prototype.hasOwnProperty.call(obj, key)) {
  8813. fn.call(null, obj[key], key, obj);
  8814. }
  8815. }
  8816. }
  8817. }
  8818. /**
  8819. * 是否为boolean 值
  8820. * @param val
  8821. * @returns {boolean}
  8822. */
  8823. function isBoolean(val) {
  8824. return typeof val === 'boolean';
  8825. }
  8826. /**
  8827. * 是否为真正的对象{} new Object
  8828. * @param {any} obj - 检测的对象
  8829. * @returns {boolean}
  8830. */
  8831. function isPlainObject(obj) {
  8832. return Object.prototype.toString.call(obj) === '[object Object]';
  8833. }
  8834. /**
  8835. * Function equal to merge with the difference being that no reference
  8836. * to original objects is kept.
  8837. *
  8838. * @see merge
  8839. * @param {Object} obj1 Object to merge
  8840. * @returns {Object} Result of all merge properties
  8841. */
  8842. function deepMerge() /* obj1, obj2, obj3, ... */{
  8843. var result = {};
  8844. function assignValue(val, key) {
  8845. if (typeof result[key] === 'object' && typeof val === 'object') {
  8846. result[key] = deepMerge(result[key], val);
  8847. } else if (typeof val === 'object') {
  8848. result[key] = deepMerge({}, val);
  8849. } else {
  8850. result[key] = val;
  8851. }
  8852. }
  8853. for (var i = 0, l = arguments.length; i < l; i++) {
  8854. forEach(arguments[i], assignValue);
  8855. }
  8856. return result;
  8857. }
  8858. function isUndefined(val) {
  8859. return typeof val === 'undefined';
  8860. }
  8861. /***/ }),
  8862. /* 21 */
  8863. /*!**************************************************************************************!*\
  8864. !*** E:/代码/cbz/cbz/cbz/uni_modules/uview-ui/libs/luch-request/core/buildFullPath.js ***!
  8865. \**************************************************************************************/
  8866. /*! no static exports found */
  8867. /***/ (function(module, exports, __webpack_require__) {
  8868. "use strict";
  8869. Object.defineProperty(exports, "__esModule", { value: true });exports.default = buildFullPath;
  8870. var _isAbsoluteURL = _interopRequireDefault(__webpack_require__(/*! ../helpers/isAbsoluteURL */ 22));
  8871. var _combineURLs = _interopRequireDefault(__webpack_require__(/*! ../helpers/combineURLs */ 23));function _interopRequireDefault(obj) {return obj && obj.__esModule ? obj : { default: obj };}
  8872. /**
  8873. * Creates a new URL by combining the baseURL with the requestedURL,
  8874. * only when the requestedURL is not already an absolute URL.
  8875. * If the requestURL is absolute, this function returns the requestedURL untouched.
  8876. *
  8877. * @param {string} baseURL The base URL
  8878. * @param {string} requestedURL Absolute or relative URL to combine
  8879. * @returns {string} The combined full path
  8880. */
  8881. function buildFullPath(baseURL, requestedURL) {
  8882. if (baseURL && !(0, _isAbsoluteURL.default)(requestedURL)) {
  8883. return (0, _combineURLs.default)(baseURL, requestedURL);
  8884. }
  8885. return requestedURL;
  8886. }
  8887. /***/ }),
  8888. /* 22 */
  8889. /*!*****************************************************************************************!*\
  8890. !*** E:/代码/cbz/cbz/cbz/uni_modules/uview-ui/libs/luch-request/helpers/isAbsoluteURL.js ***!
  8891. \*****************************************************************************************/
  8892. /*! no static exports found */
  8893. /***/ (function(module, exports, __webpack_require__) {
  8894. "use strict";
  8895. /**
  8896. * Determines whether the specified URL is absolute
  8897. *
  8898. * @param {string} url The URL to test
  8899. * @returns {boolean} True if the specified URL is absolute, otherwise false
  8900. */Object.defineProperty(exports, "__esModule", { value: true });exports.default = isAbsoluteURL;
  8901. function isAbsoluteURL(url) {
  8902. // A URL is considered absolute if it begins with "<scheme>://" or "//" (protocol-relative URL).
  8903. // RFC 3986 defines scheme name as a sequence of characters beginning with a letter and followed
  8904. // by any combination of letters, digits, plus, period, or hyphen.
  8905. return /^([a-z][a-z\d+\-.]*:)?\/\//i.test(url);
  8906. }
  8907. /***/ }),
  8908. /* 23 */
  8909. /*!***************************************************************************************!*\
  8910. !*** E:/代码/cbz/cbz/cbz/uni_modules/uview-ui/libs/luch-request/helpers/combineURLs.js ***!
  8911. \***************************************************************************************/
  8912. /*! no static exports found */
  8913. /***/ (function(module, exports, __webpack_require__) {
  8914. "use strict";
  8915. /**
  8916. * Creates a new URL by combining the specified URLs
  8917. *
  8918. * @param {string} baseURL The base URL
  8919. * @param {string} relativeURL The relative URL
  8920. * @returns {string} The combined URL
  8921. */Object.defineProperty(exports, "__esModule", { value: true });exports.default = combineURLs;
  8922. function combineURLs(baseURL, relativeURL) {
  8923. return relativeURL ? "".concat(
  8924. baseURL.replace(/\/+$/, ''), "/").concat(relativeURL.replace(/^\/+/, '')) :
  8925. baseURL;
  8926. }
  8927. /***/ }),
  8928. /* 24 */
  8929. /*!*******************************************************************************!*\
  8930. !*** E:/代码/cbz/cbz/cbz/uni_modules/uview-ui/libs/luch-request/core/settle.js ***!
  8931. \*******************************************************************************/
  8932. /*! no static exports found */
  8933. /***/ (function(module, exports, __webpack_require__) {
  8934. "use strict";
  8935. Object.defineProperty(exports, "__esModule", { value: true });exports.default = settle; /**
  8936. * Resolve or reject a Promise based on response status.
  8937. *
  8938. * @param {Function} resolve A function that resolves the promise.
  8939. * @param {Function} reject A function that rejects the promise.
  8940. * @param {object} response The response.
  8941. */
  8942. function settle(resolve, reject, response) {var
  8943. validateStatus = response.config.validateStatus;
  8944. var status = response.statusCode;
  8945. if (status && (!validateStatus || validateStatus(status))) {
  8946. resolve(response);
  8947. } else {
  8948. reject(response);
  8949. }
  8950. }
  8951. /***/ }),
  8952. /* 25 */
  8953. /*!*******************************************************************************************!*\
  8954. !*** E:/代码/cbz/cbz/cbz/uni_modules/uview-ui/libs/luch-request/core/InterceptorManager.js ***!
  8955. \*******************************************************************************************/
  8956. /*! no static exports found */
  8957. /***/ (function(module, exports, __webpack_require__) {
  8958. "use strict";
  8959. Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0;
  8960. function InterceptorManager() {
  8961. this.handlers = [];
  8962. }
  8963. /**
  8964. * Add a new interceptor to the stack
  8965. *
  8966. * @param {Function} fulfilled The function to handle `then` for a `Promise`
  8967. * @param {Function} rejected The function to handle `reject` for a `Promise`
  8968. *
  8969. * @return {Number} An ID used to remove interceptor later
  8970. */
  8971. InterceptorManager.prototype.use = function use(fulfilled, rejected) {
  8972. this.handlers.push({
  8973. fulfilled: fulfilled,
  8974. rejected: rejected });
  8975. return this.handlers.length - 1;
  8976. };
  8977. /**
  8978. * Remove an interceptor from the stack
  8979. *
  8980. * @param {Number} id The ID that was returned by `use`
  8981. */
  8982. InterceptorManager.prototype.eject = function eject(id) {
  8983. if (this.handlers[id]) {
  8984. this.handlers[id] = null;
  8985. }
  8986. };
  8987. /**
  8988. * Iterate over all the registered interceptors
  8989. *
  8990. * This method is particularly useful for skipping over any
  8991. * interceptors that may have become `null` calling `eject`.
  8992. *
  8993. * @param {Function} fn The function to call for each interceptor
  8994. */
  8995. InterceptorManager.prototype.forEach = function forEach(fn) {
  8996. this.handlers.forEach(function (h) {
  8997. if (h !== null) {
  8998. fn(h);
  8999. }
  9000. });
  9001. };var _default =
  9002. InterceptorManager;exports.default = _default;
  9003. /***/ }),
  9004. /* 26 */
  9005. /*!************************************************************************************!*\
  9006. !*** E:/代码/cbz/cbz/cbz/uni_modules/uview-ui/libs/luch-request/core/mergeConfig.js ***!
  9007. \************************************************************************************/
  9008. /*! no static exports found */
  9009. /***/ (function(module, exports, __webpack_require__) {
  9010. "use strict";
  9011. Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0;var _utils = __webpack_require__(/*! ../utils */ 20);function ownKeys(object, enumerableOnly) {var keys = Object.keys(object);if (Object.getOwnPropertySymbols) {var symbols = Object.getOwnPropertySymbols(object);if (enumerableOnly) symbols = symbols.filter(function (sym) {return Object.getOwnPropertyDescriptor(object, sym).enumerable;});keys.push.apply(keys, symbols);}return keys;}function _objectSpread(target) {for (var i = 1; i < arguments.length; i++) {var source = arguments[i] != null ? arguments[i] : {};if (i % 2) {ownKeys(Object(source), true).forEach(function (key) {_defineProperty(target, key, source[key]);});} else if (Object.getOwnPropertyDescriptors) {Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));} else {ownKeys(Object(source)).forEach(function (key) {Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));});}}return target;}function _defineProperty(obj, key, value) {if (key in obj) {Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true });} else {obj[key] = value;}return obj;}
  9012. /**
  9013. * 合并局部配置优先的配置,如果局部有该配置项则用局部,如果全局有该配置项则用全局
  9014. * @param {Array} keys - 配置项
  9015. * @param {Object} globalsConfig - 当前的全局配置
  9016. * @param {Object} config2 - 局部配置
  9017. * @return {{}}
  9018. */
  9019. var mergeKeys = function mergeKeys(keys, globalsConfig, config2) {
  9020. var config = {};
  9021. keys.forEach(function (prop) {
  9022. if (!(0, _utils.isUndefined)(config2[prop])) {
  9023. config[prop] = config2[prop];
  9024. } else if (!(0, _utils.isUndefined)(globalsConfig[prop])) {
  9025. config[prop] = globalsConfig[prop];
  9026. }
  9027. });
  9028. return config;
  9029. };
  9030. /**
  9031. *
  9032. * @param globalsConfig - 当前实例的全局配置
  9033. * @param config2 - 当前的局部配置
  9034. * @return - 合并后的配置
  9035. */var _default =
  9036. function _default(globalsConfig) {var config2 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  9037. var method = config2.method || globalsConfig.method || 'GET';
  9038. var config = {
  9039. baseURL: globalsConfig.baseURL || '',
  9040. method: method,
  9041. url: config2.url || '',
  9042. params: config2.params || {},
  9043. custom: _objectSpread(_objectSpread({}, globalsConfig.custom || {}), config2.custom || {}),
  9044. header: (0, _utils.deepMerge)(globalsConfig.header || {}, config2.header || {}) };
  9045. var defaultToConfig2Keys = ['getTask', 'validateStatus'];
  9046. config = _objectSpread(_objectSpread({}, config), mergeKeys(defaultToConfig2Keys, globalsConfig, config2));
  9047. // eslint-disable-next-line no-empty
  9048. if (method === 'DOWNLOAD') {
  9049. } else if (method === 'UPLOAD') {
  9050. delete config.header['content-type'];
  9051. delete config.header['Content-Type'];
  9052. var uploadKeys = [
  9053. 'filePath',
  9054. 'name',
  9055. 'formData'];
  9056. uploadKeys.forEach(function (prop) {
  9057. if (!(0, _utils.isUndefined)(config2[prop])) {
  9058. config[prop] = config2[prop];
  9059. }
  9060. });
  9061. } else {
  9062. var defaultsKeys = [
  9063. 'data',
  9064. 'timeout',
  9065. 'dataType',
  9066. 'responseType'];
  9067. config = _objectSpread(_objectSpread({}, config), mergeKeys(defaultsKeys, globalsConfig, config2));
  9068. }
  9069. return config;
  9070. };exports.default = _default;
  9071. /***/ }),
  9072. /* 27 */
  9073. /*!*********************************************************************************!*\
  9074. !*** E:/代码/cbz/cbz/cbz/uni_modules/uview-ui/libs/luch-request/core/defaults.js ***!
  9075. \*********************************************************************************/
  9076. /*! no static exports found */
  9077. /***/ (function(module, exports, __webpack_require__) {
  9078. "use strict";
  9079. Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0; /**
  9080. * 默认的全局配置
  9081. */var _default =
  9082. {
  9083. baseURL: '',
  9084. header: {},
  9085. method: 'GET',
  9086. dataType: 'json',
  9087. responseType: 'text',
  9088. custom: {},
  9089. timeout: 60000,
  9090. validateStatus: function validateStatus(status) {
  9091. return status >= 200 && status < 300;
  9092. } };exports.default = _default;
  9093. /***/ }),
  9094. /* 28 */
  9095. /*!*******************************************************************************!*\
  9096. !*** E:/代码/cbz/cbz/cbz/uni_modules/uview-ui/libs/luch-request/utils/clone.js ***!
  9097. \*******************************************************************************/
  9098. /*! no static exports found */
  9099. /***/ (function(module, exports, __webpack_require__) {
  9100. "use strict";
  9101. /* WEBPACK VAR INJECTION */(function(Buffer) {Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0; /* eslint-disable */
  9102. var clone = function () {
  9103. 'use strict';
  9104. function _instanceof(obj, type) {
  9105. return type != null && obj instanceof type;
  9106. }
  9107. var nativeMap;
  9108. try {
  9109. nativeMap = Map;
  9110. } catch (_) {
  9111. // maybe a reference error because no `Map`. Give it a dummy value that no
  9112. // value will ever be an instanceof.
  9113. nativeMap = function nativeMap() {};
  9114. }
  9115. var nativeSet;
  9116. try {
  9117. nativeSet = Set;
  9118. } catch (_) {
  9119. nativeSet = function nativeSet() {};
  9120. }
  9121. var nativePromise;
  9122. try {
  9123. nativePromise = Promise;
  9124. } catch (_) {
  9125. nativePromise = function nativePromise() {};
  9126. }
  9127. /**
  9128. * Clones (copies) an Object using deep copying.
  9129. *
  9130. * This function supports circular references by default, but if you are certain
  9131. * there are no circular references in your object, you can save some CPU time
  9132. * by calling clone(obj, false).
  9133. *
  9134. * Caution: if `circular` is false and `parent` contains circular references,
  9135. * your program may enter an infinite loop and crash.
  9136. *
  9137. * @param `parent` - the object to be cloned
  9138. * @param `circular` - set to true if the object to be cloned may contain
  9139. * circular references. (optional - true by default)
  9140. * @param `depth` - set to a number if the object is only to be cloned to
  9141. * a particular depth. (optional - defaults to Infinity)
  9142. * @param `prototype` - sets the prototype to be used when cloning an object.
  9143. * (optional - defaults to parent prototype).
  9144. * @param `includeNonEnumerable` - set to true if the non-enumerable properties
  9145. * should be cloned as well. Non-enumerable properties on the prototype
  9146. * chain will be ignored. (optional - false by default)
  9147. */
  9148. function clone(parent, circular, depth, prototype, includeNonEnumerable) {
  9149. if (typeof circular === 'object') {
  9150. depth = circular.depth;
  9151. prototype = circular.prototype;
  9152. includeNonEnumerable = circular.includeNonEnumerable;
  9153. circular = circular.circular;
  9154. }
  9155. // maintain two arrays for circular references, where corresponding parents
  9156. // and children have the same index
  9157. var allParents = [];
  9158. var allChildren = [];
  9159. var useBuffer = typeof Buffer != 'undefined';
  9160. if (typeof circular == 'undefined')
  9161. circular = true;
  9162. if (typeof depth == 'undefined')
  9163. depth = Infinity;
  9164. // recurse this function so we don't reset allParents and allChildren
  9165. function _clone(parent, depth) {
  9166. // cloning null always returns null
  9167. if (parent === null)
  9168. return null;
  9169. if (depth === 0)
  9170. return parent;
  9171. var child;
  9172. var proto;
  9173. if (typeof parent != 'object') {
  9174. return parent;
  9175. }
  9176. if (_instanceof(parent, nativeMap)) {
  9177. child = new nativeMap();
  9178. } else if (_instanceof(parent, nativeSet)) {
  9179. child = new nativeSet();
  9180. } else if (_instanceof(parent, nativePromise)) {
  9181. child = new nativePromise(function (resolve, reject) {
  9182. parent.then(function (value) {
  9183. resolve(_clone(value, depth - 1));
  9184. }, function (err) {
  9185. reject(_clone(err, depth - 1));
  9186. });
  9187. });
  9188. } else if (clone.__isArray(parent)) {
  9189. child = [];
  9190. } else if (clone.__isRegExp(parent)) {
  9191. child = new RegExp(parent.source, __getRegExpFlags(parent));
  9192. if (parent.lastIndex) child.lastIndex = parent.lastIndex;
  9193. } else if (clone.__isDate(parent)) {
  9194. child = new Date(parent.getTime());
  9195. } else if (useBuffer && Buffer.isBuffer(parent)) {
  9196. if (Buffer.from) {
  9197. // Node.js >= 5.10.0
  9198. child = Buffer.from(parent);
  9199. } else {
  9200. // Older Node.js versions
  9201. child = new Buffer(parent.length);
  9202. parent.copy(child);
  9203. }
  9204. return child;
  9205. } else if (_instanceof(parent, Error)) {
  9206. child = Object.create(parent);
  9207. } else {
  9208. if (typeof prototype == 'undefined') {
  9209. proto = Object.getPrototypeOf(parent);
  9210. child = Object.create(proto);
  9211. } else
  9212. {
  9213. child = Object.create(prototype);
  9214. proto = prototype;
  9215. }
  9216. }
  9217. if (circular) {
  9218. var index = allParents.indexOf(parent);
  9219. if (index != -1) {
  9220. return allChildren[index];
  9221. }
  9222. allParents.push(parent);
  9223. allChildren.push(child);
  9224. }
  9225. if (_instanceof(parent, nativeMap)) {
  9226. parent.forEach(function (value, key) {
  9227. var keyChild = _clone(key, depth - 1);
  9228. var valueChild = _clone(value, depth - 1);
  9229. child.set(keyChild, valueChild);
  9230. });
  9231. }
  9232. if (_instanceof(parent, nativeSet)) {
  9233. parent.forEach(function (value) {
  9234. var entryChild = _clone(value, depth - 1);
  9235. child.add(entryChild);
  9236. });
  9237. }
  9238. for (var i in parent) {
  9239. var attrs = Object.getOwnPropertyDescriptor(parent, i);
  9240. if (attrs) {
  9241. child[i] = _clone(parent[i], depth - 1);
  9242. }
  9243. try {
  9244. var objProperty = Object.getOwnPropertyDescriptor(parent, i);
  9245. if (objProperty.set === 'undefined') {
  9246. // no setter defined. Skip cloning this property
  9247. continue;
  9248. }
  9249. child[i] = _clone(parent[i], depth - 1);
  9250. } catch (e) {
  9251. if (e instanceof TypeError) {
  9252. // when in strict mode, TypeError will be thrown if child[i] property only has a getter
  9253. // we can't do anything about this, other than inform the user that this property cannot be set.
  9254. continue;
  9255. } else if (e instanceof ReferenceError) {
  9256. //this may happen in non strict mode
  9257. continue;
  9258. }
  9259. }
  9260. }
  9261. if (Object.getOwnPropertySymbols) {
  9262. var symbols = Object.getOwnPropertySymbols(parent);
  9263. for (var i = 0; i < symbols.length; i++) {
  9264. // Don't need to worry about cloning a symbol because it is a primitive,
  9265. // like a number or string.
  9266. var symbol = symbols[i];
  9267. var descriptor = Object.getOwnPropertyDescriptor(parent, symbol);
  9268. if (descriptor && !descriptor.enumerable && !includeNonEnumerable) {
  9269. continue;
  9270. }
  9271. child[symbol] = _clone(parent[symbol], depth - 1);
  9272. Object.defineProperty(child, symbol, descriptor);
  9273. }
  9274. }
  9275. if (includeNonEnumerable) {
  9276. var allPropertyNames = Object.getOwnPropertyNames(parent);
  9277. for (var i = 0; i < allPropertyNames.length; i++) {
  9278. var propertyName = allPropertyNames[i];
  9279. var descriptor = Object.getOwnPropertyDescriptor(parent, propertyName);
  9280. if (descriptor && descriptor.enumerable) {
  9281. continue;
  9282. }
  9283. child[propertyName] = _clone(parent[propertyName], depth - 1);
  9284. Object.defineProperty(child, propertyName, descriptor);
  9285. }
  9286. }
  9287. return child;
  9288. }
  9289. return _clone(parent, depth);
  9290. }
  9291. /**
  9292. * Simple flat clone using prototype, accepts only objects, usefull for property
  9293. * override on FLAT configuration object (no nested props).
  9294. *
  9295. * USE WITH CAUTION! This may not behave as you wish if you do not know how this
  9296. * works.
  9297. */
  9298. clone.clonePrototype = function clonePrototype(parent) {
  9299. if (parent === null)
  9300. return null;
  9301. var c = function c() {};
  9302. c.prototype = parent;
  9303. return new c();
  9304. };
  9305. // private utility functions
  9306. function __objToStr(o) {
  9307. return Object.prototype.toString.call(o);
  9308. }
  9309. clone.__objToStr = __objToStr;
  9310. function __isDate(o) {
  9311. return typeof o === 'object' && __objToStr(o) === '[object Date]';
  9312. }
  9313. clone.__isDate = __isDate;
  9314. function __isArray(o) {
  9315. return typeof o === 'object' && __objToStr(o) === '[object Array]';
  9316. }
  9317. clone.__isArray = __isArray;
  9318. function __isRegExp(o) {
  9319. return typeof o === 'object' && __objToStr(o) === '[object RegExp]';
  9320. }
  9321. clone.__isRegExp = __isRegExp;
  9322. function __getRegExpFlags(re) {
  9323. var flags = '';
  9324. if (re.global) flags += 'g';
  9325. if (re.ignoreCase) flags += 'i';
  9326. if (re.multiline) flags += 'm';
  9327. return flags;
  9328. }
  9329. clone.__getRegExpFlags = __getRegExpFlags;
  9330. return clone;
  9331. }();var _default =
  9332. clone;exports.default = _default;
  9333. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/buffer/index.js */ 29).Buffer))
  9334. /***/ }),
  9335. /* 29 */
  9336. /*!**************************************!*\
  9337. !*** ./node_modules/buffer/index.js ***!
  9338. \**************************************/
  9339. /*! no static exports found */
  9340. /***/ (function(module, exports, __webpack_require__) {
  9341. "use strict";
  9342. /* WEBPACK VAR INJECTION */(function(global) {/*!
  9343. * The buffer module from node.js, for the browser.
  9344. *
  9345. * @author Feross Aboukhadijeh <http://feross.org>
  9346. * @license MIT
  9347. */
  9348. /* eslint-disable no-proto */
  9349. var base64 = __webpack_require__(/*! base64-js */ 30)
  9350. var ieee754 = __webpack_require__(/*! ieee754 */ 31)
  9351. var isArray = __webpack_require__(/*! isarray */ 32)
  9352. exports.Buffer = Buffer
  9353. exports.SlowBuffer = SlowBuffer
  9354. exports.INSPECT_MAX_BYTES = 50
  9355. /**
  9356. * If `Buffer.TYPED_ARRAY_SUPPORT`:
  9357. * === true Use Uint8Array implementation (fastest)
  9358. * === false Use Object implementation (most compatible, even IE6)
  9359. *
  9360. * Browsers that support typed arrays are IE 10+, Firefox 4+, Chrome 7+, Safari 5.1+,
  9361. * Opera 11.6+, iOS 4.2+.
  9362. *
  9363. * Due to various browser bugs, sometimes the Object implementation will be used even
  9364. * when the browser supports typed arrays.
  9365. *
  9366. * Note:
  9367. *
  9368. * - Firefox 4-29 lacks support for adding new properties to `Uint8Array` instances,
  9369. * See: https://bugzilla.mozilla.org/show_bug.cgi?id=695438.
  9370. *
  9371. * - Chrome 9-10 is missing the `TypedArray.prototype.subarray` function.
  9372. *
  9373. * - IE10 has a broken `TypedArray.prototype.subarray` function which returns arrays of
  9374. * incorrect length in some situations.
  9375. * We detect these buggy browsers and set `Buffer.TYPED_ARRAY_SUPPORT` to `false` so they
  9376. * get the Object implementation, which is slower but behaves correctly.
  9377. */
  9378. Buffer.TYPED_ARRAY_SUPPORT = global.TYPED_ARRAY_SUPPORT !== undefined
  9379. ? global.TYPED_ARRAY_SUPPORT
  9380. : typedArraySupport()
  9381. /*
  9382. * Export kMaxLength after typed array support is determined.
  9383. */
  9384. exports.kMaxLength = kMaxLength()
  9385. function typedArraySupport () {
  9386. try {
  9387. var arr = new Uint8Array(1)
  9388. arr.__proto__ = {__proto__: Uint8Array.prototype, foo: function () { return 42 }}
  9389. return arr.foo() === 42 && // typed array instances can be augmented
  9390. typeof arr.subarray === 'function' && // chrome 9-10 lack `subarray`
  9391. arr.subarray(1, 1).byteLength === 0 // ie10 has broken `subarray`
  9392. } catch (e) {
  9393. return false
  9394. }
  9395. }
  9396. function kMaxLength () {
  9397. return Buffer.TYPED_ARRAY_SUPPORT
  9398. ? 0x7fffffff
  9399. : 0x3fffffff
  9400. }
  9401. function createBuffer (that, length) {
  9402. if (kMaxLength() < length) {
  9403. throw new RangeError('Invalid typed array length')
  9404. }
  9405. if (Buffer.TYPED_ARRAY_SUPPORT) {
  9406. // Return an augmented `Uint8Array` instance, for best performance
  9407. that = new Uint8Array(length)
  9408. that.__proto__ = Buffer.prototype
  9409. } else {
  9410. // Fallback: Return an object instance of the Buffer class
  9411. if (that === null) {
  9412. that = new Buffer(length)
  9413. }
  9414. that.length = length
  9415. }
  9416. return that
  9417. }
  9418. /**
  9419. * The Buffer constructor returns instances of `Uint8Array` that have their
  9420. * prototype changed to `Buffer.prototype`. Furthermore, `Buffer` is a subclass of
  9421. * `Uint8Array`, so the returned instances will have all the node `Buffer` methods
  9422. * and the `Uint8Array` methods. Square bracket notation works as expected -- it
  9423. * returns a single octet.
  9424. *
  9425. * The `Uint8Array` prototype remains unmodified.
  9426. */
  9427. function Buffer (arg, encodingOrOffset, length) {
  9428. if (!Buffer.TYPED_ARRAY_SUPPORT && !(this instanceof Buffer)) {
  9429. return new Buffer(arg, encodingOrOffset, length)
  9430. }
  9431. // Common case.
  9432. if (typeof arg === 'number') {
  9433. if (typeof encodingOrOffset === 'string') {
  9434. throw new Error(
  9435. 'If encoding is specified then the first argument must be a string'
  9436. )
  9437. }
  9438. return allocUnsafe(this, arg)
  9439. }
  9440. return from(this, arg, encodingOrOffset, length)
  9441. }
  9442. Buffer.poolSize = 8192 // not used by this implementation
  9443. // TODO: Legacy, not needed anymore. Remove in next major version.
  9444. Buffer._augment = function (arr) {
  9445. arr.__proto__ = Buffer.prototype
  9446. return arr
  9447. }
  9448. function from (that, value, encodingOrOffset, length) {
  9449. if (typeof value === 'number') {
  9450. throw new TypeError('"value" argument must not be a number')
  9451. }
  9452. if (typeof ArrayBuffer !== 'undefined' && value instanceof ArrayBuffer) {
  9453. return fromArrayBuffer(that, value, encodingOrOffset, length)
  9454. }
  9455. if (typeof value === 'string') {
  9456. return fromString(that, value, encodingOrOffset)
  9457. }
  9458. return fromObject(that, value)
  9459. }
  9460. /**
  9461. * Functionally equivalent to Buffer(arg, encoding) but throws a TypeError
  9462. * if value is a number.
  9463. * Buffer.from(str[, encoding])
  9464. * Buffer.from(array)
  9465. * Buffer.from(buffer)
  9466. * Buffer.from(arrayBuffer[, byteOffset[, length]])
  9467. **/
  9468. Buffer.from = function (value, encodingOrOffset, length) {
  9469. return from(null, value, encodingOrOffset, length)
  9470. }
  9471. if (Buffer.TYPED_ARRAY_SUPPORT) {
  9472. Buffer.prototype.__proto__ = Uint8Array.prototype
  9473. Buffer.__proto__ = Uint8Array
  9474. if (typeof Symbol !== 'undefined' && Symbol.species &&
  9475. Buffer[Symbol.species] === Buffer) {
  9476. // Fix subarray() in ES2016. See: https://github.com/feross/buffer/pull/97
  9477. Object.defineProperty(Buffer, Symbol.species, {
  9478. value: null,
  9479. configurable: true
  9480. })
  9481. }
  9482. }
  9483. function assertSize (size) {
  9484. if (typeof size !== 'number') {
  9485. throw new TypeError('"size" argument must be a number')
  9486. } else if (size < 0) {
  9487. throw new RangeError('"size" argument must not be negative')
  9488. }
  9489. }
  9490. function alloc (that, size, fill, encoding) {
  9491. assertSize(size)
  9492. if (size <= 0) {
  9493. return createBuffer(that, size)
  9494. }
  9495. if (fill !== undefined) {
  9496. // Only pay attention to encoding if it's a string. This
  9497. // prevents accidentally sending in a number that would
  9498. // be interpretted as a start offset.
  9499. return typeof encoding === 'string'
  9500. ? createBuffer(that, size).fill(fill, encoding)
  9501. : createBuffer(that, size).fill(fill)
  9502. }
  9503. return createBuffer(that, size)
  9504. }
  9505. /**
  9506. * Creates a new filled Buffer instance.
  9507. * alloc(size[, fill[, encoding]])
  9508. **/
  9509. Buffer.alloc = function (size, fill, encoding) {
  9510. return alloc(null, size, fill, encoding)
  9511. }
  9512. function allocUnsafe (that, size) {
  9513. assertSize(size)
  9514. that = createBuffer(that, size < 0 ? 0 : checked(size) | 0)
  9515. if (!Buffer.TYPED_ARRAY_SUPPORT) {
  9516. for (var i = 0; i < size; ++i) {
  9517. that[i] = 0
  9518. }
  9519. }
  9520. return that
  9521. }
  9522. /**
  9523. * Equivalent to Buffer(num), by default creates a non-zero-filled Buffer instance.
  9524. * */
  9525. Buffer.allocUnsafe = function (size) {
  9526. return allocUnsafe(null, size)
  9527. }
  9528. /**
  9529. * Equivalent to SlowBuffer(num), by default creates a non-zero-filled Buffer instance.
  9530. */
  9531. Buffer.allocUnsafeSlow = function (size) {
  9532. return allocUnsafe(null, size)
  9533. }
  9534. function fromString (that, string, encoding) {
  9535. if (typeof encoding !== 'string' || encoding === '') {
  9536. encoding = 'utf8'
  9537. }
  9538. if (!Buffer.isEncoding(encoding)) {
  9539. throw new TypeError('"encoding" must be a valid string encoding')
  9540. }
  9541. var length = byteLength(string, encoding) | 0
  9542. that = createBuffer(that, length)
  9543. var actual = that.write(string, encoding)
  9544. if (actual !== length) {
  9545. // Writing a hex string, for example, that contains invalid characters will
  9546. // cause everything after the first invalid character to be ignored. (e.g.
  9547. // 'abxxcd' will be treated as 'ab')
  9548. that = that.slice(0, actual)
  9549. }
  9550. return that
  9551. }
  9552. function fromArrayLike (that, array) {
  9553. var length = array.length < 0 ? 0 : checked(array.length) | 0
  9554. that = createBuffer(that, length)
  9555. for (var i = 0; i < length; i += 1) {
  9556. that[i] = array[i] & 255
  9557. }
  9558. return that
  9559. }
  9560. function fromArrayBuffer (that, array, byteOffset, length) {
  9561. array.byteLength // this throws if `array` is not a valid ArrayBuffer
  9562. if (byteOffset < 0 || array.byteLength < byteOffset) {
  9563. throw new RangeError('\'offset\' is out of bounds')
  9564. }
  9565. if (array.byteLength < byteOffset + (length || 0)) {
  9566. throw new RangeError('\'length\' is out of bounds')
  9567. }
  9568. if (byteOffset === undefined && length === undefined) {
  9569. array = new Uint8Array(array)
  9570. } else if (length === undefined) {
  9571. array = new Uint8Array(array, byteOffset)
  9572. } else {
  9573. array = new Uint8Array(array, byteOffset, length)
  9574. }
  9575. if (Buffer.TYPED_ARRAY_SUPPORT) {
  9576. // Return an augmented `Uint8Array` instance, for best performance
  9577. that = array
  9578. that.__proto__ = Buffer.prototype
  9579. } else {
  9580. // Fallback: Return an object instance of the Buffer class
  9581. that = fromArrayLike(that, array)
  9582. }
  9583. return that
  9584. }
  9585. function fromObject (that, obj) {
  9586. if (Buffer.isBuffer(obj)) {
  9587. var len = checked(obj.length) | 0
  9588. that = createBuffer(that, len)
  9589. if (that.length === 0) {
  9590. return that
  9591. }
  9592. obj.copy(that, 0, 0, len)
  9593. return that
  9594. }
  9595. if (obj) {
  9596. if ((typeof ArrayBuffer !== 'undefined' &&
  9597. obj.buffer instanceof ArrayBuffer) || 'length' in obj) {
  9598. if (typeof obj.length !== 'number' || isnan(obj.length)) {
  9599. return createBuffer(that, 0)
  9600. }
  9601. return fromArrayLike(that, obj)
  9602. }
  9603. if (obj.type === 'Buffer' && isArray(obj.data)) {
  9604. return fromArrayLike(that, obj.data)
  9605. }
  9606. }
  9607. throw new TypeError('First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.')
  9608. }
  9609. function checked (length) {
  9610. // Note: cannot use `length < kMaxLength()` here because that fails when
  9611. // length is NaN (which is otherwise coerced to zero.)
  9612. if (length >= kMaxLength()) {
  9613. throw new RangeError('Attempt to allocate Buffer larger than maximum ' +
  9614. 'size: 0x' + kMaxLength().toString(16) + ' bytes')
  9615. }
  9616. return length | 0
  9617. }
  9618. function SlowBuffer (length) {
  9619. if (+length != length) { // eslint-disable-line eqeqeq
  9620. length = 0
  9621. }
  9622. return Buffer.alloc(+length)
  9623. }
  9624. Buffer.isBuffer = function isBuffer (b) {
  9625. return !!(b != null && b._isBuffer)
  9626. }
  9627. Buffer.compare = function compare (a, b) {
  9628. if (!Buffer.isBuffer(a) || !Buffer.isBuffer(b)) {
  9629. throw new TypeError('Arguments must be Buffers')
  9630. }
  9631. if (a === b) return 0
  9632. var x = a.length
  9633. var y = b.length
  9634. for (var i = 0, len = Math.min(x, y); i < len; ++i) {
  9635. if (a[i] !== b[i]) {
  9636. x = a[i]
  9637. y = b[i]
  9638. break
  9639. }
  9640. }
  9641. if (x < y) return -1
  9642. if (y < x) return 1
  9643. return 0
  9644. }
  9645. Buffer.isEncoding = function isEncoding (encoding) {
  9646. switch (String(encoding).toLowerCase()) {
  9647. case 'hex':
  9648. case 'utf8':
  9649. case 'utf-8':
  9650. case 'ascii':
  9651. case 'latin1':
  9652. case 'binary':
  9653. case 'base64':
  9654. case 'ucs2':
  9655. case 'ucs-2':
  9656. case 'utf16le':
  9657. case 'utf-16le':
  9658. return true
  9659. default:
  9660. return false
  9661. }
  9662. }
  9663. Buffer.concat = function concat (list, length) {
  9664. if (!isArray(list)) {
  9665. throw new TypeError('"list" argument must be an Array of Buffers')
  9666. }
  9667. if (list.length === 0) {
  9668. return Buffer.alloc(0)
  9669. }
  9670. var i
  9671. if (length === undefined) {
  9672. length = 0
  9673. for (i = 0; i < list.length; ++i) {
  9674. length += list[i].length
  9675. }
  9676. }
  9677. var buffer = Buffer.allocUnsafe(length)
  9678. var pos = 0
  9679. for (i = 0; i < list.length; ++i) {
  9680. var buf = list[i]
  9681. if (!Buffer.isBuffer(buf)) {
  9682. throw new TypeError('"list" argument must be an Array of Buffers')
  9683. }
  9684. buf.copy(buffer, pos)
  9685. pos += buf.length
  9686. }
  9687. return buffer
  9688. }
  9689. function byteLength (string, encoding) {
  9690. if (Buffer.isBuffer(string)) {
  9691. return string.length
  9692. }
  9693. if (typeof ArrayBuffer !== 'undefined' && typeof ArrayBuffer.isView === 'function' &&
  9694. (ArrayBuffer.isView(string) || string instanceof ArrayBuffer)) {
  9695. return string.byteLength
  9696. }
  9697. if (typeof string !== 'string') {
  9698. string = '' + string
  9699. }
  9700. var len = string.length
  9701. if (len === 0) return 0
  9702. // Use a for loop to avoid recursion
  9703. var loweredCase = false
  9704. for (;;) {
  9705. switch (encoding) {
  9706. case 'ascii':
  9707. case 'latin1':
  9708. case 'binary':
  9709. return len
  9710. case 'utf8':
  9711. case 'utf-8':
  9712. case undefined:
  9713. return utf8ToBytes(string).length
  9714. case 'ucs2':
  9715. case 'ucs-2':
  9716. case 'utf16le':
  9717. case 'utf-16le':
  9718. return len * 2
  9719. case 'hex':
  9720. return len >>> 1
  9721. case 'base64':
  9722. return base64ToBytes(string).length
  9723. default:
  9724. if (loweredCase) return utf8ToBytes(string).length // assume utf8
  9725. encoding = ('' + encoding).toLowerCase()
  9726. loweredCase = true
  9727. }
  9728. }
  9729. }
  9730. Buffer.byteLength = byteLength
  9731. function slowToString (encoding, start, end) {
  9732. var loweredCase = false
  9733. // No need to verify that "this.length <= MAX_UINT32" since it's a read-only
  9734. // property of a typed array.
  9735. // This behaves neither like String nor Uint8Array in that we set start/end
  9736. // to their upper/lower bounds if the value passed is out of range.
  9737. // undefined is handled specially as per ECMA-262 6th Edition,
  9738. // Section 13.3.3.7 Runtime Semantics: KeyedBindingInitialization.
  9739. if (start === undefined || start < 0) {
  9740. start = 0
  9741. }
  9742. // Return early if start > this.length. Done here to prevent potential uint32
  9743. // coercion fail below.
  9744. if (start > this.length) {
  9745. return ''
  9746. }
  9747. if (end === undefined || end > this.length) {
  9748. end = this.length
  9749. }
  9750. if (end <= 0) {
  9751. return ''
  9752. }
  9753. // Force coersion to uint32. This will also coerce falsey/NaN values to 0.
  9754. end >>>= 0
  9755. start >>>= 0
  9756. if (end <= start) {
  9757. return ''
  9758. }
  9759. if (!encoding) encoding = 'utf8'
  9760. while (true) {
  9761. switch (encoding) {
  9762. case 'hex':
  9763. return hexSlice(this, start, end)
  9764. case 'utf8':
  9765. case 'utf-8':
  9766. return utf8Slice(this, start, end)
  9767. case 'ascii':
  9768. return asciiSlice(this, start, end)
  9769. case 'latin1':
  9770. case 'binary':
  9771. return latin1Slice(this, start, end)
  9772. case 'base64':
  9773. return base64Slice(this, start, end)
  9774. case 'ucs2':
  9775. case 'ucs-2':
  9776. case 'utf16le':
  9777. case 'utf-16le':
  9778. return utf16leSlice(this, start, end)
  9779. default:
  9780. if (loweredCase) throw new TypeError('Unknown encoding: ' + encoding)
  9781. encoding = (encoding + '').toLowerCase()
  9782. loweredCase = true
  9783. }
  9784. }
  9785. }
  9786. // The property is used by `Buffer.isBuffer` and `is-buffer` (in Safari 5-7) to detect
  9787. // Buffer instances.
  9788. Buffer.prototype._isBuffer = true
  9789. function swap (b, n, m) {
  9790. var i = b[n]
  9791. b[n] = b[m]
  9792. b[m] = i
  9793. }
  9794. Buffer.prototype.swap16 = function swap16 () {
  9795. var len = this.length
  9796. if (len % 2 !== 0) {
  9797. throw new RangeError('Buffer size must be a multiple of 16-bits')
  9798. }
  9799. for (var i = 0; i < len; i += 2) {
  9800. swap(this, i, i + 1)
  9801. }
  9802. return this
  9803. }
  9804. Buffer.prototype.swap32 = function swap32 () {
  9805. var len = this.length
  9806. if (len % 4 !== 0) {
  9807. throw new RangeError('Buffer size must be a multiple of 32-bits')
  9808. }
  9809. for (var i = 0; i < len; i += 4) {
  9810. swap(this, i, i + 3)
  9811. swap(this, i + 1, i + 2)
  9812. }
  9813. return this
  9814. }
  9815. Buffer.prototype.swap64 = function swap64 () {
  9816. var len = this.length
  9817. if (len % 8 !== 0) {
  9818. throw new RangeError('Buffer size must be a multiple of 64-bits')
  9819. }
  9820. for (var i = 0; i < len; i += 8) {
  9821. swap(this, i, i + 7)
  9822. swap(this, i + 1, i + 6)
  9823. swap(this, i + 2, i + 5)
  9824. swap(this, i + 3, i + 4)
  9825. }
  9826. return this
  9827. }
  9828. Buffer.prototype.toString = function toString () {
  9829. var length = this.length | 0
  9830. if (length === 0) return ''
  9831. if (arguments.length === 0) return utf8Slice(this, 0, length)
  9832. return slowToString.apply(this, arguments)
  9833. }
  9834. Buffer.prototype.equals = function equals (b) {
  9835. if (!Buffer.isBuffer(b)) throw new TypeError('Argument must be a Buffer')
  9836. if (this === b) return true
  9837. return Buffer.compare(this, b) === 0
  9838. }
  9839. Buffer.prototype.inspect = function inspect () {
  9840. var str = ''
  9841. var max = exports.INSPECT_MAX_BYTES
  9842. if (this.length > 0) {
  9843. str = this.toString('hex', 0, max).match(/.{2}/g).join(' ')
  9844. if (this.length > max) str += ' ... '
  9845. }
  9846. return '<Buffer ' + str + '>'
  9847. }
  9848. Buffer.prototype.compare = function compare (target, start, end, thisStart, thisEnd) {
  9849. if (!Buffer.isBuffer(target)) {
  9850. throw new TypeError('Argument must be a Buffer')
  9851. }
  9852. if (start === undefined) {
  9853. start = 0
  9854. }
  9855. if (end === undefined) {
  9856. end = target ? target.length : 0
  9857. }
  9858. if (thisStart === undefined) {
  9859. thisStart = 0
  9860. }
  9861. if (thisEnd === undefined) {
  9862. thisEnd = this.length
  9863. }
  9864. if (start < 0 || end > target.length || thisStart < 0 || thisEnd > this.length) {
  9865. throw new RangeError('out of range index')
  9866. }
  9867. if (thisStart >= thisEnd && start >= end) {
  9868. return 0
  9869. }
  9870. if (thisStart >= thisEnd) {
  9871. return -1
  9872. }
  9873. if (start >= end) {
  9874. return 1
  9875. }
  9876. start >>>= 0
  9877. end >>>= 0
  9878. thisStart >>>= 0
  9879. thisEnd >>>= 0
  9880. if (this === target) return 0
  9881. var x = thisEnd - thisStart
  9882. var y = end - start
  9883. var len = Math.min(x, y)
  9884. var thisCopy = this.slice(thisStart, thisEnd)
  9885. var targetCopy = target.slice(start, end)
  9886. for (var i = 0; i < len; ++i) {
  9887. if (thisCopy[i] !== targetCopy[i]) {
  9888. x = thisCopy[i]
  9889. y = targetCopy[i]
  9890. break
  9891. }
  9892. }
  9893. if (x < y) return -1
  9894. if (y < x) return 1
  9895. return 0
  9896. }
  9897. // Finds either the first index of `val` in `buffer` at offset >= `byteOffset`,
  9898. // OR the last index of `val` in `buffer` at offset <= `byteOffset`.
  9899. //
  9900. // Arguments:
  9901. // - buffer - a Buffer to search
  9902. // - val - a string, Buffer, or number
  9903. // - byteOffset - an index into `buffer`; will be clamped to an int32
  9904. // - encoding - an optional encoding, relevant is val is a string
  9905. // - dir - true for indexOf, false for lastIndexOf
  9906. function bidirectionalIndexOf (buffer, val, byteOffset, encoding, dir) {
  9907. // Empty buffer means no match
  9908. if (buffer.length === 0) return -1
  9909. // Normalize byteOffset
  9910. if (typeof byteOffset === 'string') {
  9911. encoding = byteOffset
  9912. byteOffset = 0
  9913. } else if (byteOffset > 0x7fffffff) {
  9914. byteOffset = 0x7fffffff
  9915. } else if (byteOffset < -0x80000000) {
  9916. byteOffset = -0x80000000
  9917. }
  9918. byteOffset = +byteOffset // Coerce to Number.
  9919. if (isNaN(byteOffset)) {
  9920. // byteOffset: it it's undefined, null, NaN, "foo", etc, search whole buffer
  9921. byteOffset = dir ? 0 : (buffer.length - 1)
  9922. }
  9923. // Normalize byteOffset: negative offsets start from the end of the buffer
  9924. if (byteOffset < 0) byteOffset = buffer.length + byteOffset
  9925. if (byteOffset >= buffer.length) {
  9926. if (dir) return -1
  9927. else byteOffset = buffer.length - 1
  9928. } else if (byteOffset < 0) {
  9929. if (dir) byteOffset = 0
  9930. else return -1
  9931. }
  9932. // Normalize val
  9933. if (typeof val === 'string') {
  9934. val = Buffer.from(val, encoding)
  9935. }
  9936. // Finally, search either indexOf (if dir is true) or lastIndexOf
  9937. if (Buffer.isBuffer(val)) {
  9938. // Special case: looking for empty string/buffer always fails
  9939. if (val.length === 0) {
  9940. return -1
  9941. }
  9942. return arrayIndexOf(buffer, val, byteOffset, encoding, dir)
  9943. } else if (typeof val === 'number') {
  9944. val = val & 0xFF // Search for a byte value [0-255]
  9945. if (Buffer.TYPED_ARRAY_SUPPORT &&
  9946. typeof Uint8Array.prototype.indexOf === 'function') {
  9947. if (dir) {
  9948. return Uint8Array.prototype.indexOf.call(buffer, val, byteOffset)
  9949. } else {
  9950. return Uint8Array.prototype.lastIndexOf.call(buffer, val, byteOffset)
  9951. }
  9952. }
  9953. return arrayIndexOf(buffer, [ val ], byteOffset, encoding, dir)
  9954. }
  9955. throw new TypeError('val must be string, number or Buffer')
  9956. }
  9957. function arrayIndexOf (arr, val, byteOffset, encoding, dir) {
  9958. var indexSize = 1
  9959. var arrLength = arr.length
  9960. var valLength = val.length
  9961. if (encoding !== undefined) {
  9962. encoding = String(encoding).toLowerCase()
  9963. if (encoding === 'ucs2' || encoding === 'ucs-2' ||
  9964. encoding === 'utf16le' || encoding === 'utf-16le') {
  9965. if (arr.length < 2 || val.length < 2) {
  9966. return -1
  9967. }
  9968. indexSize = 2
  9969. arrLength /= 2
  9970. valLength /= 2
  9971. byteOffset /= 2
  9972. }
  9973. }
  9974. function read (buf, i) {
  9975. if (indexSize === 1) {
  9976. return buf[i]
  9977. } else {
  9978. return buf.readUInt16BE(i * indexSize)
  9979. }
  9980. }
  9981. var i
  9982. if (dir) {
  9983. var foundIndex = -1
  9984. for (i = byteOffset; i < arrLength; i++) {
  9985. if (read(arr, i) === read(val, foundIndex === -1 ? 0 : i - foundIndex)) {
  9986. if (foundIndex === -1) foundIndex = i
  9987. if (i - foundIndex + 1 === valLength) return foundIndex * indexSize
  9988. } else {
  9989. if (foundIndex !== -1) i -= i - foundIndex
  9990. foundIndex = -1
  9991. }
  9992. }
  9993. } else {
  9994. if (byteOffset + valLength > arrLength) byteOffset = arrLength - valLength
  9995. for (i = byteOffset; i >= 0; i--) {
  9996. var found = true
  9997. for (var j = 0; j < valLength; j++) {
  9998. if (read(arr, i + j) !== read(val, j)) {
  9999. found = false
  10000. break
  10001. }
  10002. }
  10003. if (found) return i
  10004. }
  10005. }
  10006. return -1
  10007. }
  10008. Buffer.prototype.includes = function includes (val, byteOffset, encoding) {
  10009. return this.indexOf(val, byteOffset, encoding) !== -1
  10010. }
  10011. Buffer.prototype.indexOf = function indexOf (val, byteOffset, encoding) {
  10012. return bidirectionalIndexOf(this, val, byteOffset, encoding, true)
  10013. }
  10014. Buffer.prototype.lastIndexOf = function lastIndexOf (val, byteOffset, encoding) {
  10015. return bidirectionalIndexOf(this, val, byteOffset, encoding, false)
  10016. }
  10017. function hexWrite (buf, string, offset, length) {
  10018. offset = Number(offset) || 0
  10019. var remaining = buf.length - offset
  10020. if (!length) {
  10021. length = remaining
  10022. } else {
  10023. length = Number(length)
  10024. if (length > remaining) {
  10025. length = remaining
  10026. }
  10027. }
  10028. // must be an even number of digits
  10029. var strLen = string.length
  10030. if (strLen % 2 !== 0) throw new TypeError('Invalid hex string')
  10031. if (length > strLen / 2) {
  10032. length = strLen / 2
  10033. }
  10034. for (var i = 0; i < length; ++i) {
  10035. var parsed = parseInt(string.substr(i * 2, 2), 16)
  10036. if (isNaN(parsed)) return i
  10037. buf[offset + i] = parsed
  10038. }
  10039. return i
  10040. }
  10041. function utf8Write (buf, string, offset, length) {
  10042. return blitBuffer(utf8ToBytes(string, buf.length - offset), buf, offset, length)
  10043. }
  10044. function asciiWrite (buf, string, offset, length) {
  10045. return blitBuffer(asciiToBytes(string), buf, offset, length)
  10046. }
  10047. function latin1Write (buf, string, offset, length) {
  10048. return asciiWrite(buf, string, offset, length)
  10049. }
  10050. function base64Write (buf, string, offset, length) {
  10051. return blitBuffer(base64ToBytes(string), buf, offset, length)
  10052. }
  10053. function ucs2Write (buf, string, offset, length) {
  10054. return blitBuffer(utf16leToBytes(string, buf.length - offset), buf, offset, length)
  10055. }
  10056. Buffer.prototype.write = function write (string, offset, length, encoding) {
  10057. // Buffer#write(string)
  10058. if (offset === undefined) {
  10059. encoding = 'utf8'
  10060. length = this.length
  10061. offset = 0
  10062. // Buffer#write(string, encoding)
  10063. } else if (length === undefined && typeof offset === 'string') {
  10064. encoding = offset
  10065. length = this.length
  10066. offset = 0
  10067. // Buffer#write(string, offset[, length][, encoding])
  10068. } else if (isFinite(offset)) {
  10069. offset = offset | 0
  10070. if (isFinite(length)) {
  10071. length = length | 0
  10072. if (encoding === undefined) encoding = 'utf8'
  10073. } else {
  10074. encoding = length
  10075. length = undefined
  10076. }
  10077. // legacy write(string, encoding, offset, length) - remove in v0.13
  10078. } else {
  10079. throw new Error(
  10080. 'Buffer.write(string, encoding, offset[, length]) is no longer supported'
  10081. )
  10082. }
  10083. var remaining = this.length - offset
  10084. if (length === undefined || length > remaining) length = remaining
  10085. if ((string.length > 0 && (length < 0 || offset < 0)) || offset > this.length) {
  10086. throw new RangeError('Attempt to write outside buffer bounds')
  10087. }
  10088. if (!encoding) encoding = 'utf8'
  10089. var loweredCase = false
  10090. for (;;) {
  10091. switch (encoding) {
  10092. case 'hex':
  10093. return hexWrite(this, string, offset, length)
  10094. case 'utf8':
  10095. case 'utf-8':
  10096. return utf8Write(this, string, offset, length)
  10097. case 'ascii':
  10098. return asciiWrite(this, string, offset, length)
  10099. case 'latin1':
  10100. case 'binary':
  10101. return latin1Write(this, string, offset, length)
  10102. case 'base64':
  10103. // Warning: maxLength not taken into account in base64Write
  10104. return base64Write(this, string, offset, length)
  10105. case 'ucs2':
  10106. case 'ucs-2':
  10107. case 'utf16le':
  10108. case 'utf-16le':
  10109. return ucs2Write(this, string, offset, length)
  10110. default:
  10111. if (loweredCase) throw new TypeError('Unknown encoding: ' + encoding)
  10112. encoding = ('' + encoding).toLowerCase()
  10113. loweredCase = true
  10114. }
  10115. }
  10116. }
  10117. Buffer.prototype.toJSON = function toJSON () {
  10118. return {
  10119. type: 'Buffer',
  10120. data: Array.prototype.slice.call(this._arr || this, 0)
  10121. }
  10122. }
  10123. function base64Slice (buf, start, end) {
  10124. if (start === 0 && end === buf.length) {
  10125. return base64.fromByteArray(buf)
  10126. } else {
  10127. return base64.fromByteArray(buf.slice(start, end))
  10128. }
  10129. }
  10130. function utf8Slice (buf, start, end) {
  10131. end = Math.min(buf.length, end)
  10132. var res = []
  10133. var i = start
  10134. while (i < end) {
  10135. var firstByte = buf[i]
  10136. var codePoint = null
  10137. var bytesPerSequence = (firstByte > 0xEF) ? 4
  10138. : (firstByte > 0xDF) ? 3
  10139. : (firstByte > 0xBF) ? 2
  10140. : 1
  10141. if (i + bytesPerSequence <= end) {
  10142. var secondByte, thirdByte, fourthByte, tempCodePoint
  10143. switch (bytesPerSequence) {
  10144. case 1:
  10145. if (firstByte < 0x80) {
  10146. codePoint = firstByte
  10147. }
  10148. break
  10149. case 2:
  10150. secondByte = buf[i + 1]
  10151. if ((secondByte & 0xC0) === 0x80) {
  10152. tempCodePoint = (firstByte & 0x1F) << 0x6 | (secondByte & 0x3F)
  10153. if (tempCodePoint > 0x7F) {
  10154. codePoint = tempCodePoint
  10155. }
  10156. }
  10157. break
  10158. case 3:
  10159. secondByte = buf[i + 1]
  10160. thirdByte = buf[i + 2]
  10161. if ((secondByte & 0xC0) === 0x80 && (thirdByte & 0xC0) === 0x80) {
  10162. tempCodePoint = (firstByte & 0xF) << 0xC | (secondByte & 0x3F) << 0x6 | (thirdByte & 0x3F)
  10163. if (tempCodePoint > 0x7FF && (tempCodePoint < 0xD800 || tempCodePoint > 0xDFFF)) {
  10164. codePoint = tempCodePoint
  10165. }
  10166. }
  10167. break
  10168. case 4:
  10169. secondByte = buf[i + 1]
  10170. thirdByte = buf[i + 2]
  10171. fourthByte = buf[i + 3]
  10172. if ((secondByte & 0xC0) === 0x80 && (thirdByte & 0xC0) === 0x80 && (fourthByte & 0xC0) === 0x80) {
  10173. tempCodePoint = (firstByte & 0xF) << 0x12 | (secondByte & 0x3F) << 0xC | (thirdByte & 0x3F) << 0x6 | (fourthByte & 0x3F)
  10174. if (tempCodePoint > 0xFFFF && tempCodePoint < 0x110000) {
  10175. codePoint = tempCodePoint
  10176. }
  10177. }
  10178. }
  10179. }
  10180. if (codePoint === null) {
  10181. // we did not generate a valid codePoint so insert a
  10182. // replacement char (U+FFFD) and advance only 1 byte
  10183. codePoint = 0xFFFD
  10184. bytesPerSequence = 1
  10185. } else if (codePoint > 0xFFFF) {
  10186. // encode to utf16 (surrogate pair dance)
  10187. codePoint -= 0x10000
  10188. res.push(codePoint >>> 10 & 0x3FF | 0xD800)
  10189. codePoint = 0xDC00 | codePoint & 0x3FF
  10190. }
  10191. res.push(codePoint)
  10192. i += bytesPerSequence
  10193. }
  10194. return decodeCodePointsArray(res)
  10195. }
  10196. // Based on http://stackoverflow.com/a/22747272/680742, the browser with
  10197. // the lowest limit is Chrome, with 0x10000 args.
  10198. // We go 1 magnitude less, for safety
  10199. var MAX_ARGUMENTS_LENGTH = 0x1000
  10200. function decodeCodePointsArray (codePoints) {
  10201. var len = codePoints.length
  10202. if (len <= MAX_ARGUMENTS_LENGTH) {
  10203. return String.fromCharCode.apply(String, codePoints) // avoid extra slice()
  10204. }
  10205. // Decode in chunks to avoid "call stack size exceeded".
  10206. var res = ''
  10207. var i = 0
  10208. while (i < len) {
  10209. res += String.fromCharCode.apply(
  10210. String,
  10211. codePoints.slice(i, i += MAX_ARGUMENTS_LENGTH)
  10212. )
  10213. }
  10214. return res
  10215. }
  10216. function asciiSlice (buf, start, end) {
  10217. var ret = ''
  10218. end = Math.min(buf.length, end)
  10219. for (var i = start; i < end; ++i) {
  10220. ret += String.fromCharCode(buf[i] & 0x7F)
  10221. }
  10222. return ret
  10223. }
  10224. function latin1Slice (buf, start, end) {
  10225. var ret = ''
  10226. end = Math.min(buf.length, end)
  10227. for (var i = start; i < end; ++i) {
  10228. ret += String.fromCharCode(buf[i])
  10229. }
  10230. return ret
  10231. }
  10232. function hexSlice (buf, start, end) {
  10233. var len = buf.length
  10234. if (!start || start < 0) start = 0
  10235. if (!end || end < 0 || end > len) end = len
  10236. var out = ''
  10237. for (var i = start; i < end; ++i) {
  10238. out += toHex(buf[i])
  10239. }
  10240. return out
  10241. }
  10242. function utf16leSlice (buf, start, end) {
  10243. var bytes = buf.slice(start, end)
  10244. var res = ''
  10245. for (var i = 0; i < bytes.length; i += 2) {
  10246. res += String.fromCharCode(bytes[i] + bytes[i + 1] * 256)
  10247. }
  10248. return res
  10249. }
  10250. Buffer.prototype.slice = function slice (start, end) {
  10251. var len = this.length
  10252. start = ~~start
  10253. end = end === undefined ? len : ~~end
  10254. if (start < 0) {
  10255. start += len
  10256. if (start < 0) start = 0
  10257. } else if (start > len) {
  10258. start = len
  10259. }
  10260. if (end < 0) {
  10261. end += len
  10262. if (end < 0) end = 0
  10263. } else if (end > len) {
  10264. end = len
  10265. }
  10266. if (end < start) end = start
  10267. var newBuf
  10268. if (Buffer.TYPED_ARRAY_SUPPORT) {
  10269. newBuf = this.subarray(start, end)
  10270. newBuf.__proto__ = Buffer.prototype
  10271. } else {
  10272. var sliceLen = end - start
  10273. newBuf = new Buffer(sliceLen, undefined)
  10274. for (var i = 0; i < sliceLen; ++i) {
  10275. newBuf[i] = this[i + start]
  10276. }
  10277. }
  10278. return newBuf
  10279. }
  10280. /*
  10281. * Need to make sure that buffer isn't trying to write out of bounds.
  10282. */
  10283. function checkOffset (offset, ext, length) {
  10284. if ((offset % 1) !== 0 || offset < 0) throw new RangeError('offset is not uint')
  10285. if (offset + ext > length) throw new RangeError('Trying to access beyond buffer length')
  10286. }
  10287. Buffer.prototype.readUIntLE = function readUIntLE (offset, byteLength, noAssert) {
  10288. offset = offset | 0
  10289. byteLength = byteLength | 0
  10290. if (!noAssert) checkOffset(offset, byteLength, this.length)
  10291. var val = this[offset]
  10292. var mul = 1
  10293. var i = 0
  10294. while (++i < byteLength && (mul *= 0x100)) {
  10295. val += this[offset + i] * mul
  10296. }
  10297. return val
  10298. }
  10299. Buffer.prototype.readUIntBE = function readUIntBE (offset, byteLength, noAssert) {
  10300. offset = offset | 0
  10301. byteLength = byteLength | 0
  10302. if (!noAssert) {
  10303. checkOffset(offset, byteLength, this.length)
  10304. }
  10305. var val = this[offset + --byteLength]
  10306. var mul = 1
  10307. while (byteLength > 0 && (mul *= 0x100)) {
  10308. val += this[offset + --byteLength] * mul
  10309. }
  10310. return val
  10311. }
  10312. Buffer.prototype.readUInt8 = function readUInt8 (offset, noAssert) {
  10313. if (!noAssert) checkOffset(offset, 1, this.length)
  10314. return this[offset]
  10315. }
  10316. Buffer.prototype.readUInt16LE = function readUInt16LE (offset, noAssert) {
  10317. if (!noAssert) checkOffset(offset, 2, this.length)
  10318. return this[offset] | (this[offset + 1] << 8)
  10319. }
  10320. Buffer.prototype.readUInt16BE = function readUInt16BE (offset, noAssert) {
  10321. if (!noAssert) checkOffset(offset, 2, this.length)
  10322. return (this[offset] << 8) | this[offset + 1]
  10323. }
  10324. Buffer.prototype.readUInt32LE = function readUInt32LE (offset, noAssert) {
  10325. if (!noAssert) checkOffset(offset, 4, this.length)
  10326. return ((this[offset]) |
  10327. (this[offset + 1] << 8) |
  10328. (this[offset + 2] << 16)) +
  10329. (this[offset + 3] * 0x1000000)
  10330. }
  10331. Buffer.prototype.readUInt32BE = function readUInt32BE (offset, noAssert) {
  10332. if (!noAssert) checkOffset(offset, 4, this.length)
  10333. return (this[offset] * 0x1000000) +
  10334. ((this[offset + 1] << 16) |
  10335. (this[offset + 2] << 8) |
  10336. this[offset + 3])
  10337. }
  10338. Buffer.prototype.readIntLE = function readIntLE (offset, byteLength, noAssert) {
  10339. offset = offset | 0
  10340. byteLength = byteLength | 0
  10341. if (!noAssert) checkOffset(offset, byteLength, this.length)
  10342. var val = this[offset]
  10343. var mul = 1
  10344. var i = 0
  10345. while (++i < byteLength && (mul *= 0x100)) {
  10346. val += this[offset + i] * mul
  10347. }
  10348. mul *= 0x80
  10349. if (val >= mul) val -= Math.pow(2, 8 * byteLength)
  10350. return val
  10351. }
  10352. Buffer.prototype.readIntBE = function readIntBE (offset, byteLength, noAssert) {
  10353. offset = offset | 0
  10354. byteLength = byteLength | 0
  10355. if (!noAssert) checkOffset(offset, byteLength, this.length)
  10356. var i = byteLength
  10357. var mul = 1
  10358. var val = this[offset + --i]
  10359. while (i > 0 && (mul *= 0x100)) {
  10360. val += this[offset + --i] * mul
  10361. }
  10362. mul *= 0x80
  10363. if (val >= mul) val -= Math.pow(2, 8 * byteLength)
  10364. return val
  10365. }
  10366. Buffer.prototype.readInt8 = function readInt8 (offset, noAssert) {
  10367. if (!noAssert) checkOffset(offset, 1, this.length)
  10368. if (!(this[offset] & 0x80)) return (this[offset])
  10369. return ((0xff - this[offset] + 1) * -1)
  10370. }
  10371. Buffer.prototype.readInt16LE = function readInt16LE (offset, noAssert) {
  10372. if (!noAssert) checkOffset(offset, 2, this.length)
  10373. var val = this[offset] | (this[offset + 1] << 8)
  10374. return (val & 0x8000) ? val | 0xFFFF0000 : val
  10375. }
  10376. Buffer.prototype.readInt16BE = function readInt16BE (offset, noAssert) {
  10377. if (!noAssert) checkOffset(offset, 2, this.length)
  10378. var val = this[offset + 1] | (this[offset] << 8)
  10379. return (val & 0x8000) ? val | 0xFFFF0000 : val
  10380. }
  10381. Buffer.prototype.readInt32LE = function readInt32LE (offset, noAssert) {
  10382. if (!noAssert) checkOffset(offset, 4, this.length)
  10383. return (this[offset]) |
  10384. (this[offset + 1] << 8) |
  10385. (this[offset + 2] << 16) |
  10386. (this[offset + 3] << 24)
  10387. }
  10388. Buffer.prototype.readInt32BE = function readInt32BE (offset, noAssert) {
  10389. if (!noAssert) checkOffset(offset, 4, this.length)
  10390. return (this[offset] << 24) |
  10391. (this[offset + 1] << 16) |
  10392. (this[offset + 2] << 8) |
  10393. (this[offset + 3])
  10394. }
  10395. Buffer.prototype.readFloatLE = function readFloatLE (offset, noAssert) {
  10396. if (!noAssert) checkOffset(offset, 4, this.length)
  10397. return ieee754.read(this, offset, true, 23, 4)
  10398. }
  10399. Buffer.prototype.readFloatBE = function readFloatBE (offset, noAssert) {
  10400. if (!noAssert) checkOffset(offset, 4, this.length)
  10401. return ieee754.read(this, offset, false, 23, 4)
  10402. }
  10403. Buffer.prototype.readDoubleLE = function readDoubleLE (offset, noAssert) {
  10404. if (!noAssert) checkOffset(offset, 8, this.length)
  10405. return ieee754.read(this, offset, true, 52, 8)
  10406. }
  10407. Buffer.prototype.readDoubleBE = function readDoubleBE (offset, noAssert) {
  10408. if (!noAssert) checkOffset(offset, 8, this.length)
  10409. return ieee754.read(this, offset, false, 52, 8)
  10410. }
  10411. function checkInt (buf, value, offset, ext, max, min) {
  10412. if (!Buffer.isBuffer(buf)) throw new TypeError('"buffer" argument must be a Buffer instance')
  10413. if (value > max || value < min) throw new RangeError('"value" argument is out of bounds')
  10414. if (offset + ext > buf.length) throw new RangeError('Index out of range')
  10415. }
  10416. Buffer.prototype.writeUIntLE = function writeUIntLE (value, offset, byteLength, noAssert) {
  10417. value = +value
  10418. offset = offset | 0
  10419. byteLength = byteLength | 0
  10420. if (!noAssert) {
  10421. var maxBytes = Math.pow(2, 8 * byteLength) - 1
  10422. checkInt(this, value, offset, byteLength, maxBytes, 0)
  10423. }
  10424. var mul = 1
  10425. var i = 0
  10426. this[offset] = value & 0xFF
  10427. while (++i < byteLength && (mul *= 0x100)) {
  10428. this[offset + i] = (value / mul) & 0xFF
  10429. }
  10430. return offset + byteLength
  10431. }
  10432. Buffer.prototype.writeUIntBE = function writeUIntBE (value, offset, byteLength, noAssert) {
  10433. value = +value
  10434. offset = offset | 0
  10435. byteLength = byteLength | 0
  10436. if (!noAssert) {
  10437. var maxBytes = Math.pow(2, 8 * byteLength) - 1
  10438. checkInt(this, value, offset, byteLength, maxBytes, 0)
  10439. }
  10440. var i = byteLength - 1
  10441. var mul = 1
  10442. this[offset + i] = value & 0xFF
  10443. while (--i >= 0 && (mul *= 0x100)) {
  10444. this[offset + i] = (value / mul) & 0xFF
  10445. }
  10446. return offset + byteLength
  10447. }
  10448. Buffer.prototype.writeUInt8 = function writeUInt8 (value, offset, noAssert) {
  10449. value = +value
  10450. offset = offset | 0
  10451. if (!noAssert) checkInt(this, value, offset, 1, 0xff, 0)
  10452. if (!Buffer.TYPED_ARRAY_SUPPORT) value = Math.floor(value)
  10453. this[offset] = (value & 0xff)
  10454. return offset + 1
  10455. }
  10456. function objectWriteUInt16 (buf, value, offset, littleEndian) {
  10457. if (value < 0) value = 0xffff + value + 1
  10458. for (var i = 0, j = Math.min(buf.length - offset, 2); i < j; ++i) {
  10459. buf[offset + i] = (value & (0xff << (8 * (littleEndian ? i : 1 - i)))) >>>
  10460. (littleEndian ? i : 1 - i) * 8
  10461. }
  10462. }
  10463. Buffer.prototype.writeUInt16LE = function writeUInt16LE (value, offset, noAssert) {
  10464. value = +value
  10465. offset = offset | 0
  10466. if (!noAssert) checkInt(this, value, offset, 2, 0xffff, 0)
  10467. if (Buffer.TYPED_ARRAY_SUPPORT) {
  10468. this[offset] = (value & 0xff)
  10469. this[offset + 1] = (value >>> 8)
  10470. } else {
  10471. objectWriteUInt16(this, value, offset, true)
  10472. }
  10473. return offset + 2
  10474. }
  10475. Buffer.prototype.writeUInt16BE = function writeUInt16BE (value, offset, noAssert) {
  10476. value = +value
  10477. offset = offset | 0
  10478. if (!noAssert) checkInt(this, value, offset, 2, 0xffff, 0)
  10479. if (Buffer.TYPED_ARRAY_SUPPORT) {
  10480. this[offset] = (value >>> 8)
  10481. this[offset + 1] = (value & 0xff)
  10482. } else {
  10483. objectWriteUInt16(this, value, offset, false)
  10484. }
  10485. return offset + 2
  10486. }
  10487. function objectWriteUInt32 (buf, value, offset, littleEndian) {
  10488. if (value < 0) value = 0xffffffff + value + 1
  10489. for (var i = 0, j = Math.min(buf.length - offset, 4); i < j; ++i) {
  10490. buf[offset + i] = (value >>> (littleEndian ? i : 3 - i) * 8) & 0xff
  10491. }
  10492. }
  10493. Buffer.prototype.writeUInt32LE = function writeUInt32LE (value, offset, noAssert) {
  10494. value = +value
  10495. offset = offset | 0
  10496. if (!noAssert) checkInt(this, value, offset, 4, 0xffffffff, 0)
  10497. if (Buffer.TYPED_ARRAY_SUPPORT) {
  10498. this[offset + 3] = (value >>> 24)
  10499. this[offset + 2] = (value >>> 16)
  10500. this[offset + 1] = (value >>> 8)
  10501. this[offset] = (value & 0xff)
  10502. } else {
  10503. objectWriteUInt32(this, value, offset, true)
  10504. }
  10505. return offset + 4
  10506. }
  10507. Buffer.prototype.writeUInt32BE = function writeUInt32BE (value, offset, noAssert) {
  10508. value = +value
  10509. offset = offset | 0
  10510. if (!noAssert) checkInt(this, value, offset, 4, 0xffffffff, 0)
  10511. if (Buffer.TYPED_ARRAY_SUPPORT) {
  10512. this[offset] = (value >>> 24)
  10513. this[offset + 1] = (value >>> 16)
  10514. this[offset + 2] = (value >>> 8)
  10515. this[offset + 3] = (value & 0xff)
  10516. } else {
  10517. objectWriteUInt32(this, value, offset, false)
  10518. }
  10519. return offset + 4
  10520. }
  10521. Buffer.prototype.writeIntLE = function writeIntLE (value, offset, byteLength, noAssert) {
  10522. value = +value
  10523. offset = offset | 0
  10524. if (!noAssert) {
  10525. var limit = Math.pow(2, 8 * byteLength - 1)
  10526. checkInt(this, value, offset, byteLength, limit - 1, -limit)
  10527. }
  10528. var i = 0
  10529. var mul = 1
  10530. var sub = 0
  10531. this[offset] = value & 0xFF
  10532. while (++i < byteLength && (mul *= 0x100)) {
  10533. if (value < 0 && sub === 0 && this[offset + i - 1] !== 0) {
  10534. sub = 1
  10535. }
  10536. this[offset + i] = ((value / mul) >> 0) - sub & 0xFF
  10537. }
  10538. return offset + byteLength
  10539. }
  10540. Buffer.prototype.writeIntBE = function writeIntBE (value, offset, byteLength, noAssert) {
  10541. value = +value
  10542. offset = offset | 0
  10543. if (!noAssert) {
  10544. var limit = Math.pow(2, 8 * byteLength - 1)
  10545. checkInt(this, value, offset, byteLength, limit - 1, -limit)
  10546. }
  10547. var i = byteLength - 1
  10548. var mul = 1
  10549. var sub = 0
  10550. this[offset + i] = value & 0xFF
  10551. while (--i >= 0 && (mul *= 0x100)) {
  10552. if (value < 0 && sub === 0 && this[offset + i + 1] !== 0) {
  10553. sub = 1
  10554. }
  10555. this[offset + i] = ((value / mul) >> 0) - sub & 0xFF
  10556. }
  10557. return offset + byteLength
  10558. }
  10559. Buffer.prototype.writeInt8 = function writeInt8 (value, offset, noAssert) {
  10560. value = +value
  10561. offset = offset | 0
  10562. if (!noAssert) checkInt(this, value, offset, 1, 0x7f, -0x80)
  10563. if (!Buffer.TYPED_ARRAY_SUPPORT) value = Math.floor(value)
  10564. if (value < 0) value = 0xff + value + 1
  10565. this[offset] = (value & 0xff)
  10566. return offset + 1
  10567. }
  10568. Buffer.prototype.writeInt16LE = function writeInt16LE (value, offset, noAssert) {
  10569. value = +value
  10570. offset = offset | 0
  10571. if (!noAssert) checkInt(this, value, offset, 2, 0x7fff, -0x8000)
  10572. if (Buffer.TYPED_ARRAY_SUPPORT) {
  10573. this[offset] = (value & 0xff)
  10574. this[offset + 1] = (value >>> 8)
  10575. } else {
  10576. objectWriteUInt16(this, value, offset, true)
  10577. }
  10578. return offset + 2
  10579. }
  10580. Buffer.prototype.writeInt16BE = function writeInt16BE (value, offset, noAssert) {
  10581. value = +value
  10582. offset = offset | 0
  10583. if (!noAssert) checkInt(this, value, offset, 2, 0x7fff, -0x8000)
  10584. if (Buffer.TYPED_ARRAY_SUPPORT) {
  10585. this[offset] = (value >>> 8)
  10586. this[offset + 1] = (value & 0xff)
  10587. } else {
  10588. objectWriteUInt16(this, value, offset, false)
  10589. }
  10590. return offset + 2
  10591. }
  10592. Buffer.prototype.writeInt32LE = function writeInt32LE (value, offset, noAssert) {
  10593. value = +value
  10594. offset = offset | 0
  10595. if (!noAssert) checkInt(this, value, offset, 4, 0x7fffffff, -0x80000000)
  10596. if (Buffer.TYPED_ARRAY_SUPPORT) {
  10597. this[offset] = (value & 0xff)
  10598. this[offset + 1] = (value >>> 8)
  10599. this[offset + 2] = (value >>> 16)
  10600. this[offset + 3] = (value >>> 24)
  10601. } else {
  10602. objectWriteUInt32(this, value, offset, true)
  10603. }
  10604. return offset + 4
  10605. }
  10606. Buffer.prototype.writeInt32BE = function writeInt32BE (value, offset, noAssert) {
  10607. value = +value
  10608. offset = offset | 0
  10609. if (!noAssert) checkInt(this, value, offset, 4, 0x7fffffff, -0x80000000)
  10610. if (value < 0) value = 0xffffffff + value + 1
  10611. if (Buffer.TYPED_ARRAY_SUPPORT) {
  10612. this[offset] = (value >>> 24)
  10613. this[offset + 1] = (value >>> 16)
  10614. this[offset + 2] = (value >>> 8)
  10615. this[offset + 3] = (value & 0xff)
  10616. } else {
  10617. objectWriteUInt32(this, value, offset, false)
  10618. }
  10619. return offset + 4
  10620. }
  10621. function checkIEEE754 (buf, value, offset, ext, max, min) {
  10622. if (offset + ext > buf.length) throw new RangeError('Index out of range')
  10623. if (offset < 0) throw new RangeError('Index out of range')
  10624. }
  10625. function writeFloat (buf, value, offset, littleEndian, noAssert) {
  10626. if (!noAssert) {
  10627. checkIEEE754(buf, value, offset, 4, 3.4028234663852886e+38, -3.4028234663852886e+38)
  10628. }
  10629. ieee754.write(buf, value, offset, littleEndian, 23, 4)
  10630. return offset + 4
  10631. }
  10632. Buffer.prototype.writeFloatLE = function writeFloatLE (value, offset, noAssert) {
  10633. return writeFloat(this, value, offset, true, noAssert)
  10634. }
  10635. Buffer.prototype.writeFloatBE = function writeFloatBE (value, offset, noAssert) {
  10636. return writeFloat(this, value, offset, false, noAssert)
  10637. }
  10638. function writeDouble (buf, value, offset, littleEndian, noAssert) {
  10639. if (!noAssert) {
  10640. checkIEEE754(buf, value, offset, 8, 1.7976931348623157E+308, -1.7976931348623157E+308)
  10641. }
  10642. ieee754.write(buf, value, offset, littleEndian, 52, 8)
  10643. return offset + 8
  10644. }
  10645. Buffer.prototype.writeDoubleLE = function writeDoubleLE (value, offset, noAssert) {
  10646. return writeDouble(this, value, offset, true, noAssert)
  10647. }
  10648. Buffer.prototype.writeDoubleBE = function writeDoubleBE (value, offset, noAssert) {
  10649. return writeDouble(this, value, offset, false, noAssert)
  10650. }
  10651. // copy(targetBuffer, targetStart=0, sourceStart=0, sourceEnd=buffer.length)
  10652. Buffer.prototype.copy = function copy (target, targetStart, start, end) {
  10653. if (!start) start = 0
  10654. if (!end && end !== 0) end = this.length
  10655. if (targetStart >= target.length) targetStart = target.length
  10656. if (!targetStart) targetStart = 0
  10657. if (end > 0 && end < start) end = start
  10658. // Copy 0 bytes; we're done
  10659. if (end === start) return 0
  10660. if (target.length === 0 || this.length === 0) return 0
  10661. // Fatal error conditions
  10662. if (targetStart < 0) {
  10663. throw new RangeError('targetStart out of bounds')
  10664. }
  10665. if (start < 0 || start >= this.length) throw new RangeError('sourceStart out of bounds')
  10666. if (end < 0) throw new RangeError('sourceEnd out of bounds')
  10667. // Are we oob?
  10668. if (end > this.length) end = this.length
  10669. if (target.length - targetStart < end - start) {
  10670. end = target.length - targetStart + start
  10671. }
  10672. var len = end - start
  10673. var i
  10674. if (this === target && start < targetStart && targetStart < end) {
  10675. // descending copy from end
  10676. for (i = len - 1; i >= 0; --i) {
  10677. target[i + targetStart] = this[i + start]
  10678. }
  10679. } else if (len < 1000 || !Buffer.TYPED_ARRAY_SUPPORT) {
  10680. // ascending copy from start
  10681. for (i = 0; i < len; ++i) {
  10682. target[i + targetStart] = this[i + start]
  10683. }
  10684. } else {
  10685. Uint8Array.prototype.set.call(
  10686. target,
  10687. this.subarray(start, start + len),
  10688. targetStart
  10689. )
  10690. }
  10691. return len
  10692. }
  10693. // Usage:
  10694. // buffer.fill(number[, offset[, end]])
  10695. // buffer.fill(buffer[, offset[, end]])
  10696. // buffer.fill(string[, offset[, end]][, encoding])
  10697. Buffer.prototype.fill = function fill (val, start, end, encoding) {
  10698. // Handle string cases:
  10699. if (typeof val === 'string') {
  10700. if (typeof start === 'string') {
  10701. encoding = start
  10702. start = 0
  10703. end = this.length
  10704. } else if (typeof end === 'string') {
  10705. encoding = end
  10706. end = this.length
  10707. }
  10708. if (val.length === 1) {
  10709. var code = val.charCodeAt(0)
  10710. if (code < 256) {
  10711. val = code
  10712. }
  10713. }
  10714. if (encoding !== undefined && typeof encoding !== 'string') {
  10715. throw new TypeError('encoding must be a string')
  10716. }
  10717. if (typeof encoding === 'string' && !Buffer.isEncoding(encoding)) {
  10718. throw new TypeError('Unknown encoding: ' + encoding)
  10719. }
  10720. } else if (typeof val === 'number') {
  10721. val = val & 255
  10722. }
  10723. // Invalid ranges are not set to a default, so can range check early.
  10724. if (start < 0 || this.length < start || this.length < end) {
  10725. throw new RangeError('Out of range index')
  10726. }
  10727. if (end <= start) {
  10728. return this
  10729. }
  10730. start = start >>> 0
  10731. end = end === undefined ? this.length : end >>> 0
  10732. if (!val) val = 0
  10733. var i
  10734. if (typeof val === 'number') {
  10735. for (i = start; i < end; ++i) {
  10736. this[i] = val
  10737. }
  10738. } else {
  10739. var bytes = Buffer.isBuffer(val)
  10740. ? val
  10741. : utf8ToBytes(new Buffer(val, encoding).toString())
  10742. var len = bytes.length
  10743. for (i = 0; i < end - start; ++i) {
  10744. this[i + start] = bytes[i % len]
  10745. }
  10746. }
  10747. return this
  10748. }
  10749. // HELPER FUNCTIONS
  10750. // ================
  10751. var INVALID_BASE64_RE = /[^+\/0-9A-Za-z-_]/g
  10752. function base64clean (str) {
  10753. // Node strips out invalid characters like \n and \t from the string, base64-js does not
  10754. str = stringtrim(str).replace(INVALID_BASE64_RE, '')
  10755. // Node converts strings with length < 2 to ''
  10756. if (str.length < 2) return ''
  10757. // Node allows for non-padded base64 strings (missing trailing ===), base64-js does not
  10758. while (str.length % 4 !== 0) {
  10759. str = str + '='
  10760. }
  10761. return str
  10762. }
  10763. function stringtrim (str) {
  10764. if (str.trim) return str.trim()
  10765. return str.replace(/^\s+|\s+$/g, '')
  10766. }
  10767. function toHex (n) {
  10768. if (n < 16) return '0' + n.toString(16)
  10769. return n.toString(16)
  10770. }
  10771. function utf8ToBytes (string, units) {
  10772. units = units || Infinity
  10773. var codePoint
  10774. var length = string.length
  10775. var leadSurrogate = null
  10776. var bytes = []
  10777. for (var i = 0; i < length; ++i) {
  10778. codePoint = string.charCodeAt(i)
  10779. // is surrogate component
  10780. if (codePoint > 0xD7FF && codePoint < 0xE000) {
  10781. // last char was a lead
  10782. if (!leadSurrogate) {
  10783. // no lead yet
  10784. if (codePoint > 0xDBFF) {
  10785. // unexpected trail
  10786. if ((units -= 3) > -1) bytes.push(0xEF, 0xBF, 0xBD)
  10787. continue
  10788. } else if (i + 1 === length) {
  10789. // unpaired lead
  10790. if ((units -= 3) > -1) bytes.push(0xEF, 0xBF, 0xBD)
  10791. continue
  10792. }
  10793. // valid lead
  10794. leadSurrogate = codePoint
  10795. continue
  10796. }
  10797. // 2 leads in a row
  10798. if (codePoint < 0xDC00) {
  10799. if ((units -= 3) > -1) bytes.push(0xEF, 0xBF, 0xBD)
  10800. leadSurrogate = codePoint
  10801. continue
  10802. }
  10803. // valid surrogate pair
  10804. codePoint = (leadSurrogate - 0xD800 << 10 | codePoint - 0xDC00) + 0x10000
  10805. } else if (leadSurrogate) {
  10806. // valid bmp char, but last char was a lead
  10807. if ((units -= 3) > -1) bytes.push(0xEF, 0xBF, 0xBD)
  10808. }
  10809. leadSurrogate = null
  10810. // encode utf8
  10811. if (codePoint < 0x80) {
  10812. if ((units -= 1) < 0) break
  10813. bytes.push(codePoint)
  10814. } else if (codePoint < 0x800) {
  10815. if ((units -= 2) < 0) break
  10816. bytes.push(
  10817. codePoint >> 0x6 | 0xC0,
  10818. codePoint & 0x3F | 0x80
  10819. )
  10820. } else if (codePoint < 0x10000) {
  10821. if ((units -= 3) < 0) break
  10822. bytes.push(
  10823. codePoint >> 0xC | 0xE0,
  10824. codePoint >> 0x6 & 0x3F | 0x80,
  10825. codePoint & 0x3F | 0x80
  10826. )
  10827. } else if (codePoint < 0x110000) {
  10828. if ((units -= 4) < 0) break
  10829. bytes.push(
  10830. codePoint >> 0x12 | 0xF0,
  10831. codePoint >> 0xC & 0x3F | 0x80,
  10832. codePoint >> 0x6 & 0x3F | 0x80,
  10833. codePoint & 0x3F | 0x80
  10834. )
  10835. } else {
  10836. throw new Error('Invalid code point')
  10837. }
  10838. }
  10839. return bytes
  10840. }
  10841. function asciiToBytes (str) {
  10842. var byteArray = []
  10843. for (var i = 0; i < str.length; ++i) {
  10844. // Node's code seems to be doing this and not & 0x7F..
  10845. byteArray.push(str.charCodeAt(i) & 0xFF)
  10846. }
  10847. return byteArray
  10848. }
  10849. function utf16leToBytes (str, units) {
  10850. var c, hi, lo
  10851. var byteArray = []
  10852. for (var i = 0; i < str.length; ++i) {
  10853. if ((units -= 2) < 0) break
  10854. c = str.charCodeAt(i)
  10855. hi = c >> 8
  10856. lo = c % 256
  10857. byteArray.push(lo)
  10858. byteArray.push(hi)
  10859. }
  10860. return byteArray
  10861. }
  10862. function base64ToBytes (str) {
  10863. return base64.toByteArray(base64clean(str))
  10864. }
  10865. function blitBuffer (src, dst, offset, length) {
  10866. for (var i = 0; i < length; ++i) {
  10867. if ((i + offset >= dst.length) || (i >= src.length)) break
  10868. dst[i + offset] = src[i]
  10869. }
  10870. return i
  10871. }
  10872. function isnan (val) {
  10873. return val !== val // eslint-disable-line no-self-compare
  10874. }
  10875. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../webpack/buildin/global.js */ 2)))
  10876. /***/ }),
  10877. /* 30 */
  10878. /*!*****************************************!*\
  10879. !*** ./node_modules/base64-js/index.js ***!
  10880. \*****************************************/
  10881. /*! no static exports found */
  10882. /***/ (function(module, exports, __webpack_require__) {
  10883. "use strict";
  10884. exports.byteLength = byteLength
  10885. exports.toByteArray = toByteArray
  10886. exports.fromByteArray = fromByteArray
  10887. var lookup = []
  10888. var revLookup = []
  10889. var Arr = typeof Uint8Array !== 'undefined' ? Uint8Array : Array
  10890. var code = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/'
  10891. for (var i = 0, len = code.length; i < len; ++i) {
  10892. lookup[i] = code[i]
  10893. revLookup[code.charCodeAt(i)] = i
  10894. }
  10895. // Support decoding URL-safe base64 strings, as Node.js does.
  10896. // See: https://en.wikipedia.org/wiki/Base64#URL_applications
  10897. revLookup['-'.charCodeAt(0)] = 62
  10898. revLookup['_'.charCodeAt(0)] = 63
  10899. function getLens (b64) {
  10900. var len = b64.length
  10901. if (len % 4 > 0) {
  10902. throw new Error('Invalid string. Length must be a multiple of 4')
  10903. }
  10904. // Trim off extra bytes after placeholder bytes are found
  10905. // See: https://github.com/beatgammit/base64-js/issues/42
  10906. var validLen = b64.indexOf('=')
  10907. if (validLen === -1) validLen = len
  10908. var placeHoldersLen = validLen === len
  10909. ? 0
  10910. : 4 - (validLen % 4)
  10911. return [validLen, placeHoldersLen]
  10912. }
  10913. // base64 is 4/3 + up to two characters of the original data
  10914. function byteLength (b64) {
  10915. var lens = getLens(b64)
  10916. var validLen = lens[0]
  10917. var placeHoldersLen = lens[1]
  10918. return ((validLen + placeHoldersLen) * 3 / 4) - placeHoldersLen
  10919. }
  10920. function _byteLength (b64, validLen, placeHoldersLen) {
  10921. return ((validLen + placeHoldersLen) * 3 / 4) - placeHoldersLen
  10922. }
  10923. function toByteArray (b64) {
  10924. var tmp
  10925. var lens = getLens(b64)
  10926. var validLen = lens[0]
  10927. var placeHoldersLen = lens[1]
  10928. var arr = new Arr(_byteLength(b64, validLen, placeHoldersLen))
  10929. var curByte = 0
  10930. // if there are placeholders, only get up to the last complete 4 chars
  10931. var len = placeHoldersLen > 0
  10932. ? validLen - 4
  10933. : validLen
  10934. var i
  10935. for (i = 0; i < len; i += 4) {
  10936. tmp =
  10937. (revLookup[b64.charCodeAt(i)] << 18) |
  10938. (revLookup[b64.charCodeAt(i + 1)] << 12) |
  10939. (revLookup[b64.charCodeAt(i + 2)] << 6) |
  10940. revLookup[b64.charCodeAt(i + 3)]
  10941. arr[curByte++] = (tmp >> 16) & 0xFF
  10942. arr[curByte++] = (tmp >> 8) & 0xFF
  10943. arr[curByte++] = tmp & 0xFF
  10944. }
  10945. if (placeHoldersLen === 2) {
  10946. tmp =
  10947. (revLookup[b64.charCodeAt(i)] << 2) |
  10948. (revLookup[b64.charCodeAt(i + 1)] >> 4)
  10949. arr[curByte++] = tmp & 0xFF
  10950. }
  10951. if (placeHoldersLen === 1) {
  10952. tmp =
  10953. (revLookup[b64.charCodeAt(i)] << 10) |
  10954. (revLookup[b64.charCodeAt(i + 1)] << 4) |
  10955. (revLookup[b64.charCodeAt(i + 2)] >> 2)
  10956. arr[curByte++] = (tmp >> 8) & 0xFF
  10957. arr[curByte++] = tmp & 0xFF
  10958. }
  10959. return arr
  10960. }
  10961. function tripletToBase64 (num) {
  10962. return lookup[num >> 18 & 0x3F] +
  10963. lookup[num >> 12 & 0x3F] +
  10964. lookup[num >> 6 & 0x3F] +
  10965. lookup[num & 0x3F]
  10966. }
  10967. function encodeChunk (uint8, start, end) {
  10968. var tmp
  10969. var output = []
  10970. for (var i = start; i < end; i += 3) {
  10971. tmp =
  10972. ((uint8[i] << 16) & 0xFF0000) +
  10973. ((uint8[i + 1] << 8) & 0xFF00) +
  10974. (uint8[i + 2] & 0xFF)
  10975. output.push(tripletToBase64(tmp))
  10976. }
  10977. return output.join('')
  10978. }
  10979. function fromByteArray (uint8) {
  10980. var tmp
  10981. var len = uint8.length
  10982. var extraBytes = len % 3 // if we have 1 byte left, pad 2 bytes
  10983. var parts = []
  10984. var maxChunkLength = 16383 // must be multiple of 3
  10985. // go through the array every three bytes, we'll deal with trailing stuff later
  10986. for (var i = 0, len2 = len - extraBytes; i < len2; i += maxChunkLength) {
  10987. parts.push(encodeChunk(
  10988. uint8, i, (i + maxChunkLength) > len2 ? len2 : (i + maxChunkLength)
  10989. ))
  10990. }
  10991. // pad the end with zeros, but make sure to not forget the extra bytes
  10992. if (extraBytes === 1) {
  10993. tmp = uint8[len - 1]
  10994. parts.push(
  10995. lookup[tmp >> 2] +
  10996. lookup[(tmp << 4) & 0x3F] +
  10997. '=='
  10998. )
  10999. } else if (extraBytes === 2) {
  11000. tmp = (uint8[len - 2] << 8) + uint8[len - 1]
  11001. parts.push(
  11002. lookup[tmp >> 10] +
  11003. lookup[(tmp >> 4) & 0x3F] +
  11004. lookup[(tmp << 2) & 0x3F] +
  11005. '='
  11006. )
  11007. }
  11008. return parts.join('')
  11009. }
  11010. /***/ }),
  11011. /* 31 */
  11012. /*!***************************************!*\
  11013. !*** ./node_modules/ieee754/index.js ***!
  11014. \***************************************/
  11015. /*! no static exports found */
  11016. /***/ (function(module, exports) {
  11017. exports.read = function (buffer, offset, isLE, mLen, nBytes) {
  11018. var e, m
  11019. var eLen = (nBytes * 8) - mLen - 1
  11020. var eMax = (1 << eLen) - 1
  11021. var eBias = eMax >> 1
  11022. var nBits = -7
  11023. var i = isLE ? (nBytes - 1) : 0
  11024. var d = isLE ? -1 : 1
  11025. var s = buffer[offset + i]
  11026. i += d
  11027. e = s & ((1 << (-nBits)) - 1)
  11028. s >>= (-nBits)
  11029. nBits += eLen
  11030. for (; nBits > 0; e = (e * 256) + buffer[offset + i], i += d, nBits -= 8) {}
  11031. m = e & ((1 << (-nBits)) - 1)
  11032. e >>= (-nBits)
  11033. nBits += mLen
  11034. for (; nBits > 0; m = (m * 256) + buffer[offset + i], i += d, nBits -= 8) {}
  11035. if (e === 0) {
  11036. e = 1 - eBias
  11037. } else if (e === eMax) {
  11038. return m ? NaN : ((s ? -1 : 1) * Infinity)
  11039. } else {
  11040. m = m + Math.pow(2, mLen)
  11041. e = e - eBias
  11042. }
  11043. return (s ? -1 : 1) * m * Math.pow(2, e - mLen)
  11044. }
  11045. exports.write = function (buffer, value, offset, isLE, mLen, nBytes) {
  11046. var e, m, c
  11047. var eLen = (nBytes * 8) - mLen - 1
  11048. var eMax = (1 << eLen) - 1
  11049. var eBias = eMax >> 1
  11050. var rt = (mLen === 23 ? Math.pow(2, -24) - Math.pow(2, -77) : 0)
  11051. var i = isLE ? 0 : (nBytes - 1)
  11052. var d = isLE ? 1 : -1
  11053. var s = value < 0 || (value === 0 && 1 / value < 0) ? 1 : 0
  11054. value = Math.abs(value)
  11055. if (isNaN(value) || value === Infinity) {
  11056. m = isNaN(value) ? 1 : 0
  11057. e = eMax
  11058. } else {
  11059. e = Math.floor(Math.log(value) / Math.LN2)
  11060. if (value * (c = Math.pow(2, -e)) < 1) {
  11061. e--
  11062. c *= 2
  11063. }
  11064. if (e + eBias >= 1) {
  11065. value += rt / c
  11066. } else {
  11067. value += rt * Math.pow(2, 1 - eBias)
  11068. }
  11069. if (value * c >= 2) {
  11070. e++
  11071. c /= 2
  11072. }
  11073. if (e + eBias >= eMax) {
  11074. m = 0
  11075. e = eMax
  11076. } else if (e + eBias >= 1) {
  11077. m = ((value * c) - 1) * Math.pow(2, mLen)
  11078. e = e + eBias
  11079. } else {
  11080. m = value * Math.pow(2, eBias - 1) * Math.pow(2, mLen)
  11081. e = 0
  11082. }
  11083. }
  11084. for (; mLen >= 8; buffer[offset + i] = m & 0xff, i += d, m /= 256, mLen -= 8) {}
  11085. e = (e << mLen) | m
  11086. eLen += mLen
  11087. for (; eLen > 0; buffer[offset + i] = e & 0xff, i += d, e /= 256, eLen -= 8) {}
  11088. buffer[offset + i - d] |= s * 128
  11089. }
  11090. /***/ }),
  11091. /* 32 */
  11092. /*!***************************************!*\
  11093. !*** ./node_modules/isarray/index.js ***!
  11094. \***************************************/
  11095. /*! no static exports found */
  11096. /***/ (function(module, exports) {
  11097. var toString = {}.toString;
  11098. module.exports = Array.isArray || function (arr) {
  11099. return toString.call(arr) == '[object Array]';
  11100. };
  11101. /***/ }),
  11102. /* 33 */
  11103. /*!*****************************************************************!*\
  11104. !*** E:/代码/cbz/cbz/cbz/uni_modules/uview-ui/libs/util/route.js ***!
  11105. \*****************************************************************/
  11106. /*! no static exports found */
  11107. /***/ (function(module, exports, __webpack_require__) {
  11108. "use strict";
  11109. /* WEBPACK VAR INJECTION */(function(uni) {Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0;var _regenerator = _interopRequireDefault(__webpack_require__(/*! ./node_modules/@babel/runtime/regenerator */ 34));function _interopRequireDefault(obj) {return obj && obj.__esModule ? obj : { default: obj };}function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {try {var info = gen[key](arg);var value = info.value;} catch (error) {reject(error);return;}if (info.done) {resolve(value);} else {Promise.resolve(value).then(_next, _throw);}}function _asyncToGenerator(fn) {return function () {var self = this,args = arguments;return new Promise(function (resolve, reject) {var gen = fn.apply(self, args);function _next(value) {asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value);}function _throw(err) {asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err);}_next(undefined);});};}function _classCallCheck(instance, Constructor) {if (!(instance instanceof Constructor)) {throw new TypeError("Cannot call a class as a function");}}function _defineProperties(target, props) {for (var i = 0; i < props.length; i++) {var descriptor = props[i];descriptor.enumerable = descriptor.enumerable || false;descriptor.configurable = true;if ("value" in descriptor) descriptor.writable = true;Object.defineProperty(target, descriptor.key, descriptor);}}function _createClass(Constructor, protoProps, staticProps) {if (protoProps) _defineProperties(Constructor.prototype, protoProps);if (staticProps) _defineProperties(Constructor, staticProps);return Constructor;} /**
  11110. * 路由跳转方法,该方法相对于直接使用uni.xxx的好处是使用更加简单快捷
  11111. * 并且带有路由拦截功能
  11112. */var
  11113. Router = /*#__PURE__*/function () {
  11114. function Router() {_classCallCheck(this, Router);
  11115. // 原始属性定义
  11116. this.config = {
  11117. type: 'navigateTo',
  11118. url: '',
  11119. delta: 1, // navigateBack页面后退时,回退的层数
  11120. params: {}, // 传递的参数
  11121. animationType: 'pop-in', // 窗口动画,只在APP有效
  11122. animationDuration: 300, // 窗口动画持续时间,单位毫秒,只在APP有效
  11123. intercept: false // 是否需要拦截
  11124. };
  11125. // 因为route方法是需要对外赋值给另外的对象使用,同时route内部有使用this,会导致route失去上下文
  11126. // 这里在构造函数中进行this绑定
  11127. this.route = this.route.bind(this);
  11128. }
  11129. // 判断url前面是否有"/",如果没有则加上,否则无法跳转
  11130. _createClass(Router, [{ key: "addRootPath", value: function addRootPath(url) {
  11131. return url[0] === '/' ? url : "/".concat(url);
  11132. }
  11133. // 整合路由参数
  11134. }, { key: "mixinParam", value: function mixinParam(url, params) {
  11135. url = url && this.addRootPath(url);
  11136. // 使用正则匹配,主要依据是判断是否有"/","?","="等,如“/page/index/index?name=mary"
  11137. // 如果有url中有get参数,转换后无需带上"?"
  11138. var query = '';
  11139. if (/.*\/.*\?.*=.*/.test(url)) {
  11140. // object对象转为get类型的参数
  11141. query = uni.$u.queryParams(params, false);
  11142. // 因为已有get参数,所以后面拼接的参数需要带上"&"隔开
  11143. return url += "&".concat(query);
  11144. }
  11145. // 直接拼接参数,因为此处url中没有后面的query参数,也就没有"?/&"之类的符号
  11146. query = uni.$u.queryParams(params);
  11147. return url += query;
  11148. }
  11149. // 对外的方法名称
  11150. }, { key: "route", value: function () {var _route = _asyncToGenerator( /*#__PURE__*/_regenerator.default.mark(function _callee() {var options,params,mergeConfig,isNext,_args = arguments;return _regenerator.default.wrap(function _callee$(_context) {while (1) {switch (_context.prev = _context.next) {case 0:options = _args.length > 0 && _args[0] !== undefined ? _args[0] : {};params = _args.length > 1 && _args[1] !== undefined ? _args[1] : {};
  11151. // 合并用户的配置和内部的默认配置
  11152. mergeConfig = {};
  11153. if (typeof options === 'string') {
  11154. // 如果options为字符串,则为route(url, params)的形式
  11155. mergeConfig.url = this.mixinParam(options, params);
  11156. mergeConfig.type = 'navigateTo';
  11157. } else {
  11158. mergeConfig = uni.$u.deepClone(options, this.config);
  11159. // 否则正常使用mergeConfig中的url和params进行拼接
  11160. mergeConfig.url = this.mixinParam(options.url, options.params);
  11161. }
  11162. // 如果本次跳转的路径和本页面路径一致,不执行跳转,防止用户快速点击跳转按钮,造成多次跳转同一个页面的问题
  11163. if (!(mergeConfig.url === uni.$u.page())) {_context.next = 6;break;}return _context.abrupt("return");case 6:
  11164. if (params.intercept) {
  11165. this.config.intercept = params.intercept;
  11166. }
  11167. // params参数也带给拦截器
  11168. mergeConfig.params = params;
  11169. // 合并内外部参数
  11170. mergeConfig = uni.$u.deepMerge(this.config, mergeConfig);
  11171. // 判断用户是否定义了拦截器
  11172. if (!(typeof uni.$u.routeIntercept === 'function')) {_context.next = 16;break;}_context.next = 12;return (
  11173. new Promise(function (resolve, reject) {
  11174. uni.$u.routeIntercept(mergeConfig, resolve);
  11175. }));case 12:isNext = _context.sent;
  11176. // 如果isNext为true,则执行路由跳转
  11177. isNext && this.openPage(mergeConfig);_context.next = 17;break;case 16:
  11178. this.openPage(mergeConfig);case 17:case "end":return _context.stop();}}}, _callee, this);}));function route() {return _route.apply(this, arguments);}return route;}()
  11179. // 执行路由跳转
  11180. }, { key: "openPage", value: function openPage(config) {
  11181. // 解构参数
  11182. var
  11183. url =
  11184. config.url,type = config.type,delta = config.delta,animationType = config.animationType,animationDuration = config.animationDuration;
  11185. if (config.type == 'navigateTo' || config.type == 'to') {
  11186. uni.navigateTo({
  11187. url: url,
  11188. animationType: animationType,
  11189. animationDuration: animationDuration });
  11190. }
  11191. if (config.type == 'redirectTo' || config.type == 'redirect') {
  11192. uni.redirectTo({
  11193. url: url });
  11194. }
  11195. if (config.type == 'switchTab' || config.type == 'tab') {
  11196. uni.switchTab({
  11197. url: url });
  11198. }
  11199. if (config.type == 'reLaunch' || config.type == 'launch') {
  11200. uni.reLaunch({
  11201. url: url });
  11202. }
  11203. if (config.type == 'navigateBack' || config.type == 'back') {
  11204. uni.navigateBack({
  11205. delta: delta });
  11206. }
  11207. } }]);return Router;}();var _default =
  11208. new Router().route;exports.default = _default;
  11209. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 1)["default"]))
  11210. /***/ }),
  11211. /* 34 */
  11212. /*!**********************************************************!*\
  11213. !*** ./node_modules/@babel/runtime/regenerator/index.js ***!
  11214. \**********************************************************/
  11215. /*! no static exports found */
  11216. /***/ (function(module, exports, __webpack_require__) {
  11217. module.exports = __webpack_require__(/*! regenerator-runtime */ 35);
  11218. /***/ }),
  11219. /* 35 */
  11220. /*!************************************************************!*\
  11221. !*** ./node_modules/regenerator-runtime/runtime-module.js ***!
  11222. \************************************************************/
  11223. /*! no static exports found */
  11224. /***/ (function(module, exports, __webpack_require__) {
  11225. /**
  11226. * Copyright (c) 2014-present, Facebook, Inc.
  11227. *
  11228. * This source code is licensed under the MIT license found in the
  11229. * LICENSE file in the root directory of this source tree.
  11230. */
  11231. // This method of obtaining a reference to the global object needs to be
  11232. // kept identical to the way it is obtained in runtime.js
  11233. var g = (function() {
  11234. return this || (typeof self === "object" && self);
  11235. })() || Function("return this")();
  11236. // Use `getOwnPropertyNames` because not all browsers support calling
  11237. // `hasOwnProperty` on the global `self` object in a worker. See #183.
  11238. var hadRuntime = g.regeneratorRuntime &&
  11239. Object.getOwnPropertyNames(g).indexOf("regeneratorRuntime") >= 0;
  11240. // Save the old regeneratorRuntime in case it needs to be restored later.
  11241. var oldRuntime = hadRuntime && g.regeneratorRuntime;
  11242. // Force reevalutation of runtime.js.
  11243. g.regeneratorRuntime = undefined;
  11244. module.exports = __webpack_require__(/*! ./runtime */ 36);
  11245. if (hadRuntime) {
  11246. // Restore the original runtime.
  11247. g.regeneratorRuntime = oldRuntime;
  11248. } else {
  11249. // Remove the global property added by runtime.js.
  11250. try {
  11251. delete g.regeneratorRuntime;
  11252. } catch(e) {
  11253. g.regeneratorRuntime = undefined;
  11254. }
  11255. }
  11256. /***/ }),
  11257. /* 36 */
  11258. /*!*****************************************************!*\
  11259. !*** ./node_modules/regenerator-runtime/runtime.js ***!
  11260. \*****************************************************/
  11261. /*! no static exports found */
  11262. /***/ (function(module, exports) {
  11263. /**
  11264. * Copyright (c) 2014-present, Facebook, Inc.
  11265. *
  11266. * This source code is licensed under the MIT license found in the
  11267. * LICENSE file in the root directory of this source tree.
  11268. */
  11269. !(function(global) {
  11270. "use strict";
  11271. var Op = Object.prototype;
  11272. var hasOwn = Op.hasOwnProperty;
  11273. var undefined; // More compressible than void 0.
  11274. var $Symbol = typeof Symbol === "function" ? Symbol : {};
  11275. var iteratorSymbol = $Symbol.iterator || "@@iterator";
  11276. var asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator";
  11277. var toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag";
  11278. var inModule = typeof module === "object";
  11279. var runtime = global.regeneratorRuntime;
  11280. if (runtime) {
  11281. if (inModule) {
  11282. // If regeneratorRuntime is defined globally and we're in a module,
  11283. // make the exports object identical to regeneratorRuntime.
  11284. module.exports = runtime;
  11285. }
  11286. // Don't bother evaluating the rest of this file if the runtime was
  11287. // already defined globally.
  11288. return;
  11289. }
  11290. // Define the runtime globally (as expected by generated code) as either
  11291. // module.exports (if we're in a module) or a new, empty object.
  11292. runtime = global.regeneratorRuntime = inModule ? module.exports : {};
  11293. function wrap(innerFn, outerFn, self, tryLocsList) {
  11294. // If outerFn provided and outerFn.prototype is a Generator, then outerFn.prototype instanceof Generator.
  11295. var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator;
  11296. var generator = Object.create(protoGenerator.prototype);
  11297. var context = new Context(tryLocsList || []);
  11298. // The ._invoke method unifies the implementations of the .next,
  11299. // .throw, and .return methods.
  11300. generator._invoke = makeInvokeMethod(innerFn, self, context);
  11301. return generator;
  11302. }
  11303. runtime.wrap = wrap;
  11304. // Try/catch helper to minimize deoptimizations. Returns a completion
  11305. // record like context.tryEntries[i].completion. This interface could
  11306. // have been (and was previously) designed to take a closure to be
  11307. // invoked without arguments, but in all the cases we care about we
  11308. // already have an existing method we want to call, so there's no need
  11309. // to create a new function object. We can even get away with assuming
  11310. // the method takes exactly one argument, since that happens to be true
  11311. // in every case, so we don't have to touch the arguments object. The
  11312. // only additional allocation required is the completion record, which
  11313. // has a stable shape and so hopefully should be cheap to allocate.
  11314. function tryCatch(fn, obj, arg) {
  11315. try {
  11316. return { type: "normal", arg: fn.call(obj, arg) };
  11317. } catch (err) {
  11318. return { type: "throw", arg: err };
  11319. }
  11320. }
  11321. var GenStateSuspendedStart = "suspendedStart";
  11322. var GenStateSuspendedYield = "suspendedYield";
  11323. var GenStateExecuting = "executing";
  11324. var GenStateCompleted = "completed";
  11325. // Returning this object from the innerFn has the same effect as
  11326. // breaking out of the dispatch switch statement.
  11327. var ContinueSentinel = {};
  11328. // Dummy constructor functions that we use as the .constructor and
  11329. // .constructor.prototype properties for functions that return Generator
  11330. // objects. For full spec compliance, you may wish to configure your
  11331. // minifier not to mangle the names of these two functions.
  11332. function Generator() {}
  11333. function GeneratorFunction() {}
  11334. function GeneratorFunctionPrototype() {}
  11335. // This is a polyfill for %IteratorPrototype% for environments that
  11336. // don't natively support it.
  11337. var IteratorPrototype = {};
  11338. IteratorPrototype[iteratorSymbol] = function () {
  11339. return this;
  11340. };
  11341. var getProto = Object.getPrototypeOf;
  11342. var NativeIteratorPrototype = getProto && getProto(getProto(values([])));
  11343. if (NativeIteratorPrototype &&
  11344. NativeIteratorPrototype !== Op &&
  11345. hasOwn.call(NativeIteratorPrototype, iteratorSymbol)) {
  11346. // This environment has a native %IteratorPrototype%; use it instead
  11347. // of the polyfill.
  11348. IteratorPrototype = NativeIteratorPrototype;
  11349. }
  11350. var Gp = GeneratorFunctionPrototype.prototype =
  11351. Generator.prototype = Object.create(IteratorPrototype);
  11352. GeneratorFunction.prototype = Gp.constructor = GeneratorFunctionPrototype;
  11353. GeneratorFunctionPrototype.constructor = GeneratorFunction;
  11354. GeneratorFunctionPrototype[toStringTagSymbol] =
  11355. GeneratorFunction.displayName = "GeneratorFunction";
  11356. // Helper for defining the .next, .throw, and .return methods of the
  11357. // Iterator interface in terms of a single ._invoke method.
  11358. function defineIteratorMethods(prototype) {
  11359. ["next", "throw", "return"].forEach(function(method) {
  11360. prototype[method] = function(arg) {
  11361. return this._invoke(method, arg);
  11362. };
  11363. });
  11364. }
  11365. runtime.isGeneratorFunction = function(genFun) {
  11366. var ctor = typeof genFun === "function" && genFun.constructor;
  11367. return ctor
  11368. ? ctor === GeneratorFunction ||
  11369. // For the native GeneratorFunction constructor, the best we can
  11370. // do is to check its .name property.
  11371. (ctor.displayName || ctor.name) === "GeneratorFunction"
  11372. : false;
  11373. };
  11374. runtime.mark = function(genFun) {
  11375. if (Object.setPrototypeOf) {
  11376. Object.setPrototypeOf(genFun, GeneratorFunctionPrototype);
  11377. } else {
  11378. genFun.__proto__ = GeneratorFunctionPrototype;
  11379. if (!(toStringTagSymbol in genFun)) {
  11380. genFun[toStringTagSymbol] = "GeneratorFunction";
  11381. }
  11382. }
  11383. genFun.prototype = Object.create(Gp);
  11384. return genFun;
  11385. };
  11386. // Within the body of any async function, `await x` is transformed to
  11387. // `yield regeneratorRuntime.awrap(x)`, so that the runtime can test
  11388. // `hasOwn.call(value, "__await")` to determine if the yielded value is
  11389. // meant to be awaited.
  11390. runtime.awrap = function(arg) {
  11391. return { __await: arg };
  11392. };
  11393. function AsyncIterator(generator) {
  11394. function invoke(method, arg, resolve, reject) {
  11395. var record = tryCatch(generator[method], generator, arg);
  11396. if (record.type === "throw") {
  11397. reject(record.arg);
  11398. } else {
  11399. var result = record.arg;
  11400. var value = result.value;
  11401. if (value &&
  11402. typeof value === "object" &&
  11403. hasOwn.call(value, "__await")) {
  11404. return Promise.resolve(value.__await).then(function(value) {
  11405. invoke("next", value, resolve, reject);
  11406. }, function(err) {
  11407. invoke("throw", err, resolve, reject);
  11408. });
  11409. }
  11410. return Promise.resolve(value).then(function(unwrapped) {
  11411. // When a yielded Promise is resolved, its final value becomes
  11412. // the .value of the Promise<{value,done}> result for the
  11413. // current iteration.
  11414. result.value = unwrapped;
  11415. resolve(result);
  11416. }, function(error) {
  11417. // If a rejected Promise was yielded, throw the rejection back
  11418. // into the async generator function so it can be handled there.
  11419. return invoke("throw", error, resolve, reject);
  11420. });
  11421. }
  11422. }
  11423. var previousPromise;
  11424. function enqueue(method, arg) {
  11425. function callInvokeWithMethodAndArg() {
  11426. return new Promise(function(resolve, reject) {
  11427. invoke(method, arg, resolve, reject);
  11428. });
  11429. }
  11430. return previousPromise =
  11431. // If enqueue has been called before, then we want to wait until
  11432. // all previous Promises have been resolved before calling invoke,
  11433. // so that results are always delivered in the correct order. If
  11434. // enqueue has not been called before, then it is important to
  11435. // call invoke immediately, without waiting on a callback to fire,
  11436. // so that the async generator function has the opportunity to do
  11437. // any necessary setup in a predictable way. This predictability
  11438. // is why the Promise constructor synchronously invokes its
  11439. // executor callback, and why async functions synchronously
  11440. // execute code before the first await. Since we implement simple
  11441. // async functions in terms of async generators, it is especially
  11442. // important to get this right, even though it requires care.
  11443. previousPromise ? previousPromise.then(
  11444. callInvokeWithMethodAndArg,
  11445. // Avoid propagating failures to Promises returned by later
  11446. // invocations of the iterator.
  11447. callInvokeWithMethodAndArg
  11448. ) : callInvokeWithMethodAndArg();
  11449. }
  11450. // Define the unified helper method that is used to implement .next,
  11451. // .throw, and .return (see defineIteratorMethods).
  11452. this._invoke = enqueue;
  11453. }
  11454. defineIteratorMethods(AsyncIterator.prototype);
  11455. AsyncIterator.prototype[asyncIteratorSymbol] = function () {
  11456. return this;
  11457. };
  11458. runtime.AsyncIterator = AsyncIterator;
  11459. // Note that simple async functions are implemented on top of
  11460. // AsyncIterator objects; they just return a Promise for the value of
  11461. // the final result produced by the iterator.
  11462. runtime.async = function(innerFn, outerFn, self, tryLocsList) {
  11463. var iter = new AsyncIterator(
  11464. wrap(innerFn, outerFn, self, tryLocsList)
  11465. );
  11466. return runtime.isGeneratorFunction(outerFn)
  11467. ? iter // If outerFn is a generator, return the full iterator.
  11468. : iter.next().then(function(result) {
  11469. return result.done ? result.value : iter.next();
  11470. });
  11471. };
  11472. function makeInvokeMethod(innerFn, self, context) {
  11473. var state = GenStateSuspendedStart;
  11474. return function invoke(method, arg) {
  11475. if (state === GenStateExecuting) {
  11476. throw new Error("Generator is already running");
  11477. }
  11478. if (state === GenStateCompleted) {
  11479. if (method === "throw") {
  11480. throw arg;
  11481. }
  11482. // Be forgiving, per 25.3.3.3.3 of the spec:
  11483. // https://people.mozilla.org/~jorendorff/es6-draft.html#sec-generatorresume
  11484. return doneResult();
  11485. }
  11486. context.method = method;
  11487. context.arg = arg;
  11488. while (true) {
  11489. var delegate = context.delegate;
  11490. if (delegate) {
  11491. var delegateResult = maybeInvokeDelegate(delegate, context);
  11492. if (delegateResult) {
  11493. if (delegateResult === ContinueSentinel) continue;
  11494. return delegateResult;
  11495. }
  11496. }
  11497. if (context.method === "next") {
  11498. // Setting context._sent for legacy support of Babel's
  11499. // function.sent implementation.
  11500. context.sent = context._sent = context.arg;
  11501. } else if (context.method === "throw") {
  11502. if (state === GenStateSuspendedStart) {
  11503. state = GenStateCompleted;
  11504. throw context.arg;
  11505. }
  11506. context.dispatchException(context.arg);
  11507. } else if (context.method === "return") {
  11508. context.abrupt("return", context.arg);
  11509. }
  11510. state = GenStateExecuting;
  11511. var record = tryCatch(innerFn, self, context);
  11512. if (record.type === "normal") {
  11513. // If an exception is thrown from innerFn, we leave state ===
  11514. // GenStateExecuting and loop back for another invocation.
  11515. state = context.done
  11516. ? GenStateCompleted
  11517. : GenStateSuspendedYield;
  11518. if (record.arg === ContinueSentinel) {
  11519. continue;
  11520. }
  11521. return {
  11522. value: record.arg,
  11523. done: context.done
  11524. };
  11525. } else if (record.type === "throw") {
  11526. state = GenStateCompleted;
  11527. // Dispatch the exception by looping back around to the
  11528. // context.dispatchException(context.arg) call above.
  11529. context.method = "throw";
  11530. context.arg = record.arg;
  11531. }
  11532. }
  11533. };
  11534. }
  11535. // Call delegate.iterator[context.method](context.arg) and handle the
  11536. // result, either by returning a { value, done } result from the
  11537. // delegate iterator, or by modifying context.method and context.arg,
  11538. // setting context.delegate to null, and returning the ContinueSentinel.
  11539. function maybeInvokeDelegate(delegate, context) {
  11540. var method = delegate.iterator[context.method];
  11541. if (method === undefined) {
  11542. // A .throw or .return when the delegate iterator has no .throw
  11543. // method always terminates the yield* loop.
  11544. context.delegate = null;
  11545. if (context.method === "throw") {
  11546. if (delegate.iterator.return) {
  11547. // If the delegate iterator has a return method, give it a
  11548. // chance to clean up.
  11549. context.method = "return";
  11550. context.arg = undefined;
  11551. maybeInvokeDelegate(delegate, context);
  11552. if (context.method === "throw") {
  11553. // If maybeInvokeDelegate(context) changed context.method from
  11554. // "return" to "throw", let that override the TypeError below.
  11555. return ContinueSentinel;
  11556. }
  11557. }
  11558. context.method = "throw";
  11559. context.arg = new TypeError(
  11560. "The iterator does not provide a 'throw' method");
  11561. }
  11562. return ContinueSentinel;
  11563. }
  11564. var record = tryCatch(method, delegate.iterator, context.arg);
  11565. if (record.type === "throw") {
  11566. context.method = "throw";
  11567. context.arg = record.arg;
  11568. context.delegate = null;
  11569. return ContinueSentinel;
  11570. }
  11571. var info = record.arg;
  11572. if (! info) {
  11573. context.method = "throw";
  11574. context.arg = new TypeError("iterator result is not an object");
  11575. context.delegate = null;
  11576. return ContinueSentinel;
  11577. }
  11578. if (info.done) {
  11579. // Assign the result of the finished delegate to the temporary
  11580. // variable specified by delegate.resultName (see delegateYield).
  11581. context[delegate.resultName] = info.value;
  11582. // Resume execution at the desired location (see delegateYield).
  11583. context.next = delegate.nextLoc;
  11584. // If context.method was "throw" but the delegate handled the
  11585. // exception, let the outer generator proceed normally. If
  11586. // context.method was "next", forget context.arg since it has been
  11587. // "consumed" by the delegate iterator. If context.method was
  11588. // "return", allow the original .return call to continue in the
  11589. // outer generator.
  11590. if (context.method !== "return") {
  11591. context.method = "next";
  11592. context.arg = undefined;
  11593. }
  11594. } else {
  11595. // Re-yield the result returned by the delegate method.
  11596. return info;
  11597. }
  11598. // The delegate iterator is finished, so forget it and continue with
  11599. // the outer generator.
  11600. context.delegate = null;
  11601. return ContinueSentinel;
  11602. }
  11603. // Define Generator.prototype.{next,throw,return} in terms of the
  11604. // unified ._invoke helper method.
  11605. defineIteratorMethods(Gp);
  11606. Gp[toStringTagSymbol] = "Generator";
  11607. // A Generator should always return itself as the iterator object when the
  11608. // @@iterator function is called on it. Some browsers' implementations of the
  11609. // iterator prototype chain incorrectly implement this, causing the Generator
  11610. // object to not be returned from this call. This ensures that doesn't happen.
  11611. // See https://github.com/facebook/regenerator/issues/274 for more details.
  11612. Gp[iteratorSymbol] = function() {
  11613. return this;
  11614. };
  11615. Gp.toString = function() {
  11616. return "[object Generator]";
  11617. };
  11618. function pushTryEntry(locs) {
  11619. var entry = { tryLoc: locs[0] };
  11620. if (1 in locs) {
  11621. entry.catchLoc = locs[1];
  11622. }
  11623. if (2 in locs) {
  11624. entry.finallyLoc = locs[2];
  11625. entry.afterLoc = locs[3];
  11626. }
  11627. this.tryEntries.push(entry);
  11628. }
  11629. function resetTryEntry(entry) {
  11630. var record = entry.completion || {};
  11631. record.type = "normal";
  11632. delete record.arg;
  11633. entry.completion = record;
  11634. }
  11635. function Context(tryLocsList) {
  11636. // The root entry object (effectively a try statement without a catch
  11637. // or a finally block) gives us a place to store values thrown from
  11638. // locations where there is no enclosing try statement.
  11639. this.tryEntries = [{ tryLoc: "root" }];
  11640. tryLocsList.forEach(pushTryEntry, this);
  11641. this.reset(true);
  11642. }
  11643. runtime.keys = function(object) {
  11644. var keys = [];
  11645. for (var key in object) {
  11646. keys.push(key);
  11647. }
  11648. keys.reverse();
  11649. // Rather than returning an object with a next method, we keep
  11650. // things simple and return the next function itself.
  11651. return function next() {
  11652. while (keys.length) {
  11653. var key = keys.pop();
  11654. if (key in object) {
  11655. next.value = key;
  11656. next.done = false;
  11657. return next;
  11658. }
  11659. }
  11660. // To avoid creating an additional object, we just hang the .value
  11661. // and .done properties off the next function object itself. This
  11662. // also ensures that the minifier will not anonymize the function.
  11663. next.done = true;
  11664. return next;
  11665. };
  11666. };
  11667. function values(iterable) {
  11668. if (iterable) {
  11669. var iteratorMethod = iterable[iteratorSymbol];
  11670. if (iteratorMethod) {
  11671. return iteratorMethod.call(iterable);
  11672. }
  11673. if (typeof iterable.next === "function") {
  11674. return iterable;
  11675. }
  11676. if (!isNaN(iterable.length)) {
  11677. var i = -1, next = function next() {
  11678. while (++i < iterable.length) {
  11679. if (hasOwn.call(iterable, i)) {
  11680. next.value = iterable[i];
  11681. next.done = false;
  11682. return next;
  11683. }
  11684. }
  11685. next.value = undefined;
  11686. next.done = true;
  11687. return next;
  11688. };
  11689. return next.next = next;
  11690. }
  11691. }
  11692. // Return an iterator with no values.
  11693. return { next: doneResult };
  11694. }
  11695. runtime.values = values;
  11696. function doneResult() {
  11697. return { value: undefined, done: true };
  11698. }
  11699. Context.prototype = {
  11700. constructor: Context,
  11701. reset: function(skipTempReset) {
  11702. this.prev = 0;
  11703. this.next = 0;
  11704. // Resetting context._sent for legacy support of Babel's
  11705. // function.sent implementation.
  11706. this.sent = this._sent = undefined;
  11707. this.done = false;
  11708. this.delegate = null;
  11709. this.method = "next";
  11710. this.arg = undefined;
  11711. this.tryEntries.forEach(resetTryEntry);
  11712. if (!skipTempReset) {
  11713. for (var name in this) {
  11714. // Not sure about the optimal order of these conditions:
  11715. if (name.charAt(0) === "t" &&
  11716. hasOwn.call(this, name) &&
  11717. !isNaN(+name.slice(1))) {
  11718. this[name] = undefined;
  11719. }
  11720. }
  11721. }
  11722. },
  11723. stop: function() {
  11724. this.done = true;
  11725. var rootEntry = this.tryEntries[0];
  11726. var rootRecord = rootEntry.completion;
  11727. if (rootRecord.type === "throw") {
  11728. throw rootRecord.arg;
  11729. }
  11730. return this.rval;
  11731. },
  11732. dispatchException: function(exception) {
  11733. if (this.done) {
  11734. throw exception;
  11735. }
  11736. var context = this;
  11737. function handle(loc, caught) {
  11738. record.type = "throw";
  11739. record.arg = exception;
  11740. context.next = loc;
  11741. if (caught) {
  11742. // If the dispatched exception was caught by a catch block,
  11743. // then let that catch block handle the exception normally.
  11744. context.method = "next";
  11745. context.arg = undefined;
  11746. }
  11747. return !! caught;
  11748. }
  11749. for (var i = this.tryEntries.length - 1; i >= 0; --i) {
  11750. var entry = this.tryEntries[i];
  11751. var record = entry.completion;
  11752. if (entry.tryLoc === "root") {
  11753. // Exception thrown outside of any try block that could handle
  11754. // it, so set the completion value of the entire function to
  11755. // throw the exception.
  11756. return handle("end");
  11757. }
  11758. if (entry.tryLoc <= this.prev) {
  11759. var hasCatch = hasOwn.call(entry, "catchLoc");
  11760. var hasFinally = hasOwn.call(entry, "finallyLoc");
  11761. if (hasCatch && hasFinally) {
  11762. if (this.prev < entry.catchLoc) {
  11763. return handle(entry.catchLoc, true);
  11764. } else if (this.prev < entry.finallyLoc) {
  11765. return handle(entry.finallyLoc);
  11766. }
  11767. } else if (hasCatch) {
  11768. if (this.prev < entry.catchLoc) {
  11769. return handle(entry.catchLoc, true);
  11770. }
  11771. } else if (hasFinally) {
  11772. if (this.prev < entry.finallyLoc) {
  11773. return handle(entry.finallyLoc);
  11774. }
  11775. } else {
  11776. throw new Error("try statement without catch or finally");
  11777. }
  11778. }
  11779. }
  11780. },
  11781. abrupt: function(type, arg) {
  11782. for (var i = this.tryEntries.length - 1; i >= 0; --i) {
  11783. var entry = this.tryEntries[i];
  11784. if (entry.tryLoc <= this.prev &&
  11785. hasOwn.call(entry, "finallyLoc") &&
  11786. this.prev < entry.finallyLoc) {
  11787. var finallyEntry = entry;
  11788. break;
  11789. }
  11790. }
  11791. if (finallyEntry &&
  11792. (type === "break" ||
  11793. type === "continue") &&
  11794. finallyEntry.tryLoc <= arg &&
  11795. arg <= finallyEntry.finallyLoc) {
  11796. // Ignore the finally entry if control is not jumping to a
  11797. // location outside the try/catch block.
  11798. finallyEntry = null;
  11799. }
  11800. var record = finallyEntry ? finallyEntry.completion : {};
  11801. record.type = type;
  11802. record.arg = arg;
  11803. if (finallyEntry) {
  11804. this.method = "next";
  11805. this.next = finallyEntry.finallyLoc;
  11806. return ContinueSentinel;
  11807. }
  11808. return this.complete(record);
  11809. },
  11810. complete: function(record, afterLoc) {
  11811. if (record.type === "throw") {
  11812. throw record.arg;
  11813. }
  11814. if (record.type === "break" ||
  11815. record.type === "continue") {
  11816. this.next = record.arg;
  11817. } else if (record.type === "return") {
  11818. this.rval = this.arg = record.arg;
  11819. this.method = "return";
  11820. this.next = "end";
  11821. } else if (record.type === "normal" && afterLoc) {
  11822. this.next = afterLoc;
  11823. }
  11824. return ContinueSentinel;
  11825. },
  11826. finish: function(finallyLoc) {
  11827. for (var i = this.tryEntries.length - 1; i >= 0; --i) {
  11828. var entry = this.tryEntries[i];
  11829. if (entry.finallyLoc === finallyLoc) {
  11830. this.complete(entry.completion, entry.afterLoc);
  11831. resetTryEntry(entry);
  11832. return ContinueSentinel;
  11833. }
  11834. }
  11835. },
  11836. "catch": function(tryLoc) {
  11837. for (var i = this.tryEntries.length - 1; i >= 0; --i) {
  11838. var entry = this.tryEntries[i];
  11839. if (entry.tryLoc === tryLoc) {
  11840. var record = entry.completion;
  11841. if (record.type === "throw") {
  11842. var thrown = record.arg;
  11843. resetTryEntry(entry);
  11844. }
  11845. return thrown;
  11846. }
  11847. }
  11848. // The context.catch method must only be called with a location
  11849. // argument that corresponds to a known catch block.
  11850. throw new Error("illegal catch attempt");
  11851. },
  11852. delegateYield: function(iterable, resultName, nextLoc) {
  11853. this.delegate = {
  11854. iterator: values(iterable),
  11855. resultName: resultName,
  11856. nextLoc: nextLoc
  11857. };
  11858. if (this.method === "next") {
  11859. // Deliberately forget the last sent value so that we don't
  11860. // accidentally pass it on to the delegate.
  11861. this.arg = undefined;
  11862. }
  11863. return ContinueSentinel;
  11864. }
  11865. };
  11866. })(
  11867. // In sloppy mode, unbound `this` refers to the global object, fallback to
  11868. // Function constructor if we're in global strict mode. That is sadly a form
  11869. // of indirect eval which violates Content Security Policy.
  11870. (function() {
  11871. return this || (typeof self === "object" && self);
  11872. })() || Function("return this")()
  11873. );
  11874. /***/ }),
  11875. /* 37 */
  11876. /*!*****************************************************************************!*\
  11877. !*** E:/代码/cbz/cbz/cbz/uni_modules/uview-ui/libs/function/colorGradient.js ***!
  11878. \*****************************************************************************/
  11879. /*! no static exports found */
  11880. /***/ (function(module, exports, __webpack_require__) {
  11881. "use strict";
  11882. Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0; /**
  11883. * 求两个颜色之间的渐变值
  11884. * @param {string} startColor 开始的颜色
  11885. * @param {string} endColor 结束的颜色
  11886. * @param {number} step 颜色等分的份额
  11887. * */
  11888. function colorGradient() {var startColor = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'rgb(0, 0, 0)';var endColor = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'rgb(255, 255, 255)';var step = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 10;
  11889. var startRGB = hexToRgb(startColor, false); // 转换为rgb数组模式
  11890. var startR = startRGB[0];
  11891. var startG = startRGB[1];
  11892. var startB = startRGB[2];
  11893. var endRGB = hexToRgb(endColor, false);
  11894. var endR = endRGB[0];
  11895. var endG = endRGB[1];
  11896. var endB = endRGB[2];
  11897. var sR = (endR - startR) / step; // 总差值
  11898. var sG = (endG - startG) / step;
  11899. var sB = (endB - startB) / step;
  11900. var colorArr = [];
  11901. for (var i = 0; i < step; i++) {
  11902. // 计算每一步的hex值
  11903. var hex = rgbToHex("rgb(".concat(Math.round(sR * i + startR), ",").concat(Math.round(sG * i + startG), ",").concat(Math.round(sB *
  11904. i + startB), ")"));
  11905. // 确保第一个颜色值为startColor的值
  11906. if (i === 0) hex = rgbToHex(startColor);
  11907. // 确保最后一个颜色值为endColor的值
  11908. if (i === step - 1) hex = rgbToHex(endColor);
  11909. colorArr.push(hex);
  11910. }
  11911. return colorArr;
  11912. }
  11913. // 将hex表示方式转换为rgb表示方式(这里返回rgb数组模式)
  11914. function hexToRgb(sColor) {var str = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;
  11915. var reg = /^#([0-9a-fA-f]{3}|[0-9a-fA-f]{6})$/;
  11916. sColor = String(sColor).toLowerCase();
  11917. if (sColor && reg.test(sColor)) {
  11918. if (sColor.length === 4) {
  11919. var sColorNew = '#';
  11920. for (var i = 1; i < 4; i += 1) {
  11921. sColorNew += sColor.slice(i, i + 1).concat(sColor.slice(i, i + 1));
  11922. }
  11923. sColor = sColorNew;
  11924. }
  11925. // 处理六位的颜色值
  11926. var sColorChange = [];
  11927. for (var _i = 1; _i < 7; _i += 2) {
  11928. sColorChange.push(parseInt("0x".concat(sColor.slice(_i, _i + 2))));
  11929. }
  11930. if (!str) {
  11931. return sColorChange;
  11932. }
  11933. return "rgb(".concat(sColorChange[0], ",").concat(sColorChange[1], ",").concat(sColorChange[2], ")");
  11934. }if (/^(rgb|RGB)/.test(sColor)) {
  11935. var arr = sColor.replace(/(?:\(|\)|rgb|RGB)*/g, '').split(',');
  11936. return arr.map(function (val) {return Number(val);});
  11937. }
  11938. return sColor;
  11939. }
  11940. // 将rgb表示方式转换为hex表示方式
  11941. function rgbToHex(rgb) {
  11942. var _this = rgb;
  11943. var reg = /^#([0-9a-fA-f]{3}|[0-9a-fA-f]{6})$/;
  11944. if (/^(rgb|RGB)/.test(_this)) {
  11945. var aColor = _this.replace(/(?:\(|\)|rgb|RGB)*/g, '').split(',');
  11946. var strHex = '#';
  11947. for (var i = 0; i < aColor.length; i++) {
  11948. var hex = Number(aColor[i]).toString(16);
  11949. hex = String(hex).length == 1 ? "".concat(0, hex) : hex; // 保证每个rgb的值为2位
  11950. if (hex === '0') {
  11951. hex += hex;
  11952. }
  11953. strHex += hex;
  11954. }
  11955. if (strHex.length !== 7) {
  11956. strHex = _this;
  11957. }
  11958. return strHex;
  11959. }if (reg.test(_this)) {
  11960. var aNum = _this.replace(/#/, '').split('');
  11961. if (aNum.length === 6) {
  11962. return _this;
  11963. }if (aNum.length === 3) {
  11964. var numHex = '#';
  11965. for (var _i2 = 0; _i2 < aNum.length; _i2 += 1) {
  11966. numHex += aNum[_i2] + aNum[_i2];
  11967. }
  11968. return numHex;
  11969. }
  11970. } else {
  11971. return _this;
  11972. }
  11973. }
  11974. /**
  11975. * JS颜色十六进制转换为rgb或rgba,返回的格式为 rgba(255,255,255,0.5)字符串
  11976. * sHex为传入的十六进制的色值
  11977. * alpha为rgba的透明度
  11978. */
  11979. function colorToRgba(color, alpha) {
  11980. color = rgbToHex(color);
  11981. // 十六进制颜色值的正则表达式
  11982. var reg = /^#([0-9a-fA-f]{3}|[0-9a-fA-f]{6})$/;
  11983. /* 16进制颜色转为RGB格式 */
  11984. var sColor = String(color).toLowerCase();
  11985. if (sColor && reg.test(sColor)) {
  11986. if (sColor.length === 4) {
  11987. var sColorNew = '#';
  11988. for (var i = 1; i < 4; i += 1) {
  11989. sColorNew += sColor.slice(i, i + 1).concat(sColor.slice(i, i + 1));
  11990. }
  11991. sColor = sColorNew;
  11992. }
  11993. // 处理六位的颜色值
  11994. var sColorChange = [];
  11995. for (var _i3 = 1; _i3 < 7; _i3 += 2) {
  11996. sColorChange.push(parseInt("0x".concat(sColor.slice(_i3, _i3 + 2))));
  11997. }
  11998. // return sColorChange.join(',')
  11999. return "rgba(".concat(sColorChange.join(','), ",").concat(alpha, ")");
  12000. }
  12001. return sColor;
  12002. }var _default =
  12003. {
  12004. colorGradient: colorGradient,
  12005. hexToRgb: hexToRgb,
  12006. rgbToHex: rgbToHex,
  12007. colorToRgba: colorToRgba };exports.default = _default;
  12008. /***/ }),
  12009. /* 38 */
  12010. /*!********************************************************************!*\
  12011. !*** E:/代码/cbz/cbz/cbz/uni_modules/uview-ui/libs/function/test.js ***!
  12012. \********************************************************************/
  12013. /*! no static exports found */
  12014. /***/ (function(module, exports, __webpack_require__) {
  12015. "use strict";
  12016. Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0; /**
  12017. * 验证电子邮箱格式
  12018. */
  12019. function email(value) {
  12020. return /^\w+((-\w+)|(\.\w+))*\@[A-Za-z0-9]+((\.|-)[A-Za-z0-9]+)*\.[A-Za-z0-9]+$/.test(value);
  12021. }
  12022. /**
  12023. * 验证手机格式
  12024. */
  12025. function mobile(value) {
  12026. return /^1[23456789]\d{9}$/.test(value);
  12027. }
  12028. /**
  12029. * 验证URL格式
  12030. */
  12031. function url(value) {
  12032. return /^((https|http|ftp|rtsp|mms):\/\/)(([0-9a-zA-Z_!~*'().&=+$%-]+: )?[0-9a-zA-Z_!~*'().&=+$%-]+@)?(([0-9]{1,3}.){3}[0-9]{1,3}|([0-9a-zA-Z_!~*'()-]+.)*([0-9a-zA-Z][0-9a-zA-Z-]{0,61})?[0-9a-zA-Z].[a-zA-Z]{2,6})(:[0-9]{1,4})?((\/?)|(\/[0-9a-zA-Z_!~*'().;?:@&=+$,%#-]+)+\/?)$/.
  12033. test(value);
  12034. }
  12035. /**
  12036. * 验证日期格式
  12037. */
  12038. function date(value) {
  12039. if (!value) return false;
  12040. // 判断是否数值或者字符串数值(意味着为时间戳),转为数值,否则new Date无法识别字符串时间戳
  12041. if (number(value)) value = +value;
  12042. return !/Invalid|NaN/.test(new Date(value).toString());
  12043. }
  12044. /**
  12045. * 验证ISO类型的日期格式
  12046. */
  12047. function dateISO(value) {
  12048. return /^\d{4}[\/\-](0?[1-9]|1[012])[\/\-](0?[1-9]|[12][0-9]|3[01])$/.test(value);
  12049. }
  12050. /**
  12051. * 验证十进制数字
  12052. */
  12053. function number(value) {
  12054. return /^[\+-]?(\d+\.?\d*|\.\d+|\d\.\d+e\+\d+)$/.test(value);
  12055. }
  12056. /**
  12057. * 验证字符串
  12058. */
  12059. function string(value) {
  12060. return typeof value === 'string';
  12061. }
  12062. /**
  12063. * 验证整数
  12064. */
  12065. function digits(value) {
  12066. return /^\d+$/.test(value);
  12067. }
  12068. /**
  12069. * 验证身份证号码
  12070. */
  12071. function idCard(value) {
  12072. return /^[1-9]\d{5}[1-9]\d{3}((0\d)|(1[0-2]))(([0|1|2]\d)|3[0-1])\d{3}([0-9]|X)$/.test(
  12073. value);
  12074. }
  12075. /**
  12076. * 是否车牌号
  12077. */
  12078. function carNo(value) {
  12079. // 新能源车牌
  12080. var xreg = /^[京津沪渝冀豫云辽黑湘皖鲁新苏浙赣鄂桂甘晋蒙陕吉闽贵粤青藏川宁琼使领A-Z]{1}[A-Z]{1}(([0-9]{5}[DF]$)|([DF][A-HJ-NP-Z0-9][0-9]{4}$))/;
  12081. // 旧车牌
  12082. var creg = /^[京津沪渝冀豫云辽黑湘皖鲁新苏浙赣鄂桂甘晋蒙陕吉闽贵粤青藏川宁琼使领A-Z]{1}[A-Z]{1}[A-HJ-NP-Z0-9]{4}[A-HJ-NP-Z0-9挂学警港澳]{1}$/;
  12083. if (value.length === 7) {
  12084. return creg.test(value);
  12085. }if (value.length === 8) {
  12086. return xreg.test(value);
  12087. }
  12088. return false;
  12089. }
  12090. /**
  12091. * 金额,只允许2位小数
  12092. */
  12093. function amount(value) {
  12094. // 金额,只允许保留两位小数
  12095. return /^[1-9]\d*(,\d{3})*(\.\d{1,2})?$|^0\.\d{1,2}$/.test(value);
  12096. }
  12097. /**
  12098. * 中文
  12099. */
  12100. function chinese(value) {
  12101. var reg = /^[\u4e00-\u9fa5]+$/gi;
  12102. return reg.test(value);
  12103. }
  12104. /**
  12105. * 只能输入字母
  12106. */
  12107. function letter(value) {
  12108. return /^[a-zA-Z]*$/.test(value);
  12109. }
  12110. /**
  12111. * 只能是字母或者数字
  12112. */
  12113. function enOrNum(value) {
  12114. // 英文或者数字
  12115. var reg = /^[0-9a-zA-Z]*$/g;
  12116. return reg.test(value);
  12117. }
  12118. /**
  12119. * 验证是否包含某个值
  12120. */
  12121. function contains(value, param) {
  12122. return value.indexOf(param) >= 0;
  12123. }
  12124. /**
  12125. * 验证一个值范围[min, max]
  12126. */
  12127. function range(value, param) {
  12128. return value >= param[0] && value <= param[1];
  12129. }
  12130. /**
  12131. * 验证一个长度范围[min, max]
  12132. */
  12133. function rangeLength(value, param) {
  12134. return value.length >= param[0] && value.length <= param[1];
  12135. }
  12136. /**
  12137. * 是否固定电话
  12138. */
  12139. function landline(value) {
  12140. var reg = /^\d{3,4}-\d{7,8}(-\d{3,4})?$/;
  12141. return reg.test(value);
  12142. }
  12143. /**
  12144. * 判断是否为空
  12145. */
  12146. function empty(value) {
  12147. switch (typeof value) {
  12148. case 'undefined':
  12149. return true;
  12150. case 'string':
  12151. if (value.replace(/(^[ \t\n\r]*)|([ \t\n\r]*$)/g, '').length == 0) return true;
  12152. break;
  12153. case 'boolean':
  12154. if (!value) return true;
  12155. break;
  12156. case 'number':
  12157. if (value === 0 || isNaN(value)) return true;
  12158. break;
  12159. case 'object':
  12160. if (value === null || value.length === 0) return true;
  12161. for (var i in value) {
  12162. return false;
  12163. }
  12164. return true;}
  12165. return false;
  12166. }
  12167. /**
  12168. * 是否json字符串
  12169. */
  12170. function jsonString(value) {
  12171. if (typeof value === 'string') {
  12172. try {
  12173. var obj = JSON.parse(value);
  12174. if (typeof obj === 'object' && obj) {
  12175. return true;
  12176. }
  12177. return false;
  12178. } catch (e) {
  12179. return false;
  12180. }
  12181. }
  12182. return false;
  12183. }
  12184. /**
  12185. * 是否数组
  12186. */
  12187. function array(value) {
  12188. if (typeof Array.isArray === 'function') {
  12189. return Array.isArray(value);
  12190. }
  12191. return Object.prototype.toString.call(value) === '[object Array]';
  12192. }
  12193. /**
  12194. * 是否对象
  12195. */
  12196. function object(value) {
  12197. return Object.prototype.toString.call(value) === '[object Object]';
  12198. }
  12199. /**
  12200. * 是否短信验证码
  12201. */
  12202. function code(value) {var len = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 6;
  12203. return new RegExp("^\\d{".concat(len, "}$")).test(value);
  12204. }
  12205. /**
  12206. * 是否函数方法
  12207. * @param {Object} value
  12208. */
  12209. function func(value) {
  12210. return typeof value === 'function';
  12211. }
  12212. /**
  12213. * 是否promise对象
  12214. * @param {Object} value
  12215. */
  12216. function promise(value) {
  12217. return object(value) && func(value.then) && func(value.catch);
  12218. }
  12219. /** 是否图片格式
  12220. * @param {Object} value
  12221. */
  12222. function image(value) {
  12223. var newValue = value.split('?')[0];
  12224. var IMAGE_REGEXP = /\.(jpeg|jpg|gif|png|svg|webp|jfif|bmp|dpg)/i;
  12225. return IMAGE_REGEXP.test(newValue);
  12226. }
  12227. /**
  12228. * 是否视频格式
  12229. * @param {Object} value
  12230. */
  12231. function video(value) {
  12232. var VIDEO_REGEXP = /\.(mp4|mpg|mpeg|dat|asf|avi|rm|rmvb|mov|wmv|flv|mkv|m3u8)/i;
  12233. return VIDEO_REGEXP.test(value);
  12234. }
  12235. /**
  12236. * 是否为正则对象
  12237. * @param {Object}
  12238. * @return {Boolean}
  12239. */
  12240. function regExp(o) {
  12241. return o && Object.prototype.toString.call(o) === '[object RegExp]';
  12242. }var _default =
  12243. {
  12244. email: email,
  12245. mobile: mobile,
  12246. url: url,
  12247. date: date,
  12248. dateISO: dateISO,
  12249. number: number,
  12250. digits: digits,
  12251. idCard: idCard,
  12252. carNo: carNo,
  12253. amount: amount,
  12254. chinese: chinese,
  12255. letter: letter,
  12256. enOrNum: enOrNum,
  12257. contains: contains,
  12258. range: range,
  12259. rangeLength: rangeLength,
  12260. empty: empty,
  12261. isEmpty: empty,
  12262. jsonString: jsonString,
  12263. landline: landline,
  12264. object: object,
  12265. array: array,
  12266. code: code,
  12267. func: func,
  12268. promise: promise,
  12269. video: video,
  12270. image: image,
  12271. regExp: regExp,
  12272. string: string };exports.default = _default;
  12273. /***/ }),
  12274. /* 39 */
  12275. /*!************************************************************************!*\
  12276. !*** E:/代码/cbz/cbz/cbz/uni_modules/uview-ui/libs/function/debounce.js ***!
  12277. \************************************************************************/
  12278. /*! no static exports found */
  12279. /***/ (function(module, exports, __webpack_require__) {
  12280. "use strict";
  12281. Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0;var timeout = null;
  12282. /**
  12283. * 防抖原理:一定时间内,只有最后一次操作,再过wait毫秒后才执行函数
  12284. *
  12285. * @param {Function} func 要执行的回调函数
  12286. * @param {Number} wait 延时的时间
  12287. * @param {Boolean} immediate 是否立即执行
  12288. * @return null
  12289. */
  12290. function debounce(func) {var wait = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 500;var immediate = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;
  12291. // 清除定时器
  12292. if (timeout !== null) clearTimeout(timeout);
  12293. // 立即执行,此类情况一般用不到
  12294. if (immediate) {
  12295. var callNow = !timeout;
  12296. timeout = setTimeout(function () {
  12297. timeout = null;
  12298. }, wait);
  12299. if (callNow) typeof func === 'function' && func();
  12300. } else {
  12301. // 设置定时器,当最后一次操作后,timeout不会再被清除,所以在延时wait毫秒后执行func回调方法
  12302. timeout = setTimeout(function () {
  12303. typeof func === 'function' && func();
  12304. }, wait);
  12305. }
  12306. }var _default =
  12307. debounce;exports.default = _default;
  12308. /***/ }),
  12309. /* 40 */
  12310. /*!************************************************************************!*\
  12311. !*** E:/代码/cbz/cbz/cbz/uni_modules/uview-ui/libs/function/throttle.js ***!
  12312. \************************************************************************/
  12313. /*! no static exports found */
  12314. /***/ (function(module, exports, __webpack_require__) {
  12315. "use strict";
  12316. Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0;var timer;var
  12317. flag;
  12318. /**
  12319. * 节流原理:在一定时间内,只能触发一次
  12320. *
  12321. * @param {Function} func 要执行的回调函数
  12322. * @param {Number} wait 延时的时间
  12323. * @param {Boolean} immediate 是否立即执行
  12324. * @return null
  12325. */
  12326. function throttle(func) {var wait = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 500;var immediate = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true;
  12327. if (immediate) {
  12328. if (!flag) {
  12329. flag = true;
  12330. // 如果是立即执行,则在wait毫秒内开始时执行
  12331. typeof func === 'function' && func();
  12332. timer = setTimeout(function () {
  12333. flag = false;
  12334. }, wait);
  12335. }
  12336. } else if (!flag) {
  12337. flag = true;
  12338. // 如果是非立即执行,则在wait毫秒内的结束处执行
  12339. timer = setTimeout(function () {
  12340. flag = false;
  12341. typeof func === 'function' && func();
  12342. }, wait);
  12343. }
  12344. }var _default =
  12345. throttle;exports.default = _default;
  12346. /***/ }),
  12347. /* 41 */
  12348. /*!*********************************************************************!*\
  12349. !*** E:/代码/cbz/cbz/cbz/uni_modules/uview-ui/libs/function/index.js ***!
  12350. \*********************************************************************/
  12351. /*! no static exports found */
  12352. /***/ (function(module, exports, __webpack_require__) {
  12353. "use strict";
  12354. /* WEBPACK VAR INJECTION */(function(uni) {Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0;var _test = _interopRequireDefault(__webpack_require__(/*! ./test.js */ 38));
  12355. var _digit = __webpack_require__(/*! ./digit.js */ 42);function _interopRequireDefault(obj) {return obj && obj.__esModule ? obj : { default: obj };}function _slicedToArray(arr, i) {return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest();}function _nonIterableRest() {throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");}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);}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;}function _iterableToArrayLimit(arr, i) {if (typeof Symbol === "undefined" || !(Symbol.iterator in Object(arr))) return;var _arr = [];var _n = true;var _d = false;var _e = undefined;try {for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) {_arr.push(_s.value);if (i && _arr.length === i) break;}} catch (err) {_d = true;_e = err;} finally {try {if (!_n && _i["return"] != null) _i["return"]();} finally {if (_d) throw _e;}}return _arr;}function _arrayWithHoles(arr) {if (Array.isArray(arr)) return arr;}
  12356. /**
  12357. * @description 如果value小于min,取min;如果value大于max,取max
  12358. * @param {number} min
  12359. * @param {number} max
  12360. * @param {number} value
  12361. */
  12362. function range() {var min = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 0;var max = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;var value = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 0;
  12363. return Math.max(min, Math.min(max, Number(value)));
  12364. }
  12365. /**
  12366. * @description 用于获取用户传递值的px值 如果用户传递了"xxpx"或者"xxrpx",取出其数值部分,如果是"xxxrpx"还需要用过uni.upx2px进行转换
  12367. * @param {number|string} value 用户传递值的px值
  12368. * @param {boolean} unit
  12369. * @returns {number|string}
  12370. */
  12371. function getPx(value) {var unit = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
  12372. if (_test.default.number(value)) {
  12373. return unit ? "".concat(value, "px") : Number(value);
  12374. }
  12375. // 如果带有rpx,先取出其数值部分,再转为px值
  12376. if (/(rpx|upx)$/.test(value)) {
  12377. return unit ? "".concat(uni.upx2px(parseInt(value)), "px") : Number(uni.upx2px(parseInt(value)));
  12378. }
  12379. return unit ? "".concat(parseInt(value), "px") : parseInt(value);
  12380. }
  12381. /**
  12382. * @description 进行延时,以达到可以简写代码的目的 比如: await uni.$u.sleep(20)将会阻塞20ms
  12383. * @param {number} value 堵塞时间 单位ms 毫秒
  12384. * @returns {Promise} 返回promise
  12385. */
  12386. function sleep() {var value = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 30;
  12387. return new Promise(function (resolve) {
  12388. setTimeout(function () {
  12389. resolve();
  12390. }, value);
  12391. });
  12392. }
  12393. /**
  12394. * @description 运行期判断平台
  12395. * @returns {string} 返回所在平台(小写)
  12396. * @link 运行期判断平台 https://uniapp.dcloud.io/frame?id=判断平台
  12397. */
  12398. function os() {
  12399. return uni.getSystemInfoSync().platform.toLowerCase();
  12400. }
  12401. /**
  12402. * @description 获取系统信息同步接口
  12403. * @link 获取系统信息同步接口 https://uniapp.dcloud.io/api/system/info?id=getsysteminfosync
  12404. */
  12405. function sys() {
  12406. return uni.getSystemInfoSync();
  12407. }
  12408. /**
  12409. * @description 取一个区间数
  12410. * @param {Number} min 最小值
  12411. * @param {Number} max 最大值
  12412. */
  12413. function random(min, max) {
  12414. if (min >= 0 && max > 0 && max >= min) {
  12415. var gab = max - min + 1;
  12416. return Math.floor(Math.random() * gab + min);
  12417. }
  12418. return 0;
  12419. }
  12420. /**
  12421. * @param {Number} len uuid的长度
  12422. * @param {Boolean} firstU 将返回的首字母置为"u"
  12423. * @param {Nubmer} radix 生成uuid的基数(意味着返回的字符串都是这个基数),2-二进制,8-八进制,10-十进制,16-十六进制
  12424. */
  12425. function guid() {var len = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 32;var firstU = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;var radix = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : null;
  12426. var chars = '0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz'.split('');
  12427. var uuid = [];
  12428. radix = radix || chars.length;
  12429. if (len) {
  12430. // 如果指定uuid长度,只是取随机的字符,0|x为位运算,能去掉x的小数位,返回整数位
  12431. for (var i = 0; i < len; i++) {uuid[i] = chars[0 | Math.random() * radix];}
  12432. } else {
  12433. var r;
  12434. // rfc4122标准要求返回的uuid中,某些位为固定的字符
  12435. uuid[8] = uuid[13] = uuid[18] = uuid[23] = '-';
  12436. uuid[14] = '4';
  12437. for (var _i = 0; _i < 36; _i++) {
  12438. if (!uuid[_i]) {
  12439. r = 0 | Math.random() * 16;
  12440. uuid[_i] = chars[_i == 19 ? r & 0x3 | 0x8 : r];
  12441. }
  12442. }
  12443. }
  12444. // 移除第一个字符,并用u替代,因为第一个字符为数值时,该guuid不能用作id或者class
  12445. if (firstU) {
  12446. uuid.shift();
  12447. return "u".concat(uuid.join(''));
  12448. }
  12449. return uuid.join('');
  12450. }
  12451. /**
  12452. * @description 获取父组件的参数,因为支付宝小程序不支持provide/inject的写法
  12453. this.$parent在非H5中,可以准确获取到父组件,但是在H5中,需要多次this.$parent.$parent.xxx
  12454. 这里默认值等于undefined有它的含义,因为最顶层元素(组件)的$parent就是undefined,意味着不传name
  12455. 值(默认为undefined),就是查找最顶层的$parent
  12456. * @param {string|undefined} name 父组件的参数名
  12457. */
  12458. function $parent() {var name = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : undefined;
  12459. var parent = this.$parent;
  12460. // 通过while历遍,这里主要是为了H5需要多层解析的问题
  12461. while (parent) {
  12462. // 父组件
  12463. if (parent.$options && parent.$options.name !== name) {
  12464. // 如果组件的name不相等,继续上一级寻找
  12465. parent = parent.$parent;
  12466. } else {
  12467. return parent;
  12468. }
  12469. }
  12470. return false;
  12471. }
  12472. /**
  12473. * @description 样式转换
  12474. * 对象转字符串,或者字符串转对象
  12475. * @param {object | string} customStyle 需要转换的目标
  12476. * @param {String} target 转换的目的,object-转为对象,string-转为字符串
  12477. * @returns {object|string}
  12478. */
  12479. function addStyle(customStyle) {var target = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'object';
  12480. // 字符串转字符串,对象转对象情形,直接返回
  12481. if (_test.default.empty(customStyle) || typeof customStyle === 'object' && target === 'object' || target === 'string' &&
  12482. typeof customStyle === 'string') {
  12483. return customStyle;
  12484. }
  12485. // 字符串转对象
  12486. if (target === 'object') {
  12487. // 去除字符串样式中的两端空格(中间的空格不能去掉,比如padding: 20px 0如果去掉了就错了),空格是无用的
  12488. customStyle = trim(customStyle);
  12489. // 根据";"将字符串转为数组形式
  12490. var styleArray = customStyle.split(';');
  12491. var style = {};
  12492. // 历遍数组,拼接成对象
  12493. for (var i = 0; i < styleArray.length; i++) {
  12494. // 'font-size:20px;color:red;',如此最后字符串有";"的话,会导致styleArray最后一个元素为空字符串,这里需要过滤
  12495. if (styleArray[i]) {
  12496. var item = styleArray[i].split(':');
  12497. style[trim(item[0])] = trim(item[1]);
  12498. }
  12499. }
  12500. return style;
  12501. }
  12502. // 这里为对象转字符串形式
  12503. var string = '';
  12504. for (var _i2 in customStyle) {
  12505. // 驼峰转为中划线的形式,否则css内联样式,无法识别驼峰样式属性名
  12506. var key = _i2.replace(/([A-Z])/g, '-$1').toLowerCase();
  12507. string += "".concat(key, ":").concat(customStyle[_i2], ";");
  12508. }
  12509. // 去除两端空格
  12510. return trim(string);
  12511. }
  12512. /**
  12513. * @description 添加单位,如果有rpx,upx,%,px等单位结尾或者值为auto,直接返回,否则加上px单位结尾
  12514. * @param {string|number} value 需要添加单位的值
  12515. * @param {string} unit 添加的单位名 比如px
  12516. */
  12517. function addUnit() {var _uni$$u$config$unit, _uni, _uni$$u, _uni$$u$config;var value = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'auto';var unit = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : (_uni$$u$config$unit = (_uni = uni) === null || _uni === void 0 ? void 0 : (_uni$$u = _uni.$u) === null || _uni$$u === void 0 ? void 0 : (_uni$$u$config = _uni$$u.config) === null || _uni$$u$config === void 0 ? void 0 : _uni$$u$config.unit) !== null && _uni$$u$config$unit !== void 0 ? _uni$$u$config$unit : 'px';
  12518. value = String(value);
  12519. // 用uView内置验证规则中的number判断是否为数值
  12520. return _test.default.number(value) ? "".concat(value).concat(unit) : value;
  12521. }
  12522. /**
  12523. * @description 深度克隆
  12524. * @param {object} obj 需要深度克隆的对象
  12525. * @returns {*} 克隆后的对象或者原值(不是对象)
  12526. */
  12527. function deepClone(obj) {
  12528. // 对常见的“非”值,直接返回原来值
  12529. if ([null, undefined, NaN, false].includes(obj)) return obj;
  12530. if (typeof obj !== 'object' && typeof obj !== 'function') {
  12531. // 原始类型直接返回
  12532. return obj;
  12533. }
  12534. var o = _test.default.array(obj) ? [] : {};
  12535. for (var i in obj) {
  12536. if (obj.hasOwnProperty(i)) {
  12537. o[i] = typeof obj[i] === 'object' ? deepClone(obj[i]) : obj[i];
  12538. }
  12539. }
  12540. return o;
  12541. }
  12542. /**
  12543. * @description JS对象深度合并
  12544. * @param {object} target 需要拷贝的对象
  12545. * @param {object} source 拷贝的来源对象
  12546. * @returns {object|boolean} 深度合并后的对象或者false(入参有不是对象)
  12547. */
  12548. function deepMerge() {var target = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};var source = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  12549. target = deepClone(target);
  12550. if (typeof target !== 'object' || typeof source !== 'object') return false;
  12551. for (var prop in source) {
  12552. if (!source.hasOwnProperty(prop)) continue;
  12553. if (prop in target) {
  12554. if (typeof target[prop] !== 'object') {
  12555. target[prop] = source[prop];
  12556. } else if (typeof source[prop] !== 'object') {
  12557. target[prop] = source[prop];
  12558. } else if (target[prop].concat && source[prop].concat) {
  12559. target[prop] = target[prop].concat(source[prop]);
  12560. } else {
  12561. target[prop] = deepMerge(target[prop], source[prop]);
  12562. }
  12563. } else {
  12564. target[prop] = source[prop];
  12565. }
  12566. }
  12567. return target;
  12568. }
  12569. /**
  12570. * @description error提示
  12571. * @param {*} err 错误内容
  12572. */
  12573. function error(err) {
  12574. // 开发环境才提示,生产环境不会提示
  12575. if (true) {
  12576. console.error("uView\u63D0\u793A\uFF1A".concat(err));
  12577. }
  12578. }
  12579. /**
  12580. * @description 打乱数组
  12581. * @param {array} array 需要打乱的数组
  12582. * @returns {array} 打乱后的数组
  12583. */
  12584. function randomArray() {var array = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
  12585. // 原理是sort排序,Math.random()产生0<= x < 1之间的数,会导致x-0.05大于或者小于0
  12586. return array.sort(function () {return Math.random() - 0.5;});
  12587. }
  12588. // padStart 的 polyfill,因为某些机型或情况,还无法支持es7的padStart,比如电脑版的微信小程序
  12589. // 所以这里做一个兼容polyfill的兼容处理
  12590. if (!String.prototype.padStart) {
  12591. // 为了方便表示这里 fillString 用了ES6 的默认参数,不影响理解
  12592. String.prototype.padStart = function (maxLength) {var fillString = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : ' ';
  12593. if (Object.prototype.toString.call(fillString) !== '[object String]') {
  12594. throw new TypeError(
  12595. 'fillString must be String');
  12596. }
  12597. var str = this;
  12598. // 返回 String(str) 这里是为了使返回的值是字符串字面量,在控制台中更符合直觉
  12599. if (str.length >= maxLength) return String(str);
  12600. var fillLength = maxLength - str.length;
  12601. var times = Math.ceil(fillLength / fillString.length);
  12602. while (times >>= 1) {
  12603. fillString += fillString;
  12604. if (times === 1) {
  12605. fillString += fillString;
  12606. }
  12607. }
  12608. return fillString.slice(0, fillLength) + str;
  12609. };
  12610. }
  12611. /**
  12612. * @description 格式化时间
  12613. * @param {String|Number} dateTime 需要格式化的时间戳
  12614. * @param {String} fmt 格式化规则 yyyy:mm:dd|yyyy:mm|yyyy年mm月dd日|yyyy年mm月dd日 hh时MM分等,可自定义组合 默认yyyy-mm-dd
  12615. * @returns {string} 返回格式化后的字符串
  12616. */
  12617. function timeFormat() {var dateTime = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null;var formatStr = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'yyyy-mm-dd';
  12618. var date;
  12619. // 若传入时间为假值,则取当前时间
  12620. if (!dateTime) {
  12621. date = new Date();
  12622. }
  12623. // 若为unix秒时间戳,则转为毫秒时间戳(逻辑有点奇怪,但不敢改,以保证历史兼容)
  12624. else if (/^\d{10}$/.test(dateTime === null || dateTime === void 0 ? void 0 : dateTime.toString().trim())) {
  12625. date = new Date(dateTime * 1000);
  12626. }
  12627. // 若用户传入字符串格式时间戳,new Date无法解析,需做兼容
  12628. else if (typeof dateTime === 'string' && /^\d+$/.test(dateTime.trim())) {
  12629. date = new Date(Number(dateTime));
  12630. }
  12631. // 其他都认为符合 RFC 2822 规范
  12632. else {
  12633. // 处理平台性差异,在Safari/Webkit中,new Date仅支持/作为分割符的字符串时间
  12634. date = new Date(
  12635. typeof dateTime === 'string' ?
  12636. dateTime.replace(/-/g, '/') :
  12637. dateTime);
  12638. }
  12639. var timeSource = {
  12640. 'y': date.getFullYear().toString(), // 年
  12641. 'm': (date.getMonth() + 1).toString().padStart(2, '0'), // 月
  12642. 'd': date.getDate().toString().padStart(2, '0'), // 日
  12643. 'h': date.getHours().toString().padStart(2, '0'), // 时
  12644. 'M': date.getMinutes().toString().padStart(2, '0'), // 分
  12645. 's': date.getSeconds().toString().padStart(2, '0') // 秒
  12646. // 有其他格式化字符需求可以继续添加,必须转化成字符串
  12647. };
  12648. for (var key in timeSource) {var _ref =
  12649. new RegExp("".concat(key, "+")).exec(formatStr) || [],_ref2 = _slicedToArray(_ref, 1),ret = _ref2[0];
  12650. if (ret) {
  12651. // 年可能只需展示两位
  12652. var beginIndex = key === 'y' && ret.length === 2 ? 2 : 0;
  12653. formatStr = formatStr.replace(ret, timeSource[key].slice(beginIndex));
  12654. }
  12655. }
  12656. return formatStr;
  12657. }
  12658. /**
  12659. * @description 时间戳转为多久之前
  12660. * @param {String|Number} timestamp 时间戳
  12661. * @param {String|Boolean} format
  12662. * 格式化规则如果为时间格式字符串,超出一定时间范围,返回固定的时间格式;
  12663. * 如果为布尔值false,无论什么时间,都返回多久以前的格式
  12664. * @returns {string} 转化后的内容
  12665. */
  12666. function timeFrom() {var timestamp = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null;var format = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'yyyy-mm-dd';
  12667. if (timestamp == null) timestamp = Number(new Date());
  12668. timestamp = parseInt(timestamp);
  12669. // 判断用户输入的时间戳是秒还是毫秒,一般前端js获取的时间戳是毫秒(13位),后端传过来的为秒(10位)
  12670. if (timestamp.toString().length == 10) timestamp *= 1000;
  12671. var timer = new Date().getTime() - timestamp;
  12672. timer = parseInt(timer / 1000);
  12673. // 如果小于5分钟,则返回"刚刚",其他以此类推
  12674. var tips = '';
  12675. switch (true) {
  12676. case timer < 300:
  12677. tips = '刚刚';
  12678. break;
  12679. case timer >= 300 && timer < 3600:
  12680. tips = "".concat(parseInt(timer / 60), "\u5206\u949F\u524D");
  12681. break;
  12682. case timer >= 3600 && timer < 86400:
  12683. tips = "".concat(parseInt(timer / 3600), "\u5C0F\u65F6\u524D");
  12684. break;
  12685. case timer >= 86400 && timer < 2592000:
  12686. tips = "".concat(parseInt(timer / 86400), "\u5929\u524D");
  12687. break;
  12688. default:
  12689. // 如果format为false,则无论什么时间戳,都显示xx之前
  12690. if (format === false) {
  12691. if (timer >= 2592000 && timer < 365 * 86400) {
  12692. tips = "".concat(parseInt(timer / (86400 * 30)), "\u4E2A\u6708\u524D");
  12693. } else {
  12694. tips = "".concat(parseInt(timer / (86400 * 365)), "\u5E74\u524D");
  12695. }
  12696. } else {
  12697. tips = timeFormat(timestamp, format);
  12698. }}
  12699. return tips;
  12700. }
  12701. /**
  12702. * @description 去除空格
  12703. * @param String str 需要去除空格的字符串
  12704. * @param String pos both(左右)|left|right|all 默认both
  12705. */
  12706. function trim(str) {var pos = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'both';
  12707. str = String(str);
  12708. if (pos == 'both') {
  12709. return str.replace(/^\s+|\s+$/g, '');
  12710. }
  12711. if (pos == 'left') {
  12712. return str.replace(/^\s*/, '');
  12713. }
  12714. if (pos == 'right') {
  12715. return str.replace(/(\s*$)/g, '');
  12716. }
  12717. if (pos == 'all') {
  12718. return str.replace(/\s+/g, '');
  12719. }
  12720. return str;
  12721. }
  12722. /**
  12723. * @description 对象转url参数
  12724. * @param {object} data,对象
  12725. * @param {Boolean} isPrefix,是否自动加上"?"
  12726. * @param {string} arrayFormat 规则 indices|brackets|repeat|comma
  12727. */
  12728. function queryParams() {var data = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};var isPrefix = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;var arrayFormat = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 'brackets';
  12729. var prefix = isPrefix ? '?' : '';
  12730. var _result = [];
  12731. if (['indices', 'brackets', 'repeat', 'comma'].indexOf(arrayFormat) == -1) arrayFormat = 'brackets';var _loop = function _loop(
  12732. key) {
  12733. var value = data[key];
  12734. // 去掉为空的参数
  12735. if (['', undefined, null].indexOf(value) >= 0) {
  12736. return "continue";
  12737. }
  12738. // 如果值为数组,另行处理
  12739. if (value.constructor === Array) {
  12740. // e.g. {ids: [1, 2, 3]}
  12741. switch (arrayFormat) {
  12742. case 'indices':
  12743. // 结果: ids[0]=1&ids[1]=2&ids[2]=3
  12744. for (var i = 0; i < value.length; i++) {
  12745. _result.push("".concat(key, "[").concat(i, "]=").concat(value[i]));
  12746. }
  12747. break;
  12748. case 'brackets':
  12749. // 结果: ids[]=1&ids[]=2&ids[]=3
  12750. value.forEach(function (_value) {
  12751. _result.push("".concat(key, "[]=").concat(_value));
  12752. });
  12753. break;
  12754. case 'repeat':
  12755. // 结果: ids=1&ids=2&ids=3
  12756. value.forEach(function (_value) {
  12757. _result.push("".concat(key, "=").concat(_value));
  12758. });
  12759. break;
  12760. case 'comma':
  12761. // 结果: ids=1,2,3
  12762. var commaStr = '';
  12763. value.forEach(function (_value) {
  12764. commaStr += (commaStr ? ',' : '') + _value;
  12765. });
  12766. _result.push("".concat(key, "=").concat(commaStr));
  12767. break;
  12768. default:
  12769. value.forEach(function (_value) {
  12770. _result.push("".concat(key, "[]=").concat(_value));
  12771. });}
  12772. } else {
  12773. _result.push("".concat(key, "=").concat(value));
  12774. }};for (var key in data) {var _ret = _loop(key);if (_ret === "continue") continue;
  12775. }
  12776. return _result.length ? prefix + _result.join('&') : '';
  12777. }
  12778. /**
  12779. * 显示消息提示框
  12780. * @param {String} title 提示的内容,长度与 icon 取值有关。
  12781. * @param {Number} duration 提示的延迟时间,单位毫秒,默认:2000
  12782. */
  12783. function toast(title) {var duration = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 2000;
  12784. uni.showToast({
  12785. title: String(title),
  12786. icon: 'none',
  12787. duration: duration });
  12788. }
  12789. /**
  12790. * @description 根据主题type值,获取对应的图标
  12791. * @param {String} type 主题名称,primary|info|error|warning|success
  12792. * @param {boolean} fill 是否使用fill填充实体的图标
  12793. */
  12794. function type2icon() {var type = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'success';var fill = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
  12795. // 如果非预置值,默认为success
  12796. if (['primary', 'info', 'error', 'warning', 'success'].indexOf(type) == -1) type = 'success';
  12797. var iconName = '';
  12798. // 目前(2019-12-12),info和primary使用同一个图标
  12799. switch (type) {
  12800. case 'primary':
  12801. iconName = 'info-circle';
  12802. break;
  12803. case 'info':
  12804. iconName = 'info-circle';
  12805. break;
  12806. case 'error':
  12807. iconName = 'close-circle';
  12808. break;
  12809. case 'warning':
  12810. iconName = 'error-circle';
  12811. break;
  12812. case 'success':
  12813. iconName = 'checkmark-circle';
  12814. break;
  12815. default:
  12816. iconName = 'checkmark-circle';}
  12817. // 是否是实体类型,加上-fill,在icon组件库中,实体的类名是后面加-fill的
  12818. if (fill) iconName += '-fill';
  12819. return iconName;
  12820. }
  12821. /**
  12822. * @description 数字格式化
  12823. * @param {number|string} number 要格式化的数字
  12824. * @param {number} decimals 保留几位小数
  12825. * @param {string} decimalPoint 小数点符号
  12826. * @param {string} thousandsSeparator 千分位符号
  12827. * @returns {string} 格式化后的数字
  12828. */
  12829. function priceFormat(number) {var decimals = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;var decimalPoint = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : '.';var thousandsSeparator = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : ',';
  12830. number = "".concat(number).replace(/[^0-9+-Ee.]/g, '');
  12831. var n = !isFinite(+number) ? 0 : +number;
  12832. var prec = !isFinite(+decimals) ? 0 : Math.abs(decimals);
  12833. var sep = typeof thousandsSeparator === 'undefined' ? ',' : thousandsSeparator;
  12834. var dec = typeof decimalPoint === 'undefined' ? '.' : decimalPoint;
  12835. var s = '';
  12836. s = (prec ? (0, _digit.round)(n, prec) + '' : "".concat(Math.round(n))).split('.');
  12837. var re = /(-?\d+)(\d{3})/;
  12838. while (re.test(s[0])) {
  12839. s[0] = s[0].replace(re, "$1".concat(sep, "$2"));
  12840. }
  12841. if ((s[1] || '').length < prec) {
  12842. s[1] = s[1] || '';
  12843. s[1] += new Array(prec - s[1].length + 1).join('0');
  12844. }
  12845. return s.join(dec);
  12846. }
  12847. /**
  12848. * @description 获取duration值
  12849. * 如果带有ms或者s直接返回,如果大于一定值,认为是ms单位,小于一定值,认为是s单位
  12850. * 比如以30位阈值,那么300大于30,可以理解为用户想要的是300ms,而不是想花300s去执行一个动画
  12851. * @param {String|number} value 比如: "1s"|"100ms"|1|100
  12852. * @param {boolean} unit 提示: 如果是false 默认返回number
  12853. * @return {string|number}
  12854. */
  12855. function getDuration(value) {var unit = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;
  12856. var valueNum = parseInt(value);
  12857. if (unit) {
  12858. if (/s$/.test(value)) return value;
  12859. return value > 30 ? "".concat(value, "ms") : "".concat(value, "s");
  12860. }
  12861. if (/ms$/.test(value)) return valueNum;
  12862. if (/s$/.test(value)) return valueNum > 30 ? valueNum : valueNum * 1000;
  12863. return valueNum;
  12864. }
  12865. /**
  12866. * @description 日期的月或日补零操作
  12867. * @param {String} value 需要补零的值
  12868. */
  12869. function padZero(value) {
  12870. return "00".concat(value).slice(-2);
  12871. }
  12872. /**
  12873. * @description 在u-form的子组件内容发生变化,或者失去焦点时,尝试通知u-form执行校验方法
  12874. * @param {*} instance
  12875. * @param {*} event
  12876. */
  12877. function formValidate(instance, event) {
  12878. var formItem = uni.$u.$parent.call(instance, 'u-form-item');
  12879. var form = uni.$u.$parent.call(instance, 'u-form');
  12880. // 如果发生变化的input或者textarea等,其父组件中有u-form-item或者u-form等,就执行form的validate方法
  12881. // 同时将form-item的pros传递给form,让其进行精确对象验证
  12882. if (formItem && form) {
  12883. form.validateField(formItem.prop, function () {}, event);
  12884. }
  12885. }
  12886. /**
  12887. * @description 获取某个对象下的属性,用于通过类似'a.b.c'的形式去获取一个对象的的属性的形式
  12888. * @param {object} obj 对象
  12889. * @param {string} key 需要获取的属性字段
  12890. * @returns {*}
  12891. */
  12892. function getProperty(obj, key) {
  12893. if (!obj) {
  12894. return;
  12895. }
  12896. if (typeof key !== 'string' || key === '') {
  12897. return '';
  12898. }
  12899. if (key.indexOf('.') !== -1) {
  12900. var keys = key.split('.');
  12901. var firstObj = obj[keys[0]] || {};
  12902. for (var i = 1; i < keys.length; i++) {
  12903. if (firstObj) {
  12904. firstObj = firstObj[keys[i]];
  12905. }
  12906. }
  12907. return firstObj;
  12908. }
  12909. return obj[key];
  12910. }
  12911. /**
  12912. * @description 设置对象的属性值,如果'a.b.c'的形式进行设置
  12913. * @param {object} obj 对象
  12914. * @param {string} key 需要设置的属性
  12915. * @param {string} value 设置的值
  12916. */
  12917. function setProperty(obj, key, value) {
  12918. if (!obj) {
  12919. return;
  12920. }
  12921. // 递归赋值
  12922. var inFn = function inFn(_obj, keys, v) {
  12923. // 最后一个属性key
  12924. if (keys.length === 1) {
  12925. _obj[keys[0]] = v;
  12926. return;
  12927. }
  12928. // 0~length-1个key
  12929. while (keys.length > 1) {
  12930. var k = keys[0];
  12931. if (!_obj[k] || typeof _obj[k] !== 'object') {
  12932. _obj[k] = {};
  12933. }
  12934. var _key = keys.shift();
  12935. // 自调用判断是否存在属性,不存在则自动创建对象
  12936. inFn(_obj[k], keys, v);
  12937. }
  12938. };
  12939. if (typeof key !== 'string' || key === '') {
  12940. } else if (key.indexOf('.') !== -1) {// 支持多层级赋值操作
  12941. var keys = key.split('.');
  12942. inFn(obj, keys, value);
  12943. } else {
  12944. obj[key] = value;
  12945. }
  12946. }
  12947. /**
  12948. * @description 获取当前页面路径
  12949. */
  12950. function page() {var _pages$route, _pages;
  12951. var pages = getCurrentPages();
  12952. // 某些特殊情况下(比如页面进行redirectTo时的一些时机),pages可能为空数组
  12953. return "/".concat((_pages$route = (_pages = pages[pages.length - 1]) === null || _pages === void 0 ? void 0 : _pages.route) !== null && _pages$route !== void 0 ? _pages$route : '');
  12954. }
  12955. /**
  12956. * @description 获取当前路由栈实例数组
  12957. */
  12958. function pages() {
  12959. var pages = getCurrentPages();
  12960. return pages;
  12961. }
  12962. /**
  12963. * @description 修改uView内置属性值
  12964. * @param {object} props 修改内置props属性
  12965. * @param {object} config 修改内置config属性
  12966. * @param {object} color 修改内置color属性
  12967. * @param {object} zIndex 修改内置zIndex属性
  12968. */
  12969. function setConfig(_ref3)
  12970. {var _ref3$props = _ref3.props,props = _ref3$props === void 0 ? {} : _ref3$props,_ref3$config = _ref3.config,config = _ref3$config === void 0 ? {} : _ref3$config,_ref3$color = _ref3.color,color = _ref3$color === void 0 ? {} : _ref3$color,_ref3$zIndex = _ref3.zIndex,zIndex = _ref3$zIndex === void 0 ? {} : _ref3$zIndex;var
  12971. deepMerge =
  12972. uni.$u.deepMerge;
  12973. uni.$u.config = deepMerge(uni.$u.config, config);
  12974. uni.$u.props = deepMerge(uni.$u.props, props);
  12975. uni.$u.color = deepMerge(uni.$u.color, color);
  12976. uni.$u.zIndex = deepMerge(uni.$u.zIndex, zIndex);
  12977. }var _default =
  12978. {
  12979. range: range,
  12980. getPx: getPx,
  12981. sleep: sleep,
  12982. os: os,
  12983. sys: sys,
  12984. random: random,
  12985. guid: guid,
  12986. $parent: $parent,
  12987. addStyle: addStyle,
  12988. addUnit: addUnit,
  12989. deepClone: deepClone,
  12990. deepMerge: deepMerge,
  12991. error: error,
  12992. randomArray: randomArray,
  12993. timeFormat: timeFormat,
  12994. timeFrom: timeFrom,
  12995. trim: trim,
  12996. queryParams: queryParams,
  12997. toast: toast,
  12998. type2icon: type2icon,
  12999. priceFormat: priceFormat,
  13000. getDuration: getDuration,
  13001. padZero: padZero,
  13002. formValidate: formValidate,
  13003. getProperty: getProperty,
  13004. setProperty: setProperty,
  13005. page: page,
  13006. pages: pages,
  13007. setConfig: setConfig };exports.default = _default;
  13008. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 1)["default"]))
  13009. /***/ }),
  13010. /* 42 */
  13011. /*!*********************************************************************!*\
  13012. !*** E:/代码/cbz/cbz/cbz/uni_modules/uview-ui/libs/function/digit.js ***!
  13013. \*********************************************************************/
  13014. /*! no static exports found */
  13015. /***/ (function(module, exports, __webpack_require__) {
  13016. "use strict";
  13017. Object.defineProperty(exports, "__esModule", { value: true });exports.times = times;exports.plus = plus;exports.minus = minus;exports.divide = divide;exports.round = round;exports.enableBoundaryChecking = enableBoundaryChecking;exports.default = void 0;function _toArray(arr) {return _arrayWithHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableRest();}function _nonIterableRest() {throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");}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);}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;}function _iterableToArray(iter) {if (typeof Symbol !== "undefined" && Symbol.iterator in Object(iter)) return Array.from(iter);}function _arrayWithHoles(arr) {if (Array.isArray(arr)) return arr;}var _boundaryCheckingState = true; // 是否进行越界检查的全局开关
  13018. /**
  13019. * 把错误的数据转正
  13020. * @private
  13021. * @example strip(0.09999999999999998)=0.1
  13022. */
  13023. function strip(num) {var precision = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 15;
  13024. return +parseFloat(Number(num).toPrecision(precision));
  13025. }
  13026. /**
  13027. * Return digits length of a number
  13028. * @private
  13029. * @param {*number} num Input number
  13030. */
  13031. function digitLength(num) {
  13032. // Get digit length of e
  13033. var eSplit = num.toString().split(/[eE]/);
  13034. var len = (eSplit[0].split('.')[1] || '').length - +(eSplit[1] || 0);
  13035. return len > 0 ? len : 0;
  13036. }
  13037. /**
  13038. * 把小数转成整数,如果是小数则放大成整数
  13039. * @private
  13040. * @param {*number} num 输入数
  13041. */
  13042. function float2Fixed(num) {
  13043. if (num.toString().indexOf('e') === -1) {
  13044. return Number(num.toString().replace('.', ''));
  13045. }
  13046. var dLen = digitLength(num);
  13047. return dLen > 0 ? strip(Number(num) * Math.pow(10, dLen)) : Number(num);
  13048. }
  13049. /**
  13050. * 检测数字是否越界,如果越界给出提示
  13051. * @private
  13052. * @param {*number} num 输入数
  13053. */
  13054. function checkBoundary(num) {
  13055. if (_boundaryCheckingState) {
  13056. if (num > Number.MAX_SAFE_INTEGER || num < Number.MIN_SAFE_INTEGER) {
  13057. console.warn("".concat(num, " \u8D85\u51FA\u4E86\u7CBE\u5EA6\u9650\u5236\uFF0C\u7ED3\u679C\u53EF\u80FD\u4E0D\u6B63\u786E"));
  13058. }
  13059. }
  13060. }
  13061. /**
  13062. * 把递归操作扁平迭代化
  13063. * @param {number[]} arr 要操作的数字数组
  13064. * @param {function} operation 迭代操作
  13065. * @private
  13066. */
  13067. function iteratorOperation(arr, operation) {var _arr = _toArray(
  13068. arr),num1 = _arr[0],num2 = _arr[1],others = _arr.slice(2);
  13069. var res = operation(num1, num2);
  13070. others.forEach(function (num) {
  13071. res = operation(res, num);
  13072. });
  13073. return res;
  13074. }
  13075. /**
  13076. * 高精度乘法
  13077. * @export
  13078. */
  13079. function times() {for (var _len = arguments.length, nums = new Array(_len), _key = 0; _key < _len; _key++) {nums[_key] = arguments[_key];}
  13080. if (nums.length > 2) {
  13081. return iteratorOperation(nums, times);
  13082. }var
  13083. num1 = nums[0],num2 = nums[1];
  13084. var num1Changed = float2Fixed(num1);
  13085. var num2Changed = float2Fixed(num2);
  13086. var baseNum = digitLength(num1) + digitLength(num2);
  13087. var leftValue = num1Changed * num2Changed;
  13088. checkBoundary(leftValue);
  13089. return leftValue / Math.pow(10, baseNum);
  13090. }
  13091. /**
  13092. * 高精度加法
  13093. * @export
  13094. */
  13095. function plus() {for (var _len2 = arguments.length, nums = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {nums[_key2] = arguments[_key2];}
  13096. if (nums.length > 2) {
  13097. return iteratorOperation(nums, plus);
  13098. }var
  13099. num1 = nums[0],num2 = nums[1];
  13100. // 取最大的小数位
  13101. var baseNum = Math.pow(10, Math.max(digitLength(num1), digitLength(num2)));
  13102. // 把小数都转为整数然后再计算
  13103. return (times(num1, baseNum) + times(num2, baseNum)) / baseNum;
  13104. }
  13105. /**
  13106. * 高精度减法
  13107. * @export
  13108. */
  13109. function minus() {for (var _len3 = arguments.length, nums = new Array(_len3), _key3 = 0; _key3 < _len3; _key3++) {nums[_key3] = arguments[_key3];}
  13110. if (nums.length > 2) {
  13111. return iteratorOperation(nums, minus);
  13112. }var
  13113. num1 = nums[0],num2 = nums[1];
  13114. var baseNum = Math.pow(10, Math.max(digitLength(num1), digitLength(num2)));
  13115. return (times(num1, baseNum) - times(num2, baseNum)) / baseNum;
  13116. }
  13117. /**
  13118. * 高精度除法
  13119. * @export
  13120. */
  13121. function divide() {for (var _len4 = arguments.length, nums = new Array(_len4), _key4 = 0; _key4 < _len4; _key4++) {nums[_key4] = arguments[_key4];}
  13122. if (nums.length > 2) {
  13123. return iteratorOperation(nums, divide);
  13124. }var
  13125. num1 = nums[0],num2 = nums[1];
  13126. var num1Changed = float2Fixed(num1);
  13127. var num2Changed = float2Fixed(num2);
  13128. checkBoundary(num1Changed);
  13129. checkBoundary(num2Changed);
  13130. // 重要,这里必须用strip进行修正
  13131. return times(num1Changed / num2Changed, strip(Math.pow(10, digitLength(num2) - digitLength(num1))));
  13132. }
  13133. /**
  13134. * 四舍五入
  13135. * @export
  13136. */
  13137. function round(num, ratio) {
  13138. var base = Math.pow(10, ratio);
  13139. var result = divide(Math.round(Math.abs(times(num, base))), base);
  13140. if (num < 0 && result !== 0) {
  13141. result = times(result, -1);
  13142. }
  13143. // 位数不足则补0
  13144. return result;
  13145. }
  13146. /**
  13147. * 是否进行边界检查,默认开启
  13148. * @param flag 标记开关,true 为开启,false 为关闭,默认为 true
  13149. * @export
  13150. */
  13151. function enableBoundaryChecking() {var flag = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : true;
  13152. _boundaryCheckingState = flag;
  13153. }var _default =
  13154. {
  13155. times: times,
  13156. plus: plus,
  13157. minus: minus,
  13158. divide: divide,
  13159. round: round,
  13160. enableBoundaryChecking: enableBoundaryChecking };exports.default = _default;
  13161. /***/ }),
  13162. /* 43 */
  13163. /*!********************************************************************!*\
  13164. !*** E:/代码/cbz/cbz/cbz/uni_modules/uview-ui/libs/config/config.js ***!
  13165. \********************************************************************/
  13166. /*! no static exports found */
  13167. /***/ (function(module, exports, __webpack_require__) {
  13168. "use strict";
  13169. Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0; // 此版本发布于2022-06-17
  13170. var version = '2.0.33';
  13171. // 开发环境才提示,生产环境不会提示
  13172. if (true) {
  13173. console.log("\n %c uView V".concat(version, " %c https://www.uviewui.com/ \n\n"), 'color: #ffffff; background: #3c9cff; padding:5px 0;', 'color: #3c9cff;background: #ffffff; padding:5px 0;');
  13174. }var _default =
  13175. {
  13176. v: version,
  13177. version: version,
  13178. // 主题名称
  13179. type: [
  13180. 'primary',
  13181. 'success',
  13182. 'info',
  13183. 'error',
  13184. 'warning'],
  13185. // 颜色部分,本来可以通过scss的:export导出供js使用,但是奈何nvue不支持
  13186. color: {
  13187. 'u-primary': '#2979ff',
  13188. 'u-warning': '#ff9900',
  13189. 'u-success': '#19be6b',
  13190. 'u-error': '#fa3534',
  13191. 'u-info': '#909399',
  13192. 'u-main-color': '#303133',
  13193. 'u-content-color': '#606266',
  13194. 'u-tips-color': '#909399',
  13195. 'u-light-color': '#c0c4cc' },
  13196. // 默认单位,可以通过配置为rpx,那么在用于传入组件大小参数为数值时,就默认为rpx
  13197. unit: 'px' };exports.default = _default;
  13198. /***/ }),
  13199. /* 44 */
  13200. /*!*******************************************************************!*\
  13201. !*** E:/代码/cbz/cbz/cbz/uni_modules/uview-ui/libs/config/props.js ***!
  13202. \*******************************************************************/
  13203. /*! no static exports found */
  13204. /***/ (function(module, exports, __webpack_require__) {
  13205. "use strict";
  13206. Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0;
  13207. var _config = _interopRequireDefault(__webpack_require__(/*! ./config */ 43));
  13208. var _actionSheet = _interopRequireDefault(__webpack_require__(/*! ./props/actionSheet.js */ 45));
  13209. var _album = _interopRequireDefault(__webpack_require__(/*! ./props/album.js */ 46));
  13210. var _alert = _interopRequireDefault(__webpack_require__(/*! ./props/alert.js */ 47));
  13211. var _avatar = _interopRequireDefault(__webpack_require__(/*! ./props/avatar */ 48));
  13212. var _avatarGroup = _interopRequireDefault(__webpack_require__(/*! ./props/avatarGroup */ 49));
  13213. var _backtop = _interopRequireDefault(__webpack_require__(/*! ./props/backtop */ 50));
  13214. var _badge = _interopRequireDefault(__webpack_require__(/*! ./props/badge */ 51));
  13215. var _button = _interopRequireDefault(__webpack_require__(/*! ./props/button */ 52));
  13216. var _calendar = _interopRequireDefault(__webpack_require__(/*! ./props/calendar */ 53));
  13217. var _carKeyboard = _interopRequireDefault(__webpack_require__(/*! ./props/carKeyboard */ 54));
  13218. var _cell = _interopRequireDefault(__webpack_require__(/*! ./props/cell */ 55));
  13219. var _cellGroup = _interopRequireDefault(__webpack_require__(/*! ./props/cellGroup */ 56));
  13220. var _checkbox = _interopRequireDefault(__webpack_require__(/*! ./props/checkbox */ 57));
  13221. var _checkboxGroup = _interopRequireDefault(__webpack_require__(/*! ./props/checkboxGroup */ 58));
  13222. var _circleProgress = _interopRequireDefault(__webpack_require__(/*! ./props/circleProgress */ 59));
  13223. var _code = _interopRequireDefault(__webpack_require__(/*! ./props/code */ 60));
  13224. var _codeInput = _interopRequireDefault(__webpack_require__(/*! ./props/codeInput */ 61));
  13225. var _col = _interopRequireDefault(__webpack_require__(/*! ./props/col */ 62));
  13226. var _collapse = _interopRequireDefault(__webpack_require__(/*! ./props/collapse */ 63));
  13227. var _collapseItem = _interopRequireDefault(__webpack_require__(/*! ./props/collapseItem */ 64));
  13228. var _columnNotice = _interopRequireDefault(__webpack_require__(/*! ./props/columnNotice */ 65));
  13229. var _countDown = _interopRequireDefault(__webpack_require__(/*! ./props/countDown */ 66));
  13230. var _countTo = _interopRequireDefault(__webpack_require__(/*! ./props/countTo */ 67));
  13231. var _datetimePicker = _interopRequireDefault(__webpack_require__(/*! ./props/datetimePicker */ 68));
  13232. var _divider = _interopRequireDefault(__webpack_require__(/*! ./props/divider */ 69));
  13233. var _empty = _interopRequireDefault(__webpack_require__(/*! ./props/empty */ 70));
  13234. var _form = _interopRequireDefault(__webpack_require__(/*! ./props/form */ 71));
  13235. var _formItem = _interopRequireDefault(__webpack_require__(/*! ./props/formItem */ 72));
  13236. var _gap = _interopRequireDefault(__webpack_require__(/*! ./props/gap */ 73));
  13237. var _grid = _interopRequireDefault(__webpack_require__(/*! ./props/grid */ 74));
  13238. var _gridItem = _interopRequireDefault(__webpack_require__(/*! ./props/gridItem */ 75));
  13239. var _icon = _interopRequireDefault(__webpack_require__(/*! ./props/icon */ 76));
  13240. var _image = _interopRequireDefault(__webpack_require__(/*! ./props/image */ 77));
  13241. var _indexAnchor = _interopRequireDefault(__webpack_require__(/*! ./props/indexAnchor */ 78));
  13242. var _indexList = _interopRequireDefault(__webpack_require__(/*! ./props/indexList */ 79));
  13243. var _input = _interopRequireDefault(__webpack_require__(/*! ./props/input */ 80));
  13244. var _keyboard = _interopRequireDefault(__webpack_require__(/*! ./props/keyboard */ 81));
  13245. var _line = _interopRequireDefault(__webpack_require__(/*! ./props/line */ 82));
  13246. var _lineProgress = _interopRequireDefault(__webpack_require__(/*! ./props/lineProgress */ 83));
  13247. var _link = _interopRequireDefault(__webpack_require__(/*! ./props/link */ 84));
  13248. var _list = _interopRequireDefault(__webpack_require__(/*! ./props/list */ 85));
  13249. var _listItem = _interopRequireDefault(__webpack_require__(/*! ./props/listItem */ 86));
  13250. var _loadingIcon = _interopRequireDefault(__webpack_require__(/*! ./props/loadingIcon */ 87));
  13251. var _loadingPage = _interopRequireDefault(__webpack_require__(/*! ./props/loadingPage */ 88));
  13252. var _loadmore = _interopRequireDefault(__webpack_require__(/*! ./props/loadmore */ 89));
  13253. var _modal = _interopRequireDefault(__webpack_require__(/*! ./props/modal */ 90));
  13254. var _navbar = _interopRequireDefault(__webpack_require__(/*! ./props/navbar */ 91));
  13255. var _noNetwork = _interopRequireDefault(__webpack_require__(/*! ./props/noNetwork */ 93));
  13256. var _noticeBar = _interopRequireDefault(__webpack_require__(/*! ./props/noticeBar */ 94));
  13257. var _notify = _interopRequireDefault(__webpack_require__(/*! ./props/notify */ 95));
  13258. var _numberBox = _interopRequireDefault(__webpack_require__(/*! ./props/numberBox */ 96));
  13259. var _numberKeyboard = _interopRequireDefault(__webpack_require__(/*! ./props/numberKeyboard */ 97));
  13260. var _overlay = _interopRequireDefault(__webpack_require__(/*! ./props/overlay */ 98));
  13261. var _parse = _interopRequireDefault(__webpack_require__(/*! ./props/parse */ 99));
  13262. var _picker = _interopRequireDefault(__webpack_require__(/*! ./props/picker */ 100));
  13263. var _popup = _interopRequireDefault(__webpack_require__(/*! ./props/popup */ 101));
  13264. var _radio = _interopRequireDefault(__webpack_require__(/*! ./props/radio */ 102));
  13265. var _radioGroup = _interopRequireDefault(__webpack_require__(/*! ./props/radioGroup */ 103));
  13266. var _rate = _interopRequireDefault(__webpack_require__(/*! ./props/rate */ 104));
  13267. var _readMore = _interopRequireDefault(__webpack_require__(/*! ./props/readMore */ 105));
  13268. var _row = _interopRequireDefault(__webpack_require__(/*! ./props/row */ 106));
  13269. var _rowNotice = _interopRequireDefault(__webpack_require__(/*! ./props/rowNotice */ 107));
  13270. var _scrollList = _interopRequireDefault(__webpack_require__(/*! ./props/scrollList */ 108));
  13271. var _search = _interopRequireDefault(__webpack_require__(/*! ./props/search */ 109));
  13272. var _section = _interopRequireDefault(__webpack_require__(/*! ./props/section */ 110));
  13273. var _skeleton = _interopRequireDefault(__webpack_require__(/*! ./props/skeleton */ 111));
  13274. var _slider = _interopRequireDefault(__webpack_require__(/*! ./props/slider */ 112));
  13275. var _statusBar = _interopRequireDefault(__webpack_require__(/*! ./props/statusBar */ 113));
  13276. var _steps = _interopRequireDefault(__webpack_require__(/*! ./props/steps */ 114));
  13277. var _stepsItem = _interopRequireDefault(__webpack_require__(/*! ./props/stepsItem */ 115));
  13278. var _sticky = _interopRequireDefault(__webpack_require__(/*! ./props/sticky */ 116));
  13279. var _subsection = _interopRequireDefault(__webpack_require__(/*! ./props/subsection */ 117));
  13280. var _swipeAction = _interopRequireDefault(__webpack_require__(/*! ./props/swipeAction */ 118));
  13281. var _swipeActionItem = _interopRequireDefault(__webpack_require__(/*! ./props/swipeActionItem */ 119));
  13282. var _swiper = _interopRequireDefault(__webpack_require__(/*! ./props/swiper */ 120));
  13283. var _swipterIndicator = _interopRequireDefault(__webpack_require__(/*! ./props/swipterIndicator */ 121));
  13284. var _switch2 = _interopRequireDefault(__webpack_require__(/*! ./props/switch */ 122));
  13285. var _tabbar = _interopRequireDefault(__webpack_require__(/*! ./props/tabbar */ 123));
  13286. var _tabbarItem = _interopRequireDefault(__webpack_require__(/*! ./props/tabbarItem */ 124));
  13287. var _tabs = _interopRequireDefault(__webpack_require__(/*! ./props/tabs */ 125));
  13288. var _tag = _interopRequireDefault(__webpack_require__(/*! ./props/tag */ 126));
  13289. var _text = _interopRequireDefault(__webpack_require__(/*! ./props/text */ 127));
  13290. var _textarea = _interopRequireDefault(__webpack_require__(/*! ./props/textarea */ 128));
  13291. var _toast = _interopRequireDefault(__webpack_require__(/*! ./props/toast */ 129));
  13292. var _toolbar = _interopRequireDefault(__webpack_require__(/*! ./props/toolbar */ 130));
  13293. var _tooltip = _interopRequireDefault(__webpack_require__(/*! ./props/tooltip */ 131));
  13294. var _transition = _interopRequireDefault(__webpack_require__(/*! ./props/transition */ 132));
  13295. var _upload = _interopRequireDefault(__webpack_require__(/*! ./props/upload */ 133));function _interopRequireDefault(obj) {return obj && obj.__esModule ? obj : { default: obj };}function ownKeys(object, enumerableOnly) {var keys = Object.keys(object);if (Object.getOwnPropertySymbols) {var symbols = Object.getOwnPropertySymbols(object);if (enumerableOnly) symbols = symbols.filter(function (sym) {return Object.getOwnPropertyDescriptor(object, sym).enumerable;});keys.push.apply(keys, symbols);}return keys;}function _objectSpread(target) {for (var i = 1; i < arguments.length; i++) {var source = arguments[i] != null ? arguments[i] : {};if (i % 2) {ownKeys(Object(source), true).forEach(function (key) {_defineProperty(target, key, source[key]);});} else if (Object.getOwnPropertyDescriptors) {Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));} else {ownKeys(Object(source)).forEach(function (key) {Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));});}}return target;}function _defineProperty(obj, key, value) {if (key in obj) {Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true });} else {obj[key] = value;}return obj;}var
  13296. color =
  13297. _config.default.color;var _default = _objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread({},
  13298. _actionSheet.default),
  13299. _album.default),
  13300. _alert.default),
  13301. _avatar.default),
  13302. _avatarGroup.default),
  13303. _backtop.default),
  13304. _badge.default),
  13305. _button.default),
  13306. _calendar.default),
  13307. _carKeyboard.default),
  13308. _cell.default),
  13309. _cellGroup.default),
  13310. _checkbox.default),
  13311. _checkboxGroup.default),
  13312. _circleProgress.default),
  13313. _code.default),
  13314. _codeInput.default),
  13315. _col.default),
  13316. _collapse.default),
  13317. _collapseItem.default),
  13318. _columnNotice.default),
  13319. _countDown.default),
  13320. _countTo.default),
  13321. _datetimePicker.default),
  13322. _divider.default),
  13323. _empty.default),
  13324. _form.default),
  13325. _formItem.default),
  13326. _gap.default),
  13327. _grid.default),
  13328. _gridItem.default),
  13329. _icon.default),
  13330. _image.default),
  13331. _indexAnchor.default),
  13332. _indexList.default),
  13333. _input.default),
  13334. _keyboard.default),
  13335. _line.default),
  13336. _lineProgress.default),
  13337. _link.default),
  13338. _list.default),
  13339. _listItem.default),
  13340. _loadingIcon.default),
  13341. _loadingPage.default),
  13342. _loadmore.default),
  13343. _modal.default),
  13344. _navbar.default),
  13345. _noNetwork.default),
  13346. _noticeBar.default),
  13347. _notify.default),
  13348. _numberBox.default),
  13349. _numberKeyboard.default),
  13350. _overlay.default),
  13351. _parse.default),
  13352. _picker.default),
  13353. _popup.default),
  13354. _radio.default),
  13355. _radioGroup.default),
  13356. _rate.default),
  13357. _readMore.default),
  13358. _row.default),
  13359. _rowNotice.default),
  13360. _scrollList.default),
  13361. _search.default),
  13362. _section.default),
  13363. _skeleton.default),
  13364. _slider.default),
  13365. _statusBar.default),
  13366. _steps.default),
  13367. _stepsItem.default),
  13368. _sticky.default),
  13369. _subsection.default),
  13370. _swipeAction.default),
  13371. _swipeActionItem.default),
  13372. _swiper.default),
  13373. _swipterIndicator.default),
  13374. _switch2.default),
  13375. _tabbar.default),
  13376. _tabbarItem.default),
  13377. _tabs.default),
  13378. _tag.default),
  13379. _text.default),
  13380. _textarea.default),
  13381. _toast.default),
  13382. _toolbar.default),
  13383. _tooltip.default),
  13384. _transition.default),
  13385. _upload.default);exports.default = _default;
  13386. /***/ }),
  13387. /* 45 */
  13388. /*!*******************************************************************************!*\
  13389. !*** E:/代码/cbz/cbz/cbz/uni_modules/uview-ui/libs/config/props/actionSheet.js ***!
  13390. \*******************************************************************************/
  13391. /*! no static exports found */
  13392. /***/ (function(module, exports, __webpack_require__) {
  13393. "use strict";
  13394. Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0; /*
  13395. * @Author : LQ
  13396. * @Description :
  13397. * @version : 1.0
  13398. * @Date : 2021-08-20 16:44:21
  13399. * @LastAuthor : LQ
  13400. * @lastTime : 2021-08-20 16:44:35
  13401. * @FilePath : /u-view2.0/uview-ui/libs/config/props/actionSheet.js
  13402. */var _default =
  13403. {
  13404. // action-sheet组件
  13405. actionSheet: {
  13406. show: false,
  13407. title: '',
  13408. description: '',
  13409. actions: function actions() {return [];},
  13410. index: '',
  13411. cancelText: '',
  13412. closeOnClickAction: true,
  13413. safeAreaInsetBottom: true,
  13414. openType: '',
  13415. closeOnClickOverlay: true,
  13416. round: 0 } };exports.default = _default;
  13417. /***/ }),
  13418. /* 46 */
  13419. /*!*************************************************************************!*\
  13420. !*** E:/代码/cbz/cbz/cbz/uni_modules/uview-ui/libs/config/props/album.js ***!
  13421. \*************************************************************************/
  13422. /*! no static exports found */
  13423. /***/ (function(module, exports, __webpack_require__) {
  13424. "use strict";
  13425. Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0; /*
  13426. * @Author : LQ
  13427. * @Description :
  13428. * @version : 1.0
  13429. * @Date : 2021-08-20 16:44:21
  13430. * @LastAuthor : LQ
  13431. * @lastTime : 2021-08-20 16:47:24
  13432. * @FilePath : /u-view2.0/uview-ui/libs/config/props/album.js
  13433. */var _default =
  13434. {
  13435. // album 组件
  13436. album: {
  13437. urls: function urls() {return [];},
  13438. keyName: '',
  13439. singleSize: 180,
  13440. multipleSize: 70,
  13441. space: 6,
  13442. singleMode: 'scaleToFill',
  13443. multipleMode: 'aspectFill',
  13444. maxCount: 9,
  13445. previewFullImage: true,
  13446. rowCount: 3,
  13447. showMore: true } };exports.default = _default;
  13448. /***/ }),
  13449. /* 47 */
  13450. /*!*************************************************************************!*\
  13451. !*** E:/代码/cbz/cbz/cbz/uni_modules/uview-ui/libs/config/props/alert.js ***!
  13452. \*************************************************************************/
  13453. /*! no static exports found */
  13454. /***/ (function(module, exports, __webpack_require__) {
  13455. "use strict";
  13456. Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0; /*
  13457. * @Author : LQ
  13458. * @Description :
  13459. * @version : 1.0
  13460. * @Date : 2021-08-20 16:44:21
  13461. * @LastAuthor : LQ
  13462. * @lastTime : 2021-08-20 16:48:53
  13463. * @FilePath : /u-view2.0/uview-ui/libs/config/props/alert.js
  13464. */var _default =
  13465. {
  13466. // alert警告组件
  13467. alert: {
  13468. title: '',
  13469. type: 'warning',
  13470. description: '',
  13471. closable: false,
  13472. showIcon: false,
  13473. effect: 'light',
  13474. center: false,
  13475. fontSize: 14 } };exports.default = _default;
  13476. /***/ }),
  13477. /* 48 */
  13478. /*!**************************************************************************!*\
  13479. !*** E:/代码/cbz/cbz/cbz/uni_modules/uview-ui/libs/config/props/avatar.js ***!
  13480. \**************************************************************************/
  13481. /*! no static exports found */
  13482. /***/ (function(module, exports, __webpack_require__) {
  13483. "use strict";
  13484. Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0; /*
  13485. * @Author : LQ
  13486. * @Description :
  13487. * @version : 1.0
  13488. * @Date : 2021-08-20 16:44:21
  13489. * @LastAuthor : LQ
  13490. * @lastTime : 2021-08-20 16:49:22
  13491. * @FilePath : /u-view2.0/uview-ui/libs/config/props/avatar.js
  13492. */var _default =
  13493. {
  13494. // avatar 组件
  13495. avatar: {
  13496. src: '',
  13497. shape: 'circle',
  13498. size: 40,
  13499. mode: 'scaleToFill',
  13500. text: '',
  13501. bgColor: '#c0c4cc',
  13502. color: '#ffffff',
  13503. fontSize: 18,
  13504. icon: '',
  13505. mpAvatar: false,
  13506. randomBgColor: false,
  13507. defaultUrl: '',
  13508. colorIndex: '',
  13509. name: '' } };exports.default = _default;
  13510. /***/ }),
  13511. /* 49 */
  13512. /*!*******************************************************************************!*\
  13513. !*** E:/代码/cbz/cbz/cbz/uni_modules/uview-ui/libs/config/props/avatarGroup.js ***!
  13514. \*******************************************************************************/
  13515. /*! no static exports found */
  13516. /***/ (function(module, exports, __webpack_require__) {
  13517. "use strict";
  13518. Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0; /*
  13519. * @Author : LQ
  13520. * @Description :
  13521. * @version : 1.0
  13522. * @Date : 2021-08-20 16:44:21
  13523. * @LastAuthor : LQ
  13524. * @lastTime : 2021-08-20 16:49:55
  13525. * @FilePath : /u-view2.0/uview-ui/libs/config/props/avatarGroup.js
  13526. */var _default =
  13527. {
  13528. // avatarGroup 组件
  13529. avatarGroup: {
  13530. urls: function urls() {return [];},
  13531. maxCount: 5,
  13532. shape: 'circle',
  13533. mode: 'scaleToFill',
  13534. showMore: true,
  13535. size: 40,
  13536. keyName: '',
  13537. gap: 0.5,
  13538. extraValue: 0 } };exports.default = _default;
  13539. /***/ }),
  13540. /* 50 */
  13541. /*!***************************************************************************!*\
  13542. !*** E:/代码/cbz/cbz/cbz/uni_modules/uview-ui/libs/config/props/backtop.js ***!
  13543. \***************************************************************************/
  13544. /*! no static exports found */
  13545. /***/ (function(module, exports, __webpack_require__) {
  13546. "use strict";
  13547. Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0; /*
  13548. * @Author : LQ
  13549. * @Description :
  13550. * @version : 1.0
  13551. * @Date : 2021-08-20 16:44:21
  13552. * @LastAuthor : LQ
  13553. * @lastTime : 2021-08-20 16:50:18
  13554. * @FilePath : /u-view2.0/uview-ui/libs/config/props/backtop.js
  13555. */var _default =
  13556. {
  13557. // backtop组件
  13558. backtop: {
  13559. mode: 'circle',
  13560. icon: 'arrow-upward',
  13561. text: '',
  13562. duration: 100,
  13563. scrollTop: 0,
  13564. top: 400,
  13565. bottom: 100,
  13566. right: 20,
  13567. zIndex: 9,
  13568. iconStyle: function iconStyle() {return {
  13569. color: '#909399',
  13570. fontSize: '19px' };} } };exports.default = _default;
  13571. /***/ }),
  13572. /* 51 */
  13573. /*!*************************************************************************!*\
  13574. !*** E:/代码/cbz/cbz/cbz/uni_modules/uview-ui/libs/config/props/badge.js ***!
  13575. \*************************************************************************/
  13576. /*! no static exports found */
  13577. /***/ (function(module, exports, __webpack_require__) {
  13578. "use strict";
  13579. Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0; /*
  13580. * @Author : LQ
  13581. * @Description :
  13582. * @version : 1.0
  13583. * @Date : 2021-08-20 16:44:21
  13584. * @LastAuthor : LQ
  13585. * @lastTime : 2021-08-23 19:51:50
  13586. * @FilePath : /u-view2.0/uview-ui/libs/config/props/badge.js
  13587. */var _default =
  13588. {
  13589. // 徽标数组件
  13590. badge: {
  13591. isDot: false,
  13592. value: '',
  13593. show: true,
  13594. max: 999,
  13595. type: 'error',
  13596. showZero: false,
  13597. bgColor: null,
  13598. color: null,
  13599. shape: 'circle',
  13600. numberType: 'overflow',
  13601. offset: function offset() {return [];},
  13602. inverted: false,
  13603. absolute: false } };exports.default = _default;
  13604. /***/ }),
  13605. /* 52 */
  13606. /*!**************************************************************************!*\
  13607. !*** E:/代码/cbz/cbz/cbz/uni_modules/uview-ui/libs/config/props/button.js ***!
  13608. \**************************************************************************/
  13609. /*! no static exports found */
  13610. /***/ (function(module, exports, __webpack_require__) {
  13611. "use strict";
  13612. Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0; /*
  13613. * @Author : LQ
  13614. * @Description :
  13615. * @version : 1.0
  13616. * @Date : 2021-08-20 16:44:21
  13617. * @LastAuthor : LQ
  13618. * @lastTime : 2021-08-20 16:51:27
  13619. * @FilePath : /u-view2.0/uview-ui/libs/config/props/button.js
  13620. */var _default =
  13621. {
  13622. // button组件
  13623. button: {
  13624. hairline: false,
  13625. type: 'info',
  13626. size: 'normal',
  13627. shape: 'square',
  13628. plain: false,
  13629. disabled: false,
  13630. loading: false,
  13631. loadingText: '',
  13632. loadingMode: 'spinner',
  13633. loadingSize: 15,
  13634. openType: '',
  13635. formType: '',
  13636. appParameter: '',
  13637. hoverStopPropagation: true,
  13638. lang: 'en',
  13639. sessionFrom: '',
  13640. sendMessageTitle: '',
  13641. sendMessagePath: '',
  13642. sendMessageImg: '',
  13643. showMessageCard: false,
  13644. dataName: '',
  13645. throttleTime: 0,
  13646. hoverStartTime: 0,
  13647. hoverStayTime: 200,
  13648. text: '',
  13649. icon: '',
  13650. iconColor: '',
  13651. color: '' } };exports.default = _default;
  13652. /***/ }),
  13653. /* 53 */
  13654. /*!****************************************************************************!*\
  13655. !*** E:/代码/cbz/cbz/cbz/uni_modules/uview-ui/libs/config/props/calendar.js ***!
  13656. \****************************************************************************/
  13657. /*! no static exports found */
  13658. /***/ (function(module, exports, __webpack_require__) {
  13659. "use strict";
  13660. Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0; /*
  13661. * @Author : LQ
  13662. * @Description :
  13663. * @version : 1.0
  13664. * @Date : 2021-08-20 16:44:21
  13665. * @LastAuthor : LQ
  13666. * @lastTime : 2021-08-20 16:52:43
  13667. * @FilePath : /u-view2.0/uview-ui/libs/config/props/calendar.js
  13668. */var _default =
  13669. {
  13670. // calendar 组件
  13671. calendar: {
  13672. title: '日期选择',
  13673. showTitle: true,
  13674. showSubtitle: true,
  13675. mode: 'single',
  13676. startText: '开始',
  13677. endText: '结束',
  13678. customList: function customList() {return [];},
  13679. color: '#3c9cff',
  13680. minDate: 0,
  13681. maxDate: 0,
  13682. defaultDate: null,
  13683. maxCount: Number.MAX_SAFE_INTEGER, // Infinity
  13684. rowHeight: 56,
  13685. formatter: null,
  13686. showLunar: false,
  13687. showMark: true,
  13688. confirmText: '确定',
  13689. confirmDisabledText: '确定',
  13690. show: false,
  13691. closeOnClickOverlay: false,
  13692. readonly: false,
  13693. showConfirm: true,
  13694. maxRange: Number.MAX_SAFE_INTEGER, // Infinity
  13695. rangePrompt: '',
  13696. showRangePrompt: true,
  13697. allowSameDay: false,
  13698. round: 0,
  13699. monthNum: 3 } };exports.default = _default;
  13700. /***/ }),
  13701. /* 54 */
  13702. /*!*******************************************************************************!*\
  13703. !*** E:/代码/cbz/cbz/cbz/uni_modules/uview-ui/libs/config/props/carKeyboard.js ***!
  13704. \*******************************************************************************/
  13705. /*! no static exports found */
  13706. /***/ (function(module, exports, __webpack_require__) {
  13707. "use strict";
  13708. Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0; /*
  13709. * @Author : LQ
  13710. * @Description :
  13711. * @version : 1.0
  13712. * @Date : 2021-08-20 16:44:21
  13713. * @LastAuthor : LQ
  13714. * @lastTime : 2021-08-20 16:53:20
  13715. * @FilePath : /u-view2.0/uview-ui/libs/config/props/carKeyboard.js
  13716. */var _default =
  13717. {
  13718. // 车牌号键盘
  13719. carKeyboard: {
  13720. random: false } };exports.default = _default;
  13721. /***/ }),
  13722. /* 55 */
  13723. /*!************************************************************************!*\
  13724. !*** E:/代码/cbz/cbz/cbz/uni_modules/uview-ui/libs/config/props/cell.js ***!
  13725. \************************************************************************/
  13726. /*! no static exports found */
  13727. /***/ (function(module, exports, __webpack_require__) {
  13728. "use strict";
  13729. Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0; /*
  13730. * @Author : LQ
  13731. * @Description :
  13732. * @version : 1.0
  13733. * @Date : 2021-08-20 16:44:21
  13734. * @LastAuthor : LQ
  13735. * @lastTime : 2021-08-23 20:53:09
  13736. * @FilePath : /u-view2.0/uview-ui/libs/config/props/cell.js
  13737. */var _default =
  13738. {
  13739. // cell组件的props
  13740. cell: {
  13741. customClass: '',
  13742. title: '',
  13743. label: '',
  13744. value: '',
  13745. icon: '',
  13746. disabled: false,
  13747. border: true,
  13748. center: false,
  13749. url: '',
  13750. linkType: 'navigateTo',
  13751. clickable: false,
  13752. isLink: false,
  13753. required: false,
  13754. arrowDirection: '',
  13755. iconStyle: {},
  13756. rightIconStyle: {},
  13757. rightIcon: 'arrow-right',
  13758. titleStyle: {},
  13759. size: '',
  13760. stop: true,
  13761. name: '' } };exports.default = _default;
  13762. /***/ }),
  13763. /* 56 */
  13764. /*!*****************************************************************************!*\
  13765. !*** E:/代码/cbz/cbz/cbz/uni_modules/uview-ui/libs/config/props/cellGroup.js ***!
  13766. \*****************************************************************************/
  13767. /*! no static exports found */
  13768. /***/ (function(module, exports, __webpack_require__) {
  13769. "use strict";
  13770. Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0; /*
  13771. * @Author : LQ
  13772. * @Description :
  13773. * @version : 1.0
  13774. * @Date : 2021-08-20 16:44:21
  13775. * @LastAuthor : LQ
  13776. * @lastTime : 2021-08-20 16:54:16
  13777. * @FilePath : /u-view2.0/uview-ui/libs/config/props/cellGroup.js
  13778. */var _default =
  13779. {
  13780. // cell-group组件的props
  13781. cellGroup: {
  13782. title: '',
  13783. border: true,
  13784. customStyle: {} } };exports.default = _default;
  13785. /***/ }),
  13786. /* 57 */
  13787. /*!****************************************************************************!*\
  13788. !*** E:/代码/cbz/cbz/cbz/uni_modules/uview-ui/libs/config/props/checkbox.js ***!
  13789. \****************************************************************************/
  13790. /*! no static exports found */
  13791. /***/ (function(module, exports, __webpack_require__) {
  13792. "use strict";
  13793. Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0; /*
  13794. * @Author : LQ
  13795. * @Description :
  13796. * @version : 1.0
  13797. * @Date : 2021-08-20 16:44:21
  13798. * @LastAuthor : LQ
  13799. * @lastTime : 2021-08-23 21:06:59
  13800. * @FilePath : /u-view2.0/uview-ui/libs/config/props/checkbox.js
  13801. */var _default =
  13802. {
  13803. // checkbox组件
  13804. checkbox: {
  13805. name: '',
  13806. shape: '',
  13807. size: '',
  13808. checkbox: false,
  13809. disabled: '',
  13810. activeColor: '',
  13811. inactiveColor: '',
  13812. iconSize: '',
  13813. iconColor: '',
  13814. label: '',
  13815. labelSize: '',
  13816. labelColor: '',
  13817. labelDisabled: '' } };exports.default = _default;
  13818. /***/ }),
  13819. /* 58 */
  13820. /*!*********************************************************************************!*\
  13821. !*** E:/代码/cbz/cbz/cbz/uni_modules/uview-ui/libs/config/props/checkboxGroup.js ***!
  13822. \*********************************************************************************/
  13823. /*! no static exports found */
  13824. /***/ (function(module, exports, __webpack_require__) {
  13825. "use strict";
  13826. Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0; /*
  13827. * @Author : LQ
  13828. * @Description :
  13829. * @version : 1.0
  13830. * @Date : 2021-08-20 16:44:21
  13831. * @LastAuthor : LQ
  13832. * @lastTime : 2021-08-20 16:54:47
  13833. * @FilePath : /u-view2.0/uview-ui/libs/config/props/checkboxGroup.js
  13834. */var _default =
  13835. {
  13836. // checkbox-group组件
  13837. checkboxGroup: {
  13838. name: '',
  13839. value: function value() {return [];},
  13840. shape: 'square',
  13841. disabled: false,
  13842. activeColor: '#2979ff',
  13843. inactiveColor: '#c8c9cc',
  13844. size: 18,
  13845. placement: 'row',
  13846. labelSize: 14,
  13847. labelColor: '#303133',
  13848. labelDisabled: false,
  13849. iconColor: '#ffffff',
  13850. iconSize: 12,
  13851. iconPlacement: 'left',
  13852. borderBottom: false } };exports.default = _default;
  13853. /***/ }),
  13854. /* 59 */
  13855. /*!**********************************************************************************!*\
  13856. !*** E:/代码/cbz/cbz/cbz/uni_modules/uview-ui/libs/config/props/circleProgress.js ***!
  13857. \**********************************************************************************/
  13858. /*! no static exports found */
  13859. /***/ (function(module, exports, __webpack_require__) {
  13860. "use strict";
  13861. Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0; /*
  13862. * @Author : LQ
  13863. * @Description :
  13864. * @version : 1.0
  13865. * @Date : 2021-08-20 16:44:21
  13866. * @LastAuthor : LQ
  13867. * @lastTime : 2021-08-20 16:55:02
  13868. * @FilePath : /u-view2.0/uview-ui/libs/config/props/circleProgress.js
  13869. */var _default =
  13870. {
  13871. // circleProgress 组件
  13872. circleProgress: {
  13873. percentage: 30 } };exports.default = _default;
  13874. /***/ }),
  13875. /* 60 */
  13876. /*!************************************************************************!*\
  13877. !*** E:/代码/cbz/cbz/cbz/uni_modules/uview-ui/libs/config/props/code.js ***!
  13878. \************************************************************************/
  13879. /*! no static exports found */
  13880. /***/ (function(module, exports, __webpack_require__) {
  13881. "use strict";
  13882. Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0; /*
  13883. * @Author : LQ
  13884. * @Description :
  13885. * @version : 1.0
  13886. * @Date : 2021-08-20 16:44:21
  13887. * @LastAuthor : LQ
  13888. * @lastTime : 2021-08-20 16:55:27
  13889. * @FilePath : /u-view2.0/uview-ui/libs/config/props/code.js
  13890. */var _default =
  13891. {
  13892. // code 组件
  13893. code: {
  13894. seconds: 60,
  13895. startText: '获取验证码',
  13896. changeText: 'X秒重新获取',
  13897. endText: '重新获取',
  13898. keepRunning: false,
  13899. uniqueKey: '' } };exports.default = _default;
  13900. /***/ }),
  13901. /* 61 */
  13902. /*!*****************************************************************************!*\
  13903. !*** E:/代码/cbz/cbz/cbz/uni_modules/uview-ui/libs/config/props/codeInput.js ***!
  13904. \*****************************************************************************/
  13905. /*! no static exports found */
  13906. /***/ (function(module, exports, __webpack_require__) {
  13907. "use strict";
  13908. Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0; /*
  13909. * @Author : LQ
  13910. * @Description :
  13911. * @version : 1.0
  13912. * @Date : 2021-08-20 16:44:21
  13913. * @LastAuthor : LQ
  13914. * @lastTime : 2021-08-20 16:55:58
  13915. * @FilePath : /u-view2.0/uview-ui/libs/config/props/codeInput.js
  13916. */var _default =
  13917. {
  13918. // codeInput 组件
  13919. codeInput: {
  13920. adjustPosition: true,
  13921. maxlength: 6,
  13922. dot: false,
  13923. mode: 'box',
  13924. hairline: false,
  13925. space: 10,
  13926. value: '',
  13927. focus: false,
  13928. bold: false,
  13929. color: '#606266',
  13930. fontSize: 18,
  13931. size: 35,
  13932. disabledKeyboard: false,
  13933. borderColor: '#c9cacc',
  13934. disabledDot: true } };exports.default = _default;
  13935. /***/ }),
  13936. /* 62 */
  13937. /*!***********************************************************************!*\
  13938. !*** E:/代码/cbz/cbz/cbz/uni_modules/uview-ui/libs/config/props/col.js ***!
  13939. \***********************************************************************/
  13940. /*! no static exports found */
  13941. /***/ (function(module, exports, __webpack_require__) {
  13942. "use strict";
  13943. Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0; /*
  13944. * @Author : LQ
  13945. * @Description :
  13946. * @version : 1.0
  13947. * @Date : 2021-08-20 16:44:21
  13948. * @LastAuthor : LQ
  13949. * @lastTime : 2021-08-20 16:56:12
  13950. * @FilePath : /u-view2.0/uview-ui/libs/config/props/col.js
  13951. */var _default =
  13952. {
  13953. // col 组件
  13954. col: {
  13955. span: 12,
  13956. offset: 0,
  13957. justify: 'start',
  13958. align: 'stretch',
  13959. textAlign: 'left' } };exports.default = _default;
  13960. /***/ }),
  13961. /* 63 */
  13962. /*!****************************************************************************!*\
  13963. !*** E:/代码/cbz/cbz/cbz/uni_modules/uview-ui/libs/config/props/collapse.js ***!
  13964. \****************************************************************************/
  13965. /*! no static exports found */
  13966. /***/ (function(module, exports, __webpack_require__) {
  13967. "use strict";
  13968. Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0; /*
  13969. * @Author : LQ
  13970. * @Description :
  13971. * @version : 1.0
  13972. * @Date : 2021-08-20 16:44:21
  13973. * @LastAuthor : LQ
  13974. * @lastTime : 2021-08-20 16:56:30
  13975. * @FilePath : /u-view2.0/uview-ui/libs/config/props/collapse.js
  13976. */var _default =
  13977. {
  13978. // collapse 组件
  13979. collapse: {
  13980. value: null,
  13981. accordion: false,
  13982. border: true } };exports.default = _default;
  13983. /***/ }),
  13984. /* 64 */
  13985. /*!********************************************************************************!*\
  13986. !*** E:/代码/cbz/cbz/cbz/uni_modules/uview-ui/libs/config/props/collapseItem.js ***!
  13987. \********************************************************************************/
  13988. /*! no static exports found */
  13989. /***/ (function(module, exports, __webpack_require__) {
  13990. "use strict";
  13991. Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0; /*
  13992. * @Author : LQ
  13993. * @Description :
  13994. * @version : 1.0
  13995. * @Date : 2021-08-20 16:44:21
  13996. * @LastAuthor : LQ
  13997. * @lastTime : 2021-08-20 16:56:42
  13998. * @FilePath : /u-view2.0/uview-ui/libs/config/props/collapseItem.js
  13999. */var _default =
  14000. {
  14001. // collapseItem 组件
  14002. collapseItem: {
  14003. title: '',
  14004. value: '',
  14005. label: '',
  14006. disabled: false,
  14007. isLink: true,
  14008. clickable: true,
  14009. border: true,
  14010. align: 'left',
  14011. name: '',
  14012. icon: '',
  14013. duration: 300 } };exports.default = _default;
  14014. /***/ }),
  14015. /* 65 */
  14016. /*!********************************************************************************!*\
  14017. !*** E:/代码/cbz/cbz/cbz/uni_modules/uview-ui/libs/config/props/columnNotice.js ***!
  14018. \********************************************************************************/
  14019. /*! no static exports found */
  14020. /***/ (function(module, exports, __webpack_require__) {
  14021. "use strict";
  14022. Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0; /*
  14023. * @Author : LQ
  14024. * @Description :
  14025. * @version : 1.0
  14026. * @Date : 2021-08-20 16:44:21
  14027. * @LastAuthor : LQ
  14028. * @lastTime : 2021-08-20 16:57:16
  14029. * @FilePath : /u-view2.0/uview-ui/libs/config/props/columnNotice.js
  14030. */var _default =
  14031. {
  14032. // columnNotice 组件
  14033. columnNotice: {
  14034. text: '',
  14035. icon: 'volume',
  14036. mode: '',
  14037. color: '#f9ae3d',
  14038. bgColor: '#fdf6ec',
  14039. fontSize: 14,
  14040. speed: 80,
  14041. step: false,
  14042. duration: 1500,
  14043. disableTouch: true } };exports.default = _default;
  14044. /***/ }),
  14045. /* 66 */
  14046. /*!*****************************************************************************!*\
  14047. !*** E:/代码/cbz/cbz/cbz/uni_modules/uview-ui/libs/config/props/countDown.js ***!
  14048. \*****************************************************************************/
  14049. /*! no static exports found */
  14050. /***/ (function(module, exports, __webpack_require__) {
  14051. "use strict";
  14052. Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0; /*
  14053. * @Author : LQ
  14054. * @Description :
  14055. * @version : 1.0
  14056. * @Date : 2021-08-20 16:44:21
  14057. * @LastAuthor : LQ
  14058. * @lastTime : 2021-08-20 17:11:29
  14059. * @FilePath : /u-view2.0/uview-ui/libs/config/props/countDown.js
  14060. */var _default =
  14061. {
  14062. // u-count-down 计时器组件
  14063. countDown: {
  14064. time: 0,
  14065. format: 'HH:mm:ss',
  14066. autoStart: true,
  14067. millisecond: false } };exports.default = _default;
  14068. /***/ }),
  14069. /* 67 */
  14070. /*!***************************************************************************!*\
  14071. !*** E:/代码/cbz/cbz/cbz/uni_modules/uview-ui/libs/config/props/countTo.js ***!
  14072. \***************************************************************************/
  14073. /*! no static exports found */
  14074. /***/ (function(module, exports, __webpack_require__) {
  14075. "use strict";
  14076. Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0; /*
  14077. * @Author : LQ
  14078. * @Description :
  14079. * @version : 1.0
  14080. * @Date : 2021-08-20 16:44:21
  14081. * @LastAuthor : LQ
  14082. * @lastTime : 2021-08-20 16:57:32
  14083. * @FilePath : /u-view2.0/uview-ui/libs/config/props/countTo.js
  14084. */var _default =
  14085. {
  14086. // countTo 组件
  14087. countTo: {
  14088. startVal: 0,
  14089. endVal: 0,
  14090. duration: 2000,
  14091. autoplay: true,
  14092. decimals: 0,
  14093. useEasing: true,
  14094. decimal: '.',
  14095. color: '#606266',
  14096. fontSize: 22,
  14097. bold: false,
  14098. separator: '' } };exports.default = _default;
  14099. /***/ }),
  14100. /* 68 */
  14101. /*!**********************************************************************************!*\
  14102. !*** E:/代码/cbz/cbz/cbz/uni_modules/uview-ui/libs/config/props/datetimePicker.js ***!
  14103. \**********************************************************************************/
  14104. /*! no static exports found */
  14105. /***/ (function(module, exports, __webpack_require__) {
  14106. "use strict";
  14107. Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0; /*
  14108. * @Author : LQ
  14109. * @Description :
  14110. * @version : 1.0
  14111. * @Date : 2021-08-20 16:44:21
  14112. * @LastAuthor : LQ
  14113. * @lastTime : 2021-08-20 16:57:48
  14114. * @FilePath : /u-view2.0/uview-ui/libs/config/props/datetimePicker.js
  14115. */var _default =
  14116. {
  14117. // datetimePicker 组件
  14118. datetimePicker: {
  14119. show: false,
  14120. showToolbar: true,
  14121. value: '',
  14122. title: '',
  14123. mode: 'datetime',
  14124. maxDate: new Date(new Date().getFullYear() + 10, 0, 1).getTime(),
  14125. minDate: new Date(new Date().getFullYear() - 10, 0, 1).getTime(),
  14126. minHour: 0,
  14127. maxHour: 23,
  14128. minMinute: 0,
  14129. maxMinute: 59,
  14130. filter: null,
  14131. formatter: null,
  14132. loading: false,
  14133. itemHeight: 44,
  14134. cancelText: '取消',
  14135. confirmText: '确认',
  14136. cancelColor: '#909193',
  14137. confirmColor: '#3c9cff',
  14138. visibleItemCount: 5,
  14139. closeOnClickOverlay: false,
  14140. defaultIndex: function defaultIndex() {return [];} } };exports.default = _default;
  14141. /***/ }),
  14142. /* 69 */
  14143. /*!***************************************************************************!*\
  14144. !*** E:/代码/cbz/cbz/cbz/uni_modules/uview-ui/libs/config/props/divider.js ***!
  14145. \***************************************************************************/
  14146. /*! no static exports found */
  14147. /***/ (function(module, exports, __webpack_require__) {
  14148. "use strict";
  14149. Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0; /*
  14150. * @Author : LQ
  14151. * @Description :
  14152. * @version : 1.0
  14153. * @Date : 2021-08-20 16:44:21
  14154. * @LastAuthor : LQ
  14155. * @lastTime : 2021-08-20 16:58:03
  14156. * @FilePath : /u-view2.0/uview-ui/libs/config/props/divider.js
  14157. */var _default =
  14158. {
  14159. // divider组件
  14160. divider: {
  14161. dashed: false,
  14162. hairline: true,
  14163. dot: false,
  14164. textPosition: 'center',
  14165. text: '',
  14166. textSize: 14,
  14167. textColor: '#909399',
  14168. lineColor: '#dcdfe6' } };exports.default = _default;
  14169. /***/ }),
  14170. /* 70 */
  14171. /*!*************************************************************************!*\
  14172. !*** E:/代码/cbz/cbz/cbz/uni_modules/uview-ui/libs/config/props/empty.js ***!
  14173. \*************************************************************************/
  14174. /*! no static exports found */
  14175. /***/ (function(module, exports, __webpack_require__) {
  14176. "use strict";
  14177. Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0; /*
  14178. * @Author : LQ
  14179. * @Description :
  14180. * @version : 1.0
  14181. * @Date : 2021-08-20 16:44:21
  14182. * @LastAuthor : LQ
  14183. * @lastTime : 2021-08-20 17:03:27
  14184. * @FilePath : /u-view2.0/uview-ui/libs/config/props/empty.js
  14185. */var _default =
  14186. {
  14187. // empty组件
  14188. empty: {
  14189. icon: '',
  14190. text: '',
  14191. textColor: '#c0c4cc',
  14192. textSize: 14,
  14193. iconColor: '#c0c4cc',
  14194. iconSize: 90,
  14195. mode: 'data',
  14196. width: 160,
  14197. height: 160,
  14198. show: true,
  14199. marginTop: 0 } };exports.default = _default;
  14200. /***/ }),
  14201. /* 71 */
  14202. /*!************************************************************************!*\
  14203. !*** E:/代码/cbz/cbz/cbz/uni_modules/uview-ui/libs/config/props/form.js ***!
  14204. \************************************************************************/
  14205. /*! no static exports found */
  14206. /***/ (function(module, exports, __webpack_require__) {
  14207. "use strict";
  14208. Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0; /*
  14209. * @Author : LQ
  14210. * @Description :
  14211. * @version : 1.0
  14212. * @Date : 2021-08-20 16:44:21
  14213. * @LastAuthor : LQ
  14214. * @lastTime : 2021-08-20 17:03:49
  14215. * @FilePath : /u-view2.0/uview-ui/libs/config/props/form.js
  14216. */var _default =
  14217. {
  14218. // form 组件
  14219. form: {
  14220. model: function model() {return {};},
  14221. rules: function rules() {return {};},
  14222. errorType: 'message',
  14223. borderBottom: true,
  14224. labelPosition: 'left',
  14225. labelWidth: 45,
  14226. labelAlign: 'left',
  14227. labelStyle: function labelStyle() {return {};} } };exports.default = _default;
  14228. /***/ }),
  14229. /* 72 */
  14230. /*!****************************************************************************!*\
  14231. !*** E:/代码/cbz/cbz/cbz/uni_modules/uview-ui/libs/config/props/formItem.js ***!
  14232. \****************************************************************************/
  14233. /*! no static exports found */
  14234. /***/ (function(module, exports, __webpack_require__) {
  14235. "use strict";
  14236. Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0; /*
  14237. * @Author : LQ
  14238. * @Description :
  14239. * @version : 1.0
  14240. * @Date : 2021-08-20 16:44:21
  14241. * @LastAuthor : LQ
  14242. * @lastTime : 2021-08-20 17:04:32
  14243. * @FilePath : /u-view2.0/uview-ui/libs/config/props/formItem.js
  14244. */var _default =
  14245. {
  14246. // formItem 组件
  14247. formItem: {
  14248. label: '',
  14249. prop: '',
  14250. borderBottom: '',
  14251. labelWidth: '',
  14252. rightIcon: '',
  14253. leftIcon: '',
  14254. required: false,
  14255. leftIconStyle: '' } };exports.default = _default;
  14256. /***/ }),
  14257. /* 73 */
  14258. /*!***********************************************************************!*\
  14259. !*** E:/代码/cbz/cbz/cbz/uni_modules/uview-ui/libs/config/props/gap.js ***!
  14260. \***********************************************************************/
  14261. /*! no static exports found */
  14262. /***/ (function(module, exports, __webpack_require__) {
  14263. "use strict";
  14264. Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0; /*
  14265. * @Author : LQ
  14266. * @Description :
  14267. * @version : 1.0
  14268. * @Date : 2021-08-20 16:44:21
  14269. * @LastAuthor : LQ
  14270. * @lastTime : 2021-08-20 17:05:25
  14271. * @FilePath : /u-view2.0/uview-ui/libs/config/props/gap.js
  14272. */var _default =
  14273. {
  14274. // gap组件
  14275. gap: {
  14276. bgColor: 'transparent',
  14277. height: 20,
  14278. marginTop: 0,
  14279. marginBottom: 0,
  14280. customStyle: {} } };exports.default = _default;
  14281. /***/ }),
  14282. /* 74 */
  14283. /*!************************************************************************!*\
  14284. !*** E:/代码/cbz/cbz/cbz/uni_modules/uview-ui/libs/config/props/grid.js ***!
  14285. \************************************************************************/
  14286. /*! no static exports found */
  14287. /***/ (function(module, exports, __webpack_require__) {
  14288. "use strict";
  14289. Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0; /*
  14290. * @Author : LQ
  14291. * @Description :
  14292. * @version : 1.0
  14293. * @Date : 2021-08-20 16:44:21
  14294. * @LastAuthor : LQ
  14295. * @lastTime : 2021-08-20 17:05:57
  14296. * @FilePath : /u-view2.0/uview-ui/libs/config/props/grid.js
  14297. */var _default =
  14298. {
  14299. // grid组件
  14300. grid: {
  14301. col: 3,
  14302. border: false,
  14303. align: 'left' } };exports.default = _default;
  14304. /***/ }),
  14305. /* 75 */
  14306. /*!****************************************************************************!*\
  14307. !*** E:/代码/cbz/cbz/cbz/uni_modules/uview-ui/libs/config/props/gridItem.js ***!
  14308. \****************************************************************************/
  14309. /*! no static exports found */
  14310. /***/ (function(module, exports, __webpack_require__) {
  14311. "use strict";
  14312. Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0; /*
  14313. * @Author : LQ
  14314. * @Description :
  14315. * @version : 1.0
  14316. * @Date : 2021-08-20 16:44:21
  14317. * @LastAuthor : LQ
  14318. * @lastTime : 2021-08-20 17:06:13
  14319. * @FilePath : /u-view2.0/uview-ui/libs/config/props/gridItem.js
  14320. */var _default =
  14321. {
  14322. // grid-item组件
  14323. gridItem: {
  14324. name: null,
  14325. bgColor: 'transparent' } };exports.default = _default;
  14326. /***/ }),
  14327. /* 76 */
  14328. /*!************************************************************************!*\
  14329. !*** E:/代码/cbz/cbz/cbz/uni_modules/uview-ui/libs/config/props/icon.js ***!
  14330. \************************************************************************/
  14331. /*! no static exports found */
  14332. /***/ (function(module, exports, __webpack_require__) {
  14333. "use strict";
  14334. Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0;
  14335. var _config = _interopRequireDefault(__webpack_require__(/*! ../config */ 43));function _interopRequireDefault(obj) {return obj && obj.__esModule ? obj : { default: obj };} /*
  14336. * @Author : LQ
  14337. * @Description :
  14338. * @version : 1.0
  14339. * @Date : 2021-08-20 16:44:21
  14340. * @LastAuthor : LQ
  14341. * @lastTime : 2021-08-20 18:00:14
  14342. * @FilePath : /u-view2.0/uview-ui/libs/config/props/icon.js
  14343. */var color = _config.default.color;var _default = { // icon组件
  14344. icon: { name: '', color: color['u-content-color'],
  14345. size: '16px',
  14346. bold: false,
  14347. index: '',
  14348. hoverClass: '',
  14349. customPrefix: 'uicon',
  14350. label: '',
  14351. labelPos: 'right',
  14352. labelSize: '15px',
  14353. labelColor: color['u-content-color'],
  14354. space: '3px',
  14355. imgMode: '',
  14356. width: '',
  14357. height: '',
  14358. top: 0,
  14359. stop: false } };exports.default = _default;
  14360. /***/ }),
  14361. /* 77 */
  14362. /*!*************************************************************************!*\
  14363. !*** E:/代码/cbz/cbz/cbz/uni_modules/uview-ui/libs/config/props/image.js ***!
  14364. \*************************************************************************/
  14365. /*! no static exports found */
  14366. /***/ (function(module, exports, __webpack_require__) {
  14367. "use strict";
  14368. Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0; /*
  14369. * @Author : LQ
  14370. * @Description :
  14371. * @version : 1.0
  14372. * @Date : 2021-08-20 16:44:21
  14373. * @LastAuthor : LQ
  14374. * @lastTime : 2021-08-20 17:01:51
  14375. * @FilePath : /u-view2.0/uview-ui/libs/config/props/image.js
  14376. */var _default =
  14377. {
  14378. // image组件
  14379. image: {
  14380. src: '',
  14381. mode: 'aspectFill',
  14382. width: '300',
  14383. height: '225',
  14384. shape: 'square',
  14385. radius: 0,
  14386. lazyLoad: true,
  14387. showMenuByLongpress: true,
  14388. loadingIcon: 'photo',
  14389. errorIcon: 'error-circle',
  14390. showLoading: true,
  14391. showError: true,
  14392. fade: true,
  14393. webp: false,
  14394. duration: 500,
  14395. bgColor: '#f3f4f6' } };exports.default = _default;
  14396. /***/ }),
  14397. /* 78 */
  14398. /*!*******************************************************************************!*\
  14399. !*** E:/代码/cbz/cbz/cbz/uni_modules/uview-ui/libs/config/props/indexAnchor.js ***!
  14400. \*******************************************************************************/
  14401. /*! no static exports found */
  14402. /***/ (function(module, exports, __webpack_require__) {
  14403. "use strict";
  14404. Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0; /*
  14405. * @Author : LQ
  14406. * @Description :
  14407. * @version : 1.0
  14408. * @Date : 2021-08-20 16:44:21
  14409. * @LastAuthor : LQ
  14410. * @lastTime : 2021-08-20 17:13:15
  14411. * @FilePath : /u-view2.0/uview-ui/libs/config/props/indexAnchor.js
  14412. */var _default =
  14413. {
  14414. // indexAnchor 组件
  14415. indexAnchor: {
  14416. text: '',
  14417. color: '#606266',
  14418. size: 14,
  14419. bgColor: '#dedede',
  14420. height: 32 } };exports.default = _default;
  14421. /***/ }),
  14422. /* 79 */
  14423. /*!*****************************************************************************!*\
  14424. !*** E:/代码/cbz/cbz/cbz/uni_modules/uview-ui/libs/config/props/indexList.js ***!
  14425. \*****************************************************************************/
  14426. /*! no static exports found */
  14427. /***/ (function(module, exports, __webpack_require__) {
  14428. "use strict";
  14429. Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0; /*
  14430. * @Author : LQ
  14431. * @Description :
  14432. * @version : 1.0
  14433. * @Date : 2021-08-20 16:44:21
  14434. * @LastAuthor : LQ
  14435. * @lastTime : 2021-08-20 17:13:35
  14436. * @FilePath : /u-view2.0/uview-ui/libs/config/props/indexList.js
  14437. */var _default =
  14438. {
  14439. // indexList 组件
  14440. indexList: {
  14441. inactiveColor: '#606266',
  14442. activeColor: '#5677fc',
  14443. indexList: function indexList() {return [];},
  14444. sticky: true,
  14445. customNavHeight: 0 } };exports.default = _default;
  14446. /***/ }),
  14447. /* 80 */
  14448. /*!*************************************************************************!*\
  14449. !*** E:/代码/cbz/cbz/cbz/uni_modules/uview-ui/libs/config/props/input.js ***!
  14450. \*************************************************************************/
  14451. /*! no static exports found */
  14452. /***/ (function(module, exports, __webpack_require__) {
  14453. "use strict";
  14454. Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0; /*
  14455. * @Author : LQ
  14456. * @Description :
  14457. * @version : 1.0
  14458. * @Date : 2021-08-20 16:44:21
  14459. * @LastAuthor : LQ
  14460. * @lastTime : 2021-08-20 17:13:55
  14461. * @FilePath : /u-view2.0/uview-ui/libs/config/props/input.js
  14462. */var _default =
  14463. {
  14464. // index 组件
  14465. input: {
  14466. value: '',
  14467. type: 'text',
  14468. fixed: false,
  14469. disabled: false,
  14470. disabledColor: '#f5f7fa',
  14471. clearable: false,
  14472. password: false,
  14473. maxlength: -1,
  14474. placeholder: null,
  14475. placeholderClass: 'input-placeholder',
  14476. placeholderStyle: 'color: #c0c4cc',
  14477. showWordLimit: false,
  14478. confirmType: 'done',
  14479. confirmHold: false,
  14480. holdKeyboard: false,
  14481. focus: false,
  14482. autoBlur: false,
  14483. disableDefaultPadding: false,
  14484. cursor: -1,
  14485. cursorSpacing: 30,
  14486. selectionStart: -1,
  14487. selectionEnd: -1,
  14488. adjustPosition: true,
  14489. inputAlign: 'left',
  14490. fontSize: '15px',
  14491. color: '#303133',
  14492. prefixIcon: '',
  14493. prefixIconStyle: '',
  14494. suffixIcon: '',
  14495. suffixIconStyle: '',
  14496. border: 'surround',
  14497. readonly: false,
  14498. shape: 'square',
  14499. formatter: null } };exports.default = _default;
  14500. /***/ }),
  14501. /* 81 */
  14502. /*!****************************************************************************!*\
  14503. !*** E:/代码/cbz/cbz/cbz/uni_modules/uview-ui/libs/config/props/keyboard.js ***!
  14504. \****************************************************************************/
  14505. /*! no static exports found */
  14506. /***/ (function(module, exports, __webpack_require__) {
  14507. "use strict";
  14508. Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0; /*
  14509. * @Author : LQ
  14510. * @Description :
  14511. * @version : 1.0
  14512. * @Date : 2021-08-20 16:44:21
  14513. * @LastAuthor : LQ
  14514. * @lastTime : 2021-08-20 17:07:49
  14515. * @FilePath : /u-view2.0/uview-ui/libs/config/props/keyboard.js
  14516. */var _default =
  14517. {
  14518. // 键盘组件
  14519. keyboard: {
  14520. mode: 'number',
  14521. dotDisabled: false,
  14522. tooltip: true,
  14523. showTips: true,
  14524. tips: '',
  14525. showCancel: true,
  14526. showConfirm: true,
  14527. random: false,
  14528. safeAreaInsetBottom: true,
  14529. closeOnClickOverlay: true,
  14530. show: false,
  14531. overlay: true,
  14532. zIndex: 10075,
  14533. cancelText: '取消',
  14534. confirmText: '确定',
  14535. autoChange: false } };exports.default = _default;
  14536. /***/ }),
  14537. /* 82 */
  14538. /*!************************************************************************!*\
  14539. !*** E:/代码/cbz/cbz/cbz/uni_modules/uview-ui/libs/config/props/line.js ***!
  14540. \************************************************************************/
  14541. /*! no static exports found */
  14542. /***/ (function(module, exports, __webpack_require__) {
  14543. "use strict";
  14544. Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0; /*
  14545. * @Author : LQ
  14546. * @Description :
  14547. * @version : 1.0
  14548. * @Date : 2021-08-20 16:44:21
  14549. * @LastAuthor : LQ
  14550. * @lastTime : 2021-08-20 17:04:49
  14551. * @FilePath : /u-view2.0/uview-ui/libs/config/props/line.js
  14552. */var _default =
  14553. {
  14554. // line组件
  14555. line: {
  14556. color: '#d6d7d9',
  14557. length: '100%',
  14558. direction: 'row',
  14559. hairline: true,
  14560. margin: 0,
  14561. dashed: false } };exports.default = _default;
  14562. /***/ }),
  14563. /* 83 */
  14564. /*!********************************************************************************!*\
  14565. !*** E:/代码/cbz/cbz/cbz/uni_modules/uview-ui/libs/config/props/lineProgress.js ***!
  14566. \********************************************************************************/
  14567. /*! no static exports found */
  14568. /***/ (function(module, exports, __webpack_require__) {
  14569. "use strict";
  14570. Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0; /*
  14571. * @Author : LQ
  14572. * @Description :
  14573. * @version : 1.0
  14574. * @Date : 2021-08-20 16:44:21
  14575. * @LastAuthor : LQ
  14576. * @lastTime : 2021-08-20 17:14:11
  14577. * @FilePath : /u-view2.0/uview-ui/libs/config/props/lineProgress.js
  14578. */var _default =
  14579. {
  14580. // lineProgress 组件
  14581. lineProgress: {
  14582. activeColor: '#19be6b',
  14583. inactiveColor: '#ececec',
  14584. percentage: 0,
  14585. showText: true,
  14586. height: 12 } };exports.default = _default;
  14587. /***/ }),
  14588. /* 84 */
  14589. /*!************************************************************************!*\
  14590. !*** E:/代码/cbz/cbz/cbz/uni_modules/uview-ui/libs/config/props/link.js ***!
  14591. \************************************************************************/
  14592. /*! no static exports found */
  14593. /***/ (function(module, exports, __webpack_require__) {
  14594. "use strict";
  14595. Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0;
  14596. var _config = _interopRequireDefault(__webpack_require__(/*! ../config */ 43));function _interopRequireDefault(obj) {return obj && obj.__esModule ? obj : { default: obj };} /*
  14597. * @Author : LQ
  14598. * @Description :
  14599. * @version : 1.0
  14600. * @Date : 2021-08-20 16:44:21
  14601. * @LastAuthor : LQ
  14602. * @lastTime : 2021-08-20 17:45:36
  14603. * @FilePath : /u-view2.0/uview-ui/libs/config/props/link.js
  14604. */var color = _config.default.color;var _default = { // link超链接组件props参数
  14605. link: { color: color['u-primary'], fontSize: 15,
  14606. underLine: false,
  14607. href: '',
  14608. mpTips: '链接已复制,请在浏览器打开',
  14609. lineColor: '',
  14610. text: '' } };exports.default = _default;
  14611. /***/ }),
  14612. /* 85 */
  14613. /*!************************************************************************!*\
  14614. !*** E:/代码/cbz/cbz/cbz/uni_modules/uview-ui/libs/config/props/list.js ***!
  14615. \************************************************************************/
  14616. /*! no static exports found */
  14617. /***/ (function(module, exports, __webpack_require__) {
  14618. "use strict";
  14619. Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0; /*
  14620. * @Author : LQ
  14621. * @Description :
  14622. * @version : 1.0
  14623. * @Date : 2021-08-20 16:44:21
  14624. * @LastAuthor : LQ
  14625. * @lastTime : 2021-08-20 17:14:53
  14626. * @FilePath : /u-view2.0/uview-ui/libs/config/props/list.js
  14627. */var _default =
  14628. {
  14629. // list 组件
  14630. list: {
  14631. showScrollbar: false,
  14632. lowerThreshold: 50,
  14633. upperThreshold: 0,
  14634. scrollTop: 0,
  14635. offsetAccuracy: 10,
  14636. enableFlex: false,
  14637. pagingEnabled: false,
  14638. scrollable: true,
  14639. scrollIntoView: '',
  14640. scrollWithAnimation: false,
  14641. enableBackToTop: false,
  14642. height: 0,
  14643. width: 0,
  14644. preLoadScreen: 1 } };exports.default = _default;
  14645. /***/ }),
  14646. /* 86 */
  14647. /*!****************************************************************************!*\
  14648. !*** E:/代码/cbz/cbz/cbz/uni_modules/uview-ui/libs/config/props/listItem.js ***!
  14649. \****************************************************************************/
  14650. /*! no static exports found */
  14651. /***/ (function(module, exports, __webpack_require__) {
  14652. "use strict";
  14653. Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0; /*
  14654. * @Author : LQ
  14655. * @Description :
  14656. * @version : 1.0
  14657. * @Date : 2021-08-20 16:44:21
  14658. * @LastAuthor : LQ
  14659. * @lastTime : 2021-08-20 17:15:40
  14660. * @FilePath : /u-view2.0/uview-ui/libs/config/props/listItem.js
  14661. */var _default =
  14662. {
  14663. // listItem 组件
  14664. listItem: {
  14665. anchor: '' } };exports.default = _default;
  14666. /***/ }),
  14667. /* 87 */
  14668. /*!*******************************************************************************!*\
  14669. !*** E:/代码/cbz/cbz/cbz/uni_modules/uview-ui/libs/config/props/loadingIcon.js ***!
  14670. \*******************************************************************************/
  14671. /*! no static exports found */
  14672. /***/ (function(module, exports, __webpack_require__) {
  14673. "use strict";
  14674. Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0;
  14675. var _config = _interopRequireDefault(__webpack_require__(/*! ../config */ 43));function _interopRequireDefault(obj) {return obj && obj.__esModule ? obj : { default: obj };} /*
  14676. * @Author : LQ
  14677. * @Description :
  14678. * @version : 1.0
  14679. * @Date : 2021-08-20 16:44:21
  14680. * @LastAuthor : LQ
  14681. * @lastTime : 2021-08-20 17:45:47
  14682. * @FilePath : /u-view2.0/uview-ui/libs/config/props/loadingIcon.js
  14683. */var color = _config.default.color;var _default = { // loading-icon加载中图标组件
  14684. loadingIcon: { show: true, color: color['u-tips-color'],
  14685. textColor: color['u-tips-color'],
  14686. vertical: false,
  14687. mode: 'spinner',
  14688. size: 24,
  14689. textSize: 15,
  14690. text: '',
  14691. timingFunction: 'ease-in-out',
  14692. duration: 1200,
  14693. inactiveColor: '' } };exports.default = _default;
  14694. /***/ }),
  14695. /* 88 */
  14696. /*!*******************************************************************************!*\
  14697. !*** E:/代码/cbz/cbz/cbz/uni_modules/uview-ui/libs/config/props/loadingPage.js ***!
  14698. \*******************************************************************************/
  14699. /*! no static exports found */
  14700. /***/ (function(module, exports, __webpack_require__) {
  14701. "use strict";
  14702. Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0; /*
  14703. * @Author : LQ
  14704. * @Description :
  14705. * @version : 1.0
  14706. * @Date : 2021-08-20 16:44:21
  14707. * @LastAuthor : LQ
  14708. * @lastTime : 2021-08-20 17:00:23
  14709. * @FilePath : /u-view2.0/uview-ui/libs/config/props/loadingPage.js
  14710. */var _default =
  14711. {
  14712. // loading-page组件
  14713. loadingPage: {
  14714. loadingText: '正在加载',
  14715. image: '',
  14716. loadingMode: 'circle',
  14717. loading: false,
  14718. bgColor: '#ffffff',
  14719. color: '#C8C8C8',
  14720. fontSize: 19,
  14721. iconSize: 28,
  14722. loadingColor: '#C8C8C8' } };exports.default = _default;
  14723. /***/ }),
  14724. /* 89 */
  14725. /*!****************************************************************************!*\
  14726. !*** E:/代码/cbz/cbz/cbz/uni_modules/uview-ui/libs/config/props/loadmore.js ***!
  14727. \****************************************************************************/
  14728. /*! no static exports found */
  14729. /***/ (function(module, exports, __webpack_require__) {
  14730. "use strict";
  14731. Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0; /*
  14732. * @Author : LQ
  14733. * @Description :
  14734. * @version : 1.0
  14735. * @Date : 2021-08-20 16:44:21
  14736. * @LastAuthor : LQ
  14737. * @lastTime : 2021-08-20 17:15:26
  14738. * @FilePath : /u-view2.0/uview-ui/libs/config/props/loadmore.js
  14739. */var _default =
  14740. {
  14741. // loadmore 组件
  14742. loadmore: {
  14743. status: 'loadmore',
  14744. bgColor: 'transparent',
  14745. icon: true,
  14746. fontSize: 14,
  14747. iconSize: 17,
  14748. color: '#606266',
  14749. loadingIcon: 'spinner',
  14750. loadmoreText: '加载更多',
  14751. loadingText: '正在加载...',
  14752. nomoreText: '没有更多了',
  14753. isDot: false,
  14754. iconColor: '#b7b7b7',
  14755. marginTop: 10,
  14756. marginBottom: 10,
  14757. height: 'auto',
  14758. line: false,
  14759. lineColor: '#E6E8EB',
  14760. dashed: false } };exports.default = _default;
  14761. /***/ }),
  14762. /* 90 */
  14763. /*!*************************************************************************!*\
  14764. !*** E:/代码/cbz/cbz/cbz/uni_modules/uview-ui/libs/config/props/modal.js ***!
  14765. \*************************************************************************/
  14766. /*! no static exports found */
  14767. /***/ (function(module, exports, __webpack_require__) {
  14768. "use strict";
  14769. Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0; /*
  14770. * @Author : LQ
  14771. * @Description :
  14772. * @version : 1.0
  14773. * @Date : 2021-08-20 16:44:21
  14774. * @LastAuthor : LQ
  14775. * @lastTime : 2021-08-20 17:15:59
  14776. * @FilePath : /u-view2.0/uview-ui/libs/config/props/modal.js
  14777. */var _default =
  14778. {
  14779. // modal 组件
  14780. modal: {
  14781. show: false,
  14782. title: '',
  14783. content: '',
  14784. confirmText: '确认',
  14785. cancelText: '取消',
  14786. showConfirmButton: true,
  14787. showCancelButton: false,
  14788. confirmColor: '#2979ff',
  14789. cancelColor: '#606266',
  14790. buttonReverse: false,
  14791. zoom: true,
  14792. asyncClose: false,
  14793. closeOnClickOverlay: false,
  14794. negativeTop: 0,
  14795. width: '650rpx',
  14796. confirmButtonShape: '' } };exports.default = _default;
  14797. /***/ }),
  14798. /* 91 */
  14799. /*!**************************************************************************!*\
  14800. !*** E:/代码/cbz/cbz/cbz/uni_modules/uview-ui/libs/config/props/navbar.js ***!
  14801. \**************************************************************************/
  14802. /*! no static exports found */
  14803. /***/ (function(module, exports, __webpack_require__) {
  14804. "use strict";
  14805. Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0;
  14806. var _color = _interopRequireDefault(__webpack_require__(/*! ../color */ 92));function _interopRequireDefault(obj) {return obj && obj.__esModule ? obj : { default: obj };} /*
  14807. * @Author : LQ
  14808. * @Description :
  14809. * @version : 1.0
  14810. * @Date : 2021-08-20 16:44:21
  14811. * @LastAuthor : LQ
  14812. * @lastTime : 2021-08-20 17:16:18
  14813. * @FilePath : /u-view2.0/uview-ui/libs/config/props/navbar.js
  14814. */var _default = { // navbar 组件
  14815. navbar: { safeAreaInsetTop: true, placeholder: false, fixed: true, border: false, leftIcon: 'arrow-left', leftText: '',
  14816. rightText: '',
  14817. rightIcon: '',
  14818. title: '',
  14819. bgColor: '#ffffff',
  14820. titleWidth: '400rpx',
  14821. height: '44px',
  14822. leftIconSize: 20,
  14823. leftIconColor: _color.default.mainColor,
  14824. autoBack: false,
  14825. titleStyle: '' } };exports.default = _default;
  14826. /***/ }),
  14827. /* 92 */
  14828. /*!*******************************************************************!*\
  14829. !*** E:/代码/cbz/cbz/cbz/uni_modules/uview-ui/libs/config/color.js ***!
  14830. \*******************************************************************/
  14831. /*! no static exports found */
  14832. /***/ (function(module, exports, __webpack_require__) {
  14833. "use strict";
  14834. Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0; // 为了让用户能够自定义主题,会逐步弃用此文件,各颜色通过css提供
  14835. // 为了给某些特殊场景使用和向后兼容,无需删除此文件(2020-06-20)
  14836. var color = {
  14837. primary: '#3c9cff',
  14838. info: '#909399',
  14839. default: '#909399',
  14840. warning: '#f9ae3d',
  14841. error: '#f56c6c',
  14842. success: '#5ac725',
  14843. mainColor: '#303133',
  14844. contentColor: '#606266',
  14845. tipsColor: '#909399',
  14846. lightColor: '#c0c4cc',
  14847. borderColor: '#e4e7ed' };var _default =
  14848. color;exports.default = _default;
  14849. /***/ }),
  14850. /* 93 */
  14851. /*!*****************************************************************************!*\
  14852. !*** E:/代码/cbz/cbz/cbz/uni_modules/uview-ui/libs/config/props/noNetwork.js ***!
  14853. \*****************************************************************************/
  14854. /*! no static exports found */
  14855. /***/ (function(module, exports, __webpack_require__) {
  14856. "use strict";
  14857. Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0; /*
  14858. * @Author : LQ
  14859. * @Description :
  14860. * @version : 1.0
  14861. * @Date : 2021-08-20 16:44:21
  14862. * @LastAuthor : LQ
  14863. * @lastTime : 2021-08-20 17:16:39
  14864. * @FilePath : /u-view2.0/uview-ui/libs/config/props/noNetwork.js
  14865. */var _default =
  14866. {
  14867. // noNetwork
  14868. noNetwork: {
  14869. tips: '哎呀,网络信号丢失',
  14870. zIndex: '',
  14871. image: 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAASwAAAEsCAYAAAB5fY51AAAAAXNSR0IArs4c6QAAAERlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAA6ABAAMAAAABAAEAAKACAAQAAAABAAABLKADAAQAAAABAAABLAAAAADYYILnAABAAElEQVR4Ae29CZhkV3kefNeq6m2W7tn3nl0aCbHIAgmQPGB+sLCNzSID9g9PYrAf57d/+4+DiW0cy8QBJ06c2In/PLFDHJ78+MGCGNsYgyxwIwktwEijAc1ohtmnZ+2Z7p5eq6vu9r/vuXWrq25VdVV1V3dXVX9Hmj73nv285963vvOd75yraeIEAUFAEBAEBAFBQBAQBAQBQUAQEAQEAUFAEBAEBAFBQBAQBAQBQUAQEAQEAUFAEBAEBAFBQBAQBAQBQUAQEAQEAUFAEBAEBAFBQBAQBAQBQUAQEAQEAUFAEBAEBAFBQBAQBAQBQUAQEAQEAUFAEBAEBAFBQBAQBAQBQUAQEAQEAUFAEBAEBAFBQBAQBAQBQUAQEAQEAUFAEBAEBAFBQBAQBAQBQUAQEAQEAUFAEBAEBAFBQBAQBAQBQUAQEAQEAUFAEBAEBAFBQBAQBAQBQUAQEAQEAUFAEBAEBAFBQBAQBAQBQUAQEAQEAUFAEBAEBAFBQBAQBAQBQUAQEAQEAUFAEBAEBAFBQBAQBAQBQUAQEAQEAUFAEBAEBAFBQBAQBAQBQUAQEAQEAUFAEBAEBAFBQBAQBAQBQUAQEAQEAUFAEBAEBAFBQBAQBAQBQUAQEAQEAUFAEBAEBAFBQBAQBAQBQUAQaD8E9PbrkvRopSMwMBBYRs+5O/yJS68cPnzYXel4tFP/jXbqjPRFEAiCQNe6Bw/6gdFn9Oy9Q90LLG2DgBBW2wyldIQIPPPCte2a5q3jtR+4ff/4wuBuXotrDwSEsNpjHKUXQODppy+udYJMEUEZgbd94DvnNwlA7YGAEFZ7jOOK78Xp06eTTkq7sxwQhmXuf/754VXl4iSstRAQwmqt8ZLWlkHg0UcD49qYfUjXfLtMtOZ7npExJu4iqZWLl7DWQUAIq3XGSlpaAYHD77q8xwuCOSUoXw8Sl0eMux977DGzQjES3AIICGG1wCBJEysj8PXnz230XXdr5RQFMYbRvWnv6w8UhMhliyGwYghr4Pjg3oEXL34ey9zyC9tiD2ml5h47dr1LN7S6CMjz/A3PvHh1Z6UyJby5EVgRhKUe7Kz/JU0LfvrJo5f+Y3MPibSuFgQGBgasYSd9l6GDsup0WS/T/9RTp9fXmU2SNwECdQ92E7S57iaMeJnPQLK6ixkDLfjlb7546RfrLkQyNBcC3dsP6oHWMd9G+V3JgwPHh7rnm1/yLQ8CbU9Y33zp0j+nZFUMb/DHmB7+SHGY3LUKAk8cObtD00xlHDrfNge+Z2ozU3c9dvx4Yr5lSL6lR6CtCWvg6OAPw9z538ZhhZRl6XrwhW8du1KX/iNejtwvPQIDR8+vSRqJ/obU7GupjdNdh2gW0ZDypJBFR6BtB2rg2OVtuub9JcmpHIpBoK1xfffLzx4f7C0XL2HNiYDp6bs9z23Ypn1fC1Y/9PCFDc3ZW2lVHIG2JKzTp4Ok7nv/G6Q054MIvda+bNb74pEgKGtwGAdL7pcfAa8vOKEZ2kyjWuLr7uDh+/qvN6o8KWdxEWhLwroyeek/g4zuqwU6kNrhyZcu/UktaSXN8iNwuL9/RuvVXtJ9PbPQ1vhmcP6t9+47u9ByJP/SIdB2hDVw9MJHQFYfrQdCph84evFX68kjaZcPAZJWwjMXRFpJ2zr91tfuvrh8vZCa54NA2xGWrunvmg8QWCJ/N4ir7fCYDxatkOeBB7an501agXbygVdvv9IK/ZQ2FiPQdi9osGbH+zRNf7y4m9Xu9Me7N9nv0HXdr5ZS4psHgXpJC9P/wDRTx0Vn1TxjWG9LGrbaUm/Fi5meSvcrkxf/Cg/ow9XqAUk91v3qHT97r6471dJKfHMi8Oyzgx1Z03t1YAQVT2MwgsC3u+yXHzi0faQ5eyGtqgWBtpOw2Ol9+/TM+sTOn8L08MtzgQCy+tOHXr3jA0JWc6HU/HF5Scssr4jXcYqfP6V/T8iq+ceyWgvbUsKKOn38eJAYyl56TAuCEr2WYei//9Crd/5GlFb81kdASVopSFrerKRlaoZj9HR+700H10+0fg+lB21NWBxe2lhNHsUpDZr27mi4dV379R9+za4/iO7Fbx8ECknLCPTsTDJ17O33bJpqnx6u7J60PWFxeAcCbMV56dJfQKf1bkMLfuGh1+76zMoe9vbuPUnLsb2DtmOe5HSxvXsrvWtLBEhaTx29+Ma27Jx0ShAQBAQBQUAQEAQEAUFAEBAEBAFBQBAQBAQBQUAQEAQEAUFAEBAEBAFBQBAQBAQBQUAQaEsEVoQdVluO3BJ06ptHL34b1XRjp4Ch6Rq24+kmjG4Nwwg+9uA9u/73EjRBqhAEihAoe3xwUQq5WTYEzp0b3ZnV/Ncf6O/9AvY9wlh/6dy3X7ncN512Zw9BVLXjuAP4np44vnQtkZoEgVkEhLBmsWiKqwsXpjbPBOn3gRfenwnc+7GBe+zsjclvonFDS9nA9Iy/u3x9+vAP3735VPk4CRUEFhcBIazFxbfm0k9fHD7k+v4nQFaPQIrx8Gmyx/GJ0J/t7ez7mw0b9MmaC2pQQgh0/ZSm4g5TwueWWtqLt0HuVy4CQljLPPYnB0depTn+b3t+8B4t0AdBUv93h2H9xc6da0aXs2m+r1WQsLRnl7NdUvfKRkAIa5nG//r1oGtsZvjTgev/kqYHF/TA+AXoqv4npJemOEiQU1Eo2l+G0movBK1UBBPU7s9E1+ILAkuNgKwSLjXiqO/khVtvARH8dxDBRkMzPrF/V+9/BlG5y9CUqlXinHv9mRPXtvuus88L9H3JPv2zD2yXExCqAicJBIFWRwAvv3Xqwq0/Pnn+lv/K+ZvfPH3p9p5W75O0fxaBp793ce3AwIDMWmYhafiVgNtwSMsXeHp4eNXJC8Nf0PAdRCiuf/XgrnWUqsqotcvnl9DmRkCdweX4b9N7+m/ih+mbMraLM14yJVwcXItKpT1VRve+ArC3Qqn+3gM7132jKEGZm6tXg86J7OhDfuA/iHwPUpfUZSfu2L59tXxEoQxeyxkEgjKeOnLxHb4RqC+NY5H3+2953d4XlrNN7Vq3ENYij+yZwbG9jpt9GkBPQ5H9zgP9607OVeWp87cOQtn9zwJf+xDMNFfj+jryPqXpxj8c2Nn7P+SXey70lidu4IXzb0DNB4tr9751+HV7zxSHyd1CERDCWiiCc+QPjUCnsaqmZ62O5IN7N/VUNP48ee7mAZDTf4Tt049iUG4Guv4ZfNLos9UIbo7qJWoJEHjy+bP7fNsoOcnW0A0/aacef8PdG28sQTNWTBVCWIs01OfPj66BpfqTmq732UnjgT1bei+Vq4pTv7HM8Ceg2/o1qLQug7T+FaaM3IqTLZdewpoHgYEjV9fphvOj+OShWa5V+CxvZtpzv/LwG/aNl4uXsPoRwI+4uEYjAJ2GmdG8L0FK2mYa+tsrkdXZy+P7x2ZuHdW14P+BLdank9q6Qwd3rf+ckFWjR6Tx5Q2cP58K9Jm3VCIr1ogt48lO237r3//96YofeG18y9q7RFklXITxPXV+5DchKb3ZDMy37Nu5tuxG4R9cHH6b42QfAzlds+3EPXu2rfrBIjRFilwkBIIR7SHoJDurFU89ZOd680Gke6JaWomvjoBIWNUxqivFD87fej0e0n8Fwvr0/t1rnyqX+QfnRz7g+8FX8Rv8vL3auF/IqhxKzR2WCPxXqKeq3krDTdj2ierpJEUtCIgOqxaUakwzNBR0D09yiqePHOjveyOkpxLr9VMXb73V97S/h3nDXx7Y2fdPkAYbncW1IgIDxy5vM7LZt/hgrnLtxyaBrJNxv/72N+6tuNhSLp+EVUZACKsyNnXHvHL+1qcgNf2KbSXu2bt9dcmS9qlzo/fARgcmCtpzB3b1/Vg5QiuslLowENyDWDn8cSjl98PgdBviu03N+rl9/WufLEwr18uDwLdevLTF1YK3xnVZ2HI1bUxrT7z5zTuXdRP78qCyeLUKYTUI25OXbm4JPO00TBj+6I7+db8ZL3ZwMOiYdG4dA1lN9HWte2iuI2NAVPapC8O/CGPR34Ip/AZIbIMo7yX8G9QMbcS09P+2b1vf5XgdrXaPfiYns9oeLLEd8D1/B7Dp0E1jGP042pXQj7RKf546cmGzp+tv1TRf6YQD35/QO3seP3xow5IfC9QqmM23naJ0ny9ysXwgq98BWc0kVhv/Nhalbqe8kd/Fr8MOSEr3zEVWrwyO3I29hl+E9LUHGf+nAXI6sGPdd8uV2YphIKnE5IyL6bLxk7cn3bdkHHefrpvJAExMZ1uBZmqeNzXtfzUzk/m/ens7LjV7Px+8d9e1579/44l0duZtge+Np5zEEw8c2pBu9na3YvtEwmrAqNE8IZvNHsep5//yjl3r/0O8yFOXbv0QCO05gP0JGIL+fjw+uj91YeRh/Dp/PtCDM7Zpfmjvjt6Xo7hW9ycmJjaYduf7Hdf/8HTGfa3rG9rYxLSWnsloPg7fijZV8oFM2Ja2a9t6EJd7bCztvHP7us4rrdD/r3/7ct9I99jEI4cOiQ3dIg2YEFYDgOUJDFj1e8TqX7cT4kImXuQr5279A4DeBEX8ayvprU4N3rovcALot/TH13T0fXDTJn0qXk4r3k9OTm4y7a6PzjjORzOOvn1kbEqbnEprPhRzwAKzwFLHk05hv6Yd6N+o3R6beG50aPSdr3qV6IJKkVp5ITIlXOCYn4Yexr0w/DO6YXymHFlR0e5r7tsM3fxgJbI6fW1ivTeT+SsYmr54cFff+5Cu5X+hb94Merp6/J/PusGvTE6724eGJ7RpSFOkKPCUZvBPBccoHBet3Rwe13rX9tw/PjXzZ5hKvr8SfhWKkeA2REAIa4GD6p0feRdWBnvxjv2PckVhVfBf4A29uG/X2i+Ui2eYn8n8NryuDr3jPfWSFV5k44UT137eshIP2K7/64cObbheqZ6lCp+Ydt8TBO7vTM5od1+/NR4SFVhoLpKKt410lnE8LTMzo3V2dLznxLkhYgQ9obiVjEDln7mVjEodfYcpw+MAsftg/7qSDbAnb97sCSb0Yei2fqOcbovVqKNnNO8HmAE9Cv3Wp+uoWjt27HpXNqH9WTKR+kBHKqEFbvo5y3N/avfu4g23R45f3WGa1k9ZicTd0zPTf/f6O7f8dT311Jp2fHzmgJlI/N70jPPe4bEZ6Kg4qw0lqlrLiNKBiLWerpTW25PUbkPXZViW62ecHz+4d8PXojTirzwEyhq8rTwYFtRjvpX/rlwJ+iSXugPbMuyKBOHo3geRJtuT7PujcmVUCuPJlhnL/9NUqvMD2eyM5sxMaIlE4n7XML907tyNjcxHQjty4sZv66Z1xEok/xNW5n4uZSf+8sT5m++vVO58wkEu5sR09pd9w/rWyET2vReujiqygrSopn/zKZN5qMeirotKeTyolm7p/+X06Wvr51ue5Gt9BISwFjiGsLl6N6SrvylXDNTK70D4mX071pwtF88w6Jd/DG/1E1u26NOV0pQL71y3/8PJVOcHMzPTWkcCH2YGOaTTaS2RTN6f1fQvvvDK1bdnbO2JZCr1SeRfn05Pa1PTU0gXJBKW+ecnzlxvCGndhFQ1NRP8bcY1/vjS9bF1V26MwHwsVKiXa3etYVw1TNhYJ3TDjQCO42jJVMcez7J+t9YyJF37ISCEtahjGjxkGDr2DJZ31D8h5vUQJL5RPkXlUMM07u3qSGidICvkzzuSlmlZb0olrK9hD9v9JCrPC196JoPMAolFg6CV+PPj54YeyWecx8Vk2v1Q0rSfhFT18LnBmzBRyNalp5qrSuq7kiAsh4SFa7oZ9M0wzI+cPHOjZPo9V1kS1z4ICGEt4lhiCvZrSa2jol7qzPXJPk6nIGbVbWfUvcr7hO9MP97ZVXpggOu6ajplYStj7l1XvbRMXbPAbp6HzSSBlkraNknrvfVCcPt2sHYi7f3pTDb47KUbYxuvKqkKpYBXKBnV869c3WgbDEixAck0FGFFfEzJzbIsO9C1TyrcymWWsLZGIHoW2rqTzdo5dXyykz0NC8l779i5vu4zwM+eHVntGP5jqVTq/6AkVc5NZ3wNH2lVxNWZNIukMSjiNd9z0+CHp5DXAdX4SAg203w8GB5IATtODHzdK8C15kEjhXvNS9rWA11dnfcMDY9prscss48RySakrOLWqODCoIKAgkuVgsS0urtD60haeV1YYVbbtjUn6/74HXvW/11huFy3PwKzT1r797Upe3jq4sib9u9Y+wxe+vh7W1N7jx49v6ZzbffnQD4/Cj1Pfjx54XiBls6GVuTUc9mQsOIO9mPQFdkIRlz4fy5JLm2ZMOqTcJaXIqpcqnixVe+rdbZ3dbc2OT0D0wZIibHSksmklslknvx+//q3PiKnXcTQae/b+LPQ3r1t0969cOL6G7o6E09qgZegdMJBpVQ1DbKCpyUt6oPKz/4NEJalCAuZFIuEVBJd+jgLh4rvAiFqUVGkhJZMWFp3Z0obGSu/d5gSnWmavuO6h+/cvYHSobgVgoAYjrb4QPMUiGtj1/79jBMkLBwiTlMASlYzTkhWCJyTrGAyMOFkst/BoYMmuIIyGJYcMXMMdNwHPhYN1qWS1t6ZLGaKZL8yzFXTr15BooLLMugHMBRNKgW+It8y9TEcJGt4rvcRFCCEVQbFdg0Swmrxkb0+cf2XOzq73kgdFieEXF2jdEUJKQH6SVWQrNjtZDKlpTPp38U58iUbthk/Ph7sN6zg/xudSGvD4xkq6otcnnjyF0XRRTflkyC0IIJE1JG0QbqGNpMNp5xFhRTcZDNoj66988SFm5vv3LX+WkGUXLYxAuXnCW3c4XbqGs9hwjv+a9lsuN+ahOJSCoLjNDAFvVUll0p1aNPp6adTweSflEszPO48oFn+4yOTmR+6enOshKyYhzWpf/jDuuf6x2aV/qNRaPG/1d0gUXWCA0uu7GhMmkqmerEc8KOVU0lMuyFQ+Ylut562YX9Sncmf7Ojo3BDZWbGLtMkiUVXSWTFNuMqWuYG530f7+/tnGFboxsfdd9mm8XdDo9O7rg6NFq0CFqZr5DWlK9qV0fZqGvZchSuPlevB2VmG/hOV4yWm3RAQwmrhEcW64qu4ykfJho52Vp3J8quBYQooqWDKADftBd6HD+5efyoKj/zR8ew/hWXY56/cnFh7a3RCTTGjuMX0SVB9qzu1qfQM+jO3dBW1g6uVSHv/qVNX10Vh4rc3AkJYLTy+WA/8ou9kJjo7bOh+DLVFZ64TEbCyBktxI5PJZj56R//Gx+NdH5vM4vuI+p8NXh9LjU1iw3EZhXc8TyPuuV9wDaaCfBjTM06N0hVWQmHBDzvSDZ5tvqYR7ZAymh8BIazmH6OKLbzv0KZvJEz3ZzEFnEolaEtV2XEaCLKadrIz//TQnk1/EU85NuH8th8Yf4j9gMZUOrNkZEVZCnsbtTU9KW18GqcKFyjh420sd2+j33pg3F8uTsLaDwEhrBYf04O7N/2t7/o/C2FoGnsIy/YGlvAwSfCvZzLOe+8oR1ZT3u/5uvHJC9dGtJlMrfqjslXVHwjpat2aLi2rjFFLjUSrFUjlO0juddXSSXx7ICCE1QbjiHO0/hofbPgwpnDTOR2V6hWNQqGUx34890noet5yaO+Gko3Y45PO7/uB/lvnrwxrWdha1absbgxo1FWtwplXqYSJY5Nn5lU3bLHQmGA/yko0plVSSjMjIITVzKNTR9sO7dv8RSeb/T9BWmMkKv4D+YzBXuljV7yxd+zfte6VeHGKrHTz4+cv38JWmyUmKzSGG5z7VndoE7kz3uPtq+Welvhwm39weVjOyaoFsBZPI4TV4gNY2Pw79mz8KyebeRIH+VEZTaX0sf27+v794TKmCxNTzr/2NOPj5wZBVjjdYSklq6jN69dyKuhqmWztivYob+RTSkPbe/xMdlMUJn77IiCE1W5jq+s4dYEO6mzsYAmvi/+CrH7LDYxPcBq4HGTFVcG1ULLT5orS1ULIkoSFI2cMHKG8obiXcteOCAhhtdmo6gaOh4EWWlkyYU9gvHswXfgV19d/7+LVkSWfBrItJJhObL/p7elQR8fUZnEV70XxPc01sM+xrzhU7toRgZIHuh07uZL6xA3LBaYB+Ar8rBsfz34YX1j+D5eu317QNGy2xPquSE4mDuXb2IujY2AgytNE67RiKFshzuwCR5s9ZSMlsK0QEMJqq+GkBKOF5yFzRoidK5BoFCeMjM/8mG+a//Xy0Li55KYLBRiTrGjwOQ1br4VMBQuKVJeQKVPxMLlvPwSEsNpsTEECmBLSgbHUpwD1YGwse59l2p+9fmuig4fiNZIowrqq/6Xeqm9Vh9JbjcOKvqFtACX7gV8kTVZvkaRoRQSEsFpx1OZoM2iKxxuHLtDcsZlgLzYZfv7m7XSv+r7fIm234XSP/8o5ktWqzqSyZr89PoXPYDTYkZvziw0NLluKayoEyq4iNVULpTF1IaDjHHZmoAW4aep9geN8fiLt998cGYdtVp7K6iqzXGJFUCAi7jdkuapsBJKcPBwgyP8YRyV7B04Q3dDbpY3jg6gupoMNla5U41BbUN9n0sr1ScKaHwEhrOYfo7paCAW0WiWknihhW/0Tabf/6tDtxpIVSIhGnz1dSXUkDL8fSHKi4/lWPId9Kp3Vxqegp8J/m9f14D6DQ/nmb281FwgkZ1Dj7bnSSFx7ICCE1R7jmO8FJJr8jCvjeNrIxFjDJBpKVaSlXhwDw384MyucBoLAGEfHI5ptO6n1YAq4FjorH9IWjUOnFlF3pj62aui3whbI33ZGQAir/UY3XCVEvzgdw/8NcSyGUhSlpVWQrFg2p39xp0JYLyIohaXxdZ2FGofG6yi85/QS32F0Asu8URgu1+2JgCjd22xcsVElPC85169Gaa1YTkRWJKpSqooBiQQzONvq9sRULKKxtzzAEJw1api2EFZjoW3K0oSwmnJY5tcoSD09HanEDztubnfO/IopyUWC6sUmZUpW5aSqkgwgK04DxxaZrFivacCaIdAuH9zaM1rSDgloOwSEsNpoSMenvU93dXb+EE5taFivKElRqd67qrNmsqIF+yjMF/i56MV2JqadYKxXMDXM6+4Wu04pf/kQEMJaPuwbWvPticwj4Il/NnTrdl7JrqaDC5wTUle1GmdWWVCw1+JotjA6PgnThsIdQrXknF8arkJi/+R355dbcrUaArU9ha3WqxXW3tHR9C5dN//T9eEJ3aGdUwP7T0V7F86Mr0VW4mF6o2NTS/ilaB2HDmb8wA2+08AuS1FNjIAQVhMPTi1NgwRkGKbxRxMz3uaJSRzVUkumOtLwo6Zc7aOkVdEhynN9NQ1cyuNqeEqD67mX9TXGyxXbJhFthYAQVosP58S0909czfqJqzdGODVqaG/IUbCWr2p0yukfp4FUtDfeir1yl8IPUGjPHFy/fqJyKolpJwSEsFp4NEfT6Z3YBvOp8MvMc0hAi9hHNQ1cBrJil5TUZxhfXsTuSdFNhoAQVpMNSD3NMTzzU1PZYAM/ProYkg3UV5rHT8lXmA7SwnwEq4FLLVkRI04HM+n0LdvzvlEPZpK2tREQwmrR8ZucCd7hePr7rw2N5PfxLUZXON1zHKz4kb0KnIttP6Njk8tyaimbwXPrsW/yq3v3bhoqaJZctjkCQlgtOMCYCnU4GedTI+NpQ32XbxH7QOmKG5nzdIWZJz8HNkKygqI9TmSL2JSiovGVn0A39c8WBcpN2yMghNWCQ4zPc0HRbr6GEs6chJFnmfl3knZO4/hmII1B6fiFG9br0s6qAeXPp2WUrhzHeXH/jr6n5pNf8rQuAkJYLTZ2kK7Wul7w6zeGx9DyUsZovOodOizosTg1TM9k1Wogpa7lIisOF+w48E/7E5B1Y/cgtdizsBKbK6c1tNioT6X9n3MDcyePOo7OoJqrC6S0+ZIYV+GSOHxvc18PJCxXG4ed13I727axqTp9yk9rX1jutkj9S4+ASFhLj/m8axwdDdbgELxfGsLpoZyqVXPVU1QugVJUV0dC27p+FaaBWWxknq6ceAljTNMiAf/BoUMbJpewWqmqSRAQCatJBqKWZpgJ731Zx9pJM4aK0hXe5vlKVFEbKFlxs3PvqpSSqpbzKztRm+gnEkktnU6/2GFMfa4wXK5XDgJCWC0y1iAR6/Z49iOjY7C5qkG6mk+3SFQGlEP8FFdnygrNFqBsn1OxP5+K5pGHbcBhqhT8fqu/v39mHkVIljZAQAirRQYx7Wj3Zj3tddQjVVJ4l50CMjHe8mqOTJCCvmoTyIrENXx7Uinbm4Gs2PZUqkObnp76i0N7N36tWl8kvn0RaGnCGhgILKPn3B3+xKVXDh8+nPseX3sOlpt13+P4uonv71WeDqLr1ampFB8S1JrulNaHc9rTMxltcpofOeWns0rTLkeIZUHRnpm5YibMf7kc9UudzYNAyyrd8ZLpWvfgQT8w+oyevXeo++bBtaEtQd9s1/ffRsV3I6eDJCp+nourgH04UZQnhIYfWm1o8xdUGCU8/E/bil89sH3dlQUVJplbHoGWJaxnXri2HTvd1nEEcCBS3z++MLi75UejQgcmJjL92ax/gNJPo6QekhVXAbdvXI3D+XQ1Bcxiu02zTAEjKFIdHTQS/S8Hd2/4YhQm/spFoCUJ6+mnL651gkwRQRmBt33gO+c3teNQYin/oG6aKX5rcKEukqqoWN+Ij5vy81v8UATDG0WGC21jlJ96K6wKPpWd8H8jChN/ZSPQcoR1+vTppJPS7iw3bIZl7n/++eFV5eJaOczX9Z2YvM1LPxWpocBHKv8qHHdMqSphGUqqahaThfj40ITBcbLnsDj6oXvu2bS4n96JVy73TYtASxHWo48GxrUx+5Cu+XY5RH3PMzLGxF0ktXLxrRoGNVPPfNtOolIrgElLGYH2wbZqcipdIFVFlDbfGhqfj9bskCaHHS/7gTt3r73Y+BqkxFZFoKUI6/C7Lu/Bl1jmlKB8PUhcHjHufuyxx/g5lbZw+BL7bX4EoiZqyS0T0uM0j1+82QSl+ua+bhxj7GjD2LicwWkLzaarigbKsmDJ7gcTmezMBw/t3ixntUfAiK8QaBmzhq8/f26j77pbaxo3w+jetPf1B5D2RE3pmzyR4/nH+Mti4Wx1dUrCHO0lSVGqskFUnakkpn6mhu086jgYHkWTW3Wbo4Tli6L5gqYHE47vfeDufVv+YflaIjU3KwItIWEdO3a9Szc0ElDNDqcLbHjmxas7a87QxAnX9ljfxcr+Mzs29ykpi1O8iJjoR/cm5o7dnUl89LRLW93dyWmVIip+Kp7pmlWqIvQ8Mga9Gslm3Efu3LX+K008HNK0ZUSgplnGMrZPGxgYsIKeXa/TA61jPu0w0+7xBx/cd3M+eZspD0wbDgWm+RXP13cODY/jWGKuGAb48jG+agNpilbqlKZoWDqDY2AyjtNUlupzYZlKpXgaxIVMNv0zd+/d+uxcaSVuZSPQ/IT13TN34QRvZW81n6HSDdMLUqmjh9tgd//Fi8OHEl3JL3Z2dh3MzGA7XU664llVWRz/QhLjNYmsmaWp/DjCjqIDdlaZTOZZ1/A+fGj7hjP5OLkQBMog0NSE9cSRszuswNhdpt31BRnazM3U9IuPHDrUuG+419eChqU+cvzqjp7u5P9KJpMPpqc51Zv9QntLkFQBEqZluVCw/7nhaP9i376+8YIouRQEyiLQtIQ1cPT8GjOw7vE8tyFtxBrb2MBXdh579FF99g0vC0nzB548ebNHT2l/aFmJj1BPBYyav9EFLaQ+jdPAVNL8/pZ13a8qiJLLOhAAjvrTRy/d0enbF+69d0tzHFhWR/vnk7Rple6mp+9uFFkRGF8LVj/08IUN8wGp2fIcPLh+4sCu9R+F3ucj0MLf4vaVVnChqYWmdaQS2jpY2vd0djh86Vqh7c3Yxm8dudTPxaW0lrn7yJEjZW0Tm7HdC2lT0xKW1xecgHE3FDWNcb7uDh6+r/96Y0prjlIO7ur7TOD5b3ayzt9ylY0Gl83qKFXZsCXrXdOlrV3djf2LBr556JOshLDmMWhPPXV6vav5O5jVxYLUhNl3iIbV8yiqpbI0bQcP85C2Xu0l3dczC0XUN4Pzb71339mFltOM+Q/0rzu5f2fvu1zH+QDOt3uZ0pbVRMRFouJK5qqeTkhVqyBdtdUmhGV5JI4cudrpd5kHiyp3tTU/8s6r+4rC2vCmaQmLWJO0Ep65INJK2tbpt75298U2HLuiLh3oX/95L+0/kHUyvwTieiUJHVEimVzy1UKeWMqv2pCoKEVFRNXT1aHawnBx80eAZj7TwcxdAc5Gi5fiaNnNT37nCk4xaV/X1IRF2B94YHt63qQVaCcfePX2K+07fMU9U7qtHev+xE/7r3cc70O+6w1gxuV0dHZiusgvJS/O7IskRXLs6KCxqj+B26t9a3uUREWi4plbQlTFYzXvu+7tB3EIUGel/L6e3TNw5NS8zYAqldss4YvzBC9C7559drAja3qvDoyg6pwCP+KBZaVOPPjazS1vMLpQKE9fuPnawDB+EqehPwzWuAuSl8LPg90WVxhJJPWQCUmPBAWTBEz1TFUGpqO3wYYvIPgr2az35a2b1/50V6f1e1NTlVcvEzB0xRekj67usu5FmS2/crvQcaol/zeeObfTSOj91dIq28PxiaOHDx9quy8LtQxhcZBqIS0Dhkl2l/3yA4e2j1Qb2JUUD1Iyz1waOQib0vsxKXsAFvH3wMB0JySwtZC+DBPTN5BOCEnhrI1BuKe9l6tIzsVCiD6E0DOabrwI2elZ09aP7N3aNxjheXvK+a1OENa0EFYEyYL9rz072Ju03ZpNQKj7Xd899cKhNrA9LASvZTY/s9GcHoK0XsrakLS8UklLxyl+/rj+/Qfu2367sJNyTS7SuZfneO7ffweBGScu3NwAqWgrTvTc5jjBZmw87tMCfRXYKQWOgula4OiBOQUZ7DZuhrAGdQXxV0zPuCaGnkv3VPGHOpPw7+QPR62OM5HhdNddGOeX2kmCbSnC4mDlSStVTFr4eLljdHV+702vWz9R66Cu5HS5h5hmHvz3QiOxwJTRo2BGgY06dm7OVhewYGAY6s75oD+ZDs4JPY9JyqSCQ7ABqftd5VFM3/j2Ja4mtsWpJQSq6ZXu5UZTKeJnsHpohiYPRqBn04nkS2+CQWW59BK2dAjwS0Y4IHDz2ERWG8Gnwm7iK9W3sFmbvrqGPzw6gW8eTmvTM07XmTPX28KYd7EQ3rjnvv1QFHbPt3zT9DcMPHd+13zzN1s+/hC2rKOo7NjeQdsxT5LEWrYjbdLw05eHtwWe9jl0542u62HZHZIVpalY/yIlP5X3MHYddLLZfy4fmYiBhNuB509vw+rG3tKY+kOwGHLi7W/cS91jS7v4s9TSnZHGLx8CICH9lXNDX+zpWfXuycnaBV2e3e567nAm4973qv0bzy1fD5qr5oEB7KXt0u7B3Loh7yhWVfypbOalh9+wr6U3mbfklLC5Hi1pDRE4ef7Wj+EEiZ+amqpvJT2bzWjJRLIPR3n9riA5i4DZg720DSIrlsrvHXSZ9p7ZGlrzSgirNcetqVp9/vz5FJTqj6JRejTdq6eBMzNpHP9s//QrF4bvrydfO6f1JrCX1mvcXlo98Kembjotr3wXwmrnp36J+pYNeh5JdqRem83O77gxkpxtW3bgOZ/g1HKJmt3U1Rw+3D+zrc89aunagnWzpq6PdxujLz388L4F78tdbtCEsJZ7BFq8/sHBoMPX/I9hyrGgnuDUUZzrnnz7yQu3HlxQQW2Ued++fZmJ1e5LoPB5k5ZpWCPXz+08du+99zrtAI0QVjuM4jL2YcIZeh+2+9wF49MFtYJSlgmHE0g/JlLWLJQPg7RmhtyXsJ18eja0tivsXhj6xy9ve/mRR5TRcG2ZmjyViN9NPkDN3Dz1FW5z9XM4i+s1ME1YcFNpUIrVLHzJzHnwjl0bn1twgW1UwPHjxxPXpztejR0HFTc+F3YXRwxdfdM9W08D0zrs4wtLaM5rkbCac1xaolWOvurhZIPIih0OdVm2haNTfqUlAFjCRnJP4HBn+iUqz6tVa2nGpTe/etsP2o2s2G8hrGqjL/FlEQC5GHghfplSUSMdvwaEA/9+4vjpa3c2stx2KIsfUek2dr+EuXNF2xEjSJx98w/tbFt7NiGsdniSl6EPp84O3W/Z1oPzXRms1GRKWdCJdeCIlJ+vlGYlh997r+70+EPH8NHJEtLCauCph+7bmj81ox1xEsJqx1Fdij4Zxi9AT2KSYBrtslgxhOD2gWOyz7AstFzx6zFHj1mGobYUYAgC9cHge3ddK5uhjQKFsNpoMJeqK6+8cm0X6noXiWUxHA8WxAdWNyQM45HFKL8dyiRpueM7jllmMGpnjO+1w9fNaxmXxiogaqlR0jQdAkeOBPjczrnOiQ6jw88ESSOA6KT7iQzOHEvavu1pZsLQg4QPP/DdZG9Xx/vWrOr+mfR03SvtNffdxleAQIgvTzjBT0w409Mpu2faufZy+vDhw5WPMa25dEnYqggIYbXqyNXY7i/jCyvdfmaVb5hdVsLp9LJGp43j1/1A7/RdvdMwPRzEboRnLVHe9vEvL3eXBOB4ZMta22H+TiqV2LJQ26u5u6Bju44Z3J7O/Lvp6cwPmBanOwQ4uNHRTWMK21bSvh1Mm642nTWCtKkH07rnTE72aOO0XZq7bIltVQSEsFp15HLthg5J/+aJE12m3tVjOPYq1/dW4cTjHnwMYhXOce8xDd3y/PJW6OpMdsTRVy4iK/rKMR/jwvz825VIHFzT3fkx13UW/dnhRy3GJyeeHEs7n1XNibUPFvY6vtGDw5vV9w0Vofn81qGhZfDhi3HX8SfQ/3HPMse9CWcCX0gel2OIFJIt+2fRH7qWRaYJG85NxldGzV4tGayFSLQ24+q9ULyu9gJfMU5ELTn6wUISTl03NHz1KzyiJLqmX657OLLdSJgoXTO7cBxyN172blier4YCvBsFdSNXV2dC35tKJrbzfPfFdjwvC/qs9MSMxxNRsSqmT6LhUDQHE+jUBE7UnATXTuLsrRn01K2l/x6+qItiR3TNG8V59KNB0DGSfNXGUXwJY2Gm+osNhpSvEBDCasIHgVLTt75/aQ0MnXpBNb2QgNYEntfr4wu/nBYpKQLtxtdwAh0SBX3VDe7nM/Ha5vf1Fb/CURS2bCTAWWuxR229qRsbQQQbUed61LfW14JVKKsTJ5sk8WUcHbtlNANyTOhgcmAGKH7p3m1FWpqtuZCu+LByVdKHVMjpKEQrBwIW9tnpXOIH+QTDSH/D9f0bmCLewDn1I4HmwtAypPDZ/oe9oXKf/aMPsWxSs/RR13FHrURiZE1gDR86tKHEdCDMKX+XCwEhrOVCvqBeHNaW6ui11/mWDtLQ1kEiWodXE4rwYgepAPssTPCMOjIdAk94TZ8pMZjch8HjDorGFUTUAwlkh64be0A9/ZCatiDZWtOyE7ClQmIdJICJFYhA+TRV4Fo5/QIHiUvrTEbkVRCxiJfsSBbfYk87OTExXxdazY5yUgiRKfpHQ1YSkONmAZY+gV4NIeVFfCXoLNA5h/Plb5LzWAyzF+IVXdNnvO/6GcsyhjC1vmWZ7s2pO3fdOqzriy9asnJxZREoerDLppDAhiIAEtCfO3F5rW0a6z1PX4/nf53nG5RqqrpieSnULEVh8cx4E7ugH78H8tG9eP/24oVezY+pkpA8b/abhPF8le75BqdsXUtaFeaTlTI2IByEoU1l8oq1mkokcZHElIRoWmpejMMCMyCvQXyy7JjjuUcgOl4tLCzCMpTHgFpcgkViX/dH/ax2Szf8m2Yqc/MN+1r7BM/C/rfCtRDWEozSkbMjq7NTY5t13dqE6dhG3wsSqlp+C9DDi0ifLrqmT1f6BgUaPjiHN0lJAGAfvpWcI4XjiHIMF6ocO/EjmMa9HeelQ1LT1PRpoce/sJwOTCQtc+kfGQp6Uxl+9JWtmL+jNEaJ0gKBgbsygR58B4sHfwV5aliVWg3vCHv6ymHcdG868IzrVsK6pnd71+/dsmXxbD3m3/W2ybn0T1/bQFe5I8euX+9ybuqbXMPbDA7ZCKV4uMOecyz+9OfmWvj9x9zEw6JW+JuOX298WhE6qtwLEV3TL1tb/AWj7sqwfqaro/sdmcyM+vBp2XzzDEzaBiQsNH+e+eeTjQ+ohwqnG0BYhfVzNYKrkOmpyauYYH8KvD8G6RPBszrC6Jq+ystl0ghzXEZjR5+O4+iZwTh+eG7Yqa5rq/3hGzzTSkXKn4YgIITVABjBP+ZzP7i8ydasrZCetuCHvIvFRs92SEdlpnCYE2LOQi12OA7RNf1yjrphHIyE9yOXPnfNMDg70DpdTf8DWDKs5rRvMVwChAWrUgh21HzllD0NrigqlxKVC7bKQuOOWeGiuI7OTkhb6T8C/Xw3xkel9cXxj6eIxiY3Hhx3X9dHsWJwDaa3l1+zd9Mt/F4tUk/ijWnP+/DBb8++LWqvnh0c7NDGta0pO7kl6zpb8AJzEUr91kYEFdeBRCt69Nm4+AsSl6jwjVGckY6VwPwUpLhLURx9xliWvxFHi/w+zB0SWCnLsVpxnoXesSI2ngp4zmRJXPgf/0IleGH51R6uwjeX5MR76qtITh7+8N9Cp4GF7Sm8Zl1s35pVXVomm/5c1vG+Wm284njHJeJq44/FjixUAld8w7uijW6+xo3MhW2S6+oIVHumqpewglJ87+LFtcFUcqur+1vxwPcZJqYPMOyhXw6GKI4+4/GwQpjCBhe+6XDIpFb06PM+np5hhS5eXzw9bLJ2pBLGv4Fe36BU4kA6IQGw8MUY6MJywVeqDs54Z69zrWdY7jI3G1ZtUiSV6zzDI3IqLLew/wu9jspl+yywrA1pEed5QceXPT3jBb/DLrA5ua5UHZ/4eMTbFx+fwvE3DJO8fANrjlctL7giJhRx9MrfR89R+VgJ1Y6currONuwd0FNsxwtV02mPlWGLy1TxlPHf6Hh8PH9xesvw9yRM+5PIRT2ZIgVKKZxWUY/PT8aTFPji0i3m4Ed1hDWV/7uY9bNGtiGqAyorJRWSqCgdkrQiR5KddrwPlsq8xfhG6efvx8dvtiQczDdmmPaldDBxSVYeZ3GJXxUMWzxq5d4fPz7Ym7X1HTAL2A7NqtJHEQ3qtCPjw3LoxB/v+OMZ5VVzR5aHWRuErYA+y4uu6fM+Xl9J/lh7bFvbY+vmv0bWos9tsXAWSLIiaSnyApHxJz6SbFSFuXTw8i86r5vVRW1m+6IHmUREAuI0lcREP5q2ztWPrO9/YK54xsXHI56+cePvj3qBfimZNS+J5FWMcrjptThsRd4dPX9+DcwEd5iQphwozfkCwJKaLv9ewHYKeicfSudwShcnJDBBOD3MTwGRO0cqLIj73jQTaejDBYaPHTBgJ/i5+HyYijd95sFhRzkzB7yL2IrCtGwezj9nOQVTUlfPwiicifnu5J0qHHd8mXHIG6ZD7JQqIk9kJK6QwAokMWRUhMaSeJ0vcfaiXNhs7PyuwpYV51Vh+EM/Pu2M9GckpyiOuZm2Wvtom+Y4me8xPbvIIujzPu6Wbvyt1ejL3U7Sv/v754ZHsORwaX3KGdwiJhO5pzY+Mivk/urVq52jTnIXlEc78LKu8qAMx/G8kHhyOicosz0ovM3IrIDKb15HSvDoOoqv+hMLYCOWI8ash0vmufryZVcqLz4u8fym3ov1xT/EVp4UDUTn4/iS0xW+sZTMojASmLqGp64iH4FRXJQ2TKj+lv7JVRTVxwQkm9APyaboGnGMzSVR6VR87ipsVT645ovOzi5tamb6zzB1/nqzjz+s9YetwLioZW5C8jq08K9+1IxS8yQsfF6ap1WL2BK8VOaJc6NbPcPrx7wJ++hmHQUPvOaQgMJ3ETtVlERDP0wVsQ19uPgcLQyt/Dc+p4jlL6k/1xa2qVyh5ApEzEoErm/DsPOTXV3de6anq36roFyRdYWVbVSshHJEMt98saIXfIu9koplYZL6m/hUz7kS/Jt0/PE8+Jj6X/Y6k+fv2tA1BKIvB/OC8WnGAmp5dpqx3XW36fjgYK/upXbhFd+BrRlqn16MfkrspkoC4hnirYjbUVWzs4rHx8uL3cerjwt0TA4RcBcsuX8Rn97q54okVsCKJJ9YkSvy1gJR4aOtnAr6OJP+L13d+BKBKMEzHhAfgDh6yzD+vqHjTDDvYpAxLqwEfVdbE9bpIEi6V27tdLP+LnzPrWS/XrRTnz5d4e79+LNY7r4kP+Z7Jv7z1LyPL0B4Tb+ci9cXLy+eJ54e8Rw//rqqcUR+HOrgYVprJbBl5E2w63oI64J7k8mUDZLGhmAXs19ucVkxP8gKQu4ptCxbMy2TW3KAGI4u1P207ztH3CDx/7bL+Cdse8h1Zy5ev7Dp8uHD7blJuy0J69TV8XW6l92Dl3cbLG6g98idbhDgdANcY1ZY9o2N4mpNr96GRf1Da3Wui0RW69F1bWslvp81LD2xDTOGu9DhQzBc7AcYfYlkAqo6A6ozqHNBYJTESGitTGShsp0qQSxT4AcoPJQw0LBlEPhBFakHDjoLvY+XgVIyg7WK77tG8n9pvpHXBbXL+OMBd7FN6KLu+uf27esbX9RHdIkLbxvCGhgYsDb3v2a7obt7YHakpKmYiqgE2ioqJbzIOszXcSov/DAzRRNehyJKvPx4+igv/ZLKEaCkoZxUFMYXE1I8f7Xyq/UHp9CkAlfbCF3NdlhS7IQguA0N2wiJYy1ktC5IISb1Okr5jSYruy2SGlYkIkKLSC3yy/WrUWGzSnjaTUX/QEhYQuNewLCdwBFKRkpOuAfr4sBnwwfDg6B0MHagORhBHNqHw5WxTwYav6lAt/42MBLfrYZXHO9w3Ftr/B0Hp0pY+tkD29ddAz5ln8NGjddSlNPyhHV8aKjbzAS7Dd3egRcvgRHJWyrHASw9Pyp+vlSxEluH0jWAGQF9VVZMpxHVRZ/xSKQU4PR5Xy0+/sLQZCFS9DN/XKtSeh5WrL2x+sMyZv+W67+vwz5eC7oDx12rm9pakNg639B68XL3Qh+2Bm94DySxHhg0daBHSQhiCbyyyMS9SDi8RhEHyYP1qD9qak0S4VGn5VYrSTRKEkKHWYYiHuQmCYb/YKYLqS+3H5LYckxJmz6qhSYJ5yNgzgtuclESpncBfN8Fj3lgJdCSGpHcGECoxrouMoHjzO+4evLLMB1VKxJV8Wyj8Q80Ix043jnTu32hlTdkh08Yn7UWcnio9Qs3pzZm0lN7LCOxIdIZxbuQ1+lAVFFxJB7aMeUIiPkiPRPjo2v6dPF4FVjHnxi/oQK0Az/bymf5uI7ayGLj6eM63nrbF5VNXzV7nv3HViQL3JAEaSV1z0iBNJIgJBCYkSKJYbdjEiSHw7a0BI5s6QBBbINUswMUsQ6E11UojZGccA9dcZDBdQY+TgyFTgkiEKYyIBvstAQzIRk8cBJ+A2j4gZFDFWAqjAp3V5IhQYYwwUJ57ByS0QINzMYK8FyrRxt3KNbXb2qG/UVNT5wDyCt6/A0boGbdqzPA4tD21SPquWihPy1FWHjQzYs3xnZkM95ePIZd8RccBx1xez/UPowp46I4+uVcLD9/8Plq0Gfy6Jp+uez5uqPyY+UtNN5DuVQc06drpv4bIDXsjtsMpdkOSC79QK4Xog3PzwF4IBNCBiIhpBSpoE8jioqWaM2KCRuOqwLXgIQItKIe0lCYD/lZjoqgGIo0+J++SsmMKA8eqQ21qHuUh2PfzQHN6vgG6vVK8GfmQhcbr3Yff+AEi3rtdCtNF8u/eIWD2ATXx4Mg0XH1Vr/hm7sDQw8PvyvTrriKWocEE0C6oM/kJRJHrAykgj6WGlq+JUifu6YfS6pu4/UVa6AgQcXKi78ApekhcWFBwMstEkTX9MvVHw+Lt2ex+4+Pg62CxgsHEwZbAdgWIJfA+ICkfDRYtyAwWWB7Ay8F8VT/KB0bOJ4Gx/CQfUKSwZGrJJs8iZHYgB0zMB+zk8hopQ8hEcEog2ERASIBAOL5fIrVIKLxXKtzKPZLgZUckvGf+/nH5HsK0+Uz3316zeAjj3D23Lwu90w0ZwNpiZ72UnvwfO/AXIFnXfLBxLOsHn6yiLqmr3oQ04LHX9hq6TFHI6txrlYWkHj98UT1lh8vryR/rIKq6aO204drdP8hRWF3itmLUw42QnW1CSTSA2IAIXkWOBYKLWw8wjVqNkEaFqjFwLQNJhWI4ZiFoiq6QX0SbsEo6HMoWVFCYprwjw6FP65BXCSoXJwiOwpnFK9A6yiWkQhRDwA9XAfpwLS/AqnqSKP7jwapquiznXFXMn6x8Yg/X/HySvLHKqiaPlZfvf0H6BloAM/v3tpzHkJwUx59Uxb4GE5Lfnt2ZGS16SX3+F5mq4llfegtwnaSR6J5EC8hPUV6IDaS6aDnoZ5DpYe6AtdgOr4pyhXLNPH0KKCo/DDP7N+S+mI6qHzbQr7AbdgW+iylWn0l5cf6E29ftfSN6L9lGl04x30tOtMHklmLhxpClW9BL4S1T+i2uNPRp+0FflD0AN9A9LHnmHGBBfJCE3QL9ALiguoJqiu+64gDzWGIIAlhzhaSDsMV/yjJi3BxyY9khP9BXBSzEMY/AFORGMmM1yyKZfmm+ZKuJf4uMHV1THEj+o+S864E7zYd/8Dliqp2MamvPbt9uw4dY/M4DnXTuMuXx/scK9iHLcbryzfKwvOJBSGNPl10Tb8WV0xYyMFymDdXXv46Kq+ueChJQI4WlSUqf8StOf5CNdXqr9afxe8/Gm6AoLAqGKyCGLSG350ACFzKM2FvaeOseEhFOsjItdQ2S6wYYmkOdl2+CfLBvmpIV55vYY2Qn6uAxAWC40zbhxSmWArcQj0TSIiSU37mx0kgVesgLereOSz8E5EWJa6Qzyh1hZEcO7xY4Ct9WLfNvwa+5xA2h6uGP6vMPxMsZ8WNf0Gf+cOCw9usq51a5+kNG9Sn1IjJsjoO0LI7EpVra/vxhPdFs7JyjYriohlbTAKGxO1C6oJEljseOLqmTxfPX66OucJK66OUNzuDjK7p05UIbGwX25I/vrj4BYrnD0uZ/Rtvfzz9fPsPIkgkbL0DZNMFRVEHFEY2ZCBTcwMLdfCsCCVN4SwpE9YG+ARNgD24IDHYSYB1yNCYDkLRFoC8oOUG40AKQx5IYyAmlQ6SF7dDoSof0hbJiApzqLs43aPc5UG+AvVQ/4T7nGQFQiJ5kdbAkmgH2Sz0FaWB4gLrad22v4nmuvPt/yzCc1+V4t0e4z93r8PYwDCvNANxLSthkai0jmCf5+jq6y6Y4SkjTfoKprgWufj9Dg3AozBmiK7pl3H8WDH3u0YfLY6u6c/HVS2vSvsxoygyTF2q/qNenEyjJ5NJPYGPRidME1M1/JYqwyoNq32Ihu4J0z5M+WA2DoqwEI9wfmEaEhQJzPNsKNOh0jJwrfRVJqbnNOrC6IGwQFzgHiKrpCuq2kE+FizrMXWE7IWCEKemg7hSiimOQchNIC3EchqpHlBO95TshQThkwF5TL9k+Mm/MZLGzVo3AlQdLzagDle1vCYd/wU9/5Z5ZcyZPnNow/J8ZHZZCGtsbKw3rdn7nIzTx42o0WfP1cPKuYJ6XPFs5q7p8zmKx5v8cdcxDeMPOR1fj+gh4X10TV/dukiC+nJPeLy8eH1hrtm/UVvpKxcrP2oL/dlcs1eQ9PCeo73wGcp+R2Xyvlp74vH19B9EkoA2CYKUlcQqJCQj6vkoyBjh/IurcJiy4Zxy2FMptRBO7sK3kClR0UYUZAX+wMqfC1ICiYHMYBsKSQsSFKaAUEqZLoiK00ASFsgpN0UEUWE6yOkiiArE6NmUb91OWwAAEuNJREFUszCNxA0c/uBoF04W86YOarWQAYjGmHBBEIkUiXEqib025hNmInWknv6zKo77Sh3/RvcfSx5Xl4O4yr5Y7NxiuEEQFT4uvs8yrF5VvosX28LLS185vsiRHkc9YPiJtrCbJIzHyx3gJdfpl80flZWPR6qIxJghus7xjSqj4E9UNn2VvN76Csqq6XIR+48OYEeGlcAaXhLfQwxNQcgQEI9IErOOxBUuCuDLz9Arm5iyOTaYy7Jty8hAb2VCm43ZmwnwQTbgFpAWyA4SGEKhaMdgYNpngKAcpeMCAfFjYGE4yAqco3RZ0LorUqOkxVkf6AgzvFBPFbISSsOUD+WRrWijpcwbmI4Gomj4yxAIv4bPVU+q9sfxk/EP36UlfP49N3vNWr/m9CZdX/zzjDDofAoW3XHVr9NPHdB8p2+uORl/mjFLUktMbBTtkSJbpLCRxYyD5OpJps/4+DJuvq5IIgoLqfi3pLzcRuloM7QSzKImsBSWG80LVKkxkSvOkFHaCjL5QvrPN9rwvaSVtEg2ICmQCNRQkGjwnlOpNktMxdds+GxcRFrIyCmhTQMEUJjl4qwtzPbAOVC8o0DUZroGiMmBpEUfRBZ4DvRUJC4/1GOpij1ML9XU0PJdFxIZGsOpJkkOQ0YdFh5CPodKl0WfRqQkVUhTIEf1iN4GkdJU4Rx/xsJfHkpfMv4cd+IAUJb1+YdkfSU7NXp6+/bti7qquKiEdfVq0Gl2TO2DonYzAcUTCv0slCB8FuGia/q8j7iAPl30aNIPHVKq55w+00MvjFLo05WmV8H5P9XLzydVF/H0xbGl9UGfjm226B98po2u6fO+0f3H9M7SbT1h+FoS00ybSmm+5/RZHxzbwWvVHtSvNuLRR4BKl0vPtHRhWh1SESUsNBkH0qjvNiAx4MA1JDBc4yBmTPmwJArJCFM+dA1SE5XsmFIqRTzKUrZYkMio78IUkauFoW6Mcbin1GWrOR8nqOEUEUQFmuK3ZdEw6NFg92s9j3XLp0CIsAuS8VdPkcKhCZ9/KAc81x/c3NdzFjy6KHZc0YPNh7VhDg9jYnh4co9n2dvx1nLalys7Rimx2xLGigfEJBQ0Xr149FkBVb04BQiTlPAFbTiDxRGKM1pJf5AgarPKG0sQu413N07hkCANO5m0fSebtCwziW5DqMISHTRMJCDF23inYbmsauNCHq+Vn1ta5dErzKN8psP/RiIXVpAegKJQ30Y06AQSEXdAIpdL0wbTNsLpoSIeCwRJHZYBpTusIFAIlPC0iqL5AxoCcmLPQkkLdITRCc0dSFqQD1A51g4pLOXmhZCwDMO2BpH9q6ZtDoU4oKQIy5yEynFnv+mzw+0+/q3Sf5yT4aYs89zq1alLIK7wYeQANcCpgW5AOaqIARzxcudrXrMTz+cuFAxBI1Rw06eLKz3xsnDikt+Mmr9mWBlXrbySeJAlTt8MXJImXHRNv0zx2GpWZ3r0KKqzXHlRHH26+fQf+mkbg56ADjppUuihMJl7BEhGtmnj+4Phj1lEUAzjaQcgJkzcqPPmlI/yjdJV8Trf/+hbeYyP0uMS0zSVF8SEaSELxkhR6a7IC1IVHkNMBWEkCljxYQ7YXgWKrDCHw2ohJDDKSkr5Tst3TANBp7DdgkTFKSOpxYMtV2i3hXQoJjwbBo3L4oibAajdXmSbCl01PEvi6x3PetMvwfi3cv+xHpPRk8GZvo6Oq5y5FvZlvtfqQZ5v5igfH7iRdHqrn/H24McyEb6ejCUxkCwqEATi8JDNKtWRIxI6wrLj+aOyQgIqLT/KTZ+OLYnCFGHE60PdSgzIgVmcfrbt5evjYkB97VeNyv8plx/UYoChElhYgB7KtD3PAUWRpejIVNzNAjNzyDuYRqnrMF5dIx4CkTrlAJQRps2FhZIX5lqYwfFLOygTBeSmkUhDEgNvIC7MR5ML6JhozoCpn+858G1utbH4j7BRT0Z9VlZzbTyOKJCKeCjkqYbkFBJh+DXCPVcKuXKIFURlm8WBoZSFOBCYmk6i33ioT+Kw1CegEMspcFfe+M8+rRySNum/YUwm9I7TPT04NWOBDg/nwtz16xMbEp3mPswIOuI6G7wBSlynz1pQWZEIP0smIcEEWN3QsfJDn+nj9FFSPh73wilgdE2f+eOumo4pPqWI2kI/LKu4RVXLq7H/kJopRUFhnkj4joNT9KC/BlZgAIVD1I+cwASVUBgCIsF1KEQxJLpGPKHGP5LYrAs5ikREnmJ61KF4K5cG1+REVS6HC1JauGroYYcOrLWUEp6MSF0UpoZgK5hV2dgEzeNLYbMBnRQZEUPnOwGMT6GOp57Kg/0WTCMYjnsQHpDmlJFTR5IcNt/alvV1PdF5NsKcLSpGG03L6QcjnWDpeIXqgFYb//A9wGi1+fMPDeqY7nae6uvT530KKp+JebkhHJyX6Fqz33X83tCgRr1d6gXBH+XnFtEwDmEVMBfAtbK7UvHxVTb1gGLQokbFVBZMDtUJHmT+dsPxmqSRU2nkrxkWxhfbOfEVwLov4sIaonSRr1qZy6vy8xliPbn+qPjYHxSm6mJwdB357DfaVtJ/BMLeW0/ayVQSR6TA5AB7h8kwmFeRrFBUSFYkJk7GsM+F5SuiCQmFBEriCskHYcxfEM9ozBjBS/yaKD//rBzndjD3BHswAcmqwFdhOWGugCw5owwpEt9sxMlVGWQEK4GlcAOi1XAcL6eLICfdcMFmNDnH7xdO/YTCHTkxM2B6EiSPbuXmHrZO5eJy4Iu6lfo2Gu8orFfA+PM9UMjnHpBIx9v+/Q9Wm8nMfcMTE1d7u7vP4Ec6fzy1wqOGP3xI63JHjgT2/rsy/boTbMP0pe78dVUWS5wjK0VUjIqNN3kA62ZYeIcfxofXDFNFUZBTT4W6m71mWBlXrb4yWSoEYWh0jVIUdJEmzA6o18mRDN7dCplCEkK8IiP4WRAU9OO8j5wimZB3SAhKYlJEphLkJCaSEP7PEdxsfVG5UWFxP6qPPngTlvBED6IWLN8dTPmg8ocFPPRXWBdlFWqqCEmLlhAgLRtKdLaAkpQNfRUM6DUQGOUiTimNEaT7FvRVw/F6K91XG4/mHf9KPaovvJ36jzfSS1mpc6mUdhnvhZL4a0GjZsKBKK+n0+kt0AHvztCAsIzjeeAeUKVPF1l101cBWCICxcGmcPalUeHRnyguIsJYej79fFnpKxdjrKhu+spVK69Ke+OW6SXlh7Xk/8b7D5umJKY6nUiQAEmp5ZKoD5Ay8kTFzcAsJIrL+ZREYCWAaU4ubXRNP8wfpuSuGubHMwCJhSuGPCiYJIMw5GV6xkfY0Wd+WoPiBAlEhvnzNluw3SKZYTkQHIQ5J1RQDg7Lw/QQGUIdFp4wcC9KgQ/7KkxjucEHROVmc3ZaCFfEjMxUvlPvBZ0WhT1Q1zG06hQKyGPA9qEh4bPRJuO/0p//WvoPyXpa77BPr9L1mn64QiJRT0vlP3jg1oyn0/th1dnN6VOkQyh8wVRuPpLUH9GHi+sckD4vLaj43NSHLwfv8cKjbGxdgc97JUpFpIRbpovKYHTUltkpHYkyEqNYf1gWfZU+Vn+JiMZERS4qKyTAMv1hmwoItLT/aL6OL9cn8A4mknhDkR5CUuh43ExhAXjnIQVxRQ9UwnU1JM73meHISINzlY/1Ir3jwNQBtui5IpU3K2mFZbEUEhgJiHlZhkqI8rws7hPFxBHlZ5romu1CGRSv2HyQEQiLPkwefJcSk2o0mU+F8Z46KswbKd8qvRUWiq7BsuoYlF/q+Jd839p4/KNnFHhw+Fbc819r/y3dHO7qsk9D2lLPBvEq59SLXC6CYSCq1OTk5F48g+FxLyQSvvyzhFK8taaYL1ACiYdkkSOg/HVO4irmAySLlR8+yHy5wnaWysTF7YmnRxdyecMXFDcxx3KjNCUEGUtb2r4Iixwh5qebxEG58v2Hkh0ERqlLp5kClNLkngLSyF8XExrZi089SYbFm9DRg1FCbEKyoxQE8sqFkTOgTwrDVIPCP/k8qpRcGrxMEXmxnpwjUeXbhjpgA2bBNsp0HPQWOiwNOnddw5YcNIdSFyzTlUKehEbrLDxDNn7osjCXPw5FO22qgPfKHn/pf8XxxxetvSvYlX8BxBVKCdGDmPPDhz0W+Oijjxof//jHt+Hh2oko/qKqFx4l0BJQmQIwS3RNn/fxZXqGFbq4nQzimI9tKFs+S1S1KJ9XoQkEfUQwtKg98fSzefMMwmx5F28/IqK2RLjM2b54/gX0H0v6+IiDZSVgHJogfYWNzDMUpCtsUkKg4pKIUJAsnNTlkjNWzfBCPMOhi8JAiCSqPBmyMFVQ1OdctQwLywNZ5cPCpDl80D6IhjzBASQF0sUeREpSJCyE4ceSpJXbEO2612AHepaTSRn/YrtEAD3n8xV/ntv4+S96nyGRO9gccQZmEPiBK3bRi5kPHcG+v2T32n2+53bxNY8oQyWIB0SR9OmqxMeTh5lm/8azx8srEbCQNSqTpUTX+eagwCiPqiWeQAXO/olHV2tPaYUFjWCxsQJjt7MV564K6iOB2Xj1adNGa3PqDMFl4XwSSnAQCUIibqFPlwtTwbiOkoSR+JvLx3KYv9BXaSrlLyifSegQBNMFTAWhiIeFArRZnoX+8Y2EzKhbnuNlYO9wFpZXkwoH5Kmj/6qOFTz+0n8+Y4Y/2pVIcJqY35+YJ6wjEN33ZzL9kPY3hWjx6Sv+RcByLIQAZZYQJSn2C944FRF/QkvjQ31XZDcV04GVPOGl+WdJEhVGbaNPV3d7Va7ZP83U/1ACgzTjkg4gjUFvHhGWkrPAPnnBLNeFSEKKfAbzOu9yBAUdVj6cZURpZuU3XOUILioD93x2IEnxxFGc9c6M+M93cHSNZVzHquBQDeMn4x898wQ2us7pgGvAbyU8/z5e5EupVEqtJirCgp4KHxVI7sbrQIYKHyKF3+yvIvEEX8FsQNk9qXwgBpgQwNo7p9OKrukzfdzF08+WTmYrV35YF+tU8bEpYImInGtLVH+8PkzZ8iQcVpjrawXCLOHH5uo/9JmWjbXHJMQcNhVW8bOklbsumnJw7Q+cgtVK2mJxAUNNKKncp54KHuzAwnjCE01B1UIHA1A80ik/IkdIfTj6mE8MXh2sSKZhdHUd+IcDykwFLj4eMv7Fv+il75c8/xEmeHaojD+jZ4LgbsPVVvO5iutg4oSAFCCiAqVp/jrUKRU8mzVexsube05ff3tiD0Q1wkP/ojrYgeiaftiheHsjLKL4GrudTxYvb0H9h94bpzeAwCD4cAqJf5SmlBjFH5D8ChVC1Q8KyIkrjtgbE64y4lqtINJHel5Hq4q4ZdsYzsWBWaU+rkFWtFzQbiNNnWciNbT/qD4+Hitq/FdE/3mWzmvQU+W4hZZPenQuRHRNfylcvfVjpUqz0Tj6dNE1/fm4euufTx1z5am3/hr6z6lj9A9ElneKwPJ3IYEVEpqKys0YFeUhoDBP4TV/+bjVIkfqKuu8/ixC/+tqR73111V4DYnrrb+G8a+h1tkk9dY/m7MxV7XUzwdP3ApBgCYG6Co+L6/+kcB4X0g0ERFFzwXjojBc5q8ZhqOKtWEoROmLEwSWBIHowVySyqSS5kIABEYhisRFEov8SgRWGD6K9OMgq8IwBIkTBBYXASGsxcW3pUoHgfF5iIiLPv9x+03kuLxMqaqsUj1KJL4gsFgICGEtFrJtUG6OwDhtJHHhqLOl+dBAG0AnXRAEBAFBQBAQBAQBQUAQEAQEAUFAEBAEBAFBQBAQBAQBQUAQEAQEAUFAEBAEBAFBQBAQBAQBQUAQEAQEAUFAEBAEBAFBQBAQBAQBQUAQEAQEAUFAEBAEBAFBQBAQBAQBQUAQEAQEAUFAEBAEBAFBQBAQBAQBQUAQEAQEAUFAEBAEBAFBQBAQBAQBQUAQEAQEAUFAEBAEBAFBQBAQBAQBQUAQEAQEAUFAEBAEBAFBQBAQBAQBQUAQEAQEAUFAEBAEBAFBQBAQBAQBQUAQEAQEAUFAEBAEBAFBQBAQBAQBQUAQEAQEAUFAEBAEBAFBQBAQBAQBQUAQEAQEAUFAEBAEBAFBQBAQBAQBQUAQEAQEAUFAEBAEBAFBQBAQBAQBQUAQEAQEAUFAEBAEBAFBQBAQBAQBQUAQEAQEAUFAEBAEBAFBQBAQBAQBQUAQEAQEAUFAEBAEBAFBQBAQBAQBQUAQEAQEAUFAEBAEBAFBQBAQBAQBQUAQEAQEAUFAEBAEBAFBQBAQBAQBQUAQEAQEAUFAEBAEBAFBQBAQBAQBQUAQEAQEAUFAEBAEBAFBQBAQBAQBQUAQEAQEAUFAEBAEBAFBQBAQBAQBQUAQEAQEAUFAEBAEBAFBQBAQBAQBQUAQEAQEAUFAEBAEBAFBQBAQBAQBQUAQEAQEAUFAEBAEBAFBQBAQBAQBQUAQEAQEAUFAEBAEBIGVhMD/D0fV/fpMMM+gAAAAAElFTkSuQmCC' } };exports.default = _default;
  14872. /***/ }),
  14873. /* 94 */
  14874. /*!*****************************************************************************!*\
  14875. !*** E:/代码/cbz/cbz/cbz/uni_modules/uview-ui/libs/config/props/noticeBar.js ***!
  14876. \*****************************************************************************/
  14877. /*! no static exports found */
  14878. /***/ (function(module, exports, __webpack_require__) {
  14879. "use strict";
  14880. Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0; /*
  14881. * @Author : LQ
  14882. * @Description :
  14883. * @version : 1.0
  14884. * @Date : 2021-08-20 16:44:21
  14885. * @LastAuthor : LQ
  14886. * @lastTime : 2021-08-20 17:17:13
  14887. * @FilePath : /u-view2.0/uview-ui/libs/config/props/noticeBar.js
  14888. */var _default =
  14889. {
  14890. // noticeBar
  14891. noticeBar: {
  14892. text: function text() {return [];},
  14893. direction: 'row',
  14894. step: false,
  14895. icon: 'volume',
  14896. mode: '',
  14897. color: '#f9ae3d',
  14898. bgColor: '#fdf6ec',
  14899. speed: 80,
  14900. fontSize: 14,
  14901. duration: 2000,
  14902. disableTouch: true,
  14903. url: '',
  14904. linkType: 'navigateTo' } };exports.default = _default;
  14905. /***/ }),
  14906. /* 95 */
  14907. /*!**************************************************************************!*\
  14908. !*** E:/代码/cbz/cbz/cbz/uni_modules/uview-ui/libs/config/props/notify.js ***!
  14909. \**************************************************************************/
  14910. /*! no static exports found */
  14911. /***/ (function(module, exports, __webpack_require__) {
  14912. "use strict";
  14913. Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0; /*
  14914. * @Author : LQ
  14915. * @Description :
  14916. * @version : 1.0
  14917. * @Date : 2021-08-20 16:44:21
  14918. * @LastAuthor : LQ
  14919. * @lastTime : 2021-08-20 17:10:21
  14920. * @FilePath : /u-view2.0/uview-ui/libs/config/props/notify.js
  14921. */var _default =
  14922. {
  14923. // notify组件
  14924. notify: {
  14925. top: 0,
  14926. type: 'primary',
  14927. color: '#ffffff',
  14928. bgColor: '',
  14929. message: '',
  14930. duration: 3000,
  14931. fontSize: 15,
  14932. safeAreaInsetTop: false } };exports.default = _default;
  14933. /***/ }),
  14934. /* 96 */
  14935. /*!*****************************************************************************!*\
  14936. !*** E:/代码/cbz/cbz/cbz/uni_modules/uview-ui/libs/config/props/numberBox.js ***!
  14937. \*****************************************************************************/
  14938. /*! no static exports found */
  14939. /***/ (function(module, exports, __webpack_require__) {
  14940. "use strict";
  14941. Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0; /*
  14942. * @Author : LQ
  14943. * @Description :
  14944. * @version : 1.0
  14945. * @Date : 2021-08-20 16:44:21
  14946. * @LastAuthor : LQ
  14947. * @lastTime : 2021-08-20 17:11:46
  14948. * @FilePath : /u-view2.0/uview-ui/libs/config/props/numberBox.js
  14949. */var _default =
  14950. {
  14951. // 步进器组件
  14952. numberBox: {
  14953. name: '',
  14954. value: 0,
  14955. min: 1,
  14956. max: Number.MAX_SAFE_INTEGER,
  14957. step: 1,
  14958. integer: false,
  14959. disabled: false,
  14960. disabledInput: false,
  14961. asyncChange: false,
  14962. inputWidth: 35,
  14963. showMinus: true,
  14964. showPlus: true,
  14965. decimalLength: null,
  14966. longPress: true,
  14967. color: '#323233',
  14968. buttonSize: 30,
  14969. bgColor: '#EBECEE',
  14970. cursorSpacing: 100,
  14971. disableMinus: false,
  14972. disablePlus: false,
  14973. iconStyle: '' } };exports.default = _default;
  14974. /***/ }),
  14975. /* 97 */
  14976. /*!**********************************************************************************!*\
  14977. !*** E:/代码/cbz/cbz/cbz/uni_modules/uview-ui/libs/config/props/numberKeyboard.js ***!
  14978. \**********************************************************************************/
  14979. /*! no static exports found */
  14980. /***/ (function(module, exports, __webpack_require__) {
  14981. "use strict";
  14982. Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0; /*
  14983. * @Author : LQ
  14984. * @Description :
  14985. * @version : 1.0
  14986. * @Date : 2021-08-20 16:44:21
  14987. * @LastAuthor : LQ
  14988. * @lastTime : 2021-08-20 17:08:05
  14989. * @FilePath : /u-view2.0/uview-ui/libs/config/props/numberKeyboard.js
  14990. */var _default =
  14991. {
  14992. // 数字键盘
  14993. numberKeyboard: {
  14994. mode: 'number',
  14995. dotDisabled: false,
  14996. random: false } };exports.default = _default;
  14997. /***/ }),
  14998. /* 98 */
  14999. /*!***************************************************************************!*\
  15000. !*** E:/代码/cbz/cbz/cbz/uni_modules/uview-ui/libs/config/props/overlay.js ***!
  15001. \***************************************************************************/
  15002. /*! no static exports found */
  15003. /***/ (function(module, exports, __webpack_require__) {
  15004. "use strict";
  15005. Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0; /*
  15006. * @Author : LQ
  15007. * @Description :
  15008. * @version : 1.0
  15009. * @Date : 2021-08-20 16:44:21
  15010. * @LastAuthor : LQ
  15011. * @lastTime : 2021-08-20 17:06:50
  15012. * @FilePath : /u-view2.0/uview-ui/libs/config/props/overlay.js
  15013. */var _default =
  15014. {
  15015. // overlay组件
  15016. overlay: {
  15017. show: false,
  15018. zIndex: 10070,
  15019. duration: 300,
  15020. opacity: 0.5 } };exports.default = _default;
  15021. /***/ }),
  15022. /* 99 */
  15023. /*!*************************************************************************!*\
  15024. !*** E:/代码/cbz/cbz/cbz/uni_modules/uview-ui/libs/config/props/parse.js ***!
  15025. \*************************************************************************/
  15026. /*! no static exports found */
  15027. /***/ (function(module, exports, __webpack_require__) {
  15028. "use strict";
  15029. Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0; /*
  15030. * @Author : LQ
  15031. * @Description :
  15032. * @version : 1.0
  15033. * @Date : 2021-08-20 16:44:21
  15034. * @LastAuthor : LQ
  15035. * @lastTime : 2021-08-20 17:17:33
  15036. * @FilePath : /u-view2.0/uview-ui/libs/config/props/parse.js
  15037. */var _default =
  15038. {
  15039. // parse
  15040. parse: {
  15041. copyLink: true,
  15042. errorImg: '',
  15043. lazyLoad: false,
  15044. loadingImg: '',
  15045. pauseVideo: true,
  15046. previewImg: true,
  15047. setTitle: true,
  15048. showImgMenu: true } };exports.default = _default;
  15049. /***/ }),
  15050. /* 100 */
  15051. /*!**************************************************************************!*\
  15052. !*** E:/代码/cbz/cbz/cbz/uni_modules/uview-ui/libs/config/props/picker.js ***!
  15053. \**************************************************************************/
  15054. /*! no static exports found */
  15055. /***/ (function(module, exports, __webpack_require__) {
  15056. "use strict";
  15057. Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0; /*
  15058. * @Author : LQ
  15059. * @Description :
  15060. * @version : 1.0
  15061. * @Date : 2021-08-20 16:44:21
  15062. * @LastAuthor : LQ
  15063. * @lastTime : 2021-08-20 17:18:20
  15064. * @FilePath : /u-view2.0/uview-ui/libs/config/props/picker.js
  15065. */var _default =
  15066. {
  15067. // picker
  15068. picker: {
  15069. show: false,
  15070. showToolbar: true,
  15071. title: '',
  15072. columns: function columns() {return [];},
  15073. loading: false,
  15074. itemHeight: 44,
  15075. cancelText: '取消',
  15076. confirmText: '确定',
  15077. cancelColor: '#909193',
  15078. confirmColor: '#3c9cff',
  15079. visibleItemCount: 5,
  15080. keyName: 'text',
  15081. closeOnClickOverlay: false,
  15082. defaultIndex: function defaultIndex() {return [];},
  15083. immediateChange: false } };exports.default = _default;
  15084. /***/ }),
  15085. /* 101 */
  15086. /*!*************************************************************************!*\
  15087. !*** E:/代码/cbz/cbz/cbz/uni_modules/uview-ui/libs/config/props/popup.js ***!
  15088. \*************************************************************************/
  15089. /*! no static exports found */
  15090. /***/ (function(module, exports, __webpack_require__) {
  15091. "use strict";
  15092. Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0; /*
  15093. * @Author : LQ
  15094. * @Description :
  15095. * @version : 1.0
  15096. * @Date : 2021-08-20 16:44:21
  15097. * @LastAuthor : LQ
  15098. * @lastTime : 2021-08-20 17:06:33
  15099. * @FilePath : /u-view2.0/uview-ui/libs/config/props/popup.js
  15100. */var _default =
  15101. {
  15102. // popup组件
  15103. popup: {
  15104. show: false,
  15105. overlay: true,
  15106. mode: 'bottom',
  15107. duration: 300,
  15108. closeable: false,
  15109. overlayStyle: function overlayStyle() {},
  15110. closeOnClickOverlay: true,
  15111. zIndex: 10075,
  15112. safeAreaInsetBottom: true,
  15113. safeAreaInsetTop: false,
  15114. closeIconPos: 'top-right',
  15115. round: 0,
  15116. zoom: true,
  15117. bgColor: '',
  15118. overlayOpacity: 0.5 } };exports.default = _default;
  15119. /***/ }),
  15120. /* 102 */
  15121. /*!*************************************************************************!*\
  15122. !*** E:/代码/cbz/cbz/cbz/uni_modules/uview-ui/libs/config/props/radio.js ***!
  15123. \*************************************************************************/
  15124. /*! no static exports found */
  15125. /***/ (function(module, exports, __webpack_require__) {
  15126. "use strict";
  15127. Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0; /*
  15128. * @Author : LQ
  15129. * @Description :
  15130. * @version : 1.0
  15131. * @Date : 2021-08-20 16:44:21
  15132. * @LastAuthor : LQ
  15133. * @lastTime : 2021-08-20 17:02:34
  15134. * @FilePath : /u-view2.0/uview-ui/libs/config/props/radio.js
  15135. */var _default =
  15136. {
  15137. // radio组件
  15138. radio: {
  15139. name: '',
  15140. shape: '',
  15141. disabled: '',
  15142. labelDisabled: '',
  15143. activeColor: '',
  15144. inactiveColor: '',
  15145. iconSize: '',
  15146. labelSize: '',
  15147. label: '',
  15148. labelColor: '',
  15149. size: '',
  15150. iconColor: '',
  15151. placement: '' } };exports.default = _default;
  15152. /***/ }),
  15153. /* 103 */
  15154. /*!******************************************************************************!*\
  15155. !*** E:/代码/cbz/cbz/cbz/uni_modules/uview-ui/libs/config/props/radioGroup.js ***!
  15156. \******************************************************************************/
  15157. /*! no static exports found */
  15158. /***/ (function(module, exports, __webpack_require__) {
  15159. "use strict";
  15160. Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0; /*
  15161. * @Author : LQ
  15162. * @Description :
  15163. * @version : 1.0
  15164. * @Date : 2021-08-20 16:44:21
  15165. * @LastAuthor : LQ
  15166. * @lastTime : 2021-08-20 17:03:12
  15167. * @FilePath : /u-view2.0/uview-ui/libs/config/props/radioGroup.js
  15168. */var _default =
  15169. {
  15170. // radio-group组件
  15171. radioGroup: {
  15172. value: '',
  15173. disabled: false,
  15174. shape: 'circle',
  15175. activeColor: '#2979ff',
  15176. inactiveColor: '#c8c9cc',
  15177. name: '',
  15178. size: 18,
  15179. placement: 'row',
  15180. label: '',
  15181. labelColor: '#303133',
  15182. labelSize: 14,
  15183. labelDisabled: false,
  15184. iconColor: '#ffffff',
  15185. iconSize: 12,
  15186. borderBottom: false,
  15187. iconPlacement: 'left' } };exports.default = _default;
  15188. /***/ }),
  15189. /* 104 */
  15190. /*!************************************************************************!*\
  15191. !*** E:/代码/cbz/cbz/cbz/uni_modules/uview-ui/libs/config/props/rate.js ***!
  15192. \************************************************************************/
  15193. /*! no static exports found */
  15194. /***/ (function(module, exports, __webpack_require__) {
  15195. "use strict";
  15196. Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0; /*
  15197. * @Author : LQ
  15198. * @Description :
  15199. * @version : 1.0
  15200. * @Date : 2021-08-20 16:44:21
  15201. * @LastAuthor : LQ
  15202. * @lastTime : 2021-08-20 17:05:09
  15203. * @FilePath : /u-view2.0/uview-ui/libs/config/props/rate.js
  15204. */var _default =
  15205. {
  15206. // rate组件
  15207. rate: {
  15208. value: 1,
  15209. count: 5,
  15210. disabled: false,
  15211. size: 18,
  15212. inactiveColor: '#b2b2b2',
  15213. activeColor: '#FA3534',
  15214. gutter: 4,
  15215. minCount: 1,
  15216. allowHalf: false,
  15217. activeIcon: 'star-fill',
  15218. inactiveIcon: 'star',
  15219. touchable: true } };exports.default = _default;
  15220. /***/ }),
  15221. /* 105 */
  15222. /*!****************************************************************************!*\
  15223. !*** E:/代码/cbz/cbz/cbz/uni_modules/uview-ui/libs/config/props/readMore.js ***!
  15224. \****************************************************************************/
  15225. /*! no static exports found */
  15226. /***/ (function(module, exports, __webpack_require__) {
  15227. "use strict";
  15228. Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0; /*
  15229. * @Author : LQ
  15230. * @Description :
  15231. * @version : 1.0
  15232. * @Date : 2021-08-20 16:44:21
  15233. * @LastAuthor : LQ
  15234. * @lastTime : 2021-08-20 17:18:41
  15235. * @FilePath : /u-view2.0/uview-ui/libs/config/props/readMore.js
  15236. */var _default =
  15237. {
  15238. // readMore
  15239. readMore: {
  15240. showHeight: 400,
  15241. toggle: false,
  15242. closeText: '展开阅读全文',
  15243. openText: '收起',
  15244. color: '#2979ff',
  15245. fontSize: 14,
  15246. textIndent: '2em',
  15247. name: '' } };exports.default = _default;
  15248. /***/ }),
  15249. /* 106 */
  15250. /*!***********************************************************************!*\
  15251. !*** E:/代码/cbz/cbz/cbz/uni_modules/uview-ui/libs/config/props/row.js ***!
  15252. \***********************************************************************/
  15253. /*! no static exports found */
  15254. /***/ (function(module, exports, __webpack_require__) {
  15255. "use strict";
  15256. Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0; /*
  15257. * @Author : LQ
  15258. * @Description :
  15259. * @version : 1.0
  15260. * @Date : 2021-08-20 16:44:21
  15261. * @LastAuthor : LQ
  15262. * @lastTime : 2021-08-20 17:18:58
  15263. * @FilePath : /u-view2.0/uview-ui/libs/config/props/row.js
  15264. */var _default =
  15265. {
  15266. // row
  15267. row: {
  15268. gutter: 0,
  15269. justify: 'start',
  15270. align: 'center' } };exports.default = _default;
  15271. /***/ }),
  15272. /* 107 */
  15273. /*!*****************************************************************************!*\
  15274. !*** E:/代码/cbz/cbz/cbz/uni_modules/uview-ui/libs/config/props/rowNotice.js ***!
  15275. \*****************************************************************************/
  15276. /*! no static exports found */
  15277. /***/ (function(module, exports, __webpack_require__) {
  15278. "use strict";
  15279. Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0; /*
  15280. * @Author : LQ
  15281. * @Description :
  15282. * @version : 1.0
  15283. * @Date : 2021-08-20 16:44:21
  15284. * @LastAuthor : LQ
  15285. * @lastTime : 2021-08-20 17:19:13
  15286. * @FilePath : /u-view2.0/uview-ui/libs/config/props/rowNotice.js
  15287. */var _default =
  15288. {
  15289. // rowNotice
  15290. rowNotice: {
  15291. text: '',
  15292. icon: 'volume',
  15293. mode: '',
  15294. color: '#f9ae3d',
  15295. bgColor: '#fdf6ec',
  15296. fontSize: 14,
  15297. speed: 80 } };exports.default = _default;
  15298. /***/ }),
  15299. /* 108 */
  15300. /*!******************************************************************************!*\
  15301. !*** E:/代码/cbz/cbz/cbz/uni_modules/uview-ui/libs/config/props/scrollList.js ***!
  15302. \******************************************************************************/
  15303. /*! no static exports found */
  15304. /***/ (function(module, exports, __webpack_require__) {
  15305. "use strict";
  15306. Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0; /*
  15307. * @Author : LQ
  15308. * @Description :
  15309. * @version : 1.0
  15310. * @Date : 2021-08-20 16:44:21
  15311. * @LastAuthor : LQ
  15312. * @lastTime : 2021-08-20 17:19:28
  15313. * @FilePath : /u-view2.0/uview-ui/libs/config/props/scrollList.js
  15314. */var _default =
  15315. {
  15316. // scrollList
  15317. scrollList: {
  15318. indicatorWidth: 50,
  15319. indicatorBarWidth: 20,
  15320. indicator: true,
  15321. indicatorColor: '#f2f2f2',
  15322. indicatorActiveColor: '#3c9cff',
  15323. indicatorStyle: '' } };exports.default = _default;
  15324. /***/ }),
  15325. /* 109 */
  15326. /*!**************************************************************************!*\
  15327. !*** E:/代码/cbz/cbz/cbz/uni_modules/uview-ui/libs/config/props/search.js ***!
  15328. \**************************************************************************/
  15329. /*! no static exports found */
  15330. /***/ (function(module, exports, __webpack_require__) {
  15331. "use strict";
  15332. Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0; /*
  15333. * @Author : LQ
  15334. * @Description :
  15335. * @version : 1.0
  15336. * @Date : 2021-08-20 16:44:21
  15337. * @LastAuthor : LQ
  15338. * @lastTime : 2021-08-20 17:19:45
  15339. * @FilePath : /u-view2.0/uview-ui/libs/config/props/search.js
  15340. */var _default =
  15341. {
  15342. // search
  15343. search: {
  15344. shape: 'round',
  15345. bgColor: '#f2f2f2',
  15346. placeholder: '请输入关键字',
  15347. clearabled: true,
  15348. focus: false,
  15349. showAction: true,
  15350. actionStyle: function actionStyle() {return {};},
  15351. actionText: '搜索',
  15352. inputAlign: 'left',
  15353. inputStyle: function inputStyle() {return {};},
  15354. disabled: false,
  15355. borderColor: 'transparent',
  15356. searchIconColor: '#909399',
  15357. searchIconSize: 22,
  15358. color: '#606266',
  15359. placeholderColor: '#909399',
  15360. searchIcon: 'search',
  15361. margin: '0',
  15362. animation: false,
  15363. value: '',
  15364. maxlength: '-1',
  15365. height: 32,
  15366. label: null } };exports.default = _default;
  15367. /***/ }),
  15368. /* 110 */
  15369. /*!***************************************************************************!*\
  15370. !*** E:/代码/cbz/cbz/cbz/uni_modules/uview-ui/libs/config/props/section.js ***!
  15371. \***************************************************************************/
  15372. /*! no static exports found */
  15373. /***/ (function(module, exports, __webpack_require__) {
  15374. "use strict";
  15375. Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0; /*
  15376. * @Author : LQ
  15377. * @Description :
  15378. * @version : 1.0
  15379. * @Date : 2021-08-20 16:44:21
  15380. * @LastAuthor : LQ
  15381. * @lastTime : 2021-08-20 17:07:33
  15382. * @FilePath : /u-view2.0/uview-ui/libs/config/props/section.js
  15383. */var _default =
  15384. {
  15385. // u-section组件
  15386. section: {
  15387. title: '',
  15388. subTitle: '更多',
  15389. right: true,
  15390. fontSize: 15,
  15391. bold: true,
  15392. color: '#303133',
  15393. subColor: '#909399',
  15394. showLine: true,
  15395. lineColor: '',
  15396. arrow: true } };exports.default = _default;
  15397. /***/ }),
  15398. /* 111 */
  15399. /*!****************************************************************************!*\
  15400. !*** E:/代码/cbz/cbz/cbz/uni_modules/uview-ui/libs/config/props/skeleton.js ***!
  15401. \****************************************************************************/
  15402. /*! no static exports found */
  15403. /***/ (function(module, exports, __webpack_require__) {
  15404. "use strict";
  15405. Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0; /*
  15406. * @Author : LQ
  15407. * @Description :
  15408. * @version : 1.0
  15409. * @Date : 2021-08-20 16:44:21
  15410. * @LastAuthor : LQ
  15411. * @lastTime : 2021-08-20 17:20:14
  15412. * @FilePath : /u-view2.0/uview-ui/libs/config/props/skeleton.js
  15413. */var _default =
  15414. {
  15415. // skeleton
  15416. skeleton: {
  15417. loading: true,
  15418. animate: true,
  15419. rows: 0,
  15420. rowsWidth: '100%',
  15421. rowsHeight: 18,
  15422. title: true,
  15423. titleWidth: '50%',
  15424. titleHeight: 18,
  15425. avatar: false,
  15426. avatarSize: 32,
  15427. avatarShape: 'circle' } };exports.default = _default;
  15428. /***/ }),
  15429. /* 112 */
  15430. /*!**************************************************************************!*\
  15431. !*** E:/代码/cbz/cbz/cbz/uni_modules/uview-ui/libs/config/props/slider.js ***!
  15432. \**************************************************************************/
  15433. /*! no static exports found */
  15434. /***/ (function(module, exports, __webpack_require__) {
  15435. "use strict";
  15436. Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0; /*
  15437. * @Author : LQ
  15438. * @Description :
  15439. * @version : 1.0
  15440. * @Date : 2021-08-20 16:44:21
  15441. * @LastAuthor : LQ
  15442. * @lastTime : 2021-08-20 17:08:25
  15443. * @FilePath : /u-view2.0/uview-ui/libs/config/props/slider.js
  15444. */var _default =
  15445. {
  15446. // slider组件
  15447. slider: {
  15448. value: 0,
  15449. blockSize: 18,
  15450. min: 0,
  15451. max: 100,
  15452. step: 1,
  15453. activeColor: '#2979ff',
  15454. inactiveColor: '#c0c4cc',
  15455. blockColor: '#ffffff',
  15456. showValue: false,
  15457. disabled: false,
  15458. blockStyle: function blockStyle() {} } };exports.default = _default;
  15459. /***/ }),
  15460. /* 113 */
  15461. /*!*****************************************************************************!*\
  15462. !*** E:/代码/cbz/cbz/cbz/uni_modules/uview-ui/libs/config/props/statusBar.js ***!
  15463. \*****************************************************************************/
  15464. /*! no static exports found */
  15465. /***/ (function(module, exports, __webpack_require__) {
  15466. "use strict";
  15467. Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0; /*
  15468. * @Author : LQ
  15469. * @Description :
  15470. * @version : 1.0
  15471. * @Date : 2021-08-20 16:44:21
  15472. * @LastAuthor : LQ
  15473. * @lastTime : 2021-08-20 17:20:39
  15474. * @FilePath : /u-view2.0/uview-ui/libs/config/props/statusBar.js
  15475. */var _default =
  15476. {
  15477. // statusBar
  15478. statusBar: {
  15479. bgColor: 'transparent' } };exports.default = _default;
  15480. /***/ }),
  15481. /* 114 */
  15482. /*!*************************************************************************!*\
  15483. !*** E:/代码/cbz/cbz/cbz/uni_modules/uview-ui/libs/config/props/steps.js ***!
  15484. \*************************************************************************/
  15485. /*! no static exports found */
  15486. /***/ (function(module, exports, __webpack_require__) {
  15487. "use strict";
  15488. Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0; /*
  15489. * @Author : LQ
  15490. * @Description :
  15491. * @version : 1.0
  15492. * @Date : 2021-08-20 16:44:21
  15493. * @LastAuthor : LQ
  15494. * @lastTime : 2021-08-20 17:12:37
  15495. * @FilePath : /u-view2.0/uview-ui/libs/config/props/steps.js
  15496. */var _default =
  15497. {
  15498. // steps组件
  15499. steps: {
  15500. direction: 'row',
  15501. current: 0,
  15502. activeColor: '#3c9cff',
  15503. inactiveColor: '#969799',
  15504. activeIcon: '',
  15505. inactiveIcon: '',
  15506. dot: false } };exports.default = _default;
  15507. /***/ }),
  15508. /* 115 */
  15509. /*!*****************************************************************************!*\
  15510. !*** E:/代码/cbz/cbz/cbz/uni_modules/uview-ui/libs/config/props/stepsItem.js ***!
  15511. \*****************************************************************************/
  15512. /*! no static exports found */
  15513. /***/ (function(module, exports, __webpack_require__) {
  15514. "use strict";
  15515. Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0; /*
  15516. * @Author : LQ
  15517. * @Description :
  15518. * @version : 1.0
  15519. * @Date : 2021-08-20 16:44:21
  15520. * @LastAuthor : LQ
  15521. * @lastTime : 2021-08-20 17:12:55
  15522. * @FilePath : /u-view2.0/uview-ui/libs/config/props/stepsItem.js
  15523. */var _default =
  15524. {
  15525. // steps-item组件
  15526. stepsItem: {
  15527. title: '',
  15528. desc: '',
  15529. iconSize: 17,
  15530. error: false } };exports.default = _default;
  15531. /***/ }),
  15532. /* 116 */
  15533. /*!**************************************************************************!*\
  15534. !*** E:/代码/cbz/cbz/cbz/uni_modules/uview-ui/libs/config/props/sticky.js ***!
  15535. \**************************************************************************/
  15536. /*! no static exports found */
  15537. /***/ (function(module, exports, __webpack_require__) {
  15538. "use strict";
  15539. Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0; /*
  15540. * @Author : LQ
  15541. * @Description :
  15542. * @version : 1.0
  15543. * @Date : 2021-08-20 16:44:21
  15544. * @LastAuthor : LQ
  15545. * @lastTime : 2021-08-20 17:01:30
  15546. * @FilePath : /u-view2.0/uview-ui/libs/config/props/sticky.js
  15547. */var _default =
  15548. {
  15549. // sticky组件
  15550. sticky: {
  15551. offsetTop: 0,
  15552. customNavHeight: 0,
  15553. disabled: false,
  15554. bgColor: 'transparent',
  15555. zIndex: '',
  15556. index: '' } };exports.default = _default;
  15557. /***/ }),
  15558. /* 117 */
  15559. /*!******************************************************************************!*\
  15560. !*** E:/代码/cbz/cbz/cbz/uni_modules/uview-ui/libs/config/props/subsection.js ***!
  15561. \******************************************************************************/
  15562. /*! no static exports found */
  15563. /***/ (function(module, exports, __webpack_require__) {
  15564. "use strict";
  15565. Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0; /*
  15566. * @Author : LQ
  15567. * @Description :
  15568. * @version : 1.0
  15569. * @Date : 2021-08-20 16:44:21
  15570. * @LastAuthor : LQ
  15571. * @lastTime : 2021-08-20 17:12:20
  15572. * @FilePath : /u-view2.0/uview-ui/libs/config/props/subsection.js
  15573. */var _default =
  15574. {
  15575. // subsection组件
  15576. subsection: {
  15577. list: [],
  15578. current: 0,
  15579. activeColor: '#3c9cff',
  15580. inactiveColor: '#303133',
  15581. mode: 'button',
  15582. fontSize: 12,
  15583. bold: true,
  15584. bgColor: '#eeeeef',
  15585. keyName: 'name' } };exports.default = _default;
  15586. /***/ }),
  15587. /* 118 */
  15588. /*!*******************************************************************************!*\
  15589. !*** E:/代码/cbz/cbz/cbz/uni_modules/uview-ui/libs/config/props/swipeAction.js ***!
  15590. \*******************************************************************************/
  15591. /*! no static exports found */
  15592. /***/ (function(module, exports, __webpack_require__) {
  15593. "use strict";
  15594. Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0; /*
  15595. * @Author : LQ
  15596. * @Description :
  15597. * @version : 1.0
  15598. * @Date : 2021-08-20 16:44:21
  15599. * @LastAuthor : LQ
  15600. * @lastTime : 2021-08-20 17:00:42
  15601. * @FilePath : /u-view2.0/uview-ui/libs/config/props/swipeAction.js
  15602. */var _default =
  15603. {
  15604. // swipe-action组件
  15605. swipeAction: {
  15606. autoClose: true } };exports.default = _default;
  15607. /***/ }),
  15608. /* 119 */
  15609. /*!***********************************************************************************!*\
  15610. !*** E:/代码/cbz/cbz/cbz/uni_modules/uview-ui/libs/config/props/swipeActionItem.js ***!
  15611. \***********************************************************************************/
  15612. /*! no static exports found */
  15613. /***/ (function(module, exports, __webpack_require__) {
  15614. "use strict";
  15615. Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0; /*
  15616. * @Author : LQ
  15617. * @Description :
  15618. * @version : 1.0
  15619. * @Date : 2021-08-20 16:44:21
  15620. * @LastAuthor : LQ
  15621. * @lastTime : 2021-08-20 17:01:13
  15622. * @FilePath : /u-view2.0/uview-ui/libs/config/props/swipeActionItem.js
  15623. */var _default =
  15624. {
  15625. // swipeActionItem 组件
  15626. swipeActionItem: {
  15627. show: false,
  15628. name: '',
  15629. disabled: false,
  15630. threshold: 20,
  15631. autoClose: true,
  15632. options: [],
  15633. duration: 300 } };exports.default = _default;
  15634. /***/ }),
  15635. /* 120 */
  15636. /*!**************************************************************************!*\
  15637. !*** E:/代码/cbz/cbz/cbz/uni_modules/uview-ui/libs/config/props/swiper.js ***!
  15638. \**************************************************************************/
  15639. /*! no static exports found */
  15640. /***/ (function(module, exports, __webpack_require__) {
  15641. "use strict";
  15642. Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0; /*
  15643. * @Author : LQ
  15644. * @Description :
  15645. * @version : 1.0
  15646. * @Date : 2021-08-20 16:44:21
  15647. * @LastAuthor : LQ
  15648. * @lastTime : 2021-08-20 17:21:38
  15649. * @FilePath : /u-view2.0/uview-ui/libs/config/props/swiper.js
  15650. */var _default =
  15651. {
  15652. // swiper 组件
  15653. swiper: {
  15654. list: function list() {return [];},
  15655. indicator: false,
  15656. indicatorActiveColor: '#FFFFFF',
  15657. indicatorInactiveColor: 'rgba(255, 255, 255, 0.35)',
  15658. indicatorStyle: '',
  15659. indicatorMode: 'line',
  15660. autoplay: true,
  15661. current: 0,
  15662. currentItemId: '',
  15663. interval: 3000,
  15664. duration: 300,
  15665. circular: false,
  15666. previousMargin: 0,
  15667. nextMargin: 0,
  15668. acceleration: false,
  15669. displayMultipleItems: 1,
  15670. easingFunction: 'default',
  15671. keyName: 'url',
  15672. imgMode: 'aspectFill',
  15673. height: 130,
  15674. bgColor: '#f3f4f6',
  15675. radius: 4,
  15676. loading: false,
  15677. showTitle: false } };exports.default = _default;
  15678. /***/ }),
  15679. /* 121 */
  15680. /*!************************************************************************************!*\
  15681. !*** E:/代码/cbz/cbz/cbz/uni_modules/uview-ui/libs/config/props/swipterIndicator.js ***!
  15682. \************************************************************************************/
  15683. /*! no static exports found */
  15684. /***/ (function(module, exports, __webpack_require__) {
  15685. "use strict";
  15686. Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0; /*
  15687. * @Author : LQ
  15688. * @Description :
  15689. * @version : 1.0
  15690. * @Date : 2021-08-20 16:44:21
  15691. * @LastAuthor : LQ
  15692. * @lastTime : 2021-08-20 17:22:07
  15693. * @FilePath : /u-view2.0/uview-ui/libs/config/props/swiperIndicator.js
  15694. */var _default =
  15695. {
  15696. // swiperIndicator 组件
  15697. swiperIndicator: {
  15698. length: 0,
  15699. current: 0,
  15700. indicatorActiveColor: '',
  15701. indicatorInactiveColor: '',
  15702. indicatorMode: 'line' } };exports.default = _default;
  15703. /***/ }),
  15704. /* 122 */
  15705. /*!**************************************************************************!*\
  15706. !*** E:/代码/cbz/cbz/cbz/uni_modules/uview-ui/libs/config/props/switch.js ***!
  15707. \**************************************************************************/
  15708. /*! no static exports found */
  15709. /***/ (function(module, exports, __webpack_require__) {
  15710. "use strict";
  15711. Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0; /*
  15712. * @Author : LQ
  15713. * @Description :
  15714. * @version : 1.0
  15715. * @Date : 2021-08-20 16:44:21
  15716. * @LastAuthor : LQ
  15717. * @lastTime : 2021-08-20 17:22:24
  15718. * @FilePath : /u-view2.0/uview-ui/libs/config/props/switch.js
  15719. */var _default =
  15720. {
  15721. // switch
  15722. switch: {
  15723. loading: false,
  15724. disabled: false,
  15725. size: 25,
  15726. activeColor: '#2979ff',
  15727. inactiveColor: '#ffffff',
  15728. value: false,
  15729. activeValue: true,
  15730. inactiveValue: false,
  15731. asyncChange: false,
  15732. space: 0 } };exports.default = _default;
  15733. /***/ }),
  15734. /* 123 */
  15735. /*!**************************************************************************!*\
  15736. !*** E:/代码/cbz/cbz/cbz/uni_modules/uview-ui/libs/config/props/tabbar.js ***!
  15737. \**************************************************************************/
  15738. /*! no static exports found */
  15739. /***/ (function(module, exports, __webpack_require__) {
  15740. "use strict";
  15741. Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0; /*
  15742. * @Author : LQ
  15743. * @Description :
  15744. * @version : 1.0
  15745. * @Date : 2021-08-20 16:44:21
  15746. * @LastAuthor : LQ
  15747. * @lastTime : 2021-08-20 17:22:40
  15748. * @FilePath : /u-view2.0/uview-ui/libs/config/props/tabbar.js
  15749. */var _default =
  15750. {
  15751. // tabbar
  15752. tabbar: {
  15753. value: null,
  15754. safeAreaInsetBottom: true,
  15755. border: true,
  15756. zIndex: 1,
  15757. activeColor: '#1989fa',
  15758. inactiveColor: '#7d7e80',
  15759. fixed: true,
  15760. placeholder: true } };exports.default = _default;
  15761. /***/ }),
  15762. /* 124 */
  15763. /*!******************************************************************************!*\
  15764. !*** E:/代码/cbz/cbz/cbz/uni_modules/uview-ui/libs/config/props/tabbarItem.js ***!
  15765. \******************************************************************************/
  15766. /*! no static exports found */
  15767. /***/ (function(module, exports, __webpack_require__) {
  15768. "use strict";
  15769. Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0; /*
  15770. * @Author : LQ
  15771. * @Description :
  15772. * @version : 1.0
  15773. * @Date : 2021-08-20 16:44:21
  15774. * @LastAuthor : LQ
  15775. * @lastTime : 2021-08-20 17:22:55
  15776. * @FilePath : /u-view2.0/uview-ui/libs/config/props/tabbarItem.js
  15777. */var _default =
  15778. {
  15779. //
  15780. tabbarItem: {
  15781. name: null,
  15782. icon: '',
  15783. badge: null,
  15784. dot: false,
  15785. text: '',
  15786. badgeStyle: 'top: 6px;right:2px;' } };exports.default = _default;
  15787. /***/ }),
  15788. /* 125 */
  15789. /*!************************************************************************!*\
  15790. !*** E:/代码/cbz/cbz/cbz/uni_modules/uview-ui/libs/config/props/tabs.js ***!
  15791. \************************************************************************/
  15792. /*! no static exports found */
  15793. /***/ (function(module, exports, __webpack_require__) {
  15794. "use strict";
  15795. Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0; /*
  15796. * @Author : LQ
  15797. * @Description :
  15798. * @version : 1.0
  15799. * @Date : 2021-08-20 16:44:21
  15800. * @LastAuthor : LQ
  15801. * @lastTime : 2021-08-20 17:23:14
  15802. * @FilePath : /u-view2.0/uview-ui/libs/config/props/tabs.js
  15803. */var _default =
  15804. {
  15805. //
  15806. tabs: {
  15807. duration: 300,
  15808. list: function list() {return [];},
  15809. lineColor: '#3c9cff',
  15810. activeStyle: function activeStyle() {return {
  15811. color: '#303133' };},
  15812. inactiveStyle: function inactiveStyle() {return {
  15813. color: '#606266' };},
  15814. lineWidth: 20,
  15815. lineHeight: 3,
  15816. lineBgSize: 'cover',
  15817. itemStyle: function itemStyle() {return {
  15818. height: '44px' };},
  15819. scrollable: true,
  15820. current: 0,
  15821. keyName: 'name' } };exports.default = _default;
  15822. /***/ }),
  15823. /* 126 */
  15824. /*!***********************************************************************!*\
  15825. !*** E:/代码/cbz/cbz/cbz/uni_modules/uview-ui/libs/config/props/tag.js ***!
  15826. \***********************************************************************/
  15827. /*! no static exports found */
  15828. /***/ (function(module, exports, __webpack_require__) {
  15829. "use strict";
  15830. Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0; /*
  15831. * @Author : LQ
  15832. * @Description :
  15833. * @version : 1.0
  15834. * @Date : 2021-08-20 16:44:21
  15835. * @LastAuthor : LQ
  15836. * @lastTime : 2021-08-20 17:23:37
  15837. * @FilePath : /u-view2.0/uview-ui/libs/config/props/tag.js
  15838. */var _default =
  15839. {
  15840. // tag 组件
  15841. tag: {
  15842. type: 'primary',
  15843. disabled: false,
  15844. size: 'medium',
  15845. shape: 'square',
  15846. text: '',
  15847. bgColor: '',
  15848. color: '',
  15849. borderColor: '',
  15850. closeColor: '#C6C7CB',
  15851. name: '',
  15852. plainFill: false,
  15853. plain: false,
  15854. closable: false,
  15855. show: true,
  15856. icon: '' } };exports.default = _default;
  15857. /***/ }),
  15858. /* 127 */
  15859. /*!************************************************************************!*\
  15860. !*** E:/代码/cbz/cbz/cbz/uni_modules/uview-ui/libs/config/props/text.js ***!
  15861. \************************************************************************/
  15862. /*! no static exports found */
  15863. /***/ (function(module, exports, __webpack_require__) {
  15864. "use strict";
  15865. Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0; /*
  15866. * @Author : LQ
  15867. * @Description :
  15868. * @version : 1.0
  15869. * @Date : 2021-08-20 16:44:21
  15870. * @LastAuthor : LQ
  15871. * @lastTime : 2021-08-20 17:23:58
  15872. * @FilePath : /u-view2.0/uview-ui/libs/config/props/text.js
  15873. */var _default =
  15874. {
  15875. // text 组件
  15876. text: {
  15877. type: '',
  15878. show: true,
  15879. text: '',
  15880. prefixIcon: '',
  15881. suffixIcon: '',
  15882. mode: '',
  15883. href: '',
  15884. format: '',
  15885. call: false,
  15886. openType: '',
  15887. bold: false,
  15888. block: false,
  15889. lines: '',
  15890. color: '#303133',
  15891. size: 15,
  15892. iconStyle: function iconStyle() {return {
  15893. fontSize: '15px' };},
  15894. decoration: 'none',
  15895. margin: 0,
  15896. lineHeight: '',
  15897. align: 'left',
  15898. wordWrap: 'normal' } };exports.default = _default;
  15899. /***/ }),
  15900. /* 128 */
  15901. /*!****************************************************************************!*\
  15902. !*** E:/代码/cbz/cbz/cbz/uni_modules/uview-ui/libs/config/props/textarea.js ***!
  15903. \****************************************************************************/
  15904. /*! no static exports found */
  15905. /***/ (function(module, exports, __webpack_require__) {
  15906. "use strict";
  15907. Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0; /*
  15908. * @Author : LQ
  15909. * @Description :
  15910. * @version : 1.0
  15911. * @Date : 2021-08-20 16:44:21
  15912. * @LastAuthor : LQ
  15913. * @lastTime : 2021-08-20 17:24:32
  15914. * @FilePath : /u-view2.0/uview-ui/libs/config/props/textarea.js
  15915. */var _default =
  15916. {
  15917. // textarea 组件
  15918. textarea: {
  15919. value: '',
  15920. placeholder: '',
  15921. placeholderClass: 'textarea-placeholder',
  15922. placeholderStyle: 'color: #c0c4cc',
  15923. height: 70,
  15924. confirmType: '',
  15925. disabled: false,
  15926. count: false,
  15927. focus: false,
  15928. autoHeight: false,
  15929. fixed: false,
  15930. cursorSpacing: 0,
  15931. cursor: '',
  15932. showConfirmBar: true,
  15933. selectionStart: -1,
  15934. selectionEnd: -1,
  15935. adjustPosition: true,
  15936. disableDefaultPadding: false,
  15937. holdKeyboard: false,
  15938. maxlength: 140,
  15939. border: 'surround',
  15940. formatter: null } };exports.default = _default;
  15941. /***/ }),
  15942. /* 129 */
  15943. /*!*************************************************************************!*\
  15944. !*** E:/代码/cbz/cbz/cbz/uni_modules/uview-ui/libs/config/props/toast.js ***!
  15945. \*************************************************************************/
  15946. /*! no static exports found */
  15947. /***/ (function(module, exports, __webpack_require__) {
  15948. "use strict";
  15949. Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0; /*
  15950. * @Author : LQ
  15951. * @Description :
  15952. * @version : 1.0
  15953. * @Date : 2021-08-20 16:44:21
  15954. * @LastAuthor : LQ
  15955. * @lastTime : 2021-08-20 17:07:07
  15956. * @FilePath : /u-view2.0/uview-ui/libs/config/props/toast.js
  15957. */var _default =
  15958. {
  15959. // toast组件
  15960. toast: {
  15961. zIndex: 10090,
  15962. loading: false,
  15963. text: '',
  15964. icon: '',
  15965. type: '',
  15966. loadingMode: '',
  15967. show: '',
  15968. overlay: false,
  15969. position: 'center',
  15970. params: function params() {},
  15971. duration: 2000,
  15972. isTab: false,
  15973. url: '',
  15974. callback: null,
  15975. back: false } };exports.default = _default;
  15976. /***/ }),
  15977. /* 130 */
  15978. /*!***************************************************************************!*\
  15979. !*** E:/代码/cbz/cbz/cbz/uni_modules/uview-ui/libs/config/props/toolbar.js ***!
  15980. \***************************************************************************/
  15981. /*! no static exports found */
  15982. /***/ (function(module, exports, __webpack_require__) {
  15983. "use strict";
  15984. Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0; /*
  15985. * @Author : LQ
  15986. * @Description :
  15987. * @version : 1.0
  15988. * @Date : 2021-08-20 16:44:21
  15989. * @LastAuthor : LQ
  15990. * @lastTime : 2021-08-20 17:24:55
  15991. * @FilePath : /u-view2.0/uview-ui/libs/config/props/toolbar.js
  15992. */var _default =
  15993. {
  15994. // toolbar 组件
  15995. toolbar: {
  15996. show: true,
  15997. cancelText: '取消',
  15998. confirmText: '确认',
  15999. cancelColor: '#909193',
  16000. confirmColor: '#3c9cff',
  16001. title: '' } };exports.default = _default;
  16002. /***/ }),
  16003. /* 131 */
  16004. /*!***************************************************************************!*\
  16005. !*** E:/代码/cbz/cbz/cbz/uni_modules/uview-ui/libs/config/props/tooltip.js ***!
  16006. \***************************************************************************/
  16007. /*! no static exports found */
  16008. /***/ (function(module, exports, __webpack_require__) {
  16009. "use strict";
  16010. Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0; /*
  16011. * @Author : LQ
  16012. * @Description :
  16013. * @version : 1.0
  16014. * @Date : 2021-08-20 16:44:21
  16015. * @LastAuthor : LQ
  16016. * @lastTime : 2021-08-20 17:25:14
  16017. * @FilePath : /u-view2.0/uview-ui/libs/config/props/tooltip.js
  16018. */var _default =
  16019. {
  16020. // tooltip 组件
  16021. tooltip: {
  16022. text: '',
  16023. copyText: '',
  16024. size: 14,
  16025. color: '#606266',
  16026. bgColor: 'transparent',
  16027. direction: 'top',
  16028. zIndex: 10071,
  16029. showCopy: true,
  16030. buttons: function buttons() {return [];},
  16031. overlay: true,
  16032. showToast: true } };exports.default = _default;
  16033. /***/ }),
  16034. /* 132 */
  16035. /*!******************************************************************************!*\
  16036. !*** E:/代码/cbz/cbz/cbz/uni_modules/uview-ui/libs/config/props/transition.js ***!
  16037. \******************************************************************************/
  16038. /*! no static exports found */
  16039. /***/ (function(module, exports, __webpack_require__) {
  16040. "use strict";
  16041. Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0; /*
  16042. * @Author : LQ
  16043. * @Description :
  16044. * @version : 1.0
  16045. * @Date : 2021-08-20 16:44:21
  16046. * @LastAuthor : LQ
  16047. * @lastTime : 2021-08-20 16:59:00
  16048. * @FilePath : /u-view2.0/uview-ui/libs/config/props/transition.js
  16049. */var _default =
  16050. {
  16051. // transition动画组件的props
  16052. transition: {
  16053. show: false,
  16054. mode: 'fade',
  16055. duration: '300',
  16056. timingFunction: 'ease-out' } };exports.default = _default;
  16057. /***/ }),
  16058. /* 133 */
  16059. /*!**************************************************************************!*\
  16060. !*** E:/代码/cbz/cbz/cbz/uni_modules/uview-ui/libs/config/props/upload.js ***!
  16061. \**************************************************************************/
  16062. /*! no static exports found */
  16063. /***/ (function(module, exports, __webpack_require__) {
  16064. "use strict";
  16065. Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0; /*
  16066. * @Author : LQ
  16067. * @Description :
  16068. * @version : 1.0
  16069. * @Date : 2021-08-20 16:44:21
  16070. * @LastAuthor : LQ
  16071. * @lastTime : 2021-08-20 17:09:50
  16072. * @FilePath : /u-view2.0/uview-ui/libs/config/props/upload.js
  16073. */var _default =
  16074. {
  16075. // upload组件
  16076. upload: {
  16077. accept: 'image',
  16078. capture: function capture() {return ['album', 'camera'];},
  16079. compressed: true,
  16080. camera: 'back',
  16081. maxDuration: 60,
  16082. uploadIcon: 'camera-fill',
  16083. uploadIconColor: '#D3D4D6',
  16084. useBeforeRead: false,
  16085. previewFullImage: true,
  16086. maxCount: 52,
  16087. disabled: false,
  16088. imageMode: 'aspectFill',
  16089. name: '',
  16090. sizeType: function sizeType() {return ['original', 'compressed'];},
  16091. multiple: false,
  16092. deletable: true,
  16093. maxSize: Number.MAX_VALUE,
  16094. fileList: function fileList() {return [];},
  16095. uploadText: '',
  16096. width: 80,
  16097. height: 80,
  16098. previewImage: true } };exports.default = _default;
  16099. /***/ }),
  16100. /* 134 */
  16101. /*!********************************************************************!*\
  16102. !*** E:/代码/cbz/cbz/cbz/uni_modules/uview-ui/libs/config/zIndex.js ***!
  16103. \********************************************************************/
  16104. /*! no static exports found */
  16105. /***/ (function(module, exports, __webpack_require__) {
  16106. "use strict";
  16107. Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0; // uniapp在H5中各API的z-index值如下:
  16108. /**
  16109. * actionsheet: 999
  16110. * modal: 999
  16111. * navigate: 998
  16112. * tabbar: 998
  16113. * toast: 999
  16114. */var _default =
  16115. {
  16116. toast: 10090,
  16117. noNetwork: 10080,
  16118. // popup包含popup,actionsheet,keyboard,picker的值
  16119. popup: 10075,
  16120. mask: 10070,
  16121. navbar: 980,
  16122. topTips: 975,
  16123. sticky: 970,
  16124. indexListSticky: 965 };exports.default = _default;
  16125. /***/ }),
  16126. /* 135 */
  16127. /*!************************************************************************!*\
  16128. !*** E:/代码/cbz/cbz/cbz/uni_modules/uview-ui/libs/function/platform.js ***!
  16129. \************************************************************************/
  16130. /*! no static exports found */
  16131. /***/ (function(module, exports, __webpack_require__) {
  16132. "use strict";
  16133. Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0; /**
  16134. * 注意:
  16135. * 此部分内容,在vue-cli模式下,需要在vue.config.js加入如下内容才有效:
  16136. * module.exports = {
  16137. * transpileDependencies: ['uview-v2']
  16138. * }
  16139. */
  16140. var platform = 'none';
  16141. platform = 'vue2';
  16142. platform = 'weixin';
  16143. platform = 'mp';var _default =
  16144. platform;exports.default = _default;
  16145. /***/ }),
  16146. /* 136 */,
  16147. /* 137 */,
  16148. /* 138 */,
  16149. /* 139 */,
  16150. /* 140 */,
  16151. /* 141 */,
  16152. /* 142 */
  16153. /*!******************************************!*\
  16154. !*** E:/代码/cbz/cbz/cbz/static/js/api.js ***!
  16155. \******************************************/
  16156. /*! no static exports found */
  16157. /***/ (function(module, exports, __webpack_require__) {
  16158. /* WEBPACK VAR INJECTION */(function(uni) {var _module$exports;function _defineProperty(obj, key, value) {if (key in obj) {Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true });} else {obj[key] = value;}return obj;} // 加密 sha1 md5
  16159. var encrypt = __webpack_require__(/*! ./encrypt.js */ 143);
  16160. // 缓存
  16161. var cache = __webpack_require__(/*! ./cache.js */ 144);
  16162. // 数学精确计算
  16163. var math = __webpack_require__(/*! ./math.js */ 145);
  16164. // 腾讯位置服务
  16165. var qqMap = __webpack_require__(/*! ./qqmap-wx-jssdk */ 146);
  16166. // 二维码
  16167. var qrCode = __webpack_require__(/*! ./weapp.qrcode.min */ 147);
  16168. module.exports = (_module$exports = {
  16169. /**
  16170. * 小程序基本配置
  16171. */
  16172. config: {
  16173. name: '船百知',
  16174. debug: false, //开发模式true,生产环境改为false;
  16175. version: 'xcx',
  16176. baseUrl: 'https://jxtx.zhousi.hdlkeji.com',
  16177. qqMap: false,
  16178. loading: false },
  16179. /**
  16180. * sha1加密
  16181. * @param str
  16182. * @param raw 加密方式 1str_sha1 0hex_sha1
  16183. */
  16184. sha1: function sha1(str, raw) {
  16185. return encrypt.sha1(str, raw);
  16186. },
  16187. /**
  16188. * md5加密
  16189. * @param str
  16190. */
  16191. md5: function md5(str) {
  16192. return encrypt.md5(str);
  16193. },
  16194. /**
  16195. * 缓存
  16196. */
  16197. cache: cache,
  16198. /**
  16199. * 数字精确计算
  16200. */
  16201. math: math,
  16202. /**
  16203. * 腾讯地图
  16204. */
  16205. qqMap: qqMap,
  16206. /**
  16207. * 消息提示
  16208. * @param title
  16209. * @param icon:success,error,loading,none
  16210. * @param success
  16211. * @param time
  16212. * @param mask
  16213. */
  16214. info: function info(title, icon, success, time, mask) {
  16215. if (typeof icon == 'function') {
  16216. success = icon;
  16217. icon = "none";
  16218. }
  16219. title = title == undefined ? "系统繁忙" : title;
  16220. icon = icon == undefined ? "none" : icon;
  16221. time = time == undefined ? 800 : time;
  16222. mask = mask == undefined ? true : mask;
  16223. uni.showToast({
  16224. title: title,
  16225. icon: icon,
  16226. mask: mask,
  16227. duration: time,
  16228. success: setTimeout(function () {
  16229. success && success();
  16230. }, time) });
  16231. },
  16232. /**
  16233. * 确认提示框
  16234. * @param {Object} content
  16235. * @param {Object} success
  16236. * @param {Object} cancel
  16237. * @param {Object} confirmText
  16238. * @param {Object} cancelText
  16239. */
  16240. modal: function modal(content, success, cancel, confirmText, cancelText) {
  16241. var opt = {};
  16242. opt.title = this.config.name;
  16243. opt.content = content;
  16244. // 默认不显示取消
  16245. opt.showCancel = false;
  16246. if (typeof cancel == 'function' || typeof cancel == 'boolean' && cancel) {
  16247. opt.showCancel = true;
  16248. } else if (typeof cancel == 'string') {
  16249. cancelText = confirmText;
  16250. confirmText = cancel;
  16251. }
  16252. if (!this.isEmpty(confirmText)) {
  16253. opt.confirmText = confirmText;
  16254. }
  16255. if (!this.isEmpty(cancelText)) {
  16256. opt.cancelText = cancelText;
  16257. opt.showCancel = true;
  16258. }
  16259. opt.success = function (res) {
  16260. if (res.confirm) {
  16261. success && success();
  16262. } else if (res.cancel) {
  16263. typeof cancel == 'function' && cancel();
  16264. }
  16265. };
  16266. uni.showModal(opt);
  16267. },
  16268. /**
  16269. * loading 提示框
  16270. * @param title
  16271. */
  16272. loading: function loading(title) {
  16273. var that = this;
  16274. title = typeof title == 'string' ? title : "加载中...";
  16275. !that.config.loading && uni.showLoading({
  16276. title: title,
  16277. mask: true,
  16278. success: function success() {
  16279. that.config.loading = true;
  16280. } });
  16281. },
  16282. /**
  16283. * 关闭loading 提示框
  16284. */
  16285. closeLoading: function closeLoading() {
  16286. var that = this;
  16287. that.config.loading && uni.hideLoading({
  16288. noConflict: true,
  16289. success: function success() {
  16290. that.config.loading = false;
  16291. } });
  16292. },
  16293. /**
  16294. * 判断登录
  16295. * @param {Object} type 0不跳转登录 1跳转登录
  16296. * @param {Object} success
  16297. */
  16298. login: function login(type, success) {
  16299. if (typeof type == 'function') {
  16300. success = type;
  16301. type = 1;
  16302. } else if (typeof type == 'undefined') {
  16303. type = 1;
  16304. }
  16305. var that = this;
  16306. /* var userInfo = this.getUserInfo();
  16307. if (this.isEmpty(userInfo)) {
  16308. if (type == 1) {
  16309. that.info('请先登录', function() {
  16310. var pages = getCurrentPages();
  16311. var route = pages[pages.length - 1].route;
  16312. // if (route != 'pages/login/choose') {
  16313. // that.jump('/pages/login/choose');
  16314. // }
  16315. });
  16316. }
  16317. return false;
  16318. } */
  16319. // return success && success(userInfo) || userInfo;
  16320. return success;
  16321. },
  16322. /**
  16323. * 页面跳转
  16324. * @param url
  16325. * @param type
  16326. */
  16327. jump: function jump(url, type, params) {
  16328. var that = this;
  16329. if (that.isEmpty(url) && type !== -1) return false;
  16330. if (url === -1) {
  16331. var delta = type || 1;
  16332. type = url;
  16333. } else if (type === -1) {
  16334. var delta = 1;
  16335. if (params && params.delta) {
  16336. delta = params.delta;
  16337. }
  16338. }
  16339. type = type || 0, //默认0
  16340. params = params || {};
  16341. if (that.isEmpty(params)) {
  16342. cache.remove('jump_data');
  16343. } else {
  16344. cache.set('jump_data', params);
  16345. }
  16346. switch (type) {
  16347. case -1:
  16348. //关闭当前页面,返回上一页面或多级页面 delta:1 返回层数
  16349. setTimeout(function () {
  16350. uni.navigateBack({
  16351. delta: delta });
  16352. }, 800);
  16353. return;
  16354. case 0:
  16355. //保留当前页面,跳转到应用内的某个页面,使用uni.navigateBack可以返回到原页面
  16356. uni.navigateTo({
  16357. url: url });
  16358. return;
  16359. case 1:
  16360. //关闭当前页面,跳转到应用内的某个页面
  16361. uni.redirectTo({
  16362. url: url });
  16363. return;
  16364. case 2:
  16365. //关闭所有页面,打开到应用内的某个页面
  16366. uni.reLaunch({
  16367. url: url });
  16368. return;
  16369. case 3:
  16370. //跳转到 tabBar 页面,并关闭其他所有非 tabBar 页面
  16371. uni.switchTab({
  16372. url: url });
  16373. return;
  16374. default:
  16375. return false;}
  16376. },
  16377. /**
  16378. * 数据请求
  16379. */
  16380. req: function req(option, onsuccess, onerror, oncomplete) {
  16381. if (option == 'undefined') return false;
  16382. var that = this,
  16383. config = {
  16384. sign: false, //是否签名数据
  16385. load: false, //是否显示loading提示
  16386. login: false, //是否需要登录
  16387. url: false,
  16388. data: option.data,
  16389. header: {
  16390. 'content-type': 'application/x-www-form-urlencoded',
  16391. 'Authorization': uni.getStorageSync('token').token },
  16392. method: 'post',
  16393. dataType: 'json',
  16394. success: function success(res) {//通讯成功
  16395. that.jslog('请求:' + option.url);
  16396. that.jslog(res.data);
  16397. //获取返回数据
  16398. res = res.data;
  16399. //如果存在回调,优先执行回调函数
  16400. if (onsuccess) {
  16401. if (onsuccess(res) === false) {
  16402. return;
  16403. }
  16404. }
  16405. if (typeof res == 'object') {
  16406. res.info && res.info != 'success' && that.info(res.info);
  16407. if (res.status == 98) {//未登录或账号不存在
  16408. cache.remove('user_info');
  16409. that.login();
  16410. } else if (res.status == 99) {//token验证失败
  16411. cache.remove('token');
  16412. }
  16413. } else {
  16414. // that.modal('接口异常');
  16415. }
  16416. },
  16417. fail: function fail(res) {//通讯失败
  16418. that.jslog('请求:' + option.url);
  16419. that.jslog(res);
  16420. onerror && onerror();
  16421. },
  16422. complete: function complete(res) {//通讯完成
  16423. option.load && that.closeLoading();
  16424. oncomplete && oncomplete();
  16425. } };
  16426. option.data && (option.data = option.data);
  16427. if (option.url) {
  16428. option.url = that.config.baseUrl + option.url;
  16429. } else {
  16430. return false;
  16431. }
  16432. option = that.extend({}, config, option);
  16433. if (option.login && !that.login()) {
  16434. return false;
  16435. }
  16436. // if (!option.data.submit) {
  16437. // option.data.submit = 'yes';
  16438. // }
  16439. if (option.sign) {
  16440. that.getsign(option.data, function (res) {
  16441. option.data = res;
  16442. option.load && that.loading(option.load);
  16443. uni.request(option);
  16444. });
  16445. } else {
  16446. option.load && that.loading(option.load);
  16447. uni.request(option);
  16448. }
  16449. },
  16450. /**
  16451. * 获取一个Token,登录成功请清空
  16452. * @param {function} callback :回调函数
  16453. */
  16454. gettoken: function gettoken(callback) {
  16455. var that = this,
  16456. token = cache.get('token'),
  16457. timestamp = Date.parse(new Date()) / 1000;
  16458. // 10分钟缓冲
  16459. if (token && token.date_expire > timestamp + 600) return callback({
  16460. status: 1,
  16461. data: token });
  16462. var uuid = that.uuid(),
  16463. //clientid=that.getClientId(),
  16464. uid = that.getUserInfo('id', 0);
  16465. uni.request({
  16466. url: that.config.baseUrl + 'token',
  16467. data: {
  16468. uuid: uuid,
  16469. uid: uid,
  16470. timestamp: timestamp },
  16471. //clientid:clientid
  16472. timeout: 10000, //超时时间设置为10秒
  16473. success: function success(res) {
  16474. var res = res.data;
  16475. if (res.status == 1) {
  16476. cache.set('token', res.data);
  16477. }
  16478. return callback(res);
  16479. },
  16480. complete: function complete(res) {
  16481. that.jslog('获取token:' + res);
  16482. } });
  16483. },
  16484. /**
  16485. * 数据签名
  16486. * @param {string} data:要签名的数据
  16487. * @param {function} onsuccess:成功回调函数
  16488. * @param {function} onerror:失败回调函数
  16489. */
  16490. getsign: function getsign(param, onsuccess, onerror) {
  16491. var that = this,
  16492. arr = [];
  16493. param._sign_uuid = that.uuid();
  16494. param._sign_uid = that.getUserInfo('id', 0);
  16495. param._timestamp = Date.parse(new Date()) / 1000;
  16496. param._version = that.config.version;
  16497. that.gettoken(function (res) {
  16498. if (res.status == 1) {
  16499. param._sign_token = res.data.token;
  16500. for (var i in param) {
  16501. if (!that.isEmpty(param[i], true)) {
  16502. arr.push(i + '=' + param[i]);
  16503. }
  16504. }
  16505. arr.sort();
  16506. param._sign = encrypt.sha1(arr.join('&') + res.data.token).toUpperCase();
  16507. return onsuccess(param);
  16508. } else {
  16509. return onerror && onerror(res.info) || that.info(res.info);
  16510. }
  16511. });
  16512. },
  16513. /**
  16514. * 格式化参数(password加密)
  16515. * @param {string} query:参数
  16516. */
  16517. formatparam: function formatparam(query) {
  16518. var json = {};
  16519. if (typeof query == 'object') {
  16520. for (var i in query) {
  16521. if (i.indexOf('password') > -1) {
  16522. query[i] = encrypt.md5(encrypt.sha1(query[i]));
  16523. }
  16524. }
  16525. return query;
  16526. } else {
  16527. var vars = query.split('&');
  16528. for (var i = 0; i < vars.length; i++) {
  16529. var pair = vars[i].split('=');
  16530. if (pair[0].indexOf('password') != -1) {
  16531. pair[1] = encrypt.md5(encrypt.sha1(pair[1]));
  16532. } else {
  16533. pair[1] = pair[1];
  16534. }
  16535. if (typeof json[pair[0]] === 'undefined') {
  16536. json[pair[0]] = pair[1];
  16537. } else if (typeof json[pair[0]] === 'string') {
  16538. var arr = [json[pair[0]], pair[1]];
  16539. json[pair[0]] = arr;
  16540. } else {
  16541. json[pair[0]].push(pair[1]);
  16542. }
  16543. }
  16544. return json;
  16545. }
  16546. },
  16547. /**
  16548. * 判断是否数组
  16549. *
  16550. * 1. 通过object类型的副属性class判断,
  16551. * 其中函数的class是Function,结果是[object Function]
  16552. * 普通的对象是Object,结果是[object Object]
  16553. * Object.prototype.toString.call(arr) === '[object Array]'
  16554. * 2. 通过原型去判断
  16555. * arr.constructor === Array
  16556. * Array.prototype.isPrototypeOf(arr)
  16557. * arr.__proto__ === Array.prototype
  16558. * Object.getPrototypeOf(arr) === Array.prototype
  16559. * arr instanceof Array
  16560. * 3. es6新增方法
  16561. * Array.isArray(arr)
  16562. */
  16563. isArray: function isArray(arr) {
  16564. return arr && typeof arr == 'object' && Object.prototype.toString.call(arr) === '[object Array]';
  16565. },
  16566. /**
  16567. * 否判断指定参数是否是一个纯粹的对象
  16568. * 所谓"纯粹的对象",就是通过"{}"或"new Object"创建的,不包括数组等对象
  16569. *
  16570. * 1. 通过object类型的副属性class判断
  16571. * Object.prototype.toString.call(obj) === '[object Object]'
  16572. * 2. 通过原型去判断
  16573. * obj.constructor === Object
  16574. * obj instanceof Object(数组也是对象,所以 arr instanceof Object 也为true)
  16575. * 3. typeof
  16576. * typeof obj(除了{},null和[]也是'object')
  16577. */
  16578. isPlainObject: function isPlainObject(obj) {
  16579. if (Object.getPrototypeOf) {
  16580. return obj && typeof obj == 'object' && Object.getPrototypeOf(obj) == Object.prototype;
  16581. } else {
  16582. return obj && typeof obj == 'object' && Object.prototype.toString.call(obj) == "[object Object]" &&
  16583. !obj.length;
  16584. }
  16585. },
  16586. /**
  16587. * 获取对象大小
  16588. * @param object
  16589. */
  16590. getLength: function getLength(object) {
  16591. return Object.keys(object).length;
  16592. },
  16593. /**
  16594. * 判断两个Json(纯粹)对象是否一样
  16595. * @param objA
  16596. * @param objB
  16597. */
  16598. compareJsonObj: function compareJsonObj(objA, objB) {
  16599. if (!this.isPlainObject(objA) || !this.isPlainObject(objB)) return false; //判断类型是否正确
  16600. return this.compareObj(objA, objB); //默认为true
  16601. },
  16602. /**
  16603. * 判断两个对象是否一样
  16604. * @param objA
  16605. * @param objB
  16606. * @param flag
  16607. */
  16608. compareObj: function compareObj(objA, objB, flag) {
  16609. if (this.getLength(objA) != this.getLength(objB)) return false;
  16610. flag = flag || true;
  16611. for (var key in objA) {
  16612. if (!flag) //flag为false,则跳出整个循环
  16613. break;
  16614. if (!objB.hasOwnProperty(key)) {//是否有自身属性,而不是继承的属性
  16615. flag = false;
  16616. break;
  16617. }
  16618. if (!this.isArray(objA[key])) {//子级不是数组时,比较属性值
  16619. if (this.isPlainObject(objA[key])) {
  16620. if (this.isPlainObject(objB[key])) {
  16621. if (!flag) //这里跳出循环是为了不让递归继续
  16622. break;
  16623. flag = this.compareObj(objA[key], objB[key], flag);
  16624. } else {
  16625. flag = false;
  16626. break;
  16627. }
  16628. } else {
  16629. if (String(objB[key]) != String(objA[key])) {//排除数字比较的类型差异
  16630. flag = false;
  16631. break;
  16632. }
  16633. }
  16634. } else {
  16635. if (!this.isArray(objB[key])) {
  16636. flag = false;
  16637. break;
  16638. }
  16639. var oA = objA[key],
  16640. oB = objB[key];
  16641. if (oA.length != oB.length) {
  16642. flag = false;
  16643. break;
  16644. }
  16645. for (var k in oA) {
  16646. if (!flag) //这里跳出循环是为了不让递归继续
  16647. break;
  16648. flag = this.compareObj(oA[k], oB[k], flag);
  16649. }
  16650. }
  16651. }
  16652. return flag;
  16653. },
  16654. /**
  16655. * 将一个或多个对象的内容合并到目标对象
  16656. * @param Object target 目标对象,其他对象的成员属性将被附加到该对象上
  16657. * @param Object target 目标对象,第一个被合并的对象
  16658. * @param Object target 目标对象,第二个被合并的对象
  16659. */
  16660. extend: Object.assign || function (target, source, deep) {
  16661. for (key in source) {
  16662. if (deep && (this.isPlainObject(source[key]) || this.isArray(source[key]))) {
  16663. if (this.isPlainObject(source[key]) && !this.isPlainObject(target[key])) {
  16664. target[key] = {};
  16665. }
  16666. if (this.isArray(source[key]) && !this.isArray(target[key])) {
  16667. target[key] = [];
  16668. }
  16669. this.extend(target[key], source[key], deep);
  16670. } else if (source[key] !== undefined) {
  16671. target[key] = source[key];
  16672. }
  16673. }
  16674. return target;
  16675. },
  16676. /**
  16677. * 判断一个对象是否为空
  16678. * @param {string} string:要判断的参数
  16679. * @param {string} is_zero:是否要判断'0'
  16680. */
  16681. isEmpty: function isEmpty(string) {var is_zero = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
  16682. if (is_zero && string === '0') {
  16683. return true;
  16684. }
  16685. // 0 == '',false == '',[] == ''
  16686. if (string == '' || string == null || typeof string == 'undefined' || string == 'undefined') {
  16687. return true;
  16688. }
  16689. // 对象 和 数组
  16690. if (typeof string == 'object') {
  16691. return this.getLength(string) ? false : true;
  16692. }
  16693. return false;
  16694. },
  16695. /**
  16696. * 为客户端生成一个唯一的uuid
  16697. */
  16698. uuid: function uuid() {
  16699. var uuid,
  16700. random = function random() {
  16701. return ((1 + Math.random()) * 0x10000 | 0).toString(16).substring(1);
  16702. };
  16703. uuid = cache.get('uuid');
  16704. if (!uuid) {
  16705. uuid = encrypt.sha1(random() + random() + '-' + random() + '-' + random() + '-' + random() + '-' +
  16706. random() + random() + random());
  16707. cache.set('uuid', uuid);
  16708. }
  16709. return uuid;
  16710. },
  16711. /**
  16712. * 获取设备唯一标识
  16713. */
  16714. getClientId: function getClientId() {
  16715. //获取客户端ID
  16716. var clientid = cache.get('client_id');
  16717. if (clientid) return clientid;
  16718. //TODO::
  16719. },
  16720. /**
  16721. * 获取用户登录信息
  16722. * @param k 键值
  16723. * @param d 入没有返回的默认值
  16724. */
  16725. getUserInfo: function getUserInfo(k, d) {
  16726. if (d == 'undefined') {
  16727. d = 0;
  16728. }
  16729. var userInfo = cache.get('user_info');
  16730. if (this.isEmpty(userInfo)) {
  16731. return d;
  16732. } else {
  16733. if (typeof k == 'undefined') {
  16734. return userInfo;
  16735. } else {
  16736. if (typeof userInfo[k] == 'undefined') {
  16737. return d;
  16738. } else {
  16739. return userInfo[k];
  16740. }
  16741. }
  16742. }
  16743. },
  16744. /**
  16745. * 查找指定值的元素在数组中第一次出现的位置
  16746. * 查找指定键的值的元素在二维数组中第一次出现的位置
  16747. * @param arr 数组
  16748. * @param val 要查找的值
  16749. * @param key 二维数组元素的值对应的键
  16750. */
  16751. indexOf: function indexOf(arr, val, key) {
  16752. if (this.isEmpty(arr) || this.isEmpty(val)) return -1;
  16753. if (typeof key == 'undefined') {
  16754. for (var i = 0; i < arr.length; i++) {
  16755. if (arr[i] == val) {
  16756. return i;
  16757. }
  16758. }
  16759. } else {
  16760. for (var _i = 0; _i < arr.length; _i++) {
  16761. if (arr[_i][key] == val) {
  16762. return _i;
  16763. }
  16764. }
  16765. }
  16766. return -1;
  16767. },
  16768. /**
  16769. * (批量)删除数组中指定值的元素
  16770. * (批量)删除二维数组中指定键的值的元素
  16771. * @param {Object} arr (二维)数组
  16772. * @param {Object} vals 值(数组)
  16773. * @param {Object} key 值(数组)组对应的键
  16774. */
  16775. removeItemByVals: function removeItemByVals(arr, vals, key) {
  16776. var that = this;
  16777. if (this.isEmpty(arr) || this.isEmpty(vals)) return arr;
  16778. if (this.isArray(vals)) {
  16779. //!倒序删除
  16780. if (typeof key == 'undefined') {
  16781. for (var i = arr.length - 1; i >= 0; i--) {
  16782. var index = that.indexOf(vals, arr[i]);
  16783. if (index > -1) {
  16784. arr.splice(i, 1);
  16785. }
  16786. }
  16787. } else {
  16788. for (var _i2 = arr.length - 1; _i2 >= 0; _i2--) {
  16789. var _index = that.indexOf(vals, arr[_i2][key]);
  16790. if (_index > -1) {
  16791. arr.splice(_i2, 1);
  16792. }
  16793. }
  16794. }
  16795. } else {
  16796. var _index2 = this.indexOf(arr, vals, key);
  16797. if (_index2 > -1) {
  16798. arr.splice(_index2, 1);
  16799. }
  16800. }
  16801. return arr;
  16802. },
  16803. /**
  16804. * 批量删除数组中指定键的元素
  16805. * @param {Object} arr 数组
  16806. * @param {Object} indexs 序号(数组)
  16807. */
  16808. removeItemByIndex: function removeItemByIndex(arr, indexs) {
  16809. var that = this;
  16810. if (this.isEmpty(arr) || this.isEmpty(indexs)) return arr;
  16811. if (this.isArray(indexs)) {
  16812. //!倒序删除
  16813. for (var i = arr.length - 1; i >= 0; i--) {
  16814. var index = that.indexOf(indexs, i);
  16815. if (index > -1) {
  16816. arr.splice(i, 1);
  16817. }
  16818. }
  16819. } else {
  16820. arr.splice(indexs, 1);
  16821. }
  16822. return arr;
  16823. },
  16824. /**
  16825. * 返回数组中某个单一列的值
  16826. */
  16827. array_column: function array_column(arr, key) {
  16828. if (this.isEmpty(arr)) return arr;
  16829. if (this.isEmpty(key)) return [];
  16830. var vals = [];
  16831. arr.forEach(function (item) {
  16832. vals.push(item[key]);
  16833. });
  16834. return vals;
  16835. },
  16836. /**
  16837. * 对象按照key排序
  16838. * @param {Object} arr
  16839. */
  16840. array_ksort: function array_ksort(arr) {
  16841. var sorted = {},
  16842. keys = Object.keys(arr);
  16843. keys.sort();
  16844. keys.forEach(function (key) {
  16845. sorted[key] = arr[key];
  16846. });
  16847. return sorted;
  16848. },
  16849. /**
  16850. * 数组按元素(指定键值)排序
  16851. * @param {Object} arr
  16852. * @param {Object} key
  16853. * @param {Object} sort asc desc
  16854. */
  16855. array_vsort: function array_vsort(arr, key, sort) {
  16856. if (this.isEmpty(arr)) return arr;
  16857. key = key || '';
  16858. sort = sort || 'asc';
  16859. if (key == '') {
  16860. return arr.sort();
  16861. } else {
  16862. if (sort == 'asc') {
  16863. return arr.sort(function (a, b) {
  16864. return a[key] - b[key];
  16865. });
  16866. } else {
  16867. return arr.sort(function (a, b) {
  16868. return b[key] - a[key];
  16869. });
  16870. }
  16871. }
  16872. },
  16873. /**
  16874. * 日期时间格式化
  16875. * @param {Object} date 日期对象
  16876. * @param {Object} type 增加加的时间间隔:y年 q季度(3个月) m月 d天
  16877. * @param {Object} number 增加的时间间隔的个数
  16878. * @param {Object} format 格式化样式
  16879. */
  16880. formatDate: function formatDate(_ref)
  16881. {var _ref$date = _ref.date,date = _ref$date === void 0 ? '' : _ref$date,_ref$type = _ref.type,type = _ref$type === void 0 ? 'y' : _ref$type,_ref$number = _ref.number,number = _ref$number === void 0 ? 0 : _ref$number,_ref$format = _ref.format,format = _ref$format === void 0 ? 'Y-m-d H:i:s' : _ref$format;
  16882. var that = this;
  16883. if (that.isEmpty(date, true)) {
  16884. date = new Date();
  16885. } else {
  16886. if (typeof date == 'number') {
  16887. date = new Date(parseInt(date) * 1000);
  16888. } else if (typeof date == 'string') {
  16889. date = new Date(date);
  16890. }
  16891. }
  16892. date = that.addDate(type, number, date);
  16893. var zero = function zero(value) {
  16894. if (value < 10) {
  16895. return '0' + value;
  16896. }
  16897. return value;
  16898. },
  16899. year = date.getFullYear(),
  16900. month = zero(date.getMonth() + 1),
  16901. day = zero(date.getDate()),
  16902. hour = zero(date.getHours()),
  16903. minite = zero(date.getMinutes()),
  16904. second = zero(date.getSeconds());
  16905. return format.replace(/Y|m|d|H|i|s/ig, function (matches) {
  16906. return {
  16907. Y: year,
  16908. m: month,
  16909. d: day,
  16910. H: hour,
  16911. i: minite,
  16912. s: second }[
  16913. matches];
  16914. });
  16915. },
  16916. /**
  16917. * 日期时间计算
  16918. * addDate(type,number,date)
  16919. * @param {Object} type 增加的时间间隔:y年 q季度(3个月) m月 d天
  16920. * @param {Object} number 增加的时间间隔的个数
  16921. * @param {Object} date 开始日期对象
  16922. * @return {type} 新的日期对象
  16923. * var now = new Date();
  16924. * var newDate = addDate( "d", 5, now);
  16925. */
  16926. addDate: function addDate(type, number, date) {
  16927. switch (type) {
  16928. case "y":{
  16929. date.setFullYear(date.getFullYear() + number);
  16930. return date;
  16931. break;
  16932. }
  16933. case "q":{
  16934. date.setMonth(date.getMonth() + number * 3);
  16935. return date;
  16936. break;
  16937. }
  16938. case "m":{
  16939. date.setMonth(date.getMonth() + number);
  16940. return date;
  16941. break;
  16942. }
  16943. case "w":{
  16944. date.setDate(date.getDate() + number * 7);
  16945. return date;
  16946. break;
  16947. }
  16948. case "d":{
  16949. date.setDate(date.getDate() + number);
  16950. return date;
  16951. break;
  16952. }
  16953. case "h":{
  16954. date.setHours(date.getHours() + number);
  16955. return date;
  16956. break;
  16957. }
  16958. case "m":{
  16959. date.setMinutes(date.getMinutes() + number);
  16960. return date;
  16961. break;
  16962. }
  16963. case "s":{
  16964. date.setSeconds(date.getSeconds() + number);
  16965. return date;
  16966. break;
  16967. }
  16968. default:{
  16969. date.setDate(date.getDate() + number);
  16970. return date;
  16971. break;
  16972. }}
  16973. },
  16974. /**
  16975. * 二维码操作
  16976. * @param {Object} canvas 图片路径
  16977. * @param {Object} action 操作类型
  16978. * qrcode:绘制二维码(根据内容data)
  16979. * scan:扫描二维码
  16980. * @param {Object} canvas 绘制二维码canvasID
  16981. * @param {Object} data 绘制二维码内容
  16982. * @param {Object} camera 扫描二维码是否只使用相机
  16983. * @param {Object} success 成功回调
  16984. * @param {Object} error 失败回调
  16985. */
  16986. qrCodeOperat: function qrCodeOperat(_ref2)
  16987. {var _ref2$action = _ref2.action,action = _ref2$action === void 0 ? 'qrcode' : _ref2$action,canvas = _ref2.canvas,data = _ref2.data,_ref2$camera = _ref2.camera,camera = _ref2$camera === void 0 ? false : _ref2$camera,success = _ref2.success,error = _ref2.error;
  16988. var that = this;
  16989. switch (action) {
  16990. case 'qrcode':
  16991. qrCode({
  16992. width: 180,
  16993. height: 180,
  16994. x: 20,
  16995. y: 20,
  16996. canvasId: canvas,
  16997. text: data });
  16998. break;
  16999. case 'scan':
  17000. uni.scanCode({
  17001. onlyFromCamera: camera,
  17002. success: function (_success) {function success(_x) {return _success.apply(this, arguments);}success.toString = function () {return _success.toString();};return success;}(function (res) {
  17003. if (res.errMsg == 'scanCode:ok') {
  17004. // 二维码内容 res.result
  17005. success && success(res.result);
  17006. } else {
  17007. error && error(res);
  17008. }
  17009. }),
  17010. fail: function fail(res) {
  17011. if (res.errMsg != 'scanCode:fail cancel') {
  17012. error && error(res);
  17013. }
  17014. } });
  17015. break;
  17016. default:
  17017. that.modal('请明确二维码操作类型');}
  17018. },
  17019. /**
  17020. * 图片操作
  17021. * @param {Object} path 图片路径
  17022. * @param {Object} action 操作类型
  17023. * choose:选择图片
  17024. * upload:图片上传
  17025. * info:图片信息
  17026. * read:读取图片(base64)
  17027. * write:保存图片(base64)
  17028. * down:下载图片
  17029. * save:保存图片(临时路径)
  17030. * preview:图片预览
  17031. * @param {Object} data 保存图片:图片base64内容(不带 data:image/png;base64,),
  17032. * 图片预览:图片数组
  17033. * @param {Object} fileName 保存图片的名称
  17034. * @param {Object} menu 图片预览:是否显示长按菜单
  17035. * @param {Object} count 图片选择:默认图片选择数量
  17036. * @param {Object} success 成功回调
  17037. * @param {Object} error 失败回调
  17038. */
  17039. imageOperat: function imageOperat(_ref3)
  17040. {var _ref3$action = _ref3.action,action = _ref3$action === void 0 ? 'choose' : _ref3$action,path = _ref3.path,_ref3$fileName = _ref3.fileName,fileName = _ref3$fileName === void 0 ? 'write' : _ref3$fileName,data = _ref3.data,_ref3$count = _ref3.count,count = _ref3$count === void 0 ? 1 : _ref3$count,_ref3$menu = _ref3.menu,menu = _ref3$menu === void 0 ? true : _ref3$menu,success = _ref3.success,error = _ref3.error;
  17041. var that = this;
  17042. if (action == 'choose') {
  17043. uni.chooseImage({
  17044. count: count,
  17045. sizeType: ['original', 'compressed'], //可以指定是原图还是压缩图,默认二者都有
  17046. sourceType: ['camera', 'album'], //相册选择、使用相机
  17047. success: function (_success2) {function success(_x2) {return _success2.apply(this, arguments);}success.toString = function () {return _success2.toString();};return success;}(function (e) {
  17048. e.tempFilePaths.forEach(function (item) {
  17049. success && success(item);
  17050. });
  17051. }),
  17052. fail: function fail(e) {
  17053. error && error(e);
  17054. } });
  17055. } else if (action == 'upload') {
  17056. uni.uploadFile({
  17057. url: that.config.baseUrl + '/api/Publics/uploadLocality',
  17058. filePath: path,
  17059. name: 'upfile',
  17060. /* header: {
  17061. 'content-type': 'multipart/form-data'
  17062. }, */
  17063. formData: {
  17064. // uid: that.getUserInfo('id', 0)
  17065. file: path },
  17066. success: function (_success3) {function success(_x3) {return _success3.apply(this, arguments);}success.toString = function () {return _success3.toString();};return success;}(function (e) {
  17067. console.log(e);
  17068. var res = JSON.parse(e.data);
  17069. if (res.status == 1) {
  17070. success && success(res);
  17071. } else {
  17072. error && error({
  17073. errMsg: res.info });
  17074. }
  17075. }),
  17076. fail: function fail(e) {
  17077. error && error(e);
  17078. } });
  17079. } else if (action == 'info') {
  17080. uni.getImageInfo({
  17081. src: path,
  17082. success: function (_success4) {function success(_x4) {return _success4.apply(this, arguments);}success.toString = function () {return _success4.toString();};return success;}(function (e) {
  17083. if (e.errMsg == 'getImageInfo:ok') {
  17084. //e.height e.width e.type
  17085. success && success(e);
  17086. } else {
  17087. error && error(e);
  17088. }
  17089. }),
  17090. fail: function fail(e) {
  17091. error && error(e);
  17092. } });
  17093. } else if (action == 'read') {
  17094. uni.getFileSystemManager().readFile({
  17095. filePath: path,
  17096. encoding: 'base64',
  17097. position: 0,
  17098. success: function (_success5) {function success(_x5) {return _success5.apply(this, arguments);}success.toString = function () {return _success5.toString();};return success;}(function (e) {
  17099. if (e.errMsg == 'readFile:ok') {
  17100. //let img = 'data:image/png;base64,' + e.data.replace(/[\r\n]/g, "");
  17101. success && success(e);
  17102. } else {
  17103. error && error(e);
  17104. }
  17105. }),
  17106. fail: function fail(e_t) {
  17107. error && error(e);
  17108. } });
  17109. } else if (action == 'write') {
  17110. var filePath = "".concat(uni.env.USER_DATA_PATH, "/").concat(fileName, ".png");
  17111. uni.getFileSystemManager().writeFile({
  17112. filePath: filePath,
  17113. data: data,
  17114. encoding: 'base64',
  17115. success: function (_success6) {function success(_x6) {return _success6.apply(this, arguments);}success.toString = function () {return _success6.toString();};return success;}(function (e) {
  17116. if (e.errMsg == 'writeFile:ok') {
  17117. success && success(filePath);
  17118. } else {
  17119. error && error(e);
  17120. }
  17121. }),
  17122. fail: function fail(e) {
  17123. console.log(e);
  17124. error && error(e);
  17125. } });
  17126. } else if (action == 'down') {
  17127. uni.downloadFile({
  17128. url: path,
  17129. success: function (_success7) {function success(_x7) {return _success7.apply(this, arguments);}success.toString = function () {return _success7.toString();};return success;}(function (e) {
  17130. if (e.errMsg === 'downloadFile:ok') {
  17131. //e.tempFilePath
  17132. success && success(e);
  17133. } else {
  17134. error && error(e);
  17135. }
  17136. }),
  17137. fail: function fail(e) {
  17138. error && error(e);
  17139. } });
  17140. } else if (action == 'save') {
  17141. var _filePath = "".concat(uni.env.USER_DATA_PATH, "/").concat(fileName, ".png");
  17142. uni.getFileSystemManager().saveFile({
  17143. tempFilePath: path,
  17144. filePath: _filePath,
  17145. success: function (_success8) {function success(_x8) {return _success8.apply(this, arguments);}success.toString = function () {return _success8.toString();};return success;}(function (e) {
  17146. if (e.errMsg == 'saveFile:ok') {
  17147. success && success(_filePath);
  17148. } else {
  17149. error && error(e);
  17150. }
  17151. }),
  17152. fail: function fail(e) {
  17153. console.log(e);
  17154. error && error(e);
  17155. } });
  17156. } else if (action == 'preview') {
  17157. uni.previewImage({
  17158. currnet: path,
  17159. urls: data,
  17160. showmenu: menu });
  17161. }
  17162. },
  17163. /**
  17164. * 视频操作
  17165. */
  17166. viedoOperat: function viedoOperat(_ref4)
  17167. {var _ref4$action = _ref4.action,action = _ref4$action === void 0 ? 'choose' : _ref4$action,_ref4$count = _ref4.count,count = _ref4$count === void 0 ? 1 : _ref4$count,_ref4$mediaType = _ref4.mediaType,mediaType = _ref4$mediaType === void 0 ? ['video'] : _ref4$mediaType,_ref4$sourceType = _ref4.sourceType,sourceType = _ref4$sourceType === void 0 ? ['album', 'camera'] : _ref4$sourceType,_ref4$maxDuration = _ref4.maxDuration,maxDuration = _ref4$maxDuration === void 0 ? 58 : _ref4$maxDuration,_ref4$camera = _ref4.camera,camera = _ref4$camera === void 0 ? 'back' : _ref4$camera,filePath = _ref4.filePath,path = _ref4.path,_ref4$size = _ref4.size,size = _ref4$size === void 0 ? 20 : _ref4$size,success = _ref4.success,error = _ref4.error;
  17168. var that = this;
  17169. if (action == 'choose') {
  17170. uni.chooseMedia({
  17171. count: count,
  17172. mediaType: mediaType,
  17173. sourceType: sourceType,
  17174. maxDuration: maxDuration,
  17175. camera: camera,
  17176. success: function (_success9) {function success(_x9) {return _success9.apply(this, arguments);}success.toString = function () {return _success9.toString();};return success;}(function (e) {
  17177. console.log(e);
  17178. if (e.errMsg == 'chooseMedia:ok') {
  17179. e.tempFiles.forEach(function (item) {
  17180. var sel_size = parseFloat(item.size / 1024 / 1024).toFixed(1);
  17181. if (sel_size > size) {
  17182. var beyongSize = sel_size - size; //获取视频超出限制大小的数量
  17183. that.info("上传的视频大小超限,超出" + beyongSize + "MB,请重新上传!");
  17184. error && error();
  17185. } else {
  17186. success && success(item);
  17187. }
  17188. });
  17189. } else {
  17190. error && error(e);
  17191. }
  17192. }),
  17193. fail: function fail(e) {
  17194. console.log(e);
  17195. error && error(e);
  17196. } });
  17197. }
  17198. //压缩视频
  17199. if (action == 'compress') {
  17200. uni.compressVideo({
  17201. quality: 'high',
  17202. src: filePath,
  17203. success: function (_success10) {function success(_x10) {return _success10.apply(this, arguments);}success.toString = function () {return _success10.toString();};return success;}(function (e) {
  17204. console.log(e);
  17205. if (e.errMsg == 'compressVideo:ok') {
  17206. // e.tempFiles.forEach((item) => {
  17207. success && success(e);
  17208. // });
  17209. } else {
  17210. error && error(e);
  17211. }
  17212. }),
  17213. fail: function fail(e) {
  17214. console.log(e);
  17215. error && error(e);
  17216. } });
  17217. }
  17218. },
  17219. /**
  17220. * 位置服务
  17221. * @param {Object} action 操作类型
  17222. * getLocation: 获取当前的地理位置、速度
  17223. * openLocation: 使用微信内置地图查看位置
  17224. * chooseLocation: 打开地图选择位置
  17225. * choosePoi: 打开 POI 列表选择位置
  17226. * getLatLng: 获取指定地址经纬度
  17227. * getAreaCode: 根据经纬度获取区划信息
  17228. * getDistance: 计算2个经纬度之间的距离
  17229. * @param {Object} type 返回坐标类型: wgs84返回gps坐标,gcj02 返回可用于 uni.openLocation 的坐标
  17230. * @param {Object} address 查询地址: '北京市海淀区彩和坊路海淀西大街74号'
  17231. * @param {Object} from 计算距离起点坐标,默认当前位置
  17232. * {latitude: 0, longitude: 0}
  17233. * @param {Object} to 计算距离终点坐标
  17234. * [{latitude: 0, longitude: 0}]
  17235. * @param {Object} success 成功回调
  17236. * @param {Object} error 失败回调
  17237. */
  17238. locationOperat: function locationOperat(_ref5)
  17239. {var _ref5$action = _ref5.action,action = _ref5$action === void 0 ? 'getLocation' : _ref5$action,_ref5$type = _ref5.type,type = _ref5$type === void 0 ? 'gcj02' : _ref5$type,address = _ref5.address,_ref5$from = _ref5.from,from = _ref5$from === void 0 ? '' : _ref5$from,to = _ref5.to,success = _ref5.success,error = _ref5.error;
  17240. var that = this;
  17241. if (action == 'getLocation') {
  17242. uni.getLocation({
  17243. type: type,
  17244. success: function (_success11) {function success(_x11) {return _success11.apply(this, arguments);}success.toString = function () {return _success11.toString();};return success;}(function (e) {
  17245. if (e.errMsg == 'getLocation:ok') {
  17246. success && success(e);
  17247. } else {
  17248. error && error(e);
  17249. }
  17250. }),
  17251. fail: function fail(e) {
  17252. error && error(e);
  17253. } });
  17254. } else if (action == 'openLocation') {var
  17255. latitude =
  17256. from.latitude,longitude = from.longitude;
  17257. uni.openLocation({
  17258. latitude: latitude,
  17259. longitude: longitude,
  17260. success: function (_success12) {function success(_x12) {return _success12.apply(this, arguments);}success.toString = function () {return _success12.toString();};return success;}(function (e) {
  17261. if (e.errMsg == 'openLocation:ok') {
  17262. success && success(e);
  17263. } else {
  17264. error && error(e);
  17265. }
  17266. }),
  17267. fail: function fail(e) {
  17268. error && error(e);
  17269. } });
  17270. } else if (action == 'chooseLocation') {var _from$latitude =
  17271. from.latitude,latitude = _from$latitude === void 0 ? '' : _from$latitude,_from$longitude = from.longitude,longitude = _from$longitude === void 0 ? '' : _from$longitude;
  17272. uni.chooseLocation({
  17273. latitude: latitude,
  17274. longitude: longitude,
  17275. success: function (_success13) {function success(_x13) {return _success13.apply(this, arguments);}success.toString = function () {return _success13.toString();};return success;}(function (e) {
  17276. if (e.errMsg == 'chooseLocation:ok') {
  17277. success && success(e);
  17278. } else {
  17279. error && error(e);
  17280. }
  17281. }),
  17282. fail: function fail(e) {
  17283. error && error(e);
  17284. } });
  17285. } else if (action == 'choosePoi') {var _from$latitude2 =
  17286. from.latitude,latitude = _from$latitude2 === void 0 ? '' : _from$latitude2,_from$longitude2 = from.longitude,longitude = _from$longitude2 === void 0 ? '' : _from$longitude2;
  17287. uni.choosePoi({
  17288. success: function (_success14) {function success(_x14) {return _success14.apply(this, arguments);}success.toString = function () {return _success14.toString();};return success;}(function (e) {
  17289. if (e.errMsg == 'choosePoi:ok') {
  17290. success && success(e);
  17291. } else {
  17292. error && error(e);
  17293. }
  17294. }),
  17295. fail: function fail(e) {
  17296. error && error(e);
  17297. } });
  17298. } else if (action == 'getLatLng') {
  17299. new qqMap({
  17300. key: that.config.qqMapKey }).
  17301. geocoder({
  17302. address: address,
  17303. success: function (_success15) {function success(_x15) {return _success15.apply(this, arguments);}success.toString = function () {return _success15.toString();};return success;}(function (e) {
  17304. if (e.status == 0 && e.message == 'query ok') {
  17305. success && success(e.result);
  17306. } else {
  17307. error && error(e);
  17308. }
  17309. }),
  17310. fail: function fail(e) {
  17311. error && error(e);
  17312. } });
  17313. } else if (action == 'getAreaCode') {
  17314. new qqMap({
  17315. key: that.config.qqMapKey }).
  17316. reverseGeocoder({
  17317. success: function (_success16) {function success(_x16) {return _success16.apply(this, arguments);}success.toString = function () {return _success16.toString();};return success;}(function (e) {
  17318. if (e.status == 0 && e.message == 'query ok') {
  17319. success && success(e.result);
  17320. } else {
  17321. error && error(e);
  17322. }
  17323. }),
  17324. fail: function fail(e) {
  17325. error && error(e);
  17326. } });
  17327. } else if (action == 'getDistanceApi') {
  17328. new qqMap({
  17329. key: that.config.qqMapKey }).
  17330. calculateDistance({
  17331. from: from, //若起点有数据则采用起点坐标,若为空默认当前地址
  17332. to: to,
  17333. success: function (_success17) {function success(_x17) {return _success17.apply(this, arguments);}success.toString = function () {return _success17.toString();};return success;}(function (e) {
  17334. if (e.status == 0 && e.message == 'query ok') {
  17335. success && success(e.result.elements);
  17336. } else {
  17337. error && error(e);
  17338. }
  17339. }),
  17340. fail: function fail(e) {
  17341. error && error(e);
  17342. } });
  17343. } else if (action == 'getDistanceMath') {// 返回KM
  17344. var _from$latitude3 =
  17345. from.latitude,lat1 = _from$latitude3 === void 0 ? '' : _from$latitude3,_from$longitude3 = from.longitude,lng1 = _from$longitude3 === void 0 ? '' : _from$longitude3;
  17346. if (lat1 == '' && lng1 == '') {
  17347. return 0;
  17348. }var _to$latitude =
  17349. to.latitude,lat2 = _to$latitude === void 0 ? '' : _to$latitude,_to$longitude = to.longitude,lng2 = _to$longitude === void 0 ? '' : _to$longitude;
  17350. var toRad = function toRad(d) {
  17351. return d * Math.PI / 180;
  17352. };
  17353. var dis = 0;
  17354. var deltaLng = toRad(lng1) - toRad(lng2);
  17355. var radLat1 = toRad(lat1);
  17356. var radLat2 = toRad(lat2);
  17357. var deltaLat = radLat1 - radLat2;
  17358. var dis = 2 * Math.asin(Math.sqrt(Math.pow(Math.sin(deltaLat / 2), 2) + Math.cos(radLat1) * Math.cos(
  17359. radLat2) * Math.pow(Math.sin(deltaLng / 2), 2)));
  17360. return that.math.toFixed(dis * 6378.137, 2); // km
  17361. }
  17362. },
  17363. /**
  17364. * 过滤emoji
  17365. * @param {Object} str
  17366. */
  17367. filterEmoji: function filterEmoji(str) {
  17368. return str.replace(/\uD83C[\uDF00-\uDFFF]|\uD83D[\uDC00-\uDE4F]/g, '');
  17369. },
  17370. /**
  17371. * 打印对象
  17372. * @param obj
  17373. */
  17374. jslog: function jslog(obj) {
  17375. this.config.debug && console.log(JSON.stringify(obj));
  17376. },
  17377. /**
  17378. * form表单数据校验
  17379. * @param value
  17380. * @param rule
  17381. */
  17382. formCheck: function formCheck(value, rule, error) {
  17383. var that = this;
  17384. var regs = {
  17385. required: [
  17386. /[\s\S]+/,
  17387. '必填项不能为空'],
  17388. english: [
  17389. /^[a-zA-Z]+$/,
  17390. '必填项只能由大小写字母组成'],
  17391. mobile: [
  17392. /^1[3|4|5|7|8|9][0-9]\d{4,8}$/,
  17393. '请输入正确的手机号'],
  17394. phone: [
  17395. /^(\d{3,4}-?)?\d{7,9}$/g,
  17396. '请输入正确的电话号码'],
  17397. email: [
  17398. /^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+$/,
  17399. '请输入正确的电子邮箱'],
  17400. url: [
  17401. /(^#)|(^http(s*):\/\/[^\s]+\.[^\s]+)/,
  17402. '请输入正确的链接'],
  17403. number: [
  17404. /^\d+$/,
  17405. '必填项只能填数字'],
  17406. code4: [
  17407. /^\d{4}$/,
  17408. '请输入正确的手机验证码'],
  17409. code6: [
  17410. /^\d{6}$/,
  17411. '请输入正确的手机验证码'],
  17412. captcha4: [
  17413. /^[0-9a-zA-Z]{4}$/,
  17414. '请输入正确的图片验证码'],
  17415. date: [
  17416. /^(\d{4})[-\/](\d{1}|0\d{1}|1[0-2])([-\/](\d{1}|0\d{1}|[1-2][0-9]|3[0-1]))*$/,
  17417. '请输入正确的日期格式'],
  17418. identity: [
  17419. /(^\d{15}$)|(^\d{17}(x|X|\d)$)/,
  17420. '请输入正确的身份证号'],
  17421. username: [
  17422. /^[a-zA-Z0-9\u4e00-\u9fa5-_\.]{2,12}$/,
  17423. '请输入正确的帐号(只能包含中文、英文、数字、下划线等字符)'],
  17424. password: [
  17425. /^\w{6,16}$/,
  17426. '请输入正确的密码(6-16位数字,字母或符号)'],
  17427. passwords: [
  17428. /^[a-zA-Z]+\w{5,12}$/,
  17429. '请输入正确的密码(以字母开头,长度在6-12之间)'],
  17430. pwd: [
  17431. /^(?![0-9]+$)(?![a-zA-Z]+$)[0-9a-zA-Z]{6,12}$/,
  17432. '请输入正确的密码(6-12位数字+字母组合)'],
  17433. invite: [
  17434. /^[0-9a-zA-Z]{10}$/,
  17435. '邀请码为8位数字或字母组合'],
  17436. truename: [
  17437. /^[\u4e00-\u9fa5]{2,4}$/,
  17438. '请输入正确的真实姓名(2-4个汉字)'],
  17439. money: [
  17440. /((^[1-9]\d*)|^0)(\.\d{0,2}){0,1}$/,
  17441. '请输入正确的金额'] };
  17442. var reg = regs[rule];
  17443. if (that.isEmpty(reg)) {
  17444. return true;
  17445. } else {
  17446. if (value == '' || !RegExp(reg[0]).test(value)) {
  17447. that.info(error || reg[1]);
  17448. return false;
  17449. }
  17450. return true;
  17451. }
  17452. },
  17453. /****************************************************/
  17454. /**
  17455. *获取系统信息
  17456. * @param label 获取系统的某一项信息
  17457. * screenWidth 屏幕宽度,
  17458. * screenHeight 屏幕高度,单位px
  17459. * windowWidth 单位px可使用窗口宽度,单位px
  17460. * windowHeight 可使用窗口高度,单位px
  17461. * statusBarHeight 状态栏的高度,单位px
  17462. * menuButton:右上角胶囊按钮的布局位置信息,坐标信息以屏幕左上角为原点
  17463. * width 宽度,单位:px
  17464. * height 高度,单位:px
  17465. * top 上边界坐标,单位:px
  17466. * right 右边界坐标,单位:px
  17467. * bottom 下边界坐标,单位:px
  17468. * left 左边界坐标,单位:px
  17469. */
  17470. getSystemInfo: function getSystemInfo(success) {
  17471. // 获取系统状态栏信息
  17472. uni.getSystemInfo({
  17473. success: function (_success18) {function success(_x18) {return _success18.apply(this, arguments);}success.toString = function () {return _success18.toString();};return success;}(function (res) {
  17474. if (res.errMsg == 'getSystemInfo:ok') {
  17475. res.menuButton = uni.getMenuButtonBoundingClientRect();
  17476. success && success(res);
  17477. } else {
  17478. that.modal('获取系统信息失败:' + res.errMsg);
  17479. }
  17480. }),
  17481. fail: function fail(res) {
  17482. that.modal('获取系统信息失败:' + res.errMsg);
  17483. } });
  17484. },
  17485. /**
  17486. * 检查登录
  17487. */
  17488. getSessionKey: function getSessionKey(success) {
  17489. var that = this;
  17490. var data = {};
  17491. data.openid = cache.get('open_id');
  17492. data.session_key = cache.get('session_key');
  17493. // 都存在
  17494. if (!that.isEmpty(data.session_key) && !that.isEmpty(data.openid)) {
  17495. uni.checkSession({
  17496. success: function (_success19) {function success() {return _success19.apply(this, arguments);}success.toString = function () {return _success19.toString();};return success;}(function () {
  17497. success && success(data);
  17498. }),
  17499. fail: function fail() {
  17500. cache.remove('open_id');
  17501. cache.remove('session_key');
  17502. that.getOpenId(success);
  17503. } });
  17504. } else {
  17505. cache.remove('open_id');
  17506. cache.remove('session_key');
  17507. that.getOpenId(success);
  17508. }
  17509. },
  17510. /**
  17511. * 获取openid
  17512. * @param success
  17513. */
  17514. getOpenId: function getOpenId(success, error) {
  17515. var that = this;
  17516. that.loading();
  17517. uni.login({
  17518. success: function (_success20) {function success(_x19) {return _success20.apply(this, arguments);}success.toString = function () {return _success20.toString();};return success;}(function (e) {
  17519. that.req({
  17520. url: 'public/getOpenid',
  17521. data: {
  17522. code: e.code },
  17523. login: false,
  17524. load: false },
  17525. function (res) {
  17526. if (res.status == 1) {
  17527. cache.set('open_id', res.data.openid);
  17528. cache.set('session_key', res.data.session_key);
  17529. success && success(res.data);
  17530. } else {
  17531. that.modal('微信登录失败:' + res.info, function () {
  17532. error && error();
  17533. });
  17534. return false;
  17535. }
  17536. }, function () {}, function () {
  17537. that.closeLoading();
  17538. });
  17539. }),
  17540. fail: function fail(e) {
  17541. that.closeLoading();
  17542. that.modal('微信登录失败:' + e.errMsg, function () {
  17543. error && error();
  17544. });
  17545. } });
  17546. },
  17547. /**
  17548. * 登录
  17549. * @param {Object} data
  17550. * @param {Object} success
  17551. * @param {Object} error
  17552. */
  17553. doLogin: function doLogin(data, success, error) {
  17554. var that = this;
  17555. data.loginsubmit = 'yes';
  17556. this.req({
  17557. url: 'account/login',
  17558. data: data,
  17559. login: false },
  17560. function (res) {
  17561. if (res.status == 1) {
  17562. cache.set('user_info', res.data);
  17563. success && success(res.data);
  17564. } else {
  17565. error && error(res);
  17566. }
  17567. });
  17568. },
  17569. /**
  17570. * 注册
  17571. * @param {Object} data
  17572. * @param {Object} success
  17573. * @param {Object} error
  17574. */
  17575. doRegist: function doRegist(data, success, error) {
  17576. var that = this;
  17577. data.registsubmit = 'yes';
  17578. this.req({
  17579. url: 'account/register',
  17580. data: data,
  17581. login: false },
  17582. function (res) {
  17583. if (res.status == 1) {
  17584. cache.set('user_info', res.data);
  17585. success && success(res.data);
  17586. } else {
  17587. error && error(res);
  17588. }
  17589. });
  17590. },
  17591. /**
  17592. * 查询是否注册
  17593. * @param {Object} success
  17594. * @param {Object} error
  17595. */
  17596. checkRegist: function checkRegist(success, error) {
  17597. var that = this;
  17598. that.getSessionKey(function (data) {
  17599. that.req({
  17600. url: 'account/checkRegist',
  17601. data: {
  17602. open_id: data.openid,
  17603. registsubmit: 'yes' },
  17604. login: false,
  17605. load: false },
  17606. function (res) {
  17607. if (res.status == 1) {
  17608. success && success();
  17609. } else {
  17610. error && error();
  17611. }
  17612. });
  17613. });
  17614. },
  17615. /**
  17616. * 获取会员信息
  17617. * @param {Object} success
  17618. * @param {Object} error
  17619. */
  17620. getMemberInfo: function getMemberInfo(success, error) {
  17621. var that = this;
  17622. this.req({
  17623. url: 'center/getMemberInfo',
  17624. load: false },
  17625. function (res) {
  17626. if (res.status == 1) {
  17627. cache.set('user_info', res.data);
  17628. success && success(res.data);
  17629. } else {
  17630. error && error(res);
  17631. }
  17632. });
  17633. },
  17634. /**
  17635. * 获取用户微信资料
  17636. * @param success
  17637. */
  17638. getUserProfile: function getUserProfile(success, error) {
  17639. var that = this;
  17640. that.loading('获取微信信息中...');
  17641. uni.getUserProfile({
  17642. lang: 'zh_CN',
  17643. desc: '用于完善会员资料',
  17644. success: function (_success21) {function success(_x20) {return _success21.apply(this, arguments);}success.toString = function () {return _success21.toString();};return success;}(function (res) {
  17645. if (res.errMsg == 'getUserProfile:ok') {
  17646. // 过滤掉emoji
  17647. res.userInfo.nickName = that.filterEmoji(res.userInfo.nickName);
  17648. success(res.userInfo);
  17649. } else {
  17650. that.modal('获取微信信息失败:' + res.errMsg, function () {
  17651. error && error(res);
  17652. });
  17653. }
  17654. }),
  17655. fail: function fail(res) {
  17656. that.modal('获取微信信息失败:' + res.errMsg, function () {
  17657. console.log(res);
  17658. error && error(res);
  17659. });
  17660. },
  17661. complete: function complete() {
  17662. that.closeLoading();
  17663. } });
  17664. },
  17665. /**
  17666. * 获取配置信息
  17667. * @param success
  17668. */
  17669. getConfigInfo: function getConfigInfo(_ref6)
  17670. {var _ref6$source = _ref6.source,source = _ref6$source === void 0 ? 'system' : _ref6$source,_ref6$label = _ref6.label,label = _ref6$label === void 0 ? '' : _ref6$label,success = _ref6.success;
  17671. this.req({
  17672. url: 'public/configInfo',
  17673. data: {
  17674. source: source,
  17675. label: label },
  17676. login: false,
  17677. load: false },
  17678. function (res) {
  17679. success(res.data);
  17680. });
  17681. },
  17682. /**
  17683. * 获取微信手机号
  17684. * @param e
  17685. * @param success
  17686. */
  17687. getMobile: function getMobile(e, success) {
  17688. var that = this;
  17689. that.getSessionKey(function (data) {
  17690. if (e.detail.errMsg == 'getPhoneNumber:ok') {
  17691. that.req({
  17692. url: 'public/getMobile',
  17693. data: {
  17694. encryptedData: e.detail.encryptedData,
  17695. iv: e.detail.iv,
  17696. sessionKey: data.session_key },
  17697. login: false },
  17698. function (res) {
  17699. if (res.status == 1) {
  17700. success(res.data);
  17701. } else {
  17702. that.modal('获取手机号失败' + res.info);
  17703. return false;
  17704. }
  17705. });
  17706. } else {
  17707. that.modal('获取手机号失败' + e.detail.errMsg);
  17708. }
  17709. });
  17710. },
  17711. /**
  17712. * 拨打电话
  17713. * @param mobile
  17714. */
  17715. makeCall: function makeCall(mobile) {
  17716. this.modal('确定拨打' + mobile, function () {
  17717. uni.makePhoneCall({
  17718. phoneNumber: mobile });
  17719. }, true);
  17720. },
  17721. /**
  17722. * 修改页面标题
  17723. * @param title
  17724. */
  17725. changeNavBarTitle: function changeNavBarTitle(title) {
  17726. uni.setNavigationBarTitle({
  17727. title: title });
  17728. },
  17729. /**
  17730. * 检查版本更新
  17731. */
  17732. checkUpdate: function checkUpdate() {
  17733. if (uni.canIUse('getUpdateManager')) {
  17734. var updateManager = uni.getUpdateManager();
  17735. updateManager.onCheckForUpdate(function (res) {
  17736. if (res.hasUpdate) {
  17737. updateManager.onUpdateReady(function () {
  17738. uni.showModal({
  17739. title: '更新提示',
  17740. content: '新版本已经准备好,是否重启应用?',
  17741. success: function success(res) {
  17742. if (res.confirm) {
  17743. updateManager.applyUpdate();
  17744. }
  17745. } });
  17746. });
  17747. updateManager.onUpdateFailed(function () {
  17748. uni.showModal({
  17749. title: '已经有新版本了~',
  17750. content: '新版本已经上线啦~,请您删除当前小程序,重新搜索打开~' });
  17751. });
  17752. }
  17753. });
  17754. } else {
  17755. uni.showModal({
  17756. title: '提示',
  17757. content: '当前微信版本过低,无法使用该功能,请升级到最新微信版本后重试。' });
  17758. }
  17759. },
  17760. /**
  17761. * html转义
  17762. * @param {object} str    //需要转义内容
  17763. * @param {object} success  
  17764. */
  17765. escape2Html: function escape2Html(str, success) {
  17766. var arrEntities = {
  17767. 'lt': '<',
  17768. 'gt': '>',
  17769. 'nbsp': ' ',
  17770. 'amp': '&',
  17771. 'quot': '"' };
  17772. return str.replace(/&(lt|gt|nbsp|amp|quot);/ig, function (all, t) {
  17773. return arrEntities[t];
  17774. }).replace(/<section/g, '<div').replace(/<u>/g, '').replace(/<u style="">/g, '').replace(/<\/u>/g, '');
  17775. },
  17776. /**
  17777. * 分享信息
  17778. */
  17779. shareInfo: function shareInfo() {
  17780. var that = this;
  17781. var userInfo = cache.get('user_info');
  17782. if (!that.isEmpty(userInfo) && !that.isEmpty(userInfo.serial)) {
  17783. var path = "/pages/index/index?invite_code=".concat(userInfo.serial);
  17784. } else {
  17785. var path = '/pages/index/index';
  17786. }
  17787. return {
  17788. title: that.config.name,
  17789. path: path
  17790. // imageUrl: '/image/iconimg/login.png'
  17791. };
  17792. },
  17793. /**
  17794. * 检测是否收藏
  17795. * @param {object} id //检测是否收藏的商品id
  17796. * @param {object} success
  17797. */
  17798. checkStore: function checkStore(id, key, success) {
  17799. var that = this;
  17800. var shopStore = cache.get(key);
  17801. if (that.isEmpty(shopStore)) {
  17802. success && success(false);
  17803. } else {
  17804. var have = 0;
  17805. for (var i in shopStore) {
  17806. var d = shopStore[i];
  17807. if (d.id == id) {
  17808. // 有收藏
  17809. have = 1;
  17810. success && success(true);
  17811. break;
  17812. }
  17813. if (have == 0) {
  17814. // 无收藏
  17815. success && success(false);
  17816. }
  17817. }
  17818. }
  17819. },
  17820. /**
  17821. * 收藏缓存
  17822. * @param {object} id //需要收藏或取消的商品id
  17823. * @param {object} success
  17824. */
  17825. changeStore: function changeStore(data, key, success) {
  17826. var shopStore = cache.get(key);
  17827. var that = this;
  17828. var p = {};
  17829. p = data;
  17830. if (that.isEmpty(shopStore)) {
  17831. var shopStore = [];
  17832. shopStore.push(p);
  17833. cache.set(key, shopStore);
  17834. success && success('收藏成功');
  17835. } else {
  17836. var have = 0;
  17837. for (var i in shopStore) {
  17838. var d = shopStore[i];
  17839. console.log(d, data);
  17840. if (d.id == data.id && d.table == data.table) {
  17841. // 有的话取消收藏
  17842. have = 1;
  17843. shopStore.splice(i, 1);
  17844. cache.set(key, shopStore);
  17845. success && success('取消成功');
  17846. break;
  17847. }
  17848. }
  17849. if (have == 0) {
  17850. // 没有的话收藏
  17851. shopStore.push(p);
  17852. cache.set(key, shopStore);
  17853. success && success('收藏成功');
  17854. }
  17855. }
  17856. },
  17857. /****************************************************/
  17858. /**
  17859. * 获取购物车信息,设置导航红点信息
  17860. * @param index 设置信息 tabBar 序号
  17861. */
  17862. getshopcar: function getshopcar(success) {
  17863. var shopCar_list = cache.get('shop_car');
  17864. if (this.isEmpty(shopCar_list)) {
  17865. uni.hideTabBarRedDot({ //隐藏 tabBar 某一项的右上角文本
  17866. index: 2, //第几个 tabBar,从左边 0 算起
  17867. success: function (_success22) {function success() {return _success22.apply(this, arguments);}success.toString = function () {return _success22.toString();};return success;}(function () {
  17868. success && success(0);
  17869. }) });
  17870. } else {
  17871. var len = this.getLength(shopCar_list);
  17872. uni.setTabBarBadge({ //为 tabBar 某一项的右上角添加文本
  17873. index: 2, //第几个 tabBar,从左边 0 算起
  17874. text: String(len), //右上角添加的文本
  17875. success: function (_success23) {function success() {return _success23.apply(this, arguments);}success.toString = function () {return _success23.toString();};return success;}(function () {
  17876. success && success(len);
  17877. }) });
  17878. }
  17879. },
  17880. /**
  17881. * 上拉刷新加载数据
  17882. * @param {object} type
  17883. * @param {object} page
  17884. * @param {object} succes
  17885. */
  17886. onReachFoot: function onReachFoot(url, data, succes) {
  17887. //type=1时请求找工作
  17888. if (url) {
  17889. this.req({
  17890. url: url,
  17891. data: data },
  17892. function (res) {
  17893. if (res.status == 1) {
  17894. succes && succes(res.data);
  17895. }
  17896. });
  17897. } else {
  17898. succes && success(false);
  17899. }
  17900. } }, _defineProperty(_module$exports, "makeCall", function makeCall(
  17901. price, mobile, work_id, type, buy_type, send_id) {var send_name = arguments.length > 6 && arguments[6] !== undefined ? arguments[6] : '';
  17902. var that = this;
  17903. that.modal('将自动使用会员次数或东豆进行抵扣', function (params) {
  17904. that.req({
  17905. url: 'center/MobileOrMessage',
  17906. data: {
  17907. price: price,
  17908. mobile: mobile,
  17909. work_id: work_id,
  17910. type: type,
  17911. buy_type: buy_type,
  17912. send_id: send_id,
  17913. send_name: send_name } },
  17914. function (params) {
  17915. if (params.status == 1) {
  17916. if (buy_type == 'price') {
  17917. uni.makePhoneCall({
  17918. phoneNumber: mobile });
  17919. } else {
  17920. that.jump('/pages/chat/chat?id=' + send_id + '&nickname=' + send_name);
  17921. }
  17922. }
  17923. if (params.status == 2) {
  17924. }
  17925. });
  17926. }, true);
  17927. }), _defineProperty(_module$exports, "debounce",
  17928. function debounce(func, wait) {
  17929. var timeout;
  17930. return function () {
  17931. console.log('防抖事件:' + func, '防抖时间:' + wait);
  17932. var context = this;
  17933. var args = arguments;
  17934. var later = function later() {
  17935. timeout = null;
  17936. func.apply(context, args);
  17937. };
  17938. clearTimeout(timeout);
  17939. timeout = setTimeout(later, wait);
  17940. };
  17941. }), _module$exports);
  17942. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 1)["default"]))
  17943. /***/ }),
  17944. /* 143 */
  17945. /*!**********************************************!*\
  17946. !*** E:/代码/cbz/cbz/cbz/static/js/encrypt.js ***!
  17947. \**********************************************/
  17948. /*! no static exports found */
  17949. /***/ (function(module, exports) {
  17950. module.exports = {
  17951. chrsz: 8,
  17952. hexcase: 0,
  17953. b64pad: '',
  17954. /**
  17955. * 哈希算法加密
  17956. * @param {string} str:要加密的数据
  17957. * @param {string} raw:方式
  17958. */
  17959. sha1: function sha1(str, raw) {
  17960. str = this.utf16to8(str);
  17961. if (raw == true) {
  17962. return this.str_sha1(str);
  17963. } else {
  17964. return this.hex_sha1(str);
  17965. }
  17966. },
  17967. md5: function md5(s) {
  17968. return this.binl2hex(this.core_md5(this.str2binl(s), s.length * this.chrsz));
  17969. },
  17970. utf16to8: function utf16to8(str) {
  17971. var out, i, len, c;
  17972. out = '';
  17973. len = str.length;
  17974. for (i = 0; i < len; i++) {
  17975. c = str.charCodeAt(i);
  17976. if (c >= 0x0001 && c <= 0x007F) {
  17977. out += str.charAt(i);
  17978. } else if (c > 0x07FF) {
  17979. out += String.fromCharCode(0xE0 | c >> 12 & 0x0F);
  17980. out += String.fromCharCode(0x80 | c >> 6 & 0x3F);
  17981. out += String.fromCharCode(0x80 | c >> 0 & 0x3F);
  17982. } else {
  17983. out += String.fromCharCode(0xC0 | c >> 6 & 0x1F);
  17984. out += String.fromCharCode(0x80 | c >> 0 & 0x3F);
  17985. }
  17986. }
  17987. return out;
  17988. },
  17989. hex_sha1: function hex_sha1(s) {
  17990. return this.binb2hex(this.core_sha1(this.str2binb(s), s.length * this.chrsz));
  17991. },
  17992. str_sha1: function str_sha1(s) {
  17993. return this.binb2str(this.core_sha1(this.str2binb(s), s.length * this.chrsz));
  17994. },
  17995. binb2hex: function binb2hex(binarray) {
  17996. var hex_tab = this.hexcase ? '0123456789ABCDEF' : '0123456789abcdef';
  17997. var str = "";
  17998. for (var i = 0; i < binarray.length * 4; i++) {
  17999. str += hex_tab.charAt(binarray[i >> 2] >> (3 - i % 4) * 8 + 4 & 0xF) + hex_tab.charAt(binarray[i >> 2] >> (3 - i % 4) * 8 & 0xF);
  18000. }
  18001. return str;
  18002. },
  18003. binl2hex: function binl2hex(binarray) {
  18004. var hex_tab = this.hexcase ? '0123456789ABCDEF' : '0123456789abcdef';
  18005. var str = "";
  18006. for (var i = 0; i < binarray.length * 4; i++) {
  18007. str += hex_tab.charAt(binarray[i >> 2] >> i % 4 * 8 + 4 & 0xF) + hex_tab.charAt(binarray[i >> 2] >> i % 4 * 8 & 0xF);
  18008. }
  18009. return str;
  18010. },
  18011. binb2str: function binb2str(bin) {
  18012. var str = "";
  18013. var mask = (1 << this.chrsz) - 1;
  18014. for (var i = 0; i < bin.length * 32; i += this.chrsz) {str += String.fromCharCode(bin[i >> 5] >>> 32 - this.chrsz - i % 32 & mask);}
  18015. return str;
  18016. },
  18017. binl2str: function binl2str(bin) {
  18018. var str = "";
  18019. var mask = (1 << this.chrsz) - 1;
  18020. for (var i = 0; i < bin.length * 32; i += this.chrsz) {str += String.fromCharCode(bin[i >> 5] >>> i % 32 & mask);}
  18021. return str;
  18022. },
  18023. binl2b64: function binl2b64(binarray) {
  18024. var tab = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/';
  18025. var str = '';
  18026. for (var i = 0; i < binarray.length * 4; i += 3) {
  18027. var triplet = (binarray[i >> 2] >> 8 * (i % 4) & 0xFF) << 16 |
  18028. (binarray[i + 1 >> 2] >> 8 * ((i + 1) % 4) & 0xFF) << 8 |
  18029. binarray[i + 2 >> 2] >> 8 * ((i + 2) % 4) & 0xFF;
  18030. for (var j = 0; j < 4; j++) {
  18031. if (i * 8 + j * 6 > binarray.length * 32) str += this.b64pad;else
  18032. str += tab.charAt(triplet >> 6 * (3 - j) & 0x3F);
  18033. }
  18034. }
  18035. return str;
  18036. },
  18037. str2binb: function str2binb(str) {
  18038. var bin = Array();
  18039. var mask = (1 << this.chrsz) - 1;
  18040. for (var i = 0; i < str.length * this.chrsz; i += this.chrsz) {bin[i >> 5] |= (str.charCodeAt(i / this.chrsz) & mask) << 32 - this.chrsz - i % 32;}
  18041. return bin;
  18042. },
  18043. str2binl: function str2binl(str) {
  18044. var bin = Array();
  18045. var mask = (1 << this.chrsz) - 1;
  18046. for (var i = 0; i < str.length * this.chrsz; i += this.chrsz) {bin[i >> 5] |= (str.charCodeAt(i / this.chrsz) & mask) << i % 32;}
  18047. return bin;
  18048. },
  18049. safe_add: function safe_add(x, y) {
  18050. var lsw = (x & 0xFFFF) + (y & 0xFFFF);
  18051. var msw = (x >> 16) + (y >> 16) + (lsw >> 16);
  18052. return msw << 16 | lsw & 0xFFFF;
  18053. },
  18054. rol: function rol(num, cnt) {
  18055. return num << cnt | num >>> 32 - cnt;
  18056. },
  18057. sha1_ft: function sha1_ft(t, b, c, d) {
  18058. if (t < 20) return b & c | ~b & d;
  18059. if (t < 40) return b ^ c ^ d;
  18060. if (t < 60) return b & c | b & d | c & d;
  18061. return b ^ c ^ d;
  18062. },
  18063. sha1_kt: function sha1_kt(t) {
  18064. return t < 20 ? 1518500249 : t < 40 ? 1859775393 : t < 60 ? -1894007588 : -899497514;
  18065. },
  18066. core_sha1: function core_sha1(x, len) {
  18067. x[len >> 5] |= 0x80 << 24 - len % 32;
  18068. x[(len + 64 >> 9 << 4) + 15] = len;
  18069. var w = Array(80);
  18070. var a = 1732584193;
  18071. var b = -271733879;
  18072. var c = -1732584194;
  18073. var d = 271733878;
  18074. var e = -1009589776;
  18075. for (var i = 0; i < x.length; i += 16) {
  18076. var olda = a;
  18077. var oldb = b;
  18078. var oldc = c;
  18079. var oldd = d;
  18080. var olde = e;
  18081. for (var j = 0; j < 80; j++) {
  18082. if (j < 16) w[j] = x[i + j];else
  18083. w[j] = this.rol(w[j - 3] ^ w[j - 8] ^ w[j - 14] ^ w[j - 16], 1);
  18084. var t = this.safe_add(this.safe_add(this.rol(a, 5), this.sha1_ft(j, b, c, d)), this.safe_add(this.safe_add(e, w[j]), this.sha1_kt(j)));
  18085. e = d;
  18086. d = c;
  18087. c = this.rol(b, 30);
  18088. b = a;
  18089. a = t;
  18090. }
  18091. a = this.safe_add(a, olda);
  18092. b = this.safe_add(b, oldb);
  18093. c = this.safe_add(c, oldc);
  18094. d = this.safe_add(d, oldd);
  18095. e = this.safe_add(e, olde);
  18096. }
  18097. return Array(a, b, c, d, e);
  18098. },
  18099. core_md5: function core_md5(x, len) {
  18100. x[len >> 5] |= 0x80 << len % 32;
  18101. x[(len + 64 >>> 9 << 4) + 14] = len;
  18102. var a = 1732584193;
  18103. var b = -271733879;
  18104. var c = -1732584194;
  18105. var d = 271733878;
  18106. for (var i = 0; i < x.length; i += 16) {
  18107. var olda = a;
  18108. var oldb = b;
  18109. var oldc = c;
  18110. var oldd = d;
  18111. a = this.md5_ff(a, b, c, d, x[i + 0], 7, -680876936);
  18112. d = this.md5_ff(d, a, b, c, x[i + 1], 12, -389564586);
  18113. c = this.md5_ff(c, d, a, b, x[i + 2], 17, 606105819);
  18114. b = this.md5_ff(b, c, d, a, x[i + 3], 22, -1044525330);
  18115. a = this.md5_ff(a, b, c, d, x[i + 4], 7, -176418897);
  18116. d = this.md5_ff(d, a, b, c, x[i + 5], 12, 1200080426);
  18117. c = this.md5_ff(c, d, a, b, x[i + 6], 17, -1473231341);
  18118. b = this.md5_ff(b, c, d, a, x[i + 7], 22, -45705983);
  18119. a = this.md5_ff(a, b, c, d, x[i + 8], 7, 1770035416);
  18120. d = this.md5_ff(d, a, b, c, x[i + 9], 12, -1958414417);
  18121. c = this.md5_ff(c, d, a, b, x[i + 10], 17, -42063);
  18122. b = this.md5_ff(b, c, d, a, x[i + 11], 22, -1990404162);
  18123. a = this.md5_ff(a, b, c, d, x[i + 12], 7, 1804603682);
  18124. d = this.md5_ff(d, a, b, c, x[i + 13], 12, -40341101);
  18125. c = this.md5_ff(c, d, a, b, x[i + 14], 17, -1502002290);
  18126. b = this.md5_ff(b, c, d, a, x[i + 15], 22, 1236535329);
  18127. a = this.md5_gg(a, b, c, d, x[i + 1], 5, -165796510);
  18128. d = this.md5_gg(d, a, b, c, x[i + 6], 9, -1069501632);
  18129. c = this.md5_gg(c, d, a, b, x[i + 11], 14, 643717713);
  18130. b = this.md5_gg(b, c, d, a, x[i + 0], 20, -373897302);
  18131. a = this.md5_gg(a, b, c, d, x[i + 5], 5, -701558691);
  18132. d = this.md5_gg(d, a, b, c, x[i + 10], 9, 38016083);
  18133. c = this.md5_gg(c, d, a, b, x[i + 15], 14, -660478335);
  18134. b = this.md5_gg(b, c, d, a, x[i + 4], 20, -405537848);
  18135. a = this.md5_gg(a, b, c, d, x[i + 9], 5, 568446438);
  18136. d = this.md5_gg(d, a, b, c, x[i + 14], 9, -1019803690);
  18137. c = this.md5_gg(c, d, a, b, x[i + 3], 14, -187363961);
  18138. b = this.md5_gg(b, c, d, a, x[i + 8], 20, 1163531501);
  18139. a = this.md5_gg(a, b, c, d, x[i + 13], 5, -1444681467);
  18140. d = this.md5_gg(d, a, b, c, x[i + 2], 9, -51403784);
  18141. c = this.md5_gg(c, d, a, b, x[i + 7], 14, 1735328473);
  18142. b = this.md5_gg(b, c, d, a, x[i + 12], 20, -1926607734);
  18143. a = this.md5_hh(a, b, c, d, x[i + 5], 4, -378558);
  18144. d = this.md5_hh(d, a, b, c, x[i + 8], 11, -2022574463);
  18145. c = this.md5_hh(c, d, a, b, x[i + 11], 16, 1839030562);
  18146. b = this.md5_hh(b, c, d, a, x[i + 14], 23, -35309556);
  18147. a = this.md5_hh(a, b, c, d, x[i + 1], 4, -1530992060);
  18148. d = this.md5_hh(d, a, b, c, x[i + 4], 11, 1272893353);
  18149. c = this.md5_hh(c, d, a, b, x[i + 7], 16, -155497632);
  18150. b = this.md5_hh(b, c, d, a, x[i + 10], 23, -1094730640);
  18151. a = this.md5_hh(a, b, c, d, x[i + 13], 4, 681279174);
  18152. d = this.md5_hh(d, a, b, c, x[i + 0], 11, -358537222);
  18153. c = this.md5_hh(c, d, a, b, x[i + 3], 16, -722521979);
  18154. b = this.md5_hh(b, c, d, a, x[i + 6], 23, 76029189);
  18155. a = this.md5_hh(a, b, c, d, x[i + 9], 4, -640364487);
  18156. d = this.md5_hh(d, a, b, c, x[i + 12], 11, -421815835);
  18157. c = this.md5_hh(c, d, a, b, x[i + 15], 16, 530742520);
  18158. b = this.md5_hh(b, c, d, a, x[i + 2], 23, -995338651);
  18159. a = this.md5_ii(a, b, c, d, x[i + 0], 6, -198630844);
  18160. d = this.md5_ii(d, a, b, c, x[i + 7], 10, 1126891415);
  18161. c = this.md5_ii(c, d, a, b, x[i + 14], 15, -1416354905);
  18162. b = this.md5_ii(b, c, d, a, x[i + 5], 21, -57434055);
  18163. a = this.md5_ii(a, b, c, d, x[i + 12], 6, 1700485571);
  18164. d = this.md5_ii(d, a, b, c, x[i + 3], 10, -1894986606);
  18165. c = this.md5_ii(c, d, a, b, x[i + 10], 15, -1051523);
  18166. b = this.md5_ii(b, c, d, a, x[i + 1], 21, -2054922799);
  18167. a = this.md5_ii(a, b, c, d, x[i + 8], 6, 1873313359);
  18168. d = this.md5_ii(d, a, b, c, x[i + 15], 10, -30611744);
  18169. c = this.md5_ii(c, d, a, b, x[i + 6], 15, -1560198380);
  18170. b = this.md5_ii(b, c, d, a, x[i + 13], 21, 1309151649);
  18171. a = this.md5_ii(a, b, c, d, x[i + 4], 6, -145523070);
  18172. d = this.md5_ii(d, a, b, c, x[i + 11], 10, -1120210379);
  18173. c = this.md5_ii(c, d, a, b, x[i + 2], 15, 718787259);
  18174. b = this.md5_ii(b, c, d, a, x[i + 9], 21, -343485551);
  18175. a = this.safe_add(a, olda);
  18176. b = this.safe_add(b, oldb);
  18177. c = this.safe_add(c, oldc);
  18178. d = this.safe_add(d, oldd);
  18179. }
  18180. return Array(a, b, c, d);
  18181. },
  18182. md5_cmn: function md5_cmn(q, a, b, x, s, t) {
  18183. return this.safe_add(this.rol(this.safe_add(this.safe_add(a, q), this.safe_add(x, t)), s), b);
  18184. },
  18185. md5_ff: function md5_ff(a, b, c, d, x, s, t) {
  18186. return this.md5_cmn(b & c | ~b & d, a, b, x, s, t);
  18187. },
  18188. md5_gg: function md5_gg(a, b, c, d, x, s, t) {
  18189. return this.md5_cmn(b & d | c & ~d, a, b, x, s, t);
  18190. },
  18191. md5_hh: function md5_hh(a, b, c, d, x, s, t) {
  18192. return this.md5_cmn(b ^ c ^ d, a, b, x, s, t);
  18193. },
  18194. md5_ii: function md5_ii(a, b, c, d, x, s, t) {
  18195. return this.md5_cmn(c ^ (b | ~d), a, b, x, s, t);
  18196. } };
  18197. /***/ }),
  18198. /* 144 */
  18199. /*!********************************************!*\
  18200. !*** E:/代码/cbz/cbz/cbz/static/js/cache.js ***!
  18201. \********************************************/
  18202. /*! no static exports found */
  18203. /***/ (function(module, exports) {
  18204. /**
  18205. * 缓存数据优化
  18206. * var cache = require('utils/cache.js');
  18207. * import cache from '../cache'
  18208. * 使用方法 【
  18209. * 一、设置缓存
  18210. * string cache.put('k', 'string你好啊');
  18211. * json cache.put('k', { "b": "3" }, 2);
  18212. * array cache.put('k', [1, 2, 3]);
  18213. * boolean cache.put('k', true);
  18214. * 二、读取缓存
  18215. * 默认值 cache.get('k')
  18216. * string cache.get('k', '你好')
  18217. * json cache.get('k', { "a": "1" })
  18218. * 三、移除/清理
  18219. * 移除: cache.remove('k');
  18220. * 清理:cache.clear();
  18221. * 】
  18222. * @type {String}
  18223. */
  18224. module.exports = {
  18225. /*
  18226. * 缓存前缀
  18227. */
  18228. postfix: 'twinkly_',
  18229. /**
  18230. * 设置缓存
  18231. * @param {[type]} k [键名]
  18232. * @param {[type]} v [键值]
  18233. * @param {[type]} e [过期时间:单位秒]
  18234. * @param {[type]} s 异步回调
  18235. */
  18236. set: function set(k, v, e, s) {
  18237. var that = this;
  18238. var e = e || 0;
  18239. if (e > 0) e = Date.parse(new Date()) + e * 1000;
  18240. if (v) {
  18241. if (typeof s == 'function') {
  18242. wx.setStorage({
  18243. key: k,
  18244. data: v,
  18245. success: function success() {
  18246. wx.setStorageSync(that.postfix + k, e);
  18247. s();
  18248. } });
  18249. } else {
  18250. wx.setStorageSync(that.postfix + k, e);
  18251. wx.setStorageSync(k, v);
  18252. }
  18253. } else {
  18254. that.remove(k);
  18255. }
  18256. },
  18257. /**
  18258. * 获取缓存
  18259. * @param {[type]} k [键名]
  18260. */
  18261. get: function get(k) {
  18262. var that = this,
  18263. deadtime = wx.getStorageSync(that.postfix + k),
  18264. data = wx.getStorageSync(k);
  18265. if (deadtime > 0) {
  18266. var now = Date.parse(new Date());
  18267. if (deadtime < now) {
  18268. return data;
  18269. } else {
  18270. return false;
  18271. }
  18272. } else {
  18273. return data;
  18274. }
  18275. },
  18276. /**
  18277. * 清理指定缓存
  18278. * @return {[type]} [description]
  18279. */
  18280. remove: function remove(k) {
  18281. var that = this;
  18282. wx.removeStorageSync(that.postfix + k);
  18283. wx.removeStorageSync(k);
  18284. },
  18285. /**
  18286. * 获取缓存并销毁
  18287. * @param {[type]} k [键名]
  18288. * @param {[type]} def [获取为空时默认]
  18289. */
  18290. getonce: function getonce(k) {
  18291. var that = this;
  18292. var data = that.get(k);
  18293. that.remove(k);
  18294. return data;
  18295. },
  18296. /**
  18297. * 清理所有缓存
  18298. * @return {[type]} [description]
  18299. */
  18300. clear: function clear() {
  18301. wx.clearStorageSync();
  18302. } };
  18303. /***/ }),
  18304. /* 145 */
  18305. /*!*******************************************!*\
  18306. !*** E:/代码/cbz/cbz/cbz/static/js/math.js ***!
  18307. \*******************************************/
  18308. /*! no static exports found */
  18309. /***/ (function(module, exports) {
  18310. module.exports = {
  18311. /**
  18312. * +
  18313. * @param arg1
  18314. * @param arg2
  18315. * @returns {number}
  18316. */
  18317. add: function add(arg1, arg2) {
  18318. var r1, r2, m;
  18319. try {
  18320. r1 = arg1.toString().split(".")[1].length;
  18321. } catch (e) {
  18322. r1 = 0;
  18323. }
  18324. try {
  18325. r2 = arg2.toString().split(".")[1].length;
  18326. } catch (e) {
  18327. r2 = 0;
  18328. }
  18329. m = Math.pow(10, Math.max(r1, r2));
  18330. return (arg1 * m + arg2 * m) / m;
  18331. },
  18332. /**
  18333. * -
  18334. * @param arg1
  18335. * @param arg2
  18336. * @returns {number}
  18337. */
  18338. sub: function sub(arg1, arg2) {
  18339. var r1, r2, m, n;
  18340. try {
  18341. r1 = arg1.toString().split(".")[1].length;
  18342. } catch (e) {
  18343. r1 = 0;
  18344. }
  18345. try {
  18346. r2 = arg2.toString().split(".")[1].length;
  18347. } catch (e) {
  18348. r2 = 0;
  18349. }
  18350. m = Math.pow(10, Math.max(r1, r2));
  18351. n = r1 >= r2 ? r1 : r2;
  18352. return ((arg1 * m - arg2 * m) / m).toFixed(n);
  18353. },
  18354. /**
  18355. * *
  18356. * @param arg1
  18357. * @param arg2
  18358. * @returns {number}
  18359. */
  18360. mul: function mul(arg1, arg2) {
  18361. var m = 0,
  18362. s1 = arg1.toString(),
  18363. s2 = arg2.toString();
  18364. try {
  18365. m += s1.split(".")[1].length;
  18366. } catch (e) {}
  18367. try {
  18368. m += s2.split(".")[1].length;
  18369. } catch (e) {}
  18370. return Number(s1.replace(".", "")) * Number(s2.replace(".", "")) / Math.pow(10, m);
  18371. },
  18372. /**
  18373. * /
  18374. * @param arg1
  18375. * @param arg2
  18376. * @returns {number}
  18377. */
  18378. div: function div(arg1, arg2) {
  18379. var t1 = 0,
  18380. t2 = 0,
  18381. r1,r2;
  18382. try {
  18383. t1 = arg1.toString().split(".")[1].length;
  18384. } catch (e) {}
  18385. try {
  18386. t2 = arg2.toString().split(".")[1].length;
  18387. } catch (e) {}
  18388. r1 = Number(arg1.toString().replace(".", ""));
  18389. r2 = Number(arg2.toString().replace(".", ""));
  18390. return this.mul(r1 / r2, Math.pow(10, t2 - t1));
  18391. },
  18392. /**
  18393. * 保留有效小数位 四舍五入,解决toFixed方法bug
  18394. * @param num 需要操作的数字
  18395. * @param decimal 保留小数的位数
  18396. * @returns {string}
  18397. */
  18398. toFixed: function toFixed(num, decimal) {
  18399. if (typeof decimal == 'undefined') {
  18400. decimal = 2;
  18401. }
  18402. var times = Math.pow(10, decimal);
  18403. var des = num * times + 0.5;
  18404. des = (parseInt(des, 10) / times).toString();
  18405. if (decimal > 0) {
  18406. var arr = des.split('.');
  18407. var len = decimal;
  18408. if (arr.length == 1) {
  18409. des += '.';
  18410. } else {
  18411. len = decimal - arr[1].length;
  18412. }
  18413. for (var i = 1; i <= len; i++) {
  18414. des += '0';
  18415. }
  18416. }
  18417. return des;
  18418. } };
  18419. /***/ }),
  18420. /* 146 */
  18421. /*!*****************************************************!*\
  18422. !*** E:/代码/cbz/cbz/cbz/static/js/qqmap-wx-jssdk.js ***!
  18423. \*****************************************************/
  18424. /*! no static exports found */
  18425. /***/ (function(module, exports) {
  18426. function _classCallCheck(instance, Constructor) {if (!(instance instanceof Constructor)) {throw new TypeError("Cannot call a class as a function");}}function _defineProperties(target, props) {for (var i = 0; i < props.length; i++) {var descriptor = props[i];descriptor.enumerable = descriptor.enumerable || false;descriptor.configurable = true;if ("value" in descriptor) descriptor.writable = true;Object.defineProperty(target, descriptor.key, descriptor);}}function _createClass(Constructor, protoProps, staticProps) {if (protoProps) _defineProperties(Constructor.prototype, protoProps);if (staticProps) _defineProperties(Constructor, staticProps);return Constructor;} /**
  18427. * 微信小程序JavaScriptSDK
  18428. * 地图
  18429. * 苍源怡家
  18430. * @version 1.1
  18431. * @date 2019-01-20
  18432. */
  18433. var ERROR_CONF = {
  18434. KEY_ERR: 311,
  18435. KEY_ERR_MSG: 'key格式错误',
  18436. PARAM_ERR: 310,
  18437. PARAM_ERR_MSG: '请求参数信息有误',
  18438. SYSTEM_ERR: 600,
  18439. SYSTEM_ERR_MSG: '系统错误',
  18440. WX_ERR_CODE: 1000,
  18441. WX_OK_CODE: 200 };
  18442. var BASE_URL = 'https://apis.map.qq.com/ws/';
  18443. var URL_SEARCH = BASE_URL + 'place/v1/search';
  18444. var URL_SUGGESTION = BASE_URL + 'place/v1/suggestion';
  18445. var URL_GET_GEOCODER = BASE_URL + 'geocoder/v1/';
  18446. var URL_CITY_LIST = BASE_URL + 'district/v1/list';
  18447. var URL_AREA_LIST = BASE_URL + 'district/v1/getchildren';
  18448. var URL_DISTANCE = BASE_URL + 'distance/v1/';
  18449. var EARTH_RADIUS = 6378136.49;
  18450. var Utils = {
  18451. /**
  18452. * 得到终点query字符串
  18453. * @param {Array|String} 检索数据
  18454. */
  18455. location2query: function location2query(data) {
  18456. if (typeof data == 'string') {
  18457. return data;
  18458. }
  18459. var query = '';
  18460. for (var i = 0; i < data.length; i++) {
  18461. var d = data[i];
  18462. if (!!query) {
  18463. query += ';';
  18464. }
  18465. if (d.location) {
  18466. query = query + d.location.lat + ',' + d.location.lng;
  18467. }
  18468. if (d.latitude && d.longitude) {
  18469. query = query + d.latitude + ',' + d.longitude;
  18470. }
  18471. }
  18472. return query;
  18473. },
  18474. /**
  18475. * 计算角度
  18476. */
  18477. rad: function rad(d) {
  18478. return d * Math.PI / 180.0;
  18479. },
  18480. /**
  18481. * 处理终点location数组
  18482. * @return 返回终点数组
  18483. */
  18484. getEndLocation: function getEndLocation(location) {
  18485. var to = location.split(';');
  18486. var endLocation = [];
  18487. for (var i = 0; i < to.length; i++) {
  18488. endLocation.push({
  18489. lat: parseFloat(to[i].split(',')[0]),
  18490. lng: parseFloat(to[i].split(',')[1]) });
  18491. }
  18492. return endLocation;
  18493. },
  18494. /**
  18495. * 计算两点间直线距离
  18496. * @param a 表示纬度差
  18497. * @param b 表示经度差
  18498. * @return 返回的是距离,单位m
  18499. */
  18500. getDistance: function getDistance(latFrom, lngFrom, latTo, lngTo) {
  18501. var radLatFrom = this.rad(latFrom);
  18502. var radLatTo = this.rad(latTo);
  18503. var a = radLatFrom - radLatTo;
  18504. var b = this.rad(lngFrom) - this.rad(lngTo);
  18505. var distance = 2 * Math.asin(Math.sqrt(Math.pow(Math.sin(a / 2), 2) + Math.cos(radLatFrom) * Math.cos(radLatTo) * Math.pow(Math.sin(b / 2), 2)));
  18506. distance = distance * EARTH_RADIUS;
  18507. distance = Math.round(distance * 10000) / 10000;
  18508. return parseFloat(distance.toFixed(0));
  18509. },
  18510. /**
  18511. * 使用微信接口进行定位
  18512. */
  18513. getWXLocation: function getWXLocation(success, fail, complete) {
  18514. wx.getLocation({
  18515. type: 'gcj02',
  18516. success: success,
  18517. fail: fail,
  18518. complete: complete });
  18519. },
  18520. /**
  18521. * 获取location参数
  18522. */
  18523. getLocationParam: function getLocationParam(location) {
  18524. if (typeof location == 'string') {
  18525. var locationArr = location.split(',');
  18526. if (locationArr.length === 2) {
  18527. location = {
  18528. latitude: location.split(',')[0],
  18529. longitude: location.split(',')[1] };
  18530. } else {
  18531. location = {};
  18532. }
  18533. }
  18534. return location;
  18535. },
  18536. /**
  18537. * 回调函数默认处理
  18538. */
  18539. polyfillParam: function polyfillParam(param) {
  18540. param.success = param.success || function () {};
  18541. param.fail = param.fail || function () {};
  18542. param.complete = param.complete || function () {};
  18543. },
  18544. /**
  18545. * 验证param对应的key值是否为空
  18546. *
  18547. * @param {Object} param 接口参数
  18548. * @param {String} key 对应参数的key
  18549. */
  18550. checkParamKeyEmpty: function checkParamKeyEmpty(param, key) {
  18551. if (!param[key]) {
  18552. var errconf = this.buildErrorConfig(ERROR_CONF.PARAM_ERR, ERROR_CONF.PARAM_ERR_MSG + key + '参数格式有误');
  18553. param.fail(errconf);
  18554. param.complete(errconf);
  18555. return true;
  18556. }
  18557. return false;
  18558. },
  18559. /**
  18560. * 验证参数中是否存在检索词keyword
  18561. *
  18562. * @param {Object} param 接口参数
  18563. */
  18564. checkKeyword: function checkKeyword(param) {
  18565. return !this.checkParamKeyEmpty(param, 'keyword');
  18566. },
  18567. /**
  18568. * 验证location值
  18569. *
  18570. * @param {Object} param 接口参数
  18571. */
  18572. checkLocation: function checkLocation(param) {
  18573. var location = this.getLocationParam(param.location);
  18574. if (!location || !location.latitude || !location.longitude) {
  18575. var errconf = this.buildErrorConfig(ERROR_CONF.PARAM_ERR, ERROR_CONF.PARAM_ERR_MSG + ' location参数格式有误');
  18576. param.fail(errconf);
  18577. param.complete(errconf);
  18578. return false;
  18579. }
  18580. return true;
  18581. },
  18582. /**
  18583. * 构造错误数据结构
  18584. * @param {Number} errCode 错误码
  18585. * @param {Number} errMsg 错误描述
  18586. */
  18587. buildErrorConfig: function buildErrorConfig(errCode, errMsg) {
  18588. return {
  18589. status: errCode,
  18590. message: errMsg };
  18591. },
  18592. /**
  18593. *
  18594. * 数据处理函数
  18595. * 根据传入参数不同处理不同数据
  18596. * @param {String} feature 功能名称
  18597. * search 地点搜索
  18598. * suggest关键词提示
  18599. * reverseGeocoder逆地址解析
  18600. * geocoder地址解析
  18601. * getCityList获取城市列表:父集
  18602. * getDistrictByCityId获取区县列表:子集
  18603. * calculateDistance距离计算
  18604. * @param {Object} param 接口参数
  18605. * @param {Object} data 数据
  18606. */
  18607. handleData: function handleData(param, data, feature) {
  18608. if (feature === 'search') {
  18609. var searchResult = data.data;
  18610. var searchSimplify = [];
  18611. for (var i = 0; i < searchResult.length; i++) {
  18612. searchSimplify.push({
  18613. id: searchResult[i].id || null,
  18614. title: searchResult[i].title || null,
  18615. latitude: searchResult[i].location && searchResult[i].location.lat || null,
  18616. longitude: searchResult[i].location && searchResult[i].location.lng || null,
  18617. address: searchResult[i].address || null,
  18618. category: searchResult[i].category || null,
  18619. tel: searchResult[i].tel || null,
  18620. adcode: searchResult[i].ad_info && searchResult[i].ad_info.adcode || null,
  18621. city: searchResult[i].ad_info && searchResult[i].ad_info.city || null,
  18622. district: searchResult[i].ad_info && searchResult[i].ad_info.district || null,
  18623. province: searchResult[i].ad_info && searchResult[i].ad_info.province || null });
  18624. }
  18625. param.success(data, {
  18626. searchResult: searchResult,
  18627. searchSimplify: searchSimplify });
  18628. } else if (feature === 'suggest') {
  18629. var suggestResult = data.data;
  18630. var suggestSimplify = [];
  18631. for (var i = 0; i < suggestResult.length; i++) {
  18632. suggestSimplify.push({
  18633. adcode: suggestResult[i].adcode || null,
  18634. address: suggestResult[i].address || null,
  18635. category: suggestResult[i].category || null,
  18636. city: suggestResult[i].city || null,
  18637. district: suggestResult[i].district || null,
  18638. id: suggestResult[i].id || null,
  18639. latitude: suggestResult[i].location && suggestResult[i].location.lat || null,
  18640. longitude: suggestResult[i].location && suggestResult[i].location.lng || null,
  18641. province: suggestResult[i].province || null,
  18642. title: suggestResult[i].title || null,
  18643. type: suggestResult[i].type || null });
  18644. }
  18645. param.success(data, {
  18646. suggestResult: suggestResult,
  18647. suggestSimplify: suggestSimplify });
  18648. } else if (feature === 'reverseGeocoder') {
  18649. var reverseGeocoderResult = data.result;
  18650. var reverseGeocoderSimplify = {
  18651. address: reverseGeocoderResult.address || null,
  18652. latitude: reverseGeocoderResult.location && reverseGeocoderResult.location.lat || null,
  18653. longitude: reverseGeocoderResult.location && reverseGeocoderResult.location.lng || null,
  18654. adcode: reverseGeocoderResult.ad_info && reverseGeocoderResult.ad_info.adcode || null,
  18655. city: reverseGeocoderResult.address_component && reverseGeocoderResult.address_component.city || null,
  18656. district: reverseGeocoderResult.address_component && reverseGeocoderResult.address_component.district || null,
  18657. nation: reverseGeocoderResult.address_component && reverseGeocoderResult.address_component.nation || null,
  18658. province: reverseGeocoderResult.address_component && reverseGeocoderResult.address_component.province || null,
  18659. street: reverseGeocoderResult.address_component && reverseGeocoderResult.address_component.street || null,
  18660. street_number: reverseGeocoderResult.address_component && reverseGeocoderResult.address_component.street_number || null,
  18661. recommend: reverseGeocoderResult.formatted_addresses && reverseGeocoderResult.formatted_addresses.recommend || null,
  18662. rough: reverseGeocoderResult.formatted_addresses && reverseGeocoderResult.formatted_addresses.rough || null };
  18663. if (reverseGeocoderResult.pois) {//判断是否返回周边poi
  18664. var pois = reverseGeocoderResult.pois;
  18665. var poisSimplify = [];
  18666. for (var i = 0; i < pois.length; i++) {
  18667. poisSimplify.push({
  18668. id: pois[i].id || null,
  18669. title: pois[i].title || null,
  18670. latitude: pois[i].location && pois[i].location.lat || null,
  18671. longitude: pois[i].location && pois[i].location.lng || null,
  18672. address: pois[i].address || null,
  18673. category: pois[i].category || null,
  18674. adcode: pois[i].ad_info && pois[i].ad_info.adcode || null,
  18675. city: pois[i].ad_info && pois[i].ad_info.city || null,
  18676. district: pois[i].ad_info && pois[i].ad_info.district || null,
  18677. province: pois[i].ad_info && pois[i].ad_info.province || null });
  18678. }
  18679. param.success(data, {
  18680. reverseGeocoderResult: reverseGeocoderResult,
  18681. reverseGeocoderSimplify: reverseGeocoderSimplify,
  18682. pois: pois,
  18683. poisSimplify: poisSimplify });
  18684. } else {
  18685. param.success(data, {
  18686. reverseGeocoderResult: reverseGeocoderResult,
  18687. reverseGeocoderSimplify: reverseGeocoderSimplify });
  18688. }
  18689. } else if (feature === 'geocoder') {
  18690. var geocoderResult = data.result;
  18691. var geocoderSimplify = {
  18692. title: geocoderResult.title || null,
  18693. latitude: geocoderResult.location && geocoderResult.location.lat || null,
  18694. longitude: geocoderResult.location && geocoderResult.location.lng || null,
  18695. adcode: geocoderResult.ad_info && geocoderResult.ad_info.adcode || null,
  18696. province: geocoderResult.address_components && geocoderResult.address_components.province || null,
  18697. city: geocoderResult.address_components && geocoderResult.address_components.city || null,
  18698. district: geocoderResult.address_components && geocoderResult.address_components.district || null,
  18699. street: geocoderResult.address_components && geocoderResult.address_components.street || null,
  18700. street_number: geocoderResult.address_components && geocoderResult.address_components.street_number || null,
  18701. level: geocoderResult.level || null };
  18702. param.success(data, {
  18703. geocoderResult: geocoderResult,
  18704. geocoderSimplify: geocoderSimplify });
  18705. } else if (feature === 'getCityList') {
  18706. var provinceResult = data.result[0];
  18707. var cityResult = data.result[1];
  18708. var districtResult = data.result[2];
  18709. param.success(data, {
  18710. provinceResult: provinceResult,
  18711. cityResult: cityResult,
  18712. districtResult: districtResult });
  18713. } else if (feature === 'getDistrictByCityId') {
  18714. var districtByCity = data.result[0];
  18715. param.success(data, districtByCity);
  18716. } else if (feature === 'calculateDistance') {
  18717. var calculateDistanceResult = data.result.elements;
  18718. var distance = [];
  18719. for (var i = 0; i < calculateDistanceResult.length; i++) {
  18720. distance.push(calculateDistanceResult[i].distance);
  18721. }
  18722. param.success(data, {
  18723. calculateDistanceResult: calculateDistanceResult,
  18724. distance: distance });
  18725. } else {
  18726. param.success(data);
  18727. }
  18728. },
  18729. /**
  18730. * 构造微信请求参数,公共属性处理
  18731. *
  18732. * @param {Object} param 接口参数
  18733. * @param {Object} param 配置项
  18734. * @param {String} feature 方法名
  18735. */
  18736. buildWxRequestConfig: function buildWxRequestConfig(param, options, feature) {
  18737. var that = this;
  18738. options.header = { "content-type": "application/json" };
  18739. options.method = 'GET';
  18740. options.success = function (res) {
  18741. var data = res.data;
  18742. if (data.status === 0) {
  18743. that.handleData(param, data, feature);
  18744. } else {
  18745. param.fail(data);
  18746. }
  18747. };
  18748. options.fail = function (res) {
  18749. res.statusCode = ERROR_CONF.WX_ERR_CODE;
  18750. param.fail(that.buildErrorConfig(ERROR_CONF.WX_ERR_CODE, res.errMsg));
  18751. };
  18752. options.complete = function (res) {
  18753. var statusCode = +res.statusCode;
  18754. switch (statusCode) {
  18755. case ERROR_CONF.WX_ERR_CODE:{
  18756. param.complete(that.buildErrorConfig(ERROR_CONF.WX_ERR_CODE, res.errMsg));
  18757. break;
  18758. }
  18759. case ERROR_CONF.WX_OK_CODE:{
  18760. var data = res.data;
  18761. if (data.status === 0) {
  18762. param.complete(data);
  18763. } else {
  18764. param.complete(that.buildErrorConfig(data.status, data.message));
  18765. }
  18766. break;
  18767. }
  18768. default:{
  18769. param.complete(that.buildErrorConfig(ERROR_CONF.SYSTEM_ERR, ERROR_CONF.SYSTEM_ERR_MSG));
  18770. }}
  18771. };
  18772. return options;
  18773. },
  18774. /**
  18775. * 处理用户参数是否传入坐标进行不同的处理
  18776. */
  18777. locationProcess: function locationProcess(param, locationsuccess, locationfail, locationcomplete) {
  18778. var that = this;
  18779. locationfail = locationfail || function (res) {
  18780. res.statusCode = ERROR_CONF.WX_ERR_CODE;
  18781. param.fail(that.buildErrorConfig(ERROR_CONF.WX_ERR_CODE, res.errMsg));
  18782. };
  18783. locationcomplete = locationcomplete || function (res) {
  18784. if (res.statusCode == ERROR_CONF.WX_ERR_CODE) {
  18785. param.complete(that.buildErrorConfig(ERROR_CONF.WX_ERR_CODE, res.errMsg));
  18786. }
  18787. };
  18788. if (!param.location) {
  18789. that.getWXLocation(locationsuccess, locationfail, locationcomplete);
  18790. } else if (that.checkLocation(param)) {
  18791. var location = Utils.getLocationParam(param.location);
  18792. locationsuccess(location);
  18793. }
  18794. } };var
  18795. QQMapWX = /*#__PURE__*/function () {"use strict";
  18796. /**
  18797. * 构造函数
  18798. *
  18799. * @param {Object} options 接口参数,key 为必选参数
  18800. */
  18801. function QQMapWX(options) {_classCallCheck(this, QQMapWX);
  18802. if (!options.key) {
  18803. throw Error('key值不能为空');
  18804. }
  18805. this.key = options.key;
  18806. }_createClass(QQMapWX, [{ key: "search",
  18807. /**
  18808. * POI周边检索
  18809. *
  18810. * @param {Object} options 接口参数对象
  18811. *
  18812. * 参数对象结构可以参考
  18813. * @see http://lbs.qq.com/webservice_v1/guide-search.html
  18814. */value: function search(
  18815. options) {
  18816. var that = this;
  18817. options = options || {};
  18818. Utils.polyfillParam(options);
  18819. if (!Utils.checkKeyword(options)) {
  18820. return;
  18821. }
  18822. var requestParam = {
  18823. keyword: options.keyword,
  18824. orderby: options.orderby || '_distance',
  18825. page_size: options.page_size || 10,
  18826. page_index: options.page_index || 1,
  18827. output: 'json',
  18828. key: that.key };
  18829. if (options.address_format) {
  18830. requestParam.address_format = options.address_format;
  18831. }
  18832. if (options.filter) {
  18833. requestParam.filter = options.filter;
  18834. }
  18835. var distance = options.distance || "1000";
  18836. var auto_extend = options.auto_extend || 1;
  18837. var region = null;
  18838. var rectangle = null;
  18839. //判断城市限定参数
  18840. if (options.region) {
  18841. region = options.region;
  18842. }
  18843. //矩形限定坐标(暂时只支持字符串格式)
  18844. if (options.rectangle) {
  18845. rectangle = options.rectangle;
  18846. }
  18847. var locationsuccess = function locationsuccess(result) {
  18848. if (region && !rectangle) {
  18849. //城市限定参数拼接
  18850. requestParam.boundary = "region(" + region + "," + auto_extend + "," + result.latitude + "," + result.longitude + ")";
  18851. } else if (rectangle && !region) {
  18852. //矩形搜索
  18853. requestParam.boundary = "rectangle(" + rectangle + ")";
  18854. } else {
  18855. requestParam.boundary = "nearby(" + result.latitude + "," + result.longitude + "," + distance + "," + auto_extend + ")";
  18856. }
  18857. wx.request(Utils.buildWxRequestConfig(options, {
  18858. url: URL_SEARCH,
  18859. data: requestParam },
  18860. 'search'));
  18861. };
  18862. Utils.locationProcess(options, locationsuccess);
  18863. } }, { key: "getSuggestion",
  18864. /**
  18865. * sug模糊检索
  18866. *
  18867. * @param {Object} options 接口参数对象
  18868. *
  18869. * 参数对象结构可以参考
  18870. * http://lbs.qq.com/webservice_v1/guide-suggestion.html
  18871. */value: function getSuggestion(
  18872. options) {
  18873. var that = this;
  18874. options = options || {};
  18875. Utils.polyfillParam(options);
  18876. if (!Utils.checkKeyword(options)) {
  18877. return;
  18878. }
  18879. var requestParam = {
  18880. keyword: options.keyword,
  18881. region: options.region || '全国',
  18882. region_fix: options.region_fix || 0,
  18883. policy: options.policy || 0,
  18884. page_size: options.page_size || 10, //控制显示条数
  18885. page_index: options.page_index || 1, //控制页数
  18886. get_subpois: options.get_subpois || 0, //返回子地点
  18887. output: 'json',
  18888. key: that.key };
  18889. //长地址
  18890. if (options.address_format) {
  18891. requestParam.address_format = options.address_format;
  18892. }
  18893. //过滤
  18894. if (options.filter) {
  18895. requestParam.filter = options.filter;
  18896. }
  18897. //排序
  18898. if (options.location) {
  18899. var locationsuccess = function locationsuccess(result) {
  18900. requestParam.location = result.latitude + ',' + result.longitude;
  18901. wx.request(Utils.buildWxRequestConfig(options, {
  18902. url: URL_SUGGESTION,
  18903. data: requestParam },
  18904. "suggest"));
  18905. };
  18906. Utils.locationProcess(options, locationsuccess);
  18907. } else {
  18908. wx.request(Utils.buildWxRequestConfig(options, {
  18909. url: URL_SUGGESTION,
  18910. data: requestParam },
  18911. "suggest"));
  18912. }
  18913. } }, { key: "reverseGeocoder",
  18914. /**
  18915. * 逆地址解析
  18916. *
  18917. * @param {Object} options 接口参数对象
  18918. *
  18919. * 请求参数结构可以参考
  18920. * http://lbs.qq.com/webservice_v1/guide-gcoder.html
  18921. */value: function reverseGeocoder(
  18922. options) {
  18923. console.log(options);
  18924. var that = this;
  18925. options = options || {};
  18926. Utils.polyfillParam(options);
  18927. var requestParam = {
  18928. coord_type: options.coord_type || 5,
  18929. get_poi: options.get_poi || 0,
  18930. output: 'json',
  18931. key: that.key };
  18932. if (options.poi_options) {
  18933. requestParam.poi_options = options.poi_options;
  18934. }
  18935. var locationsuccess = function locationsuccess(result) {
  18936. requestParam.location = result.latitude + ',' + result.longitude;
  18937. wx.request(Utils.buildWxRequestConfig(options, {
  18938. url: URL_GET_GEOCODER,
  18939. data: requestParam },
  18940. 'reverseGeocoder'));
  18941. };
  18942. Utils.locationProcess(options, locationsuccess);
  18943. } }, { key: "geocoder",
  18944. /**
  18945. * 地址解析
  18946. *
  18947. * @param {Object} options 接口参数对象
  18948. *
  18949. * 请求参数结构可以参考
  18950. * http://lbs.qq.com/webservice_v1/guide-geocoder.html
  18951. */value: function geocoder(
  18952. options) {
  18953. var that = this;
  18954. options = options || {};
  18955. Utils.polyfillParam(options);
  18956. if (Utils.checkParamKeyEmpty(options, 'address')) {
  18957. return;
  18958. }
  18959. var requestParam = {
  18960. address: options.address,
  18961. output: 'json',
  18962. key: that.key };
  18963. //城市限定
  18964. if (options.region) {
  18965. requestParam.region = options.region;
  18966. }
  18967. wx.request(Utils.buildWxRequestConfig(options, {
  18968. url: URL_GET_GEOCODER,
  18969. data: requestParam },
  18970. 'geocoder'));
  18971. } }, { key: "getCityList",
  18972. /**
  18973. * 获取城市列表
  18974. *
  18975. * @param {Object} options 接口参数对象
  18976. *
  18977. * 请求参数结构可以参考
  18978. * http://lbs.qq.com/webservice_v1/guide-region.html
  18979. */value: function getCityList(
  18980. options) {
  18981. var that = this;
  18982. options = options || {};
  18983. Utils.polyfillParam(options);
  18984. var requestParam = {
  18985. output: 'json',
  18986. key: that.key };
  18987. wx.request(Utils.buildWxRequestConfig(options, {
  18988. url: URL_CITY_LIST,
  18989. data: requestParam },
  18990. 'getCityList'));
  18991. } }, { key: "getDistrictByCityId",
  18992. /**
  18993. * 获取对应城市ID的区县列表
  18994. *
  18995. * @param {Object} options 接口参数对象
  18996. *
  18997. * 请求参数结构可以参考
  18998. * http://lbs.qq.com/webservice_v1/guide-region.html
  18999. */value: function getDistrictByCityId(
  19000. options) {
  19001. var that = this;
  19002. options = options || {};
  19003. Utils.polyfillParam(options);
  19004. if (Utils.checkParamKeyEmpty(options, 'id')) {
  19005. return;
  19006. }
  19007. var requestParam = {
  19008. id: options.id || '',
  19009. output: 'json',
  19010. key: that.key };
  19011. wx.request(Utils.buildWxRequestConfig(options, {
  19012. url: URL_AREA_LIST,
  19013. data: requestParam },
  19014. 'getDistrictByCityId'));
  19015. } }, { key: "calculateDistance",
  19016. /**
  19017. * 用于单起点到多终点的路线距离(非直线距离)计算:
  19018. * 支持两种距离计算方式:步行和驾车。
  19019. * 起点到终点最大限制直线距离10公里。
  19020. *
  19021. * 新增直线距离计算。
  19022. *
  19023. * @param {Object} options 接口参数对象
  19024. *
  19025. * 请求参数结构可以参考
  19026. * http://lbs.qq.com/webservice_v1/guide-distance.html
  19027. */value: function calculateDistance(
  19028. options) {
  19029. var that = this;
  19030. options = options || {};
  19031. Utils.polyfillParam(options);
  19032. if (Utils.checkParamKeyEmpty(options, 'to')) {
  19033. return;
  19034. }
  19035. var requestParam = {
  19036. mode: options.mode || 'walking',
  19037. to: Utils.location2query(options.to),
  19038. output: 'json',
  19039. key: that.key };
  19040. if (options.from) {
  19041. options.location = options.from;
  19042. }
  19043. //计算直线距离
  19044. if (requestParam.mode == 'straight') {
  19045. var locationsuccess = function locationsuccess(result) {
  19046. var locationTo = Utils.getEndLocation(requestParam.to); //处理终点坐标
  19047. var data = {
  19048. message: "query ok",
  19049. result: {
  19050. elements: [] },
  19051. status: 0 };
  19052. for (var i = 0; i < locationTo.length; i++) {
  19053. data.result.elements.push({ //将坐标存入
  19054. distance: Utils.getDistance(result.latitude, result.longitude, locationTo[i].lat, locationTo[i].lng),
  19055. duration: 0,
  19056. from: {
  19057. lat: result.latitude,
  19058. lng: result.longitude },
  19059. to: {
  19060. lat: locationTo[i].lat,
  19061. lng: locationTo[i].lng } });
  19062. }
  19063. var calculateResult = data.result.elements;
  19064. var distanceResult = [];
  19065. for (var i = 0; i < calculateResult.length; i++) {
  19066. distanceResult.push(calculateResult[i].distance);
  19067. }
  19068. return options.success(data, {
  19069. calculateResult: calculateResult,
  19070. distanceResult: distanceResult });
  19071. };
  19072. Utils.locationProcess(options, locationsuccess);
  19073. } else {
  19074. var locationsuccess = function locationsuccess(result) {
  19075. requestParam.from = result.latitude + ',' + result.longitude;
  19076. wx.request(Utils.buildWxRequestConfig(options, {
  19077. url: URL_DISTANCE,
  19078. data: requestParam },
  19079. 'calculateDistance'));
  19080. };
  19081. Utils.locationProcess(options, locationsuccess);
  19082. }
  19083. } }]);return QQMapWX;}();
  19084. ;
  19085. module.exports = QQMapWX;
  19086. /***/ }),
  19087. /* 147 */
  19088. /*!*******************************************************!*\
  19089. !*** E:/代码/cbz/cbz/cbz/static/js/weapp.qrcode.min.js ***!
  19090. \*******************************************************/
  19091. /*! no static exports found */
  19092. /***/ (function(module, exports, __webpack_require__) {
  19093. /**
  19094. * weapp.qrcode.js v1.0.0 (https://github.com/yingye/weapp-qrcode#readme)
  19095. * js画二维码
  19096. * 花伴侬
  19097. */
  19098. !function (t, e) { true ? module.exports = e() : undefined;}(this, function () {"use strict";var t = Object.prototype.hasOwnProperty,e = Object.prototype.toString,r = Object.defineProperty,o = Object.getOwnPropertyDescriptor,n = function n(t) {return "function" == typeof Array.isArray ? Array.isArray(t) : "[object Array]" === e.call(t);},i = function i(r) {if (!r || "[object Object]" !== e.call(r)) return !1;var o,n = t.call(r, "constructor"),i = r.constructor && r.constructor.prototype && t.call(r.constructor.prototype, "isPrototypeOf");if (r.constructor && !n && !i) return !1;for (o in r) {;}return void 0 === o || t.call(r, o);},a = function a(t, e) {r && "__proto__" === e.name ? r(t, e.name, { enumerable: !0, configurable: !0, value: e.newValue, writable: !0 }) : t[e.name] = e.newValue;},u = function u(e, r) {if ("__proto__" === r) {if (!t.call(e, r)) return;if (o) return o(e, r).value;}return e[r];},s = function t() {var e,r,o,s,h,l,f = arguments[0],g = 1,c = arguments.length,d = !1;for ("boolean" == typeof f && (d = f, f = arguments[1] || {}, g = 2), (null == f || "object" != typeof f && "function" != typeof f) && (f = {}); g < c; ++g) {if (null != (e = arguments[g])) for (r in e) {o = u(f, r), f !== (s = u(e, r)) && (d && s && (i(s) || (h = n(s))) ? (h ? (h = !1, l = o && n(o) ? o : []) : l = o && i(o) ? o : {}, a(f, { name: r, newValue: t(d, l, s) })) : void 0 !== s && a(f, { name: r, newValue: s }));}}return f;};function h(t) {this.mode = f.MODE_8BIT_BYTE, this.data = t;}function l(t, e) {this.typeNumber = t, this.errorCorrectLevel = e, this.modules = null, this.moduleCount = 0, this.dataCache = null, this.dataList = new Array();}h.prototype = { getLength: function getLength(t) {return this.data.length;}, write: function write(t) {for (var e = 0; e < this.data.length; e++) {t.put(this.data.charCodeAt(e), 8);}} }, l.prototype = { addData: function addData(t) {var e = new h(t);this.dataList.push(e), this.dataCache = null;}, isDark: function isDark(t, e) {if (t < 0 || this.moduleCount <= t || e < 0 || this.moduleCount <= e) throw new Error(t + "," + e);return this.modules[t][e];}, getModuleCount: function getModuleCount() {return this.moduleCount;}, make: function make() {if (this.typeNumber < 1) {var t = 1;for (t = 1; t < 40; t++) {for (var e = _.getRSBlocks(t, this.errorCorrectLevel), r = new D(), o = 0, n = 0; n < e.length; n++) {o += e[n].dataCount;}for (n = 0; n < this.dataList.length; n++) {var i = this.dataList[n];r.put(i.mode, 4), r.put(i.getLength(), w.getLengthInBits(i.mode, t)), i.write(r);}if (r.getLengthInBits() <= 8 * o) break;}this.typeNumber = t;}this.makeImpl(!1, this.getBestMaskPattern());}, makeImpl: function makeImpl(t, e) {this.moduleCount = 4 * this.typeNumber + 17, this.modules = new Array(this.moduleCount);for (var r = 0; r < this.moduleCount; r++) {this.modules[r] = new Array(this.moduleCount);for (var o = 0; o < this.moduleCount; o++) {this.modules[r][o] = null;}}this.setupPositionProbePattern(0, 0), this.setupPositionProbePattern(this.moduleCount - 7, 0), this.setupPositionProbePattern(0, this.moduleCount - 7), this.setupPositionAdjustPattern(), this.setupTimingPattern(), this.setupTypeInfo(t, e), this.typeNumber >= 7 && this.setupTypeNumber(t), null == this.dataCache && (this.dataCache = l.createData(this.typeNumber, this.errorCorrectLevel, this.dataList)), this.mapData(this.dataCache, e);}, setupPositionProbePattern: function setupPositionProbePattern(t, e) {for (var r = -1; r <= 7; r++) {if (!(t + r <= -1 || this.moduleCount <= t + r)) for (var o = -1; o <= 7; o++) {e + o <= -1 || this.moduleCount <= e + o || (this.modules[t + r][e + o] = 0 <= r && r <= 6 && (0 == o || 6 == o) || 0 <= o && o <= 6 && (0 == r || 6 == r) || 2 <= r && r <= 4 && 2 <= o && o <= 4);}}}, getBestMaskPattern: function getBestMaskPattern() {for (var t = 0, e = 0, r = 0; r < 8; r++) {this.makeImpl(!0, r);var o = w.getLostPoint(this);(0 == r || t > o) && (t = o, e = r);}return e;}, createMovieClip: function createMovieClip(t, e, r) {var o = t.createEmptyMovieClip(e, r);this.make();for (var n = 0; n < this.modules.length; n++) {for (var i = 1 * n, a = 0; a < this.modules[n].length; a++) {var u = 1 * a;this.modules[n][a] && (o.beginFill(0, 100), o.moveTo(u, i), o.lineTo(u + 1, i), o.lineTo(u + 1, i + 1), o.lineTo(u, i + 1), o.endFill());}}return o;}, setupTimingPattern: function setupTimingPattern() {for (var t = 8; t < this.moduleCount - 8; t++) {null == this.modules[t][6] && (this.modules[t][6] = t % 2 == 0);}for (var e = 8; e < this.moduleCount - 8; e++) {null == this.modules[6][e] && (this.modules[6][e] = e % 2 == 0);}}, setupPositionAdjustPattern: function setupPositionAdjustPattern() {for (var t = w.getPatternPosition(this.typeNumber), e = 0; e < t.length; e++) {for (var r = 0; r < t.length; r++) {var o = t[e],n = t[r];if (null == this.modules[o][n]) for (var i = -2; i <= 2; i++) {for (var a = -2; a <= 2; a++) {this.modules[o + i][n + a] = -2 == i || 2 == i || -2 == a || 2 == a || 0 == i && 0 == a;}}}}}, setupTypeNumber: function setupTypeNumber(t) {for (var e = w.getBCHTypeNumber(this.typeNumber), r = 0; r < 18; r++) {var o = !t && 1 == (e >> r & 1);this.modules[Math.floor(r / 3)][r % 3 + this.moduleCount - 8 - 3] = o;}for (r = 0; r < 18; r++) {o = !t && 1 == (e >> r & 1);this.modules[r % 3 + this.moduleCount - 8 - 3][Math.floor(r / 3)] = o;}}, setupTypeInfo: function setupTypeInfo(t, e) {for (var r = this.errorCorrectLevel << 3 | e, o = w.getBCHTypeInfo(r), n = 0; n < 15; n++) {var i = !t && 1 == (o >> n & 1);n < 6 ? this.modules[n][8] = i : n < 8 ? this.modules[n + 1][8] = i : this.modules[this.moduleCount - 15 + n][8] = i;}for (n = 0; n < 15; n++) {i = !t && 1 == (o >> n & 1);n < 8 ? this.modules[8][this.moduleCount - n - 1] = i : n < 9 ? this.modules[8][15 - n - 1 + 1] = i : this.modules[8][15 - n - 1] = i;}this.modules[this.moduleCount - 8][8] = !t;}, mapData: function mapData(t, e) {for (var r = -1, o = this.moduleCount - 1, n = 7, i = 0, a = this.moduleCount - 1; a > 0; a -= 2) {for (6 == a && a--;;) {for (var u = 0; u < 2; u++) {if (null == this.modules[o][a - u]) {var s = !1;i < t.length && (s = 1 == (t[i] >>> n & 1)), w.getMask(e, o, a - u) && (s = !s), this.modules[o][a - u] = s, -1 == --n && (i++, n = 7);}}if ((o += r) < 0 || this.moduleCount <= o) {o -= r, r = -r;break;}}}} }, l.PAD0 = 236, l.PAD1 = 17, l.createData = function (t, e, r) {for (var o = _.getRSBlocks(t, e), n = new D(), i = 0; i < r.length; i++) {var a = r[i];n.put(a.mode, 4), n.put(a.getLength(), w.getLengthInBits(a.mode, t)), a.write(n);}var u = 0;for (i = 0; i < o.length; i++) {u += o[i].dataCount;}if (n.getLengthInBits() > 8 * u) throw new Error("code length overflow. (" + n.getLengthInBits() + ">" + 8 * u + ")");for (n.getLengthInBits() + 4 <= 8 * u && n.put(0, 4); n.getLengthInBits() % 8 != 0;) {n.putBit(!1);}for (; !(n.getLengthInBits() >= 8 * u || (n.put(l.PAD0, 8), n.getLengthInBits() >= 8 * u));) {n.put(l.PAD1, 8);}return l.createBytes(n, o);}, l.createBytes = function (t, e) {for (var r = 0, o = 0, n = 0, i = new Array(e.length), a = new Array(e.length), u = 0; u < e.length; u++) {var s = e[u].dataCount,h = e[u].totalCount - s;o = Math.max(o, s), n = Math.max(n, h), i[u] = new Array(s);for (var l = 0; l < i[u].length; l++) {i[u][l] = 255 & t.buffer[l + r];}r += s;var f = w.getErrorCorrectPolynomial(h),g = new A(i[u], f.getLength() - 1).mod(f);a[u] = new Array(f.getLength() - 1);for (l = 0; l < a[u].length; l++) {var c = l + g.getLength() - a[u].length;a[u][l] = c >= 0 ? g.get(c) : 0;}}var d = 0;for (l = 0; l < e.length; l++) {d += e[l].totalCount;}var m = new Array(d),v = 0;for (l = 0; l < o; l++) {for (u = 0; u < e.length; u++) {l < i[u].length && (m[v++] = i[u][l]);}}for (l = 0; l < n; l++) {for (u = 0; u < e.length; u++) {l < a[u].length && (m[v++] = a[u][l]);}}return m;};for (var f = { MODE_NUMBER: 1, MODE_ALPHA_NUM: 2, MODE_8BIT_BYTE: 4, MODE_KANJI: 8 }, g = { L: 1, M: 0, Q: 3, H: 2 }, c = 0, d = 1, m = 2, v = 3, p = 4, C = 5, B = 6, L = 7, w = { PATTERN_POSITION_TABLE: [[], [6, 18], [6, 22], [6, 26], [6, 30], [6, 34], [6, 22, 38], [6, 24, 42], [6, 26, 46], [6, 28, 50], [6, 30, 54], [6, 32, 58], [6, 34, 62], [6, 26, 46, 66], [6, 26, 48, 70], [6, 26, 50, 74], [6, 30, 54, 78], [6, 30, 56, 82], [6, 30, 58, 86], [6, 34, 62, 90], [6, 28, 50, 72, 94], [6, 26, 50, 74, 98], [6, 30, 54, 78, 102], [6, 28, 54, 80, 106], [6, 32, 58, 84, 110], [6, 30, 58, 86, 114], [6, 34, 62, 90, 118], [6, 26, 50, 74, 98, 122], [6, 30, 54, 78, 102, 126], [6, 26, 52, 78, 104, 130], [6, 30, 56, 82, 108, 134], [6, 34, 60, 86, 112, 138], [6, 30, 58, 86, 114, 142], [6, 34, 62, 90, 118, 146], [6, 30, 54, 78, 102, 126, 150], [6, 24, 50, 76, 102, 128, 154], [6, 28, 54, 80, 106, 132, 158], [6, 32, 58, 84, 110, 136, 162], [6, 26, 54, 82, 110, 138, 166], [6, 30, 58, 86, 114, 142, 170]], G15: 1335, G18: 7973, G15_MASK: 21522, getBCHTypeInfo: function getBCHTypeInfo(t) {for (var e = t << 10; w.getBCHDigit(e) - w.getBCHDigit(w.G15) >= 0;) {e ^= w.G15 << w.getBCHDigit(e) - w.getBCHDigit(w.G15);}return (t << 10 | e) ^ w.G15_MASK;}, getBCHTypeNumber: function getBCHTypeNumber(t) {for (var e = t << 12; w.getBCHDigit(e) - w.getBCHDigit(w.G18) >= 0;) {e ^= w.G18 << w.getBCHDigit(e) - w.getBCHDigit(w.G18);}return t << 12 | e;}, getBCHDigit: function getBCHDigit(t) {for (var e = 0; 0 != t;) {e++, t >>>= 1;}return e;}, getPatternPosition: function getPatternPosition(t) {return w.PATTERN_POSITION_TABLE[t - 1];}, getMask: function getMask(t, e, r) {switch (t) {case c:return (e + r) % 2 == 0;case d:return e % 2 == 0;case m:return r % 3 == 0;case v:return (e + r) % 3 == 0;case p:return (Math.floor(e / 2) + Math.floor(r / 3)) % 2 == 0;case C:return e * r % 2 + e * r % 3 == 0;case B:return (e * r % 2 + e * r % 3) % 2 == 0;case L:return (e * r % 3 + (e + r) % 2) % 2 == 0;default:throw new Error("bad maskPattern:" + t);}}, getErrorCorrectPolynomial: function getErrorCorrectPolynomial(t) {for (var e = new A([1], 0), r = 0; r < t; r++) {e = e.multiply(new A([1, y.gexp(r)], 0));}return e;}, getLengthInBits: function getLengthInBits(t, e) {if (1 <= e && e < 10) switch (t) {case f.MODE_NUMBER:return 10;case f.MODE_ALPHA_NUM:return 9;case f.MODE_8BIT_BYTE:case f.MODE_KANJI:return 8;default:throw new Error("mode:" + t);} else if (e < 27) switch (t) {case f.MODE_NUMBER:return 12;case f.MODE_ALPHA_NUM:return 11;case f.MODE_8BIT_BYTE:return 16;case f.MODE_KANJI:return 10;default:throw new Error("mode:" + t);} else {if (!(e < 41)) throw new Error("type:" + e);switch (t) {case f.MODE_NUMBER:return 14;case f.MODE_ALPHA_NUM:return 13;case f.MODE_8BIT_BYTE:return 16;case f.MODE_KANJI:return 12;default:throw new Error("mode:" + t);}}}, getLostPoint: function getLostPoint(t) {for (var e = t.getModuleCount(), r = 0, o = 0; o < e; o++) {for (var n = 0; n < e; n++) {for (var i = 0, a = t.isDark(o, n), u = -1; u <= 1; u++) {if (!(o + u < 0 || e <= o + u)) for (var s = -1; s <= 1; s++) {n + s < 0 || e <= n + s || 0 == u && 0 == s || a == t.isDark(o + u, n + s) && i++;}}i > 5 && (r += 3 + i - 5);}}for (o = 0; o < e - 1; o++) {for (n = 0; n < e - 1; n++) {var h = 0;t.isDark(o, n) && h++, t.isDark(o + 1, n) && h++, t.isDark(o, n + 1) && h++, t.isDark(o + 1, n + 1) && h++, 0 != h && 4 != h || (r += 3);}}for (o = 0; o < e; o++) {for (n = 0; n < e - 6; n++) {t.isDark(o, n) && !t.isDark(o, n + 1) && t.isDark(o, n + 2) && t.isDark(o, n + 3) && t.isDark(o, n + 4) && !t.isDark(o, n + 5) && t.isDark(o, n + 6) && (r += 40);}}for (n = 0; n < e; n++) {for (o = 0; o < e - 6; o++) {t.isDark(o, n) && !t.isDark(o + 1, n) && t.isDark(o + 2, n) && t.isDark(o + 3, n) && t.isDark(o + 4, n) && !t.isDark(o + 5, n) && t.isDark(o + 6, n) && (r += 40);}}var l = 0;for (n = 0; n < e; n++) {for (o = 0; o < e; o++) {t.isDark(o, n) && l++;}}return r += 10 * (Math.abs(100 * l / e / e - 50) / 5);} }, y = { glog: function glog(t) {if (t < 1) throw new Error("glog(" + t + ")");return y.LOG_TABLE[t];}, gexp: function gexp(t) {for (; t < 0;) {t += 255;}for (; t >= 256;) {t -= 255;}return y.EXP_TABLE[t];}, EXP_TABLE: new Array(256), LOG_TABLE: new Array(256) }, E = 0; E < 8; E++) {y.EXP_TABLE[E] = 1 << E;}for (E = 8; E < 256; E++) {y.EXP_TABLE[E] = y.EXP_TABLE[E - 4] ^ y.EXP_TABLE[E - 5] ^ y.EXP_TABLE[E - 6] ^ y.EXP_TABLE[E - 8];}for (E = 0; E < 255; E++) {y.LOG_TABLE[y.EXP_TABLE[E]] = E;}function A(t, e) {if (void 0 == t.length) throw new Error(t.length + "/" + e);for (var r = 0; r < t.length && 0 == t[r];) {r++;}this.num = new Array(t.length - r + e);for (var o = 0; o < t.length - r; o++) {this.num[o] = t[o + r];}}function _(t, e) {this.totalCount = t, this.dataCount = e;}function D() {this.buffer = new Array(), this.length = 0;}return A.prototype = { get: function get(t) {return this.num[t];}, getLength: function getLength() {return this.num.length;}, multiply: function multiply(t) {for (var e = new Array(this.getLength() + t.getLength() - 1), r = 0; r < this.getLength(); r++) {for (var o = 0; o < t.getLength(); o++) {e[r + o] ^= y.gexp(y.glog(this.get(r)) + y.glog(t.get(o)));}}return new A(e, 0);}, mod: function mod(t) {if (this.getLength() - t.getLength() < 0) return this;for (var e = y.glog(this.get(0)) - y.glog(t.get(0)), r = new Array(this.getLength()), o = 0; o < this.getLength(); o++) {r[o] = this.get(o);}for (o = 0; o < t.getLength(); o++) {r[o] ^= y.gexp(y.glog(t.get(o)) + e);}return new A(r, 0).mod(t);} }, _.RS_BLOCK_TABLE = [[1, 26, 19], [1, 26, 16], [1, 26, 13], [1, 26, 9], [1, 44, 34], [1, 44, 28], [1, 44, 22], [1, 44, 16], [1, 70, 55], [1, 70, 44], [2, 35, 17], [2, 35, 13], [1, 100, 80], [2, 50, 32], [2, 50, 24], [4, 25, 9], [1, 134, 108], [2, 67, 43], [2, 33, 15, 2, 34, 16], [2, 33, 11, 2, 34, 12], [2, 86, 68], [4, 43, 27], [4, 43, 19], [4, 43, 15], [2, 98, 78], [4, 49, 31], [2, 32, 14, 4, 33, 15], [4, 39, 13, 1, 40, 14], [2, 121, 97], [2, 60, 38, 2, 61, 39], [4, 40, 18, 2, 41, 19], [4, 40, 14, 2, 41, 15], [2, 146, 116], [3, 58, 36, 2, 59, 37], [4, 36, 16, 4, 37, 17], [4, 36, 12, 4, 37, 13], [2, 86, 68, 2, 87, 69], [4, 69, 43, 1, 70, 44], [6, 43, 19, 2, 44, 20], [6, 43, 15, 2, 44, 16], [4, 101, 81], [1, 80, 50, 4, 81, 51], [4, 50, 22, 4, 51, 23], [3, 36, 12, 8, 37, 13], [2, 116, 92, 2, 117, 93], [6, 58, 36, 2, 59, 37], [4, 46, 20, 6, 47, 21], [7, 42, 14, 4, 43, 15], [4, 133, 107], [8, 59, 37, 1, 60, 38], [8, 44, 20, 4, 45, 21], [12, 33, 11, 4, 34, 12], [3, 145, 115, 1, 146, 116], [4, 64, 40, 5, 65, 41], [11, 36, 16, 5, 37, 17], [11, 36, 12, 5, 37, 13], [5, 109, 87, 1, 110, 88], [5, 65, 41, 5, 66, 42], [5, 54, 24, 7, 55, 25], [11, 36, 12], [5, 122, 98, 1, 123, 99], [7, 73, 45, 3, 74, 46], [15, 43, 19, 2, 44, 20], [3, 45, 15, 13, 46, 16], [1, 135, 107, 5, 136, 108], [10, 74, 46, 1, 75, 47], [1, 50, 22, 15, 51, 23], [2, 42, 14, 17, 43, 15], [5, 150, 120, 1, 151, 121], [9, 69, 43, 4, 70, 44], [17, 50, 22, 1, 51, 23], [2, 42, 14, 19, 43, 15], [3, 141, 113, 4, 142, 114], [3, 70, 44, 11, 71, 45], [17, 47, 21, 4, 48, 22], [9, 39, 13, 16, 40, 14], [3, 135, 107, 5, 136, 108], [3, 67, 41, 13, 68, 42], [15, 54, 24, 5, 55, 25], [15, 43, 15, 10, 44, 16], [4, 144, 116, 4, 145, 117], [17, 68, 42], [17, 50, 22, 6, 51, 23], [19, 46, 16, 6, 47, 17], [2, 139, 111, 7, 140, 112], [17, 74, 46], [7, 54, 24, 16, 55, 25], [34, 37, 13], [4, 151, 121, 5, 152, 122], [4, 75, 47, 14, 76, 48], [11, 54, 24, 14, 55, 25], [16, 45, 15, 14, 46, 16], [6, 147, 117, 4, 148, 118], [6, 73, 45, 14, 74, 46], [11, 54, 24, 16, 55, 25], [30, 46, 16, 2, 47, 17], [8, 132, 106, 4, 133, 107], [8, 75, 47, 13, 76, 48], [7, 54, 24, 22, 55, 25], [22, 45, 15, 13, 46, 16], [10, 142, 114, 2, 143, 115], [19, 74, 46, 4, 75, 47], [28, 50, 22, 6, 51, 23], [33, 46, 16, 4, 47, 17], [8, 152, 122, 4, 153, 123], [22, 73, 45, 3, 74, 46], [8, 53, 23, 26, 54, 24], [12, 45, 15, 28, 46, 16], [3, 147, 117, 10, 148, 118], [3, 73, 45, 23, 74, 46], [4, 54, 24, 31, 55, 25], [11, 45, 15, 31, 46, 16], [7, 146, 116, 7, 147, 117], [21, 73, 45, 7, 74, 46], [1, 53, 23, 37, 54, 24], [19, 45, 15, 26, 46, 16], [5, 145, 115, 10, 146, 116], [19, 75, 47, 10, 76, 48], [15, 54, 24, 25, 55, 25], [23, 45, 15, 25, 46, 16], [13, 145, 115, 3, 146, 116], [2, 74, 46, 29, 75, 47], [42, 54, 24, 1, 55, 25], [23, 45, 15, 28, 46, 16], [17, 145, 115], [10, 74, 46, 23, 75, 47], [10, 54, 24, 35, 55, 25], [19, 45, 15, 35, 46, 16], [17, 145, 115, 1, 146, 116], [14, 74, 46, 21, 75, 47], [29, 54, 24, 19, 55, 25], [11, 45, 15, 46, 46, 16], [13, 145, 115, 6, 146, 116], [14, 74, 46, 23, 75, 47], [44, 54, 24, 7, 55, 25], [59, 46, 16, 1, 47, 17], [12, 151, 121, 7, 152, 122], [12, 75, 47, 26, 76, 48], [39, 54, 24, 14, 55, 25], [22, 45, 15, 41, 46, 16], [6, 151, 121, 14, 152, 122], [6, 75, 47, 34, 76, 48], [46, 54, 24, 10, 55, 25], [2, 45, 15, 64, 46, 16], [17, 152, 122, 4, 153, 123], [29, 74, 46, 14, 75, 47], [49, 54, 24, 10, 55, 25], [24, 45, 15, 46, 46, 16], [4, 152, 122, 18, 153, 123], [13, 74, 46, 32, 75, 47], [48, 54, 24, 14, 55, 25], [42, 45, 15, 32, 46, 16], [20, 147, 117, 4, 148, 118], [40, 75, 47, 7, 76, 48], [43, 54, 24, 22, 55, 25], [10, 45, 15, 67, 46, 16], [19, 148, 118, 6, 149, 119], [18, 75, 47, 31, 76, 48], [34, 54, 24, 34, 55, 25], [20, 45, 15, 61, 46, 16]], _.getRSBlocks = function (t, e) {var r = _.getRsBlockTable(t, e);if (void 0 == r) throw new Error("bad rs block @ typeNumber:" + t + "/errorCorrectLevel:" + e);for (var o = r.length / 3, n = new Array(), i = 0; i < o; i++) {for (var a = r[3 * i + 0], u = r[3 * i + 1], s = r[3 * i + 2], h = 0; h < a; h++) {n.push(new _(u, s));}}return n;}, _.getRsBlockTable = function (t, e) {switch (e) {case g.L:return _.RS_BLOCK_TABLE[4 * (t - 1) + 0];case g.M:return _.RS_BLOCK_TABLE[4 * (t - 1) + 1];case g.Q:return _.RS_BLOCK_TABLE[4 * (t - 1) + 2];case g.H:return _.RS_BLOCK_TABLE[4 * (t - 1) + 3];default:return;}}, D.prototype = { get: function get(t) {var e = Math.floor(t / 8);return 1 == (this.buffer[e] >>> 7 - t % 8 & 1);}, put: function put(t, e) {for (var r = 0; r < e; r++) {this.putBit(1 == (t >>> e - r - 1 & 1));}}, getLengthInBits: function getLengthInBits() {return this.length;}, putBit: function putBit(t) {var e = Math.floor(this.length / 8);this.buffer.length <= e && this.buffer.push(0), t && (this.buffer[e] |= 128 >>> this.length % 8), this.length++;} }, function (t) {t = t || {}, (t = s(!0, { width: 256, height: 256, x: 0, y: 0, typeNumber: -1, correctLevel: g.H, background: "#ffffff", foreground: "#000000", image: { imageResource: "", dx: 0, dy: 0, dWidth: 100, dHeight: 100 } }, t)).canvasId || t.ctx ? function () {var e,r = new l(t.typeNumber, t.correctLevel);r.addData(function (t) {var e, r, o, n;for (e = "", o = t.length, r = 0; r < o; r++) {(n = t.charCodeAt(r)) >= 1 && n <= 127 ? e += t.charAt(r) : n > 2047 ? (e += String.fromCharCode(224 | n >> 12 & 15), e += String.fromCharCode(128 | n >> 6 & 63), e += String.fromCharCode(128 | n >> 0 & 63)) : (e += String.fromCharCode(192 | n >> 6 & 31), e += String.fromCharCode(128 | n >> 0 & 63));}return e;}(t.text)), r.make(), e = t.ctx ? t.ctx : t._this ? wx.createCanvasContext && wx.createCanvasContext(t.canvasId, t._this) : wx.createCanvasContext && wx.createCanvasContext(t.canvasId);for (var o = t.width / r.getModuleCount(), n = t.height / r.getModuleCount(), i = 0; i < r.getModuleCount(); i++) {for (var a = 0; a < r.getModuleCount(); a++) {var u = r.isDark(i, a) ? t.foreground : t.background;e.setFillStyle(u);var s = Math.ceil((a + 1) * o) - Math.floor(a * o),h = Math.ceil((i + 1) * o) - Math.floor(i * o);e.fillRect(Math.round(a * o) + t.x, Math.round(i * n) + t.y, s, h);}}t.image.imageResource && e.drawImage(t.image.imageResource, t.image.dx, t.image.dy, t.image.dWidth, t.image.dHeight), e.draw(!1, function (e) {t.callback && t.callback(e);});}() : console.warn("please set canvasId or ctx!");};});
  19099. /***/ }),
  19100. /* 148 */,
  19101. /* 149 */,
  19102. /* 150 */,
  19103. /* 151 */,
  19104. /* 152 */,
  19105. /* 153 */,
  19106. /* 154 */,
  19107. /* 155 */,
  19108. /* 156 */,
  19109. /* 157 */,
  19110. /* 158 */,
  19111. /* 159 */,
  19112. /* 160 */,
  19113. /* 161 */,
  19114. /* 162 */,
  19115. /* 163 */,
  19116. /* 164 */,
  19117. /* 165 */,
  19118. /* 166 */,
  19119. /* 167 */,
  19120. /* 168 */,
  19121. /* 169 */,
  19122. /* 170 */,
  19123. /* 171 */,
  19124. /* 172 */,
  19125. /* 173 */,
  19126. /* 174 */,
  19127. /* 175 */,
  19128. /* 176 */,
  19129. /* 177 */,
  19130. /* 178 */,
  19131. /* 179 */,
  19132. /* 180 */,
  19133. /* 181 */,
  19134. /* 182 */,
  19135. /* 183 */,
  19136. /* 184 */,
  19137. /* 185 */,
  19138. /* 186 */,
  19139. /* 187 */,
  19140. /* 188 */,
  19141. /* 189 */,
  19142. /* 190 */,
  19143. /* 191 */,
  19144. /* 192 */,
  19145. /* 193 */,
  19146. /* 194 */,
  19147. /* 195 */,
  19148. /* 196 */,
  19149. /* 197 */,
  19150. /* 198 */,
  19151. /* 199 */,
  19152. /* 200 */,
  19153. /* 201 */,
  19154. /* 202 */,
  19155. /* 203 */,
  19156. /* 204 */,
  19157. /* 205 */,
  19158. /* 206 */,
  19159. /* 207 */,
  19160. /* 208 */,
  19161. /* 209 */,
  19162. /* 210 */
  19163. /*!**************************************************************!*\
  19164. !*** E:/代码/cbz/cbz/cbz/page_index/pages/index/cityList.json ***!
  19165. \**************************************************************/
  19166. /*! exports provided: city_list, default */
  19167. /***/ (function(module) {
  19168. module.exports = JSON.parse("{\"city_list\":[[{\"title\":\"A\",\"code\":\"152900\",\"city\":\"阿拉善盟\"},{\"code\":\"210300\",\"city\":\"鞍山\"},{\"code\":\"340800\",\"city\":\"安庆\"},{\"code\":\"410500\",\"city\":\"安阳\"},{\"code\":\"513200\",\"city\":\"阿坝藏族羌族自治州\"},{\"code\":\"520400\",\"city\":\"安顺\"},{\"code\":\"542500\",\"city\":\"阿里地区\"},{\"code\":\"610900\",\"city\":\"安康\"},{\"code\":\"652900\",\"city\":\"阿克苏地区\"},{\"code\":\"654300\",\"city\":\"阿勒泰地区\"},{\"code\":\"820100\",\"city\":\"澳门半岛\"}],[{\"code\":\"110100\",\"city\":\"北京\"},{\"code\":\"130600\",\"city\":\"保定\"},{\"code\":\"150200\",\"city\":\"包头\"},{\"code\":\"150800\",\"city\":\"巴彦淖尔\"},{\"code\":\"210500\",\"city\":\"本溪\"},{\"code\":\"220600\",\"city\":\"白山\"},{\"code\":\"220800\",\"city\":\"白城\"},{\"code\":\"340300\",\"city\":\"蚌埠\"},{\"code\":\"371600\",\"city\":\"滨州\"},{\"code\":\"450500\",\"city\":\"北海\"},{\"code\":\"451000\",\"city\":\"百色\"},{\"code\":\"511900\",\"city\":\"巴中\"},{\"code\":\"522400\",\"city\":\"毕节地区\"},{\"code\":\"530500\",\"city\":\"保山\"},{\"code\":\"610300\",\"city\":\"宝鸡\"},{\"code\":\"620400\",\"city\":\"白银\"},{\"code\":\"652700\",\"city\":\"博尔塔拉蒙古自治州\"},{\"code\":\"652800\",\"city\":\"巴音郭楞蒙古自治州\"}],[{\"code\":\"130800\",\"city\":\"承德\"},{\"code\":\"130900\",\"city\":\"沧州\"},{\"code\":\"140400\",\"city\":\"长治\"},{\"code\":\"150400\",\"city\":\"赤峰\"},{\"code\":\"211300\",\"city\":\"朝阳\"},{\"code\":\"220100\",\"city\":\"长春\"},{\"code\":\"320400\",\"city\":\"常州\"},{\"code\":\"341100\",\"city\":\"滁州\"},{\"code\":\"341700\",\"city\":\"池州\"},{\"code\":\"430100\",\"city\":\"长沙\"},{\"code\":\"430700\",\"city\":\"常德\"},{\"code\":\"431000\",\"city\":\"郴州\"},{\"code\":\"445100\",\"city\":\"潮州\"},{\"code\":\"451400\",\"city\":\"崇左\"},{\"code\":\"510100\",\"city\":\"成都\"},{\"code\":\"500100\",\"city\":\"重庆\"},{\"code\":\"532300\",\"city\":\"楚雄彝族自治州\"},{\"code\":\"542100\",\"city\":\"昌都地区\"},{\"code\":\"652300\",\"city\":\"昌吉回族自治州\"}],[{\"code\":\"140200\",\"city\":\"大同\"},{\"code\":\"210200\",\"city\":\"大连\"},{\"code\":\"210600\",\"city\":\"丹东\"},{\"code\":\"230600\",\"city\":\"大庆\"},{\"code\":\"232700\",\"city\":\"大兴安岭地区\"},{\"code\":\"370500\",\"city\":\"东营\"},{\"code\":\"371400\",\"city\":\"德州\"},{\"code\":\"441900\",\"city\":\"东莞\"},{\"code\":\"510600\",\"city\":\"德阳\"},{\"code\":\"511700\",\"city\":\"达州\"},{\"code\":\"532900\",\"city\":\"大理白族自治州\"},{\"code\":\"533100\",\"city\":\"德宏傣族景颇族自治州\"},{\"code\":\"533400\",\"city\":\"迪庆藏族自治州\"},{\"code\":\"621100\",\"city\":\"定西\"}],[{\"code\":\"150600\",\"city\":\"鄂尔多斯\"},{\"code\":\"420700\",\"city\":\"鄂州\"},{\"code\":\"422800\",\"city\":\"恩施土家族苗族自治州\"}],[{\"code\":\"210400\",\"city\":\"抚顺\"},{\"code\":\"210900\",\"city\":\"阜新\"},{\"code\":\"341200\",\"city\":\"阜阳\"},{\"code\":\"350100\",\"city\":\"福州\"},{\"code\":\"361000\",\"city\":\"抚州\"},{\"code\":\"440600\",\"city\":\"佛山\"},{\"code\":\"450600\",\"city\":\"防城港\"}],[{\"code\":\"360700\",\"city\":\"赣州\"},{\"code\":\"440100\",\"city\":\"广州\"},{\"code\":\"450300\",\"city\":\"桂林\"},{\"code\":\"450800\",\"city\":\"贵港\"},{\"code\":\"510800\",\"city\":\"广元\"},{\"code\":\"511600\",\"city\":\"广安\"},{\"code\":\"513300\",\"city\":\"甘孜藏族自治州\"},{\"code\":\"520100\",\"city\":\"贵阳\"},{\"code\":\"623000\",\"city\":\"甘南藏族自治州\"},{\"code\":\"632600\",\"city\":\"果洛藏族自治州\"},{\"code\":\"640400\",\"city\":\"固原\"},{\"code\":\"710200\",\"city\":\"高雄\"}],[{\"code\":\"130400\",\"city\":\"邯郸\"},{\"code\":\"131100\",\"city\":\"衡水\"},{\"code\":\"150100\",\"city\":\"呼和浩特\"},{\"code\":\"150700\",\"city\":\"呼伦贝尔\"},{\"code\":\"211400\",\"city\":\"葫芦岛\"},{\"code\":\"230100\",\"city\":\"哈尔滨\"},{\"code\":\"230400\",\"city\":\"鹤岗\"},{\"code\":\"231100\",\"city\":\"黑河\"},{\"code\":\"320800\",\"city\":\"淮安\"},{\"code\":\"330100\",\"city\":\"杭州\"},{\"code\":\"330500\",\"city\":\"湖州\"},{\"code\":\"340100\",\"city\":\"合肥\"},{\"code\":\"340400\",\"city\":\"淮南\"},{\"code\":\"340600\",\"city\":\"淮北\"},{\"code\":\"341000\",\"city\":\"黄山\"},{\"code\":\"371700\",\"city\":\"菏泽\"},{\"code\":\"410600\",\"city\":\"鹤壁\"},{\"code\":\"420200\",\"city\":\"黄石\"},{\"code\":\"421100\",\"city\":\"黄冈\"},{\"code\":\"430400\",\"city\":\"衡阳\"},{\"code\":\"431200\",\"city\":\"怀化\"},{\"code\":\"441300\",\"city\":\"惠州\"},{\"code\":\"441600\",\"city\":\"河源\"},{\"code\":\"451100\",\"city\":\"贺州\"},{\"code\":\"451200\",\"city\":\"河池\"},{\"code\":\"460100\",\"city\":\"海口\"},{\"code\":\"532500\",\"city\":\"红河哈尼族彝族自治州\"},{\"code\":\"610700\",\"city\":\"汉中\"},{\"code\":\"632100\",\"city\":\"海东地区\"},{\"code\":\"632200\",\"city\":\"海北藏族自治州\"},{\"code\":\"632300\",\"city\":\"黄南藏族自治州\"},{\"code\":\"632500\",\"city\":\"海南藏族自治州\"},{\"code\":\"632800\",\"city\":\"海西蒙古族藏族自治州\"},{\"code\":\"652200\",\"city\":\"哈密地区\"},{\"code\":\"653200\",\"city\":\"和田地区\"}],[{\"code\":\"140500\",\"city\":\"晋城\"},{\"code\":\"140700\",\"city\":\"晋中\"},{\"code\":\"210700\",\"city\":\"锦州\"},{\"code\":\"220200\",\"city\":\"吉林\"},{\"code\":\"230300\",\"city\":\"鸡西\"},{\"code\":\"230800\",\"city\":\"佳木斯\"},{\"code\":\"330400\",\"city\":\"嘉兴\"},{\"code\":\"330700\",\"city\":\"金华\"},{\"code\":\"360200\",\"city\":\"景德镇\"},{\"code\":\"360400\",\"city\":\"九江\"},{\"code\":\"360800\",\"city\":\"吉安\"},{\"code\":\"370100\",\"city\":\"济南\"},{\"code\":\"370800\",\"city\":\"济宁\"},{\"code\":\"410800\",\"city\":\"焦作\"},{\"code\":\"420800\",\"city\":\"荆门\"},{\"code\":\"421000\",\"city\":\"荆州\"},{\"code\":\"440700\",\"city\":\"江门\"},{\"code\":\"445200\",\"city\":\"揭阳\"},{\"code\":\"620200\",\"city\":\"嘉峪关\"},{\"code\":\"620300\",\"city\":\"金昌\"},{\"code\":\"620900\",\"city\":\"酒泉\"},{\"code\":\"710500\",\"city\":\"金门县\"},{\"code\":\"710700\",\"city\":\"基隆\"},{\"code\":\"710900\",\"city\":\"嘉义\"},{\"code\":\"810200\",\"city\":\"九龙\"}],[{\"code\":\"410200\",\"city\":\"开封\"},{\"code\":\"530100\",\"city\":\"昆明\"},{\"code\":\"650200\",\"city\":\"克拉玛依\"},{\"code\":\"653000\",\"city\":\"克孜勒苏柯尔克孜自治州\"},{\"code\":\"653100\",\"city\":\"喀什地区\"}],[{\"code\":\"131000\",\"city\":\"廊坊\"},{\"code\":\"411100\",\"city\":\"漯河\"},{\"code\":\"141000\",\"city\":\"临汾\"},{\"code\":\"141100\",\"city\":\"吕梁\"},{\"code\":\"211000\",\"city\":\"辽阳\"},{\"code\":\"220400\",\"city\":\"辽源\"},{\"code\":\"320700\",\"city\":\"连云港\"},{\"code\":\"331100\",\"city\":\"丽水\"},{\"code\":\"341500\",\"city\":\"六安\"},{\"code\":\"350800\",\"city\":\"龙岩\"},{\"code\":\"371200\",\"city\":\"莱芜\"},{\"code\":\"371300\",\"city\":\"临沂\"},{\"code\":\"371500\",\"city\":\"聊城\"},{\"code\":\"410300\",\"city\":\"洛阳\"},{\"code\":\"510500\",\"city\":\"泸州\"},{\"code\":\"431300\",\"city\":\"娄底\"},{\"code\":\"450200\",\"city\":\"柳州\"},{\"code\":\"451300\",\"city\":\"来宾\"},{\"code\":\"511100\",\"city\":\"乐山\"},{\"code\":\"513400\",\"city\":\"凉山彝族自治州\"},{\"code\":\"520200\",\"city\":\"六盘水\"},{\"code\":\"530700\",\"city\":\"丽江\"},{\"code\":\"530900\",\"city\":\"临沧\"},{\"code\":\"540100\",\"city\":\"拉萨\"},{\"code\":\"542600\",\"city\":\"林芝地区\"},{\"code\":\"620100\",\"city\":\"兰州\"},{\"code\":\"621200\",\"city\":\"陇南\"},{\"code\":\"622900\",\"city\":\"临夏回族自治州\"},{\"code\":\"820200\",\"city\":\"离岛\"}],[{\"code\":\"231000\",\"city\":\"牡丹江\"},{\"code\":\"340500\",\"city\":\"马鞍山\"},{\"code\":\"440900\",\"city\":\"茂名\"},{\"code\":\"441400\",\"city\":\"梅州\"},{\"code\":\"510700\",\"city\":\"绵阳\"},{\"code\":\"511400\",\"city\":\"眉山\"}],[{\"code\":\"320100\",\"city\":\"南京\"},{\"code\":\"320600\",\"city\":\"南通\"},{\"code\":\"330200\",\"city\":\"宁波\"},{\"code\":\"350700\",\"city\":\"南平\"},{\"code\":\"350900\",\"city\":\"宁德\"},{\"code\":\"360100\",\"city\":\"南昌\"},{\"code\":\"411300\",\"city\":\"南阳\"},{\"code\":\"450100\",\"city\":\"南宁\"},{\"code\":\"511000\",\"city\":\"内江\"},{\"code\":\"511300\",\"city\":\"南充\"},{\"code\":\"533300\",\"city\":\"怒江傈僳族自治州\"},{\"code\":\"542400\",\"city\":\"那曲地区\"},{\"code\":\"710600\",\"city\":\"南投县\"}],[{\"code\":\"211100\",\"city\":\"盘锦\"},{\"code\":\"350300\",\"city\":\"莆田\"},{\"code\":\"410900\",\"city\":\"濮阳\"},{\"code\":\"360300\",\"city\":\"萍乡\"},{\"code\":\"410400\",\"city\":\"平顶山\"},{\"code\":\"510400\",\"city\":\"攀枝花\"},{\"code\":\"530800\",\"city\":\"普洱\"},{\"code\":\"620800\",\"city\":\"平凉\"}],[{\"code\":\"130300\",\"city\":\"秦皇岛\"},{\"code\":\"230200\",\"city\":\"齐齐哈尔\"},{\"code\":\"230900\",\"city\":\"七台河\"},{\"code\":\"350500\",\"city\":\"泉州\"},{\"code\":\"370200\",\"city\":\"青岛\"},{\"code\":\"441800\",\"city\":\"清远\"},{\"code\":\"450700\",\"city\":\"钦州\"},{\"code\":\"522300\",\"city\":\"黔西南布依族苗族自治州\"},{\"code\":\"522600\",\"city\":\"黔东南苗族侗族自治州\"},{\"code\":\"522700\",\"city\":\"黔南布依族苗族自治州\"},{\"code\":\"530300\",\"city\":\"曲靖\"},{\"code\":\"621000\",\"city\":\"庆阳\"}],[{\"code\":\"371100\",\"city\":\"日照\"},{\"code\":\"542300\",\"city\":\"日喀则地区\"}],[{\"code\":\"130100\",\"city\":\"石家庄\"},{\"code\":\"140600\",\"city\":\"朔州\"},{\"code\":\"210100\",\"city\":\"沈阳\"},{\"code\":\"220300\",\"city\":\"四平\"},{\"code\":\"220700\",\"city\":\"松原\"},{\"code\":\"230500\",\"city\":\"双鸭山\"},{\"code\":\"231200\",\"city\":\"绥化\"},{\"code\":\"310100\",\"city\":\"上海\"},{\"code\":\"320500\",\"city\":\"苏州\"},{\"code\":\"321300\",\"city\":\"宿迁\"},{\"code\":\"330600\",\"city\":\"绍兴\"},{\"code\":\"341300\",\"city\":\"宿州\"},{\"code\":\"350400\",\"city\":\"三明\"},{\"code\":\"361100\",\"city\":\"上饶\"},{\"code\":\"411200\",\"city\":\"三门峡\"},{\"code\":\"411400\",\"city\":\"商丘\"},{\"code\":\"420300\",\"city\":\"十堰\"},{\"code\":\"421300\",\"city\":\"随州\"},{\"code\":\"430500\",\"city\":\"邵阳\"},{\"code\":\"440200\",\"city\":\"韶关\"},{\"code\":\"440300\",\"city\":\"深圳\"},{\"code\":\"440500\",\"city\":\"汕头\"},{\"code\":\"441500\",\"city\":\"汕尾\"},{\"code\":\"460200\",\"city\":\"三亚\"},{\"code\":\"510900\",\"city\":\"遂宁\"},{\"code\":\"542200\",\"city\":\"山南地区\"},{\"code\":\"611000\",\"city\":\"商洛\"},{\"code\":\"640200\",\"city\":\"石嘴山\"}],[{\"code\":\"120100\",\"city\":\"天津\"},{\"code\":\"130200\",\"city\":\"唐山\"},{\"code\":\"140100\",\"city\":\"太原\"},{\"code\":\"150500\",\"city\":\"通辽\"},{\"code\":\"211200\",\"city\":\"铁岭\"},{\"code\":\"220500\",\"city\":\"通化\"},{\"code\":\"321200\",\"city\":\"泰州\"},{\"code\":\"331000\",\"city\":\"台州\"},{\"code\":\"340700\",\"city\":\"铜陵\"},{\"code\":\"370900\",\"city\":\"泰安\"},{\"code\":\"522200\",\"city\":\"铜仁地区\"},{\"code\":\"610200\",\"city\":\"铜川\"},{\"code\":\"620500\",\"city\":\"天水\"},{\"code\":\"652100\",\"city\":\"吐鲁番地区\"},{\"code\":\"654200\",\"city\":\"塔城地区\"},{\"code\":\"710100\",\"city\":\"台北\"},{\"code\":\"710300\",\"city\":\"台南\"},{\"code\":\"710400\",\"city\":\"台中\"}],[{\"code\":\"150300\",\"city\":\"乌海\"},{\"code\":\"150900\",\"city\":\"乌兰察布\"},{\"code\":\"320200\",\"city\":\"无锡\"},{\"code\":\"330300\",\"city\":\"温州\"},{\"code\":\"340200\",\"city\":\"芜湖\"},{\"code\":\"370700\",\"city\":\"潍坊\"},{\"code\":\"371000\",\"city\":\"威海\"},{\"code\":\"420100\",\"city\":\"武汉\"},{\"code\":\"450400\",\"city\":\"梧州\"},{\"code\":\"532600\",\"city\":\"文山壮族苗族自治州\"},{\"code\":\"610500\",\"city\":\"渭南\"},{\"code\":\"620600\",\"city\":\"武威\"},{\"code\":\"640300\",\"city\":\"吴忠\"},{\"code\":\"650100\",\"city\":\"乌鲁木齐\"}],[{\"code\":\"130500\",\"city\":\"邢台\"},{\"code\":\"140900\",\"city\":\"忻州\"},{\"code\":\"152200\",\"city\":\"兴安盟\"},{\"code\":\"152500\",\"city\":\"锡林郭勒盟\"},{\"code\":\"320300\",\"city\":\"徐州\"},{\"code\":\"341800\",\"city\":\"宣城\"},{\"code\":\"350200\",\"city\":\"厦门\"},{\"code\":\"360500\",\"city\":\"新余\"},{\"code\":\"410700\",\"city\":\"新乡\"},{\"code\":\"411000\",\"city\":\"许昌\"},{\"code\":\"411500\",\"city\":\"信阳\"},{\"code\":\"420600\",\"city\":\"襄阳\"},{\"code\":\"420900\",\"city\":\"孝感\"},{\"code\":\"421200\",\"city\":\"咸宁\"},{\"code\":\"430300\",\"city\":\"湘潭\"},{\"code\":\"433100\",\"city\":\"湘西土家族苗族自治州\"},{\"code\":\"532800\",\"city\":\"西双版纳\"},{\"code\":\"610100\",\"city\":\"西安\"},{\"code\":\"610400\",\"city\":\"咸阳\"},{\"code\":\"630100\",\"city\":\"西宁\"},{\"code\":\"710800\",\"city\":\"新竹\"},{\"code\":\"810100\",\"city\":\"香港岛\"},{\"code\":\"810300\",\"city\":\"新界\"}],[{\"code\":\"140300\",\"city\":\"阳泉\"},{\"code\":\"140800\",\"city\":\"运城\"},{\"code\":\"210800\",\"city\":\"营口\"},{\"code\":\"222400\",\"city\":\"延边朝鲜族自治州\"},{\"code\":\"230700\",\"city\":\"伊春\"},{\"code\":\"320900\",\"city\":\"盐城\"},{\"code\":\"321000\",\"city\":\"扬州\"},{\"code\":\"360600\",\"city\":\"鹰潭\"},{\"code\":\"360900\",\"city\":\"宜春\"},{\"code\":\"370600\",\"city\":\"烟台\"},{\"code\":\"420500\",\"city\":\"宜昌\"},{\"code\":\"430600\",\"city\":\"岳阳\"},{\"code\":\"430900\",\"city\":\"益阳\"},{\"code\":\"431100\",\"city\":\"永州\"},{\"code\":\"441700\",\"city\":\"阳江\"},{\"code\":\"445300\",\"city\":\"云浮\"},{\"code\":\"450900\",\"city\":\"玉林\"},{\"code\":\"511500\",\"city\":\"宜宾\"},{\"code\":\"511800\",\"city\":\"雅安\"},{\"code\":\"530400\",\"city\":\"玉溪\"},{\"code\":\"610600\",\"city\":\"延安\"},{\"code\":\"610800\",\"city\":\"榆林\"},{\"code\":\"632700\",\"city\":\"玉树藏族自治州\"},{\"code\":\"640100\",\"city\":\"银川\"},{\"code\":\"654000\",\"city\":\"伊犁哈萨克自治州\"}],[{\"code\":\"130700\",\"city\":\"张家口\"},{\"code\":\"321100\",\"city\":\"镇江\"},{\"code\":\"330800\",\"city\":\"衢州\"},{\"code\":\"330900\",\"city\":\"舟山\"},{\"code\":\"341600\",\"city\":\"亳州\"},{\"code\":\"350600\",\"city\":\"漳州\"},{\"code\":\"370300\",\"city\":\"淄博\"},{\"code\":\"370400\",\"city\":\"枣庄\"},{\"code\":\"410100\",\"city\":\"郑州\"},{\"code\":\"411600\",\"city\":\"周口\"},{\"code\":\"411700\",\"city\":\"驻马店\"},{\"code\":\"430200\",\"city\":\"株洲\"},{\"code\":\"430800\",\"city\":\"张家界\"},{\"code\":\"440400\",\"city\":\"珠海\"},{\"code\":\"440800\",\"city\":\"湛江\"},{\"code\":\"441200\",\"city\":\"肇庆\"},{\"code\":\"442000\",\"city\":\"中山\"},{\"code\":\"510300\",\"city\":\"自贡\"},{\"code\":\"512000\",\"city\":\"资阳\"},{\"code\":\"520300\",\"city\":\"遵义\"},{\"code\":\"530600\",\"city\":\"昭通\"},{\"code\":\"620700\",\"city\":\"张掖\"},{\"code\":\"640500\",\"city\":\"中卫\"}]]}");
  19169. /***/ }),
  19170. /* 211 */,
  19171. /* 212 */,
  19172. /* 213 */,
  19173. /* 214 */,
  19174. /* 215 */,
  19175. /* 216 */,
  19176. /* 217 */,
  19177. /* 218 */,
  19178. /* 219 */,
  19179. /* 220 */,
  19180. /* 221 */,
  19181. /* 222 */,
  19182. /* 223 */,
  19183. /* 224 */,
  19184. /* 225 */,
  19185. /* 226 */,
  19186. /* 227 */,
  19187. /* 228 */,
  19188. /* 229 */,
  19189. /* 230 */,
  19190. /* 231 */,
  19191. /* 232 */,
  19192. /* 233 */,
  19193. /* 234 */,
  19194. /* 235 */,
  19195. /* 236 */,
  19196. /* 237 */,
  19197. /* 238 */,
  19198. /* 239 */,
  19199. /* 240 */,
  19200. /* 241 */,
  19201. /* 242 */,
  19202. /* 243 */,
  19203. /* 244 */,
  19204. /* 245 */,
  19205. /* 246 */,
  19206. /* 247 */,
  19207. /* 248 */,
  19208. /* 249 */,
  19209. /* 250 */,
  19210. /* 251 */,
  19211. /* 252 */,
  19212. /* 253 */,
  19213. /* 254 */,
  19214. /* 255 */,
  19215. /* 256 */,
  19216. /* 257 */,
  19217. /* 258 */,
  19218. /* 259 */,
  19219. /* 260 */,
  19220. /* 261 */,
  19221. /* 262 */,
  19222. /* 263 */,
  19223. /* 264 */,
  19224. /* 265 */,
  19225. /* 266 */,
  19226. /* 267 */,
  19227. /* 268 */,
  19228. /* 269 */,
  19229. /* 270 */,
  19230. /* 271 */,
  19231. /* 272 */,
  19232. /* 273 */,
  19233. /* 274 */,
  19234. /* 275 */,
  19235. /* 276 */,
  19236. /* 277 */,
  19237. /* 278 */,
  19238. /* 279 */,
  19239. /* 280 */,
  19240. /* 281 */,
  19241. /* 282 */,
  19242. /* 283 */,
  19243. /* 284 */,
  19244. /* 285 */,
  19245. /* 286 */,
  19246. /* 287 */,
  19247. /* 288 */,
  19248. /* 289 */,
  19249. /* 290 */,
  19250. /* 291 */,
  19251. /* 292 */,
  19252. /* 293 */,
  19253. /* 294 */,
  19254. /* 295 */,
  19255. /* 296 */,
  19256. /* 297 */,
  19257. /* 298 */,
  19258. /* 299 */,
  19259. /* 300 */,
  19260. /* 301 */,
  19261. /* 302 */,
  19262. /* 303 */,
  19263. /* 304 */,
  19264. /* 305 */,
  19265. /* 306 */,
  19266. /* 307 */,
  19267. /* 308 */,
  19268. /* 309 */,
  19269. /* 310 */,
  19270. /* 311 */,
  19271. /* 312 */,
  19272. /* 313 */,
  19273. /* 314 */,
  19274. /* 315 */,
  19275. /* 316 */,
  19276. /* 317 */,
  19277. /* 318 */,
  19278. /* 319 */,
  19279. /* 320 */,
  19280. /* 321 */,
  19281. /* 322 */,
  19282. /* 323 */,
  19283. /* 324 */,
  19284. /* 325 */,
  19285. /* 326 */,
  19286. /* 327 */,
  19287. /* 328 */,
  19288. /* 329 */,
  19289. /* 330 */,
  19290. /* 331 */,
  19291. /* 332 */,
  19292. /* 333 */,
  19293. /* 334 */,
  19294. /* 335 */,
  19295. /* 336 */,
  19296. /* 337 */,
  19297. /* 338 */,
  19298. /* 339 */,
  19299. /* 340 */,
  19300. /* 341 */,
  19301. /* 342 */,
  19302. /* 343 */,
  19303. /* 344 */,
  19304. /* 345 */,
  19305. /* 346 */,
  19306. /* 347 */,
  19307. /* 348 */,
  19308. /* 349 */,
  19309. /* 350 */,
  19310. /* 351 */,
  19311. /* 352 */,
  19312. /* 353 */,
  19313. /* 354 */,
  19314. /* 355 */,
  19315. /* 356 */,
  19316. /* 357 */,
  19317. /* 358 */,
  19318. /* 359 */,
  19319. /* 360 */,
  19320. /* 361 */,
  19321. /* 362 */,
  19322. /* 363 */,
  19323. /* 364 */,
  19324. /* 365 */,
  19325. /* 366 */,
  19326. /* 367 */,
  19327. /* 368 */,
  19328. /* 369 */,
  19329. /* 370 */,
  19330. /* 371 */,
  19331. /* 372 */,
  19332. /* 373 */,
  19333. /* 374 */,
  19334. /* 375 */,
  19335. /* 376 */,
  19336. /* 377 */,
  19337. /* 378 */,
  19338. /* 379 */,
  19339. /* 380 */,
  19340. /* 381 */,
  19341. /* 382 */,
  19342. /* 383 */,
  19343. /* 384 */,
  19344. /* 385 */,
  19345. /* 386 */,
  19346. /* 387 */,
  19347. /* 388 */,
  19348. /* 389 */,
  19349. /* 390 */,
  19350. /* 391 */,
  19351. /* 392 */,
  19352. /* 393 */,
  19353. /* 394 */,
  19354. /* 395 */,
  19355. /* 396 */,
  19356. /* 397 */,
  19357. /* 398 */,
  19358. /* 399 */,
  19359. /* 400 */,
  19360. /* 401 */,
  19361. /* 402 */
  19362. /*!***************************************************************************!*\
  19363. !*** E:/代码/cbz/cbz/cbz/uni_modules/uview-ui/components/u-navbar/props.js ***!
  19364. \***************************************************************************/
  19365. /*! no static exports found */
  19366. /***/ (function(module, exports, __webpack_require__) {
  19367. "use strict";
  19368. /* WEBPACK VAR INJECTION */(function(uni) {Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0;var _default = {
  19369. props: {
  19370. // 是否开启顶部安全区适配
  19371. safeAreaInsetTop: {
  19372. type: Boolean,
  19373. default: uni.$u.props.navbar.safeAreaInsetTop },
  19374. // 固定在顶部时,是否生成一个等高元素,以防止塌陷
  19375. placeholder: {
  19376. type: Boolean,
  19377. default: uni.$u.props.navbar.placeholder },
  19378. // 是否固定在顶部
  19379. fixed: {
  19380. type: Boolean,
  19381. default: uni.$u.props.navbar.fixed },
  19382. // 是否显示下边框
  19383. border: {
  19384. type: Boolean,
  19385. default: uni.$u.props.navbar.border },
  19386. // 左边的图标
  19387. leftIcon: {
  19388. type: String,
  19389. default: uni.$u.props.navbar.leftIcon },
  19390. // 左边的提示文字
  19391. leftText: {
  19392. type: String,
  19393. default: uni.$u.props.navbar.leftText },
  19394. // 左右的提示文字
  19395. rightText: {
  19396. type: String,
  19397. default: uni.$u.props.navbar.rightText },
  19398. // 右边的图标
  19399. rightIcon: {
  19400. type: String,
  19401. default: uni.$u.props.navbar.rightIcon },
  19402. // 标题
  19403. title: {
  19404. type: [String, Number],
  19405. default: uni.$u.props.navbar.title },
  19406. // 背景颜色
  19407. bgColor: {
  19408. type: String,
  19409. default: uni.$u.props.navbar.bgColor },
  19410. // 标题的宽度
  19411. titleWidth: {
  19412. type: [String, Number],
  19413. default: uni.$u.props.navbar.titleWidth },
  19414. // 导航栏高度
  19415. height: {
  19416. type: [String, Number],
  19417. default: uni.$u.props.navbar.height },
  19418. // 左侧返回图标的大小
  19419. leftIconSize: {
  19420. type: [String, Number],
  19421. default: uni.$u.props.navbar.leftIconSize },
  19422. // 左侧返回图标的颜色
  19423. leftIconColor: {
  19424. type: String,
  19425. default: uni.$u.props.navbar.leftIconColor },
  19426. // 点击左侧区域(返回图标),是否自动返回上一页
  19427. autoBack: {
  19428. type: Boolean,
  19429. default: uni.$u.props.navbar.autoBack },
  19430. // 标题的样式,对象或字符串
  19431. titleStyle: {
  19432. type: [String, Object],
  19433. default: uni.$u.props.navbar.titleStyle } } };exports.default = _default;
  19434. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 1)["default"]))
  19435. /***/ }),
  19436. /* 403 */,
  19437. /* 404 */,
  19438. /* 405 */,
  19439. /* 406 */,
  19440. /* 407 */,
  19441. /* 408 */,
  19442. /* 409 */,
  19443. /* 410 */
  19444. /*!*************************************************************************!*\
  19445. !*** E:/代码/cbz/cbz/cbz/uni_modules/uview-ui/components/u-icon/icons.js ***!
  19446. \*************************************************************************/
  19447. /*! no static exports found */
  19448. /***/ (function(module, exports, __webpack_require__) {
  19449. "use strict";
  19450. Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0;var _default = {
  19451. 'uicon-level': "\uE693",
  19452. 'uicon-column-line': "\uE68E",
  19453. 'uicon-checkbox-mark': "\uE807",
  19454. 'uicon-folder': "\uE7F5",
  19455. 'uicon-movie': "\uE7F6",
  19456. 'uicon-star-fill': "\uE669",
  19457. 'uicon-star': "\uE65F",
  19458. 'uicon-phone-fill': "\uE64F",
  19459. 'uicon-phone': "\uE622",
  19460. 'uicon-apple-fill': "\uE881",
  19461. 'uicon-chrome-circle-fill': "\uE885",
  19462. 'uicon-backspace': "\uE67B",
  19463. 'uicon-attach': "\uE632",
  19464. 'uicon-cut': "\uE948",
  19465. 'uicon-empty-car': "\uE602",
  19466. 'uicon-empty-coupon': "\uE682",
  19467. 'uicon-empty-address': "\uE646",
  19468. 'uicon-empty-favor': "\uE67C",
  19469. 'uicon-empty-permission': "\uE686",
  19470. 'uicon-empty-news': "\uE687",
  19471. 'uicon-empty-search': "\uE664",
  19472. 'uicon-github-circle-fill': "\uE887",
  19473. 'uicon-rmb': "\uE608",
  19474. 'uicon-person-delete-fill': "\uE66A",
  19475. 'uicon-reload': "\uE788",
  19476. 'uicon-order': "\uE68F",
  19477. 'uicon-server-man': "\uE6BC",
  19478. 'uicon-search': "\uE62A",
  19479. 'uicon-fingerprint': "\uE955",
  19480. 'uicon-more-dot-fill': "\uE630",
  19481. 'uicon-scan': "\uE662",
  19482. 'uicon-share-square': "\uE60B",
  19483. 'uicon-map': "\uE61D",
  19484. 'uicon-map-fill': "\uE64E",
  19485. 'uicon-tags': "\uE629",
  19486. 'uicon-tags-fill': "\uE651",
  19487. 'uicon-bookmark-fill': "\uE63B",
  19488. 'uicon-bookmark': "\uE60A",
  19489. 'uicon-eye': "\uE613",
  19490. 'uicon-eye-fill': "\uE641",
  19491. 'uicon-mic': "\uE64A",
  19492. 'uicon-mic-off': "\uE649",
  19493. 'uicon-calendar': "\uE66E",
  19494. 'uicon-calendar-fill': "\uE634",
  19495. 'uicon-trash': "\uE623",
  19496. 'uicon-trash-fill': "\uE658",
  19497. 'uicon-play-left': "\uE66D",
  19498. 'uicon-play-right': "\uE610",
  19499. 'uicon-minus': "\uE618",
  19500. 'uicon-plus': "\uE62D",
  19501. 'uicon-info': "\uE653",
  19502. 'uicon-info-circle': "\uE7D2",
  19503. 'uicon-info-circle-fill': "\uE64B",
  19504. 'uicon-question': "\uE715",
  19505. 'uicon-error': "\uE6D3",
  19506. 'uicon-close': "\uE685",
  19507. 'uicon-checkmark': "\uE6A8",
  19508. 'uicon-android-circle-fill': "\uE67E",
  19509. 'uicon-android-fill': "\uE67D",
  19510. 'uicon-ie': "\uE87B",
  19511. 'uicon-IE-circle-fill': "\uE889",
  19512. 'uicon-google': "\uE87A",
  19513. 'uicon-google-circle-fill': "\uE88A",
  19514. 'uicon-setting-fill': "\uE872",
  19515. 'uicon-setting': "\uE61F",
  19516. 'uicon-minus-square-fill': "\uE855",
  19517. 'uicon-plus-square-fill': "\uE856",
  19518. 'uicon-heart': "\uE7DF",
  19519. 'uicon-heart-fill': "\uE851",
  19520. 'uicon-camera': "\uE7D7",
  19521. 'uicon-camera-fill': "\uE870",
  19522. 'uicon-more-circle': "\uE63E",
  19523. 'uicon-more-circle-fill': "\uE645",
  19524. 'uicon-chat': "\uE620",
  19525. 'uicon-chat-fill': "\uE61E",
  19526. 'uicon-bag-fill': "\uE617",
  19527. 'uicon-bag': "\uE619",
  19528. 'uicon-error-circle-fill': "\uE62C",
  19529. 'uicon-error-circle': "\uE624",
  19530. 'uicon-close-circle': "\uE63F",
  19531. 'uicon-close-circle-fill': "\uE637",
  19532. 'uicon-checkmark-circle': "\uE63D",
  19533. 'uicon-checkmark-circle-fill': "\uE635",
  19534. 'uicon-question-circle-fill': "\uE666",
  19535. 'uicon-question-circle': "\uE625",
  19536. 'uicon-share': "\uE631",
  19537. 'uicon-share-fill': "\uE65E",
  19538. 'uicon-shopping-cart': "\uE621",
  19539. 'uicon-shopping-cart-fill': "\uE65D",
  19540. 'uicon-bell': "\uE609",
  19541. 'uicon-bell-fill': "\uE640",
  19542. 'uicon-list': "\uE650",
  19543. 'uicon-list-dot': "\uE616",
  19544. 'uicon-zhihu': "\uE6BA",
  19545. 'uicon-zhihu-circle-fill': "\uE709",
  19546. 'uicon-zhifubao': "\uE6B9",
  19547. 'uicon-zhifubao-circle-fill': "\uE6B8",
  19548. 'uicon-weixin-circle-fill': "\uE6B1",
  19549. 'uicon-weixin-fill': "\uE6B2",
  19550. 'uicon-twitter-circle-fill': "\uE6AB",
  19551. 'uicon-twitter': "\uE6AA",
  19552. 'uicon-taobao-circle-fill': "\uE6A7",
  19553. 'uicon-taobao': "\uE6A6",
  19554. 'uicon-weibo-circle-fill': "\uE6A5",
  19555. 'uicon-weibo': "\uE6A4",
  19556. 'uicon-qq-fill': "\uE6A1",
  19557. 'uicon-qq-circle-fill': "\uE6A0",
  19558. 'uicon-moments-circel-fill': "\uE69A",
  19559. 'uicon-moments': "\uE69B",
  19560. 'uicon-qzone': "\uE695",
  19561. 'uicon-qzone-circle-fill': "\uE696",
  19562. 'uicon-baidu-circle-fill': "\uE680",
  19563. 'uicon-baidu': "\uE681",
  19564. 'uicon-facebook-circle-fill': "\uE68A",
  19565. 'uicon-facebook': "\uE689",
  19566. 'uicon-car': "\uE60C",
  19567. 'uicon-car-fill': "\uE636",
  19568. 'uicon-warning-fill': "\uE64D",
  19569. 'uicon-warning': "\uE694",
  19570. 'uicon-clock-fill': "\uE638",
  19571. 'uicon-clock': "\uE60F",
  19572. 'uicon-edit-pen': "\uE612",
  19573. 'uicon-edit-pen-fill': "\uE66B",
  19574. 'uicon-email': "\uE611",
  19575. 'uicon-email-fill': "\uE642",
  19576. 'uicon-minus-circle': "\uE61B",
  19577. 'uicon-minus-circle-fill': "\uE652",
  19578. 'uicon-plus-circle': "\uE62E",
  19579. 'uicon-plus-circle-fill': "\uE661",
  19580. 'uicon-file-text': "\uE663",
  19581. 'uicon-file-text-fill': "\uE665",
  19582. 'uicon-pushpin': "\uE7E3",
  19583. 'uicon-pushpin-fill': "\uE86E",
  19584. 'uicon-grid': "\uE673",
  19585. 'uicon-grid-fill': "\uE678",
  19586. 'uicon-play-circle': "\uE647",
  19587. 'uicon-play-circle-fill': "\uE655",
  19588. 'uicon-pause-circle-fill': "\uE654",
  19589. 'uicon-pause': "\uE8FA",
  19590. 'uicon-pause-circle': "\uE643",
  19591. 'uicon-eye-off': "\uE648",
  19592. 'uicon-eye-off-outline': "\uE62B",
  19593. 'uicon-gift-fill': "\uE65C",
  19594. 'uicon-gift': "\uE65B",
  19595. 'uicon-rmb-circle-fill': "\uE657",
  19596. 'uicon-rmb-circle': "\uE677",
  19597. 'uicon-kefu-ermai': "\uE656",
  19598. 'uicon-server-fill': "\uE751",
  19599. 'uicon-coupon-fill': "\uE8C4",
  19600. 'uicon-coupon': "\uE8AE",
  19601. 'uicon-integral': "\uE704",
  19602. 'uicon-integral-fill': "\uE703",
  19603. 'uicon-home-fill': "\uE964",
  19604. 'uicon-home': "\uE965",
  19605. 'uicon-hourglass-half-fill': "\uE966",
  19606. 'uicon-hourglass': "\uE967",
  19607. 'uicon-account': "\uE628",
  19608. 'uicon-plus-people-fill': "\uE626",
  19609. 'uicon-minus-people-fill': "\uE615",
  19610. 'uicon-account-fill': "\uE614",
  19611. 'uicon-thumb-down-fill': "\uE726",
  19612. 'uicon-thumb-down': "\uE727",
  19613. 'uicon-thumb-up': "\uE733",
  19614. 'uicon-thumb-up-fill': "\uE72F",
  19615. 'uicon-lock-fill': "\uE979",
  19616. 'uicon-lock-open': "\uE973",
  19617. 'uicon-lock-opened-fill': "\uE974",
  19618. 'uicon-lock': "\uE97A",
  19619. 'uicon-red-packet-fill': "\uE690",
  19620. 'uicon-photo-fill': "\uE98B",
  19621. 'uicon-photo': "\uE98D",
  19622. 'uicon-volume-off-fill': "\uE659",
  19623. 'uicon-volume-off': "\uE644",
  19624. 'uicon-volume-fill': "\uE670",
  19625. 'uicon-volume': "\uE633",
  19626. 'uicon-red-packet': "\uE691",
  19627. 'uicon-download': "\uE63C",
  19628. 'uicon-arrow-up-fill': "\uE6B0",
  19629. 'uicon-arrow-down-fill': "\uE600",
  19630. 'uicon-play-left-fill': "\uE675",
  19631. 'uicon-play-right-fill': "\uE676",
  19632. 'uicon-rewind-left-fill': "\uE679",
  19633. 'uicon-rewind-right-fill': "\uE67A",
  19634. 'uicon-arrow-downward': "\uE604",
  19635. 'uicon-arrow-leftward': "\uE601",
  19636. 'uicon-arrow-rightward': "\uE603",
  19637. 'uicon-arrow-upward': "\uE607",
  19638. 'uicon-arrow-down': "\uE60D",
  19639. 'uicon-arrow-right': "\uE605",
  19640. 'uicon-arrow-left': "\uE60E",
  19641. 'uicon-arrow-up': "\uE606",
  19642. 'uicon-skip-back-left': "\uE674",
  19643. 'uicon-skip-forward-right': "\uE672",
  19644. 'uicon-rewind-right': "\uE66F",
  19645. 'uicon-rewind-left': "\uE671",
  19646. 'uicon-arrow-right-double': "\uE68D",
  19647. 'uicon-arrow-left-double': "\uE68C",
  19648. 'uicon-wifi-off': "\uE668",
  19649. 'uicon-wifi': "\uE667",
  19650. 'uicon-empty-data': "\uE62F",
  19651. 'uicon-empty-history': "\uE684",
  19652. 'uicon-empty-list': "\uE68B",
  19653. 'uicon-empty-page': "\uE627",
  19654. 'uicon-empty-order': "\uE639",
  19655. 'uicon-man': "\uE697",
  19656. 'uicon-woman': "\uE69C",
  19657. 'uicon-man-add': "\uE61C",
  19658. 'uicon-man-add-fill': "\uE64C",
  19659. 'uicon-man-delete': "\uE61A",
  19660. 'uicon-man-delete-fill': "\uE66A",
  19661. 'uicon-zh': "\uE70A",
  19662. 'uicon-en': "\uE692" };exports.default = _default;
  19663. /***/ }),
  19664. /* 411 */
  19665. /*!*************************************************************************!*\
  19666. !*** E:/代码/cbz/cbz/cbz/uni_modules/uview-ui/components/u-icon/props.js ***!
  19667. \*************************************************************************/
  19668. /*! no static exports found */
  19669. /***/ (function(module, exports, __webpack_require__) {
  19670. "use strict";
  19671. /* WEBPACK VAR INJECTION */(function(uni) {Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0;var _default = {
  19672. props: {
  19673. // 图标类名
  19674. name: {
  19675. type: String,
  19676. default: uni.$u.props.icon.name },
  19677. // 图标颜色,可接受主题色
  19678. color: {
  19679. type: String,
  19680. default: uni.$u.props.icon.color },
  19681. // 字体大小,单位px
  19682. size: {
  19683. type: [String, Number],
  19684. default: uni.$u.props.icon.size },
  19685. // 是否显示粗体
  19686. bold: {
  19687. type: Boolean,
  19688. default: uni.$u.props.icon.bold },
  19689. // 点击图标的时候传递事件出去的index(用于区分点击了哪一个)
  19690. index: {
  19691. type: [String, Number],
  19692. default: uni.$u.props.icon.index },
  19693. // 触摸图标时的类名
  19694. hoverClass: {
  19695. type: String,
  19696. default: uni.$u.props.icon.hoverClass },
  19697. // 自定义扩展前缀,方便用户扩展自己的图标库
  19698. customPrefix: {
  19699. type: String,
  19700. default: uni.$u.props.icon.customPrefix },
  19701. // 图标右边或者下面的文字
  19702. label: {
  19703. type: [String, Number],
  19704. default: uni.$u.props.icon.label },
  19705. // label的位置,只能右边或者下边
  19706. labelPos: {
  19707. type: String,
  19708. default: uni.$u.props.icon.labelPos },
  19709. // label的大小
  19710. labelSize: {
  19711. type: [String, Number],
  19712. default: uni.$u.props.icon.labelSize },
  19713. // label的颜色
  19714. labelColor: {
  19715. type: String,
  19716. default: uni.$u.props.icon.labelColor },
  19717. // label与图标的距离
  19718. space: {
  19719. type: [String, Number],
  19720. default: uni.$u.props.icon.space },
  19721. // 图片的mode
  19722. imgMode: {
  19723. type: String,
  19724. default: uni.$u.props.icon.imgMode },
  19725. // 用于显示图片小图标时,图片的宽度
  19726. width: {
  19727. type: [String, Number],
  19728. default: uni.$u.props.icon.width },
  19729. // 用于显示图片小图标时,图片的高度
  19730. height: {
  19731. type: [String, Number],
  19732. default: uni.$u.props.icon.height },
  19733. // 用于解决某些情况下,让图标垂直居中的用途
  19734. top: {
  19735. type: [String, Number],
  19736. default: uni.$u.props.icon.top },
  19737. // 是否阻止事件传播
  19738. stop: {
  19739. type: Boolean,
  19740. default: uni.$u.props.icon.stop } } };exports.default = _default;
  19741. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 1)["default"]))
  19742. /***/ }),
  19743. /* 412 */,
  19744. /* 413 */,
  19745. /* 414 */,
  19746. /* 415 */,
  19747. /* 416 */,
  19748. /* 417 */,
  19749. /* 418 */,
  19750. /* 419 */
  19751. /*!**************************************************************************!*\
  19752. !*** E:/代码/cbz/cbz/cbz/uni_modules/uview-ui/components/u-input/props.js ***!
  19753. \**************************************************************************/
  19754. /*! no static exports found */
  19755. /***/ (function(module, exports, __webpack_require__) {
  19756. "use strict";
  19757. /* WEBPACK VAR INJECTION */(function(uni) {Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0;var _default = {
  19758. props: {
  19759. // 输入的值
  19760. value: {
  19761. type: [String, Number],
  19762. default: uni.$u.props.input.value },
  19763. // 输入框类型
  19764. // number-数字输入键盘,app-vue下可以输入浮点数,app-nvue和小程序平台下只能输入整数
  19765. // idcard-身份证输入键盘,微信、支付宝、百度、QQ小程序
  19766. // digit-带小数点的数字键盘,App的nvue页面、微信、支付宝、百度、头条、QQ小程序
  19767. // text-文本输入键盘
  19768. type: {
  19769. type: String,
  19770. default: uni.$u.props.input.type },
  19771. // 如果 textarea 是在一个 position:fixed 的区域,需要显示指定属性 fixed 为 true,
  19772. // 兼容性:微信小程序、百度小程序、字节跳动小程序、QQ小程序
  19773. fixed: {
  19774. type: Boolean,
  19775. default: uni.$u.props.input.fixed },
  19776. // 是否禁用输入框
  19777. disabled: {
  19778. type: Boolean,
  19779. default: uni.$u.props.input.disabled },
  19780. // 禁用状态时的背景色
  19781. disabledColor: {
  19782. type: String,
  19783. default: uni.$u.props.input.disabledColor },
  19784. // 是否显示清除控件
  19785. clearable: {
  19786. type: Boolean,
  19787. default: uni.$u.props.input.clearable },
  19788. // 是否密码类型
  19789. password: {
  19790. type: Boolean,
  19791. default: uni.$u.props.input.password },
  19792. // 最大输入长度,设置为 -1 的时候不限制最大长度
  19793. maxlength: {
  19794. type: [String, Number],
  19795. default: uni.$u.props.input.maxlength },
  19796. // 输入框为空时的占位符
  19797. placeholder: {
  19798. type: String,
  19799. default: uni.$u.props.input.placeholder },
  19800. // 指定placeholder的样式类,注意页面或组件的style中写了scoped时,需要在类名前写/deep/
  19801. placeholderClass: {
  19802. type: String,
  19803. default: uni.$u.props.input.placeholderClass },
  19804. // 指定placeholder的样式
  19805. placeholderStyle: {
  19806. type: [String, Object],
  19807. default: uni.$u.props.input.placeholderStyle },
  19808. // 是否显示输入字数统计,只在 type ="text"或type ="textarea"时有效
  19809. showWordLimit: {
  19810. type: Boolean,
  19811. default: uni.$u.props.input.showWordLimit },
  19812. // 设置右下角按钮的文字,有效值:send|search|next|go|done,兼容性详见uni-app文档
  19813. // https://uniapp.dcloud.io/component/input
  19814. // https://uniapp.dcloud.io/component/textarea
  19815. confirmType: {
  19816. type: String,
  19817. default: uni.$u.props.input.confirmType },
  19818. // 点击键盘右下角按钮时是否保持键盘不收起,H5无效
  19819. confirmHold: {
  19820. type: Boolean,
  19821. default: uni.$u.props.input.confirmHold },
  19822. // focus时,点击页面的时候不收起键盘,微信小程序有效
  19823. holdKeyboard: {
  19824. type: Boolean,
  19825. default: uni.$u.props.input.holdKeyboard },
  19826. // 自动获取焦点
  19827. // 在 H5 平台能否聚焦以及软键盘是否跟随弹出,取决于当前浏览器本身的实现。nvue 页面不支持,需使用组件的 focus()、blur() 方法控制焦点
  19828. focus: {
  19829. type: Boolean,
  19830. default: uni.$u.props.input.focus },
  19831. // 键盘收起时,是否自动失去焦点,目前仅App3.0.0+有效
  19832. autoBlur: {
  19833. type: Boolean,
  19834. default: uni.$u.props.input.autoBlur },
  19835. // 是否去掉 iOS 下的默认内边距,仅微信小程序,且type=textarea时有效
  19836. disableDefaultPadding: {
  19837. type: Boolean,
  19838. default: uni.$u.props.input.disableDefaultPadding },
  19839. // 指定focus时光标的位置
  19840. cursor: {
  19841. type: [String, Number],
  19842. default: uni.$u.props.input.cursor },
  19843. // 输入框聚焦时底部与键盘的距离
  19844. cursorSpacing: {
  19845. type: [String, Number],
  19846. default: uni.$u.props.input.cursorSpacing },
  19847. // 光标起始位置,自动聚集时有效,需与selection-end搭配使用
  19848. selectionStart: {
  19849. type: [String, Number],
  19850. default: uni.$u.props.input.selectionStart },
  19851. // 光标结束位置,自动聚集时有效,需与selection-start搭配使用
  19852. selectionEnd: {
  19853. type: [String, Number],
  19854. default: uni.$u.props.input.selectionEnd },
  19855. // 键盘弹起时,是否自动上推页面
  19856. adjustPosition: {
  19857. type: Boolean,
  19858. default: uni.$u.props.input.adjustPosition },
  19859. // 输入框内容对齐方式,可选值为:left|center|right
  19860. inputAlign: {
  19861. type: String,
  19862. default: uni.$u.props.input.inputAlign },
  19863. // 输入框字体的大小
  19864. fontSize: {
  19865. type: [String, Number],
  19866. default: uni.$u.props.input.fontSize },
  19867. // 输入框字体颜色
  19868. color: {
  19869. type: String,
  19870. default: uni.$u.props.input.color },
  19871. // 输入框前置图标
  19872. prefixIcon: {
  19873. type: String,
  19874. default: uni.$u.props.input.prefixIcon },
  19875. // 前置图标样式,对象或字符串
  19876. prefixIconStyle: {
  19877. type: [String, Object],
  19878. default: uni.$u.props.input.prefixIconStyle },
  19879. // 输入框后置图标
  19880. suffixIcon: {
  19881. type: String,
  19882. default: uni.$u.props.input.suffixIcon },
  19883. // 后置图标样式,对象或字符串
  19884. suffixIconStyle: {
  19885. type: [String, Object],
  19886. default: uni.$u.props.input.suffixIconStyle },
  19887. // 边框类型,surround-四周边框,bottom-底部边框,none-无边框
  19888. border: {
  19889. type: String,
  19890. default: uni.$u.props.input.border },
  19891. // 是否只读,与disabled不同之处在于disabled会置灰组件,而readonly则不会
  19892. readonly: {
  19893. type: Boolean,
  19894. default: uni.$u.props.input.readonly },
  19895. // 输入框形状,circle-圆形,square-方形
  19896. shape: {
  19897. type: String,
  19898. default: uni.$u.props.input.shape },
  19899. // 用于处理或者过滤输入框内容的方法
  19900. formatter: {
  19901. type: [Function, null],
  19902. default: uni.$u.props.input.formatter } } };exports.default = _default;
  19903. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 1)["default"]))
  19904. /***/ }),
  19905. /* 420 */,
  19906. /* 421 */,
  19907. /* 422 */,
  19908. /* 423 */,
  19909. /* 424 */,
  19910. /* 425 */,
  19911. /* 426 */,
  19912. /* 427 */
  19913. /*!***************************************************************************!*\
  19914. !*** E:/代码/cbz/cbz/cbz/uni_modules/uview-ui/components/u-swiper/props.js ***!
  19915. \***************************************************************************/
  19916. /*! no static exports found */
  19917. /***/ (function(module, exports, __webpack_require__) {
  19918. "use strict";
  19919. /* WEBPACK VAR INJECTION */(function(uni) {Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0;var _default = {
  19920. props: {
  19921. // 列表数组,元素可为字符串,如为对象可通过keyName指定目标属性名
  19922. list: {
  19923. type: Array,
  19924. default: uni.$u.props.swiper.list },
  19925. // 是否显示面板指示器
  19926. indicator: {
  19927. type: Boolean,
  19928. default: uni.$u.props.swiper.indicator },
  19929. // 指示器非激活颜色
  19930. indicatorActiveColor: {
  19931. type: String,
  19932. default: uni.$u.props.swiper.indicatorActiveColor },
  19933. // 指示器的激活颜色
  19934. indicatorInactiveColor: {
  19935. type: String,
  19936. default: uni.$u.props.swiper.indicatorInactiveColor },
  19937. // 指示器样式,可通过bottom,left,right进行定位
  19938. indicatorStyle: {
  19939. type: [String, Object],
  19940. default: uni.$u.props.swiper.indicatorStyle },
  19941. // 指示器模式,line-线型,dot-点型
  19942. indicatorMode: {
  19943. type: String,
  19944. default: uni.$u.props.swiper.indicatorMode },
  19945. // 是否自动切换
  19946. autoplay: {
  19947. type: Boolean,
  19948. default: uni.$u.props.swiper.autoplay },
  19949. // 当前所在滑块的 index
  19950. current: {
  19951. type: [String, Number],
  19952. default: uni.$u.props.swiper.current },
  19953. // 当前所在滑块的 item-id ,不能与 current 被同时指定
  19954. currentItemId: {
  19955. type: String,
  19956. default: uni.$u.props.swiper.currentItemId },
  19957. // 滑块自动切换时间间隔
  19958. interval: {
  19959. type: [String, Number],
  19960. default: uni.$u.props.swiper.interval },
  19961. // 滑块切换过程所需时间
  19962. duration: {
  19963. type: [String, Number],
  19964. default: uni.$u.props.swiper.duration },
  19965. // 播放到末尾后是否重新回到开头
  19966. circular: {
  19967. type: Boolean,
  19968. default: uni.$u.props.swiper.circular },
  19969. // 前边距,可用于露出前一项的一小部分,nvue和支付宝不支持
  19970. previousMargin: {
  19971. type: [String, Number],
  19972. default: uni.$u.props.swiper.previousMargin },
  19973. // 后边距,可用于露出后一项的一小部分,nvue和支付宝不支持
  19974. nextMargin: {
  19975. type: [String, Number],
  19976. default: uni.$u.props.swiper.nextMargin },
  19977. // 当开启时,会根据滑动速度,连续滑动多屏,支付宝不支持
  19978. acceleration: {
  19979. type: Boolean,
  19980. default: uni.$u.props.swiper.acceleration },
  19981. // 同时显示的滑块数量,nvue、支付宝小程序不支持
  19982. displayMultipleItems: {
  19983. type: Number,
  19984. default: uni.$u.props.swiper.displayMultipleItems },
  19985. // 指定swiper切换缓动动画类型,有效值:default、linear、easeInCubic、easeOutCubic、easeInOutCubic
  19986. // 只对微信小程序有效
  19987. easingFunction: {
  19988. type: String,
  19989. default: uni.$u.props.swiper.easingFunction },
  19990. // list数组中指定对象的目标属性名
  19991. keyName: {
  19992. type: String,
  19993. default: uni.$u.props.swiper.keyName },
  19994. // 图片的裁剪模式
  19995. imgMode: {
  19996. type: String,
  19997. default: uni.$u.props.swiper.imgMode },
  19998. // 组件高度
  19999. height: {
  20000. type: [String, Number],
  20001. default: uni.$u.props.swiper.height },
  20002. // 背景颜色
  20003. bgColor: {
  20004. type: String,
  20005. default: uni.$u.props.swiper.bgColor },
  20006. // 组件圆角,数值或带单位的字符串
  20007. radius: {
  20008. type: [String, Number],
  20009. default: uni.$u.props.swiper.radius },
  20010. // 是否加载中
  20011. loading: {
  20012. type: Boolean,
  20013. default: uni.$u.props.swiper.loading },
  20014. // 是否显示标题,要求数组对象中有title属性
  20015. showTitle: {
  20016. type: Boolean,
  20017. default: uni.$u.props.swiper.showTitle } } };exports.default = _default;
  20018. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 1)["default"]))
  20019. /***/ }),
  20020. /* 428 */,
  20021. /* 429 */,
  20022. /* 430 */,
  20023. /* 431 */,
  20024. /* 432 */,
  20025. /* 433 */,
  20026. /* 434 */,
  20027. /* 435 */
  20028. /*!*******************************************************************************!*\
  20029. !*** E:/代码/cbz/cbz/cbz/uni_modules/uview-ui/components/u-notice-bar/props.js ***!
  20030. \*******************************************************************************/
  20031. /*! no static exports found */
  20032. /***/ (function(module, exports, __webpack_require__) {
  20033. "use strict";
  20034. /* WEBPACK VAR INJECTION */(function(uni) {Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0;var _default = {
  20035. props: {
  20036. // 显示的内容,数组
  20037. text: {
  20038. type: [Array, String],
  20039. default: uni.$u.props.noticeBar.text },
  20040. // 通告滚动模式,row-横向滚动,column-竖向滚动
  20041. direction: {
  20042. type: String,
  20043. default: uni.$u.props.noticeBar.direction },
  20044. // direction = row时,是否使用步进形式滚动
  20045. step: {
  20046. type: Boolean,
  20047. default: uni.$u.props.noticeBar.step },
  20048. // 是否显示左侧的音量图标
  20049. icon: {
  20050. type: String,
  20051. default: uni.$u.props.noticeBar.icon },
  20052. // 通告模式,link-显示右箭头,closable-显示右侧关闭图标
  20053. mode: {
  20054. type: String,
  20055. default: uni.$u.props.noticeBar.mode },
  20056. // 文字颜色,各图标也会使用文字颜色
  20057. color: {
  20058. type: String,
  20059. default: uni.$u.props.noticeBar.color },
  20060. // 背景颜色
  20061. bgColor: {
  20062. type: String,
  20063. default: uni.$u.props.noticeBar.bgColor },
  20064. // 水平滚动时的滚动速度,即每秒滚动多少px(px),这有利于控制文字无论多少时,都能有一个恒定的速度
  20065. speed: {
  20066. type: [String, Number],
  20067. default: uni.$u.props.noticeBar.speed },
  20068. // 字体大小
  20069. fontSize: {
  20070. type: [String, Number],
  20071. default: uni.$u.props.noticeBar.fontSize },
  20072. // 滚动一个周期的时间长,单位ms
  20073. duration: {
  20074. type: [String, Number],
  20075. default: uni.$u.props.noticeBar.duration },
  20076. // 是否禁止用手滑动切换
  20077. // 目前HX2.6.11,只支持App 2.5.5+、H5 2.5.5+、支付宝小程序、字节跳动小程序
  20078. disableTouch: {
  20079. type: Boolean,
  20080. default: uni.$u.props.noticeBar.disableTouch },
  20081. // 跳转的页面路径
  20082. url: {
  20083. type: String,
  20084. default: uni.$u.props.noticeBar.url },
  20085. // 页面跳转的类型
  20086. linkType: {
  20087. type: String,
  20088. default: uni.$u.props.noticeBar.linkType } } };exports.default = _default;
  20089. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 1)["default"]))
  20090. /***/ }),
  20091. /* 436 */,
  20092. /* 437 */,
  20093. /* 438 */,
  20094. /* 439 */,
  20095. /* 440 */,
  20096. /* 441 */,
  20097. /* 442 */,
  20098. /* 443 */
  20099. /*!*************************************************************************!*\
  20100. !*** E:/代码/cbz/cbz/cbz/uni_modules/uview-ui/components/u-tabs/props.js ***!
  20101. \*************************************************************************/
  20102. /*! no static exports found */
  20103. /***/ (function(module, exports, __webpack_require__) {
  20104. "use strict";
  20105. /* WEBPACK VAR INJECTION */(function(uni) {Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0;var _default = {
  20106. props: {
  20107. // 滑块的移动过渡时间,单位ms
  20108. duration: {
  20109. type: Number,
  20110. default: uni.$u.props.tabs.duration },
  20111. // tabs标签数组
  20112. list: {
  20113. type: Array,
  20114. default: uni.$u.props.tabs.list },
  20115. // 滑块颜色
  20116. lineColor: {
  20117. type: String,
  20118. default: uni.$u.props.tabs.lineColor },
  20119. // 菜单选择中时的样式
  20120. activeStyle: {
  20121. type: [String, Object],
  20122. default: uni.$u.props.tabs.activeStyle },
  20123. // 菜单非选中时的样式
  20124. inactiveStyle: {
  20125. type: [String, Object],
  20126. default: uni.$u.props.tabs.inactiveStyle },
  20127. // 滑块长度
  20128. lineWidth: {
  20129. type: [String, Number],
  20130. default: uni.$u.props.tabs.lineWidth },
  20131. // 滑块高度
  20132. lineHeight: {
  20133. type: [String, Number],
  20134. default: uni.$u.props.tabs.lineHeight },
  20135. // 滑块背景显示大小,当滑块背景设置为图片时使用
  20136. lineBgSize: {
  20137. type: String,
  20138. default: uni.$u.props.tabs.lineBgSize },
  20139. // 菜单item的样式
  20140. itemStyle: {
  20141. type: [String, Object],
  20142. default: uni.$u.props.tabs.itemStyle },
  20143. // 菜单是否可滚动
  20144. scrollable: {
  20145. type: Boolean,
  20146. default: uni.$u.props.tabs.scrollable },
  20147. // 当前选中标签的索引
  20148. current: {
  20149. type: [Number, String],
  20150. default: uni.$u.props.tabs.current },
  20151. // 默认读取的键名
  20152. keyName: {
  20153. type: String,
  20154. default: uni.$u.props.tabs.keyName } } };exports.default = _default;
  20155. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 1)["default"]))
  20156. /***/ }),
  20157. /* 444 */,
  20158. /* 445 */,
  20159. /* 446 */,
  20160. /* 447 */,
  20161. /* 448 */,
  20162. /* 449 */,
  20163. /* 450 */,
  20164. /* 451 */,
  20165. /* 452 */,
  20166. /* 453 */,
  20167. /* 454 */,
  20168. /* 455 */,
  20169. /* 456 */,
  20170. /* 457 */,
  20171. /* 458 */
  20172. /*!*************************************************************************!*\
  20173. !*** E:/代码/cbz/cbz/cbz/uni_modules/uview-ui/components/u-code/props.js ***!
  20174. \*************************************************************************/
  20175. /*! no static exports found */
  20176. /***/ (function(module, exports, __webpack_require__) {
  20177. "use strict";
  20178. /* WEBPACK VAR INJECTION */(function(uni) {Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0;var _default = {
  20179. props: {
  20180. // 倒计时总秒数
  20181. seconds: {
  20182. type: [String, Number],
  20183. default: uni.$u.props.code.seconds },
  20184. // 尚未开始时提示
  20185. startText: {
  20186. type: String,
  20187. default: uni.$u.props.code.startText },
  20188. // 正在倒计时中的提示
  20189. changeText: {
  20190. type: String,
  20191. default: uni.$u.props.code.changeText },
  20192. // 倒计时结束时的提示
  20193. endText: {
  20194. type: String,
  20195. default: uni.$u.props.code.endText },
  20196. // 是否在H5刷新或各端返回再进入时继续倒计时
  20197. keepRunning: {
  20198. type: Boolean,
  20199. default: uni.$u.props.code.keepRunning },
  20200. // 为了区分多个页面,或者一个页面多个倒计时组件本地存储的继续倒计时变了
  20201. uniqueKey: {
  20202. type: String,
  20203. default: uni.$u.props.code.uniqueKey } } };exports.default = _default;
  20204. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 1)["default"]))
  20205. /***/ }),
  20206. /* 459 */,
  20207. /* 460 */,
  20208. /* 461 */,
  20209. /* 462 */,
  20210. /* 463 */,
  20211. /* 464 */,
  20212. /* 465 */,
  20213. /* 466 */
  20214. /*!***********************************************************************************!*\
  20215. !*** E:/代码/cbz/cbz/cbz/uni_modules/uview-ui/components/u-checkbox-group/props.js ***!
  20216. \***********************************************************************************/
  20217. /*! no static exports found */
  20218. /***/ (function(module, exports, __webpack_require__) {
  20219. "use strict";
  20220. /* WEBPACK VAR INJECTION */(function(uni) {Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0;var _default = {
  20221. props: {
  20222. // 标识符
  20223. name: {
  20224. type: String,
  20225. default: uni.$u.props.checkboxGroup.name },
  20226. // 绑定的值
  20227. value: {
  20228. type: Array,
  20229. default: uni.$u.props.checkboxGroup.value },
  20230. // 形状,circle-圆形,square-方形
  20231. shape: {
  20232. type: String,
  20233. default: uni.$u.props.checkboxGroup.shape },
  20234. // 是否禁用全部checkbox
  20235. disabled: {
  20236. type: Boolean,
  20237. default: uni.$u.props.checkboxGroup.disabled },
  20238. // 选中状态下的颜色,如设置此值,将会覆盖parent的activeColor值
  20239. activeColor: {
  20240. type: String,
  20241. default: uni.$u.props.checkboxGroup.activeColor },
  20242. // 未选中的颜色
  20243. inactiveColor: {
  20244. type: String,
  20245. default: uni.$u.props.checkboxGroup.inactiveColor },
  20246. // 整个组件的尺寸,默认px
  20247. size: {
  20248. type: [String, Number],
  20249. default: uni.$u.props.checkboxGroup.size },
  20250. // 布局方式,row-横向,column-纵向
  20251. placement: {
  20252. type: String,
  20253. default: uni.$u.props.checkboxGroup.placement },
  20254. // label的字体大小,px单位
  20255. labelSize: {
  20256. type: [String, Number],
  20257. default: uni.$u.props.checkboxGroup.labelSize },
  20258. // label的字体颜色
  20259. labelColor: {
  20260. type: [String],
  20261. default: uni.$u.props.checkboxGroup.labelColor },
  20262. // 是否禁止点击文本操作
  20263. labelDisabled: {
  20264. type: Boolean,
  20265. default: uni.$u.props.checkboxGroup.labelDisabled },
  20266. // 图标颜色
  20267. iconColor: {
  20268. type: String,
  20269. default: uni.$u.props.checkboxGroup.iconColor },
  20270. // 图标的大小,单位px
  20271. iconSize: {
  20272. type: [String, Number],
  20273. default: uni.$u.props.checkboxGroup.iconSize },
  20274. // 勾选图标的对齐方式,left-左边,right-右边
  20275. iconPlacement: {
  20276. type: String,
  20277. default: uni.$u.props.checkboxGroup.iconPlacement },
  20278. // 竖向配列时,是否显示下划线
  20279. borderBottom: {
  20280. type: Boolean,
  20281. default: uni.$u.props.checkboxGroup.borderBottom } } };exports.default = _default;
  20282. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 1)["default"]))
  20283. /***/ }),
  20284. /* 467 */,
  20285. /* 468 */,
  20286. /* 469 */,
  20287. /* 470 */,
  20288. /* 471 */,
  20289. /* 472 */,
  20290. /* 473 */,
  20291. /* 474 */
  20292. /*!*****************************************************************************!*\
  20293. !*** E:/代码/cbz/cbz/cbz/uni_modules/uview-ui/components/u-checkbox/props.js ***!
  20294. \*****************************************************************************/
  20295. /*! no static exports found */
  20296. /***/ (function(module, exports, __webpack_require__) {
  20297. "use strict";
  20298. /* WEBPACK VAR INJECTION */(function(uni) {Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0;var _default = {
  20299. props: {
  20300. // checkbox的名称
  20301. name: {
  20302. type: [String, Number, Boolean],
  20303. default: uni.$u.props.checkbox.name },
  20304. // 形状,square为方形,circle为圆型
  20305. shape: {
  20306. type: String,
  20307. default: uni.$u.props.checkbox.shape },
  20308. // 整体的大小
  20309. size: {
  20310. type: [String, Number],
  20311. default: uni.$u.props.checkbox.size },
  20312. // 是否默认选中
  20313. checked: {
  20314. type: Boolean,
  20315. default: uni.$u.props.checkbox.checked },
  20316. // 是否禁用
  20317. disabled: {
  20318. type: [String, Boolean],
  20319. default: uni.$u.props.checkbox.disabled },
  20320. // 选中状态下的颜色,如设置此值,将会覆盖parent的activeColor值
  20321. activeColor: {
  20322. type: String,
  20323. default: uni.$u.props.checkbox.activeColor },
  20324. // 未选中的颜色
  20325. inactiveColor: {
  20326. type: String,
  20327. default: uni.$u.props.checkbox.inactiveColor },
  20328. // 图标的大小,单位px
  20329. iconSize: {
  20330. type: [String, Number],
  20331. default: uni.$u.props.checkbox.iconSize },
  20332. // 图标颜色
  20333. iconColor: {
  20334. type: String,
  20335. default: uni.$u.props.checkbox.iconColor },
  20336. // label提示文字,因为nvue下,直接slot进来的文字,由于特殊的结构,无法修改样式
  20337. label: {
  20338. type: [String, Number],
  20339. default: uni.$u.props.checkbox.label },
  20340. // label的字体大小,px单位
  20341. labelSize: {
  20342. type: [String, Number],
  20343. default: uni.$u.props.checkbox.labelSize },
  20344. // label的颜色
  20345. labelColor: {
  20346. type: String,
  20347. default: uni.$u.props.checkbox.labelColor },
  20348. // 是否禁止点击提示语选中复选框
  20349. labelDisabled: {
  20350. type: [String, Boolean],
  20351. default: uni.$u.props.checkbox.labelDisabled } } };exports.default = _default;
  20352. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 1)["default"]))
  20353. /***/ }),
  20354. /* 475 */,
  20355. /* 476 */,
  20356. /* 477 */,
  20357. /* 478 */,
  20358. /* 479 */,
  20359. /* 480 */,
  20360. /* 481 */,
  20361. /* 482 */
  20362. /*!**************************************************************************!*\
  20363. !*** E:/代码/cbz/cbz/cbz/uni_modules/uview-ui/components/u-modal/props.js ***!
  20364. \**************************************************************************/
  20365. /*! no static exports found */
  20366. /***/ (function(module, exports, __webpack_require__) {
  20367. "use strict";
  20368. /* WEBPACK VAR INJECTION */(function(uni) {Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0;var _default = {
  20369. props: {
  20370. // 是否展示modal
  20371. show: {
  20372. type: Boolean,
  20373. default: uni.$u.props.modal.show },
  20374. // 标题
  20375. title: {
  20376. type: [String],
  20377. default: uni.$u.props.modal.title },
  20378. // 弹窗内容
  20379. content: {
  20380. type: String,
  20381. default: uni.$u.props.modal.content },
  20382. // 确认文案
  20383. confirmText: {
  20384. type: String,
  20385. default: uni.$u.props.modal.confirmText },
  20386. // 取消文案
  20387. cancelText: {
  20388. type: String,
  20389. default: uni.$u.props.modal.cancelText },
  20390. // 是否显示确认按钮
  20391. showConfirmButton: {
  20392. type: Boolean,
  20393. default: uni.$u.props.modal.showConfirmButton },
  20394. // 是否显示取消按钮
  20395. showCancelButton: {
  20396. type: Boolean,
  20397. default: uni.$u.props.modal.showCancelButton },
  20398. // 确认按钮颜色
  20399. confirmColor: {
  20400. type: String,
  20401. default: uni.$u.props.modal.confirmColor },
  20402. // 取消文字颜色
  20403. cancelColor: {
  20404. type: String,
  20405. default: uni.$u.props.modal.cancelColor },
  20406. // 对调确认和取消的位置
  20407. buttonReverse: {
  20408. type: Boolean,
  20409. default: uni.$u.props.modal.buttonReverse },
  20410. // 是否开启缩放效果
  20411. zoom: {
  20412. type: Boolean,
  20413. default: uni.$u.props.modal.zoom },
  20414. // 是否异步关闭,只对确定按钮有效
  20415. asyncClose: {
  20416. type: Boolean,
  20417. default: uni.$u.props.modal.asyncClose },
  20418. // 是否允许点击遮罩关闭modal
  20419. closeOnClickOverlay: {
  20420. type: Boolean,
  20421. default: uni.$u.props.modal.closeOnClickOverlay },
  20422. // 给一个负的margin-top,往上偏移,避免和键盘重合的情况
  20423. negativeTop: {
  20424. type: [String, Number],
  20425. default: uni.$u.props.modal.negativeTop },
  20426. // modal宽度,不支持百分比,可以数值,px,rpx单位
  20427. width: {
  20428. type: [String, Number],
  20429. default: uni.$u.props.modal.width },
  20430. // 确认按钮的样式,circle-圆形,square-方形,如设置,将不会显示取消按钮
  20431. confirmButtonShape: {
  20432. type: String,
  20433. default: uni.$u.props.modal.confirmButtonShape } } };exports.default = _default;
  20434. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 1)["default"]))
  20435. /***/ }),
  20436. /* 483 */,
  20437. /* 484 */,
  20438. /* 485 */,
  20439. /* 486 */,
  20440. /* 487 */,
  20441. /* 488 */,
  20442. /* 489 */,
  20443. /* 490 */
  20444. /*!*******************************************************************************!*\
  20445. !*** E:/代码/cbz/cbz/cbz/uni_modules/uview-ui/components/u-index-list/props.js ***!
  20446. \*******************************************************************************/
  20447. /*! no static exports found */
  20448. /***/ (function(module, exports, __webpack_require__) {
  20449. "use strict";
  20450. /* WEBPACK VAR INJECTION */(function(uni) {Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0;var _default = {
  20451. props: {
  20452. // 右边锚点非激活的颜色
  20453. inactiveColor: {
  20454. type: String,
  20455. default: uni.$u.props.indexList.inactiveColor },
  20456. // 右边锚点激活的颜色
  20457. activeColor: {
  20458. type: String,
  20459. default: uni.$u.props.indexList.activeColor },
  20460. // 索引字符列表,数组形式
  20461. indexList: {
  20462. type: Array,
  20463. default: uni.$u.props.indexList.indexList },
  20464. // 是否开启锚点自动吸顶
  20465. sticky: {
  20466. type: Boolean,
  20467. default: uni.$u.props.indexList.sticky },
  20468. // 自定义导航栏的高度
  20469. customNavHeight: {
  20470. type: [String, Number],
  20471. default: uni.$u.props.indexList.customNavHeight } } };exports.default = _default;
  20472. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 1)["default"]))
  20473. /***/ }),
  20474. /* 491 */,
  20475. /* 492 */,
  20476. /* 493 */,
  20477. /* 494 */,
  20478. /* 495 */,
  20479. /* 496 */,
  20480. /* 497 */,
  20481. /* 498 */
  20482. /*!*******************************************************************************!*\
  20483. !*** E:/代码/cbz/cbz/cbz/uni_modules/uview-ui/components/u-index-item/props.js ***!
  20484. \*******************************************************************************/
  20485. /*! no static exports found */
  20486. /***/ (function(module, exports, __webpack_require__) {
  20487. "use strict";
  20488. Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0;var _default = {
  20489. props: {} };exports.default = _default;
  20490. /***/ }),
  20491. /* 499 */,
  20492. /* 500 */,
  20493. /* 501 */,
  20494. /* 502 */,
  20495. /* 503 */,
  20496. /* 504 */,
  20497. /* 505 */,
  20498. /* 506 */
  20499. /*!**************************************************************************!*\
  20500. !*** E:/代码/cbz/cbz/cbz/uni_modules/uview-ui/components/u-parse/props.js ***!
  20501. \**************************************************************************/
  20502. /*! no static exports found */
  20503. /***/ (function(module, exports, __webpack_require__) {
  20504. "use strict";
  20505. /* WEBPACK VAR INJECTION */(function(uni) {Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0;var _default = {
  20506. props: {
  20507. content: String,
  20508. copyLink: {
  20509. type: Boolean,
  20510. default: uni.$u.props.parse.copyLink },
  20511. domain: String,
  20512. errorImg: {
  20513. type: String,
  20514. default: uni.$u.props.parse.errorImg },
  20515. lazyLoad: {
  20516. type: Boolean,
  20517. default: uni.$u.props.parse.lazyLoad },
  20518. loadingImg: {
  20519. type: String,
  20520. default: uni.$u.props.parse.loadingImg },
  20521. pauseVideo: {
  20522. type: Boolean,
  20523. default: uni.$u.props.parse.pauseVideo },
  20524. previewImg: {
  20525. type: Boolean,
  20526. default: uni.$u.props.parse.previewImg },
  20527. scrollTable: Boolean,
  20528. selectable: Boolean,
  20529. setTitle: {
  20530. type: Boolean,
  20531. default: uni.$u.props.parse.setTitle },
  20532. showImgMenu: {
  20533. type: Boolean,
  20534. default: uni.$u.props.parse.showImgMenu },
  20535. tagStyle: Object,
  20536. useAnchor: null } };exports.default = _default;
  20537. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 1)["default"]))
  20538. /***/ }),
  20539. /* 507 */
  20540. /*!***************************************************************************!*\
  20541. !*** E:/代码/cbz/cbz/cbz/uni_modules/uview-ui/components/u-parse/parser.js ***!
  20542. \***************************************************************************/
  20543. /*! no static exports found */
  20544. /***/ (function(module, exports, __webpack_require__) {
  20545. "use strict";
  20546. /* WEBPACK VAR INJECTION */(function(uni) {
  20547. /**
  20548. * @fileoverview html 解析器
  20549. */
  20550. // 配置
  20551. function ownKeys(object, enumerableOnly) {var keys = Object.keys(object);if (Object.getOwnPropertySymbols) {var symbols = Object.getOwnPropertySymbols(object);if (enumerableOnly) symbols = symbols.filter(function (sym) {return Object.getOwnPropertyDescriptor(object, sym).enumerable;});keys.push.apply(keys, symbols);}return keys;}function _objectSpread(target) {for (var i = 1; i < arguments.length; i++) {var source = arguments[i] != null ? arguments[i] : {};if (i % 2) {ownKeys(Object(source), true).forEach(function (key) {_defineProperty(target, key, source[key]);});} else if (Object.getOwnPropertyDescriptors) {Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));} else {ownKeys(Object(source)).forEach(function (key) {Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));});}}return target;}function _defineProperty(obj, key, value) {if (key in obj) {Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true });} else {obj[key] = value;}return obj;}var config = {
  20552. // 信任的标签(保持标签名不变)
  20553. trustTags: makeMap('a,abbr,ad,audio,b,blockquote,br,code,col,colgroup,dd,del,dl,dt,div,em,fieldset,h1,h2,h3,h4,h5,h6,hr,i,img,ins,label,legend,li,ol,p,q,ruby,rt,source,span,strong,sub,sup,table,tbody,td,tfoot,th,thead,tr,title,ul,video'),
  20554. // 块级标签(转为 div,其他的非信任标签转为 span)
  20555. blockTags: makeMap('address,article,aside,body,caption,center,cite,footer,header,html,nav,pre,section'),
  20556. // 要移除的标签
  20557. ignoreTags: makeMap('area,base,canvas,embed,frame,head,iframe,input,link,map,meta,param,rp,script,source,style,textarea,title,track,wbr'),
  20558. // 自闭合的标签
  20559. voidTags: makeMap('area,base,br,col,circle,ellipse,embed,frame,hr,img,input,line,link,meta,param,path,polygon,rect,source,track,use,wbr'),
  20560. // html 实体
  20561. entities: {
  20562. lt: '<',
  20563. gt: '>',
  20564. quot: '"',
  20565. apos: "'",
  20566. ensp: "\u2002",
  20567. emsp: "\u2003",
  20568. nbsp: '\xA0',
  20569. semi: ';',
  20570. ndash: '–',
  20571. mdash: '—',
  20572. middot: '·',
  20573. lsquo: '‘',
  20574. rsquo: '’',
  20575. ldquo: '“',
  20576. rdquo: '”',
  20577. bull: '•',
  20578. hellip: '…' },
  20579. // 默认的标签样式
  20580. tagStyle: {
  20581. address: 'font-style:italic',
  20582. big: 'display:inline;font-size:1.2em',
  20583. caption: 'display:table-caption;text-align:center',
  20584. center: 'text-align:center',
  20585. cite: 'font-style:italic',
  20586. dd: 'margin-left:40px',
  20587. mark: 'background-color:yellow',
  20588. pre: 'font-family:monospace;white-space:pre',
  20589. s: 'text-decoration:line-through',
  20590. small: 'display:inline;font-size:0.8em',
  20591. u: 'text-decoration:underline' } };var _uni$getSystemInfoSyn =
  20592. uni.getSystemInfoSync(),windowWidth = _uni$getSystemInfoSyn.windowWidth;
  20593. var blankChar = makeMap(' ,\r,\n,\t,\f');
  20594. var idIndex = 0;
  20595. /**
  20596. * @description 创建 map
  20597. * @param {String} str 逗号分隔
  20598. */
  20599. function makeMap(str) {
  20600. var map = Object.create(null);
  20601. var list = str.split(',');
  20602. for (var i = list.length; i--;) {
  20603. map[list[i]] = true;
  20604. }
  20605. return map;
  20606. }
  20607. /**
  20608. * @description 解码 html 实体
  20609. * @param {String} str 要解码的字符串
  20610. * @param {Boolean} amp 要不要解码 &amp;
  20611. * @returns {String} 解码后的字符串
  20612. */
  20613. function decodeEntity(str, amp) {
  20614. var i = str.indexOf('&');
  20615. while (i != -1) {
  20616. var j = str.indexOf(';', i + 3);
  20617. var code = void 0;
  20618. if (j == -1) break;
  20619. if (str[i + 1] == '#') {
  20620. // &#123; 形式的实体
  20621. code = parseInt((str[i + 2] == 'x' ? '0' : '') + str.substring(i + 2, j));
  20622. if (!isNaN(code)) str = str.substr(0, i) + String.fromCharCode(code) + str.substr(j + 1);
  20623. } else {
  20624. // &nbsp; 形式的实体
  20625. code = str.substring(i + 1, j);
  20626. if (config.entities[code] || code == 'amp' && amp) str = str.substr(0, i) + (config.entities[code] || '&') + str.substr(j + 1);
  20627. }
  20628. i = str.indexOf('&', i + 1);
  20629. }
  20630. return str;
  20631. }
  20632. /**
  20633. * @description html 解析器
  20634. * @param {Object} vm 组件实例
  20635. */
  20636. function parser(vm) {
  20637. this.options = vm || {};
  20638. this.tagStyle = Object.assign(config.tagStyle, this.options.tagStyle);
  20639. this.imgList = vm.imgList || [];
  20640. this.plugins = vm.plugins || [];
  20641. this.attrs = Object.create(null);
  20642. this.stack = [];
  20643. this.nodes = [];
  20644. }
  20645. /**
  20646. * @description 执行解析
  20647. * @param {String} content 要解析的文本
  20648. */
  20649. parser.prototype.parse = function (content) {
  20650. // 插件处理
  20651. for (var i = this.plugins.length; i--;) {
  20652. if (this.plugins[i].onUpdate) content = this.plugins[i].onUpdate(content, config) || content;
  20653. }
  20654. new lexer(this).parse(content); // 出栈未闭合的标签
  20655. while (this.stack.length) {
  20656. this.popNode();
  20657. }
  20658. return this.nodes;
  20659. };
  20660. /**
  20661. * @description 将标签暴露出来(不被 rich-text 包含)
  20662. */
  20663. parser.prototype.expose = function () {
  20664. for (var i = this.stack.length; i--;) {
  20665. var item = this.stack[i];
  20666. if (item.name == 'a' || item.c) return;
  20667. item.c = 1;
  20668. }
  20669. };
  20670. /**
  20671. * @description 处理插件
  20672. * @param {Object} node 要处理的标签
  20673. * @returns {Boolean} 是否要移除此标签
  20674. */
  20675. parser.prototype.hook = function (node) {
  20676. for (var i = this.plugins.length; i--;) {
  20677. if (this.plugins[i].onParse && this.plugins[i].onParse(node, this) == false) return false;
  20678. }
  20679. return true;
  20680. };
  20681. /**
  20682. * @description 将链接拼接上主域名
  20683. * @param {String} url 需要拼接的链接
  20684. * @returns {String} 拼接后的链接
  20685. */
  20686. parser.prototype.getUrl = function (url) {var
  20687. domain = this.options.domain;
  20688. if (url[0] == '/') {
  20689. // // 开头的补充协议名
  20690. if (url[1] == '/') url = "".concat(domain ? domain.split('://')[0] : 'http', ":").concat(url); // 否则补充整个域名
  20691. else if (domain) url = domain + url;
  20692. } else if (domain && !url.includes('data:') && !url.includes('://')) url = "".concat(domain, "/").concat(url);
  20693. return url;
  20694. };
  20695. /**
  20696. * @description 解析样式表
  20697. * @param {Object} node 标签
  20698. * @returns {Object}
  20699. */
  20700. parser.prototype.parseStyle = function (node) {var
  20701. attrs = node.attrs;
  20702. var list = (this.tagStyle[node.name] || '').split(';').concat((attrs.style || '').split(';'));
  20703. var styleObj = {};
  20704. var tmp = '';
  20705. if (attrs.id) {
  20706. // 暴露锚点
  20707. if (this.options.useAnchor) this.expose();else if (node.name != 'img' && node.name != 'a' && node.name != 'video' && node.name != 'audio') attrs.id = void 0;
  20708. } // 转换 width 和 height 属性
  20709. if (attrs.width) {
  20710. styleObj.width = parseFloat(attrs.width) + (attrs.width.includes('%') ? '%' : 'px');
  20711. attrs.width = void 0;
  20712. }
  20713. if (attrs.height) {
  20714. styleObj.height = parseFloat(attrs.height) + (attrs.height.includes('%') ? '%' : 'px');
  20715. attrs.height = void 0;
  20716. }
  20717. for (var i = 0, len = list.length; i < len; i++) {
  20718. var info = list[i].split(':');
  20719. if (info.length < 2) continue;
  20720. var key = info.shift().trim().toLowerCase();
  20721. var value = info.join(':').trim(); // 兼容性的 css 不压缩
  20722. if (value[0] == '-' && value.lastIndexOf('-') > 0 || value.includes('safe')) tmp += ';'.concat(key, ':').concat(value); // 重复的样式进行覆盖
  20723. else if (!styleObj[key] || value.includes('import') || !styleObj[key].includes('import')) {
  20724. // 填充链接
  20725. if (value.includes('url')) {
  20726. var j = value.indexOf('(') + 1;
  20727. if (j) {
  20728. while (value[j] == '"' || value[j] == "'" || blankChar[value[j]]) {
  20729. j++;
  20730. }
  20731. value = value.substr(0, j) + this.getUrl(value.substr(j));
  20732. }
  20733. } // 转换 rpx(rich-text 内部不支持 rpx)
  20734. else if (value.includes('rpx')) {
  20735. value = value.replace(/[0-9.]+\s*rpx/g, function ($) {return "".concat(parseFloat($) * windowWidth / 750, "px");});
  20736. }
  20737. styleObj[key] = value;
  20738. }
  20739. }
  20740. node.attrs.style = tmp;
  20741. return styleObj;
  20742. };
  20743. /**
  20744. * @description 解析到标签名
  20745. * @param {String} name 标签名
  20746. * @private
  20747. */
  20748. parser.prototype.onTagName = function (name) {
  20749. this.tagName = this.xml ? name : name.toLowerCase();
  20750. if (this.tagName == 'svg') this.xml = true; // svg 标签内大小写敏感
  20751. };
  20752. /**
  20753. * @description 解析到属性名
  20754. * @param {String} name 属性名
  20755. * @private
  20756. */
  20757. parser.prototype.onAttrName = function (name) {
  20758. name = this.xml ? name : name.toLowerCase();
  20759. if (name.substr(0, 5) == 'data-') {
  20760. // data-src 自动转为 src
  20761. if (name == 'data-src' && !this.attrs.src) this.attrName = 'src'; // a 和 img 标签保留 data- 的属性,可以在 imgtap 和 linktap 事件中使用
  20762. else if (this.tagName == 'img' || this.tagName == 'a') this.attrName = name; // 剩余的移除以减小大小
  20763. else this.attrName = void 0;
  20764. } else {
  20765. this.attrName = name;
  20766. this.attrs[name] = 'T'; // boolean 型属性缺省设置
  20767. }
  20768. };
  20769. /**
  20770. * @description 解析到属性值
  20771. * @param {String} val 属性值
  20772. * @private
  20773. */
  20774. parser.prototype.onAttrVal = function (val) {
  20775. var name = this.attrName || ''; // 部分属性进行实体解码
  20776. if (name == 'style' || name == 'href') this.attrs[name] = decodeEntity(val, true); // 拼接主域名
  20777. else if (name.includes('src')) this.attrs[name] = this.getUrl(decodeEntity(val, true));else if (name) this.attrs[name] = val;
  20778. };
  20779. /**
  20780. * @description 解析到标签开始
  20781. * @param {Boolean} selfClose 是否有自闭合标识 />
  20782. * @private
  20783. */
  20784. parser.prototype.onOpenTag = function (selfClose) {
  20785. // 拼装 node
  20786. var node = Object.create(null);
  20787. node.name = this.tagName;
  20788. node.attrs = this.attrs;
  20789. this.attrs = Object.create(null);var
  20790. attrs = node.attrs;
  20791. var parent = this.stack[this.stack.length - 1];
  20792. var siblings = parent ? parent.children : this.nodes;
  20793. var close = this.xml ? selfClose : config.voidTags[node.name]; // 转换 embed 标签
  20794. if (node.name == 'embed') {
  20795. var src = attrs.src || ''; // 按照后缀名和 type 将 embed 转为 video 或 audio
  20796. if (src.includes('.mp4') || src.includes('.3gp') || src.includes('.m3u8') || (attrs.type || '').includes('video')) node.name = 'video';else if (src.includes('.mp3') || src.includes('.wav') || src.includes('.aac') || src.includes('.m4a') || (attrs.type || '').includes('audio')) node.name = 'audio';
  20797. if (attrs.autostart) attrs.autoplay = 'T';
  20798. attrs.controls = 'T';
  20799. }
  20800. // 处理音视频
  20801. if (node.name == 'video' || node.name == 'audio') {
  20802. // 设置 id 以便获取 context
  20803. if (node.name == 'video' && !attrs.id) attrs.id = "v".concat(idIndex++); // 没有设置 controls 也没有设置 autoplay 的自动设置 controls
  20804. if (!attrs.controls && !attrs.autoplay) attrs.controls = 'T'; // 用数组存储所有可用的 source
  20805. node.src = [];
  20806. if (attrs.src) {
  20807. node.src.push(attrs.src);
  20808. attrs.src = void 0;
  20809. }
  20810. this.expose();
  20811. }
  20812. // 处理自闭合标签
  20813. if (close) {
  20814. if (!this.hook(node) || config.ignoreTags[node.name]) {
  20815. // 通过 base 标签设置主域名
  20816. if (node.name == 'base' && !this.options.domain) this.options.domain = attrs.href;
  20817. // 设置 source 标签(仅父节点为 video 或 audio 时有效)
  20818. else if (node.name == 'source' && parent && (parent.name == 'video' || parent.name == 'audio') && attrs.src) parent.src.push(attrs.src);
  20819. return;
  20820. } // 解析 style
  20821. var styleObj = this.parseStyle(node); // 处理图片
  20822. if (node.name == 'img') {
  20823. if (attrs.src) {
  20824. // 标记 webp
  20825. if (attrs.src.includes('webp')) node.webp = 'T'; // data url 图片如果没有设置 original-src 默认为不可预览的小图片
  20826. if (attrs.src.includes('data:') && !attrs['original-src']) attrs.ignore = 'T';
  20827. if (!attrs.ignore || node.webp || attrs.src.includes('cloud://')) {
  20828. for (var i = this.stack.length; i--;) {
  20829. var item = this.stack[i];
  20830. if (item.name == 'a') {
  20831. node.a = item.attrs;
  20832. break;
  20833. }
  20834. var style = item.attrs.style || '';
  20835. if (style.includes('flex:') && !style.includes('flex:0') && !style.includes('flex: 0') && (!styleObj.width || !styleObj.width.includes('%'))) {
  20836. styleObj.width = '100% !important';
  20837. styleObj.height = '';
  20838. for (var j = i + 1; j < this.stack.length; j++) {
  20839. this.stack[j].attrs.style = (this.stack[j].attrs.style || '').replace('inline-', '');
  20840. }
  20841. } else if (style.includes('flex') && styleObj.width == '100%') {
  20842. for (var _j = i + 1; _j < this.stack.length; _j++) {
  20843. var _style = this.stack[_j].attrs.style || '';
  20844. if (!_style.includes(';width') && !_style.includes(' width') && _style.indexOf('width') != 0) {
  20845. styleObj.width = '';
  20846. break;
  20847. }
  20848. }
  20849. } else if (style.includes('inline-block')) {
  20850. if (styleObj.width && styleObj.width[styleObj.width.length - 1] == '%') {
  20851. item.attrs.style += ";max-width:".concat(styleObj.width);
  20852. styleObj.width = '';
  20853. } else item.attrs.style += ';max-width:100%';
  20854. }
  20855. item.c = 1;
  20856. }
  20857. attrs.i = this.imgList.length.toString();
  20858. var _src = attrs['original-src'] || attrs.src;
  20859. if (this.imgList.includes(_src)) {
  20860. // 如果有重复的链接则对域名进行随机大小写变换避免预览时错位
  20861. var _i = _src.indexOf('://');
  20862. if (_i != -1) {
  20863. _i += 3;
  20864. var newSrc = _src.substr(0, _i);
  20865. for (; _i < _src.length; _i++) {
  20866. if (_src[_i] == '/') break;
  20867. newSrc += Math.random() > 0.5 ? _src[_i].toUpperCase() : _src[_i];
  20868. }
  20869. newSrc += _src.substr(_i);
  20870. _src = newSrc;
  20871. }
  20872. }
  20873. this.imgList.push(_src);
  20874. }
  20875. }
  20876. if (styleObj.display == 'inline') styleObj.display = '';
  20877. if (attrs.ignore) {
  20878. styleObj['max-width'] = styleObj['max-width'] || '100%';
  20879. attrs.style += ';-webkit-touch-callout:none';
  20880. }
  20881. // 设置的宽度超出屏幕,为避免变形,高度转为自动
  20882. if (parseInt(styleObj.width) > windowWidth) styleObj.height = void 0; // 记录是否设置了宽高
  20883. if (styleObj.width) {
  20884. if (styleObj.width.includes('auto')) styleObj.width = '';else {
  20885. node.w = 'T';
  20886. if (styleObj.height && !styleObj.height.includes('auto')) node.h = 'T';
  20887. }
  20888. }
  20889. } else if (node.name == 'svg') {
  20890. siblings.push(node);
  20891. this.stack.push(node);
  20892. this.popNode();
  20893. return;
  20894. }
  20895. for (var key in styleObj) {
  20896. if (styleObj[key]) attrs.style += ';'.concat(key, ':').concat(styleObj[key].replace(' !important', ''));
  20897. }
  20898. attrs.style = attrs.style.substr(1) || void 0;
  20899. } else {
  20900. if (node.name == 'pre' || (attrs.style || '').includes('white-space') && attrs.style.includes('pre')) this.pre = node.pre = true;
  20901. node.children = [];
  20902. this.stack.push(node);
  20903. } // 加入节点树
  20904. siblings.push(node);
  20905. };
  20906. /**
  20907. * @description 解析到标签结束
  20908. * @param {String} name 标签名
  20909. * @private
  20910. */
  20911. parser.prototype.onCloseTag = function (name) {
  20912. // 依次出栈到匹配为止
  20913. name = this.xml ? name : name.toLowerCase();
  20914. var i;
  20915. for (i = this.stack.length; i--;) {
  20916. if (this.stack[i].name == name) break;
  20917. }
  20918. if (i != -1) {
  20919. while (this.stack.length > i) {
  20920. this.popNode();
  20921. }
  20922. } else if (name == 'p' || name == 'br') {
  20923. var siblings = this.stack.length ? this.stack[this.stack.length - 1].children : this.nodes;
  20924. siblings.push({
  20925. name: name,
  20926. attrs: {} });
  20927. }
  20928. };
  20929. /**
  20930. * @description 处理标签出栈
  20931. * @private
  20932. */
  20933. parser.prototype.popNode = function () {
  20934. var node = this.stack.pop();var
  20935. attrs = node.attrs;var
  20936. children = node.children;
  20937. var parent = this.stack[this.stack.length - 1];
  20938. var siblings = parent ? parent.children : this.nodes;
  20939. if (!this.hook(node) || config.ignoreTags[node.name]) {
  20940. // 获取标题
  20941. if (node.name == 'title' && children.length && children[0].type == 'text' && this.options.setTitle) {
  20942. uni.setNavigationBarTitle({
  20943. title: children[0].text });
  20944. }
  20945. siblings.pop();
  20946. return;
  20947. }
  20948. if (node.pre) {
  20949. // 是否合并空白符标识
  20950. node.pre = this.pre = void 0;
  20951. for (var i = this.stack.length; i--;) {
  20952. if (this.stack[i].pre) this.pre = true;
  20953. }
  20954. }
  20955. var styleObj = {}; // 转换 svg
  20956. if (node.name == 'svg') {
  20957. var src = '';var _attrs =
  20958. attrs,style = _attrs.style;
  20959. attrs.style = '';
  20960. attrs.xmlns = 'http://www.w3.org/2000/svg';
  20961. (function traversal(node) {
  20962. src += "<".concat(node.name);
  20963. for (var item in node.attrs) {
  20964. var val = node.attrs[item];
  20965. if (val) {
  20966. if (item == 'viewbox') item = 'viewBox';
  20967. src += ' '.concat(item, '="').concat(val, '"');
  20968. }
  20969. }
  20970. if (!node.children) src += '/>';else {
  20971. src += '>';
  20972. for (var _i2 = 0; _i2 < node.children.length; _i2++) {
  20973. traversal(node.children[_i2]);
  20974. }
  20975. src += "</".concat(node.name, ">");
  20976. }
  20977. })(node);
  20978. node.name = 'img';
  20979. node.attrs = {
  20980. src: "data:image/svg+xml;utf8,".concat(src.replace(/#/g, '%23')),
  20981. style: style,
  20982. ignore: 'T' };
  20983. node.children = void 0;
  20984. this.xml = false;
  20985. return;
  20986. }
  20987. // 转换 align 属性
  20988. if (attrs.align) {
  20989. if (node.name == 'table') {
  20990. if (attrs.align == 'center') styleObj['margin-inline-start'] = styleObj['margin-inline-end'] = 'auto';else styleObj.float = attrs.align;
  20991. } else styleObj['text-align'] = attrs.align;
  20992. attrs.align = void 0;
  20993. } // 转换 font 标签的属性
  20994. if (node.name == 'font') {
  20995. if (attrs.color) {
  20996. styleObj.color = attrs.color;
  20997. attrs.color = void 0;
  20998. }
  20999. if (attrs.face) {
  21000. styleObj['font-family'] = attrs.face;
  21001. attrs.face = void 0;
  21002. }
  21003. if (attrs.size) {
  21004. var size = parseInt(attrs.size);
  21005. if (!isNaN(size)) {
  21006. if (size < 1) size = 1;else if (size > 7) size = 7;
  21007. styleObj['font-size'] = ['xx-small', 'x-small', 'small', 'medium', 'large', 'x-large', 'xx-large'][size - 1];
  21008. }
  21009. attrs.size = void 0;
  21010. }
  21011. }
  21012. // 一些编辑器的自带 class
  21013. if ((attrs.class || '').includes('align-center')) styleObj['text-align'] = 'center';
  21014. Object.assign(styleObj, this.parseStyle(node));
  21015. if (parseInt(styleObj.width) > windowWidth) {
  21016. styleObj['max-width'] = '100%';
  21017. styleObj['box-sizing'] = 'border-box';
  21018. }
  21019. if (config.blockTags[node.name]) node.name = 'div'; // 未知标签转为 span,避免无法显示
  21020. else if (!config.trustTags[node.name] && !this.xml) node.name = 'span';
  21021. if (node.name == 'a' || node.name == 'ad')
  21022. this.expose();
  21023. // 列表处理
  21024. else if ((node.name == 'ul' || node.name == 'ol') && node.c) {
  21025. var types = {
  21026. a: 'lower-alpha',
  21027. A: 'upper-alpha',
  21028. i: 'lower-roman',
  21029. I: 'upper-roman' };
  21030. if (types[attrs.type]) {
  21031. attrs.style += ";list-style-type:".concat(types[attrs.type]);
  21032. attrs.type = void 0;
  21033. }
  21034. for (var _i4 = children.length; _i4--;) {
  21035. if (children[_i4].name == 'li') children[_i4].c = 1;
  21036. }
  21037. } // 表格处理
  21038. else if (node.name == 'table') {
  21039. // cellpadding、cellspacing、border 这几个常用表格属性需要通过转换实现
  21040. var padding = parseFloat(attrs.cellpadding);
  21041. var spacing = parseFloat(attrs.cellspacing);
  21042. var border = parseFloat(attrs.border);
  21043. if (node.c) {
  21044. // padding 和 spacing 默认 2
  21045. if (isNaN(padding)) padding = 2;
  21046. if (isNaN(spacing)) spacing = 2;
  21047. }
  21048. if (border) attrs.style += ";border:".concat(border, "px solid gray");
  21049. if (node.flag && node.c) {
  21050. // 有 colspan 或 rowspan 且含有链接的表格通过 grid 布局实现
  21051. styleObj.display = 'grid';
  21052. if (spacing) {
  21053. styleObj['grid-gap'] = "".concat(spacing, "px");
  21054. styleObj.padding = "".concat(spacing, "px");
  21055. } // 无间隔的情况下避免边框重叠
  21056. else if (border) attrs.style += ';border-left:0;border-top:0';
  21057. var width = [];
  21058. // 表格的列宽
  21059. var trList = [];
  21060. // tr 列表
  21061. var cells = [];
  21062. // 保存新的单元格
  21063. var map = {}; // 被合并单元格占用的格子
  21064. (function traversal(nodes) {
  21065. for (var _i5 = 0; _i5 < nodes.length; _i5++) {
  21066. if (nodes[_i5].name == 'tr') trList.push(nodes[_i5]);else traversal(nodes[_i5].children || []);
  21067. }
  21068. })(children);
  21069. for (var row = 1; row <= trList.length; row++) {
  21070. var col = 1;
  21071. for (var j = 0; j < trList[row - 1].children.length; j++, col++) {
  21072. var td = trList[row - 1].children[j];
  21073. if (td.name == 'td' || td.name == 'th') {
  21074. // 这个格子被上面的单元格占用,则列号++
  21075. while (map["".concat(row, ".").concat(col)]) {
  21076. col++;
  21077. }
  21078. var _style2 = td.attrs.style || '';
  21079. var start = _style2.indexOf('width') ? _style2.indexOf(';width') : 0; // 提取出 td 的宽度
  21080. if (start != -1) {
  21081. var end = _style2.indexOf(';', start + 6);
  21082. if (end == -1) end = _style2.length;
  21083. if (!td.attrs.colspan) width[col] = _style2.substring(start ? start + 7 : 6, end);
  21084. _style2 = _style2.substr(0, start) + _style2.substr(end);
  21085. }
  21086. _style2 += (border ? ';border:'.concat(border, 'px solid gray') + (spacing ? '' : ';border-right:0;border-bottom:0') : '') + (padding ? ';padding:'.concat(padding, 'px') : ''); // 处理列合并
  21087. if (td.attrs.colspan) {
  21088. _style2 += ';grid-column-start:'.concat(col, ';grid-column-end:').concat(col + parseInt(td.attrs.colspan));
  21089. if (!td.attrs.rowspan) _style2 += ';grid-row-start:'.concat(row, ';grid-row-end:').concat(row + 1);
  21090. col += parseInt(td.attrs.colspan) - 1;
  21091. } // 处理行合并
  21092. if (td.attrs.rowspan) {
  21093. _style2 += ';grid-row-start:'.concat(row, ';grid-row-end:').concat(row + parseInt(td.attrs.rowspan));
  21094. if (!td.attrs.colspan) _style2 += ';grid-column-start:'.concat(col, ';grid-column-end:').concat(col + 1); // 记录下方单元格被占用
  21095. for (var k = 1; k < td.attrs.rowspan; k++) {
  21096. map["".concat(row + k, ".").concat(col)] = 1;
  21097. }
  21098. }
  21099. if (_style2) td.attrs.style = _style2;
  21100. cells.push(td);
  21101. }
  21102. }
  21103. if (row == 1) {
  21104. var temp = '';
  21105. for (var _i6 = 1; _i6 < col; _i6++) {
  21106. temp += "".concat(width[_i6] ? width[_i6] : 'auto', " ");
  21107. }
  21108. styleObj['grid-template-columns'] = temp;
  21109. }
  21110. }
  21111. node.children = cells;
  21112. } else {
  21113. // 没有使用合并单元格的表格通过 table 布局实现
  21114. if (node.c) styleObj.display = 'table';
  21115. if (!isNaN(spacing)) styleObj['border-spacing'] = "".concat(spacing, "px");
  21116. if (border || padding) {
  21117. // 遍历
  21118. (function traversal(nodes) {
  21119. for (var _i7 = 0; _i7 < nodes.length; _i7++) {
  21120. var _td = nodes[_i7];
  21121. if (_td.name == 'th' || _td.name == 'td') {
  21122. if (border) _td.attrs.style = 'border:'.concat(border, 'px solid gray;').concat(_td.attrs.style || '');
  21123. if (padding) _td.attrs.style = 'padding:'.concat(padding, 'px;').concat(_td.attrs.style || '');
  21124. } else if (_td.children) traversal(_td.children);
  21125. }
  21126. })(children);
  21127. }
  21128. } // 给表格添加一个单独的横向滚动层
  21129. if (this.options.scrollTable && !(attrs.style || '').includes('inline')) {
  21130. var table = _objectSpread({}, node);
  21131. node.name = 'div';
  21132. node.attrs = {
  21133. style: 'overflow:auto' };
  21134. node.children = [table];
  21135. attrs = table.attrs;
  21136. }
  21137. } else if ((node.name == 'td' || node.name == 'th') && (attrs.colspan || attrs.rowspan)) {
  21138. for (var _i8 = this.stack.length; _i8--;) {
  21139. if (this.stack[_i8].name == 'table') {
  21140. this.stack[_i8].flag = 1; // 指示含有合并单元格
  21141. break;
  21142. }
  21143. }
  21144. } // 转换 ruby
  21145. else if (node.name == 'ruby') {
  21146. node.name = 'span';
  21147. for (var _i9 = 0; _i9 < children.length - 1; _i9++) {
  21148. if (children[_i9].type == 'text' && children[_i9 + 1].name == 'rt') {
  21149. children[_i9] = {
  21150. name: 'div',
  21151. attrs: {
  21152. style: 'display:inline-block' },
  21153. children: [{
  21154. name: 'div',
  21155. attrs: {
  21156. style: 'font-size:50%;text-align:start' },
  21157. children: children[_i9 + 1].children },
  21158. children[_i9]] };
  21159. children.splice(_i9 + 1, 1);
  21160. }
  21161. }
  21162. } else if (node.c) {
  21163. node.c = 2;
  21164. for (var _i10 = node.children.length; _i10--;) {
  21165. if (!node.children[_i10].c || node.children[_i10].name == 'table') node.c = 1;
  21166. }
  21167. }
  21168. if ((styleObj.display || '').includes('flex') && !node.c) {
  21169. for (var _i11 = children.length; _i11--;) {
  21170. var _item = children[_i11];
  21171. if (_item.f) {
  21172. _item.attrs.style = (_item.attrs.style || '') + _item.f;
  21173. _item.f = void 0;
  21174. }
  21175. }
  21176. } // flex 布局时部分样式需要提取到 rich-text 外层
  21177. var flex = parent && (parent.attrs.style || '').includes('flex')
  21178. // 检查基础库版本 virtualHost 是否可用
  21179. && !(node.c && wx.getNFCAdapter);
  21180. if (flex) node.f = ';max-width:100%';
  21181. for (var key in styleObj) {
  21182. if (styleObj[key]) {
  21183. var val = ';'.concat(key, ':').concat(styleObj[key].replace(' !important', ''));
  21184. if (flex && (key.includes('flex') && key != 'flex-direction' || key == 'align-self' || styleObj[key][0] == '-' || key == 'width' && val.includes('%'))) {
  21185. node.f += val;
  21186. if (key == 'width') attrs.style += ';width:100%';
  21187. } else
  21188. {attrs.style += val;}
  21189. }
  21190. }
  21191. attrs.style = attrs.style.substr(1) || void 0;
  21192. };
  21193. /**
  21194. * @description 解析到文本
  21195. * @param {String} text 文本内容
  21196. */
  21197. parser.prototype.onText = function (text) {
  21198. if (!this.pre) {
  21199. // 合并空白符
  21200. var trim = '';
  21201. var flag;
  21202. for (var i = 0, len = text.length; i < len; i++) {
  21203. if (!blankChar[text[i]]) trim += text[i];else {
  21204. if (trim[trim.length - 1] != ' ') trim += ' ';
  21205. if (text[i] == '\n' && !flag) flag = true;
  21206. }
  21207. } // 去除含有换行符的空串
  21208. if (trim == ' ' && flag) return;
  21209. text = trim;
  21210. }
  21211. var node = Object.create(null);
  21212. node.type = 'text';
  21213. node.text = decodeEntity(text);
  21214. if (this.hook(node)) {
  21215. var siblings = this.stack.length ? this.stack[this.stack.length - 1].children : this.nodes;
  21216. siblings.push(node);
  21217. }
  21218. };
  21219. /**
  21220. * @description html 词法分析器
  21221. * @param {Object} handler 高层处理器
  21222. */
  21223. function lexer(handler) {
  21224. this.handler = handler;
  21225. }
  21226. /**
  21227. * @description 执行解析
  21228. * @param {String} content 要解析的文本
  21229. */
  21230. lexer.prototype.parse = function (content) {
  21231. this.content = content || '';
  21232. this.i = 0; // 标记解析位置
  21233. this.start = 0; // 标记一个单词的开始位置
  21234. this.state = this.text; // 当前状态
  21235. for (var len = this.content.length; this.i != -1 && this.i < len;) {
  21236. this.state();
  21237. }
  21238. };
  21239. /**
  21240. * @description 检查标签是否闭合
  21241. * @param {String} method 如果闭合要进行的操作
  21242. * @returns {Boolean} 是否闭合
  21243. * @private
  21244. */
  21245. lexer.prototype.checkClose = function (method) {
  21246. var selfClose = this.content[this.i] == '/';
  21247. if (this.content[this.i] == '>' || selfClose && this.content[this.i + 1] == '>') {
  21248. if (method) this.handler[method](this.content.substring(this.start, this.i));
  21249. this.i += selfClose ? 2 : 1;
  21250. this.start = this.i;
  21251. this.handler.onOpenTag(selfClose);
  21252. if (this.handler.tagName == 'script') {
  21253. this.i = this.content.indexOf('</', this.i);
  21254. if (this.i != -1) {
  21255. this.i += 2;
  21256. this.start = this.i;
  21257. }
  21258. this.state = this.endTag;
  21259. } else this.state = this.text;
  21260. return true;
  21261. }
  21262. return false;
  21263. };
  21264. /**
  21265. * @description 文本状态
  21266. * @private
  21267. */
  21268. lexer.prototype.text = function () {
  21269. this.i = this.content.indexOf('<', this.i); // 查找最近的标签
  21270. if (this.i == -1) {
  21271. // 没有标签了
  21272. if (this.start < this.content.length) this.handler.onText(this.content.substring(this.start, this.content.length));
  21273. return;
  21274. }
  21275. var c = this.content[this.i + 1];
  21276. if (c >= 'a' && c <= 'z' || c >= 'A' && c <= 'Z') {
  21277. // 标签开头
  21278. if (this.start != this.i) this.handler.onText(this.content.substring(this.start, this.i));
  21279. this.start = ++this.i;
  21280. this.state = this.tagName;
  21281. } else if (c == '/' || c == '!' || c == '?') {
  21282. if (this.start != this.i) this.handler.onText(this.content.substring(this.start, this.i));
  21283. var next = this.content[this.i + 2];
  21284. if (c == '/' && (next >= 'a' && next <= 'z' || next >= 'A' && next <= 'Z')) {
  21285. // 标签结尾
  21286. this.i += 2;
  21287. this.start = this.i;
  21288. return this.state = this.endTag;
  21289. } // 处理注释
  21290. var end = '-->';
  21291. if (c != '!' || this.content[this.i + 2] != '-' || this.content[this.i + 3] != '-') end = '>';
  21292. this.i = this.content.indexOf(end, this.i);
  21293. if (this.i != -1) {
  21294. this.i += end.length;
  21295. this.start = this.i;
  21296. }
  21297. } else this.i++;
  21298. };
  21299. /**
  21300. * @description 标签名状态
  21301. * @private
  21302. */
  21303. lexer.prototype.tagName = function () {
  21304. if (blankChar[this.content[this.i]]) {
  21305. // 解析到标签名
  21306. this.handler.onTagName(this.content.substring(this.start, this.i));
  21307. while (blankChar[this.content[++this.i]]) {
  21308. }
  21309. if (this.i < this.content.length && !this.checkClose()) {
  21310. this.start = this.i;
  21311. this.state = this.attrName;
  21312. }
  21313. } else if (!this.checkClose('onTagName')) this.i++;
  21314. };
  21315. /**
  21316. * @description 属性名状态
  21317. * @private
  21318. */
  21319. lexer.prototype.attrName = function () {
  21320. var c = this.content[this.i];
  21321. if (blankChar[c] || c == '=') {
  21322. // 解析到属性名
  21323. this.handler.onAttrName(this.content.substring(this.start, this.i));
  21324. var needVal = c == '=';
  21325. var len = this.content.length;
  21326. while (++this.i < len) {
  21327. c = this.content[this.i];
  21328. if (!blankChar[c]) {
  21329. if (this.checkClose()) return;
  21330. if (needVal) {
  21331. // 等号后遇到第一个非空字符
  21332. this.start = this.i;
  21333. return this.state = this.attrVal;
  21334. }
  21335. if (this.content[this.i] == '=') needVal = true;else {
  21336. this.start = this.i;
  21337. return this.state = this.attrName;
  21338. }
  21339. }
  21340. }
  21341. } else if (!this.checkClose('onAttrName')) this.i++;
  21342. };
  21343. /**
  21344. * @description 属性值状态
  21345. * @private
  21346. */
  21347. lexer.prototype.attrVal = function () {
  21348. var c = this.content[this.i];
  21349. var len = this.content.length; // 有冒号的属性
  21350. if (c == '"' || c == "'") {
  21351. this.start = ++this.i;
  21352. this.i = this.content.indexOf(c, this.i);
  21353. if (this.i == -1) return;
  21354. this.handler.onAttrVal(this.content.substring(this.start, this.i));
  21355. } // 没有冒号的属性
  21356. else {
  21357. for (; this.i < len; this.i++) {
  21358. if (blankChar[this.content[this.i]]) {
  21359. this.handler.onAttrVal(this.content.substring(this.start, this.i));
  21360. break;
  21361. } else if (this.checkClose('onAttrVal')) return;
  21362. }
  21363. }
  21364. while (blankChar[this.content[++this.i]]) {
  21365. }
  21366. if (this.i < len && !this.checkClose()) {
  21367. this.start = this.i;
  21368. this.state = this.attrName;
  21369. }
  21370. };
  21371. /**
  21372. * @description 结束标签状态
  21373. * @returns {String} 结束的标签名
  21374. * @private
  21375. */
  21376. lexer.prototype.endTag = function () {
  21377. var c = this.content[this.i];
  21378. if (blankChar[c] || c == '>' || c == '/') {
  21379. this.handler.onCloseTag(this.content.substring(this.start, this.i));
  21380. if (c != '>') {
  21381. this.i = this.content.indexOf('>', this.i);
  21382. if (this.i == -1) return;
  21383. }
  21384. this.start = ++this.i;
  21385. this.state = this.text;
  21386. } else this.i++;
  21387. };
  21388. module.exports = parser;
  21389. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 1)["default"]))
  21390. /***/ }),
  21391. /* 508 */,
  21392. /* 509 */,
  21393. /* 510 */,
  21394. /* 511 */,
  21395. /* 512 */,
  21396. /* 513 */,
  21397. /* 514 */,
  21398. /* 515 */
  21399. /*!**************************************************************************!*\
  21400. !*** E:/代码/cbz/cbz/cbz/uni_modules/uview-ui/components/u-popup/props.js ***!
  21401. \**************************************************************************/
  21402. /*! no static exports found */
  21403. /***/ (function(module, exports, __webpack_require__) {
  21404. "use strict";
  21405. /* WEBPACK VAR INJECTION */(function(uni) {Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0;var _default = {
  21406. props: {
  21407. // 是否展示弹窗
  21408. show: {
  21409. type: Boolean,
  21410. default: uni.$u.props.popup.show },
  21411. // 是否显示遮罩
  21412. overlay: {
  21413. type: Boolean,
  21414. default: uni.$u.props.popup.overlay },
  21415. // 弹出的方向,可选值为 top bottom right left center
  21416. mode: {
  21417. type: String,
  21418. default: uni.$u.props.popup.mode },
  21419. // 动画时长,单位ms
  21420. duration: {
  21421. type: [String, Number],
  21422. default: uni.$u.props.popup.duration },
  21423. // 是否显示关闭图标
  21424. closeable: {
  21425. type: Boolean,
  21426. default: uni.$u.props.popup.closeable },
  21427. // 自定义遮罩的样式
  21428. overlayStyle: {
  21429. type: [Object, String],
  21430. default: uni.$u.props.popup.overlayStyle },
  21431. // 点击遮罩是否关闭弹窗
  21432. closeOnClickOverlay: {
  21433. type: Boolean,
  21434. default: uni.$u.props.popup.closeOnClickOverlay },
  21435. // 层级
  21436. zIndex: {
  21437. type: [String, Number],
  21438. default: uni.$u.props.popup.zIndex },
  21439. // 是否为iPhoneX留出底部安全距离
  21440. safeAreaInsetBottom: {
  21441. type: Boolean,
  21442. default: uni.$u.props.popup.safeAreaInsetBottom },
  21443. // 是否留出顶部安全距离(状态栏高度)
  21444. safeAreaInsetTop: {
  21445. type: Boolean,
  21446. default: uni.$u.props.popup.safeAreaInsetTop },
  21447. // 自定义关闭图标位置,top-left为左上角,top-right为右上角,bottom-left为左下角,bottom-right为右下角
  21448. closeIconPos: {
  21449. type: String,
  21450. default: uni.$u.props.popup.closeIconPos },
  21451. // 是否显示圆角
  21452. round: {
  21453. type: [Boolean, String, Number],
  21454. default: uni.$u.props.popup.round },
  21455. // mode=center,也即中部弹出时,是否使用缩放模式
  21456. zoom: {
  21457. type: Boolean,
  21458. default: uni.$u.props.popup.zoom },
  21459. // 弹窗背景色,设置为transparent可去除白色背景
  21460. bgColor: {
  21461. type: String,
  21462. default: uni.$u.props.popup.bgColor },
  21463. // 遮罩的透明度,0-1之间
  21464. overlayOpacity: {
  21465. type: [Number, String],
  21466. default: uni.$u.props.popup.overlayOpacity } } };exports.default = _default;
  21467. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 1)["default"]))
  21468. /***/ }),
  21469. /* 516 */,
  21470. /* 517 */,
  21471. /* 518 */,
  21472. /* 519 */,
  21473. /* 520 */,
  21474. /* 521 */,
  21475. /* 522 */,
  21476. /* 523 */,
  21477. /* 524 */,
  21478. /* 525 */,
  21479. /* 526 */,
  21480. /* 527 */,
  21481. /* 528 */,
  21482. /* 529 */,
  21483. /* 530 */,
  21484. /* 531 */,
  21485. /* 532 */,
  21486. /* 533 */,
  21487. /* 534 */,
  21488. /* 535 */,
  21489. /* 536 */,
  21490. /* 537 */
  21491. /*!***************************************************************************!*\
  21492. !*** E:/代码/cbz/cbz/cbz/uni_modules/uview-ui/components/u-upload/utils.js ***!
  21493. \***************************************************************************/
  21494. /*! no static exports found */
  21495. /***/ (function(module, exports, __webpack_require__) {
  21496. "use strict";
  21497. /* WEBPACK VAR INJECTION */(function(uni) {Object.defineProperty(exports, "__esModule", { value: true });exports.chooseFile = chooseFile;function ownKeys(object, enumerableOnly) {var keys = Object.keys(object);if (Object.getOwnPropertySymbols) {var symbols = Object.getOwnPropertySymbols(object);if (enumerableOnly) symbols = symbols.filter(function (sym) {return Object.getOwnPropertyDescriptor(object, sym).enumerable;});keys.push.apply(keys, symbols);}return keys;}function _objectSpread(target) {for (var i = 1; i < arguments.length; i++) {var source = arguments[i] != null ? arguments[i] : {};if (i % 2) {ownKeys(Object(source), true).forEach(function (key) {_defineProperty(target, key, source[key]);});} else if (Object.getOwnPropertyDescriptors) {Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));} else {ownKeys(Object(source)).forEach(function (key) {Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));});}}return target;}function _defineProperty(obj, key, value) {if (key in obj) {Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true });} else {obj[key] = value;}return obj;}function pickExclude(obj, keys) {
  21498. // 某些情况下,type可能会为
  21499. if (!['[object Object]', '[object File]'].includes(Object.prototype.toString.call(obj))) {
  21500. return {};
  21501. }
  21502. return Object.keys(obj).reduce(function (prev, key) {
  21503. if (!keys.includes(key)) {
  21504. prev[key] = obj[key];
  21505. }
  21506. return prev;
  21507. }, {});
  21508. }
  21509. function formatImage(res) {
  21510. return res.tempFiles.map(function (item) {return _objectSpread(_objectSpread({},
  21511. pickExclude(item, ['path'])), {}, {
  21512. type: 'image',
  21513. url: item.path,
  21514. thumb: item.path,
  21515. size: item.size });});
  21516. }
  21517. function formatVideo(res) {
  21518. return [_objectSpread(_objectSpread({},
  21519. pickExclude(res, ['tempFilePath', 'thumbTempFilePath', 'errMsg'])), {}, {
  21520. type: 'video',
  21521. url: res.tempFilePath,
  21522. thumb: res.thumbTempFilePath,
  21523. size: res.size })];
  21524. }
  21525. function formatMedia(res) {
  21526. return res.tempFiles.map(function (item) {return _objectSpread(_objectSpread({},
  21527. pickExclude(item, ['fileType', 'thumbTempFilePath', 'tempFilePath'])), {}, {
  21528. type: res.type,
  21529. url: item.tempFilePath,
  21530. thumb: res.type === 'video' ? item.thumbTempFilePath : item.tempFilePath,
  21531. size: item.size });});
  21532. }
  21533. function formatFile(res) {
  21534. return res.tempFiles.map(function (item) {return _objectSpread(_objectSpread({},
  21535. pickExclude(item, ['path'])), {}, {
  21536. url: item.path,
  21537. size: item.size });});
  21538. }
  21539. function chooseFile(_ref)
  21540. {var accept = _ref.accept,multiple = _ref.multiple,capture = _ref.capture,compressed = _ref.compressed,maxDuration = _ref.maxDuration,sizeType = _ref.sizeType,camera = _ref.camera,maxCount = _ref.maxCount;
  21541. return new Promise(function (resolve, reject) {
  21542. switch (accept) {
  21543. case 'image':
  21544. uni.chooseImage({
  21545. count: multiple ? Math.min(maxCount, 9) : 1,
  21546. sourceType: capture,
  21547. sizeType: sizeType,
  21548. success: function success(res) {return resolve(formatImage(res));},
  21549. fail: reject });
  21550. break;
  21551. // 只有微信小程序才支持chooseMedia接口
  21552. case 'media':
  21553. wx.chooseMedia({
  21554. count: multiple ? Math.min(maxCount, 9) : 1,
  21555. sourceType: capture,
  21556. maxDuration: maxDuration,
  21557. sizeType: sizeType,
  21558. camera: camera,
  21559. success: function success(res) {return resolve(formatMedia(res));},
  21560. fail: reject });
  21561. break;
  21562. case 'video':
  21563. uni.chooseVideo({
  21564. sourceType: capture,
  21565. compressed: compressed,
  21566. maxDuration: maxDuration,
  21567. camera: camera,
  21568. success: function success(res) {return resolve(formatVideo(res));},
  21569. fail: reject });
  21570. break;
  21571. // 只有微信小程序才支持chooseMessageFile接口
  21572. case 'file':
  21573. wx.chooseMessageFile({
  21574. count: multiple ? maxCount : 1,
  21575. type: accept,
  21576. success: function success(res) {return resolve(formatFile(res));},
  21577. fail: reject });
  21578. break;
  21579. default:
  21580. // 此为保底选项,在accept不为上面任意一项的时候选取全部文件
  21581. wx.chooseMessageFile({
  21582. count: multiple ? maxCount : 1,
  21583. type: 'all',
  21584. success: function success(res) {return resolve(formatFile(res));},
  21585. fail: reject });}
  21586. });
  21587. }
  21588. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 1)["default"]))
  21589. /***/ }),
  21590. /* 538 */
  21591. /*!***************************************************************************!*\
  21592. !*** E:/代码/cbz/cbz/cbz/uni_modules/uview-ui/components/u-upload/mixin.js ***!
  21593. \***************************************************************************/
  21594. /*! no static exports found */
  21595. /***/ (function(module, exports, __webpack_require__) {
  21596. "use strict";
  21597. Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0;var _default = {
  21598. watch: {
  21599. // 监听accept的变化,判断是否符合个平台要求
  21600. // 只有微信小程序才支持选择媒体,文件类型,所以这里做一个判断提示
  21601. accept: {
  21602. immediate: true,
  21603. handler: function handler(val) {
  21604. } } } };exports.default = _default;
  21605. /***/ }),
  21606. /* 539 */
  21607. /*!***************************************************************************!*\
  21608. !*** E:/代码/cbz/cbz/cbz/uni_modules/uview-ui/components/u-upload/props.js ***!
  21609. \***************************************************************************/
  21610. /*! no static exports found */
  21611. /***/ (function(module, exports, __webpack_require__) {
  21612. "use strict";
  21613. /* WEBPACK VAR INJECTION */(function(uni) {Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0;var _default = {
  21614. props: {
  21615. // 接受的文件类型, 可选值为all media image file video
  21616. accept: {
  21617. type: String,
  21618. default: uni.$u.props.upload.accept },
  21619. // 图片或视频拾取模式,当accept为image类型时设置capture可选额外camera可以直接调起摄像头
  21620. capture: {
  21621. type: [String, Array],
  21622. default: uni.$u.props.upload.capture },
  21623. // 当accept为video时生效,是否压缩视频,默认为true
  21624. compressed: {
  21625. type: Boolean,
  21626. default: uni.$u.props.upload.compressed },
  21627. // 当accept为video时生效,可选值为back或front
  21628. camera: {
  21629. type: String,
  21630. default: uni.$u.props.upload.camera },
  21631. // 当accept为video时生效,拍摄视频最长拍摄时间,单位秒
  21632. maxDuration: {
  21633. type: Number,
  21634. default: uni.$u.props.upload.maxDuration },
  21635. // 上传区域的图标,只能内置图标
  21636. uploadIcon: {
  21637. type: String,
  21638. default: uni.$u.props.upload.uploadIcon },
  21639. // 上传区域的图标的颜色,默认
  21640. uploadIconColor: {
  21641. type: String,
  21642. default: uni.$u.props.upload.uploadIconColor },
  21643. // 是否开启文件读取前事件
  21644. useBeforeRead: {
  21645. type: Boolean,
  21646. default: uni.$u.props.upload.useBeforeRead },
  21647. // 读取后的处理函数
  21648. afterRead: {
  21649. type: Function,
  21650. default: null },
  21651. // 读取前的处理函数
  21652. beforeRead: {
  21653. type: Function,
  21654. default: null },
  21655. // 是否显示组件自带的图片预览功能
  21656. previewFullImage: {
  21657. type: Boolean,
  21658. default: uni.$u.props.upload.previewFullImage },
  21659. // 最大上传数量
  21660. maxCount: {
  21661. type: [String, Number],
  21662. default: uni.$u.props.upload.maxCount },
  21663. // 是否启用
  21664. disabled: {
  21665. type: Boolean,
  21666. default: uni.$u.props.upload.disabled },
  21667. // 预览上传的图片时的裁剪模式,和image组件mode属性一致
  21668. imageMode: {
  21669. type: String,
  21670. default: uni.$u.props.upload.imageMode },
  21671. // 标识符,可以在回调函数的第二项参数中获取
  21672. name: {
  21673. type: String,
  21674. default: uni.$u.props.upload.name },
  21675. // 所选的图片的尺寸, 可选值为original compressed
  21676. sizeType: {
  21677. type: Array,
  21678. default: uni.$u.props.upload.sizeType },
  21679. // 是否开启图片多选,部分安卓机型不支持
  21680. multiple: {
  21681. type: Boolean,
  21682. default: uni.$u.props.upload.multiple },
  21683. // 是否展示删除按钮
  21684. deletable: {
  21685. type: Boolean,
  21686. default: uni.$u.props.upload.deletable },
  21687. // 文件大小限制,单位为byte
  21688. maxSize: {
  21689. type: [String, Number],
  21690. default: uni.$u.props.upload.maxSize },
  21691. // 显示已上传的文件列表
  21692. fileList: {
  21693. type: Array,
  21694. default: uni.$u.props.upload.fileList },
  21695. // 上传区域的提示文字
  21696. uploadText: {
  21697. type: String,
  21698. default: uni.$u.props.upload.uploadText },
  21699. // 内部预览图片区域和选择图片按钮的区域宽度
  21700. width: {
  21701. type: [String, Number],
  21702. default: uni.$u.props.upload.width },
  21703. // 内部预览图片区域和选择图片按钮的区域高度
  21704. height: {
  21705. type: [String, Number],
  21706. default: uni.$u.props.upload.height },
  21707. // 是否在上传完成后展示预览图
  21708. previewImage: {
  21709. type: Boolean,
  21710. default: uni.$u.props.upload.previewImage } } };exports.default = _default;
  21711. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 1)["default"]))
  21712. /***/ }),
  21713. /* 540 */,
  21714. /* 541 */,
  21715. /* 542 */,
  21716. /* 543 */,
  21717. /* 544 */,
  21718. /* 545 */,
  21719. /* 546 */,
  21720. /* 547 */
  21721. /*!**************************************************************************!*\
  21722. !*** E:/代码/cbz/cbz/cbz/uni_modules/uview-ui/components/u-steps/props.js ***!
  21723. \**************************************************************************/
  21724. /*! no static exports found */
  21725. /***/ (function(module, exports, __webpack_require__) {
  21726. "use strict";
  21727. /* WEBPACK VAR INJECTION */(function(uni) {Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0;var _default = {
  21728. props: {
  21729. // 排列方向
  21730. direction: {
  21731. type: String,
  21732. default: uni.$u.props.steps.direction },
  21733. // 设置第几个步骤
  21734. current: {
  21735. type: [String, Number],
  21736. default: uni.$u.props.steps.current },
  21737. // 激活状态颜色
  21738. activeColor: {
  21739. type: String,
  21740. default: uni.$u.props.steps.activeColor },
  21741. // 未激活状态颜色
  21742. inactiveColor: {
  21743. type: String,
  21744. default: uni.$u.props.steps.inactiveColor },
  21745. // 激活状态的图标
  21746. activeIcon: {
  21747. type: String,
  21748. default: uni.$u.props.steps.activeIcon },
  21749. // 未激活状态图标
  21750. inactiveIcon: {
  21751. type: String,
  21752. default: uni.$u.props.steps.inactiveIcon },
  21753. // 是否显示点类型
  21754. dot: {
  21755. type: Boolean,
  21756. default: uni.$u.props.steps.dot } } };exports.default = _default;
  21757. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 1)["default"]))
  21758. /***/ }),
  21759. /* 548 */,
  21760. /* 549 */,
  21761. /* 550 */,
  21762. /* 551 */,
  21763. /* 552 */,
  21764. /* 553 */,
  21765. /* 554 */,
  21766. /* 555 */
  21767. /*!*******************************************************************************!*\
  21768. !*** E:/代码/cbz/cbz/cbz/uni_modules/uview-ui/components/u-steps-item/props.js ***!
  21769. \*******************************************************************************/
  21770. /*! no static exports found */
  21771. /***/ (function(module, exports, __webpack_require__) {
  21772. "use strict";
  21773. /* WEBPACK VAR INJECTION */(function(uni) {Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0;var _default = {
  21774. props: {
  21775. // 标题
  21776. title: {
  21777. type: [String, Number],
  21778. default: uni.$u.props.stepsItem.title },
  21779. // 描述文本
  21780. desc: {
  21781. type: [String, Number],
  21782. default: uni.$u.props.stepsItem.desc },
  21783. // 图标大小
  21784. iconSize: {
  21785. type: [String, Number],
  21786. default: uni.$u.props.stepsItem.iconSize },
  21787. // 当前步骤是否处于失败状态
  21788. error: {
  21789. type: Boolean,
  21790. default: uni.$u.props.stepsItem.error } } };exports.default = _default;
  21791. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 1)["default"]))
  21792. /***/ }),
  21793. /* 556 */,
  21794. /* 557 */,
  21795. /* 558 */,
  21796. /* 559 */,
  21797. /* 560 */,
  21798. /* 561 */,
  21799. /* 562 */,
  21800. /* 563 */
  21801. /*!*******************************************************************************!*\
  21802. !*** E:/代码/cbz/cbz/cbz/uni_modules/uview-ui/components/u-status-bar/props.js ***!
  21803. \*******************************************************************************/
  21804. /*! no static exports found */
  21805. /***/ (function(module, exports, __webpack_require__) {
  21806. "use strict";
  21807. /* WEBPACK VAR INJECTION */(function(uni) {Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0;var _default = {
  21808. props: {
  21809. bgColor: {
  21810. type: String,
  21811. default: uni.$u.props.statusBar.bgColor } } };exports.default = _default;
  21812. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 1)["default"]))
  21813. /***/ }),
  21814. /* 564 */,
  21815. /* 565 */,
  21816. /* 566 */,
  21817. /* 567 */,
  21818. /* 568 */,
  21819. /* 569 */,
  21820. /* 570 */,
  21821. /* 571 */
  21822. /*!*********************************************************************************!*\
  21823. !*** E:/代码/cbz/cbz/cbz/uni_modules/uview-ui/components/u-loading-icon/props.js ***!
  21824. \*********************************************************************************/
  21825. /*! no static exports found */
  21826. /***/ (function(module, exports, __webpack_require__) {
  21827. "use strict";
  21828. /* WEBPACK VAR INJECTION */(function(uni) {Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0;var _default = {
  21829. props: {
  21830. // 是否显示组件
  21831. show: {
  21832. type: Boolean,
  21833. default: uni.$u.props.loadingIcon.show },
  21834. // 颜色
  21835. color: {
  21836. type: String,
  21837. default: uni.$u.props.loadingIcon.color },
  21838. // 提示文字颜色
  21839. textColor: {
  21840. type: String,
  21841. default: uni.$u.props.loadingIcon.textColor },
  21842. // 文字和图标是否垂直排列
  21843. vertical: {
  21844. type: Boolean,
  21845. default: uni.$u.props.loadingIcon.vertical },
  21846. // 模式选择,circle-圆形,spinner-花朵形,semicircle-半圆形
  21847. mode: {
  21848. type: String,
  21849. default: uni.$u.props.loadingIcon.mode },
  21850. // 图标大小,单位默认px
  21851. size: {
  21852. type: [String, Number],
  21853. default: uni.$u.props.loadingIcon.size },
  21854. // 文字大小
  21855. textSize: {
  21856. type: [String, Number],
  21857. default: uni.$u.props.loadingIcon.textSize },
  21858. // 文字内容
  21859. text: {
  21860. type: [String, Number],
  21861. default: uni.$u.props.loadingIcon.text },
  21862. // 动画模式
  21863. timingFunction: {
  21864. type: String,
  21865. default: uni.$u.props.loadingIcon.timingFunction },
  21866. // 动画执行周期时间
  21867. duration: {
  21868. type: [String, Number],
  21869. default: uni.$u.props.loadingIcon.duration },
  21870. // mode=circle时的暗边颜色
  21871. inactiveColor: {
  21872. type: String,
  21873. default: uni.$u.props.loadingIcon.inactiveColor } } };exports.default = _default;
  21874. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 1)["default"]))
  21875. /***/ }),
  21876. /* 572 */,
  21877. /* 573 */,
  21878. /* 574 */,
  21879. /* 575 */,
  21880. /* 576 */,
  21881. /* 577 */,
  21882. /* 578 */,
  21883. /* 579 */
  21884. /*!*************************************************************************************!*\
  21885. !*** E:/代码/cbz/cbz/cbz/uni_modules/uview-ui/components/u-swiper-indicator/props.js ***!
  21886. \*************************************************************************************/
  21887. /*! no static exports found */
  21888. /***/ (function(module, exports, __webpack_require__) {
  21889. "use strict";
  21890. /* WEBPACK VAR INJECTION */(function(uni) {Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0;var _default = {
  21891. props: {
  21892. // 轮播的长度
  21893. length: {
  21894. type: [String, Number],
  21895. default: uni.$u.props.swiperIndicator.length },
  21896. // 当前处于活动状态的轮播的索引
  21897. current: {
  21898. type: [String, Number],
  21899. default: uni.$u.props.swiperIndicator.current },
  21900. // 指示器非激活颜色
  21901. indicatorActiveColor: {
  21902. type: String,
  21903. default: uni.$u.props.swiperIndicator.indicatorActiveColor },
  21904. // 指示器的激活颜色
  21905. indicatorInactiveColor: {
  21906. type: String,
  21907. default: uni.$u.props.swiperIndicator.indicatorInactiveColor },
  21908. // 指示器模式,line-线型,dot-点型
  21909. indicatorMode: {
  21910. type: String,
  21911. default: uni.$u.props.swiperIndicator.indicatorMode } } };exports.default = _default;
  21912. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 1)["default"]))
  21913. /***/ }),
  21914. /* 580 */,
  21915. /* 581 */,
  21916. /* 582 */,
  21917. /* 583 */,
  21918. /* 584 */,
  21919. /* 585 */,
  21920. /* 586 */,
  21921. /* 587 */
  21922. /*!**********************************************************************************!*\
  21923. !*** E:/代码/cbz/cbz/cbz/uni_modules/uview-ui/components/u-column-notice/props.js ***!
  21924. \**********************************************************************************/
  21925. /*! no static exports found */
  21926. /***/ (function(module, exports, __webpack_require__) {
  21927. "use strict";
  21928. /* WEBPACK VAR INJECTION */(function(uni) {Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0;var _default = {
  21929. props: {
  21930. // 显示的内容,字符串
  21931. text: {
  21932. type: [Array],
  21933. default: uni.$u.props.columnNotice.text },
  21934. // 是否显示左侧的音量图标
  21935. icon: {
  21936. type: String,
  21937. default: uni.$u.props.columnNotice.icon },
  21938. // 通告模式,link-显示右箭头,closable-显示右侧关闭图标
  21939. mode: {
  21940. type: String,
  21941. default: uni.$u.props.columnNotice.mode },
  21942. // 文字颜色,各图标也会使用文字颜色
  21943. color: {
  21944. type: String,
  21945. default: uni.$u.props.columnNotice.color },
  21946. // 背景颜色
  21947. bgColor: {
  21948. type: String,
  21949. default: uni.$u.props.columnNotice.bgColor },
  21950. // 字体大小,单位px
  21951. fontSize: {
  21952. type: [String, Number],
  21953. default: uni.$u.props.columnNotice.fontSize },
  21954. // 水平滚动时的滚动速度,即每秒滚动多少px(px),这有利于控制文字无论多少时,都能有一个恒定的速度
  21955. speed: {
  21956. type: [String, Number],
  21957. default: uni.$u.props.columnNotice.speed },
  21958. // direction = row时,是否使用步进形式滚动
  21959. step: {
  21960. type: Boolean,
  21961. default: uni.$u.props.columnNotice.step },
  21962. // 滚动一个周期的时间长,单位ms
  21963. duration: {
  21964. type: [String, Number],
  21965. default: uni.$u.props.columnNotice.duration },
  21966. // 是否禁止用手滑动切换
  21967. // 目前HX2.6.11,只支持App 2.5.5+、H5 2.5.5+、支付宝小程序、字节跳动小程序
  21968. disableTouch: {
  21969. type: Boolean,
  21970. default: uni.$u.props.columnNotice.disableTouch } } };exports.default = _default;
  21971. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 1)["default"]))
  21972. /***/ }),
  21973. /* 588 */,
  21974. /* 589 */,
  21975. /* 590 */,
  21976. /* 591 */,
  21977. /* 592 */,
  21978. /* 593 */,
  21979. /* 594 */,
  21980. /* 595 */
  21981. /*!*******************************************************************************!*\
  21982. !*** E:/代码/cbz/cbz/cbz/uni_modules/uview-ui/components/u-row-notice/props.js ***!
  21983. \*******************************************************************************/
  21984. /*! no static exports found */
  21985. /***/ (function(module, exports, __webpack_require__) {
  21986. "use strict";
  21987. /* WEBPACK VAR INJECTION */(function(uni) {Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0;var _default = {
  21988. props: {
  21989. // 显示的内容,字符串
  21990. text: {
  21991. type: String,
  21992. default: uni.$u.props.rowNotice.text },
  21993. // 是否显示左侧的音量图标
  21994. icon: {
  21995. type: String,
  21996. default: uni.$u.props.rowNotice.icon },
  21997. // 通告模式,link-显示右箭头,closable-显示右侧关闭图标
  21998. mode: {
  21999. type: String,
  22000. default: uni.$u.props.rowNotice.mode },
  22001. // 文字颜色,各图标也会使用文字颜色
  22002. color: {
  22003. type: String,
  22004. default: uni.$u.props.rowNotice.color },
  22005. // 背景颜色
  22006. bgColor: {
  22007. type: String,
  22008. default: uni.$u.props.rowNotice.bgColor },
  22009. // 字体大小,单位px
  22010. fontSize: {
  22011. type: [String, Number],
  22012. default: uni.$u.props.rowNotice.fontSize },
  22013. // 水平滚动时的滚动速度,即每秒滚动多少px(rpx),这有利于控制文字无论多少时,都能有一个恒定的速度
  22014. speed: {
  22015. type: [String, Number],
  22016. default: uni.$u.props.rowNotice.speed } } };exports.default = _default;
  22017. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 1)["default"]))
  22018. /***/ }),
  22019. /* 596 */,
  22020. /* 597 */,
  22021. /* 598 */,
  22022. /* 599 */,
  22023. /* 600 */,
  22024. /* 601 */,
  22025. /* 602 */,
  22026. /* 603 */
  22027. /*!**************************************************************************!*\
  22028. !*** E:/代码/cbz/cbz/cbz/uni_modules/uview-ui/components/u-badge/props.js ***!
  22029. \**************************************************************************/
  22030. /*! no static exports found */
  22031. /***/ (function(module, exports, __webpack_require__) {
  22032. "use strict";
  22033. /* WEBPACK VAR INJECTION */(function(uni) {Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0;var _default = {
  22034. props: {
  22035. // 是否显示圆点
  22036. isDot: {
  22037. type: Boolean,
  22038. default: uni.$u.props.badge.isDot },
  22039. // 显示的内容
  22040. value: {
  22041. type: [Number, String],
  22042. default: uni.$u.props.badge.value },
  22043. // 是否显示
  22044. show: {
  22045. type: Boolean,
  22046. default: uni.$u.props.badge.show },
  22047. // 最大值,超过最大值会显示 '{max}+'
  22048. max: {
  22049. type: [Number, String],
  22050. default: uni.$u.props.badge.max },
  22051. // 主题类型,error|warning|success|primary
  22052. type: {
  22053. type: String,
  22054. default: uni.$u.props.badge.type },
  22055. // 当数值为 0 时,是否展示 Badge
  22056. showZero: {
  22057. type: Boolean,
  22058. default: uni.$u.props.badge.showZero },
  22059. // 背景颜色,优先级比type高,如设置,type参数会失效
  22060. bgColor: {
  22061. type: [String, null],
  22062. default: uni.$u.props.badge.bgColor },
  22063. // 字体颜色
  22064. color: {
  22065. type: [String, null],
  22066. default: uni.$u.props.badge.color },
  22067. // 徽标形状,circle-四角均为圆角,horn-左下角为直角
  22068. shape: {
  22069. type: String,
  22070. default: uni.$u.props.badge.shape },
  22071. // 设置数字的显示方式,overflow|ellipsis|limit
  22072. // overflow会根据max字段判断,超出显示`${max}+`
  22073. // ellipsis会根据max判断,超出显示`${max}...`
  22074. // limit会依据1000作为判断条件,超出1000,显示`${value/1000}K`,比如2.2k、3.34w,最多保留2位小数
  22075. numberType: {
  22076. type: String,
  22077. default: uni.$u.props.badge.numberType },
  22078. // 设置badge的位置偏移,格式为 [x, y],也即设置的为top和right的值,absolute为true时有效
  22079. offset: {
  22080. type: Array,
  22081. default: uni.$u.props.badge.offset },
  22082. // 是否反转背景和字体颜色
  22083. inverted: {
  22084. type: Boolean,
  22085. default: uni.$u.props.badge.inverted },
  22086. // 是否绝对定位
  22087. absolute: {
  22088. type: Boolean,
  22089. default: uni.$u.props.badge.absolute } } };exports.default = _default;
  22090. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 1)["default"]))
  22091. /***/ }),
  22092. /* 604 */,
  22093. /* 605 */,
  22094. /* 606 */,
  22095. /* 607 */,
  22096. /* 608 */,
  22097. /* 609 */,
  22098. /* 610 */,
  22099. /* 611 */
  22100. /*!*************************************************************************!*\
  22101. !*** E:/代码/cbz/cbz/cbz/uni_modules/uview-ui/components/u-line/props.js ***!
  22102. \*************************************************************************/
  22103. /*! no static exports found */
  22104. /***/ (function(module, exports, __webpack_require__) {
  22105. "use strict";
  22106. /* WEBPACK VAR INJECTION */(function(uni) {Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0;var _default = {
  22107. props: {
  22108. color: {
  22109. type: String,
  22110. default: uni.$u.props.line.color },
  22111. // 长度,竖向时表现为高度,横向时表现为长度,可以为百分比,带px单位的值等
  22112. length: {
  22113. type: [String, Number],
  22114. default: uni.$u.props.line.length },
  22115. // 线条方向,col-竖向,row-横向
  22116. direction: {
  22117. type: String,
  22118. default: uni.$u.props.line.direction },
  22119. // 是否显示细边框
  22120. hairline: {
  22121. type: Boolean,
  22122. default: uni.$u.props.line.hairline },
  22123. // 线条与上下左右元素的间距,字符串形式,如"30px"、"20px 30px"
  22124. margin: {
  22125. type: [String, Number],
  22126. default: uni.$u.props.line.margin },
  22127. // 是否虚线,true-虚线,false-实线
  22128. dashed: {
  22129. type: Boolean,
  22130. default: uni.$u.props.line.dashed } } };exports.default = _default;
  22131. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 1)["default"]))
  22132. /***/ }),
  22133. /* 612 */,
  22134. /* 613 */,
  22135. /* 614 */,
  22136. /* 615 */,
  22137. /* 616 */,
  22138. /* 617 */,
  22139. /* 618 */,
  22140. /* 619 */
  22141. /*!*******************************************************************************!*\
  22142. !*** E:/代码/cbz/cbz/cbz/uni_modules/uview-ui/components/u-transition/props.js ***!
  22143. \*******************************************************************************/
  22144. /*! no static exports found */
  22145. /***/ (function(module, exports, __webpack_require__) {
  22146. "use strict";
  22147. /* WEBPACK VAR INJECTION */(function(uni) {Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0;var _default = {
  22148. props: {
  22149. // 是否展示组件
  22150. show: {
  22151. type: Boolean,
  22152. default: uni.$u.props.transition.show },
  22153. // 使用的动画模式
  22154. mode: {
  22155. type: String,
  22156. default: uni.$u.props.transition.mode },
  22157. // 动画的执行时间,单位ms
  22158. duration: {
  22159. type: [String, Number],
  22160. default: uni.$u.props.transition.duration },
  22161. // 使用的动画过渡函数
  22162. timingFunction: {
  22163. type: String,
  22164. default: uni.$u.props.transition.timingFunction } } };exports.default = _default;
  22165. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 1)["default"]))
  22166. /***/ }),
  22167. /* 620 */
  22168. /*!************************************************************************************!*\
  22169. !*** E:/代码/cbz/cbz/cbz/uni_modules/uview-ui/components/u-transition/transition.js ***!
  22170. \************************************************************************************/
  22171. /*! no static exports found */
  22172. /***/ (function(module, exports, __webpack_require__) {
  22173. "use strict";
  22174. Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0;var _regenerator = _interopRequireDefault(__webpack_require__(/*! ./node_modules/@babel/runtime/regenerator */ 34));
  22175. var _nvueAniMap = _interopRequireDefault(__webpack_require__(/*! ./nvue.ani-map.js */ 621));function _interopRequireDefault(obj) {return obj && obj.__esModule ? obj : { default: obj };}function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {try {var info = gen[key](arg);var value = info.value;} catch (error) {reject(error);return;}if (info.done) {resolve(value);} else {Promise.resolve(value).then(_next, _throw);}}function _asyncToGenerator(fn) {return function () {var self = this,args = arguments;return new Promise(function (resolve, reject) {var gen = fn.apply(self, args);function _next(value) {asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value);}function _throw(err) {asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err);}_next(undefined);});};} // 定义一个一定时间后自动成功的promise,让调用nextTick方法处,进入下一个then方法
  22176. var nextTick = function nextTick() {return new Promise(function (resolve) {return setTimeout(resolve, 1000 / 50);});}; // nvue动画模块实现细节抽离在外部文件
  22177. // 定义类名,通过给元素动态切换类名,赋予元素一定的css动画样式
  22178. var getClassNames = function getClassNames(name) {return {
  22179. enter: "u-".concat(name, "-enter u-").concat(name, "-enter-active"),
  22180. 'enter-to': "u-".concat(name, "-enter-to u-").concat(name, "-enter-active"),
  22181. leave: "u-".concat(name, "-leave u-").concat(name, "-leave-active"),
  22182. 'leave-to': "u-".concat(name, "-leave-to u-").concat(name, "-leave-active") };};var _default =
  22183. {
  22184. methods: {
  22185. // 组件被点击发出事件
  22186. clickHandler: function clickHandler() {
  22187. this.$emit('click');
  22188. },
  22189. // vue版本的组件进场处理
  22190. vueEnter: function vueEnter() {var _this = this;
  22191. // 动画进入时的类名
  22192. var classNames = getClassNames(this.mode);
  22193. // 定义状态和发出动画进入前事件
  22194. this.status = 'enter';
  22195. this.$emit('beforeEnter');
  22196. this.inited = true;
  22197. this.display = true;
  22198. this.classes = classNames.enter;
  22199. this.$nextTick( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regenerator.default.mark(function _callee() {return _regenerator.default.wrap(function _callee$(_context) {while (1) {switch (_context.prev = _context.next) {case 0:
  22200. // 标识动画尚未结束
  22201. _this.$emit('enter');
  22202. _this.transitionEnded = false;
  22203. // 组件动画进入后触发的事件
  22204. _this.$emit('afterEnter');
  22205. // 赋予组件enter-to类名
  22206. _this.classes = classNames['enter-to'];case 4:case "end":return _context.stop();}}}, _callee);})));
  22207. },
  22208. // 动画离场处理
  22209. vueLeave: function vueLeave() {var _this2 = this;
  22210. // 如果不是展示状态,无需执行逻辑
  22211. if (!this.display) return;
  22212. var classNames = getClassNames(this.mode);
  22213. // 标记离开状态和发出事件
  22214. this.status = 'leave';
  22215. this.$emit('beforeLeave');
  22216. // 获得类名
  22217. this.classes = classNames.leave;
  22218. this.$nextTick(function () {
  22219. // 动画正在离场的状态
  22220. _this2.transitionEnded = false;
  22221. _this2.$emit('leave');
  22222. // 组件执行动画,到了执行的执行时间后,执行一些额外处理
  22223. setTimeout(_this2.onTransitionEnd, _this2.duration);
  22224. _this2.classes = classNames['leave-to'];
  22225. });
  22226. },
  22227. // 完成过渡后触发
  22228. onTransitionEnd: function onTransitionEnd() {
  22229. // 如果已经是结束的状态,无需再处理
  22230. if (this.transitionEnded) return;
  22231. this.transitionEnded = true;
  22232. // 发出组件动画执行后的事件
  22233. this.$emit(this.status === 'leave' ? 'afterLeave' : 'afterEnter');
  22234. if (!this.show && this.display) {
  22235. this.display = false;
  22236. this.inited = false;
  22237. }
  22238. } } };exports.default = _default;
  22239. /***/ }),
  22240. /* 621 */
  22241. /*!**************************************************************************************!*\
  22242. !*** E:/代码/cbz/cbz/cbz/uni_modules/uview-ui/components/u-transition/nvue.ani-map.js ***!
  22243. \**************************************************************************************/
  22244. /*! no static exports found */
  22245. /***/ (function(module, exports, __webpack_require__) {
  22246. "use strict";
  22247. Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0;var _default = {
  22248. fade: {
  22249. enter: { opacity: 0 },
  22250. 'enter-to': { opacity: 1 },
  22251. leave: { opacity: 1 },
  22252. 'leave-to': { opacity: 0 } },
  22253. 'fade-up': {
  22254. enter: { opacity: 0, transform: 'translateY(100%)' },
  22255. 'enter-to': { opacity: 1, transform: 'translateY(0)' },
  22256. leave: { opacity: 1, transform: 'translateY(0)' },
  22257. 'leave-to': { opacity: 0, transform: 'translateY(100%)' } },
  22258. 'fade-down': {
  22259. enter: { opacity: 0, transform: 'translateY(-100%)' },
  22260. 'enter-to': { opacity: 1, transform: 'translateY(0)' },
  22261. leave: { opacity: 1, transform: 'translateY(0)' },
  22262. 'leave-to': { opacity: 0, transform: 'translateY(-100%)' } },
  22263. 'fade-left': {
  22264. enter: { opacity: 0, transform: 'translateX(-100%)' },
  22265. 'enter-to': { opacity: 1, transform: 'translateY(0)' },
  22266. leave: { opacity: 1, transform: 'translateY(0)' },
  22267. 'leave-to': { opacity: 0, transform: 'translateX(-100%)' } },
  22268. 'fade-right': {
  22269. enter: { opacity: 0, transform: 'translateX(100%)' },
  22270. 'enter-to': { opacity: 1, transform: 'translateY(0)' },
  22271. leave: { opacity: 1, transform: 'translateY(0)' },
  22272. 'leave-to': { opacity: 0, transform: 'translateX(100%)' } },
  22273. 'slide-up': {
  22274. enter: { transform: 'translateY(100%)' },
  22275. 'enter-to': { transform: 'translateY(0)' },
  22276. leave: { transform: 'translateY(0)' },
  22277. 'leave-to': { transform: 'translateY(100%)' } },
  22278. 'slide-down': {
  22279. enter: { transform: 'translateY(-100%)' },
  22280. 'enter-to': { transform: 'translateY(0)' },
  22281. leave: { transform: 'translateY(0)' },
  22282. 'leave-to': { transform: 'translateY(-100%)' } },
  22283. 'slide-left': {
  22284. enter: { transform: 'translateX(-100%)' },
  22285. 'enter-to': { transform: 'translateY(0)' },
  22286. leave: { transform: 'translateY(0)' },
  22287. 'leave-to': { transform: 'translateX(-100%)' } },
  22288. 'slide-right': {
  22289. enter: { transform: 'translateX(100%)' },
  22290. 'enter-to': { transform: 'translateY(0)' },
  22291. leave: { transform: 'translateY(0)' },
  22292. 'leave-to': { transform: 'translateX(100%)' } },
  22293. zoom: {
  22294. enter: { transform: 'scale(0.95)' },
  22295. 'enter-to': { transform: 'scale(1)' },
  22296. leave: { transform: 'scale(1)' },
  22297. 'leave-to': { transform: 'scale(0.95)' } },
  22298. 'fade-zoom': {
  22299. enter: { opacity: 0, transform: 'scale(0.95)' },
  22300. 'enter-to': { opacity: 1, transform: 'scale(1)' },
  22301. leave: { opacity: 1, transform: 'scale(1)' },
  22302. 'leave-to': { opacity: 0, transform: 'scale(0.95)' } } };exports.default = _default;
  22303. /***/ }),
  22304. /* 622 */,
  22305. /* 623 */,
  22306. /* 624 */,
  22307. /* 625 */,
  22308. /* 626 */,
  22309. /* 627 */,
  22310. /* 628 */,
  22311. /* 629 */,
  22312. /* 630 */,
  22313. /* 631 */,
  22314. /* 632 */,
  22315. /* 633 */,
  22316. /* 634 */,
  22317. /* 635 */,
  22318. /* 636 */,
  22319. /* 637 */,
  22320. /* 638 */
  22321. /*!****************************************************************************!*\
  22322. !*** E:/代码/cbz/cbz/cbz/uni_modules/uview-ui/components/u-overlay/props.js ***!
  22323. \****************************************************************************/
  22324. /*! no static exports found */
  22325. /***/ (function(module, exports, __webpack_require__) {
  22326. "use strict";
  22327. /* WEBPACK VAR INJECTION */(function(uni) {Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0;var _default = {
  22328. props: {
  22329. // 是否显示遮罩
  22330. show: {
  22331. type: Boolean,
  22332. default: uni.$u.props.overlay.show },
  22333. // 层级z-index
  22334. zIndex: {
  22335. type: [String, Number],
  22336. default: uni.$u.props.overlay.zIndex },
  22337. // 遮罩的过渡时间,单位为ms
  22338. duration: {
  22339. type: [String, Number],
  22340. default: uni.$u.props.overlay.duration },
  22341. // 不透明度值,当做rgba的第四个参数
  22342. opacity: {
  22343. type: [String, Number],
  22344. default: uni.$u.props.overlay.opacity } } };exports.default = _default;
  22345. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 1)["default"]))
  22346. /***/ }),
  22347. /* 639 */,
  22348. /* 640 */,
  22349. /* 641 */,
  22350. /* 642 */,
  22351. /* 643 */,
  22352. /* 644 */,
  22353. /* 645 */,
  22354. /* 646 */
  22355. /*!********************************************************************************!*\
  22356. !*** E:/代码/cbz/cbz/cbz/uni_modules/uview-ui/components/u-safe-bottom/props.js ***!
  22357. \********************************************************************************/
  22358. /*! no static exports found */
  22359. /***/ (function(module, exports, __webpack_require__) {
  22360. "use strict";
  22361. Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0;var _default = {
  22362. props: {} };exports.default = _default;
  22363. /***/ }),
  22364. /* 647 */,
  22365. /* 648 */,
  22366. /* 649 */,
  22367. /* 650 */,
  22368. /* 651 */,
  22369. /* 652 */,
  22370. /* 653 */,
  22371. /* 654 */
  22372. /*!*************************************************************************!*\
  22373. !*** E:/代码/cbz/cbz/cbz/uni_modules/uview-ui/components/u-text/props.js ***!
  22374. \*************************************************************************/
  22375. /*! no static exports found */
  22376. /***/ (function(module, exports, __webpack_require__) {
  22377. "use strict";
  22378. /* WEBPACK VAR INJECTION */(function(uni) {Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0;var _default = {
  22379. props: {
  22380. // 主题颜色
  22381. type: {
  22382. type: String,
  22383. default: uni.$u.props.text.type },
  22384. // 是否显示
  22385. show: {
  22386. type: Boolean,
  22387. default: uni.$u.props.text.show },
  22388. // 显示的值
  22389. text: {
  22390. type: [String, Number],
  22391. default: uni.$u.props.text.text },
  22392. // 前置图标
  22393. prefixIcon: {
  22394. type: String,
  22395. default: uni.$u.props.text.prefixIcon },
  22396. // 后置图标
  22397. suffixIcon: {
  22398. type: String,
  22399. default: uni.$u.props.text.suffixIcon },
  22400. // 文本处理的匹配模式
  22401. // text-普通文本,price-价格,phone-手机号,name-姓名,date-日期,link-超链接
  22402. mode: {
  22403. type: String,
  22404. default: uni.$u.props.text.mode },
  22405. // mode=link下,配置的链接
  22406. href: {
  22407. type: String,
  22408. default: uni.$u.props.text.href },
  22409. // 格式化规则
  22410. format: {
  22411. type: [String, Function],
  22412. default: uni.$u.props.text.format },
  22413. // mode=phone时,点击文本是否拨打电话
  22414. call: {
  22415. type: Boolean,
  22416. default: uni.$u.props.text.call },
  22417. // 小程序的打开方式
  22418. openType: {
  22419. type: String,
  22420. default: uni.$u.props.text.openType },
  22421. // 是否粗体,默认normal
  22422. bold: {
  22423. type: Boolean,
  22424. default: uni.$u.props.text.bold },
  22425. // 是否块状
  22426. block: {
  22427. type: Boolean,
  22428. default: uni.$u.props.text.block },
  22429. // 文本显示的行数,如果设置,超出此行数,将会显示省略号
  22430. lines: {
  22431. type: [String, Number],
  22432. default: uni.$u.props.text.lines },
  22433. // 文本颜色
  22434. color: {
  22435. type: String,
  22436. default: uni.$u.props.text.color },
  22437. // 字体大小
  22438. size: {
  22439. type: [String, Number],
  22440. default: uni.$u.props.text.size },
  22441. // 图标的样式
  22442. iconStyle: {
  22443. type: [Object, String],
  22444. default: uni.$u.props.text.iconStyle },
  22445. // 文字装饰,下划线,中划线等,可选值 none|underline|line-through
  22446. decoration: {
  22447. tepe: String,
  22448. default: uni.$u.props.text.decoration },
  22449. // 外边距,对象、字符串,数值形式均可
  22450. margin: {
  22451. type: [Object, String, Number],
  22452. default: uni.$u.props.text.margin },
  22453. // 文本行高
  22454. lineHeight: {
  22455. type: [String, Number],
  22456. default: uni.$u.props.text.lineHeight },
  22457. // 文本对齐方式,可选值left|center|right
  22458. align: {
  22459. type: String,
  22460. default: uni.$u.props.text.align },
  22461. // 文字换行,可选值break-word|normal|anywhere
  22462. wordWrap: {
  22463. type: String,
  22464. default: uni.$u.props.text.wordWrap } } };exports.default = _default;
  22465. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 1)["default"]))
  22466. /***/ }),
  22467. /* 655 */,
  22468. /* 656 */,
  22469. /* 657 */,
  22470. /* 658 */,
  22471. /* 659 */,
  22472. /* 660 */
  22473. /*!*************************************************************************!*\
  22474. !*** E:/代码/cbz/cbz/cbz/uni_modules/uview-ui/components/u-text/value.js ***!
  22475. \*************************************************************************/
  22476. /*! no static exports found */
  22477. /***/ (function(module, exports, __webpack_require__) {
  22478. "use strict";
  22479. /* WEBPACK VAR INJECTION */(function(uni) {Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0;var _default = {
  22480. computed: {
  22481. // 经处理后需要显示的值
  22482. value: function value() {var
  22483. text =
  22484. this.text,mode = this.mode,format = this.format,href = this.href;
  22485. // 价格类型
  22486. if (mode === 'price') {
  22487. // 如果text不为金额进行提示
  22488. if (!/^\d+(\.\d+)?$/.test(text)) {
  22489. uni.$u.error('金额模式下,text参数需要为金额格式');
  22490. }
  22491. // 进行格式化,判断用户传入的format参数为正则,或者函数,如果没有传入format,则使用默认的金额格式化处理
  22492. if (uni.$u.test.func(format)) {
  22493. // 如果用户传入的是函数,使用函数格式化
  22494. return format(text);
  22495. }
  22496. // 如果format非正则,非函数,则使用默认的金额格式化方法进行操作
  22497. return uni.$u.priceFormat(text, 2);
  22498. }if (mode === 'date') {
  22499. // 判断是否合法的日期或者时间戳
  22500. !uni.$u.test.date(text) && uni.$u.error('日期模式下,text参数需要为日期或时间戳格式');
  22501. // 进行格式化,判断用户传入的format参数为正则,或者函数,如果没有传入format,则使用默认的格式化处理
  22502. if (uni.$u.test.func(format)) {
  22503. // 如果用户传入的是函数,使用函数格式化
  22504. return format(text);
  22505. }if (format) {
  22506. // 如果format非正则,非函数,则使用默认的时间格式化方法进行操作
  22507. return uni.$u.timeFormat(text, format);
  22508. }
  22509. // 如果没有设置format,则设置为默认的时间格式化形式
  22510. return uni.$u.timeFormat(text, 'yyyy-mm-dd');
  22511. }if (mode === 'phone') {
  22512. // 判断是否合法的手机号
  22513. // !uni.$u.test.mobile(text) && uni.$u.error('手机号模式下,text参数需要为手机号码格式')
  22514. if (uni.$u.test.func(format)) {
  22515. // 如果用户传入的是函数,使用函数格式化
  22516. return format(text);
  22517. }if (format === 'encrypt') {
  22518. // 如果format为encrypt,则将手机号进行星号加密处理
  22519. return "".concat(text.substr(0, 3), "****").concat(text.substr(7));
  22520. }
  22521. return text;
  22522. }if (mode === 'name') {
  22523. // 判断是否合法的字符粗
  22524. !(typeof text === 'string') && uni.$u.error('姓名模式下,text参数需要为字符串格式');
  22525. if (uni.$u.test.func(format)) {
  22526. // 如果用户传入的是函数,使用函数格式化
  22527. return format(text);
  22528. }if (format === 'encrypt') {
  22529. // 如果format为encrypt,则将姓名进行星号加密处理
  22530. return this.formatName(text);
  22531. }
  22532. return text;
  22533. }if (mode === 'link') {
  22534. // 判断是否合法的字符粗
  22535. !uni.$u.test.url(href) && uni.$u.error('超链接模式下,href参数需要为URL格式');
  22536. return text;
  22537. }
  22538. return text;
  22539. } },
  22540. methods: {
  22541. // 默认的姓名脱敏规则
  22542. formatName: function formatName(name) {
  22543. var value = '';
  22544. if (name.length === 2) {
  22545. value = name.substr(0, 1) + '*';
  22546. } else if (name.length > 2) {
  22547. var char = '';
  22548. for (var i = 0, len = name.length - 2; i < len; i++) {
  22549. char += '*';
  22550. }
  22551. value = name.substr(0, 1) + char + name.substr(-1, 1);
  22552. } else {
  22553. value = name;
  22554. }
  22555. return value;
  22556. } } };exports.default = _default;
  22557. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 1)["default"]))
  22558. /***/ }),
  22559. /* 661 */
  22560. /*!*******************************************************************!*\
  22561. !*** E:/代码/cbz/cbz/cbz/uni_modules/uview-ui/libs/mixin/button.js ***!
  22562. \*******************************************************************/
  22563. /*! no static exports found */
  22564. /***/ (function(module, exports, __webpack_require__) {
  22565. "use strict";
  22566. Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0;var _default = {
  22567. props: {
  22568. lang: String,
  22569. sessionFrom: String,
  22570. sendMessageTitle: String,
  22571. sendMessagePath: String,
  22572. sendMessageImg: String,
  22573. showMessageCard: Boolean,
  22574. appParameter: String,
  22575. formType: String,
  22576. openType: String } };exports.default = _default;
  22577. /***/ }),
  22578. /* 662 */
  22579. /*!*********************************************************************!*\
  22580. !*** E:/代码/cbz/cbz/cbz/uni_modules/uview-ui/libs/mixin/openType.js ***!
  22581. \*********************************************************************/
  22582. /*! no static exports found */
  22583. /***/ (function(module, exports, __webpack_require__) {
  22584. "use strict";
  22585. Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0;var _default = {
  22586. props: {
  22587. openType: String },
  22588. methods: {
  22589. onGetUserInfo: function onGetUserInfo(event) {
  22590. this.$emit('getuserinfo', event.detail);
  22591. },
  22592. onContact: function onContact(event) {
  22593. this.$emit('contact', event.detail);
  22594. },
  22595. onGetPhoneNumber: function onGetPhoneNumber(event) {
  22596. this.$emit('getphonenumber', event.detail);
  22597. },
  22598. onError: function onError(event) {
  22599. this.$emit('error', event.detail);
  22600. },
  22601. onLaunchApp: function onLaunchApp(event) {
  22602. this.$emit('launchapp', event.detail);
  22603. },
  22604. onOpenSetting: function onOpenSetting(event) {
  22605. this.$emit('opensetting', event.detail);
  22606. } } };exports.default = _default;
  22607. /***/ }),
  22608. /* 663 */,
  22609. /* 664 */,
  22610. /* 665 */,
  22611. /* 666 */,
  22612. /* 667 */,
  22613. /* 668 */,
  22614. /* 669 */,
  22615. /* 670 */
  22616. /*!*************************************************************************!*\
  22617. !*** E:/代码/cbz/cbz/cbz/uni_modules/uview-ui/components/u-link/props.js ***!
  22618. \*************************************************************************/
  22619. /*! no static exports found */
  22620. /***/ (function(module, exports, __webpack_require__) {
  22621. "use strict";
  22622. /* WEBPACK VAR INJECTION */(function(uni) {Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0;var _default = {
  22623. props: {
  22624. // 文字颜色
  22625. color: {
  22626. type: String,
  22627. default: uni.$u.props.link.color },
  22628. // 字体大小,单位px
  22629. fontSize: {
  22630. type: [String, Number],
  22631. default: uni.$u.props.link.fontSize },
  22632. // 是否显示下划线
  22633. underLine: {
  22634. type: Boolean,
  22635. default: uni.$u.props.link.underLine },
  22636. // 要跳转的链接
  22637. href: {
  22638. type: String,
  22639. default: uni.$u.props.link.href },
  22640. // 小程序中复制到粘贴板的提示语
  22641. mpTips: {
  22642. type: String,
  22643. default: uni.$u.props.link.mpTips },
  22644. // 下划线颜色
  22645. lineColor: {
  22646. type: String,
  22647. default: uni.$u.props.link.lineColor },
  22648. // 超链接的问题,不使用slot形式传入,是因为nvue下无法修改颜色
  22649. text: {
  22650. type: String,
  22651. default: uni.$u.props.link.text } } };exports.default = _default;
  22652. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 1)["default"]))
  22653. /***/ })
  22654. ]]);
  22655. //# sourceMappingURL=../../.sourcemap/mp-weixin/common/vendor.js.map