vendor.js 1.2 MB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340153411534215343153441534515346153471534815349153501535115352153531535415355153561535715358153591536015361153621536315364153651536615367153681536915370153711537215373153741537515376153771537815379153801538115382153831538415385153861538715388153891539015391153921539315394153951539615397153981539915400154011540215403154041540515406154071540815409154101541115412154131541415415154161541715418154191542015421154221542315424154251542615427154281542915430154311543215433154341543515436154371543815439154401544115442154431544415445154461544715448154491545015451154521545315454154551545615457154581545915460154611546215463154641546515466154671546815469154701547115472154731547415475154761547715478154791548015481154821548315484154851548615487154881548915490154911549215493154941549515496154971549815499155001550115502155031550415505155061550715508155091551015511155121551315514155151551615517155181551915520155211552215523155241552515526155271552815529155301553115532155331553415535155361553715538155391554015541155421554315544155451554615547155481554915550155511555215553155541555515556155571555815559155601556115562155631556415565155661556715568155691557015571155721557315574155751557615577155781557915580155811558215583155841558515586155871558815589155901559115592155931559415595155961559715598155991560015601156021560315604156051560615607156081560915610156111561215613156141561515616156171561815619156201562115622156231562415625156261562715628156291563015631156321563315634156351563615637156381563915640156411564215643156441564515646156471564815649156501565115652156531565415655156561565715658156591566015661156621566315664156651566615667156681566915670156711567215673156741567515676156771567815679156801568115682156831568415685156861568715688156891569015691156921569315694156951569615697156981569915700157011570215703157041570515706157071570815709157101571115712157131571415715157161571715718157191572015721157221572315724157251572615727157281572915730157311573215733157341573515736157371573815739157401574115742157431574415745157461574715748157491575015751157521575315754157551575615757157581575915760157611576215763157641576515766157671576815769157701577115772157731577415775157761577715778157791578015781157821578315784157851578615787157881578915790157911579215793157941579515796157971579815799158001580115802158031580415805158061580715808158091581015811158121581315814158151581615817158181581915820158211582215823158241582515826158271582815829158301583115832158331583415835158361583715838158391584015841158421584315844158451584615847158481584915850158511585215853158541585515856158571585815859158601586115862158631586415865158661586715868158691587015871158721587315874158751587615877158781587915880158811588215883158841588515886158871588815889158901589115892158931589415895158961589715898158991590015901159021590315904159051590615907159081590915910159111591215913159141591515916159171591815919159201592115922159231592415925159261592715928159291593015931159321593315934159351593615937159381593915940159411594215943159441594515946159471594815949159501595115952159531595415955159561595715958159591596015961159621596315964159651596615967159681596915970159711597215973159741597515976159771597815979159801598115982159831598415985159861598715988159891599015991159921599315994159951599615997159981599916000160011600216003160041600516006160071600816009160101601116012160131601416015160161601716018160191602016021160221602316024160251602616027160281602916030160311603216033160341603516036160371603816039160401604116042160431604416045160461604716048160491605016051160521605316054160551605616057160581605916060160611606216063160641606516066160671606816069160701607116072160731607416075160761607716078160791608016081160821608316084160851608616087160881608916090160911609216093160941609516096160971609816099161001610116102161031610416105161061610716108161091611016111161121611316114161151611616117161181611916120161211612216123161241612516126161271612816129161301613116132161331613416135161361613716138161391614016141161421614316144161451614616147161481614916150161511615216153161541615516156161571615816159161601616116162161631616416165161661616716168161691617016171161721617316174161751617616177161781617916180161811618216183161841618516186161871618816189161901619116192161931619416195161961619716198161991620016201162021620316204162051620616207162081620916210162111621216213162141621516216162171621816219162201622116222162231622416225162261622716228162291623016231162321623316234162351623616237162381623916240162411624216243162441624516246162471624816249162501625116252162531625416255162561625716258162591626016261162621626316264162651626616267162681626916270162711627216273162741627516276162771627816279162801628116282162831628416285162861628716288162891629016291162921629316294162951629616297162981629916300163011630216303163041630516306163071630816309163101631116312163131631416315163161631716318163191632016321163221632316324163251632616327163281632916330163311633216333163341633516336163371633816339163401634116342163431634416345163461634716348163491635016351163521635316354163551635616357163581635916360163611636216363163641636516366163671636816369163701637116372163731637416375163761637716378163791638016381163821638316384163851638616387163881638916390163911639216393163941639516396163971639816399164001640116402164031640416405164061640716408164091641016411164121641316414164151641616417164181641916420164211642216423164241642516426164271642816429164301643116432164331643416435164361643716438164391644016441164421644316444164451644616447164481644916450164511645216453164541645516456164571645816459164601646116462164631646416465164661646716468164691647016471164721647316474164751647616477164781647916480164811648216483164841648516486164871648816489164901649116492164931649416495164961649716498164991650016501165021650316504165051650616507165081650916510165111651216513165141651516516165171651816519165201652116522165231652416525165261652716528165291653016531165321653316534165351653616537165381653916540165411654216543165441654516546165471654816549165501655116552165531655416555165561655716558165591656016561165621656316564165651656616567165681656916570165711657216573165741657516576165771657816579165801658116582165831658416585165861658716588165891659016591165921659316594165951659616597165981659916600166011660216603166041660516606166071660816609166101661116612166131661416615166161661716618166191662016621166221662316624166251662616627166281662916630166311663216633166341663516636166371663816639166401664116642166431664416645166461664716648166491665016651166521665316654166551665616657166581665916660166611666216663166641666516666166671666816669166701667116672166731667416675166761667716678166791668016681166821668316684166851668616687166881668916690166911669216693166941669516696166971669816699167001670116702167031670416705167061670716708167091671016711167121671316714167151671616717167181671916720167211672216723167241672516726167271672816729167301673116732167331673416735167361673716738167391674016741167421674316744167451674616747167481674916750167511675216753167541675516756167571675816759167601676116762167631676416765167661676716768167691677016771167721677316774167751677616777167781677916780167811678216783167841678516786167871678816789167901679116792167931679416795167961679716798167991680016801168021680316804168051680616807168081680916810168111681216813168141681516816168171681816819168201682116822168231682416825168261682716828168291683016831168321683316834168351683616837168381683916840168411684216843168441684516846168471684816849168501685116852168531685416855168561685716858168591686016861168621686316864168651686616867168681686916870168711687216873168741687516876168771687816879168801688116882168831688416885168861688716888168891689016891168921689316894168951689616897168981689916900169011690216903169041690516906169071690816909169101691116912169131691416915169161691716918169191692016921169221692316924169251692616927169281692916930169311693216933169341693516936169371693816939169401694116942169431694416945169461694716948169491695016951169521695316954169551695616957169581695916960169611696216963169641696516966169671696816969169701697116972169731697416975169761697716978169791698016981169821698316984169851698616987169881698916990169911699216993169941699516996169971699816999170001700117002170031700417005170061700717008170091701017011170121701317014170151701617017170181701917020170211702217023170241702517026170271702817029170301703117032170331703417035170361703717038170391704017041170421704317044170451704617047170481704917050170511705217053170541705517056170571705817059170601706117062170631706417065170661706717068170691707017071170721707317074170751707617077170781707917080170811708217083170841708517086170871708817089170901709117092170931709417095170961709717098170991710017101171021710317104171051710617107171081710917110171111711217113171141711517116171171711817119171201712117122171231712417125171261712717128171291713017131171321713317134171351713617137171381713917140171411714217143171441714517146171471714817149171501715117152171531715417155171561715717158171591716017161171621716317164171651716617167171681716917170171711717217173171741717517176171771717817179171801718117182171831718417185171861718717188171891719017191171921719317194171951719617197171981719917200172011720217203172041720517206172071720817209172101721117212172131721417215172161721717218172191722017221172221722317224172251722617227172281722917230172311723217233172341723517236172371723817239172401724117242172431724417245172461724717248172491725017251172521725317254172551725617257172581725917260172611726217263172641726517266172671726817269172701727117272172731727417275172761727717278172791728017281172821728317284172851728617287172881728917290172911729217293172941729517296172971729817299173001730117302173031730417305173061730717308173091731017311173121731317314173151731617317173181731917320173211732217323173241732517326173271732817329173301733117332173331733417335173361733717338173391734017341173421734317344173451734617347173481734917350173511735217353173541735517356173571735817359173601736117362173631736417365173661736717368173691737017371173721737317374173751737617377173781737917380173811738217383173841738517386173871738817389173901739117392173931739417395173961739717398173991740017401174021740317404174051740617407174081740917410174111741217413174141741517416174171741817419174201742117422174231742417425174261742717428174291743017431174321743317434174351743617437174381743917440174411744217443174441744517446174471744817449174501745117452174531745417455174561745717458174591746017461174621746317464174651746617467174681746917470174711747217473174741747517476174771747817479174801748117482174831748417485174861748717488174891749017491174921749317494174951749617497174981749917500175011750217503175041750517506175071750817509175101751117512175131751417515175161751717518175191752017521175221752317524175251752617527175281752917530175311753217533175341753517536175371753817539175401754117542175431754417545175461754717548175491755017551175521755317554175551755617557175581755917560175611756217563175641756517566175671756817569175701757117572175731757417575175761757717578175791758017581175821758317584175851758617587175881758917590175911759217593175941759517596175971759817599176001760117602176031760417605176061760717608176091761017611176121761317614176151761617617176181761917620176211762217623176241762517626176271762817629176301763117632176331763417635176361763717638176391764017641176421764317644176451764617647176481764917650176511765217653176541765517656176571765817659176601766117662176631766417665176661766717668176691767017671176721767317674176751767617677176781767917680176811768217683176841768517686176871768817689176901769117692176931769417695176961769717698176991770017701177021770317704177051770617707177081770917710177111771217713177141771517716177171771817719177201772117722177231772417725177261772717728177291773017731177321773317734177351773617737177381773917740177411774217743177441774517746177471774817749177501775117752177531775417755177561775717758177591776017761177621776317764177651776617767177681776917770177711777217773177741777517776177771777817779177801778117782177831778417785177861778717788177891779017791177921779317794177951779617797177981779917800178011780217803178041780517806178071780817809178101781117812178131781417815178161781717818178191782017821178221782317824178251782617827178281782917830178311783217833178341783517836178371783817839178401784117842178431784417845178461784717848178491785017851178521785317854178551785617857178581785917860178611786217863178641786517866178671786817869178701787117872178731787417875178761787717878178791788017881178821788317884178851788617887178881788917890178911789217893178941789517896178971789817899179001790117902179031790417905179061790717908179091791017911179121791317914179151791617917179181791917920179211792217923179241792517926179271792817929179301793117932179331793417935179361793717938179391794017941179421794317944179451794617947179481794917950179511795217953179541795517956179571795817959179601796117962179631796417965179661796717968179691797017971179721797317974179751797617977179781797917980179811798217983179841798517986179871798817989179901799117992179931799417995179961799717998179991800018001180021800318004180051800618007180081800918010180111801218013180141801518016180171801818019180201802118022180231802418025180261802718028180291803018031180321803318034180351803618037180381803918040180411804218043180441804518046180471804818049180501805118052180531805418055180561805718058180591806018061180621806318064180651806618067180681806918070180711807218073180741807518076180771807818079180801808118082180831808418085180861808718088180891809018091180921809318094180951809618097180981809918100181011810218103181041810518106181071810818109181101811118112181131811418115181161811718118181191812018121181221812318124181251812618127181281812918130181311813218133181341813518136181371813818139181401814118142181431814418145181461814718148181491815018151181521815318154181551815618157181581815918160181611816218163181641816518166181671816818169181701817118172181731817418175181761817718178181791818018181181821818318184181851818618187181881818918190181911819218193181941819518196181971819818199182001820118202182031820418205182061820718208182091821018211182121821318214182151821618217182181821918220182211822218223182241822518226182271822818229182301823118232182331823418235182361823718238182391824018241182421824318244182451824618247182481824918250182511825218253182541825518256182571825818259182601826118262182631826418265182661826718268182691827018271182721827318274182751827618277182781827918280182811828218283182841828518286182871828818289182901829118292182931829418295182961829718298182991830018301183021830318304183051830618307183081830918310183111831218313183141831518316183171831818319183201832118322183231832418325183261832718328183291833018331183321833318334183351833618337183381833918340183411834218343183441834518346183471834818349183501835118352183531835418355183561835718358183591836018361183621836318364183651836618367183681836918370183711837218373183741837518376183771837818379183801838118382183831838418385183861838718388183891839018391183921839318394183951839618397183981839918400184011840218403184041840518406184071840818409184101841118412184131841418415184161841718418184191842018421184221842318424184251842618427184281842918430184311843218433184341843518436184371843818439184401844118442184431844418445184461844718448184491845018451184521845318454184551845618457184581845918460184611846218463184641846518466184671846818469184701847118472184731847418475184761847718478184791848018481184821848318484184851848618487184881848918490184911849218493184941849518496184971849818499185001850118502185031850418505185061850718508185091851018511185121851318514185151851618517185181851918520185211852218523185241852518526185271852818529185301853118532185331853418535185361853718538185391854018541185421854318544185451854618547185481854918550185511855218553185541855518556185571855818559185601856118562185631856418565185661856718568185691857018571185721857318574185751857618577185781857918580185811858218583185841858518586185871858818589185901859118592185931859418595185961859718598185991860018601186021860318604186051860618607186081860918610186111861218613186141861518616186171861818619186201862118622186231862418625186261862718628186291863018631186321863318634186351863618637186381863918640186411864218643186441864518646186471864818649186501865118652186531865418655186561865718658186591866018661186621866318664186651866618667186681866918670186711867218673186741867518676186771867818679186801868118682186831868418685186861868718688186891869018691186921869318694186951869618697186981869918700187011870218703187041870518706187071870818709187101871118712187131871418715187161871718718187191872018721187221872318724187251872618727187281872918730187311873218733187341873518736187371873818739187401874118742187431874418745187461874718748187491875018751187521875318754187551875618757187581875918760187611876218763187641876518766187671876818769187701877118772187731877418775187761877718778187791878018781187821878318784187851878618787187881878918790187911879218793187941879518796187971879818799188001880118802188031880418805188061880718808188091881018811188121881318814188151881618817188181881918820188211882218823188241882518826188271882818829188301883118832188331883418835188361883718838188391884018841188421884318844188451884618847188481884918850188511885218853188541885518856188571885818859188601886118862188631886418865188661886718868188691887018871188721887318874188751887618877188781887918880188811888218883188841888518886188871888818889188901889118892188931889418895188961889718898188991890018901189021890318904189051890618907189081890918910189111891218913189141891518916189171891818919189201892118922189231892418925189261892718928189291893018931189321893318934189351893618937189381893918940189411894218943189441894518946189471894818949189501895118952189531895418955189561895718958189591896018961189621896318964189651896618967189681896918970189711897218973189741897518976189771897818979189801898118982189831898418985189861898718988189891899018991189921899318994189951899618997189981899919000190011900219003190041900519006190071900819009190101901119012190131901419015190161901719018190191902019021190221902319024190251902619027190281902919030190311903219033190341903519036190371903819039190401904119042190431904419045190461904719048190491905019051190521905319054190551905619057190581905919060190611906219063190641906519066190671906819069190701907119072190731907419075190761907719078190791908019081190821908319084190851908619087190881908919090190911909219093190941909519096190971909819099191001910119102191031910419105191061910719108191091911019111191121911319114191151911619117191181911919120191211912219123191241912519126191271912819129191301913119132191331913419135191361913719138191391914019141191421914319144191451914619147191481914919150191511915219153191541915519156191571915819159191601916119162191631916419165191661916719168191691917019171191721917319174191751917619177191781917919180191811918219183191841918519186191871918819189191901919119192191931919419195191961919719198191991920019201192021920319204192051920619207192081920919210192111921219213192141921519216192171921819219192201922119222192231922419225192261922719228192291923019231192321923319234192351923619237192381923919240192411924219243192441924519246192471924819249192501925119252192531925419255192561925719258192591926019261192621926319264192651926619267192681926919270192711927219273192741927519276192771927819279192801928119282192831928419285192861928719288192891929019291192921929319294192951929619297192981929919300193011930219303193041930519306193071930819309193101931119312193131931419315193161931719318193191932019321193221932319324193251932619327193281932919330193311933219333193341933519336193371933819339193401934119342193431934419345193461934719348193491935019351193521935319354193551935619357193581935919360193611936219363193641936519366193671936819369193701937119372193731937419375193761937719378193791938019381193821938319384193851938619387193881938919390193911939219393193941939519396193971939819399194001940119402194031940419405194061940719408194091941019411194121941319414194151941619417194181941919420194211942219423194241942519426194271942819429194301943119432194331943419435194361943719438194391944019441194421944319444194451944619447194481944919450194511945219453194541945519456194571945819459194601946119462194631946419465194661946719468194691947019471194721947319474194751947619477194781947919480194811948219483194841948519486194871948819489194901949119492194931949419495194961949719498194991950019501195021950319504195051950619507195081950919510195111951219513195141951519516195171951819519195201952119522195231952419525195261952719528195291953019531195321953319534195351953619537195381953919540195411954219543195441954519546195471954819549195501955119552195531955419555195561955719558195591956019561195621956319564195651956619567195681956919570195711957219573195741957519576195771957819579195801958119582195831958419585195861958719588195891959019591195921959319594195951959619597195981959919600196011960219603196041960519606196071960819609196101961119612196131961419615196161961719618196191962019621196221962319624196251962619627196281962919630196311963219633196341963519636196371963819639196401964119642196431964419645196461964719648196491965019651196521965319654196551965619657196581965919660196611966219663196641966519666196671966819669196701967119672196731967419675196761967719678196791968019681196821968319684196851968619687196881968919690196911969219693196941969519696196971969819699197001970119702197031970419705197061970719708197091971019711197121971319714197151971619717197181971919720197211972219723197241972519726197271972819729197301973119732197331973419735197361973719738197391974019741197421974319744197451974619747197481974919750197511975219753197541975519756197571975819759197601976119762197631976419765197661976719768197691977019771197721977319774197751977619777197781977919780197811978219783197841978519786197871978819789197901979119792197931979419795197961979719798197991980019801198021980319804198051980619807198081980919810198111981219813198141981519816198171981819819198201982119822198231982419825198261982719828198291983019831198321983319834198351983619837198381983919840198411984219843198441984519846198471984819849198501985119852198531985419855198561985719858198591986019861198621986319864198651986619867198681986919870198711987219873198741987519876198771987819879198801988119882198831988419885198861988719888198891989019891198921989319894198951989619897198981989919900199011990219903199041990519906199071990819909199101991119912199131991419915199161991719918199191992019921199221992319924199251992619927199281992919930199311993219933199341993519936199371993819939199401994119942199431994419945199461994719948199491995019951199521995319954199551995619957199581995919960199611996219963199641996519966199671996819969199701997119972199731997419975199761997719978199791998019981199821998319984199851998619987199881998919990199911999219993199941999519996199971999819999200002000120002200032000420005200062000720008200092001020011200122001320014200152001620017200182001920020200212002220023200242002520026200272002820029200302003120032200332003420035200362003720038200392004020041200422004320044200452004620047200482004920050200512005220053200542005520056200572005820059200602006120062200632006420065200662006720068200692007020071200722007320074200752007620077200782007920080200812008220083200842008520086200872008820089200902009120092200932009420095200962009720098200992010020101201022010320104201052010620107201082010920110201112011220113201142011520116201172011820119201202012120122201232012420125201262012720128201292013020131201322013320134201352013620137201382013920140201412014220143201442014520146201472014820149201502015120152201532015420155201562015720158201592016020161201622016320164201652016620167201682016920170201712017220173201742017520176201772017820179201802018120182201832018420185201862018720188201892019020191201922019320194201952019620197201982019920200202012020220203202042020520206202072020820209202102021120212202132021420215202162021720218202192022020221202222022320224202252022620227202282022920230202312023220233202342023520236202372023820239202402024120242202432024420245202462024720248202492025020251202522025320254202552025620257202582025920260202612026220263202642026520266202672026820269202702027120272202732027420275202762027720278202792028020281202822028320284202852028620287202882028920290202912029220293202942029520296202972029820299203002030120302203032030420305203062030720308203092031020311203122031320314203152031620317203182031920320203212032220323203242032520326203272032820329203302033120332203332033420335203362033720338203392034020341203422034320344203452034620347203482034920350203512035220353203542035520356203572035820359203602036120362203632036420365203662036720368203692037020371203722037320374203752037620377203782037920380203812038220383203842038520386203872038820389203902039120392203932039420395203962039720398203992040020401204022040320404204052040620407204082040920410204112041220413204142041520416204172041820419204202042120422204232042420425204262042720428204292043020431204322043320434204352043620437204382043920440204412044220443204442044520446204472044820449204502045120452204532045420455204562045720458204592046020461204622046320464204652046620467204682046920470204712047220473204742047520476204772047820479204802048120482204832048420485204862048720488204892049020491204922049320494204952049620497204982049920500205012050220503205042050520506205072050820509205102051120512205132051420515205162051720518205192052020521205222052320524205252052620527205282052920530205312053220533205342053520536205372053820539205402054120542205432054420545205462054720548205492055020551205522055320554205552055620557205582055920560205612056220563205642056520566205672056820569205702057120572205732057420575205762057720578205792058020581205822058320584205852058620587205882058920590205912059220593205942059520596205972059820599206002060120602206032060420605206062060720608206092061020611206122061320614206152061620617206182061920620206212062220623206242062520626206272062820629206302063120632206332063420635206362063720638206392064020641206422064320644206452064620647206482064920650206512065220653206542065520656206572065820659206602066120662206632066420665206662066720668206692067020671206722067320674206752067620677206782067920680206812068220683206842068520686206872068820689206902069120692206932069420695206962069720698206992070020701207022070320704207052070620707207082070920710207112071220713207142071520716207172071820719207202072120722207232072420725207262072720728207292073020731207322073320734207352073620737207382073920740207412074220743207442074520746207472074820749207502075120752207532075420755207562075720758207592076020761207622076320764207652076620767207682076920770207712077220773207742077520776207772077820779207802078120782207832078420785207862078720788207892079020791207922079320794207952079620797207982079920800208012080220803208042080520806208072080820809208102081120812208132081420815208162081720818208192082020821208222082320824208252082620827208282082920830208312083220833208342083520836208372083820839208402084120842208432084420845208462084720848208492085020851208522085320854208552085620857208582085920860208612086220863208642086520866208672086820869208702087120872208732087420875208762087720878208792088020881208822088320884208852088620887208882088920890208912089220893208942089520896208972089820899209002090120902209032090420905209062090720908209092091020911209122091320914209152091620917209182091920920209212092220923209242092520926209272092820929209302093120932209332093420935209362093720938209392094020941209422094320944209452094620947209482094920950209512095220953209542095520956209572095820959209602096120962209632096420965209662096720968209692097020971209722097320974209752097620977209782097920980209812098220983209842098520986209872098820989209902099120992209932099420995209962099720998209992100021001210022100321004210052100621007210082100921010210112101221013210142101521016210172101821019210202102121022210232102421025210262102721028210292103021031210322103321034210352103621037210382103921040210412104221043210442104521046210472104821049210502105121052210532105421055210562105721058210592106021061210622106321064210652106621067210682106921070210712107221073210742107521076210772107821079210802108121082210832108421085210862108721088210892109021091210922109321094210952109621097210982109921100211012110221103211042110521106211072110821109211102111121112211132111421115211162111721118211192112021121211222112321124211252112621127211282112921130211312113221133211342113521136211372113821139211402114121142211432114421145211462114721148211492115021151211522115321154211552115621157211582115921160211612116221163211642116521166211672116821169211702117121172211732117421175211762117721178211792118021181211822118321184211852118621187211882118921190211912119221193211942119521196211972119821199212002120121202212032120421205212062120721208212092121021211212122121321214212152121621217212182121921220212212122221223212242122521226212272122821229212302123121232212332123421235212362123721238212392124021241212422124321244212452124621247212482124921250212512125221253212542125521256212572125821259212602126121262212632126421265212662126721268212692127021271212722127321274212752127621277212782127921280212812128221283212842128521286212872128821289212902129121292212932129421295212962129721298212992130021301213022130321304213052130621307213082130921310213112131221313213142131521316213172131821319213202132121322213232132421325213262132721328213292133021331213322133321334213352133621337213382133921340213412134221343213442134521346213472134821349213502135121352213532135421355213562135721358213592136021361213622136321364213652136621367213682136921370213712137221373213742137521376213772137821379213802138121382213832138421385213862138721388213892139021391213922139321394213952139621397213982139921400214012140221403214042140521406214072140821409214102141121412214132141421415214162141721418214192142021421214222142321424214252142621427214282142921430214312143221433214342143521436214372143821439214402144121442214432144421445214462144721448214492145021451214522145321454214552145621457214582145921460214612146221463214642146521466214672146821469214702147121472214732147421475214762147721478214792148021481214822148321484214852148621487214882148921490214912149221493214942149521496214972149821499215002150121502215032150421505215062150721508215092151021511215122151321514215152151621517215182151921520215212152221523215242152521526215272152821529215302153121532215332153421535215362153721538215392154021541215422154321544215452154621547215482154921550215512155221553215542155521556215572155821559215602156121562215632156421565215662156721568215692157021571215722157321574215752157621577215782157921580215812158221583215842158521586215872158821589215902159121592215932159421595215962159721598215992160021601216022160321604216052160621607216082160921610216112161221613216142161521616216172161821619216202162121622216232162421625216262162721628216292163021631216322163321634216352163621637216382163921640216412164221643216442164521646216472164821649216502165121652216532165421655216562165721658216592166021661216622166321664216652166621667216682166921670216712167221673216742167521676216772167821679216802168121682216832168421685216862168721688216892169021691216922169321694216952169621697216982169921700217012170221703217042170521706217072170821709217102171121712217132171421715217162171721718217192172021721217222172321724217252172621727217282172921730217312173221733217342173521736217372173821739217402174121742217432174421745217462174721748217492175021751217522175321754217552175621757217582175921760217612176221763217642176521766217672176821769217702177121772217732177421775217762177721778217792178021781217822178321784217852178621787217882178921790217912179221793217942179521796217972179821799218002180121802218032180421805218062180721808218092181021811218122181321814218152181621817218182181921820218212182221823218242182521826218272182821829218302183121832218332183421835218362183721838218392184021841218422184321844218452184621847218482184921850218512185221853218542185521856218572185821859218602186121862218632186421865218662186721868218692187021871218722187321874218752187621877218782187921880218812188221883218842188521886218872188821889218902189121892218932189421895218962189721898218992190021901219022190321904219052190621907219082190921910219112191221913219142191521916219172191821919219202192121922219232192421925219262192721928219292193021931219322193321934219352193621937219382193921940219412194221943219442194521946219472194821949219502195121952219532195421955219562195721958219592196021961219622196321964219652196621967219682196921970219712197221973219742197521976219772197821979219802198121982219832198421985219862198721988219892199021991219922199321994219952199621997219982199922000220012200222003220042200522006220072200822009220102201122012220132201422015220162201722018220192202022021220222202322024220252202622027220282202922030220312203222033220342203522036220372203822039220402204122042220432204422045220462204722048220492205022051220522205322054220552205622057220582205922060220612206222063220642206522066220672206822069220702207122072220732207422075220762207722078220792208022081220822208322084220852208622087220882208922090220912209222093220942209522096220972209822099221002210122102221032210422105221062210722108221092211022111221122211322114221152211622117221182211922120221212212222123221242212522126221272212822129221302213122132221332213422135221362213722138221392214022141221422214322144221452214622147221482214922150221512215222153221542215522156221572215822159221602216122162221632216422165221662216722168221692217022171221722217322174221752217622177221782217922180221812218222183221842218522186221872218822189221902219122192221932219422195221962219722198221992220022201222022220322204222052220622207222082220922210222112221222213222142221522216222172221822219222202222122222222232222422225222262222722228222292223022231222322223322234222352223622237222382223922240222412224222243222442224522246222472224822249222502225122252222532225422255222562225722258222592226022261222622226322264222652226622267222682226922270222712227222273222742227522276222772227822279222802228122282222832228422285222862228722288222892229022291222922229322294222952229622297222982229922300223012230222303223042230522306223072230822309223102231122312223132231422315223162231722318223192232022321223222232322324223252232622327223282232922330223312233222333223342233522336223372233822339223402234122342223432234422345223462234722348223492235022351223522235322354223552235622357223582235922360223612236222363223642236522366223672236822369223702237122372223732237422375223762237722378223792238022381223822238322384223852238622387223882238922390223912239222393223942239522396223972239822399224002240122402224032240422405224062240722408224092241022411224122241322414224152241622417224182241922420224212242222423224242242522426224272242822429224302243122432224332243422435224362243722438224392244022441224422244322444224452244622447224482244922450224512245222453224542245522456224572245822459224602246122462224632246422465224662246722468224692247022471224722247322474224752247622477224782247922480224812248222483224842248522486224872248822489224902249122492224932249422495224962249722498224992250022501225022250322504225052250622507225082250922510225112251222513225142251522516225172251822519225202252122522225232252422525225262252722528225292253022531225322253322534225352253622537225382253922540225412254222543225442254522546225472254822549225502255122552225532255422555225562255722558225592256022561225622256322564225652256622567225682256922570225712257222573225742257522576225772257822579225802258122582225832258422585225862258722588225892259022591225922259322594225952259622597225982259922600226012260222603226042260522606226072260822609226102261122612226132261422615226162261722618226192262022621226222262322624226252262622627226282262922630226312263222633226342263522636226372263822639226402264122642226432264422645226462264722648226492265022651226522265322654226552265622657226582265922660226612266222663226642266522666226672266822669226702267122672226732267422675226762267722678226792268022681226822268322684226852268622687226882268922690226912269222693226942269522696226972269822699227002270122702227032270422705227062270722708227092271022711227122271322714227152271622717227182271922720227212272222723227242272522726227272272822729227302273122732227332273422735227362273722738227392274022741227422274322744227452274622747227482274922750227512275222753227542275522756227572275822759227602276122762227632276422765227662276722768227692277022771227722277322774227752277622777227782277922780227812278222783227842278522786227872278822789227902279122792227932279422795227962279722798227992280022801228022280322804228052280622807228082280922810228112281222813228142281522816228172281822819228202282122822228232282422825228262282722828228292283022831228322283322834228352283622837228382283922840228412284222843228442284522846228472284822849228502285122852228532285422855228562285722858228592286022861228622286322864228652286622867228682286922870228712287222873228742287522876228772287822879228802288122882228832288422885228862288722888228892289022891228922289322894228952289622897228982289922900229012290222903229042290522906229072290822909229102291122912229132291422915229162291722918229192292022921229222292322924229252292622927229282292922930229312293222933229342293522936229372293822939229402294122942229432294422945229462294722948229492295022951229522295322954229552295622957229582295922960229612296222963229642296522966229672296822969229702297122972229732297422975229762297722978229792298022981229822298322984229852298622987229882298922990229912299222993229942299522996229972299822999230002300123002230032300423005230062300723008230092301023011230122301323014230152301623017230182301923020230212302223023230242302523026230272302823029230302303123032230332303423035230362303723038230392304023041230422304323044230452304623047230482304923050230512305223053230542305523056230572305823059230602306123062230632306423065230662306723068230692307023071230722307323074230752307623077230782307923080230812308223083230842308523086230872308823089230902309123092230932309423095230962309723098230992310023101231022310323104231052310623107231082310923110231112311223113231142311523116231172311823119231202312123122231232312423125231262312723128231292313023131231322313323134231352313623137231382313923140231412314223143231442314523146231472314823149231502315123152231532315423155231562315723158231592316023161231622316323164231652316623167231682316923170231712317223173231742317523176231772317823179231802318123182231832318423185231862318723188231892319023191231922319323194231952319623197231982319923200232012320223203232042320523206232072320823209232102321123212232132321423215232162321723218232192322023221232222322323224232252322623227232282322923230232312323223233232342323523236232372323823239232402324123242232432324423245232462324723248232492325023251232522325323254232552325623257232582325923260232612326223263232642326523266232672326823269232702327123272232732327423275232762327723278232792328023281232822328323284232852328623287232882328923290232912329223293232942329523296232972329823299233002330123302233032330423305233062330723308233092331023311233122331323314233152331623317233182331923320233212332223323233242332523326233272332823329233302333123332233332333423335233362333723338233392334023341233422334323344233452334623347233482334923350233512335223353233542335523356233572335823359233602336123362233632336423365233662336723368233692337023371233722337323374233752337623377233782337923380233812338223383233842338523386233872338823389233902339123392233932339423395233962339723398233992340023401234022340323404234052340623407234082340923410234112341223413234142341523416234172341823419234202342123422234232342423425234262342723428234292343023431234322343323434234352343623437234382343923440234412344223443234442344523446234472344823449234502345123452234532345423455234562345723458234592346023461234622346323464234652346623467234682346923470234712347223473234742347523476234772347823479234802348123482234832348423485234862348723488234892349023491234922349323494234952349623497234982349923500235012350223503235042350523506235072350823509235102351123512235132351423515235162351723518235192352023521235222352323524235252352623527235282352923530235312353223533235342353523536235372353823539235402354123542235432354423545235462354723548235492355023551235522355323554235552355623557235582355923560235612356223563235642356523566235672356823569235702357123572235732357423575235762357723578235792358023581235822358323584235852358623587235882358923590235912359223593235942359523596235972359823599236002360123602236032360423605236062360723608236092361023611236122361323614236152361623617236182361923620236212362223623236242362523626236272362823629236302363123632236332363423635236362363723638236392364023641236422364323644236452364623647236482364923650236512365223653236542365523656236572365823659236602366123662236632366423665236662366723668236692367023671236722367323674236752367623677236782367923680236812368223683236842368523686236872368823689236902369123692236932369423695236962369723698236992370023701237022370323704237052370623707237082370923710237112371223713237142371523716237172371823719237202372123722237232372423725237262372723728237292373023731237322373323734237352373623737237382373923740237412374223743237442374523746237472374823749237502375123752237532375423755237562375723758237592376023761237622376323764237652376623767237682376923770237712377223773237742377523776237772377823779237802378123782237832378423785237862378723788237892379023791237922379323794237952379623797237982379923800238012380223803238042380523806238072380823809238102381123812238132381423815238162381723818238192382023821238222382323824238252382623827238282382923830238312383223833238342383523836238372383823839238402384123842238432384423845238462384723848238492385023851238522385323854238552385623857238582385923860238612386223863238642386523866238672386823869238702387123872238732387423875238762387723878238792388023881238822388323884238852388623887238882388923890238912389223893238942389523896238972389823899239002390123902239032390423905239062390723908239092391023911239122391323914239152391623917239182391923920239212392223923239242392523926239272392823929239302393123932239332393423935239362393723938239392394023941239422394323944239452394623947239482394923950239512395223953239542395523956239572395823959239602396123962239632396423965239662396723968239692397023971239722397323974239752397623977239782397923980239812398223983239842398523986239872398823989239902399123992239932399423995239962399723998239992400024001240022400324004240052400624007240082400924010240112401224013240142401524016240172401824019240202402124022240232402424025240262402724028240292403024031240322403324034240352403624037240382403924040240412404224043240442404524046240472404824049240502405124052240532405424055240562405724058240592406024061240622406324064240652406624067240682406924070240712407224073240742407524076240772407824079240802408124082240832408424085240862408724088240892409024091240922409324094240952409624097240982409924100241012410224103241042410524106241072410824109241102411124112241132411424115241162411724118241192412024121241222412324124241252412624127241282412924130241312413224133241342413524136241372413824139241402414124142241432414424145241462414724148241492415024151241522415324154241552415624157241582415924160241612416224163241642416524166241672416824169241702417124172241732417424175241762417724178241792418024181241822418324184241852418624187241882418924190241912419224193241942419524196241972419824199242002420124202242032420424205242062420724208242092421024211242122421324214242152421624217242182421924220242212422224223242242422524226242272422824229242302423124232242332423424235242362423724238242392424024241242422424324244242452424624247242482424924250242512425224253242542425524256242572425824259242602426124262242632426424265242662426724268242692427024271242722427324274242752427624277242782427924280242812428224283242842428524286242872428824289242902429124292242932429424295242962429724298242992430024301243022430324304243052430624307243082430924310243112431224313243142431524316243172431824319243202432124322243232432424325243262432724328243292433024331243322433324334243352433624337243382433924340243412434224343243442434524346243472434824349243502435124352243532435424355243562435724358243592436024361243622436324364243652436624367243682436924370243712437224373243742437524376243772437824379243802438124382243832438424385243862438724388243892439024391243922439324394243952439624397243982439924400244012440224403244042440524406244072440824409244102441124412244132441424415244162441724418244192442024421244222442324424244252442624427244282442924430244312443224433244342443524436244372443824439244402444124442244432444424445244462444724448244492445024451244522445324454244552445624457244582445924460244612446224463244642446524466244672446824469244702447124472244732447424475244762447724478244792448024481244822448324484244852448624487244882448924490244912449224493244942449524496244972449824499245002450124502245032450424505245062450724508245092451024511245122451324514245152451624517245182451924520245212452224523245242452524526245272452824529245302453124532245332453424535245362453724538245392454024541245422454324544245452454624547245482454924550245512455224553245542455524556245572455824559245602456124562245632456424565245662456724568245692457024571245722457324574245752457624577245782457924580245812458224583245842458524586245872458824589245902459124592245932459424595245962459724598245992460024601246022460324604246052460624607246082460924610246112461224613246142461524616246172461824619246202462124622246232462424625246262462724628246292463024631246322463324634246352463624637246382463924640246412464224643246442464524646246472464824649246502465124652246532465424655246562465724658246592466024661246622466324664246652466624667246682466924670246712467224673246742467524676246772467824679246802468124682246832468424685246862468724688246892469024691246922469324694246952469624697246982469924700247012470224703247042470524706247072470824709247102471124712247132471424715247162471724718247192472024721247222472324724247252472624727247282472924730247312473224733247342473524736247372473824739247402474124742247432474424745247462474724748247492475024751247522475324754247552475624757247582475924760247612476224763247642476524766247672476824769247702477124772247732477424775247762477724778247792478024781247822478324784247852478624787247882478924790247912479224793247942479524796247972479824799248002480124802248032480424805248062480724808248092481024811248122481324814248152481624817248182481924820248212482224823248242482524826248272482824829248302483124832248332483424835248362483724838248392484024841248422484324844248452484624847248482484924850248512485224853248542485524856248572485824859248602486124862248632486424865248662486724868248692487024871248722487324874248752487624877248782487924880248812488224883248842488524886248872488824889248902489124892248932489424895248962489724898248992490024901249022490324904249052490624907249082490924910249112491224913249142491524916249172491824919249202492124922249232492424925249262492724928249292493024931249322493324934249352493624937249382493924940249412494224943249442494524946249472494824949249502495124952249532495424955249562495724958249592496024961249622496324964249652496624967249682496924970249712497224973249742497524976249772497824979249802498124982249832498424985249862498724988249892499024991249922499324994249952499624997249982499925000250012500225003250042500525006250072500825009250102501125012250132501425015250162501725018250192502025021250222502325024250252502625027250282502925030250312503225033250342503525036250372503825039250402504125042250432504425045250462504725048250492505025051250522505325054250552505625057250582505925060250612506225063250642506525066250672506825069250702507125072250732507425075250762507725078250792508025081250822508325084250852508625087250882508925090250912509225093250942509525096250972509825099251002510125102251032510425105251062510725108251092511025111251122511325114251152511625117251182511925120251212512225123251242512525126251272512825129251302513125132251332513425135251362513725138251392514025141251422514325144251452514625147251482514925150251512515225153251542515525156251572515825159251602516125162251632516425165251662516725168251692517025171251722517325174251752517625177251782517925180251812518225183251842518525186251872518825189251902519125192251932519425195251962519725198251992520025201252022520325204252052520625207252082520925210252112521225213252142521525216252172521825219252202522125222252232522425225252262522725228252292523025231252322523325234252352523625237252382523925240252412524225243252442524525246252472524825249252502525125252252532525425255252562525725258252592526025261252622526325264252652526625267252682526925270252712527225273252742527525276252772527825279252802528125282252832528425285252862528725288252892529025291252922529325294252952529625297252982529925300253012530225303253042530525306253072530825309253102531125312253132531425315253162531725318253192532025321253222532325324253252532625327253282532925330253312533225333253342533525336253372533825339253402534125342253432534425345253462534725348253492535025351253522535325354253552535625357253582535925360253612536225363253642536525366253672536825369253702537125372253732537425375253762537725378253792538025381253822538325384253852538625387253882538925390253912539225393253942539525396253972539825399254002540125402254032540425405254062540725408254092541025411254122541325414254152541625417254182541925420254212542225423254242542525426254272542825429254302543125432254332543425435254362543725438254392544025441254422544325444254452544625447254482544925450254512545225453254542545525456254572545825459254602546125462254632546425465254662546725468254692547025471254722547325474254752547625477254782547925480254812548225483254842548525486254872548825489254902549125492254932549425495254962549725498254992550025501255022550325504255052550625507255082550925510255112551225513255142551525516255172551825519255202552125522255232552425525255262552725528255292553025531255322553325534255352553625537255382553925540255412554225543255442554525546255472554825549255502555125552255532555425555255562555725558255592556025561255622556325564255652556625567255682556925570255712557225573255742557525576255772557825579255802558125582255832558425585255862558725588255892559025591255922559325594255952559625597255982559925600256012560225603256042560525606256072560825609256102561125612256132561425615256162561725618256192562025621256222562325624256252562625627256282562925630256312563225633256342563525636256372563825639256402564125642256432564425645256462564725648256492565025651256522565325654256552565625657256582565925660256612566225663256642566525666256672566825669256702567125672256732567425675256762567725678256792568025681256822568325684256852568625687256882568925690256912569225693256942569525696256972569825699257002570125702257032570425705257062570725708257092571025711257122571325714257152571625717257182571925720257212572225723257242572525726257272572825729257302573125732257332573425735257362573725738257392574025741257422574325744257452574625747257482574925750257512575225753257542575525756257572575825759257602576125762257632576425765257662576725768257692577025771257722577325774257752577625777257782577925780257812578225783257842578525786257872578825789257902579125792257932579425795257962579725798257992580025801258022580325804258052580625807258082580925810258112581225813258142581525816258172581825819258202582125822258232582425825258262582725828258292583025831258322583325834258352583625837258382583925840258412584225843258442584525846258472584825849258502585125852258532585425855258562585725858258592586025861258622586325864258652586625867258682586925870258712587225873258742587525876258772587825879258802588125882258832588425885258862588725888258892589025891258922589325894258952589625897258982589925900259012590225903259042590525906259072590825909259102591125912259132591425915259162591725918259192592025921259222592325924259252592625927259282592925930259312593225933259342593525936259372593825939259402594125942259432594425945259462594725948259492595025951259522595325954259552595625957259582595925960259612596225963259642596525966259672596825969259702597125972259732597425975259762597725978259792598025981259822598325984259852598625987259882598925990259912599225993259942599525996259972599825999260002600126002260032600426005260062600726008260092601026011260122601326014260152601626017260182601926020260212602226023260242602526026260272602826029260302603126032260332603426035260362603726038260392604026041260422604326044260452604626047260482604926050260512605226053260542605526056260572605826059260602606126062260632606426065260662606726068260692607026071260722607326074260752607626077260782607926080260812608226083260842608526086260872608826089260902609126092260932609426095260962609726098260992610026101261022610326104261052610626107261082610926110261112611226113261142611526116261172611826119261202612126122261232612426125261262612726128261292613026131261322613326134261352613626137261382613926140261412614226143261442614526146261472614826149261502615126152261532615426155261562615726158261592616026161261622616326164261652616626167261682616926170261712617226173261742617526176261772617826179261802618126182261832618426185261862618726188261892619026191261922619326194261952619626197261982619926200262012620226203262042620526206262072620826209262102621126212262132621426215262162621726218262192622026221262222622326224262252622626227262282622926230262312623226233262342623526236262372623826239262402624126242262432624426245262462624726248262492625026251262522625326254262552625626257262582625926260262612626226263262642626526266262672626826269262702627126272262732627426275262762627726278262792628026281262822628326284262852628626287262882628926290262912629226293262942629526296262972629826299263002630126302263032630426305263062630726308263092631026311263122631326314263152631626317263182631926320263212632226323263242632526326263272632826329263302633126332263332633426335263362633726338263392634026341263422634326344263452634626347263482634926350263512635226353263542635526356263572635826359263602636126362263632636426365263662636726368263692637026371263722637326374263752637626377263782637926380263812638226383263842638526386263872638826389263902639126392263932639426395263962639726398263992640026401264022640326404264052640626407264082640926410264112641226413264142641526416264172641826419264202642126422264232642426425264262642726428264292643026431264322643326434264352643626437264382643926440264412644226443264442644526446264472644826449264502645126452264532645426455264562645726458264592646026461264622646326464264652646626467264682646926470264712647226473264742647526476264772647826479264802648126482264832648426485264862648726488264892649026491264922649326494264952649626497264982649926500265012650226503265042650526506265072650826509265102651126512265132651426515265162651726518265192652026521265222652326524265252652626527265282652926530265312653226533265342653526536265372653826539265402654126542265432654426545265462654726548265492655026551265522655326554265552655626557265582655926560265612656226563265642656526566265672656826569265702657126572265732657426575265762657726578265792658026581265822658326584265852658626587265882658926590265912659226593265942659526596265972659826599266002660126602266032660426605266062660726608266092661026611266122661326614266152661626617266182661926620266212662226623266242662526626266272662826629266302663126632266332663426635266362663726638266392664026641266422664326644266452664626647266482664926650266512665226653266542665526656266572665826659266602666126662266632666426665266662666726668266692667026671266722667326674266752667626677266782667926680266812668226683266842668526686266872668826689266902669126692266932669426695266962669726698266992670026701267022670326704267052670626707267082670926710267112671226713267142671526716267172671826719267202672126722267232672426725267262672726728267292673026731267322673326734267352673626737267382673926740267412674226743267442674526746267472674826749267502675126752267532675426755267562675726758267592676026761267622676326764267652676626767267682676926770267712677226773267742677526776267772677826779267802678126782267832678426785267862678726788267892679026791267922679326794267952679626797267982679926800268012680226803268042680526806268072680826809268102681126812268132681426815268162681726818268192682026821268222682326824268252682626827268282682926830268312683226833268342683526836268372683826839268402684126842268432684426845268462684726848268492685026851268522685326854268552685626857268582685926860268612686226863268642686526866268672686826869268702687126872268732687426875268762687726878268792688026881268822688326884268852688626887268882688926890268912689226893268942689526896268972689826899269002690126902269032690426905269062690726908269092691026911269122691326914269152691626917269182691926920269212692226923269242692526926269272692826929269302693126932269332693426935269362693726938269392694026941269422694326944269452694626947269482694926950269512695226953269542695526956269572695826959269602696126962269632696426965269662696726968269692697026971269722697326974269752697626977269782697926980269812698226983269842698526986269872698826989269902699126992269932699426995269962699726998269992700027001270022700327004270052700627007270082700927010270112701227013270142701527016270172701827019270202702127022270232702427025270262702727028270292703027031270322703327034270352703627037270382703927040270412704227043270442704527046270472704827049270502705127052270532705427055270562705727058270592706027061270622706327064270652706627067270682706927070270712707227073270742707527076270772707827079270802708127082270832708427085270862708727088270892709027091270922709327094270952709627097270982709927100271012710227103271042710527106271072710827109271102711127112271132711427115271162711727118271192712027121271222712327124271252712627127271282712927130271312713227133271342713527136271372713827139271402714127142271432714427145271462714727148271492715027151271522715327154271552715627157271582715927160271612716227163271642716527166271672716827169271702717127172271732717427175271762717727178271792718027181271822718327184271852718627187271882718927190271912719227193271942719527196271972719827199272002720127202272032720427205272062720727208272092721027211272122721327214272152721627217272182721927220272212722227223272242722527226272272722827229272302723127232272332723427235272362723727238272392724027241272422724327244272452724627247272482724927250272512725227253272542725527256272572725827259272602726127262272632726427265272662726727268272692727027271272722727327274272752727627277272782727927280272812728227283272842728527286272872728827289272902729127292272932729427295272962729727298272992730027301273022730327304273052730627307273082730927310273112731227313273142731527316273172731827319273202732127322273232732427325273262732727328273292733027331273322733327334273352733627337273382733927340273412734227343273442734527346273472734827349273502735127352273532735427355273562735727358273592736027361273622736327364273652736627367273682736927370273712737227373273742737527376273772737827379273802738127382273832738427385273862738727388273892739027391273922739327394273952739627397273982739927400274012740227403274042740527406274072740827409274102741127412274132741427415274162741727418274192742027421274222742327424274252742627427274282742927430274312743227433274342743527436274372743827439274402744127442274432744427445274462744727448274492745027451274522745327454274552745627457274582745927460274612746227463274642746527466274672746827469274702747127472274732747427475274762747727478274792748027481274822748327484274852748627487274882748927490274912749227493274942749527496274972749827499275002750127502275032750427505275062750727508275092751027511275122751327514275152751627517275182751927520275212752227523275242752527526275272752827529275302753127532275332753427535275362753727538275392754027541275422754327544275452754627547275482754927550275512755227553275542755527556275572755827559275602756127562275632756427565275662756727568275692757027571275722757327574275752757627577275782757927580275812758227583275842758527586275872758827589275902759127592275932759427595275962759727598275992760027601276022760327604276052760627607276082760927610276112761227613276142761527616276172761827619276202762127622276232762427625276262762727628276292763027631276322763327634276352763627637276382763927640276412764227643276442764527646276472764827649276502765127652276532765427655276562765727658276592766027661276622766327664276652766627667276682766927670276712767227673276742767527676276772767827679276802768127682276832768427685276862768727688276892769027691276922769327694276952769627697276982769927700277012770227703277042770527706277072770827709277102771127712277132771427715277162771727718277192772027721277222772327724277252772627727277282772927730277312773227733277342773527736277372773827739277402774127742277432774427745277462774727748277492775027751277522775327754277552775627757277582775927760277612776227763277642776527766277672776827769277702777127772277732777427775277762777727778277792778027781277822778327784277852778627787277882778927790277912779227793277942779527796277972779827799278002780127802278032780427805278062780727808278092781027811278122781327814278152781627817278182781927820278212782227823278242782527826278272782827829278302783127832278332783427835278362783727838278392784027841278422784327844278452784627847278482784927850278512785227853278542785527856278572785827859278602786127862278632786427865278662786727868278692787027871278722787327874278752787627877278782787927880278812788227883278842788527886278872788827889278902789127892278932789427895278962789727898278992790027901279022790327904279052790627907279082790927910279112791227913279142791527916279172791827919279202792127922279232792427925279262792727928279292793027931279322793327934279352793627937279382793927940279412794227943279442794527946279472794827949279502795127952279532795427955279562795727958279592796027961279622796327964279652796627967279682796927970279712797227973279742797527976279772797827979279802798127982279832798427985279862798727988279892799027991279922799327994279952799627997279982799928000280012800228003280042800528006280072800828009280102801128012280132801428015280162801728018280192802028021280222802328024280252802628027280282802928030280312803228033280342803528036280372803828039280402804128042280432804428045280462804728048280492805028051280522805328054280552805628057280582805928060280612806228063280642806528066280672806828069280702807128072280732807428075280762807728078280792808028081280822808328084280852808628087280882808928090280912809228093280942809528096280972809828099281002810128102281032810428105281062810728108281092811028111281122811328114281152811628117281182811928120281212812228123281242812528126281272812828129281302813128132281332813428135281362813728138281392814028141281422814328144281452814628147281482814928150281512815228153281542815528156281572815828159281602816128162281632816428165281662816728168281692817028171281722817328174281752817628177281782817928180281812818228183281842818528186281872818828189281902819128192281932819428195281962819728198281992820028201282022820328204282052820628207282082820928210282112821228213282142821528216282172821828219282202822128222282232822428225282262822728228282292823028231282322823328234282352823628237282382823928240282412824228243282442824528246282472824828249282502825128252282532825428255282562825728258282592826028261282622826328264282652826628267282682826928270282712827228273282742827528276282772827828279282802828128282282832828428285282862828728288282892829028291282922829328294282952829628297282982829928300283012830228303283042830528306283072830828309283102831128312283132831428315283162831728318283192832028321283222832328324283252832628327283282832928330283312833228333283342833528336283372833828339283402834128342283432834428345283462834728348283492835028351283522835328354283552835628357283582835928360283612836228363283642836528366283672836828369283702837128372283732837428375283762837728378283792838028381283822838328384283852838628387283882838928390283912839228393283942839528396283972839828399284002840128402284032840428405284062840728408284092841028411284122841328414284152841628417284182841928420284212842228423284242842528426284272842828429284302843128432284332843428435284362843728438284392844028441284422844328444284452844628447284482844928450284512845228453284542845528456284572845828459284602846128462284632846428465284662846728468284692847028471284722847328474284752847628477284782847928480284812848228483284842848528486284872848828489284902849128492284932849428495284962849728498284992850028501285022850328504285052850628507285082850928510285112851228513285142851528516285172851828519285202852128522285232852428525285262852728528285292853028531285322853328534285352853628537285382853928540285412854228543285442854528546285472854828549285502855128552285532855428555285562855728558285592856028561285622856328564285652856628567285682856928570285712857228573285742857528576285772857828579285802858128582285832858428585285862858728588285892859028591285922859328594285952859628597285982859928600286012860228603286042860528606286072860828609286102861128612286132861428615286162861728618286192862028621286222862328624286252862628627286282862928630286312863228633286342863528636286372863828639286402864128642286432864428645286462864728648286492865028651286522865328654286552865628657286582865928660286612866228663286642866528666286672866828669286702867128672286732867428675286762867728678286792868028681286822868328684286852868628687286882868928690286912869228693286942869528696286972869828699287002870128702287032870428705287062870728708287092871028711287122871328714287152871628717287182871928720287212872228723287242872528726287272872828729287302873128732287332873428735287362873728738287392874028741287422874328744287452874628747287482874928750287512875228753287542875528756287572875828759287602876128762287632876428765287662876728768287692877028771287722877328774287752877628777287782877928780287812878228783287842878528786287872878828789287902879128792287932879428795287962879728798287992880028801288022880328804288052880628807288082880928810288112881228813288142881528816288172881828819288202882128822288232882428825288262882728828288292883028831288322883328834288352883628837288382883928840288412884228843288442884528846288472884828849288502885128852288532885428855288562885728858288592886028861288622886328864288652886628867288682886928870288712887228873288742887528876288772887828879288802888128882288832888428885288862888728888288892889028891288922889328894288952889628897288982889928900289012890228903289042890528906289072890828909289102891128912289132891428915289162891728918289192892028921289222892328924289252892628927289282892928930289312893228933289342893528936289372893828939289402894128942289432894428945289462894728948289492895028951289522895328954289552895628957289582895928960289612896228963289642896528966289672896828969289702897128972289732897428975289762897728978289792898028981289822898328984289852898628987289882898928990289912899228993289942899528996289972899828999290002900129002290032900429005290062900729008290092901029011290122901329014290152901629017290182901929020290212902229023290242902529026290272902829029290302903129032290332903429035290362903729038290392904029041290422904329044290452904629047290482904929050290512905229053290542905529056290572905829059290602906129062290632906429065290662906729068290692907029071290722907329074290752907629077290782907929080290812908229083290842908529086290872908829089290902909129092290932909429095290962909729098290992910029101291022910329104291052910629107291082910929110291112911229113291142911529116291172911829119291202912129122291232912429125291262912729128291292913029131291322913329134291352913629137291382913929140291412914229143291442914529146291472914829149291502915129152291532915429155291562915729158291592916029161291622916329164291652916629167291682916929170291712917229173291742917529176291772917829179291802918129182291832918429185291862918729188291892919029191291922919329194291952919629197291982919929200292012920229203292042920529206292072920829209292102921129212292132921429215292162921729218292192922029221292222922329224292252922629227292282922929230292312923229233292342923529236292372923829239292402924129242292432924429245292462924729248292492925029251292522925329254292552925629257292582925929260292612926229263292642926529266292672926829269292702927129272292732927429275292762927729278292792928029281292822928329284292852928629287292882928929290292912929229293292942929529296292972929829299293002930129302293032930429305293062930729308293092931029311293122931329314293152931629317293182931929320293212932229323293242932529326293272932829329293302933129332293332933429335293362933729338293392934029341293422934329344293452934629347293482934929350293512935229353293542935529356293572935829359293602936129362293632936429365293662936729368293692937029371293722937329374293752937629377293782937929380293812938229383293842938529386293872938829389293902939129392293932939429395293962939729398293992940029401294022940329404294052940629407294082940929410294112941229413294142941529416294172941829419294202942129422294232942429425294262942729428294292943029431294322943329434294352943629437294382943929440294412944229443294442944529446294472944829449294502945129452294532945429455294562945729458294592946029461294622946329464294652946629467294682946929470294712947229473294742947529476294772947829479294802948129482294832948429485294862948729488294892949029491294922949329494294952949629497294982949929500295012950229503295042950529506295072950829509295102951129512295132951429515295162951729518295192952029521295222952329524295252952629527295282952929530295312953229533295342953529536295372953829539295402954129542295432954429545295462954729548295492955029551295522955329554295552955629557295582955929560295612956229563295642956529566295672956829569295702957129572295732957429575295762957729578295792958029581295822958329584295852958629587295882958929590295912959229593295942959529596295972959829599296002960129602296032960429605296062960729608296092961029611296122961329614296152961629617296182961929620296212962229623296242962529626296272962829629296302963129632296332963429635296362963729638296392964029641296422964329644296452964629647296482964929650296512965229653296542965529656296572965829659296602966129662296632966429665296662966729668296692967029671296722967329674296752967629677296782967929680296812968229683296842968529686296872968829689296902969129692296932969429695296962969729698296992970029701297022970329704297052970629707297082970929710297112971229713297142971529716297172971829719297202972129722297232972429725297262972729728297292973029731297322973329734297352973629737297382973929740297412974229743297442974529746297472974829749297502975129752297532975429755297562975729758297592976029761297622976329764297652976629767297682976929770297712977229773297742977529776297772977829779297802978129782297832978429785297862978729788297892979029791297922979329794297952979629797297982979929800298012980229803298042980529806298072980829809298102981129812298132981429815298162981729818298192982029821298222982329824298252982629827298282982929830298312983229833298342983529836298372983829839298402984129842298432984429845298462984729848298492985029851298522985329854298552985629857298582985929860298612986229863298642986529866298672986829869298702987129872298732987429875298762987729878298792988029881298822988329884298852988629887298882988929890298912989229893298942989529896298972989829899299002990129902299032990429905299062990729908299092991029911299122991329914299152991629917299182991929920299212992229923299242992529926299272992829929299302993129932299332993429935299362993729938299392994029941299422994329944299452994629947299482994929950299512995229953299542995529956299572995829959299602996129962299632996429965299662996729968299692997029971299722997329974299752997629977299782997929980299812998229983299842998529986299872998829989299902999129992299932999429995299962999729998299993000030001300023000330004300053000630007300083000930010300113001230013300143001530016300173001830019300203002130022300233002430025300263002730028300293003030031300323003330034300353003630037300383003930040300413004230043300443004530046300473004830049300503005130052300533005430055300563005730058300593006030061300623006330064300653006630067300683006930070300713007230073300743007530076300773007830079300803008130082300833008430085300863008730088300893009030091300923009330094300953009630097300983009930100301013010230103301043010530106301073010830109301103011130112301133011430115301163011730118301193012030121301223012330124301253012630127301283012930130301313013230133301343013530136301373013830139301403014130142301433014430145301463014730148301493015030151301523015330154301553015630157301583015930160301613016230163301643016530166301673016830169301703017130172301733017430175301763017730178301793018030181301823018330184301853018630187301883018930190301913019230193301943019530196301973019830199302003020130202302033020430205302063020730208302093021030211302123021330214302153021630217302183021930220302213022230223302243022530226302273022830229302303023130232302333023430235302363023730238302393024030241302423024330244302453024630247302483024930250302513025230253302543025530256302573025830259302603026130262302633026430265302663026730268302693027030271302723027330274302753027630277302783027930280302813028230283302843028530286302873028830289302903029130292302933029430295302963029730298302993030030301303023030330304303053030630307303083030930310303113031230313303143031530316303173031830319303203032130322303233032430325303263032730328303293033030331303323033330334303353033630337303383033930340303413034230343303443034530346303473034830349303503035130352303533035430355303563035730358303593036030361303623036330364303653036630367303683036930370303713037230373303743037530376303773037830379303803038130382303833038430385303863038730388303893039030391303923039330394303953039630397303983039930400304013040230403304043040530406304073040830409304103041130412304133041430415304163041730418304193042030421304223042330424304253042630427304283042930430304313043230433304343043530436304373043830439304403044130442304433044430445304463044730448304493045030451304523045330454304553045630457304583045930460304613046230463304643046530466304673046830469304703047130472304733047430475304763047730478304793048030481304823048330484304853048630487304883048930490304913049230493304943049530496304973049830499305003050130502305033050430505305063050730508305093051030511305123051330514305153051630517305183051930520305213052230523305243052530526305273052830529305303053130532305333053430535305363053730538305393054030541305423054330544305453054630547305483054930550305513055230553305543055530556305573055830559305603056130562305633056430565305663056730568305693057030571305723057330574305753057630577305783057930580305813058230583305843058530586305873058830589305903059130592305933059430595305963059730598305993060030601306023060330604306053060630607306083060930610306113061230613306143061530616306173061830619306203062130622306233062430625306263062730628306293063030631306323063330634306353063630637306383063930640306413064230643306443064530646306473064830649306503065130652306533065430655306563065730658306593066030661306623066330664306653066630667306683066930670306713067230673306743067530676306773067830679306803068130682306833068430685306863068730688306893069030691306923069330694306953069630697306983069930700307013070230703307043070530706307073070830709307103071130712307133071430715307163071730718307193072030721307223072330724307253072630727307283072930730307313073230733307343073530736307373073830739307403074130742307433074430745307463074730748307493075030751307523075330754307553075630757307583075930760307613076230763307643076530766307673076830769307703077130772307733077430775307763077730778307793078030781307823078330784307853078630787307883078930790307913079230793307943079530796307973079830799308003080130802308033080430805308063080730808308093081030811308123081330814308153081630817308183081930820308213082230823308243082530826308273082830829308303083130832308333083430835308363083730838308393084030841308423084330844308453084630847308483084930850308513085230853308543085530856308573085830859308603086130862308633086430865308663086730868308693087030871308723087330874308753087630877308783087930880308813088230883308843088530886308873088830889308903089130892308933089430895308963089730898308993090030901309023090330904309053090630907309083090930910309113091230913309143091530916309173091830919309203092130922309233092430925309263092730928309293093030931309323093330934309353093630937309383093930940309413094230943309443094530946309473094830949309503095130952309533095430955309563095730958309593096030961309623096330964309653096630967309683096930970309713097230973309743097530976309773097830979309803098130982309833098430985309863098730988309893099030991309923099330994309953099630997309983099931000310013100231003310043100531006310073100831009310103101131012310133101431015310163101731018310193102031021310223102331024310253102631027310283102931030310313103231033310343103531036310373103831039310403104131042310433104431045310463104731048310493105031051310523105331054310553105631057310583105931060310613106231063310643106531066310673106831069310703107131072310733107431075310763107731078310793108031081310823108331084310853108631087310883108931090310913109231093310943109531096310973109831099311003110131102311033110431105311063110731108311093111031111311123111331114311153111631117311183111931120311213112231123311243112531126311273112831129311303113131132311333113431135311363113731138311393114031141311423114331144311453114631147311483114931150311513115231153311543115531156311573115831159311603116131162311633116431165311663116731168311693117031171311723117331174311753117631177311783117931180311813118231183311843118531186311873118831189311903119131192311933119431195311963119731198311993120031201312023120331204312053120631207312083120931210312113121231213312143121531216312173121831219312203122131222312233122431225312263122731228312293123031231312323123331234312353123631237312383123931240312413124231243312443124531246312473124831249312503125131252312533125431255312563125731258312593126031261312623126331264312653126631267312683126931270312713127231273312743127531276312773127831279312803128131282312833128431285312863128731288312893129031291312923129331294312953129631297312983129931300313013130231303313043130531306313073130831309313103131131312313133131431315313163131731318313193132031321313223132331324313253132631327313283132931330313313133231333313343133531336313373133831339313403134131342313433134431345313463134731348313493135031351313523135331354313553135631357313583135931360313613136231363313643136531366313673136831369313703137131372313733137431375313763137731378313793138031381313823138331384313853138631387313883138931390313913139231393313943139531396313973139831399314003140131402314033140431405314063140731408314093141031411314123141331414314153141631417314183141931420314213142231423314243142531426314273142831429314303143131432314333143431435314363143731438314393144031441314423144331444314453144631447314483144931450314513145231453314543145531456314573145831459314603146131462314633146431465314663146731468314693147031471314723147331474314753147631477314783147931480314813148231483314843148531486314873148831489314903149131492314933149431495314963149731498314993150031501315023150331504315053150631507315083150931510315113151231513315143151531516315173151831519315203152131522315233152431525315263152731528315293153031531315323153331534315353153631537315383153931540315413154231543315443154531546315473154831549315503155131552315533155431555315563155731558315593156031561315623156331564315653156631567315683156931570315713157231573315743157531576315773157831579315803158131582315833158431585315863158731588315893159031591315923159331594315953159631597315983159931600316013160231603316043160531606316073160831609316103161131612316133161431615316163161731618316193162031621316223162331624316253162631627316283162931630316313163231633316343163531636316373163831639316403164131642316433164431645316463164731648316493165031651316523165331654316553165631657316583165931660316613166231663316643166531666316673166831669316703167131672316733167431675316763167731678316793168031681316823168331684316853168631687316883168931690316913169231693316943169531696316973169831699317003170131702317033170431705317063170731708317093171031711317123171331714317153171631717317183171931720317213172231723317243172531726317273172831729317303173131732317333173431735317363173731738317393174031741317423174331744317453174631747317483174931750317513175231753317543175531756317573175831759317603176131762317633176431765317663176731768317693177031771317723177331774317753177631777317783177931780317813178231783317843178531786317873178831789317903179131792317933179431795317963179731798317993180031801318023180331804318053180631807318083180931810318113181231813318143181531816318173181831819318203182131822318233182431825318263182731828318293183031831318323183331834318353183631837318383183931840318413184231843318443184531846318473184831849318503185131852318533185431855318563185731858318593186031861318623186331864318653186631867318683186931870318713187231873318743187531876318773187831879318803188131882318833188431885318863188731888318893189031891318923189331894318953189631897318983189931900319013190231903319043190531906319073190831909319103191131912319133191431915319163191731918319193192031921319223192331924319253192631927319283192931930319313193231933319343193531936319373193831939319403194131942319433194431945319463194731948319493195031951319523195331954319553195631957319583195931960319613196231963319643196531966319673196831969319703197131972319733197431975319763197731978319793198031981319823198331984319853198631987319883198931990319913199231993319943199531996319973199831999320003200132002320033200432005320063200732008320093201032011320123201332014320153201632017320183201932020320213202232023320243202532026320273202832029320303203132032320333203432035320363203732038320393204032041320423204332044320453204632047320483204932050320513205232053320543205532056320573205832059320603206132062320633206432065320663206732068320693207032071320723207332074320753207632077320783207932080320813208232083320843208532086320873208832089320903209132092320933209432095320963209732098320993210032101321023210332104321053210632107321083210932110321113211232113321143211532116321173211832119321203212132122321233212432125321263212732128321293213032131321323213332134321353213632137321383213932140321413214232143321443214532146321473214832149321503215132152321533215432155321563215732158321593216032161321623216332164321653216632167321683216932170321713217232173321743217532176321773217832179321803218132182321833218432185321863218732188321893219032191321923219332194321953219632197321983219932200322013220232203322043220532206322073220832209322103221132212322133221432215322163221732218322193222032221322223222332224322253222632227322283222932230322313223232233322343223532236322373223832239322403224132242322433224432245322463224732248322493225032251322523225332254322553225632257322583225932260322613226232263322643226532266322673226832269322703227132272322733227432275322763227732278322793228032281322823228332284322853228632287322883228932290322913229232293322943229532296322973229832299323003230132302323033230432305323063230732308323093231032311323123231332314323153231632317323183231932320323213232232323323243232532326323273232832329323303233132332323333233432335323363233732338323393234032341323423234332344323453234632347323483234932350323513235232353323543235532356323573235832359323603236132362323633236432365323663236732368323693237032371323723237332374323753237632377323783237932380323813238232383323843238532386323873238832389323903239132392323933239432395323963239732398323993240032401324023240332404324053240632407324083240932410324113241232413324143241532416324173241832419324203242132422324233242432425324263242732428324293243032431324323243332434324353243632437324383243932440324413244232443324443244532446324473244832449324503245132452324533245432455324563245732458324593246032461324623246332464324653246632467324683246932470324713247232473324743247532476324773247832479324803248132482324833248432485324863248732488324893249032491324923249332494324953249632497324983249932500325013250232503325043250532506325073250832509325103251132512325133251432515325163251732518325193252032521325223252332524325253252632527325283252932530325313253232533325343253532536325373253832539325403254132542325433254432545325463254732548325493255032551325523255332554325553255632557325583255932560325613256232563325643256532566325673256832569325703257132572325733257432575325763257732578325793258032581325823258332584325853258632587325883258932590325913259232593325943259532596325973259832599326003260132602326033260432605326063260732608326093261032611326123261332614326153261632617326183261932620326213262232623326243262532626326273262832629326303263132632326333263432635326363263732638326393264032641326423264332644326453264632647326483264932650326513265232653326543265532656326573265832659326603266132662326633266432665326663266732668326693267032671326723267332674326753267632677326783267932680326813268232683326843268532686326873268832689326903269132692326933269432695326963269732698326993270032701327023270332704327053270632707327083270932710327113271232713327143271532716327173271832719327203272132722327233272432725327263272732728327293273032731327323273332734327353273632737327383273932740327413274232743327443274532746327473274832749327503275132752327533275432755327563275732758327593276032761327623276332764327653276632767327683276932770327713277232773327743277532776327773277832779327803278132782327833278432785327863278732788327893279032791327923279332794327953279632797327983279932800328013280232803328043280532806328073280832809328103281132812328133281432815328163281732818328193282032821328223282332824328253282632827328283282932830328313283232833328343283532836328373283832839328403284132842328433284432845328463284732848328493285032851328523285332854328553285632857328583285932860328613286232863328643286532866328673286832869328703287132872328733287432875328763287732878328793288032881328823288332884328853288632887328883288932890328913289232893328943289532896328973289832899329003290132902329033290432905329063290732908329093291032911329123291332914329153291632917329183291932920329213292232923329243292532926329273292832929329303293132932329333293432935329363293732938329393294032941329423294332944329453294632947329483294932950329513295232953329543295532956329573295832959329603296132962329633296432965329663296732968329693297032971329723297332974329753297632977329783297932980329813298232983329843298532986329873298832989329903299132992329933299432995329963299732998329993300033001330023300333004330053300633007330083300933010330113301233013330143301533016330173301833019330203302133022330233302433025330263302733028330293303033031330323303333034330353303633037330383303933040330413304233043330443304533046330473304833049330503305133052330533305433055330563305733058330593306033061330623306333064330653306633067330683306933070330713307233073330743307533076330773307833079330803308133082330833308433085330863308733088330893309033091330923309333094330953309633097330983309933100331013310233103331043310533106331073310833109331103311133112331133311433115331163311733118331193312033121331223312333124331253312633127331283312933130331313313233133331343313533136331373313833139331403314133142331433314433145331463314733148331493315033151331523315333154331553315633157331583315933160331613316233163331643316533166331673316833169331703317133172331733317433175331763317733178331793318033181331823318333184331853318633187331883318933190331913319233193331943319533196331973319833199332003320133202332033320433205332063320733208332093321033211332123321333214332153321633217332183321933220332213322233223332243322533226332273322833229332303323133232332333323433235332363323733238332393324033241332423324333244332453324633247332483324933250332513325233253332543325533256332573325833259332603326133262332633326433265332663326733268332693327033271332723327333274332753327633277332783327933280332813328233283332843328533286332873328833289332903329133292332933329433295332963329733298332993330033301333023330333304333053330633307333083330933310333113331233313333143331533316333173331833319333203332133322333233332433325333263332733328333293333033331333323333333334333353333633337333383333933340333413334233343333443334533346333473334833349333503335133352333533335433355333563335733358333593336033361333623336333364333653336633367333683336933370333713337233373333743337533376333773337833379333803338133382333833338433385333863338733388333893339033391333923339333394333953339633397333983339933400334013340233403334043340533406334073340833409334103341133412334133341433415334163341733418334193342033421334223342333424334253342633427334283342933430334313343233433334343343533436334373343833439334403344133442334433344433445334463344733448334493345033451334523345333454334553345633457334583345933460334613346233463334643346533466334673346833469334703347133472334733347433475334763347733478334793348033481334823348333484334853348633487334883348933490334913349233493334943349533496334973349833499335003350133502335033350433505335063350733508335093351033511335123351333514335153351633517335183351933520335213352233523335243352533526335273352833529335303353133532335333353433535335363353733538335393354033541335423354333544335453354633547335483354933550335513355233553335543355533556335573355833559335603356133562335633356433565335663356733568335693357033571335723357333574335753357633577335783357933580335813358233583335843358533586335873358833589335903359133592335933359433595335963359733598335993360033601336023360333604336053360633607336083360933610336113361233613336143361533616336173361833619336203362133622336233362433625336263362733628336293363033631336323363333634336353363633637336383363933640336413364233643336443364533646336473364833649336503365133652336533365433655336563365733658336593366033661336623366333664336653366633667336683366933670336713367233673336743367533676336773367833679336803368133682336833368433685336863368733688336893369033691336923369333694336953369633697336983369933700337013370233703337043370533706337073370833709337103371133712337133371433715337163371733718337193372033721337223372333724337253372633727337283372933730337313373233733337343373533736337373373833739337403374133742337433374433745337463374733748337493375033751337523375333754337553375633757337583375933760337613376233763337643376533766337673376833769337703377133772337733377433775337763377733778337793378033781337823378333784337853378633787337883378933790337913379233793337943379533796337973379833799338003380133802338033380433805338063380733808338093381033811338123381333814338153381633817338183381933820338213382233823338243382533826338273382833829338303383133832338333383433835338363383733838338393384033841338423384333844338453384633847338483384933850338513385233853338543385533856338573385833859338603386133862338633386433865338663386733868338693387033871338723387333874338753387633877338783387933880338813388233883338843388533886338873388833889338903389133892338933389433895338963389733898338993390033901339023390333904339053390633907339083390933910339113391233913339143391533916339173391833919339203392133922339233392433925339263392733928339293393033931339323393333934339353393633937339383393933940339413394233943339443394533946339473394833949339503395133952339533395433955339563395733958339593396033961339623396333964339653396633967339683396933970339713397233973339743397533976339773397833979339803398133982339833398433985339863398733988339893399033991339923399333994339953399633997339983399934000340013400234003340043400534006340073400834009340103401134012340133401434015340163401734018340193402034021340223402334024340253402634027340283402934030340313403234033340343403534036340373403834039340403404134042340433404434045340463404734048340493405034051340523405334054340553405634057340583405934060340613406234063340643406534066340673406834069340703407134072340733407434075340763407734078340793408034081340823408334084340853408634087340883408934090340913409234093340943409534096340973409834099341003410134102341033410434105341063410734108341093411034111341123411334114341153411634117341183411934120341213412234123341243412534126341273412834129341303413134132341333413434135341363413734138341393414034141341423414334144341453414634147341483414934150341513415234153341543415534156341573415834159341603416134162341633416434165341663416734168341693417034171341723417334174341753417634177341783417934180341813418234183341843418534186341873418834189341903419134192341933419434195341963419734198341993420034201342023420334204342053420634207342083420934210342113421234213342143421534216342173421834219342203422134222342233422434225342263422734228342293423034231342323423334234342353423634237342383423934240342413424234243342443424534246342473424834249342503425134252342533425434255342563425734258342593426034261342623426334264342653426634267342683426934270342713427234273342743427534276342773427834279342803428134282342833428434285342863428734288342893429034291342923429334294342953429634297342983429934300343013430234303343043430534306343073430834309343103431134312343133431434315343163431734318343193432034321343223432334324343253432634327343283432934330343313433234333343343433534336343373433834339343403434134342343433434434345343463434734348343493435034351343523435334354343553435634357343583435934360343613436234363343643436534366343673436834369343703437134372343733437434375343763437734378343793438034381343823438334384343853438634387343883438934390343913439234393343943439534396343973439834399344003440134402344033440434405344063440734408344093441034411344123441334414344153441634417344183441934420344213442234423344243442534426344273442834429344303443134432344333443434435344363443734438344393444034441344423444334444344453444634447344483444934450344513445234453344543445534456344573445834459344603446134462344633446434465344663446734468344693447034471344723447334474344753447634477344783447934480344813448234483344843448534486344873448834489344903449134492344933449434495344963449734498344993450034501345023450334504345053450634507345083450934510345113451234513345143451534516345173451834519345203452134522345233452434525345263452734528345293453034531345323453334534345353453634537345383453934540345413454234543345443454534546345473454834549345503455134552345533455434555345563455734558345593456034561345623456334564345653456634567345683456934570345713457234573345743457534576345773457834579345803458134582345833458434585345863458734588345893459034591345923459334594345953459634597345983459934600346013460234603346043460534606346073460834609346103461134612346133461434615346163461734618346193462034621346223462334624346253462634627346283462934630346313463234633346343463534636346373463834639346403464134642346433464434645346463464734648346493465034651346523465334654346553465634657346583465934660346613466234663346643466534666346673466834669346703467134672346733467434675346763467734678346793468034681346823468334684346853468634687346883468934690346913469234693346943469534696346973469834699347003470134702347033470434705347063470734708347093471034711347123471334714347153471634717347183471934720347213472234723347243472534726347273472834729347303473134732347333473434735347363473734738347393474034741347423474334744347453474634747347483474934750347513475234753347543475534756347573475834759347603476134762347633476434765347663476734768347693477034771347723477334774347753477634777347783477934780347813478234783347843478534786347873478834789347903479134792347933479434795347963479734798347993480034801348023480334804348053480634807348083480934810348113481234813348143481534816348173481834819348203482134822348233482434825348263482734828348293483034831348323483334834348353483634837348383483934840348413484234843348443484534846348473484834849348503485134852348533485434855348563485734858348593486034861348623486334864348653486634867348683486934870348713487234873348743487534876348773487834879348803488134882348833488434885348863488734888348893489034891348923489334894348953489634897348983489934900349013490234903349043490534906349073490834909349103491134912349133491434915349163491734918349193492034921349223492334924349253492634927349283492934930349313493234933349343493534936349373493834939349403494134942349433494434945349463494734948349493495034951349523495334954349553495634957349583495934960349613496234963349643496534966349673496834969349703497134972349733497434975349763497734978349793498034981349823498334984349853498634987349883498934990349913499234993349943499534996349973499834999350003500135002350033500435005350063500735008350093501035011350123501335014350153501635017350183501935020350213502235023350243502535026350273502835029350303503135032350333503435035350363503735038350393504035041350423504335044350453504635047350483504935050350513505235053350543505535056350573505835059350603506135062350633506435065350663506735068350693507035071350723507335074350753507635077350783507935080350813508235083350843508535086350873508835089350903509135092350933509435095350963509735098350993510035101351023510335104351053510635107351083510935110351113511235113351143511535116351173511835119351203512135122351233512435125351263512735128351293513035131351323513335134351353513635137351383513935140351413514235143351443514535146351473514835149351503515135152351533515435155351563515735158351593516035161351623516335164351653516635167351683516935170351713517235173351743517535176351773517835179351803518135182351833518435185351863518735188351893519035191351923519335194351953519635197351983519935200352013520235203352043520535206352073520835209352103521135212352133521435215352163521735218352193522035221352223522335224352253522635227352283522935230352313523235233352343523535236352373523835239352403524135242352433524435245352463524735248352493525035251352523525335254352553525635257352583525935260352613526235263352643526535266352673526835269352703527135272352733527435275352763527735278352793528035281352823528335284352853528635287352883528935290352913529235293352943529535296352973529835299353003530135302353033530435305353063530735308353093531035311353123531335314353153531635317353183531935320353213532235323353243532535326353273532835329353303533135332353333533435335353363533735338353393534035341353423534335344353453534635347353483534935350353513535235353353543535535356353573535835359353603536135362353633536435365353663536735368353693537035371353723537335374353753537635377353783537935380353813538235383353843538535386353873538835389353903539135392353933539435395353963539735398353993540035401354023540335404354053540635407354083540935410354113541235413354143541535416354173541835419354203542135422354233542435425354263542735428354293543035431354323543335434354353543635437354383543935440354413544235443354443544535446354473544835449354503545135452354533545435455354563545735458354593546035461354623546335464354653546635467354683546935470354713547235473354743547535476354773547835479354803548135482354833548435485354863548735488354893549035491354923549335494354953549635497354983549935500355013550235503355043550535506355073550835509355103551135512355133551435515355163551735518355193552035521355223552335524355253552635527355283552935530355313553235533355343553535536355373553835539355403554135542355433554435545355463554735548355493555035551355523555335554355553555635557355583555935560355613556235563355643556535566355673556835569355703557135572355733557435575355763557735578355793558035581355823558335584355853558635587355883558935590355913559235593355943559535596355973559835599356003560135602356033560435605356063560735608356093561035611356123561335614356153561635617356183561935620356213562235623356243562535626356273562835629356303563135632356333563435635356363563735638356393564035641356423564335644356453564635647356483564935650356513565235653356543565535656356573565835659356603566135662356633566435665356663566735668356693567035671356723567335674356753567635677356783567935680356813568235683356843568535686356873568835689356903569135692356933569435695356963569735698356993570035701357023570335704357053570635707357083570935710357113571235713357143571535716357173571835719357203572135722357233572435725357263572735728357293573035731357323573335734357353573635737357383573935740357413574235743357443574535746357473574835749357503575135752357533575435755357563575735758357593576035761357623576335764357653576635767357683576935770357713577235773357743577535776357773577835779357803578135782357833578435785357863578735788357893579035791357923579335794357953579635797357983579935800358013580235803358043580535806358073580835809358103581135812358133581435815358163581735818358193582035821358223582335824358253582635827358283582935830358313583235833358343583535836358373583835839358403584135842358433584435845358463584735848358493585035851358523585335854358553585635857358583585935860358613586235863358643586535866358673586835869358703587135872358733587435875358763587735878358793588035881358823588335884358853588635887358883588935890358913589235893358943589535896358973589835899359003590135902359033590435905359063590735908359093591035911359123591335914359153591635917359183591935920359213592235923359243592535926359273592835929359303593135932359333593435935359363593735938359393594035941359423594335944359453594635947359483594935950359513595235953359543595535956359573595835959359603596135962359633596435965359663596735968359693597035971359723597335974359753597635977359783597935980359813598235983359843598535986359873598835989359903599135992359933599435995359963599735998359993600036001360023600336004360053600636007360083600936010360113601236013360143601536016360173601836019360203602136022360233602436025360263602736028360293603036031360323603336034360353603636037360383603936040360413604236043360443604536046360473604836049360503605136052360533605436055360563605736058360593606036061360623606336064360653606636067360683606936070360713607236073360743607536076360773607836079360803608136082360833608436085360863608736088360893609036091360923609336094360953609636097360983609936100361013610236103361043610536106361073610836109361103611136112361133611436115361163611736118361193612036121361223612336124361253612636127361283612936130361313613236133361343613536136361373613836139361403614136142361433614436145361463614736148361493615036151361523615336154361553615636157361583615936160361613616236163361643616536166361673616836169361703617136172361733617436175361763617736178361793618036181361823618336184361853618636187361883618936190361913619236193361943619536196361973619836199362003620136202362033620436205362063620736208362093621036211362123621336214362153621636217362183621936220362213622236223362243622536226362273622836229362303623136232362333623436235362363623736238362393624036241362423624336244362453624636247362483624936250362513625236253362543625536256362573625836259362603626136262362633626436265362663626736268362693627036271362723627336274362753627636277362783627936280362813628236283362843628536286362873628836289362903629136292362933629436295362963629736298362993630036301363023630336304363053630636307363083630936310363113631236313363143631536316363173631836319363203632136322363233632436325363263632736328363293633036331363323633336334363353633636337363383633936340363413634236343363443634536346363473634836349363503635136352363533635436355363563635736358363593636036361363623636336364363653636636367363683636936370363713637236373363743637536376363773637836379363803638136382363833638436385363863638736388363893639036391363923639336394363953639636397363983639936400364013640236403364043640536406364073640836409364103641136412364133641436415364163641736418364193642036421364223642336424364253642636427364283642936430364313643236433364343643536436364373643836439364403644136442364433644436445364463644736448364493645036451364523645336454364553645636457364583645936460364613646236463364643646536466364673646836469364703647136472364733647436475364763647736478364793648036481364823648336484364853648636487364883648936490364913649236493364943649536496364973649836499365003650136502365033650436505365063650736508365093651036511365123651336514365153651636517365183651936520365213652236523365243652536526365273652836529365303653136532365333653436535365363653736538365393654036541365423654336544365453654636547365483654936550365513655236553365543655536556365573655836559365603656136562365633656436565365663656736568365693657036571365723657336574365753657636577365783657936580365813658236583365843658536586365873658836589365903659136592365933659436595365963659736598365993660036601366023660336604366053660636607366083660936610366113661236613366143661536616366173661836619366203662136622366233662436625366263662736628366293663036631366323663336634366353663636637366383663936640366413664236643366443664536646366473664836649366503665136652366533665436655366563665736658366593666036661366623666336664366653666636667366683666936670366713667236673366743667536676366773667836679366803668136682366833668436685366863668736688366893669036691366923669336694366953669636697366983669936700367013670236703367043670536706367073670836709367103671136712367133671436715367163671736718367193672036721367223672336724367253672636727367283672936730367313673236733367343673536736367373673836739367403674136742367433674436745367463674736748367493675036751367523675336754367553675636757367583675936760367613676236763367643676536766367673676836769367703677136772367733677436775367763677736778367793678036781367823678336784367853678636787367883678936790367913679236793367943679536796367973679836799368003680136802368033680436805368063680736808368093681036811368123681336814368153681636817368183681936820368213682236823368243682536826368273682836829368303683136832368333683436835368363683736838368393684036841368423684336844368453684636847368483684936850368513685236853368543685536856368573685836859368603686136862368633686436865368663686736868368693687036871368723687336874368753687636877368783687936880368813688236883368843688536886368873688836889368903689136892368933689436895368963689736898368993690036901369023690336904369053690636907369083690936910369113691236913369143691536916369173691836919369203692136922369233692436925369263692736928369293693036931369323693336934369353693636937369383693936940369413694236943369443694536946369473694836949369503695136952369533695436955369563695736958369593696036961369623696336964369653696636967369683696936970369713697236973369743697536976369773697836979369803698136982369833698436985369863698736988369893699036991369923699336994369953699636997369983699937000370013700237003370043700537006370073700837009370103701137012370133701437015370163701737018370193702037021370223702337024370253702637027370283702937030370313703237033370343703537036370373703837039370403704137042370433704437045370463704737048370493705037051370523705337054370553705637057370583705937060370613706237063370643706537066370673706837069370703707137072370733707437075370763707737078370793708037081370823708337084370853708637087370883708937090370913709237093370943709537096370973709837099371003710137102371033710437105371063710737108371093711037111371123711337114371153711637117371183711937120371213712237123371243712537126371273712837129371303713137132371333713437135371363713737138371393714037141371423714337144371453714637147371483714937150371513715237153371543715537156371573715837159371603716137162371633716437165371663716737168371693717037171371723717337174371753717637177371783717937180371813718237183371843718537186371873718837189371903719137192371933719437195371963719737198371993720037201372023720337204372053720637207372083720937210372113721237213372143721537216372173721837219372203722137222372233722437225372263722737228372293723037231372323723337234372353723637237372383723937240372413724237243372443724537246372473724837249372503725137252372533725437255372563725737258372593726037261372623726337264372653726637267372683726937270372713727237273372743727537276372773727837279372803728137282372833728437285372863728737288372893729037291372923729337294372953729637297372983729937300373013730237303373043730537306373073730837309373103731137312373133731437315373163731737318373193732037321373223732337324373253732637327373283732937330373313733237333373343733537336373373733837339373403734137342373433734437345373463734737348373493735037351373523735337354373553735637357373583735937360373613736237363373643736537366373673736837369373703737137372373733737437375373763737737378373793738037381373823738337384373853738637387373883738937390373913739237393373943739537396373973739837399374003740137402374033740437405374063740737408374093741037411374123741337414374153741637417374183741937420374213742237423374243742537426374273742837429374303743137432374333743437435374363743737438374393744037441374423744337444374453744637447374483744937450374513745237453374543745537456374573745837459374603746137462374633746437465374663746737468374693747037471374723747337474374753747637477374783747937480374813748237483374843748537486374873748837489374903749137492374933749437495374963749737498374993750037501375023750337504375053750637507375083750937510375113751237513375143751537516375173751837519375203752137522375233752437525375263752737528375293753037531375323753337534375353753637537375383753937540375413754237543375443754537546375473754837549375503755137552375533755437555375563755737558375593756037561375623756337564375653756637567375683756937570375713757237573375743757537576375773757837579375803758137582375833758437585375863758737588375893759037591375923759337594375953759637597375983759937600376013760237603376043760537606376073760837609376103761137612376133761437615376163761737618
  1. (global["webpackJsonp"] = global["webpackJsonp"] || []).push([["common/vendor"],{
  2. /***/ 1:
  3. /*!*********************************************************!*\
  4. !*** ./node_modules/@dcloudio/uni-mp-weixin/dist/wx.js ***!
  5. \*********************************************************/
  6. /*! no static exports found */
  7. /***/ (function(module, exports, __webpack_require__) {
  8. "use strict";
  9. Object.defineProperty(exports, "__esModule", {
  10. value: true
  11. });
  12. exports.default = void 0;
  13. var objectKeys = ['qy', 'env', 'error', 'version', 'lanDebug', 'cloud', 'serviceMarket', 'router', 'worklet', '__webpack_require_UNI_MP_PLUGIN__'];
  14. var singlePageDisableKey = ['lanDebug', 'router', 'worklet'];
  15. var target = typeof globalThis !== 'undefined' ? globalThis : function () {
  16. return this;
  17. }();
  18. var key = ['w', 'x'].join('');
  19. var oldWx = target[key];
  20. var launchOption = oldWx.getLaunchOptionsSync ? oldWx.getLaunchOptionsSync() : null;
  21. function isWxKey(key) {
  22. if (launchOption && launchOption.scene === 1154 && singlePageDisableKey.includes(key)) {
  23. return false;
  24. }
  25. return objectKeys.indexOf(key) > -1 || typeof oldWx[key] === 'function';
  26. }
  27. function initWx() {
  28. var newWx = {};
  29. for (var _key in oldWx) {
  30. if (isWxKey(_key)) {
  31. // TODO wrapper function
  32. newWx[_key] = oldWx[_key];
  33. }
  34. }
  35. return newWx;
  36. }
  37. target[key] = initWx();
  38. if (!target[key].canIUse('getAppBaseInfo')) {
  39. target[key].getAppBaseInfo = target[key].getSystemInfoSync;
  40. }
  41. if (!target[key].canIUse('getWindowInfo')) {
  42. target[key].getWindowInfo = target[key].getSystemInfoSync;
  43. }
  44. if (!target[key].canIUse('getDeviceInfo')) {
  45. target[key].getDeviceInfo = target[key].getSystemInfoSync;
  46. }
  47. var _default = target[key];
  48. exports.default = _default;
  49. /***/ }),
  50. /***/ 10:
  51. /*!****************************************************************!*\
  52. !*** ./node_modules/@babel/runtime/helpers/nonIterableRest.js ***!
  53. \****************************************************************/
  54. /*! no static exports found */
  55. /***/ (function(module, exports) {
  56. function _nonIterableRest() {
  57. throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
  58. }
  59. module.exports = _nonIterableRest, module.exports.__esModule = true, module.exports["default"] = module.exports;
  60. /***/ }),
  61. /***/ 102:
  62. /*!****************************************************************!*\
  63. !*** /Users/chenpengming/代码/product_wx/static/mine/banner.png ***!
  64. \****************************************************************/
  65. /*! no static exports found */
  66. /***/ (function(module, exports, __webpack_require__) {
  67. module.exports = __webpack_require__.p + "static/mine/banner.png";
  68. /***/ }),
  69. /***/ 103:
  70. /*!**************************************************************!*\
  71. !*** /Users/chenpengming/代码/product_wx/static/mine/head.png ***!
  72. \**************************************************************/
  73. /*! no static exports found */
  74. /***/ (function(module, exports) {
  75. module.exports = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHgAAAB4CAYAAAA5ZDbSAAAAAXNSR0IArs4c6QAAGGZJREFUeF7tXQd4VEXXfs/2TSVi6L0GEBBRUBBRURH8FCygyG8XKSJSRBGlCoLwUSJSFJAiSpEi+IEIUoWAKNJEek1M6CSkbN/5n7mbhJTd7L279+7dqPM8S0J25pwz5525d2ZOGcLfoDB2NQaO6HrQuOqBoT5IUw/MXQXQRAIsEoRIMEQCiMrtbhaAbM+HsgF3NkiTAuY+DsIxaLXHAP1xIsos7eqh0tYBxhjBbm8IYm1BeACEVmCopEw/WBpAu8CwBYy2wWD4g4iYMryUoVoqAGaMRcPleAbM3RFgbQGKV0Yd/qiyywBtA7F10JqWl4YZHrYAM8Y0cNoeAWMvgqgzALM/9Yf4ewuIVoGxhdAZNxKRO8T8RbELO4CZLfM2aPQvgvA8GCqL6oXalQh/wYVvYKAFRMbDaotTkH/YAMyYrTEc7iEg6gpAF05KkiCLE0RLocUnRMZDEtopVlV1gJnDci9AQwB0BKC6PDJpmoGwFsw9jvQRSTLRDIiMagplVmsdaDEJwBMBSV56Gq2BDgOJTKfUEDnkADPGIuG0DQPwNgCTGp1WgacVYFOhM40h4vvu0JWQASzsX132bmDuiQAptG8NneIC4iQsxti7MJgWh2o/HRKAGWPl4LQtB9AmIMX8/Rr9DJ3xGSK6pHTXFAeYOayPAGwhQOWV7kzpos8uAvQi6U0blJRbMYAZYzrYbWOgwWAAGiU7UYppuwGaAJ1hGBE5leiHIgCzzMx4GHXfgaiVEkL/7WgylgS9qTMRXZa7b7IDzJilOpy0HkCC3ML+rekRTkKL9kSm03L2U1aAmd3eFOT+AUBFOYX8x9AipMLt7EiGqANy9Vk2gJnD0QZwrQFQRi7h/pF0iK6DaTqRXv+zHP2XBWDmtHUCY4vD0OIjh47UoMEtVc+TzvhdsMyDBpg5LPcBwjs33Mx5wepG7fY2QNue9PptwQgSFMC579yt/z6Wg4GgxLY3oKM2RMaDgXIIGGBmtdaCDklg+PcAI1Dti2rHLsJFrcgU2Oo6IIBZZmY5mPQ7ANQVJeO/lYLVwAnojPcGcrQpGWDGmBZO22YA9wUr9b/tJWiAsR3Qm+4nIpeEVtIN7MxhHQ/gPSlMQlnXZsnBmRN/4szxw/jrzEmkpZzFlYupsFpyYLV4LHUmcyRM5gjcWqESKlapgco16qBW/dtQo25DGE3hvFak8aQ3vi9Fn5JmMHNYHwWwNhzPlg/9thPb1q3A3p2b4XQ6pOggv65Ob8Cd97bD/R2fQaM77g6IhsKNuGPfY6Q38V2LqCIaYJaTUwUGzT4w3CqKcggqud1u/LJ1PdZ88wVSzpyQlWO12gno1L0nWrR9RFa6wRNjV+BgzSgiIkUMLVEAM8b0cNo2hZM999jBvfhq+jicO3lETD8DrlMroTFeePN91GnYNGAasjeU8D4WB7DL2htuzJBd0AAIupxOLJk9CeuXLwygdYBNiPBEtx54+pW+0Gi0ARKRuZkGfUhrmumPql+A2Y0bt8KsPwbQLf6IKf191o10TBn2Fo7/8bvSrLzS5+/lt0d9CnMED3NSu7BrsDjqU0zMlZIk8Q+w3TIXRK+q3R2+Ep44pCdSz8tqTZPcrWq162PwuM9RpqxK0TMFJSZ8QTpTz4ABZnZ7S5Cb+/Wq6pGRmXEdH739AtKSz/gBhIExj3M1E4YuQfgD/8ljxoQ/MlB+BV7Z7xgvxrNKzboYnrgI5si8YEXJ40SuBm7oNK2IDL/4Ilhi75jdsgdEd8klTSB07DYrPh70Ck4d8XEcyxg8EHrACwQwxrifej7++b8LNIURk0ubETg3/t9Gd9yDweM/h1ardhAG7SG9saVkgJnD2h6A6P1WIOCJaTN9zGDs3rKueNU8YAOYgWL4llRHGBBEeLjz83jxrQ+CJSdH+w6+9sY+ZzBzWLmZStXjyI3ffYOF08Z6ZmjuP54JJf2xKocWC9LIA7nPBxNwz4OPyU1eKr3tpDe19dbIq6ZybbxB2SGlSli0/uW0FAx5rRP4IzocSx7AUTGxGP/l94iNK6uymKwt6c3biwrhA2Ar96vix5KqlU8Gv44/ft+FPEWqJogvxvnvZqBVu/+g99BP1BbxB9KbeABfoVIMYGbPbgbS7lUz0m//L9sxaWhvQdBwBbioXKNnLEXN+repCTIDczUnQ+S+gkJ4AdjyOYjeUEtSfr489PXO+OtcbjBegZmilkw++RaQLaHpnfhg8gJ1RST6knTG13wCzBgzwWlLU9MFJ2nTWsz8+N18GcN1Bnt7ugyZOFdtK1Q6dMaKRJS/cCk0g5kt5yloNCvUHIaDX34MF5LPlgqAhX13AZN6/cbN8eHUEJ6RewPK7X6ajBEr874qDLDTugoMPOGJKmVv0mZMHfZWId6laQZzwUfNWCo4D6hWCN+RzvRkMYDZ9etlEGW+CMCglnDj33kNh/ftLjUAe1aBhZej9z78BHoOGaeWCjlfO7Is5SkuLp3/J38GM6flNTCao5Zkl9KSMej/vOzMwnmR5WWVrzcY8dm32xARFa2WKvnW43UymOcWAdi2GIw9p5ZUy+dNw+pFs4qxD+dHtGcC83PswpuRVweMxAP/6aKWKvlR3xLSGbsVBthh4Wn7Kqgl1cD/aw9+elW0lEaAGzS9C0Mnz1dLlZxvGulNQpoMYegxmy0BGqas70sJ3U0+fRxDe+SvC0rXO9jLi5h7fUxfsR1RMSrG4bmpARmNRz0Au6w94Ubx52OIxuB3X83EivmfeeUW7jPY12P6jXfHok171TYk/N3Riwymzz0AO9V9/47s261Ee28gNt4Qjc1cNkWW0gBa3v8o+g7jacBUKrnvYQ/Adus5EKqpIUp25g30fqo1mLt4Ls8wX0Dnq8vbQisyOhYzV+4AaVRyhmE4TwZTdco9nsxRy7iwZ9sGTBs9IOjHs8lkQmRUFK5eKdEHTZEx7A1gzmj0zGWoWa+RIjxFEGXQGSOI2bKaQKOTLWWACMaFqiz87GNsXPV10AC/8uqrqFChAiZOmACnU5GENSV2zRvI3Xu/h0efeVGqSuSr73Y2JbXPnz944ymcP3UsKIDvaN4cPXv1Emhs3boFi7/+Rj4liaTkDWAeBsPdbFUr/FyaOWzvA+xjNYSwWS3o8Z+7BJuvD4T9OtGVKVMGI0aNQkRERD6JL2bNwt693KQduuIN4Lhby+PTpTwQU61CQ4g5bfPA2MtqiMAd2Lk7rK8iZovUf+BANGjQoBAJq9WKsWPG4NJFfrQemuJL1unLtyNGLXcebh9mDvXcc35cuQiLpvs+mPcH8EMPP4QuXZ/1imBycjI+GTcODkdgkYaBDAtv8r4zbhaatlAtRed6/ojeBTBVYiXnThqOretKMD8zQG+KQLfnunrdCrdo0QI6vd4nFidPnlRsFtvdWqxYthR2C7+hx1OE3XARH5nn3hiEx55VKzCEdvMZzFfQTQIZscG2KfGAI5e4KSISiYlTg2Ule3sXI7zzzhDk3Ch5W6ay+fAgMaf1DBhqyK4BEQR7PN4C1pyS82ObTGYkTlNxJVpCP/q/PQCWnJsz2FtVbvznTgCqFMJZYg7LVTUiBzOuXUHfLl59tQvpgh9gJE6bpop+/DHt368fLBZLidUiIqPx+ZrCTgz+6Mr4/SX+iOYShjy1/tGDezF2gP9DgNIOMAdrxsqfER2rSvStVTWAf96wGl98MrTYYK1cuTLaPfQQqlarBg0RUtPS0OKuu/zuh2Uc9aJJ/bpnDypWrAg3Y0g+fx4//fQTUv/6q1j7UdOXgGcKUKFwgNV5RHszEba9/3507doF9oxLsGelI6pCTehMecHWxS02Kigsd7l8M4rRac1GVtppGKLjoI8th2VLl2H7tsJRP28Nn4wWbXksX6gLu6baImvOf4dh2w/53p2oXr063n3vXWSmHIE5riKMsfFFgsx4fK+XfUjIdZbLsMB2iO9/bRmXYbmehugqDTBxwkScPXvT9ff5XoPRoYsKZ0meRZaVX8XWMNR64tH6B3/lyfI8ZcjQoShrdMJcpgL0ET4c1sJoEnvTlyMnE5brF3DVpsX4cTcPcPg+mO+HVSgHVTvoKGhkMBgMwko54+whxNUKo2w2xRDxP8Kunz6A2BqN0a9v3/xTNPWC0zwHHT8CCHkyqL7P3IeM61cFFVaqVEkwGPDRb47z5/fnX8kqzJR8lnl9GDViBFJTU4W/N2p+D4ZMUMUjeb0qxgb+znr5kaZwuz1pF7UaDSYnJoJvicK5CBYjEesAm80GvkfmgXS88KRqY79QISKIaCFfRQ8FaGwoFZt9IwO9nix8IctLr7yMVq1alyxGWExe/0Ls3LEDCxfcjDS8Jb48EpeoYTakodzg3xUaTUjP0i6lJmPQC4WjGCIjIzF85Ehw+25pLunp6Rg1Yjhycm6ecPHEp7P/92vou+V2P6uKy87Z44cxrDe/JrhwiY+Px0svv4y69eoV+oI/6jQavi9RPzdHnmAemQo71J04fhzz583DFS9+YQs2HIRGG+IseYLLjicmOKROd0f27xFSI3krPMFKnTp1hJMs/ntKcjIe79QJdeuGV+7xEydO4PvVq1GlalXBI4WfZHHzpC/vlM9X7w51vJLH6Y4rOdRus/t2bcXkD98U/ch69rnn8GC7dqLrh6Li5k2bsHTJEtGsuOsOd+EJWclzmxUADrHjO897xfNfiS2NGjVCv/79xVYPSb1piYn4448/RPOauGAtKlQJoVW2iON7T1DoQle2r1+F2RM/FK0cnU6HKVMTYTCqFrpcSFa7zY5BAwfAbreL7sPHs1ehaq3CawvRjQOpqEEv0uaFroQ4+GzTmqWYnzhakth9+/VD48aqWGSKyXno0CF89qk0J4SQR/4XDD7zPKatqWChuXPwx5VfYdF0fvWD+NKwYUO8PcB7BIR4KvLUTJwyFX/+yY/wxZfhny5C3UbNxDcIqia7QHqzcH9kgQj/0AWgrft2PhbPmii5CwMHDUL9BHUvNT169CimTJIeVPbh1AWo3/hOyX0OqIHXAHC75TVQaFI4/G/JXCydPVmy7DVq1sSQ999XLVcl3wJxf2u+JZJaeEA4DwwPSSH2OumKpnAIYRKW7xfPwbI5UwLq65NPPYVHO3QIqG2wjdb/8ANWrbxpw5ZCb+jkeWjQtIWUJoHWtcNir0QxMYIlR5U0St8vno1lcwJzheWHH33efBNNmobWrHjwwAHMmD7dd5iNHzhCBrCvNErCQitE59LBzGAup9FoxHtDhqBylSqBjnJJ7VJSUjBh/HhwK1Gg5YMpC5DQJATvYH7+bIxYlidn4RkcolSGa5d+iSVfSF+oFFRudHQ0er/5JmrXrh2ozkW1O3XyJGbMmIGszExR9X1VGpb4FerddkdQNEQ0LjmVoTCLnba5YEzRWIsfli/ANzMniJC35CparRbdX3gBrVv7MTMGyCkpKQmLFi6EyyXpukCv3EZOX4zaCQoHkPhLRioAHIJ0whtWfY2vPpMvYpV7Y3bq1EmI8JejZGdlYc2aNdi6ZYsc5AQaY2YtR/W6haMgZSPuISQunbBQ02HldzUo5ue5/cdVmD1B/FGlGEVwb5CHHn5Y+JjNgV0wyaMUftq4UfjwEFQ5y0ezvhUuv1SwrCe9qdj2QpWU/vt3b8OkD/oo0td6dWrh9W6dYYwpC0P0LdD4uRXF7XLCnnkNthtXMXfxdzh2Upl7mZQ/yZKQ0t8zi207AVbYr0YmSE7+eQCj3npeJmqFydSsXgWvPHEz5klrMEFrMHs+Rs/MdtkscNnzPjdn6rw123DmnKg7HyXLPnza16jb8HbJ7cQ1oCTSG70uRHzfuuK0PgGG1eIYSKvFbwp9/3VlkoQVBViKZEoC/PGcVahaUyFrEqET6UxrvPW15IuxHLZfASb75u3Khb8woLsynrrhCvDkrzcgvkJlKeNNXF2GfWQw+dx/lQwws98Np3C1nazOUJkZ6ejzlDJbm2pVK6HH04+AuaSlbiCtHrNXbMT55OLBY+I0XXKtmSt3IipWdodCBrhbkz5ily/ufoFjdss8EMkaWOOw2/FqB2VMZ+XKl8fojz6CPfMq7FnXYc/JhMuaDZbrg52nCNJooTVFwhARDUNUHAzRZTFi2DBcVChxy7z1+8BvGJe1MDafDGbvzm25jPwDnJlZDib9UQBxcgr30iNN4JbhAKGoTBzgj8aM8SoqX1jxwhdc3srwDz9UBGB+v+H8DTLnmiO6Dos9gaKjL5WEi1+AhRW1AhdE9+rcCtmZGXKOGYFWSQD7Y6YUwDyt8MxVO/2xl/a9XBdECwAzpoXTxoNeZXtxDn6pIy6knJPWKRG1wxFg7mzHne5kLDuhM7YlIr9nqKJmsACyxVIDOuJXb8vyqB7drztOHN4vW58jDCZUjI1H5XIV0b1/j4DoLk6cg+SLqUjLuIwcu3wnWfVua4ZhiYsCkqlYI/5odrjvILP5ZgByCZRFAyyAbMvuDI2WW7wltfPGn1/V/ntSYPE6kUYz6sRXQ9VbKqBKXDnUKVcd5WNuXg6Zc1dZQCtRRBdDxK+eaEdeLt64ipOXziHl+iUkX7uAk5fPI9tWcsIVX3pu3rod+o+W5qTngxa/1/ZJ0hlFn09I1ILgJD8FhKCdlOdOGoGt65aLGtUc0EaV6qBJlXqoV646KpYp+Xp1W+0ouOKlRSpqL1thPFVySiQ+s49fPIeDKcdxOPWkaMAfeOwZvDpwlKi++qk0lfQmSZ6H0gFmTA+nbQ+AoM7dvp07FWu+me21PwadHg0r1sbtVesLP/0BWpSI26yFtUkZ8YlbGIPpYDo0Fr+vtEKs0tIv48+0U9iffEwA3OHynsb4ieffQJfX3g4SYLYHOtO9RCRpgy8Z4Nz3cTVo6edgssQXtQnrtTo0qFgLzaomoGWtJojOT74SmF4clcxwVMtL4FIyDf35bOhTA3v85lHOtGbjl9MHsS/5KI6knS4Edvc+7+HRp/2njPIpJcN5uFgbMpsle/sFBLAAstVaF1rwU65bA4Fg1+Z1mDF2MOKj49C+UWu0rt0MUaabKYEDoVm0jaMiBznC90x2M+iTs6FPk29BxWXgYCed2o8fDyfhcuY19Bk6Afe0C/SWcHYVLmpFJtPxQHQSMMACyPbsO0HaTQBipDJPOfA7zq/+Hi1rNRUi/JUq/HHtqBoBV6zh5sLLxaDNcAjgSn0sS5HT5XYLs7pap8dRpWkAJ3dEN+CmdmQw/CaFb8G6QQEsgOxwtAVcPM+HUZQQGZnAoWPAeU/+in9MqVYJaFwfiBV95Z0N0LYnvb5w0i2JCgsaYAFkj2mRx1L6dqWw2YF9fwJnkvnJiUQx/ybVea7hmlWBZg2BkgPpbCBXV9JFejUBStGGLADnzuQ2IPdqMFb8ICT1IrB7P2AN3O1USqfCvq7JCLS8HajsNV44HWCdSW8Oaubm6UA2gD3v5Kym0OjWgUG4N0+Yqb8fBo4p4wYT9kD6EzChFnB7I0BITyGUNDBNBzIYZLNMyAqwgKnFUh1a+hFuV31s2wNcuOyvm//s7yvEA/e3BDSaI9CxDkRmWQ/oZQfYM3FZPHbs/gmnkxV2BP6bjI261Q+iUcIDFBt7Te4eKQKwAPK6dUY4aA4ysrqDMcX4yK2QkNIjYoiJWgQD60EdOyqyQFFc8Wzthm5Iz/oSTqe0w+GQaloFZnqdBWViXqGODymao0xxgIXZvHlHfVy6sgw2+7+PbK4Qk+kAKpTrQm3vPqH00AoJwALII0dq0LzVO8jMGgmHM7DQA6W1oTR9vc6K6KgR2Jv0Xxo5svh1qwrwDxnAebKzTUmVkZ4+FTnZT8P9D3k3a4ghMnIFKpTpT61aKeO26WNwhBzgfKA3bG6H65nTYbXVV2Dghg9Js+kIysb2pXZtA/NuCLInqgGcu50irN/8ErIsg5GTo2hkVpB6kt480nwE5oiJ6PjgfOKrZZWKqgAX7DPbuP0xZNx4FzmWNqV2W8WBjDBvwy3RE+nBtutUwrQQ27ABOP/RvT2pBS5deQNOdzfY7PIaiJXSuNGQA51mMcrHzaY2bX5Rik0gdMMO4Hygt2zRwaF9DhkZXWB3dITTqQukg4q10ekcMOjWIa7McmhdS+iBB0J/7biIzoUtwIUe37/9FotLGS8gJ+dxOFz3wW5X59DEYLBCr92OiIjvUavyAkpICC5xhwiAgq1SKgAu2km2PaktLl9tBdDjsDuaw+6QOegnl6PRYINe/xvgXotyt+6iNvdsDVbhoW5fKgEuBviOHZXg0t6NzBu1kJUTD4P+HoBqwO2OgJuZ4Hbr4XZr4XJ5fIO0Wp6u3QWNxgENWaHR5ADsLKz23YiJvoToqNPQGnfTvXeUereT/wdi29kqXXm2EQAAAABJRU5ErkJggg=="
  76. /***/ }),
  77. /***/ 1037:
  78. /*!********************************************************************************!*\
  79. !*** /Users/chenpengming/代码/product_wx/wxcomponents/weapp/dist/popup/index.js ***!
  80. \********************************************************************************/
  81. /*! no static exports found */
  82. /***/ (function(module, exports, __webpack_require__) {
  83. "use strict";
  84. var _component = __webpack_require__(/*! ../common/component */ 805);
  85. var _transition = __webpack_require__(/*! ../mixins/transition */ 1038);
  86. (0, _component.VantComponent)({
  87. classes: ['enter-class', 'enter-active-class', 'enter-to-class', 'leave-class', 'leave-active-class', 'leave-to-class', 'close-icon-class'],
  88. mixins: [(0, _transition.transition)(false)],
  89. props: {
  90. round: Boolean,
  91. closeable: Boolean,
  92. customStyle: String,
  93. overlayStyle: String,
  94. transition: {
  95. type: String,
  96. observer: 'observeClass'
  97. },
  98. zIndex: {
  99. type: Number,
  100. value: 100
  101. },
  102. overlay: {
  103. type: Boolean,
  104. value: true
  105. },
  106. closeIcon: {
  107. type: String,
  108. value: 'cross'
  109. },
  110. closeIconPosition: {
  111. type: String,
  112. value: 'top-right'
  113. },
  114. closeOnClickOverlay: {
  115. type: Boolean,
  116. value: true
  117. },
  118. position: {
  119. type: String,
  120. value: 'center',
  121. observer: 'observeClass'
  122. },
  123. safeAreaInsetBottom: {
  124. type: Boolean,
  125. value: true
  126. },
  127. safeAreaInsetTop: {
  128. type: Boolean,
  129. value: false
  130. },
  131. safeAreaTabBar: {
  132. type: Boolean,
  133. value: false
  134. },
  135. lockScroll: {
  136. type: Boolean,
  137. value: true
  138. },
  139. rootPortal: {
  140. type: Boolean,
  141. value: false
  142. }
  143. },
  144. created: function created() {
  145. this.observeClass();
  146. },
  147. methods: {
  148. onClickCloseIcon: function onClickCloseIcon() {
  149. this.$emit('close');
  150. },
  151. onClickOverlay: function onClickOverlay() {
  152. this.$emit('click-overlay');
  153. if (this.data.closeOnClickOverlay) {
  154. this.$emit('close');
  155. }
  156. },
  157. observeClass: function observeClass() {
  158. var _this$data = this.data,
  159. transition = _this$data.transition,
  160. position = _this$data.position,
  161. duration = _this$data.duration;
  162. var updateData = {
  163. name: transition || position
  164. };
  165. if (transition === 'none') {
  166. updateData.duration = 0;
  167. this.originDuration = duration;
  168. } else if (this.originDuration != null) {
  169. updateData.duration = this.originDuration;
  170. }
  171. this.setData(updateData);
  172. }
  173. }
  174. });
  175. /***/ }),
  176. /***/ 1038:
  177. /*!**************************************************************************************!*\
  178. !*** /Users/chenpengming/代码/product_wx/wxcomponents/weapp/dist/mixins/transition.js ***!
  179. \**************************************************************************************/
  180. /*! no static exports found */
  181. /***/ (function(module, exports, __webpack_require__) {
  182. "use strict";
  183. Object.defineProperty(exports, "__esModule", {
  184. value: true
  185. });
  186. exports.transition = transition;
  187. var _utils = __webpack_require__(/*! ../common/utils */ 810);
  188. var _validator = __webpack_require__(/*! ../common/validator */ 811);
  189. // @ts-nocheck
  190. var getClassNames = function getClassNames(name) {
  191. return {
  192. enter: "van-".concat(name, "-enter van-").concat(name, "-enter-active enter-class enter-active-class"),
  193. 'enter-to': "van-".concat(name, "-enter-to van-").concat(name, "-enter-active enter-to-class enter-active-class"),
  194. leave: "van-".concat(name, "-leave van-").concat(name, "-leave-active leave-class leave-active-class"),
  195. 'leave-to': "van-".concat(name, "-leave-to van-").concat(name, "-leave-active leave-to-class leave-active-class")
  196. };
  197. };
  198. function transition(showDefaultValue) {
  199. return Behavior({
  200. properties: {
  201. customStyle: String,
  202. // @ts-ignore
  203. show: {
  204. type: Boolean,
  205. value: showDefaultValue,
  206. observer: 'observeShow'
  207. },
  208. // @ts-ignore
  209. duration: {
  210. type: null,
  211. value: 300,
  212. observer: 'observeDuration'
  213. },
  214. name: {
  215. type: String,
  216. value: 'fade'
  217. }
  218. },
  219. data: {
  220. type: '',
  221. inited: false,
  222. display: false
  223. },
  224. ready: function ready() {
  225. if (this.data.show === true) {
  226. this.observeShow(true, false);
  227. }
  228. },
  229. methods: {
  230. observeShow: function observeShow(value, old) {
  231. if (value === old) {
  232. return;
  233. }
  234. value ? this.enter() : this.leave();
  235. },
  236. enter: function enter() {
  237. var _this = this;
  238. var _this$data = this.data,
  239. duration = _this$data.duration,
  240. name = _this$data.name;
  241. var classNames = getClassNames(name);
  242. var currentDuration = (0, _validator.isObj)(duration) ? duration.enter : duration;
  243. if (this.status === 'enter') {
  244. return;
  245. }
  246. this.status = 'enter';
  247. this.$emit('before-enter');
  248. (0, _utils.requestAnimationFrame)(function () {
  249. if (_this.status !== 'enter') {
  250. return;
  251. }
  252. _this.$emit('enter');
  253. _this.setData({
  254. inited: true,
  255. display: true,
  256. classes: classNames.enter,
  257. currentDuration: currentDuration
  258. });
  259. (0, _utils.requestAnimationFrame)(function () {
  260. if (_this.status !== 'enter') {
  261. return;
  262. }
  263. _this.transitionEnded = false;
  264. _this.setData({
  265. classes: classNames['enter-to']
  266. });
  267. });
  268. });
  269. },
  270. leave: function leave() {
  271. var _this2 = this;
  272. if (!this.data.display) {
  273. return;
  274. }
  275. var _this$data2 = this.data,
  276. duration = _this$data2.duration,
  277. name = _this$data2.name;
  278. var classNames = getClassNames(name);
  279. var currentDuration = (0, _validator.isObj)(duration) ? duration.leave : duration;
  280. this.status = 'leave';
  281. this.$emit('before-leave');
  282. (0, _utils.requestAnimationFrame)(function () {
  283. if (_this2.status !== 'leave') {
  284. return;
  285. }
  286. _this2.$emit('leave');
  287. _this2.setData({
  288. classes: classNames.leave,
  289. currentDuration: currentDuration
  290. });
  291. (0, _utils.requestAnimationFrame)(function () {
  292. if (_this2.status !== 'leave') {
  293. return;
  294. }
  295. _this2.transitionEnded = false;
  296. setTimeout(function () {
  297. return _this2.onTransitionEnd();
  298. }, currentDuration);
  299. _this2.setData({
  300. classes: classNames['leave-to']
  301. });
  302. });
  303. });
  304. },
  305. onTransitionEnd: function onTransitionEnd() {
  306. if (this.transitionEnded) {
  307. return;
  308. }
  309. this.transitionEnded = true;
  310. this.$emit("after-".concat(this.status));
  311. var _this$data3 = this.data,
  312. show = _this$data3.show,
  313. display = _this$data3.display;
  314. if (!show && display) {
  315. this.setData({
  316. display: false
  317. });
  318. }
  319. }
  320. }
  321. });
  322. }
  323. /***/ }),
  324. /***/ 1039:
  325. /*!********************************************************************************!*\
  326. !*** /Users/chenpengming/代码/product_wx/wxcomponents/weapp/dist/field/index.js ***!
  327. \********************************************************************************/
  328. /*! no static exports found */
  329. /***/ (function(module, exports, __webpack_require__) {
  330. "use strict";
  331. var _utils = __webpack_require__(/*! ../common/utils */ 810);
  332. var _component = __webpack_require__(/*! ../common/component */ 805);
  333. var _props = __webpack_require__(/*! ./props */ 1040);
  334. (0, _component.VantComponent)({
  335. field: true,
  336. classes: ['input-class', 'right-icon-class', 'label-class'],
  337. props: Object.assign(Object.assign(Object.assign(Object.assign({}, _props.commonProps), _props.inputProps), _props.textareaProps), {
  338. size: String,
  339. icon: String,
  340. label: String,
  341. error: Boolean,
  342. center: Boolean,
  343. isLink: Boolean,
  344. leftIcon: String,
  345. rightIcon: String,
  346. autosize: null,
  347. required: Boolean,
  348. iconClass: String,
  349. clickable: Boolean,
  350. inputAlign: String,
  351. customStyle: String,
  352. errorMessage: String,
  353. arrowDirection: String,
  354. showWordLimit: Boolean,
  355. errorMessageAlign: String,
  356. readonly: {
  357. type: Boolean,
  358. observer: 'setShowClear'
  359. },
  360. clearable: {
  361. type: Boolean,
  362. observer: 'setShowClear'
  363. },
  364. clearTrigger: {
  365. type: String,
  366. value: 'focus'
  367. },
  368. border: {
  369. type: Boolean,
  370. value: true
  371. },
  372. titleWidth: {
  373. type: String,
  374. value: '6.2em'
  375. },
  376. clearIcon: {
  377. type: String,
  378. value: 'clear'
  379. },
  380. extraEventParams: {
  381. type: Boolean,
  382. value: false
  383. }
  384. }),
  385. data: {
  386. focused: false,
  387. innerValue: '',
  388. showClear: false
  389. },
  390. created: function created() {
  391. this.value = this.data.value;
  392. this.setData({
  393. innerValue: this.value
  394. });
  395. },
  396. methods: {
  397. formatValue: function formatValue(value) {
  398. var maxlength = this.data.maxlength;
  399. if (maxlength !== -1 && value.length > maxlength) {
  400. return value.slice(0, maxlength);
  401. }
  402. return value;
  403. },
  404. onInput: function onInput(event) {
  405. var _ref = event.detail || {},
  406. _ref$value = _ref.value,
  407. value = _ref$value === void 0 ? '' : _ref$value;
  408. var formatValue = this.formatValue(value);
  409. this.value = formatValue;
  410. this.setShowClear();
  411. return this.emitChange(Object.assign(Object.assign({}, event.detail), {
  412. value: formatValue
  413. }));
  414. },
  415. onFocus: function onFocus(event) {
  416. this.focused = true;
  417. this.setShowClear();
  418. this.$emit('focus', event.detail);
  419. },
  420. onBlur: function onBlur(event) {
  421. this.focused = false;
  422. this.setShowClear();
  423. this.$emit('blur', event.detail);
  424. },
  425. onClickIcon: function onClickIcon() {
  426. this.$emit('click-icon');
  427. },
  428. onClickInput: function onClickInput(event) {
  429. this.$emit('click-input', event.detail);
  430. },
  431. onClear: function onClear() {
  432. var _this = this;
  433. this.setData({
  434. innerValue: ''
  435. });
  436. this.value = '';
  437. this.setShowClear();
  438. (0, _utils.nextTick)(function () {
  439. _this.emitChange({
  440. value: ''
  441. });
  442. _this.$emit('clear', '');
  443. });
  444. },
  445. onConfirm: function onConfirm(event) {
  446. var _ref2 = event.detail || {},
  447. _ref2$value = _ref2.value,
  448. value = _ref2$value === void 0 ? '' : _ref2$value;
  449. this.value = value;
  450. this.setShowClear();
  451. this.$emit('confirm', value);
  452. },
  453. setValue: function setValue(value) {
  454. this.value = value;
  455. this.setShowClear();
  456. if (value === '') {
  457. this.setData({
  458. innerValue: ''
  459. });
  460. }
  461. this.emitChange({
  462. value: value
  463. });
  464. },
  465. onLineChange: function onLineChange(event) {
  466. this.$emit('linechange', event.detail);
  467. },
  468. onKeyboardHeightChange: function onKeyboardHeightChange(event) {
  469. this.$emit('keyboardheightchange', event.detail);
  470. },
  471. emitChange: function emitChange(detail) {
  472. var extraEventParams = this.data.extraEventParams;
  473. this.setData({
  474. value: detail.value
  475. });
  476. var result;
  477. var data = extraEventParams ? Object.assign(Object.assign({}, detail), {
  478. callback: function callback(data) {
  479. result = data;
  480. }
  481. }) : detail.value;
  482. this.$emit('input', data);
  483. this.$emit('change', data);
  484. return result;
  485. },
  486. setShowClear: function setShowClear() {
  487. var _this$data = this.data,
  488. clearable = _this$data.clearable,
  489. readonly = _this$data.readonly,
  490. clearTrigger = _this$data.clearTrigger;
  491. var focused = this.focused,
  492. value = this.value;
  493. var showClear = false;
  494. if (clearable && !readonly) {
  495. var hasValue = !!value;
  496. var trigger = clearTrigger === 'always' || clearTrigger === 'focus' && focused;
  497. showClear = hasValue && trigger;
  498. }
  499. this.setData({
  500. showClear: showClear
  501. });
  502. },
  503. noop: function noop() {}
  504. }
  505. });
  506. /***/ }),
  507. /***/ 104:
  508. /*!************************************************************************!*\
  509. !*** /Users/chenpengming/代码/product_wx/pages/mine/image/rightIcon.png ***!
  510. \************************************************************************/
  511. /*! no static exports found */
  512. /***/ (function(module, exports) {
  513. module.exports = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABIAAAASCAYAAABWzo5XAAAAAXNSR0IArs4c6QAAAoVJREFUOE99lM9LVFEUx79XmrQf4yaoRRDRbmjnwqyEsrLRqAhqEeQm2vRnuCpatDRoIUEYtLBmI0i9CBeSk5FGBm3KRHAadSLCwXfvfffcE/e+HzOj1t083uOdz/ue7znfJ7DlMCDwfXwQRt6Ekadg1BGQZJBaAelp2PAZXj8IxDBsc6lovuGliQLYPoHR3SAJkAKMBGxyTZ+RKoP1HXHm0de0PgPxylQ/jBoH6XwGcSBXbJIraYDC+AMU1SHMdXH2ceBgHsSVmQJYvwep/Y0i93ICiKSAVdxQqQAbueoNCO5xygQPD7fh7sA0SPXEhWkbGWgVRh2KIWm7CQjstMyib+Sk4NWPRbCZbGnH+eKh+iFI3oMJA5Dq2g5KHGJcFlybewoTDbWCUk/UW3T+uYLfqgOSA1jZFbeeKvLGAEKMCV6fXwTpozChgNWxD+nLsUdv8Gv9Kg6078FmGMA4ZR7k/HW9ubMouDavYHRu59bSqclXyOeuoVrZC8EBSHZ5s/24hMMZwbVPGkbtyia0VZH3Sy+gnfuw9nkTuYMlkC7GoEQQi8i19g2kj/1TkQm/oEOeQ6VeR4d9CVIDcWs63R63Bkv/N9vIBeToPCo/69i3uwQri9meWdMIBWNM8NqHS2CaaDE4Hj+B6TiqP5bRmS/BqmLLlmcgBrhtUPiQVsszINW9bSGtnIMOa7DRxWwht45foIypkd7miJRBKu9Dmm54S9bcBMN4NVyIyU+tjjY+4SOSNpqE9oXPWzOoBZwE1quKNmBxQ1wYaYQ2gy0FBXA4CtI9sTI/+qY/QJp8NQvWt3f8jWQwF+JbhX5EegisTsPIwyAtQHIZpN/BqOfovT/p17Dp/AUKVTZ7Eh2zPQAAAABJRU5ErkJggg=="
  514. /***/ }),
  515. /***/ 1040:
  516. /*!********************************************************************************!*\
  517. !*** /Users/chenpengming/代码/product_wx/wxcomponents/weapp/dist/field/props.js ***!
  518. \********************************************************************************/
  519. /*! no static exports found */
  520. /***/ (function(module, exports, __webpack_require__) {
  521. "use strict";
  522. Object.defineProperty(exports, "__esModule", {
  523. value: true
  524. });
  525. exports.textareaProps = exports.inputProps = exports.commonProps = void 0;
  526. var commonProps = {
  527. value: {
  528. type: String,
  529. observer: function observer(value) {
  530. if (value !== this.value) {
  531. this.setData({
  532. innerValue: value
  533. });
  534. this.value = value;
  535. }
  536. }
  537. },
  538. placeholder: String,
  539. placeholderStyle: String,
  540. placeholderClass: String,
  541. disabled: Boolean,
  542. maxlength: {
  543. type: Number,
  544. value: -1
  545. },
  546. cursorSpacing: {
  547. type: Number,
  548. value: 50
  549. },
  550. autoFocus: Boolean,
  551. focus: Boolean,
  552. cursor: {
  553. type: Number,
  554. value: -1
  555. },
  556. selectionStart: {
  557. type: Number,
  558. value: -1
  559. },
  560. selectionEnd: {
  561. type: Number,
  562. value: -1
  563. },
  564. adjustPosition: {
  565. type: Boolean,
  566. value: true
  567. },
  568. holdKeyboard: Boolean
  569. };
  570. exports.commonProps = commonProps;
  571. var inputProps = {
  572. type: {
  573. type: String,
  574. value: 'text'
  575. },
  576. password: Boolean,
  577. confirmType: String,
  578. confirmHold: Boolean,
  579. alwaysEmbed: Boolean
  580. };
  581. exports.inputProps = inputProps;
  582. var textareaProps = {
  583. autoHeight: Boolean,
  584. fixed: Boolean,
  585. showConfirmBar: {
  586. type: Boolean,
  587. value: true
  588. },
  589. disableDefaultPadding: {
  590. type: Boolean,
  591. value: true
  592. }
  593. };
  594. exports.textareaProps = textareaProps;
  595. /***/ }),
  596. /***/ 1046:
  597. /*!*********************************************************************************************!*\
  598. !*** /Users/chenpengming/代码/product_wx/uni_modules/uni-icons/components/uni-icons/icons.js ***!
  599. \*********************************************************************************************/
  600. /*! no static exports found */
  601. /***/ (function(module, exports, __webpack_require__) {
  602. "use strict";
  603. Object.defineProperty(exports, "__esModule", {
  604. value: true
  605. });
  606. exports.default = void 0;
  607. var _default = {
  608. "id": "2852637",
  609. "name": "uniui图标库",
  610. "font_family": "uniicons",
  611. "css_prefix_text": "uniui-",
  612. "description": "",
  613. "glyphs": [{
  614. "icon_id": "25027049",
  615. "name": "yanse",
  616. "font_class": "color",
  617. "unicode": "e6cf",
  618. "unicode_decimal": 59087
  619. }, {
  620. "icon_id": "25027048",
  621. "name": "wallet",
  622. "font_class": "wallet",
  623. "unicode": "e6b1",
  624. "unicode_decimal": 59057
  625. }, {
  626. "icon_id": "25015720",
  627. "name": "settings-filled",
  628. "font_class": "settings-filled",
  629. "unicode": "e6ce",
  630. "unicode_decimal": 59086
  631. }, {
  632. "icon_id": "25015434",
  633. "name": "shimingrenzheng-filled",
  634. "font_class": "auth-filled",
  635. "unicode": "e6cc",
  636. "unicode_decimal": 59084
  637. }, {
  638. "icon_id": "24934246",
  639. "name": "shop-filled",
  640. "font_class": "shop-filled",
  641. "unicode": "e6cd",
  642. "unicode_decimal": 59085
  643. }, {
  644. "icon_id": "24934159",
  645. "name": "staff-filled-01",
  646. "font_class": "staff-filled",
  647. "unicode": "e6cb",
  648. "unicode_decimal": 59083
  649. }, {
  650. "icon_id": "24932461",
  651. "name": "VIP-filled",
  652. "font_class": "vip-filled",
  653. "unicode": "e6c6",
  654. "unicode_decimal": 59078
  655. }, {
  656. "icon_id": "24932462",
  657. "name": "plus_circle_fill",
  658. "font_class": "plus-filled",
  659. "unicode": "e6c7",
  660. "unicode_decimal": 59079
  661. }, {
  662. "icon_id": "24932463",
  663. "name": "folder_add-filled",
  664. "font_class": "folder-add-filled",
  665. "unicode": "e6c8",
  666. "unicode_decimal": 59080
  667. }, {
  668. "icon_id": "24932464",
  669. "name": "yanse-filled",
  670. "font_class": "color-filled",
  671. "unicode": "e6c9",
  672. "unicode_decimal": 59081
  673. }, {
  674. "icon_id": "24932465",
  675. "name": "tune-filled",
  676. "font_class": "tune-filled",
  677. "unicode": "e6ca",
  678. "unicode_decimal": 59082
  679. }, {
  680. "icon_id": "24932455",
  681. "name": "a-rilidaka-filled",
  682. "font_class": "calendar-filled",
  683. "unicode": "e6c0",
  684. "unicode_decimal": 59072
  685. }, {
  686. "icon_id": "24932456",
  687. "name": "notification-filled",
  688. "font_class": "notification-filled",
  689. "unicode": "e6c1",
  690. "unicode_decimal": 59073
  691. }, {
  692. "icon_id": "24932457",
  693. "name": "wallet-filled",
  694. "font_class": "wallet-filled",
  695. "unicode": "e6c2",
  696. "unicode_decimal": 59074
  697. }, {
  698. "icon_id": "24932458",
  699. "name": "paihangbang-filled",
  700. "font_class": "medal-filled",
  701. "unicode": "e6c3",
  702. "unicode_decimal": 59075
  703. }, {
  704. "icon_id": "24932459",
  705. "name": "gift-filled",
  706. "font_class": "gift-filled",
  707. "unicode": "e6c4",
  708. "unicode_decimal": 59076
  709. }, {
  710. "icon_id": "24932460",
  711. "name": "fire-filled",
  712. "font_class": "fire-filled",
  713. "unicode": "e6c5",
  714. "unicode_decimal": 59077
  715. }, {
  716. "icon_id": "24928001",
  717. "name": "refreshempty",
  718. "font_class": "refreshempty",
  719. "unicode": "e6bf",
  720. "unicode_decimal": 59071
  721. }, {
  722. "icon_id": "24926853",
  723. "name": "location-ellipse",
  724. "font_class": "location-filled",
  725. "unicode": "e6af",
  726. "unicode_decimal": 59055
  727. }, {
  728. "icon_id": "24926735",
  729. "name": "person-filled",
  730. "font_class": "person-filled",
  731. "unicode": "e69d",
  732. "unicode_decimal": 59037
  733. }, {
  734. "icon_id": "24926703",
  735. "name": "personadd-filled",
  736. "font_class": "personadd-filled",
  737. "unicode": "e698",
  738. "unicode_decimal": 59032
  739. }, {
  740. "icon_id": "24923351",
  741. "name": "back",
  742. "font_class": "back",
  743. "unicode": "e6b9",
  744. "unicode_decimal": 59065
  745. }, {
  746. "icon_id": "24923352",
  747. "name": "forward",
  748. "font_class": "forward",
  749. "unicode": "e6ba",
  750. "unicode_decimal": 59066
  751. }, {
  752. "icon_id": "24923353",
  753. "name": "arrowthinright",
  754. "font_class": "arrow-right",
  755. "unicode": "e6bb",
  756. "unicode_decimal": 59067
  757. }, {
  758. "icon_id": "24923353",
  759. "name": "arrowthinright",
  760. "font_class": "arrowthinright",
  761. "unicode": "e6bb",
  762. "unicode_decimal": 59067
  763. }, {
  764. "icon_id": "24923354",
  765. "name": "arrowthinleft",
  766. "font_class": "arrow-left",
  767. "unicode": "e6bc",
  768. "unicode_decimal": 59068
  769. }, {
  770. "icon_id": "24923354",
  771. "name": "arrowthinleft",
  772. "font_class": "arrowthinleft",
  773. "unicode": "e6bc",
  774. "unicode_decimal": 59068
  775. }, {
  776. "icon_id": "24923355",
  777. "name": "arrowthinup",
  778. "font_class": "arrow-up",
  779. "unicode": "e6bd",
  780. "unicode_decimal": 59069
  781. }, {
  782. "icon_id": "24923355",
  783. "name": "arrowthinup",
  784. "font_class": "arrowthinup",
  785. "unicode": "e6bd",
  786. "unicode_decimal": 59069
  787. }, {
  788. "icon_id": "24923356",
  789. "name": "arrowthindown",
  790. "font_class": "arrow-down",
  791. "unicode": "e6be",
  792. "unicode_decimal": 59070
  793. }, {
  794. "icon_id": "24923356",
  795. "name": "arrowthindown",
  796. "font_class": "arrowthindown",
  797. "unicode": "e6be",
  798. "unicode_decimal": 59070
  799. }, {
  800. "icon_id": "24923349",
  801. "name": "arrowdown",
  802. "font_class": "bottom",
  803. "unicode": "e6b8",
  804. "unicode_decimal": 59064
  805. }, {
  806. "icon_id": "24923349",
  807. "name": "arrowdown",
  808. "font_class": "arrowdown",
  809. "unicode": "e6b8",
  810. "unicode_decimal": 59064
  811. }, {
  812. "icon_id": "24923346",
  813. "name": "arrowright",
  814. "font_class": "right",
  815. "unicode": "e6b5",
  816. "unicode_decimal": 59061
  817. }, {
  818. "icon_id": "24923346",
  819. "name": "arrowright",
  820. "font_class": "arrowright",
  821. "unicode": "e6b5",
  822. "unicode_decimal": 59061
  823. }, {
  824. "icon_id": "24923347",
  825. "name": "arrowup",
  826. "font_class": "top",
  827. "unicode": "e6b6",
  828. "unicode_decimal": 59062
  829. }, {
  830. "icon_id": "24923347",
  831. "name": "arrowup",
  832. "font_class": "arrowup",
  833. "unicode": "e6b6",
  834. "unicode_decimal": 59062
  835. }, {
  836. "icon_id": "24923348",
  837. "name": "arrowleft",
  838. "font_class": "left",
  839. "unicode": "e6b7",
  840. "unicode_decimal": 59063
  841. }, {
  842. "icon_id": "24923348",
  843. "name": "arrowleft",
  844. "font_class": "arrowleft",
  845. "unicode": "e6b7",
  846. "unicode_decimal": 59063
  847. }, {
  848. "icon_id": "24923334",
  849. "name": "eye",
  850. "font_class": "eye",
  851. "unicode": "e651",
  852. "unicode_decimal": 58961
  853. }, {
  854. "icon_id": "24923335",
  855. "name": "eye-filled",
  856. "font_class": "eye-filled",
  857. "unicode": "e66a",
  858. "unicode_decimal": 58986
  859. }, {
  860. "icon_id": "24923336",
  861. "name": "eye-slash",
  862. "font_class": "eye-slash",
  863. "unicode": "e6b3",
  864. "unicode_decimal": 59059
  865. }, {
  866. "icon_id": "24923337",
  867. "name": "eye-slash-filled",
  868. "font_class": "eye-slash-filled",
  869. "unicode": "e6b4",
  870. "unicode_decimal": 59060
  871. }, {
  872. "icon_id": "24923305",
  873. "name": "info-filled",
  874. "font_class": "info-filled",
  875. "unicode": "e649",
  876. "unicode_decimal": 58953
  877. }, {
  878. "icon_id": "24923299",
  879. "name": "reload-01",
  880. "font_class": "reload",
  881. "unicode": "e6b2",
  882. "unicode_decimal": 59058
  883. }, {
  884. "icon_id": "24923195",
  885. "name": "mic_slash_fill",
  886. "font_class": "micoff-filled",
  887. "unicode": "e6b0",
  888. "unicode_decimal": 59056
  889. }, {
  890. "icon_id": "24923165",
  891. "name": "map-pin-ellipse",
  892. "font_class": "map-pin-ellipse",
  893. "unicode": "e6ac",
  894. "unicode_decimal": 59052
  895. }, {
  896. "icon_id": "24923166",
  897. "name": "map-pin",
  898. "font_class": "map-pin",
  899. "unicode": "e6ad",
  900. "unicode_decimal": 59053
  901. }, {
  902. "icon_id": "24923167",
  903. "name": "location",
  904. "font_class": "location",
  905. "unicode": "e6ae",
  906. "unicode_decimal": 59054
  907. }, {
  908. "icon_id": "24923064",
  909. "name": "starhalf",
  910. "font_class": "starhalf",
  911. "unicode": "e683",
  912. "unicode_decimal": 59011
  913. }, {
  914. "icon_id": "24923065",
  915. "name": "star",
  916. "font_class": "star",
  917. "unicode": "e688",
  918. "unicode_decimal": 59016
  919. }, {
  920. "icon_id": "24923066",
  921. "name": "star-filled",
  922. "font_class": "star-filled",
  923. "unicode": "e68f",
  924. "unicode_decimal": 59023
  925. }, {
  926. "icon_id": "24899646",
  927. "name": "a-rilidaka",
  928. "font_class": "calendar",
  929. "unicode": "e6a0",
  930. "unicode_decimal": 59040
  931. }, {
  932. "icon_id": "24899647",
  933. "name": "fire",
  934. "font_class": "fire",
  935. "unicode": "e6a1",
  936. "unicode_decimal": 59041
  937. }, {
  938. "icon_id": "24899648",
  939. "name": "paihangbang",
  940. "font_class": "medal",
  941. "unicode": "e6a2",
  942. "unicode_decimal": 59042
  943. }, {
  944. "icon_id": "24899649",
  945. "name": "font",
  946. "font_class": "font",
  947. "unicode": "e6a3",
  948. "unicode_decimal": 59043
  949. }, {
  950. "icon_id": "24899650",
  951. "name": "gift",
  952. "font_class": "gift",
  953. "unicode": "e6a4",
  954. "unicode_decimal": 59044
  955. }, {
  956. "icon_id": "24899651",
  957. "name": "link",
  958. "font_class": "link",
  959. "unicode": "e6a5",
  960. "unicode_decimal": 59045
  961. }, {
  962. "icon_id": "24899652",
  963. "name": "notification",
  964. "font_class": "notification",
  965. "unicode": "e6a6",
  966. "unicode_decimal": 59046
  967. }, {
  968. "icon_id": "24899653",
  969. "name": "staff",
  970. "font_class": "staff",
  971. "unicode": "e6a7",
  972. "unicode_decimal": 59047
  973. }, {
  974. "icon_id": "24899654",
  975. "name": "VIP",
  976. "font_class": "vip",
  977. "unicode": "e6a8",
  978. "unicode_decimal": 59048
  979. }, {
  980. "icon_id": "24899655",
  981. "name": "folder_add",
  982. "font_class": "folder-add",
  983. "unicode": "e6a9",
  984. "unicode_decimal": 59049
  985. }, {
  986. "icon_id": "24899656",
  987. "name": "tune",
  988. "font_class": "tune",
  989. "unicode": "e6aa",
  990. "unicode_decimal": 59050
  991. }, {
  992. "icon_id": "24899657",
  993. "name": "shimingrenzheng",
  994. "font_class": "auth",
  995. "unicode": "e6ab",
  996. "unicode_decimal": 59051
  997. }, {
  998. "icon_id": "24899565",
  999. "name": "person",
  1000. "font_class": "person",
  1001. "unicode": "e699",
  1002. "unicode_decimal": 59033
  1003. }, {
  1004. "icon_id": "24899566",
  1005. "name": "email-filled",
  1006. "font_class": "email-filled",
  1007. "unicode": "e69a",
  1008. "unicode_decimal": 59034
  1009. }, {
  1010. "icon_id": "24899567",
  1011. "name": "phone-filled",
  1012. "font_class": "phone-filled",
  1013. "unicode": "e69b",
  1014. "unicode_decimal": 59035
  1015. }, {
  1016. "icon_id": "24899568",
  1017. "name": "phone",
  1018. "font_class": "phone",
  1019. "unicode": "e69c",
  1020. "unicode_decimal": 59036
  1021. }, {
  1022. "icon_id": "24899570",
  1023. "name": "email",
  1024. "font_class": "email",
  1025. "unicode": "e69e",
  1026. "unicode_decimal": 59038
  1027. }, {
  1028. "icon_id": "24899571",
  1029. "name": "personadd",
  1030. "font_class": "personadd",
  1031. "unicode": "e69f",
  1032. "unicode_decimal": 59039
  1033. }, {
  1034. "icon_id": "24899558",
  1035. "name": "chatboxes-filled",
  1036. "font_class": "chatboxes-filled",
  1037. "unicode": "e692",
  1038. "unicode_decimal": 59026
  1039. }, {
  1040. "icon_id": "24899559",
  1041. "name": "contact",
  1042. "font_class": "contact",
  1043. "unicode": "e693",
  1044. "unicode_decimal": 59027
  1045. }, {
  1046. "icon_id": "24899560",
  1047. "name": "chatbubble-filled",
  1048. "font_class": "chatbubble-filled",
  1049. "unicode": "e694",
  1050. "unicode_decimal": 59028
  1051. }, {
  1052. "icon_id": "24899561",
  1053. "name": "contact-filled",
  1054. "font_class": "contact-filled",
  1055. "unicode": "e695",
  1056. "unicode_decimal": 59029
  1057. }, {
  1058. "icon_id": "24899562",
  1059. "name": "chatboxes",
  1060. "font_class": "chatboxes",
  1061. "unicode": "e696",
  1062. "unicode_decimal": 59030
  1063. }, {
  1064. "icon_id": "24899563",
  1065. "name": "chatbubble",
  1066. "font_class": "chatbubble",
  1067. "unicode": "e697",
  1068. "unicode_decimal": 59031
  1069. }, {
  1070. "icon_id": "24881290",
  1071. "name": "upload-filled",
  1072. "font_class": "upload-filled",
  1073. "unicode": "e68e",
  1074. "unicode_decimal": 59022
  1075. }, {
  1076. "icon_id": "24881292",
  1077. "name": "upload",
  1078. "font_class": "upload",
  1079. "unicode": "e690",
  1080. "unicode_decimal": 59024
  1081. }, {
  1082. "icon_id": "24881293",
  1083. "name": "weixin",
  1084. "font_class": "weixin",
  1085. "unicode": "e691",
  1086. "unicode_decimal": 59025
  1087. }, {
  1088. "icon_id": "24881274",
  1089. "name": "compose",
  1090. "font_class": "compose",
  1091. "unicode": "e67f",
  1092. "unicode_decimal": 59007
  1093. }, {
  1094. "icon_id": "24881275",
  1095. "name": "qq",
  1096. "font_class": "qq",
  1097. "unicode": "e680",
  1098. "unicode_decimal": 59008
  1099. }, {
  1100. "icon_id": "24881276",
  1101. "name": "download-filled",
  1102. "font_class": "download-filled",
  1103. "unicode": "e681",
  1104. "unicode_decimal": 59009
  1105. }, {
  1106. "icon_id": "24881277",
  1107. "name": "pengyouquan",
  1108. "font_class": "pyq",
  1109. "unicode": "e682",
  1110. "unicode_decimal": 59010
  1111. }, {
  1112. "icon_id": "24881279",
  1113. "name": "sound",
  1114. "font_class": "sound",
  1115. "unicode": "e684",
  1116. "unicode_decimal": 59012
  1117. }, {
  1118. "icon_id": "24881280",
  1119. "name": "trash-filled",
  1120. "font_class": "trash-filled",
  1121. "unicode": "e685",
  1122. "unicode_decimal": 59013
  1123. }, {
  1124. "icon_id": "24881281",
  1125. "name": "sound-filled",
  1126. "font_class": "sound-filled",
  1127. "unicode": "e686",
  1128. "unicode_decimal": 59014
  1129. }, {
  1130. "icon_id": "24881282",
  1131. "name": "trash",
  1132. "font_class": "trash",
  1133. "unicode": "e687",
  1134. "unicode_decimal": 59015
  1135. }, {
  1136. "icon_id": "24881284",
  1137. "name": "videocam-filled",
  1138. "font_class": "videocam-filled",
  1139. "unicode": "e689",
  1140. "unicode_decimal": 59017
  1141. }, {
  1142. "icon_id": "24881285",
  1143. "name": "spinner-cycle",
  1144. "font_class": "spinner-cycle",
  1145. "unicode": "e68a",
  1146. "unicode_decimal": 59018
  1147. }, {
  1148. "icon_id": "24881286",
  1149. "name": "weibo",
  1150. "font_class": "weibo",
  1151. "unicode": "e68b",
  1152. "unicode_decimal": 59019
  1153. }, {
  1154. "icon_id": "24881288",
  1155. "name": "videocam",
  1156. "font_class": "videocam",
  1157. "unicode": "e68c",
  1158. "unicode_decimal": 59020
  1159. }, {
  1160. "icon_id": "24881289",
  1161. "name": "download",
  1162. "font_class": "download",
  1163. "unicode": "e68d",
  1164. "unicode_decimal": 59021
  1165. }, {
  1166. "icon_id": "24879601",
  1167. "name": "help",
  1168. "font_class": "help",
  1169. "unicode": "e679",
  1170. "unicode_decimal": 59001
  1171. }, {
  1172. "icon_id": "24879602",
  1173. "name": "navigate-filled",
  1174. "font_class": "navigate-filled",
  1175. "unicode": "e67a",
  1176. "unicode_decimal": 59002
  1177. }, {
  1178. "icon_id": "24879603",
  1179. "name": "plusempty",
  1180. "font_class": "plusempty",
  1181. "unicode": "e67b",
  1182. "unicode_decimal": 59003
  1183. }, {
  1184. "icon_id": "24879604",
  1185. "name": "smallcircle",
  1186. "font_class": "smallcircle",
  1187. "unicode": "e67c",
  1188. "unicode_decimal": 59004
  1189. }, {
  1190. "icon_id": "24879605",
  1191. "name": "minus-filled",
  1192. "font_class": "minus-filled",
  1193. "unicode": "e67d",
  1194. "unicode_decimal": 59005
  1195. }, {
  1196. "icon_id": "24879606",
  1197. "name": "micoff",
  1198. "font_class": "micoff",
  1199. "unicode": "e67e",
  1200. "unicode_decimal": 59006
  1201. }, {
  1202. "icon_id": "24879588",
  1203. "name": "closeempty",
  1204. "font_class": "closeempty",
  1205. "unicode": "e66c",
  1206. "unicode_decimal": 58988
  1207. }, {
  1208. "icon_id": "24879589",
  1209. "name": "clear",
  1210. "font_class": "clear",
  1211. "unicode": "e66d",
  1212. "unicode_decimal": 58989
  1213. }, {
  1214. "icon_id": "24879590",
  1215. "name": "navigate",
  1216. "font_class": "navigate",
  1217. "unicode": "e66e",
  1218. "unicode_decimal": 58990
  1219. }, {
  1220. "icon_id": "24879591",
  1221. "name": "minus",
  1222. "font_class": "minus",
  1223. "unicode": "e66f",
  1224. "unicode_decimal": 58991
  1225. }, {
  1226. "icon_id": "24879592",
  1227. "name": "image",
  1228. "font_class": "image",
  1229. "unicode": "e670",
  1230. "unicode_decimal": 58992
  1231. }, {
  1232. "icon_id": "24879593",
  1233. "name": "mic",
  1234. "font_class": "mic",
  1235. "unicode": "e671",
  1236. "unicode_decimal": 58993
  1237. }, {
  1238. "icon_id": "24879594",
  1239. "name": "paperplane",
  1240. "font_class": "paperplane",
  1241. "unicode": "e672",
  1242. "unicode_decimal": 58994
  1243. }, {
  1244. "icon_id": "24879595",
  1245. "name": "close",
  1246. "font_class": "close",
  1247. "unicode": "e673",
  1248. "unicode_decimal": 58995
  1249. }, {
  1250. "icon_id": "24879596",
  1251. "name": "help-filled",
  1252. "font_class": "help-filled",
  1253. "unicode": "e674",
  1254. "unicode_decimal": 58996
  1255. }, {
  1256. "icon_id": "24879597",
  1257. "name": "plus-filled",
  1258. "font_class": "paperplane-filled",
  1259. "unicode": "e675",
  1260. "unicode_decimal": 58997
  1261. }, {
  1262. "icon_id": "24879598",
  1263. "name": "plus",
  1264. "font_class": "plus",
  1265. "unicode": "e676",
  1266. "unicode_decimal": 58998
  1267. }, {
  1268. "icon_id": "24879599",
  1269. "name": "mic-filled",
  1270. "font_class": "mic-filled",
  1271. "unicode": "e677",
  1272. "unicode_decimal": 58999
  1273. }, {
  1274. "icon_id": "24879600",
  1275. "name": "image-filled",
  1276. "font_class": "image-filled",
  1277. "unicode": "e678",
  1278. "unicode_decimal": 59000
  1279. }, {
  1280. "icon_id": "24855900",
  1281. "name": "locked-filled",
  1282. "font_class": "locked-filled",
  1283. "unicode": "e668",
  1284. "unicode_decimal": 58984
  1285. }, {
  1286. "icon_id": "24855901",
  1287. "name": "info",
  1288. "font_class": "info",
  1289. "unicode": "e669",
  1290. "unicode_decimal": 58985
  1291. }, {
  1292. "icon_id": "24855903",
  1293. "name": "locked",
  1294. "font_class": "locked",
  1295. "unicode": "e66b",
  1296. "unicode_decimal": 58987
  1297. }, {
  1298. "icon_id": "24855884",
  1299. "name": "camera-filled",
  1300. "font_class": "camera-filled",
  1301. "unicode": "e658",
  1302. "unicode_decimal": 58968
  1303. }, {
  1304. "icon_id": "24855885",
  1305. "name": "chat-filled",
  1306. "font_class": "chat-filled",
  1307. "unicode": "e659",
  1308. "unicode_decimal": 58969
  1309. }, {
  1310. "icon_id": "24855886",
  1311. "name": "camera",
  1312. "font_class": "camera",
  1313. "unicode": "e65a",
  1314. "unicode_decimal": 58970
  1315. }, {
  1316. "icon_id": "24855887",
  1317. "name": "circle",
  1318. "font_class": "circle",
  1319. "unicode": "e65b",
  1320. "unicode_decimal": 58971
  1321. }, {
  1322. "icon_id": "24855888",
  1323. "name": "checkmarkempty",
  1324. "font_class": "checkmarkempty",
  1325. "unicode": "e65c",
  1326. "unicode_decimal": 58972
  1327. }, {
  1328. "icon_id": "24855889",
  1329. "name": "chat",
  1330. "font_class": "chat",
  1331. "unicode": "e65d",
  1332. "unicode_decimal": 58973
  1333. }, {
  1334. "icon_id": "24855890",
  1335. "name": "circle-filled",
  1336. "font_class": "circle-filled",
  1337. "unicode": "e65e",
  1338. "unicode_decimal": 58974
  1339. }, {
  1340. "icon_id": "24855891",
  1341. "name": "flag",
  1342. "font_class": "flag",
  1343. "unicode": "e65f",
  1344. "unicode_decimal": 58975
  1345. }, {
  1346. "icon_id": "24855892",
  1347. "name": "flag-filled",
  1348. "font_class": "flag-filled",
  1349. "unicode": "e660",
  1350. "unicode_decimal": 58976
  1351. }, {
  1352. "icon_id": "24855893",
  1353. "name": "gear-filled",
  1354. "font_class": "gear-filled",
  1355. "unicode": "e661",
  1356. "unicode_decimal": 58977
  1357. }, {
  1358. "icon_id": "24855894",
  1359. "name": "home",
  1360. "font_class": "home",
  1361. "unicode": "e662",
  1362. "unicode_decimal": 58978
  1363. }, {
  1364. "icon_id": "24855895",
  1365. "name": "home-filled",
  1366. "font_class": "home-filled",
  1367. "unicode": "e663",
  1368. "unicode_decimal": 58979
  1369. }, {
  1370. "icon_id": "24855896",
  1371. "name": "gear",
  1372. "font_class": "gear",
  1373. "unicode": "e664",
  1374. "unicode_decimal": 58980
  1375. }, {
  1376. "icon_id": "24855897",
  1377. "name": "smallcircle-filled",
  1378. "font_class": "smallcircle-filled",
  1379. "unicode": "e665",
  1380. "unicode_decimal": 58981
  1381. }, {
  1382. "icon_id": "24855898",
  1383. "name": "map-filled",
  1384. "font_class": "map-filled",
  1385. "unicode": "e666",
  1386. "unicode_decimal": 58982
  1387. }, {
  1388. "icon_id": "24855899",
  1389. "name": "map",
  1390. "font_class": "map",
  1391. "unicode": "e667",
  1392. "unicode_decimal": 58983
  1393. }, {
  1394. "icon_id": "24855825",
  1395. "name": "refresh-filled",
  1396. "font_class": "refresh-filled",
  1397. "unicode": "e656",
  1398. "unicode_decimal": 58966
  1399. }, {
  1400. "icon_id": "24855826",
  1401. "name": "refresh",
  1402. "font_class": "refresh",
  1403. "unicode": "e657",
  1404. "unicode_decimal": 58967
  1405. }, {
  1406. "icon_id": "24855808",
  1407. "name": "cloud-upload",
  1408. "font_class": "cloud-upload",
  1409. "unicode": "e645",
  1410. "unicode_decimal": 58949
  1411. }, {
  1412. "icon_id": "24855809",
  1413. "name": "cloud-download-filled",
  1414. "font_class": "cloud-download-filled",
  1415. "unicode": "e646",
  1416. "unicode_decimal": 58950
  1417. }, {
  1418. "icon_id": "24855810",
  1419. "name": "cloud-download",
  1420. "font_class": "cloud-download",
  1421. "unicode": "e647",
  1422. "unicode_decimal": 58951
  1423. }, {
  1424. "icon_id": "24855811",
  1425. "name": "cloud-upload-filled",
  1426. "font_class": "cloud-upload-filled",
  1427. "unicode": "e648",
  1428. "unicode_decimal": 58952
  1429. }, {
  1430. "icon_id": "24855813",
  1431. "name": "redo",
  1432. "font_class": "redo",
  1433. "unicode": "e64a",
  1434. "unicode_decimal": 58954
  1435. }, {
  1436. "icon_id": "24855814",
  1437. "name": "images-filled",
  1438. "font_class": "images-filled",
  1439. "unicode": "e64b",
  1440. "unicode_decimal": 58955
  1441. }, {
  1442. "icon_id": "24855815",
  1443. "name": "undo-filled",
  1444. "font_class": "undo-filled",
  1445. "unicode": "e64c",
  1446. "unicode_decimal": 58956
  1447. }, {
  1448. "icon_id": "24855816",
  1449. "name": "more",
  1450. "font_class": "more",
  1451. "unicode": "e64d",
  1452. "unicode_decimal": 58957
  1453. }, {
  1454. "icon_id": "24855817",
  1455. "name": "more-filled",
  1456. "font_class": "more-filled",
  1457. "unicode": "e64e",
  1458. "unicode_decimal": 58958
  1459. }, {
  1460. "icon_id": "24855818",
  1461. "name": "undo",
  1462. "font_class": "undo",
  1463. "unicode": "e64f",
  1464. "unicode_decimal": 58959
  1465. }, {
  1466. "icon_id": "24855819",
  1467. "name": "images",
  1468. "font_class": "images",
  1469. "unicode": "e650",
  1470. "unicode_decimal": 58960
  1471. }, {
  1472. "icon_id": "24855821",
  1473. "name": "paperclip",
  1474. "font_class": "paperclip",
  1475. "unicode": "e652",
  1476. "unicode_decimal": 58962
  1477. }, {
  1478. "icon_id": "24855822",
  1479. "name": "settings",
  1480. "font_class": "settings",
  1481. "unicode": "e653",
  1482. "unicode_decimal": 58963
  1483. }, {
  1484. "icon_id": "24855823",
  1485. "name": "search",
  1486. "font_class": "search",
  1487. "unicode": "e654",
  1488. "unicode_decimal": 58964
  1489. }, {
  1490. "icon_id": "24855824",
  1491. "name": "redo-filled",
  1492. "font_class": "redo-filled",
  1493. "unicode": "e655",
  1494. "unicode_decimal": 58965
  1495. }, {
  1496. "icon_id": "24841702",
  1497. "name": "list",
  1498. "font_class": "list",
  1499. "unicode": "e644",
  1500. "unicode_decimal": 58948
  1501. }, {
  1502. "icon_id": "24841489",
  1503. "name": "mail-open-filled",
  1504. "font_class": "mail-open-filled",
  1505. "unicode": "e63a",
  1506. "unicode_decimal": 58938
  1507. }, {
  1508. "icon_id": "24841491",
  1509. "name": "hand-thumbsdown-filled",
  1510. "font_class": "hand-down-filled",
  1511. "unicode": "e63c",
  1512. "unicode_decimal": 58940
  1513. }, {
  1514. "icon_id": "24841492",
  1515. "name": "hand-thumbsdown",
  1516. "font_class": "hand-down",
  1517. "unicode": "e63d",
  1518. "unicode_decimal": 58941
  1519. }, {
  1520. "icon_id": "24841493",
  1521. "name": "hand-thumbsup-filled",
  1522. "font_class": "hand-up-filled",
  1523. "unicode": "e63e",
  1524. "unicode_decimal": 58942
  1525. }, {
  1526. "icon_id": "24841494",
  1527. "name": "hand-thumbsup",
  1528. "font_class": "hand-up",
  1529. "unicode": "e63f",
  1530. "unicode_decimal": 58943
  1531. }, {
  1532. "icon_id": "24841496",
  1533. "name": "heart-filled",
  1534. "font_class": "heart-filled",
  1535. "unicode": "e641",
  1536. "unicode_decimal": 58945
  1537. }, {
  1538. "icon_id": "24841498",
  1539. "name": "mail-open",
  1540. "font_class": "mail-open",
  1541. "unicode": "e643",
  1542. "unicode_decimal": 58947
  1543. }, {
  1544. "icon_id": "24841488",
  1545. "name": "heart",
  1546. "font_class": "heart",
  1547. "unicode": "e639",
  1548. "unicode_decimal": 58937
  1549. }, {
  1550. "icon_id": "24839963",
  1551. "name": "loop",
  1552. "font_class": "loop",
  1553. "unicode": "e633",
  1554. "unicode_decimal": 58931
  1555. }, {
  1556. "icon_id": "24839866",
  1557. "name": "pulldown",
  1558. "font_class": "pulldown",
  1559. "unicode": "e632",
  1560. "unicode_decimal": 58930
  1561. }, {
  1562. "icon_id": "24813798",
  1563. "name": "scan",
  1564. "font_class": "scan",
  1565. "unicode": "e62a",
  1566. "unicode_decimal": 58922
  1567. }, {
  1568. "icon_id": "24813786",
  1569. "name": "bars",
  1570. "font_class": "bars",
  1571. "unicode": "e627",
  1572. "unicode_decimal": 58919
  1573. }, {
  1574. "icon_id": "24813788",
  1575. "name": "cart-filled",
  1576. "font_class": "cart-filled",
  1577. "unicode": "e629",
  1578. "unicode_decimal": 58921
  1579. }, {
  1580. "icon_id": "24813790",
  1581. "name": "checkbox",
  1582. "font_class": "checkbox",
  1583. "unicode": "e62b",
  1584. "unicode_decimal": 58923
  1585. }, {
  1586. "icon_id": "24813791",
  1587. "name": "checkbox-filled",
  1588. "font_class": "checkbox-filled",
  1589. "unicode": "e62c",
  1590. "unicode_decimal": 58924
  1591. }, {
  1592. "icon_id": "24813794",
  1593. "name": "shop",
  1594. "font_class": "shop",
  1595. "unicode": "e62f",
  1596. "unicode_decimal": 58927
  1597. }, {
  1598. "icon_id": "24813795",
  1599. "name": "headphones",
  1600. "font_class": "headphones",
  1601. "unicode": "e630",
  1602. "unicode_decimal": 58928
  1603. }, {
  1604. "icon_id": "24813796",
  1605. "name": "cart",
  1606. "font_class": "cart",
  1607. "unicode": "e631",
  1608. "unicode_decimal": 58929
  1609. }]
  1610. };
  1611. exports.default = _default;
  1612. /***/ }),
  1613. /***/ 105:
  1614. /*!********************************************************************!*\
  1615. !*** /Users/chenpengming/代码/product_wx/static/mine/youjiantou.png ***!
  1616. \********************************************************************/
  1617. /*! no static exports found */
  1618. /***/ (function(module, exports) {
  1619. module.exports = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACwAAAAsCAYAAAAehFoBAAAAAXNSR0IArs4c6QAAAgFJREFUWEft189qE1EUx/FzklyDmCgkryEkkHtDxGg6glAq7dMoLipuxAqib+I/XGgHi7MJIeTeZFcspStREZ8ggWSOXIlQBt10zhlauLOf4TO/+cLMIFywAy+YFwJY+omFhcPCmQVCEiEJ7iSSJKlEUbSUXvbv9XM1PBqNLiul3iPiZ631syLQucDOuQgAYgBQiLjb6XT2pNG5wB43m8120jR95dEA8ERr/VgSnRvscdPpdJuIXns0Ee0ZY3al0CzgItFsYI92zt0DgDcAcElqaVawR1trtxDx7Rr93BjzkDMPdrA0WgR8Cu3zqBIR29JiYI+eTCabpVLpnUcDwAut9YO8eYiC/4F+qbW+nwctDs6iieiRMebpWdGFgJ1z14hoiIjX/atca715bsHj8fhquVz+hIhdADhUSt1ptVq/ziWYG+tvUiyJ4XBYr1arB+tlj5RSgzzLsnwP/++xrrExIt4AgKM0TaNut/vzrBmcPo99YUksexJJktTq9fo+ANwkomMiGnAty56Ex9ZqtX1E/INdLBZRv9//wZEBexJFYVmSiOP4SrPZ/AgAtwDgZD6fDySWZUnCYxuNxgdEvO2xlUplo91uf+fOgC0Ja+0GIvq/5q/L5TLq9XrfJLEsSVhr765Wqy9FYFnA0otmr8/+4pC+gQAOC2cWCEmEJDIL/AZuWc4tuG4XogAAAABJRU5ErkJggg=="
  1620. /***/ }),
  1621. /***/ 108:
  1622. /*!*****************************************************************!*\
  1623. !*** /Users/chenpengming/代码/product_wx/pages/mine/image/sc.png ***!
  1624. \*****************************************************************/
  1625. /*! no static exports found */
  1626. /***/ (function(module, exports) {
  1627. module.exports = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAYAAACM/rhtAAAAAXNSR0IArs4c6QAABWhJREFUWEftV12IVVUU/r597ty5SjWaD2ZWakUQhVREWRSiQiAZJGEOU5FTNqKpyUgPzmjcCSlMkIupD1IKlon5UkGILxkRg5RRRPSg5M9DRlROJYLee89dsc8+P3ufn3GcMfDB+3DPvvfsvfa3v7XWt9YmrvIPr3J8uAZwrB66xuA1BsfKwFjXDxuD1Y/lJt9vveR56gkF3EtiIoE6iTMkfgRxWAQH+p/hb3lAap/K5BawCMBcAjOFmEqgHYKzQvwkgkNU2NP7FH8tOkguwFVbj7ePn3T7GwpqDZWM05MUCRJQQPAMxvoJNIHWB6BaHwHVwJrAWwp4AUBJz7U/om2Ef4igLoLauSFUq928kAaaAbh8r0ysNPE5lcyKwARADJgQmAYrIBiADN+fhY9OEK1SCfsVMCk6SLQuejpgxdiE4Jt2D/NXLOCQ/d4BuKR6snLdbdO+JPFQbDzFWgTUsGcABmAJeOCFcF0lw7bNfDjWJ7YBCPDtxOsxu3tOwqQD8JWd/ial+LrZUG8fs1M8Dg4QMhq5PgBAKBg7sQdCQNFvO1wCIPqrhVrv0+yNWIwBdm+XW+G1jpMom/gyMZe4NXFz1uVmnl6jBypwf3S4xI4XGEvi2LZjjZsNwV3rFvJUhDkA27XN71MKG+MECFlIu8phNS9p7ENlEioEG87RgN39zKGEeHPdQlYdgIvfbX4F8rEYUNq44x7j/jiTc+LUSTDLlpNoVggZ1mO2j2xYxEcdgAtr/lkSEwqkxJaVlMxE8hPGLYWKlLzQsA/khAAkDKlYGc4NLGaHA3DBFr9ljEaTU5qX1b+ULkbSYyVWnEAh2zaT6fBIsfx2l9JOSLJ8/mZ/CJQOA9KSj1hKLpEw9oZ29qfVIB0OCBl3FAB/b35e3egAnLepOUhgVq6L400S+ckEN4TUrrWrTEpWjG66NgoU4UjtReXG4OyNjQF43JBTyhK5UUbbAgkKNS7SzLSmxVpnZbVVHkOd1F4RUkGMzbhSDWzr5oDD4KyqTPdK/jEGtdOwEdZaJ1vd4DdAjWYmpS8aO1meBpqKOavW+z555/tLedoBqH88PNDcBWJJkChFOpg0CSngAbs6fIMv+3Dp7M3P5jiR9uxe5i3JVBL9x/1VuVlJ82cQN+R2LwWZnI7HbBwn7nPdnKkq/9JTd3+4LGnfMt3MzA31pRTudDZVdmZHZS2n9NlJkRLyBHRSTZx4DzJfXt6/qrS7sJuJXtzTX/+IYGfcJrlupdK+jNnMaQrS4IyeOeuSuA0PL7Lvk97Sc5fsB/WE6VWpVC42vwbwQKD4msFQNONxxFb0TkXuyja2w1Wn8N1RKXuPH1zNiyMCqCfN6JPJnt8YJDgj09U4Qmy5WiXyk6sAGV0Mqs6JNt975GAf/8hr+zMxaE+asVamiWocJjg9NytzmtBEeAmqlBpkpeZUSbw5X6w3knLZAPWCKWtlWgkGpEmcsAnNAVeUoXEXrhkO13vASSpv7uAw4DI6WHSKqavkFmlrfAbgPrdihKVLgw2qTH5T63bUwZof2F568rv+/NvgJbM4D+iENTKhjOYBisxLM5VucovCIbhgKR463/A6T2ziP0WEjApgsKjnaNukyswagOVpDcsRa6cvNNkqO46daHsNB+iPBNyIXZw21vFqvYdEjUCl6ELkXg30bU9Wnt5c3jVSYLml7nIWj19Zf9AT7KPgjuIWK0iKXxTx7Jkt5e8vx/6YARqXS8c41dhOoivvkq8U9rLStuLPd3huNOBG7eL0ZuWei12K3AaEdxriL1BWn9/Rvm+0wK4Mg/buPTLFk/pW3Wk1W+UVeI+/jxXcFWPwSgApsjFsqfs/Nx6p7f8ArUQxOKApnn4AAAAASUVORK5CYII="
  1628. /***/ }),
  1629. /***/ 1082:
  1630. /*!**********************************************************************************************************!*\
  1631. !*** /Users/chenpengming/代码/product_wx/uni_modules/uni-load-more/components/uni-load-more/i18n/index.js ***!
  1632. \**********************************************************************************************************/
  1633. /*! no static exports found */
  1634. /***/ (function(module, exports, __webpack_require__) {
  1635. "use strict";
  1636. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  1637. Object.defineProperty(exports, "__esModule", {
  1638. value: true
  1639. });
  1640. exports.default = void 0;
  1641. var _en = _interopRequireDefault(__webpack_require__(/*! ./en.json */ 1083));
  1642. var _zhHans = _interopRequireDefault(__webpack_require__(/*! ./zh-Hans.json */ 1084));
  1643. var _zhHant = _interopRequireDefault(__webpack_require__(/*! ./zh-Hant.json */ 1085));
  1644. var _default = {
  1645. en: _en.default,
  1646. 'zh-Hans': _zhHans.default,
  1647. 'zh-Hant': _zhHant.default
  1648. };
  1649. exports.default = _default;
  1650. /***/ }),
  1651. /***/ 1083:
  1652. /*!*********************************************************************************************************!*\
  1653. !*** /Users/chenpengming/代码/product_wx/uni_modules/uni-load-more/components/uni-load-more/i18n/en.json ***!
  1654. \*********************************************************************************************************/
  1655. /*! exports provided: uni-load-more.contentdown, uni-load-more.contentrefresh, uni-load-more.contentnomore, default */
  1656. /***/ (function(module) {
  1657. module.exports = JSON.parse("{\"uni-load-more.contentdown\":\"Pull up to show more\",\"uni-load-more.contentrefresh\":\"loading...\",\"uni-load-more.contentnomore\":\"No more data\"}");
  1658. /***/ }),
  1659. /***/ 1084:
  1660. /*!**************************************************************************************************************!*\
  1661. !*** /Users/chenpengming/代码/product_wx/uni_modules/uni-load-more/components/uni-load-more/i18n/zh-Hans.json ***!
  1662. \**************************************************************************************************************/
  1663. /*! exports provided: uni-load-more.contentdown, uni-load-more.contentrefresh, uni-load-more.contentnomore, default */
  1664. /***/ (function(module) {
  1665. module.exports = JSON.parse("{\"uni-load-more.contentdown\":\"上拉显示更多\",\"uni-load-more.contentrefresh\":\"正在加载...\",\"uni-load-more.contentnomore\":\"没有更多数据了\"}");
  1666. /***/ }),
  1667. /***/ 1085:
  1668. /*!**************************************************************************************************************!*\
  1669. !*** /Users/chenpengming/代码/product_wx/uni_modules/uni-load-more/components/uni-load-more/i18n/zh-Hant.json ***!
  1670. \**************************************************************************************************************/
  1671. /*! exports provided: uni-load-more.contentdown, uni-load-more.contentrefresh, uni-load-more.contentnomore, default */
  1672. /***/ (function(module) {
  1673. module.exports = JSON.parse("{\"uni-load-more.contentdown\":\"上拉顯示更多\",\"uni-load-more.contentrefresh\":\"正在加載...\",\"uni-load-more.contentnomore\":\"沒有更多數據了\"}");
  1674. /***/ }),
  1675. /***/ 1088:
  1676. /*!******************************************************************************************!*\
  1677. !*** /Users/chenpengming/代码/product_wx/wxcomponents/weapp/dist/datetime-picker/index.js ***!
  1678. \******************************************************************************************/
  1679. /*! no static exports found */
  1680. /***/ (function(module, exports, __webpack_require__) {
  1681. "use strict";
  1682. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  1683. var _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/defineProperty */ 11));
  1684. var _slicedToArray2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/slicedToArray */ 5));
  1685. var _component = __webpack_require__(/*! ../common/component */ 805);
  1686. var _validator = __webpack_require__(/*! ../common/validator */ 811);
  1687. var _shared = __webpack_require__(/*! ../picker/shared */ 975);
  1688. var currentYear = new Date().getFullYear();
  1689. function isValidDate(date) {
  1690. return (0, _validator.isDef)(date) && !isNaN(new Date(date).getTime());
  1691. }
  1692. function range(num, min, max) {
  1693. return Math.min(Math.max(num, min), max);
  1694. }
  1695. function padZero(val) {
  1696. return "00".concat(val).slice(-2);
  1697. }
  1698. function times(n, iteratee) {
  1699. var index = -1;
  1700. var result = Array(n < 0 ? 0 : n);
  1701. while (++index < n) {
  1702. result[index] = iteratee(index);
  1703. }
  1704. return result;
  1705. }
  1706. function getTrueValue(formattedValue) {
  1707. if (formattedValue === undefined) {
  1708. formattedValue = '1';
  1709. }
  1710. while (isNaN(parseInt(formattedValue, 10))) {
  1711. formattedValue = formattedValue.slice(1);
  1712. }
  1713. return parseInt(formattedValue, 10);
  1714. }
  1715. function getMonthEndDay(year, month) {
  1716. return 32 - new Date(year, month - 1, 32).getDate();
  1717. }
  1718. var defaultFormatter = function defaultFormatter(type, value) {
  1719. return value;
  1720. };
  1721. (0, _component.VantComponent)({
  1722. classes: ['active-class', 'toolbar-class', 'column-class'],
  1723. props: Object.assign(Object.assign({}, _shared.pickerProps), {
  1724. value: {
  1725. type: null,
  1726. observer: 'updateValue'
  1727. },
  1728. filter: null,
  1729. type: {
  1730. type: String,
  1731. value: 'datetime',
  1732. observer: 'updateValue'
  1733. },
  1734. showToolbar: {
  1735. type: Boolean,
  1736. value: true
  1737. },
  1738. formatter: {
  1739. type: null,
  1740. value: defaultFormatter
  1741. },
  1742. minDate: {
  1743. type: Number,
  1744. value: new Date(currentYear - 10, 0, 1).getTime(),
  1745. observer: 'updateValue'
  1746. },
  1747. maxDate: {
  1748. type: Number,
  1749. value: new Date(currentYear + 10, 11, 31).getTime(),
  1750. observer: 'updateValue'
  1751. },
  1752. minHour: {
  1753. type: Number,
  1754. value: 0,
  1755. observer: 'updateValue'
  1756. },
  1757. maxHour: {
  1758. type: Number,
  1759. value: 23,
  1760. observer: 'updateValue'
  1761. },
  1762. minMinute: {
  1763. type: Number,
  1764. value: 0,
  1765. observer: 'updateValue'
  1766. },
  1767. maxMinute: {
  1768. type: Number,
  1769. value: 59,
  1770. observer: 'updateValue'
  1771. }
  1772. }),
  1773. data: {
  1774. innerValue: Date.now(),
  1775. columns: []
  1776. },
  1777. methods: {
  1778. updateValue: function updateValue() {
  1779. var _this = this;
  1780. var data = this.data;
  1781. var val = this.correctValue(data.value);
  1782. var isEqual = val === data.innerValue;
  1783. this.updateColumnValue(val).then(function () {
  1784. if (!isEqual) {
  1785. _this.$emit('input', val);
  1786. }
  1787. });
  1788. },
  1789. getPicker: function getPicker() {
  1790. if (this.picker == null) {
  1791. this.picker = this.selectComponent('.van-datetime-picker');
  1792. var picker = this.picker;
  1793. var setColumnValues = picker.setColumnValues;
  1794. picker.setColumnValues = function () {
  1795. for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
  1796. args[_key] = arguments[_key];
  1797. }
  1798. return setColumnValues.apply(picker, [].concat(args, [false]));
  1799. };
  1800. }
  1801. return this.picker;
  1802. },
  1803. updateColumns: function updateColumns() {
  1804. var _this$data$formatter = this.data.formatter,
  1805. formatter = _this$data$formatter === void 0 ? defaultFormatter : _this$data$formatter;
  1806. var results = this.getOriginColumns().map(function (column) {
  1807. return {
  1808. values: column.values.map(function (value) {
  1809. return formatter(column.type, value);
  1810. })
  1811. };
  1812. });
  1813. return this.set({
  1814. columns: results
  1815. });
  1816. },
  1817. getOriginColumns: function getOriginColumns() {
  1818. var filter = this.data.filter;
  1819. var results = this.getRanges().map(function (_ref) {
  1820. var type = _ref.type,
  1821. range = _ref.range;
  1822. var values = times(range[1] - range[0] + 1, function (index) {
  1823. var value = range[0] + index;
  1824. return type === 'year' ? "".concat(value) : padZero(value);
  1825. });
  1826. if (filter) {
  1827. values = filter(type, values);
  1828. }
  1829. return {
  1830. type: type,
  1831. values: values
  1832. };
  1833. });
  1834. return results;
  1835. },
  1836. getRanges: function getRanges() {
  1837. var data = this.data;
  1838. if (data.type === 'time') {
  1839. return [{
  1840. type: 'hour',
  1841. range: [data.minHour, data.maxHour]
  1842. }, {
  1843. type: 'minute',
  1844. range: [data.minMinute, data.maxMinute]
  1845. }];
  1846. }
  1847. var _this$getBoundary = this.getBoundary('max', data.innerValue),
  1848. maxYear = _this$getBoundary.maxYear,
  1849. maxDate = _this$getBoundary.maxDate,
  1850. maxMonth = _this$getBoundary.maxMonth,
  1851. maxHour = _this$getBoundary.maxHour,
  1852. maxMinute = _this$getBoundary.maxMinute;
  1853. var _this$getBoundary2 = this.getBoundary('min', data.innerValue),
  1854. minYear = _this$getBoundary2.minYear,
  1855. minDate = _this$getBoundary2.minDate,
  1856. minMonth = _this$getBoundary2.minMonth,
  1857. minHour = _this$getBoundary2.minHour,
  1858. minMinute = _this$getBoundary2.minMinute;
  1859. var result = [{
  1860. type: 'year',
  1861. range: [minYear, maxYear]
  1862. }, {
  1863. type: 'month',
  1864. range: [minMonth, maxMonth]
  1865. }, {
  1866. type: 'day',
  1867. range: [minDate, maxDate]
  1868. }, {
  1869. type: 'hour',
  1870. range: [minHour, maxHour]
  1871. }, {
  1872. type: 'minute',
  1873. range: [minMinute, maxMinute]
  1874. }];
  1875. if (data.type === 'date') result.splice(3, 2);
  1876. if (data.type === 'year-month') result.splice(2, 3);
  1877. return result;
  1878. },
  1879. correctValue: function correctValue(value) {
  1880. var data = this.data;
  1881. // validate value
  1882. var isDateType = data.type !== 'time';
  1883. if (isDateType && !isValidDate(value)) {
  1884. value = data.minDate;
  1885. } else if (!isDateType && !value) {
  1886. var minHour = data.minHour;
  1887. value = "".concat(padZero(minHour), ":00");
  1888. }
  1889. // time type
  1890. if (!isDateType) {
  1891. var _value$split = value.split(':'),
  1892. _value$split2 = (0, _slicedToArray2.default)(_value$split, 2),
  1893. hour = _value$split2[0],
  1894. minute = _value$split2[1];
  1895. hour = padZero(range(hour, data.minHour, data.maxHour));
  1896. minute = padZero(range(minute, data.minMinute, data.maxMinute));
  1897. return "".concat(hour, ":").concat(minute);
  1898. }
  1899. // date type
  1900. value = Math.max(value, data.minDate);
  1901. value = Math.min(value, data.maxDate);
  1902. return value;
  1903. },
  1904. getBoundary: function getBoundary(type, innerValue) {
  1905. var _ref2;
  1906. var value = new Date(innerValue);
  1907. var boundary = new Date(this.data["".concat(type, "Date")]);
  1908. var year = boundary.getFullYear();
  1909. var month = 1;
  1910. var date = 1;
  1911. var hour = 0;
  1912. var minute = 0;
  1913. if (type === 'max') {
  1914. month = 12;
  1915. date = getMonthEndDay(value.getFullYear(), value.getMonth() + 1);
  1916. hour = 23;
  1917. minute = 59;
  1918. }
  1919. if (value.getFullYear() === year) {
  1920. month = boundary.getMonth() + 1;
  1921. if (value.getMonth() + 1 === month) {
  1922. date = boundary.getDate();
  1923. if (value.getDate() === date) {
  1924. hour = boundary.getHours();
  1925. if (value.getHours() === hour) {
  1926. minute = boundary.getMinutes();
  1927. }
  1928. }
  1929. }
  1930. }
  1931. return _ref2 = {}, (0, _defineProperty2.default)(_ref2, "".concat(type, "Year"), year), (0, _defineProperty2.default)(_ref2, "".concat(type, "Month"), month), (0, _defineProperty2.default)(_ref2, "".concat(type, "Date"), date), (0, _defineProperty2.default)(_ref2, "".concat(type, "Hour"), hour), (0, _defineProperty2.default)(_ref2, "".concat(type, "Minute"), minute), _ref2;
  1932. },
  1933. onCancel: function onCancel() {
  1934. this.$emit('cancel');
  1935. },
  1936. onConfirm: function onConfirm() {
  1937. this.$emit('confirm', this.data.innerValue);
  1938. },
  1939. onChange: function onChange() {
  1940. var _this2 = this;
  1941. var data = this.data;
  1942. var value;
  1943. var picker = this.getPicker();
  1944. var originColumns = this.getOriginColumns();
  1945. if (data.type === 'time') {
  1946. var indexes = picker.getIndexes();
  1947. value = "".concat(+originColumns[0].values[indexes[0]], ":").concat(+originColumns[1].values[indexes[1]]);
  1948. } else {
  1949. var _indexes = picker.getIndexes();
  1950. var values = _indexes.map(function (value, index) {
  1951. return originColumns[index].values[value];
  1952. });
  1953. var year = getTrueValue(values[0]);
  1954. var month = getTrueValue(values[1]);
  1955. var maxDate = getMonthEndDay(year, month);
  1956. var date = getTrueValue(values[2]);
  1957. if (data.type === 'year-month') {
  1958. date = 1;
  1959. }
  1960. date = date > maxDate ? maxDate : date;
  1961. var hour = 0;
  1962. var minute = 0;
  1963. if (data.type === 'datetime') {
  1964. hour = getTrueValue(values[3]);
  1965. minute = getTrueValue(values[4]);
  1966. }
  1967. value = new Date(year, month - 1, date, hour, minute);
  1968. }
  1969. value = this.correctValue(value);
  1970. this.updateColumnValue(value).then(function () {
  1971. _this2.$emit('input', value);
  1972. _this2.$emit('change', picker);
  1973. });
  1974. },
  1975. updateColumnValue: function updateColumnValue(value) {
  1976. var _this3 = this;
  1977. var values = [];
  1978. var type = this.data.type;
  1979. var formatter = this.data.formatter || defaultFormatter;
  1980. var picker = this.getPicker();
  1981. if (type === 'time') {
  1982. var pair = value.split(':');
  1983. values = [formatter('hour', pair[0]), formatter('minute', pair[1])];
  1984. } else {
  1985. var date = new Date(value);
  1986. values = [formatter('year', "".concat(date.getFullYear())), formatter('month', padZero(date.getMonth() + 1))];
  1987. if (type === 'date') {
  1988. values.push(formatter('day', padZero(date.getDate())));
  1989. }
  1990. if (type === 'datetime') {
  1991. values.push(formatter('day', padZero(date.getDate())), formatter('hour', padZero(date.getHours())), formatter('minute', padZero(date.getMinutes())));
  1992. }
  1993. }
  1994. return this.set({
  1995. innerValue: value
  1996. }).then(function () {
  1997. return _this3.updateColumns();
  1998. }).then(function () {
  1999. return picker.setValues(values);
  2000. });
  2001. }
  2002. },
  2003. created: function created() {
  2004. var _this4 = this;
  2005. var innerValue = this.correctValue(this.data.value);
  2006. this.updateColumnValue(innerValue).then(function () {
  2007. _this4.$emit('input', innerValue);
  2008. });
  2009. }
  2010. });
  2011. /***/ }),
  2012. /***/ 1089:
  2013. /*!*********************************************************************************!*\
  2014. !*** /Users/chenpengming/代码/product_wx/wxcomponents/weapp/dist/button/index.js ***!
  2015. \*********************************************************************************/
  2016. /*! no static exports found */
  2017. /***/ (function(module, exports, __webpack_require__) {
  2018. "use strict";
  2019. /* WEBPACK VAR INJECTION */(function(wx) {
  2020. var _component = __webpack_require__(/*! ../common/component */ 805);
  2021. var _button = __webpack_require__(/*! ../mixins/button */ 1090);
  2022. var _version = __webpack_require__(/*! ../common/version */ 804);
  2023. var mixins = [_button.button];
  2024. if ((0, _version.canIUseFormFieldButton)()) {
  2025. mixins.push('wx://form-field-button');
  2026. }
  2027. (0, _component.VantComponent)({
  2028. mixins: mixins,
  2029. classes: ['hover-class', 'loading-class'],
  2030. data: {
  2031. baseStyle: ''
  2032. },
  2033. props: {
  2034. formType: String,
  2035. icon: String,
  2036. classPrefix: {
  2037. type: String,
  2038. value: 'van-icon'
  2039. },
  2040. plain: Boolean,
  2041. block: Boolean,
  2042. round: Boolean,
  2043. square: Boolean,
  2044. loading: Boolean,
  2045. hairline: Boolean,
  2046. disabled: Boolean,
  2047. loadingText: String,
  2048. customStyle: String,
  2049. loadingType: {
  2050. type: String,
  2051. value: 'circular'
  2052. },
  2053. type: {
  2054. type: String,
  2055. value: 'default'
  2056. },
  2057. dataset: null,
  2058. size: {
  2059. type: String,
  2060. value: 'normal'
  2061. },
  2062. loadingSize: {
  2063. type: String,
  2064. value: '20px'
  2065. },
  2066. color: String
  2067. },
  2068. methods: {
  2069. onClick: function onClick(event) {
  2070. var _this = this;
  2071. this.$emit('click', event);
  2072. var _this$data = this.data,
  2073. canIUseGetUserProfile = _this$data.canIUseGetUserProfile,
  2074. openType = _this$data.openType,
  2075. getUserProfileDesc = _this$data.getUserProfileDesc,
  2076. lang = _this$data.lang;
  2077. if (openType === 'getUserInfo' && canIUseGetUserProfile) {
  2078. wx.getUserProfile({
  2079. desc: getUserProfileDesc || ' ',
  2080. lang: lang || 'en',
  2081. complete: function complete(userProfile) {
  2082. _this.$emit('getuserinfo', userProfile);
  2083. }
  2084. });
  2085. }
  2086. }
  2087. }
  2088. });
  2089. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/wx.js */ 1)["default"]))
  2090. /***/ }),
  2091. /***/ 109:
  2092. /*!*****************************************************************!*\
  2093. !*** /Users/chenpengming/代码/product_wx/pages/mine/image/hd.png ***!
  2094. \*****************************************************************/
  2095. /*! no static exports found */
  2096. /***/ (function(module, exports) {
  2097. module.exports = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAYAAACM/rhtAAAAAXNSR0IArs4c6QAABlBJREFUWEfdWGtsVEUY/b4tUGwsEROQ8tCQSAJRwfgI0T/qH5I1IFmK3FoeYqUsizxqAakRbWvEGiKktYEFBEqxoYDlLUqDCUZDgB8mJMQmCIZAFBBSCeVZunc+M697Z+5euiWhESQk3Z07d+bMOd/jzCLc5//wPscH/z+AzR931ADgG4yxqqOHDm2o+Om1VCYV9iy6+QojqgKg/r3ac557vRbbMr2jn98Vg3XTT/fOGzz4MjHK5gsQUQsD+GRsVfaOsA13LW5/BtyOpQA4logACIABvZW/IndrtwD8bkn7iIgLvylwYg+xL9ERYLRg3Jc5h/nY9pLreVk9aCkBTgNGEeLIxGQxvzK/OreyWwA2f9g+PEXUwkHZIAUEYoyVuggHswh+BoI+clQdQoDkXyIVE2tyP+0WgBWvHuzx/OiXdgDQC8QICYGASX4EFEb1SOwHBrCOAHqqcwAx+YmArrBUxClY2ef3bgHY1UXv5by7SpJ7uXFX17IA7l186z0AmgJA2V6ccWGY1lBnoswOLSGS+3l+9SNN5qZb5raOAYp8IeQnhkAoFtJiK9V5gnnJBkTXXWI1RevyvLUsgHs+uHkDiHqLaJFYJBAjKTgs+d0fdxklCmofWWMCbJzd6gBgY3C+D0gDs9cjgCtF6wf0Da2Duxde51yJUykMxmfNmAKvTqASJA1gw+xWB4karcOIQwcA6dNrUojg3bqBkVCAuxZcY3JfVR4sBvnCBnC9EYlEThSuetRisCF+UTGoDmyxbhxSEeLVVCAo3jgoHOCO0qsCoCcrDxtZiP26p6TXnUFCxjSA9fGLDhIYDIYz54WRJgMAZtYPDgfYVNJ2GwB6CKb8LLFlNpjQTDOgxNTV/SwG62dccAiw0YxVc11bKV3QCRiAm/hmSM9QibfOu9yAgIVSYTs5/DEr6wR/jFji7bWPWQA3zLigGDTY1/EdFkae1LQ50fDElFCAfHDb3Kv9slgqh3++lalYqQk9sztaJ63qf82cvmYm5WS55/uFLnEzfZQvxTrwxrxv8y6ZTx+sQs2Rb078M5IYG8o/W0bP9b+55hFdAKTI0Xc29r9gDq8vujSQpW6/KOeqN1Lmmq43rGf0uu0eTux88mKnDDYkLiWBQVwm8x2y14sl+ZwBxYrrBu02F1497S8HiYks9suWnww6exkQimIhvCJGS7YNbe4U4Mbiv5OIMEu0pkCiWPZJg5cuNFa8yQa4cvJZJwIgOon6r9qjSr4AcLEci0RLtncBIBDEfXCBVmf0Tr/MYGxWCEAgatQ9W9dNxadsl17hl9XUJYou3D6scwbris4nASF+B1Oq2DCk4hMjEJu16XFL4tqC0w4KBn2jodueNLHKR5oHRsgMcH3RuSQQxjU7vnHQUmmJ/A0YYWzO5nSAnMFgDJq9OWg6UsyNlu0e0TmDX08/l0QgK0m8E/O+y4MakLyuILw+xeZsHWoxWP0mZ5ApBtV7/tnseFRJx4AyA1w7/c+kiEFDhmAcmcnCGXYJYvPTAJ5yiKDR7kom+2ZsK/vmQrRsXwYGV089m0TgEvumwSwTMrh16VAyuxib32QzuHzCKQeRS5zuH83yZcrMiEU/2vd05xKvmnwmiYjxMNasxDEYZsRipU3DLImXTzjhEKEAqD1m8K9thMXTzABXFp5JIvBCHVKvAmXBOwRQGsBl4084iNxuBRn0LZyZ4XwtlzBavj8Dg7WFp5PIs9hzzIENAiD5PM7gop3DLQaXjW+RDOoyY74XML5enAKLlu9/tnOJawr+EAC1w5Us+d0gDTh/jpQGsGpsi2LQbplei/Pp8y5fgF0AWD2JA5S92LowGRbfdMGCQQaxsr02gxwgiTroXxPMmupdRazG2xWAE0+uAMASXu+kaw0xr4bxlJuyWNnepyyJP4sedwBRtjrjhqgUD7WJ5NLLFT+OOtKpWViRf3ISAGyxK35IJhrAXUaxJd/bACujx50Iv5OYZiENlrjP6NGruW19B5QeHmLZ2TTDyn9/ebjvoF8AaHTahUn/muX9KKTbHaQDHHPMQYzIe7GAkcEbM3q//MComuAZQt+qGHcu5yFsK8MIxIjRMCLoldabjazkDJY3j7QkrhxzTEosKSLvj4dADF8BwF+J0VcVB0btCdP9wbP8odH7Hw7e9wz+C5qpf3QUxv2+AAAAAElFTkSuQmCC"
  2098. /***/ }),
  2099. /***/ 1090:
  2100. /*!**********************************************************************************!*\
  2101. !*** /Users/chenpengming/代码/product_wx/wxcomponents/weapp/dist/mixins/button.js ***!
  2102. \**********************************************************************************/
  2103. /*! no static exports found */
  2104. /***/ (function(module, exports, __webpack_require__) {
  2105. "use strict";
  2106. Object.defineProperty(exports, "__esModule", {
  2107. value: true
  2108. });
  2109. exports.button = void 0;
  2110. var _version = __webpack_require__(/*! ../common/version */ 804);
  2111. var button = Behavior({
  2112. externalClasses: ['hover-class'],
  2113. properties: {
  2114. id: String,
  2115. lang: String,
  2116. businessId: Number,
  2117. sessionFrom: String,
  2118. sendMessageTitle: String,
  2119. sendMessagePath: String,
  2120. sendMessageImg: String,
  2121. showMessageCard: Boolean,
  2122. appParameter: String,
  2123. ariaLabel: String,
  2124. openType: String,
  2125. getUserProfileDesc: String
  2126. },
  2127. data: {
  2128. canIUseGetUserProfile: (0, _version.canIUseGetUserProfile)()
  2129. },
  2130. methods: {
  2131. onGetUserInfo: function onGetUserInfo(event) {
  2132. this.triggerEvent('getuserinfo', event.detail);
  2133. },
  2134. onContact: function onContact(event) {
  2135. this.triggerEvent('contact', event.detail);
  2136. },
  2137. onGetPhoneNumber: function onGetPhoneNumber(event) {
  2138. this.triggerEvent('getphonenumber', event.detail);
  2139. },
  2140. onError: function onError(event) {
  2141. this.triggerEvent('error', event.detail);
  2142. },
  2143. onLaunchApp: function onLaunchApp(event) {
  2144. this.triggerEvent('launchapp', event.detail);
  2145. },
  2146. onOpenSetting: function onOpenSetting(event) {
  2147. this.triggerEvent('opensetting', event.detail);
  2148. },
  2149. onChooseAvatar: function onChooseAvatar(event) {
  2150. this.triggerEvent('chooseavatar', event.detail);
  2151. }
  2152. }
  2153. });
  2154. exports.button = button;
  2155. /***/ }),
  2156. /***/ 1091:
  2157. /*!**********************************************************************************!*\
  2158. !*** /Users/chenpengming/代码/product_wx/wxcomponents/weapp/dist/divider/index.js ***!
  2159. \**********************************************************************************/
  2160. /*! no static exports found */
  2161. /***/ (function(module, exports, __webpack_require__) {
  2162. "use strict";
  2163. var _component = __webpack_require__(/*! ../common/component */ 805);
  2164. (0, _component.VantComponent)({
  2165. props: {
  2166. dashed: Boolean,
  2167. hairline: Boolean,
  2168. contentPosition: String,
  2169. fontSize: String,
  2170. borderColor: String,
  2171. textColor: String,
  2172. customStyle: String
  2173. }
  2174. });
  2175. /***/ }),
  2176. /***/ 11:
  2177. /*!***************************************************************!*\
  2178. !*** ./node_modules/@babel/runtime/helpers/defineProperty.js ***!
  2179. \***************************************************************/
  2180. /*! no static exports found */
  2181. /***/ (function(module, exports, __webpack_require__) {
  2182. var toPropertyKey = __webpack_require__(/*! ./toPropertyKey.js */ 12);
  2183. function _defineProperty(obj, key, value) {
  2184. key = toPropertyKey(key);
  2185. if (key in obj) {
  2186. Object.defineProperty(obj, key, {
  2187. value: value,
  2188. enumerable: true,
  2189. configurable: true,
  2190. writable: true
  2191. });
  2192. } else {
  2193. obj[key] = value;
  2194. }
  2195. return obj;
  2196. }
  2197. module.exports = _defineProperty, module.exports.__esModule = true, module.exports["default"] = module.exports;
  2198. /***/ }),
  2199. /***/ 110:
  2200. /*!*****************************************************************!*\
  2201. !*** /Users/chenpengming/代码/product_wx/pages/mine/image/dd.png ***!
  2202. \*****************************************************************/
  2203. /*! no static exports found */
  2204. /***/ (function(module, exports) {
  2205. module.exports = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAYAAACM/rhtAAAAAXNSR0IArs4c6QAABdFJREFUWEftWFuIVVUY/teZGZ1hhpnhaEVUYmV0h0pMQRkSupqVKaZlZJpYk5U6TA/hi+FLPQSBhDRMEUOJlGk3c5uZmolGE14qBKkQIuoh0ibHuZyz/y/Wda+1zzFXTg8+eJg5Z+991tnr+2/f//1b0Dn+Euc4PjoPcKQRGpEHcaizEaWBBMBUAkj9EwhgEoA8ktf6iMsP107r2Xo2YE8LEESCDnU8RUTziHAh2AAASDTjZnHV2iH0ts9ixiYLzgAiAiuw7pywvW5az10SYGn3I2vAmAOwkPgF8QCnvGd0PV4SbZt+yxtxWoDpwZUrBegV6RG7od20AJ4gJq37Gb1Lr0nLdJiAWrVGe4ygvOmdM68dddv65QrgznmfgvluDzyRNv7YqFJpopi55bgP8rQA+cCK7wl8nd5Qe8SGkMBdNZO7pHdpeN+iyTUoTEkpJflHJIHJD/NJfLxubGmDuP694eEv5k4k0D6Aa/X9WBtjDBPML4yeseXlOIC9zw4BXGd/rG4mbySt1V7dyCnvrQLIXFJoiVINFMRFASwDoehSwhpuABJ4c/29yZwogOk37dI8E65cyKw3c54NPG0NcmuzAnLRsLlqvCiApP6+z2bEAfz6SQ439EKdWRyEKJ+rwblLkSxd8rlKQNLwwI44gOV9TygPhvTh5U0uPHIzRS1ecVTLs8p8toWlqClpeHBXJMC9i0yIjcWmmrXV9l8nueQL5w1DLxpsuK4aIzhKAqhAlDTM/jIOYGnPY1wZMplH/A6ReI1Qlif6VZJvZS91SuEpld23BS63cEpdBB7nE7s2mpLGuXvjAA7vXsCiItGZBKdtdXds/upsuoL9Tf/7bd1EWOwzhAwQEZLGh/ZHAtw5X+cgSUd6YWTsJ/CHiksM16Xq2HCg/ZSk6F1jw48FxlgQlhFQH5K7IvakaX5vJMAdc1mTqEfSNq+Ca4ZsbR9mCEHyp2GBOVK2xMyaV11hKRbipGnBgUiA22drgJ4AcFVJRCr8AQjTf6sWRrWiytONjBIlTY8ejAM4tG0WI+epUBSEgPxK1lRiQu4ZkY+IPAezEKZCBHPStPCHOICDW2fqXcwGlt8AOiyYN8vQ6xR0PVfnZNaDXQ7qZfJdch01EuMZEOscDKKEpPnxI5EAt9zjAPocR6loa5j9+YiquK/nxi5BWCLBsfSgTkQJNmlefDQO4MDHd+Y8aHopc7fg9I2MZgz/KS5UbyEfBpfK0oetAHUDfEnmPZfPScuSnyIBfnR72Iud1vOrOpRLMBXsCitTPqGA9UVC2BqTlqXHIgF+ML0CYBDqKsI0EKuu+j3BmxcZTgsaoxlJS/svcQBPbWqrUDN23siEqy8efN7zKSjr5fk+7gxyqp2S1qd/jQPYv3FqpmYM3ShaAHYXCEd0J4GkZMkSUskaapGHumJtRXPKRrmrG4wj8Aw9Puh7uEGLKGld9nskwHenZGomo5vBxoubm8X0Xb4y+M9t+cS6S38k8BWq+zqq0XKr9bk/4gCe3DDJeDAfIm6vLZQTh2pAHg3+C8hB9bVbUSiNF6jbBsIo7eFMD0o1U1zxZyTA9bdkkj8/2dnK88KjOkdOrDrvVCF8b7bxW2ZS7PgrDuDfb9+k9WBVejEqJy9ePSC+EgpllRGyOaNVHjInYzr7IwH23FDVg5mAyDX7Ci/nlZA3zDt+tHOOnvuIKB5g31vXep3ESEOv6irmZSf1Q/kVyCyP9zJDs/SVaqYY68G+N68uEXGNeuRhQ6fDkJ17TxCydU7lCNU+cuvVbK3uJzWbdRyRUMf4pNh56v6osfNE95VHBWFCMNlZ7goklD9U5YjbH7Q0p5yJkl4d09nfEQfw9ctXCcFrguHdI+xMG5onWUHBmCdcdtqzO9oHLdVwgoZEDd1a7Oj/Lgrg6tVUWH7RZasEYSGBxwMo5MfL/LOVQNDaMOZ3qwR3UhB9myJ98YLnB3flXTyi54Nnitf/8f15gCP14jnvwX8AyXWdg8mB6asAAAAASUVORK5CYII="
  2206. /***/ }),
  2207. /***/ 111:
  2208. /*!*****************************************************************!*\
  2209. !*** /Users/chenpengming/代码/product_wx/pages/mine/image/fk.png ***!
  2210. \*****************************************************************/
  2211. /*! no static exports found */
  2212. /***/ (function(module, exports) {
  2213. module.exports = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAYAAACM/rhtAAAAAXNSR0IArs4c6QAABVNJREFUWEftl21ollUYx6/7USb0IWTQlz4EfSiiN9rDXI9bOmWY9iI6hiZT1oe+JEX0xspqupassUQstEwJkQgp3ZegF7cx19B799MYKytrWL4VoRELBXHYnnPFeb/Oue/nQPoECj1sbPf9nPvcv3Nd/3Nd/xPBNf6JrnE++B/wajN0/UWw7ddd+xGiFgQERP0LgMhEMMQ98Z24sGPUPf2c/I6OFxcgH3Of4zeZnPDAYL5jNY16KoLrzuxiFI4P5g/zSeULKLSY1H0hH6bumQURIDkf44PIXGrBgDBUuykXBGw9vZP5K3SipSPFWIQRZxNvIpG1wClADa6jSxcrJmEwXNcVBnzs5LvMTZ1NiRstEqnM1ElZ2MjreZQ0DJyUjkgxIowUNocBV/2yXQL6GpRhSukqDaAiqCOt5UHmk5GV8L5Oj9R3hwFbjr8jUiyj5etEa9G7L0LALiDCBEaIyDCPADeKjeXMwcTCjSQy5h99oCcM2Dy5TWwSm2YJQ6/5a8y10RVL+ms66jlr0/jrMSIU+DLlOJGUlE6zNFpc0BsGXPHTVhnBrHSqEsHF7L5QhDAZzG8UgIu+7owhggIyri9aUtwS4wCqcWONW8KAy49tsYB+zfJrINUVYjI0r1MANhY3xohYcMpVoAba2oowvnhrGPCR73tNmclaodQnlxytgTxOLPmqrksALkxeixkHdApyurCTAm1q6UTTtjDgQ0d7bB2kgvZSZSQAupRAMlJ4QwA2xK/ICKqIO3IhWRDaNDqVm/LbJW+HAZd+0006iV+zuIZKtuXpCEkpJEfquwXg/MMvO4Cm0DtdSOlYbzj13XcPbg8DLpnYrCKoapWzE2Uv5UvVhdX0VoBktOFNAVg30h6DiaA7j3nOKzG6T/+wbEcYsGm8ywKq9mO0VKbRy++jpLiwRwDOG34xRqAapKXKKzcMI147ZSAZ/PjwzjDg4rFOZqq8Liv8L5N6sbDWNCiNFccWvTWfA+YPPRcDr4PlHI2jQ9u1+AsmH30/DNhY7JBZII1dWqG0TdK1UIxmeBIZ9AKUgEHUDoC3ZkU+NY+KoHwFwvHlu8OAC0Zf5TyRiI/po8Qi0T4tIkvKjbeILP/n2C2/5wPAiRUfhAEb4g1MhdBpTbZ/ep6QmggTjTKWixiItDOSu/pU854wYOHwS6rVUleiGrzn33j0dJ8GgDPI2HuiuSGsR2S3OMYg5WbSLZA/eLplbxjw/pF2EUHraFxLZE2Cr0lIji3bIXbxHZ8/qeqgHOO7bq3DrJLz26oPw4C1wy/ICJZp8iDSKJ00/QWEsUuXLy3lL6+aXdWPgLVyE6mzDH/OGHDqjuwZh//3++qPwoD5oedlHaTa8s4dxitmHJqy3ItrzbIcuq2NZ9fsCwPeN/is4wf9EpOCI7pMHaCMPdN6duGs4bCAf7R+HAa8t/8ZC1j2iGjSRqTgGdtMy0+6iNlgbmf5c93+MODdB582KXZObH71D4hfdhxiao1k0q5aNwUtg6m2vjDgnV88NYnIbqMmMn2GtabBtDNnU9Fzh9vK3HO1bZ98c0UIP0893ne7aFvqkzq43/XlE9UlVnXPDMwA/6Efeg8xqgYo7UbEahqxjJY4zTBajzBzysxlpnZfgLMuHz2/9rO/goAuUvjq5gNtNTnEAQFpvKGqoQz4+W56JsKVU2s/Ofhv5q0YIJ/opn1ramZDbgBBQVoXPl1ipeaptr4rhhNpv9KV0ec4ZMTYAAKISALCNEN21XAVA+QTzd3bUjMrl+PpvgEAKwJXUUABuWfl3L/nsDkXWz89V4nMVBywUlAV3ST/BdR1BfgPUTQPoWOBrGMAAAAASUVORK5CYII="
  2214. /***/ }),
  2215. /***/ 12:
  2216. /*!**************************************************************!*\
  2217. !*** ./node_modules/@babel/runtime/helpers/toPropertyKey.js ***!
  2218. \**************************************************************/
  2219. /*! no static exports found */
  2220. /***/ (function(module, exports, __webpack_require__) {
  2221. var _typeof = __webpack_require__(/*! ./typeof.js */ 13)["default"];
  2222. var toPrimitive = __webpack_require__(/*! ./toPrimitive.js */ 14);
  2223. function toPropertyKey(t) {
  2224. var i = toPrimitive(t, "string");
  2225. return "symbol" == _typeof(i) ? i : i + "";
  2226. }
  2227. module.exports = toPropertyKey, module.exports.__esModule = true, module.exports["default"] = module.exports;
  2228. /***/ }),
  2229. /***/ 13:
  2230. /*!*******************************************************!*\
  2231. !*** ./node_modules/@babel/runtime/helpers/typeof.js ***!
  2232. \*******************************************************/
  2233. /*! no static exports found */
  2234. /***/ (function(module, exports) {
  2235. function _typeof(o) {
  2236. "@babel/helpers - typeof";
  2237. return (module.exports = _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {
  2238. return typeof o;
  2239. } : function (o) {
  2240. return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
  2241. }, module.exports.__esModule = true, module.exports["default"] = module.exports), _typeof(o);
  2242. }
  2243. module.exports = _typeof, module.exports.__esModule = true, module.exports["default"] = module.exports;
  2244. /***/ }),
  2245. /***/ 14:
  2246. /*!************************************************************!*\
  2247. !*** ./node_modules/@babel/runtime/helpers/toPrimitive.js ***!
  2248. \************************************************************/
  2249. /*! no static exports found */
  2250. /***/ (function(module, exports, __webpack_require__) {
  2251. var _typeof = __webpack_require__(/*! ./typeof.js */ 13)["default"];
  2252. function toPrimitive(t, r) {
  2253. if ("object" != _typeof(t) || !t) return t;
  2254. var e = t[Symbol.toPrimitive];
  2255. if (void 0 !== e) {
  2256. var i = e.call(t, r || "default");
  2257. if ("object" != _typeof(i)) return i;
  2258. throw new TypeError("@@toPrimitive must return a primitive value.");
  2259. }
  2260. return ("string" === r ? String : Number)(t);
  2261. }
  2262. module.exports = toPrimitive, module.exports.__esModule = true, module.exports["default"] = module.exports;
  2263. /***/ }),
  2264. /***/ 15:
  2265. /*!**********************************************************!*\
  2266. !*** ./node_modules/@babel/runtime/helpers/construct.js ***!
  2267. \**********************************************************/
  2268. /*! no static exports found */
  2269. /***/ (function(module, exports, __webpack_require__) {
  2270. var setPrototypeOf = __webpack_require__(/*! ./setPrototypeOf.js */ 16);
  2271. var isNativeReflectConstruct = __webpack_require__(/*! ./isNativeReflectConstruct.js */ 17);
  2272. function _construct(t, e, r) {
  2273. if (isNativeReflectConstruct()) return Reflect.construct.apply(null, arguments);
  2274. var o = [null];
  2275. o.push.apply(o, e);
  2276. var p = new (t.bind.apply(t, o))();
  2277. return r && setPrototypeOf(p, r.prototype), p;
  2278. }
  2279. module.exports = _construct, module.exports.__esModule = true, module.exports["default"] = module.exports;
  2280. /***/ }),
  2281. /***/ 16:
  2282. /*!***************************************************************!*\
  2283. !*** ./node_modules/@babel/runtime/helpers/setPrototypeOf.js ***!
  2284. \***************************************************************/
  2285. /*! no static exports found */
  2286. /***/ (function(module, exports) {
  2287. function _setPrototypeOf(o, p) {
  2288. module.exports = _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) {
  2289. o.__proto__ = p;
  2290. return o;
  2291. }, module.exports.__esModule = true, module.exports["default"] = module.exports;
  2292. return _setPrototypeOf(o, p);
  2293. }
  2294. module.exports = _setPrototypeOf, module.exports.__esModule = true, module.exports["default"] = module.exports;
  2295. /***/ }),
  2296. /***/ 17:
  2297. /*!*************************************************************************!*\
  2298. !*** ./node_modules/@babel/runtime/helpers/isNativeReflectConstruct.js ***!
  2299. \*************************************************************************/
  2300. /*! no static exports found */
  2301. /***/ (function(module, exports) {
  2302. function _isNativeReflectConstruct() {
  2303. try {
  2304. var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));
  2305. } catch (t) {}
  2306. return (module.exports = _isNativeReflectConstruct = function _isNativeReflectConstruct() {
  2307. return !!t;
  2308. }, module.exports.__esModule = true, module.exports["default"] = module.exports)();
  2309. }
  2310. module.exports = _isNativeReflectConstruct, module.exports.__esModule = true, module.exports["default"] = module.exports;
  2311. /***/ }),
  2312. /***/ 18:
  2313. /*!******************************************************************!*\
  2314. !*** ./node_modules/@babel/runtime/helpers/toConsumableArray.js ***!
  2315. \******************************************************************/
  2316. /*! no static exports found */
  2317. /***/ (function(module, exports, __webpack_require__) {
  2318. var arrayWithoutHoles = __webpack_require__(/*! ./arrayWithoutHoles.js */ 19);
  2319. var iterableToArray = __webpack_require__(/*! ./iterableToArray.js */ 20);
  2320. var unsupportedIterableToArray = __webpack_require__(/*! ./unsupportedIterableToArray.js */ 8);
  2321. var nonIterableSpread = __webpack_require__(/*! ./nonIterableSpread.js */ 21);
  2322. function _toConsumableArray(arr) {
  2323. return arrayWithoutHoles(arr) || iterableToArray(arr) || unsupportedIterableToArray(arr) || nonIterableSpread();
  2324. }
  2325. module.exports = _toConsumableArray, module.exports.__esModule = true, module.exports["default"] = module.exports;
  2326. /***/ }),
  2327. /***/ 19:
  2328. /*!******************************************************************!*\
  2329. !*** ./node_modules/@babel/runtime/helpers/arrayWithoutHoles.js ***!
  2330. \******************************************************************/
  2331. /*! no static exports found */
  2332. /***/ (function(module, exports, __webpack_require__) {
  2333. var arrayLikeToArray = __webpack_require__(/*! ./arrayLikeToArray.js */ 9);
  2334. function _arrayWithoutHoles(arr) {
  2335. if (Array.isArray(arr)) return arrayLikeToArray(arr);
  2336. }
  2337. module.exports = _arrayWithoutHoles, module.exports.__esModule = true, module.exports["default"] = module.exports;
  2338. /***/ }),
  2339. /***/ 2:
  2340. /*!************************************************************!*\
  2341. !*** ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js ***!
  2342. \************************************************************/
  2343. /*! no static exports found */
  2344. /***/ (function(module, exports, __webpack_require__) {
  2345. "use strict";
  2346. /* WEBPACK VAR INJECTION */(function(wx, global) {
  2347. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  2348. Object.defineProperty(exports, "__esModule", {
  2349. value: true
  2350. });
  2351. exports.createApp = createApp;
  2352. exports.createComponent = createComponent;
  2353. exports.createPage = createPage;
  2354. exports.createPlugin = createPlugin;
  2355. exports.createSubpackageApp = createSubpackageApp;
  2356. exports.default = void 0;
  2357. var _slicedToArray2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/slicedToArray */ 5));
  2358. var _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/defineProperty */ 11));
  2359. var _construct2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/construct */ 15));
  2360. var _toConsumableArray2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/toConsumableArray */ 18));
  2361. var _typeof2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/typeof */ 13));
  2362. var _uniI18n = __webpack_require__(/*! @dcloudio/uni-i18n */ 22);
  2363. var _vue = _interopRequireDefault(__webpack_require__(/*! vue */ 25));
  2364. function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
  2365. function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { (0, _defineProperty2.default)(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
  2366. var realAtob;
  2367. var b64 = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=';
  2368. var b64re = /^(?:[A-Za-z\d+/]{4})*?(?:[A-Za-z\d+/]{2}(?:==)?|[A-Za-z\d+/]{3}=?)?$/;
  2369. if (typeof atob !== 'function') {
  2370. realAtob = function realAtob(str) {
  2371. str = String(str).replace(/[\t\n\f\r ]+/g, '');
  2372. if (!b64re.test(str)) {
  2373. throw new Error("Failed to execute 'atob' on 'Window': The string to be decoded is not correctly encoded.");
  2374. }
  2375. // Adding the padding if missing, for semplicity
  2376. str += '=='.slice(2 - (str.length & 3));
  2377. var bitmap;
  2378. var result = '';
  2379. var r1;
  2380. var r2;
  2381. var i = 0;
  2382. for (; i < str.length;) {
  2383. bitmap = b64.indexOf(str.charAt(i++)) << 18 | b64.indexOf(str.charAt(i++)) << 12 | (r1 = b64.indexOf(str.charAt(i++))) << 6 | (r2 = b64.indexOf(str.charAt(i++)));
  2384. result += r1 === 64 ? String.fromCharCode(bitmap >> 16 & 255) : r2 === 64 ? String.fromCharCode(bitmap >> 16 & 255, bitmap >> 8 & 255) : String.fromCharCode(bitmap >> 16 & 255, bitmap >> 8 & 255, bitmap & 255);
  2385. }
  2386. return result;
  2387. };
  2388. } else {
  2389. // 注意atob只能在全局对象上调用,例如:`const Base64 = {atob};Base64.atob('xxxx')`是错误的用法
  2390. realAtob = atob;
  2391. }
  2392. function b64DecodeUnicode(str) {
  2393. return decodeURIComponent(realAtob(str).split('').map(function (c) {
  2394. return '%' + ('00' + c.charCodeAt(0).toString(16)).slice(-2);
  2395. }).join(''));
  2396. }
  2397. function getCurrentUserInfo() {
  2398. var token = wx.getStorageSync('uni_id_token') || '';
  2399. var tokenArr = token.split('.');
  2400. if (!token || tokenArr.length !== 3) {
  2401. return {
  2402. uid: null,
  2403. role: [],
  2404. permission: [],
  2405. tokenExpired: 0
  2406. };
  2407. }
  2408. var userInfo;
  2409. try {
  2410. userInfo = JSON.parse(b64DecodeUnicode(tokenArr[1]));
  2411. } catch (error) {
  2412. throw new Error('获取当前用户信息出错,详细错误信息为:' + error.message);
  2413. }
  2414. userInfo.tokenExpired = userInfo.exp * 1000;
  2415. delete userInfo.exp;
  2416. delete userInfo.iat;
  2417. return userInfo;
  2418. }
  2419. function uniIdMixin(Vue) {
  2420. Vue.prototype.uniIDHasRole = function (roleId) {
  2421. var _getCurrentUserInfo = getCurrentUserInfo(),
  2422. role = _getCurrentUserInfo.role;
  2423. return role.indexOf(roleId) > -1;
  2424. };
  2425. Vue.prototype.uniIDHasPermission = function (permissionId) {
  2426. var _getCurrentUserInfo2 = getCurrentUserInfo(),
  2427. permission = _getCurrentUserInfo2.permission;
  2428. return this.uniIDHasRole('admin') || permission.indexOf(permissionId) > -1;
  2429. };
  2430. Vue.prototype.uniIDTokenValid = function () {
  2431. var _getCurrentUserInfo3 = getCurrentUserInfo(),
  2432. tokenExpired = _getCurrentUserInfo3.tokenExpired;
  2433. return tokenExpired > Date.now();
  2434. };
  2435. }
  2436. var _toString = Object.prototype.toString;
  2437. var hasOwnProperty = Object.prototype.hasOwnProperty;
  2438. function isFn(fn) {
  2439. return typeof fn === 'function';
  2440. }
  2441. function isStr(str) {
  2442. return typeof str === 'string';
  2443. }
  2444. function isObject(obj) {
  2445. return obj !== null && (0, _typeof2.default)(obj) === 'object';
  2446. }
  2447. function isPlainObject(obj) {
  2448. return _toString.call(obj) === '[object Object]';
  2449. }
  2450. function hasOwn(obj, key) {
  2451. return hasOwnProperty.call(obj, key);
  2452. }
  2453. function noop() {}
  2454. /**
  2455. * Create a cached version of a pure function.
  2456. */
  2457. function cached(fn) {
  2458. var cache = Object.create(null);
  2459. return function cachedFn(str) {
  2460. var hit = cache[str];
  2461. return hit || (cache[str] = fn(str));
  2462. };
  2463. }
  2464. /**
  2465. * Camelize a hyphen-delimited string.
  2466. */
  2467. var camelizeRE = /-(\w)/g;
  2468. var camelize = cached(function (str) {
  2469. return str.replace(camelizeRE, function (_, c) {
  2470. return c ? c.toUpperCase() : '';
  2471. });
  2472. });
  2473. function sortObject(obj) {
  2474. var sortObj = {};
  2475. if (isPlainObject(obj)) {
  2476. Object.keys(obj).sort().forEach(function (key) {
  2477. sortObj[key] = obj[key];
  2478. });
  2479. }
  2480. return !Object.keys(sortObj) ? obj : sortObj;
  2481. }
  2482. var HOOKS = ['invoke', 'success', 'fail', 'complete', 'returnValue'];
  2483. var globalInterceptors = {};
  2484. var scopedInterceptors = {};
  2485. function mergeHook(parentVal, childVal) {
  2486. var res = childVal ? parentVal ? parentVal.concat(childVal) : Array.isArray(childVal) ? childVal : [childVal] : parentVal;
  2487. return res ? dedupeHooks(res) : res;
  2488. }
  2489. function dedupeHooks(hooks) {
  2490. var res = [];
  2491. for (var i = 0; i < hooks.length; i++) {
  2492. if (res.indexOf(hooks[i]) === -1) {
  2493. res.push(hooks[i]);
  2494. }
  2495. }
  2496. return res;
  2497. }
  2498. function removeHook(hooks, hook) {
  2499. var index = hooks.indexOf(hook);
  2500. if (index !== -1) {
  2501. hooks.splice(index, 1);
  2502. }
  2503. }
  2504. function mergeInterceptorHook(interceptor, option) {
  2505. Object.keys(option).forEach(function (hook) {
  2506. if (HOOKS.indexOf(hook) !== -1 && isFn(option[hook])) {
  2507. interceptor[hook] = mergeHook(interceptor[hook], option[hook]);
  2508. }
  2509. });
  2510. }
  2511. function removeInterceptorHook(interceptor, option) {
  2512. if (!interceptor || !option) {
  2513. return;
  2514. }
  2515. Object.keys(option).forEach(function (hook) {
  2516. if (HOOKS.indexOf(hook) !== -1 && isFn(option[hook])) {
  2517. removeHook(interceptor[hook], option[hook]);
  2518. }
  2519. });
  2520. }
  2521. function addInterceptor(method, option) {
  2522. if (typeof method === 'string' && isPlainObject(option)) {
  2523. mergeInterceptorHook(scopedInterceptors[method] || (scopedInterceptors[method] = {}), option);
  2524. } else if (isPlainObject(method)) {
  2525. mergeInterceptorHook(globalInterceptors, method);
  2526. }
  2527. }
  2528. function removeInterceptor(method, option) {
  2529. if (typeof method === 'string') {
  2530. if (isPlainObject(option)) {
  2531. removeInterceptorHook(scopedInterceptors[method], option);
  2532. } else {
  2533. delete scopedInterceptors[method];
  2534. }
  2535. } else if (isPlainObject(method)) {
  2536. removeInterceptorHook(globalInterceptors, method);
  2537. }
  2538. }
  2539. function wrapperHook(hook, params) {
  2540. return function (data) {
  2541. return hook(data, params) || data;
  2542. };
  2543. }
  2544. function isPromise(obj) {
  2545. return !!obj && ((0, _typeof2.default)(obj) === 'object' || typeof obj === 'function') && typeof obj.then === 'function';
  2546. }
  2547. function queue(hooks, data, params) {
  2548. var promise = false;
  2549. for (var i = 0; i < hooks.length; i++) {
  2550. var hook = hooks[i];
  2551. if (promise) {
  2552. promise = Promise.resolve(wrapperHook(hook, params));
  2553. } else {
  2554. var res = hook(data, params);
  2555. if (isPromise(res)) {
  2556. promise = Promise.resolve(res);
  2557. }
  2558. if (res === false) {
  2559. return {
  2560. then: function then() {}
  2561. };
  2562. }
  2563. }
  2564. }
  2565. return promise || {
  2566. then: function then(callback) {
  2567. return callback(data);
  2568. }
  2569. };
  2570. }
  2571. function wrapperOptions(interceptor) {
  2572. var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  2573. ['success', 'fail', 'complete'].forEach(function (name) {
  2574. if (Array.isArray(interceptor[name])) {
  2575. var oldCallback = options[name];
  2576. options[name] = function callbackInterceptor(res) {
  2577. queue(interceptor[name], res, options).then(function (res) {
  2578. /* eslint-disable no-mixed-operators */
  2579. return isFn(oldCallback) && oldCallback(res) || res;
  2580. });
  2581. };
  2582. }
  2583. });
  2584. return options;
  2585. }
  2586. function wrapperReturnValue(method, returnValue) {
  2587. var returnValueHooks = [];
  2588. if (Array.isArray(globalInterceptors.returnValue)) {
  2589. returnValueHooks.push.apply(returnValueHooks, (0, _toConsumableArray2.default)(globalInterceptors.returnValue));
  2590. }
  2591. var interceptor = scopedInterceptors[method];
  2592. if (interceptor && Array.isArray(interceptor.returnValue)) {
  2593. returnValueHooks.push.apply(returnValueHooks, (0, _toConsumableArray2.default)(interceptor.returnValue));
  2594. }
  2595. returnValueHooks.forEach(function (hook) {
  2596. returnValue = hook(returnValue) || returnValue;
  2597. });
  2598. return returnValue;
  2599. }
  2600. function getApiInterceptorHooks(method) {
  2601. var interceptor = Object.create(null);
  2602. Object.keys(globalInterceptors).forEach(function (hook) {
  2603. if (hook !== 'returnValue') {
  2604. interceptor[hook] = globalInterceptors[hook].slice();
  2605. }
  2606. });
  2607. var scopedInterceptor = scopedInterceptors[method];
  2608. if (scopedInterceptor) {
  2609. Object.keys(scopedInterceptor).forEach(function (hook) {
  2610. if (hook !== 'returnValue') {
  2611. interceptor[hook] = (interceptor[hook] || []).concat(scopedInterceptor[hook]);
  2612. }
  2613. });
  2614. }
  2615. return interceptor;
  2616. }
  2617. function invokeApi(method, api, options) {
  2618. for (var _len = arguments.length, params = new Array(_len > 3 ? _len - 3 : 0), _key = 3; _key < _len; _key++) {
  2619. params[_key - 3] = arguments[_key];
  2620. }
  2621. var interceptor = getApiInterceptorHooks(method);
  2622. if (interceptor && Object.keys(interceptor).length) {
  2623. if (Array.isArray(interceptor.invoke)) {
  2624. var res = queue(interceptor.invoke, options);
  2625. return res.then(function (options) {
  2626. // 重新访问 getApiInterceptorHooks, 允许 invoke 中再次调用 addInterceptor,removeInterceptor
  2627. return api.apply(void 0, [wrapperOptions(getApiInterceptorHooks(method), options)].concat(params));
  2628. });
  2629. } else {
  2630. return api.apply(void 0, [wrapperOptions(interceptor, options)].concat(params));
  2631. }
  2632. }
  2633. return api.apply(void 0, [options].concat(params));
  2634. }
  2635. var promiseInterceptor = {
  2636. returnValue: function returnValue(res) {
  2637. if (!isPromise(res)) {
  2638. return res;
  2639. }
  2640. return new Promise(function (resolve, reject) {
  2641. res.then(function (res) {
  2642. if (!res) {
  2643. resolve(res);
  2644. return;
  2645. }
  2646. if (res[0]) {
  2647. reject(res[0]);
  2648. } else {
  2649. resolve(res[1]);
  2650. }
  2651. });
  2652. });
  2653. }
  2654. };
  2655. var SYNC_API_RE = /^\$|__f__|Window$|WindowStyle$|sendHostEvent|sendNativeEvent|restoreGlobal|requireGlobal|getCurrentSubNVue|getMenuButtonBoundingClientRect|^report|interceptors|Interceptor$|getSubNVueById|requireNativePlugin|rpx2px|upx2px|hideKeyboard|canIUse|^create|Sync$|Manager$|base64ToArrayBuffer|arrayBufferToBase64|getLocale|setLocale|invokePushCallback|getWindowInfo|getDeviceInfo|getAppBaseInfo|getSystemSetting|getAppAuthorizeSetting|initUTS|requireUTS|registerUTS|getFacialRecognitionMetaInfo/;
  2656. var CONTEXT_API_RE = /^create|Manager$/;
  2657. // Context例外情况
  2658. var CONTEXT_API_RE_EXC = ['createBLEConnection'];
  2659. // 同步例外情况
  2660. var ASYNC_API = ['createBLEConnection', 'createPushMessage'];
  2661. var CALLBACK_API_RE = /^on|^off/;
  2662. function isContextApi(name) {
  2663. return CONTEXT_API_RE.test(name) && CONTEXT_API_RE_EXC.indexOf(name) === -1;
  2664. }
  2665. function isSyncApi(name) {
  2666. return SYNC_API_RE.test(name) && ASYNC_API.indexOf(name) === -1;
  2667. }
  2668. function isCallbackApi(name) {
  2669. return CALLBACK_API_RE.test(name) && name !== 'onPush';
  2670. }
  2671. function handlePromise(promise) {
  2672. return promise.then(function (data) {
  2673. return [null, data];
  2674. }).catch(function (err) {
  2675. return [err];
  2676. });
  2677. }
  2678. function shouldPromise(name) {
  2679. if (isContextApi(name) || isSyncApi(name) || isCallbackApi(name)) {
  2680. return false;
  2681. }
  2682. return true;
  2683. }
  2684. /* eslint-disable no-extend-native */
  2685. if (!Promise.prototype.finally) {
  2686. Promise.prototype.finally = function (callback) {
  2687. var promise = this.constructor;
  2688. return this.then(function (value) {
  2689. return promise.resolve(callback()).then(function () {
  2690. return value;
  2691. });
  2692. }, function (reason) {
  2693. return promise.resolve(callback()).then(function () {
  2694. throw reason;
  2695. });
  2696. });
  2697. };
  2698. }
  2699. function promisify(name, api) {
  2700. if (!shouldPromise(name) || !isFn(api)) {
  2701. return api;
  2702. }
  2703. return function promiseApi() {
  2704. var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
  2705. for (var _len2 = arguments.length, params = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {
  2706. params[_key2 - 1] = arguments[_key2];
  2707. }
  2708. if (isFn(options.success) || isFn(options.fail) || isFn(options.complete)) {
  2709. return wrapperReturnValue(name, invokeApi.apply(void 0, [name, api, Object.assign({}, options)].concat(params)));
  2710. }
  2711. return wrapperReturnValue(name, handlePromise(new Promise(function (resolve, reject) {
  2712. invokeApi.apply(void 0, [name, api, Object.assign({}, options, {
  2713. success: resolve,
  2714. fail: reject
  2715. })].concat(params));
  2716. })));
  2717. };
  2718. }
  2719. var EPS = 1e-4;
  2720. var BASE_DEVICE_WIDTH = 750;
  2721. var isIOS = false;
  2722. var deviceWidth = 0;
  2723. var deviceDPR = 0;
  2724. function checkDeviceWidth() {
  2725. var windowWidth, pixelRatio, platform;
  2726. {
  2727. var windowInfo = typeof wx.getWindowInfo === 'function' && wx.getWindowInfo() ? wx.getWindowInfo() : wx.getSystemInfoSync();
  2728. var deviceInfo = typeof wx.getDeviceInfo === 'function' && wx.getDeviceInfo() ? wx.getDeviceInfo() : wx.getSystemInfoSync();
  2729. windowWidth = windowInfo.windowWidth;
  2730. pixelRatio = windowInfo.pixelRatio;
  2731. platform = deviceInfo.platform;
  2732. }
  2733. deviceWidth = windowWidth;
  2734. deviceDPR = pixelRatio;
  2735. isIOS = platform === 'ios';
  2736. }
  2737. function upx2px(number, newDeviceWidth) {
  2738. if (deviceWidth === 0) {
  2739. checkDeviceWidth();
  2740. }
  2741. number = Number(number);
  2742. if (number === 0) {
  2743. return 0;
  2744. }
  2745. var result = number / BASE_DEVICE_WIDTH * (newDeviceWidth || deviceWidth);
  2746. if (result < 0) {
  2747. result = -result;
  2748. }
  2749. result = Math.floor(result + EPS);
  2750. if (result === 0) {
  2751. if (deviceDPR === 1 || !isIOS) {
  2752. result = 1;
  2753. } else {
  2754. result = 0.5;
  2755. }
  2756. }
  2757. return number < 0 ? -result : result;
  2758. }
  2759. var LOCALE_ZH_HANS = 'zh-Hans';
  2760. var LOCALE_ZH_HANT = 'zh-Hant';
  2761. var LOCALE_EN = 'en';
  2762. var LOCALE_FR = 'fr';
  2763. var LOCALE_ES = 'es';
  2764. var messages = {};
  2765. function getLocaleLanguage() {
  2766. var localeLanguage = '';
  2767. {
  2768. var appBaseInfo = typeof wx.getAppBaseInfo === 'function' && wx.getAppBaseInfo() ? wx.getAppBaseInfo() : wx.getSystemInfoSync();
  2769. var language = appBaseInfo && appBaseInfo.language ? appBaseInfo.language : LOCALE_EN;
  2770. localeLanguage = normalizeLocale(language) || LOCALE_EN;
  2771. }
  2772. return localeLanguage;
  2773. }
  2774. var locale;
  2775. {
  2776. locale = getLocaleLanguage();
  2777. }
  2778. function initI18nMessages() {
  2779. if (!isEnableLocale()) {
  2780. return;
  2781. }
  2782. var localeKeys = Object.keys(__uniConfig.locales);
  2783. if (localeKeys.length) {
  2784. localeKeys.forEach(function (locale) {
  2785. var curMessages = messages[locale];
  2786. var userMessages = __uniConfig.locales[locale];
  2787. if (curMessages) {
  2788. Object.assign(curMessages, userMessages);
  2789. } else {
  2790. messages[locale] = userMessages;
  2791. }
  2792. });
  2793. }
  2794. }
  2795. initI18nMessages();
  2796. var i18n = (0, _uniI18n.initVueI18n)(locale, {});
  2797. var t = i18n.t;
  2798. var i18nMixin = i18n.mixin = {
  2799. beforeCreate: function beforeCreate() {
  2800. var _this = this;
  2801. var unwatch = i18n.i18n.watchLocale(function () {
  2802. _this.$forceUpdate();
  2803. });
  2804. this.$once('hook:beforeDestroy', function () {
  2805. unwatch();
  2806. });
  2807. },
  2808. methods: {
  2809. $$t: function $$t(key, values) {
  2810. return t(key, values);
  2811. }
  2812. }
  2813. };
  2814. var setLocale = i18n.setLocale;
  2815. var getLocale = i18n.getLocale;
  2816. function initAppLocale(Vue, appVm, locale) {
  2817. var state = Vue.observable({
  2818. locale: locale || i18n.getLocale()
  2819. });
  2820. var localeWatchers = [];
  2821. appVm.$watchLocale = function (fn) {
  2822. localeWatchers.push(fn);
  2823. };
  2824. Object.defineProperty(appVm, '$locale', {
  2825. get: function get() {
  2826. return state.locale;
  2827. },
  2828. set: function set(v) {
  2829. state.locale = v;
  2830. localeWatchers.forEach(function (watch) {
  2831. return watch(v);
  2832. });
  2833. }
  2834. });
  2835. }
  2836. function isEnableLocale() {
  2837. return typeof __uniConfig !== 'undefined' && __uniConfig.locales && !!Object.keys(__uniConfig.locales).length;
  2838. }
  2839. function include(str, parts) {
  2840. return !!parts.find(function (part) {
  2841. return str.indexOf(part) !== -1;
  2842. });
  2843. }
  2844. function startsWith(str, parts) {
  2845. return parts.find(function (part) {
  2846. return str.indexOf(part) === 0;
  2847. });
  2848. }
  2849. function normalizeLocale(locale, messages) {
  2850. if (!locale) {
  2851. return;
  2852. }
  2853. locale = locale.trim().replace(/_/g, '-');
  2854. if (messages && messages[locale]) {
  2855. return locale;
  2856. }
  2857. locale = locale.toLowerCase();
  2858. if (locale === 'chinese') {
  2859. // 支付宝
  2860. return LOCALE_ZH_HANS;
  2861. }
  2862. if (locale.indexOf('zh') === 0) {
  2863. if (locale.indexOf('-hans') > -1) {
  2864. return LOCALE_ZH_HANS;
  2865. }
  2866. if (locale.indexOf('-hant') > -1) {
  2867. return LOCALE_ZH_HANT;
  2868. }
  2869. if (include(locale, ['-tw', '-hk', '-mo', '-cht'])) {
  2870. return LOCALE_ZH_HANT;
  2871. }
  2872. return LOCALE_ZH_HANS;
  2873. }
  2874. var lang = startsWith(locale, [LOCALE_EN, LOCALE_FR, LOCALE_ES]);
  2875. if (lang) {
  2876. return lang;
  2877. }
  2878. }
  2879. // export function initI18n() {
  2880. // const localeKeys = Object.keys(__uniConfig.locales || {})
  2881. // if (localeKeys.length) {
  2882. // localeKeys.forEach((locale) =>
  2883. // i18n.add(locale, __uniConfig.locales[locale])
  2884. // )
  2885. // }
  2886. // }
  2887. function getLocale$1() {
  2888. // 优先使用 $locale
  2889. if (isFn(getApp)) {
  2890. var app = getApp({
  2891. allowDefault: true
  2892. });
  2893. if (app && app.$vm) {
  2894. return app.$vm.$locale;
  2895. }
  2896. }
  2897. return getLocaleLanguage();
  2898. }
  2899. function setLocale$1(locale) {
  2900. var app = isFn(getApp) ? getApp() : false;
  2901. if (!app) {
  2902. return false;
  2903. }
  2904. var oldLocale = app.$vm.$locale;
  2905. if (oldLocale !== locale) {
  2906. app.$vm.$locale = locale;
  2907. onLocaleChangeCallbacks.forEach(function (fn) {
  2908. return fn({
  2909. locale: locale
  2910. });
  2911. });
  2912. return true;
  2913. }
  2914. return false;
  2915. }
  2916. var onLocaleChangeCallbacks = [];
  2917. function onLocaleChange(fn) {
  2918. if (onLocaleChangeCallbacks.indexOf(fn) === -1) {
  2919. onLocaleChangeCallbacks.push(fn);
  2920. }
  2921. }
  2922. if (typeof global !== 'undefined') {
  2923. global.getLocale = getLocale$1;
  2924. }
  2925. var interceptors = {
  2926. promiseInterceptor: promiseInterceptor
  2927. };
  2928. var baseApi = /*#__PURE__*/Object.freeze({
  2929. __proto__: null,
  2930. upx2px: upx2px,
  2931. rpx2px: upx2px,
  2932. getLocale: getLocale$1,
  2933. setLocale: setLocale$1,
  2934. onLocaleChange: onLocaleChange,
  2935. addInterceptor: addInterceptor,
  2936. removeInterceptor: removeInterceptor,
  2937. interceptors: interceptors
  2938. });
  2939. function findExistsPageIndex(url) {
  2940. var pages = getCurrentPages();
  2941. var len = pages.length;
  2942. while (len--) {
  2943. var page = pages[len];
  2944. if (page.$page && page.$page.fullPath === url) {
  2945. return len;
  2946. }
  2947. }
  2948. return -1;
  2949. }
  2950. var redirectTo = {
  2951. name: function name(fromArgs) {
  2952. if (fromArgs.exists === 'back' && fromArgs.delta) {
  2953. return 'navigateBack';
  2954. }
  2955. return 'redirectTo';
  2956. },
  2957. args: function args(fromArgs) {
  2958. if (fromArgs.exists === 'back' && fromArgs.url) {
  2959. var existsPageIndex = findExistsPageIndex(fromArgs.url);
  2960. if (existsPageIndex !== -1) {
  2961. var delta = getCurrentPages().length - 1 - existsPageIndex;
  2962. if (delta > 0) {
  2963. fromArgs.delta = delta;
  2964. }
  2965. }
  2966. }
  2967. }
  2968. };
  2969. var previewImage = {
  2970. args: function args(fromArgs) {
  2971. var currentIndex = parseInt(fromArgs.current);
  2972. if (isNaN(currentIndex)) {
  2973. return;
  2974. }
  2975. var urls = fromArgs.urls;
  2976. if (!Array.isArray(urls)) {
  2977. return;
  2978. }
  2979. var len = urls.length;
  2980. if (!len) {
  2981. return;
  2982. }
  2983. if (currentIndex < 0) {
  2984. currentIndex = 0;
  2985. } else if (currentIndex >= len) {
  2986. currentIndex = len - 1;
  2987. }
  2988. if (currentIndex > 0) {
  2989. fromArgs.current = urls[currentIndex];
  2990. fromArgs.urls = urls.filter(function (item, index) {
  2991. return index < currentIndex ? item !== urls[currentIndex] : true;
  2992. });
  2993. } else {
  2994. fromArgs.current = urls[0];
  2995. }
  2996. return {
  2997. indicator: false,
  2998. loop: false
  2999. };
  3000. }
  3001. };
  3002. var UUID_KEY = '__DC_STAT_UUID';
  3003. var deviceId;
  3004. function useDeviceId(result) {
  3005. deviceId = deviceId || wx.getStorageSync(UUID_KEY);
  3006. if (!deviceId) {
  3007. deviceId = Date.now() + '' + Math.floor(Math.random() * 1e7);
  3008. wx.setStorage({
  3009. key: UUID_KEY,
  3010. data: deviceId
  3011. });
  3012. }
  3013. result.deviceId = deviceId;
  3014. }
  3015. function addSafeAreaInsets(result) {
  3016. if (result.safeArea) {
  3017. var safeArea = result.safeArea;
  3018. result.safeAreaInsets = {
  3019. top: safeArea.top,
  3020. left: safeArea.left,
  3021. right: result.windowWidth - safeArea.right,
  3022. bottom: result.screenHeight - safeArea.bottom
  3023. };
  3024. }
  3025. }
  3026. function getOSInfo(system, platform) {
  3027. var osName = '';
  3028. var osVersion = '';
  3029. if (platform && "mp-weixin" === 'mp-baidu') {
  3030. osName = platform;
  3031. osVersion = system;
  3032. } else {
  3033. osName = system.split(' ')[0] || platform;
  3034. osVersion = system.split(' ')[1] || '';
  3035. }
  3036. osName = osName.toLocaleLowerCase();
  3037. switch (osName) {
  3038. case 'harmony': // alipay
  3039. case 'ohos': // weixin
  3040. case 'openharmony':
  3041. // feishu
  3042. osName = 'harmonyos';
  3043. break;
  3044. case 'iphone os':
  3045. // alipay
  3046. osName = 'ios';
  3047. break;
  3048. case 'mac': // weixin qq
  3049. case 'darwin':
  3050. // feishu
  3051. osName = 'macos';
  3052. break;
  3053. case 'windows_nt':
  3054. // feishu
  3055. osName = 'windows';
  3056. break;
  3057. }
  3058. return {
  3059. osName: osName,
  3060. osVersion: osVersion
  3061. };
  3062. }
  3063. function populateParameters(result) {
  3064. var _result$brand = result.brand,
  3065. brand = _result$brand === void 0 ? '' : _result$brand,
  3066. _result$model = result.model,
  3067. model = _result$model === void 0 ? '' : _result$model,
  3068. _result$system = result.system,
  3069. system = _result$system === void 0 ? '' : _result$system,
  3070. _result$language = result.language,
  3071. language = _result$language === void 0 ? '' : _result$language,
  3072. theme = result.theme,
  3073. version = result.version,
  3074. platform = result.platform,
  3075. fontSizeSetting = result.fontSizeSetting,
  3076. SDKVersion = result.SDKVersion,
  3077. pixelRatio = result.pixelRatio,
  3078. deviceOrientation = result.deviceOrientation;
  3079. // const isQuickApp = "mp-weixin".indexOf('quickapp-webview') !== -1
  3080. var extraParam = {};
  3081. // osName osVersion
  3082. var _getOSInfo = getOSInfo(system, platform),
  3083. osName = _getOSInfo.osName,
  3084. osVersion = _getOSInfo.osVersion;
  3085. var hostVersion = version;
  3086. // deviceType
  3087. var deviceType = getGetDeviceType(result, model);
  3088. // deviceModel
  3089. var deviceBrand = getDeviceBrand(brand);
  3090. // hostName
  3091. var _hostName = getHostName(result);
  3092. // deviceOrientation
  3093. var _deviceOrientation = deviceOrientation; // 仅 微信 百度 支持
  3094. // devicePixelRatio
  3095. var _devicePixelRatio = pixelRatio;
  3096. // SDKVersion
  3097. var _SDKVersion = SDKVersion;
  3098. // hostLanguage
  3099. var hostLanguage = (language || '').replace(/_/g, '-');
  3100. // wx.getAccountInfoSync
  3101. var parameters = {
  3102. appId: "__UNI__E97C301",
  3103. appName: "产品化管理端",
  3104. appVersion: "1.0.0",
  3105. appVersionCode: "100",
  3106. appLanguage: getAppLanguage(hostLanguage),
  3107. uniCompileVersion: "4.81",
  3108. uniCompilerVersion: "4.81",
  3109. uniRuntimeVersion: "4.81",
  3110. uniPlatform: undefined || "mp-weixin",
  3111. deviceBrand: deviceBrand,
  3112. deviceModel: model,
  3113. deviceType: deviceType,
  3114. devicePixelRatio: _devicePixelRatio,
  3115. deviceOrientation: _deviceOrientation,
  3116. osName: osName.toLocaleLowerCase(),
  3117. osVersion: osVersion,
  3118. hostTheme: theme,
  3119. hostVersion: hostVersion,
  3120. hostLanguage: hostLanguage,
  3121. hostName: _hostName,
  3122. hostSDKVersion: _SDKVersion,
  3123. hostFontSizeSetting: fontSizeSetting,
  3124. windowTop: 0,
  3125. windowBottom: 0,
  3126. // TODO
  3127. osLanguage: undefined,
  3128. osTheme: undefined,
  3129. ua: undefined,
  3130. hostPackageName: undefined,
  3131. browserName: undefined,
  3132. browserVersion: undefined,
  3133. isUniAppX: false
  3134. };
  3135. Object.assign(result, parameters, extraParam);
  3136. }
  3137. function getGetDeviceType(result, model) {
  3138. var deviceType = result.deviceType || 'phone';
  3139. {
  3140. var deviceTypeMaps = {
  3141. ipad: 'pad',
  3142. windows: 'pc',
  3143. mac: 'pc'
  3144. };
  3145. var deviceTypeMapsKeys = Object.keys(deviceTypeMaps);
  3146. var _model = model.toLocaleLowerCase();
  3147. for (var index = 0; index < deviceTypeMapsKeys.length; index++) {
  3148. var _m = deviceTypeMapsKeys[index];
  3149. if (_model.indexOf(_m) !== -1) {
  3150. deviceType = deviceTypeMaps[_m];
  3151. break;
  3152. }
  3153. }
  3154. }
  3155. return deviceType;
  3156. }
  3157. function getDeviceBrand(brand) {
  3158. var deviceBrand = brand;
  3159. if (deviceBrand) {
  3160. deviceBrand = brand.toLocaleLowerCase();
  3161. }
  3162. return deviceBrand;
  3163. }
  3164. function getAppLanguage(defaultLanguage) {
  3165. return getLocale$1 ? getLocale$1() : defaultLanguage;
  3166. }
  3167. function getHostName(result) {
  3168. var _platform = 'WeChat';
  3169. var _hostName = result.hostName || _platform; // mp-jd
  3170. {
  3171. if (result.environment) {
  3172. _hostName = result.environment;
  3173. } else if (result.host && result.host.env) {
  3174. _hostName = result.host.env;
  3175. }
  3176. }
  3177. return _hostName;
  3178. }
  3179. var getSystemInfo = {
  3180. returnValue: function returnValue(result) {
  3181. useDeviceId(result);
  3182. addSafeAreaInsets(result);
  3183. populateParameters(result);
  3184. }
  3185. };
  3186. var showActionSheet = {
  3187. args: function args(fromArgs) {
  3188. if ((0, _typeof2.default)(fromArgs) === 'object') {
  3189. fromArgs.alertText = fromArgs.title;
  3190. }
  3191. }
  3192. };
  3193. var getAppBaseInfo = {
  3194. returnValue: function returnValue(result) {
  3195. var _result = result,
  3196. version = _result.version,
  3197. language = _result.language,
  3198. SDKVersion = _result.SDKVersion,
  3199. theme = _result.theme;
  3200. var _hostName = getHostName(result);
  3201. var hostLanguage = (language || '').replace('_', '-');
  3202. result = sortObject(Object.assign(result, {
  3203. appId: "__UNI__E97C301",
  3204. appName: "产品化管理端",
  3205. appVersion: "1.0.0",
  3206. appVersionCode: "100",
  3207. appLanguage: getAppLanguage(hostLanguage),
  3208. hostVersion: version,
  3209. hostLanguage: hostLanguage,
  3210. hostName: _hostName,
  3211. hostSDKVersion: SDKVersion,
  3212. hostTheme: theme,
  3213. isUniAppX: false,
  3214. uniPlatform: undefined || "mp-weixin",
  3215. uniCompileVersion: "4.81",
  3216. uniCompilerVersion: "4.81",
  3217. uniRuntimeVersion: "4.81"
  3218. }));
  3219. }
  3220. };
  3221. var getDeviceInfo = {
  3222. returnValue: function returnValue(result) {
  3223. var _result2 = result,
  3224. brand = _result2.brand,
  3225. model = _result2.model,
  3226. _result2$system = _result2.system,
  3227. system = _result2$system === void 0 ? '' : _result2$system,
  3228. _result2$platform = _result2.platform,
  3229. platform = _result2$platform === void 0 ? '' : _result2$platform;
  3230. var deviceType = getGetDeviceType(result, model);
  3231. var deviceBrand = getDeviceBrand(brand);
  3232. useDeviceId(result);
  3233. var _getOSInfo2 = getOSInfo(system, platform),
  3234. osName = _getOSInfo2.osName,
  3235. osVersion = _getOSInfo2.osVersion;
  3236. result = sortObject(Object.assign(result, {
  3237. deviceType: deviceType,
  3238. deviceBrand: deviceBrand,
  3239. deviceModel: model,
  3240. osName: osName,
  3241. osVersion: osVersion
  3242. }));
  3243. }
  3244. };
  3245. var getWindowInfo = {
  3246. returnValue: function returnValue(result) {
  3247. addSafeAreaInsets(result);
  3248. result = sortObject(Object.assign(result, {
  3249. windowTop: 0,
  3250. windowBottom: 0
  3251. }));
  3252. }
  3253. };
  3254. var getAppAuthorizeSetting = {
  3255. returnValue: function returnValue(result) {
  3256. var locationReducedAccuracy = result.locationReducedAccuracy;
  3257. result.locationAccuracy = 'unsupported';
  3258. if (locationReducedAccuracy === true) {
  3259. result.locationAccuracy = 'reduced';
  3260. } else if (locationReducedAccuracy === false) {
  3261. result.locationAccuracy = 'full';
  3262. }
  3263. }
  3264. };
  3265. // import navigateTo from 'uni-helpers/navigate-to'
  3266. var compressImage = {
  3267. args: function args(fromArgs) {
  3268. // https://developers.weixin.qq.com/community/develop/doc/000c08940c865011298e0a43256800?highLine=compressHeight
  3269. if (fromArgs.compressedHeight && !fromArgs.compressHeight) {
  3270. fromArgs.compressHeight = fromArgs.compressedHeight;
  3271. }
  3272. if (fromArgs.compressedWidth && !fromArgs.compressWidth) {
  3273. fromArgs.compressWidth = fromArgs.compressedWidth;
  3274. }
  3275. }
  3276. };
  3277. var protocols = {
  3278. redirectTo: redirectTo,
  3279. // navigateTo, // 由于在微信开发者工具的页面参数,会显示__id__参数,因此暂时关闭mp-weixin对于navigateTo的AOP
  3280. previewImage: previewImage,
  3281. getSystemInfo: getSystemInfo,
  3282. getSystemInfoSync: getSystemInfo,
  3283. showActionSheet: showActionSheet,
  3284. getAppBaseInfo: getAppBaseInfo,
  3285. getDeviceInfo: getDeviceInfo,
  3286. getWindowInfo: getWindowInfo,
  3287. getAppAuthorizeSetting: getAppAuthorizeSetting,
  3288. compressImage: compressImage
  3289. };
  3290. var todos = ['vibrate', 'preloadPage', 'unPreloadPage', 'loadSubPackage'];
  3291. var canIUses = [];
  3292. var CALLBACKS = ['success', 'fail', 'cancel', 'complete'];
  3293. function processCallback(methodName, method, returnValue) {
  3294. return function (res) {
  3295. return method(processReturnValue(methodName, res, returnValue));
  3296. };
  3297. }
  3298. function processArgs(methodName, fromArgs) {
  3299. var argsOption = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
  3300. var returnValue = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : {};
  3301. var keepFromArgs = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : false;
  3302. if (isPlainObject(fromArgs)) {
  3303. // 一般 api 的参数解析
  3304. var toArgs = keepFromArgs === true ? fromArgs : {}; // returnValue 为 false 时,说明是格式化返回值,直接在返回值对象上修改赋值
  3305. if (isFn(argsOption)) {
  3306. argsOption = argsOption(fromArgs, toArgs) || {};
  3307. }
  3308. for (var key in fromArgs) {
  3309. if (hasOwn(argsOption, key)) {
  3310. var keyOption = argsOption[key];
  3311. if (isFn(keyOption)) {
  3312. keyOption = keyOption(fromArgs[key], fromArgs, toArgs);
  3313. }
  3314. if (!keyOption) {
  3315. // 不支持的参数
  3316. console.warn("The '".concat(methodName, "' method of platform '\u5FAE\u4FE1\u5C0F\u7A0B\u5E8F' does not support option '").concat(key, "'"));
  3317. } else if (isStr(keyOption)) {
  3318. // 重写参数 key
  3319. toArgs[keyOption] = fromArgs[key];
  3320. } else if (isPlainObject(keyOption)) {
  3321. // {name:newName,value:value}可重新指定参数 key:value
  3322. toArgs[keyOption.name ? keyOption.name : key] = keyOption.value;
  3323. }
  3324. } else if (CALLBACKS.indexOf(key) !== -1) {
  3325. if (isFn(fromArgs[key])) {
  3326. toArgs[key] = processCallback(methodName, fromArgs[key], returnValue);
  3327. }
  3328. } else {
  3329. if (!keepFromArgs) {
  3330. toArgs[key] = fromArgs[key];
  3331. }
  3332. }
  3333. }
  3334. return toArgs;
  3335. } else if (isFn(fromArgs)) {
  3336. fromArgs = processCallback(methodName, fromArgs, returnValue);
  3337. }
  3338. return fromArgs;
  3339. }
  3340. function processReturnValue(methodName, res, returnValue) {
  3341. var keepReturnValue = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : false;
  3342. if (isFn(protocols.returnValue)) {
  3343. // 处理通用 returnValue
  3344. res = protocols.returnValue(methodName, res);
  3345. }
  3346. return processArgs(methodName, res, returnValue, {}, keepReturnValue);
  3347. }
  3348. function wrapper(methodName, method) {
  3349. if (hasOwn(protocols, methodName)) {
  3350. var protocol = protocols[methodName];
  3351. if (!protocol) {
  3352. // 暂不支持的 api
  3353. return function () {
  3354. console.error("Platform '\u5FAE\u4FE1\u5C0F\u7A0B\u5E8F' does not support '".concat(methodName, "'."));
  3355. };
  3356. }
  3357. return function (arg1, arg2) {
  3358. // 目前 api 最多两个参数
  3359. var options = protocol;
  3360. if (isFn(protocol)) {
  3361. options = protocol(arg1);
  3362. }
  3363. arg1 = processArgs(methodName, arg1, options.args, options.returnValue);
  3364. var args = [arg1];
  3365. if (typeof arg2 !== 'undefined') {
  3366. args.push(arg2);
  3367. }
  3368. if (isFn(options.name)) {
  3369. methodName = options.name(arg1);
  3370. } else if (isStr(options.name)) {
  3371. methodName = options.name;
  3372. }
  3373. var returnValue = wx[methodName].apply(wx, args);
  3374. if (isSyncApi(methodName)) {
  3375. // 同步 api
  3376. return processReturnValue(methodName, returnValue, options.returnValue, isContextApi(methodName));
  3377. }
  3378. return returnValue;
  3379. };
  3380. }
  3381. return method;
  3382. }
  3383. var todoApis = Object.create(null);
  3384. var TODOS = ['onTabBarMidButtonTap', 'subscribePush', 'unsubscribePush', 'onPush', 'offPush', 'share'];
  3385. function createTodoApi(name) {
  3386. return function todoApi(_ref) {
  3387. var fail = _ref.fail,
  3388. complete = _ref.complete;
  3389. var res = {
  3390. errMsg: "".concat(name, ":fail method '").concat(name, "' not supported")
  3391. };
  3392. isFn(fail) && fail(res);
  3393. isFn(complete) && complete(res);
  3394. };
  3395. }
  3396. TODOS.forEach(function (name) {
  3397. todoApis[name] = createTodoApi(name);
  3398. });
  3399. var providers = {
  3400. oauth: ['weixin'],
  3401. share: ['weixin'],
  3402. payment: ['wxpay'],
  3403. push: ['weixin']
  3404. };
  3405. function getProvider(_ref2) {
  3406. var service = _ref2.service,
  3407. success = _ref2.success,
  3408. fail = _ref2.fail,
  3409. complete = _ref2.complete;
  3410. var res = false;
  3411. if (providers[service]) {
  3412. res = {
  3413. errMsg: 'getProvider:ok',
  3414. service: service,
  3415. provider: providers[service]
  3416. };
  3417. isFn(success) && success(res);
  3418. } else {
  3419. res = {
  3420. errMsg: 'getProvider:fail service not found'
  3421. };
  3422. isFn(fail) && fail(res);
  3423. }
  3424. isFn(complete) && complete(res);
  3425. }
  3426. var extraApi = /*#__PURE__*/Object.freeze({
  3427. __proto__: null,
  3428. getProvider: getProvider
  3429. });
  3430. var getEmitter = function () {
  3431. var Emitter;
  3432. return function getUniEmitter() {
  3433. if (!Emitter) {
  3434. Emitter = new _vue.default();
  3435. }
  3436. return Emitter;
  3437. };
  3438. }();
  3439. function apply(ctx, method, args) {
  3440. return ctx[method].apply(ctx, args);
  3441. }
  3442. function $on() {
  3443. return apply(getEmitter(), '$on', Array.prototype.slice.call(arguments));
  3444. }
  3445. function $off() {
  3446. return apply(getEmitter(), '$off', Array.prototype.slice.call(arguments));
  3447. }
  3448. function $once() {
  3449. return apply(getEmitter(), '$once', Array.prototype.slice.call(arguments));
  3450. }
  3451. function $emit() {
  3452. return apply(getEmitter(), '$emit', Array.prototype.slice.call(arguments));
  3453. }
  3454. var eventApi = /*#__PURE__*/Object.freeze({
  3455. __proto__: null,
  3456. $on: $on,
  3457. $off: $off,
  3458. $once: $once,
  3459. $emit: $emit
  3460. });
  3461. /**
  3462. * 框架内 try-catch
  3463. */
  3464. /**
  3465. * 开发者 try-catch
  3466. */
  3467. function tryCatch(fn) {
  3468. return function () {
  3469. try {
  3470. return fn.apply(fn, arguments);
  3471. } catch (e) {
  3472. // TODO
  3473. console.error(e);
  3474. }
  3475. };
  3476. }
  3477. function getApiCallbacks(params) {
  3478. var apiCallbacks = {};
  3479. for (var name in params) {
  3480. var param = params[name];
  3481. if (isFn(param)) {
  3482. apiCallbacks[name] = tryCatch(param);
  3483. delete params[name];
  3484. }
  3485. }
  3486. return apiCallbacks;
  3487. }
  3488. var cid;
  3489. var cidErrMsg;
  3490. var enabled;
  3491. function normalizePushMessage(message) {
  3492. try {
  3493. return JSON.parse(message);
  3494. } catch (e) {}
  3495. return message;
  3496. }
  3497. function invokePushCallback(args) {
  3498. if (args.type === 'enabled') {
  3499. enabled = true;
  3500. } else if (args.type === 'clientId') {
  3501. cid = args.cid;
  3502. cidErrMsg = args.errMsg;
  3503. invokeGetPushCidCallbacks(cid, args.errMsg);
  3504. } else if (args.type === 'pushMsg') {
  3505. var message = {
  3506. type: 'receive',
  3507. data: normalizePushMessage(args.message)
  3508. };
  3509. for (var i = 0; i < onPushMessageCallbacks.length; i++) {
  3510. var callback = onPushMessageCallbacks[i];
  3511. callback(message);
  3512. // 该消息已被阻止
  3513. if (message.stopped) {
  3514. break;
  3515. }
  3516. }
  3517. } else if (args.type === 'click') {
  3518. onPushMessageCallbacks.forEach(function (callback) {
  3519. callback({
  3520. type: 'click',
  3521. data: normalizePushMessage(args.message)
  3522. });
  3523. });
  3524. }
  3525. }
  3526. var getPushCidCallbacks = [];
  3527. function invokeGetPushCidCallbacks(cid, errMsg) {
  3528. getPushCidCallbacks.forEach(function (callback) {
  3529. callback(cid, errMsg);
  3530. });
  3531. getPushCidCallbacks.length = 0;
  3532. }
  3533. function getPushClientId(args) {
  3534. if (!isPlainObject(args)) {
  3535. args = {};
  3536. }
  3537. var _getApiCallbacks = getApiCallbacks(args),
  3538. success = _getApiCallbacks.success,
  3539. fail = _getApiCallbacks.fail,
  3540. complete = _getApiCallbacks.complete;
  3541. var hasSuccess = isFn(success);
  3542. var hasFail = isFn(fail);
  3543. var hasComplete = isFn(complete);
  3544. Promise.resolve().then(function () {
  3545. if (typeof enabled === 'undefined') {
  3546. enabled = false;
  3547. cid = '';
  3548. cidErrMsg = 'uniPush is not enabled';
  3549. }
  3550. getPushCidCallbacks.push(function (cid, errMsg) {
  3551. var res;
  3552. if (cid) {
  3553. res = {
  3554. errMsg: 'getPushClientId:ok',
  3555. cid: cid
  3556. };
  3557. hasSuccess && success(res);
  3558. } else {
  3559. res = {
  3560. errMsg: 'getPushClientId:fail' + (errMsg ? ' ' + errMsg : '')
  3561. };
  3562. hasFail && fail(res);
  3563. }
  3564. hasComplete && complete(res);
  3565. });
  3566. if (typeof cid !== 'undefined') {
  3567. invokeGetPushCidCallbacks(cid, cidErrMsg);
  3568. }
  3569. });
  3570. }
  3571. var onPushMessageCallbacks = [];
  3572. // 不使用 defineOnApi 实现,是因为 defineOnApi 依赖 UniServiceJSBridge ,该对象目前在小程序上未提供,故简单实现
  3573. var onPushMessage = function onPushMessage(fn) {
  3574. if (onPushMessageCallbacks.indexOf(fn) === -1) {
  3575. onPushMessageCallbacks.push(fn);
  3576. }
  3577. };
  3578. var offPushMessage = function offPushMessage(fn) {
  3579. if (!fn) {
  3580. onPushMessageCallbacks.length = 0;
  3581. } else {
  3582. var index = onPushMessageCallbacks.indexOf(fn);
  3583. if (index > -1) {
  3584. onPushMessageCallbacks.splice(index, 1);
  3585. }
  3586. }
  3587. };
  3588. function __f__(type) {
  3589. for (var _len3 = arguments.length, args = new Array(_len3 > 1 ? _len3 - 1 : 0), _key3 = 1; _key3 < _len3; _key3++) {
  3590. args[_key3 - 1] = arguments[_key3];
  3591. }
  3592. console[type].apply(console, args);
  3593. }
  3594. var baseInfo = wx.getAppBaseInfo && wx.getAppBaseInfo();
  3595. if (!baseInfo) {
  3596. baseInfo = wx.getSystemInfoSync();
  3597. }
  3598. var host = baseInfo ? baseInfo.host : null;
  3599. var shareVideoMessage = host && host.env === 'SAAASDK' ? wx.miniapp.shareVideoMessage : wx.shareVideoMessage;
  3600. var api = /*#__PURE__*/Object.freeze({
  3601. __proto__: null,
  3602. shareVideoMessage: shareVideoMessage,
  3603. getPushClientId: getPushClientId,
  3604. onPushMessage: onPushMessage,
  3605. offPushMessage: offPushMessage,
  3606. invokePushCallback: invokePushCallback,
  3607. __f__: __f__
  3608. });
  3609. var mocks = ['__route__', '__wxExparserNodeId__', '__wxWebviewId__'];
  3610. function findVmByVueId(vm, vuePid) {
  3611. var $children = vm.$children;
  3612. // 优先查找直属(反向查找:https://github.com/dcloudio/uni-app/issues/1200)
  3613. for (var i = $children.length - 1; i >= 0; i--) {
  3614. var childVm = $children[i];
  3615. if (childVm.$scope._$vueId === vuePid) {
  3616. return childVm;
  3617. }
  3618. }
  3619. // 反向递归查找
  3620. var parentVm;
  3621. for (var _i = $children.length - 1; _i >= 0; _i--) {
  3622. parentVm = findVmByVueId($children[_i], vuePid);
  3623. if (parentVm) {
  3624. return parentVm;
  3625. }
  3626. }
  3627. }
  3628. function initBehavior(options) {
  3629. return Behavior(options);
  3630. }
  3631. function isPage() {
  3632. return !!this.route;
  3633. }
  3634. function initRelation(detail) {
  3635. this.triggerEvent('__l', detail);
  3636. }
  3637. function selectAllComponents(mpInstance, selector, $refs) {
  3638. var components = mpInstance.selectAllComponents(selector) || [];
  3639. components.forEach(function (component) {
  3640. var ref = component.dataset.ref;
  3641. $refs[ref] = component.$vm || toSkip(component);
  3642. {
  3643. if (component.dataset.vueGeneric === 'scoped') {
  3644. component.selectAllComponents('.scoped-ref').forEach(function (scopedComponent) {
  3645. selectAllComponents(scopedComponent, selector, $refs);
  3646. });
  3647. }
  3648. }
  3649. });
  3650. }
  3651. function syncRefs(refs, newRefs) {
  3652. var oldKeys = (0, _construct2.default)(Set, (0, _toConsumableArray2.default)(Object.keys(refs)));
  3653. var newKeys = Object.keys(newRefs);
  3654. newKeys.forEach(function (key) {
  3655. var oldValue = refs[key];
  3656. var newValue = newRefs[key];
  3657. if (Array.isArray(oldValue) && Array.isArray(newValue) && oldValue.length === newValue.length && newValue.every(function (value) {
  3658. return oldValue.includes(value);
  3659. })) {
  3660. return;
  3661. }
  3662. refs[key] = newValue;
  3663. oldKeys.delete(key);
  3664. });
  3665. oldKeys.forEach(function (key) {
  3666. delete refs[key];
  3667. });
  3668. return refs;
  3669. }
  3670. function initRefs(vm) {
  3671. var mpInstance = vm.$scope;
  3672. var refs = {};
  3673. Object.defineProperty(vm, '$refs', {
  3674. get: function get() {
  3675. var $refs = {};
  3676. selectAllComponents(mpInstance, '.vue-ref', $refs);
  3677. // TODO 暂不考虑 for 中的 scoped
  3678. var forComponents = mpInstance.selectAllComponents('.vue-ref-in-for') || [];
  3679. forComponents.forEach(function (component) {
  3680. var ref = component.dataset.ref;
  3681. if (!$refs[ref]) {
  3682. $refs[ref] = [];
  3683. }
  3684. $refs[ref].push(component.$vm || toSkip(component));
  3685. });
  3686. return syncRefs(refs, $refs);
  3687. }
  3688. });
  3689. }
  3690. function handleLink(event) {
  3691. var _ref3 = event.detail || event.value,
  3692. vuePid = _ref3.vuePid,
  3693. vueOptions = _ref3.vueOptions; // detail 是微信,value 是百度(dipatch)
  3694. var parentVm;
  3695. if (vuePid) {
  3696. parentVm = findVmByVueId(this.$vm, vuePid);
  3697. }
  3698. if (!parentVm) {
  3699. parentVm = this.$vm;
  3700. }
  3701. vueOptions.parent = parentVm;
  3702. }
  3703. function markMPComponent(component) {
  3704. // 在 Vue 中标记为小程序组件
  3705. var IS_MP = '__v_isMPComponent';
  3706. Object.defineProperty(component, IS_MP, {
  3707. configurable: true,
  3708. enumerable: false,
  3709. value: true
  3710. });
  3711. return component;
  3712. }
  3713. function toSkip(obj) {
  3714. var OB = '__ob__';
  3715. var SKIP = '__v_skip';
  3716. if (isObject(obj) && Object.isExtensible(obj)) {
  3717. // 避免被 @vue/composition-api 观测
  3718. Object.defineProperty(obj, OB, {
  3719. configurable: true,
  3720. enumerable: false,
  3721. value: (0, _defineProperty2.default)({}, SKIP, true)
  3722. });
  3723. }
  3724. return obj;
  3725. }
  3726. var WORKLET_RE = /_(.*)_worklet_factory_/;
  3727. function initWorkletMethods(mpMethods, vueMethods) {
  3728. if (vueMethods) {
  3729. Object.keys(vueMethods).forEach(function (name) {
  3730. var matches = name.match(WORKLET_RE);
  3731. if (matches) {
  3732. var workletName = matches[1];
  3733. mpMethods[name] = vueMethods[name];
  3734. mpMethods[workletName] = vueMethods[workletName];
  3735. }
  3736. });
  3737. }
  3738. }
  3739. var MPPage = Page;
  3740. var MPComponent = Component;
  3741. var customizeRE = /:/g;
  3742. var customize = cached(function (str) {
  3743. return camelize(str.replace(customizeRE, '-'));
  3744. });
  3745. function initTriggerEvent(mpInstance) {
  3746. var oldTriggerEvent = mpInstance.triggerEvent;
  3747. var newTriggerEvent = function newTriggerEvent(event) {
  3748. for (var _len4 = arguments.length, args = new Array(_len4 > 1 ? _len4 - 1 : 0), _key4 = 1; _key4 < _len4; _key4++) {
  3749. args[_key4 - 1] = arguments[_key4];
  3750. }
  3751. // 事件名统一转驼峰格式,仅处理:当前组件为 vue 组件、当前组件为 vue 组件子组件
  3752. if (this.$vm || this.dataset && this.dataset.comType) {
  3753. event = customize(event);
  3754. } else {
  3755. // 针对微信/QQ小程序单独补充驼峰格式事件,以兼容历史项目
  3756. var newEvent = customize(event);
  3757. if (newEvent !== event) {
  3758. oldTriggerEvent.apply(this, [newEvent].concat(args));
  3759. }
  3760. }
  3761. return oldTriggerEvent.apply(this, [event].concat(args));
  3762. };
  3763. try {
  3764. // 京东小程序 triggerEvent 为只读
  3765. mpInstance.triggerEvent = newTriggerEvent;
  3766. } catch (error) {
  3767. mpInstance._triggerEvent = newTriggerEvent;
  3768. }
  3769. }
  3770. function initHook(name, options, isComponent) {
  3771. var oldHook = options[name];
  3772. options[name] = function () {
  3773. markMPComponent(this);
  3774. initTriggerEvent(this);
  3775. if (oldHook) {
  3776. for (var _len5 = arguments.length, args = new Array(_len5), _key5 = 0; _key5 < _len5; _key5++) {
  3777. args[_key5] = arguments[_key5];
  3778. }
  3779. return oldHook.apply(this, args);
  3780. }
  3781. };
  3782. }
  3783. if (!MPPage.__$wrappered) {
  3784. MPPage.__$wrappered = true;
  3785. Page = function Page() {
  3786. var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
  3787. initHook('onLoad', options);
  3788. return MPPage(options);
  3789. };
  3790. Page.after = MPPage.after;
  3791. Component = function Component() {
  3792. var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
  3793. initHook('created', options);
  3794. return MPComponent(options);
  3795. };
  3796. }
  3797. var PAGE_EVENT_HOOKS = ['onPullDownRefresh', 'onReachBottom', 'onAddToFavorites', 'onShareTimeline', 'onShareAppMessage', 'onPageScroll', 'onResize', 'onTabItemTap'];
  3798. function initMocks(vm, mocks) {
  3799. var mpInstance = vm.$mp[vm.mpType];
  3800. mocks.forEach(function (mock) {
  3801. if (hasOwn(mpInstance, mock)) {
  3802. vm[mock] = mpInstance[mock];
  3803. }
  3804. });
  3805. }
  3806. function hasHook(hook, vueOptions) {
  3807. if (!vueOptions) {
  3808. return true;
  3809. }
  3810. if (_vue.default.options && Array.isArray(_vue.default.options[hook])) {
  3811. return true;
  3812. }
  3813. vueOptions = vueOptions.default || vueOptions;
  3814. if (isFn(vueOptions)) {
  3815. if (isFn(vueOptions.extendOptions[hook])) {
  3816. return true;
  3817. }
  3818. if (vueOptions.super && vueOptions.super.options && Array.isArray(vueOptions.super.options[hook])) {
  3819. return true;
  3820. }
  3821. return false;
  3822. }
  3823. if (isFn(vueOptions[hook]) || Array.isArray(vueOptions[hook])) {
  3824. return true;
  3825. }
  3826. var mixins = vueOptions.mixins;
  3827. if (Array.isArray(mixins)) {
  3828. return !!mixins.find(function (mixin) {
  3829. return hasHook(hook, mixin);
  3830. });
  3831. }
  3832. }
  3833. function initHooks(mpOptions, hooks, vueOptions) {
  3834. hooks.forEach(function (hook) {
  3835. if (hasHook(hook, vueOptions)) {
  3836. mpOptions[hook] = function (args) {
  3837. return this.$vm && this.$vm.__call_hook(hook, args);
  3838. };
  3839. }
  3840. });
  3841. }
  3842. function initUnknownHooks(mpOptions, vueOptions) {
  3843. var excludes = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : [];
  3844. findHooks(vueOptions).forEach(function (hook) {
  3845. return initHook$1(mpOptions, hook, excludes);
  3846. });
  3847. }
  3848. function findHooks(vueOptions) {
  3849. var hooks = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : [];
  3850. if (vueOptions) {
  3851. Object.keys(vueOptions).forEach(function (name) {
  3852. if (name.indexOf('on') === 0 && isFn(vueOptions[name])) {
  3853. hooks.push(name);
  3854. }
  3855. });
  3856. }
  3857. return hooks;
  3858. }
  3859. function initHook$1(mpOptions, hook, excludes) {
  3860. if (excludes.indexOf(hook) === -1 && !hasOwn(mpOptions, hook)) {
  3861. mpOptions[hook] = function (args) {
  3862. return this.$vm && this.$vm.__call_hook(hook, args);
  3863. };
  3864. }
  3865. }
  3866. function initVueComponent(Vue, vueOptions) {
  3867. vueOptions = vueOptions.default || vueOptions;
  3868. var VueComponent;
  3869. if (isFn(vueOptions)) {
  3870. VueComponent = vueOptions;
  3871. } else {
  3872. VueComponent = Vue.extend(vueOptions);
  3873. }
  3874. vueOptions = VueComponent.options;
  3875. return [VueComponent, vueOptions];
  3876. }
  3877. function initSlots(vm, vueSlots) {
  3878. if (Array.isArray(vueSlots) && vueSlots.length) {
  3879. var $slots = Object.create(null);
  3880. vueSlots.forEach(function (slotName) {
  3881. $slots[slotName] = true;
  3882. });
  3883. vm.$scopedSlots = vm.$slots = $slots;
  3884. }
  3885. }
  3886. function initVueIds(vueIds, mpInstance) {
  3887. vueIds = (vueIds || '').split(',');
  3888. var len = vueIds.length;
  3889. if (len === 1) {
  3890. mpInstance._$vueId = vueIds[0];
  3891. } else if (len === 2) {
  3892. mpInstance._$vueId = vueIds[0];
  3893. mpInstance._$vuePid = vueIds[1];
  3894. }
  3895. }
  3896. function initData(vueOptions, context) {
  3897. var data = vueOptions.data || {};
  3898. var methods = vueOptions.methods || {};
  3899. if (typeof data === 'function') {
  3900. try {
  3901. data = data.call(context); // 支持 Vue.prototype 上挂的数据
  3902. } catch (e) {
  3903. if (Object({"NODE_ENV":"development","VUE_APP_DARK_MODE":"false","VUE_APP_NAME":"产品化管理端","VUE_APP_PLATFORM":"mp-weixin","BASE_URL":"/"}).VUE_APP_DEBUG) {
  3904. console.warn('根据 Vue 的 data 函数初始化小程序 data 失败,请尽量确保 data 函数中不访问 vm 对象,否则可能影响首次数据渲染速度。', data);
  3905. }
  3906. }
  3907. } else {
  3908. try {
  3909. // 对 data 格式化
  3910. data = JSON.parse(JSON.stringify(data));
  3911. } catch (e) {}
  3912. }
  3913. if (!isPlainObject(data)) {
  3914. data = {};
  3915. }
  3916. Object.keys(methods).forEach(function (methodName) {
  3917. if (context.__lifecycle_hooks__.indexOf(methodName) === -1 && !hasOwn(data, methodName)) {
  3918. data[methodName] = methods[methodName];
  3919. }
  3920. });
  3921. return data;
  3922. }
  3923. var PROP_TYPES = [String, Number, Boolean, Object, Array, null];
  3924. function createObserver(name) {
  3925. return function observer(newVal, oldVal) {
  3926. if (this.$vm) {
  3927. this.$vm[name] = newVal; // 为了触发其他非 render watcher
  3928. }
  3929. };
  3930. }
  3931. function initBehaviors(vueOptions, initBehavior) {
  3932. var vueBehaviors = vueOptions.behaviors;
  3933. var vueExtends = vueOptions.extends;
  3934. var vueMixins = vueOptions.mixins;
  3935. var vueProps = vueOptions.props;
  3936. if (!vueProps) {
  3937. vueOptions.props = vueProps = [];
  3938. }
  3939. var behaviors = [];
  3940. if (Array.isArray(vueBehaviors)) {
  3941. vueBehaviors.forEach(function (behavior) {
  3942. behaviors.push(behavior.replace('uni://', "wx".concat("://")));
  3943. if (behavior === 'uni://form-field') {
  3944. if (Array.isArray(vueProps)) {
  3945. vueProps.push('name');
  3946. vueProps.push('value');
  3947. } else {
  3948. vueProps.name = {
  3949. type: String,
  3950. default: ''
  3951. };
  3952. vueProps.value = {
  3953. type: [String, Number, Boolean, Array, Object, Date],
  3954. default: ''
  3955. };
  3956. }
  3957. }
  3958. });
  3959. }
  3960. if (isPlainObject(vueExtends) && vueExtends.props) {
  3961. behaviors.push(initBehavior({
  3962. properties: initProperties(vueExtends.props, true)
  3963. }));
  3964. }
  3965. if (Array.isArray(vueMixins)) {
  3966. vueMixins.forEach(function (vueMixin) {
  3967. if (isPlainObject(vueMixin) && vueMixin.props) {
  3968. behaviors.push(initBehavior({
  3969. properties: initProperties(vueMixin.props, true)
  3970. }));
  3971. }
  3972. });
  3973. }
  3974. return behaviors;
  3975. }
  3976. function parsePropType(key, type, defaultValue, file) {
  3977. // [String]=>String
  3978. if (Array.isArray(type) && type.length === 1) {
  3979. return type[0];
  3980. }
  3981. return type;
  3982. }
  3983. function initProperties(props) {
  3984. var isBehavior = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
  3985. var file = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : '';
  3986. var options = arguments.length > 3 ? arguments[3] : undefined;
  3987. var properties = {};
  3988. if (!isBehavior) {
  3989. properties.vueId = {
  3990. type: String,
  3991. value: ''
  3992. };
  3993. {
  3994. if (options.virtualHost) {
  3995. properties.virtualHostStyle = {
  3996. type: null,
  3997. value: ''
  3998. };
  3999. properties.virtualHostClass = {
  4000. type: null,
  4001. value: ''
  4002. };
  4003. }
  4004. }
  4005. // scopedSlotsCompiler auto
  4006. properties.scopedSlotsCompiler = {
  4007. type: String,
  4008. value: ''
  4009. };
  4010. properties.vueSlots = {
  4011. // 小程序不能直接定义 $slots 的 props,所以通过 vueSlots 转换到 $slots
  4012. type: null,
  4013. value: [],
  4014. observer: function observer(newVal, oldVal) {
  4015. var $slots = Object.create(null);
  4016. newVal.forEach(function (slotName) {
  4017. $slots[slotName] = true;
  4018. });
  4019. this.setData({
  4020. $slots: $slots
  4021. });
  4022. }
  4023. };
  4024. }
  4025. if (Array.isArray(props)) {
  4026. // ['title']
  4027. props.forEach(function (key) {
  4028. properties[key] = {
  4029. type: null,
  4030. observer: createObserver(key)
  4031. };
  4032. });
  4033. } else if (isPlainObject(props)) {
  4034. // {title:{type:String,default:''},content:String}
  4035. Object.keys(props).forEach(function (key) {
  4036. var opts = props[key];
  4037. if (isPlainObject(opts)) {
  4038. // title:{type:String,default:''}
  4039. var value = opts.default;
  4040. if (isFn(value)) {
  4041. value = value();
  4042. }
  4043. opts.type = parsePropType(key, opts.type);
  4044. properties[key] = {
  4045. type: PROP_TYPES.indexOf(opts.type) !== -1 ? opts.type : null,
  4046. value: value,
  4047. observer: createObserver(key)
  4048. };
  4049. } else {
  4050. // content:String
  4051. var type = parsePropType(key, opts);
  4052. properties[key] = {
  4053. type: PROP_TYPES.indexOf(type) !== -1 ? type : null,
  4054. observer: createObserver(key)
  4055. };
  4056. }
  4057. });
  4058. }
  4059. return properties;
  4060. }
  4061. function wrapper$1(event) {
  4062. // TODO 又得兼容 mpvue 的 mp 对象
  4063. try {
  4064. event.mp = JSON.parse(JSON.stringify(event));
  4065. } catch (e) {}
  4066. event.stopPropagation = noop;
  4067. event.preventDefault = noop;
  4068. event.target = event.target || {};
  4069. if (!hasOwn(event, 'detail')) {
  4070. event.detail = {};
  4071. }
  4072. if (hasOwn(event, 'markerId')) {
  4073. event.detail = (0, _typeof2.default)(event.detail) === 'object' ? event.detail : {};
  4074. event.detail.markerId = event.markerId;
  4075. }
  4076. if (isPlainObject(event.detail)) {
  4077. event.target = Object.assign({}, event.target, event.detail);
  4078. }
  4079. return event;
  4080. }
  4081. function getExtraValue(vm, dataPathsArray) {
  4082. var context = vm;
  4083. dataPathsArray.forEach(function (dataPathArray) {
  4084. var dataPath = dataPathArray[0];
  4085. var value = dataPathArray[2];
  4086. if (dataPath || typeof value !== 'undefined') {
  4087. // ['','',index,'disable']
  4088. var propPath = dataPathArray[1];
  4089. var valuePath = dataPathArray[3];
  4090. var vFor;
  4091. if (Number.isInteger(dataPath)) {
  4092. vFor = dataPath;
  4093. } else if (!dataPath) {
  4094. vFor = context;
  4095. } else if (typeof dataPath === 'string' && dataPath) {
  4096. if (dataPath.indexOf('#s#') === 0) {
  4097. vFor = dataPath.substr(3);
  4098. } else {
  4099. vFor = vm.__get_value(dataPath, context);
  4100. }
  4101. }
  4102. if (Number.isInteger(vFor)) {
  4103. context = value;
  4104. } else if (!propPath) {
  4105. context = vFor[value];
  4106. } else {
  4107. if (Array.isArray(vFor)) {
  4108. context = vFor.find(function (vForItem) {
  4109. return vm.__get_value(propPath, vForItem) === value;
  4110. });
  4111. } else if (isPlainObject(vFor)) {
  4112. context = Object.keys(vFor).find(function (vForKey) {
  4113. return vm.__get_value(propPath, vFor[vForKey]) === value;
  4114. });
  4115. } else {
  4116. console.error('v-for 暂不支持循环数据:', vFor);
  4117. }
  4118. }
  4119. if (valuePath) {
  4120. context = vm.__get_value(valuePath, context);
  4121. }
  4122. }
  4123. });
  4124. return context;
  4125. }
  4126. function processEventExtra(vm, extra, event, __args__) {
  4127. var extraObj = {};
  4128. if (Array.isArray(extra) && extra.length) {
  4129. /**
  4130. *[
  4131. * ['data.items', 'data.id', item.data.id],
  4132. * ['metas', 'id', meta.id]
  4133. *],
  4134. *[
  4135. * ['data.items', 'data.id', item.data.id],
  4136. * ['metas', 'id', meta.id]
  4137. *],
  4138. *'test'
  4139. */
  4140. extra.forEach(function (dataPath, index) {
  4141. if (typeof dataPath === 'string') {
  4142. if (!dataPath) {
  4143. // model,prop.sync
  4144. extraObj['$' + index] = vm;
  4145. } else {
  4146. if (dataPath === '$event') {
  4147. // $event
  4148. extraObj['$' + index] = event;
  4149. } else if (dataPath === 'arguments') {
  4150. extraObj['$' + index] = event.detail ? event.detail.__args__ || __args__ : __args__;
  4151. } else if (dataPath.indexOf('$event.') === 0) {
  4152. // $event.target.value
  4153. extraObj['$' + index] = vm.__get_value(dataPath.replace('$event.', ''), event);
  4154. } else {
  4155. extraObj['$' + index] = vm.__get_value(dataPath);
  4156. }
  4157. }
  4158. } else {
  4159. extraObj['$' + index] = getExtraValue(vm, dataPath);
  4160. }
  4161. });
  4162. }
  4163. return extraObj;
  4164. }
  4165. function getObjByArray(arr) {
  4166. var obj = {};
  4167. for (var i = 1; i < arr.length; i++) {
  4168. var element = arr[i];
  4169. obj[element[0]] = element[1];
  4170. }
  4171. return obj;
  4172. }
  4173. function processEventArgs(vm, event) {
  4174. var args = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : [];
  4175. var extra = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : [];
  4176. var isCustom = arguments.length > 4 ? arguments[4] : undefined;
  4177. var methodName = arguments.length > 5 ? arguments[5] : undefined;
  4178. var isCustomMPEvent = false; // wxcomponent 组件,传递原始 event 对象
  4179. // fixed 用户直接触发 mpInstance.triggerEvent
  4180. var __args__ = isPlainObject(event.detail) ? event.detail.__args__ || [event.detail] : [event.detail];
  4181. if (isCustom) {
  4182. // 自定义事件
  4183. isCustomMPEvent = event.currentTarget && event.currentTarget.dataset && event.currentTarget.dataset.comType === 'wx';
  4184. if (!args.length) {
  4185. // 无参数,直接传入 event 或 detail 数组
  4186. if (isCustomMPEvent) {
  4187. return [event];
  4188. }
  4189. return __args__;
  4190. }
  4191. }
  4192. var extraObj = processEventExtra(vm, extra, event, __args__);
  4193. var ret = [];
  4194. args.forEach(function (arg) {
  4195. if (arg === '$event') {
  4196. if (methodName === '__set_model' && !isCustom) {
  4197. // input v-model value
  4198. ret.push(event.target.value);
  4199. } else {
  4200. if (isCustom && !isCustomMPEvent) {
  4201. ret.push(__args__[0]);
  4202. } else {
  4203. // wxcomponent 组件或内置组件
  4204. ret.push(event);
  4205. }
  4206. }
  4207. } else {
  4208. if (Array.isArray(arg) && arg[0] === 'o') {
  4209. ret.push(getObjByArray(arg));
  4210. } else if (typeof arg === 'string' && hasOwn(extraObj, arg)) {
  4211. ret.push(extraObj[arg]);
  4212. } else {
  4213. ret.push(arg);
  4214. }
  4215. }
  4216. });
  4217. return ret;
  4218. }
  4219. var ONCE = '~';
  4220. var CUSTOM = '^';
  4221. function isMatchEventType(eventType, optType) {
  4222. return eventType === optType || optType === 'regionchange' && (eventType === 'begin' || eventType === 'end');
  4223. }
  4224. function getContextVm(vm) {
  4225. var $parent = vm.$parent;
  4226. // 父组件是 scoped slots 或者其他自定义组件时继续查找
  4227. while ($parent && $parent.$parent && ($parent.$options.generic || $parent.$parent.$options.generic || $parent.$scope._$vuePid)) {
  4228. $parent = $parent.$parent;
  4229. }
  4230. return $parent && $parent.$parent;
  4231. }
  4232. function handleEvent(event) {
  4233. var _this2 = this;
  4234. event = wrapper$1(event);
  4235. // [['tap',[['handle',[1,2,a]],['handle1',[1,2,a]]]]]
  4236. var dataset = (event.currentTarget || event.target).dataset;
  4237. if (!dataset) {
  4238. return console.warn('事件信息不存在');
  4239. }
  4240. var eventOpts = dataset.eventOpts || dataset['event-opts']; // 支付宝 web-view 组件 dataset 非驼峰
  4241. if (!eventOpts) {
  4242. return console.warn('事件信息不存在');
  4243. }
  4244. // [['handle',[1,2,a]],['handle1',[1,2,a]]]
  4245. var eventType = event.type;
  4246. var ret = [];
  4247. eventOpts.forEach(function (eventOpt) {
  4248. var type = eventOpt[0];
  4249. var eventsArray = eventOpt[1];
  4250. var isCustom = type.charAt(0) === CUSTOM;
  4251. type = isCustom ? type.slice(1) : type;
  4252. var isOnce = type.charAt(0) === ONCE;
  4253. type = isOnce ? type.slice(1) : type;
  4254. if (eventsArray && isMatchEventType(eventType, type)) {
  4255. eventsArray.forEach(function (eventArray) {
  4256. var methodName = eventArray[0];
  4257. if (methodName) {
  4258. var handlerCtx = _this2.$vm;
  4259. if (handlerCtx.$options.generic) {
  4260. // mp-weixin,mp-toutiao 抽象节点模拟 scoped slots
  4261. handlerCtx = getContextVm(handlerCtx) || handlerCtx;
  4262. }
  4263. if (methodName === '$emit') {
  4264. handlerCtx.$emit.apply(handlerCtx, processEventArgs(_this2.$vm, event, eventArray[1], eventArray[2], isCustom, methodName));
  4265. return;
  4266. }
  4267. var handler = handlerCtx[methodName];
  4268. if (!isFn(handler)) {
  4269. var _type = _this2.$vm.mpType === 'page' ? 'Page' : 'Component';
  4270. var path = _this2.route || _this2.is;
  4271. throw new Error("".concat(_type, " \"").concat(path, "\" does not have a method \"").concat(methodName, "\""));
  4272. }
  4273. if (isOnce) {
  4274. if (handler.once) {
  4275. return;
  4276. }
  4277. handler.once = true;
  4278. }
  4279. var params = processEventArgs(_this2.$vm, event, eventArray[1], eventArray[2], isCustom, methodName);
  4280. params = Array.isArray(params) ? params : [];
  4281. // 参数尾部增加原始事件对象用于复杂表达式内获取额外数据
  4282. if (/=\s*\S+\.eventParams\s*\|\|\s*\S+\[['"]event-params['"]\]/.test(handler.toString())) {
  4283. // eslint-disable-next-line no-sparse-arrays
  4284. params = params.concat([,,,,,,,,,, event]);
  4285. }
  4286. ret.push(handler.apply(handlerCtx, params));
  4287. }
  4288. });
  4289. }
  4290. });
  4291. if (eventType === 'input' && ret.length === 1 && typeof ret[0] !== 'undefined') {
  4292. return ret[0];
  4293. }
  4294. }
  4295. var eventChannels = {};
  4296. function getEventChannel(id) {
  4297. var eventChannel = eventChannels[id];
  4298. delete eventChannels[id];
  4299. return eventChannel;
  4300. }
  4301. var hooks = ['onShow', 'onHide', 'onError', 'onPageNotFound', 'onThemeChange', 'onUnhandledRejection'];
  4302. function initEventChannel() {
  4303. _vue.default.prototype.getOpenerEventChannel = function () {
  4304. // 微信小程序使用自身getOpenerEventChannel
  4305. {
  4306. return this.$scope.getOpenerEventChannel();
  4307. }
  4308. };
  4309. var callHook = _vue.default.prototype.__call_hook;
  4310. _vue.default.prototype.__call_hook = function (hook, args) {
  4311. if (hook === 'onLoad' && args && args.__id__) {
  4312. this.__eventChannel__ = getEventChannel(args.__id__);
  4313. delete args.__id__;
  4314. }
  4315. return callHook.call(this, hook, args);
  4316. };
  4317. }
  4318. function initScopedSlotsParams() {
  4319. var center = {};
  4320. var parents = {};
  4321. function currentId(fn) {
  4322. var vueIds = this.$options.propsData.vueId;
  4323. if (vueIds) {
  4324. var vueId = vueIds.split(',')[0];
  4325. fn(vueId);
  4326. }
  4327. }
  4328. _vue.default.prototype.$hasSSP = function (vueId) {
  4329. var slot = center[vueId];
  4330. if (!slot) {
  4331. parents[vueId] = this;
  4332. this.$on('hook:destroyed', function () {
  4333. delete parents[vueId];
  4334. });
  4335. }
  4336. return slot;
  4337. };
  4338. _vue.default.prototype.$getSSP = function (vueId, name, needAll) {
  4339. var slot = center[vueId];
  4340. if (slot) {
  4341. var params = slot[name] || [];
  4342. if (needAll) {
  4343. return params;
  4344. }
  4345. return params[0];
  4346. }
  4347. };
  4348. _vue.default.prototype.$setSSP = function (name, value) {
  4349. var index = 0;
  4350. currentId.call(this, function (vueId) {
  4351. var slot = center[vueId];
  4352. var params = slot[name] = slot[name] || [];
  4353. params.push(value);
  4354. index = params.length - 1;
  4355. });
  4356. return index;
  4357. };
  4358. _vue.default.prototype.$initSSP = function () {
  4359. currentId.call(this, function (vueId) {
  4360. center[vueId] = {};
  4361. });
  4362. };
  4363. _vue.default.prototype.$callSSP = function () {
  4364. currentId.call(this, function (vueId) {
  4365. if (parents[vueId]) {
  4366. parents[vueId].$forceUpdate();
  4367. }
  4368. });
  4369. };
  4370. _vue.default.mixin({
  4371. destroyed: function destroyed() {
  4372. var propsData = this.$options.propsData;
  4373. var vueId = propsData && propsData.vueId;
  4374. if (vueId) {
  4375. delete center[vueId];
  4376. delete parents[vueId];
  4377. }
  4378. }
  4379. });
  4380. }
  4381. function parseBaseApp(vm, _ref4) {
  4382. var mocks = _ref4.mocks,
  4383. initRefs = _ref4.initRefs;
  4384. initEventChannel();
  4385. {
  4386. initScopedSlotsParams();
  4387. }
  4388. if (vm.$options.store) {
  4389. _vue.default.prototype.$store = vm.$options.store;
  4390. }
  4391. uniIdMixin(_vue.default);
  4392. _vue.default.prototype.mpHost = "mp-weixin";
  4393. _vue.default.mixin({
  4394. beforeCreate: function beforeCreate() {
  4395. if (!this.$options.mpType) {
  4396. return;
  4397. }
  4398. this.mpType = this.$options.mpType;
  4399. this.$mp = (0, _defineProperty2.default)({
  4400. data: {}
  4401. }, this.mpType, this.$options.mpInstance);
  4402. this.$scope = this.$options.mpInstance;
  4403. delete this.$options.mpType;
  4404. delete this.$options.mpInstance;
  4405. if (this.mpType === 'page' && typeof getApp === 'function') {
  4406. // hack vue-i18n
  4407. var app = getApp();
  4408. if (app.$vm && app.$vm.$i18n) {
  4409. this._i18n = app.$vm.$i18n;
  4410. }
  4411. }
  4412. if (this.mpType !== 'app') {
  4413. initRefs(this);
  4414. initMocks(this, mocks);
  4415. }
  4416. }
  4417. });
  4418. var appOptions = {
  4419. onLaunch: function onLaunch(args) {
  4420. if (this.$vm) {
  4421. // 已经初始化过了,主要是为了百度,百度 onShow 在 onLaunch 之前
  4422. return;
  4423. }
  4424. {
  4425. if (wx.canIUse && !wx.canIUse('nextTick')) {
  4426. // 事实 上2.2.3 即可,简单使用 2.3.0 的 nextTick 判断
  4427. console.error('当前微信基础库版本过低,请将 微信开发者工具-详情-项目设置-调试基础库版本 更换为`2.3.0`以上');
  4428. }
  4429. }
  4430. this.$vm = vm;
  4431. this.$vm.$mp = {
  4432. app: this
  4433. };
  4434. this.$vm.$scope = this;
  4435. // vm 上也挂载 globalData
  4436. this.$vm.globalData = this.globalData;
  4437. this.$vm._isMounted = true;
  4438. this.$vm.__call_hook('mounted', args);
  4439. this.$vm.__call_hook('onLaunch', args);
  4440. }
  4441. };
  4442. // 兼容旧版本 globalData
  4443. appOptions.globalData = vm.$options.globalData || {};
  4444. // 将 methods 中的方法挂在 getApp() 中
  4445. var methods = vm.$options.methods;
  4446. if (methods) {
  4447. Object.keys(methods).forEach(function (name) {
  4448. appOptions[name] = methods[name];
  4449. });
  4450. }
  4451. initAppLocale(_vue.default, vm, getLocaleLanguage$1());
  4452. initHooks(appOptions, hooks);
  4453. initUnknownHooks(appOptions, vm.$options);
  4454. return appOptions;
  4455. }
  4456. function getLocaleLanguage$1() {
  4457. var localeLanguage = '';
  4458. {
  4459. var appBaseInfo = wx.getAppBaseInfo();
  4460. var language = appBaseInfo && appBaseInfo.language ? appBaseInfo.language : LOCALE_EN;
  4461. localeLanguage = normalizeLocale(language) || LOCALE_EN;
  4462. }
  4463. return localeLanguage;
  4464. }
  4465. function parseApp(vm) {
  4466. return parseBaseApp(vm, {
  4467. mocks: mocks,
  4468. initRefs: initRefs
  4469. });
  4470. }
  4471. function createApp(vm) {
  4472. App(parseApp(vm));
  4473. return vm;
  4474. }
  4475. var encodeReserveRE = /[!'()*]/g;
  4476. var encodeReserveReplacer = function encodeReserveReplacer(c) {
  4477. return '%' + c.charCodeAt(0).toString(16);
  4478. };
  4479. var commaRE = /%2C/g;
  4480. // fixed encodeURIComponent which is more conformant to RFC3986:
  4481. // - escapes [!'()*]
  4482. // - preserve commas
  4483. var encode = function encode(str) {
  4484. return encodeURIComponent(str).replace(encodeReserveRE, encodeReserveReplacer).replace(commaRE, ',');
  4485. };
  4486. function stringifyQuery(obj) {
  4487. var encodeStr = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : encode;
  4488. var res = obj ? Object.keys(obj).map(function (key) {
  4489. var val = obj[key];
  4490. if (val === undefined) {
  4491. return '';
  4492. }
  4493. if (val === null) {
  4494. return encodeStr(key);
  4495. }
  4496. if (Array.isArray(val)) {
  4497. var result = [];
  4498. val.forEach(function (val2) {
  4499. if (val2 === undefined) {
  4500. return;
  4501. }
  4502. if (val2 === null) {
  4503. result.push(encodeStr(key));
  4504. } else {
  4505. result.push(encodeStr(key) + '=' + encodeStr(val2));
  4506. }
  4507. });
  4508. return result.join('&');
  4509. }
  4510. return encodeStr(key) + '=' + encodeStr(val);
  4511. }).filter(function (x) {
  4512. return x.length > 0;
  4513. }).join('&') : null;
  4514. return res ? "?".concat(res) : '';
  4515. }
  4516. function parseBaseComponent(vueComponentOptions) {
  4517. var _ref5 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {},
  4518. isPage = _ref5.isPage,
  4519. initRelation = _ref5.initRelation;
  4520. var needVueOptions = arguments.length > 2 ? arguments[2] : undefined;
  4521. var _initVueComponent = initVueComponent(_vue.default, vueComponentOptions),
  4522. _initVueComponent2 = (0, _slicedToArray2.default)(_initVueComponent, 2),
  4523. VueComponent = _initVueComponent2[0],
  4524. vueOptions = _initVueComponent2[1];
  4525. var options = _objectSpread({
  4526. multipleSlots: true,
  4527. // styleIsolation: 'apply-shared',
  4528. addGlobalClass: true
  4529. }, vueOptions.options || {});
  4530. {
  4531. // 微信 multipleSlots 部分情况有 bug,导致内容顺序错乱 如 u-list,提供覆盖选项
  4532. if (vueOptions['mp-weixin'] && vueOptions['mp-weixin'].options) {
  4533. Object.assign(options, vueOptions['mp-weixin'].options);
  4534. }
  4535. }
  4536. var componentOptions = {
  4537. options: options,
  4538. data: initData(vueOptions, _vue.default.prototype),
  4539. behaviors: initBehaviors(vueOptions, initBehavior),
  4540. properties: initProperties(vueOptions.props, false, vueOptions.__file, options),
  4541. lifetimes: {
  4542. attached: function attached() {
  4543. var properties = this.properties;
  4544. var options = {
  4545. mpType: isPage.call(this) ? 'page' : 'component',
  4546. mpInstance: this,
  4547. propsData: properties
  4548. };
  4549. initVueIds(properties.vueId, this);
  4550. // 处理父子关系
  4551. initRelation.call(this, {
  4552. vuePid: this._$vuePid,
  4553. vueOptions: options
  4554. });
  4555. // 初始化 vue 实例
  4556. this.$vm = new VueComponent(options);
  4557. // 处理$slots,$scopedSlots(暂不支持动态变化$slots)
  4558. initSlots(this.$vm, properties.vueSlots);
  4559. // 触发首次 setData
  4560. this.$vm.$mount();
  4561. },
  4562. ready: function ready() {
  4563. // 当组件 props 默认值为 true,初始化时传入 false 会导致 created,ready 触发, 但 attached 不触发
  4564. // https://developers.weixin.qq.com/community/develop/doc/00066ae2844cc0f8eb883e2a557800
  4565. if (this.$vm) {
  4566. this.$vm._isMounted = true;
  4567. this.$vm.__call_hook('mounted');
  4568. this.$vm.__call_hook('onReady');
  4569. }
  4570. },
  4571. detached: function detached() {
  4572. this.$vm && this.$vm.$destroy();
  4573. }
  4574. },
  4575. pageLifetimes: {
  4576. show: function show(args) {
  4577. this.$vm && this.$vm.__call_hook('onPageShow', args);
  4578. },
  4579. hide: function hide() {
  4580. this.$vm && this.$vm.__call_hook('onPageHide');
  4581. },
  4582. resize: function resize(size) {
  4583. this.$vm && this.$vm.__call_hook('onPageResize', size);
  4584. }
  4585. },
  4586. methods: {
  4587. __l: handleLink,
  4588. __e: handleEvent
  4589. }
  4590. };
  4591. // externalClasses
  4592. if (vueOptions.externalClasses) {
  4593. componentOptions.externalClasses = vueOptions.externalClasses;
  4594. }
  4595. if (Array.isArray(vueOptions.wxsCallMethods)) {
  4596. vueOptions.wxsCallMethods.forEach(function (callMethod) {
  4597. componentOptions.methods[callMethod] = function (args) {
  4598. return this.$vm[callMethod](args);
  4599. };
  4600. });
  4601. }
  4602. if (needVueOptions) {
  4603. return [componentOptions, vueOptions, VueComponent];
  4604. }
  4605. if (isPage) {
  4606. return componentOptions;
  4607. }
  4608. return [componentOptions, VueComponent];
  4609. }
  4610. function parseComponent(vueComponentOptions, needVueOptions) {
  4611. return parseBaseComponent(vueComponentOptions, {
  4612. isPage: isPage,
  4613. initRelation: initRelation
  4614. }, needVueOptions);
  4615. }
  4616. var hooks$1 = ['onShow', 'onHide', 'onUnload'];
  4617. hooks$1.push.apply(hooks$1, PAGE_EVENT_HOOKS);
  4618. function parseBasePage(vuePageOptions) {
  4619. var _parseComponent = parseComponent(vuePageOptions, true),
  4620. _parseComponent2 = (0, _slicedToArray2.default)(_parseComponent, 2),
  4621. pageOptions = _parseComponent2[0],
  4622. vueOptions = _parseComponent2[1];
  4623. initHooks(pageOptions.methods, hooks$1, vueOptions);
  4624. pageOptions.methods.onLoad = function (query) {
  4625. this.options = query;
  4626. var copyQuery = Object.assign({}, query);
  4627. delete copyQuery.__id__;
  4628. this.$page = {
  4629. fullPath: '/' + (this.route || this.is) + stringifyQuery(copyQuery)
  4630. };
  4631. this.$vm.$mp.query = query; // 兼容 mpvue
  4632. this.$vm.__call_hook('onLoad', query);
  4633. };
  4634. {
  4635. initUnknownHooks(pageOptions.methods, vuePageOptions, ['onReady']);
  4636. }
  4637. {
  4638. initWorkletMethods(pageOptions.methods, vueOptions.methods);
  4639. }
  4640. return pageOptions;
  4641. }
  4642. function parsePage(vuePageOptions) {
  4643. return parseBasePage(vuePageOptions);
  4644. }
  4645. function createPage(vuePageOptions) {
  4646. {
  4647. return Component(parsePage(vuePageOptions));
  4648. }
  4649. }
  4650. function createComponent(vueOptions) {
  4651. {
  4652. return Component(parseComponent(vueOptions));
  4653. }
  4654. }
  4655. function createSubpackageApp(vm) {
  4656. var appOptions = parseApp(vm);
  4657. var app = getApp({
  4658. allowDefault: true
  4659. });
  4660. vm.$scope = app;
  4661. var globalData = app.globalData;
  4662. if (globalData) {
  4663. Object.keys(appOptions.globalData).forEach(function (name) {
  4664. if (!hasOwn(globalData, name)) {
  4665. globalData[name] = appOptions.globalData[name];
  4666. }
  4667. });
  4668. }
  4669. Object.keys(appOptions).forEach(function (name) {
  4670. if (!hasOwn(app, name)) {
  4671. app[name] = appOptions[name];
  4672. }
  4673. });
  4674. if (isFn(appOptions.onShow) && wx.onAppShow) {
  4675. wx.onAppShow(function () {
  4676. for (var _len6 = arguments.length, args = new Array(_len6), _key6 = 0; _key6 < _len6; _key6++) {
  4677. args[_key6] = arguments[_key6];
  4678. }
  4679. vm.__call_hook('onShow', args);
  4680. });
  4681. }
  4682. if (isFn(appOptions.onHide) && wx.onAppHide) {
  4683. wx.onAppHide(function () {
  4684. for (var _len7 = arguments.length, args = new Array(_len7), _key7 = 0; _key7 < _len7; _key7++) {
  4685. args[_key7] = arguments[_key7];
  4686. }
  4687. vm.__call_hook('onHide', args);
  4688. });
  4689. }
  4690. if (isFn(appOptions.onLaunch)) {
  4691. var args = wx.getLaunchOptionsSync && wx.getLaunchOptionsSync();
  4692. vm.__call_hook('onLaunch', args);
  4693. }
  4694. return vm;
  4695. }
  4696. function createPlugin(vm) {
  4697. var appOptions = parseApp(vm);
  4698. if (isFn(appOptions.onShow) && wx.onAppShow) {
  4699. wx.onAppShow(function () {
  4700. for (var _len8 = arguments.length, args = new Array(_len8), _key8 = 0; _key8 < _len8; _key8++) {
  4701. args[_key8] = arguments[_key8];
  4702. }
  4703. vm.__call_hook('onShow', args);
  4704. });
  4705. }
  4706. if (isFn(appOptions.onHide) && wx.onAppHide) {
  4707. wx.onAppHide(function () {
  4708. for (var _len9 = arguments.length, args = new Array(_len9), _key9 = 0; _key9 < _len9; _key9++) {
  4709. args[_key9] = arguments[_key9];
  4710. }
  4711. vm.__call_hook('onHide', args);
  4712. });
  4713. }
  4714. if (isFn(appOptions.onLaunch)) {
  4715. var args = wx.getLaunchOptionsSync && wx.getLaunchOptionsSync();
  4716. vm.__call_hook('onLaunch', args);
  4717. }
  4718. return vm;
  4719. }
  4720. todos.forEach(function (todoApi) {
  4721. protocols[todoApi] = false;
  4722. });
  4723. canIUses.forEach(function (canIUseApi) {
  4724. var apiName = protocols[canIUseApi] && protocols[canIUseApi].name ? protocols[canIUseApi].name : canIUseApi;
  4725. if (!wx.canIUse(apiName)) {
  4726. protocols[canIUseApi] = false;
  4727. }
  4728. });
  4729. var uni = {};
  4730. if (typeof Proxy !== 'undefined' && "mp-weixin" !== 'app-plus') {
  4731. uni = new Proxy({}, {
  4732. get: function get(target, name) {
  4733. if (hasOwn(target, name)) {
  4734. return target[name];
  4735. }
  4736. if (baseApi[name]) {
  4737. return baseApi[name];
  4738. }
  4739. if (api[name]) {
  4740. return promisify(name, api[name]);
  4741. }
  4742. {
  4743. if (extraApi[name]) {
  4744. return promisify(name, extraApi[name]);
  4745. }
  4746. if (todoApis[name]) {
  4747. return promisify(name, todoApis[name]);
  4748. }
  4749. }
  4750. if (eventApi[name]) {
  4751. return eventApi[name];
  4752. }
  4753. return promisify(name, wrapper(name, wx[name]));
  4754. },
  4755. set: function set(target, name, value) {
  4756. target[name] = value;
  4757. return true;
  4758. }
  4759. });
  4760. } else {
  4761. Object.keys(baseApi).forEach(function (name) {
  4762. uni[name] = baseApi[name];
  4763. });
  4764. {
  4765. Object.keys(todoApis).forEach(function (name) {
  4766. uni[name] = promisify(name, todoApis[name]);
  4767. });
  4768. Object.keys(extraApi).forEach(function (name) {
  4769. uni[name] = promisify(name, extraApi[name]);
  4770. });
  4771. }
  4772. Object.keys(eventApi).forEach(function (name) {
  4773. uni[name] = eventApi[name];
  4774. });
  4775. Object.keys(api).forEach(function (name) {
  4776. uni[name] = promisify(name, api[name]);
  4777. });
  4778. Object.keys(wx).forEach(function (name) {
  4779. if (hasOwn(wx, name) || hasOwn(protocols, name)) {
  4780. uni[name] = promisify(name, wrapper(name, wx[name]));
  4781. }
  4782. });
  4783. }
  4784. wx.createApp = createApp;
  4785. wx.createPage = createPage;
  4786. wx.createComponent = createComponent;
  4787. wx.createSubpackageApp = createSubpackageApp;
  4788. wx.createPlugin = createPlugin;
  4789. var uni$1 = uni;
  4790. var _default = uni$1;
  4791. exports.default = _default;
  4792. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/wx.js */ 1)["default"], __webpack_require__(/*! ./../../../webpack/buildin/global.js */ 3)))
  4793. /***/ }),
  4794. /***/ 20:
  4795. /*!****************************************************************!*\
  4796. !*** ./node_modules/@babel/runtime/helpers/iterableToArray.js ***!
  4797. \****************************************************************/
  4798. /*! no static exports found */
  4799. /***/ (function(module, exports) {
  4800. function _iterableToArray(iter) {
  4801. if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
  4802. }
  4803. module.exports = _iterableToArray, module.exports.__esModule = true, module.exports["default"] = module.exports;
  4804. /***/ }),
  4805. /***/ 21:
  4806. /*!******************************************************************!*\
  4807. !*** ./node_modules/@babel/runtime/helpers/nonIterableSpread.js ***!
  4808. \******************************************************************/
  4809. /*! no static exports found */
  4810. /***/ (function(module, exports) {
  4811. function _nonIterableSpread() {
  4812. throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
  4813. }
  4814. module.exports = _nonIterableSpread, module.exports.__esModule = true, module.exports["default"] = module.exports;
  4815. /***/ }),
  4816. /***/ 22:
  4817. /*!*************************************************************!*\
  4818. !*** ./node_modules/@dcloudio/uni-i18n/dist/uni-i18n.es.js ***!
  4819. \*************************************************************/
  4820. /*! no static exports found */
  4821. /***/ (function(module, exports, __webpack_require__) {
  4822. "use strict";
  4823. /* WEBPACK VAR INJECTION */(function(uni, global) {
  4824. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  4825. Object.defineProperty(exports, "__esModule", {
  4826. value: true
  4827. });
  4828. exports.LOCALE_ZH_HANT = exports.LOCALE_ZH_HANS = exports.LOCALE_FR = exports.LOCALE_ES = exports.LOCALE_EN = exports.I18n = exports.Formatter = void 0;
  4829. exports.compileI18nJsonStr = compileI18nJsonStr;
  4830. exports.hasI18nJson = hasI18nJson;
  4831. exports.initVueI18n = initVueI18n;
  4832. exports.isI18nStr = isI18nStr;
  4833. exports.isString = void 0;
  4834. exports.normalizeLocale = normalizeLocale;
  4835. exports.parseI18nJson = parseI18nJson;
  4836. exports.resolveLocale = resolveLocale;
  4837. var _slicedToArray2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/slicedToArray */ 5));
  4838. var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ 23));
  4839. var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ 24));
  4840. var _typeof2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/typeof */ 13));
  4841. var isObject = function isObject(val) {
  4842. return val !== null && (0, _typeof2.default)(val) === 'object';
  4843. };
  4844. var defaultDelimiters = ['{', '}'];
  4845. var BaseFormatter = /*#__PURE__*/function () {
  4846. function BaseFormatter() {
  4847. (0, _classCallCheck2.default)(this, BaseFormatter);
  4848. this._caches = Object.create(null);
  4849. }
  4850. (0, _createClass2.default)(BaseFormatter, [{
  4851. key: "interpolate",
  4852. value: function interpolate(message, values) {
  4853. var delimiters = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : defaultDelimiters;
  4854. if (!values) {
  4855. return [message];
  4856. }
  4857. var tokens = this._caches[message];
  4858. if (!tokens) {
  4859. tokens = parse(message, delimiters);
  4860. this._caches[message] = tokens;
  4861. }
  4862. return compile(tokens, values);
  4863. }
  4864. }]);
  4865. return BaseFormatter;
  4866. }();
  4867. exports.Formatter = BaseFormatter;
  4868. var RE_TOKEN_LIST_VALUE = /^(?:\d)+/;
  4869. var RE_TOKEN_NAMED_VALUE = /^(?:\w)+/;
  4870. function parse(format, _ref) {
  4871. var _ref2 = (0, _slicedToArray2.default)(_ref, 2),
  4872. startDelimiter = _ref2[0],
  4873. endDelimiter = _ref2[1];
  4874. var tokens = [];
  4875. var position = 0;
  4876. var text = '';
  4877. while (position < format.length) {
  4878. var char = format[position++];
  4879. if (char === startDelimiter) {
  4880. if (text) {
  4881. tokens.push({
  4882. type: 'text',
  4883. value: text
  4884. });
  4885. }
  4886. text = '';
  4887. var sub = '';
  4888. char = format[position++];
  4889. while (char !== undefined && char !== endDelimiter) {
  4890. sub += char;
  4891. char = format[position++];
  4892. }
  4893. var isClosed = char === endDelimiter;
  4894. var type = RE_TOKEN_LIST_VALUE.test(sub) ? 'list' : isClosed && RE_TOKEN_NAMED_VALUE.test(sub) ? 'named' : 'unknown';
  4895. tokens.push({
  4896. value: sub,
  4897. type: type
  4898. });
  4899. }
  4900. // else if (char === '%') {
  4901. // // when found rails i18n syntax, skip text capture
  4902. // if (format[position] !== '{') {
  4903. // text += char
  4904. // }
  4905. // }
  4906. else {
  4907. text += char;
  4908. }
  4909. }
  4910. text && tokens.push({
  4911. type: 'text',
  4912. value: text
  4913. });
  4914. return tokens;
  4915. }
  4916. function compile(tokens, values) {
  4917. var compiled = [];
  4918. var index = 0;
  4919. var mode = Array.isArray(values) ? 'list' : isObject(values) ? 'named' : 'unknown';
  4920. if (mode === 'unknown') {
  4921. return compiled;
  4922. }
  4923. while (index < tokens.length) {
  4924. var token = tokens[index];
  4925. switch (token.type) {
  4926. case 'text':
  4927. compiled.push(token.value);
  4928. break;
  4929. case 'list':
  4930. compiled.push(values[parseInt(token.value, 10)]);
  4931. break;
  4932. case 'named':
  4933. if (mode === 'named') {
  4934. compiled.push(values[token.value]);
  4935. } else {
  4936. if (true) {
  4937. console.warn("Type of token '".concat(token.type, "' and format of value '").concat(mode, "' don't match!"));
  4938. }
  4939. }
  4940. break;
  4941. case 'unknown':
  4942. if (true) {
  4943. console.warn("Detect 'unknown' type of token!");
  4944. }
  4945. break;
  4946. }
  4947. index++;
  4948. }
  4949. return compiled;
  4950. }
  4951. var LOCALE_ZH_HANS = 'zh-Hans';
  4952. exports.LOCALE_ZH_HANS = LOCALE_ZH_HANS;
  4953. var LOCALE_ZH_HANT = 'zh-Hant';
  4954. exports.LOCALE_ZH_HANT = LOCALE_ZH_HANT;
  4955. var LOCALE_EN = 'en';
  4956. exports.LOCALE_EN = LOCALE_EN;
  4957. var LOCALE_FR = 'fr';
  4958. exports.LOCALE_FR = LOCALE_FR;
  4959. var LOCALE_ES = 'es';
  4960. exports.LOCALE_ES = LOCALE_ES;
  4961. var hasOwnProperty = Object.prototype.hasOwnProperty;
  4962. var hasOwn = function hasOwn(val, key) {
  4963. return hasOwnProperty.call(val, key);
  4964. };
  4965. var defaultFormatter = new BaseFormatter();
  4966. function include(str, parts) {
  4967. return !!parts.find(function (part) {
  4968. return str.indexOf(part) !== -1;
  4969. });
  4970. }
  4971. function startsWith(str, parts) {
  4972. return parts.find(function (part) {
  4973. return str.indexOf(part) === 0;
  4974. });
  4975. }
  4976. function normalizeLocale(locale, messages) {
  4977. if (!locale) {
  4978. return;
  4979. }
  4980. locale = locale.trim().replace(/_/g, '-');
  4981. if (messages && messages[locale]) {
  4982. return locale;
  4983. }
  4984. locale = locale.toLowerCase();
  4985. if (locale === 'chinese') {
  4986. // 支付宝
  4987. return LOCALE_ZH_HANS;
  4988. }
  4989. if (locale.indexOf('zh') === 0) {
  4990. if (locale.indexOf('-hans') > -1) {
  4991. return LOCALE_ZH_HANS;
  4992. }
  4993. if (locale.indexOf('-hant') > -1) {
  4994. return LOCALE_ZH_HANT;
  4995. }
  4996. if (include(locale, ['-tw', '-hk', '-mo', '-cht'])) {
  4997. return LOCALE_ZH_HANT;
  4998. }
  4999. return LOCALE_ZH_HANS;
  5000. }
  5001. var locales = [LOCALE_EN, LOCALE_FR, LOCALE_ES];
  5002. if (messages && Object.keys(messages).length > 0) {
  5003. locales = Object.keys(messages);
  5004. }
  5005. var lang = startsWith(locale, locales);
  5006. if (lang) {
  5007. return lang;
  5008. }
  5009. }
  5010. var I18n = /*#__PURE__*/function () {
  5011. function I18n(_ref3) {
  5012. var locale = _ref3.locale,
  5013. fallbackLocale = _ref3.fallbackLocale,
  5014. messages = _ref3.messages,
  5015. watcher = _ref3.watcher,
  5016. formater = _ref3.formater;
  5017. (0, _classCallCheck2.default)(this, I18n);
  5018. this.locale = LOCALE_EN;
  5019. this.fallbackLocale = LOCALE_EN;
  5020. this.message = {};
  5021. this.messages = {};
  5022. this.watchers = [];
  5023. if (fallbackLocale) {
  5024. this.fallbackLocale = fallbackLocale;
  5025. }
  5026. this.formater = formater || defaultFormatter;
  5027. this.messages = messages || {};
  5028. this.setLocale(locale || LOCALE_EN);
  5029. if (watcher) {
  5030. this.watchLocale(watcher);
  5031. }
  5032. }
  5033. (0, _createClass2.default)(I18n, [{
  5034. key: "setLocale",
  5035. value: function setLocale(locale) {
  5036. var _this = this;
  5037. var oldLocale = this.locale;
  5038. this.locale = normalizeLocale(locale, this.messages) || this.fallbackLocale;
  5039. if (!this.messages[this.locale]) {
  5040. // 可能初始化时不存在
  5041. this.messages[this.locale] = {};
  5042. }
  5043. this.message = this.messages[this.locale];
  5044. // 仅发生变化时,通知
  5045. if (oldLocale !== this.locale) {
  5046. this.watchers.forEach(function (watcher) {
  5047. watcher(_this.locale, oldLocale);
  5048. });
  5049. }
  5050. }
  5051. }, {
  5052. key: "getLocale",
  5053. value: function getLocale() {
  5054. return this.locale;
  5055. }
  5056. }, {
  5057. key: "watchLocale",
  5058. value: function watchLocale(fn) {
  5059. var _this2 = this;
  5060. var index = this.watchers.push(fn) - 1;
  5061. return function () {
  5062. _this2.watchers.splice(index, 1);
  5063. };
  5064. }
  5065. }, {
  5066. key: "add",
  5067. value: function add(locale, message) {
  5068. var override = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true;
  5069. var curMessages = this.messages[locale];
  5070. if (curMessages) {
  5071. if (override) {
  5072. Object.assign(curMessages, message);
  5073. } else {
  5074. Object.keys(message).forEach(function (key) {
  5075. if (!hasOwn(curMessages, key)) {
  5076. curMessages[key] = message[key];
  5077. }
  5078. });
  5079. }
  5080. } else {
  5081. this.messages[locale] = message;
  5082. }
  5083. }
  5084. }, {
  5085. key: "f",
  5086. value: function f(message, values, delimiters) {
  5087. return this.formater.interpolate(message, values, delimiters).join('');
  5088. }
  5089. }, {
  5090. key: "t",
  5091. value: function t(key, locale, values) {
  5092. var message = this.message;
  5093. if (typeof locale === 'string') {
  5094. locale = normalizeLocale(locale, this.messages);
  5095. locale && (message = this.messages[locale]);
  5096. } else {
  5097. values = locale;
  5098. }
  5099. if (!hasOwn(message, key)) {
  5100. console.warn("Cannot translate the value of keypath ".concat(key, ". Use the value of keypath as default."));
  5101. return key;
  5102. }
  5103. return this.formater.interpolate(message[key], values).join('');
  5104. }
  5105. }]);
  5106. return I18n;
  5107. }();
  5108. exports.I18n = I18n;
  5109. function watchAppLocale(appVm, i18n) {
  5110. // 需要保证 watch 的触发在组件渲染之前
  5111. if (appVm.$watchLocale) {
  5112. // vue2
  5113. appVm.$watchLocale(function (newLocale) {
  5114. i18n.setLocale(newLocale);
  5115. });
  5116. } else {
  5117. appVm.$watch(function () {
  5118. return appVm.$locale;
  5119. }, function (newLocale) {
  5120. i18n.setLocale(newLocale);
  5121. });
  5122. }
  5123. }
  5124. function getDefaultLocale() {
  5125. if (typeof uni !== 'undefined' && uni.getLocale) {
  5126. return uni.getLocale();
  5127. }
  5128. // 小程序平台,uni 和 uni-i18n 互相引用,导致访问不到 uni,故在 global 上挂了 getLocale
  5129. if (typeof global !== 'undefined' && global.getLocale) {
  5130. return global.getLocale();
  5131. }
  5132. return LOCALE_EN;
  5133. }
  5134. function initVueI18n(locale) {
  5135. var messages = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  5136. var fallbackLocale = arguments.length > 2 ? arguments[2] : undefined;
  5137. var watcher = arguments.length > 3 ? arguments[3] : undefined;
  5138. // 兼容旧版本入参
  5139. if (typeof locale !== 'string') {
  5140. var _ref4 = [messages, locale];
  5141. locale = _ref4[0];
  5142. messages = _ref4[1];
  5143. }
  5144. if (typeof locale !== 'string') {
  5145. // 因为小程序平台,uni-i18n 和 uni 互相引用,导致此时访问 uni 时,为 undefined
  5146. locale = getDefaultLocale();
  5147. }
  5148. if (typeof fallbackLocale !== 'string') {
  5149. fallbackLocale = typeof __uniConfig !== 'undefined' && __uniConfig.fallbackLocale || LOCALE_EN;
  5150. }
  5151. var i18n = new I18n({
  5152. locale: locale,
  5153. fallbackLocale: fallbackLocale,
  5154. messages: messages,
  5155. watcher: watcher
  5156. });
  5157. var _t = function t(key, values) {
  5158. if (typeof getApp !== 'function') {
  5159. // app view
  5160. /* eslint-disable no-func-assign */
  5161. _t = function t(key, values) {
  5162. return i18n.t(key, values);
  5163. };
  5164. } else {
  5165. var isWatchedAppLocale = false;
  5166. _t = function t(key, values) {
  5167. var appVm = getApp().$vm;
  5168. // 可能$vm还不存在,比如在支付宝小程序中,组件定义较早,在props的default里使用了t()函数(如uni-goods-nav),此时app还未初始化
  5169. // options: {
  5170. // type: Array,
  5171. // default () {
  5172. // return [{
  5173. // icon: 'shop',
  5174. // text: t("uni-goods-nav.options.shop"),
  5175. // }, {
  5176. // icon: 'cart',
  5177. // text: t("uni-goods-nav.options.cart")
  5178. // }]
  5179. // }
  5180. // },
  5181. if (appVm) {
  5182. // 触发响应式
  5183. appVm.$locale;
  5184. if (!isWatchedAppLocale) {
  5185. isWatchedAppLocale = true;
  5186. watchAppLocale(appVm, i18n);
  5187. }
  5188. }
  5189. return i18n.t(key, values);
  5190. };
  5191. }
  5192. return _t(key, values);
  5193. };
  5194. return {
  5195. i18n: i18n,
  5196. f: function f(message, values, delimiters) {
  5197. return i18n.f(message, values, delimiters);
  5198. },
  5199. t: function t(key, values) {
  5200. return _t(key, values);
  5201. },
  5202. add: function add(locale, message) {
  5203. var override = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true;
  5204. return i18n.add(locale, message, override);
  5205. },
  5206. watch: function watch(fn) {
  5207. return i18n.watchLocale(fn);
  5208. },
  5209. getLocale: function getLocale() {
  5210. return i18n.getLocale();
  5211. },
  5212. setLocale: function setLocale(newLocale) {
  5213. return i18n.setLocale(newLocale);
  5214. }
  5215. };
  5216. }
  5217. var isString = function isString(val) {
  5218. return typeof val === 'string';
  5219. };
  5220. exports.isString = isString;
  5221. var formater;
  5222. function hasI18nJson(jsonObj, delimiters) {
  5223. if (!formater) {
  5224. formater = new BaseFormatter();
  5225. }
  5226. return walkJsonObj(jsonObj, function (jsonObj, key) {
  5227. var value = jsonObj[key];
  5228. if (isString(value)) {
  5229. if (isI18nStr(value, delimiters)) {
  5230. return true;
  5231. }
  5232. } else {
  5233. return hasI18nJson(value, delimiters);
  5234. }
  5235. });
  5236. }
  5237. function parseI18nJson(jsonObj, values, delimiters) {
  5238. if (!formater) {
  5239. formater = new BaseFormatter();
  5240. }
  5241. walkJsonObj(jsonObj, function (jsonObj, key) {
  5242. var value = jsonObj[key];
  5243. if (isString(value)) {
  5244. if (isI18nStr(value, delimiters)) {
  5245. jsonObj[key] = compileStr(value, values, delimiters);
  5246. }
  5247. } else {
  5248. parseI18nJson(value, values, delimiters);
  5249. }
  5250. });
  5251. return jsonObj;
  5252. }
  5253. function compileI18nJsonStr(jsonStr, _ref5) {
  5254. var locale = _ref5.locale,
  5255. locales = _ref5.locales,
  5256. delimiters = _ref5.delimiters;
  5257. if (!isI18nStr(jsonStr, delimiters)) {
  5258. return jsonStr;
  5259. }
  5260. if (!formater) {
  5261. formater = new BaseFormatter();
  5262. }
  5263. var localeValues = [];
  5264. Object.keys(locales).forEach(function (name) {
  5265. if (name !== locale) {
  5266. localeValues.push({
  5267. locale: name,
  5268. values: locales[name]
  5269. });
  5270. }
  5271. });
  5272. localeValues.unshift({
  5273. locale: locale,
  5274. values: locales[locale]
  5275. });
  5276. try {
  5277. return JSON.stringify(compileJsonObj(JSON.parse(jsonStr), localeValues, delimiters), null, 2);
  5278. } catch (e) {}
  5279. return jsonStr;
  5280. }
  5281. function isI18nStr(value, delimiters) {
  5282. return value.indexOf(delimiters[0]) > -1;
  5283. }
  5284. function compileStr(value, values, delimiters) {
  5285. return formater.interpolate(value, values, delimiters).join('');
  5286. }
  5287. function compileValue(jsonObj, key, localeValues, delimiters) {
  5288. var value = jsonObj[key];
  5289. if (isString(value)) {
  5290. // 存在国际化
  5291. if (isI18nStr(value, delimiters)) {
  5292. jsonObj[key] = compileStr(value, localeValues[0].values, delimiters);
  5293. if (localeValues.length > 1) {
  5294. // 格式化国际化语言
  5295. var valueLocales = jsonObj[key + 'Locales'] = {};
  5296. localeValues.forEach(function (localValue) {
  5297. valueLocales[localValue.locale] = compileStr(value, localValue.values, delimiters);
  5298. });
  5299. }
  5300. }
  5301. } else {
  5302. compileJsonObj(value, localeValues, delimiters);
  5303. }
  5304. }
  5305. function compileJsonObj(jsonObj, localeValues, delimiters) {
  5306. walkJsonObj(jsonObj, function (jsonObj, key) {
  5307. compileValue(jsonObj, key, localeValues, delimiters);
  5308. });
  5309. return jsonObj;
  5310. }
  5311. function walkJsonObj(jsonObj, walk) {
  5312. if (Array.isArray(jsonObj)) {
  5313. for (var i = 0; i < jsonObj.length; i++) {
  5314. if (walk(jsonObj, i)) {
  5315. return true;
  5316. }
  5317. }
  5318. } else if (isObject(jsonObj)) {
  5319. for (var key in jsonObj) {
  5320. if (walk(jsonObj, key)) {
  5321. return true;
  5322. }
  5323. }
  5324. }
  5325. return false;
  5326. }
  5327. function resolveLocale(locales) {
  5328. return function (locale) {
  5329. if (!locale) {
  5330. return locale;
  5331. }
  5332. locale = normalizeLocale(locale) || locale;
  5333. return resolveLocaleChain(locale).find(function (locale) {
  5334. return locales.indexOf(locale) > -1;
  5335. });
  5336. };
  5337. }
  5338. function resolveLocaleChain(locale) {
  5339. var chain = [];
  5340. var tokens = locale.split('-');
  5341. while (tokens.length) {
  5342. chain.push(tokens.join('-'));
  5343. tokens.pop();
  5344. }
  5345. return chain;
  5346. }
  5347. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"], __webpack_require__(/*! ./../../../webpack/buildin/global.js */ 3)))
  5348. /***/ }),
  5349. /***/ 23:
  5350. /*!***************************************************************!*\
  5351. !*** ./node_modules/@babel/runtime/helpers/classCallCheck.js ***!
  5352. \***************************************************************/
  5353. /*! no static exports found */
  5354. /***/ (function(module, exports) {
  5355. function _classCallCheck(instance, Constructor) {
  5356. if (!(instance instanceof Constructor)) {
  5357. throw new TypeError("Cannot call a class as a function");
  5358. }
  5359. }
  5360. module.exports = _classCallCheck, module.exports.__esModule = true, module.exports["default"] = module.exports;
  5361. /***/ }),
  5362. /***/ 24:
  5363. /*!************************************************************!*\
  5364. !*** ./node_modules/@babel/runtime/helpers/createClass.js ***!
  5365. \************************************************************/
  5366. /*! no static exports found */
  5367. /***/ (function(module, exports, __webpack_require__) {
  5368. var toPropertyKey = __webpack_require__(/*! ./toPropertyKey.js */ 12);
  5369. function _defineProperties(target, props) {
  5370. for (var i = 0; i < props.length; i++) {
  5371. var descriptor = props[i];
  5372. descriptor.enumerable = descriptor.enumerable || false;
  5373. descriptor.configurable = true;
  5374. if ("value" in descriptor) descriptor.writable = true;
  5375. Object.defineProperty(target, toPropertyKey(descriptor.key), descriptor);
  5376. }
  5377. }
  5378. function _createClass(Constructor, protoProps, staticProps) {
  5379. if (protoProps) _defineProperties(Constructor.prototype, protoProps);
  5380. if (staticProps) _defineProperties(Constructor, staticProps);
  5381. Object.defineProperty(Constructor, "prototype", {
  5382. writable: false
  5383. });
  5384. return Constructor;
  5385. }
  5386. module.exports = _createClass, module.exports.__esModule = true, module.exports["default"] = module.exports;
  5387. /***/ }),
  5388. /***/ 25:
  5389. /*!******************************************************************************************!*\
  5390. !*** ./node_modules/@dcloudio/vue-cli-plugin-uni/packages/mp-vue/dist/mp.runtime.esm.js ***!
  5391. \******************************************************************************************/
  5392. /*! exports provided: default */
  5393. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  5394. "use strict";
  5395. __webpack_require__.r(__webpack_exports__);
  5396. /* WEBPACK VAR INJECTION */(function(global) {/*!
  5397. * Vue.js v2.6.11
  5398. * (c) 2014-2024 Evan You
  5399. * Released under the MIT License.
  5400. */
  5401. /* */
  5402. var emptyObject = Object.freeze({});
  5403. // These helpers produce better VM code in JS engines due to their
  5404. // explicitness and function inlining.
  5405. function isUndef (v) {
  5406. return v === undefined || v === null
  5407. }
  5408. function isDef (v) {
  5409. return v !== undefined && v !== null
  5410. }
  5411. function isTrue (v) {
  5412. return v === true
  5413. }
  5414. function isFalse (v) {
  5415. return v === false
  5416. }
  5417. /**
  5418. * Check if value is primitive.
  5419. */
  5420. function isPrimitive (value) {
  5421. return (
  5422. typeof value === 'string' ||
  5423. typeof value === 'number' ||
  5424. // $flow-disable-line
  5425. typeof value === 'symbol' ||
  5426. typeof value === 'boolean'
  5427. )
  5428. }
  5429. /**
  5430. * Quick object check - this is primarily used to tell
  5431. * Objects from primitive values when we know the value
  5432. * is a JSON-compliant type.
  5433. */
  5434. function isObject (obj) {
  5435. return obj !== null && typeof obj === 'object'
  5436. }
  5437. /**
  5438. * Get the raw type string of a value, e.g., [object Object].
  5439. */
  5440. var _toString = Object.prototype.toString;
  5441. function toRawType (value) {
  5442. return _toString.call(value).slice(8, -1)
  5443. }
  5444. /**
  5445. * Strict object type check. Only returns true
  5446. * for plain JavaScript objects.
  5447. */
  5448. function isPlainObject (obj) {
  5449. return _toString.call(obj) === '[object Object]'
  5450. }
  5451. function isRegExp (v) {
  5452. return _toString.call(v) === '[object RegExp]'
  5453. }
  5454. /**
  5455. * Check if val is a valid array index.
  5456. */
  5457. function isValidArrayIndex (val) {
  5458. var n = parseFloat(String(val));
  5459. return n >= 0 && Math.floor(n) === n && isFinite(val)
  5460. }
  5461. function isPromise (val) {
  5462. return (
  5463. isDef(val) &&
  5464. typeof val.then === 'function' &&
  5465. typeof val.catch === 'function'
  5466. )
  5467. }
  5468. /**
  5469. * Convert a value to a string that is actually rendered.
  5470. */
  5471. function toString (val) {
  5472. return val == null
  5473. ? ''
  5474. : Array.isArray(val) || (isPlainObject(val) && val.toString === _toString)
  5475. ? JSON.stringify(val, null, 2)
  5476. : String(val)
  5477. }
  5478. /**
  5479. * Convert an input value to a number for persistence.
  5480. * If the conversion fails, return original string.
  5481. */
  5482. function toNumber (val) {
  5483. var n = parseFloat(val);
  5484. return isNaN(n) ? val : n
  5485. }
  5486. /**
  5487. * Make a map and return a function for checking if a key
  5488. * is in that map.
  5489. */
  5490. function makeMap (
  5491. str,
  5492. expectsLowerCase
  5493. ) {
  5494. var map = Object.create(null);
  5495. var list = str.split(',');
  5496. for (var i = 0; i < list.length; i++) {
  5497. map[list[i]] = true;
  5498. }
  5499. return expectsLowerCase
  5500. ? function (val) { return map[val.toLowerCase()]; }
  5501. : function (val) { return map[val]; }
  5502. }
  5503. /**
  5504. * Check if a tag is a built-in tag.
  5505. */
  5506. var isBuiltInTag = makeMap('slot,component', true);
  5507. /**
  5508. * Check if an attribute is a reserved attribute.
  5509. */
  5510. var isReservedAttribute = makeMap('key,ref,slot,slot-scope,is');
  5511. /**
  5512. * Remove an item from an array.
  5513. */
  5514. function remove (arr, item) {
  5515. if (arr.length) {
  5516. var index = arr.indexOf(item);
  5517. if (index > -1) {
  5518. return arr.splice(index, 1)
  5519. }
  5520. }
  5521. }
  5522. /**
  5523. * Check whether an object has the property.
  5524. */
  5525. var hasOwnProperty = Object.prototype.hasOwnProperty;
  5526. function hasOwn (obj, key) {
  5527. return hasOwnProperty.call(obj, key)
  5528. }
  5529. /**
  5530. * Create a cached version of a pure function.
  5531. */
  5532. function cached (fn) {
  5533. var cache = Object.create(null);
  5534. return (function cachedFn (str) {
  5535. var hit = cache[str];
  5536. return hit || (cache[str] = fn(str))
  5537. })
  5538. }
  5539. /**
  5540. * Camelize a hyphen-delimited string.
  5541. */
  5542. var camelizeRE = /-(\w)/g;
  5543. var camelize = cached(function (str) {
  5544. return str.replace(camelizeRE, function (_, c) { return c ? c.toUpperCase() : ''; })
  5545. });
  5546. /**
  5547. * Capitalize a string.
  5548. */
  5549. var capitalize = cached(function (str) {
  5550. return str.charAt(0).toUpperCase() + str.slice(1)
  5551. });
  5552. /**
  5553. * Hyphenate a camelCase string.
  5554. */
  5555. var hyphenateRE = /\B([A-Z])/g;
  5556. var hyphenate = cached(function (str) {
  5557. return str.replace(hyphenateRE, '-$1').toLowerCase()
  5558. });
  5559. /**
  5560. * Simple bind polyfill for environments that do not support it,
  5561. * e.g., PhantomJS 1.x. Technically, we don't need this anymore
  5562. * since native bind is now performant enough in most browsers.
  5563. * But removing it would mean breaking code that was able to run in
  5564. * PhantomJS 1.x, so this must be kept for backward compatibility.
  5565. */
  5566. /* istanbul ignore next */
  5567. function polyfillBind (fn, ctx) {
  5568. function boundFn (a) {
  5569. var l = arguments.length;
  5570. return l
  5571. ? l > 1
  5572. ? fn.apply(ctx, arguments)
  5573. : fn.call(ctx, a)
  5574. : fn.call(ctx)
  5575. }
  5576. boundFn._length = fn.length;
  5577. return boundFn
  5578. }
  5579. function nativeBind (fn, ctx) {
  5580. return fn.bind(ctx)
  5581. }
  5582. var bind = Function.prototype.bind
  5583. ? nativeBind
  5584. : polyfillBind;
  5585. /**
  5586. * Convert an Array-like object to a real Array.
  5587. */
  5588. function toArray (list, start) {
  5589. start = start || 0;
  5590. var i = list.length - start;
  5591. var ret = new Array(i);
  5592. while (i--) {
  5593. ret[i] = list[i + start];
  5594. }
  5595. return ret
  5596. }
  5597. /**
  5598. * Mix properties into target object.
  5599. */
  5600. function extend (to, _from) {
  5601. for (var key in _from) {
  5602. to[key] = _from[key];
  5603. }
  5604. return to
  5605. }
  5606. /**
  5607. * Merge an Array of Objects into a single Object.
  5608. */
  5609. function toObject (arr) {
  5610. var res = {};
  5611. for (var i = 0; i < arr.length; i++) {
  5612. if (arr[i]) {
  5613. extend(res, arr[i]);
  5614. }
  5615. }
  5616. return res
  5617. }
  5618. /* eslint-disable no-unused-vars */
  5619. /**
  5620. * Perform no operation.
  5621. * Stubbing args to make Flow happy without leaving useless transpiled code
  5622. * with ...rest (https://flow.org/blog/2017/05/07/Strict-Function-Call-Arity/).
  5623. */
  5624. function noop (a, b, c) {}
  5625. /**
  5626. * Always return false.
  5627. */
  5628. var no = function (a, b, c) { return false; };
  5629. /* eslint-enable no-unused-vars */
  5630. /**
  5631. * Return the same value.
  5632. */
  5633. var identity = function (_) { return _; };
  5634. /**
  5635. * Check if two values are loosely equal - that is,
  5636. * if they are plain objects, do they have the same shape?
  5637. */
  5638. function looseEqual (a, b) {
  5639. if (a === b) { return true }
  5640. var isObjectA = isObject(a);
  5641. var isObjectB = isObject(b);
  5642. if (isObjectA && isObjectB) {
  5643. try {
  5644. var isArrayA = Array.isArray(a);
  5645. var isArrayB = Array.isArray(b);
  5646. if (isArrayA && isArrayB) {
  5647. return a.length === b.length && a.every(function (e, i) {
  5648. return looseEqual(e, b[i])
  5649. })
  5650. } else if (a instanceof Date && b instanceof Date) {
  5651. return a.getTime() === b.getTime()
  5652. } else if (!isArrayA && !isArrayB) {
  5653. var keysA = Object.keys(a);
  5654. var keysB = Object.keys(b);
  5655. return keysA.length === keysB.length && keysA.every(function (key) {
  5656. return looseEqual(a[key], b[key])
  5657. })
  5658. } else {
  5659. /* istanbul ignore next */
  5660. return false
  5661. }
  5662. } catch (e) {
  5663. /* istanbul ignore next */
  5664. return false
  5665. }
  5666. } else if (!isObjectA && !isObjectB) {
  5667. return String(a) === String(b)
  5668. } else {
  5669. return false
  5670. }
  5671. }
  5672. /**
  5673. * Return the first index at which a loosely equal value can be
  5674. * found in the array (if value is a plain object, the array must
  5675. * contain an object of the same shape), or -1 if it is not present.
  5676. */
  5677. function looseIndexOf (arr, val) {
  5678. for (var i = 0; i < arr.length; i++) {
  5679. if (looseEqual(arr[i], val)) { return i }
  5680. }
  5681. return -1
  5682. }
  5683. /**
  5684. * Ensure a function is called only once.
  5685. */
  5686. function once (fn) {
  5687. var called = false;
  5688. return function () {
  5689. if (!called) {
  5690. called = true;
  5691. fn.apply(this, arguments);
  5692. }
  5693. }
  5694. }
  5695. var ASSET_TYPES = [
  5696. 'component',
  5697. 'directive',
  5698. 'filter'
  5699. ];
  5700. var LIFECYCLE_HOOKS = [
  5701. 'beforeCreate',
  5702. 'created',
  5703. 'beforeMount',
  5704. 'mounted',
  5705. 'beforeUpdate',
  5706. 'updated',
  5707. 'beforeDestroy',
  5708. 'destroyed',
  5709. 'activated',
  5710. 'deactivated',
  5711. 'errorCaptured',
  5712. 'serverPrefetch'
  5713. ];
  5714. /* */
  5715. var config = ({
  5716. /**
  5717. * Option merge strategies (used in core/util/options)
  5718. */
  5719. // $flow-disable-line
  5720. optionMergeStrategies: Object.create(null),
  5721. /**
  5722. * Whether to suppress warnings.
  5723. */
  5724. silent: false,
  5725. /**
  5726. * Show production mode tip message on boot?
  5727. */
  5728. productionTip: "development" !== 'production',
  5729. /**
  5730. * Whether to enable devtools
  5731. */
  5732. devtools: "development" !== 'production',
  5733. /**
  5734. * Whether to record perf
  5735. */
  5736. performance: false,
  5737. /**
  5738. * Error handler for watcher errors
  5739. */
  5740. errorHandler: null,
  5741. /**
  5742. * Warn handler for watcher warns
  5743. */
  5744. warnHandler: null,
  5745. /**
  5746. * Ignore certain custom elements
  5747. */
  5748. ignoredElements: [],
  5749. /**
  5750. * Custom user key aliases for v-on
  5751. */
  5752. // $flow-disable-line
  5753. keyCodes: Object.create(null),
  5754. /**
  5755. * Check if a tag is reserved so that it cannot be registered as a
  5756. * component. This is platform-dependent and may be overwritten.
  5757. */
  5758. isReservedTag: no,
  5759. /**
  5760. * Check if an attribute is reserved so that it cannot be used as a component
  5761. * prop. This is platform-dependent and may be overwritten.
  5762. */
  5763. isReservedAttr: no,
  5764. /**
  5765. * Check if a tag is an unknown element.
  5766. * Platform-dependent.
  5767. */
  5768. isUnknownElement: no,
  5769. /**
  5770. * Get the namespace of an element
  5771. */
  5772. getTagNamespace: noop,
  5773. /**
  5774. * Parse the real tag name for the specific platform.
  5775. */
  5776. parsePlatformTagName: identity,
  5777. /**
  5778. * Check if an attribute must be bound using property, e.g. value
  5779. * Platform-dependent.
  5780. */
  5781. mustUseProp: no,
  5782. /**
  5783. * Perform updates asynchronously. Intended to be used by Vue Test Utils
  5784. * This will significantly reduce performance if set to false.
  5785. */
  5786. async: true,
  5787. /**
  5788. * Exposed for legacy reasons
  5789. */
  5790. _lifecycleHooks: LIFECYCLE_HOOKS
  5791. });
  5792. /* */
  5793. /**
  5794. * unicode letters used for parsing html tags, component names and property paths.
  5795. * using https://www.w3.org/TR/html53/semantics-scripting.html#potentialcustomelementname
  5796. * skipping \u10000-\uEFFFF due to it freezing up PhantomJS
  5797. */
  5798. 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/;
  5799. /**
  5800. * Check if a string starts with $ or _
  5801. */
  5802. function isReserved (str) {
  5803. var c = (str + '').charCodeAt(0);
  5804. return c === 0x24 || c === 0x5F
  5805. }
  5806. /**
  5807. * Define a property.
  5808. */
  5809. function def (obj, key, val, enumerable) {
  5810. Object.defineProperty(obj, key, {
  5811. value: val,
  5812. enumerable: !!enumerable,
  5813. writable: true,
  5814. configurable: true
  5815. });
  5816. }
  5817. /**
  5818. * Parse simple path.
  5819. */
  5820. var bailRE = new RegExp(("[^" + (unicodeRegExp.source) + ".$_\\d]"));
  5821. function parsePath (path) {
  5822. if (bailRE.test(path)) {
  5823. return
  5824. }
  5825. var segments = path.split('.');
  5826. return function (obj) {
  5827. for (var i = 0; i < segments.length; i++) {
  5828. if (!obj) { return }
  5829. obj = obj[segments[i]];
  5830. }
  5831. return obj
  5832. }
  5833. }
  5834. /* */
  5835. // can we use __proto__?
  5836. var hasProto = '__proto__' in {};
  5837. // Browser environment sniffing
  5838. var inBrowser = typeof window !== 'undefined';
  5839. var inWeex = typeof WXEnvironment !== 'undefined' && !!WXEnvironment.platform;
  5840. var weexPlatform = inWeex && WXEnvironment.platform.toLowerCase();
  5841. var UA = inBrowser && window.navigator && window.navigator.userAgent.toLowerCase();
  5842. var isIE = UA && /msie|trident/.test(UA);
  5843. var isIE9 = UA && UA.indexOf('msie 9.0') > 0;
  5844. var isEdge = UA && UA.indexOf('edge/') > 0;
  5845. var isAndroid = (UA && UA.indexOf('android') > 0) || (weexPlatform === 'android');
  5846. var isIOS = (UA && /iphone|ipad|ipod|ios/.test(UA)) || (weexPlatform === 'ios');
  5847. var isChrome = UA && /chrome\/\d+/.test(UA) && !isEdge;
  5848. var isPhantomJS = UA && /phantomjs/.test(UA);
  5849. var isFF = UA && UA.match(/firefox\/(\d+)/);
  5850. // Firefox has a "watch" function on Object.prototype...
  5851. var nativeWatch = ({}).watch;
  5852. if (inBrowser) {
  5853. try {
  5854. var opts = {};
  5855. Object.defineProperty(opts, 'passive', ({
  5856. get: function get () {
  5857. }
  5858. })); // https://github.com/facebook/flow/issues/285
  5859. window.addEventListener('test-passive', null, opts);
  5860. } catch (e) {}
  5861. }
  5862. // this needs to be lazy-evaled because vue may be required before
  5863. // vue-server-renderer can set VUE_ENV
  5864. var _isServer;
  5865. var isServerRendering = function () {
  5866. if (_isServer === undefined) {
  5867. /* istanbul ignore if */
  5868. if (!inBrowser && !inWeex && typeof global !== 'undefined') {
  5869. // detect presence of vue-server-renderer and avoid
  5870. // Webpack shimming the process
  5871. _isServer = global['process'] && global['process'].env.VUE_ENV === 'server';
  5872. } else {
  5873. _isServer = false;
  5874. }
  5875. }
  5876. return _isServer
  5877. };
  5878. // detect devtools
  5879. var devtools = inBrowser && window.__VUE_DEVTOOLS_GLOBAL_HOOK__;
  5880. /* istanbul ignore next */
  5881. function isNative (Ctor) {
  5882. return typeof Ctor === 'function' && /native code/.test(Ctor.toString())
  5883. }
  5884. var hasSymbol =
  5885. typeof Symbol !== 'undefined' && isNative(Symbol) &&
  5886. typeof Reflect !== 'undefined' && isNative(Reflect.ownKeys);
  5887. var _Set;
  5888. /* istanbul ignore if */ // $flow-disable-line
  5889. if (typeof Set !== 'undefined' && isNative(Set)) {
  5890. // use native Set when available.
  5891. _Set = Set;
  5892. } else {
  5893. // a non-standard Set polyfill that only works with primitive keys.
  5894. _Set = /*@__PURE__*/(function () {
  5895. function Set () {
  5896. this.set = Object.create(null);
  5897. }
  5898. Set.prototype.has = function has (key) {
  5899. return this.set[key] === true
  5900. };
  5901. Set.prototype.add = function add (key) {
  5902. this.set[key] = true;
  5903. };
  5904. Set.prototype.clear = function clear () {
  5905. this.set = Object.create(null);
  5906. };
  5907. return Set;
  5908. }());
  5909. }
  5910. /* */
  5911. var warn = noop;
  5912. var tip = noop;
  5913. var generateComponentTrace = (noop); // work around flow check
  5914. var formatComponentName = (noop);
  5915. if (true) {
  5916. var hasConsole = typeof console !== 'undefined';
  5917. var classifyRE = /(?:^|[-_])(\w)/g;
  5918. var classify = function (str) { return str
  5919. .replace(classifyRE, function (c) { return c.toUpperCase(); })
  5920. .replace(/[-_]/g, ''); };
  5921. warn = function (msg, vm) {
  5922. var trace = vm ? generateComponentTrace(vm) : '';
  5923. if (config.warnHandler) {
  5924. config.warnHandler.call(null, msg, vm, trace);
  5925. } else if (hasConsole && (!config.silent)) {
  5926. console.error(("[Vue warn]: " + msg + trace));
  5927. }
  5928. };
  5929. tip = function (msg, vm) {
  5930. if (hasConsole && (!config.silent)) {
  5931. console.warn("[Vue tip]: " + msg + (
  5932. vm ? generateComponentTrace(vm) : ''
  5933. ));
  5934. }
  5935. };
  5936. formatComponentName = function (vm, includeFile) {
  5937. if (vm.$root === vm) {
  5938. if (vm.$options && vm.$options.__file) { // fixed by xxxxxx
  5939. return ('') + vm.$options.__file
  5940. }
  5941. return '<Root>'
  5942. }
  5943. var options = typeof vm === 'function' && vm.cid != null
  5944. ? vm.options
  5945. : vm._isVue
  5946. ? vm.$options || vm.constructor.options
  5947. : vm;
  5948. var name = options.name || options._componentTag;
  5949. var file = options.__file;
  5950. if (!name && file) {
  5951. var match = file.match(/([^/\\]+)\.vue$/);
  5952. name = match && match[1];
  5953. }
  5954. return (
  5955. (name ? ("<" + (classify(name)) + ">") : "<Anonymous>") +
  5956. (file && includeFile !== false ? (" at " + file) : '')
  5957. )
  5958. };
  5959. var repeat = function (str, n) {
  5960. var res = '';
  5961. while (n) {
  5962. if (n % 2 === 1) { res += str; }
  5963. if (n > 1) { str += str; }
  5964. n >>= 1;
  5965. }
  5966. return res
  5967. };
  5968. generateComponentTrace = function (vm) {
  5969. if (vm._isVue && vm.$parent) {
  5970. var tree = [];
  5971. var currentRecursiveSequence = 0;
  5972. while (vm && vm.$options.name !== 'PageBody') {
  5973. if (tree.length > 0) {
  5974. var last = tree[tree.length - 1];
  5975. if (last.constructor === vm.constructor) {
  5976. currentRecursiveSequence++;
  5977. vm = vm.$parent;
  5978. continue
  5979. } else if (currentRecursiveSequence > 0) {
  5980. tree[tree.length - 1] = [last, currentRecursiveSequence];
  5981. currentRecursiveSequence = 0;
  5982. }
  5983. }
  5984. !vm.$options.isReserved && tree.push(vm);
  5985. vm = vm.$parent;
  5986. }
  5987. return '\n\nfound in\n\n' + tree
  5988. .map(function (vm, i) { return ("" + (i === 0 ? '---> ' : repeat(' ', 5 + i * 2)) + (Array.isArray(vm)
  5989. ? ((formatComponentName(vm[0])) + "... (" + (vm[1]) + " recursive calls)")
  5990. : formatComponentName(vm))); })
  5991. .join('\n')
  5992. } else {
  5993. return ("\n\n(found in " + (formatComponentName(vm)) + ")")
  5994. }
  5995. };
  5996. }
  5997. /* */
  5998. var uid = 0;
  5999. /**
  6000. * A dep is an observable that can have multiple
  6001. * directives subscribing to it.
  6002. */
  6003. var Dep = function Dep () {
  6004. this.id = uid++;
  6005. this.subs = [];
  6006. };
  6007. Dep.prototype.addSub = function addSub (sub) {
  6008. this.subs.push(sub);
  6009. };
  6010. Dep.prototype.removeSub = function removeSub (sub) {
  6011. remove(this.subs, sub);
  6012. };
  6013. Dep.prototype.depend = function depend () {
  6014. if (Dep.SharedObject.target) {
  6015. Dep.SharedObject.target.addDep(this);
  6016. }
  6017. };
  6018. Dep.prototype.notify = function notify () {
  6019. // stabilize the subscriber list first
  6020. var subs = this.subs.slice();
  6021. if ( true && !config.async) {
  6022. // subs aren't sorted in scheduler if not running async
  6023. // we need to sort them now to make sure they fire in correct
  6024. // order
  6025. subs.sort(function (a, b) { return a.id - b.id; });
  6026. }
  6027. for (var i = 0, l = subs.length; i < l; i++) {
  6028. subs[i].update();
  6029. }
  6030. };
  6031. // The current target watcher being evaluated.
  6032. // This is globally unique because only one watcher
  6033. // can be evaluated at a time.
  6034. // fixed by xxxxxx (nvue shared vuex)
  6035. /* eslint-disable no-undef */
  6036. Dep.SharedObject = {};
  6037. Dep.SharedObject.target = null;
  6038. Dep.SharedObject.targetStack = [];
  6039. function pushTarget (target) {
  6040. Dep.SharedObject.targetStack.push(target);
  6041. Dep.SharedObject.target = target;
  6042. Dep.target = target;
  6043. }
  6044. function popTarget () {
  6045. Dep.SharedObject.targetStack.pop();
  6046. Dep.SharedObject.target = Dep.SharedObject.targetStack[Dep.SharedObject.targetStack.length - 1];
  6047. Dep.target = Dep.SharedObject.target;
  6048. }
  6049. /* */
  6050. var VNode = function VNode (
  6051. tag,
  6052. data,
  6053. children,
  6054. text,
  6055. elm,
  6056. context,
  6057. componentOptions,
  6058. asyncFactory
  6059. ) {
  6060. this.tag = tag;
  6061. this.data = data;
  6062. this.children = children;
  6063. this.text = text;
  6064. this.elm = elm;
  6065. this.ns = undefined;
  6066. this.context = context;
  6067. this.fnContext = undefined;
  6068. this.fnOptions = undefined;
  6069. this.fnScopeId = undefined;
  6070. this.key = data && data.key;
  6071. this.componentOptions = componentOptions;
  6072. this.componentInstance = undefined;
  6073. this.parent = undefined;
  6074. this.raw = false;
  6075. this.isStatic = false;
  6076. this.isRootInsert = true;
  6077. this.isComment = false;
  6078. this.isCloned = false;
  6079. this.isOnce = false;
  6080. this.asyncFactory = asyncFactory;
  6081. this.asyncMeta = undefined;
  6082. this.isAsyncPlaceholder = false;
  6083. };
  6084. var prototypeAccessors = { child: { configurable: true } };
  6085. // DEPRECATED: alias for componentInstance for backwards compat.
  6086. /* istanbul ignore next */
  6087. prototypeAccessors.child.get = function () {
  6088. return this.componentInstance
  6089. };
  6090. Object.defineProperties( VNode.prototype, prototypeAccessors );
  6091. var createEmptyVNode = function (text) {
  6092. if ( text === void 0 ) text = '';
  6093. var node = new VNode();
  6094. node.text = text;
  6095. node.isComment = true;
  6096. return node
  6097. };
  6098. function createTextVNode (val) {
  6099. return new VNode(undefined, undefined, undefined, String(val))
  6100. }
  6101. // optimized shallow clone
  6102. // used for static nodes and slot nodes because they may be reused across
  6103. // multiple renders, cloning them avoids errors when DOM manipulations rely
  6104. // on their elm reference.
  6105. function cloneVNode (vnode) {
  6106. var cloned = new VNode(
  6107. vnode.tag,
  6108. vnode.data,
  6109. // #7975
  6110. // clone children array to avoid mutating original in case of cloning
  6111. // a child.
  6112. vnode.children && vnode.children.slice(),
  6113. vnode.text,
  6114. vnode.elm,
  6115. vnode.context,
  6116. vnode.componentOptions,
  6117. vnode.asyncFactory
  6118. );
  6119. cloned.ns = vnode.ns;
  6120. cloned.isStatic = vnode.isStatic;
  6121. cloned.key = vnode.key;
  6122. cloned.isComment = vnode.isComment;
  6123. cloned.fnContext = vnode.fnContext;
  6124. cloned.fnOptions = vnode.fnOptions;
  6125. cloned.fnScopeId = vnode.fnScopeId;
  6126. cloned.asyncMeta = vnode.asyncMeta;
  6127. cloned.isCloned = true;
  6128. return cloned
  6129. }
  6130. /*
  6131. * not type checking this file because flow doesn't play well with
  6132. * dynamically accessing methods on Array prototype
  6133. */
  6134. var arrayProto = Array.prototype;
  6135. var arrayMethods = Object.create(arrayProto);
  6136. var methodsToPatch = [
  6137. 'push',
  6138. 'pop',
  6139. 'shift',
  6140. 'unshift',
  6141. 'splice',
  6142. 'sort',
  6143. 'reverse'
  6144. ];
  6145. /**
  6146. * Intercept mutating methods and emit events
  6147. */
  6148. methodsToPatch.forEach(function (method) {
  6149. // cache original method
  6150. var original = arrayProto[method];
  6151. def(arrayMethods, method, function mutator () {
  6152. var args = [], len = arguments.length;
  6153. while ( len-- ) args[ len ] = arguments[ len ];
  6154. var result = original.apply(this, args);
  6155. var ob = this.__ob__;
  6156. var inserted;
  6157. switch (method) {
  6158. case 'push':
  6159. case 'unshift':
  6160. inserted = args;
  6161. break
  6162. case 'splice':
  6163. inserted = args.slice(2);
  6164. break
  6165. }
  6166. if (inserted) { ob.observeArray(inserted); }
  6167. // notify change
  6168. ob.dep.notify();
  6169. return result
  6170. });
  6171. });
  6172. /* */
  6173. var arrayKeys = Object.getOwnPropertyNames(arrayMethods);
  6174. /**
  6175. * In some cases we may want to disable observation inside a component's
  6176. * update computation.
  6177. */
  6178. var shouldObserve = true;
  6179. function toggleObserving (value) {
  6180. shouldObserve = value;
  6181. }
  6182. /**
  6183. * Observer class that is attached to each observed
  6184. * object. Once attached, the observer converts the target
  6185. * object's property keys into getter/setters that
  6186. * collect dependencies and dispatch updates.
  6187. */
  6188. var Observer = function Observer (value) {
  6189. this.value = value;
  6190. this.dep = new Dep();
  6191. this.vmCount = 0;
  6192. def(value, '__ob__', this);
  6193. if (Array.isArray(value)) {
  6194. if (hasProto) {
  6195. {// fixed by xxxxxx 微信小程序使用 plugins 之后,数组方法被直接挂载到了数组对象上,需要执行 copyAugment 逻辑
  6196. if(value.push !== value.__proto__.push){
  6197. copyAugment(value, arrayMethods, arrayKeys);
  6198. } else {
  6199. protoAugment(value, arrayMethods);
  6200. }
  6201. }
  6202. } else {
  6203. copyAugment(value, arrayMethods, arrayKeys);
  6204. }
  6205. this.observeArray(value);
  6206. } else {
  6207. this.walk(value);
  6208. }
  6209. };
  6210. /**
  6211. * Walk through all properties and convert them into
  6212. * getter/setters. This method should only be called when
  6213. * value type is Object.
  6214. */
  6215. Observer.prototype.walk = function walk (obj) {
  6216. var keys = Object.keys(obj);
  6217. for (var i = 0; i < keys.length; i++) {
  6218. defineReactive$$1(obj, keys[i]);
  6219. }
  6220. };
  6221. /**
  6222. * Observe a list of Array items.
  6223. */
  6224. Observer.prototype.observeArray = function observeArray (items) {
  6225. for (var i = 0, l = items.length; i < l; i++) {
  6226. observe(items[i]);
  6227. }
  6228. };
  6229. // helpers
  6230. /**
  6231. * Augment a target Object or Array by intercepting
  6232. * the prototype chain using __proto__
  6233. */
  6234. function protoAugment (target, src) {
  6235. /* eslint-disable no-proto */
  6236. target.__proto__ = src;
  6237. /* eslint-enable no-proto */
  6238. }
  6239. /**
  6240. * Augment a target Object or Array by defining
  6241. * hidden properties.
  6242. */
  6243. /* istanbul ignore next */
  6244. function copyAugment (target, src, keys) {
  6245. for (var i = 0, l = keys.length; i < l; i++) {
  6246. var key = keys[i];
  6247. def(target, key, src[key]);
  6248. }
  6249. }
  6250. /**
  6251. * Attempt to create an observer instance for a value,
  6252. * returns the new observer if successfully observed,
  6253. * or the existing observer if the value already has one.
  6254. */
  6255. function observe (value, asRootData) {
  6256. if (!isObject(value) || value instanceof VNode) {
  6257. return
  6258. }
  6259. var ob;
  6260. if (hasOwn(value, '__ob__') && value.__ob__ instanceof Observer) {
  6261. ob = value.__ob__;
  6262. } else if (
  6263. shouldObserve &&
  6264. !isServerRendering() &&
  6265. (Array.isArray(value) || isPlainObject(value)) &&
  6266. Object.isExtensible(value) &&
  6267. !value._isVue &&
  6268. !value.__v_isMPComponent
  6269. ) {
  6270. ob = new Observer(value);
  6271. }
  6272. if (asRootData && ob) {
  6273. ob.vmCount++;
  6274. }
  6275. return ob
  6276. }
  6277. /**
  6278. * Define a reactive property on an Object.
  6279. */
  6280. function defineReactive$$1 (
  6281. obj,
  6282. key,
  6283. val,
  6284. customSetter,
  6285. shallow
  6286. ) {
  6287. var dep = new Dep();
  6288. var property = Object.getOwnPropertyDescriptor(obj, key);
  6289. if (property && property.configurable === false) {
  6290. return
  6291. }
  6292. // cater for pre-defined getter/setters
  6293. var getter = property && property.get;
  6294. var setter = property && property.set;
  6295. if ((!getter || setter) && arguments.length === 2) {
  6296. val = obj[key];
  6297. }
  6298. var childOb = !shallow && observe(val);
  6299. Object.defineProperty(obj, key, {
  6300. enumerable: true,
  6301. configurable: true,
  6302. get: function reactiveGetter () {
  6303. var value = getter ? getter.call(obj) : val;
  6304. if (Dep.SharedObject.target) { // fixed by xxxxxx
  6305. dep.depend();
  6306. if (childOb) {
  6307. childOb.dep.depend();
  6308. if (Array.isArray(value)) {
  6309. dependArray(value);
  6310. }
  6311. }
  6312. }
  6313. return value
  6314. },
  6315. set: function reactiveSetter (newVal) {
  6316. var value = getter ? getter.call(obj) : val;
  6317. /* eslint-disable no-self-compare */
  6318. if (newVal === value || (newVal !== newVal && value !== value)) {
  6319. return
  6320. }
  6321. /* eslint-enable no-self-compare */
  6322. if ( true && customSetter) {
  6323. customSetter();
  6324. }
  6325. // #7981: for accessor properties without setter
  6326. if (getter && !setter) { return }
  6327. if (setter) {
  6328. setter.call(obj, newVal);
  6329. } else {
  6330. val = newVal;
  6331. }
  6332. childOb = !shallow && observe(newVal);
  6333. dep.notify();
  6334. }
  6335. });
  6336. }
  6337. /**
  6338. * Set a property on an object. Adds the new property and
  6339. * triggers change notification if the property doesn't
  6340. * already exist.
  6341. */
  6342. function set (target, key, val) {
  6343. if ( true &&
  6344. (isUndef(target) || isPrimitive(target))
  6345. ) {
  6346. warn(("Cannot set reactive property on undefined, null, or primitive value: " + ((target))));
  6347. }
  6348. if (Array.isArray(target) && isValidArrayIndex(key)) {
  6349. target.length = Math.max(target.length, key);
  6350. target.splice(key, 1, val);
  6351. return val
  6352. }
  6353. if (key in target && !(key in Object.prototype)) {
  6354. target[key] = val;
  6355. return val
  6356. }
  6357. var ob = (target).__ob__;
  6358. if (target._isVue || (ob && ob.vmCount)) {
  6359. true && warn(
  6360. 'Avoid adding reactive properties to a Vue instance or its root $data ' +
  6361. 'at runtime - declare it upfront in the data option.'
  6362. );
  6363. return val
  6364. }
  6365. if (!ob) {
  6366. target[key] = val;
  6367. return val
  6368. }
  6369. defineReactive$$1(ob.value, key, val);
  6370. ob.dep.notify();
  6371. return val
  6372. }
  6373. /**
  6374. * Delete a property and trigger change if necessary.
  6375. */
  6376. function del (target, key) {
  6377. if ( true &&
  6378. (isUndef(target) || isPrimitive(target))
  6379. ) {
  6380. warn(("Cannot delete reactive property on undefined, null, or primitive value: " + ((target))));
  6381. }
  6382. if (Array.isArray(target) && isValidArrayIndex(key)) {
  6383. target.splice(key, 1);
  6384. return
  6385. }
  6386. var ob = (target).__ob__;
  6387. if (target._isVue || (ob && ob.vmCount)) {
  6388. true && warn(
  6389. 'Avoid deleting properties on a Vue instance or its root $data ' +
  6390. '- just set it to null.'
  6391. );
  6392. return
  6393. }
  6394. if (!hasOwn(target, key)) {
  6395. return
  6396. }
  6397. delete target[key];
  6398. if (!ob) {
  6399. return
  6400. }
  6401. ob.dep.notify();
  6402. }
  6403. /**
  6404. * Collect dependencies on array elements when the array is touched, since
  6405. * we cannot intercept array element access like property getters.
  6406. */
  6407. function dependArray (value) {
  6408. for (var e = (void 0), i = 0, l = value.length; i < l; i++) {
  6409. e = value[i];
  6410. e && e.__ob__ && e.__ob__.dep.depend();
  6411. if (Array.isArray(e)) {
  6412. dependArray(e);
  6413. }
  6414. }
  6415. }
  6416. /* */
  6417. /**
  6418. * Option overwriting strategies are functions that handle
  6419. * how to merge a parent option value and a child option
  6420. * value into the final value.
  6421. */
  6422. var strats = config.optionMergeStrategies;
  6423. /**
  6424. * Options with restrictions
  6425. */
  6426. if (true) {
  6427. strats.el = strats.propsData = function (parent, child, vm, key) {
  6428. if (!vm) {
  6429. warn(
  6430. "option \"" + key + "\" can only be used during instance " +
  6431. 'creation with the `new` keyword.'
  6432. );
  6433. }
  6434. return defaultStrat(parent, child)
  6435. };
  6436. }
  6437. /**
  6438. * Helper that recursively merges two data objects together.
  6439. */
  6440. function mergeData (to, from) {
  6441. if (!from) { return to }
  6442. var key, toVal, fromVal;
  6443. var keys = hasSymbol
  6444. ? Reflect.ownKeys(from)
  6445. : Object.keys(from);
  6446. for (var i = 0; i < keys.length; i++) {
  6447. key = keys[i];
  6448. // in case the object is already observed...
  6449. if (key === '__ob__') { continue }
  6450. toVal = to[key];
  6451. fromVal = from[key];
  6452. if (!hasOwn(to, key)) {
  6453. set(to, key, fromVal);
  6454. } else if (
  6455. toVal !== fromVal &&
  6456. isPlainObject(toVal) &&
  6457. isPlainObject(fromVal)
  6458. ) {
  6459. mergeData(toVal, fromVal);
  6460. }
  6461. }
  6462. return to
  6463. }
  6464. /**
  6465. * Data
  6466. */
  6467. function mergeDataOrFn (
  6468. parentVal,
  6469. childVal,
  6470. vm
  6471. ) {
  6472. if (!vm) {
  6473. // in a Vue.extend merge, both should be functions
  6474. if (!childVal) {
  6475. return parentVal
  6476. }
  6477. if (!parentVal) {
  6478. return childVal
  6479. }
  6480. // when parentVal & childVal are both present,
  6481. // we need to return a function that returns the
  6482. // merged result of both functions... no need to
  6483. // check if parentVal is a function here because
  6484. // it has to be a function to pass previous merges.
  6485. return function mergedDataFn () {
  6486. return mergeData(
  6487. typeof childVal === 'function' ? childVal.call(this, this) : childVal,
  6488. typeof parentVal === 'function' ? parentVal.call(this, this) : parentVal
  6489. )
  6490. }
  6491. } else {
  6492. return function mergedInstanceDataFn () {
  6493. // instance merge
  6494. var instanceData = typeof childVal === 'function'
  6495. ? childVal.call(vm, vm)
  6496. : childVal;
  6497. var defaultData = typeof parentVal === 'function'
  6498. ? parentVal.call(vm, vm)
  6499. : parentVal;
  6500. if (instanceData) {
  6501. return mergeData(instanceData, defaultData)
  6502. } else {
  6503. return defaultData
  6504. }
  6505. }
  6506. }
  6507. }
  6508. strats.data = function (
  6509. parentVal,
  6510. childVal,
  6511. vm
  6512. ) {
  6513. if (!vm) {
  6514. if (childVal && typeof childVal !== 'function') {
  6515. true && warn(
  6516. 'The "data" option should be a function ' +
  6517. 'that returns a per-instance value in component ' +
  6518. 'definitions.',
  6519. vm
  6520. );
  6521. return parentVal
  6522. }
  6523. return mergeDataOrFn(parentVal, childVal)
  6524. }
  6525. return mergeDataOrFn(parentVal, childVal, vm)
  6526. };
  6527. /**
  6528. * Hooks and props are merged as arrays.
  6529. */
  6530. function mergeHook (
  6531. parentVal,
  6532. childVal
  6533. ) {
  6534. var res = childVal
  6535. ? parentVal
  6536. ? parentVal.concat(childVal)
  6537. : Array.isArray(childVal)
  6538. ? childVal
  6539. : [childVal]
  6540. : parentVal;
  6541. return res
  6542. ? dedupeHooks(res)
  6543. : res
  6544. }
  6545. function dedupeHooks (hooks) {
  6546. var res = [];
  6547. for (var i = 0; i < hooks.length; i++) {
  6548. if (res.indexOf(hooks[i]) === -1) {
  6549. res.push(hooks[i]);
  6550. }
  6551. }
  6552. return res
  6553. }
  6554. LIFECYCLE_HOOKS.forEach(function (hook) {
  6555. strats[hook] = mergeHook;
  6556. });
  6557. /**
  6558. * Assets
  6559. *
  6560. * When a vm is present (instance creation), we need to do
  6561. * a three-way merge between constructor options, instance
  6562. * options and parent options.
  6563. */
  6564. function mergeAssets (
  6565. parentVal,
  6566. childVal,
  6567. vm,
  6568. key
  6569. ) {
  6570. var res = Object.create(parentVal || null);
  6571. if (childVal) {
  6572. true && assertObjectType(key, childVal, vm);
  6573. return extend(res, childVal)
  6574. } else {
  6575. return res
  6576. }
  6577. }
  6578. ASSET_TYPES.forEach(function (type) {
  6579. strats[type + 's'] = mergeAssets;
  6580. });
  6581. /**
  6582. * Watchers.
  6583. *
  6584. * Watchers hashes should not overwrite one
  6585. * another, so we merge them as arrays.
  6586. */
  6587. strats.watch = function (
  6588. parentVal,
  6589. childVal,
  6590. vm,
  6591. key
  6592. ) {
  6593. // work around Firefox's Object.prototype.watch...
  6594. if (parentVal === nativeWatch) { parentVal = undefined; }
  6595. if (childVal === nativeWatch) { childVal = undefined; }
  6596. /* istanbul ignore if */
  6597. if (!childVal) { return Object.create(parentVal || null) }
  6598. if (true) {
  6599. assertObjectType(key, childVal, vm);
  6600. }
  6601. if (!parentVal) { return childVal }
  6602. var ret = {};
  6603. extend(ret, parentVal);
  6604. for (var key$1 in childVal) {
  6605. var parent = ret[key$1];
  6606. var child = childVal[key$1];
  6607. if (parent && !Array.isArray(parent)) {
  6608. parent = [parent];
  6609. }
  6610. ret[key$1] = parent
  6611. ? parent.concat(child)
  6612. : Array.isArray(child) ? child : [child];
  6613. }
  6614. return ret
  6615. };
  6616. /**
  6617. * Other object hashes.
  6618. */
  6619. strats.props =
  6620. strats.methods =
  6621. strats.inject =
  6622. strats.computed = function (
  6623. parentVal,
  6624. childVal,
  6625. vm,
  6626. key
  6627. ) {
  6628. if (childVal && "development" !== 'production') {
  6629. assertObjectType(key, childVal, vm);
  6630. }
  6631. if (!parentVal) { return childVal }
  6632. var ret = Object.create(null);
  6633. extend(ret, parentVal);
  6634. if (childVal) { extend(ret, childVal); }
  6635. return ret
  6636. };
  6637. strats.provide = mergeDataOrFn;
  6638. /**
  6639. * Default strategy.
  6640. */
  6641. var defaultStrat = function (parentVal, childVal) {
  6642. return childVal === undefined
  6643. ? parentVal
  6644. : childVal
  6645. };
  6646. /**
  6647. * Validate component names
  6648. */
  6649. function checkComponents (options) {
  6650. for (var key in options.components) {
  6651. validateComponentName(key);
  6652. }
  6653. }
  6654. function validateComponentName (name) {
  6655. if (!new RegExp(("^[a-zA-Z][\\-\\.0-9_" + (unicodeRegExp.source) + "]*$")).test(name)) {
  6656. warn(
  6657. 'Invalid component name: "' + name + '". Component names ' +
  6658. 'should conform to valid custom element name in html5 specification.'
  6659. );
  6660. }
  6661. if (isBuiltInTag(name) || config.isReservedTag(name)) {
  6662. warn(
  6663. 'Do not use built-in or reserved HTML elements as component ' +
  6664. 'id: ' + name
  6665. );
  6666. }
  6667. }
  6668. /**
  6669. * Ensure all props option syntax are normalized into the
  6670. * Object-based format.
  6671. */
  6672. function normalizeProps (options, vm) {
  6673. var props = options.props;
  6674. if (!props) { return }
  6675. var res = {};
  6676. var i, val, name;
  6677. if (Array.isArray(props)) {
  6678. i = props.length;
  6679. while (i--) {
  6680. val = props[i];
  6681. if (typeof val === 'string') {
  6682. name = camelize(val);
  6683. res[name] = { type: null };
  6684. } else if (true) {
  6685. warn('props must be strings when using array syntax.');
  6686. }
  6687. }
  6688. } else if (isPlainObject(props)) {
  6689. for (var key in props) {
  6690. val = props[key];
  6691. name = camelize(key);
  6692. res[name] = isPlainObject(val)
  6693. ? val
  6694. : { type: val };
  6695. }
  6696. } else if (true) {
  6697. warn(
  6698. "Invalid value for option \"props\": expected an Array or an Object, " +
  6699. "but got " + (toRawType(props)) + ".",
  6700. vm
  6701. );
  6702. }
  6703. options.props = res;
  6704. }
  6705. /**
  6706. * Normalize all injections into Object-based format
  6707. */
  6708. function normalizeInject (options, vm) {
  6709. var inject = options.inject;
  6710. if (!inject) { return }
  6711. var normalized = options.inject = {};
  6712. if (Array.isArray(inject)) {
  6713. for (var i = 0; i < inject.length; i++) {
  6714. normalized[inject[i]] = { from: inject[i] };
  6715. }
  6716. } else if (isPlainObject(inject)) {
  6717. for (var key in inject) {
  6718. var val = inject[key];
  6719. normalized[key] = isPlainObject(val)
  6720. ? extend({ from: key }, val)
  6721. : { from: val };
  6722. }
  6723. } else if (true) {
  6724. warn(
  6725. "Invalid value for option \"inject\": expected an Array or an Object, " +
  6726. "but got " + (toRawType(inject)) + ".",
  6727. vm
  6728. );
  6729. }
  6730. }
  6731. /**
  6732. * Normalize raw function directives into object format.
  6733. */
  6734. function normalizeDirectives (options) {
  6735. var dirs = options.directives;
  6736. if (dirs) {
  6737. for (var key in dirs) {
  6738. var def$$1 = dirs[key];
  6739. if (typeof def$$1 === 'function') {
  6740. dirs[key] = { bind: def$$1, update: def$$1 };
  6741. }
  6742. }
  6743. }
  6744. }
  6745. function assertObjectType (name, value, vm) {
  6746. if (!isPlainObject(value)) {
  6747. warn(
  6748. "Invalid value for option \"" + name + "\": expected an Object, " +
  6749. "but got " + (toRawType(value)) + ".",
  6750. vm
  6751. );
  6752. }
  6753. }
  6754. /**
  6755. * Merge two option objects into a new one.
  6756. * Core utility used in both instantiation and inheritance.
  6757. */
  6758. function mergeOptions (
  6759. parent,
  6760. child,
  6761. vm
  6762. ) {
  6763. if (true) {
  6764. checkComponents(child);
  6765. }
  6766. if (typeof child === 'function') {
  6767. child = child.options;
  6768. }
  6769. normalizeProps(child, vm);
  6770. normalizeInject(child, vm);
  6771. normalizeDirectives(child);
  6772. // Apply extends and mixins on the child options,
  6773. // but only if it is a raw options object that isn't
  6774. // the result of another mergeOptions call.
  6775. // Only merged options has the _base property.
  6776. if (!child._base) {
  6777. if (child.extends) {
  6778. parent = mergeOptions(parent, child.extends, vm);
  6779. }
  6780. if (child.mixins) {
  6781. for (var i = 0, l = child.mixins.length; i < l; i++) {
  6782. parent = mergeOptions(parent, child.mixins[i], vm);
  6783. }
  6784. }
  6785. }
  6786. var options = {};
  6787. var key;
  6788. for (key in parent) {
  6789. mergeField(key);
  6790. }
  6791. for (key in child) {
  6792. if (!hasOwn(parent, key)) {
  6793. mergeField(key);
  6794. }
  6795. }
  6796. function mergeField (key) {
  6797. var strat = strats[key] || defaultStrat;
  6798. options[key] = strat(parent[key], child[key], vm, key);
  6799. }
  6800. return options
  6801. }
  6802. /**
  6803. * Resolve an asset.
  6804. * This function is used because child instances need access
  6805. * to assets defined in its ancestor chain.
  6806. */
  6807. function resolveAsset (
  6808. options,
  6809. type,
  6810. id,
  6811. warnMissing
  6812. ) {
  6813. /* istanbul ignore if */
  6814. if (typeof id !== 'string') {
  6815. return
  6816. }
  6817. var assets = options[type];
  6818. // check local registration variations first
  6819. if (hasOwn(assets, id)) { return assets[id] }
  6820. var camelizedId = camelize(id);
  6821. if (hasOwn(assets, camelizedId)) { return assets[camelizedId] }
  6822. var PascalCaseId = capitalize(camelizedId);
  6823. if (hasOwn(assets, PascalCaseId)) { return assets[PascalCaseId] }
  6824. // fallback to prototype chain
  6825. var res = assets[id] || assets[camelizedId] || assets[PascalCaseId];
  6826. if ( true && warnMissing && !res) {
  6827. warn(
  6828. 'Failed to resolve ' + type.slice(0, -1) + ': ' + id,
  6829. options
  6830. );
  6831. }
  6832. return res
  6833. }
  6834. /* */
  6835. function validateProp (
  6836. key,
  6837. propOptions,
  6838. propsData,
  6839. vm
  6840. ) {
  6841. var prop = propOptions[key];
  6842. var absent = !hasOwn(propsData, key);
  6843. var value = propsData[key];
  6844. // boolean casting
  6845. var booleanIndex = getTypeIndex(Boolean, prop.type);
  6846. if (booleanIndex > -1) {
  6847. if (absent && !hasOwn(prop, 'default')) {
  6848. value = false;
  6849. } else if (value === '' || value === hyphenate(key)) {
  6850. // only cast empty string / same name to boolean if
  6851. // boolean has higher priority
  6852. var stringIndex = getTypeIndex(String, prop.type);
  6853. if (stringIndex < 0 || booleanIndex < stringIndex) {
  6854. value = true;
  6855. }
  6856. }
  6857. }
  6858. // check default value
  6859. if (value === undefined) {
  6860. value = getPropDefaultValue(vm, prop, key);
  6861. // since the default value is a fresh copy,
  6862. // make sure to observe it.
  6863. var prevShouldObserve = shouldObserve;
  6864. toggleObserving(true);
  6865. observe(value);
  6866. toggleObserving(prevShouldObserve);
  6867. }
  6868. if (
  6869. true
  6870. ) {
  6871. assertProp(prop, key, value, vm, absent);
  6872. }
  6873. return value
  6874. }
  6875. /**
  6876. * Get the default value of a prop.
  6877. */
  6878. function getPropDefaultValue (vm, prop, key) {
  6879. // no default, return undefined
  6880. if (!hasOwn(prop, 'default')) {
  6881. return undefined
  6882. }
  6883. var def = prop.default;
  6884. // warn against non-factory defaults for Object & Array
  6885. if ( true && isObject(def)) {
  6886. warn(
  6887. 'Invalid default value for prop "' + key + '": ' +
  6888. 'Props with type Object/Array must use a factory function ' +
  6889. 'to return the default value.',
  6890. vm
  6891. );
  6892. }
  6893. // the raw prop value was also undefined from previous render,
  6894. // return previous default value to avoid unnecessary watcher trigger
  6895. if (vm && vm.$options.propsData &&
  6896. vm.$options.propsData[key] === undefined &&
  6897. vm._props[key] !== undefined
  6898. ) {
  6899. return vm._props[key]
  6900. }
  6901. // call factory function for non-Function types
  6902. // a value is Function if its prototype is function even across different execution context
  6903. return typeof def === 'function' && getType(prop.type) !== 'Function'
  6904. ? def.call(vm)
  6905. : def
  6906. }
  6907. /**
  6908. * Assert whether a prop is valid.
  6909. */
  6910. function assertProp (
  6911. prop,
  6912. name,
  6913. value,
  6914. vm,
  6915. absent
  6916. ) {
  6917. if (prop.required && absent) {
  6918. warn(
  6919. 'Missing required prop: "' + name + '"',
  6920. vm
  6921. );
  6922. return
  6923. }
  6924. if (value == null && !prop.required) {
  6925. return
  6926. }
  6927. var type = prop.type;
  6928. var valid = !type || type === true;
  6929. var expectedTypes = [];
  6930. if (type) {
  6931. if (!Array.isArray(type)) {
  6932. type = [type];
  6933. }
  6934. for (var i = 0; i < type.length && !valid; i++) {
  6935. var assertedType = assertType(value, type[i]);
  6936. expectedTypes.push(assertedType.expectedType || '');
  6937. valid = assertedType.valid;
  6938. }
  6939. }
  6940. if (!valid) {
  6941. warn(
  6942. getInvalidTypeMessage(name, value, expectedTypes),
  6943. vm
  6944. );
  6945. return
  6946. }
  6947. var validator = prop.validator;
  6948. if (validator) {
  6949. if (!validator(value)) {
  6950. warn(
  6951. 'Invalid prop: custom validator check failed for prop "' + name + '".',
  6952. vm
  6953. );
  6954. }
  6955. }
  6956. }
  6957. var simpleCheckRE = /^(String|Number|Boolean|Function|Symbol)$/;
  6958. function assertType (value, type) {
  6959. var valid;
  6960. var expectedType = getType(type);
  6961. if (simpleCheckRE.test(expectedType)) {
  6962. var t = typeof value;
  6963. valid = t === expectedType.toLowerCase();
  6964. // for primitive wrapper objects
  6965. if (!valid && t === 'object') {
  6966. valid = value instanceof type;
  6967. }
  6968. } else if (expectedType === 'Object') {
  6969. valid = isPlainObject(value);
  6970. } else if (expectedType === 'Array') {
  6971. valid = Array.isArray(value);
  6972. } else {
  6973. valid = value instanceof type;
  6974. }
  6975. return {
  6976. valid: valid,
  6977. expectedType: expectedType
  6978. }
  6979. }
  6980. /**
  6981. * Use function string name to check built-in types,
  6982. * because a simple equality check will fail when running
  6983. * across different vms / iframes.
  6984. */
  6985. function getType (fn) {
  6986. var match = fn && fn.toString().match(/^\s*function (\w+)/);
  6987. return match ? match[1] : ''
  6988. }
  6989. function isSameType (a, b) {
  6990. return getType(a) === getType(b)
  6991. }
  6992. function getTypeIndex (type, expectedTypes) {
  6993. if (!Array.isArray(expectedTypes)) {
  6994. return isSameType(expectedTypes, type) ? 0 : -1
  6995. }
  6996. for (var i = 0, len = expectedTypes.length; i < len; i++) {
  6997. if (isSameType(expectedTypes[i], type)) {
  6998. return i
  6999. }
  7000. }
  7001. return -1
  7002. }
  7003. function getInvalidTypeMessage (name, value, expectedTypes) {
  7004. var message = "Invalid prop: type check failed for prop \"" + name + "\"." +
  7005. " Expected " + (expectedTypes.map(capitalize).join(', '));
  7006. var expectedType = expectedTypes[0];
  7007. var receivedType = toRawType(value);
  7008. var expectedValue = styleValue(value, expectedType);
  7009. var receivedValue = styleValue(value, receivedType);
  7010. // check if we need to specify expected value
  7011. if (expectedTypes.length === 1 &&
  7012. isExplicable(expectedType) &&
  7013. !isBoolean(expectedType, receivedType)) {
  7014. message += " with value " + expectedValue;
  7015. }
  7016. message += ", got " + receivedType + " ";
  7017. // check if we need to specify received value
  7018. if (isExplicable(receivedType)) {
  7019. message += "with value " + receivedValue + ".";
  7020. }
  7021. return message
  7022. }
  7023. function styleValue (value, type) {
  7024. if (type === 'String') {
  7025. return ("\"" + value + "\"")
  7026. } else if (type === 'Number') {
  7027. return ("" + (Number(value)))
  7028. } else {
  7029. return ("" + value)
  7030. }
  7031. }
  7032. function isExplicable (value) {
  7033. var explicitTypes = ['string', 'number', 'boolean'];
  7034. return explicitTypes.some(function (elem) { return value.toLowerCase() === elem; })
  7035. }
  7036. function isBoolean () {
  7037. var args = [], len = arguments.length;
  7038. while ( len-- ) args[ len ] = arguments[ len ];
  7039. return args.some(function (elem) { return elem.toLowerCase() === 'boolean'; })
  7040. }
  7041. /* */
  7042. function handleError (err, vm, info) {
  7043. // Deactivate deps tracking while processing error handler to avoid possible infinite rendering.
  7044. // See: https://github.com/vuejs/vuex/issues/1505
  7045. pushTarget();
  7046. try {
  7047. if (vm) {
  7048. var cur = vm;
  7049. while ((cur = cur.$parent)) {
  7050. var hooks = cur.$options.errorCaptured;
  7051. if (hooks) {
  7052. for (var i = 0; i < hooks.length; i++) {
  7053. try {
  7054. var capture = hooks[i].call(cur, err, vm, info) === false;
  7055. if (capture) { return }
  7056. } catch (e) {
  7057. globalHandleError(e, cur, 'errorCaptured hook');
  7058. }
  7059. }
  7060. }
  7061. }
  7062. }
  7063. globalHandleError(err, vm, info);
  7064. } finally {
  7065. popTarget();
  7066. }
  7067. }
  7068. function invokeWithErrorHandling (
  7069. handler,
  7070. context,
  7071. args,
  7072. vm,
  7073. info
  7074. ) {
  7075. var res;
  7076. try {
  7077. res = args ? handler.apply(context, args) : handler.call(context);
  7078. if (res && !res._isVue && isPromise(res) && !res._handled) {
  7079. res.catch(function (e) { return handleError(e, vm, info + " (Promise/async)"); });
  7080. // issue #9511
  7081. // avoid catch triggering multiple times when nested calls
  7082. res._handled = true;
  7083. }
  7084. } catch (e) {
  7085. handleError(e, vm, info);
  7086. }
  7087. return res
  7088. }
  7089. function globalHandleError (err, vm, info) {
  7090. if (config.errorHandler) {
  7091. try {
  7092. return config.errorHandler.call(null, err, vm, info)
  7093. } catch (e) {
  7094. // if the user intentionally throws the original error in the handler,
  7095. // do not log it twice
  7096. if (e !== err) {
  7097. logError(e, null, 'config.errorHandler');
  7098. }
  7099. }
  7100. }
  7101. logError(err, vm, info);
  7102. }
  7103. function logError (err, vm, info) {
  7104. if (true) {
  7105. warn(("Error in " + info + ": \"" + (err.toString()) + "\""), vm);
  7106. }
  7107. /* istanbul ignore else */
  7108. if ((inBrowser || inWeex) && typeof console !== 'undefined') {
  7109. console.error(err);
  7110. } else {
  7111. throw err
  7112. }
  7113. }
  7114. /* */
  7115. var callbacks = [];
  7116. var pending = false;
  7117. function flushCallbacks () {
  7118. pending = false;
  7119. var copies = callbacks.slice(0);
  7120. callbacks.length = 0;
  7121. for (var i = 0; i < copies.length; i++) {
  7122. copies[i]();
  7123. }
  7124. }
  7125. // Here we have async deferring wrappers using microtasks.
  7126. // In 2.5 we used (macro) tasks (in combination with microtasks).
  7127. // However, it has subtle problems when state is changed right before repaint
  7128. // (e.g. #6813, out-in transitions).
  7129. // Also, using (macro) tasks in event handler would cause some weird behaviors
  7130. // that cannot be circumvented (e.g. #7109, #7153, #7546, #7834, #8109).
  7131. // So we now use microtasks everywhere, again.
  7132. // A major drawback of this tradeoff is that there are some scenarios
  7133. // where microtasks have too high a priority and fire in between supposedly
  7134. // sequential events (e.g. #4521, #6690, which have workarounds)
  7135. // or even between bubbling of the same event (#6566).
  7136. var timerFunc;
  7137. // The nextTick behavior leverages the microtask queue, which can be accessed
  7138. // via either native Promise.then or MutationObserver.
  7139. // MutationObserver has wider support, however it is seriously bugged in
  7140. // UIWebView in iOS >= 9.3.3 when triggered in touch event handlers. It
  7141. // completely stops working after triggering a few times... so, if native
  7142. // Promise is available, we will use it:
  7143. /* istanbul ignore next, $flow-disable-line */
  7144. if (typeof Promise !== 'undefined' && isNative(Promise)) {
  7145. var p = Promise.resolve();
  7146. timerFunc = function () {
  7147. p.then(flushCallbacks);
  7148. // In problematic UIWebViews, Promise.then doesn't completely break, but
  7149. // it can get stuck in a weird state where callbacks are pushed into the
  7150. // microtask queue but the queue isn't being flushed, until the browser
  7151. // needs to do some other work, e.g. handle a timer. Therefore we can
  7152. // "force" the microtask queue to be flushed by adding an empty timer.
  7153. if (isIOS) { setTimeout(noop); }
  7154. };
  7155. } else if (!isIE && typeof MutationObserver !== 'undefined' && (
  7156. isNative(MutationObserver) ||
  7157. // PhantomJS and iOS 7.x
  7158. MutationObserver.toString() === '[object MutationObserverConstructor]'
  7159. )) {
  7160. // Use MutationObserver where native Promise is not available,
  7161. // e.g. PhantomJS, iOS7, Android 4.4
  7162. // (#6466 MutationObserver is unreliable in IE11)
  7163. var counter = 1;
  7164. var observer = new MutationObserver(flushCallbacks);
  7165. var textNode = document.createTextNode(String(counter));
  7166. observer.observe(textNode, {
  7167. characterData: true
  7168. });
  7169. timerFunc = function () {
  7170. counter = (counter + 1) % 2;
  7171. textNode.data = String(counter);
  7172. };
  7173. } else if (typeof setImmediate !== 'undefined' && isNative(setImmediate)) {
  7174. // Fallback to setImmediate.
  7175. // Technically it leverages the (macro) task queue,
  7176. // but it is still a better choice than setTimeout.
  7177. timerFunc = function () {
  7178. setImmediate(flushCallbacks);
  7179. };
  7180. } else {
  7181. // Fallback to setTimeout.
  7182. timerFunc = function () {
  7183. setTimeout(flushCallbacks, 0);
  7184. };
  7185. }
  7186. function nextTick (cb, ctx) {
  7187. var _resolve;
  7188. callbacks.push(function () {
  7189. if (cb) {
  7190. try {
  7191. cb.call(ctx);
  7192. } catch (e) {
  7193. handleError(e, ctx, 'nextTick');
  7194. }
  7195. } else if (_resolve) {
  7196. _resolve(ctx);
  7197. }
  7198. });
  7199. if (!pending) {
  7200. pending = true;
  7201. timerFunc();
  7202. }
  7203. // $flow-disable-line
  7204. if (!cb && typeof Promise !== 'undefined') {
  7205. return new Promise(function (resolve) {
  7206. _resolve = resolve;
  7207. })
  7208. }
  7209. }
  7210. /* */
  7211. /* not type checking this file because flow doesn't play well with Proxy */
  7212. var initProxy;
  7213. if (true) {
  7214. var allowedGlobals = makeMap(
  7215. 'Infinity,undefined,NaN,isFinite,isNaN,' +
  7216. 'parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,' +
  7217. 'Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl,' +
  7218. 'require' // for Webpack/Browserify
  7219. );
  7220. var warnNonPresent = function (target, key) {
  7221. warn(
  7222. "Property or method \"" + key + "\" is not defined on the instance but " +
  7223. 'referenced during render. Make sure that this property is reactive, ' +
  7224. 'either in the data option, or for class-based components, by ' +
  7225. 'initializing the property. ' +
  7226. 'See: https://vuejs.org/v2/guide/reactivity.html#Declaring-Reactive-Properties.',
  7227. target
  7228. );
  7229. };
  7230. var warnReservedPrefix = function (target, key) {
  7231. warn(
  7232. "Property \"" + key + "\" must be accessed with \"$data." + key + "\" because " +
  7233. 'properties starting with "$" or "_" are not proxied in the Vue instance to ' +
  7234. 'prevent conflicts with Vue internals. ' +
  7235. 'See: https://vuejs.org/v2/api/#data',
  7236. target
  7237. );
  7238. };
  7239. var hasProxy =
  7240. typeof Proxy !== 'undefined' && isNative(Proxy);
  7241. if (hasProxy) {
  7242. var isBuiltInModifier = makeMap('stop,prevent,self,ctrl,shift,alt,meta,exact');
  7243. config.keyCodes = new Proxy(config.keyCodes, {
  7244. set: function set (target, key, value) {
  7245. if (isBuiltInModifier(key)) {
  7246. warn(("Avoid overwriting built-in modifier in config.keyCodes: ." + key));
  7247. return false
  7248. } else {
  7249. target[key] = value;
  7250. return true
  7251. }
  7252. }
  7253. });
  7254. }
  7255. var hasHandler = {
  7256. has: function has (target, key) {
  7257. var has = key in target;
  7258. var isAllowed = allowedGlobals(key) ||
  7259. (typeof key === 'string' && key.charAt(0) === '_' && !(key in target.$data));
  7260. if (!has && !isAllowed) {
  7261. if (key in target.$data) { warnReservedPrefix(target, key); }
  7262. else { warnNonPresent(target, key); }
  7263. }
  7264. return has || !isAllowed
  7265. }
  7266. };
  7267. var getHandler = {
  7268. get: function get (target, key) {
  7269. if (typeof key === 'string' && !(key in target)) {
  7270. if (key in target.$data) { warnReservedPrefix(target, key); }
  7271. else { warnNonPresent(target, key); }
  7272. }
  7273. return target[key]
  7274. }
  7275. };
  7276. initProxy = function initProxy (vm) {
  7277. if (hasProxy) {
  7278. // determine which proxy handler to use
  7279. var options = vm.$options;
  7280. var handlers = options.render && options.render._withStripped
  7281. ? getHandler
  7282. : hasHandler;
  7283. vm._renderProxy = new Proxy(vm, handlers);
  7284. } else {
  7285. vm._renderProxy = vm;
  7286. }
  7287. };
  7288. }
  7289. /* */
  7290. var seenObjects = new _Set();
  7291. /**
  7292. * Recursively traverse an object to evoke all converted
  7293. * getters, so that every nested property inside the object
  7294. * is collected as a "deep" dependency.
  7295. */
  7296. function traverse (val) {
  7297. _traverse(val, seenObjects);
  7298. seenObjects.clear();
  7299. }
  7300. function _traverse (val, seen) {
  7301. var i, keys;
  7302. var isA = Array.isArray(val);
  7303. if ((!isA && !isObject(val)) || Object.isFrozen(val) || val instanceof VNode) {
  7304. return
  7305. }
  7306. if (val.__ob__) {
  7307. var depId = val.__ob__.dep.id;
  7308. if (seen.has(depId)) {
  7309. return
  7310. }
  7311. seen.add(depId);
  7312. }
  7313. if (isA) {
  7314. i = val.length;
  7315. while (i--) { _traverse(val[i], seen); }
  7316. } else {
  7317. keys = Object.keys(val);
  7318. i = keys.length;
  7319. while (i--) { _traverse(val[keys[i]], seen); }
  7320. }
  7321. }
  7322. var mark;
  7323. var measure;
  7324. if (true) {
  7325. var perf = inBrowser && window.performance;
  7326. /* istanbul ignore if */
  7327. if (
  7328. perf &&
  7329. perf.mark &&
  7330. perf.measure &&
  7331. perf.clearMarks &&
  7332. perf.clearMeasures
  7333. ) {
  7334. mark = function (tag) { return perf.mark(tag); };
  7335. measure = function (name, startTag, endTag) {
  7336. perf.measure(name, startTag, endTag);
  7337. perf.clearMarks(startTag);
  7338. perf.clearMarks(endTag);
  7339. // perf.clearMeasures(name)
  7340. };
  7341. }
  7342. }
  7343. /* */
  7344. var normalizeEvent = cached(function (name) {
  7345. var passive = name.charAt(0) === '&';
  7346. name = passive ? name.slice(1) : name;
  7347. var once$$1 = name.charAt(0) === '~'; // Prefixed last, checked first
  7348. name = once$$1 ? name.slice(1) : name;
  7349. var capture = name.charAt(0) === '!';
  7350. name = capture ? name.slice(1) : name;
  7351. return {
  7352. name: name,
  7353. once: once$$1,
  7354. capture: capture,
  7355. passive: passive
  7356. }
  7357. });
  7358. function createFnInvoker (fns, vm) {
  7359. function invoker () {
  7360. var arguments$1 = arguments;
  7361. var fns = invoker.fns;
  7362. if (Array.isArray(fns)) {
  7363. var cloned = fns.slice();
  7364. for (var i = 0; i < cloned.length; i++) {
  7365. invokeWithErrorHandling(cloned[i], null, arguments$1, vm, "v-on handler");
  7366. }
  7367. } else {
  7368. // return handler return value for single handlers
  7369. return invokeWithErrorHandling(fns, null, arguments, vm, "v-on handler")
  7370. }
  7371. }
  7372. invoker.fns = fns;
  7373. return invoker
  7374. }
  7375. function updateListeners (
  7376. on,
  7377. oldOn,
  7378. add,
  7379. remove$$1,
  7380. createOnceHandler,
  7381. vm
  7382. ) {
  7383. var name, def$$1, cur, old, event;
  7384. for (name in on) {
  7385. def$$1 = cur = on[name];
  7386. old = oldOn[name];
  7387. event = normalizeEvent(name);
  7388. if (isUndef(cur)) {
  7389. true && warn(
  7390. "Invalid handler for event \"" + (event.name) + "\": got " + String(cur),
  7391. vm
  7392. );
  7393. } else if (isUndef(old)) {
  7394. if (isUndef(cur.fns)) {
  7395. cur = on[name] = createFnInvoker(cur, vm);
  7396. }
  7397. if (isTrue(event.once)) {
  7398. cur = on[name] = createOnceHandler(event.name, cur, event.capture);
  7399. }
  7400. add(event.name, cur, event.capture, event.passive, event.params);
  7401. } else if (cur !== old) {
  7402. old.fns = cur;
  7403. on[name] = old;
  7404. }
  7405. }
  7406. for (name in oldOn) {
  7407. if (isUndef(on[name])) {
  7408. event = normalizeEvent(name);
  7409. remove$$1(event.name, oldOn[name], event.capture);
  7410. }
  7411. }
  7412. }
  7413. /* */
  7414. /* */
  7415. // fixed by xxxxxx (mp properties)
  7416. function extractPropertiesFromVNodeData(data, Ctor, res, context) {
  7417. var propOptions = Ctor.options.mpOptions && Ctor.options.mpOptions.properties;
  7418. if (isUndef(propOptions)) {
  7419. return res
  7420. }
  7421. var externalClasses = Ctor.options.mpOptions.externalClasses || [];
  7422. var attrs = data.attrs;
  7423. var props = data.props;
  7424. if (isDef(attrs) || isDef(props)) {
  7425. for (var key in propOptions) {
  7426. var altKey = hyphenate(key);
  7427. var result = checkProp(res, props, key, altKey, true) ||
  7428. checkProp(res, attrs, key, altKey, false);
  7429. // externalClass
  7430. if (
  7431. result &&
  7432. res[key] &&
  7433. externalClasses.indexOf(altKey) !== -1 &&
  7434. context[camelize(res[key])]
  7435. ) {
  7436. // 赋值 externalClass 真正的值(模板里 externalClass 的值可能是字符串)
  7437. res[key] = context[camelize(res[key])];
  7438. }
  7439. }
  7440. }
  7441. return res
  7442. }
  7443. function extractPropsFromVNodeData (
  7444. data,
  7445. Ctor,
  7446. tag,
  7447. context// fixed by xxxxxx
  7448. ) {
  7449. // we are only extracting raw values here.
  7450. // validation and default values are handled in the child
  7451. // component itself.
  7452. var propOptions = Ctor.options.props;
  7453. if (isUndef(propOptions)) {
  7454. // fixed by xxxxxx
  7455. return extractPropertiesFromVNodeData(data, Ctor, {}, context)
  7456. }
  7457. var res = {};
  7458. var attrs = data.attrs;
  7459. var props = data.props;
  7460. if (isDef(attrs) || isDef(props)) {
  7461. for (var key in propOptions) {
  7462. var altKey = hyphenate(key);
  7463. if (true) {
  7464. var keyInLowerCase = key.toLowerCase();
  7465. if (
  7466. key !== keyInLowerCase &&
  7467. attrs && hasOwn(attrs, keyInLowerCase)
  7468. ) {
  7469. tip(
  7470. "Prop \"" + keyInLowerCase + "\" is passed to component " +
  7471. (formatComponentName(tag || Ctor)) + ", but the declared prop name is" +
  7472. " \"" + key + "\". " +
  7473. "Note that HTML attributes are case-insensitive and camelCased " +
  7474. "props need to use their kebab-case equivalents when using in-DOM " +
  7475. "templates. You should probably use \"" + altKey + "\" instead of \"" + key + "\"."
  7476. );
  7477. }
  7478. }
  7479. checkProp(res, props, key, altKey, true) ||
  7480. checkProp(res, attrs, key, altKey, false);
  7481. }
  7482. }
  7483. // fixed by xxxxxx
  7484. return extractPropertiesFromVNodeData(data, Ctor, res, context)
  7485. }
  7486. function checkProp (
  7487. res,
  7488. hash,
  7489. key,
  7490. altKey,
  7491. preserve
  7492. ) {
  7493. if (isDef(hash)) {
  7494. if (hasOwn(hash, key)) {
  7495. res[key] = hash[key];
  7496. if (!preserve) {
  7497. delete hash[key];
  7498. }
  7499. return true
  7500. } else if (hasOwn(hash, altKey)) {
  7501. res[key] = hash[altKey];
  7502. if (!preserve) {
  7503. delete hash[altKey];
  7504. }
  7505. return true
  7506. }
  7507. }
  7508. return false
  7509. }
  7510. /* */
  7511. // The template compiler attempts to minimize the need for normalization by
  7512. // statically analyzing the template at compile time.
  7513. //
  7514. // For plain HTML markup, normalization can be completely skipped because the
  7515. // generated render function is guaranteed to return Array<VNode>. There are
  7516. // two cases where extra normalization is needed:
  7517. // 1. When the children contains components - because a functional component
  7518. // may return an Array instead of a single root. In this case, just a simple
  7519. // normalization is needed - if any child is an Array, we flatten the whole
  7520. // thing with Array.prototype.concat. It is guaranteed to be only 1-level deep
  7521. // because functional components already normalize their own children.
  7522. function simpleNormalizeChildren (children) {
  7523. for (var i = 0; i < children.length; i++) {
  7524. if (Array.isArray(children[i])) {
  7525. return Array.prototype.concat.apply([], children)
  7526. }
  7527. }
  7528. return children
  7529. }
  7530. // 2. When the children contains constructs that always generated nested Arrays,
  7531. // e.g. <template>, <slot>, v-for, or when the children is provided by user
  7532. // with hand-written render functions / JSX. In such cases a full normalization
  7533. // is needed to cater to all possible types of children values.
  7534. function normalizeChildren (children) {
  7535. return isPrimitive(children)
  7536. ? [createTextVNode(children)]
  7537. : Array.isArray(children)
  7538. ? normalizeArrayChildren(children)
  7539. : undefined
  7540. }
  7541. function isTextNode (node) {
  7542. return isDef(node) && isDef(node.text) && isFalse(node.isComment)
  7543. }
  7544. function normalizeArrayChildren (children, nestedIndex) {
  7545. var res = [];
  7546. var i, c, lastIndex, last;
  7547. for (i = 0; i < children.length; i++) {
  7548. c = children[i];
  7549. if (isUndef(c) || typeof c === 'boolean') { continue }
  7550. lastIndex = res.length - 1;
  7551. last = res[lastIndex];
  7552. // nested
  7553. if (Array.isArray(c)) {
  7554. if (c.length > 0) {
  7555. c = normalizeArrayChildren(c, ((nestedIndex || '') + "_" + i));
  7556. // merge adjacent text nodes
  7557. if (isTextNode(c[0]) && isTextNode(last)) {
  7558. res[lastIndex] = createTextVNode(last.text + (c[0]).text);
  7559. c.shift();
  7560. }
  7561. res.push.apply(res, c);
  7562. }
  7563. } else if (isPrimitive(c)) {
  7564. if (isTextNode(last)) {
  7565. // merge adjacent text nodes
  7566. // this is necessary for SSR hydration because text nodes are
  7567. // essentially merged when rendered to HTML strings
  7568. res[lastIndex] = createTextVNode(last.text + c);
  7569. } else if (c !== '') {
  7570. // convert primitive to vnode
  7571. res.push(createTextVNode(c));
  7572. }
  7573. } else {
  7574. if (isTextNode(c) && isTextNode(last)) {
  7575. // merge adjacent text nodes
  7576. res[lastIndex] = createTextVNode(last.text + c.text);
  7577. } else {
  7578. // default key for nested array children (likely generated by v-for)
  7579. if (isTrue(children._isVList) &&
  7580. isDef(c.tag) &&
  7581. isUndef(c.key) &&
  7582. isDef(nestedIndex)) {
  7583. c.key = "__vlist" + nestedIndex + "_" + i + "__";
  7584. }
  7585. res.push(c);
  7586. }
  7587. }
  7588. }
  7589. return res
  7590. }
  7591. /* */
  7592. function initProvide (vm) {
  7593. var provide = vm.$options.provide;
  7594. if (provide) {
  7595. vm._provided = typeof provide === 'function'
  7596. ? provide.call(vm)
  7597. : provide;
  7598. }
  7599. }
  7600. function initInjections (vm) {
  7601. var result = resolveInject(vm.$options.inject, vm);
  7602. if (result) {
  7603. toggleObserving(false);
  7604. Object.keys(result).forEach(function (key) {
  7605. /* istanbul ignore else */
  7606. if (true) {
  7607. defineReactive$$1(vm, key, result[key], function () {
  7608. warn(
  7609. "Avoid mutating an injected value directly since the changes will be " +
  7610. "overwritten whenever the provided component re-renders. " +
  7611. "injection being mutated: \"" + key + "\"",
  7612. vm
  7613. );
  7614. });
  7615. } else {}
  7616. });
  7617. toggleObserving(true);
  7618. }
  7619. }
  7620. function resolveInject (inject, vm) {
  7621. if (inject) {
  7622. // inject is :any because flow is not smart enough to figure out cached
  7623. var result = Object.create(null);
  7624. var keys = hasSymbol
  7625. ? Reflect.ownKeys(inject)
  7626. : Object.keys(inject);
  7627. for (var i = 0; i < keys.length; i++) {
  7628. var key = keys[i];
  7629. // #6574 in case the inject object is observed...
  7630. if (key === '__ob__') { continue }
  7631. var provideKey = inject[key].from;
  7632. var source = vm;
  7633. while (source) {
  7634. if (source._provided && hasOwn(source._provided, provideKey)) {
  7635. result[key] = source._provided[provideKey];
  7636. break
  7637. }
  7638. source = source.$parent;
  7639. }
  7640. if (!source) {
  7641. if ('default' in inject[key]) {
  7642. var provideDefault = inject[key].default;
  7643. result[key] = typeof provideDefault === 'function'
  7644. ? provideDefault.call(vm)
  7645. : provideDefault;
  7646. } else if (true) {
  7647. warn(("Injection \"" + key + "\" not found"), vm);
  7648. }
  7649. }
  7650. }
  7651. return result
  7652. }
  7653. }
  7654. /* */
  7655. /**
  7656. * Runtime helper for resolving raw children VNodes into a slot object.
  7657. */
  7658. function resolveSlots (
  7659. children,
  7660. context
  7661. ) {
  7662. if (!children || !children.length) {
  7663. return {}
  7664. }
  7665. var slots = {};
  7666. for (var i = 0, l = children.length; i < l; i++) {
  7667. var child = children[i];
  7668. var data = child.data;
  7669. // remove slot attribute if the node is resolved as a Vue slot node
  7670. if (data && data.attrs && data.attrs.slot) {
  7671. delete data.attrs.slot;
  7672. }
  7673. // named slots should only be respected if the vnode was rendered in the
  7674. // same context.
  7675. if ((child.context === context || child.fnContext === context) &&
  7676. data && data.slot != null
  7677. ) {
  7678. var name = data.slot;
  7679. var slot = (slots[name] || (slots[name] = []));
  7680. if (child.tag === 'template') {
  7681. slot.push.apply(slot, child.children || []);
  7682. } else {
  7683. slot.push(child);
  7684. }
  7685. } else {
  7686. // fixed by xxxxxx 临时 hack 掉 uni-app 中的异步 name slot page
  7687. if(child.asyncMeta && child.asyncMeta.data && child.asyncMeta.data.slot === 'page'){
  7688. (slots['page'] || (slots['page'] = [])).push(child);
  7689. }else{
  7690. (slots.default || (slots.default = [])).push(child);
  7691. }
  7692. }
  7693. }
  7694. // ignore slots that contains only whitespace
  7695. for (var name$1 in slots) {
  7696. if (slots[name$1].every(isWhitespace)) {
  7697. delete slots[name$1];
  7698. }
  7699. }
  7700. return slots
  7701. }
  7702. function isWhitespace (node) {
  7703. return (node.isComment && !node.asyncFactory) || node.text === ' '
  7704. }
  7705. /* */
  7706. function normalizeScopedSlots (
  7707. slots,
  7708. normalSlots,
  7709. prevSlots
  7710. ) {
  7711. var res;
  7712. var hasNormalSlots = Object.keys(normalSlots).length > 0;
  7713. var isStable = slots ? !!slots.$stable : !hasNormalSlots;
  7714. var key = slots && slots.$key;
  7715. if (!slots) {
  7716. res = {};
  7717. } else if (slots._normalized) {
  7718. // fast path 1: child component re-render only, parent did not change
  7719. return slots._normalized
  7720. } else if (
  7721. isStable &&
  7722. prevSlots &&
  7723. prevSlots !== emptyObject &&
  7724. key === prevSlots.$key &&
  7725. !hasNormalSlots &&
  7726. !prevSlots.$hasNormal
  7727. ) {
  7728. // fast path 2: stable scoped slots w/ no normal slots to proxy,
  7729. // only need to normalize once
  7730. return prevSlots
  7731. } else {
  7732. res = {};
  7733. for (var key$1 in slots) {
  7734. if (slots[key$1] && key$1[0] !== '$') {
  7735. res[key$1] = normalizeScopedSlot(normalSlots, key$1, slots[key$1]);
  7736. }
  7737. }
  7738. }
  7739. // expose normal slots on scopedSlots
  7740. for (var key$2 in normalSlots) {
  7741. if (!(key$2 in res)) {
  7742. res[key$2] = proxyNormalSlot(normalSlots, key$2);
  7743. }
  7744. }
  7745. // avoriaz seems to mock a non-extensible $scopedSlots object
  7746. // and when that is passed down this would cause an error
  7747. if (slots && Object.isExtensible(slots)) {
  7748. (slots)._normalized = res;
  7749. }
  7750. def(res, '$stable', isStable);
  7751. def(res, '$key', key);
  7752. def(res, '$hasNormal', hasNormalSlots);
  7753. return res
  7754. }
  7755. function normalizeScopedSlot(normalSlots, key, fn) {
  7756. var normalized = function () {
  7757. var res = arguments.length ? fn.apply(null, arguments) : fn({});
  7758. res = res && typeof res === 'object' && !Array.isArray(res)
  7759. ? [res] // single vnode
  7760. : normalizeChildren(res);
  7761. return res && (
  7762. res.length === 0 ||
  7763. (res.length === 1 && res[0].isComment) // #9658
  7764. ) ? undefined
  7765. : res
  7766. };
  7767. // this is a slot using the new v-slot syntax without scope. although it is
  7768. // compiled as a scoped slot, render fn users would expect it to be present
  7769. // on this.$slots because the usage is semantically a normal slot.
  7770. if (fn.proxy) {
  7771. Object.defineProperty(normalSlots, key, {
  7772. get: normalized,
  7773. enumerable: true,
  7774. configurable: true
  7775. });
  7776. }
  7777. return normalized
  7778. }
  7779. function proxyNormalSlot(slots, key) {
  7780. return function () { return slots[key]; }
  7781. }
  7782. /* */
  7783. /**
  7784. * Runtime helper for rendering v-for lists.
  7785. */
  7786. function renderList (
  7787. val,
  7788. render
  7789. ) {
  7790. var ret, i, l, keys, key;
  7791. if (Array.isArray(val) || typeof val === 'string') {
  7792. ret = new Array(val.length);
  7793. for (i = 0, l = val.length; i < l; i++) {
  7794. ret[i] = render(val[i], i, i, i); // fixed by xxxxxx
  7795. }
  7796. } else if (typeof val === 'number') {
  7797. ret = new Array(val);
  7798. for (i = 0; i < val; i++) {
  7799. ret[i] = render(i + 1, i, i, i); // fixed by xxxxxx
  7800. }
  7801. } else if (isObject(val)) {
  7802. if (hasSymbol && val[Symbol.iterator]) {
  7803. ret = [];
  7804. var iterator = val[Symbol.iterator]();
  7805. var result = iterator.next();
  7806. while (!result.done) {
  7807. ret.push(render(result.value, ret.length, i, i++)); // fixed by xxxxxx
  7808. result = iterator.next();
  7809. }
  7810. } else {
  7811. keys = Object.keys(val);
  7812. ret = new Array(keys.length);
  7813. for (i = 0, l = keys.length; i < l; i++) {
  7814. key = keys[i];
  7815. ret[i] = render(val[key], key, i, i); // fixed by xxxxxx
  7816. }
  7817. }
  7818. }
  7819. if (!isDef(ret)) {
  7820. ret = [];
  7821. }
  7822. (ret)._isVList = true;
  7823. return ret
  7824. }
  7825. /* */
  7826. /**
  7827. * Runtime helper for rendering <slot>
  7828. */
  7829. function renderSlot (
  7830. name,
  7831. fallback,
  7832. props,
  7833. bindObject
  7834. ) {
  7835. var scopedSlotFn = this.$scopedSlots[name];
  7836. var nodes;
  7837. if (scopedSlotFn) { // scoped slot
  7838. props = props || {};
  7839. if (bindObject) {
  7840. if ( true && !isObject(bindObject)) {
  7841. warn(
  7842. 'slot v-bind without argument expects an Object',
  7843. this
  7844. );
  7845. }
  7846. props = extend(extend({}, bindObject), props);
  7847. }
  7848. // fixed by xxxxxx app-plus scopedSlot
  7849. nodes = scopedSlotFn(props, this, props._i) || fallback;
  7850. } else {
  7851. nodes = this.$slots[name] || fallback;
  7852. }
  7853. var target = props && props.slot;
  7854. if (target) {
  7855. return this.$createElement('template', { slot: target }, nodes)
  7856. } else {
  7857. return nodes
  7858. }
  7859. }
  7860. /* */
  7861. /**
  7862. * Runtime helper for resolving filters
  7863. */
  7864. function resolveFilter (id) {
  7865. return resolveAsset(this.$options, 'filters', id, true) || identity
  7866. }
  7867. /* */
  7868. function isKeyNotMatch (expect, actual) {
  7869. if (Array.isArray(expect)) {
  7870. return expect.indexOf(actual) === -1
  7871. } else {
  7872. return expect !== actual
  7873. }
  7874. }
  7875. /**
  7876. * Runtime helper for checking keyCodes from config.
  7877. * exposed as Vue.prototype._k
  7878. * passing in eventKeyName as last argument separately for backwards compat
  7879. */
  7880. function checkKeyCodes (
  7881. eventKeyCode,
  7882. key,
  7883. builtInKeyCode,
  7884. eventKeyName,
  7885. builtInKeyName
  7886. ) {
  7887. var mappedKeyCode = config.keyCodes[key] || builtInKeyCode;
  7888. if (builtInKeyName && eventKeyName && !config.keyCodes[key]) {
  7889. return isKeyNotMatch(builtInKeyName, eventKeyName)
  7890. } else if (mappedKeyCode) {
  7891. return isKeyNotMatch(mappedKeyCode, eventKeyCode)
  7892. } else if (eventKeyName) {
  7893. return hyphenate(eventKeyName) !== key
  7894. }
  7895. }
  7896. /* */
  7897. /**
  7898. * Runtime helper for merging v-bind="object" into a VNode's data.
  7899. */
  7900. function bindObjectProps (
  7901. data,
  7902. tag,
  7903. value,
  7904. asProp,
  7905. isSync
  7906. ) {
  7907. if (value) {
  7908. if (!isObject(value)) {
  7909. true && warn(
  7910. 'v-bind without argument expects an Object or Array value',
  7911. this
  7912. );
  7913. } else {
  7914. if (Array.isArray(value)) {
  7915. value = toObject(value);
  7916. }
  7917. var hash;
  7918. var loop = function ( key ) {
  7919. if (
  7920. key === 'class' ||
  7921. key === 'style' ||
  7922. isReservedAttribute(key)
  7923. ) {
  7924. hash = data;
  7925. } else {
  7926. var type = data.attrs && data.attrs.type;
  7927. hash = asProp || config.mustUseProp(tag, type, key)
  7928. ? data.domProps || (data.domProps = {})
  7929. : data.attrs || (data.attrs = {});
  7930. }
  7931. var camelizedKey = camelize(key);
  7932. var hyphenatedKey = hyphenate(key);
  7933. if (!(camelizedKey in hash) && !(hyphenatedKey in hash)) {
  7934. hash[key] = value[key];
  7935. if (isSync) {
  7936. var on = data.on || (data.on = {});
  7937. on[("update:" + key)] = function ($event) {
  7938. value[key] = $event;
  7939. };
  7940. }
  7941. }
  7942. };
  7943. for (var key in value) loop( key );
  7944. }
  7945. }
  7946. return data
  7947. }
  7948. /* */
  7949. /**
  7950. * Runtime helper for rendering static trees.
  7951. */
  7952. function renderStatic (
  7953. index,
  7954. isInFor
  7955. ) {
  7956. var cached = this._staticTrees || (this._staticTrees = []);
  7957. var tree = cached[index];
  7958. // if has already-rendered static tree and not inside v-for,
  7959. // we can reuse the same tree.
  7960. if (tree && !isInFor) {
  7961. return tree
  7962. }
  7963. // otherwise, render a fresh tree.
  7964. tree = cached[index] = this.$options.staticRenderFns[index].call(
  7965. this._renderProxy,
  7966. null,
  7967. this // for render fns generated for functional component templates
  7968. );
  7969. markStatic(tree, ("__static__" + index), false);
  7970. return tree
  7971. }
  7972. /**
  7973. * Runtime helper for v-once.
  7974. * Effectively it means marking the node as static with a unique key.
  7975. */
  7976. function markOnce (
  7977. tree,
  7978. index,
  7979. key
  7980. ) {
  7981. markStatic(tree, ("__once__" + index + (key ? ("_" + key) : "")), true);
  7982. return tree
  7983. }
  7984. function markStatic (
  7985. tree,
  7986. key,
  7987. isOnce
  7988. ) {
  7989. if (Array.isArray(tree)) {
  7990. for (var i = 0; i < tree.length; i++) {
  7991. if (tree[i] && typeof tree[i] !== 'string') {
  7992. markStaticNode(tree[i], (key + "_" + i), isOnce);
  7993. }
  7994. }
  7995. } else {
  7996. markStaticNode(tree, key, isOnce);
  7997. }
  7998. }
  7999. function markStaticNode (node, key, isOnce) {
  8000. node.isStatic = true;
  8001. node.key = key;
  8002. node.isOnce = isOnce;
  8003. }
  8004. /* */
  8005. function bindObjectListeners (data, value) {
  8006. if (value) {
  8007. if (!isPlainObject(value)) {
  8008. true && warn(
  8009. 'v-on without argument expects an Object value',
  8010. this
  8011. );
  8012. } else {
  8013. var on = data.on = data.on ? extend({}, data.on) : {};
  8014. for (var key in value) {
  8015. var existing = on[key];
  8016. var ours = value[key];
  8017. on[key] = existing ? [].concat(existing, ours) : ours;
  8018. }
  8019. }
  8020. }
  8021. return data
  8022. }
  8023. /* */
  8024. function resolveScopedSlots (
  8025. fns, // see flow/vnode
  8026. res,
  8027. // the following are added in 2.6
  8028. hasDynamicKeys,
  8029. contentHashKey
  8030. ) {
  8031. res = res || { $stable: !hasDynamicKeys };
  8032. for (var i = 0; i < fns.length; i++) {
  8033. var slot = fns[i];
  8034. if (Array.isArray(slot)) {
  8035. resolveScopedSlots(slot, res, hasDynamicKeys);
  8036. } else if (slot) {
  8037. // marker for reverse proxying v-slot without scope on this.$slots
  8038. if (slot.proxy) {
  8039. slot.fn.proxy = true;
  8040. }
  8041. res[slot.key] = slot.fn;
  8042. }
  8043. }
  8044. if (contentHashKey) {
  8045. (res).$key = contentHashKey;
  8046. }
  8047. return res
  8048. }
  8049. /* */
  8050. function bindDynamicKeys (baseObj, values) {
  8051. for (var i = 0; i < values.length; i += 2) {
  8052. var key = values[i];
  8053. if (typeof key === 'string' && key) {
  8054. baseObj[values[i]] = values[i + 1];
  8055. } else if ( true && key !== '' && key !== null) {
  8056. // null is a special value for explicitly removing a binding
  8057. warn(
  8058. ("Invalid value for dynamic directive argument (expected string or null): " + key),
  8059. this
  8060. );
  8061. }
  8062. }
  8063. return baseObj
  8064. }
  8065. // helper to dynamically append modifier runtime markers to event names.
  8066. // ensure only append when value is already string, otherwise it will be cast
  8067. // to string and cause the type check to miss.
  8068. function prependModifier (value, symbol) {
  8069. return typeof value === 'string' ? symbol + value : value
  8070. }
  8071. /* */
  8072. function installRenderHelpers (target) {
  8073. target._o = markOnce;
  8074. target._n = toNumber;
  8075. target._s = toString;
  8076. target._l = renderList;
  8077. target._t = renderSlot;
  8078. target._q = looseEqual;
  8079. target._i = looseIndexOf;
  8080. target._m = renderStatic;
  8081. target._f = resolveFilter;
  8082. target._k = checkKeyCodes;
  8083. target._b = bindObjectProps;
  8084. target._v = createTextVNode;
  8085. target._e = createEmptyVNode;
  8086. target._u = resolveScopedSlots;
  8087. target._g = bindObjectListeners;
  8088. target._d = bindDynamicKeys;
  8089. target._p = prependModifier;
  8090. }
  8091. /* */
  8092. function FunctionalRenderContext (
  8093. data,
  8094. props,
  8095. children,
  8096. parent,
  8097. Ctor
  8098. ) {
  8099. var this$1 = this;
  8100. var options = Ctor.options;
  8101. // ensure the createElement function in functional components
  8102. // gets a unique context - this is necessary for correct named slot check
  8103. var contextVm;
  8104. if (hasOwn(parent, '_uid')) {
  8105. contextVm = Object.create(parent);
  8106. // $flow-disable-line
  8107. contextVm._original = parent;
  8108. } else {
  8109. // the context vm passed in is a functional context as well.
  8110. // in this case we want to make sure we are able to get a hold to the
  8111. // real context instance.
  8112. contextVm = parent;
  8113. // $flow-disable-line
  8114. parent = parent._original;
  8115. }
  8116. var isCompiled = isTrue(options._compiled);
  8117. var needNormalization = !isCompiled;
  8118. this.data = data;
  8119. this.props = props;
  8120. this.children = children;
  8121. this.parent = parent;
  8122. this.listeners = data.on || emptyObject;
  8123. this.injections = resolveInject(options.inject, parent);
  8124. this.slots = function () {
  8125. if (!this$1.$slots) {
  8126. normalizeScopedSlots(
  8127. data.scopedSlots,
  8128. this$1.$slots = resolveSlots(children, parent)
  8129. );
  8130. }
  8131. return this$1.$slots
  8132. };
  8133. Object.defineProperty(this, 'scopedSlots', ({
  8134. enumerable: true,
  8135. get: function get () {
  8136. return normalizeScopedSlots(data.scopedSlots, this.slots())
  8137. }
  8138. }));
  8139. // support for compiled functional template
  8140. if (isCompiled) {
  8141. // exposing $options for renderStatic()
  8142. this.$options = options;
  8143. // pre-resolve slots for renderSlot()
  8144. this.$slots = this.slots();
  8145. this.$scopedSlots = normalizeScopedSlots(data.scopedSlots, this.$slots);
  8146. }
  8147. if (options._scopeId) {
  8148. this._c = function (a, b, c, d) {
  8149. var vnode = createElement(contextVm, a, b, c, d, needNormalization);
  8150. if (vnode && !Array.isArray(vnode)) {
  8151. vnode.fnScopeId = options._scopeId;
  8152. vnode.fnContext = parent;
  8153. }
  8154. return vnode
  8155. };
  8156. } else {
  8157. this._c = function (a, b, c, d) { return createElement(contextVm, a, b, c, d, needNormalization); };
  8158. }
  8159. }
  8160. installRenderHelpers(FunctionalRenderContext.prototype);
  8161. function createFunctionalComponent (
  8162. Ctor,
  8163. propsData,
  8164. data,
  8165. contextVm,
  8166. children
  8167. ) {
  8168. var options = Ctor.options;
  8169. var props = {};
  8170. var propOptions = options.props;
  8171. if (isDef(propOptions)) {
  8172. for (var key in propOptions) {
  8173. props[key] = validateProp(key, propOptions, propsData || emptyObject);
  8174. }
  8175. } else {
  8176. if (isDef(data.attrs)) { mergeProps(props, data.attrs); }
  8177. if (isDef(data.props)) { mergeProps(props, data.props); }
  8178. }
  8179. var renderContext = new FunctionalRenderContext(
  8180. data,
  8181. props,
  8182. children,
  8183. contextVm,
  8184. Ctor
  8185. );
  8186. var vnode = options.render.call(null, renderContext._c, renderContext);
  8187. if (vnode instanceof VNode) {
  8188. return cloneAndMarkFunctionalResult(vnode, data, renderContext.parent, options, renderContext)
  8189. } else if (Array.isArray(vnode)) {
  8190. var vnodes = normalizeChildren(vnode) || [];
  8191. var res = new Array(vnodes.length);
  8192. for (var i = 0; i < vnodes.length; i++) {
  8193. res[i] = cloneAndMarkFunctionalResult(vnodes[i], data, renderContext.parent, options, renderContext);
  8194. }
  8195. return res
  8196. }
  8197. }
  8198. function cloneAndMarkFunctionalResult (vnode, data, contextVm, options, renderContext) {
  8199. // #7817 clone node before setting fnContext, otherwise if the node is reused
  8200. // (e.g. it was from a cached normal slot) the fnContext causes named slots
  8201. // that should not be matched to match.
  8202. var clone = cloneVNode(vnode);
  8203. clone.fnContext = contextVm;
  8204. clone.fnOptions = options;
  8205. if (true) {
  8206. (clone.devtoolsMeta = clone.devtoolsMeta || {}).renderContext = renderContext;
  8207. }
  8208. if (data.slot) {
  8209. (clone.data || (clone.data = {})).slot = data.slot;
  8210. }
  8211. return clone
  8212. }
  8213. function mergeProps (to, from) {
  8214. for (var key in from) {
  8215. to[camelize(key)] = from[key];
  8216. }
  8217. }
  8218. /* */
  8219. /* */
  8220. /* */
  8221. /* */
  8222. // inline hooks to be invoked on component VNodes during patch
  8223. var componentVNodeHooks = {
  8224. init: function init (vnode, hydrating) {
  8225. if (
  8226. vnode.componentInstance &&
  8227. !vnode.componentInstance._isDestroyed &&
  8228. vnode.data.keepAlive
  8229. ) {
  8230. // kept-alive components, treat as a patch
  8231. var mountedNode = vnode; // work around flow
  8232. componentVNodeHooks.prepatch(mountedNode, mountedNode);
  8233. } else {
  8234. var child = vnode.componentInstance = createComponentInstanceForVnode(
  8235. vnode,
  8236. activeInstance
  8237. );
  8238. child.$mount(hydrating ? vnode.elm : undefined, hydrating);
  8239. }
  8240. },
  8241. prepatch: function prepatch (oldVnode, vnode) {
  8242. var options = vnode.componentOptions;
  8243. var child = vnode.componentInstance = oldVnode.componentInstance;
  8244. updateChildComponent(
  8245. child,
  8246. options.propsData, // updated props
  8247. options.listeners, // updated listeners
  8248. vnode, // new parent vnode
  8249. options.children // new children
  8250. );
  8251. },
  8252. insert: function insert (vnode) {
  8253. var context = vnode.context;
  8254. var componentInstance = vnode.componentInstance;
  8255. if (!componentInstance._isMounted) {
  8256. callHook(componentInstance, 'onServiceCreated');
  8257. callHook(componentInstance, 'onServiceAttached');
  8258. componentInstance._isMounted = true;
  8259. callHook(componentInstance, 'mounted');
  8260. }
  8261. if (vnode.data.keepAlive) {
  8262. if (context._isMounted) {
  8263. // vue-router#1212
  8264. // During updates, a kept-alive component's child components may
  8265. // change, so directly walking the tree here may call activated hooks
  8266. // on incorrect children. Instead we push them into a queue which will
  8267. // be processed after the whole patch process ended.
  8268. queueActivatedComponent(componentInstance);
  8269. } else {
  8270. activateChildComponent(componentInstance, true /* direct */);
  8271. }
  8272. }
  8273. },
  8274. destroy: function destroy (vnode) {
  8275. var componentInstance = vnode.componentInstance;
  8276. if (!componentInstance._isDestroyed) {
  8277. if (!vnode.data.keepAlive) {
  8278. componentInstance.$destroy();
  8279. } else {
  8280. deactivateChildComponent(componentInstance, true /* direct */);
  8281. }
  8282. }
  8283. }
  8284. };
  8285. var hooksToMerge = Object.keys(componentVNodeHooks);
  8286. function createComponent (
  8287. Ctor,
  8288. data,
  8289. context,
  8290. children,
  8291. tag
  8292. ) {
  8293. if (isUndef(Ctor)) {
  8294. return
  8295. }
  8296. var baseCtor = context.$options._base;
  8297. // plain options object: turn it into a constructor
  8298. if (isObject(Ctor)) {
  8299. Ctor = baseCtor.extend(Ctor);
  8300. }
  8301. // if at this stage it's not a constructor or an async component factory,
  8302. // reject.
  8303. if (typeof Ctor !== 'function') {
  8304. if (true) {
  8305. warn(("Invalid Component definition: " + (String(Ctor))), context);
  8306. }
  8307. return
  8308. }
  8309. // async component
  8310. var asyncFactory;
  8311. if (isUndef(Ctor.cid)) {
  8312. asyncFactory = Ctor;
  8313. Ctor = resolveAsyncComponent(asyncFactory, baseCtor);
  8314. if (Ctor === undefined) {
  8315. // return a placeholder node for async component, which is rendered
  8316. // as a comment node but preserves all the raw information for the node.
  8317. // the information will be used for async server-rendering and hydration.
  8318. return createAsyncPlaceholder(
  8319. asyncFactory,
  8320. data,
  8321. context,
  8322. children,
  8323. tag
  8324. )
  8325. }
  8326. }
  8327. data = data || {};
  8328. // resolve constructor options in case global mixins are applied after
  8329. // component constructor creation
  8330. resolveConstructorOptions(Ctor);
  8331. // transform component v-model data into props & events
  8332. if (isDef(data.model)) {
  8333. transformModel(Ctor.options, data);
  8334. }
  8335. // extract props
  8336. var propsData = extractPropsFromVNodeData(data, Ctor, tag, context); // fixed by xxxxxx
  8337. // functional component
  8338. if (isTrue(Ctor.options.functional)) {
  8339. return createFunctionalComponent(Ctor, propsData, data, context, children)
  8340. }
  8341. // extract listeners, since these needs to be treated as
  8342. // child component listeners instead of DOM listeners
  8343. var listeners = data.on;
  8344. // replace with listeners with .native modifier
  8345. // so it gets processed during parent component patch.
  8346. data.on = data.nativeOn;
  8347. if (isTrue(Ctor.options.abstract)) {
  8348. // abstract components do not keep anything
  8349. // other than props & listeners & slot
  8350. // work around flow
  8351. var slot = data.slot;
  8352. data = {};
  8353. if (slot) {
  8354. data.slot = slot;
  8355. }
  8356. }
  8357. // install component management hooks onto the placeholder node
  8358. installComponentHooks(data);
  8359. // return a placeholder vnode
  8360. var name = Ctor.options.name || tag;
  8361. var vnode = new VNode(
  8362. ("vue-component-" + (Ctor.cid) + (name ? ("-" + name) : '')),
  8363. data, undefined, undefined, undefined, context,
  8364. { Ctor: Ctor, propsData: propsData, listeners: listeners, tag: tag, children: children },
  8365. asyncFactory
  8366. );
  8367. return vnode
  8368. }
  8369. function createComponentInstanceForVnode (
  8370. vnode, // we know it's MountedComponentVNode but flow doesn't
  8371. parent // activeInstance in lifecycle state
  8372. ) {
  8373. var options = {
  8374. _isComponent: true,
  8375. _parentVnode: vnode,
  8376. parent: parent
  8377. };
  8378. // check inline-template render functions
  8379. var inlineTemplate = vnode.data.inlineTemplate;
  8380. if (isDef(inlineTemplate)) {
  8381. options.render = inlineTemplate.render;
  8382. options.staticRenderFns = inlineTemplate.staticRenderFns;
  8383. }
  8384. return new vnode.componentOptions.Ctor(options)
  8385. }
  8386. function installComponentHooks (data) {
  8387. var hooks = data.hook || (data.hook = {});
  8388. for (var i = 0; i < hooksToMerge.length; i++) {
  8389. var key = hooksToMerge[i];
  8390. var existing = hooks[key];
  8391. var toMerge = componentVNodeHooks[key];
  8392. if (existing !== toMerge && !(existing && existing._merged)) {
  8393. hooks[key] = existing ? mergeHook$1(toMerge, existing) : toMerge;
  8394. }
  8395. }
  8396. }
  8397. function mergeHook$1 (f1, f2) {
  8398. var merged = function (a, b) {
  8399. // flow complains about extra args which is why we use any
  8400. f1(a, b);
  8401. f2(a, b);
  8402. };
  8403. merged._merged = true;
  8404. return merged
  8405. }
  8406. // transform component v-model info (value and callback) into
  8407. // prop and event handler respectively.
  8408. function transformModel (options, data) {
  8409. var prop = (options.model && options.model.prop) || 'value';
  8410. var event = (options.model && options.model.event) || 'input'
  8411. ;(data.attrs || (data.attrs = {}))[prop] = data.model.value;
  8412. var on = data.on || (data.on = {});
  8413. var existing = on[event];
  8414. var callback = data.model.callback;
  8415. if (isDef(existing)) {
  8416. if (
  8417. Array.isArray(existing)
  8418. ? existing.indexOf(callback) === -1
  8419. : existing !== callback
  8420. ) {
  8421. on[event] = [callback].concat(existing);
  8422. }
  8423. } else {
  8424. on[event] = callback;
  8425. }
  8426. }
  8427. /* */
  8428. var SIMPLE_NORMALIZE = 1;
  8429. var ALWAYS_NORMALIZE = 2;
  8430. // wrapper function for providing a more flexible interface
  8431. // without getting yelled at by flow
  8432. function createElement (
  8433. context,
  8434. tag,
  8435. data,
  8436. children,
  8437. normalizationType,
  8438. alwaysNormalize
  8439. ) {
  8440. if (Array.isArray(data) || isPrimitive(data)) {
  8441. normalizationType = children;
  8442. children = data;
  8443. data = undefined;
  8444. }
  8445. if (isTrue(alwaysNormalize)) {
  8446. normalizationType = ALWAYS_NORMALIZE;
  8447. }
  8448. return _createElement(context, tag, data, children, normalizationType)
  8449. }
  8450. function _createElement (
  8451. context,
  8452. tag,
  8453. data,
  8454. children,
  8455. normalizationType
  8456. ) {
  8457. if (isDef(data) && isDef((data).__ob__)) {
  8458. true && warn(
  8459. "Avoid using observed data object as vnode data: " + (JSON.stringify(data)) + "\n" +
  8460. 'Always create fresh vnode data objects in each render!',
  8461. context
  8462. );
  8463. return createEmptyVNode()
  8464. }
  8465. // object syntax in v-bind
  8466. if (isDef(data) && isDef(data.is)) {
  8467. tag = data.is;
  8468. }
  8469. if (!tag) {
  8470. // in case of component :is set to falsy value
  8471. return createEmptyVNode()
  8472. }
  8473. // warn against non-primitive key
  8474. if ( true &&
  8475. isDef(data) && isDef(data.key) && !isPrimitive(data.key)
  8476. ) {
  8477. {
  8478. warn(
  8479. 'Avoid using non-primitive value as key, ' +
  8480. 'use string/number value instead.',
  8481. context
  8482. );
  8483. }
  8484. }
  8485. // support single function children as default scoped slot
  8486. if (Array.isArray(children) &&
  8487. typeof children[0] === 'function'
  8488. ) {
  8489. data = data || {};
  8490. data.scopedSlots = { default: children[0] };
  8491. children.length = 0;
  8492. }
  8493. if (normalizationType === ALWAYS_NORMALIZE) {
  8494. children = normalizeChildren(children);
  8495. } else if (normalizationType === SIMPLE_NORMALIZE) {
  8496. children = simpleNormalizeChildren(children);
  8497. }
  8498. var vnode, ns;
  8499. if (typeof tag === 'string') {
  8500. var Ctor;
  8501. ns = (context.$vnode && context.$vnode.ns) || config.getTagNamespace(tag);
  8502. if (config.isReservedTag(tag)) {
  8503. // platform built-in elements
  8504. if ( true && isDef(data) && isDef(data.nativeOn)) {
  8505. warn(
  8506. ("The .native modifier for v-on is only valid on components but it was used on <" + tag + ">."),
  8507. context
  8508. );
  8509. }
  8510. vnode = new VNode(
  8511. config.parsePlatformTagName(tag), data, children,
  8512. undefined, undefined, context
  8513. );
  8514. } else if ((!data || !data.pre) && isDef(Ctor = resolveAsset(context.$options, 'components', tag))) {
  8515. // component
  8516. vnode = createComponent(Ctor, data, context, children, tag);
  8517. } else {
  8518. // unknown or unlisted namespaced elements
  8519. // check at runtime because it may get assigned a namespace when its
  8520. // parent normalizes children
  8521. vnode = new VNode(
  8522. tag, data, children,
  8523. undefined, undefined, context
  8524. );
  8525. }
  8526. } else {
  8527. // direct component options / constructor
  8528. vnode = createComponent(tag, data, context, children);
  8529. }
  8530. if (Array.isArray(vnode)) {
  8531. return vnode
  8532. } else if (isDef(vnode)) {
  8533. if (isDef(ns)) { applyNS(vnode, ns); }
  8534. if (isDef(data)) { registerDeepBindings(data); }
  8535. return vnode
  8536. } else {
  8537. return createEmptyVNode()
  8538. }
  8539. }
  8540. function applyNS (vnode, ns, force) {
  8541. vnode.ns = ns;
  8542. if (vnode.tag === 'foreignObject') {
  8543. // use default namespace inside foreignObject
  8544. ns = undefined;
  8545. force = true;
  8546. }
  8547. if (isDef(vnode.children)) {
  8548. for (var i = 0, l = vnode.children.length; i < l; i++) {
  8549. var child = vnode.children[i];
  8550. if (isDef(child.tag) && (
  8551. isUndef(child.ns) || (isTrue(force) && child.tag !== 'svg'))) {
  8552. applyNS(child, ns, force);
  8553. }
  8554. }
  8555. }
  8556. }
  8557. // ref #5318
  8558. // necessary to ensure parent re-render when deep bindings like :style and
  8559. // :class are used on slot nodes
  8560. function registerDeepBindings (data) {
  8561. if (isObject(data.style)) {
  8562. traverse(data.style);
  8563. }
  8564. if (isObject(data.class)) {
  8565. traverse(data.class);
  8566. }
  8567. }
  8568. /* */
  8569. function initRender (vm) {
  8570. vm._vnode = null; // the root of the child tree
  8571. vm._staticTrees = null; // v-once cached trees
  8572. var options = vm.$options;
  8573. var parentVnode = vm.$vnode = options._parentVnode; // the placeholder node in parent tree
  8574. var renderContext = parentVnode && parentVnode.context;
  8575. vm.$slots = resolveSlots(options._renderChildren, renderContext);
  8576. vm.$scopedSlots = emptyObject;
  8577. // bind the createElement fn to this instance
  8578. // so that we get proper render context inside it.
  8579. // args order: tag, data, children, normalizationType, alwaysNormalize
  8580. // internal version is used by render functions compiled from templates
  8581. vm._c = function (a, b, c, d) { return createElement(vm, a, b, c, d, false); };
  8582. // normalization is always applied for the public version, used in
  8583. // user-written render functions.
  8584. vm.$createElement = function (a, b, c, d) { return createElement(vm, a, b, c, d, true); };
  8585. // $attrs & $listeners are exposed for easier HOC creation.
  8586. // they need to be reactive so that HOCs using them are always updated
  8587. var parentData = parentVnode && parentVnode.data;
  8588. /* istanbul ignore else */
  8589. if (true) {
  8590. defineReactive$$1(vm, '$attrs', parentData && parentData.attrs || emptyObject, function () {
  8591. !isUpdatingChildComponent && warn("$attrs is readonly.", vm);
  8592. }, true);
  8593. defineReactive$$1(vm, '$listeners', options._parentListeners || emptyObject, function () {
  8594. !isUpdatingChildComponent && warn("$listeners is readonly.", vm);
  8595. }, true);
  8596. } else {}
  8597. }
  8598. var currentRenderingInstance = null;
  8599. function renderMixin (Vue) {
  8600. // install runtime convenience helpers
  8601. installRenderHelpers(Vue.prototype);
  8602. Vue.prototype.$nextTick = function (fn) {
  8603. return nextTick(fn, this)
  8604. };
  8605. Vue.prototype._render = function () {
  8606. var vm = this;
  8607. var ref = vm.$options;
  8608. var render = ref.render;
  8609. var _parentVnode = ref._parentVnode;
  8610. if (_parentVnode) {
  8611. vm.$scopedSlots = normalizeScopedSlots(
  8612. _parentVnode.data.scopedSlots,
  8613. vm.$slots,
  8614. vm.$scopedSlots
  8615. );
  8616. }
  8617. // set parent vnode. this allows render functions to have access
  8618. // to the data on the placeholder node.
  8619. vm.$vnode = _parentVnode;
  8620. // render self
  8621. var vnode;
  8622. try {
  8623. // There's no need to maintain a stack because all render fns are called
  8624. // separately from one another. Nested component's render fns are called
  8625. // when parent component is patched.
  8626. currentRenderingInstance = vm;
  8627. vnode = render.call(vm._renderProxy, vm.$createElement);
  8628. } catch (e) {
  8629. handleError(e, vm, "render");
  8630. // return error render result,
  8631. // or previous vnode to prevent render error causing blank component
  8632. /* istanbul ignore else */
  8633. if ( true && vm.$options.renderError) {
  8634. try {
  8635. vnode = vm.$options.renderError.call(vm._renderProxy, vm.$createElement, e);
  8636. } catch (e) {
  8637. handleError(e, vm, "renderError");
  8638. vnode = vm._vnode;
  8639. }
  8640. } else {
  8641. vnode = vm._vnode;
  8642. }
  8643. } finally {
  8644. currentRenderingInstance = null;
  8645. }
  8646. // if the returned array contains only a single node, allow it
  8647. if (Array.isArray(vnode) && vnode.length === 1) {
  8648. vnode = vnode[0];
  8649. }
  8650. // return empty vnode in case the render function errored out
  8651. if (!(vnode instanceof VNode)) {
  8652. if ( true && Array.isArray(vnode)) {
  8653. warn(
  8654. 'Multiple root nodes returned from render function. Render function ' +
  8655. 'should return a single root node.',
  8656. vm
  8657. );
  8658. }
  8659. vnode = createEmptyVNode();
  8660. }
  8661. // set parent
  8662. vnode.parent = _parentVnode;
  8663. return vnode
  8664. };
  8665. }
  8666. /* */
  8667. function ensureCtor (comp, base) {
  8668. if (
  8669. comp.__esModule ||
  8670. (hasSymbol && comp[Symbol.toStringTag] === 'Module')
  8671. ) {
  8672. comp = comp.default;
  8673. }
  8674. return isObject(comp)
  8675. ? base.extend(comp)
  8676. : comp
  8677. }
  8678. function createAsyncPlaceholder (
  8679. factory,
  8680. data,
  8681. context,
  8682. children,
  8683. tag
  8684. ) {
  8685. var node = createEmptyVNode();
  8686. node.asyncFactory = factory;
  8687. node.asyncMeta = { data: data, context: context, children: children, tag: tag };
  8688. return node
  8689. }
  8690. function resolveAsyncComponent (
  8691. factory,
  8692. baseCtor
  8693. ) {
  8694. if (isTrue(factory.error) && isDef(factory.errorComp)) {
  8695. return factory.errorComp
  8696. }
  8697. if (isDef(factory.resolved)) {
  8698. return factory.resolved
  8699. }
  8700. var owner = currentRenderingInstance;
  8701. if (owner && isDef(factory.owners) && factory.owners.indexOf(owner) === -1) {
  8702. // already pending
  8703. factory.owners.push(owner);
  8704. }
  8705. if (isTrue(factory.loading) && isDef(factory.loadingComp)) {
  8706. return factory.loadingComp
  8707. }
  8708. if (owner && !isDef(factory.owners)) {
  8709. var owners = factory.owners = [owner];
  8710. var sync = true;
  8711. var timerLoading = null;
  8712. var timerTimeout = null
  8713. ;(owner).$on('hook:destroyed', function () { return remove(owners, owner); });
  8714. var forceRender = function (renderCompleted) {
  8715. for (var i = 0, l = owners.length; i < l; i++) {
  8716. (owners[i]).$forceUpdate();
  8717. }
  8718. if (renderCompleted) {
  8719. owners.length = 0;
  8720. if (timerLoading !== null) {
  8721. clearTimeout(timerLoading);
  8722. timerLoading = null;
  8723. }
  8724. if (timerTimeout !== null) {
  8725. clearTimeout(timerTimeout);
  8726. timerTimeout = null;
  8727. }
  8728. }
  8729. };
  8730. var resolve = once(function (res) {
  8731. // cache resolved
  8732. factory.resolved = ensureCtor(res, baseCtor);
  8733. // invoke callbacks only if this is not a synchronous resolve
  8734. // (async resolves are shimmed as synchronous during SSR)
  8735. if (!sync) {
  8736. forceRender(true);
  8737. } else {
  8738. owners.length = 0;
  8739. }
  8740. });
  8741. var reject = once(function (reason) {
  8742. true && warn(
  8743. "Failed to resolve async component: " + (String(factory)) +
  8744. (reason ? ("\nReason: " + reason) : '')
  8745. );
  8746. if (isDef(factory.errorComp)) {
  8747. factory.error = true;
  8748. forceRender(true);
  8749. }
  8750. });
  8751. var res = factory(resolve, reject);
  8752. if (isObject(res)) {
  8753. if (isPromise(res)) {
  8754. // () => Promise
  8755. if (isUndef(factory.resolved)) {
  8756. res.then(resolve, reject);
  8757. }
  8758. } else if (isPromise(res.component)) {
  8759. res.component.then(resolve, reject);
  8760. if (isDef(res.error)) {
  8761. factory.errorComp = ensureCtor(res.error, baseCtor);
  8762. }
  8763. if (isDef(res.loading)) {
  8764. factory.loadingComp = ensureCtor(res.loading, baseCtor);
  8765. if (res.delay === 0) {
  8766. factory.loading = true;
  8767. } else {
  8768. timerLoading = setTimeout(function () {
  8769. timerLoading = null;
  8770. if (isUndef(factory.resolved) && isUndef(factory.error)) {
  8771. factory.loading = true;
  8772. forceRender(false);
  8773. }
  8774. }, res.delay || 200);
  8775. }
  8776. }
  8777. if (isDef(res.timeout)) {
  8778. timerTimeout = setTimeout(function () {
  8779. timerTimeout = null;
  8780. if (isUndef(factory.resolved)) {
  8781. reject(
  8782. true
  8783. ? ("timeout (" + (res.timeout) + "ms)")
  8784. : undefined
  8785. );
  8786. }
  8787. }, res.timeout);
  8788. }
  8789. }
  8790. }
  8791. sync = false;
  8792. // return in case resolved synchronously
  8793. return factory.loading
  8794. ? factory.loadingComp
  8795. : factory.resolved
  8796. }
  8797. }
  8798. /* */
  8799. function isAsyncPlaceholder (node) {
  8800. return node.isComment && node.asyncFactory
  8801. }
  8802. /* */
  8803. function getFirstComponentChild (children) {
  8804. if (Array.isArray(children)) {
  8805. for (var i = 0; i < children.length; i++) {
  8806. var c = children[i];
  8807. if (isDef(c) && (isDef(c.componentOptions) || isAsyncPlaceholder(c))) {
  8808. return c
  8809. }
  8810. }
  8811. }
  8812. }
  8813. /* */
  8814. /* */
  8815. function initEvents (vm) {
  8816. vm._events = Object.create(null);
  8817. vm._hasHookEvent = false;
  8818. // init parent attached events
  8819. var listeners = vm.$options._parentListeners;
  8820. if (listeners) {
  8821. updateComponentListeners(vm, listeners);
  8822. }
  8823. }
  8824. var target;
  8825. function add (event, fn) {
  8826. target.$on(event, fn);
  8827. }
  8828. function remove$1 (event, fn) {
  8829. target.$off(event, fn);
  8830. }
  8831. function createOnceHandler (event, fn) {
  8832. var _target = target;
  8833. return function onceHandler () {
  8834. var res = fn.apply(null, arguments);
  8835. if (res !== null) {
  8836. _target.$off(event, onceHandler);
  8837. }
  8838. }
  8839. }
  8840. function updateComponentListeners (
  8841. vm,
  8842. listeners,
  8843. oldListeners
  8844. ) {
  8845. target = vm;
  8846. updateListeners(listeners, oldListeners || {}, add, remove$1, createOnceHandler, vm);
  8847. target = undefined;
  8848. }
  8849. function eventsMixin (Vue) {
  8850. var hookRE = /^hook:/;
  8851. Vue.prototype.$on = function (event, fn) {
  8852. var vm = this;
  8853. if (Array.isArray(event)) {
  8854. for (var i = 0, l = event.length; i < l; i++) {
  8855. vm.$on(event[i], fn);
  8856. }
  8857. } else {
  8858. (vm._events[event] || (vm._events[event] = [])).push(fn);
  8859. // optimize hook:event cost by using a boolean flag marked at registration
  8860. // instead of a hash lookup
  8861. if (hookRE.test(event)) {
  8862. vm._hasHookEvent = true;
  8863. }
  8864. }
  8865. return vm
  8866. };
  8867. Vue.prototype.$once = function (event, fn) {
  8868. var vm = this;
  8869. function on () {
  8870. vm.$off(event, on);
  8871. fn.apply(vm, arguments);
  8872. }
  8873. on.fn = fn;
  8874. vm.$on(event, on);
  8875. return vm
  8876. };
  8877. Vue.prototype.$off = function (event, fn) {
  8878. var vm = this;
  8879. // all
  8880. if (!arguments.length) {
  8881. vm._events = Object.create(null);
  8882. return vm
  8883. }
  8884. // array of events
  8885. if (Array.isArray(event)) {
  8886. for (var i$1 = 0, l = event.length; i$1 < l; i$1++) {
  8887. vm.$off(event[i$1], fn);
  8888. }
  8889. return vm
  8890. }
  8891. // specific event
  8892. var cbs = vm._events[event];
  8893. if (!cbs) {
  8894. return vm
  8895. }
  8896. if (!fn) {
  8897. vm._events[event] = null;
  8898. return vm
  8899. }
  8900. // specific handler
  8901. var cb;
  8902. var i = cbs.length;
  8903. while (i--) {
  8904. cb = cbs[i];
  8905. if (cb === fn || cb.fn === fn) {
  8906. cbs.splice(i, 1);
  8907. break
  8908. }
  8909. }
  8910. return vm
  8911. };
  8912. Vue.prototype.$emit = function (event) {
  8913. var vm = this;
  8914. if (true) {
  8915. var lowerCaseEvent = event.toLowerCase();
  8916. if (lowerCaseEvent !== event && vm._events[lowerCaseEvent]) {
  8917. tip(
  8918. "Event \"" + lowerCaseEvent + "\" is emitted in component " +
  8919. (formatComponentName(vm)) + " but the handler is registered for \"" + event + "\". " +
  8920. "Note that HTML attributes are case-insensitive and you cannot use " +
  8921. "v-on to listen to camelCase events when using in-DOM templates. " +
  8922. "You should probably use \"" + (hyphenate(event)) + "\" instead of \"" + event + "\"."
  8923. );
  8924. }
  8925. }
  8926. var cbs = vm._events[event];
  8927. if (cbs) {
  8928. cbs = cbs.length > 1 ? toArray(cbs) : cbs;
  8929. var args = toArray(arguments, 1);
  8930. var info = "event handler for \"" + event + "\"";
  8931. for (var i = 0, l = cbs.length; i < l; i++) {
  8932. invokeWithErrorHandling(cbs[i], vm, args, vm, info);
  8933. }
  8934. }
  8935. return vm
  8936. };
  8937. }
  8938. /* */
  8939. var activeInstance = null;
  8940. var isUpdatingChildComponent = false;
  8941. function setActiveInstance(vm) {
  8942. var prevActiveInstance = activeInstance;
  8943. activeInstance = vm;
  8944. return function () {
  8945. activeInstance = prevActiveInstance;
  8946. }
  8947. }
  8948. function initLifecycle (vm) {
  8949. var options = vm.$options;
  8950. // locate first non-abstract parent
  8951. var parent = options.parent;
  8952. if (parent && !options.abstract) {
  8953. while (parent.$options.abstract && parent.$parent) {
  8954. parent = parent.$parent;
  8955. }
  8956. parent.$children.push(vm);
  8957. }
  8958. vm.$parent = parent;
  8959. vm.$root = parent ? parent.$root : vm;
  8960. vm.$children = [];
  8961. vm.$refs = {};
  8962. vm._watcher = null;
  8963. vm._inactive = null;
  8964. vm._directInactive = false;
  8965. vm._isMounted = false;
  8966. vm._isDestroyed = false;
  8967. vm._isBeingDestroyed = false;
  8968. }
  8969. function lifecycleMixin (Vue) {
  8970. Vue.prototype._update = function (vnode, hydrating) {
  8971. var vm = this;
  8972. var prevEl = vm.$el;
  8973. var prevVnode = vm._vnode;
  8974. var restoreActiveInstance = setActiveInstance(vm);
  8975. vm._vnode = vnode;
  8976. // Vue.prototype.__patch__ is injected in entry points
  8977. // based on the rendering backend used.
  8978. if (!prevVnode) {
  8979. // initial render
  8980. vm.$el = vm.__patch__(vm.$el, vnode, hydrating, false /* removeOnly */);
  8981. } else {
  8982. // updates
  8983. vm.$el = vm.__patch__(prevVnode, vnode);
  8984. }
  8985. restoreActiveInstance();
  8986. // update __vue__ reference
  8987. if (prevEl) {
  8988. prevEl.__vue__ = null;
  8989. }
  8990. if (vm.$el) {
  8991. vm.$el.__vue__ = vm;
  8992. }
  8993. // if parent is an HOC, update its $el as well
  8994. if (vm.$vnode && vm.$parent && vm.$vnode === vm.$parent._vnode) {
  8995. vm.$parent.$el = vm.$el;
  8996. }
  8997. // updated hook is called by the scheduler to ensure that children are
  8998. // updated in a parent's updated hook.
  8999. };
  9000. Vue.prototype.$forceUpdate = function () {
  9001. var vm = this;
  9002. if (vm._watcher) {
  9003. vm._watcher.update();
  9004. }
  9005. };
  9006. Vue.prototype.$destroy = function () {
  9007. var vm = this;
  9008. if (vm._isBeingDestroyed) {
  9009. return
  9010. }
  9011. callHook(vm, 'beforeDestroy');
  9012. vm._isBeingDestroyed = true;
  9013. // remove self from parent
  9014. var parent = vm.$parent;
  9015. if (parent && !parent._isBeingDestroyed && !vm.$options.abstract) {
  9016. remove(parent.$children, vm);
  9017. }
  9018. // teardown watchers
  9019. if (vm._watcher) {
  9020. vm._watcher.teardown();
  9021. }
  9022. var i = vm._watchers.length;
  9023. while (i--) {
  9024. vm._watchers[i].teardown();
  9025. }
  9026. // remove reference from data ob
  9027. // frozen object may not have observer.
  9028. if (vm._data.__ob__) {
  9029. vm._data.__ob__.vmCount--;
  9030. }
  9031. // call the last hook...
  9032. vm._isDestroyed = true;
  9033. // invoke destroy hooks on current rendered tree
  9034. vm.__patch__(vm._vnode, null);
  9035. // fire destroyed hook
  9036. callHook(vm, 'destroyed');
  9037. // turn off all instance listeners.
  9038. vm.$off();
  9039. // remove __vue__ reference
  9040. if (vm.$el) {
  9041. vm.$el.__vue__ = null;
  9042. }
  9043. // release circular reference (#6759)
  9044. if (vm.$vnode) {
  9045. vm.$vnode.parent = null;
  9046. }
  9047. };
  9048. }
  9049. function updateChildComponent (
  9050. vm,
  9051. propsData,
  9052. listeners,
  9053. parentVnode,
  9054. renderChildren
  9055. ) {
  9056. if (true) {
  9057. isUpdatingChildComponent = true;
  9058. }
  9059. // determine whether component has slot children
  9060. // we need to do this before overwriting $options._renderChildren.
  9061. // check if there are dynamic scopedSlots (hand-written or compiled but with
  9062. // dynamic slot names). Static scoped slots compiled from template has the
  9063. // "$stable" marker.
  9064. var newScopedSlots = parentVnode.data.scopedSlots;
  9065. var oldScopedSlots = vm.$scopedSlots;
  9066. var hasDynamicScopedSlot = !!(
  9067. (newScopedSlots && !newScopedSlots.$stable) ||
  9068. (oldScopedSlots !== emptyObject && !oldScopedSlots.$stable) ||
  9069. (newScopedSlots && vm.$scopedSlots.$key !== newScopedSlots.$key)
  9070. );
  9071. // Any static slot children from the parent may have changed during parent's
  9072. // update. Dynamic scoped slots may also have changed. In such cases, a forced
  9073. // update is necessary to ensure correctness.
  9074. var needsForceUpdate = !!(
  9075. renderChildren || // has new static slots
  9076. vm.$options._renderChildren || // has old static slots
  9077. hasDynamicScopedSlot
  9078. );
  9079. vm.$options._parentVnode = parentVnode;
  9080. vm.$vnode = parentVnode; // update vm's placeholder node without re-render
  9081. if (vm._vnode) { // update child tree's parent
  9082. vm._vnode.parent = parentVnode;
  9083. }
  9084. vm.$options._renderChildren = renderChildren;
  9085. // update $attrs and $listeners hash
  9086. // these are also reactive so they may trigger child update if the child
  9087. // used them during render
  9088. vm.$attrs = parentVnode.data.attrs || emptyObject;
  9089. vm.$listeners = listeners || emptyObject;
  9090. // update props
  9091. if (propsData && vm.$options.props) {
  9092. toggleObserving(false);
  9093. var props = vm._props;
  9094. var propKeys = vm.$options._propKeys || [];
  9095. for (var i = 0; i < propKeys.length; i++) {
  9096. var key = propKeys[i];
  9097. var propOptions = vm.$options.props; // wtf flow?
  9098. props[key] = validateProp(key, propOptions, propsData, vm);
  9099. }
  9100. toggleObserving(true);
  9101. // keep a copy of raw propsData
  9102. vm.$options.propsData = propsData;
  9103. }
  9104. // fixed by xxxxxx update properties(mp runtime)
  9105. vm._$updateProperties && vm._$updateProperties(vm);
  9106. // update listeners
  9107. listeners = listeners || emptyObject;
  9108. var oldListeners = vm.$options._parentListeners;
  9109. vm.$options._parentListeners = listeners;
  9110. updateComponentListeners(vm, listeners, oldListeners);
  9111. // resolve slots + force update if has children
  9112. if (needsForceUpdate) {
  9113. vm.$slots = resolveSlots(renderChildren, parentVnode.context);
  9114. vm.$forceUpdate();
  9115. }
  9116. if (true) {
  9117. isUpdatingChildComponent = false;
  9118. }
  9119. }
  9120. function isInInactiveTree (vm) {
  9121. while (vm && (vm = vm.$parent)) {
  9122. if (vm._inactive) { return true }
  9123. }
  9124. return false
  9125. }
  9126. function activateChildComponent (vm, direct) {
  9127. if (direct) {
  9128. vm._directInactive = false;
  9129. if (isInInactiveTree(vm)) {
  9130. return
  9131. }
  9132. } else if (vm._directInactive) {
  9133. return
  9134. }
  9135. if (vm._inactive || vm._inactive === null) {
  9136. vm._inactive = false;
  9137. for (var i = 0; i < vm.$children.length; i++) {
  9138. activateChildComponent(vm.$children[i]);
  9139. }
  9140. callHook(vm, 'activated');
  9141. }
  9142. }
  9143. function deactivateChildComponent (vm, direct) {
  9144. if (direct) {
  9145. vm._directInactive = true;
  9146. if (isInInactiveTree(vm)) {
  9147. return
  9148. }
  9149. }
  9150. if (!vm._inactive) {
  9151. vm._inactive = true;
  9152. for (var i = 0; i < vm.$children.length; i++) {
  9153. deactivateChildComponent(vm.$children[i]);
  9154. }
  9155. callHook(vm, 'deactivated');
  9156. }
  9157. }
  9158. function callHook (vm, hook) {
  9159. // #7573 disable dep collection when invoking lifecycle hooks
  9160. pushTarget();
  9161. var handlers = vm.$options[hook];
  9162. var info = hook + " hook";
  9163. if (handlers) {
  9164. for (var i = 0, j = handlers.length; i < j; i++) {
  9165. invokeWithErrorHandling(handlers[i], vm, null, vm, info);
  9166. }
  9167. }
  9168. if (vm._hasHookEvent) {
  9169. vm.$emit('hook:' + hook);
  9170. }
  9171. popTarget();
  9172. }
  9173. /* */
  9174. var MAX_UPDATE_COUNT = 100;
  9175. var queue = [];
  9176. var activatedChildren = [];
  9177. var has = {};
  9178. var circular = {};
  9179. var waiting = false;
  9180. var flushing = false;
  9181. var index = 0;
  9182. /**
  9183. * Reset the scheduler's state.
  9184. */
  9185. function resetSchedulerState () {
  9186. index = queue.length = activatedChildren.length = 0;
  9187. has = {};
  9188. if (true) {
  9189. circular = {};
  9190. }
  9191. waiting = flushing = false;
  9192. }
  9193. // Async edge case #6566 requires saving the timestamp when event listeners are
  9194. // attached. However, calling performance.now() has a perf overhead especially
  9195. // if the page has thousands of event listeners. Instead, we take a timestamp
  9196. // every time the scheduler flushes and use that for all event listeners
  9197. // attached during that flush.
  9198. var currentFlushTimestamp = 0;
  9199. // Async edge case fix requires storing an event listener's attach timestamp.
  9200. var getNow = Date.now;
  9201. // Determine what event timestamp the browser is using. Annoyingly, the
  9202. // timestamp can either be hi-res (relative to page load) or low-res
  9203. // (relative to UNIX epoch), so in order to compare time we have to use the
  9204. // same timestamp type when saving the flush timestamp.
  9205. // All IE versions use low-res event timestamps, and have problematic clock
  9206. // implementations (#9632)
  9207. if (inBrowser && !isIE) {
  9208. var performance = window.performance;
  9209. if (
  9210. performance &&
  9211. typeof performance.now === 'function' &&
  9212. getNow() > document.createEvent('Event').timeStamp
  9213. ) {
  9214. // if the event timestamp, although evaluated AFTER the Date.now(), is
  9215. // smaller than it, it means the event is using a hi-res timestamp,
  9216. // and we need to use the hi-res version for event listener timestamps as
  9217. // well.
  9218. getNow = function () { return performance.now(); };
  9219. }
  9220. }
  9221. /**
  9222. * Flush both queues and run the watchers.
  9223. */
  9224. function flushSchedulerQueue () {
  9225. currentFlushTimestamp = getNow();
  9226. flushing = true;
  9227. var watcher, id;
  9228. // Sort queue before flush.
  9229. // This ensures that:
  9230. // 1. Components are updated from parent to child. (because parent is always
  9231. // created before the child)
  9232. // 2. A component's user watchers are run before its render watcher (because
  9233. // user watchers are created before the render watcher)
  9234. // 3. If a component is destroyed during a parent component's watcher run,
  9235. // its watchers can be skipped.
  9236. queue.sort(function (a, b) { return a.id - b.id; });
  9237. // do not cache length because more watchers might be pushed
  9238. // as we run existing watchers
  9239. for (index = 0; index < queue.length; index++) {
  9240. watcher = queue[index];
  9241. if (watcher.before) {
  9242. watcher.before();
  9243. }
  9244. id = watcher.id;
  9245. has[id] = null;
  9246. watcher.run();
  9247. // in dev build, check and stop circular updates.
  9248. if ( true && has[id] != null) {
  9249. circular[id] = (circular[id] || 0) + 1;
  9250. if (circular[id] > MAX_UPDATE_COUNT) {
  9251. warn(
  9252. 'You may have an infinite update loop ' + (
  9253. watcher.user
  9254. ? ("in watcher with expression \"" + (watcher.expression) + "\"")
  9255. : "in a component render function."
  9256. ),
  9257. watcher.vm
  9258. );
  9259. break
  9260. }
  9261. }
  9262. }
  9263. // keep copies of post queues before resetting state
  9264. var activatedQueue = activatedChildren.slice();
  9265. var updatedQueue = queue.slice();
  9266. resetSchedulerState();
  9267. // call component updated and activated hooks
  9268. callActivatedHooks(activatedQueue);
  9269. callUpdatedHooks(updatedQueue);
  9270. // devtool hook
  9271. /* istanbul ignore if */
  9272. if (devtools && config.devtools) {
  9273. devtools.emit('flush');
  9274. }
  9275. }
  9276. function callUpdatedHooks (queue) {
  9277. var i = queue.length;
  9278. while (i--) {
  9279. var watcher = queue[i];
  9280. var vm = watcher.vm;
  9281. if (vm._watcher === watcher && vm._isMounted && !vm._isDestroyed) {
  9282. callHook(vm, 'updated');
  9283. }
  9284. }
  9285. }
  9286. /**
  9287. * Queue a kept-alive component that was activated during patch.
  9288. * The queue will be processed after the entire tree has been patched.
  9289. */
  9290. function queueActivatedComponent (vm) {
  9291. // setting _inactive to false here so that a render function can
  9292. // rely on checking whether it's in an inactive tree (e.g. router-view)
  9293. vm._inactive = false;
  9294. activatedChildren.push(vm);
  9295. }
  9296. function callActivatedHooks (queue) {
  9297. for (var i = 0; i < queue.length; i++) {
  9298. queue[i]._inactive = true;
  9299. activateChildComponent(queue[i], true /* true */);
  9300. }
  9301. }
  9302. /**
  9303. * Push a watcher into the watcher queue.
  9304. * Jobs with duplicate IDs will be skipped unless it's
  9305. * pushed when the queue is being flushed.
  9306. */
  9307. function queueWatcher (watcher) {
  9308. var id = watcher.id;
  9309. if (has[id] == null) {
  9310. has[id] = true;
  9311. if (!flushing) {
  9312. queue.push(watcher);
  9313. } else {
  9314. // if already flushing, splice the watcher based on its id
  9315. // if already past its id, it will be run next immediately.
  9316. var i = queue.length - 1;
  9317. while (i > index && queue[i].id > watcher.id) {
  9318. i--;
  9319. }
  9320. queue.splice(i + 1, 0, watcher);
  9321. }
  9322. // queue the flush
  9323. if (!waiting) {
  9324. waiting = true;
  9325. if ( true && !config.async) {
  9326. flushSchedulerQueue();
  9327. return
  9328. }
  9329. nextTick(flushSchedulerQueue);
  9330. }
  9331. }
  9332. }
  9333. /* */
  9334. var uid$2 = 0;
  9335. /**
  9336. * A watcher parses an expression, collects dependencies,
  9337. * and fires callback when the expression value changes.
  9338. * This is used for both the $watch() api and directives.
  9339. */
  9340. var Watcher = function Watcher (
  9341. vm,
  9342. expOrFn,
  9343. cb,
  9344. options,
  9345. isRenderWatcher
  9346. ) {
  9347. this.vm = vm;
  9348. if (isRenderWatcher) {
  9349. vm._watcher = this;
  9350. }
  9351. vm._watchers.push(this);
  9352. // options
  9353. if (options) {
  9354. this.deep = !!options.deep;
  9355. this.user = !!options.user;
  9356. this.lazy = !!options.lazy;
  9357. this.sync = !!options.sync;
  9358. this.before = options.before;
  9359. } else {
  9360. this.deep = this.user = this.lazy = this.sync = false;
  9361. }
  9362. this.cb = cb;
  9363. this.id = ++uid$2; // uid for batching
  9364. this.active = true;
  9365. this.dirty = this.lazy; // for lazy watchers
  9366. this.deps = [];
  9367. this.newDeps = [];
  9368. this.depIds = new _Set();
  9369. this.newDepIds = new _Set();
  9370. this.expression = true
  9371. ? expOrFn.toString()
  9372. : undefined;
  9373. // parse expression for getter
  9374. if (typeof expOrFn === 'function') {
  9375. this.getter = expOrFn;
  9376. } else {
  9377. this.getter = parsePath(expOrFn);
  9378. if (!this.getter) {
  9379. this.getter = noop;
  9380. true && warn(
  9381. "Failed watching path: \"" + expOrFn + "\" " +
  9382. 'Watcher only accepts simple dot-delimited paths. ' +
  9383. 'For full control, use a function instead.',
  9384. vm
  9385. );
  9386. }
  9387. }
  9388. this.value = this.lazy
  9389. ? undefined
  9390. : this.get();
  9391. };
  9392. /**
  9393. * Evaluate the getter, and re-collect dependencies.
  9394. */
  9395. Watcher.prototype.get = function get () {
  9396. pushTarget(this);
  9397. var value;
  9398. var vm = this.vm;
  9399. try {
  9400. value = this.getter.call(vm, vm);
  9401. } catch (e) {
  9402. if (this.user) {
  9403. handleError(e, vm, ("getter for watcher \"" + (this.expression) + "\""));
  9404. } else {
  9405. throw e
  9406. }
  9407. } finally {
  9408. // "touch" every property so they are all tracked as
  9409. // dependencies for deep watching
  9410. if (this.deep) {
  9411. traverse(value);
  9412. }
  9413. popTarget();
  9414. this.cleanupDeps();
  9415. }
  9416. return value
  9417. };
  9418. /**
  9419. * Add a dependency to this directive.
  9420. */
  9421. Watcher.prototype.addDep = function addDep (dep) {
  9422. var id = dep.id;
  9423. if (!this.newDepIds.has(id)) {
  9424. this.newDepIds.add(id);
  9425. this.newDeps.push(dep);
  9426. if (!this.depIds.has(id)) {
  9427. dep.addSub(this);
  9428. }
  9429. }
  9430. };
  9431. /**
  9432. * Clean up for dependency collection.
  9433. */
  9434. Watcher.prototype.cleanupDeps = function cleanupDeps () {
  9435. var i = this.deps.length;
  9436. while (i--) {
  9437. var dep = this.deps[i];
  9438. if (!this.newDepIds.has(dep.id)) {
  9439. dep.removeSub(this);
  9440. }
  9441. }
  9442. var tmp = this.depIds;
  9443. this.depIds = this.newDepIds;
  9444. this.newDepIds = tmp;
  9445. this.newDepIds.clear();
  9446. tmp = this.deps;
  9447. this.deps = this.newDeps;
  9448. this.newDeps = tmp;
  9449. this.newDeps.length = 0;
  9450. };
  9451. /**
  9452. * Subscriber interface.
  9453. * Will be called when a dependency changes.
  9454. */
  9455. Watcher.prototype.update = function update () {
  9456. /* istanbul ignore else */
  9457. if (this.lazy) {
  9458. this.dirty = true;
  9459. } else if (this.sync) {
  9460. this.run();
  9461. } else {
  9462. queueWatcher(this);
  9463. }
  9464. };
  9465. /**
  9466. * Scheduler job interface.
  9467. * Will be called by the scheduler.
  9468. */
  9469. Watcher.prototype.run = function run () {
  9470. if (this.active) {
  9471. var value = this.get();
  9472. if (
  9473. value !== this.value ||
  9474. // Deep watchers and watchers on Object/Arrays should fire even
  9475. // when the value is the same, because the value may
  9476. // have mutated.
  9477. isObject(value) ||
  9478. this.deep
  9479. ) {
  9480. // set new value
  9481. var oldValue = this.value;
  9482. this.value = value;
  9483. if (this.user) {
  9484. try {
  9485. this.cb.call(this.vm, value, oldValue);
  9486. } catch (e) {
  9487. handleError(e, this.vm, ("callback for watcher \"" + (this.expression) + "\""));
  9488. }
  9489. } else {
  9490. this.cb.call(this.vm, value, oldValue);
  9491. }
  9492. }
  9493. }
  9494. };
  9495. /**
  9496. * Evaluate the value of the watcher.
  9497. * This only gets called for lazy watchers.
  9498. */
  9499. Watcher.prototype.evaluate = function evaluate () {
  9500. this.value = this.get();
  9501. this.dirty = false;
  9502. };
  9503. /**
  9504. * Depend on all deps collected by this watcher.
  9505. */
  9506. Watcher.prototype.depend = function depend () {
  9507. var i = this.deps.length;
  9508. while (i--) {
  9509. this.deps[i].depend();
  9510. }
  9511. };
  9512. /**
  9513. * Remove self from all dependencies' subscriber list.
  9514. */
  9515. Watcher.prototype.teardown = function teardown () {
  9516. if (this.active) {
  9517. // remove self from vm's watcher list
  9518. // this is a somewhat expensive operation so we skip it
  9519. // if the vm is being destroyed.
  9520. if (!this.vm._isBeingDestroyed) {
  9521. remove(this.vm._watchers, this);
  9522. }
  9523. var i = this.deps.length;
  9524. while (i--) {
  9525. this.deps[i].removeSub(this);
  9526. }
  9527. this.active = false;
  9528. }
  9529. };
  9530. /* */
  9531. var sharedPropertyDefinition = {
  9532. enumerable: true,
  9533. configurable: true,
  9534. get: noop,
  9535. set: noop
  9536. };
  9537. function proxy (target, sourceKey, key) {
  9538. sharedPropertyDefinition.get = function proxyGetter () {
  9539. return this[sourceKey][key]
  9540. };
  9541. sharedPropertyDefinition.set = function proxySetter (val) {
  9542. this[sourceKey][key] = val;
  9543. };
  9544. Object.defineProperty(target, key, sharedPropertyDefinition);
  9545. }
  9546. function initState (vm) {
  9547. vm._watchers = [];
  9548. var opts = vm.$options;
  9549. if (opts.props) { initProps(vm, opts.props); }
  9550. if (opts.methods) { initMethods(vm, opts.methods); }
  9551. if (opts.data) {
  9552. initData(vm);
  9553. } else {
  9554. observe(vm._data = {}, true /* asRootData */);
  9555. }
  9556. if (opts.computed) { initComputed(vm, opts.computed); }
  9557. if (opts.watch && opts.watch !== nativeWatch) {
  9558. initWatch(vm, opts.watch);
  9559. }
  9560. }
  9561. function initProps (vm, propsOptions) {
  9562. var propsData = vm.$options.propsData || {};
  9563. var props = vm._props = {};
  9564. // cache prop keys so that future props updates can iterate using Array
  9565. // instead of dynamic object key enumeration.
  9566. var keys = vm.$options._propKeys = [];
  9567. var isRoot = !vm.$parent;
  9568. // root instance props should be converted
  9569. if (!isRoot) {
  9570. toggleObserving(false);
  9571. }
  9572. var loop = function ( key ) {
  9573. keys.push(key);
  9574. var value = validateProp(key, propsOptions, propsData, vm);
  9575. /* istanbul ignore else */
  9576. if (true) {
  9577. var hyphenatedKey = hyphenate(key);
  9578. if (isReservedAttribute(hyphenatedKey) ||
  9579. config.isReservedAttr(hyphenatedKey)) {
  9580. warn(
  9581. ("\"" + hyphenatedKey + "\" is a reserved attribute and cannot be used as component prop."),
  9582. vm
  9583. );
  9584. }
  9585. defineReactive$$1(props, key, value, function () {
  9586. if (!isRoot && !isUpdatingChildComponent) {
  9587. {
  9588. if(vm.mpHost === 'mp-baidu' || vm.mpHost === 'mp-kuaishou' || vm.mpHost === 'mp-xhs'){//百度、快手、小红书 observer 在 setData callback 之后触发,直接忽略该 warn
  9589. return
  9590. }
  9591. //fixed by xxxxxx __next_tick_pending,uni://form-field 时不告警
  9592. if(
  9593. key === 'value' &&
  9594. Array.isArray(vm.$options.behaviors) &&
  9595. vm.$options.behaviors.indexOf('uni://form-field') !== -1
  9596. ){
  9597. return
  9598. }
  9599. if(vm._getFormData){
  9600. return
  9601. }
  9602. var $parent = vm.$parent;
  9603. while($parent){
  9604. if($parent.__next_tick_pending){
  9605. return
  9606. }
  9607. $parent = $parent.$parent;
  9608. }
  9609. }
  9610. warn(
  9611. "Avoid mutating a prop directly since the value will be " +
  9612. "overwritten whenever the parent component re-renders. " +
  9613. "Instead, use a data or computed property based on the prop's " +
  9614. "value. Prop being mutated: \"" + key + "\"",
  9615. vm
  9616. );
  9617. }
  9618. });
  9619. } else {}
  9620. // static props are already proxied on the component's prototype
  9621. // during Vue.extend(). We only need to proxy props defined at
  9622. // instantiation here.
  9623. if (!(key in vm)) {
  9624. proxy(vm, "_props", key);
  9625. }
  9626. };
  9627. for (var key in propsOptions) loop( key );
  9628. toggleObserving(true);
  9629. }
  9630. function initData (vm) {
  9631. var data = vm.$options.data;
  9632. data = vm._data = typeof data === 'function'
  9633. ? getData(data, vm)
  9634. : data || {};
  9635. if (!isPlainObject(data)) {
  9636. data = {};
  9637. true && warn(
  9638. 'data functions should return an object:\n' +
  9639. 'https://vuejs.org/v2/guide/components.html#data-Must-Be-a-Function',
  9640. vm
  9641. );
  9642. }
  9643. // proxy data on instance
  9644. var keys = Object.keys(data);
  9645. var props = vm.$options.props;
  9646. var methods = vm.$options.methods;
  9647. var i = keys.length;
  9648. while (i--) {
  9649. var key = keys[i];
  9650. if (true) {
  9651. if (methods && hasOwn(methods, key)) {
  9652. warn(
  9653. ("Method \"" + key + "\" has already been defined as a data property."),
  9654. vm
  9655. );
  9656. }
  9657. }
  9658. if (props && hasOwn(props, key)) {
  9659. true && warn(
  9660. "The data property \"" + key + "\" is already declared as a prop. " +
  9661. "Use prop default value instead.",
  9662. vm
  9663. );
  9664. } else if (!isReserved(key)) {
  9665. proxy(vm, "_data", key);
  9666. }
  9667. }
  9668. // observe data
  9669. observe(data, true /* asRootData */);
  9670. }
  9671. function getData (data, vm) {
  9672. // #7573 disable dep collection when invoking data getters
  9673. pushTarget();
  9674. try {
  9675. return data.call(vm, vm)
  9676. } catch (e) {
  9677. handleError(e, vm, "data()");
  9678. return {}
  9679. } finally {
  9680. popTarget();
  9681. }
  9682. }
  9683. var computedWatcherOptions = { lazy: true };
  9684. function initComputed (vm, computed) {
  9685. // $flow-disable-line
  9686. var watchers = vm._computedWatchers = Object.create(null);
  9687. // computed properties are just getters during SSR
  9688. var isSSR = isServerRendering();
  9689. for (var key in computed) {
  9690. var userDef = computed[key];
  9691. var getter = typeof userDef === 'function' ? userDef : userDef.get;
  9692. if ( true && getter == null) {
  9693. warn(
  9694. ("Getter is missing for computed property \"" + key + "\"."),
  9695. vm
  9696. );
  9697. }
  9698. if (!isSSR) {
  9699. // create internal watcher for the computed property.
  9700. watchers[key] = new Watcher(
  9701. vm,
  9702. getter || noop,
  9703. noop,
  9704. computedWatcherOptions
  9705. );
  9706. }
  9707. // component-defined computed properties are already defined on the
  9708. // component prototype. We only need to define computed properties defined
  9709. // at instantiation here.
  9710. if (!(key in vm)) {
  9711. defineComputed(vm, key, userDef);
  9712. } else if (true) {
  9713. if (key in vm.$data) {
  9714. warn(("The computed property \"" + key + "\" is already defined in data."), vm);
  9715. } else if (vm.$options.props && key in vm.$options.props) {
  9716. warn(("The computed property \"" + key + "\" is already defined as a prop."), vm);
  9717. }
  9718. }
  9719. }
  9720. }
  9721. function defineComputed (
  9722. target,
  9723. key,
  9724. userDef
  9725. ) {
  9726. var shouldCache = !isServerRendering();
  9727. if (typeof userDef === 'function') {
  9728. sharedPropertyDefinition.get = shouldCache
  9729. ? createComputedGetter(key)
  9730. : createGetterInvoker(userDef);
  9731. sharedPropertyDefinition.set = noop;
  9732. } else {
  9733. sharedPropertyDefinition.get = userDef.get
  9734. ? shouldCache && userDef.cache !== false
  9735. ? createComputedGetter(key)
  9736. : createGetterInvoker(userDef.get)
  9737. : noop;
  9738. sharedPropertyDefinition.set = userDef.set || noop;
  9739. }
  9740. if ( true &&
  9741. sharedPropertyDefinition.set === noop) {
  9742. sharedPropertyDefinition.set = function () {
  9743. warn(
  9744. ("Computed property \"" + key + "\" was assigned to but it has no setter."),
  9745. this
  9746. );
  9747. };
  9748. }
  9749. Object.defineProperty(target, key, sharedPropertyDefinition);
  9750. }
  9751. function createComputedGetter (key) {
  9752. return function computedGetter () {
  9753. var watcher = this._computedWatchers && this._computedWatchers[key];
  9754. if (watcher) {
  9755. if (watcher.dirty) {
  9756. watcher.evaluate();
  9757. }
  9758. if (Dep.SharedObject.target) {// fixed by xxxxxx
  9759. watcher.depend();
  9760. }
  9761. return watcher.value
  9762. }
  9763. }
  9764. }
  9765. function createGetterInvoker(fn) {
  9766. return function computedGetter () {
  9767. return fn.call(this, this)
  9768. }
  9769. }
  9770. function initMethods (vm, methods) {
  9771. var props = vm.$options.props;
  9772. for (var key in methods) {
  9773. if (true) {
  9774. if (typeof methods[key] !== 'function') {
  9775. warn(
  9776. "Method \"" + key + "\" has type \"" + (typeof methods[key]) + "\" in the component definition. " +
  9777. "Did you reference the function correctly?",
  9778. vm
  9779. );
  9780. }
  9781. if (props && hasOwn(props, key)) {
  9782. warn(
  9783. ("Method \"" + key + "\" has already been defined as a prop."),
  9784. vm
  9785. );
  9786. }
  9787. if ((key in vm) && isReserved(key)) {
  9788. warn(
  9789. "Method \"" + key + "\" conflicts with an existing Vue instance method. " +
  9790. "Avoid defining component methods that start with _ or $."
  9791. );
  9792. }
  9793. }
  9794. vm[key] = typeof methods[key] !== 'function' ? noop : bind(methods[key], vm);
  9795. }
  9796. }
  9797. function initWatch (vm, watch) {
  9798. for (var key in watch) {
  9799. var handler = watch[key];
  9800. if (Array.isArray(handler)) {
  9801. for (var i = 0; i < handler.length; i++) {
  9802. createWatcher(vm, key, handler[i]);
  9803. }
  9804. } else {
  9805. createWatcher(vm, key, handler);
  9806. }
  9807. }
  9808. }
  9809. function createWatcher (
  9810. vm,
  9811. expOrFn,
  9812. handler,
  9813. options
  9814. ) {
  9815. if (isPlainObject(handler)) {
  9816. options = handler;
  9817. handler = handler.handler;
  9818. }
  9819. if (typeof handler === 'string') {
  9820. handler = vm[handler];
  9821. }
  9822. return vm.$watch(expOrFn, handler, options)
  9823. }
  9824. function stateMixin (Vue) {
  9825. // flow somehow has problems with directly declared definition object
  9826. // when using Object.defineProperty, so we have to procedurally build up
  9827. // the object here.
  9828. var dataDef = {};
  9829. dataDef.get = function () { return this._data };
  9830. var propsDef = {};
  9831. propsDef.get = function () { return this._props };
  9832. if (true) {
  9833. dataDef.set = function () {
  9834. warn(
  9835. 'Avoid replacing instance root $data. ' +
  9836. 'Use nested data properties instead.',
  9837. this
  9838. );
  9839. };
  9840. propsDef.set = function () {
  9841. warn("$props is readonly.", this);
  9842. };
  9843. }
  9844. Object.defineProperty(Vue.prototype, '$data', dataDef);
  9845. Object.defineProperty(Vue.prototype, '$props', propsDef);
  9846. Vue.prototype.$set = set;
  9847. Vue.prototype.$delete = del;
  9848. Vue.prototype.$watch = function (
  9849. expOrFn,
  9850. cb,
  9851. options
  9852. ) {
  9853. var vm = this;
  9854. if (isPlainObject(cb)) {
  9855. return createWatcher(vm, expOrFn, cb, options)
  9856. }
  9857. options = options || {};
  9858. options.user = true;
  9859. var watcher = new Watcher(vm, expOrFn, cb, options);
  9860. if (options.immediate) {
  9861. try {
  9862. cb.call(vm, watcher.value);
  9863. } catch (error) {
  9864. handleError(error, vm, ("callback for immediate watcher \"" + (watcher.expression) + "\""));
  9865. }
  9866. }
  9867. return function unwatchFn () {
  9868. watcher.teardown();
  9869. }
  9870. };
  9871. }
  9872. /* */
  9873. var uid$3 = 0;
  9874. function initMixin (Vue) {
  9875. Vue.prototype._init = function (options) {
  9876. var vm = this;
  9877. // a uid
  9878. vm._uid = uid$3++;
  9879. var startTag, endTag;
  9880. /* istanbul ignore if */
  9881. if ( true && config.performance && mark) {
  9882. startTag = "vue-perf-start:" + (vm._uid);
  9883. endTag = "vue-perf-end:" + (vm._uid);
  9884. mark(startTag);
  9885. }
  9886. // a flag to avoid this being observed
  9887. vm._isVue = true;
  9888. // merge options
  9889. if (options && options._isComponent) {
  9890. // optimize internal component instantiation
  9891. // since dynamic options merging is pretty slow, and none of the
  9892. // internal component options needs special treatment.
  9893. initInternalComponent(vm, options);
  9894. } else {
  9895. vm.$options = mergeOptions(
  9896. resolveConstructorOptions(vm.constructor),
  9897. options || {},
  9898. vm
  9899. );
  9900. }
  9901. /* istanbul ignore else */
  9902. if (true) {
  9903. initProxy(vm);
  9904. } else {}
  9905. // expose real self
  9906. vm._self = vm;
  9907. initLifecycle(vm);
  9908. initEvents(vm);
  9909. initRender(vm);
  9910. callHook(vm, 'beforeCreate');
  9911. !vm._$fallback && initInjections(vm); // resolve injections before data/props
  9912. initState(vm);
  9913. !vm._$fallback && initProvide(vm); // resolve provide after data/props
  9914. !vm._$fallback && callHook(vm, 'created');
  9915. /* istanbul ignore if */
  9916. if ( true && config.performance && mark) {
  9917. vm._name = formatComponentName(vm, false);
  9918. mark(endTag);
  9919. measure(("vue " + (vm._name) + " init"), startTag, endTag);
  9920. }
  9921. if (vm.$options.el) {
  9922. vm.$mount(vm.$options.el);
  9923. }
  9924. };
  9925. }
  9926. function initInternalComponent (vm, options) {
  9927. var opts = vm.$options = Object.create(vm.constructor.options);
  9928. // doing this because it's faster than dynamic enumeration.
  9929. var parentVnode = options._parentVnode;
  9930. opts.parent = options.parent;
  9931. opts._parentVnode = parentVnode;
  9932. var vnodeComponentOptions = parentVnode.componentOptions;
  9933. opts.propsData = vnodeComponentOptions.propsData;
  9934. opts._parentListeners = vnodeComponentOptions.listeners;
  9935. opts._renderChildren = vnodeComponentOptions.children;
  9936. opts._componentTag = vnodeComponentOptions.tag;
  9937. if (options.render) {
  9938. opts.render = options.render;
  9939. opts.staticRenderFns = options.staticRenderFns;
  9940. }
  9941. }
  9942. function resolveConstructorOptions (Ctor) {
  9943. var options = Ctor.options;
  9944. if (Ctor.super) {
  9945. var superOptions = resolveConstructorOptions(Ctor.super);
  9946. var cachedSuperOptions = Ctor.superOptions;
  9947. if (superOptions !== cachedSuperOptions) {
  9948. // super option changed,
  9949. // need to resolve new options.
  9950. Ctor.superOptions = superOptions;
  9951. // check if there are any late-modified/attached options (#4976)
  9952. var modifiedOptions = resolveModifiedOptions(Ctor);
  9953. // update base extend options
  9954. if (modifiedOptions) {
  9955. extend(Ctor.extendOptions, modifiedOptions);
  9956. }
  9957. options = Ctor.options = mergeOptions(superOptions, Ctor.extendOptions);
  9958. if (options.name) {
  9959. options.components[options.name] = Ctor;
  9960. }
  9961. }
  9962. }
  9963. return options
  9964. }
  9965. function resolveModifiedOptions (Ctor) {
  9966. var modified;
  9967. var latest = Ctor.options;
  9968. var sealed = Ctor.sealedOptions;
  9969. for (var key in latest) {
  9970. if (latest[key] !== sealed[key]) {
  9971. if (!modified) { modified = {}; }
  9972. modified[key] = latest[key];
  9973. }
  9974. }
  9975. return modified
  9976. }
  9977. function Vue (options) {
  9978. if ( true &&
  9979. !(this instanceof Vue)
  9980. ) {
  9981. warn('Vue is a constructor and should be called with the `new` keyword');
  9982. }
  9983. this._init(options);
  9984. }
  9985. initMixin(Vue);
  9986. stateMixin(Vue);
  9987. eventsMixin(Vue);
  9988. lifecycleMixin(Vue);
  9989. renderMixin(Vue);
  9990. /* */
  9991. function initUse (Vue) {
  9992. Vue.use = function (plugin) {
  9993. var installedPlugins = (this._installedPlugins || (this._installedPlugins = []));
  9994. if (installedPlugins.indexOf(plugin) > -1) {
  9995. return this
  9996. }
  9997. // additional parameters
  9998. var args = toArray(arguments, 1);
  9999. args.unshift(this);
  10000. if (typeof plugin.install === 'function') {
  10001. plugin.install.apply(plugin, args);
  10002. } else if (typeof plugin === 'function') {
  10003. plugin.apply(null, args);
  10004. }
  10005. installedPlugins.push(plugin);
  10006. return this
  10007. };
  10008. }
  10009. /* */
  10010. function initMixin$1 (Vue) {
  10011. Vue.mixin = function (mixin) {
  10012. this.options = mergeOptions(this.options, mixin);
  10013. return this
  10014. };
  10015. }
  10016. /* */
  10017. function initExtend (Vue) {
  10018. /**
  10019. * Each instance constructor, including Vue, has a unique
  10020. * cid. This enables us to create wrapped "child
  10021. * constructors" for prototypal inheritance and cache them.
  10022. */
  10023. Vue.cid = 0;
  10024. var cid = 1;
  10025. /**
  10026. * Class inheritance
  10027. */
  10028. Vue.extend = function (extendOptions) {
  10029. extendOptions = extendOptions || {};
  10030. var Super = this;
  10031. var SuperId = Super.cid;
  10032. var cachedCtors = extendOptions._Ctor || (extendOptions._Ctor = {});
  10033. if (cachedCtors[SuperId]) {
  10034. return cachedCtors[SuperId]
  10035. }
  10036. var name = extendOptions.name || Super.options.name;
  10037. if ( true && name) {
  10038. validateComponentName(name);
  10039. }
  10040. var Sub = function VueComponent (options) {
  10041. this._init(options);
  10042. };
  10043. Sub.prototype = Object.create(Super.prototype);
  10044. Sub.prototype.constructor = Sub;
  10045. Sub.cid = cid++;
  10046. Sub.options = mergeOptions(
  10047. Super.options,
  10048. extendOptions
  10049. );
  10050. Sub['super'] = Super;
  10051. // For props and computed properties, we define the proxy getters on
  10052. // the Vue instances at extension time, on the extended prototype. This
  10053. // avoids Object.defineProperty calls for each instance created.
  10054. if (Sub.options.props) {
  10055. initProps$1(Sub);
  10056. }
  10057. if (Sub.options.computed) {
  10058. initComputed$1(Sub);
  10059. }
  10060. // allow further extension/mixin/plugin usage
  10061. Sub.extend = Super.extend;
  10062. Sub.mixin = Super.mixin;
  10063. Sub.use = Super.use;
  10064. // create asset registers, so extended classes
  10065. // can have their private assets too.
  10066. ASSET_TYPES.forEach(function (type) {
  10067. Sub[type] = Super[type];
  10068. });
  10069. // enable recursive self-lookup
  10070. if (name) {
  10071. Sub.options.components[name] = Sub;
  10072. }
  10073. // keep a reference to the super options at extension time.
  10074. // later at instantiation we can check if Super's options have
  10075. // been updated.
  10076. Sub.superOptions = Super.options;
  10077. Sub.extendOptions = extendOptions;
  10078. Sub.sealedOptions = extend({}, Sub.options);
  10079. // cache constructor
  10080. cachedCtors[SuperId] = Sub;
  10081. return Sub
  10082. };
  10083. }
  10084. function initProps$1 (Comp) {
  10085. var props = Comp.options.props;
  10086. for (var key in props) {
  10087. proxy(Comp.prototype, "_props", key);
  10088. }
  10089. }
  10090. function initComputed$1 (Comp) {
  10091. var computed = Comp.options.computed;
  10092. for (var key in computed) {
  10093. defineComputed(Comp.prototype, key, computed[key]);
  10094. }
  10095. }
  10096. /* */
  10097. function initAssetRegisters (Vue) {
  10098. /**
  10099. * Create asset registration methods.
  10100. */
  10101. ASSET_TYPES.forEach(function (type) {
  10102. Vue[type] = function (
  10103. id,
  10104. definition
  10105. ) {
  10106. if (!definition) {
  10107. return this.options[type + 's'][id]
  10108. } else {
  10109. /* istanbul ignore if */
  10110. if ( true && type === 'component') {
  10111. validateComponentName(id);
  10112. }
  10113. if (type === 'component' && isPlainObject(definition)) {
  10114. definition.name = definition.name || id;
  10115. definition = this.options._base.extend(definition);
  10116. }
  10117. if (type === 'directive' && typeof definition === 'function') {
  10118. definition = { bind: definition, update: definition };
  10119. }
  10120. this.options[type + 's'][id] = definition;
  10121. return definition
  10122. }
  10123. };
  10124. });
  10125. }
  10126. /* */
  10127. function getComponentName (opts) {
  10128. return opts && (opts.Ctor.options.name || opts.tag)
  10129. }
  10130. function matches (pattern, name) {
  10131. if (Array.isArray(pattern)) {
  10132. return pattern.indexOf(name) > -1
  10133. } else if (typeof pattern === 'string') {
  10134. return pattern.split(',').indexOf(name) > -1
  10135. } else if (isRegExp(pattern)) {
  10136. return pattern.test(name)
  10137. }
  10138. /* istanbul ignore next */
  10139. return false
  10140. }
  10141. function pruneCache (keepAliveInstance, filter) {
  10142. var cache = keepAliveInstance.cache;
  10143. var keys = keepAliveInstance.keys;
  10144. var _vnode = keepAliveInstance._vnode;
  10145. for (var key in cache) {
  10146. var cachedNode = cache[key];
  10147. if (cachedNode) {
  10148. var name = getComponentName(cachedNode.componentOptions);
  10149. if (name && !filter(name)) {
  10150. pruneCacheEntry(cache, key, keys, _vnode);
  10151. }
  10152. }
  10153. }
  10154. }
  10155. function pruneCacheEntry (
  10156. cache,
  10157. key,
  10158. keys,
  10159. current
  10160. ) {
  10161. var cached$$1 = cache[key];
  10162. if (cached$$1 && (!current || cached$$1.tag !== current.tag)) {
  10163. cached$$1.componentInstance.$destroy();
  10164. }
  10165. cache[key] = null;
  10166. remove(keys, key);
  10167. }
  10168. var patternTypes = [String, RegExp, Array];
  10169. var KeepAlive = {
  10170. name: 'keep-alive',
  10171. abstract: true,
  10172. props: {
  10173. include: patternTypes,
  10174. exclude: patternTypes,
  10175. max: [String, Number]
  10176. },
  10177. created: function created () {
  10178. this.cache = Object.create(null);
  10179. this.keys = [];
  10180. },
  10181. destroyed: function destroyed () {
  10182. for (var key in this.cache) {
  10183. pruneCacheEntry(this.cache, key, this.keys);
  10184. }
  10185. },
  10186. mounted: function mounted () {
  10187. var this$1 = this;
  10188. this.$watch('include', function (val) {
  10189. pruneCache(this$1, function (name) { return matches(val, name); });
  10190. });
  10191. this.$watch('exclude', function (val) {
  10192. pruneCache(this$1, function (name) { return !matches(val, name); });
  10193. });
  10194. },
  10195. render: function render () {
  10196. var slot = this.$slots.default;
  10197. var vnode = getFirstComponentChild(slot);
  10198. var componentOptions = vnode && vnode.componentOptions;
  10199. if (componentOptions) {
  10200. // check pattern
  10201. var name = getComponentName(componentOptions);
  10202. var ref = this;
  10203. var include = ref.include;
  10204. var exclude = ref.exclude;
  10205. if (
  10206. // not included
  10207. (include && (!name || !matches(include, name))) ||
  10208. // excluded
  10209. (exclude && name && matches(exclude, name))
  10210. ) {
  10211. return vnode
  10212. }
  10213. var ref$1 = this;
  10214. var cache = ref$1.cache;
  10215. var keys = ref$1.keys;
  10216. var key = vnode.key == null
  10217. // same constructor may get registered as different local components
  10218. // so cid alone is not enough (#3269)
  10219. ? componentOptions.Ctor.cid + (componentOptions.tag ? ("::" + (componentOptions.tag)) : '')
  10220. : vnode.key;
  10221. if (cache[key]) {
  10222. vnode.componentInstance = cache[key].componentInstance;
  10223. // make current key freshest
  10224. remove(keys, key);
  10225. keys.push(key);
  10226. } else {
  10227. cache[key] = vnode;
  10228. keys.push(key);
  10229. // prune oldest entry
  10230. if (this.max && keys.length > parseInt(this.max)) {
  10231. pruneCacheEntry(cache, keys[0], keys, this._vnode);
  10232. }
  10233. }
  10234. vnode.data.keepAlive = true;
  10235. }
  10236. return vnode || (slot && slot[0])
  10237. }
  10238. };
  10239. var builtInComponents = {
  10240. KeepAlive: KeepAlive
  10241. };
  10242. /* */
  10243. function initGlobalAPI (Vue) {
  10244. // config
  10245. var configDef = {};
  10246. configDef.get = function () { return config; };
  10247. if (true) {
  10248. configDef.set = function () {
  10249. warn(
  10250. 'Do not replace the Vue.config object, set individual fields instead.'
  10251. );
  10252. };
  10253. }
  10254. Object.defineProperty(Vue, 'config', configDef);
  10255. // exposed util methods.
  10256. // NOTE: these are not considered part of the public API - avoid relying on
  10257. // them unless you are aware of the risk.
  10258. Vue.util = {
  10259. warn: warn,
  10260. extend: extend,
  10261. mergeOptions: mergeOptions,
  10262. defineReactive: defineReactive$$1
  10263. };
  10264. Vue.set = set;
  10265. Vue.delete = del;
  10266. Vue.nextTick = nextTick;
  10267. // 2.6 explicit observable API
  10268. Vue.observable = function (obj) {
  10269. observe(obj);
  10270. return obj
  10271. };
  10272. Vue.options = Object.create(null);
  10273. ASSET_TYPES.forEach(function (type) {
  10274. Vue.options[type + 's'] = Object.create(null);
  10275. });
  10276. // this is used to identify the "base" constructor to extend all plain-object
  10277. // components with in Weex's multi-instance scenarios.
  10278. Vue.options._base = Vue;
  10279. extend(Vue.options.components, builtInComponents);
  10280. initUse(Vue);
  10281. initMixin$1(Vue);
  10282. initExtend(Vue);
  10283. initAssetRegisters(Vue);
  10284. }
  10285. initGlobalAPI(Vue);
  10286. Object.defineProperty(Vue.prototype, '$isServer', {
  10287. get: isServerRendering
  10288. });
  10289. Object.defineProperty(Vue.prototype, '$ssrContext', {
  10290. get: function get () {
  10291. /* istanbul ignore next */
  10292. return this.$vnode && this.$vnode.ssrContext
  10293. }
  10294. });
  10295. // expose FunctionalRenderContext for ssr runtime helper installation
  10296. Object.defineProperty(Vue, 'FunctionalRenderContext', {
  10297. value: FunctionalRenderContext
  10298. });
  10299. Vue.version = '2.6.11';
  10300. /**
  10301. * https://raw.githubusercontent.com/Tencent/westore/master/packages/westore/utils/diff.js
  10302. */
  10303. var ARRAYTYPE = '[object Array]';
  10304. var OBJECTTYPE = '[object Object]';
  10305. var NULLTYPE = '[object Null]';
  10306. var UNDEFINEDTYPE = '[object Undefined]';
  10307. // const FUNCTIONTYPE = '[object Function]'
  10308. function diff(current, pre) {
  10309. var result = {};
  10310. syncKeys(current, pre);
  10311. _diff(current, pre, '', result);
  10312. return result
  10313. }
  10314. function syncKeys(current, pre) {
  10315. if (current === pre) { return }
  10316. var rootCurrentType = type(current);
  10317. var rootPreType = type(pre);
  10318. if (rootCurrentType == OBJECTTYPE && rootPreType == OBJECTTYPE) {
  10319. if(Object.keys(current).length >= Object.keys(pre).length){
  10320. for (var key in pre) {
  10321. var currentValue = current[key];
  10322. if (currentValue === undefined) {
  10323. current[key] = null;
  10324. } else {
  10325. syncKeys(currentValue, pre[key]);
  10326. }
  10327. }
  10328. }
  10329. } else if (rootCurrentType == ARRAYTYPE && rootPreType == ARRAYTYPE) {
  10330. if (current.length >= pre.length) {
  10331. pre.forEach(function (item, index) {
  10332. syncKeys(current[index], item);
  10333. });
  10334. }
  10335. }
  10336. }
  10337. function nullOrUndefined(currentType, preType) {
  10338. if(
  10339. (currentType === NULLTYPE || currentType === UNDEFINEDTYPE) &&
  10340. (preType === NULLTYPE || preType === UNDEFINEDTYPE)
  10341. ) {
  10342. return false
  10343. }
  10344. return true
  10345. }
  10346. function _diff(current, pre, path, result) {
  10347. if (current === pre) { return }
  10348. var rootCurrentType = type(current);
  10349. var rootPreType = type(pre);
  10350. if (rootCurrentType == OBJECTTYPE) {
  10351. if (rootPreType != OBJECTTYPE || Object.keys(current).length < Object.keys(pre).length) {
  10352. setResult(result, path, current);
  10353. } else {
  10354. var loop = function ( key ) {
  10355. var currentValue = current[key];
  10356. var preValue = pre[key];
  10357. var currentType = type(currentValue);
  10358. var preType = type(preValue);
  10359. if (currentType != ARRAYTYPE && currentType != OBJECTTYPE) {
  10360. if (currentValue !== pre[key] && nullOrUndefined(currentType, preType)) {
  10361. setResult(result, (path == '' ? '' : path + ".") + key, currentValue);
  10362. }
  10363. } else if (currentType == ARRAYTYPE) {
  10364. if (preType != ARRAYTYPE) {
  10365. setResult(result, (path == '' ? '' : path + ".") + key, currentValue);
  10366. } else {
  10367. if (currentValue.length < preValue.length) {
  10368. setResult(result, (path == '' ? '' : path + ".") + key, currentValue);
  10369. } else {
  10370. currentValue.forEach(function (item, index) {
  10371. _diff(item, preValue[index], (path == '' ? '' : path + ".") + key + '[' + index + ']', result);
  10372. });
  10373. }
  10374. }
  10375. } else if (currentType == OBJECTTYPE) {
  10376. if (preType != OBJECTTYPE || Object.keys(currentValue).length < Object.keys(preValue).length) {
  10377. setResult(result, (path == '' ? '' : path + ".") + key, currentValue);
  10378. } else {
  10379. for (var subKey in currentValue) {
  10380. _diff(currentValue[subKey], preValue[subKey], (path == '' ? '' : path + ".") + key + '.' + subKey, result);
  10381. }
  10382. }
  10383. }
  10384. };
  10385. for (var key in current) loop( key );
  10386. }
  10387. } else if (rootCurrentType == ARRAYTYPE) {
  10388. if (rootPreType != ARRAYTYPE) {
  10389. setResult(result, path, current);
  10390. } else {
  10391. if (current.length < pre.length) {
  10392. setResult(result, path, current);
  10393. } else {
  10394. current.forEach(function (item, index) {
  10395. _diff(item, pre[index], path + '[' + index + ']', result);
  10396. });
  10397. }
  10398. }
  10399. } else {
  10400. setResult(result, path, current);
  10401. }
  10402. }
  10403. function setResult(result, k, v) {
  10404. // if (type(v) != FUNCTIONTYPE) {
  10405. result[k] = v;
  10406. // }
  10407. }
  10408. function type(obj) {
  10409. return Object.prototype.toString.call(obj)
  10410. }
  10411. /* */
  10412. function flushCallbacks$1(vm) {
  10413. if (vm.__next_tick_callbacks && vm.__next_tick_callbacks.length) {
  10414. if (Object({"NODE_ENV":"development","VUE_APP_DARK_MODE":"false","VUE_APP_NAME":"产品化管理端","VUE_APP_PLATFORM":"mp-weixin","BASE_URL":"/"}).VUE_APP_DEBUG) {
  10415. var mpInstance = vm.$scope;
  10416. console.log('[' + (+new Date) + '][' + (mpInstance.is || mpInstance.route) + '][' + vm._uid +
  10417. ']:flushCallbacks[' + vm.__next_tick_callbacks.length + ']');
  10418. }
  10419. var copies = vm.__next_tick_callbacks.slice(0);
  10420. vm.__next_tick_callbacks.length = 0;
  10421. for (var i = 0; i < copies.length; i++) {
  10422. copies[i]();
  10423. }
  10424. }
  10425. }
  10426. function hasRenderWatcher(vm) {
  10427. return queue.find(function (watcher) { return vm._watcher === watcher; })
  10428. }
  10429. function nextTick$1(vm, cb) {
  10430. //1.nextTick 之前 已 setData 且 setData 还未回调完成
  10431. //2.nextTick 之前存在 render watcher
  10432. if (!vm.__next_tick_pending && !hasRenderWatcher(vm)) {
  10433. if(Object({"NODE_ENV":"development","VUE_APP_DARK_MODE":"false","VUE_APP_NAME":"产品化管理端","VUE_APP_PLATFORM":"mp-weixin","BASE_URL":"/"}).VUE_APP_DEBUG){
  10434. var mpInstance = vm.$scope;
  10435. console.log('[' + (+new Date) + '][' + (mpInstance.is || mpInstance.route) + '][' + vm._uid +
  10436. ']:nextVueTick');
  10437. }
  10438. return nextTick(cb, vm)
  10439. }else{
  10440. if(Object({"NODE_ENV":"development","VUE_APP_DARK_MODE":"false","VUE_APP_NAME":"产品化管理端","VUE_APP_PLATFORM":"mp-weixin","BASE_URL":"/"}).VUE_APP_DEBUG){
  10441. var mpInstance$1 = vm.$scope;
  10442. console.log('[' + (+new Date) + '][' + (mpInstance$1.is || mpInstance$1.route) + '][' + vm._uid +
  10443. ']:nextMPTick');
  10444. }
  10445. }
  10446. var _resolve;
  10447. if (!vm.__next_tick_callbacks) {
  10448. vm.__next_tick_callbacks = [];
  10449. }
  10450. vm.__next_tick_callbacks.push(function () {
  10451. if (cb) {
  10452. try {
  10453. cb.call(vm);
  10454. } catch (e) {
  10455. handleError(e, vm, 'nextTick');
  10456. }
  10457. } else if (_resolve) {
  10458. _resolve(vm);
  10459. }
  10460. });
  10461. // $flow-disable-line
  10462. if (!cb && typeof Promise !== 'undefined') {
  10463. return new Promise(function (resolve) {
  10464. _resolve = resolve;
  10465. })
  10466. }
  10467. }
  10468. /* */
  10469. function clearInstance(key, value) {
  10470. // 简易去除 Vue 和小程序组件实例
  10471. if (value) {
  10472. if (value._isVue || value.__v_isMPComponent) {
  10473. return {}
  10474. }
  10475. }
  10476. return value
  10477. }
  10478. function cloneWithData(vm) {
  10479. // 确保当前 vm 所有数据被同步
  10480. var ret = Object.create(null);
  10481. var dataKeys = [].concat(
  10482. Object.keys(vm._data || {}),
  10483. Object.keys(vm._computedWatchers || {}));
  10484. dataKeys.reduce(function(ret, key) {
  10485. ret[key] = vm[key];
  10486. return ret
  10487. }, ret);
  10488. // vue-composition-api
  10489. var compositionApiState = vm.__composition_api_state__ || vm.__secret_vfa_state__;
  10490. var rawBindings = compositionApiState && compositionApiState.rawBindings;
  10491. if (rawBindings) {
  10492. Object.keys(rawBindings).forEach(function (key) {
  10493. ret[key] = vm[key];
  10494. });
  10495. }
  10496. //TODO 需要把无用数据处理掉,比如 list=>l0 则 list 需要移除,否则多传输一份数据
  10497. Object.assign(ret, vm.$mp.data || {});
  10498. if (
  10499. Array.isArray(vm.$options.behaviors) &&
  10500. vm.$options.behaviors.indexOf('uni://form-field') !== -1
  10501. ) { //form-field
  10502. ret['name'] = vm.name;
  10503. ret['value'] = vm.value;
  10504. }
  10505. return JSON.parse(JSON.stringify(ret, clearInstance))
  10506. }
  10507. var patch = function(oldVnode, vnode) {
  10508. var this$1 = this;
  10509. if (vnode === null) { //destroy
  10510. return
  10511. }
  10512. if (this.mpType === 'page' || this.mpType === 'component') {
  10513. var mpInstance = this.$scope;
  10514. var data = Object.create(null);
  10515. try {
  10516. data = cloneWithData(this);
  10517. } catch (err) {
  10518. console.error(err);
  10519. }
  10520. data.__webviewId__ = mpInstance.data.__webviewId__;
  10521. var mpData = Object.create(null);
  10522. Object.keys(data).forEach(function (key) { //仅同步 data 中有的数据
  10523. mpData[key] = mpInstance.data[key];
  10524. });
  10525. var diffData = this.$shouldDiffData === false ? data : diff(data, mpData);
  10526. if (Object.keys(diffData).length) {
  10527. if (Object({"NODE_ENV":"development","VUE_APP_DARK_MODE":"false","VUE_APP_NAME":"产品化管理端","VUE_APP_PLATFORM":"mp-weixin","BASE_URL":"/"}).VUE_APP_DEBUG) {
  10528. console.log('[' + (+new Date) + '][' + (mpInstance.is || mpInstance.route) + '][' + this._uid +
  10529. ']差量更新',
  10530. JSON.stringify(diffData));
  10531. }
  10532. this.__next_tick_pending = true;
  10533. mpInstance.setData(diffData, function () {
  10534. this$1.__next_tick_pending = false;
  10535. flushCallbacks$1(this$1);
  10536. });
  10537. } else {
  10538. flushCallbacks$1(this);
  10539. }
  10540. }
  10541. };
  10542. /* */
  10543. function createEmptyRender() {
  10544. }
  10545. function mountComponent$1(
  10546. vm,
  10547. el,
  10548. hydrating
  10549. ) {
  10550. if (!vm.mpType) {//main.js 中的 new Vue
  10551. return vm
  10552. }
  10553. if (vm.mpType === 'app') {
  10554. vm.$options.render = createEmptyRender;
  10555. }
  10556. if (!vm.$options.render) {
  10557. vm.$options.render = createEmptyRender;
  10558. if (true) {
  10559. /* istanbul ignore if */
  10560. if ((vm.$options.template && vm.$options.template.charAt(0) !== '#') ||
  10561. vm.$options.el || el) {
  10562. warn(
  10563. 'You are using the runtime-only build of Vue where the template ' +
  10564. 'compiler is not available. Either pre-compile the templates into ' +
  10565. 'render functions, or use the compiler-included build.',
  10566. vm
  10567. );
  10568. } else {
  10569. warn(
  10570. 'Failed to mount component: template or render function not defined.',
  10571. vm
  10572. );
  10573. }
  10574. }
  10575. }
  10576. !vm._$fallback && callHook(vm, 'beforeMount');
  10577. var updateComponent = function () {
  10578. vm._update(vm._render(), hydrating);
  10579. };
  10580. // we set this to vm._watcher inside the watcher's constructor
  10581. // since the watcher's initial patch may call $forceUpdate (e.g. inside child
  10582. // component's mounted hook), which relies on vm._watcher being already defined
  10583. new Watcher(vm, updateComponent, noop, {
  10584. before: function before() {
  10585. if (vm._isMounted && !vm._isDestroyed) {
  10586. callHook(vm, 'beforeUpdate');
  10587. }
  10588. }
  10589. }, true /* isRenderWatcher */);
  10590. hydrating = false;
  10591. return vm
  10592. }
  10593. /* */
  10594. function renderClass (
  10595. staticClass,
  10596. dynamicClass
  10597. ) {
  10598. if (isDef(staticClass) || isDef(dynamicClass)) {
  10599. return concat(staticClass, stringifyClass(dynamicClass))
  10600. }
  10601. /* istanbul ignore next */
  10602. return ''
  10603. }
  10604. function concat (a, b) {
  10605. return a ? b ? (a + ' ' + b) : a : (b || '')
  10606. }
  10607. function stringifyClass (value) {
  10608. if (Array.isArray(value)) {
  10609. return stringifyArray(value)
  10610. }
  10611. if (isObject(value)) {
  10612. return stringifyObject(value)
  10613. }
  10614. if (typeof value === 'string') {
  10615. return value
  10616. }
  10617. /* istanbul ignore next */
  10618. return ''
  10619. }
  10620. function stringifyArray (value) {
  10621. var res = '';
  10622. var stringified;
  10623. for (var i = 0, l = value.length; i < l; i++) {
  10624. if (isDef(stringified = stringifyClass(value[i])) && stringified !== '') {
  10625. if (res) { res += ' '; }
  10626. res += stringified;
  10627. }
  10628. }
  10629. return res
  10630. }
  10631. function stringifyObject (value) {
  10632. var res = '';
  10633. for (var key in value) {
  10634. if (value[key]) {
  10635. if (res) { res += ' '; }
  10636. res += key;
  10637. }
  10638. }
  10639. return res
  10640. }
  10641. /* */
  10642. var parseStyleText = cached(function (cssText) {
  10643. var res = {};
  10644. var listDelimiter = /;(?![^(]*\))/g;
  10645. var propertyDelimiter = /:(.+)/;
  10646. cssText.split(listDelimiter).forEach(function (item) {
  10647. if (item) {
  10648. var tmp = item.split(propertyDelimiter);
  10649. tmp.length > 1 && (res[tmp[0].trim()] = tmp[1].trim());
  10650. }
  10651. });
  10652. return res
  10653. });
  10654. // normalize possible array / string values into Object
  10655. function normalizeStyleBinding (bindingStyle) {
  10656. if (Array.isArray(bindingStyle)) {
  10657. return toObject(bindingStyle)
  10658. }
  10659. if (typeof bindingStyle === 'string') {
  10660. return parseStyleText(bindingStyle)
  10661. }
  10662. return bindingStyle
  10663. }
  10664. /* */
  10665. var MP_METHODS = ['createSelectorQuery', 'createIntersectionObserver', 'selectAllComponents', 'selectComponent'];
  10666. function getTarget(obj, path) {
  10667. var parts = path.split('.');
  10668. var key = parts[0];
  10669. if (key.indexOf('__$n') === 0) { //number index
  10670. key = parseInt(key.replace('__$n', ''));
  10671. }
  10672. if (parts.length === 1) {
  10673. return obj[key]
  10674. }
  10675. return getTarget(obj[key], parts.slice(1).join('.'))
  10676. }
  10677. function internalMixin(Vue) {
  10678. Vue.config.errorHandler = function(err, vm, info) {
  10679. Vue.util.warn(("Error in " + info + ": \"" + (err.toString()) + "\""), vm);
  10680. console.error(err);
  10681. /* eslint-disable no-undef */
  10682. var app = typeof getApp === 'function' && getApp();
  10683. if (app && app.onError) {
  10684. app.onError(err);
  10685. }
  10686. };
  10687. var oldEmit = Vue.prototype.$emit;
  10688. Vue.prototype.$emit = function(event) {
  10689. if (this.$scope && event) {
  10690. var triggerEvent = this.$scope['_triggerEvent'] || this.$scope['triggerEvent'];
  10691. if (triggerEvent) {
  10692. try {
  10693. triggerEvent.call(this.$scope, event, {
  10694. __args__: toArray(arguments, 1)
  10695. });
  10696. } catch (error) {
  10697. }
  10698. }
  10699. }
  10700. return oldEmit.apply(this, arguments)
  10701. };
  10702. Vue.prototype.$nextTick = function(fn) {
  10703. return nextTick$1(this, fn)
  10704. };
  10705. MP_METHODS.forEach(function (method) {
  10706. Vue.prototype[method] = function(args) {
  10707. if (this.$scope && this.$scope[method]) {
  10708. return this.$scope[method](args)
  10709. }
  10710. // mp-alipay
  10711. if (typeof my === 'undefined') {
  10712. return
  10713. }
  10714. if (method === 'createSelectorQuery') {
  10715. /* eslint-disable no-undef */
  10716. return my.createSelectorQuery(args)
  10717. } else if (method === 'createIntersectionObserver') {
  10718. /* eslint-disable no-undef */
  10719. return my.createIntersectionObserver(args)
  10720. }
  10721. // TODO mp-alipay 暂不支持 selectAllComponents,selectComponent
  10722. };
  10723. });
  10724. Vue.prototype.__init_provide = initProvide;
  10725. Vue.prototype.__init_injections = initInjections;
  10726. Vue.prototype.__call_hook = function(hook, args) {
  10727. var vm = this;
  10728. // #7573 disable dep collection when invoking lifecycle hooks
  10729. pushTarget();
  10730. var handlers = vm.$options[hook];
  10731. var info = hook + " hook";
  10732. var ret;
  10733. if (handlers) {
  10734. for (var i = 0, j = handlers.length; i < j; i++) {
  10735. ret = invokeWithErrorHandling(handlers[i], vm, args ? [args] : null, vm, info);
  10736. }
  10737. }
  10738. if (vm._hasHookEvent) {
  10739. vm.$emit('hook:' + hook, args);
  10740. }
  10741. popTarget();
  10742. return ret
  10743. };
  10744. Vue.prototype.__set_model = function(target, key, value, modifiers) {
  10745. if (Array.isArray(modifiers)) {
  10746. if (modifiers.indexOf('trim') !== -1) {
  10747. value = value.trim();
  10748. }
  10749. if (modifiers.indexOf('number') !== -1) {
  10750. value = this._n(value);
  10751. }
  10752. }
  10753. if (!target) {
  10754. target = this;
  10755. }
  10756. // 解决动态属性添加
  10757. Vue.set(target, key, value);
  10758. };
  10759. Vue.prototype.__set_sync = function(target, key, value) {
  10760. if (!target) {
  10761. target = this;
  10762. }
  10763. // 解决动态属性添加
  10764. Vue.set(target, key, value);
  10765. };
  10766. Vue.prototype.__get_orig = function(item) {
  10767. if (isPlainObject(item)) {
  10768. return item['$orig'] || item
  10769. }
  10770. return item
  10771. };
  10772. Vue.prototype.__get_value = function(dataPath, target) {
  10773. return getTarget(target || this, dataPath)
  10774. };
  10775. Vue.prototype.__get_class = function(dynamicClass, staticClass) {
  10776. return renderClass(staticClass, dynamicClass)
  10777. };
  10778. Vue.prototype.__get_style = function(dynamicStyle, staticStyle) {
  10779. if (!dynamicStyle && !staticStyle) {
  10780. return ''
  10781. }
  10782. var dynamicStyleObj = normalizeStyleBinding(dynamicStyle);
  10783. var styleObj = staticStyle ? extend(staticStyle, dynamicStyleObj) : dynamicStyleObj;
  10784. return Object.keys(styleObj).map(function (name) { return ((hyphenate(name)) + ":" + (styleObj[name])); }).join(';')
  10785. };
  10786. Vue.prototype.__map = function(val, iteratee) {
  10787. //TODO 暂不考虑 string
  10788. var ret, i, l, keys, key;
  10789. if (Array.isArray(val)) {
  10790. ret = new Array(val.length);
  10791. for (i = 0, l = val.length; i < l; i++) {
  10792. ret[i] = iteratee(val[i], i);
  10793. }
  10794. return ret
  10795. } else if (isObject(val)) {
  10796. keys = Object.keys(val);
  10797. ret = Object.create(null);
  10798. for (i = 0, l = keys.length; i < l; i++) {
  10799. key = keys[i];
  10800. ret[key] = iteratee(val[key], key, i);
  10801. }
  10802. return ret
  10803. } else if (typeof val === 'number') {
  10804. ret = new Array(val);
  10805. for (i = 0, l = val; i < l; i++) {
  10806. // 第一个参数暂时仍和小程序一致
  10807. ret[i] = iteratee(i, i);
  10808. }
  10809. return ret
  10810. }
  10811. return []
  10812. };
  10813. }
  10814. /* */
  10815. var LIFECYCLE_HOOKS$1 = [
  10816. //App
  10817. 'onLaunch',
  10818. 'onShow',
  10819. 'onHide',
  10820. 'onUniNViewMessage',
  10821. 'onPageNotFound',
  10822. 'onThemeChange',
  10823. 'onError',
  10824. 'onUnhandledRejection',
  10825. //Page
  10826. 'onInit',
  10827. 'onLoad',
  10828. // 'onShow',
  10829. 'onReady',
  10830. // 'onHide',
  10831. 'onUnload',
  10832. 'onPullDownRefresh',
  10833. 'onReachBottom',
  10834. 'onTabItemTap',
  10835. 'onAddToFavorites',
  10836. 'onShareTimeline',
  10837. 'onShareAppMessage',
  10838. 'onResize',
  10839. 'onPageScroll',
  10840. 'onNavigationBarButtonTap',
  10841. 'onBackPress',
  10842. 'onNavigationBarSearchInputChanged',
  10843. 'onNavigationBarSearchInputConfirmed',
  10844. 'onNavigationBarSearchInputClicked',
  10845. 'onUploadDouyinVideo',
  10846. 'onNFCReadMessage',
  10847. //Component
  10848. // 'onReady', // 兼容旧版本,应该移除该事件
  10849. 'onPageShow',
  10850. 'onPageHide',
  10851. 'onPageResize'
  10852. ];
  10853. function lifecycleMixin$1(Vue) {
  10854. //fixed vue-class-component
  10855. var oldExtend = Vue.extend;
  10856. Vue.extend = function(extendOptions) {
  10857. extendOptions = extendOptions || {};
  10858. var methods = extendOptions.methods;
  10859. if (methods) {
  10860. Object.keys(methods).forEach(function (methodName) {
  10861. if (LIFECYCLE_HOOKS$1.indexOf(methodName)!==-1) {
  10862. extendOptions[methodName] = methods[methodName];
  10863. delete methods[methodName];
  10864. }
  10865. });
  10866. }
  10867. return oldExtend.call(this, extendOptions)
  10868. };
  10869. var strategies = Vue.config.optionMergeStrategies;
  10870. var mergeHook = strategies.created;
  10871. LIFECYCLE_HOOKS$1.forEach(function (hook) {
  10872. strategies[hook] = mergeHook;
  10873. });
  10874. Vue.prototype.__lifecycle_hooks__ = LIFECYCLE_HOOKS$1;
  10875. }
  10876. /* */
  10877. // install platform patch function
  10878. Vue.prototype.__patch__ = patch;
  10879. // public mount method
  10880. Vue.prototype.$mount = function(
  10881. el ,
  10882. hydrating
  10883. ) {
  10884. return mountComponent$1(this, el, hydrating)
  10885. };
  10886. lifecycleMixin$1(Vue);
  10887. internalMixin(Vue);
  10888. /* */
  10889. /* harmony default export */ __webpack_exports__["default"] = (Vue);
  10890. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../../../../../webpack/buildin/global.js */ 3)))
  10891. /***/ }),
  10892. /***/ 26:
  10893. /*!****************************************************!*\
  10894. !*** /Users/chenpengming/代码/product_wx/pages.json ***!
  10895. \****************************************************/
  10896. /*! no static exports found */
  10897. /***/ (function(module, exports) {
  10898. /***/ }),
  10899. /***/ 27:
  10900. /*!*******************************************************************!*\
  10901. !*** ./node_modules/@dcloudio/uni-stat/dist/uni-cloud-stat.es.js ***!
  10902. \*******************************************************************/
  10903. /*! no static exports found */
  10904. /***/ (function(module, exports, __webpack_require__) {
  10905. /* WEBPACK VAR INJECTION */(function(uni, uniCloud) {var _inherits = __webpack_require__(/*! @babel/runtime/helpers/inherits */ 33);
  10906. var _possibleConstructorReturn = __webpack_require__(/*! @babel/runtime/helpers/possibleConstructorReturn */ 34);
  10907. var _getPrototypeOf = __webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ 35);
  10908. var _classCallCheck = __webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ 23);
  10909. var _createClass = __webpack_require__(/*! @babel/runtime/helpers/createClass */ 24);
  10910. var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  10911. var _defineProperty = __webpack_require__(/*! @babel/runtime/helpers/defineProperty */ 11);
  10912. var _sys$system$replace, _sys$system;
  10913. function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
  10914. function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
  10915. /**
  10916. * 获取系统信息
  10917. */
  10918. var sys = uni.getSystemInfoSync();
  10919. // 访问开始即启动小程序,访问结束结分为:进入后台超过5min、在前台无任何操作超过30min、在新的来源打开小程序;
  10920. var STAT_VERSION = "4.81";
  10921. var STAT_URL = 'https://tongji.dcloud.io/uni/stat';
  10922. var STAT_H5_URL = 'https://tongji.dcloud.io/uni/stat.gif';
  10923. var PAGE_PVER_TIME = 1800; // 页面在前台无操作结束访问时间 单位s
  10924. var APP_PVER_TIME = 300; // 应用在后台结束访问时间 单位s
  10925. var OPERATING_TIME = 10; // 数据上报时间 单位s
  10926. var DIFF_TIME = 60 * 1000 * 60 * 24;
  10927. var appid = "__UNI__E97C301"; // 做应用隔离
  10928. var dbSet = function dbSet(name, value) {
  10929. var data = uni.getStorageSync('$$STAT__DBDATA:' + appid) || {};
  10930. if (!data) {
  10931. data = {};
  10932. }
  10933. data[name] = value;
  10934. uni.setStorageSync('$$STAT__DBDATA:' + appid, data);
  10935. };
  10936. var dbGet = function dbGet(name) {
  10937. var data = uni.getStorageSync('$$STAT__DBDATA:' + appid) || {};
  10938. if (!data[name]) {
  10939. var dbdata = uni.getStorageSync('$$STAT__DBDATA:' + appid);
  10940. if (!dbdata) {
  10941. dbdata = {};
  10942. }
  10943. if (!dbdata[name]) {
  10944. return undefined;
  10945. }
  10946. data[name] = dbdata[name];
  10947. }
  10948. return data[name];
  10949. };
  10950. var dbRemove = function dbRemove(name) {
  10951. var data = uni.getStorageSync('$$STAT__DBDATA:' + appid) || {};
  10952. if (data[name]) {
  10953. delete data[name];
  10954. uni.setStorageSync('$$STAT__DBDATA:' + appid, data);
  10955. } else {
  10956. data = uni.getStorageSync('$$STAT__DBDATA:' + appid);
  10957. if (data[name]) {
  10958. delete data[name];
  10959. uni.setStorageSync('$$STAT__DBDATA:' + appid, data);
  10960. }
  10961. }
  10962. };
  10963. // 获取 manifest.json 中统计配置
  10964. var uniStatisticsConfig = {"version":"2","enable":true};
  10965. var statConfig = {
  10966. appid: "__UNI__E97C301"
  10967. };
  10968. var titleJsons = {};
  10969. var debug = false || false;
  10970. // eslint-disable-next-line no-restricted-globals
  10971. var pagesTitle = __webpack_require__(/*! uni-pages?{"type":"style"} */ 40).default;
  10972. var pagesData = pagesTitle.pages;
  10973. for (var i in pagesData) {
  10974. var _style$navigationBar;
  10975. var style = pagesData[i];
  10976. var titleText =
  10977. // MP
  10978. style.navigationBarTitleText ||
  10979. // ali
  10980. style.defaultTitle || ( // H5 || App
  10981. (_style$navigationBar = style.navigationBar) === null || _style$navigationBar === void 0 ? void 0 : _style$navigationBar.titleText) || '';
  10982. if (titleText) {
  10983. titleJsons[i] = titleText;
  10984. }
  10985. }
  10986. // TODO 在云函数中获取,暂时注释
  10987. var UUID_KEY = '__DC_STAT_UUID';
  10988. var UUID_VALUE = '__DC_UUID_VALUE';
  10989. function getUuid() {
  10990. var uuid = '';
  10991. if (get_platform_name() === 'n') {
  10992. try {
  10993. uuid = plus.runtime.getDCloudId();
  10994. } catch (e) {
  10995. uuid = '';
  10996. }
  10997. return uuid;
  10998. }
  10999. try {
  11000. uuid = uni.getStorageSync(UUID_KEY);
  11001. } catch (e) {
  11002. uuid = UUID_VALUE;
  11003. }
  11004. if (!uuid) {
  11005. uuid = Date.now() + '' + Math.floor(Math.random() * 1e7);
  11006. try {
  11007. uni.setStorageSync(UUID_KEY, uuid);
  11008. } catch (e) {
  11009. uni.setStorageSync(UUID_KEY, UUID_VALUE);
  11010. }
  11011. }
  11012. return uuid;
  11013. }
  11014. var get_uuid = function get_uuid(statData) {
  11015. // 有可能不存在 deviceId(一般不存在就是出bug了),就自己生成一个
  11016. return sys.deviceId || getUuid();
  11017. };
  11018. /**
  11019. * 获取老版的 deviceid ,兼容以前的错误 deviceid
  11020. * @param {*} statData
  11021. * @returns
  11022. */
  11023. var get_odid = function get_odid(statData) {
  11024. var odid = '';
  11025. if (get_platform_name() === 'n') {
  11026. try {
  11027. odid = plus.device.uuid;
  11028. } catch (e) {
  11029. odid = '';
  11030. }
  11031. return odid;
  11032. }
  11033. return sys.deviceId || getUuid();
  11034. };
  11035. /**
  11036. * 获取配置信息 如 appid
  11037. */
  11038. var stat_config = statConfig;
  11039. var get_sgin = function get_sgin(statData) {
  11040. var arr = Object.keys(statData);
  11041. var sortArr = arr.sort();
  11042. var sgin = {};
  11043. var sginStr = '';
  11044. for (var i in sortArr) {
  11045. sgin[sortArr[i]] = statData[sortArr[i]];
  11046. sginStr += sortArr[i] + '=' + statData[sortArr[i]] + '&';
  11047. }
  11048. return {
  11049. sign: '',
  11050. options: sginStr.substr(0, sginStr.length - 1)
  11051. };
  11052. };
  11053. var get_encodeURIComponent_options = function get_encodeURIComponent_options(statData) {
  11054. var data = {};
  11055. for (var prop in statData) {
  11056. data[prop] = encodeURIComponent(statData[prop]);
  11057. }
  11058. return data;
  11059. };
  11060. /**
  11061. * 获取当前平台
  11062. * 移动端 : 'n',
  11063. * h5 : 'h5',
  11064. * 微信 : 'wx',
  11065. * 阿里 : 'ali',
  11066. * 百度 : 'bd',
  11067. * 头条 : 'tt',
  11068. * qq : 'qq',
  11069. * 快应用 : 'qn',
  11070. * 快手 : 'ks',
  11071. * 飞书 : 'lark',
  11072. * 快应用 : 'qw',
  11073. * 钉钉 : 'dt'
  11074. */
  11075. var get_platform_name = function get_platform_name() {
  11076. var _platformList;
  11077. // 苹果审核代码中禁止出现 alipay 字样 ,需要特殊处理一下
  11078. var aliArr = ['y', 'a', 'p', 'mp-ali'];
  11079. var platformList = (_platformList = {
  11080. app: 'n',
  11081. 'app-plus': 'n',
  11082. h5: 'h5',
  11083. 'mp-weixin': 'wx'
  11084. }, _defineProperty(_platformList, aliArr.reverse().join(''), 'ali'), _defineProperty(_platformList, 'mp-baidu', 'bd'), _defineProperty(_platformList, 'mp-toutiao', 'tt'), _defineProperty(_platformList, 'mp-qq', 'qq'), _defineProperty(_platformList, 'quickapp-native', 'qn'), _defineProperty(_platformList, 'mp-kuaishou', 'ks'), _defineProperty(_platformList, 'mp-lark', 'lark'), _defineProperty(_platformList, 'quickapp-webview', 'qw'), _platformList);
  11085. if (platformList["mp-weixin"] === 'ali') {
  11086. if (my && my.env) {
  11087. var clientName = my.env.clientName;
  11088. if (clientName === 'ap') return 'ali';
  11089. if (clientName === 'dingtalk') return 'dt';
  11090. // TODO 缺少 ali 下的其他平台
  11091. }
  11092. }
  11093. return platformList["mp-weixin"];
  11094. };
  11095. /**
  11096. * 获取小程序 appid
  11097. */
  11098. var get_pack_name = function get_pack_name() {
  11099. var packName = '';
  11100. if (get_platform_name() === 'wx' || get_platform_name() === 'qq') {
  11101. // 兼容微信小程序低版本基础库
  11102. if (uni.canIUse('getAccountInfoSync')) {
  11103. packName = uni.getAccountInfoSync().miniProgram.appId || '';
  11104. }
  11105. }
  11106. if (get_platform_name() === 'n') ;
  11107. return packName;
  11108. };
  11109. /**
  11110. * 应用版本
  11111. */
  11112. var get_version = function get_version() {
  11113. return get_platform_name() === 'n' ? plus.runtime.version : '';
  11114. };
  11115. /**
  11116. * 获取渠道
  11117. */
  11118. var get_channel = function get_channel() {
  11119. var platformName = get_platform_name();
  11120. var channel = '';
  11121. if (platformName === 'n') {
  11122. channel = plus.runtime.channel;
  11123. }
  11124. return channel;
  11125. };
  11126. /**
  11127. * 获取小程序场景值
  11128. * @param {Object} options 页面信息
  11129. */
  11130. var get_scene = function get_scene(options) {
  11131. var platformName = get_platform_name();
  11132. var scene = '';
  11133. if (options) {
  11134. return options;
  11135. }
  11136. if (platformName === 'wx') {
  11137. scene = uni.getLaunchOptionsSync().scene;
  11138. }
  11139. return scene;
  11140. };
  11141. /**
  11142. * 获取页面url,不包含参数
  11143. */
  11144. var get_route$1 = function get_route$1(pageVm) {
  11145. var _self = pageVm || get_page_vm();
  11146. if (get_platform_name() === 'bd') {
  11147. var mp_route = _self.$mp && _self.$mp.page && _self.$mp.page.is;
  11148. var scope_route = _self.$scope && _self.$scope.is;
  11149. return mp_route || scope_route || '';
  11150. } else {
  11151. return _self.route || _self.$scope && _self.$scope.route || _self.$mp && _self.$mp.page.route;
  11152. }
  11153. };
  11154. /**
  11155. * 获取页面url, 包含参数
  11156. */
  11157. var get_page_route = function get_page_route(pageVm) {
  11158. // 从 app 进入应用 ,没有 $page ,获取不到路由 ,需要获取页面 尝试从 getCurrentPages 获取也页面实例
  11159. // FIXME 尽量不使用 getCurrentPages ,大部分获取路由是从 onHide 获取 ,这时可以获取到,如果是 onload ,则可能获取不到,比如 百度
  11160. var page = pageVm && (pageVm.$page || pageVm.$scope && pageVm.$scope.$page);
  11161. var lastPageRoute = uni.getStorageSync('_STAT_LAST_PAGE_ROUTE');
  11162. if (!page) return lastPageRoute || '';
  11163. // 如果找不到 fullPath 就取 route 的值
  11164. return page.fullPath === '/' ? page.route : page.fullPath || page.route;
  11165. };
  11166. /**
  11167. * 获取页面实例
  11168. */
  11169. var get_page_vm = function get_page_vm() {
  11170. var pages = getCurrentPages();
  11171. var $page = pages[pages.length - 1];
  11172. if (!$page) return null;
  11173. return $page.$vm;
  11174. };
  11175. /**
  11176. * 获取页面类型
  11177. */
  11178. var get_page_types = function get_page_types(self) {
  11179. // XXX 百度有问题 ,获取的都是 componet ,等待修复
  11180. if (self.mpType === 'page' || self.$mpType === 'page' || self.$mp && self.$mp.mpType === 'page' || self.$options.mpType === 'page') {
  11181. return 'page';
  11182. }
  11183. if (self.mpType === 'app' || self.$mpType === 'app' || self.$mp && self.$mp.mpType === 'app' || self.$options.mpType === 'app') {
  11184. return 'app';
  11185. }
  11186. return null;
  11187. };
  11188. /**
  11189. * 处理上报参数
  11190. * @param {Object} 需要处理的数据
  11191. */
  11192. var handle_data = function handle_data(statData) {
  11193. var firstArr = [];
  11194. var contentArr = [];
  11195. var lastArr = [];
  11196. var _loop = function _loop(_i) {
  11197. var rd = statData[_i];
  11198. rd.forEach(function (elm) {
  11199. var newData = '';
  11200. {
  11201. newData = elm;
  11202. }
  11203. if (_i === 0) {
  11204. firstArr.push(newData);
  11205. } else if (_i === 3) {
  11206. lastArr.push(newData);
  11207. } else {
  11208. contentArr.push(newData);
  11209. }
  11210. });
  11211. };
  11212. for (var _i in statData) {
  11213. _loop(_i);
  11214. }
  11215. firstArr.push.apply(firstArr, contentArr.concat(lastArr));
  11216. // 参数需要处理成字符串,方便上传
  11217. return JSON.stringify(firstArr);
  11218. };
  11219. /**
  11220. * 自定义事件参数校验
  11221. */
  11222. var calibration = function calibration(eventName, options) {
  11223. // login 、 share 、pay_success 、pay_fail 、register 、title
  11224. if (!eventName) {
  11225. console.error("uni.report Missing [eventName] parameter");
  11226. return true;
  11227. }
  11228. if (typeof eventName !== 'string') {
  11229. console.error("uni.report [eventName] Parameter type error, it can only be of type String");
  11230. return true;
  11231. }
  11232. if (eventName.length > 255) {
  11233. console.error("uni.report [eventName] Parameter length cannot be greater than 255");
  11234. return true;
  11235. }
  11236. if (typeof options !== 'string' && _typeof(options) !== 'object') {
  11237. console.error('uni.report [options] Parameter type error, Only supports String or Object type');
  11238. return true;
  11239. }
  11240. if (typeof options === 'string' && options.length > 255) {
  11241. console.error("uni.report [options] Parameter length cannot be greater than 255");
  11242. return true;
  11243. }
  11244. if (eventName === 'title' && typeof options !== 'string') {
  11245. console.error("uni.report [eventName] When the parameter is title, the [options] parameter can only be of type String");
  11246. return true;
  11247. }
  11248. };
  11249. var get_page_name = function get_page_name(routepath) {
  11250. return titleJsons && titleJsons[routepath] || '';
  11251. };
  11252. var Report_Data_Time = 'Report_Data_Time';
  11253. var Report_Status = 'Report_Status';
  11254. var is_report_data = function is_report_data() {
  11255. return new Promise(function (resolve, reject) {
  11256. var start_time = '';
  11257. var end_time = new Date().getTime();
  11258. var diff_time = DIFF_TIME;
  11259. var report_status = 1;
  11260. try {
  11261. start_time = uni.getStorageSync(Report_Data_Time);
  11262. report_status = uni.getStorageSync(Report_Status);
  11263. } catch (e) {
  11264. start_time = '';
  11265. report_status = 1;
  11266. }
  11267. if (report_status === '') {
  11268. requestData(function (_ref) {
  11269. var enable = _ref.enable;
  11270. uni.setStorageSync(Report_Data_Time, end_time);
  11271. uni.setStorageSync(Report_Status, enable);
  11272. if (enable === 1) {
  11273. resolve();
  11274. }
  11275. });
  11276. return;
  11277. }
  11278. if (report_status === 1) {
  11279. resolve();
  11280. }
  11281. if (!start_time) {
  11282. uni.setStorageSync(Report_Data_Time, end_time);
  11283. start_time = end_time;
  11284. }
  11285. if (end_time - start_time > diff_time) {
  11286. requestData(function (_ref2) {
  11287. var enable = _ref2.enable;
  11288. uni.setStorageSync(Report_Data_Time, end_time);
  11289. uni.setStorageSync(Report_Status, enable);
  11290. });
  11291. }
  11292. });
  11293. };
  11294. var requestData = function requestData(done) {
  11295. var appid = "__UNI__E97C301";
  11296. var formData = {
  11297. usv: STAT_VERSION,
  11298. conf: JSON.stringify({
  11299. ak: appid
  11300. })
  11301. };
  11302. uni.request({
  11303. url: STAT_URL,
  11304. method: 'GET',
  11305. data: formData,
  11306. success: function success(res) {
  11307. var data = res.data;
  11308. if (data.ret === 0) {
  11309. typeof done === 'function' && done({
  11310. enable: data.enable
  11311. });
  11312. }
  11313. },
  11314. fail: function fail(e) {
  11315. var report_status_code = 1;
  11316. try {
  11317. report_status_code = uni.getStorageSync(Report_Status);
  11318. } catch (e) {
  11319. report_status_code = 1;
  11320. }
  11321. if (report_status_code === '') {
  11322. report_status_code = 1;
  11323. }
  11324. typeof done === 'function' && done({
  11325. enable: report_status_code
  11326. });
  11327. }
  11328. });
  11329. };
  11330. /**
  11331. * 获取uniCloud服务空间配置
  11332. * @returns {Object}
  11333. */
  11334. var uni_cloud_config = function uni_cloud_config() {
  11335. return {} || {};
  11336. };
  11337. /**
  11338. * 获取服务空间
  11339. * @param {*} config
  11340. * @returns
  11341. */
  11342. var get_space = function get_space(config) {
  11343. var uniCloudConfig = uni_cloud_config();
  11344. var spaceId = uniCloudConfig.spaceId,
  11345. provider = uniCloudConfig.provider,
  11346. clientSecret = uniCloudConfig.clientSecret,
  11347. secretKey = uniCloudConfig.secretKey,
  11348. secretId = uniCloudConfig.secretId;
  11349. var space_type = ['tcb', 'tencent', 'aliyun', 'alipay'];
  11350. var is_provider = space_type.indexOf(provider) !== -1;
  11351. var is_aliyun = provider === 'aliyun' && spaceId && clientSecret;
  11352. var is_tcb = (provider === 'tcb' || provider === 'tencent') && spaceId;
  11353. var is_alipay = provider === 'alipay' && spaceId && secretKey && secretId;
  11354. if (is_provider && (is_aliyun || is_tcb || is_alipay)) {
  11355. return uniCloudConfig;
  11356. } else {
  11357. if (config && config.spaceId) {
  11358. return config;
  11359. }
  11360. }
  11361. return null;
  11362. };
  11363. /**
  11364. * 是否开启 debug 模式
  11365. */
  11366. var is_debug = debug;
  11367. /**
  11368. * 日志输出
  11369. * @param {*} data
  11370. */
  11371. var log = function log(data, type) {
  11372. var msg_type = '';
  11373. switch (data.lt) {
  11374. case '1':
  11375. msg_type = '应用启动';
  11376. break;
  11377. case '3':
  11378. msg_type = '应用进入后台';
  11379. break;
  11380. case '11':
  11381. msg_type = '页面切换';
  11382. break;
  11383. case '21':
  11384. msg_type = '事件触发';
  11385. break;
  11386. case '31':
  11387. msg_type = '应用错误';
  11388. break;
  11389. case '101':
  11390. msg_type = 'PUSH';
  11391. break;
  11392. }
  11393. if (type) {
  11394. console.log("=== \u7EDF\u8BA1\u961F\u5217\u6570\u636E\u4E0A\u62A5 ===");
  11395. console.log(data);
  11396. console.log("=== \u4E0A\u62A5\u7ED3\u675F ===");
  11397. return;
  11398. }
  11399. if (msg_type) {
  11400. console.log("=== \u7EDF\u8BA1\u6570\u636E\u91C7\u96C6\uFF1A".concat(msg_type, " ==="));
  11401. console.log(data);
  11402. console.log("=== \u91C7\u96C6\u7ED3\u675F ===");
  11403. }
  11404. };
  11405. /**
  11406. * 获取上报时间间隔
  11407. * @param {*} defaultTime 默认上报间隔时间 单位s
  11408. */
  11409. var get_report_Interval = function get_report_Interval(defaultTime) {
  11410. var time = uniStatisticsConfig.reportInterval;
  11411. // 如果上报时间配置为0 相当于立即上报
  11412. if (Number(time) === 0) return 0;
  11413. time = time || defaultTime;
  11414. var reg = /(^[1-9]\d*$)/;
  11415. // 如果不是整数,则默认为上报间隔时间
  11416. if (!reg.test(time)) return defaultTime;
  11417. return Number(time);
  11418. };
  11419. /**
  11420. * 获取隐私协议配置
  11421. */
  11422. var is_push_clientid = function is_push_clientid() {
  11423. if (uniStatisticsConfig.collectItems) {
  11424. var ClientID = uniStatisticsConfig.collectItems.uniPushClientID;
  11425. return typeof ClientID === 'boolean' ? ClientID : false;
  11426. }
  11427. return false;
  11428. };
  11429. /**
  11430. * 是否上报页面数据
  11431. * @returns
  11432. */
  11433. var is_page_report = function is_page_report() {
  11434. if (uniStatisticsConfig.collectItems) {
  11435. var statPageLog = uniStatisticsConfig.collectItems.uniStatPageLog;
  11436. // 如果字段不存在返回 true , 如果是boolean 值按原值返回,如果是其他类型 返回false
  11437. if (statPageLog === undefined) return true;
  11438. return typeof statPageLog === 'boolean' ? statPageLog : true;
  11439. }
  11440. return true;
  11441. };
  11442. /**
  11443. * 是否已处理设备 DeviceId
  11444. * 如果值为 1 则表示已处理
  11445. */
  11446. var IS_HANDLE_DEVECE_ID = 'is_handle_device_id';
  11447. var is_handle_device = function is_handle_device() {
  11448. var isHandleDevice = dbGet(IS_HANDLE_DEVECE_ID) || '';
  11449. dbSet(IS_HANDLE_DEVECE_ID, '1');
  11450. return isHandleDevice === '1';
  11451. };
  11452. // 首次访问时间
  11453. var FIRST_VISIT_TIME_KEY = '__first__visit__time';
  11454. // 最后访问时间
  11455. var LAST_VISIT_TIME_KEY = '__last__visit__time';
  11456. /**
  11457. * 获取当前时间
  11458. */
  11459. var get_time = function get_time() {
  11460. return parseInt(new Date().getTime() / 1000);
  11461. };
  11462. /**
  11463. * 获取首次访问时间
  11464. */
  11465. var get_first_visit_time = function get_first_visit_time() {
  11466. var timeStorge = dbGet(FIRST_VISIT_TIME_KEY);
  11467. var time = 0;
  11468. if (timeStorge) {
  11469. time = timeStorge;
  11470. } else {
  11471. time = get_time();
  11472. dbSet(FIRST_VISIT_TIME_KEY, time);
  11473. // 首次访问需要 将最后访问时间置 0
  11474. dbRemove(LAST_VISIT_TIME_KEY);
  11475. }
  11476. return time;
  11477. };
  11478. /**
  11479. * 最后访问时间
  11480. */
  11481. var get_last_visit_time = function get_last_visit_time() {
  11482. var timeStorge = dbGet(LAST_VISIT_TIME_KEY);
  11483. var time = 0;
  11484. if (timeStorge) {
  11485. time = timeStorge;
  11486. }
  11487. dbSet(LAST_VISIT_TIME_KEY, get_time());
  11488. return time;
  11489. };
  11490. // 页面停留时间记录key
  11491. var PAGE_RESIDENCE_TIME = '__page__residence__time';
  11492. var First_Page_Residence_Time = 0;
  11493. var Last_Page_Residence_Time = 0;
  11494. /**
  11495. * 设置页面停留时间
  11496. */
  11497. var set_page_residence_time = function set_page_residence_time() {
  11498. First_Page_Residence_Time = get_time();
  11499. dbSet(PAGE_RESIDENCE_TIME, First_Page_Residence_Time);
  11500. return First_Page_Residence_Time;
  11501. };
  11502. /**
  11503. * 获取页面停留时间
  11504. */
  11505. var get_page_residence_time = function get_page_residence_time() {
  11506. Last_Page_Residence_Time = get_time();
  11507. First_Page_Residence_Time = dbGet(PAGE_RESIDENCE_TIME);
  11508. return Last_Page_Residence_Time - First_Page_Residence_Time;
  11509. };
  11510. /**
  11511. * 获取总访问次数
  11512. */
  11513. var TOTAL_VISIT_COUNT = '__total__visit__count';
  11514. var get_total_visit_count = function get_total_visit_count() {
  11515. var timeStorge = dbGet(TOTAL_VISIT_COUNT);
  11516. var count = 1;
  11517. if (timeStorge) {
  11518. count = timeStorge;
  11519. count++;
  11520. }
  11521. dbSet(TOTAL_VISIT_COUNT, count);
  11522. return count;
  11523. };
  11524. var FIRST_TIME = '__first_time';
  11525. /**
  11526. * 设置页面首次访问时间,用户获取页面/应用停留时常
  11527. */
  11528. var set_first_time = function set_first_time() {
  11529. // 获取当前时间 ,以下代码获取到是毫秒级时间戳 ,实际上用到是秒级时间戳,所以需要除以1000
  11530. // const time = new Date().getTime()
  11531. var time = get_time();
  11532. var timeStorge = dbSet(FIRST_TIME, time);
  11533. return timeStorge;
  11534. };
  11535. /**
  11536. * 获取最后一次时间 ,暂时用不到,直接获取当前时间即可
  11537. */
  11538. // export const get_last_time = () => {
  11539. // let time = new Date().getTime()
  11540. // Set__Last__Time = time
  11541. // return time
  11542. // }
  11543. /**
  11544. * 获取页面 \ 应用停留时间
  11545. */
  11546. var get_residence_time = function get_residence_time(type) {
  11547. var residenceTime = 0;
  11548. var first_time = dbGet(FIRST_TIME);
  11549. var last_time = get_time();
  11550. if (first_time !== 0) {
  11551. residenceTime = last_time - first_time;
  11552. }
  11553. // 将毫秒级时间戳转换为秒级时间戳,因为直接获取的是秒级时间戳,所以不需要转换
  11554. // residenceTime = parseInt(residenceTime / 1000)
  11555. residenceTime = residenceTime < 1 ? 1 : residenceTime;
  11556. if (type === 'app') {
  11557. var overtime = residenceTime > APP_PVER_TIME ? true : false;
  11558. return {
  11559. residenceTime: residenceTime,
  11560. overtime: overtime
  11561. };
  11562. }
  11563. if (type === 'page') {
  11564. var _overtime = residenceTime > PAGE_PVER_TIME ? true : false;
  11565. return {
  11566. residenceTime: residenceTime,
  11567. overtime: _overtime
  11568. };
  11569. }
  11570. return {
  11571. residenceTime: residenceTime
  11572. };
  11573. };
  11574. var eport_Interval = get_report_Interval(OPERATING_TIME);
  11575. // 统计数据默认值
  11576. var statData = {
  11577. uuid: get_uuid(),
  11578. // 设备标识
  11579. ak: stat_config.appid,
  11580. // uni-app 应用 Appid
  11581. p: sys.platform === 'android' ? 'a' : 'i',
  11582. // 手机系统
  11583. ut: get_platform_name(),
  11584. // 平台类型
  11585. mpn: get_pack_name(),
  11586. // 原生平台包名、小程序 appid
  11587. usv: STAT_VERSION,
  11588. // 统计 sdk 版本
  11589. v: get_version(),
  11590. // 应用版本,仅app
  11591. ch: get_channel(),
  11592. // 渠道信息
  11593. cn: '',
  11594. // 国家
  11595. pn: '',
  11596. // 省份
  11597. ct: '',
  11598. // 城市
  11599. t: get_time(),
  11600. // 上报数据时的时间戳
  11601. tt: '',
  11602. brand: sys.brand || '',
  11603. // 手机品牌
  11604. md: sys.model,
  11605. // 手机型号
  11606. sv: (_sys$system$replace = (_sys$system = sys.system) === null || _sys$system === void 0 ? void 0 : _sys$system.replace(/(Android|iOS)\s/, '')) !== null && _sys$system$replace !== void 0 ? _sys$system$replace : '',
  11607. // 手机系统版本
  11608. mpsdk: sys.SDKVersion || '',
  11609. // x程序 sdk version
  11610. mpv: sys.version || '',
  11611. // 小程序平台版本 ,如微信、支付宝
  11612. lang: sys.language,
  11613. // 语言
  11614. pr: sys.pixelRatio,
  11615. // pixelRatio 设备像素比
  11616. ww: sys.windowWidth,
  11617. // windowWidth 可使用窗口宽度
  11618. wh: sys.windowHeight,
  11619. // windowHeight 可使用窗口高度
  11620. sw: sys.screenWidth,
  11621. // screenWidth 屏幕宽度
  11622. sh: sys.screenHeight // screenHeight 屏幕高度
  11623. };
  11624. var Report = /*#__PURE__*/function () {
  11625. "use strict";
  11626. function Report() {
  11627. _classCallCheck(this, Report);
  11628. // 页面实例
  11629. this.self = '';
  11630. // 进入应用标识
  11631. this.__licationShow = false;
  11632. // 离开应用标识
  11633. this.__licationHide = false;
  11634. // 统计默认值
  11635. this.statData = statData;
  11636. // 标题默认值
  11637. this._navigationBarTitle = {
  11638. config: '',
  11639. page: '',
  11640. report: '',
  11641. lt: ''
  11642. };
  11643. // 页面参数
  11644. this._query = {};
  11645. // 页面最后停留页面的 url
  11646. // this._lastPageRoute = ''
  11647. // 注册拦截器
  11648. var registerInterceptor = typeof uni.addInterceptor === 'function';
  11649. if (registerInterceptor) {
  11650. this.addInterceptorInit();
  11651. this.interceptLogin();
  11652. this.interceptShare(true);
  11653. this.interceptRequestPayment();
  11654. }
  11655. }
  11656. _createClass(Report, [{
  11657. key: "addInterceptorInit",
  11658. value: function addInterceptorInit() {
  11659. var self = this;
  11660. uni.addInterceptor('setNavigationBarTitle', {
  11661. invoke: function invoke(args) {
  11662. self._navigationBarTitle.page = args.title;
  11663. }
  11664. });
  11665. }
  11666. }, {
  11667. key: "interceptLogin",
  11668. value: function interceptLogin() {
  11669. var self = this;
  11670. uni.addInterceptor('login', {
  11671. complete: function complete() {
  11672. self._login();
  11673. }
  11674. });
  11675. }
  11676. }, {
  11677. key: "interceptShare",
  11678. value: function interceptShare(type) {
  11679. var self = this;
  11680. if (!type) {
  11681. self._share();
  11682. return;
  11683. }
  11684. uni.addInterceptor('share', {
  11685. success: function success() {
  11686. self._share();
  11687. },
  11688. fail: function fail() {
  11689. self._share();
  11690. }
  11691. });
  11692. }
  11693. }, {
  11694. key: "interceptRequestPayment",
  11695. value: function interceptRequestPayment() {
  11696. var self = this;
  11697. uni.addInterceptor('requestPayment', {
  11698. success: function success() {
  11699. self._payment('pay_success');
  11700. },
  11701. fail: function fail() {
  11702. self._payment('pay_fail');
  11703. }
  11704. });
  11705. }
  11706. }, {
  11707. key: "_login",
  11708. value: function _login() {
  11709. this.sendEventRequest({
  11710. key: 'login'
  11711. }, 0);
  11712. }
  11713. }, {
  11714. key: "_share",
  11715. value: function _share() {
  11716. this.sendEventRequest({
  11717. key: 'share'
  11718. }, 0);
  11719. }
  11720. }, {
  11721. key: "_payment",
  11722. value: function _payment(key) {
  11723. this.sendEventRequest({
  11724. key: key
  11725. }, 0);
  11726. }
  11727. /**
  11728. * 进入应用触发
  11729. */
  11730. }, {
  11731. key: "applicationShow",
  11732. value: function applicationShow() {
  11733. // 通过 __licationHide 判断保证是进入后台后在次进入应用,避免重复上报数据
  11734. if (this.__licationHide) {
  11735. var time = get_residence_time('app');
  11736. // 需要判断进入后台是否超过时限 ,默认是 30min ,是的话需要执行进入应用的上报
  11737. if (time.overtime) {
  11738. var lastPageRoute = uni.getStorageSync('_STAT_LAST_PAGE_ROUTE');
  11739. var options = {
  11740. path: lastPageRoute,
  11741. scene: this.statData.sc,
  11742. cst: 2
  11743. };
  11744. this.sendReportRequest(options);
  11745. }
  11746. // 状态重置
  11747. this.__licationHide = false;
  11748. }
  11749. }
  11750. /**
  11751. * 离开应用触发
  11752. * @param {Object} self
  11753. * @param {Object} type
  11754. */
  11755. }, {
  11756. key: "applicationHide",
  11757. value: function applicationHide(self, type) {
  11758. if (!self) {
  11759. // 表示应用切换到后台 ,此时需要从页面栈获取页面实例
  11760. self = get_page_vm();
  11761. }
  11762. // 进入应用后台保存状态,方便进入前台后判断是否上报应用数据
  11763. this.__licationHide = true;
  11764. var time = get_residence_time();
  11765. var route = get_page_route(self);
  11766. uni.setStorageSync('_STAT_LAST_PAGE_ROUTE', route);
  11767. this.sendHideRequest({
  11768. urlref: route,
  11769. urlref_ts: time.residenceTime
  11770. }, type);
  11771. // 更新页面首次访问时间
  11772. set_first_time();
  11773. }
  11774. /**
  11775. * 进入页面触发
  11776. */
  11777. }, {
  11778. key: "pageShow",
  11779. value: function pageShow(self) {
  11780. // 清空值 ,初始化 ,避免污染后面的上报数据
  11781. this._navigationBarTitle = {
  11782. config: '',
  11783. page: '',
  11784. report: '',
  11785. lt: ''
  11786. };
  11787. var route = get_page_route(self);
  11788. var routepath = get_route$1(self);
  11789. this._navigationBarTitle.config = get_page_name(routepath);
  11790. // 表示应用触发 ,页面切换不触发之后的逻辑
  11791. if (this.__licationShow) {
  11792. // 更新页面首次访问时间
  11793. set_first_time();
  11794. // this._lastPageRoute = route
  11795. uni.setStorageSync('_STAT_LAST_PAGE_ROUTE', route);
  11796. this.__licationShow = false;
  11797. return;
  11798. }
  11799. var time = get_residence_time('page');
  11800. // 停留时间
  11801. if (time.overtime) {
  11802. var options = {
  11803. path: route,
  11804. scene: this.statData.sc,
  11805. cst: 3
  11806. };
  11807. this.sendReportRequest(options);
  11808. }
  11809. // 更新页面首次访问时间
  11810. set_first_time();
  11811. }
  11812. /**
  11813. * 离开页面触发
  11814. */
  11815. }, {
  11816. key: "pageHide",
  11817. value: function pageHide(self) {
  11818. if (!this.__licationHide) {
  11819. var time = get_residence_time('page');
  11820. var route = get_page_route(self);
  11821. var lastPageRoute = uni.getStorageSync('_STAT_LAST_PAGE_ROUTE');
  11822. if (!lastPageRoute) {
  11823. lastPageRoute = route;
  11824. }
  11825. uni.setStorageSync('_STAT_LAST_PAGE_ROUTE', route);
  11826. this.sendPageRequest({
  11827. url: route,
  11828. urlref: lastPageRoute,
  11829. urlref_ts: time.residenceTime
  11830. });
  11831. // this._lastPageRoute = route
  11832. return;
  11833. }
  11834. }
  11835. /**
  11836. * 发送请求,应用维度上报
  11837. * @param {Object} options 页面信息
  11838. * @param {Boolean} type 是否立即上报
  11839. */
  11840. }, {
  11841. key: "sendReportRequest",
  11842. value: function sendReportRequest(options, type) {
  11843. this._navigationBarTitle.lt = '1';
  11844. this._navigationBarTitle.config = get_page_name(options.path);
  11845. var is_opt = options.query && JSON.stringify(options.query) !== '{}';
  11846. var query = is_opt ? '?' + JSON.stringify(options.query) : '';
  11847. var last_time = get_last_visit_time();
  11848. // 非老用户
  11849. if (last_time !== 0 || !last_time) {
  11850. var odid = get_odid();
  11851. // 2.0 处理规则
  11852. {
  11853. var have_device = is_handle_device();
  11854. // 如果没有上报过设备信息 ,则需要上报设备信息
  11855. if (!have_device) {
  11856. this.statData.odid = odid;
  11857. }
  11858. }
  11859. }
  11860. Object.assign(this.statData, {
  11861. lt: '1',
  11862. url: options.path + query || '',
  11863. t: get_time(),
  11864. sc: get_scene(options.scene),
  11865. fvts: get_first_visit_time(),
  11866. lvts: last_time,
  11867. tvc: get_total_visit_count(),
  11868. // create session type 上报类型 ,1 应用进入 2.后台30min进入 3.页面30min进入
  11869. cst: options.cst || 1
  11870. });
  11871. if (get_platform_name() === 'n') {
  11872. this.getProperty(type);
  11873. } else {
  11874. this.getNetworkInfo(type);
  11875. }
  11876. }
  11877. /**
  11878. * 发送请求,页面维度上报
  11879. * @param {Object} opt
  11880. */
  11881. }, {
  11882. key: "sendPageRequest",
  11883. value: function sendPageRequest(opt) {
  11884. var url = opt.url,
  11885. urlref = opt.urlref,
  11886. urlref_ts = opt.urlref_ts;
  11887. this._navigationBarTitle.lt = '11';
  11888. var options = {
  11889. ak: this.statData.ak,
  11890. uuid: this.statData.uuid,
  11891. p: this.statData.p,
  11892. lt: '11',
  11893. ut: this.statData.ut,
  11894. url: url,
  11895. tt: this.statData.tt,
  11896. urlref: urlref,
  11897. urlref_ts: urlref_ts,
  11898. ch: this.statData.ch,
  11899. usv: this.statData.usv,
  11900. t: get_time()
  11901. };
  11902. this.request(options);
  11903. }
  11904. /**
  11905. * 进入后台上报数据
  11906. * @param {Object} opt
  11907. * @param {Object} type
  11908. */
  11909. }, {
  11910. key: "sendHideRequest",
  11911. value: function sendHideRequest(opt, type) {
  11912. var urlref = opt.urlref,
  11913. urlref_ts = opt.urlref_ts;
  11914. var options = {
  11915. ak: this.statData.ak,
  11916. uuid: this.statData.uuid,
  11917. p: this.statData.p,
  11918. lt: '3',
  11919. ut: this.statData.ut,
  11920. urlref: urlref,
  11921. urlref_ts: urlref_ts,
  11922. ch: this.statData.ch,
  11923. usv: this.statData.usv,
  11924. t: get_time()
  11925. };
  11926. this.request(options, type);
  11927. }
  11928. /**
  11929. * 自定义事件上报
  11930. */
  11931. }, {
  11932. key: "sendEventRequest",
  11933. value: function sendEventRequest() {
  11934. var _ref3 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
  11935. _ref3$key = _ref3.key,
  11936. key = _ref3$key === void 0 ? '' : _ref3$key,
  11937. _ref3$value = _ref3.value,
  11938. value = _ref3$value === void 0 ? '' : _ref3$value;
  11939. var routepath = '';
  11940. try {
  11941. routepath = get_route$1();
  11942. } catch (error) {
  11943. var launch_options = dbGet('__launch_options');
  11944. routepath = launch_options.path;
  11945. }
  11946. this._navigationBarTitle.config = get_page_name(routepath);
  11947. this._navigationBarTitle.lt = '21';
  11948. var options = {
  11949. ak: this.statData.ak,
  11950. uuid: this.statData.uuid,
  11951. p: this.statData.p,
  11952. lt: '21',
  11953. ut: this.statData.ut,
  11954. url: routepath,
  11955. ch: this.statData.ch,
  11956. e_n: key,
  11957. e_v: _typeof(value) === 'object' ? JSON.stringify(value) : value.toString(),
  11958. usv: this.statData.usv,
  11959. t: get_time()
  11960. };
  11961. this.request(options);
  11962. }
  11963. }, {
  11964. key: "sendPushRequest",
  11965. value: function sendPushRequest(options, cid) {
  11966. var _this = this;
  11967. var time = get_time();
  11968. var statData = {
  11969. lt: '101',
  11970. cid: cid,
  11971. t: time,
  11972. ut: this.statData.ut
  11973. };
  11974. // debug 打印打点信息
  11975. if (is_debug) {
  11976. log(statData);
  11977. }
  11978. var stat_data = handle_data({
  11979. 101: [statData]
  11980. });
  11981. var optionsData = {
  11982. usv: STAT_VERSION,
  11983. //统计 SDK 版本号
  11984. t: time,
  11985. //发送请求时的时间戮
  11986. requests: stat_data
  11987. };
  11988. // XXX 安卓需要延迟上报 ,否则会有未知错误,需要验证处理
  11989. if (get_platform_name() === 'n' && this.statData.p === 'a') {
  11990. setTimeout(function () {
  11991. _this.sendRequest(optionsData);
  11992. }, 200);
  11993. return;
  11994. }
  11995. this.sendRequest(optionsData);
  11996. }
  11997. /**
  11998. * 获取wgt资源版本
  11999. */
  12000. }, {
  12001. key: "getProperty",
  12002. value: function getProperty(type) {
  12003. var _this2 = this;
  12004. plus.runtime.getProperty(plus.runtime.appid, function (wgtinfo) {
  12005. _this2.statData.v = wgtinfo.version || '';
  12006. _this2.getNetworkInfo(type);
  12007. });
  12008. }
  12009. /**
  12010. * 获取网络信息
  12011. */
  12012. }, {
  12013. key: "getNetworkInfo",
  12014. value: function getNetworkInfo(type) {
  12015. var _this3 = this;
  12016. uni.getNetworkType({
  12017. success: function success(result) {
  12018. _this3.statData.net = result.networkType;
  12019. _this3.getLocation(type);
  12020. }
  12021. });
  12022. }
  12023. /**
  12024. * 获取位置信息
  12025. */
  12026. }, {
  12027. key: "getLocation",
  12028. value: function getLocation(type) {
  12029. var _this4 = this;
  12030. if (stat_config.getLocation) {
  12031. uni.getLocation({
  12032. type: 'wgs84',
  12033. geocode: true,
  12034. success: function success(result) {
  12035. if (result.address) {
  12036. _this4.statData.cn = result.address.country;
  12037. _this4.statData.pn = result.address.province;
  12038. _this4.statData.ct = result.address.city;
  12039. }
  12040. _this4.statData.lat = result.latitude;
  12041. _this4.statData.lng = result.longitude;
  12042. _this4.request(_this4.statData, type);
  12043. }
  12044. });
  12045. } else {
  12046. this.statData.lat = 0;
  12047. this.statData.lng = 0;
  12048. this.request(this.statData, type);
  12049. }
  12050. }
  12051. /**
  12052. * 发送请求
  12053. * @param {Object} data 上报数据
  12054. * @param {Object} type 类型
  12055. */
  12056. }, {
  12057. key: "request",
  12058. value: function request(data, type) {
  12059. var _this5 = this;
  12060. var time = get_time();
  12061. var title = this._navigationBarTitle;
  12062. Object.assign(data, {
  12063. ttn: title.page,
  12064. ttpj: title.config,
  12065. ttc: title.report
  12066. });
  12067. var uniStatData = dbGet('__UNI__STAT__DATA') || {};
  12068. if (!uniStatData[data.lt]) {
  12069. uniStatData[data.lt] = [];
  12070. }
  12071. // 加入队列
  12072. uniStatData[data.lt].push(data);
  12073. dbSet('__UNI__STAT__DATA', uniStatData);
  12074. var page_residence_time = get_page_residence_time();
  12075. // debug 打印打点信息
  12076. if (is_debug) {
  12077. log(data);
  12078. }
  12079. // 判断时候到达上报时间 ,默认 10 秒上报
  12080. if (page_residence_time < eport_Interval && !type) return;
  12081. // 时间超过,重新获取时间戳
  12082. set_page_residence_time();
  12083. var stat_data = handle_data(uniStatData);
  12084. var optionsData = {
  12085. usv: STAT_VERSION,
  12086. //统计 SDK 版本号
  12087. t: time,
  12088. //发送请求时的时间戮
  12089. requests: stat_data
  12090. };
  12091. // 重置队列
  12092. dbRemove('__UNI__STAT__DATA');
  12093. // XXX 安卓需要延迟上报 ,否则会有未知错误,需要验证处理
  12094. if (get_platform_name() === 'n' && this.statData.p === 'a') {
  12095. setTimeout(function () {
  12096. _this5.sendRequest(optionsData);
  12097. }, 200);
  12098. return;
  12099. }
  12100. this.sendRequest(optionsData);
  12101. }
  12102. }, {
  12103. key: "getIsReportData",
  12104. value: function getIsReportData() {
  12105. return is_report_data();
  12106. }
  12107. /**
  12108. * 数据上报
  12109. * @param {Object} optionsData 需要上报的数据
  12110. */
  12111. }, {
  12112. key: "sendRequest",
  12113. value: function sendRequest(optionsData) {
  12114. {
  12115. if (!uni.__stat_uniCloud_space) {
  12116. console.error('应用未关联服务空间,统计上报失败,请在uniCloud目录右键关联服务空间.');
  12117. return;
  12118. }
  12119. var uniCloudObj = uni.__stat_uniCloud_space.importObject('uni-stat-receiver', {
  12120. customUI: true
  12121. });
  12122. uniCloudObj.report(optionsData).then(function () {
  12123. if (is_debug) {
  12124. log(optionsData, true);
  12125. }
  12126. }).catch(function (err) {
  12127. if (is_debug) {
  12128. console.warn('=== 统计上报错误');
  12129. console.error(err);
  12130. }
  12131. });
  12132. }
  12133. }
  12134. /**
  12135. * h5 请求
  12136. */
  12137. }, {
  12138. key: "imageRequest",
  12139. value: function imageRequest(data) {
  12140. this.getIsReportData().then(function () {
  12141. var image = new Image();
  12142. var options = get_sgin(get_encodeURIComponent_options(data)).options;
  12143. image.src = STAT_H5_URL + '?' + options;
  12144. if (is_debug) {
  12145. log(data, true);
  12146. }
  12147. });
  12148. }
  12149. }, {
  12150. key: "sendEvent",
  12151. value: function sendEvent(key, value) {
  12152. // 校验 type 参数
  12153. if (calibration(key, value)) return;
  12154. if (key === 'title') {
  12155. this._navigationBarTitle.report = value;
  12156. return;
  12157. }
  12158. this.sendEventRequest({
  12159. key: key,
  12160. value: _typeof(value) === 'object' ? JSON.stringify(value) : value
  12161. }, 1);
  12162. }
  12163. }]);
  12164. return Report;
  12165. }();
  12166. var Stat = /*#__PURE__*/function (_Report) {
  12167. "use strict";
  12168. _inherits(Stat, _Report);
  12169. var _super = _createSuper(Stat);
  12170. function Stat() {
  12171. _classCallCheck(this, Stat);
  12172. return _super.call(this);
  12173. }
  12174. /**
  12175. * 获取推送id
  12176. */
  12177. _createClass(Stat, [{
  12178. key: "pushEvent",
  12179. value: function pushEvent(options) {
  12180. var _this6 = this;
  12181. var ClientID = is_push_clientid();
  12182. if (uni.getPushClientId && ClientID) {
  12183. uni.getPushClientId({
  12184. success: function success(res) {
  12185. var cid = res.cid || false;
  12186. // 只有获取到才会上传
  12187. if (cid) {
  12188. _this6.sendPushRequest(options, cid);
  12189. }
  12190. }
  12191. });
  12192. }
  12193. }
  12194. /**
  12195. * 进入应用
  12196. * @param {Object} options 页面参数
  12197. * @param {Object} self 当前页面实例
  12198. */
  12199. }, {
  12200. key: "launch",
  12201. value: function launch(options, self) {
  12202. // 初始化页面停留时间 start
  12203. set_page_residence_time();
  12204. this.__licationShow = true;
  12205. dbSet('__launch_options', options);
  12206. // 应用初始上报参数为1
  12207. options.cst = 1;
  12208. this.sendReportRequest(options, true);
  12209. }
  12210. }, {
  12211. key: "load",
  12212. value: function load(options, self) {
  12213. this.self = self;
  12214. this._query = options;
  12215. }
  12216. }, {
  12217. key: "appHide",
  12218. value: function appHide(self) {
  12219. this.applicationHide(self, true);
  12220. }
  12221. }, {
  12222. key: "appShow",
  12223. value: function appShow(self) {
  12224. this.applicationShow(self);
  12225. }
  12226. }, {
  12227. key: "show",
  12228. value: function show(self) {
  12229. this.self = self;
  12230. if (get_page_types(self) === 'page') {
  12231. var isPageReport = is_page_report();
  12232. if (isPageReport) {
  12233. this.pageShow(self);
  12234. }
  12235. }
  12236. if (get_page_types(self) === 'app') {
  12237. this.appShow();
  12238. }
  12239. }
  12240. }, {
  12241. key: "hide",
  12242. value: function hide(self) {
  12243. this.self = self;
  12244. if (get_page_types(self) === 'page') {
  12245. var isPageReport = is_page_report();
  12246. if (isPageReport) {
  12247. this.pageHide(self);
  12248. }
  12249. }
  12250. if (get_page_types(self) === 'app') {
  12251. this.appHide();
  12252. }
  12253. }
  12254. }, {
  12255. key: "error",
  12256. value: function error(em) {
  12257. // 开发工具内不上报错误
  12258. // if (this._platform === 'devtools') {
  12259. // if (process.env.NODE_ENV === 'development') {
  12260. // console.info('当前运行环境为开发者工具,不上报数据。')
  12261. // return
  12262. // }
  12263. // }
  12264. var emVal = '';
  12265. if (!em.message) {
  12266. emVal = JSON.stringify(em);
  12267. } else {
  12268. emVal = em.stack;
  12269. }
  12270. var route = '';
  12271. try {
  12272. route = get_route();
  12273. } catch (e) {
  12274. // 未获取到页面路径
  12275. route = '';
  12276. }
  12277. var options = {
  12278. ak: this.statData.ak,
  12279. uuid: this.statData.uuid,
  12280. p: this.statData.p,
  12281. lt: '31',
  12282. url: route,
  12283. ut: this.statData.ut,
  12284. ch: this.statData.ch,
  12285. mpsdk: this.statData.mpsdk,
  12286. mpv: this.statData.mpv,
  12287. v: this.statData.v,
  12288. em: emVal,
  12289. usv: this.statData.usv,
  12290. t: parseInt(new Date().getTime() / 1000)
  12291. };
  12292. this.request(options);
  12293. }
  12294. }], [{
  12295. key: "getInstance",
  12296. value: function getInstance() {
  12297. if (!uni.__stat_instance) {
  12298. uni.__stat_instance = new Stat();
  12299. }
  12300. // 2.0 init 服务空间
  12301. {
  12302. var space = get_space(uniCloud.config);
  12303. if (!uni.__stat_uniCloud_space) {
  12304. // 判断不为空对象
  12305. if (space && Object.keys(space).length !== 0) {
  12306. var spaceData = {
  12307. provider: space.provider,
  12308. spaceId: space.spaceId,
  12309. clientSecret: space.clientSecret
  12310. };
  12311. if (space.endpoint) {
  12312. spaceData.endpoint = space.endpoint;
  12313. }
  12314. if (space.provider === 'alipay') {
  12315. spaceData.secretKey = space.secretKey;
  12316. spaceData.accessKey = space.accessKey || space.secretId;
  12317. spaceData.spaceAppId = space.spaceAppId || space.appId;
  12318. }
  12319. uni.__stat_uniCloud_space = uniCloud.init(spaceData);
  12320. // console.log(
  12321. // '=== 当前绑定的统计服务空间spaceId:' +
  12322. // uni.__stat_uniCloud_space.config.spaceId
  12323. // )
  12324. } else {
  12325. console.error('应用未关联服务空间,请在uniCloud目录右键关联服务空间');
  12326. }
  12327. }
  12328. }
  12329. return uni.__stat_instance;
  12330. }
  12331. }]);
  12332. return Stat;
  12333. }(Report);
  12334. var Stat$1 = Stat;
  12335. var stat = Stat$1.getInstance();
  12336. // 用于判断是隐藏页面还是卸载页面
  12337. var isHide = false;
  12338. var lifecycle = {
  12339. onLaunch: function onLaunch(options) {
  12340. // 进入应用上报数据
  12341. stat.launch(options, this);
  12342. // 上报push推送id
  12343. stat.pushEvent(options);
  12344. },
  12345. onLoad: function onLoad(options) {
  12346. stat.load(options, this);
  12347. // 重写分享,获取分享上报事件
  12348. if (this.$scope && this.$scope.onShareAppMessage) {
  12349. var oldShareAppMessage = this.$scope.onShareAppMessage;
  12350. this.$scope.onShareAppMessage = function (options) {
  12351. stat.interceptShare(false);
  12352. return oldShareAppMessage.call(this, options);
  12353. };
  12354. }
  12355. },
  12356. onShow: function onShow() {
  12357. isHide = false;
  12358. stat.show(this);
  12359. },
  12360. onHide: function onHide() {
  12361. isHide = true;
  12362. stat.hide(this);
  12363. },
  12364. onUnload: function onUnload() {
  12365. if (isHide) {
  12366. isHide = false;
  12367. return;
  12368. }
  12369. stat.hide(this);
  12370. },
  12371. onError: function onError(e) {
  12372. stat.error(e);
  12373. }
  12374. };
  12375. // 加载统计代码
  12376. function load_stat() {
  12377. // eslint-disable-next-line no-restricted-globals
  12378. var Vue = __webpack_require__(/*! vue */ 25);
  12379. (Vue.default || Vue).mixin(lifecycle);
  12380. uni.report = function (type, options) {
  12381. stat.sendEvent(type, options);
  12382. };
  12383. }
  12384. function main() {
  12385. if (is_debug) {
  12386. {
  12387. console.log('=== uni统计开启,version:2.0 ===');
  12388. }
  12389. load_stat();
  12390. } else {
  12391. if (true) {
  12392. uni.report = function (type, options) {};
  12393. } else {}
  12394. }
  12395. }
  12396. main();
  12397. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"], __webpack_require__(/*! ./node_modules/@dcloudio/vue-cli-plugin-uni/packages/uni-cloud/dist/index.js */ 28)["uniCloud"]))
  12398. /***/ }),
  12399. /***/ 28:
  12400. /*!************************************************************************************!*\
  12401. !*** ./node_modules/@dcloudio/vue-cli-plugin-uni/packages/uni-cloud/dist/index.js ***!
  12402. \************************************************************************************/
  12403. /*! no static exports found */
  12404. /***/ (function(module, exports, __webpack_require__) {
  12405. "use strict";
  12406. /* WEBPACK VAR INJECTION */(function(global, uni, wx) {
  12407. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  12408. Object.defineProperty(exports, "__esModule", {
  12409. value: true
  12410. });
  12411. exports.uniCloud = exports.default = exports.UniCloudError = void 0;
  12412. var _regenerator = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/regenerator */ 29));
  12413. var _assertThisInitialized2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/assertThisInitialized */ 31));
  12414. var _slicedToArray2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/slicedToArray */ 5));
  12415. var _typeof2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/typeof */ 13));
  12416. var _toConsumableArray2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/toConsumableArray */ 18));
  12417. var _asyncToGenerator2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/asyncToGenerator */ 32));
  12418. var _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/defineProperty */ 11));
  12419. var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/inherits */ 33));
  12420. var _possibleConstructorReturn2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/possibleConstructorReturn */ 34));
  12421. var _getPrototypeOf2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ 35));
  12422. var _wrapNativeSuper2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/wrapNativeSuper */ 36));
  12423. var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ 23));
  12424. var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ 24));
  12425. var _pages = _interopRequireDefault(__webpack_require__(/*! @/pages.json */ 38));
  12426. function _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e34) { throw _e34; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e35) { didErr = true; err = _e35; }, f: function f() { try { if (!normalCompletion && it.return != null) it.return(); } finally { if (didErr) throw err; } } }; }
  12427. 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); }
  12428. 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; }
  12429. function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
  12430. function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { (0, _defineProperty2.default)(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
  12431. function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; }
  12432. function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
  12433. "undefined" != typeof globalThis ? globalThis : "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof self && self;
  12434. function t(e) {
  12435. return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
  12436. }
  12437. function n(e, t, n) {
  12438. return e(n = {
  12439. path: t,
  12440. exports: {},
  12441. require: function require(e, t) {
  12442. return function () {
  12443. throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs");
  12444. }(null == t && n.path);
  12445. }
  12446. }, n.exports), n.exports;
  12447. }
  12448. var s = n(function (e, t) {
  12449. var n;
  12450. e.exports = (n = n || function (e, t) {
  12451. var n = Object.create || function () {
  12452. function e() {}
  12453. return function (t) {
  12454. var n;
  12455. return e.prototype = t, n = new e(), e.prototype = null, n;
  12456. };
  12457. }(),
  12458. s = {},
  12459. r = s.lib = {},
  12460. i = r.Base = {
  12461. extend: function extend(e) {
  12462. var t = n(this);
  12463. return e && t.mixIn(e), t.hasOwnProperty("init") && this.init !== t.init || (t.init = function () {
  12464. t.$super.init.apply(this, arguments);
  12465. }), t.init.prototype = t, t.$super = this, t;
  12466. },
  12467. create: function create() {
  12468. var e = this.extend();
  12469. return e.init.apply(e, arguments), e;
  12470. },
  12471. init: function init() {},
  12472. mixIn: function mixIn(e) {
  12473. for (var t in e) {
  12474. e.hasOwnProperty(t) && (this[t] = e[t]);
  12475. }
  12476. e.hasOwnProperty("toString") && (this.toString = e.toString);
  12477. },
  12478. clone: function clone() {
  12479. return this.init.prototype.extend(this);
  12480. }
  12481. },
  12482. o = r.WordArray = i.extend({
  12483. init: function init(e, n) {
  12484. e = this.words = e || [], this.sigBytes = n != t ? n : 4 * e.length;
  12485. },
  12486. toString: function toString(e) {
  12487. return (e || c).stringify(this);
  12488. },
  12489. concat: function concat(e) {
  12490. var t = this.words,
  12491. n = e.words,
  12492. s = this.sigBytes,
  12493. r = e.sigBytes;
  12494. if (this.clamp(), s % 4) for (var i = 0; i < r; i++) {
  12495. var o = n[i >>> 2] >>> 24 - i % 4 * 8 & 255;
  12496. t[s + i >>> 2] |= o << 24 - (s + i) % 4 * 8;
  12497. } else for (i = 0; i < r; i += 4) {
  12498. t[s + i >>> 2] = n[i >>> 2];
  12499. }
  12500. return this.sigBytes += r, this;
  12501. },
  12502. clamp: function clamp() {
  12503. var t = this.words,
  12504. n = this.sigBytes;
  12505. t[n >>> 2] &= 4294967295 << 32 - n % 4 * 8, t.length = e.ceil(n / 4);
  12506. },
  12507. clone: function clone() {
  12508. var e = i.clone.call(this);
  12509. return e.words = this.words.slice(0), e;
  12510. },
  12511. random: function random(t) {
  12512. for (var n, s = [], r = function r(t) {
  12513. var n = 987654321,
  12514. s = 4294967295;
  12515. return function () {
  12516. var r = ((n = 36969 * (65535 & n) + (n >> 16) & s) << 16) + (t = 18e3 * (65535 & t) + (t >> 16) & s) & s;
  12517. return r /= 4294967296, (r += .5) * (e.random() > .5 ? 1 : -1);
  12518. };
  12519. }, i = 0; i < t; i += 4) {
  12520. var a = r(4294967296 * (n || e.random()));
  12521. n = 987654071 * a(), s.push(4294967296 * a() | 0);
  12522. }
  12523. return new o.init(s, t);
  12524. }
  12525. }),
  12526. a = s.enc = {},
  12527. c = a.Hex = {
  12528. stringify: function stringify(e) {
  12529. for (var t = e.words, n = e.sigBytes, s = [], r = 0; r < n; r++) {
  12530. var i = t[r >>> 2] >>> 24 - r % 4 * 8 & 255;
  12531. s.push((i >>> 4).toString(16)), s.push((15 & i).toString(16));
  12532. }
  12533. return s.join("");
  12534. },
  12535. parse: function parse(e) {
  12536. for (var t = e.length, n = [], s = 0; s < t; s += 2) {
  12537. n[s >>> 3] |= parseInt(e.substr(s, 2), 16) << 24 - s % 8 * 4;
  12538. }
  12539. return new o.init(n, t / 2);
  12540. }
  12541. },
  12542. u = a.Latin1 = {
  12543. stringify: function stringify(e) {
  12544. for (var t = e.words, n = e.sigBytes, s = [], r = 0; r < n; r++) {
  12545. var i = t[r >>> 2] >>> 24 - r % 4 * 8 & 255;
  12546. s.push(String.fromCharCode(i));
  12547. }
  12548. return s.join("");
  12549. },
  12550. parse: function parse(e) {
  12551. for (var t = e.length, n = [], s = 0; s < t; s++) {
  12552. n[s >>> 2] |= (255 & e.charCodeAt(s)) << 24 - s % 4 * 8;
  12553. }
  12554. return new o.init(n, t);
  12555. }
  12556. },
  12557. h = a.Utf8 = {
  12558. stringify: function stringify(e) {
  12559. try {
  12560. return decodeURIComponent(escape(u.stringify(e)));
  12561. } catch (e) {
  12562. throw new Error("Malformed UTF-8 data");
  12563. }
  12564. },
  12565. parse: function parse(e) {
  12566. return u.parse(unescape(encodeURIComponent(e)));
  12567. }
  12568. },
  12569. l = r.BufferedBlockAlgorithm = i.extend({
  12570. reset: function reset() {
  12571. this._data = new o.init(), this._nDataBytes = 0;
  12572. },
  12573. _append: function _append(e) {
  12574. "string" == typeof e && (e = h.parse(e)), this._data.concat(e), this._nDataBytes += e.sigBytes;
  12575. },
  12576. _process: function _process(t) {
  12577. var n = this._data,
  12578. s = n.words,
  12579. r = n.sigBytes,
  12580. i = this.blockSize,
  12581. a = r / (4 * i),
  12582. c = (a = t ? e.ceil(a) : e.max((0 | a) - this._minBufferSize, 0)) * i,
  12583. u = e.min(4 * c, r);
  12584. if (c) {
  12585. for (var h = 0; h < c; h += i) {
  12586. this._doProcessBlock(s, h);
  12587. }
  12588. var l = s.splice(0, c);
  12589. n.sigBytes -= u;
  12590. }
  12591. return new o.init(l, u);
  12592. },
  12593. clone: function clone() {
  12594. var e = i.clone.call(this);
  12595. return e._data = this._data.clone(), e;
  12596. },
  12597. _minBufferSize: 0
  12598. });
  12599. r.Hasher = l.extend({
  12600. cfg: i.extend(),
  12601. init: function init(e) {
  12602. this.cfg = this.cfg.extend(e), this.reset();
  12603. },
  12604. reset: function reset() {
  12605. l.reset.call(this), this._doReset();
  12606. },
  12607. update: function update(e) {
  12608. return this._append(e), this._process(), this;
  12609. },
  12610. finalize: function finalize(e) {
  12611. return e && this._append(e), this._doFinalize();
  12612. },
  12613. blockSize: 16,
  12614. _createHelper: function _createHelper(e) {
  12615. return function (t, n) {
  12616. return new e.init(n).finalize(t);
  12617. };
  12618. },
  12619. _createHmacHelper: function _createHmacHelper(e) {
  12620. return function (t, n) {
  12621. return new d.HMAC.init(e, n).finalize(t);
  12622. };
  12623. }
  12624. });
  12625. var d = s.algo = {};
  12626. return s;
  12627. }(Math), n);
  12628. }),
  12629. r = s,
  12630. i = (n(function (e, t) {
  12631. var n;
  12632. e.exports = (n = r, function (e) {
  12633. var t = n,
  12634. s = t.lib,
  12635. r = s.WordArray,
  12636. i = s.Hasher,
  12637. o = t.algo,
  12638. a = [];
  12639. !function () {
  12640. for (var t = 0; t < 64; t++) {
  12641. a[t] = 4294967296 * e.abs(e.sin(t + 1)) | 0;
  12642. }
  12643. }();
  12644. var c = o.MD5 = i.extend({
  12645. _doReset: function _doReset() {
  12646. this._hash = new r.init([1732584193, 4023233417, 2562383102, 271733878]);
  12647. },
  12648. _doProcessBlock: function _doProcessBlock(e, t) {
  12649. for (var n = 0; n < 16; n++) {
  12650. var s = t + n,
  12651. r = e[s];
  12652. e[s] = 16711935 & (r << 8 | r >>> 24) | 4278255360 & (r << 24 | r >>> 8);
  12653. }
  12654. var i = this._hash.words,
  12655. o = e[t + 0],
  12656. c = e[t + 1],
  12657. p = e[t + 2],
  12658. f = e[t + 3],
  12659. g = e[t + 4],
  12660. m = e[t + 5],
  12661. y = e[t + 6],
  12662. _ = e[t + 7],
  12663. w = e[t + 8],
  12664. I = e[t + 9],
  12665. v = e[t + 10],
  12666. S = e[t + 11],
  12667. T = e[t + 12],
  12668. b = e[t + 13],
  12669. E = e[t + 14],
  12670. k = e[t + 15],
  12671. A = i[0],
  12672. P = i[1],
  12673. C = i[2],
  12674. O = i[3];
  12675. A = u(A, P, C, O, o, 7, a[0]), O = u(O, A, P, C, c, 12, a[1]), C = u(C, O, A, P, p, 17, a[2]), P = u(P, C, O, A, f, 22, a[3]), A = u(A, P, C, O, g, 7, a[4]), O = u(O, A, P, C, m, 12, a[5]), C = u(C, O, A, P, y, 17, a[6]), P = u(P, C, O, A, _, 22, a[7]), A = u(A, P, C, O, w, 7, a[8]), O = u(O, A, P, C, I, 12, a[9]), C = u(C, O, A, P, v, 17, a[10]), P = u(P, C, O, A, S, 22, a[11]), A = u(A, P, C, O, T, 7, a[12]), O = u(O, A, P, C, b, 12, a[13]), C = u(C, O, A, P, E, 17, a[14]), A = h(A, P = u(P, C, O, A, k, 22, a[15]), C, O, c, 5, a[16]), O = h(O, A, P, C, y, 9, a[17]), C = h(C, O, A, P, S, 14, a[18]), P = h(P, C, O, A, o, 20, a[19]), A = h(A, P, C, O, m, 5, a[20]), O = h(O, A, P, C, v, 9, a[21]), C = h(C, O, A, P, k, 14, a[22]), P = h(P, C, O, A, g, 20, a[23]), A = h(A, P, C, O, I, 5, a[24]), O = h(O, A, P, C, E, 9, a[25]), C = h(C, O, A, P, f, 14, a[26]), P = h(P, C, O, A, w, 20, a[27]), A = h(A, P, C, O, b, 5, a[28]), O = h(O, A, P, C, p, 9, a[29]), C = h(C, O, A, P, _, 14, a[30]), A = l(A, P = h(P, C, O, A, T, 20, a[31]), C, O, m, 4, a[32]), O = l(O, A, P, C, w, 11, a[33]), C = l(C, O, A, P, S, 16, a[34]), P = l(P, C, O, A, E, 23, a[35]), A = l(A, P, C, O, c, 4, a[36]), O = l(O, A, P, C, g, 11, a[37]), C = l(C, O, A, P, _, 16, a[38]), P = l(P, C, O, A, v, 23, a[39]), A = l(A, P, C, O, b, 4, a[40]), O = l(O, A, P, C, o, 11, a[41]), C = l(C, O, A, P, f, 16, a[42]), P = l(P, C, O, A, y, 23, a[43]), A = l(A, P, C, O, I, 4, a[44]), O = l(O, A, P, C, T, 11, a[45]), C = l(C, O, A, P, k, 16, a[46]), A = d(A, P = l(P, C, O, A, p, 23, a[47]), C, O, o, 6, a[48]), O = d(O, A, P, C, _, 10, a[49]), C = d(C, O, A, P, E, 15, a[50]), P = d(P, C, O, A, m, 21, a[51]), A = d(A, P, C, O, T, 6, a[52]), O = d(O, A, P, C, f, 10, a[53]), C = d(C, O, A, P, v, 15, a[54]), P = d(P, C, O, A, c, 21, a[55]), A = d(A, P, C, O, w, 6, a[56]), O = d(O, A, P, C, k, 10, a[57]), C = d(C, O, A, P, y, 15, a[58]), P = d(P, C, O, A, b, 21, a[59]), A = d(A, P, C, O, g, 6, a[60]), O = d(O, A, P, C, S, 10, a[61]), C = d(C, O, A, P, p, 15, a[62]), P = d(P, C, O, A, I, 21, a[63]), i[0] = i[0] + A | 0, i[1] = i[1] + P | 0, i[2] = i[2] + C | 0, i[3] = i[3] + O | 0;
  12676. },
  12677. _doFinalize: function _doFinalize() {
  12678. var t = this._data,
  12679. n = t.words,
  12680. s = 8 * this._nDataBytes,
  12681. r = 8 * t.sigBytes;
  12682. n[r >>> 5] |= 128 << 24 - r % 32;
  12683. var i = e.floor(s / 4294967296),
  12684. o = s;
  12685. n[15 + (r + 64 >>> 9 << 4)] = 16711935 & (i << 8 | i >>> 24) | 4278255360 & (i << 24 | i >>> 8), n[14 + (r + 64 >>> 9 << 4)] = 16711935 & (o << 8 | o >>> 24) | 4278255360 & (o << 24 | o >>> 8), t.sigBytes = 4 * (n.length + 1), this._process();
  12686. for (var a = this._hash, c = a.words, u = 0; u < 4; u++) {
  12687. var h = c[u];
  12688. c[u] = 16711935 & (h << 8 | h >>> 24) | 4278255360 & (h << 24 | h >>> 8);
  12689. }
  12690. return a;
  12691. },
  12692. clone: function clone() {
  12693. var e = i.clone.call(this);
  12694. return e._hash = this._hash.clone(), e;
  12695. }
  12696. });
  12697. function u(e, t, n, s, r, i, o) {
  12698. var a = e + (t & n | ~t & s) + r + o;
  12699. return (a << i | a >>> 32 - i) + t;
  12700. }
  12701. function h(e, t, n, s, r, i, o) {
  12702. var a = e + (t & s | n & ~s) + r + o;
  12703. return (a << i | a >>> 32 - i) + t;
  12704. }
  12705. function l(e, t, n, s, r, i, o) {
  12706. var a = e + (t ^ n ^ s) + r + o;
  12707. return (a << i | a >>> 32 - i) + t;
  12708. }
  12709. function d(e, t, n, s, r, i, o) {
  12710. var a = e + (n ^ (t | ~s)) + r + o;
  12711. return (a << i | a >>> 32 - i) + t;
  12712. }
  12713. t.MD5 = i._createHelper(c), t.HmacMD5 = i._createHmacHelper(c);
  12714. }(Math), n.MD5);
  12715. }), n(function (e, t) {
  12716. var n;
  12717. e.exports = (n = r, void function () {
  12718. var e = n,
  12719. t = e.lib.Base,
  12720. s = e.enc.Utf8;
  12721. e.algo.HMAC = t.extend({
  12722. init: function init(e, t) {
  12723. e = this._hasher = new e.init(), "string" == typeof t && (t = s.parse(t));
  12724. var n = e.blockSize,
  12725. r = 4 * n;
  12726. t.sigBytes > r && (t = e.finalize(t)), t.clamp();
  12727. for (var i = this._oKey = t.clone(), o = this._iKey = t.clone(), a = i.words, c = o.words, u = 0; u < n; u++) {
  12728. a[u] ^= 1549556828, c[u] ^= 909522486;
  12729. }
  12730. i.sigBytes = o.sigBytes = r, this.reset();
  12731. },
  12732. reset: function reset() {
  12733. var e = this._hasher;
  12734. e.reset(), e.update(this._iKey);
  12735. },
  12736. update: function update(e) {
  12737. return this._hasher.update(e), this;
  12738. },
  12739. finalize: function finalize(e) {
  12740. var t = this._hasher,
  12741. n = t.finalize(e);
  12742. return t.reset(), t.finalize(this._oKey.clone().concat(n));
  12743. }
  12744. });
  12745. }());
  12746. }), n(function (e, t) {
  12747. e.exports = r.HmacMD5;
  12748. })),
  12749. o = n(function (e, t) {
  12750. e.exports = r.enc.Utf8;
  12751. }),
  12752. a = n(function (e, t) {
  12753. var n;
  12754. e.exports = (n = r, function () {
  12755. var e = n,
  12756. t = e.lib.WordArray;
  12757. function s(e, n, s) {
  12758. for (var r = [], i = 0, o = 0; o < n; o++) {
  12759. if (o % 4) {
  12760. var a = s[e.charCodeAt(o - 1)] << o % 4 * 2,
  12761. c = s[e.charCodeAt(o)] >>> 6 - o % 4 * 2;
  12762. r[i >>> 2] |= (a | c) << 24 - i % 4 * 8, i++;
  12763. }
  12764. }
  12765. return t.create(r, i);
  12766. }
  12767. e.enc.Base64 = {
  12768. stringify: function stringify(e) {
  12769. var t = e.words,
  12770. n = e.sigBytes,
  12771. s = this._map;
  12772. e.clamp();
  12773. for (var r = [], i = 0; i < n; i += 3) {
  12774. for (var o = (t[i >>> 2] >>> 24 - i % 4 * 8 & 255) << 16 | (t[i + 1 >>> 2] >>> 24 - (i + 1) % 4 * 8 & 255) << 8 | t[i + 2 >>> 2] >>> 24 - (i + 2) % 4 * 8 & 255, a = 0; a < 4 && i + .75 * a < n; a++) {
  12775. r.push(s.charAt(o >>> 6 * (3 - a) & 63));
  12776. }
  12777. }
  12778. var c = s.charAt(64);
  12779. if (c) for (; r.length % 4;) {
  12780. r.push(c);
  12781. }
  12782. return r.join("");
  12783. },
  12784. parse: function parse(e) {
  12785. var t = e.length,
  12786. n = this._map,
  12787. r = this._reverseMap;
  12788. if (!r) {
  12789. r = this._reverseMap = [];
  12790. for (var i = 0; i < n.length; i++) {
  12791. r[n.charCodeAt(i)] = i;
  12792. }
  12793. }
  12794. var o = n.charAt(64);
  12795. if (o) {
  12796. var a = e.indexOf(o);
  12797. -1 !== a && (t = a);
  12798. }
  12799. return s(e, t, r);
  12800. },
  12801. _map: "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="
  12802. };
  12803. }(), n.enc.Base64);
  12804. });
  12805. var c = "uni_id_token",
  12806. u = "uni_id_token_expired",
  12807. h = "uniIdToken",
  12808. l = {
  12809. DEFAULT: "FUNCTION",
  12810. FUNCTION: "FUNCTION",
  12811. OBJECT: "OBJECT",
  12812. CLIENT_DB: "CLIENT_DB"
  12813. },
  12814. d = "pending",
  12815. p = "fulfilled",
  12816. f = "rejected";
  12817. function g(e) {
  12818. return Object.prototype.toString.call(e).slice(8, -1).toLowerCase();
  12819. }
  12820. function m(e) {
  12821. return "object" === g(e);
  12822. }
  12823. function y(e) {
  12824. return "function" == typeof e;
  12825. }
  12826. function _(e) {
  12827. return function () {
  12828. try {
  12829. return e.apply(e, arguments);
  12830. } catch (e) {
  12831. console.error(e);
  12832. }
  12833. };
  12834. }
  12835. var w = "REJECTED",
  12836. I = "NOT_PENDING";
  12837. var v = /*#__PURE__*/function () {
  12838. function v() {
  12839. var _ref = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
  12840. e = _ref.createPromise,
  12841. _ref$retryRule = _ref.retryRule,
  12842. t = _ref$retryRule === void 0 ? w : _ref$retryRule;
  12843. (0, _classCallCheck2.default)(this, v);
  12844. this.createPromise = e, this.status = null, this.promise = null, this.retryRule = t;
  12845. }
  12846. (0, _createClass2.default)(v, [{
  12847. key: "needRetry",
  12848. get: function get() {
  12849. if (!this.status) return !0;
  12850. switch (this.retryRule) {
  12851. case w:
  12852. return this.status === f;
  12853. case I:
  12854. return this.status !== d;
  12855. }
  12856. }
  12857. }, {
  12858. key: "exec",
  12859. value: function exec() {
  12860. var _this = this;
  12861. return this.needRetry ? (this.status = d, this.promise = this.createPromise().then(function (e) {
  12862. return _this.status = p, Promise.resolve(e);
  12863. }, function (e) {
  12864. return _this.status = f, Promise.reject(e);
  12865. }), this.promise) : this.promise;
  12866. }
  12867. }]);
  12868. return v;
  12869. }();
  12870. var S = /*#__PURE__*/function () {
  12871. function S() {
  12872. (0, _classCallCheck2.default)(this, S);
  12873. this._callback = {};
  12874. }
  12875. (0, _createClass2.default)(S, [{
  12876. key: "addListener",
  12877. value: function addListener(e, t) {
  12878. this._callback[e] || (this._callback[e] = []), this._callback[e].push(t);
  12879. }
  12880. }, {
  12881. key: "on",
  12882. value: function on(e, t) {
  12883. return this.addListener(e, t);
  12884. }
  12885. }, {
  12886. key: "removeListener",
  12887. value: function removeListener(e, t) {
  12888. if (!t) throw new Error('The "listener" argument must be of type function. Received undefined');
  12889. var n = this._callback[e];
  12890. if (!n) return;
  12891. var s = function (e, t) {
  12892. for (var _n2 = e.length - 1; _n2 >= 0; _n2--) {
  12893. if (e[_n2] === t) return _n2;
  12894. }
  12895. return -1;
  12896. }(n, t);
  12897. n.splice(s, 1);
  12898. }
  12899. }, {
  12900. key: "off",
  12901. value: function off(e, t) {
  12902. return this.removeListener(e, t);
  12903. }
  12904. }, {
  12905. key: "removeAllListener",
  12906. value: function removeAllListener(e) {
  12907. delete this._callback[e];
  12908. }
  12909. }, {
  12910. key: "emit",
  12911. value: function emit(e) {
  12912. var n = this._callback[e];
  12913. for (var _len = arguments.length, t = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
  12914. t[_key - 1] = arguments[_key];
  12915. }
  12916. if (n) for (var _e2 = 0; _e2 < n.length; _e2++) {
  12917. n[_e2].apply(n, t);
  12918. }
  12919. }
  12920. }]);
  12921. return S;
  12922. }();
  12923. function T(e) {
  12924. return e && "string" == typeof e ? JSON.parse(e) : e;
  12925. }
  12926. var b = "development" === "development",
  12927. E = "mp-weixin",
  12928. k = "true" === undefined || !0 === undefined,
  12929. A = T([]),
  12930. P = "h5" === E ? "web" : "app-plus" === E || "app-harmony" === E ? "app" : E,
  12931. C = T(undefined),
  12932. O = T([]) || [],
  12933. x = true;
  12934. var N = "";
  12935. try {
  12936. N = (__webpack_require__(/*! uni-stat-config */ 39).default || __webpack_require__(/*! uni-stat-config */ 39)).appid;
  12937. } catch (e) {}
  12938. var R,
  12939. L = {};
  12940. function U(e) {
  12941. var t = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  12942. var n, s;
  12943. return n = L, s = e, Object.prototype.hasOwnProperty.call(n, s) || (L[e] = t), L[e];
  12944. }
  12945. function D() {
  12946. return R || (R = function () {
  12947. if ("undefined" != typeof globalThis) return globalThis;
  12948. if ("undefined" != typeof self) return self;
  12949. if ("undefined" != typeof window) return window;
  12950. function e() {
  12951. return this;
  12952. }
  12953. return void 0 !== e() ? e() : new Function("return this")();
  12954. }(), R);
  12955. }
  12956. "app" === P && (L = uni._globalUniCloudObj ? uni._globalUniCloudObj : uni._globalUniCloudObj = {});
  12957. var M = ["invoke", "success", "fail", "complete"],
  12958. q = U("_globalUniCloudInterceptor");
  12959. function F(e, t) {
  12960. q[e] || (q[e] = {}), m(t) && Object.keys(t).forEach(function (n) {
  12961. M.indexOf(n) > -1 && function (e, t, n) {
  12962. var s = q[e][t];
  12963. s || (s = q[e][t] = []), -1 === s.indexOf(n) && y(n) && s.push(n);
  12964. }(e, n, t[n]);
  12965. });
  12966. }
  12967. function K(e, t) {
  12968. q[e] || (q[e] = {}), m(t) ? Object.keys(t).forEach(function (n) {
  12969. M.indexOf(n) > -1 && function (e, t, n) {
  12970. var s = q[e][t];
  12971. if (!s) return;
  12972. var r = s.indexOf(n);
  12973. r > -1 && s.splice(r, 1);
  12974. }(e, n, t[n]);
  12975. }) : delete q[e];
  12976. }
  12977. function j(e, t) {
  12978. return e && 0 !== e.length ? e.reduce(function (e, n) {
  12979. return e.then(function () {
  12980. return n(t);
  12981. });
  12982. }, Promise.resolve()) : Promise.resolve();
  12983. }
  12984. function $(e, t) {
  12985. return q[e] && q[e][t] || [];
  12986. }
  12987. function B(e) {
  12988. F("callObject", e);
  12989. }
  12990. var W = U("_globalUniCloudListener"),
  12991. H = {
  12992. RESPONSE: "response",
  12993. NEED_LOGIN: "needLogin",
  12994. REFRESH_TOKEN: "refreshToken"
  12995. },
  12996. J = {
  12997. CLIENT_DB: "clientdb",
  12998. CLOUD_FUNCTION: "cloudfunction",
  12999. CLOUD_OBJECT: "cloudobject"
  13000. };
  13001. function z(e) {
  13002. return W[e] || (W[e] = []), W[e];
  13003. }
  13004. function V(e, t) {
  13005. var n = z(e);
  13006. n.includes(t) || n.push(t);
  13007. }
  13008. function G(e, t) {
  13009. var n = z(e),
  13010. s = n.indexOf(t);
  13011. -1 !== s && n.splice(s, 1);
  13012. }
  13013. function Y(e, t) {
  13014. var n = z(e);
  13015. for (var _e3 = 0; _e3 < n.length; _e3++) {
  13016. (0, n[_e3])(t);
  13017. }
  13018. }
  13019. var Q,
  13020. X = !1;
  13021. function Z() {
  13022. return Q || (Q = new Promise(function (e) {
  13023. X && e(), function t() {
  13024. if ("function" == typeof getCurrentPages) {
  13025. var _t2 = getCurrentPages();
  13026. _t2 && _t2[0] && (X = !0, e());
  13027. }
  13028. X || setTimeout(function () {
  13029. t();
  13030. }, 30);
  13031. }();
  13032. }), Q);
  13033. }
  13034. function ee(e) {
  13035. var t = {};
  13036. for (var _n3 in e) {
  13037. var _s2 = e[_n3];
  13038. y(_s2) && (t[_n3] = _(_s2));
  13039. }
  13040. return t;
  13041. }
  13042. var te = /*#__PURE__*/function (_Error) {
  13043. (0, _inherits2.default)(te, _Error);
  13044. var _super = _createSuper(te);
  13045. function te(e) {
  13046. var _this2;
  13047. (0, _classCallCheck2.default)(this, te);
  13048. var t = e.message || e.errMsg || "unknown system error";
  13049. _this2 = _super.call(this, t), _this2.errMsg = t, _this2.code = _this2.errCode = e.code || e.errCode || "SYSTEM_ERROR", _this2.errSubject = _this2.subject = e.subject || e.errSubject, _this2.cause = e.cause, _this2.requestId = e.requestId;
  13050. return _this2;
  13051. }
  13052. (0, _createClass2.default)(te, [{
  13053. key: "toJson",
  13054. value: function toJson() {
  13055. var e = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 0;
  13056. if (!(e >= 10)) return e++, {
  13057. errCode: this.errCode,
  13058. errMsg: this.errMsg,
  13059. errSubject: this.errSubject,
  13060. cause: this.cause && this.cause.toJson ? this.cause.toJson(e) : this.cause
  13061. };
  13062. }
  13063. }]);
  13064. return te;
  13065. }( /*#__PURE__*/(0, _wrapNativeSuper2.default)(Error));
  13066. exports.UniCloudError = te;
  13067. var ne = {
  13068. request: function request(e) {
  13069. return uni.request(e);
  13070. },
  13071. uploadFile: function uploadFile(e) {
  13072. return uni.uploadFile(e);
  13073. },
  13074. setStorageSync: function setStorageSync(e, t) {
  13075. return uni.setStorageSync(e, t);
  13076. },
  13077. getStorageSync: function getStorageSync(e) {
  13078. return uni.getStorageSync(e);
  13079. },
  13080. removeStorageSync: function removeStorageSync(e) {
  13081. return uni.removeStorageSync(e);
  13082. },
  13083. clearStorageSync: function clearStorageSync() {
  13084. return uni.clearStorageSync();
  13085. },
  13086. connectSocket: function connectSocket(e) {
  13087. return uni.connectSocket(e);
  13088. }
  13089. };
  13090. function se() {
  13091. return {
  13092. token: ne.getStorageSync(c) || ne.getStorageSync(h),
  13093. tokenExpired: ne.getStorageSync(u)
  13094. };
  13095. }
  13096. function re() {
  13097. var _ref2 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
  13098. e = _ref2.token,
  13099. t = _ref2.tokenExpired;
  13100. e && ne.setStorageSync(c, e), t && ne.setStorageSync(u, t);
  13101. }
  13102. var ie, oe;
  13103. function ae() {
  13104. return ie || (ie = "mp-weixin" === P && wx.canIUse("getAppBaseInfo") && wx.canIUse("getDeviceInfo") ? _objectSpread(_objectSpread({}, uni.getAppBaseInfo()), uni.getDeviceInfo()) : uni.getSystemInfoSync()), ie;
  13105. }
  13106. function ce() {
  13107. var e, t;
  13108. try {
  13109. if (uni.getLaunchOptionsSync) {
  13110. if (uni.getLaunchOptionsSync.toString().indexOf("not yet implemented") > -1) return;
  13111. var _uni$getLaunchOptions = uni.getLaunchOptionsSync(),
  13112. _n4 = _uni$getLaunchOptions.scene,
  13113. _s3 = _uni$getLaunchOptions.channel;
  13114. e = _s3, t = _n4;
  13115. }
  13116. } catch (e) {}
  13117. return {
  13118. channel: e,
  13119. scene: t
  13120. };
  13121. }
  13122. var ue = {};
  13123. function he() {
  13124. var e = uni.getLocale && uni.getLocale() || "en";
  13125. if (oe) return _objectSpread(_objectSpread(_objectSpread({}, ue), oe), {}, {
  13126. locale: e,
  13127. LOCALE: e
  13128. });
  13129. var t = ae(),
  13130. n = t.deviceId,
  13131. s = t.osName,
  13132. r = t.uniPlatform,
  13133. i = t.appId,
  13134. o = ["appId", "appLanguage", "appName", "appVersion", "appVersionCode", "appWgtVersion", "browserName", "browserVersion", "deviceBrand", "deviceId", "deviceModel", "deviceType", "osName", "osVersion", "romName", "romVersion", "ua", "hostName", "hostVersion", "uniPlatform", "uniRuntimeVersion", "uniRuntimeVersionCode", "uniCompilerVersion", "uniCompilerVersionCode"];
  13135. for (var _e4 in t) {
  13136. Object.hasOwnProperty.call(t, _e4) && -1 === o.indexOf(_e4) && delete t[_e4];
  13137. }
  13138. return oe = _objectSpread(_objectSpread({
  13139. PLATFORM: r,
  13140. OS: s,
  13141. APPID: i,
  13142. DEVICEID: n
  13143. }, ce()), t), _objectSpread(_objectSpread(_objectSpread({}, ue), oe), {}, {
  13144. locale: e,
  13145. LOCALE: e
  13146. });
  13147. }
  13148. var le = {
  13149. sign: function sign(e, t) {
  13150. var n = "";
  13151. return Object.keys(e).sort().forEach(function (t) {
  13152. e[t] && (n = n + "&" + t + "=" + e[t]);
  13153. }), n = n.slice(1), i(n, t).toString();
  13154. },
  13155. wrappedRequest: function wrappedRequest(e, t) {
  13156. return new Promise(function (n, s) {
  13157. t(Object.assign(e, {
  13158. complete: function complete(e) {
  13159. e || (e = {}), b && "web" === P && e.errMsg && 0 === e.errMsg.indexOf("request:fail") && console.warn("发布H5,需要在uniCloud后台操作,绑定安全域名,否则会因为跨域问题而无法访问。教程参考:https://uniapp.dcloud.io/uniCloud/quickstart?id=useinh5");
  13160. var t = e.data && e.data.header && e.data.header["x-serverless-request-id"] || e.header && e.header["request-id"];
  13161. if (!e.statusCode || e.statusCode >= 400) {
  13162. var _n5 = e.data && e.data.error && e.data.error.code || "SYS_ERR",
  13163. _r = e.data && e.data.error && e.data.error.message || e.errMsg || "request:fail";
  13164. return s(new te({
  13165. code: _n5,
  13166. message: _r,
  13167. requestId: t
  13168. }));
  13169. }
  13170. var r = e.data;
  13171. if (r.error) return s(new te({
  13172. code: r.error.code,
  13173. message: r.error.message,
  13174. requestId: t
  13175. }));
  13176. r.result = r.data, r.requestId = t, delete r.data, n(r);
  13177. }
  13178. }));
  13179. });
  13180. },
  13181. toBase64: function toBase64(e) {
  13182. return a.stringify(o.parse(e));
  13183. }
  13184. };
  13185. var de = /*#__PURE__*/function () {
  13186. function de(e) {
  13187. var _this3 = this;
  13188. (0, _classCallCheck2.default)(this, de);
  13189. ["spaceId", "clientSecret"].forEach(function (t) {
  13190. if (!Object.prototype.hasOwnProperty.call(e, t)) throw new Error("".concat(t, " required"));
  13191. }), this.config = Object.assign({}, {
  13192. endpoint: 0 === e.spaceId.indexOf("mp-") ? "https://api.next.bspapp.com" : "https://api.bspapp.com"
  13193. }, e), this.config.provider = "aliyun", this.config.requestUrl = this.config.endpoint + "/client", this.config.envType = this.config.envType || "public", this.config.accessTokenKey = "access_token_" + this.config.spaceId, this.adapter = ne, this._getAccessTokenPromiseHub = new v({
  13194. createPromise: function createPromise() {
  13195. return _this3.requestAuth(_this3.setupRequest({
  13196. method: "serverless.auth.user.anonymousAuthorize",
  13197. params: "{}"
  13198. }, "auth")).then(function (e) {
  13199. if (!e.result || !e.result.accessToken) throw new te({
  13200. code: "AUTH_FAILED",
  13201. message: "获取accessToken失败"
  13202. });
  13203. _this3.setAccessToken(e.result.accessToken);
  13204. });
  13205. },
  13206. retryRule: I
  13207. });
  13208. }
  13209. (0, _createClass2.default)(de, [{
  13210. key: "hasAccessToken",
  13211. get: function get() {
  13212. return !!this.accessToken;
  13213. }
  13214. }, {
  13215. key: "setAccessToken",
  13216. value: function setAccessToken(e) {
  13217. this.accessToken = e;
  13218. }
  13219. }, {
  13220. key: "requestWrapped",
  13221. value: function requestWrapped(e) {
  13222. return le.wrappedRequest(e, this.adapter.request);
  13223. }
  13224. }, {
  13225. key: "requestAuth",
  13226. value: function requestAuth(e) {
  13227. return this.requestWrapped(e);
  13228. }
  13229. }, {
  13230. key: "request",
  13231. value: function request(e, t) {
  13232. var _this4 = this;
  13233. return Promise.resolve().then(function () {
  13234. return _this4.hasAccessToken ? t ? _this4.requestWrapped(e) : _this4.requestWrapped(e).catch(function (t) {
  13235. return new Promise(function (e, n) {
  13236. !t || "GATEWAY_INVALID_TOKEN" !== t.code && "InvalidParameter.InvalidToken" !== t.code ? n(t) : e();
  13237. }).then(function () {
  13238. return _this4.getAccessToken();
  13239. }).then(function () {
  13240. var t = _this4.rebuildRequest(e);
  13241. return _this4.request(t, !0);
  13242. });
  13243. }) : _this4.getAccessToken().then(function () {
  13244. var t = _this4.rebuildRequest(e);
  13245. return _this4.request(t, !0);
  13246. });
  13247. });
  13248. }
  13249. }, {
  13250. key: "rebuildRequest",
  13251. value: function rebuildRequest(e) {
  13252. var t = Object.assign({}, e);
  13253. return t.data.token = this.accessToken, t.header["x-basement-token"] = this.accessToken, t.header["x-serverless-sign"] = le.sign(t.data, this.config.clientSecret), t;
  13254. }
  13255. }, {
  13256. key: "setupRequest",
  13257. value: function setupRequest(e, t) {
  13258. var n = Object.assign({}, e, {
  13259. spaceId: this.config.spaceId,
  13260. timestamp: Date.now()
  13261. }),
  13262. s = {
  13263. "Content-Type": "application/json"
  13264. };
  13265. return "auth" !== t && (n.token = this.accessToken, s["x-basement-token"] = this.accessToken), s["x-serverless-sign"] = le.sign(n, this.config.clientSecret), {
  13266. url: this.config.requestUrl,
  13267. method: "POST",
  13268. data: n,
  13269. dataType: "json",
  13270. header: s
  13271. };
  13272. }
  13273. }, {
  13274. key: "getAccessToken",
  13275. value: function getAccessToken() {
  13276. return this._getAccessTokenPromiseHub.exec();
  13277. }
  13278. }, {
  13279. key: "authorize",
  13280. value: function () {
  13281. var _authorize = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee() {
  13282. return _regenerator.default.wrap(function _callee$(_context) {
  13283. while (1) {
  13284. switch (_context.prev = _context.next) {
  13285. case 0:
  13286. _context.next = 2;
  13287. return this.getAccessToken();
  13288. case 2:
  13289. case "end":
  13290. return _context.stop();
  13291. }
  13292. }
  13293. }, _callee, this);
  13294. }));
  13295. function authorize() {
  13296. return _authorize.apply(this, arguments);
  13297. }
  13298. return authorize;
  13299. }()
  13300. }, {
  13301. key: "callFunction",
  13302. value: function callFunction(e) {
  13303. var t = {
  13304. method: "serverless.function.runtime.invoke",
  13305. params: JSON.stringify({
  13306. functionTarget: e.name,
  13307. functionArgs: e.data || {}
  13308. })
  13309. };
  13310. return this.request(_objectSpread(_objectSpread({}, this.setupRequest(t)), {}, {
  13311. timeout: e.timeout
  13312. }));
  13313. }
  13314. }, {
  13315. key: "getOSSUploadOptionsFromPath",
  13316. value: function getOSSUploadOptionsFromPath(e) {
  13317. var t = {
  13318. method: "serverless.file.resource.generateProximalSign",
  13319. params: JSON.stringify(e)
  13320. };
  13321. return this.request(this.setupRequest(t));
  13322. }
  13323. }, {
  13324. key: "uploadFileToOSS",
  13325. value: function uploadFileToOSS(_ref3) {
  13326. var _this5 = this;
  13327. var e = _ref3.url,
  13328. t = _ref3.formData,
  13329. n = _ref3.name,
  13330. s = _ref3.filePath,
  13331. r = _ref3.fileType,
  13332. i = _ref3.onUploadProgress;
  13333. return new Promise(function (o, a) {
  13334. var c = _this5.adapter.uploadFile({
  13335. url: e,
  13336. formData: t,
  13337. name: n,
  13338. filePath: s,
  13339. fileType: r,
  13340. header: {
  13341. "X-OSS-server-side-encrpytion": "AES256"
  13342. },
  13343. success: function success(e) {
  13344. e && e.statusCode < 400 ? o(e) : a(new te({
  13345. code: "UPLOAD_FAILED",
  13346. message: "文件上传失败"
  13347. }));
  13348. },
  13349. fail: function fail(e) {
  13350. a(new te({
  13351. code: e.code || "UPLOAD_FAILED",
  13352. message: e.message || e.errMsg || "文件上传失败"
  13353. }));
  13354. }
  13355. });
  13356. "function" == typeof i && c && "function" == typeof c.onProgressUpdate && c.onProgressUpdate(function (e) {
  13357. i({
  13358. loaded: e.totalBytesSent,
  13359. total: e.totalBytesExpectedToSend
  13360. });
  13361. });
  13362. });
  13363. }
  13364. }, {
  13365. key: "reportOSSUpload",
  13366. value: function reportOSSUpload(e) {
  13367. var t = {
  13368. method: "serverless.file.resource.report",
  13369. params: JSON.stringify(e)
  13370. };
  13371. return this.request(this.setupRequest(t));
  13372. }
  13373. }, {
  13374. key: "uploadFile",
  13375. value: function () {
  13376. var _uploadFile = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee2(_ref4) {
  13377. var e, t, _ref4$fileType, n, _ref4$cloudPathAsReal, s, r, i, o, a, c, u, h, l, d, p, f, m, y, _, _e5, w;
  13378. return _regenerator.default.wrap(function _callee2$(_context2) {
  13379. while (1) {
  13380. switch (_context2.prev = _context2.next) {
  13381. case 0:
  13382. e = _ref4.filePath, t = _ref4.cloudPath, _ref4$fileType = _ref4.fileType, n = _ref4$fileType === void 0 ? "image" : _ref4$fileType, _ref4$cloudPathAsReal = _ref4.cloudPathAsRealPath, s = _ref4$cloudPathAsReal === void 0 ? !1 : _ref4$cloudPathAsReal, r = _ref4.onUploadProgress, i = _ref4.config;
  13383. if (!("string" !== g(t))) {
  13384. _context2.next = 3;
  13385. break;
  13386. }
  13387. throw new te({
  13388. code: "INVALID_PARAM",
  13389. message: "cloudPath必须为字符串类型"
  13390. });
  13391. case 3:
  13392. if (t = t.trim()) {
  13393. _context2.next = 5;
  13394. break;
  13395. }
  13396. throw new te({
  13397. code: "INVALID_PARAM",
  13398. message: "cloudPath不可为空"
  13399. });
  13400. case 5:
  13401. if (!/:\/\//.test(t)) {
  13402. _context2.next = 7;
  13403. break;
  13404. }
  13405. throw new te({
  13406. code: "INVALID_PARAM",
  13407. message: "cloudPath不合法"
  13408. });
  13409. case 7:
  13410. o = i && i.envType || this.config.envType;
  13411. if (!(s && ("/" !== t[0] && (t = "/" + t), t.indexOf("\\") > -1))) {
  13412. _context2.next = 10;
  13413. break;
  13414. }
  13415. throw new te({
  13416. code: "INVALID_PARAM",
  13417. message: "使用cloudPath作为路径时,cloudPath不可包含“\\”"
  13418. });
  13419. case 10:
  13420. _context2.next = 12;
  13421. return this.getOSSUploadOptionsFromPath({
  13422. env: o,
  13423. filename: s ? t.split("/").pop() : t,
  13424. fileId: s ? t : void 0
  13425. });
  13426. case 12:
  13427. a = _context2.sent.result;
  13428. c = "https://" + a.cdnDomain + "/" + a.ossPath;
  13429. u = a.securityToken;
  13430. h = a.accessKeyId;
  13431. l = a.signature;
  13432. d = a.host;
  13433. p = a.ossPath;
  13434. f = a.id;
  13435. m = a.policy;
  13436. y = a.ossCallbackUrl;
  13437. _ = {
  13438. "Cache-Control": "max-age=2592000",
  13439. "Content-Disposition": "attachment",
  13440. OSSAccessKeyId: h,
  13441. Signature: l,
  13442. host: d,
  13443. id: f,
  13444. key: p,
  13445. policy: m,
  13446. success_action_status: 200
  13447. };
  13448. if (u && (_["x-oss-security-token"] = u), y) {
  13449. _e5 = JSON.stringify({
  13450. callbackUrl: y,
  13451. callbackBody: JSON.stringify({
  13452. fileId: f,
  13453. spaceId: this.config.spaceId
  13454. }),
  13455. callbackBodyType: "application/json"
  13456. });
  13457. _.callback = le.toBase64(_e5);
  13458. }
  13459. w = {
  13460. url: "https://" + a.host,
  13461. formData: _,
  13462. fileName: "file",
  13463. name: "file",
  13464. filePath: e,
  13465. fileType: n
  13466. };
  13467. _context2.next = 27;
  13468. return this.uploadFileToOSS(Object.assign({}, w, {
  13469. onUploadProgress: r
  13470. }));
  13471. case 27:
  13472. if (!y) {
  13473. _context2.next = 29;
  13474. break;
  13475. }
  13476. return _context2.abrupt("return", {
  13477. success: !0,
  13478. filePath: e,
  13479. fileID: c
  13480. });
  13481. case 29:
  13482. _context2.next = 31;
  13483. return this.reportOSSUpload({
  13484. id: f
  13485. });
  13486. case 31:
  13487. if (!_context2.sent.success) {
  13488. _context2.next = 33;
  13489. break;
  13490. }
  13491. return _context2.abrupt("return", {
  13492. success: !0,
  13493. filePath: e,
  13494. fileID: c
  13495. });
  13496. case 33:
  13497. throw new te({
  13498. code: "UPLOAD_FAILED",
  13499. message: "文件上传失败"
  13500. });
  13501. case 34:
  13502. case "end":
  13503. return _context2.stop();
  13504. }
  13505. }
  13506. }, _callee2, this);
  13507. }));
  13508. function uploadFile(_x) {
  13509. return _uploadFile.apply(this, arguments);
  13510. }
  13511. return uploadFile;
  13512. }()
  13513. }, {
  13514. key: "getTempFileURL",
  13515. value: function getTempFileURL() {
  13516. var _this6 = this;
  13517. var _ref5 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
  13518. e = _ref5.fileList;
  13519. return new Promise(function (t, n) {
  13520. Array.isArray(e) && 0 !== e.length || n(new te({
  13521. code: "INVALID_PARAM",
  13522. message: "fileList的元素必须是非空的字符串"
  13523. })), _this6.getFileInfo({
  13524. fileList: e
  13525. }).then(function (n) {
  13526. t({
  13527. fileList: e.map(function (e, t) {
  13528. var s = n.fileList[t];
  13529. return {
  13530. fileID: e,
  13531. tempFileURL: s && s.url || e
  13532. };
  13533. })
  13534. });
  13535. });
  13536. });
  13537. }
  13538. }, {
  13539. key: "getFileInfo",
  13540. value: function () {
  13541. var _getFileInfo = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee3() {
  13542. var _ref6,
  13543. e,
  13544. t,
  13545. _args3 = arguments;
  13546. return _regenerator.default.wrap(function _callee3$(_context3) {
  13547. while (1) {
  13548. switch (_context3.prev = _context3.next) {
  13549. case 0:
  13550. _ref6 = _args3.length > 0 && _args3[0] !== undefined ? _args3[0] : {}, e = _ref6.fileList;
  13551. if (!(!Array.isArray(e) || 0 === e.length)) {
  13552. _context3.next = 3;
  13553. break;
  13554. }
  13555. throw new te({
  13556. code: "INVALID_PARAM",
  13557. message: "fileList的元素必须是非空的字符串"
  13558. });
  13559. case 3:
  13560. t = {
  13561. method: "serverless.file.resource.info",
  13562. params: JSON.stringify({
  13563. id: e.map(function (e) {
  13564. return e.split("?")[0];
  13565. }).join(",")
  13566. })
  13567. };
  13568. _context3.next = 6;
  13569. return this.request(this.setupRequest(t));
  13570. case 6:
  13571. _context3.t0 = _context3.sent.result;
  13572. return _context3.abrupt("return", {
  13573. fileList: _context3.t0
  13574. });
  13575. case 8:
  13576. case "end":
  13577. return _context3.stop();
  13578. }
  13579. }
  13580. }, _callee3, this);
  13581. }));
  13582. function getFileInfo() {
  13583. return _getFileInfo.apply(this, arguments);
  13584. }
  13585. return getFileInfo;
  13586. }()
  13587. }]);
  13588. return de;
  13589. }();
  13590. var pe = {
  13591. init: function init(e) {
  13592. var t = new de(e),
  13593. n = {
  13594. signInAnonymously: function signInAnonymously() {
  13595. return t.authorize();
  13596. },
  13597. getLoginState: function getLoginState() {
  13598. return Promise.resolve(!1);
  13599. }
  13600. };
  13601. return t.auth = function () {
  13602. return n;
  13603. }, t.customAuth = t.auth, t;
  13604. }
  13605. };
  13606. var fe = "undefined" != typeof location && "http:" === location.protocol ? "http:" : "https:";
  13607. var ge;
  13608. !function (e) {
  13609. e.local = "local", e.none = "none", e.session = "session";
  13610. }(ge || (ge = {}));
  13611. var me = function me() {},
  13612. ye = n(function (e, t) {
  13613. var n;
  13614. e.exports = (n = r, function (e) {
  13615. var t = n,
  13616. s = t.lib,
  13617. r = s.WordArray,
  13618. i = s.Hasher,
  13619. o = t.algo,
  13620. a = [],
  13621. c = [];
  13622. !function () {
  13623. function t(t) {
  13624. for (var n = e.sqrt(t), s = 2; s <= n; s++) {
  13625. if (!(t % s)) return !1;
  13626. }
  13627. return !0;
  13628. }
  13629. function n(e) {
  13630. return 4294967296 * (e - (0 | e)) | 0;
  13631. }
  13632. for (var s = 2, r = 0; r < 64;) {
  13633. t(s) && (r < 8 && (a[r] = n(e.pow(s, .5))), c[r] = n(e.pow(s, 1 / 3)), r++), s++;
  13634. }
  13635. }();
  13636. var u = [],
  13637. h = o.SHA256 = i.extend({
  13638. _doReset: function _doReset() {
  13639. this._hash = new r.init(a.slice(0));
  13640. },
  13641. _doProcessBlock: function _doProcessBlock(e, t) {
  13642. for (var n = this._hash.words, s = n[0], r = n[1], i = n[2], o = n[3], a = n[4], h = n[5], l = n[6], d = n[7], p = 0; p < 64; p++) {
  13643. if (p < 16) u[p] = 0 | e[t + p];else {
  13644. var f = u[p - 15],
  13645. g = (f << 25 | f >>> 7) ^ (f << 14 | f >>> 18) ^ f >>> 3,
  13646. m = u[p - 2],
  13647. y = (m << 15 | m >>> 17) ^ (m << 13 | m >>> 19) ^ m >>> 10;
  13648. u[p] = g + u[p - 7] + y + u[p - 16];
  13649. }
  13650. var _ = s & r ^ s & i ^ r & i,
  13651. w = (s << 30 | s >>> 2) ^ (s << 19 | s >>> 13) ^ (s << 10 | s >>> 22),
  13652. I = d + ((a << 26 | a >>> 6) ^ (a << 21 | a >>> 11) ^ (a << 7 | a >>> 25)) + (a & h ^ ~a & l) + c[p] + u[p];
  13653. d = l, l = h, h = a, a = o + I | 0, o = i, i = r, r = s, s = I + (w + _) | 0;
  13654. }
  13655. n[0] = n[0] + s | 0, n[1] = n[1] + r | 0, n[2] = n[2] + i | 0, n[3] = n[3] + o | 0, n[4] = n[4] + a | 0, n[5] = n[5] + h | 0, n[6] = n[6] + l | 0, n[7] = n[7] + d | 0;
  13656. },
  13657. _doFinalize: function _doFinalize() {
  13658. var t = this._data,
  13659. n = t.words,
  13660. s = 8 * this._nDataBytes,
  13661. r = 8 * t.sigBytes;
  13662. return n[r >>> 5] |= 128 << 24 - r % 32, n[14 + (r + 64 >>> 9 << 4)] = e.floor(s / 4294967296), n[15 + (r + 64 >>> 9 << 4)] = s, t.sigBytes = 4 * n.length, this._process(), this._hash;
  13663. },
  13664. clone: function clone() {
  13665. var e = i.clone.call(this);
  13666. return e._hash = this._hash.clone(), e;
  13667. }
  13668. });
  13669. t.SHA256 = i._createHelper(h), t.HmacSHA256 = i._createHmacHelper(h);
  13670. }(Math), n.SHA256);
  13671. }),
  13672. _e = ye,
  13673. we = n(function (e, t) {
  13674. e.exports = r.HmacSHA256;
  13675. });
  13676. var Ie = function Ie() {
  13677. var e;
  13678. if (!Promise) {
  13679. e = function e() {}, e.promise = {};
  13680. var _t3 = function _t3() {
  13681. throw new te({
  13682. message: 'Your Node runtime does support ES6 Promises. Set "global.Promise" to your preferred implementation of promises.'
  13683. });
  13684. };
  13685. return Object.defineProperty(e.promise, "then", {
  13686. get: _t3
  13687. }), Object.defineProperty(e.promise, "catch", {
  13688. get: _t3
  13689. }), e;
  13690. }
  13691. var t = new Promise(function (t, n) {
  13692. e = function e(_e6, s) {
  13693. return _e6 ? n(_e6) : t(s);
  13694. };
  13695. });
  13696. return e.promise = t, e;
  13697. };
  13698. function ve(e) {
  13699. return void 0 === e;
  13700. }
  13701. function Se(e) {
  13702. return "[object Null]" === Object.prototype.toString.call(e);
  13703. }
  13704. function Te() {
  13705. var e = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : "";
  13706. return e.replace(/([\s\S]+)\s+(请前往云开发AI小助手查看问题:.*)/, "$1");
  13707. }
  13708. function be() {
  13709. var e = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 32;
  13710. var t = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";
  13711. var n = "";
  13712. for (var _s4 = 0; _s4 < e; _s4++) {
  13713. n += t.charAt(Math.floor(62 * Math.random()));
  13714. }
  13715. return n;
  13716. }
  13717. var Ee;
  13718. function ke(e) {
  13719. var t = (n = e, "[object Array]" === Object.prototype.toString.call(n) ? e : [e]);
  13720. var n;
  13721. var _iterator = _createForOfIteratorHelper(t),
  13722. _step;
  13723. try {
  13724. for (_iterator.s(); !(_step = _iterator.n()).done;) {
  13725. var _e7 = _step.value;
  13726. var _t4 = _e7.isMatch,
  13727. _n6 = _e7.genAdapter,
  13728. _s5 = _e7.runtime;
  13729. if (_t4()) return {
  13730. adapter: _n6(),
  13731. runtime: _s5
  13732. };
  13733. }
  13734. } catch (err) {
  13735. _iterator.e(err);
  13736. } finally {
  13737. _iterator.f();
  13738. }
  13739. }
  13740. !function (e) {
  13741. e.WEB = "web", e.WX_MP = "wx_mp";
  13742. }(Ee || (Ee = {}));
  13743. var Ae = {
  13744. adapter: null,
  13745. runtime: void 0
  13746. },
  13747. Pe = ["anonymousUuidKey"];
  13748. var Ce = /*#__PURE__*/function (_me) {
  13749. (0, _inherits2.default)(Ce, _me);
  13750. var _super2 = _createSuper(Ce);
  13751. function Ce() {
  13752. var _this7;
  13753. (0, _classCallCheck2.default)(this, Ce);
  13754. _this7 = _super2.call(this), Ae.adapter.root.tcbObject || (Ae.adapter.root.tcbObject = {});
  13755. return _this7;
  13756. }
  13757. (0, _createClass2.default)(Ce, [{
  13758. key: "setItem",
  13759. value: function setItem(e, t) {
  13760. Ae.adapter.root.tcbObject[e] = t;
  13761. }
  13762. }, {
  13763. key: "getItem",
  13764. value: function getItem(e) {
  13765. return Ae.adapter.root.tcbObject[e];
  13766. }
  13767. }, {
  13768. key: "removeItem",
  13769. value: function removeItem(e) {
  13770. delete Ae.adapter.root.tcbObject[e];
  13771. }
  13772. }, {
  13773. key: "clear",
  13774. value: function clear() {
  13775. delete Ae.adapter.root.tcbObject;
  13776. }
  13777. }]);
  13778. return Ce;
  13779. }(me);
  13780. function Oe(e, t) {
  13781. switch (e) {
  13782. case "local":
  13783. return t.localStorage || new Ce();
  13784. case "none":
  13785. return new Ce();
  13786. default:
  13787. return t.sessionStorage || new Ce();
  13788. }
  13789. }
  13790. var xe = /*#__PURE__*/function () {
  13791. function xe(e) {
  13792. (0, _classCallCheck2.default)(this, xe);
  13793. if (!this._storage) {
  13794. this._persistence = Ae.adapter.primaryStorage || e.persistence, this._storage = Oe(this._persistence, Ae.adapter);
  13795. var _t5 = "access_token_".concat(e.env),
  13796. _n7 = "access_token_expire_".concat(e.env),
  13797. _s6 = "refresh_token_".concat(e.env),
  13798. _r2 = "anonymous_uuid_".concat(e.env),
  13799. _i = "login_type_".concat(e.env),
  13800. _o = "device_id",
  13801. _a = "token_type_".concat(e.env),
  13802. _c = "user_info_".concat(e.env);
  13803. this.keys = {
  13804. accessTokenKey: _t5,
  13805. accessTokenExpireKey: _n7,
  13806. refreshTokenKey: _s6,
  13807. anonymousUuidKey: _r2,
  13808. loginTypeKey: _i,
  13809. userInfoKey: _c,
  13810. deviceIdKey: _o,
  13811. tokenTypeKey: _a
  13812. };
  13813. }
  13814. }
  13815. (0, _createClass2.default)(xe, [{
  13816. key: "updatePersistence",
  13817. value: function updatePersistence(e) {
  13818. if (e === this._persistence) return;
  13819. var t = "local" === this._persistence;
  13820. this._persistence = e;
  13821. var n = Oe(e, Ae.adapter);
  13822. for (var _e8 in this.keys) {
  13823. var _s7 = this.keys[_e8];
  13824. if (t && Pe.includes(_e8)) continue;
  13825. var _r3 = this._storage.getItem(_s7);
  13826. ve(_r3) || Se(_r3) || (n.setItem(_s7, _r3), this._storage.removeItem(_s7));
  13827. }
  13828. this._storage = n;
  13829. }
  13830. }, {
  13831. key: "setStore",
  13832. value: function setStore(e, t, n) {
  13833. if (!this._storage) return;
  13834. var s = {
  13835. version: n || "localCachev1",
  13836. content: t
  13837. },
  13838. r = JSON.stringify(s);
  13839. try {
  13840. this._storage.setItem(e, r);
  13841. } catch (e) {
  13842. throw e;
  13843. }
  13844. }
  13845. }, {
  13846. key: "getStore",
  13847. value: function getStore(e, t) {
  13848. try {
  13849. if (!this._storage) return;
  13850. } catch (e) {
  13851. return "";
  13852. }
  13853. t = t || "localCachev1";
  13854. var n = this._storage.getItem(e);
  13855. if (!n) return "";
  13856. if (n.indexOf(t) >= 0) {
  13857. return JSON.parse(n).content;
  13858. }
  13859. return "";
  13860. }
  13861. }, {
  13862. key: "removeStore",
  13863. value: function removeStore(e) {
  13864. this._storage.removeItem(e);
  13865. }
  13866. }]);
  13867. return xe;
  13868. }();
  13869. var Ne = {},
  13870. Re = {};
  13871. function Le(e) {
  13872. return Ne[e];
  13873. }
  13874. var Ue = /*#__PURE__*/(0, _createClass2.default)(function Ue(e, t) {
  13875. (0, _classCallCheck2.default)(this, Ue);
  13876. this.data = t || null, this.name = e;
  13877. });
  13878. var De = /*#__PURE__*/function (_Ue) {
  13879. (0, _inherits2.default)(De, _Ue);
  13880. var _super3 = _createSuper(De);
  13881. function De(e, t) {
  13882. var _this8;
  13883. (0, _classCallCheck2.default)(this, De);
  13884. _this8 = _super3.call(this, "error", {
  13885. error: e,
  13886. data: t
  13887. }), _this8.error = e;
  13888. return _this8;
  13889. }
  13890. return (0, _createClass2.default)(De);
  13891. }(Ue);
  13892. var Me = new ( /*#__PURE__*/function () {
  13893. function _class() {
  13894. (0, _classCallCheck2.default)(this, _class);
  13895. this._listeners = {};
  13896. }
  13897. (0, _createClass2.default)(_class, [{
  13898. key: "on",
  13899. value: function on(e, t) {
  13900. return function (e, t, n) {
  13901. n[e] = n[e] || [], n[e].push(t);
  13902. }(e, t, this._listeners), this;
  13903. }
  13904. }, {
  13905. key: "off",
  13906. value: function off(e, t) {
  13907. return function (e, t, n) {
  13908. if (n && n[e]) {
  13909. var _s8 = n[e].indexOf(t);
  13910. -1 !== _s8 && n[e].splice(_s8, 1);
  13911. }
  13912. }(e, t, this._listeners), this;
  13913. }
  13914. }, {
  13915. key: "fire",
  13916. value: function fire(e, t) {
  13917. if (e instanceof De) return console.error(e.error), this;
  13918. var n = "string" == typeof e ? new Ue(e, t || {}) : e;
  13919. var s = n.name;
  13920. if (this._listens(s)) {
  13921. n.target = this;
  13922. var _e9 = this._listeners[s] ? (0, _toConsumableArray2.default)(this._listeners[s]) : [];
  13923. var _iterator2 = _createForOfIteratorHelper(_e9),
  13924. _step2;
  13925. try {
  13926. for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
  13927. var _t6 = _step2.value;
  13928. _t6.call(this, n);
  13929. }
  13930. } catch (err) {
  13931. _iterator2.e(err);
  13932. } finally {
  13933. _iterator2.f();
  13934. }
  13935. }
  13936. return this;
  13937. }
  13938. }, {
  13939. key: "_listens",
  13940. value: function _listens(e) {
  13941. return this._listeners[e] && this._listeners[e].length > 0;
  13942. }
  13943. }]);
  13944. return _class;
  13945. }())();
  13946. function qe(e, t) {
  13947. Me.on(e, t);
  13948. }
  13949. function Fe(e) {
  13950. var t = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  13951. Me.fire(e, t);
  13952. }
  13953. function Ke(e, t) {
  13954. Me.off(e, t);
  13955. }
  13956. var je = "loginStateChanged",
  13957. $e = "loginStateExpire",
  13958. Be = "loginTypeChanged",
  13959. We = "anonymousConverted",
  13960. He = "refreshAccessToken";
  13961. var Je;
  13962. !function (e) {
  13963. e.ANONYMOUS = "ANONYMOUS", e.WECHAT = "WECHAT", e.WECHAT_PUBLIC = "WECHAT-PUBLIC", e.WECHAT_OPEN = "WECHAT-OPEN", e.CUSTOM = "CUSTOM", e.EMAIL = "EMAIL", e.USERNAME = "USERNAME", e.NULL = "NULL";
  13964. }(Je || (Je = {}));
  13965. var ze = /*#__PURE__*/function () {
  13966. function ze() {
  13967. (0, _classCallCheck2.default)(this, ze);
  13968. this._fnPromiseMap = new Map();
  13969. }
  13970. (0, _createClass2.default)(ze, [{
  13971. key: "run",
  13972. value: function () {
  13973. var _run = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee5(e, t) {
  13974. var _this9 = this;
  13975. var n;
  13976. return _regenerator.default.wrap(function _callee5$(_context5) {
  13977. while (1) {
  13978. switch (_context5.prev = _context5.next) {
  13979. case 0:
  13980. n = this._fnPromiseMap.get(e);
  13981. return _context5.abrupt("return", (n || (n = new Promise( /*#__PURE__*/function () {
  13982. var _ref7 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee4(n, s) {
  13983. var _e10;
  13984. return _regenerator.default.wrap(function _callee4$(_context4) {
  13985. while (1) {
  13986. switch (_context4.prev = _context4.next) {
  13987. case 0:
  13988. _context4.prev = 0;
  13989. _context4.next = 3;
  13990. return _this9._runIdlePromise();
  13991. case 3:
  13992. _e10 = t();
  13993. _context4.t0 = n;
  13994. _context4.next = 7;
  13995. return _e10;
  13996. case 7:
  13997. _context4.t1 = _context4.sent;
  13998. (0, _context4.t0)(_context4.t1);
  13999. _context4.next = 14;
  14000. break;
  14001. case 11:
  14002. _context4.prev = 11;
  14003. _context4.t2 = _context4["catch"](0);
  14004. s(_context4.t2);
  14005. case 14:
  14006. _context4.prev = 14;
  14007. _this9._fnPromiseMap.delete(e);
  14008. return _context4.finish(14);
  14009. case 17:
  14010. case "end":
  14011. return _context4.stop();
  14012. }
  14013. }
  14014. }, _callee4, null, [[0, 11, 14, 17]]);
  14015. }));
  14016. return function (_x4, _x5) {
  14017. return _ref7.apply(this, arguments);
  14018. };
  14019. }()), this._fnPromiseMap.set(e, n)), n));
  14020. case 2:
  14021. case "end":
  14022. return _context5.stop();
  14023. }
  14024. }
  14025. }, _callee5, this);
  14026. }));
  14027. function run(_x2, _x3) {
  14028. return _run.apply(this, arguments);
  14029. }
  14030. return run;
  14031. }()
  14032. }, {
  14033. key: "_runIdlePromise",
  14034. value: function _runIdlePromise() {
  14035. return Promise.resolve();
  14036. }
  14037. }]);
  14038. return ze;
  14039. }();
  14040. var Ve = /*#__PURE__*/function () {
  14041. function Ve(e) {
  14042. (0, _classCallCheck2.default)(this, Ve);
  14043. this._singlePromise = new ze(), this._cache = Le(e.env), this._baseURL = "https://".concat(e.env, ".ap-shanghai.tcb-api.tencentcloudapi.com"), this._reqClass = new Ae.adapter.reqClass({
  14044. timeout: e.timeout,
  14045. timeoutMsg: "\u8BF7\u6C42\u5728".concat(e.timeout / 1e3, "s\u5185\u672A\u5B8C\u6210\uFF0C\u5DF2\u4E2D\u65AD"),
  14046. restrictedMethods: ["post"]
  14047. });
  14048. }
  14049. (0, _createClass2.default)(Ve, [{
  14050. key: "_getDeviceId",
  14051. value: function _getDeviceId() {
  14052. if (this._deviceID) return this._deviceID;
  14053. var e = this._cache.keys.deviceIdKey;
  14054. var t = this._cache.getStore(e);
  14055. return "string" == typeof t && t.length >= 16 && t.length <= 48 || (t = be(), this._cache.setStore(e, t)), this._deviceID = t, t;
  14056. }
  14057. }, {
  14058. key: "_request",
  14059. value: function () {
  14060. var _request2 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee6(e, t) {
  14061. var n,
  14062. s,
  14063. _e11,
  14064. _t7,
  14065. _n8,
  14066. _args6 = arguments;
  14067. return _regenerator.default.wrap(function _callee6$(_context6) {
  14068. while (1) {
  14069. switch (_context6.prev = _context6.next) {
  14070. case 0:
  14071. n = _args6.length > 2 && _args6[2] !== undefined ? _args6[2] : {};
  14072. s = {
  14073. "x-request-id": be(),
  14074. "x-device-id": this._getDeviceId()
  14075. };
  14076. if (!n.withAccessToken) {
  14077. _context6.next = 9;
  14078. break;
  14079. }
  14080. _e11 = this._cache.keys.tokenTypeKey;
  14081. _context6.next = 6;
  14082. return this.getAccessToken();
  14083. case 6:
  14084. _t7 = _context6.sent;
  14085. _n8 = this._cache.getStore(_e11);
  14086. s.authorization = "".concat(_n8, " ").concat(_t7);
  14087. case 9:
  14088. return _context6.abrupt("return", this._reqClass["get" === n.method ? "get" : "post"]({
  14089. url: "".concat(this._baseURL).concat(e),
  14090. data: t,
  14091. headers: s
  14092. }));
  14093. case 10:
  14094. case "end":
  14095. return _context6.stop();
  14096. }
  14097. }
  14098. }, _callee6, this);
  14099. }));
  14100. function _request(_x6, _x7) {
  14101. return _request2.apply(this, arguments);
  14102. }
  14103. return _request;
  14104. }()
  14105. }, {
  14106. key: "_fetchAccessToken",
  14107. value: function () {
  14108. var _fetchAccessToken2 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee8() {
  14109. var _this10 = this;
  14110. var _this$_cache$keys, e, t, n, s, r, i, o, a, c;
  14111. return _regenerator.default.wrap(function _callee8$(_context8) {
  14112. while (1) {
  14113. switch (_context8.prev = _context8.next) {
  14114. case 0:
  14115. _this$_cache$keys = this._cache.keys, e = _this$_cache$keys.loginTypeKey, t = _this$_cache$keys.accessTokenKey, n = _this$_cache$keys.accessTokenExpireKey, s = _this$_cache$keys.tokenTypeKey, r = this._cache.getStore(e);
  14116. if (!(r && r !== Je.ANONYMOUS)) {
  14117. _context8.next = 3;
  14118. break;
  14119. }
  14120. throw new te({
  14121. code: "INVALID_OPERATION",
  14122. message: "非匿名登录不支持刷新 access token"
  14123. });
  14124. case 3:
  14125. _context8.next = 5;
  14126. return this._singlePromise.run("fetchAccessToken", /*#__PURE__*/(0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee7() {
  14127. return _regenerator.default.wrap(function _callee7$(_context7) {
  14128. while (1) {
  14129. switch (_context7.prev = _context7.next) {
  14130. case 0:
  14131. _context7.next = 2;
  14132. return _this10._request("/auth/v1/signin/anonymously", {}, {
  14133. method: "post"
  14134. });
  14135. case 2:
  14136. return _context7.abrupt("return", _context7.sent.data);
  14137. case 3:
  14138. case "end":
  14139. return _context7.stop();
  14140. }
  14141. }
  14142. }, _callee7);
  14143. })));
  14144. case 5:
  14145. i = _context8.sent;
  14146. o = i.access_token;
  14147. a = i.expires_in;
  14148. c = i.token_type;
  14149. return _context8.abrupt("return", (this._cache.setStore(s, c), this._cache.setStore(t, o), this._cache.setStore(n, Date.now() + 1e3 * a), o));
  14150. case 10:
  14151. case "end":
  14152. return _context8.stop();
  14153. }
  14154. }
  14155. }, _callee8, this);
  14156. }));
  14157. function _fetchAccessToken() {
  14158. return _fetchAccessToken2.apply(this, arguments);
  14159. }
  14160. return _fetchAccessToken;
  14161. }()
  14162. }, {
  14163. key: "isAccessTokenExpired",
  14164. value: function isAccessTokenExpired(e, t) {
  14165. var n = !0;
  14166. return e && t && (n = t < Date.now()), n;
  14167. }
  14168. }, {
  14169. key: "getAccessToken",
  14170. value: function () {
  14171. var _getAccessToken = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee9() {
  14172. var _this$_cache$keys2, e, t, n, s;
  14173. return _regenerator.default.wrap(function _callee9$(_context9) {
  14174. while (1) {
  14175. switch (_context9.prev = _context9.next) {
  14176. case 0:
  14177. _this$_cache$keys2 = this._cache.keys, e = _this$_cache$keys2.accessTokenKey, t = _this$_cache$keys2.accessTokenExpireKey, n = this._cache.getStore(e), s = this._cache.getStore(t);
  14178. return _context9.abrupt("return", this.isAccessTokenExpired(n, s) ? this._fetchAccessToken() : n);
  14179. case 2:
  14180. case "end":
  14181. return _context9.stop();
  14182. }
  14183. }
  14184. }, _callee9, this);
  14185. }));
  14186. function getAccessToken() {
  14187. return _getAccessToken.apply(this, arguments);
  14188. }
  14189. return getAccessToken;
  14190. }()
  14191. }, {
  14192. key: "refreshAccessToken",
  14193. value: function () {
  14194. var _refreshAccessToken = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee10() {
  14195. var _this$_cache$keys3, e, t, n;
  14196. return _regenerator.default.wrap(function _callee10$(_context10) {
  14197. while (1) {
  14198. switch (_context10.prev = _context10.next) {
  14199. case 0:
  14200. _this$_cache$keys3 = this._cache.keys, e = _this$_cache$keys3.accessTokenKey, t = _this$_cache$keys3.accessTokenExpireKey, n = _this$_cache$keys3.loginTypeKey;
  14201. return _context10.abrupt("return", (this._cache.removeStore(e), this._cache.removeStore(t), this._cache.setStore(n, Je.ANONYMOUS), this.getAccessToken()));
  14202. case 2:
  14203. case "end":
  14204. return _context10.stop();
  14205. }
  14206. }
  14207. }, _callee10, this);
  14208. }));
  14209. function refreshAccessToken() {
  14210. return _refreshAccessToken.apply(this, arguments);
  14211. }
  14212. return refreshAccessToken;
  14213. }()
  14214. }, {
  14215. key: "getUserInfo",
  14216. value: function () {
  14217. var _getUserInfo = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee12() {
  14218. var _this11 = this;
  14219. return _regenerator.default.wrap(function _callee12$(_context12) {
  14220. while (1) {
  14221. switch (_context12.prev = _context12.next) {
  14222. case 0:
  14223. return _context12.abrupt("return", this._singlePromise.run("getUserInfo", /*#__PURE__*/(0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee11() {
  14224. return _regenerator.default.wrap(function _callee11$(_context11) {
  14225. while (1) {
  14226. switch (_context11.prev = _context11.next) {
  14227. case 0:
  14228. _context11.next = 2;
  14229. return _this11._request("/auth/v1/user/me", {}, {
  14230. withAccessToken: !0,
  14231. method: "get"
  14232. });
  14233. case 2:
  14234. return _context11.abrupt("return", _context11.sent.data);
  14235. case 3:
  14236. case "end":
  14237. return _context11.stop();
  14238. }
  14239. }
  14240. }, _callee11);
  14241. }))));
  14242. case 1:
  14243. case "end":
  14244. return _context12.stop();
  14245. }
  14246. }
  14247. }, _callee12, this);
  14248. }));
  14249. function getUserInfo() {
  14250. return _getUserInfo.apply(this, arguments);
  14251. }
  14252. return getUserInfo;
  14253. }()
  14254. }]);
  14255. return Ve;
  14256. }();
  14257. var Ge = ["auth.getJwt", "auth.logout", "auth.signInWithTicket", "auth.signInAnonymously", "auth.signIn", "auth.fetchAccessTokenWithRefreshToken", "auth.signUpWithEmailAndPassword", "auth.activateEndUserMail", "auth.sendPasswordResetEmail", "auth.resetPasswordWithToken", "auth.isUsernameRegistered"],
  14258. Ye = {
  14259. "X-SDK-Version": "1.3.5"
  14260. };
  14261. function Qe(e, t, n) {
  14262. var s = e[t];
  14263. e[t] = function (t) {
  14264. var r = {},
  14265. i = {};
  14266. n.forEach(function (n) {
  14267. var _n$call = n.call(e, t),
  14268. s = _n$call.data,
  14269. o = _n$call.headers;
  14270. Object.assign(r, s), Object.assign(i, o);
  14271. });
  14272. var o = t.data;
  14273. return o && function () {
  14274. var e;
  14275. if (e = o, "[object FormData]" !== Object.prototype.toString.call(e)) t.data = _objectSpread(_objectSpread({}, o), r);else for (var _e12 in r) {
  14276. o.append(_e12, r[_e12]);
  14277. }
  14278. }(), t.headers = _objectSpread(_objectSpread({}, t.headers || {}), i), s.call(e, t);
  14279. };
  14280. }
  14281. function Xe() {
  14282. var e = Math.random().toString(16).slice(2);
  14283. return {
  14284. data: {
  14285. seqId: e
  14286. },
  14287. headers: _objectSpread(_objectSpread({}, Ye), {}, {
  14288. "x-seqid": e
  14289. })
  14290. };
  14291. }
  14292. var Ze = /*#__PURE__*/function () {
  14293. function Ze() {
  14294. var e = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
  14295. (0, _classCallCheck2.default)(this, Ze);
  14296. var t;
  14297. this.config = e, this._reqClass = new Ae.adapter.reqClass({
  14298. timeout: this.config.timeout,
  14299. timeoutMsg: "\u8BF7\u6C42\u5728".concat(this.config.timeout / 1e3, "s\u5185\u672A\u5B8C\u6210\uFF0C\u5DF2\u4E2D\u65AD"),
  14300. restrictedMethods: ["post"]
  14301. }), this._cache = Le(this.config.env), this._localCache = (t = this.config.env, Re[t]), this.oauth = new Ve(this.config), Qe(this._reqClass, "post", [Xe]), Qe(this._reqClass, "upload", [Xe]), Qe(this._reqClass, "download", [Xe]);
  14302. }
  14303. (0, _createClass2.default)(Ze, [{
  14304. key: "post",
  14305. value: function () {
  14306. var _post = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee13(e) {
  14307. return _regenerator.default.wrap(function _callee13$(_context13) {
  14308. while (1) {
  14309. switch (_context13.prev = _context13.next) {
  14310. case 0:
  14311. _context13.next = 2;
  14312. return this._reqClass.post(e);
  14313. case 2:
  14314. return _context13.abrupt("return", _context13.sent);
  14315. case 3:
  14316. case "end":
  14317. return _context13.stop();
  14318. }
  14319. }
  14320. }, _callee13, this);
  14321. }));
  14322. function post(_x8) {
  14323. return _post.apply(this, arguments);
  14324. }
  14325. return post;
  14326. }()
  14327. }, {
  14328. key: "upload",
  14329. value: function () {
  14330. var _upload = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee14(e) {
  14331. return _regenerator.default.wrap(function _callee14$(_context14) {
  14332. while (1) {
  14333. switch (_context14.prev = _context14.next) {
  14334. case 0:
  14335. _context14.next = 2;
  14336. return this._reqClass.upload(e);
  14337. case 2:
  14338. return _context14.abrupt("return", _context14.sent);
  14339. case 3:
  14340. case "end":
  14341. return _context14.stop();
  14342. }
  14343. }
  14344. }, _callee14, this);
  14345. }));
  14346. function upload(_x9) {
  14347. return _upload.apply(this, arguments);
  14348. }
  14349. return upload;
  14350. }()
  14351. }, {
  14352. key: "download",
  14353. value: function () {
  14354. var _download = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee15(e) {
  14355. return _regenerator.default.wrap(function _callee15$(_context15) {
  14356. while (1) {
  14357. switch (_context15.prev = _context15.next) {
  14358. case 0:
  14359. _context15.next = 2;
  14360. return this._reqClass.download(e);
  14361. case 2:
  14362. return _context15.abrupt("return", _context15.sent);
  14363. case 3:
  14364. case "end":
  14365. return _context15.stop();
  14366. }
  14367. }
  14368. }, _callee15, this);
  14369. }));
  14370. function download(_x10) {
  14371. return _download.apply(this, arguments);
  14372. }
  14373. return download;
  14374. }()
  14375. }, {
  14376. key: "refreshAccessToken",
  14377. value: function () {
  14378. var _refreshAccessToken2 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee16() {
  14379. var e, t;
  14380. return _regenerator.default.wrap(function _callee16$(_context16) {
  14381. while (1) {
  14382. switch (_context16.prev = _context16.next) {
  14383. case 0:
  14384. this._refreshAccessTokenPromise || (this._refreshAccessTokenPromise = this._refreshAccessToken());
  14385. _context16.prev = 1;
  14386. _context16.next = 4;
  14387. return this._refreshAccessTokenPromise;
  14388. case 4:
  14389. e = _context16.sent;
  14390. _context16.next = 10;
  14391. break;
  14392. case 7:
  14393. _context16.prev = 7;
  14394. _context16.t0 = _context16["catch"](1);
  14395. t = _context16.t0;
  14396. case 10:
  14397. if (!(this._refreshAccessTokenPromise = null, this._shouldRefreshAccessTokenHook = null, t)) {
  14398. _context16.next = 12;
  14399. break;
  14400. }
  14401. throw t;
  14402. case 12:
  14403. return _context16.abrupt("return", e);
  14404. case 13:
  14405. case "end":
  14406. return _context16.stop();
  14407. }
  14408. }
  14409. }, _callee16, this, [[1, 7]]);
  14410. }));
  14411. function refreshAccessToken() {
  14412. return _refreshAccessToken2.apply(this, arguments);
  14413. }
  14414. return refreshAccessToken;
  14415. }()
  14416. }, {
  14417. key: "_refreshAccessToken",
  14418. value: function () {
  14419. var _refreshAccessToken3 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee17() {
  14420. var _this$_cache$keys4, e, t, n, s, r, i, o, a, _e13, _e14, _t8, _s9;
  14421. return _regenerator.default.wrap(function _callee17$(_context17) {
  14422. while (1) {
  14423. switch (_context17.prev = _context17.next) {
  14424. case 0:
  14425. _this$_cache$keys4 = this._cache.keys, e = _this$_cache$keys4.accessTokenKey, t = _this$_cache$keys4.accessTokenExpireKey, n = _this$_cache$keys4.refreshTokenKey, s = _this$_cache$keys4.loginTypeKey, r = _this$_cache$keys4.anonymousUuidKey;
  14426. this._cache.removeStore(e), this._cache.removeStore(t);
  14427. i = this._cache.getStore(n);
  14428. if (i) {
  14429. _context17.next = 5;
  14430. break;
  14431. }
  14432. throw new te({
  14433. message: "未登录CloudBase"
  14434. });
  14435. case 5:
  14436. o = {
  14437. refresh_token: i
  14438. };
  14439. _context17.next = 8;
  14440. return this.request("auth.fetchAccessTokenWithRefreshToken", o);
  14441. case 8:
  14442. a = _context17.sent;
  14443. if (!a.data.code) {
  14444. _context17.next = 21;
  14445. break;
  14446. }
  14447. _e13 = a.data.code;
  14448. if (!("SIGN_PARAM_INVALID" === _e13 || "REFRESH_TOKEN_EXPIRED" === _e13 || "INVALID_REFRESH_TOKEN" === _e13)) {
  14449. _context17.next = 20;
  14450. break;
  14451. }
  14452. if (!(this._cache.getStore(s) === Je.ANONYMOUS && "INVALID_REFRESH_TOKEN" === _e13)) {
  14453. _context17.next = 19;
  14454. break;
  14455. }
  14456. _e14 = this._cache.getStore(r);
  14457. _t8 = this._cache.getStore(n);
  14458. _context17.next = 17;
  14459. return this.send("auth.signInAnonymously", {
  14460. anonymous_uuid: _e14,
  14461. refresh_token: _t8
  14462. });
  14463. case 17:
  14464. _s9 = _context17.sent;
  14465. return _context17.abrupt("return", (this.setRefreshToken(_s9.refresh_token), this._refreshAccessToken()));
  14466. case 19:
  14467. Fe($e), this._cache.removeStore(n);
  14468. case 20:
  14469. throw new te({
  14470. code: a.data.code,
  14471. message: "\u5237\u65B0access token\u5931\u8D25\uFF1A".concat(a.data.code)
  14472. });
  14473. case 21:
  14474. if (!a.data.access_token) {
  14475. _context17.next = 23;
  14476. break;
  14477. }
  14478. return _context17.abrupt("return", (Fe(He), this._cache.setStore(e, a.data.access_token), this._cache.setStore(t, a.data.access_token_expire + Date.now()), {
  14479. accessToken: a.data.access_token,
  14480. accessTokenExpire: a.data.access_token_expire
  14481. }));
  14482. case 23:
  14483. a.data.refresh_token && (this._cache.removeStore(n), this._cache.setStore(n, a.data.refresh_token), this._refreshAccessToken());
  14484. case 24:
  14485. case "end":
  14486. return _context17.stop();
  14487. }
  14488. }
  14489. }, _callee17, this);
  14490. }));
  14491. function _refreshAccessToken() {
  14492. return _refreshAccessToken3.apply(this, arguments);
  14493. }
  14494. return _refreshAccessToken;
  14495. }()
  14496. }, {
  14497. key: "getAccessToken",
  14498. value: function () {
  14499. var _getAccessToken2 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee18() {
  14500. var _this$_cache$keys5, e, t, n, s, r, i;
  14501. return _regenerator.default.wrap(function _callee18$(_context18) {
  14502. while (1) {
  14503. switch (_context18.prev = _context18.next) {
  14504. case 0:
  14505. _this$_cache$keys5 = this._cache.keys, e = _this$_cache$keys5.accessTokenKey, t = _this$_cache$keys5.accessTokenExpireKey, n = _this$_cache$keys5.refreshTokenKey;
  14506. if (this._cache.getStore(n)) {
  14507. _context18.next = 3;
  14508. break;
  14509. }
  14510. throw new te({
  14511. message: "refresh token不存在,登录状态异常"
  14512. });
  14513. case 3:
  14514. s = this._cache.getStore(e), r = this._cache.getStore(t), i = !0;
  14515. _context18.t0 = this._shouldRefreshAccessTokenHook;
  14516. if (!_context18.t0) {
  14517. _context18.next = 9;
  14518. break;
  14519. }
  14520. _context18.next = 8;
  14521. return this._shouldRefreshAccessTokenHook(s, r);
  14522. case 8:
  14523. _context18.t0 = !_context18.sent;
  14524. case 9:
  14525. _context18.t1 = _context18.t0;
  14526. if (!_context18.t1) {
  14527. _context18.next = 12;
  14528. break;
  14529. }
  14530. i = !1;
  14531. case 12:
  14532. return _context18.abrupt("return", (!s || !r || r < Date.now()) && i ? this.refreshAccessToken() : {
  14533. accessToken: s,
  14534. accessTokenExpire: r
  14535. });
  14536. case 13:
  14537. case "end":
  14538. return _context18.stop();
  14539. }
  14540. }
  14541. }, _callee18, this);
  14542. }));
  14543. function getAccessToken() {
  14544. return _getAccessToken2.apply(this, arguments);
  14545. }
  14546. return getAccessToken;
  14547. }()
  14548. }, {
  14549. key: "request",
  14550. value: function () {
  14551. var _request3 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee19(e, t, n) {
  14552. var s, r, i, o, _e15, _e16, a, c, u, h, l, d, p, f, g;
  14553. return _regenerator.default.wrap(function _callee19$(_context19) {
  14554. while (1) {
  14555. switch (_context19.prev = _context19.next) {
  14556. case 0:
  14557. s = "x-tcb-trace_".concat(this.config.env);
  14558. r = "application/x-www-form-urlencoded";
  14559. i = _objectSpread({
  14560. action: e,
  14561. env: this.config.env,
  14562. dataVersion: "2019-08-16"
  14563. }, t);
  14564. _context19.t0 = -1 === Ge.indexOf(e);
  14565. if (!_context19.t0) {
  14566. _context19.next = 9;
  14567. break;
  14568. }
  14569. this._cache.keys;
  14570. _context19.next = 8;
  14571. return this.oauth.getAccessToken();
  14572. case 8:
  14573. i.access_token = _context19.sent;
  14574. case 9:
  14575. if (!("storage.uploadFile" === e)) {
  14576. _context19.next = 15;
  14577. break;
  14578. }
  14579. o = new FormData();
  14580. for (_e15 in o) {
  14581. o.hasOwnProperty(_e15) && void 0 !== o[_e15] && o.append(_e15, i[_e15]);
  14582. }
  14583. r = "multipart/form-data";
  14584. _context19.next = 17;
  14585. break;
  14586. case 15:
  14587. r = "application/json", o = {};
  14588. for (_e16 in i) {
  14589. void 0 !== i[_e16] && (o[_e16] = i[_e16]);
  14590. }
  14591. case 17:
  14592. a = {
  14593. headers: {
  14594. "content-type": r
  14595. }
  14596. };
  14597. n && n.timeout && (a.timeout = n.timeout), n && n.onUploadProgress && (a.onUploadProgress = n.onUploadProgress);
  14598. c = this._localCache.getStore(s);
  14599. c && (a.headers["X-TCB-Trace"] = c);
  14600. u = t.parse, h = t.inQuery, l = t.search;
  14601. d = {
  14602. env: this.config.env
  14603. };
  14604. u && (d.parse = !0), h && (d = _objectSpread(_objectSpread({}, h), d));
  14605. p = function (e, t) {
  14606. var n = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
  14607. var s = /\?/.test(t);
  14608. var r = "";
  14609. for (var _e17 in n) {
  14610. "" === r ? !s && (t += "?") : r += "&", r += "".concat(_e17, "=").concat(encodeURIComponent(n[_e17]));
  14611. }
  14612. return /^http(s)?\:\/\//.test(t += r) ? t : "".concat(e).concat(t);
  14613. }(fe, "//tcb-api.tencentcloudapi.com/web", d);
  14614. l && (p += l);
  14615. _context19.next = 28;
  14616. return this.post(_objectSpread({
  14617. url: p,
  14618. data: o
  14619. }, a));
  14620. case 28:
  14621. f = _context19.sent;
  14622. g = f.header && f.header["x-tcb-trace"];
  14623. if (!(g && this._localCache.setStore(s, g), 200 !== Number(f.status) && 200 !== Number(f.statusCode) || !f.data)) {
  14624. _context19.next = 32;
  14625. break;
  14626. }
  14627. throw new te({
  14628. code: "NETWORK_ERROR",
  14629. message: "network request error"
  14630. });
  14631. case 32:
  14632. return _context19.abrupt("return", f);
  14633. case 33:
  14634. case "end":
  14635. return _context19.stop();
  14636. }
  14637. }
  14638. }, _callee19, this);
  14639. }));
  14640. function request(_x11, _x12, _x13) {
  14641. return _request3.apply(this, arguments);
  14642. }
  14643. return request;
  14644. }()
  14645. }, {
  14646. key: "send",
  14647. value: function () {
  14648. var _send = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee20(e) {
  14649. var t,
  14650. n,
  14651. s,
  14652. _s10,
  14653. _args20 = arguments;
  14654. return _regenerator.default.wrap(function _callee20$(_context20) {
  14655. while (1) {
  14656. switch (_context20.prev = _context20.next) {
  14657. case 0:
  14658. t = _args20.length > 1 && _args20[1] !== undefined ? _args20[1] : {};
  14659. n = _args20.length > 2 && _args20[2] !== undefined ? _args20[2] : {};
  14660. _context20.next = 4;
  14661. return this.request(e, t, _objectSpread(_objectSpread({}, n), {}, {
  14662. onUploadProgress: t.onUploadProgress
  14663. }));
  14664. case 4:
  14665. s = _context20.sent;
  14666. if (!(("ACCESS_TOKEN_DISABLED" === s.data.code || "ACCESS_TOKEN_EXPIRED" === s.data.code) && -1 === Ge.indexOf(e))) {
  14667. _context20.next = 14;
  14668. break;
  14669. }
  14670. _context20.next = 8;
  14671. return this.oauth.refreshAccessToken();
  14672. case 8:
  14673. _context20.next = 10;
  14674. return this.request(e, t, _objectSpread(_objectSpread({}, n), {}, {
  14675. onUploadProgress: t.onUploadProgress
  14676. }));
  14677. case 10:
  14678. _s10 = _context20.sent;
  14679. if (!_s10.data.code) {
  14680. _context20.next = 13;
  14681. break;
  14682. }
  14683. throw new te({
  14684. code: _s10.data.code,
  14685. message: Te(_s10.data.message)
  14686. });
  14687. case 13:
  14688. return _context20.abrupt("return", _s10.data);
  14689. case 14:
  14690. if (!s.data.code) {
  14691. _context20.next = 16;
  14692. break;
  14693. }
  14694. throw new te({
  14695. code: s.data.code,
  14696. message: Te(s.data.message)
  14697. });
  14698. case 16:
  14699. return _context20.abrupt("return", s.data);
  14700. case 17:
  14701. case "end":
  14702. return _context20.stop();
  14703. }
  14704. }
  14705. }, _callee20, this);
  14706. }));
  14707. function send(_x14) {
  14708. return _send.apply(this, arguments);
  14709. }
  14710. return send;
  14711. }()
  14712. }, {
  14713. key: "setRefreshToken",
  14714. value: function setRefreshToken(e) {
  14715. var _this$_cache$keys6 = this._cache.keys,
  14716. t = _this$_cache$keys6.accessTokenKey,
  14717. n = _this$_cache$keys6.accessTokenExpireKey,
  14718. s = _this$_cache$keys6.refreshTokenKey;
  14719. this._cache.removeStore(t), this._cache.removeStore(n), this._cache.setStore(s, e);
  14720. }
  14721. }]);
  14722. return Ze;
  14723. }();
  14724. var et = {};
  14725. function tt(e) {
  14726. return et[e];
  14727. }
  14728. var nt = /*#__PURE__*/function () {
  14729. function nt(e) {
  14730. (0, _classCallCheck2.default)(this, nt);
  14731. this.config = e, this._cache = Le(e.env), this._request = tt(e.env);
  14732. }
  14733. (0, _createClass2.default)(nt, [{
  14734. key: "setRefreshToken",
  14735. value: function setRefreshToken(e) {
  14736. var _this$_cache$keys7 = this._cache.keys,
  14737. t = _this$_cache$keys7.accessTokenKey,
  14738. n = _this$_cache$keys7.accessTokenExpireKey,
  14739. s = _this$_cache$keys7.refreshTokenKey;
  14740. this._cache.removeStore(t), this._cache.removeStore(n), this._cache.setStore(s, e);
  14741. }
  14742. }, {
  14743. key: "setAccessToken",
  14744. value: function setAccessToken(e, t) {
  14745. var _this$_cache$keys8 = this._cache.keys,
  14746. n = _this$_cache$keys8.accessTokenKey,
  14747. s = _this$_cache$keys8.accessTokenExpireKey;
  14748. this._cache.setStore(n, e), this._cache.setStore(s, t);
  14749. }
  14750. }, {
  14751. key: "refreshUserInfo",
  14752. value: function () {
  14753. var _refreshUserInfo = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee21() {
  14754. var _yield$this$_request$, e;
  14755. return _regenerator.default.wrap(function _callee21$(_context21) {
  14756. while (1) {
  14757. switch (_context21.prev = _context21.next) {
  14758. case 0:
  14759. _context21.next = 2;
  14760. return this._request.send("auth.getUserInfo", {});
  14761. case 2:
  14762. _yield$this$_request$ = _context21.sent;
  14763. e = _yield$this$_request$.data;
  14764. return _context21.abrupt("return", (this.setLocalUserInfo(e), e));
  14765. case 5:
  14766. case "end":
  14767. return _context21.stop();
  14768. }
  14769. }
  14770. }, _callee21, this);
  14771. }));
  14772. function refreshUserInfo() {
  14773. return _refreshUserInfo.apply(this, arguments);
  14774. }
  14775. return refreshUserInfo;
  14776. }()
  14777. }, {
  14778. key: "setLocalUserInfo",
  14779. value: function setLocalUserInfo(e) {
  14780. var t = this._cache.keys.userInfoKey;
  14781. this._cache.setStore(t, e);
  14782. }
  14783. }]);
  14784. return nt;
  14785. }();
  14786. var st = /*#__PURE__*/function () {
  14787. function st(e) {
  14788. (0, _classCallCheck2.default)(this, st);
  14789. if (!e) throw new te({
  14790. code: "PARAM_ERROR",
  14791. message: "envId is not defined"
  14792. });
  14793. this._envId = e, this._cache = Le(this._envId), this._request = tt(this._envId), this.setUserInfo();
  14794. }
  14795. (0, _createClass2.default)(st, [{
  14796. key: "linkWithTicket",
  14797. value: function linkWithTicket(e) {
  14798. if ("string" != typeof e) throw new te({
  14799. code: "PARAM_ERROR",
  14800. message: "ticket must be string"
  14801. });
  14802. return this._request.send("auth.linkWithTicket", {
  14803. ticket: e
  14804. });
  14805. }
  14806. }, {
  14807. key: "linkWithRedirect",
  14808. value: function linkWithRedirect(e) {
  14809. e.signInWithRedirect();
  14810. }
  14811. }, {
  14812. key: "updatePassword",
  14813. value: function updatePassword(e, t) {
  14814. return this._request.send("auth.updatePassword", {
  14815. oldPassword: t,
  14816. newPassword: e
  14817. });
  14818. }
  14819. }, {
  14820. key: "updateEmail",
  14821. value: function updateEmail(e) {
  14822. return this._request.send("auth.updateEmail", {
  14823. newEmail: e
  14824. });
  14825. }
  14826. }, {
  14827. key: "updateUsername",
  14828. value: function updateUsername(e) {
  14829. if ("string" != typeof e) throw new te({
  14830. code: "PARAM_ERROR",
  14831. message: "username must be a string"
  14832. });
  14833. return this._request.send("auth.updateUsername", {
  14834. username: e
  14835. });
  14836. }
  14837. }, {
  14838. key: "getLinkedUidList",
  14839. value: function () {
  14840. var _getLinkedUidList = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee22() {
  14841. var _yield$this$_request$2, e, t, n;
  14842. return _regenerator.default.wrap(function _callee22$(_context22) {
  14843. while (1) {
  14844. switch (_context22.prev = _context22.next) {
  14845. case 0:
  14846. _context22.next = 2;
  14847. return this._request.send("auth.getLinkedUidList", {});
  14848. case 2:
  14849. _yield$this$_request$2 = _context22.sent;
  14850. e = _yield$this$_request$2.data;
  14851. t = !1;
  14852. n = e.users;
  14853. return _context22.abrupt("return", (n.forEach(function (e) {
  14854. e.wxOpenId && e.wxPublicId && (t = !0);
  14855. }), {
  14856. users: n,
  14857. hasPrimaryUid: t
  14858. }));
  14859. case 7:
  14860. case "end":
  14861. return _context22.stop();
  14862. }
  14863. }
  14864. }, _callee22, this);
  14865. }));
  14866. function getLinkedUidList() {
  14867. return _getLinkedUidList.apply(this, arguments);
  14868. }
  14869. return getLinkedUidList;
  14870. }()
  14871. }, {
  14872. key: "setPrimaryUid",
  14873. value: function setPrimaryUid(e) {
  14874. return this._request.send("auth.setPrimaryUid", {
  14875. uid: e
  14876. });
  14877. }
  14878. }, {
  14879. key: "unlink",
  14880. value: function unlink(e) {
  14881. return this._request.send("auth.unlink", {
  14882. platform: e
  14883. });
  14884. }
  14885. }, {
  14886. key: "update",
  14887. value: function () {
  14888. var _update = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee23(e) {
  14889. var t, n, s, r, i, o, _yield$this$_request$3, a;
  14890. return _regenerator.default.wrap(function _callee23$(_context23) {
  14891. while (1) {
  14892. switch (_context23.prev = _context23.next) {
  14893. case 0:
  14894. t = e.nickName;
  14895. n = e.gender;
  14896. s = e.avatarUrl;
  14897. r = e.province;
  14898. i = e.country;
  14899. o = e.city;
  14900. _context23.next = 8;
  14901. return this._request.send("auth.updateUserInfo", {
  14902. nickName: t,
  14903. gender: n,
  14904. avatarUrl: s,
  14905. province: r,
  14906. country: i,
  14907. city: o
  14908. });
  14909. case 8:
  14910. _yield$this$_request$3 = _context23.sent;
  14911. a = _yield$this$_request$3.data;
  14912. this.setLocalUserInfo(a);
  14913. case 11:
  14914. case "end":
  14915. return _context23.stop();
  14916. }
  14917. }
  14918. }, _callee23, this);
  14919. }));
  14920. function update(_x15) {
  14921. return _update.apply(this, arguments);
  14922. }
  14923. return update;
  14924. }()
  14925. }, {
  14926. key: "refresh",
  14927. value: function () {
  14928. var _refresh = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee24() {
  14929. var e;
  14930. return _regenerator.default.wrap(function _callee24$(_context24) {
  14931. while (1) {
  14932. switch (_context24.prev = _context24.next) {
  14933. case 0:
  14934. _context24.next = 2;
  14935. return this._request.oauth.getUserInfo();
  14936. case 2:
  14937. e = _context24.sent;
  14938. return _context24.abrupt("return", (this.setLocalUserInfo(e), e));
  14939. case 4:
  14940. case "end":
  14941. return _context24.stop();
  14942. }
  14943. }
  14944. }, _callee24, this);
  14945. }));
  14946. function refresh() {
  14947. return _refresh.apply(this, arguments);
  14948. }
  14949. return refresh;
  14950. }()
  14951. }, {
  14952. key: "setUserInfo",
  14953. value: function setUserInfo() {
  14954. var _this12 = this;
  14955. var e = this._cache.keys.userInfoKey,
  14956. t = this._cache.getStore(e);
  14957. ["uid", "loginType", "openid", "wxOpenId", "wxPublicId", "unionId", "qqMiniOpenId", "email", "hasPassword", "customUserId", "nickName", "gender", "avatarUrl"].forEach(function (e) {
  14958. _this12[e] = t[e];
  14959. }), this.location = {
  14960. country: t.country,
  14961. province: t.province,
  14962. city: t.city
  14963. };
  14964. }
  14965. }, {
  14966. key: "setLocalUserInfo",
  14967. value: function setLocalUserInfo(e) {
  14968. var t = this._cache.keys.userInfoKey;
  14969. this._cache.setStore(t, e), this.setUserInfo();
  14970. }
  14971. }]);
  14972. return st;
  14973. }();
  14974. var rt = /*#__PURE__*/function () {
  14975. function rt(e) {
  14976. (0, _classCallCheck2.default)(this, rt);
  14977. if (!e) throw new te({
  14978. code: "PARAM_ERROR",
  14979. message: "envId is not defined"
  14980. });
  14981. this._cache = Le(e);
  14982. var _this$_cache$keys9 = this._cache.keys,
  14983. t = _this$_cache$keys9.refreshTokenKey,
  14984. n = _this$_cache$keys9.accessTokenKey,
  14985. s = _this$_cache$keys9.accessTokenExpireKey,
  14986. r = this._cache.getStore(t),
  14987. i = this._cache.getStore(n),
  14988. o = this._cache.getStore(s);
  14989. this.credential = {
  14990. refreshToken: r,
  14991. accessToken: i,
  14992. accessTokenExpire: o
  14993. }, this.user = new st(e);
  14994. }
  14995. (0, _createClass2.default)(rt, [{
  14996. key: "isAnonymousAuth",
  14997. get: function get() {
  14998. return this.loginType === Je.ANONYMOUS;
  14999. }
  15000. }, {
  15001. key: "isCustomAuth",
  15002. get: function get() {
  15003. return this.loginType === Je.CUSTOM;
  15004. }
  15005. }, {
  15006. key: "isWeixinAuth",
  15007. get: function get() {
  15008. return this.loginType === Je.WECHAT || this.loginType === Je.WECHAT_OPEN || this.loginType === Je.WECHAT_PUBLIC;
  15009. }
  15010. }, {
  15011. key: "loginType",
  15012. get: function get() {
  15013. return this._cache.getStore(this._cache.keys.loginTypeKey);
  15014. }
  15015. }]);
  15016. return rt;
  15017. }();
  15018. var it = /*#__PURE__*/function (_nt) {
  15019. (0, _inherits2.default)(it, _nt);
  15020. var _super4 = _createSuper(it);
  15021. function it() {
  15022. (0, _classCallCheck2.default)(this, it);
  15023. return _super4.apply(this, arguments);
  15024. }
  15025. (0, _createClass2.default)(it, [{
  15026. key: "signIn",
  15027. value: function () {
  15028. var _signIn = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee25() {
  15029. var e;
  15030. return _regenerator.default.wrap(function _callee25$(_context25) {
  15031. while (1) {
  15032. switch (_context25.prev = _context25.next) {
  15033. case 0:
  15034. this._cache.updatePersistence("local");
  15035. _context25.next = 3;
  15036. return this._request.oauth.getAccessToken();
  15037. case 3:
  15038. Fe(je);
  15039. Fe(Be, {
  15040. env: this.config.env,
  15041. loginType: Je.ANONYMOUS,
  15042. persistence: "local"
  15043. });
  15044. e = new rt(this.config.env);
  15045. _context25.next = 8;
  15046. return e.user.refresh();
  15047. case 8:
  15048. return _context25.abrupt("return", e);
  15049. case 9:
  15050. case "end":
  15051. return _context25.stop();
  15052. }
  15053. }
  15054. }, _callee25, this);
  15055. }));
  15056. function signIn() {
  15057. return _signIn.apply(this, arguments);
  15058. }
  15059. return signIn;
  15060. }()
  15061. }, {
  15062. key: "linkAndRetrieveDataWithTicket",
  15063. value: function () {
  15064. var _linkAndRetrieveDataWithTicket = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee26(e) {
  15065. var _this$_cache$keys10, t, n, s, r, i;
  15066. return _regenerator.default.wrap(function _callee26$(_context26) {
  15067. while (1) {
  15068. switch (_context26.prev = _context26.next) {
  15069. case 0:
  15070. _this$_cache$keys10 = this._cache.keys;
  15071. t = _this$_cache$keys10.anonymousUuidKey;
  15072. n = _this$_cache$keys10.refreshTokenKey;
  15073. s = this._cache.getStore(t);
  15074. r = this._cache.getStore(n);
  15075. _context26.next = 7;
  15076. return this._request.send("auth.linkAndRetrieveDataWithTicket", {
  15077. anonymous_uuid: s,
  15078. refresh_token: r,
  15079. ticket: e
  15080. });
  15081. case 7:
  15082. i = _context26.sent;
  15083. if (!i.refresh_token) {
  15084. _context26.next = 16;
  15085. break;
  15086. }
  15087. this._clearAnonymousUUID();
  15088. this.setRefreshToken(i.refresh_token);
  15089. _context26.next = 13;
  15090. return this._request.refreshAccessToken();
  15091. case 13:
  15092. Fe(We, {
  15093. env: this.config.env
  15094. });
  15095. Fe(Be, {
  15096. loginType: Je.CUSTOM,
  15097. persistence: "local"
  15098. });
  15099. return _context26.abrupt("return", {
  15100. credential: {
  15101. refreshToken: i.refresh_token
  15102. }
  15103. });
  15104. case 16:
  15105. throw new te({
  15106. message: "匿名转化失败"
  15107. });
  15108. case 17:
  15109. case "end":
  15110. return _context26.stop();
  15111. }
  15112. }
  15113. }, _callee26, this);
  15114. }));
  15115. function linkAndRetrieveDataWithTicket(_x16) {
  15116. return _linkAndRetrieveDataWithTicket.apply(this, arguments);
  15117. }
  15118. return linkAndRetrieveDataWithTicket;
  15119. }()
  15120. }, {
  15121. key: "_setAnonymousUUID",
  15122. value: function _setAnonymousUUID(e) {
  15123. var _this$_cache$keys11 = this._cache.keys,
  15124. t = _this$_cache$keys11.anonymousUuidKey,
  15125. n = _this$_cache$keys11.loginTypeKey;
  15126. this._cache.removeStore(t), this._cache.setStore(t, e), this._cache.setStore(n, Je.ANONYMOUS);
  15127. }
  15128. }, {
  15129. key: "_clearAnonymousUUID",
  15130. value: function _clearAnonymousUUID() {
  15131. this._cache.removeStore(this._cache.keys.anonymousUuidKey);
  15132. }
  15133. }]);
  15134. return it;
  15135. }(nt);
  15136. var ot = /*#__PURE__*/function (_nt2) {
  15137. (0, _inherits2.default)(ot, _nt2);
  15138. var _super5 = _createSuper(ot);
  15139. function ot() {
  15140. (0, _classCallCheck2.default)(this, ot);
  15141. return _super5.apply(this, arguments);
  15142. }
  15143. (0, _createClass2.default)(ot, [{
  15144. key: "signIn",
  15145. value: function () {
  15146. var _signIn2 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee27(e) {
  15147. var t, n;
  15148. return _regenerator.default.wrap(function _callee27$(_context27) {
  15149. while (1) {
  15150. switch (_context27.prev = _context27.next) {
  15151. case 0:
  15152. if (!("string" != typeof e)) {
  15153. _context27.next = 2;
  15154. break;
  15155. }
  15156. throw new te({
  15157. code: "PARAM_ERROR",
  15158. message: "ticket must be a string"
  15159. });
  15160. case 2:
  15161. t = this._cache.keys.refreshTokenKey;
  15162. _context27.next = 5;
  15163. return this._request.send("auth.signInWithTicket", {
  15164. ticket: e,
  15165. refresh_token: this._cache.getStore(t) || ""
  15166. });
  15167. case 5:
  15168. n = _context27.sent;
  15169. if (!n.refresh_token) {
  15170. _context27.next = 15;
  15171. break;
  15172. }
  15173. this.setRefreshToken(n.refresh_token);
  15174. _context27.next = 10;
  15175. return this._request.refreshAccessToken();
  15176. case 10:
  15177. Fe(je);
  15178. Fe(Be, {
  15179. env: this.config.env,
  15180. loginType: Je.CUSTOM,
  15181. persistence: this.config.persistence
  15182. });
  15183. _context27.next = 14;
  15184. return this.refreshUserInfo();
  15185. case 14:
  15186. return _context27.abrupt("return", new rt(this.config.env));
  15187. case 15:
  15188. throw new te({
  15189. message: "自定义登录失败"
  15190. });
  15191. case 16:
  15192. case "end":
  15193. return _context27.stop();
  15194. }
  15195. }
  15196. }, _callee27, this);
  15197. }));
  15198. function signIn(_x17) {
  15199. return _signIn2.apply(this, arguments);
  15200. }
  15201. return signIn;
  15202. }()
  15203. }]);
  15204. return ot;
  15205. }(nt);
  15206. var at = /*#__PURE__*/function (_nt3) {
  15207. (0, _inherits2.default)(at, _nt3);
  15208. var _super6 = _createSuper(at);
  15209. function at() {
  15210. (0, _classCallCheck2.default)(this, at);
  15211. return _super6.apply(this, arguments);
  15212. }
  15213. (0, _createClass2.default)(at, [{
  15214. key: "signIn",
  15215. value: function () {
  15216. var _signIn3 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee28(e, t) {
  15217. var n, s, r, i, o;
  15218. return _regenerator.default.wrap(function _callee28$(_context28) {
  15219. while (1) {
  15220. switch (_context28.prev = _context28.next) {
  15221. case 0:
  15222. if (!("string" != typeof e)) {
  15223. _context28.next = 2;
  15224. break;
  15225. }
  15226. throw new te({
  15227. code: "PARAM_ERROR",
  15228. message: "email must be a string"
  15229. });
  15230. case 2:
  15231. n = this._cache.keys.refreshTokenKey;
  15232. _context28.next = 5;
  15233. return this._request.send("auth.signIn", {
  15234. loginType: "EMAIL",
  15235. email: e,
  15236. password: t,
  15237. refresh_token: this._cache.getStore(n) || ""
  15238. });
  15239. case 5:
  15240. s = _context28.sent;
  15241. r = s.refresh_token;
  15242. i = s.access_token;
  15243. o = s.access_token_expire;
  15244. if (!r) {
  15245. _context28.next = 22;
  15246. break;
  15247. }
  15248. this.setRefreshToken(r);
  15249. if (!(i && o)) {
  15250. _context28.next = 15;
  15251. break;
  15252. }
  15253. this.setAccessToken(i, o);
  15254. _context28.next = 17;
  15255. break;
  15256. case 15:
  15257. _context28.next = 17;
  15258. return this._request.refreshAccessToken();
  15259. case 17:
  15260. _context28.next = 19;
  15261. return this.refreshUserInfo();
  15262. case 19:
  15263. Fe(je);
  15264. Fe(Be, {
  15265. env: this.config.env,
  15266. loginType: Je.EMAIL,
  15267. persistence: this.config.persistence
  15268. });
  15269. return _context28.abrupt("return", new rt(this.config.env));
  15270. case 22:
  15271. throw s.code ? new te({
  15272. code: s.code,
  15273. message: "\u90AE\u7BB1\u767B\u5F55\u5931\u8D25: ".concat(s.message)
  15274. }) : new te({
  15275. message: "邮箱登录失败"
  15276. });
  15277. case 23:
  15278. case "end":
  15279. return _context28.stop();
  15280. }
  15281. }
  15282. }, _callee28, this);
  15283. }));
  15284. function signIn(_x18, _x19) {
  15285. return _signIn3.apply(this, arguments);
  15286. }
  15287. return signIn;
  15288. }()
  15289. }, {
  15290. key: "activate",
  15291. value: function () {
  15292. var _activate = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee29(e) {
  15293. return _regenerator.default.wrap(function _callee29$(_context29) {
  15294. while (1) {
  15295. switch (_context29.prev = _context29.next) {
  15296. case 0:
  15297. return _context29.abrupt("return", this._request.send("auth.activateEndUserMail", {
  15298. token: e
  15299. }));
  15300. case 1:
  15301. case "end":
  15302. return _context29.stop();
  15303. }
  15304. }
  15305. }, _callee29, this);
  15306. }));
  15307. function activate(_x20) {
  15308. return _activate.apply(this, arguments);
  15309. }
  15310. return activate;
  15311. }()
  15312. }, {
  15313. key: "resetPasswordWithToken",
  15314. value: function () {
  15315. var _resetPasswordWithToken = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee30(e, t) {
  15316. return _regenerator.default.wrap(function _callee30$(_context30) {
  15317. while (1) {
  15318. switch (_context30.prev = _context30.next) {
  15319. case 0:
  15320. return _context30.abrupt("return", this._request.send("auth.resetPasswordWithToken", {
  15321. token: e,
  15322. newPassword: t
  15323. }));
  15324. case 1:
  15325. case "end":
  15326. return _context30.stop();
  15327. }
  15328. }
  15329. }, _callee30, this);
  15330. }));
  15331. function resetPasswordWithToken(_x21, _x22) {
  15332. return _resetPasswordWithToken.apply(this, arguments);
  15333. }
  15334. return resetPasswordWithToken;
  15335. }()
  15336. }]);
  15337. return at;
  15338. }(nt);
  15339. var ct = /*#__PURE__*/function (_nt4) {
  15340. (0, _inherits2.default)(ct, _nt4);
  15341. var _super7 = _createSuper(ct);
  15342. function ct() {
  15343. (0, _classCallCheck2.default)(this, ct);
  15344. return _super7.apply(this, arguments);
  15345. }
  15346. (0, _createClass2.default)(ct, [{
  15347. key: "signIn",
  15348. value: function () {
  15349. var _signIn4 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee31(e, t) {
  15350. var n, s, r, i, o;
  15351. return _regenerator.default.wrap(function _callee31$(_context31) {
  15352. while (1) {
  15353. switch (_context31.prev = _context31.next) {
  15354. case 0:
  15355. if (!("string" != typeof e)) {
  15356. _context31.next = 2;
  15357. break;
  15358. }
  15359. throw new te({
  15360. code: "PARAM_ERROR",
  15361. message: "username must be a string"
  15362. });
  15363. case 2:
  15364. "string" != typeof t && (t = "", console.warn("password is empty"));
  15365. n = this._cache.keys.refreshTokenKey;
  15366. _context31.next = 6;
  15367. return this._request.send("auth.signIn", {
  15368. loginType: Je.USERNAME,
  15369. username: e,
  15370. password: t,
  15371. refresh_token: this._cache.getStore(n) || ""
  15372. });
  15373. case 6:
  15374. s = _context31.sent;
  15375. r = s.refresh_token;
  15376. i = s.access_token_expire;
  15377. o = s.access_token;
  15378. if (!r) {
  15379. _context31.next = 23;
  15380. break;
  15381. }
  15382. this.setRefreshToken(r);
  15383. if (!(o && i)) {
  15384. _context31.next = 16;
  15385. break;
  15386. }
  15387. this.setAccessToken(o, i);
  15388. _context31.next = 18;
  15389. break;
  15390. case 16:
  15391. _context31.next = 18;
  15392. return this._request.refreshAccessToken();
  15393. case 18:
  15394. _context31.next = 20;
  15395. return this.refreshUserInfo();
  15396. case 20:
  15397. Fe(je);
  15398. Fe(Be, {
  15399. env: this.config.env,
  15400. loginType: Je.USERNAME,
  15401. persistence: this.config.persistence
  15402. });
  15403. return _context31.abrupt("return", new rt(this.config.env));
  15404. case 23:
  15405. throw s.code ? new te({
  15406. code: s.code,
  15407. message: "\u7528\u6237\u540D\u5BC6\u7801\u767B\u5F55\u5931\u8D25: ".concat(s.message)
  15408. }) : new te({
  15409. message: "用户名密码登录失败"
  15410. });
  15411. case 24:
  15412. case "end":
  15413. return _context31.stop();
  15414. }
  15415. }
  15416. }, _callee31, this);
  15417. }));
  15418. function signIn(_x23, _x24) {
  15419. return _signIn4.apply(this, arguments);
  15420. }
  15421. return signIn;
  15422. }()
  15423. }]);
  15424. return ct;
  15425. }(nt);
  15426. var ut = /*#__PURE__*/function () {
  15427. function ut(e) {
  15428. (0, _classCallCheck2.default)(this, ut);
  15429. this.config = e, this._cache = Le(e.env), this._request = tt(e.env), this._onAnonymousConverted = this._onAnonymousConverted.bind(this), this._onLoginTypeChanged = this._onLoginTypeChanged.bind(this), qe(Be, this._onLoginTypeChanged);
  15430. }
  15431. (0, _createClass2.default)(ut, [{
  15432. key: "currentUser",
  15433. get: function get() {
  15434. var e = this.hasLoginState();
  15435. return e && e.user || null;
  15436. }
  15437. }, {
  15438. key: "loginType",
  15439. get: function get() {
  15440. return this._cache.getStore(this._cache.keys.loginTypeKey);
  15441. }
  15442. }, {
  15443. key: "anonymousAuthProvider",
  15444. value: function anonymousAuthProvider() {
  15445. return new it(this.config);
  15446. }
  15447. }, {
  15448. key: "customAuthProvider",
  15449. value: function customAuthProvider() {
  15450. return new ot(this.config);
  15451. }
  15452. }, {
  15453. key: "emailAuthProvider",
  15454. value: function emailAuthProvider() {
  15455. return new at(this.config);
  15456. }
  15457. }, {
  15458. key: "usernameAuthProvider",
  15459. value: function usernameAuthProvider() {
  15460. return new ct(this.config);
  15461. }
  15462. }, {
  15463. key: "signInAnonymously",
  15464. value: function () {
  15465. var _signInAnonymously = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee32() {
  15466. return _regenerator.default.wrap(function _callee32$(_context32) {
  15467. while (1) {
  15468. switch (_context32.prev = _context32.next) {
  15469. case 0:
  15470. return _context32.abrupt("return", new it(this.config).signIn());
  15471. case 1:
  15472. case "end":
  15473. return _context32.stop();
  15474. }
  15475. }
  15476. }, _callee32, this);
  15477. }));
  15478. function signInAnonymously() {
  15479. return _signInAnonymously.apply(this, arguments);
  15480. }
  15481. return signInAnonymously;
  15482. }()
  15483. }, {
  15484. key: "signInWithEmailAndPassword",
  15485. value: function () {
  15486. var _signInWithEmailAndPassword = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee33(e, t) {
  15487. return _regenerator.default.wrap(function _callee33$(_context33) {
  15488. while (1) {
  15489. switch (_context33.prev = _context33.next) {
  15490. case 0:
  15491. return _context33.abrupt("return", new at(this.config).signIn(e, t));
  15492. case 1:
  15493. case "end":
  15494. return _context33.stop();
  15495. }
  15496. }
  15497. }, _callee33, this);
  15498. }));
  15499. function signInWithEmailAndPassword(_x25, _x26) {
  15500. return _signInWithEmailAndPassword.apply(this, arguments);
  15501. }
  15502. return signInWithEmailAndPassword;
  15503. }()
  15504. }, {
  15505. key: "signInWithUsernameAndPassword",
  15506. value: function signInWithUsernameAndPassword(e, t) {
  15507. return new ct(this.config).signIn(e, t);
  15508. }
  15509. }, {
  15510. key: "linkAndRetrieveDataWithTicket",
  15511. value: function () {
  15512. var _linkAndRetrieveDataWithTicket2 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee34(e) {
  15513. return _regenerator.default.wrap(function _callee34$(_context34) {
  15514. while (1) {
  15515. switch (_context34.prev = _context34.next) {
  15516. case 0:
  15517. this._anonymousAuthProvider || (this._anonymousAuthProvider = new it(this.config)), qe(We, this._onAnonymousConverted);
  15518. _context34.next = 3;
  15519. return this._anonymousAuthProvider.linkAndRetrieveDataWithTicket(e);
  15520. case 3:
  15521. return _context34.abrupt("return", _context34.sent);
  15522. case 4:
  15523. case "end":
  15524. return _context34.stop();
  15525. }
  15526. }
  15527. }, _callee34, this);
  15528. }));
  15529. function linkAndRetrieveDataWithTicket(_x27) {
  15530. return _linkAndRetrieveDataWithTicket2.apply(this, arguments);
  15531. }
  15532. return linkAndRetrieveDataWithTicket;
  15533. }()
  15534. }, {
  15535. key: "signOut",
  15536. value: function () {
  15537. var _signOut = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee35() {
  15538. var _this$_cache$keys12, e, t, n, s, r;
  15539. return _regenerator.default.wrap(function _callee35$(_context35) {
  15540. while (1) {
  15541. switch (_context35.prev = _context35.next) {
  15542. case 0:
  15543. if (!(this.loginType === Je.ANONYMOUS)) {
  15544. _context35.next = 2;
  15545. break;
  15546. }
  15547. throw new te({
  15548. message: "匿名用户不支持登出操作"
  15549. });
  15550. case 2:
  15551. _this$_cache$keys12 = this._cache.keys, e = _this$_cache$keys12.refreshTokenKey, t = _this$_cache$keys12.accessTokenKey, n = _this$_cache$keys12.accessTokenExpireKey, s = this._cache.getStore(e);
  15552. if (s) {
  15553. _context35.next = 5;
  15554. break;
  15555. }
  15556. return _context35.abrupt("return");
  15557. case 5:
  15558. _context35.next = 7;
  15559. return this._request.send("auth.logout", {
  15560. refresh_token: s
  15561. });
  15562. case 7:
  15563. r = _context35.sent;
  15564. return _context35.abrupt("return", (this._cache.removeStore(e), this._cache.removeStore(t), this._cache.removeStore(n), Fe(je), Fe(Be, {
  15565. env: this.config.env,
  15566. loginType: Je.NULL,
  15567. persistence: this.config.persistence
  15568. }), r));
  15569. case 9:
  15570. case "end":
  15571. return _context35.stop();
  15572. }
  15573. }
  15574. }, _callee35, this);
  15575. }));
  15576. function signOut() {
  15577. return _signOut.apply(this, arguments);
  15578. }
  15579. return signOut;
  15580. }()
  15581. }, {
  15582. key: "signUpWithEmailAndPassword",
  15583. value: function () {
  15584. var _signUpWithEmailAndPassword = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee36(e, t) {
  15585. return _regenerator.default.wrap(function _callee36$(_context36) {
  15586. while (1) {
  15587. switch (_context36.prev = _context36.next) {
  15588. case 0:
  15589. return _context36.abrupt("return", this._request.send("auth.signUpWithEmailAndPassword", {
  15590. email: e,
  15591. password: t
  15592. }));
  15593. case 1:
  15594. case "end":
  15595. return _context36.stop();
  15596. }
  15597. }
  15598. }, _callee36, this);
  15599. }));
  15600. function signUpWithEmailAndPassword(_x28, _x29) {
  15601. return _signUpWithEmailAndPassword.apply(this, arguments);
  15602. }
  15603. return signUpWithEmailAndPassword;
  15604. }()
  15605. }, {
  15606. key: "sendPasswordResetEmail",
  15607. value: function () {
  15608. var _sendPasswordResetEmail = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee37(e) {
  15609. return _regenerator.default.wrap(function _callee37$(_context37) {
  15610. while (1) {
  15611. switch (_context37.prev = _context37.next) {
  15612. case 0:
  15613. return _context37.abrupt("return", this._request.send("auth.sendPasswordResetEmail", {
  15614. email: e
  15615. }));
  15616. case 1:
  15617. case "end":
  15618. return _context37.stop();
  15619. }
  15620. }
  15621. }, _callee37, this);
  15622. }));
  15623. function sendPasswordResetEmail(_x30) {
  15624. return _sendPasswordResetEmail.apply(this, arguments);
  15625. }
  15626. return sendPasswordResetEmail;
  15627. }()
  15628. }, {
  15629. key: "onLoginStateChanged",
  15630. value: function onLoginStateChanged(e) {
  15631. var _this13 = this;
  15632. qe(je, function () {
  15633. var t = _this13.hasLoginState();
  15634. e.call(_this13, t);
  15635. });
  15636. var t = this.hasLoginState();
  15637. e.call(this, t);
  15638. }
  15639. }, {
  15640. key: "onLoginStateExpired",
  15641. value: function onLoginStateExpired(e) {
  15642. qe($e, e.bind(this));
  15643. }
  15644. }, {
  15645. key: "onAccessTokenRefreshed",
  15646. value: function onAccessTokenRefreshed(e) {
  15647. qe(He, e.bind(this));
  15648. }
  15649. }, {
  15650. key: "onAnonymousConverted",
  15651. value: function onAnonymousConverted(e) {
  15652. qe(We, e.bind(this));
  15653. }
  15654. }, {
  15655. key: "onLoginTypeChanged",
  15656. value: function onLoginTypeChanged(e) {
  15657. var _this14 = this;
  15658. qe(Be, function () {
  15659. var t = _this14.hasLoginState();
  15660. e.call(_this14, t);
  15661. });
  15662. }
  15663. }, {
  15664. key: "getAccessToken",
  15665. value: function () {
  15666. var _getAccessToken3 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee38() {
  15667. return _regenerator.default.wrap(function _callee38$(_context38) {
  15668. while (1) {
  15669. switch (_context38.prev = _context38.next) {
  15670. case 0:
  15671. _context38.next = 2;
  15672. return this._request.getAccessToken();
  15673. case 2:
  15674. _context38.t0 = _context38.sent.accessToken;
  15675. _context38.t1 = this.config.env;
  15676. return _context38.abrupt("return", {
  15677. accessToken: _context38.t0,
  15678. env: _context38.t1
  15679. });
  15680. case 5:
  15681. case "end":
  15682. return _context38.stop();
  15683. }
  15684. }
  15685. }, _callee38, this);
  15686. }));
  15687. function getAccessToken() {
  15688. return _getAccessToken3.apply(this, arguments);
  15689. }
  15690. return getAccessToken;
  15691. }()
  15692. }, {
  15693. key: "hasLoginState",
  15694. value: function hasLoginState() {
  15695. var _this$_cache$keys13 = this._cache.keys,
  15696. e = _this$_cache$keys13.accessTokenKey,
  15697. t = _this$_cache$keys13.accessTokenExpireKey,
  15698. n = this._cache.getStore(e),
  15699. s = this._cache.getStore(t);
  15700. return this._request.oauth.isAccessTokenExpired(n, s) ? null : new rt(this.config.env);
  15701. }
  15702. }, {
  15703. key: "isUsernameRegistered",
  15704. value: function () {
  15705. var _isUsernameRegistered = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee39(e) {
  15706. var _yield$this$_request$4, t;
  15707. return _regenerator.default.wrap(function _callee39$(_context39) {
  15708. while (1) {
  15709. switch (_context39.prev = _context39.next) {
  15710. case 0:
  15711. if (!("string" != typeof e)) {
  15712. _context39.next = 2;
  15713. break;
  15714. }
  15715. throw new te({
  15716. code: "PARAM_ERROR",
  15717. message: "username must be a string"
  15718. });
  15719. case 2:
  15720. _context39.next = 4;
  15721. return this._request.send("auth.isUsernameRegistered", {
  15722. username: e
  15723. });
  15724. case 4:
  15725. _yield$this$_request$4 = _context39.sent;
  15726. t = _yield$this$_request$4.data;
  15727. return _context39.abrupt("return", t && t.isRegistered);
  15728. case 7:
  15729. case "end":
  15730. return _context39.stop();
  15731. }
  15732. }
  15733. }, _callee39, this);
  15734. }));
  15735. function isUsernameRegistered(_x31) {
  15736. return _isUsernameRegistered.apply(this, arguments);
  15737. }
  15738. return isUsernameRegistered;
  15739. }()
  15740. }, {
  15741. key: "getLoginState",
  15742. value: function getLoginState() {
  15743. return Promise.resolve(this.hasLoginState());
  15744. }
  15745. }, {
  15746. key: "signInWithTicket",
  15747. value: function () {
  15748. var _signInWithTicket = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee40(e) {
  15749. return _regenerator.default.wrap(function _callee40$(_context40) {
  15750. while (1) {
  15751. switch (_context40.prev = _context40.next) {
  15752. case 0:
  15753. return _context40.abrupt("return", new ot(this.config).signIn(e));
  15754. case 1:
  15755. case "end":
  15756. return _context40.stop();
  15757. }
  15758. }
  15759. }, _callee40, this);
  15760. }));
  15761. function signInWithTicket(_x32) {
  15762. return _signInWithTicket.apply(this, arguments);
  15763. }
  15764. return signInWithTicket;
  15765. }()
  15766. }, {
  15767. key: "shouldRefreshAccessToken",
  15768. value: function shouldRefreshAccessToken(e) {
  15769. this._request._shouldRefreshAccessTokenHook = e.bind(this);
  15770. }
  15771. }, {
  15772. key: "getUserInfo",
  15773. value: function getUserInfo() {
  15774. return this._request.send("auth.getUserInfo", {}).then(function (e) {
  15775. return e.code ? e : _objectSpread(_objectSpread({}, e.data), {}, {
  15776. requestId: e.seqId
  15777. });
  15778. });
  15779. }
  15780. }, {
  15781. key: "getAuthHeader",
  15782. value: function getAuthHeader() {
  15783. var _this$_cache$keys14 = this._cache.keys,
  15784. e = _this$_cache$keys14.refreshTokenKey,
  15785. t = _this$_cache$keys14.accessTokenKey,
  15786. n = this._cache.getStore(e);
  15787. return {
  15788. "x-cloudbase-credentials": this._cache.getStore(t) + "/@@/" + n
  15789. };
  15790. }
  15791. }, {
  15792. key: "_onAnonymousConverted",
  15793. value: function _onAnonymousConverted(e) {
  15794. var t = e.data.env;
  15795. t === this.config.env && this._cache.updatePersistence(this.config.persistence);
  15796. }
  15797. }, {
  15798. key: "_onLoginTypeChanged",
  15799. value: function _onLoginTypeChanged(e) {
  15800. var _e$data = e.data,
  15801. t = _e$data.loginType,
  15802. n = _e$data.persistence,
  15803. s = _e$data.env;
  15804. s === this.config.env && (this._cache.updatePersistence(n), this._cache.setStore(this._cache.keys.loginTypeKey, t));
  15805. }
  15806. }]);
  15807. return ut;
  15808. }();
  15809. var ht = function ht(e, t) {
  15810. t = t || Ie();
  15811. var n = tt(this.config.env),
  15812. s = e.cloudPath,
  15813. r = e.filePath,
  15814. i = e.onUploadProgress,
  15815. _e$fileType = e.fileType,
  15816. o = _e$fileType === void 0 ? "image" : _e$fileType;
  15817. return n.send("storage.getUploadMetadata", {
  15818. path: s
  15819. }).then(function (e) {
  15820. var _e$data2 = e.data,
  15821. a = _e$data2.url,
  15822. c = _e$data2.authorization,
  15823. u = _e$data2.token,
  15824. h = _e$data2.fileId,
  15825. l = _e$data2.cosFileId,
  15826. d = e.requestId,
  15827. p = {
  15828. key: s,
  15829. signature: c,
  15830. "x-cos-meta-fileid": l,
  15831. success_action_status: "201",
  15832. "x-cos-security-token": u
  15833. };
  15834. n.upload({
  15835. url: a,
  15836. data: p,
  15837. file: r,
  15838. name: s,
  15839. fileType: o,
  15840. onUploadProgress: i
  15841. }).then(function (e) {
  15842. 201 === e.statusCode ? t(null, {
  15843. fileID: h,
  15844. requestId: d
  15845. }) : t(new te({
  15846. code: "STORAGE_REQUEST_FAIL",
  15847. message: "STORAGE_REQUEST_FAIL: ".concat(e.data)
  15848. }));
  15849. }).catch(function (e) {
  15850. t(e);
  15851. });
  15852. }).catch(function (e) {
  15853. t(e);
  15854. }), t.promise;
  15855. },
  15856. lt = function lt(e, t) {
  15857. t = t || Ie();
  15858. var n = tt(this.config.env),
  15859. s = e.cloudPath;
  15860. return n.send("storage.getUploadMetadata", {
  15861. path: s
  15862. }).then(function (e) {
  15863. t(null, e);
  15864. }).catch(function (e) {
  15865. t(e);
  15866. }), t.promise;
  15867. },
  15868. dt = function dt(_ref10, t) {
  15869. var e = _ref10.fileList;
  15870. if (t = t || Ie(), !e || !Array.isArray(e)) return {
  15871. code: "INVALID_PARAM",
  15872. message: "fileList必须是非空的数组"
  15873. };
  15874. var _iterator3 = _createForOfIteratorHelper(e),
  15875. _step3;
  15876. try {
  15877. for (_iterator3.s(); !(_step3 = _iterator3.n()).done;) {
  15878. var _t9 = _step3.value;
  15879. if (!_t9 || "string" != typeof _t9) return {
  15880. code: "INVALID_PARAM",
  15881. message: "fileList的元素必须是非空的字符串"
  15882. };
  15883. }
  15884. } catch (err) {
  15885. _iterator3.e(err);
  15886. } finally {
  15887. _iterator3.f();
  15888. }
  15889. var n = {
  15890. fileid_list: e
  15891. };
  15892. return tt(this.config.env).send("storage.batchDeleteFile", n).then(function (e) {
  15893. e.code ? t(null, e) : t(null, {
  15894. fileList: e.data.delete_list,
  15895. requestId: e.requestId
  15896. });
  15897. }).catch(function (e) {
  15898. t(e);
  15899. }), t.promise;
  15900. },
  15901. pt = function pt(_ref11, t) {
  15902. var e = _ref11.fileList;
  15903. t = t || Ie(), e && Array.isArray(e) || t(null, {
  15904. code: "INVALID_PARAM",
  15905. message: "fileList必须是非空的数组"
  15906. });
  15907. var n = [];
  15908. var _iterator4 = _createForOfIteratorHelper(e),
  15909. _step4;
  15910. try {
  15911. for (_iterator4.s(); !(_step4 = _iterator4.n()).done;) {
  15912. var _s11 = _step4.value;
  15913. "object" == (0, _typeof2.default)(_s11) ? (_s11.hasOwnProperty("fileID") && _s11.hasOwnProperty("maxAge") || t(null, {
  15914. code: "INVALID_PARAM",
  15915. message: "fileList的元素必须是包含fileID和maxAge的对象"
  15916. }), n.push({
  15917. fileid: _s11.fileID,
  15918. max_age: _s11.maxAge
  15919. })) : "string" == typeof _s11 ? n.push({
  15920. fileid: _s11
  15921. }) : t(null, {
  15922. code: "INVALID_PARAM",
  15923. message: "fileList的元素必须是字符串"
  15924. });
  15925. }
  15926. } catch (err) {
  15927. _iterator4.e(err);
  15928. } finally {
  15929. _iterator4.f();
  15930. }
  15931. var s = {
  15932. file_list: n
  15933. };
  15934. return tt(this.config.env).send("storage.batchGetDownloadUrl", s).then(function (e) {
  15935. e.code ? t(null, e) : t(null, {
  15936. fileList: e.data.download_list,
  15937. requestId: e.requestId
  15938. });
  15939. }).catch(function (e) {
  15940. t(e);
  15941. }), t.promise;
  15942. },
  15943. ft = /*#__PURE__*/function () {
  15944. var _ref13 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee41(_ref12, t) {
  15945. var e, n, s, r;
  15946. return _regenerator.default.wrap(function _callee41$(_context41) {
  15947. while (1) {
  15948. switch (_context41.prev = _context41.next) {
  15949. case 0:
  15950. e = _ref12.fileID;
  15951. _context41.next = 3;
  15952. return pt.call(this, {
  15953. fileList: [{
  15954. fileID: e,
  15955. maxAge: 600
  15956. }]
  15957. });
  15958. case 3:
  15959. n = _context41.sent.fileList[0];
  15960. if (!("SUCCESS" !== n.code)) {
  15961. _context41.next = 6;
  15962. break;
  15963. }
  15964. return _context41.abrupt("return", t ? t(n) : new Promise(function (e) {
  15965. e(n);
  15966. }));
  15967. case 6:
  15968. s = tt(this.config.env);
  15969. r = n.download_url;
  15970. if (!(r = encodeURI(r), !t)) {
  15971. _context41.next = 10;
  15972. break;
  15973. }
  15974. return _context41.abrupt("return", s.download({
  15975. url: r
  15976. }));
  15977. case 10:
  15978. _context41.t0 = t;
  15979. _context41.next = 13;
  15980. return s.download({
  15981. url: r
  15982. });
  15983. case 13:
  15984. _context41.t1 = _context41.sent;
  15985. (0, _context41.t0)(_context41.t1);
  15986. case 15:
  15987. case "end":
  15988. return _context41.stop();
  15989. }
  15990. }
  15991. }, _callee41, this);
  15992. }));
  15993. return function ft(_x33, _x34) {
  15994. return _ref13.apply(this, arguments);
  15995. };
  15996. }(),
  15997. gt = function gt(_ref14, o) {
  15998. var e = _ref14.name,
  15999. t = _ref14.data,
  16000. n = _ref14.query,
  16001. s = _ref14.parse,
  16002. r = _ref14.search,
  16003. i = _ref14.timeout;
  16004. var a = o || Ie();
  16005. var c;
  16006. try {
  16007. c = t ? JSON.stringify(t) : "";
  16008. } catch (e) {
  16009. return Promise.reject(e);
  16010. }
  16011. if (!e) return Promise.reject(new te({
  16012. code: "PARAM_ERROR",
  16013. message: "函数名不能为空"
  16014. }));
  16015. var u = {
  16016. inQuery: n,
  16017. parse: s,
  16018. search: r,
  16019. function_name: e,
  16020. request_data: c
  16021. };
  16022. return tt(this.config.env).send("functions.invokeFunction", u, {
  16023. timeout: i
  16024. }).then(function (e) {
  16025. if (e.code) a(null, e);else {
  16026. var _t10 = e.data.response_data;
  16027. if (s) a(null, {
  16028. result: _t10,
  16029. requestId: e.requestId
  16030. });else try {
  16031. _t10 = JSON.parse(e.data.response_data), a(null, {
  16032. result: _t10,
  16033. requestId: e.requestId
  16034. });
  16035. } catch (e) {
  16036. a(new te({
  16037. message: "response data must be json"
  16038. }));
  16039. }
  16040. }
  16041. return a.promise;
  16042. }).catch(function (e) {
  16043. a(e);
  16044. }), a.promise;
  16045. },
  16046. mt = {
  16047. timeout: 15e3,
  16048. persistence: "session"
  16049. },
  16050. yt = 6e5,
  16051. _t = {};
  16052. var wt = /*#__PURE__*/function () {
  16053. function wt(e) {
  16054. (0, _classCallCheck2.default)(this, wt);
  16055. this.config = e || this.config, this.authObj = void 0;
  16056. }
  16057. (0, _createClass2.default)(wt, [{
  16058. key: "init",
  16059. value: function init(e) {
  16060. switch (Ae.adapter || (this.requestClient = new Ae.adapter.reqClass({
  16061. timeout: e.timeout || 5e3,
  16062. timeoutMsg: "\u8BF7\u6C42\u5728".concat((e.timeout || 5e3) / 1e3, "s\u5185\u672A\u5B8C\u6210\uFF0C\u5DF2\u4E2D\u65AD")
  16063. })), this.config = _objectSpread(_objectSpread({}, mt), e), !0) {
  16064. case this.config.timeout > yt:
  16065. console.warn("timeout大于可配置上限[10分钟],已重置为上限数值"), this.config.timeout = yt;
  16066. break;
  16067. case this.config.timeout < 100:
  16068. console.warn("timeout小于可配置下限[100ms],已重置为下限数值"), this.config.timeout = 100;
  16069. }
  16070. return new wt(this.config);
  16071. }
  16072. }, {
  16073. key: "auth",
  16074. value: function auth() {
  16075. var _ref15 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
  16076. e = _ref15.persistence;
  16077. if (this.authObj) return this.authObj;
  16078. var t = e || Ae.adapter.primaryStorage || mt.persistence;
  16079. var n;
  16080. return t !== this.config.persistence && (this.config.persistence = t), function (e) {
  16081. var t = e.env;
  16082. Ne[t] = new xe(e), Re[t] = new xe(_objectSpread(_objectSpread({}, e), {}, {
  16083. persistence: "local"
  16084. }));
  16085. }(this.config), n = this.config, et[n.env] = new Ze(n), this.authObj = new ut(this.config), this.authObj;
  16086. }
  16087. }, {
  16088. key: "on",
  16089. value: function on(e, t) {
  16090. return qe.apply(this, [e, t]);
  16091. }
  16092. }, {
  16093. key: "off",
  16094. value: function off(e, t) {
  16095. return Ke.apply(this, [e, t]);
  16096. }
  16097. }, {
  16098. key: "callFunction",
  16099. value: function callFunction(e, t) {
  16100. return gt.apply(this, [e, t]);
  16101. }
  16102. }, {
  16103. key: "deleteFile",
  16104. value: function deleteFile(e, t) {
  16105. return dt.apply(this, [e, t]);
  16106. }
  16107. }, {
  16108. key: "getTempFileURL",
  16109. value: function getTempFileURL(e, t) {
  16110. return pt.apply(this, [e, t]);
  16111. }
  16112. }, {
  16113. key: "downloadFile",
  16114. value: function downloadFile(e, t) {
  16115. return ft.apply(this, [e, t]);
  16116. }
  16117. }, {
  16118. key: "uploadFile",
  16119. value: function uploadFile(e, t) {
  16120. return ht.apply(this, [e, t]);
  16121. }
  16122. }, {
  16123. key: "getUploadMetadata",
  16124. value: function getUploadMetadata(e, t) {
  16125. return lt.apply(this, [e, t]);
  16126. }
  16127. }, {
  16128. key: "registerExtension",
  16129. value: function registerExtension(e) {
  16130. _t[e.name] = e;
  16131. }
  16132. }, {
  16133. key: "invokeExtension",
  16134. value: function () {
  16135. var _invokeExtension = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee42(e, t) {
  16136. var n;
  16137. return _regenerator.default.wrap(function _callee42$(_context42) {
  16138. while (1) {
  16139. switch (_context42.prev = _context42.next) {
  16140. case 0:
  16141. n = _t[e];
  16142. if (n) {
  16143. _context42.next = 3;
  16144. break;
  16145. }
  16146. throw new te({
  16147. message: "\u6269\u5C55".concat(e, " \u5FC5\u987B\u5148\u6CE8\u518C")
  16148. });
  16149. case 3:
  16150. _context42.next = 5;
  16151. return n.invoke(t, this);
  16152. case 5:
  16153. return _context42.abrupt("return", _context42.sent);
  16154. case 6:
  16155. case "end":
  16156. return _context42.stop();
  16157. }
  16158. }
  16159. }, _callee42, this);
  16160. }));
  16161. function invokeExtension(_x35, _x36) {
  16162. return _invokeExtension.apply(this, arguments);
  16163. }
  16164. return invokeExtension;
  16165. }()
  16166. }, {
  16167. key: "useAdapters",
  16168. value: function useAdapters(e) {
  16169. var _ref16 = ke(e) || {},
  16170. t = _ref16.adapter,
  16171. n = _ref16.runtime;
  16172. t && (Ae.adapter = t), n && (Ae.runtime = n);
  16173. }
  16174. }]);
  16175. return wt;
  16176. }();
  16177. var It = new wt();
  16178. function vt(e, t, n) {
  16179. void 0 === n && (n = {});
  16180. var s = /\?/.test(t),
  16181. r = "";
  16182. for (var i in n) {
  16183. "" === r ? !s && (t += "?") : r += "&", r += i + "=" + encodeURIComponent(n[i]);
  16184. }
  16185. return /^http(s)?:\/\//.test(t += r) ? t : "" + e + t;
  16186. }
  16187. var St = /*#__PURE__*/function () {
  16188. function St() {
  16189. (0, _classCallCheck2.default)(this, St);
  16190. }
  16191. (0, _createClass2.default)(St, [{
  16192. key: "get",
  16193. value: function get(e) {
  16194. var t = e.url,
  16195. n = e.data,
  16196. s = e.headers,
  16197. r = e.timeout;
  16198. return new Promise(function (e, i) {
  16199. ne.request({
  16200. url: vt("https:", t),
  16201. data: n,
  16202. method: "GET",
  16203. header: s,
  16204. timeout: r,
  16205. success: function success(t) {
  16206. e(t);
  16207. },
  16208. fail: function fail(e) {
  16209. i(e);
  16210. }
  16211. });
  16212. });
  16213. }
  16214. }, {
  16215. key: "post",
  16216. value: function post(e) {
  16217. var t = e.url,
  16218. n = e.data,
  16219. s = e.headers,
  16220. r = e.timeout;
  16221. return new Promise(function (e, i) {
  16222. ne.request({
  16223. url: vt("https:", t),
  16224. data: n,
  16225. method: "POST",
  16226. header: s,
  16227. timeout: r,
  16228. success: function success(t) {
  16229. e(t);
  16230. },
  16231. fail: function fail(e) {
  16232. i(e);
  16233. }
  16234. });
  16235. });
  16236. }
  16237. }, {
  16238. key: "upload",
  16239. value: function upload(e) {
  16240. return new Promise(function (t, n) {
  16241. var s = e.url,
  16242. r = e.file,
  16243. i = e.data,
  16244. o = e.headers,
  16245. a = e.fileType,
  16246. c = ne.uploadFile({
  16247. url: vt("https:", s),
  16248. name: "file",
  16249. formData: Object.assign({}, i),
  16250. filePath: r,
  16251. fileType: a,
  16252. header: o,
  16253. success: function success(e) {
  16254. var n = {
  16255. statusCode: e.statusCode,
  16256. data: e.data || {}
  16257. };
  16258. 200 === e.statusCode && i.success_action_status && (n.statusCode = parseInt(i.success_action_status, 10)), t(n);
  16259. },
  16260. fail: function fail(e) {
  16261. n(new Error(e.errMsg || "uploadFile:fail"));
  16262. }
  16263. });
  16264. "function" == typeof e.onUploadProgress && c && "function" == typeof c.onProgressUpdate && c.onProgressUpdate(function (t) {
  16265. e.onUploadProgress({
  16266. loaded: t.totalBytesSent,
  16267. total: t.totalBytesExpectedToSend
  16268. });
  16269. });
  16270. });
  16271. }
  16272. }]);
  16273. return St;
  16274. }();
  16275. var Tt = {
  16276. setItem: function setItem(e, t) {
  16277. ne.setStorageSync(e, t);
  16278. },
  16279. getItem: function getItem(e) {
  16280. return ne.getStorageSync(e);
  16281. },
  16282. removeItem: function removeItem(e) {
  16283. ne.removeStorageSync(e);
  16284. },
  16285. clear: function clear() {
  16286. ne.clearStorageSync();
  16287. }
  16288. };
  16289. var bt = {
  16290. genAdapter: function genAdapter() {
  16291. return {
  16292. root: {},
  16293. reqClass: St,
  16294. localStorage: Tt,
  16295. primaryStorage: "local"
  16296. };
  16297. },
  16298. isMatch: function isMatch() {
  16299. return !0;
  16300. },
  16301. runtime: "uni_app"
  16302. };
  16303. It.useAdapters(bt);
  16304. var Et = It,
  16305. kt = Et.init;
  16306. Et.init = function (e) {
  16307. e.env = e.spaceId;
  16308. var t = kt.call(this, e);
  16309. t.config.provider = "tencent", t.config.spaceId = e.spaceId;
  16310. var n = t.auth;
  16311. return t.auth = function (e) {
  16312. var t = n.call(this, e);
  16313. return ["linkAndRetrieveDataWithTicket", "signInAnonymously", "signOut", "getAccessToken", "getLoginState", "signInWithTicket", "getUserInfo"].forEach(function (e) {
  16314. var n;
  16315. t[e] = (n = t[e], function (e) {
  16316. e = e || {};
  16317. var _ee = ee(e),
  16318. t = _ee.success,
  16319. s = _ee.fail,
  16320. r = _ee.complete;
  16321. if (!(t || s || r)) return n.call(this, e);
  16322. n.call(this, e).then(function (e) {
  16323. t && t(e), r && r(e);
  16324. }, function (e) {
  16325. s && s(e), r && r(e);
  16326. });
  16327. }).bind(t);
  16328. }), t;
  16329. }, t.customAuth = t.auth, t;
  16330. };
  16331. var At = Et;
  16332. function Pt(_x37, _x38) {
  16333. return _Pt.apply(this, arguments);
  16334. }
  16335. function _Pt() {
  16336. _Pt = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee68(e, t) {
  16337. var n, _e31, s;
  16338. return _regenerator.default.wrap(function _callee68$(_context68) {
  16339. while (1) {
  16340. switch (_context68.prev = _context68.next) {
  16341. case 0:
  16342. n = "http://".concat(e, ":").concat(t, "/system/ping");
  16343. _context68.prev = 1;
  16344. _context68.next = 4;
  16345. return s = {
  16346. url: n,
  16347. timeout: 500
  16348. }, new Promise(function (e, t) {
  16349. ne.request(_objectSpread(_objectSpread({}, s), {}, {
  16350. success: function success(t) {
  16351. e(t);
  16352. },
  16353. fail: function fail(e) {
  16354. t(e);
  16355. }
  16356. }));
  16357. });
  16358. case 4:
  16359. _e31 = _context68.sent;
  16360. return _context68.abrupt("return", !(!_e31.data || 0 !== _e31.data.code));
  16361. case 8:
  16362. _context68.prev = 8;
  16363. _context68.t0 = _context68["catch"](1);
  16364. return _context68.abrupt("return", !1);
  16365. case 11:
  16366. case "end":
  16367. return _context68.stop();
  16368. }
  16369. }
  16370. }, _callee68, null, [[1, 8]]);
  16371. }));
  16372. return _Pt.apply(this, arguments);
  16373. }
  16374. function Ct(_x39, _x40) {
  16375. return _Ct.apply(this, arguments);
  16376. }
  16377. function _Ct() {
  16378. _Ct = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee69(e, t) {
  16379. var n, s, _r10;
  16380. return _regenerator.default.wrap(function _callee69$(_context69) {
  16381. while (1) {
  16382. switch (_context69.prev = _context69.next) {
  16383. case 0:
  16384. s = 0;
  16385. case 1:
  16386. if (!(s < e.length)) {
  16387. _context69.next = 11;
  16388. break;
  16389. }
  16390. _r10 = e[s];
  16391. _context69.next = 5;
  16392. return Pt(_r10, t);
  16393. case 5:
  16394. if (!_context69.sent) {
  16395. _context69.next = 8;
  16396. break;
  16397. }
  16398. n = _r10;
  16399. return _context69.abrupt("break", 11);
  16400. case 8:
  16401. s++;
  16402. _context69.next = 1;
  16403. break;
  16404. case 11:
  16405. return _context69.abrupt("return", {
  16406. address: n,
  16407. port: t
  16408. });
  16409. case 12:
  16410. case "end":
  16411. return _context69.stop();
  16412. }
  16413. }
  16414. }, _callee69);
  16415. }));
  16416. return _Ct.apply(this, arguments);
  16417. }
  16418. var Ot = {
  16419. "serverless.file.resource.generateProximalSign": "storage/generate-proximal-sign",
  16420. "serverless.file.resource.report": "storage/report",
  16421. "serverless.file.resource.delete": "storage/delete",
  16422. "serverless.file.resource.getTempFileURL": "storage/get-temp-file-url"
  16423. };
  16424. var xt = /*#__PURE__*/function () {
  16425. function xt(e) {
  16426. (0, _classCallCheck2.default)(this, xt);
  16427. if (["spaceId", "clientSecret"].forEach(function (t) {
  16428. if (!Object.prototype.hasOwnProperty.call(e, t)) throw new Error("".concat(t, " required"));
  16429. }), !e.endpoint) throw new Error("集群空间未配置ApiEndpoint,配置后需要重新关联服务空间后生效");
  16430. this.config = Object.assign({}, e), this.config.provider = "dcloud", this.config.requestUrl = this.config.endpoint + "/client", this.config.envType = this.config.envType || "public", this.adapter = ne;
  16431. }
  16432. (0, _createClass2.default)(xt, [{
  16433. key: "request",
  16434. value: function () {
  16435. var _request4 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee43(e) {
  16436. var _this15 = this;
  16437. var t,
  16438. n,
  16439. _args43 = arguments;
  16440. return _regenerator.default.wrap(function _callee43$(_context43) {
  16441. while (1) {
  16442. switch (_context43.prev = _context43.next) {
  16443. case 0:
  16444. t = _args43.length > 1 && _args43[1] !== undefined ? _args43[1] : !0;
  16445. n = b && t;
  16446. if (!n) {
  16447. _context43.next = 8;
  16448. break;
  16449. }
  16450. _context43.next = 5;
  16451. return this.setupLocalRequest(e);
  16452. case 5:
  16453. _context43.t0 = _context43.sent;
  16454. _context43.next = 9;
  16455. break;
  16456. case 8:
  16457. _context43.t0 = this.setupRequest(e);
  16458. case 9:
  16459. e = _context43.t0;
  16460. return _context43.abrupt("return", Promise.resolve().then(function () {
  16461. return n ? _this15.requestLocal(e) : le.wrappedRequest(e, _this15.adapter.request);
  16462. }));
  16463. case 11:
  16464. case "end":
  16465. return _context43.stop();
  16466. }
  16467. }
  16468. }, _callee43, this);
  16469. }));
  16470. function request(_x41) {
  16471. return _request4.apply(this, arguments);
  16472. }
  16473. return request;
  16474. }()
  16475. }, {
  16476. key: "requestLocal",
  16477. value: function requestLocal(e) {
  16478. var _this16 = this;
  16479. return new Promise(function (t, n) {
  16480. _this16.adapter.request(Object.assign(e, {
  16481. complete: function complete(e) {
  16482. if (e || (e = {}), !e.statusCode || e.statusCode >= 400) {
  16483. var _t11 = e.data && e.data.code || "SYS_ERR",
  16484. _s12 = e.data && e.data.message || "request:fail";
  16485. return n(new te({
  16486. code: _t11,
  16487. message: _s12
  16488. }));
  16489. }
  16490. t({
  16491. success: !0,
  16492. result: e.data
  16493. });
  16494. }
  16495. }));
  16496. });
  16497. }
  16498. }, {
  16499. key: "setupRequest",
  16500. value: function setupRequest(e) {
  16501. var t = Object.assign({}, e, {
  16502. spaceId: this.config.spaceId,
  16503. timestamp: Date.now()
  16504. }),
  16505. n = {
  16506. "Content-Type": "application/json"
  16507. };
  16508. n["x-serverless-sign"] = le.sign(t, this.config.clientSecret);
  16509. var s = he();
  16510. n["x-client-info"] = encodeURIComponent(JSON.stringify(s));
  16511. var _se = se(),
  16512. r = _se.token;
  16513. return n["x-client-token"] = r, {
  16514. url: this.config.requestUrl,
  16515. method: "POST",
  16516. data: t,
  16517. dataType: "json",
  16518. header: JSON.parse(JSON.stringify(n))
  16519. };
  16520. }
  16521. }, {
  16522. key: "setupLocalRequest",
  16523. value: function () {
  16524. var _setupLocalRequest = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee44(e) {
  16525. var t, _se2, n, s, _ref17, r, i, _yield$Ct, o;
  16526. return _regenerator.default.wrap(function _callee44$(_context44) {
  16527. while (1) {
  16528. switch (_context44.prev = _context44.next) {
  16529. case 0:
  16530. t = he();
  16531. _se2 = se();
  16532. n = _se2.token;
  16533. s = Object.assign({}, e, {
  16534. spaceId: this.config.spaceId,
  16535. timestamp: Date.now(),
  16536. clientInfo: t,
  16537. token: n
  16538. });
  16539. _ref17 = this.__dev__ && this.__dev__.debugInfo || {};
  16540. r = _ref17.address;
  16541. i = _ref17.servePort;
  16542. _context44.next = 9;
  16543. return Ct(r, i);
  16544. case 9:
  16545. _yield$Ct = _context44.sent;
  16546. o = _yield$Ct.address;
  16547. return _context44.abrupt("return", {
  16548. url: "http://".concat(o, ":").concat(i, "/").concat(Ot[e.method]),
  16549. method: "POST",
  16550. data: s,
  16551. dataType: "json",
  16552. header: JSON.parse(JSON.stringify({
  16553. "Content-Type": "application/json"
  16554. }))
  16555. });
  16556. case 12:
  16557. case "end":
  16558. return _context44.stop();
  16559. }
  16560. }
  16561. }, _callee44, this);
  16562. }));
  16563. function setupLocalRequest(_x42) {
  16564. return _setupLocalRequest.apply(this, arguments);
  16565. }
  16566. return setupLocalRequest;
  16567. }()
  16568. }, {
  16569. key: "callFunction",
  16570. value: function callFunction(e) {
  16571. var t = {
  16572. method: "serverless.function.runtime.invoke",
  16573. params: JSON.stringify({
  16574. functionTarget: e.name,
  16575. functionArgs: e.data || {}
  16576. })
  16577. };
  16578. return this.request(t, !1);
  16579. }
  16580. }, {
  16581. key: "getUploadFileOptions",
  16582. value: function getUploadFileOptions(e) {
  16583. var t = {
  16584. method: "serverless.file.resource.generateProximalSign",
  16585. params: JSON.stringify(e)
  16586. };
  16587. return this.request(t);
  16588. }
  16589. }, {
  16590. key: "reportUploadFile",
  16591. value: function reportUploadFile(e) {
  16592. var t = {
  16593. method: "serverless.file.resource.report",
  16594. params: JSON.stringify(e)
  16595. };
  16596. return this.request(t);
  16597. }
  16598. }, {
  16599. key: "uploadFile",
  16600. value: function uploadFile(_ref18) {
  16601. var _this17 = this;
  16602. var e = _ref18.filePath,
  16603. t = _ref18.cloudPath,
  16604. _ref18$fileType = _ref18.fileType,
  16605. n = _ref18$fileType === void 0 ? "image" : _ref18$fileType,
  16606. s = _ref18.onUploadProgress;
  16607. if (!t) throw new te({
  16608. code: "CLOUDPATH_REQUIRED",
  16609. message: "cloudPath不可为空"
  16610. });
  16611. var r;
  16612. return this.getUploadFileOptions({
  16613. cloudPath: t
  16614. }).then(function (t) {
  16615. var _t$result = t.result,
  16616. i = _t$result.url,
  16617. o = _t$result.formData,
  16618. a = _t$result.name;
  16619. return r = t.result.fileUrl, new Promise(function (t, r) {
  16620. var c = _this17.adapter.uploadFile({
  16621. url: i,
  16622. formData: o,
  16623. name: a,
  16624. filePath: e,
  16625. fileType: n,
  16626. success: function success(e) {
  16627. e && e.statusCode < 400 ? t(e) : r(new te({
  16628. code: "UPLOAD_FAILED",
  16629. message: "文件上传失败"
  16630. }));
  16631. },
  16632. fail: function fail(e) {
  16633. r(new te({
  16634. code: e.code || "UPLOAD_FAILED",
  16635. message: e.message || e.errMsg || "文件上传失败"
  16636. }));
  16637. }
  16638. });
  16639. "function" == typeof s && c && "function" == typeof c.onProgressUpdate && c.onProgressUpdate(function (e) {
  16640. s({
  16641. loaded: e.totalBytesSent,
  16642. total: e.totalBytesExpectedToSend
  16643. });
  16644. });
  16645. });
  16646. }).then(function () {
  16647. return _this17.reportUploadFile({
  16648. cloudPath: t
  16649. });
  16650. }).then(function (t) {
  16651. return new Promise(function (n, s) {
  16652. t.success ? n({
  16653. success: !0,
  16654. filePath: e,
  16655. fileID: r
  16656. }) : s(new te({
  16657. code: "UPLOAD_FAILED",
  16658. message: "文件上传失败"
  16659. }));
  16660. });
  16661. });
  16662. }
  16663. }, {
  16664. key: "deleteFile",
  16665. value: function deleteFile(_ref19) {
  16666. var e = _ref19.fileList;
  16667. var t = {
  16668. method: "serverless.file.resource.delete",
  16669. params: JSON.stringify({
  16670. fileList: e
  16671. })
  16672. };
  16673. return this.request(t).then(function (e) {
  16674. if (e.success) return e.result;
  16675. throw new te({
  16676. code: "DELETE_FILE_FAILED",
  16677. message: "删除文件失败"
  16678. });
  16679. });
  16680. }
  16681. }, {
  16682. key: "getTempFileURL",
  16683. value: function getTempFileURL() {
  16684. var _ref20 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
  16685. e = _ref20.fileList,
  16686. t = _ref20.maxAge;
  16687. if (!Array.isArray(e) || 0 === e.length) throw new te({
  16688. code: "INVALID_PARAM",
  16689. message: "fileList的元素必须是非空的字符串"
  16690. });
  16691. var n = {
  16692. method: "serverless.file.resource.getTempFileURL",
  16693. params: JSON.stringify({
  16694. fileList: e,
  16695. maxAge: t
  16696. })
  16697. };
  16698. return this.request(n).then(function (e) {
  16699. if (e.success) return {
  16700. fileList: e.result.fileList.map(function (e) {
  16701. return {
  16702. fileID: e.fileID,
  16703. tempFileURL: e.tempFileURL
  16704. };
  16705. })
  16706. };
  16707. throw new te({
  16708. code: "GET_TEMP_FILE_URL_FAILED",
  16709. message: "获取临时文件链接失败"
  16710. });
  16711. });
  16712. }
  16713. }]);
  16714. return xt;
  16715. }();
  16716. var Nt = {
  16717. init: function init(e) {
  16718. var t = new xt(e),
  16719. n = {
  16720. signInAnonymously: function signInAnonymously() {
  16721. return Promise.resolve();
  16722. },
  16723. getLoginState: function getLoginState() {
  16724. return Promise.resolve(!1);
  16725. }
  16726. };
  16727. return t.auth = function () {
  16728. return n;
  16729. }, t.customAuth = t.auth, t;
  16730. }
  16731. },
  16732. Rt = n(function (e, t) {
  16733. e.exports = r.enc.Hex;
  16734. });
  16735. function Lt() {
  16736. return "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, function (e) {
  16737. var t = 16 * Math.random() | 0;
  16738. return ("x" === e ? t : 3 & t | 8).toString(16);
  16739. });
  16740. }
  16741. function Ut() {
  16742. var e = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : "";
  16743. var t = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  16744. var n = t.data,
  16745. s = t.functionName,
  16746. r = t.method,
  16747. i = t.headers,
  16748. _t$signHeaderKeys = t.signHeaderKeys,
  16749. o = _t$signHeaderKeys === void 0 ? [] : _t$signHeaderKeys,
  16750. a = t.config,
  16751. c = String(Date.now()),
  16752. u = Lt(),
  16753. h = Object.assign({}, i, {
  16754. "x-from-app-id": a.spaceAppId,
  16755. "x-from-env-id": a.spaceId,
  16756. "x-to-env-id": a.spaceId,
  16757. "x-from-instance-id": c,
  16758. "x-from-function-name": s,
  16759. "x-client-timestamp": c,
  16760. "x-alipay-source": "client",
  16761. "x-request-id": u,
  16762. "x-alipay-callid": u,
  16763. "x-trace-id": u
  16764. }),
  16765. l = ["x-from-app-id", "x-from-env-id", "x-to-env-id", "x-from-instance-id", "x-from-function-name", "x-client-timestamp"].concat(o),
  16766. _ref21 = e.split("?") || [],
  16767. _ref22 = (0, _slicedToArray2.default)(_ref21, 2),
  16768. _ref22$ = _ref22[0],
  16769. d = _ref22$ === void 0 ? "" : _ref22$,
  16770. _ref22$2 = _ref22[1],
  16771. p = _ref22$2 === void 0 ? "" : _ref22$2,
  16772. f = function (e) {
  16773. var t = "HMAC-SHA256",
  16774. n = e.signedHeaders.join(";"),
  16775. s = e.signedHeaders.map(function (t) {
  16776. return "".concat(t.toLowerCase(), ":").concat(e.headers[t], "\n");
  16777. }).join(""),
  16778. r = _e(e.body).toString(Rt),
  16779. i = "".concat(e.method.toUpperCase(), "\n").concat(e.path, "\n").concat(e.query, "\n").concat(s, "\n").concat(n, "\n").concat(r, "\n"),
  16780. o = _e(i).toString(Rt),
  16781. a = "".concat(t, "\n").concat(e.timestamp, "\n").concat(o, "\n"),
  16782. c = we(a, e.secretKey).toString(Rt);
  16783. return "".concat(t, " Credential=").concat(e.secretId, ", SignedHeaders=").concat(n, ", Signature=").concat(c);
  16784. }({
  16785. path: d,
  16786. query: p,
  16787. method: r,
  16788. headers: h,
  16789. timestamp: c,
  16790. body: JSON.stringify(n),
  16791. secretId: a.accessKey,
  16792. secretKey: a.secretKey,
  16793. signedHeaders: l.sort()
  16794. });
  16795. return {
  16796. url: "".concat(a.endpoint).concat(e),
  16797. headers: Object.assign({}, h, {
  16798. Authorization: f
  16799. })
  16800. };
  16801. }
  16802. function Dt(_ref23) {
  16803. var e = _ref23.url,
  16804. t = _ref23.data,
  16805. _ref23$method = _ref23.method,
  16806. n = _ref23$method === void 0 ? "POST" : _ref23$method,
  16807. _ref23$headers = _ref23.headers,
  16808. s = _ref23$headers === void 0 ? {} : _ref23$headers,
  16809. r = _ref23.timeout;
  16810. return new Promise(function (i, o) {
  16811. ne.request({
  16812. url: e,
  16813. method: n,
  16814. data: "object" == (0, _typeof2.default)(t) ? JSON.stringify(t) : t,
  16815. header: s,
  16816. dataType: "json",
  16817. timeout: r,
  16818. complete: function complete() {
  16819. var e = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
  16820. var t = s["x-trace-id"] || "";
  16821. if (!e.statusCode || e.statusCode >= 400) {
  16822. var _ref24 = e.data || {},
  16823. _n9 = _ref24.message,
  16824. _s13 = _ref24.errMsg,
  16825. _r4 = _ref24.trace_id;
  16826. return o(new te({
  16827. code: "SYS_ERR",
  16828. message: _n9 || _s13 || "request:fail",
  16829. requestId: _r4 || t
  16830. }));
  16831. }
  16832. i({
  16833. status: e.statusCode,
  16834. data: e.data,
  16835. headers: e.header,
  16836. requestId: t
  16837. });
  16838. }
  16839. });
  16840. });
  16841. }
  16842. function Mt(e, t) {
  16843. var n = e.path,
  16844. s = e.data,
  16845. _e$method = e.method,
  16846. r = _e$method === void 0 ? "GET" : _e$method,
  16847. _Ut = Ut(n, {
  16848. functionName: "",
  16849. data: s,
  16850. method: r,
  16851. headers: {
  16852. "x-alipay-cloud-mode": "oss",
  16853. "x-data-api-type": "oss",
  16854. "x-expire-timestamp": String(Date.now() + 6e4)
  16855. },
  16856. signHeaderKeys: ["x-data-api-type", "x-expire-timestamp"],
  16857. config: t
  16858. }),
  16859. i = _Ut.url,
  16860. o = _Ut.headers;
  16861. return Dt({
  16862. url: i,
  16863. data: s,
  16864. method: r,
  16865. headers: o
  16866. }).then(function (e) {
  16867. var t = e.data || {};
  16868. if (!t.success) throw new te({
  16869. code: e.errCode,
  16870. message: e.errMsg,
  16871. requestId: e.requestId
  16872. });
  16873. return t.data || {};
  16874. }).catch(function (e) {
  16875. throw new te({
  16876. code: e.errCode,
  16877. message: e.errMsg,
  16878. requestId: e.requestId
  16879. });
  16880. });
  16881. }
  16882. function qt() {
  16883. var e = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : "";
  16884. var t = e.trim().replace(/^cloud:\/\//, ""),
  16885. n = t.indexOf("/");
  16886. if (n <= 0) throw new te({
  16887. code: "INVALID_PARAM",
  16888. message: "fileID不合法"
  16889. });
  16890. var s = t.substring(0, n),
  16891. r = t.substring(n + 1);
  16892. return s !== this.config.spaceId && console.warn("file ".concat(e, " does not belong to env ").concat(this.config.spaceId)), r;
  16893. }
  16894. function Ft() {
  16895. var e = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : "";
  16896. return "cloud://".concat(this.config.spaceId, "/").concat(e.replace(/^\/+/, ""));
  16897. }
  16898. var Kt = /*#__PURE__*/function () {
  16899. function Kt(e) {
  16900. (0, _classCallCheck2.default)(this, Kt);
  16901. this.config = e;
  16902. }
  16903. (0, _createClass2.default)(Kt, [{
  16904. key: "signedURL",
  16905. value: function signedURL(e) {
  16906. var t = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  16907. var n = "/ws/function/".concat(e),
  16908. s = this.config.wsEndpoint.replace(/^ws(s)?:\/\//, ""),
  16909. r = Object.assign({}, t, {
  16910. accessKeyId: this.config.accessKey,
  16911. signatureNonce: Lt(),
  16912. timestamp: "" + Date.now()
  16913. }),
  16914. i = [n, ["accessKeyId", "authorization", "signatureNonce", "timestamp"].sort().map(function (e) {
  16915. return r[e] ? "".concat(e, "=").concat(r[e]) : null;
  16916. }).filter(Boolean).join("&"), "host:".concat(s)].join("\n"),
  16917. o = ["HMAC-SHA256", _e(i).toString(Rt)].join("\n"),
  16918. a = we(o, this.config.secretKey).toString(Rt),
  16919. c = Object.keys(r).map(function (e) {
  16920. return "".concat(e, "=").concat(encodeURIComponent(r[e]));
  16921. }).join("&");
  16922. return "".concat(this.config.wsEndpoint).concat(n, "?").concat(c, "&signature=").concat(a);
  16923. }
  16924. }]);
  16925. return Kt;
  16926. }();
  16927. var jt = /*#__PURE__*/function () {
  16928. function jt(e) {
  16929. (0, _classCallCheck2.default)(this, jt);
  16930. if (["spaceId", "spaceAppId", "accessKey", "secretKey"].forEach(function (t) {
  16931. if (!Object.prototype.hasOwnProperty.call(e, t)) throw new Error("".concat(t, " required"));
  16932. }), e.endpoint) {
  16933. if ("string" != typeof e.endpoint) throw new Error("endpoint must be string");
  16934. if (!/^https:\/\//.test(e.endpoint)) throw new Error("endpoint must start with https://");
  16935. e.endpoint = e.endpoint.replace(/\/$/, "");
  16936. }
  16937. this.config = Object.assign({}, e, {
  16938. endpoint: e.endpoint || "https://".concat(e.spaceId, ".api-hz.cloudbasefunction.cn"),
  16939. wsEndpoint: e.wsEndpoint || "wss://".concat(e.spaceId, ".api-hz.cloudbasefunction.cn")
  16940. }), this._websocket = new Kt(this.config);
  16941. }
  16942. (0, _createClass2.default)(jt, [{
  16943. key: "callFunction",
  16944. value: function callFunction(e) {
  16945. return function (e, t) {
  16946. var n = e.name,
  16947. s = e.data,
  16948. _e$async = e.async,
  16949. r = _e$async === void 0 ? !1 : _e$async,
  16950. i = e.timeout,
  16951. o = "POST",
  16952. a = {
  16953. "x-to-function-name": n
  16954. };
  16955. r && (a["x-function-invoke-type"] = "async");
  16956. var _Ut2 = Ut("/functions/invokeFunction", {
  16957. functionName: n,
  16958. data: s,
  16959. method: o,
  16960. headers: a,
  16961. signHeaderKeys: ["x-to-function-name"],
  16962. config: t
  16963. }),
  16964. c = _Ut2.url,
  16965. u = _Ut2.headers;
  16966. return Dt({
  16967. url: c,
  16968. data: s,
  16969. method: o,
  16970. headers: u,
  16971. timeout: i
  16972. }).then(function (e) {
  16973. var t = 0;
  16974. if (r) {
  16975. var _n10 = e.data || {};
  16976. t = "200" === _n10.errCode ? 0 : _n10.errCode, e.data = _n10.data || {}, e.errMsg = _n10.errMsg;
  16977. }
  16978. if (0 !== t) throw new te({
  16979. code: t,
  16980. message: e.errMsg,
  16981. requestId: e.requestId
  16982. });
  16983. return {
  16984. errCode: t,
  16985. success: 0 === t,
  16986. requestId: e.requestId,
  16987. result: e.data
  16988. };
  16989. }).catch(function (e) {
  16990. throw new te({
  16991. code: e.errCode,
  16992. message: e.errMsg,
  16993. requestId: e.requestId
  16994. });
  16995. });
  16996. }(e, this.config);
  16997. }
  16998. }, {
  16999. key: "uploadFileToOSS",
  17000. value: function uploadFileToOSS(_ref25) {
  17001. var e = _ref25.url,
  17002. t = _ref25.filePath,
  17003. n = _ref25.fileType,
  17004. s = _ref25.formData,
  17005. r = _ref25.onUploadProgress;
  17006. return new Promise(function (i, o) {
  17007. var a = ne.uploadFile({
  17008. url: e,
  17009. filePath: t,
  17010. fileType: n,
  17011. formData: s,
  17012. name: "file",
  17013. success: function success(e) {
  17014. e && e.statusCode < 400 ? i(e) : o(new te({
  17015. code: "UPLOAD_FAILED",
  17016. message: "文件上传失败"
  17017. }));
  17018. },
  17019. fail: function fail(e) {
  17020. o(new te({
  17021. code: e.code || "UPLOAD_FAILED",
  17022. message: e.message || e.errMsg || "文件上传失败"
  17023. }));
  17024. }
  17025. });
  17026. "function" == typeof r && a && "function" == typeof a.onProgressUpdate && a.onProgressUpdate(function (e) {
  17027. r({
  17028. loaded: e.totalBytesSent,
  17029. total: e.totalBytesExpectedToSend
  17030. });
  17031. });
  17032. });
  17033. }
  17034. }, {
  17035. key: "uploadFile",
  17036. value: function () {
  17037. var _uploadFile2 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee45(_ref26) {
  17038. var e, _ref26$cloudPath, t, _ref26$fileType, n, s, r, i, o, a, c;
  17039. return _regenerator.default.wrap(function _callee45$(_context45) {
  17040. while (1) {
  17041. switch (_context45.prev = _context45.next) {
  17042. case 0:
  17043. e = _ref26.filePath, _ref26$cloudPath = _ref26.cloudPath, t = _ref26$cloudPath === void 0 ? "" : _ref26$cloudPath, _ref26$fileType = _ref26.fileType, n = _ref26$fileType === void 0 ? "image" : _ref26$fileType, s = _ref26.onUploadProgress;
  17044. if (!("string" !== g(t))) {
  17045. _context45.next = 3;
  17046. break;
  17047. }
  17048. throw new te({
  17049. code: "INVALID_PARAM",
  17050. message: "cloudPath必须为字符串类型"
  17051. });
  17052. case 3:
  17053. if (t = t.trim()) {
  17054. _context45.next = 5;
  17055. break;
  17056. }
  17057. throw new te({
  17058. code: "INVALID_PARAM",
  17059. message: "cloudPath不可为空"
  17060. });
  17061. case 5:
  17062. if (!/:\/\//.test(t)) {
  17063. _context45.next = 7;
  17064. break;
  17065. }
  17066. throw new te({
  17067. code: "INVALID_PARAM",
  17068. message: "cloudPath不合法"
  17069. });
  17070. case 7:
  17071. _context45.next = 9;
  17072. return Mt({
  17073. path: "/".concat(t.replace(/^\//, ""), "?post_url")
  17074. }, this.config);
  17075. case 9:
  17076. r = _context45.sent;
  17077. i = r.file_id;
  17078. o = r.upload_url;
  17079. a = r.form_data;
  17080. c = a && a.reduce(function (e, t) {
  17081. return e[t.key] = t.value, e;
  17082. }, {});
  17083. return _context45.abrupt("return", this.uploadFileToOSS({
  17084. url: o,
  17085. filePath: e,
  17086. fileType: n,
  17087. formData: c,
  17088. onUploadProgress: s
  17089. }).then(function () {
  17090. return {
  17091. fileID: i
  17092. };
  17093. }));
  17094. case 15:
  17095. case "end":
  17096. return _context45.stop();
  17097. }
  17098. }
  17099. }, _callee45, this);
  17100. }));
  17101. function uploadFile(_x43) {
  17102. return _uploadFile2.apply(this, arguments);
  17103. }
  17104. return uploadFile;
  17105. }()
  17106. }, {
  17107. key: "getTempFileURL",
  17108. value: function () {
  17109. var _getTempFileURL = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee46(_ref27) {
  17110. var _this18 = this;
  17111. var e;
  17112. return _regenerator.default.wrap(function _callee46$(_context46) {
  17113. while (1) {
  17114. switch (_context46.prev = _context46.next) {
  17115. case 0:
  17116. e = _ref27.fileList;
  17117. return _context46.abrupt("return", new Promise(function (t, n) {
  17118. (!e || e.length < 0) && t({
  17119. code: "INVALID_PARAM",
  17120. message: "fileList不能为空数组"
  17121. }), e.length > 50 && t({
  17122. code: "INVALID_PARAM",
  17123. message: "fileList数组长度不能超过50"
  17124. });
  17125. var s = [];
  17126. var _iterator5 = _createForOfIteratorHelper(e),
  17127. _step5;
  17128. try {
  17129. for (_iterator5.s(); !(_step5 = _iterator5.n()).done;) {
  17130. var _n11 = _step5.value;
  17131. var _e18 = void 0;
  17132. "string" !== g(_n11) && t({
  17133. code: "INVALID_PARAM",
  17134. message: "fileList的元素必须是非空的字符串"
  17135. });
  17136. try {
  17137. _e18 = qt.call(_this18, _n11);
  17138. } catch (t) {
  17139. console.warn(t.errCode, t.errMsg), _e18 = _n11;
  17140. }
  17141. s.push({
  17142. file_id: _e18,
  17143. expire: 600
  17144. });
  17145. }
  17146. } catch (err) {
  17147. _iterator5.e(err);
  17148. } finally {
  17149. _iterator5.f();
  17150. }
  17151. Mt({
  17152. path: "/?download_url",
  17153. data: {
  17154. file_list: s
  17155. },
  17156. method: "POST"
  17157. }, _this18.config).then(function (e) {
  17158. var _e$file_list = e.file_list,
  17159. n = _e$file_list === void 0 ? [] : _e$file_list;
  17160. t({
  17161. fileList: n.map(function (e) {
  17162. return {
  17163. fileID: Ft.call(_this18, e.file_id),
  17164. tempFileURL: e.download_url
  17165. };
  17166. })
  17167. });
  17168. }).catch(function (e) {
  17169. return n(e);
  17170. });
  17171. }));
  17172. case 2:
  17173. case "end":
  17174. return _context46.stop();
  17175. }
  17176. }
  17177. }, _callee46);
  17178. }));
  17179. function getTempFileURL(_x44) {
  17180. return _getTempFileURL.apply(this, arguments);
  17181. }
  17182. return getTempFileURL;
  17183. }()
  17184. }, {
  17185. key: "connectWebSocket",
  17186. value: function () {
  17187. var _connectWebSocket = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee47(e) {
  17188. var t, n;
  17189. return _regenerator.default.wrap(function _callee47$(_context47) {
  17190. while (1) {
  17191. switch (_context47.prev = _context47.next) {
  17192. case 0:
  17193. t = e.name, n = e.query;
  17194. return _context47.abrupt("return", ne.connectSocket({
  17195. url: this._websocket.signedURL(t, n),
  17196. complete: function complete() {}
  17197. }));
  17198. case 2:
  17199. case "end":
  17200. return _context47.stop();
  17201. }
  17202. }
  17203. }, _callee47, this);
  17204. }));
  17205. function connectWebSocket(_x45) {
  17206. return _connectWebSocket.apply(this, arguments);
  17207. }
  17208. return connectWebSocket;
  17209. }()
  17210. }]);
  17211. return jt;
  17212. }();
  17213. var $t = {
  17214. init: function init(e) {
  17215. e.provider = "alipay";
  17216. var t = new jt(e);
  17217. return t.auth = function () {
  17218. return {
  17219. signInAnonymously: function signInAnonymously() {
  17220. return Promise.resolve();
  17221. },
  17222. getLoginState: function getLoginState() {
  17223. return Promise.resolve(!0);
  17224. }
  17225. };
  17226. }, t;
  17227. }
  17228. };
  17229. function Bt(_ref28) {
  17230. var e = _ref28.data;
  17231. var t;
  17232. t = he();
  17233. var n = JSON.parse(JSON.stringify(e || {}));
  17234. if (Object.assign(n, {
  17235. clientInfo: t
  17236. }), !n.uniIdToken) {
  17237. var _se3 = se(),
  17238. _e19 = _se3.token;
  17239. _e19 && (n.uniIdToken = _e19);
  17240. }
  17241. return n;
  17242. }
  17243. function Wt() {
  17244. return _Wt.apply(this, arguments);
  17245. }
  17246. function _Wt() {
  17247. _Wt = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee70() {
  17248. var _this31 = this;
  17249. var e,
  17250. _this$__dev__,
  17251. t,
  17252. n,
  17253. s,
  17254. r,
  17255. i,
  17256. o,
  17257. _args9 = arguments;
  17258. return _regenerator.default.wrap(function _callee70$(_context70) {
  17259. while (1) {
  17260. switch (_context70.prev = _context70.next) {
  17261. case 0:
  17262. e = _args9.length > 0 && _args9[0] !== undefined ? _args9[0] : {};
  17263. _context70.next = 3;
  17264. return this.__dev__.initLocalNetwork();
  17265. case 3:
  17266. _this$__dev__ = this.__dev__, t = _this$__dev__.localAddress, n = _this$__dev__.localPort, s = {
  17267. aliyun: "aliyun",
  17268. tencent: "tcb",
  17269. alipay: "alipay",
  17270. dcloud: "dcloud"
  17271. }[this.config.provider], r = this.config.spaceId, i = "http://".concat(t, ":").concat(n, "/system/check-function"), o = "http://".concat(t, ":").concat(n, "/cloudfunctions/").concat(e.name);
  17272. return _context70.abrupt("return", new Promise(function (t, n) {
  17273. ne.request({
  17274. method: "POST",
  17275. url: i,
  17276. data: {
  17277. name: e.name,
  17278. platform: P,
  17279. provider: s,
  17280. spaceId: r
  17281. },
  17282. timeout: 3e3,
  17283. success: function success(e) {
  17284. t(e);
  17285. },
  17286. fail: function fail() {
  17287. t({
  17288. data: {
  17289. code: "NETWORK_ERROR",
  17290. message: "连接本地调试服务失败,请检查客户端是否和主机在同一局域网下,自动切换为已部署的云函数。"
  17291. }
  17292. });
  17293. }
  17294. });
  17295. }).then(function () {
  17296. var _ref66 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
  17297. e = _ref66.data;
  17298. var _ref67 = e || {},
  17299. t = _ref67.code,
  17300. n = _ref67.message;
  17301. return {
  17302. code: 0 === t ? 0 : t || "SYS_ERR",
  17303. message: n || "SYS_ERR"
  17304. };
  17305. }).then(function (_ref68) {
  17306. var t = _ref68.code,
  17307. n = _ref68.message;
  17308. if (0 !== t) {
  17309. switch (t) {
  17310. case "MODULE_ENCRYPTED":
  17311. console.error("\u6B64\u4E91\u51FD\u6570\uFF08".concat(e.name, "\uFF09\u4F9D\u8D56\u52A0\u5BC6\u516C\u5171\u6A21\u5757\u4E0D\u53EF\u672C\u5730\u8C03\u8BD5\uFF0C\u81EA\u52A8\u5207\u6362\u4E3A\u4E91\u7AEF\u5DF2\u90E8\u7F72\u7684\u4E91\u51FD\u6570"));
  17312. break;
  17313. case "FUNCTION_ENCRYPTED":
  17314. console.error("\u6B64\u4E91\u51FD\u6570\uFF08".concat(e.name, "\uFF09\u5DF2\u52A0\u5BC6\u4E0D\u53EF\u672C\u5730\u8C03\u8BD5\uFF0C\u81EA\u52A8\u5207\u6362\u4E3A\u4E91\u7AEF\u5DF2\u90E8\u7F72\u7684\u4E91\u51FD\u6570"));
  17315. break;
  17316. case "ACTION_ENCRYPTED":
  17317. console.error(n || "需要访问加密的uni-clientDB-action,自动切换为云端环境");
  17318. break;
  17319. case "NETWORK_ERROR":
  17320. console.error(n || "连接本地调试服务失败,请检查客户端是否和主机在同一局域网下");
  17321. break;
  17322. case "SWITCH_TO_CLOUD":
  17323. break;
  17324. default:
  17325. {
  17326. var _e32 = "\u68C0\u6D4B\u672C\u5730\u8C03\u8BD5\u670D\u52A1\u51FA\u73B0\u9519\u8BEF\uFF1A".concat(n, "\uFF0C\u8BF7\u68C0\u67E5\u7F51\u7EDC\u73AF\u5883\u6216\u91CD\u542F\u5BA2\u6237\u7AEF\u518D\u8BD5");
  17327. throw console.error(_e32), new Error(_e32);
  17328. }
  17329. }
  17330. return _this31._callCloudFunction(e);
  17331. }
  17332. return new Promise(function (t, n) {
  17333. var r = Bt.call(_this31, {
  17334. data: e.data
  17335. });
  17336. ne.request({
  17337. method: "POST",
  17338. url: o,
  17339. data: {
  17340. provider: s,
  17341. platform: P,
  17342. param: r
  17343. },
  17344. timeout: e.timeout,
  17345. success: function success() {
  17346. var _ref69 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
  17347. e = _ref69.statusCode,
  17348. s = _ref69.data;
  17349. return !e || e >= 400 ? n(new te({
  17350. code: s.code || "SYS_ERR",
  17351. message: s.message || "request:fail"
  17352. })) : t({
  17353. result: s
  17354. });
  17355. },
  17356. fail: function fail(e) {
  17357. n(new te({
  17358. code: e.code || e.errCode || "SYS_ERR",
  17359. message: e.message || e.errMsg || "request:fail"
  17360. }));
  17361. }
  17362. });
  17363. });
  17364. }));
  17365. case 5:
  17366. case "end":
  17367. return _context70.stop();
  17368. }
  17369. }
  17370. }, _callee70, this);
  17371. }));
  17372. return _Wt.apply(this, arguments);
  17373. }
  17374. var Ht = [{
  17375. rule: /fc_function_not_found|FUNCTION_NOT_FOUND/,
  17376. content: ",云函数[{functionName}]在云端不存在,请检查此云函数名称是否正确以及该云函数是否已上传到服务空间",
  17377. mode: "append"
  17378. }];
  17379. var Jt = /[\\^$.*+?()[\]{}|]/g,
  17380. zt = RegExp(Jt.source);
  17381. function Vt(e, t, n) {
  17382. return e.replace(new RegExp((s = t) && zt.test(s) ? s.replace(Jt, "\\$&") : s, "g"), n);
  17383. var s;
  17384. }
  17385. var Gt = {
  17386. NONE: "none",
  17387. REQUEST: "request",
  17388. RESPONSE: "response",
  17389. BOTH: "both"
  17390. },
  17391. Yt = "_globalUniCloudStatus",
  17392. Qt = "_globalUniCloudSecureNetworkCache__{spaceId}",
  17393. Xt = "uni-secure-network",
  17394. Zt = {
  17395. SYSTEM_ERROR: {
  17396. code: 2e4,
  17397. message: "System error"
  17398. },
  17399. APP_INFO_INVALID: {
  17400. code: 20101,
  17401. message: "Invalid client"
  17402. },
  17403. GET_ENCRYPT_KEY_FAILED: {
  17404. code: 20102,
  17405. message: "Get encrypt key failed"
  17406. }
  17407. },
  17408. en = {
  17409. 10001: "Secure network is not supported on current playground or unimpsdk",
  17410. 10003: "Config missing in current app. If the problem pesist, please contact DCloud.",
  17411. 10009: "Encrypt payload failed",
  17412. 10010: "Decrypt response failed"
  17413. };
  17414. function tn(e) {
  17415. var _ref29 = e || {},
  17416. t = _ref29.errSubject,
  17417. n = _ref29.subject,
  17418. s = _ref29.errCode,
  17419. r = _ref29.errMsg,
  17420. i = _ref29.code,
  17421. o = _ref29.message,
  17422. a = _ref29.cause;
  17423. return new te({
  17424. subject: t || n || Xt,
  17425. code: s || i || Zt.SYSTEM_ERROR.code,
  17426. message: r || o,
  17427. cause: a
  17428. });
  17429. }
  17430. var nn = /*#__PURE__*/function () {
  17431. function nn() {
  17432. var _ref30 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
  17433. e = _ref30.secretType,
  17434. t = _ref30.uniCloudIns;
  17435. (0, _classCallCheck2.default)(this, nn);
  17436. this.clientType = "", this.secretType = e || Gt.NONE, this.uniCloudIns = t;
  17437. var _this$uniCloudIns$con = this.uniCloudIns.config,
  17438. n = _this$uniCloudIns$con.provider,
  17439. s = _this$uniCloudIns$con.spaceId;
  17440. var r;
  17441. this.provider = n, this.spaceId = s, this.scopedGlobalCache = (r = this.uniCloudIns, U(Qt.replace("{spaceId}", r.config.spaceId)));
  17442. }
  17443. (0, _createClass2.default)(nn, [{
  17444. key: "getSystemInfo",
  17445. value: function getSystemInfo() {
  17446. return this._systemInfo || (this._systemInfo = ae()), this._systemInfo;
  17447. }
  17448. }, {
  17449. key: "appId",
  17450. get: function get() {
  17451. return this.getSystemInfo().appId;
  17452. }
  17453. }, {
  17454. key: "deviceId",
  17455. get: function get() {
  17456. return this.getSystemInfo().deviceId;
  17457. }
  17458. }, {
  17459. key: "encryptData",
  17460. value: function () {
  17461. var _encryptData = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee48(e) {
  17462. return _regenerator.default.wrap(function _callee48$(_context48) {
  17463. while (1) {
  17464. switch (_context48.prev = _context48.next) {
  17465. case 0:
  17466. return _context48.abrupt("return", this.secretType === Gt.NONE ? e : this.platformEncryptData(e));
  17467. case 1:
  17468. case "end":
  17469. return _context48.stop();
  17470. }
  17471. }
  17472. }, _callee48, this);
  17473. }));
  17474. function encryptData(_x46) {
  17475. return _encryptData.apply(this, arguments);
  17476. }
  17477. return encryptData;
  17478. }()
  17479. }, {
  17480. key: "decryptResult",
  17481. value: function () {
  17482. var _decryptResult = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee49(e) {
  17483. var _ref31, t, n, s;
  17484. return _regenerator.default.wrap(function _callee49$(_context49) {
  17485. while (1) {
  17486. switch (_context49.prev = _context49.next) {
  17487. case 0:
  17488. if (!(this.secretType === Gt.NONE)) {
  17489. _context49.next = 2;
  17490. break;
  17491. }
  17492. return _context49.abrupt("return", e);
  17493. case 2:
  17494. _ref31 = e || {}, t = _ref31.errCode, n = _ref31.errMsg, s = _ref31.content;
  17495. return _context49.abrupt("return", t || !s ? e : this.secretType === Gt.REQUEST ? s : this.platformDecryptResult(e));
  17496. case 4:
  17497. case "end":
  17498. return _context49.stop();
  17499. }
  17500. }
  17501. }, _callee49, this);
  17502. }));
  17503. function decryptResult(_x47) {
  17504. return _decryptResult.apply(this, arguments);
  17505. }
  17506. return decryptResult;
  17507. }()
  17508. }, {
  17509. key: "wrapVerifyClientCallFunction",
  17510. value: function wrapVerifyClientCallFunction(e) {
  17511. var t = this;
  17512. return /*#__PURE__*/(0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee50() {
  17513. var _ref33,
  17514. n,
  17515. _ref33$data,
  17516. s,
  17517. r,
  17518. _args50 = arguments;
  17519. return _regenerator.default.wrap(function _callee50$(_context50) {
  17520. while (1) {
  17521. switch (_context50.prev = _context50.next) {
  17522. case 0:
  17523. _ref33 = _args50.length > 0 && _args50[0] !== undefined ? _args50[0] : {}, n = _ref33.name, _ref33$data = _ref33.data, s = _ref33$data === void 0 ? {} : _ref33$data;
  17524. _context50.next = 3;
  17525. return t.prepare();
  17526. case 3:
  17527. _context50.next = 5;
  17528. return t.platformGetSignOption();
  17529. case 5:
  17530. (s = JSON.parse(JSON.stringify(s)))._uniCloudOptions = _context50.sent;
  17531. _context50.next = 8;
  17532. return e({
  17533. name: n,
  17534. data: s
  17535. });
  17536. case 8:
  17537. r = _context50.sent;
  17538. _context50.t0 = t.isClientKeyNotFound(r);
  17539. if (!_context50.t0) {
  17540. _context50.next = 19;
  17541. break;
  17542. }
  17543. _context50.next = 13;
  17544. return t.prepare({
  17545. forceUpdate: !0
  17546. });
  17547. case 13:
  17548. _context50.next = 15;
  17549. return t.platformGetSignOption();
  17550. case 15:
  17551. s._uniCloudOptions = _context50.sent;
  17552. _context50.next = 18;
  17553. return e({
  17554. name: n,
  17555. data: s
  17556. });
  17557. case 18:
  17558. r = _context50.sent;
  17559. case 19:
  17560. return _context50.abrupt("return", r);
  17561. case 20:
  17562. case "end":
  17563. return _context50.stop();
  17564. }
  17565. }
  17566. }, _callee50);
  17567. }));
  17568. }
  17569. }, {
  17570. key: "wrapEncryptDataCallFunction",
  17571. value: function wrapEncryptDataCallFunction(e) {
  17572. var t = this;
  17573. return /*#__PURE__*/(0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee51() {
  17574. var _ref35,
  17575. n,
  17576. _ref35$data,
  17577. s,
  17578. r,
  17579. i,
  17580. _r5,
  17581. _args51 = arguments;
  17582. return _regenerator.default.wrap(function _callee51$(_context51) {
  17583. while (1) {
  17584. switch (_context51.prev = _context51.next) {
  17585. case 0:
  17586. _ref35 = _args51.length > 0 && _args51[0] !== undefined ? _args51[0] : {}, n = _ref35.name, _ref35$data = _ref35.data, s = _ref35$data === void 0 ? {} : _ref35$data;
  17587. _context51.next = 3;
  17588. return t.prepare();
  17589. case 3:
  17590. _context51.next = 5;
  17591. return t.encryptData(s);
  17592. case 5:
  17593. r = _context51.sent;
  17594. _context51.next = 8;
  17595. return e({
  17596. name: n,
  17597. data: r
  17598. });
  17599. case 8:
  17600. i = _context51.sent;
  17601. if (!t.isClientKeyNotFound(i)) {
  17602. _context51.next = 18;
  17603. break;
  17604. }
  17605. _context51.next = 12;
  17606. return t.prepare({
  17607. forceUpdate: !0
  17608. });
  17609. case 12:
  17610. _context51.next = 14;
  17611. return t.encryptData(s);
  17612. case 14:
  17613. _r5 = _context51.sent;
  17614. _context51.next = 17;
  17615. return e({
  17616. name: n,
  17617. data: _r5
  17618. });
  17619. case 17:
  17620. i = _context51.sent;
  17621. case 18:
  17622. _context51.next = 20;
  17623. return t.decryptResult(i.result);
  17624. case 20:
  17625. i.result = _context51.sent;
  17626. return _context51.abrupt("return", i);
  17627. case 22:
  17628. case "end":
  17629. return _context51.stop();
  17630. }
  17631. }
  17632. }, _callee51);
  17633. }));
  17634. }
  17635. }]);
  17636. return nn;
  17637. }();
  17638. /*! MIT License. Copyright 2015-2018 Richard Moore <me@ricmoo.com>. See LICENSE.txt. */
  17639. function sn(e) {
  17640. return parseInt(e) === e;
  17641. }
  17642. function rn(e) {
  17643. if (!sn(e.length)) return !1;
  17644. for (var t = 0; t < e.length; t++) {
  17645. if (!sn(e[t]) || e[t] < 0 || e[t] > 255) return !1;
  17646. }
  17647. return !0;
  17648. }
  17649. function on(e, t) {
  17650. if (e.buffer && "Uint8Array" === e.name) return t && (e = e.slice ? e.slice() : Array.prototype.slice.call(e)), e;
  17651. if (Array.isArray(e)) {
  17652. if (!rn(e)) throw new Error("Array contains invalid value: " + e);
  17653. return new Uint8Array(e);
  17654. }
  17655. if (sn(e.length) && rn(e)) return new Uint8Array(e);
  17656. throw new Error("unsupported array-like object");
  17657. }
  17658. function an(e) {
  17659. return new Uint8Array(e);
  17660. }
  17661. function cn(e, t, n, s, r) {
  17662. null == s && null == r || (e = e.slice ? e.slice(s, r) : Array.prototype.slice.call(e, s, r)), t.set(e, n);
  17663. }
  17664. var un,
  17665. hn = {
  17666. toBytes: function toBytes(e) {
  17667. var t = [],
  17668. n = 0;
  17669. for (e = encodeURI(e); n < e.length;) {
  17670. var s = e.charCodeAt(n++);
  17671. 37 === s ? (t.push(parseInt(e.substr(n, 2), 16)), n += 2) : t.push(s);
  17672. }
  17673. return on(t);
  17674. },
  17675. fromBytes: function fromBytes(e) {
  17676. for (var t = [], n = 0; n < e.length;) {
  17677. var s = e[n];
  17678. s < 128 ? (t.push(String.fromCharCode(s)), n++) : s > 191 && s < 224 ? (t.push(String.fromCharCode((31 & s) << 6 | 63 & e[n + 1])), n += 2) : (t.push(String.fromCharCode((15 & s) << 12 | (63 & e[n + 1]) << 6 | 63 & e[n + 2])), n += 3);
  17679. }
  17680. return t.join("");
  17681. }
  17682. },
  17683. ln = (un = "0123456789abcdef", {
  17684. toBytes: function toBytes(e) {
  17685. for (var t = [], n = 0; n < e.length; n += 2) {
  17686. t.push(parseInt(e.substr(n, 2), 16));
  17687. }
  17688. return t;
  17689. },
  17690. fromBytes: function fromBytes(e) {
  17691. for (var t = [], n = 0; n < e.length; n++) {
  17692. var s = e[n];
  17693. t.push(un[(240 & s) >> 4] + un[15 & s]);
  17694. }
  17695. return t.join("");
  17696. }
  17697. }),
  17698. dn = {
  17699. 16: 10,
  17700. 24: 12,
  17701. 32: 14
  17702. },
  17703. pn = [1, 2, 4, 8, 16, 32, 64, 128, 27, 54, 108, 216, 171, 77, 154, 47, 94, 188, 99, 198, 151, 53, 106, 212, 179, 125, 250, 239, 197, 145],
  17704. fn = [99, 124, 119, 123, 242, 107, 111, 197, 48, 1, 103, 43, 254, 215, 171, 118, 202, 130, 201, 125, 250, 89, 71, 240, 173, 212, 162, 175, 156, 164, 114, 192, 183, 253, 147, 38, 54, 63, 247, 204, 52, 165, 229, 241, 113, 216, 49, 21, 4, 199, 35, 195, 24, 150, 5, 154, 7, 18, 128, 226, 235, 39, 178, 117, 9, 131, 44, 26, 27, 110, 90, 160, 82, 59, 214, 179, 41, 227, 47, 132, 83, 209, 0, 237, 32, 252, 177, 91, 106, 203, 190, 57, 74, 76, 88, 207, 208, 239, 170, 251, 67, 77, 51, 133, 69, 249, 2, 127, 80, 60, 159, 168, 81, 163, 64, 143, 146, 157, 56, 245, 188, 182, 218, 33, 16, 255, 243, 210, 205, 12, 19, 236, 95, 151, 68, 23, 196, 167, 126, 61, 100, 93, 25, 115, 96, 129, 79, 220, 34, 42, 144, 136, 70, 238, 184, 20, 222, 94, 11, 219, 224, 50, 58, 10, 73, 6, 36, 92, 194, 211, 172, 98, 145, 149, 228, 121, 231, 200, 55, 109, 141, 213, 78, 169, 108, 86, 244, 234, 101, 122, 174, 8, 186, 120, 37, 46, 28, 166, 180, 198, 232, 221, 116, 31, 75, 189, 139, 138, 112, 62, 181, 102, 72, 3, 246, 14, 97, 53, 87, 185, 134, 193, 29, 158, 225, 248, 152, 17, 105, 217, 142, 148, 155, 30, 135, 233, 206, 85, 40, 223, 140, 161, 137, 13, 191, 230, 66, 104, 65, 153, 45, 15, 176, 84, 187, 22],
  17705. gn = [82, 9, 106, 213, 48, 54, 165, 56, 191, 64, 163, 158, 129, 243, 215, 251, 124, 227, 57, 130, 155, 47, 255, 135, 52, 142, 67, 68, 196, 222, 233, 203, 84, 123, 148, 50, 166, 194, 35, 61, 238, 76, 149, 11, 66, 250, 195, 78, 8, 46, 161, 102, 40, 217, 36, 178, 118, 91, 162, 73, 109, 139, 209, 37, 114, 248, 246, 100, 134, 104, 152, 22, 212, 164, 92, 204, 93, 101, 182, 146, 108, 112, 72, 80, 253, 237, 185, 218, 94, 21, 70, 87, 167, 141, 157, 132, 144, 216, 171, 0, 140, 188, 211, 10, 247, 228, 88, 5, 184, 179, 69, 6, 208, 44, 30, 143, 202, 63, 15, 2, 193, 175, 189, 3, 1, 19, 138, 107, 58, 145, 17, 65, 79, 103, 220, 234, 151, 242, 207, 206, 240, 180, 230, 115, 150, 172, 116, 34, 231, 173, 53, 133, 226, 249, 55, 232, 28, 117, 223, 110, 71, 241, 26, 113, 29, 41, 197, 137, 111, 183, 98, 14, 170, 24, 190, 27, 252, 86, 62, 75, 198, 210, 121, 32, 154, 219, 192, 254, 120, 205, 90, 244, 31, 221, 168, 51, 136, 7, 199, 49, 177, 18, 16, 89, 39, 128, 236, 95, 96, 81, 127, 169, 25, 181, 74, 13, 45, 229, 122, 159, 147, 201, 156, 239, 160, 224, 59, 77, 174, 42, 245, 176, 200, 235, 187, 60, 131, 83, 153, 97, 23, 43, 4, 126, 186, 119, 214, 38, 225, 105, 20, 99, 85, 33, 12, 125],
  17706. mn = [3328402341, 4168907908, 4000806809, 4135287693, 4294111757, 3597364157, 3731845041, 2445657428, 1613770832, 33620227, 3462883241, 1445669757, 3892248089, 3050821474, 1303096294, 3967186586, 2412431941, 528646813, 2311702848, 4202528135, 4026202645, 2992200171, 2387036105, 4226871307, 1101901292, 3017069671, 1604494077, 1169141738, 597466303, 1403299063, 3832705686, 2613100635, 1974974402, 3791519004, 1033081774, 1277568618, 1815492186, 2118074177, 4126668546, 2211236943, 1748251740, 1369810420, 3521504564, 4193382664, 3799085459, 2883115123, 1647391059, 706024767, 134480908, 2512897874, 1176707941, 2646852446, 806885416, 932615841, 168101135, 798661301, 235341577, 605164086, 461406363, 3756188221, 3454790438, 1311188841, 2142417613, 3933566367, 302582043, 495158174, 1479289972, 874125870, 907746093, 3698224818, 3025820398, 1537253627, 2756858614, 1983593293, 3084310113, 2108928974, 1378429307, 3722699582, 1580150641, 327451799, 2790478837, 3117535592, 0, 3253595436, 1075847264, 3825007647, 2041688520, 3059440621, 3563743934, 2378943302, 1740553945, 1916352843, 2487896798, 2555137236, 2958579944, 2244988746, 3151024235, 3320835882, 1336584933, 3992714006, 2252555205, 2588757463, 1714631509, 293963156, 2319795663, 3925473552, 67240454, 4269768577, 2689618160, 2017213508, 631218106, 1269344483, 2723238387, 1571005438, 2151694528, 93294474, 1066570413, 563977660, 1882732616, 4059428100, 1673313503, 2008463041, 2950355573, 1109467491, 537923632, 3858759450, 4260623118, 3218264685, 2177748300, 403442708, 638784309, 3287084079, 3193921505, 899127202, 2286175436, 773265209, 2479146071, 1437050866, 4236148354, 2050833735, 3362022572, 3126681063, 840505643, 3866325909, 3227541664, 427917720, 2655997905, 2749160575, 1143087718, 1412049534, 999329963, 193497219, 2353415882, 3354324521, 1807268051, 672404540, 2816401017, 3160301282, 369822493, 2916866934, 3688947771, 1681011286, 1949973070, 336202270, 2454276571, 201721354, 1210328172, 3093060836, 2680341085, 3184776046, 1135389935, 3294782118, 965841320, 831886756, 3554993207, 4068047243, 3588745010, 2345191491, 1849112409, 3664604599, 26054028, 2983581028, 2622377682, 1235855840, 3630984372, 2891339514, 4092916743, 3488279077, 3395642799, 4101667470, 1202630377, 268961816, 1874508501, 4034427016, 1243948399, 1546530418, 941366308, 1470539505, 1941222599, 2546386513, 3421038627, 2715671932, 3899946140, 1042226977, 2521517021, 1639824860, 227249030, 260737669, 3765465232, 2084453954, 1907733956, 3429263018, 2420656344, 100860677, 4160157185, 470683154, 3261161891, 1781871967, 2924959737, 1773779408, 394692241, 2579611992, 974986535, 664706745, 3655459128, 3958962195, 731420851, 571543859, 3530123707, 2849626480, 126783113, 865375399, 765172662, 1008606754, 361203602, 3387549984, 2278477385, 2857719295, 1344809080, 2782912378, 59542671, 1503764984, 160008576, 437062935, 1707065306, 3622233649, 2218934982, 3496503480, 2185314755, 697932208, 1512910199, 504303377, 2075177163, 2824099068, 1841019862, 739644986],
  17707. yn = [2781242211, 2230877308, 2582542199, 2381740923, 234877682, 3184946027, 2984144751, 1418839493, 1348481072, 50462977, 2848876391, 2102799147, 434634494, 1656084439, 3863849899, 2599188086, 1167051466, 2636087938, 1082771913, 2281340285, 368048890, 3954334041, 3381544775, 201060592, 3963727277, 1739838676, 4250903202, 3930435503, 3206782108, 4149453988, 2531553906, 1536934080, 3262494647, 484572669, 2923271059, 1783375398, 1517041206, 1098792767, 49674231, 1334037708, 1550332980, 4098991525, 886171109, 150598129, 2481090929, 1940642008, 1398944049, 1059722517, 201851908, 1385547719, 1699095331, 1587397571, 674240536, 2704774806, 252314885, 3039795866, 151914247, 908333586, 2602270848, 1038082786, 651029483, 1766729511, 3447698098, 2682942837, 454166793, 2652734339, 1951935532, 775166490, 758520603, 3000790638, 4004797018, 4217086112, 4137964114, 1299594043, 1639438038, 3464344499, 2068982057, 1054729187, 1901997871, 2534638724, 4121318227, 1757008337, 0, 750906861, 1614815264, 535035132, 3363418545, 3988151131, 3201591914, 1183697867, 3647454910, 1265776953, 3734260298, 3566750796, 3903871064, 1250283471, 1807470800, 717615087, 3847203498, 384695291, 3313910595, 3617213773, 1432761139, 2484176261, 3481945413, 283769337, 100925954, 2180939647, 4037038160, 1148730428, 3123027871, 3813386408, 4087501137, 4267549603, 3229630528, 2315620239, 2906624658, 3156319645, 1215313976, 82966005, 3747855548, 3245848246, 1974459098, 1665278241, 807407632, 451280895, 251524083, 1841287890, 1283575245, 337120268, 891687699, 801369324, 3787349855, 2721421207, 3431482436, 959321879, 1469301956, 4065699751, 2197585534, 1199193405, 2898814052, 3887750493, 724703513, 2514908019, 2696962144, 2551808385, 3516813135, 2141445340, 1715741218, 2119445034, 2872807568, 2198571144, 3398190662, 700968686, 3547052216, 1009259540, 2041044702, 3803995742, 487983883, 1991105499, 1004265696, 1449407026, 1316239930, 504629770, 3683797321, 168560134, 1816667172, 3837287516, 1570751170, 1857934291, 4014189740, 2797888098, 2822345105, 2754712981, 936633572, 2347923833, 852879335, 1133234376, 1500395319, 3084545389, 2348912013, 1689376213, 3533459022, 3762923945, 3034082412, 4205598294, 133428468, 634383082, 2949277029, 2398386810, 3913789102, 403703816, 3580869306, 2297460856, 1867130149, 1918643758, 607656988, 4049053350, 3346248884, 1368901318, 600565992, 2090982877, 2632479860, 557719327, 3717614411, 3697393085, 2249034635, 2232388234, 2430627952, 1115438654, 3295786421, 2865522278, 3633334344, 84280067, 33027830, 303828494, 2747425121, 1600795957, 4188952407, 3496589753, 2434238086, 1486471617, 658119965, 3106381470, 953803233, 334231800, 3005978776, 857870609, 3151128937, 1890179545, 2298973838, 2805175444, 3056442267, 574365214, 2450884487, 550103529, 1233637070, 4289353045, 2018519080, 2057691103, 2399374476, 4166623649, 2148108681, 387583245, 3664101311, 836232934, 3330556482, 3100665960, 3280093505, 2955516313, 2002398509, 287182607, 3413881008, 4238890068, 3597515707, 975967766],
  17708. _n = [1671808611, 2089089148, 2006576759, 2072901243, 4061003762, 1807603307, 1873927791, 3310653893, 810573872, 16974337, 1739181671, 729634347, 4263110654, 3613570519, 2883997099, 1989864566, 3393556426, 2191335298, 3376449993, 2106063485, 4195741690, 1508618841, 1204391495, 4027317232, 2917941677, 3563566036, 2734514082, 2951366063, 2629772188, 2767672228, 1922491506, 3227229120, 3082974647, 4246528509, 2477669779, 644500518, 911895606, 1061256767, 4144166391, 3427763148, 878471220, 2784252325, 3845444069, 4043897329, 1905517169, 3631459288, 827548209, 356461077, 67897348, 3344078279, 593839651, 3277757891, 405286936, 2527147926, 84871685, 2595565466, 118033927, 305538066, 2157648768, 3795705826, 3945188843, 661212711, 2999812018, 1973414517, 152769033, 2208177539, 745822252, 439235610, 455947803, 1857215598, 1525593178, 2700827552, 1391895634, 994932283, 3596728278, 3016654259, 695947817, 3812548067, 795958831, 2224493444, 1408607827, 3513301457, 0, 3979133421, 543178784, 4229948412, 2982705585, 1542305371, 1790891114, 3410398667, 3201918910, 961245753, 1256100938, 1289001036, 1491644504, 3477767631, 3496721360, 4012557807, 2867154858, 4212583931, 1137018435, 1305975373, 861234739, 2241073541, 1171229253, 4178635257, 33948674, 2139225727, 1357946960, 1011120188, 2679776671, 2833468328, 1374921297, 2751356323, 1086357568, 2408187279, 2460827538, 2646352285, 944271416, 4110742005, 3168756668, 3066132406, 3665145818, 560153121, 271589392, 4279952895, 4077846003, 3530407890, 3444343245, 202643468, 322250259, 3962553324, 1608629855, 2543990167, 1154254916, 389623319, 3294073796, 2817676711, 2122513534, 1028094525, 1689045092, 1575467613, 422261273, 1939203699, 1621147744, 2174228865, 1339137615, 3699352540, 577127458, 712922154, 2427141008, 2290289544, 1187679302, 3995715566, 3100863416, 339486740, 3732514782, 1591917662, 186455563, 3681988059, 3762019296, 844522546, 978220090, 169743370, 1239126601, 101321734, 611076132, 1558493276, 3260915650, 3547250131, 2901361580, 1655096418, 2443721105, 2510565781, 3828863972, 2039214713, 3878868455, 3359869896, 928607799, 1840765549, 2374762893, 3580146133, 1322425422, 2850048425, 1823791212, 1459268694, 4094161908, 3928346602, 1706019429, 2056189050, 2934523822, 135794696, 3134549946, 2022240376, 628050469, 779246638, 472135708, 2800834470, 3032970164, 3327236038, 3894660072, 3715932637, 1956440180, 522272287, 1272813131, 3185336765, 2340818315, 2323976074, 1888542832, 1044544574, 3049550261, 1722469478, 1222152264, 50660867, 4127324150, 236067854, 1638122081, 895445557, 1475980887, 3117443513, 2257655686, 3243809217, 489110045, 2662934430, 3778599393, 4162055160, 2561878936, 288563729, 1773916777, 3648039385, 2391345038, 2493985684, 2612407707, 505560094, 2274497927, 3911240169, 3460925390, 1442818645, 678973480, 3749357023, 2358182796, 2717407649, 2306869641, 219617805, 3218761151, 3862026214, 1120306242, 1756942440, 1103331905, 2578459033, 762796589, 252780047, 2966125488, 1425844308, 3151392187, 372911126],
  17709. wn = [1667474886, 2088535288, 2004326894, 2071694838, 4075949567, 1802223062, 1869591006, 3318043793, 808472672, 16843522, 1734846926, 724270422, 4278065639, 3621216949, 2880169549, 1987484396, 3402253711, 2189597983, 3385409673, 2105378810, 4210693615, 1499065266, 1195886990, 4042263547, 2913856577, 3570689971, 2728590687, 2947541573, 2627518243, 2762274643, 1920112356, 3233831835, 3082273397, 4261223649, 2475929149, 640051788, 909531756, 1061110142, 4160160501, 3435941763, 875846760, 2779116625, 3857003729, 4059105529, 1903268834, 3638064043, 825316194, 353713962, 67374088, 3351728789, 589522246, 3284360861, 404236336, 2526454071, 84217610, 2593830191, 117901582, 303183396, 2155911963, 3806477791, 3958056653, 656894286, 2998062463, 1970642922, 151591698, 2206440989, 741110872, 437923380, 454765878, 1852748508, 1515908788, 2694904667, 1381168804, 993742198, 3604373943, 3014905469, 690584402, 3823320797, 791638366, 2223281939, 1398011302, 3520161977, 0, 3991743681, 538992704, 4244381667, 2981218425, 1532751286, 1785380564, 3419096717, 3200178535, 960056178, 1246420628, 1280103576, 1482221744, 3486468741, 3503319995, 4025428677, 2863326543, 4227536621, 1128514950, 1296947098, 859002214, 2240123921, 1162203018, 4193849577, 33687044, 2139062782, 1347481760, 1010582648, 2678045221, 2829640523, 1364325282, 2745433693, 1077985408, 2408548869, 2459086143, 2644360225, 943212656, 4126475505, 3166494563, 3065430391, 3671750063, 555836226, 269496352, 4294908645, 4092792573, 3537006015, 3452783745, 202118168, 320025894, 3974901699, 1600119230, 2543297077, 1145359496, 387397934, 3301201811, 2812801621, 2122220284, 1027426170, 1684319432, 1566435258, 421079858, 1936954854, 1616945344, 2172753945, 1330631070, 3705438115, 572679748, 707427924, 2425400123, 2290647819, 1179044492, 4008585671, 3099120491, 336870440, 3739122087, 1583276732, 185277718, 3688593069, 3772791771, 842159716, 976899700, 168435220, 1229577106, 101059084, 606366792, 1549591736, 3267517855, 3553849021, 2897014595, 1650632388, 2442242105, 2509612081, 3840161747, 2038008818, 3890688725, 3368567691, 926374254, 1835907034, 2374863873, 3587531953, 1313788572, 2846482505, 1819063512, 1448540844, 4109633523, 3941213647, 1701162954, 2054852340, 2930698567, 134748176, 3132806511, 2021165296, 623210314, 774795868, 471606328, 2795958615, 3031746419, 3334885783, 3907527627, 3722280097, 1953799400, 522133822, 1263263126, 3183336545, 2341176845, 2324333839, 1886425312, 1044267644, 3048588401, 1718004428, 1212733584, 50529542, 4143317495, 235803164, 1633788866, 892690282, 1465383342, 3115962473, 2256965911, 3250673817, 488449850, 2661202215, 3789633753, 4177007595, 2560144171, 286339874, 1768537042, 3654906025, 2391705863, 2492770099, 2610673197, 505291324, 2273808917, 3924369609, 3469625735, 1431699370, 673740880, 3755965093, 2358021891, 2711746649, 2307489801, 218961690, 3217021541, 3873845719, 1111672452, 1751693520, 1094828930, 2576986153, 757954394, 252645662, 2964376443, 1414855848, 3149649517, 370555436],
  17710. In = [1374988112, 2118214995, 437757123, 975658646, 1001089995, 530400753, 2902087851, 1273168787, 540080725, 2910219766, 2295101073, 4110568485, 1340463100, 3307916247, 641025152, 3043140495, 3736164937, 632953703, 1172967064, 1576976609, 3274667266, 2169303058, 2370213795, 1809054150, 59727847, 361929877, 3211623147, 2505202138, 3569255213, 1484005843, 1239443753, 2395588676, 1975683434, 4102977912, 2572697195, 666464733, 3202437046, 4035489047, 3374361702, 2110667444, 1675577880, 3843699074, 2538681184, 1649639237, 2976151520, 3144396420, 4269907996, 4178062228, 1883793496, 2403728665, 2497604743, 1383856311, 2876494627, 1917518562, 3810496343, 1716890410, 3001755655, 800440835, 2261089178, 3543599269, 807962610, 599762354, 33778362, 3977675356, 2328828971, 2809771154, 4077384432, 1315562145, 1708848333, 101039829, 3509871135, 3299278474, 875451293, 2733856160, 92987698, 2767645557, 193195065, 1080094634, 1584504582, 3178106961, 1042385657, 2531067453, 3711829422, 1306967366, 2438237621, 1908694277, 67556463, 1615861247, 429456164, 3602770327, 2302690252, 1742315127, 2968011453, 126454664, 3877198648, 2043211483, 2709260871, 2084704233, 4169408201, 0, 159417987, 841739592, 504459436, 1817866830, 4245618683, 260388950, 1034867998, 908933415, 168810852, 1750902305, 2606453969, 607530554, 202008497, 2472011535, 3035535058, 463180190, 2160117071, 1641816226, 1517767529, 470948374, 3801332234, 3231722213, 1008918595, 303765277, 235474187, 4069246893, 766945465, 337553864, 1475418501, 2943682380, 4003061179, 2743034109, 4144047775, 1551037884, 1147550661, 1543208500, 2336434550, 3408119516, 3069049960, 3102011747, 3610369226, 1113818384, 328671808, 2227573024, 2236228733, 3535486456, 2935566865, 3341394285, 496906059, 3702665459, 226906860, 2009195472, 733156972, 2842737049, 294930682, 1206477858, 2835123396, 2700099354, 1451044056, 573804783, 2269728455, 3644379585, 2362090238, 2564033334, 2801107407, 2776292904, 3669462566, 1068351396, 742039012, 1350078989, 1784663195, 1417561698, 4136440770, 2430122216, 775550814, 2193862645, 2673705150, 1775276924, 1876241833, 3475313331, 3366754619, 270040487, 3902563182, 3678124923, 3441850377, 1851332852, 3969562369, 2203032232, 3868552805, 2868897406, 566021896, 4011190502, 3135740889, 1248802510, 3936291284, 699432150, 832877231, 708780849, 3332740144, 899835584, 1951317047, 4236429990, 3767586992, 866637845, 4043610186, 1106041591, 2144161806, 395441711, 1984812685, 1139781709, 3433712980, 3835036895, 2664543715, 1282050075, 3240894392, 1181045119, 2640243204, 25965917, 4203181171, 4211818798, 3009879386, 2463879762, 3910161971, 1842759443, 2597806476, 933301370, 1509430414, 3943906441, 3467192302, 3076639029, 3776767469, 2051518780, 2631065433, 1441952575, 404016761, 1942435775, 1408749034, 1610459739, 3745345300, 2017778566, 3400528769, 3110650942, 941896748, 3265478751, 371049330, 3168937228, 675039627, 4279080257, 967311729, 135050206, 3635733660, 1683407248, 2076935265, 3576870512, 1215061108, 3501741890],
  17711. vn = [1347548327, 1400783205, 3273267108, 2520393566, 3409685355, 4045380933, 2880240216, 2471224067, 1428173050, 4138563181, 2441661558, 636813900, 4233094615, 3620022987, 2149987652, 2411029155, 1239331162, 1730525723, 2554718734, 3781033664, 46346101, 310463728, 2743944855, 3328955385, 3875770207, 2501218972, 3955191162, 3667219033, 768917123, 3545789473, 692707433, 1150208456, 1786102409, 2029293177, 1805211710, 3710368113, 3065962831, 401639597, 1724457132, 3028143674, 409198410, 2196052529, 1620529459, 1164071807, 3769721975, 2226875310, 486441376, 2499348523, 1483753576, 428819965, 2274680428, 3075636216, 598438867, 3799141122, 1474502543, 711349675, 129166120, 53458370, 2592523643, 2782082824, 4063242375, 2988687269, 3120694122, 1559041666, 730517276, 2460449204, 4042459122, 2706270690, 3446004468, 3573941694, 533804130, 2328143614, 2637442643, 2695033685, 839224033, 1973745387, 957055980, 2856345839, 106852767, 1371368976, 4181598602, 1033297158, 2933734917, 1179510461, 3046200461, 91341917, 1862534868, 4284502037, 605657339, 2547432937, 3431546947, 2003294622, 3182487618, 2282195339, 954669403, 3682191598, 1201765386, 3917234703, 3388507166, 0, 2198438022, 1211247597, 2887651696, 1315723890, 4227665663, 1443857720, 507358933, 657861945, 1678381017, 560487590, 3516619604, 975451694, 2970356327, 261314535, 3535072918, 2652609425, 1333838021, 2724322336, 1767536459, 370938394, 182621114, 3854606378, 1128014560, 487725847, 185469197, 2918353863, 3106780840, 3356761769, 2237133081, 1286567175, 3152976349, 4255350624, 2683765030, 3160175349, 3309594171, 878443390, 1988838185, 3704300486, 1756818940, 1673061617, 3403100636, 272786309, 1075025698, 545572369, 2105887268, 4174560061, 296679730, 1841768865, 1260232239, 4091327024, 3960309330, 3497509347, 1814803222, 2578018489, 4195456072, 575138148, 3299409036, 446754879, 3629546796, 4011996048, 3347532110, 3252238545, 4270639778, 915985419, 3483825537, 681933534, 651868046, 2755636671, 3828103837, 223377554, 2607439820, 1649704518, 3270937875, 3901806776, 1580087799, 4118987695, 3198115200, 2087309459, 2842678573, 3016697106, 1003007129, 2802849917, 1860738147, 2077965243, 164439672, 4100872472, 32283319, 2827177882, 1709610350, 2125135846, 136428751, 3874428392, 3652904859, 3460984630, 3572145929, 3593056380, 2939266226, 824852259, 818324884, 3224740454, 930369212, 2801566410, 2967507152, 355706840, 1257309336, 4148292826, 243256656, 790073846, 2373340630, 1296297904, 1422699085, 3756299780, 3818836405, 457992840, 3099667487, 2135319889, 77422314, 1560382517, 1945798516, 788204353, 1521706781, 1385356242, 870912086, 325965383, 2358957921, 2050466060, 2388260884, 2313884476, 4006521127, 901210569, 3990953189, 1014646705, 1503449823, 1062597235, 2031621326, 3212035895, 3931371469, 1533017514, 350174575, 2256028891, 2177544179, 1052338372, 741876788, 1606591296, 1914052035, 213705253, 2334669897, 1107234197, 1899603969, 3725069491, 2631447780, 2422494913, 1635502980, 1893020342, 1950903388, 1120974935],
  17712. Sn = [2807058932, 1699970625, 2764249623, 1586903591, 1808481195, 1173430173, 1487645946, 59984867, 4199882800, 1844882806, 1989249228, 1277555970, 3623636965, 3419915562, 1149249077, 2744104290, 1514790577, 459744698, 244860394, 3235995134, 1963115311, 4027744588, 2544078150, 4190530515, 1608975247, 2627016082, 2062270317, 1507497298, 2200818878, 567498868, 1764313568, 3359936201, 2305455554, 2037970062, 1047239e3, 1910319033, 1337376481, 2904027272, 2892417312, 984907214, 1243112415, 830661914, 861968209, 2135253587, 2011214180, 2927934315, 2686254721, 731183368, 1750626376, 4246310725, 1820824798, 4172763771, 3542330227, 48394827, 2404901663, 2871682645, 671593195, 3254988725, 2073724613, 145085239, 2280796200, 2779915199, 1790575107, 2187128086, 472615631, 3029510009, 4075877127, 3802222185, 4107101658, 3201631749, 1646252340, 4270507174, 1402811438, 1436590835, 3778151818, 3950355702, 3963161475, 4020912224, 2667994737, 273792366, 2331590177, 104699613, 95345982, 3175501286, 2377486676, 1560637892, 3564045318, 369057872, 4213447064, 3919042237, 1137477952, 2658625497, 1119727848, 2340947849, 1530455833, 4007360968, 172466556, 266959938, 516552836, 0, 2256734592, 3980931627, 1890328081, 1917742170, 4294704398, 945164165, 3575528878, 958871085, 3647212047, 2787207260, 1423022939, 775562294, 1739656202, 3876557655, 2530391278, 2443058075, 3310321856, 547512796, 1265195639, 437656594, 3121275539, 719700128, 3762502690, 387781147, 218828297, 3350065803, 2830708150, 2848461854, 428169201, 122466165, 3720081049, 1627235199, 648017665, 4122762354, 1002783846, 2117360635, 695634755, 3336358691, 4234721005, 4049844452, 3704280881, 2232435299, 574624663, 287343814, 612205898, 1039717051, 840019705, 2708326185, 793451934, 821288114, 1391201670, 3822090177, 376187827, 3113855344, 1224348052, 1679968233, 2361698556, 1058709744, 752375421, 2431590963, 1321699145, 3519142200, 2734591178, 188127444, 2177869557, 3727205754, 2384911031, 3215212461, 2648976442, 2450346104, 3432737375, 1180849278, 331544205, 3102249176, 4150144569, 2952102595, 2159976285, 2474404304, 766078933, 313773861, 2570832044, 2108100632, 1668212892, 3145456443, 2013908262, 418672217, 3070356634, 2594734927, 1852171925, 3867060991, 3473416636, 3907448597, 2614737639, 919489135, 164948639, 2094410160, 2997825956, 590424639, 2486224549, 1723872674, 3157750862, 3399941250, 3501252752, 3625268135, 2555048196, 3673637356, 1343127501, 4130281361, 3599595085, 2957853679, 1297403050, 81781910, 3051593425, 2283490410, 532201772, 1367295589, 3926170974, 895287692, 1953757831, 1093597963, 492483431, 3528626907, 1446242576, 1192455638, 1636604631, 209336225, 344873464, 1015671571, 669961897, 3375740769, 3857572124, 2973530695, 3747192018, 1933530610, 3464042516, 935293895, 3454686199, 2858115069, 1863638845, 3683022916, 4085369519, 3292445032, 875313188, 1080017571, 3279033885, 621591778, 1233856572, 2504130317, 24197544, 3017672716, 3835484340, 3247465558, 2220981195, 3060847922, 1551124588, 1463996600],
  17713. Tn = [4104605777, 1097159550, 396673818, 660510266, 2875968315, 2638606623, 4200115116, 3808662347, 821712160, 1986918061, 3430322568, 38544885, 3856137295, 718002117, 893681702, 1654886325, 2975484382, 3122358053, 3926825029, 4274053469, 796197571, 1290801793, 1184342925, 3556361835, 2405426947, 2459735317, 1836772287, 1381620373, 3196267988, 1948373848, 3764988233, 3385345166, 3263785589, 2390325492, 1480485785, 3111247143, 3780097726, 2293045232, 548169417, 3459953789, 3746175075, 439452389, 1362321559, 1400849762, 1685577905, 1806599355, 2174754046, 137073913, 1214797936, 1174215055, 3731654548, 2079897426, 1943217067, 1258480242, 529487843, 1437280870, 3945269170, 3049390895, 3313212038, 923313619, 679998e3, 3215307299, 57326082, 377642221, 3474729866, 2041877159, 133361907, 1776460110, 3673476453, 96392454, 878845905, 2801699524, 777231668, 4082475170, 2330014213, 4142626212, 2213296395, 1626319424, 1906247262, 1846563261, 562755902, 3708173718, 1040559837, 3871163981, 1418573201, 3294430577, 114585348, 1343618912, 2566595609, 3186202582, 1078185097, 3651041127, 3896688048, 2307622919, 425408743, 3371096953, 2081048481, 1108339068, 2216610296, 0, 2156299017, 736970802, 292596766, 1517440620, 251657213, 2235061775, 2933202493, 758720310, 265905162, 1554391400, 1532285339, 908999204, 174567692, 1474760595, 4002861748, 2610011675, 3234156416, 3693126241, 2001430874, 303699484, 2478443234, 2687165888, 585122620, 454499602, 151849742, 2345119218, 3064510765, 514443284, 4044981591, 1963412655, 2581445614, 2137062819, 19308535, 1928707164, 1715193156, 4219352155, 1126790795, 600235211, 3992742070, 3841024952, 836553431, 1669664834, 2535604243, 3323011204, 1243905413, 3141400786, 4180808110, 698445255, 2653899549, 2989552604, 2253581325, 3252932727, 3004591147, 1891211689, 2487810577, 3915653703, 4237083816, 4030667424, 2100090966, 865136418, 1229899655, 953270745, 3399679628, 3557504664, 4118925222, 2061379749, 3079546586, 2915017791, 983426092, 2022837584, 1607244650, 2118541908, 2366882550, 3635996816, 972512814, 3283088770, 1568718495, 3499326569, 3576539503, 621982671, 2895723464, 410887952, 2623762152, 1002142683, 645401037, 1494807662, 2595684844, 1335535747, 2507040230, 4293295786, 3167684641, 367585007, 3885750714, 1865862730, 2668221674, 2960971305, 2763173681, 1059270954, 2777952454, 2724642869, 1320957812, 2194319100, 2429595872, 2815956275, 77089521, 3973773121, 3444575871, 2448830231, 1305906550, 4021308739, 2857194700, 2516901860, 3518358430, 1787304780, 740276417, 1699839814, 1592394909, 2352307457, 2272556026, 188821243, 1729977011, 3687994002, 274084841, 3594982253, 3613494426, 2701949495, 4162096729, 322734571, 2837966542, 1640576439, 484830689, 1202797690, 3537852828, 4067639125, 349075736, 3342319475, 4157467219, 4255800159, 1030690015, 1155237496, 2951971274, 1757691577, 607398968, 2738905026, 499347990, 3794078908, 1011452712, 227885567, 2818666809, 213114376, 3034881240, 1455525988, 3414450555, 850817237, 1817998408, 3092726480],
  17714. bn = [0, 235474187, 470948374, 303765277, 941896748, 908933415, 607530554, 708780849, 1883793496, 2118214995, 1817866830, 1649639237, 1215061108, 1181045119, 1417561698, 1517767529, 3767586992, 4003061179, 4236429990, 4069246893, 3635733660, 3602770327, 3299278474, 3400528769, 2430122216, 2664543715, 2362090238, 2193862645, 2835123396, 2801107407, 3035535058, 3135740889, 3678124923, 3576870512, 3341394285, 3374361702, 3810496343, 3977675356, 4279080257, 4043610186, 2876494627, 2776292904, 3076639029, 3110650942, 2472011535, 2640243204, 2403728665, 2169303058, 1001089995, 899835584, 666464733, 699432150, 59727847, 226906860, 530400753, 294930682, 1273168787, 1172967064, 1475418501, 1509430414, 1942435775, 2110667444, 1876241833, 1641816226, 2910219766, 2743034109, 2976151520, 3211623147, 2505202138, 2606453969, 2302690252, 2269728455, 3711829422, 3543599269, 3240894392, 3475313331, 3843699074, 3943906441, 4178062228, 4144047775, 1306967366, 1139781709, 1374988112, 1610459739, 1975683434, 2076935265, 1775276924, 1742315127, 1034867998, 866637845, 566021896, 800440835, 92987698, 193195065, 429456164, 395441711, 1984812685, 2017778566, 1784663195, 1683407248, 1315562145, 1080094634, 1383856311, 1551037884, 101039829, 135050206, 437757123, 337553864, 1042385657, 807962610, 573804783, 742039012, 2531067453, 2564033334, 2328828971, 2227573024, 2935566865, 2700099354, 3001755655, 3168937228, 3868552805, 3902563182, 4203181171, 4102977912, 3736164937, 3501741890, 3265478751, 3433712980, 1106041591, 1340463100, 1576976609, 1408749034, 2043211483, 2009195472, 1708848333, 1809054150, 832877231, 1068351396, 766945465, 599762354, 159417987, 126454664, 361929877, 463180190, 2709260871, 2943682380, 3178106961, 3009879386, 2572697195, 2538681184, 2236228733, 2336434550, 3509871135, 3745345300, 3441850377, 3274667266, 3910161971, 3877198648, 4110568485, 4211818798, 2597806476, 2497604743, 2261089178, 2295101073, 2733856160, 2902087851, 3202437046, 2968011453, 3936291284, 3835036895, 4136440770, 4169408201, 3535486456, 3702665459, 3467192302, 3231722213, 2051518780, 1951317047, 1716890410, 1750902305, 1113818384, 1282050075, 1584504582, 1350078989, 168810852, 67556463, 371049330, 404016761, 841739592, 1008918595, 775550814, 540080725, 3969562369, 3801332234, 4035489047, 4269907996, 3569255213, 3669462566, 3366754619, 3332740144, 2631065433, 2463879762, 2160117071, 2395588676, 2767645557, 2868897406, 3102011747, 3069049960, 202008497, 33778362, 270040487, 504459436, 875451293, 975658646, 675039627, 641025152, 2084704233, 1917518562, 1615861247, 1851332852, 1147550661, 1248802510, 1484005843, 1451044056, 933301370, 967311729, 733156972, 632953703, 260388950, 25965917, 328671808, 496906059, 1206477858, 1239443753, 1543208500, 1441952575, 2144161806, 1908694277, 1675577880, 1842759443, 3610369226, 3644379585, 3408119516, 3307916247, 4011190502, 3776767469, 4077384432, 4245618683, 2809771154, 2842737049, 3144396420, 3043140495, 2673705150, 2438237621, 2203032232, 2370213795],
  17715. En = [0, 185469197, 370938394, 487725847, 741876788, 657861945, 975451694, 824852259, 1483753576, 1400783205, 1315723890, 1164071807, 1950903388, 2135319889, 1649704518, 1767536459, 2967507152, 3152976349, 2801566410, 2918353863, 2631447780, 2547432937, 2328143614, 2177544179, 3901806776, 3818836405, 4270639778, 4118987695, 3299409036, 3483825537, 3535072918, 3652904859, 2077965243, 1893020342, 1841768865, 1724457132, 1474502543, 1559041666, 1107234197, 1257309336, 598438867, 681933534, 901210569, 1052338372, 261314535, 77422314, 428819965, 310463728, 3409685355, 3224740454, 3710368113, 3593056380, 3875770207, 3960309330, 4045380933, 4195456072, 2471224067, 2554718734, 2237133081, 2388260884, 3212035895, 3028143674, 2842678573, 2724322336, 4138563181, 4255350624, 3769721975, 3955191162, 3667219033, 3516619604, 3431546947, 3347532110, 2933734917, 2782082824, 3099667487, 3016697106, 2196052529, 2313884476, 2499348523, 2683765030, 1179510461, 1296297904, 1347548327, 1533017514, 1786102409, 1635502980, 2087309459, 2003294622, 507358933, 355706840, 136428751, 53458370, 839224033, 957055980, 605657339, 790073846, 2373340630, 2256028891, 2607439820, 2422494913, 2706270690, 2856345839, 3075636216, 3160175349, 3573941694, 3725069491, 3273267108, 3356761769, 4181598602, 4063242375, 4011996048, 3828103837, 1033297158, 915985419, 730517276, 545572369, 296679730, 446754879, 129166120, 213705253, 1709610350, 1860738147, 1945798516, 2029293177, 1239331162, 1120974935, 1606591296, 1422699085, 4148292826, 4233094615, 3781033664, 3931371469, 3682191598, 3497509347, 3446004468, 3328955385, 2939266226, 2755636671, 3106780840, 2988687269, 2198438022, 2282195339, 2501218972, 2652609425, 1201765386, 1286567175, 1371368976, 1521706781, 1805211710, 1620529459, 2105887268, 1988838185, 533804130, 350174575, 164439672, 46346101, 870912086, 954669403, 636813900, 788204353, 2358957921, 2274680428, 2592523643, 2441661558, 2695033685, 2880240216, 3065962831, 3182487618, 3572145929, 3756299780, 3270937875, 3388507166, 4174560061, 4091327024, 4006521127, 3854606378, 1014646705, 930369212, 711349675, 560487590, 272786309, 457992840, 106852767, 223377554, 1678381017, 1862534868, 1914052035, 2031621326, 1211247597, 1128014560, 1580087799, 1428173050, 32283319, 182621114, 401639597, 486441376, 768917123, 651868046, 1003007129, 818324884, 1503449823, 1385356242, 1333838021, 1150208456, 1973745387, 2125135846, 1673061617, 1756818940, 2970356327, 3120694122, 2802849917, 2887651696, 2637442643, 2520393566, 2334669897, 2149987652, 3917234703, 3799141122, 4284502037, 4100872472, 3309594171, 3460984630, 3545789473, 3629546796, 2050466060, 1899603969, 1814803222, 1730525723, 1443857720, 1560382517, 1075025698, 1260232239, 575138148, 692707433, 878443390, 1062597235, 243256656, 91341917, 409198410, 325965383, 3403100636, 3252238545, 3704300486, 3620022987, 3874428392, 3990953189, 4042459122, 4227665663, 2460449204, 2578018489, 2226875310, 2411029155, 3198115200, 3046200461, 2827177882, 2743944855],
  17716. kn = [0, 218828297, 437656594, 387781147, 875313188, 958871085, 775562294, 590424639, 1750626376, 1699970625, 1917742170, 2135253587, 1551124588, 1367295589, 1180849278, 1265195639, 3501252752, 3720081049, 3399941250, 3350065803, 3835484340, 3919042237, 4270507174, 4085369519, 3102249176, 3051593425, 2734591178, 2952102595, 2361698556, 2177869557, 2530391278, 2614737639, 3145456443, 3060847922, 2708326185, 2892417312, 2404901663, 2187128086, 2504130317, 2555048196, 3542330227, 3727205754, 3375740769, 3292445032, 3876557655, 3926170974, 4246310725, 4027744588, 1808481195, 1723872674, 1910319033, 2094410160, 1608975247, 1391201670, 1173430173, 1224348052, 59984867, 244860394, 428169201, 344873464, 935293895, 984907214, 766078933, 547512796, 1844882806, 1627235199, 2011214180, 2062270317, 1507497298, 1423022939, 1137477952, 1321699145, 95345982, 145085239, 532201772, 313773861, 830661914, 1015671571, 731183368, 648017665, 3175501286, 2957853679, 2807058932, 2858115069, 2305455554, 2220981195, 2474404304, 2658625497, 3575528878, 3625268135, 3473416636, 3254988725, 3778151818, 3963161475, 4213447064, 4130281361, 3599595085, 3683022916, 3432737375, 3247465558, 3802222185, 4020912224, 4172763771, 4122762354, 3201631749, 3017672716, 2764249623, 2848461854, 2331590177, 2280796200, 2431590963, 2648976442, 104699613, 188127444, 472615631, 287343814, 840019705, 1058709744, 671593195, 621591778, 1852171925, 1668212892, 1953757831, 2037970062, 1514790577, 1463996600, 1080017571, 1297403050, 3673637356, 3623636965, 3235995134, 3454686199, 4007360968, 3822090177, 4107101658, 4190530515, 2997825956, 3215212461, 2830708150, 2779915199, 2256734592, 2340947849, 2627016082, 2443058075, 172466556, 122466165, 273792366, 492483431, 1047239e3, 861968209, 612205898, 695634755, 1646252340, 1863638845, 2013908262, 1963115311, 1446242576, 1530455833, 1277555970, 1093597963, 1636604631, 1820824798, 2073724613, 1989249228, 1436590835, 1487645946, 1337376481, 1119727848, 164948639, 81781910, 331544205, 516552836, 1039717051, 821288114, 669961897, 719700128, 2973530695, 3157750862, 2871682645, 2787207260, 2232435299, 2283490410, 2667994737, 2450346104, 3647212047, 3564045318, 3279033885, 3464042516, 3980931627, 3762502690, 4150144569, 4199882800, 3070356634, 3121275539, 2904027272, 2686254721, 2200818878, 2384911031, 2570832044, 2486224549, 3747192018, 3528626907, 3310321856, 3359936201, 3950355702, 3867060991, 4049844452, 4234721005, 1739656202, 1790575107, 2108100632, 1890328081, 1402811438, 1586903591, 1233856572, 1149249077, 266959938, 48394827, 369057872, 418672217, 1002783846, 919489135, 567498868, 752375421, 209336225, 24197544, 376187827, 459744698, 945164165, 895287692, 574624663, 793451934, 1679968233, 1764313568, 2117360635, 1933530610, 1343127501, 1560637892, 1243112415, 1192455638, 3704280881, 3519142200, 3336358691, 3419915562, 3907448597, 3857572124, 4075877127, 4294704398, 3029510009, 3113855344, 2927934315, 2744104290, 2159976285, 2377486676, 2594734927, 2544078150],
  17717. An = [0, 151849742, 303699484, 454499602, 607398968, 758720310, 908999204, 1059270954, 1214797936, 1097159550, 1517440620, 1400849762, 1817998408, 1699839814, 2118541908, 2001430874, 2429595872, 2581445614, 2194319100, 2345119218, 3034881240, 3186202582, 2801699524, 2951971274, 3635996816, 3518358430, 3399679628, 3283088770, 4237083816, 4118925222, 4002861748, 3885750714, 1002142683, 850817237, 698445255, 548169417, 529487843, 377642221, 227885567, 77089521, 1943217067, 2061379749, 1640576439, 1757691577, 1474760595, 1592394909, 1174215055, 1290801793, 2875968315, 2724642869, 3111247143, 2960971305, 2405426947, 2253581325, 2638606623, 2487810577, 3808662347, 3926825029, 4044981591, 4162096729, 3342319475, 3459953789, 3576539503, 3693126241, 1986918061, 2137062819, 1685577905, 1836772287, 1381620373, 1532285339, 1078185097, 1229899655, 1040559837, 923313619, 740276417, 621982671, 439452389, 322734571, 137073913, 19308535, 3871163981, 4021308739, 4104605777, 4255800159, 3263785589, 3414450555, 3499326569, 3651041127, 2933202493, 2815956275, 3167684641, 3049390895, 2330014213, 2213296395, 2566595609, 2448830231, 1305906550, 1155237496, 1607244650, 1455525988, 1776460110, 1626319424, 2079897426, 1928707164, 96392454, 213114376, 396673818, 514443284, 562755902, 679998e3, 865136418, 983426092, 3708173718, 3557504664, 3474729866, 3323011204, 4180808110, 4030667424, 3945269170, 3794078908, 2507040230, 2623762152, 2272556026, 2390325492, 2975484382, 3092726480, 2738905026, 2857194700, 3973773121, 3856137295, 4274053469, 4157467219, 3371096953, 3252932727, 3673476453, 3556361835, 2763173681, 2915017791, 3064510765, 3215307299, 2156299017, 2307622919, 2459735317, 2610011675, 2081048481, 1963412655, 1846563261, 1729977011, 1480485785, 1362321559, 1243905413, 1126790795, 878845905, 1030690015, 645401037, 796197571, 274084841, 425408743, 38544885, 188821243, 3613494426, 3731654548, 3313212038, 3430322568, 4082475170, 4200115116, 3780097726, 3896688048, 2668221674, 2516901860, 2366882550, 2216610296, 3141400786, 2989552604, 2837966542, 2687165888, 1202797690, 1320957812, 1437280870, 1554391400, 1669664834, 1787304780, 1906247262, 2022837584, 265905162, 114585348, 499347990, 349075736, 736970802, 585122620, 972512814, 821712160, 2595684844, 2478443234, 2293045232, 2174754046, 3196267988, 3079546586, 2895723464, 2777952454, 3537852828, 3687994002, 3234156416, 3385345166, 4142626212, 4293295786, 3841024952, 3992742070, 174567692, 57326082, 410887952, 292596766, 777231668, 660510266, 1011452712, 893681702, 1108339068, 1258480242, 1343618912, 1494807662, 1715193156, 1865862730, 1948373848, 2100090966, 2701949495, 2818666809, 3004591147, 3122358053, 2235061775, 2352307457, 2535604243, 2653899549, 3915653703, 3764988233, 4219352155, 4067639125, 3444575871, 3294430577, 3746175075, 3594982253, 836553431, 953270745, 600235211, 718002117, 367585007, 484830689, 133361907, 251657213, 2041877159, 1891211689, 1806599355, 1654886325, 1568718495, 1418573201, 1335535747, 1184342925];
  17718. function Pn(e) {
  17719. for (var t = [], n = 0; n < e.length; n += 4) {
  17720. t.push(e[n] << 24 | e[n + 1] << 16 | e[n + 2] << 8 | e[n + 3]);
  17721. }
  17722. return t;
  17723. }
  17724. var Cn = /*#__PURE__*/function () {
  17725. function Cn(e) {
  17726. (0, _classCallCheck2.default)(this, Cn);
  17727. if (!(this instanceof Cn)) throw Error("AES must be instanitated with `new`");
  17728. Object.defineProperty(this, "key", {
  17729. value: on(e, !0)
  17730. }), this._prepare();
  17731. }
  17732. (0, _createClass2.default)(Cn, [{
  17733. key: "_prepare",
  17734. value: function _prepare() {
  17735. var e = dn[this.key.length];
  17736. if (null == e) throw new Error("invalid key size (must be 16, 24 or 32 bytes)");
  17737. this._Ke = [], this._Kd = [];
  17738. for (var t = 0; t <= e; t++) {
  17739. this._Ke.push([0, 0, 0, 0]), this._Kd.push([0, 0, 0, 0]);
  17740. }
  17741. var n,
  17742. s = 4 * (e + 1),
  17743. r = this.key.length / 4,
  17744. i = Pn(this.key);
  17745. for (t = 0; t < r; t++) {
  17746. n = t >> 2, this._Ke[n][t % 4] = i[t], this._Kd[e - n][t % 4] = i[t];
  17747. }
  17748. for (var o, a = 0, c = r; c < s;) {
  17749. if (o = i[r - 1], i[0] ^= fn[o >> 16 & 255] << 24 ^ fn[o >> 8 & 255] << 16 ^ fn[255 & o] << 8 ^ fn[o >> 24 & 255] ^ pn[a] << 24, a += 1, 8 != r) for (t = 1; t < r; t++) {
  17750. i[t] ^= i[t - 1];
  17751. } else {
  17752. for (t = 1; t < r / 2; t++) {
  17753. i[t] ^= i[t - 1];
  17754. }
  17755. o = i[r / 2 - 1], i[r / 2] ^= fn[255 & o] ^ fn[o >> 8 & 255] << 8 ^ fn[o >> 16 & 255] << 16 ^ fn[o >> 24 & 255] << 24;
  17756. for (t = r / 2 + 1; t < r; t++) {
  17757. i[t] ^= i[t - 1];
  17758. }
  17759. }
  17760. for (t = 0; t < r && c < s;) {
  17761. u = c >> 2, h = c % 4, this._Ke[u][h] = i[t], this._Kd[e - u][h] = i[t++], c++;
  17762. }
  17763. }
  17764. for (var u = 1; u < e; u++) {
  17765. for (var h = 0; h < 4; h++) {
  17766. o = this._Kd[u][h], this._Kd[u][h] = bn[o >> 24 & 255] ^ En[o >> 16 & 255] ^ kn[o >> 8 & 255] ^ An[255 & o];
  17767. }
  17768. }
  17769. }
  17770. }, {
  17771. key: "encrypt",
  17772. value: function encrypt(e) {
  17773. if (16 != e.length) throw new Error("invalid plaintext size (must be 16 bytes)");
  17774. for (var t = this._Ke.length - 1, n = [0, 0, 0, 0], s = Pn(e), r = 0; r < 4; r++) {
  17775. s[r] ^= this._Ke[0][r];
  17776. }
  17777. for (var i = 1; i < t; i++) {
  17778. for (r = 0; r < 4; r++) {
  17779. n[r] = mn[s[r] >> 24 & 255] ^ yn[s[(r + 1) % 4] >> 16 & 255] ^ _n[s[(r + 2) % 4] >> 8 & 255] ^ wn[255 & s[(r + 3) % 4]] ^ this._Ke[i][r];
  17780. }
  17781. s = n.slice();
  17782. }
  17783. var o,
  17784. a = an(16);
  17785. for (r = 0; r < 4; r++) {
  17786. o = this._Ke[t][r], a[4 * r] = 255 & (fn[s[r] >> 24 & 255] ^ o >> 24), a[4 * r + 1] = 255 & (fn[s[(r + 1) % 4] >> 16 & 255] ^ o >> 16), a[4 * r + 2] = 255 & (fn[s[(r + 2) % 4] >> 8 & 255] ^ o >> 8), a[4 * r + 3] = 255 & (fn[255 & s[(r + 3) % 4]] ^ o);
  17787. }
  17788. return a;
  17789. }
  17790. }, {
  17791. key: "decrypt",
  17792. value: function decrypt(e) {
  17793. if (16 != e.length) throw new Error("invalid ciphertext size (must be 16 bytes)");
  17794. for (var t = this._Kd.length - 1, n = [0, 0, 0, 0], s = Pn(e), r = 0; r < 4; r++) {
  17795. s[r] ^= this._Kd[0][r];
  17796. }
  17797. for (var i = 1; i < t; i++) {
  17798. for (r = 0; r < 4; r++) {
  17799. n[r] = In[s[r] >> 24 & 255] ^ vn[s[(r + 3) % 4] >> 16 & 255] ^ Sn[s[(r + 2) % 4] >> 8 & 255] ^ Tn[255 & s[(r + 1) % 4]] ^ this._Kd[i][r];
  17800. }
  17801. s = n.slice();
  17802. }
  17803. var o,
  17804. a = an(16);
  17805. for (r = 0; r < 4; r++) {
  17806. o = this._Kd[t][r], a[4 * r] = 255 & (gn[s[r] >> 24 & 255] ^ o >> 24), a[4 * r + 1] = 255 & (gn[s[(r + 3) % 4] >> 16 & 255] ^ o >> 16), a[4 * r + 2] = 255 & (gn[s[(r + 2) % 4] >> 8 & 255] ^ o >> 8), a[4 * r + 3] = 255 & (gn[255 & s[(r + 1) % 4]] ^ o);
  17807. }
  17808. return a;
  17809. }
  17810. }]);
  17811. return Cn;
  17812. }();
  17813. var On = /*#__PURE__*/function () {
  17814. function On(e) {
  17815. (0, _classCallCheck2.default)(this, On);
  17816. if (!(this instanceof On)) throw Error("AES must be instanitated with `new`");
  17817. this.description = "Electronic Code Block", this.name = "ecb", this._aes = new Cn(e);
  17818. }
  17819. (0, _createClass2.default)(On, [{
  17820. key: "encrypt",
  17821. value: function encrypt(e) {
  17822. if ((e = on(e)).length % 16 != 0) throw new Error("invalid plaintext size (must be multiple of 16 bytes)");
  17823. for (var t = an(e.length), n = an(16), s = 0; s < e.length; s += 16) {
  17824. cn(e, n, 0, s, s + 16), cn(n = this._aes.encrypt(n), t, s);
  17825. }
  17826. return t;
  17827. }
  17828. }, {
  17829. key: "decrypt",
  17830. value: function decrypt(e) {
  17831. if ((e = on(e)).length % 16 != 0) throw new Error("invalid ciphertext size (must be multiple of 16 bytes)");
  17832. for (var t = an(e.length), n = an(16), s = 0; s < e.length; s += 16) {
  17833. cn(e, n, 0, s, s + 16), cn(n = this._aes.decrypt(n), t, s);
  17834. }
  17835. return t;
  17836. }
  17837. }]);
  17838. return On;
  17839. }();
  17840. var xn = /*#__PURE__*/function () {
  17841. function xn(e, t) {
  17842. (0, _classCallCheck2.default)(this, xn);
  17843. if (!(this instanceof xn)) throw Error("AES must be instanitated with `new`");
  17844. if (this.description = "Cipher Block Chaining", this.name = "cbc", t) {
  17845. if (16 != t.length) throw new Error("invalid initialation vector size (must be 16 bytes)");
  17846. } else t = an(16);
  17847. this._lastCipherblock = on(t, !0), this._aes = new Cn(e);
  17848. }
  17849. (0, _createClass2.default)(xn, [{
  17850. key: "encrypt",
  17851. value: function encrypt(e) {
  17852. if ((e = on(e)).length % 16 != 0) throw new Error("invalid plaintext size (must be multiple of 16 bytes)");
  17853. for (var t = an(e.length), n = an(16), s = 0; s < e.length; s += 16) {
  17854. cn(e, n, 0, s, s + 16);
  17855. for (var r = 0; r < 16; r++) {
  17856. n[r] ^= this._lastCipherblock[r];
  17857. }
  17858. this._lastCipherblock = this._aes.encrypt(n), cn(this._lastCipherblock, t, s);
  17859. }
  17860. return t;
  17861. }
  17862. }, {
  17863. key: "decrypt",
  17864. value: function decrypt(e) {
  17865. if ((e = on(e)).length % 16 != 0) throw new Error("invalid ciphertext size (must be multiple of 16 bytes)");
  17866. for (var t = an(e.length), n = an(16), s = 0; s < e.length; s += 16) {
  17867. cn(e, n, 0, s, s + 16), n = this._aes.decrypt(n);
  17868. for (var r = 0; r < 16; r++) {
  17869. t[s + r] = n[r] ^ this._lastCipherblock[r];
  17870. }
  17871. cn(e, this._lastCipherblock, 0, s, s + 16);
  17872. }
  17873. return t;
  17874. }
  17875. }]);
  17876. return xn;
  17877. }();
  17878. var Nn = /*#__PURE__*/function () {
  17879. function Nn(e, t, n) {
  17880. (0, _classCallCheck2.default)(this, Nn);
  17881. if (!(this instanceof Nn)) throw Error("AES must be instanitated with `new`");
  17882. if (this.description = "Cipher Feedback", this.name = "cfb", t) {
  17883. if (16 != t.length) throw new Error("invalid initialation vector size (must be 16 size)");
  17884. } else t = an(16);
  17885. n || (n = 1), this.segmentSize = n, this._shiftRegister = on(t, !0), this._aes = new Cn(e);
  17886. }
  17887. (0, _createClass2.default)(Nn, [{
  17888. key: "encrypt",
  17889. value: function encrypt(e) {
  17890. if (e.length % this.segmentSize != 0) throw new Error("invalid plaintext size (must be segmentSize bytes)");
  17891. for (var t, n = on(e, !0), s = 0; s < n.length; s += this.segmentSize) {
  17892. t = this._aes.encrypt(this._shiftRegister);
  17893. for (var r = 0; r < this.segmentSize; r++) {
  17894. n[s + r] ^= t[r];
  17895. }
  17896. cn(this._shiftRegister, this._shiftRegister, 0, this.segmentSize), cn(n, this._shiftRegister, 16 - this.segmentSize, s, s + this.segmentSize);
  17897. }
  17898. return n;
  17899. }
  17900. }, {
  17901. key: "decrypt",
  17902. value: function decrypt(e) {
  17903. if (e.length % this.segmentSize != 0) throw new Error("invalid ciphertext size (must be segmentSize bytes)");
  17904. for (var t, n = on(e, !0), s = 0; s < n.length; s += this.segmentSize) {
  17905. t = this._aes.encrypt(this._shiftRegister);
  17906. for (var r = 0; r < this.segmentSize; r++) {
  17907. n[s + r] ^= t[r];
  17908. }
  17909. cn(this._shiftRegister, this._shiftRegister, 0, this.segmentSize), cn(e, this._shiftRegister, 16 - this.segmentSize, s, s + this.segmentSize);
  17910. }
  17911. return n;
  17912. }
  17913. }]);
  17914. return Nn;
  17915. }();
  17916. var Rn = /*#__PURE__*/function () {
  17917. function Rn(e, t) {
  17918. (0, _classCallCheck2.default)(this, Rn);
  17919. if (!(this instanceof Rn)) throw Error("AES must be instanitated with `new`");
  17920. if (this.description = "Output Feedback", this.name = "ofb", t) {
  17921. if (16 != t.length) throw new Error("invalid initialation vector size (must be 16 bytes)");
  17922. } else t = an(16);
  17923. this._lastPrecipher = on(t, !0), this._lastPrecipherIndex = 16, this._aes = new Cn(e);
  17924. }
  17925. (0, _createClass2.default)(Rn, [{
  17926. key: "encrypt",
  17927. value: function encrypt(e) {
  17928. for (var t = on(e, !0), n = 0; n < t.length; n++) {
  17929. 16 === this._lastPrecipherIndex && (this._lastPrecipher = this._aes.encrypt(this._lastPrecipher), this._lastPrecipherIndex = 0), t[n] ^= this._lastPrecipher[this._lastPrecipherIndex++];
  17930. }
  17931. return t;
  17932. }
  17933. }, {
  17934. key: "decrypt",
  17935. value: function decrypt(e) {
  17936. return this.encrypt(e);
  17937. }
  17938. }]);
  17939. return Rn;
  17940. }();
  17941. var Ln = /*#__PURE__*/function () {
  17942. function Ln(e) {
  17943. (0, _classCallCheck2.default)(this, Ln);
  17944. if (!(this instanceof Ln)) throw Error("Counter must be instanitated with `new`");
  17945. 0 === e || e || (e = 1), "number" == typeof e ? (this._counter = an(16), this.setValue(e)) : this.setBytes(e);
  17946. }
  17947. (0, _createClass2.default)(Ln, [{
  17948. key: "setValue",
  17949. value: function setValue(e) {
  17950. if ("number" != typeof e || parseInt(e) != e) throw new Error("invalid counter value (must be an integer)");
  17951. if (e > Number.MAX_SAFE_INTEGER) throw new Error("integer value out of safe range");
  17952. for (var t = 15; t >= 0; --t) {
  17953. this._counter[t] = e % 256, e = parseInt(e / 256);
  17954. }
  17955. }
  17956. }, {
  17957. key: "setBytes",
  17958. value: function setBytes(e) {
  17959. if (16 != (e = on(e, !0)).length) throw new Error("invalid counter bytes size (must be 16 bytes)");
  17960. this._counter = e;
  17961. }
  17962. }, {
  17963. key: "increment",
  17964. value: function increment() {
  17965. for (var e = 15; e >= 0; e--) {
  17966. if (255 !== this._counter[e]) {
  17967. this._counter[e]++;
  17968. break;
  17969. }
  17970. this._counter[e] = 0;
  17971. }
  17972. }
  17973. }]);
  17974. return Ln;
  17975. }();
  17976. var Un = /*#__PURE__*/function () {
  17977. function Un(e, t) {
  17978. (0, _classCallCheck2.default)(this, Un);
  17979. if (!(this instanceof Un)) throw Error("AES must be instanitated with `new`");
  17980. this.description = "Counter", this.name = "ctr", t instanceof Ln || (t = new Ln(t)), this._counter = t, this._remainingCounter = null, this._remainingCounterIndex = 16, this._aes = new Cn(e);
  17981. }
  17982. (0, _createClass2.default)(Un, [{
  17983. key: "encrypt",
  17984. value: function encrypt(e) {
  17985. for (var t = on(e, !0), n = 0; n < t.length; n++) {
  17986. 16 === this._remainingCounterIndex && (this._remainingCounter = this._aes.encrypt(this._counter._counter), this._remainingCounterIndex = 0, this._counter.increment()), t[n] ^= this._remainingCounter[this._remainingCounterIndex++];
  17987. }
  17988. return t;
  17989. }
  17990. }, {
  17991. key: "decrypt",
  17992. value: function decrypt(e) {
  17993. return this.encrypt(e);
  17994. }
  17995. }]);
  17996. return Un;
  17997. }();
  17998. var Dn = {
  17999. AES: Cn,
  18000. Counter: Ln,
  18001. ModeOfOperation: {
  18002. ecb: On,
  18003. cbc: xn,
  18004. cfb: Nn,
  18005. ofb: Rn,
  18006. ctr: Un
  18007. },
  18008. utils: {
  18009. hex: ln,
  18010. utf8: hn
  18011. },
  18012. padding: {
  18013. pkcs7: {
  18014. pad: function pad(e) {
  18015. var t = 16 - (e = on(e, !0)).length % 16,
  18016. n = an(e.length + t);
  18017. cn(e, n);
  18018. for (var s = e.length; s < n.length; s++) {
  18019. n[s] = t;
  18020. }
  18021. return n;
  18022. },
  18023. strip: function strip(e) {
  18024. if ((e = on(e, !0)).length < 16) throw new Error("PKCS#7 invalid length");
  18025. var t = e[e.length - 1];
  18026. if (t > 16) throw new Error("PKCS#7 padding byte out of range");
  18027. for (var n = e.length - t, s = 0; s < t; s++) {
  18028. if (e[n + s] !== t) throw new Error("PKCS#7 invalid padding byte");
  18029. }
  18030. var r = an(n);
  18031. return cn(e, r, 0, 0, n), r;
  18032. }
  18033. }
  18034. },
  18035. _arrayTest: {
  18036. coerceArray: on,
  18037. createArray: an,
  18038. copyArray: cn
  18039. }
  18040. };
  18041. function Mn(e, t, n) {
  18042. var s = new Uint8Array(uni.base64ToArrayBuffer(t)),
  18043. r = Dn.utils.utf8.toBytes(n),
  18044. i = Dn.utils.utf8.toBytes(e),
  18045. o = new Dn.ModeOfOperation.cbc(s, r),
  18046. a = Dn.padding.pkcs7.pad(i),
  18047. c = o.encrypt(a);
  18048. return uni.arrayBufferToBase64(c);
  18049. }
  18050. var qn,
  18051. Fn,
  18052. Kn = null;
  18053. var jn = /*#__PURE__*/function (_nn) {
  18054. (0, _inherits2.default)(jn, _nn);
  18055. var _super8 = _createSuper(jn);
  18056. function jn(e) {
  18057. var _this19;
  18058. (0, _classCallCheck2.default)(this, jn);
  18059. _this19 = _super8.call(this, e), _this19.clientType = "mp-weixin", _this19.userEncryptKey = null;
  18060. return _this19;
  18061. }
  18062. (0, _createClass2.default)(jn, [{
  18063. key: "isLogin",
  18064. value: function isLogin() {
  18065. return !!this.scopedGlobalCache.mpWeixinCode || !!this.scopedGlobalCache.mpWeixinOpenid;
  18066. }
  18067. }, {
  18068. key: "prepare",
  18069. value: function () {
  18070. var _prepare2 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee52() {
  18071. return _regenerator.default.wrap(function _callee52$(_context52) {
  18072. while (1) {
  18073. switch (_context52.prev = _context52.next) {
  18074. case 0:
  18075. if (this.isLogin()) {
  18076. _context52.next = 7;
  18077. break;
  18078. }
  18079. if (this.scopedGlobalCache.initPromise) {
  18080. _context52.next = 3;
  18081. break;
  18082. }
  18083. throw new Error("`uniCloud.initSecureNetworkByWeixin` has not yet been called");
  18084. case 3:
  18085. _context52.next = 5;
  18086. return this.scopedGlobalCache.initPromise;
  18087. case 5:
  18088. if (this.isLogin()) {
  18089. _context52.next = 7;
  18090. break;
  18091. }
  18092. throw new Error("uniCloud.initSecureNetworkByWeixin` has not yet been called or successfully excuted");
  18093. case 7:
  18094. case "end":
  18095. return _context52.stop();
  18096. }
  18097. }
  18098. }, _callee52, this);
  18099. }));
  18100. function prepare() {
  18101. return _prepare2.apply(this, arguments);
  18102. }
  18103. return prepare;
  18104. }()
  18105. }, {
  18106. key: "getUserEncryptKey",
  18107. value: function () {
  18108. var _getUserEncryptKey = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee53() {
  18109. var _this20 = this;
  18110. var e;
  18111. return _regenerator.default.wrap(function _callee53$(_context53) {
  18112. while (1) {
  18113. switch (_context53.prev = _context53.next) {
  18114. case 0:
  18115. if (!this.userEncryptKey) {
  18116. _context53.next = 2;
  18117. break;
  18118. }
  18119. return _context53.abrupt("return", this.userEncryptKey);
  18120. case 2:
  18121. if (!(Kn && Kn.expireTime)) {
  18122. _context53.next = 6;
  18123. break;
  18124. }
  18125. e = Date.now();
  18126. if (!(Kn.expireTime - e > 0)) {
  18127. _context53.next = 6;
  18128. break;
  18129. }
  18130. return _context53.abrupt("return", (this.userEncryptKey = Kn, this.userEncryptKey));
  18131. case 6:
  18132. return _context53.abrupt("return", new Promise(function (e, t) {
  18133. uni.getUserCryptoManager().getLatestUserKey({
  18134. success: function success(t) {
  18135. Kn = t, _this20.userEncryptKey = t, e(_this20.userEncryptKey);
  18136. },
  18137. fail: function fail(e) {
  18138. t(tn(_objectSpread(_objectSpread({}, Zt.GET_ENCRYPT_KEY_FAILED), {}, {
  18139. cause: e
  18140. })));
  18141. }
  18142. });
  18143. }));
  18144. case 7:
  18145. case "end":
  18146. return _context53.stop();
  18147. }
  18148. }
  18149. }, _callee53, this);
  18150. }));
  18151. function getUserEncryptKey() {
  18152. return _getUserEncryptKey.apply(this, arguments);
  18153. }
  18154. return getUserEncryptKey;
  18155. }()
  18156. }, {
  18157. key: "getWxAppId",
  18158. value: function getWxAppId() {
  18159. return wx.getAccountInfoSync().miniProgram.appId;
  18160. }
  18161. }, {
  18162. key: "platformGetSignOption",
  18163. value: function () {
  18164. var _platformGetSignOption = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee54() {
  18165. var _yield$this$getUserEn, e, t, n;
  18166. return _regenerator.default.wrap(function _callee54$(_context54) {
  18167. while (1) {
  18168. switch (_context54.prev = _context54.next) {
  18169. case 0:
  18170. _context54.next = 2;
  18171. return this.getUserEncryptKey();
  18172. case 2:
  18173. _yield$this$getUserEn = _context54.sent;
  18174. e = _yield$this$getUserEn.encryptKey;
  18175. t = _yield$this$getUserEn.iv;
  18176. n = _yield$this$getUserEn.version;
  18177. return _context54.abrupt("return", {
  18178. verifyClientSign: Mn(JSON.stringify({
  18179. data: JSON.stringify({}),
  18180. appId: this.appId,
  18181. deviceId: this.deviceId,
  18182. wxAppId: this.getWxAppId(),
  18183. simulator: "devtools" === ae().platform,
  18184. timestamp: Date.now()
  18185. }), e, t),
  18186. encryptKeyId: n,
  18187. mpWeixinCode: this.scopedGlobalCache.mpWeixinCode,
  18188. mpWeixinOpenid: this.scopedGlobalCache.mpWeixinOpenid
  18189. });
  18190. case 7:
  18191. case "end":
  18192. return _context54.stop();
  18193. }
  18194. }
  18195. }, _callee54, this);
  18196. }));
  18197. function platformGetSignOption() {
  18198. return _platformGetSignOption.apply(this, arguments);
  18199. }
  18200. return platformGetSignOption;
  18201. }()
  18202. }, {
  18203. key: "platformEncryptData",
  18204. value: function () {
  18205. var _platformEncryptData = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee55(e) {
  18206. var _yield$this$getUserEn2, t, n, s, r;
  18207. return _regenerator.default.wrap(function _callee55$(_context55) {
  18208. while (1) {
  18209. switch (_context55.prev = _context55.next) {
  18210. case 0:
  18211. _context55.next = 2;
  18212. return this.getUserEncryptKey();
  18213. case 2:
  18214. _yield$this$getUserEn2 = _context55.sent;
  18215. t = _yield$this$getUserEn2.encryptKey;
  18216. n = _yield$this$getUserEn2.iv;
  18217. s = _yield$this$getUserEn2.version;
  18218. r = {
  18219. secretType: this.secretType,
  18220. encryptKeyId: s,
  18221. mpWeixinCode: this.scopedGlobalCache.mpWeixinCode,
  18222. mpWeixinOpenid: this.scopedGlobalCache.mpWeixinOpenid
  18223. };
  18224. return _context55.abrupt("return", this.secretType === Gt.RESPONSE ? {
  18225. content: e,
  18226. _uniCloudOptions: r
  18227. } : {
  18228. content: Mn(JSON.stringify({
  18229. data: JSON.stringify(e),
  18230. appId: this.appId,
  18231. deviceId: this.deviceId,
  18232. wxAppId: this.getWxAppId(),
  18233. simulator: "devtools" === ae().platform,
  18234. timestamp: Date.now()
  18235. }), t, n),
  18236. _uniCloudOptions: r
  18237. });
  18238. case 8:
  18239. case "end":
  18240. return _context55.stop();
  18241. }
  18242. }
  18243. }, _callee55, this);
  18244. }));
  18245. function platformEncryptData(_x48) {
  18246. return _platformEncryptData.apply(this, arguments);
  18247. }
  18248. return platformEncryptData;
  18249. }()
  18250. }, {
  18251. key: "platformDecryptResult",
  18252. value: function () {
  18253. var _platformDecryptResult = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee56(e) {
  18254. var t, _yield$this$getUserEn3, n, s;
  18255. return _regenerator.default.wrap(function _callee56$(_context56) {
  18256. while (1) {
  18257. switch (_context56.prev = _context56.next) {
  18258. case 0:
  18259. t = e.content;
  18260. _context56.next = 3;
  18261. return this.getUserEncryptKey();
  18262. case 3:
  18263. _yield$this$getUserEn3 = _context56.sent;
  18264. n = _yield$this$getUserEn3.encryptKey;
  18265. s = _yield$this$getUserEn3.iv;
  18266. return _context56.abrupt("return", JSON.parse(function (e, t, n) {
  18267. var s = new Uint8Array(uni.base64ToArrayBuffer(e)),
  18268. r = new Uint8Array(uni.base64ToArrayBuffer(t)),
  18269. i = Dn.utils.utf8.toBytes(n),
  18270. o = new Dn.ModeOfOperation.cbc(r, i),
  18271. a = Dn.padding.pkcs7.strip(o.decrypt(s));
  18272. return Dn.utils.utf8.fromBytes(a);
  18273. }(t, n, s)));
  18274. case 7:
  18275. case "end":
  18276. return _context56.stop();
  18277. }
  18278. }
  18279. }, _callee56, this);
  18280. }));
  18281. function platformDecryptResult(_x49) {
  18282. return _platformDecryptResult.apply(this, arguments);
  18283. }
  18284. return platformDecryptResult;
  18285. }()
  18286. }, {
  18287. key: "isClientKeyNotFound",
  18288. value: function isClientKeyNotFound() {
  18289. return !1;
  18290. }
  18291. }]);
  18292. return jn;
  18293. }(nn);
  18294. function $n(e) {
  18295. var t = ["hasClientKey", "encryptGetClientKeyPayload", "setClientKey", "encrypt", "decrypt"],
  18296. n = {};
  18297. var _loop = function _loop(_s14) {
  18298. var r = t[_s14];
  18299. n[r] = function () {
  18300. for (var _len2 = arguments.length, t = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
  18301. t[_key2] = arguments[_key2];
  18302. }
  18303. return new Promise(function (n, s) {
  18304. "function" == typeof e[r] ? e[r].apply(e, t.concat([function () {
  18305. var _ref36 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
  18306. e = _ref36.type,
  18307. t = _ref36.data,
  18308. r = _ref36.errCode,
  18309. i = _ref36.errMsg,
  18310. o = _ref36.errSubject,
  18311. a = _ref36.message;
  18312. "success" === e ? n(t) : s(tn({
  18313. errCode: r,
  18314. errMsg: en[r] || i || a,
  18315. errSubject: o
  18316. }));
  18317. }])) : s(tn({
  18318. message: "请检查manifest.json内是否开启安全网络模块,另外注意标准基座不支持安全网络模块"
  18319. }));
  18320. });
  18321. };
  18322. };
  18323. for (var _s14 = 0; _s14 < t.length; _s14++) {
  18324. _loop(_s14);
  18325. }
  18326. return n;
  18327. }
  18328. var Bn = /*#__PURE__*/function (_nn2) {
  18329. (0, _inherits2.default)(Bn, _nn2);
  18330. var _super9 = _createSuper(Bn);
  18331. function Bn(e) {
  18332. var _this21;
  18333. (0, _classCallCheck2.default)(this, Bn);
  18334. _this21 = _super9.call(this, e), _this21.clientType = "app", _this21.appUtils = _objectSpread({}, $n(uni.requireNativePlugin("plus"))), _this21.systemInfo = qn || (qn = ae());
  18335. return _this21;
  18336. }
  18337. (0, _createClass2.default)(Bn, [{
  18338. key: "hasClientKey",
  18339. value: function () {
  18340. var _hasClientKey = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee57() {
  18341. return _regenerator.default.wrap(function _callee57$(_context57) {
  18342. while (1) {
  18343. switch (_context57.prev = _context57.next) {
  18344. case 0:
  18345. _context57.next = 2;
  18346. return this.appUtils.hasClientKey({
  18347. provider: this.provider,
  18348. spaceId: this.spaceId
  18349. });
  18350. case 2:
  18351. this._hasClientKey = _context57.sent;
  18352. return _context57.abrupt("return", this._hasClientKey);
  18353. case 4:
  18354. case "end":
  18355. return _context57.stop();
  18356. }
  18357. }
  18358. }, _callee57, this);
  18359. }));
  18360. function hasClientKey() {
  18361. return _hasClientKey.apply(this, arguments);
  18362. }
  18363. return hasClientKey;
  18364. }()
  18365. }, {
  18366. key: "getAppClientKey",
  18367. value: function () {
  18368. var _getAppClientKey = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee58() {
  18369. var _yield$this$appUtils$, e, t, n, s, r;
  18370. return _regenerator.default.wrap(function _callee58$(_context58) {
  18371. while (1) {
  18372. switch (_context58.prev = _context58.next) {
  18373. case 0:
  18374. _context58.next = 2;
  18375. return this.appUtils.encryptGetClientKeyPayload({
  18376. data: JSON.stringify({})
  18377. });
  18378. case 2:
  18379. _yield$this$appUtils$ = _context58.sent;
  18380. e = _yield$this$appUtils$.data;
  18381. t = _yield$this$appUtils$.key;
  18382. _context58.next = 7;
  18383. return this.uniCloudIns.callFunction({
  18384. name: "DCloud-clientDB",
  18385. data: {
  18386. redirectTo: "encryption",
  18387. action: "getAppClientKey",
  18388. data: e,
  18389. key: t
  18390. }
  18391. });
  18392. case 7:
  18393. _context58.t0 = _context58.sent.result;
  18394. if (_context58.t0) {
  18395. _context58.next = 10;
  18396. break;
  18397. }
  18398. _context58.t0 = {};
  18399. case 10:
  18400. n = _context58.t0;
  18401. if (!(0 !== n.errCode)) {
  18402. _context58.next = 13;
  18403. break;
  18404. }
  18405. throw function (e) {
  18406. return new te({
  18407. subject: e.errSubject || Xt,
  18408. code: e.errCode || e.code || Zt.SYSTEM_ERROR.code,
  18409. message: e.errMsg || e.message || Zt.SYSTEM_ERROR.message
  18410. });
  18411. }(n);
  18412. case 13:
  18413. s = n.clientKey, r = n.key;
  18414. _context58.next = 16;
  18415. return this.appUtils.setClientKey({
  18416. provider: this.provider,
  18417. spaceId: this.spaceId,
  18418. clientKey: s,
  18419. key: r
  18420. });
  18421. case 16:
  18422. case "end":
  18423. return _context58.stop();
  18424. }
  18425. }
  18426. }, _callee58, this);
  18427. }));
  18428. function getAppClientKey() {
  18429. return _getAppClientKey.apply(this, arguments);
  18430. }
  18431. return getAppClientKey;
  18432. }()
  18433. }, {
  18434. key: "ensureClientKey",
  18435. value: function () {
  18436. var _ensureClientKey = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee59() {
  18437. var _this22 = this;
  18438. var _ref37,
  18439. _ref37$forceUpdate,
  18440. e,
  18441. _args59 = arguments;
  18442. return _regenerator.default.wrap(function _callee59$(_context59) {
  18443. while (1) {
  18444. switch (_context59.prev = _context59.next) {
  18445. case 0:
  18446. _ref37 = _args59.length > 0 && _args59[0] !== undefined ? _args59[0] : {}, _ref37$forceUpdate = _ref37.forceUpdate, e = _ref37$forceUpdate === void 0 ? !1 : _ref37$forceUpdate;
  18447. _context59.t1 = !0;
  18448. _context59.next = 4;
  18449. return this.hasClientKey();
  18450. case 4:
  18451. _context59.t2 = _context59.sent;
  18452. _context59.t0 = _context59.t1 !== _context59.t2;
  18453. if (_context59.t0) {
  18454. _context59.next = 8;
  18455. break;
  18456. }
  18457. _context59.t0 = e;
  18458. case 8:
  18459. if (!_context59.t0) {
  18460. _context59.next = 10;
  18461. break;
  18462. }
  18463. return _context59.abrupt("return", (e && this.scopedGlobalCache.initPromise && this.scopedGlobalCache.initStatus === d || !e && this.scopedGlobalCache.initPromise && this.scopedGlobalCache.initStatus !== f || (this.scopedGlobalCache.initPromise = this.getAppClientKey(), this.scopedGlobalCache.initPromise.then(function (e) {
  18464. _this22.scopedGlobalCache.initStatus = p;
  18465. }).catch(function (e) {
  18466. throw _this22.scopedGlobalCache.initStatus = f, e;
  18467. }), this.scopedGlobalCache.initStatus = d), this.scopedGlobalCache.initPromise));
  18468. case 10:
  18469. case "end":
  18470. return _context59.stop();
  18471. }
  18472. }
  18473. }, _callee59, this);
  18474. }));
  18475. function ensureClientKey() {
  18476. return _ensureClientKey.apply(this, arguments);
  18477. }
  18478. return ensureClientKey;
  18479. }()
  18480. }, {
  18481. key: "prepare",
  18482. value: function () {
  18483. var _prepare3 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee60() {
  18484. var _ref38,
  18485. _ref38$forceUpdate,
  18486. e,
  18487. _args60 = arguments;
  18488. return _regenerator.default.wrap(function _callee60$(_context60) {
  18489. while (1) {
  18490. switch (_context60.prev = _context60.next) {
  18491. case 0:
  18492. _ref38 = _args60.length > 0 && _args60[0] !== undefined ? _args60[0] : {}, _ref38$forceUpdate = _ref38.forceUpdate, e = _ref38$forceUpdate === void 0 ? !1 : _ref38$forceUpdate;
  18493. _context60.next = 3;
  18494. return this.ensureClientKey({
  18495. forceUpdate: e
  18496. });
  18497. case 3:
  18498. case "end":
  18499. return _context60.stop();
  18500. }
  18501. }
  18502. }, _callee60, this);
  18503. }));
  18504. function prepare() {
  18505. return _prepare3.apply(this, arguments);
  18506. }
  18507. return prepare;
  18508. }()
  18509. }, {
  18510. key: "platformGetSignOption",
  18511. value: function () {
  18512. var _platformGetSignOption2 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee61() {
  18513. var _yield$this$appUtils$2, e, t;
  18514. return _regenerator.default.wrap(function _callee61$(_context61) {
  18515. while (1) {
  18516. switch (_context61.prev = _context61.next) {
  18517. case 0:
  18518. _context61.next = 2;
  18519. return this.appUtils.encrypt({
  18520. provider: this.provider,
  18521. spaceId: this.spaceId,
  18522. data: JSON.stringify({})
  18523. });
  18524. case 2:
  18525. _yield$this$appUtils$2 = _context61.sent;
  18526. e = _yield$this$appUtils$2.data;
  18527. t = _yield$this$appUtils$2.key;
  18528. return _context61.abrupt("return", {
  18529. verifyClientSign: e,
  18530. encryptKeyId: t
  18531. });
  18532. case 6:
  18533. case "end":
  18534. return _context61.stop();
  18535. }
  18536. }
  18537. }, _callee61, this);
  18538. }));
  18539. function platformGetSignOption() {
  18540. return _platformGetSignOption2.apply(this, arguments);
  18541. }
  18542. return platformGetSignOption;
  18543. }()
  18544. }, {
  18545. key: "platformEncryptData",
  18546. value: function () {
  18547. var _platformEncryptData2 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee62(e) {
  18548. var _yield$this$appUtils$3, t, n, s;
  18549. return _regenerator.default.wrap(function _callee62$(_context62) {
  18550. while (1) {
  18551. switch (_context62.prev = _context62.next) {
  18552. case 0:
  18553. _context62.next = 2;
  18554. return this.appUtils.encrypt({
  18555. provider: this.provider,
  18556. spaceId: this.spaceId,
  18557. data: JSON.stringify(e)
  18558. });
  18559. case 2:
  18560. _yield$this$appUtils$3 = _context62.sent;
  18561. t = _yield$this$appUtils$3.data;
  18562. n = _yield$this$appUtils$3.key;
  18563. s = {
  18564. secretType: this.secretType,
  18565. encryptKeyId: n
  18566. };
  18567. return _context62.abrupt("return", this.secretType === Gt.RESPONSE ? {
  18568. content: e,
  18569. _uniCloudOptions: s
  18570. } : {
  18571. content: t,
  18572. _uniCloudOptions: s
  18573. });
  18574. case 7:
  18575. case "end":
  18576. return _context62.stop();
  18577. }
  18578. }
  18579. }, _callee62, this);
  18580. }));
  18581. function platformEncryptData(_x50) {
  18582. return _platformEncryptData2.apply(this, arguments);
  18583. }
  18584. return platformEncryptData;
  18585. }()
  18586. }, {
  18587. key: "platformDecryptResult",
  18588. value: function () {
  18589. var _platformDecryptResult2 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee63(e) {
  18590. var t, _e$_uniCloudOptions, n, s, r;
  18591. return _regenerator.default.wrap(function _callee63$(_context63) {
  18592. while (1) {
  18593. switch (_context63.prev = _context63.next) {
  18594. case 0:
  18595. t = e.content;
  18596. _e$_uniCloudOptions = e._uniCloudOptions;
  18597. n = _e$_uniCloudOptions === void 0 ? {} : _e$_uniCloudOptions;
  18598. s = n.encryptKeyId;
  18599. _context63.next = 6;
  18600. return this.appUtils.decrypt({
  18601. provider: this.provider,
  18602. spaceId: this.spaceId,
  18603. data: t,
  18604. key: s
  18605. });
  18606. case 6:
  18607. r = _context63.sent;
  18608. return _context63.abrupt("return", JSON.parse(r.data));
  18609. case 8:
  18610. case "end":
  18611. return _context63.stop();
  18612. }
  18613. }
  18614. }, _callee63, this);
  18615. }));
  18616. function platformDecryptResult(_x51) {
  18617. return _platformDecryptResult2.apply(this, arguments);
  18618. }
  18619. return platformDecryptResult;
  18620. }()
  18621. }, {
  18622. key: "isClientKeyNotFound",
  18623. value: function isClientKeyNotFound() {
  18624. var e = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
  18625. var t = e.result || {};
  18626. return 70009 === t.errCode && t.errSubject === Xt;
  18627. }
  18628. }]);
  18629. return Bn;
  18630. }(nn);
  18631. function Wn() {
  18632. var _ref39 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
  18633. e = _ref39.secretType;
  18634. return e === Gt.REQUEST || e === Gt.RESPONSE || e === Gt.BOTH;
  18635. }
  18636. function Hn() {
  18637. var _ref40 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
  18638. e = _ref40.name,
  18639. _ref40$data = _ref40.data,
  18640. t = _ref40$data === void 0 ? {} : _ref40$data;
  18641. return "app" === P && "DCloud-clientDB" === e && "encryption" === t.redirectTo && "getAppClientKey" === t.action;
  18642. }
  18643. function Jn() {
  18644. var _ref41 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
  18645. e = _ref41.provider,
  18646. t = _ref41.spaceId,
  18647. n = _ref41.functionName;
  18648. var _ae = ae(),
  18649. s = _ae.appId,
  18650. r = _ae.uniPlatform,
  18651. i = _ae.osName;
  18652. var o = r;
  18653. "app" === r && (o = i);
  18654. var a = function () {
  18655. var _ref42 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
  18656. e = _ref42.provider,
  18657. t = _ref42.spaceId;
  18658. var n = A;
  18659. if (!n) return {};
  18660. e = function (e) {
  18661. return "tencent" === e ? "tcb" : e;
  18662. }(e);
  18663. var s = n.find(function (n) {
  18664. return n.provider === e && n.spaceId === t;
  18665. });
  18666. return s && s.config;
  18667. }({
  18668. provider: e,
  18669. spaceId: t
  18670. });
  18671. if (!a || !a.accessControl || !a.accessControl.enable) return !1;
  18672. var c = a.accessControl.function || {},
  18673. u = Object.keys(c);
  18674. if (0 === u.length) return !0;
  18675. var h = function (e, t) {
  18676. var n, s, r;
  18677. for (var _i2 = 0; _i2 < e.length; _i2++) {
  18678. var _o2 = e[_i2];
  18679. _o2 !== t ? "*" !== _o2 ? _o2.split(",").map(function (e) {
  18680. return e.trim();
  18681. }).indexOf(t) > -1 && (s = _o2) : r = _o2 : n = _o2;
  18682. }
  18683. return n || s || r;
  18684. }(u, n);
  18685. if (!h) return !1;
  18686. if ((c[h] || []).find(function () {
  18687. var e = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
  18688. return e.appId === s && (e.platform || "").toLowerCase() === o.toLowerCase();
  18689. })) return !0;
  18690. throw console.error("\u6B64\u5E94\u7528[appId: ".concat(s, ", platform: ").concat(o, "]\u4E0D\u5728\u4E91\u7AEF\u914D\u7F6E\u7684\u5141\u8BB8\u8BBF\u95EE\u7684\u5E94\u7528\u5217\u8868\u5185\uFF0C\u53C2\u8003\uFF1Ahttps://uniapp.dcloud.net.cn/uniCloud/secure-network.html#verify-client")), tn(Zt.APP_INFO_INVALID);
  18691. }
  18692. function zn(_ref43) {
  18693. var e = _ref43.functionName,
  18694. t = _ref43.result,
  18695. n = _ref43.logPvd;
  18696. if (b && this.__dev__.debugLog && t && t.requestId) {
  18697. var _s15 = JSON.stringify({
  18698. spaceId: this.config.spaceId,
  18699. functionName: e,
  18700. requestId: t.requestId
  18701. });
  18702. console.log("[".concat(n, "-request]").concat(_s15, "[/").concat(n, "-request]"));
  18703. }
  18704. }
  18705. function Vn(e) {
  18706. var t = e.callFunction,
  18707. n = function n(_n12) {
  18708. var _this23 = this;
  18709. var s = _n12.name;
  18710. _n12.data = Bt.call(e, {
  18711. data: _n12.data
  18712. });
  18713. var r = {
  18714. aliyun: "aliyun",
  18715. tencent: "tcb",
  18716. tcb: "tcb",
  18717. alipay: "alipay",
  18718. dcloud: "dcloud"
  18719. }[this.config.provider],
  18720. i = Wn(_n12),
  18721. o = Hn(_n12),
  18722. a = i || o;
  18723. return t.call(this, _n12).then(function (e) {
  18724. return e.errCode = 0, !a && zn.call(_this23, {
  18725. functionName: s,
  18726. result: e,
  18727. logPvd: r
  18728. }), Promise.resolve(e);
  18729. }, function (e) {
  18730. return !a && zn.call(_this23, {
  18731. functionName: s,
  18732. result: e,
  18733. logPvd: r
  18734. }), e && e.message && (e.message = function () {
  18735. var _ref44 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
  18736. _ref44$message = _ref44.message,
  18737. e = _ref44$message === void 0 ? "" : _ref44$message,
  18738. _ref44$extraInfo = _ref44.extraInfo,
  18739. t = _ref44$extraInfo === void 0 ? {} : _ref44$extraInfo,
  18740. _ref44$formatter = _ref44.formatter,
  18741. n = _ref44$formatter === void 0 ? [] : _ref44$formatter;
  18742. for (var _s16 = 0; _s16 < n.length; _s16++) {
  18743. var _n$_s = n[_s16],
  18744. _r6 = _n$_s.rule,
  18745. _i3 = _n$_s.content,
  18746. _o3 = _n$_s.mode,
  18747. _a2 = e.match(_r6);
  18748. if (!_a2) continue;
  18749. var _c2 = _i3;
  18750. for (var _e20 = 1; _e20 < _a2.length; _e20++) {
  18751. _c2 = Vt(_c2, "{$".concat(_e20, "}"), _a2[_e20]);
  18752. }
  18753. for (var _e21 in t) {
  18754. _c2 = Vt(_c2, "{".concat(_e21, "}"), t[_e21]);
  18755. }
  18756. return "replace" === _o3 ? _c2 : e + _c2;
  18757. }
  18758. return e;
  18759. }({
  18760. message: "[".concat(_n12.name, "]: ").concat(e.message),
  18761. formatter: Ht,
  18762. extraInfo: {
  18763. functionName: s
  18764. }
  18765. })), Promise.reject(e);
  18766. });
  18767. };
  18768. e.callFunction = function (t) {
  18769. var _e$config = e.config,
  18770. s = _e$config.provider,
  18771. r = _e$config.spaceId,
  18772. i = t.name;
  18773. var o, a;
  18774. if (t.data = t.data || {}, b && e.__dev__.debugInfo && !e.__dev__.debugInfo.forceRemote && O ? (e._callCloudFunction || (e._callCloudFunction = n, e._callLocalFunction = Wt), o = Wt) : o = n, o = o.bind(e), Hn(t)) a = n.call(e, t);else if (function (_ref45) {
  18775. var e = _ref45.name,
  18776. _ref45$data = _ref45.data,
  18777. t = _ref45$data === void 0 ? {} : _ref45$data;
  18778. return "mp-weixin" === P && "uni-id-co" === e && "secureNetworkHandshakeByWeixin" === t.method;
  18779. }(t)) a = o.call(e, t);else if (Wn(t)) {
  18780. a = new Fn({
  18781. secretType: t.secretType,
  18782. uniCloudIns: e
  18783. }).wrapEncryptDataCallFunction(n.bind(e))(t);
  18784. } else if (Jn({
  18785. provider: s,
  18786. spaceId: r,
  18787. functionName: i
  18788. })) {
  18789. a = new Fn({
  18790. secretType: t.secretType,
  18791. uniCloudIns: e
  18792. }).wrapVerifyClientCallFunction(n.bind(e))(t);
  18793. } else a = o(t);
  18794. return Object.defineProperty(a, "result", {
  18795. get: function get() {
  18796. return console.warn("当前返回结果为Promise类型,不可直接访问其result属性,详情请参考:https://uniapp.dcloud.net.cn/uniCloud/faq?id=promise"), {};
  18797. }
  18798. }), a.then(function (e) {
  18799. return e;
  18800. });
  18801. };
  18802. }
  18803. Fn = "mp-weixin" !== P && "app" !== P ? /*#__PURE__*/function () {
  18804. function _class2() {
  18805. (0, _classCallCheck2.default)(this, _class2);
  18806. throw tn({
  18807. message: "Platform ".concat(P, " is not supported by secure network")
  18808. });
  18809. }
  18810. return (0, _createClass2.default)(_class2);
  18811. }() : k ? "mp-weixin" === P ? jn : Bn : /*#__PURE__*/function () {
  18812. function _class3() {
  18813. (0, _classCallCheck2.default)(this, _class3);
  18814. throw tn({
  18815. message: "Platform ".concat(P, " is not enabled, please check whether secure network module is enabled in your manifest.json")
  18816. });
  18817. }
  18818. return (0, _createClass2.default)(_class3);
  18819. }();
  18820. var Gn = Symbol("CLIENT_DB_INTERNAL");
  18821. function Yn(e, t) {
  18822. return e.then = "DoNotReturnProxyWithAFunctionNamedThen", e._internalType = Gn, e.inspect = null, e.__ob__ = void 0, new Proxy(e, {
  18823. get: function get(e, n, s) {
  18824. if ("_uniClient" === n) return null;
  18825. if ("symbol" == (0, _typeof2.default)(n)) return e[n];
  18826. if (n in e || "string" != typeof n) {
  18827. var _t12 = e[n];
  18828. return "function" == typeof _t12 ? _t12.bind(e) : _t12;
  18829. }
  18830. return t.get(e, n, s);
  18831. }
  18832. });
  18833. }
  18834. function Qn(e) {
  18835. return {
  18836. on: function on(t, n) {
  18837. e[t] = e[t] || [], e[t].indexOf(n) > -1 || e[t].push(n);
  18838. },
  18839. off: function off(t, n) {
  18840. e[t] = e[t] || [];
  18841. var s = e[t].indexOf(n);
  18842. -1 !== s && e[t].splice(s, 1);
  18843. }
  18844. };
  18845. }
  18846. var Xn = ["db.Geo", "db.command", "command.aggregate"];
  18847. function Zn(e, t) {
  18848. return Xn.indexOf("".concat(e, ".").concat(t)) > -1;
  18849. }
  18850. function es(e) {
  18851. switch (g(e)) {
  18852. case "array":
  18853. return e.map(function (e) {
  18854. return es(e);
  18855. });
  18856. case "object":
  18857. return e._internalType === Gn || Object.keys(e).forEach(function (t) {
  18858. e[t] = es(e[t]);
  18859. }), e;
  18860. case "regexp":
  18861. return {
  18862. $regexp: {
  18863. source: e.source,
  18864. flags: e.flags
  18865. }
  18866. };
  18867. case "date":
  18868. return {
  18869. $date: e.toISOString()
  18870. };
  18871. default:
  18872. return e;
  18873. }
  18874. }
  18875. function ts(e) {
  18876. return e && e.content && e.content.$method;
  18877. }
  18878. var ns = /*#__PURE__*/function () {
  18879. function ns(e, t, n) {
  18880. (0, _classCallCheck2.default)(this, ns);
  18881. this.content = e, this.prevStage = t || null, this.udb = null, this._database = n;
  18882. }
  18883. (0, _createClass2.default)(ns, [{
  18884. key: "toJSON",
  18885. value: function toJSON() {
  18886. var e = this;
  18887. var t = [e.content];
  18888. for (; e.prevStage;) {
  18889. e = e.prevStage, t.push(e.content);
  18890. }
  18891. return {
  18892. $db: t.reverse().map(function (e) {
  18893. return {
  18894. $method: e.$method,
  18895. $param: es(e.$param)
  18896. };
  18897. })
  18898. };
  18899. }
  18900. }, {
  18901. key: "toString",
  18902. value: function toString() {
  18903. return JSON.stringify(this.toJSON());
  18904. }
  18905. }, {
  18906. key: "getAction",
  18907. value: function getAction() {
  18908. var e = this.toJSON().$db.find(function (e) {
  18909. return "action" === e.$method;
  18910. });
  18911. return e && e.$param && e.$param[0];
  18912. }
  18913. }, {
  18914. key: "getCommand",
  18915. value: function getCommand() {
  18916. return {
  18917. $db: this.toJSON().$db.filter(function (e) {
  18918. return "action" !== e.$method;
  18919. })
  18920. };
  18921. }
  18922. }, {
  18923. key: "isAggregate",
  18924. get: function get() {
  18925. var e = this;
  18926. for (; e;) {
  18927. var t = ts(e),
  18928. _n13 = ts(e.prevStage);
  18929. if ("aggregate" === t && "collection" === _n13 || "pipeline" === t) return !0;
  18930. e = e.prevStage;
  18931. }
  18932. return !1;
  18933. }
  18934. }, {
  18935. key: "isCommand",
  18936. get: function get() {
  18937. var e = this;
  18938. for (; e;) {
  18939. if ("command" === ts(e)) return !0;
  18940. e = e.prevStage;
  18941. }
  18942. return !1;
  18943. }
  18944. }, {
  18945. key: "isAggregateCommand",
  18946. get: function get() {
  18947. var e = this;
  18948. for (; e;) {
  18949. var t = ts(e),
  18950. _n14 = ts(e.prevStage);
  18951. if ("aggregate" === t && "command" === _n14) return !0;
  18952. e = e.prevStage;
  18953. }
  18954. return !1;
  18955. }
  18956. }, {
  18957. key: "getNextStageFn",
  18958. value: function getNextStageFn(e) {
  18959. var t = this;
  18960. return function () {
  18961. return ss({
  18962. $method: e,
  18963. $param: es(Array.from(arguments))
  18964. }, t, t._database);
  18965. };
  18966. }
  18967. }, {
  18968. key: "count",
  18969. get: function get() {
  18970. return this.isAggregate ? this.getNextStageFn("count") : function () {
  18971. return this._send("count", Array.from(arguments));
  18972. };
  18973. }
  18974. }, {
  18975. key: "remove",
  18976. get: function get() {
  18977. return this.isCommand ? this.getNextStageFn("remove") : function () {
  18978. return this._send("remove", Array.from(arguments));
  18979. };
  18980. }
  18981. }, {
  18982. key: "get",
  18983. value: function get() {
  18984. return this._send("get", Array.from(arguments));
  18985. }
  18986. }, {
  18987. key: "add",
  18988. get: function get() {
  18989. return this.isCommand ? this.getNextStageFn("add") : function () {
  18990. return this._send("add", Array.from(arguments));
  18991. };
  18992. }
  18993. }, {
  18994. key: "update",
  18995. value: function update() {
  18996. return this._send("update", Array.from(arguments));
  18997. }
  18998. }, {
  18999. key: "end",
  19000. value: function end() {
  19001. return this._send("end", Array.from(arguments));
  19002. }
  19003. }, {
  19004. key: "set",
  19005. get: function get() {
  19006. return this.isCommand ? this.getNextStageFn("set") : function () {
  19007. throw new Error("JQL禁止使用set方法");
  19008. };
  19009. }
  19010. }, {
  19011. key: "_send",
  19012. value: function _send(e, t) {
  19013. var n = this.getAction(),
  19014. s = this.getCommand();
  19015. if (s.$db.push({
  19016. $method: e,
  19017. $param: es(t)
  19018. }), b) {
  19019. var _e22 = s.$db.find(function (e) {
  19020. return "collection" === e.$method;
  19021. }),
  19022. _t13 = _e22 && _e22.$param;
  19023. _t13 && 1 === _t13.length && "string" == typeof _e22.$param[0] && _e22.$param[0].indexOf(",") > -1 && console.warn("检测到使用JQL语法联表查询时,未使用getTemp先过滤主表数据,在主表数据量大的情况下可能会查询缓慢。\n- 如何优化请参考此文档:https://uniapp.dcloud.net.cn/uniCloud/jql?id=lookup-with-temp \n- 如果主表数据量很小请忽略此信息,项目发行时不会出现此提示。");
  19024. }
  19025. return this._database._callCloudFunction({
  19026. action: n,
  19027. command: s
  19028. });
  19029. }
  19030. }]);
  19031. return ns;
  19032. }();
  19033. function ss(e, t, n) {
  19034. return Yn(new ns(e, t, n), {
  19035. get: function get(e, t) {
  19036. var s = "db";
  19037. return e && e.content && (s = e.content.$method), Zn(s, t) ? ss({
  19038. $method: t
  19039. }, e, n) : function () {
  19040. return ss({
  19041. $method: t,
  19042. $param: es(Array.from(arguments))
  19043. }, e, n);
  19044. };
  19045. }
  19046. });
  19047. }
  19048. function rs(_ref46) {
  19049. var e = _ref46.path,
  19050. t = _ref46.method;
  19051. return /*#__PURE__*/function () {
  19052. function _class4() {
  19053. (0, _classCallCheck2.default)(this, _class4);
  19054. this.param = Array.from(arguments);
  19055. }
  19056. (0, _createClass2.default)(_class4, [{
  19057. key: "toJSON",
  19058. value: function toJSON() {
  19059. return {
  19060. $newDb: [].concat((0, _toConsumableArray2.default)(e.map(function (e) {
  19061. return {
  19062. $method: e
  19063. };
  19064. })), [{
  19065. $method: t,
  19066. $param: this.param
  19067. }])
  19068. };
  19069. }
  19070. }, {
  19071. key: "toString",
  19072. value: function toString() {
  19073. return JSON.stringify(this.toJSON());
  19074. }
  19075. }]);
  19076. return _class4;
  19077. }();
  19078. }
  19079. var is = /*#__PURE__*/function () {
  19080. function is() {
  19081. var _ref47 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
  19082. _ref47$uniClient = _ref47.uniClient,
  19083. e = _ref47$uniClient === void 0 ? {} : _ref47$uniClient,
  19084. _ref47$isJQL = _ref47.isJQL,
  19085. t = _ref47$isJQL === void 0 ? !1 : _ref47$isJQL;
  19086. (0, _classCallCheck2.default)(this, is);
  19087. this._uniClient = e, this._authCallBacks = {}, this._dbCallBacks = {}, e._isDefault && (this._dbCallBacks = U("_globalUniCloudDatabaseCallback")), t || (this.auth = Qn(this._authCallBacks)), this._isJQL = t, Object.assign(this, Qn(this._dbCallBacks)), this.env = Yn({}, {
  19088. get: function get(e, t) {
  19089. return {
  19090. $env: t
  19091. };
  19092. }
  19093. }), this.Geo = Yn({}, {
  19094. get: function get(e, t) {
  19095. return rs({
  19096. path: ["Geo"],
  19097. method: t
  19098. });
  19099. }
  19100. }), this.serverDate = rs({
  19101. path: [],
  19102. method: "serverDate"
  19103. }), this.RegExp = rs({
  19104. path: [],
  19105. method: "RegExp"
  19106. });
  19107. }
  19108. (0, _createClass2.default)(is, [{
  19109. key: "getCloudEnv",
  19110. value: function getCloudEnv(e) {
  19111. if ("string" != typeof e || !e.trim()) throw new Error("getCloudEnv参数错误");
  19112. return {
  19113. $env: e.replace("$cloudEnv_", "")
  19114. };
  19115. }
  19116. }, {
  19117. key: "_callback",
  19118. value: function _callback(e, t) {
  19119. var n = this._dbCallBacks;
  19120. n[e] && n[e].forEach(function (e) {
  19121. e.apply(void 0, (0, _toConsumableArray2.default)(t));
  19122. });
  19123. }
  19124. }, {
  19125. key: "_callbackAuth",
  19126. value: function _callbackAuth(e, t) {
  19127. var n = this._authCallBacks;
  19128. n[e] && n[e].forEach(function (e) {
  19129. e.apply(void 0, (0, _toConsumableArray2.default)(t));
  19130. });
  19131. }
  19132. }, {
  19133. key: "multiSend",
  19134. value: function multiSend() {
  19135. var e = Array.from(arguments),
  19136. t = e.map(function (e) {
  19137. var t = e.getAction(),
  19138. n = e.getCommand();
  19139. if ("getTemp" !== n.$db[n.$db.length - 1].$method) throw new Error("multiSend只支持子命令内使用getTemp");
  19140. return {
  19141. action: t,
  19142. command: n
  19143. };
  19144. });
  19145. return this._callCloudFunction({
  19146. multiCommand: t,
  19147. queryList: e
  19148. });
  19149. }
  19150. }]);
  19151. return is;
  19152. }();
  19153. function os(e) {
  19154. var t = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  19155. return Yn(new e(t), {
  19156. get: function get(e, t) {
  19157. return Zn("db", t) ? ss({
  19158. $method: t
  19159. }, null, e) : function () {
  19160. return ss({
  19161. $method: t,
  19162. $param: es(Array.from(arguments))
  19163. }, null, e);
  19164. };
  19165. }
  19166. });
  19167. }
  19168. var as = /*#__PURE__*/function (_is) {
  19169. (0, _inherits2.default)(as, _is);
  19170. var _super10 = _createSuper(as);
  19171. function as() {
  19172. (0, _classCallCheck2.default)(this, as);
  19173. return _super10.apply(this, arguments);
  19174. }
  19175. (0, _createClass2.default)(as, [{
  19176. key: "_parseResult",
  19177. value: function _parseResult(e) {
  19178. return this._isJQL ? e.result : e;
  19179. }
  19180. }, {
  19181. key: "_callCloudFunction",
  19182. value: function _callCloudFunction(_ref48) {
  19183. var _this24 = this;
  19184. var e = _ref48.action,
  19185. t = _ref48.command,
  19186. n = _ref48.multiCommand,
  19187. s = _ref48.queryList;
  19188. function r(e, t) {
  19189. if (n && s) for (var _n15 = 0; _n15 < s.length; _n15++) {
  19190. var _r7 = s[_n15];
  19191. _r7.udb && "function" == typeof _r7.udb.setResult && (t ? _r7.udb.setResult(t) : _r7.udb.setResult(e.result.dataList[_n15]));
  19192. }
  19193. }
  19194. var i = this,
  19195. o = this._isJQL ? "databaseForJQL" : "database";
  19196. function a(e) {
  19197. return i._callback("error", [e]), j($(o, "fail"), e).then(function () {
  19198. return j($(o, "complete"), e);
  19199. }).then(function () {
  19200. return r(null, e), Y(H.RESPONSE, {
  19201. type: J.CLIENT_DB,
  19202. content: e
  19203. }), Promise.reject(e);
  19204. });
  19205. }
  19206. var c = j($(o, "invoke")),
  19207. u = this._uniClient;
  19208. return c.then(function () {
  19209. return u.callFunction({
  19210. name: "DCloud-clientDB",
  19211. type: l.CLIENT_DB,
  19212. data: {
  19213. action: e,
  19214. command: t,
  19215. multiCommand: n
  19216. }
  19217. });
  19218. }).then(function (e) {
  19219. var _e$result = e.result,
  19220. t = _e$result.code,
  19221. n = _e$result.message,
  19222. s = _e$result.token,
  19223. c = _e$result.tokenExpired,
  19224. _e$result$systemInfo = _e$result.systemInfo,
  19225. u = _e$result$systemInfo === void 0 ? [] : _e$result$systemInfo;
  19226. if (u) for (var _e23 = 0; _e23 < u.length; _e23++) {
  19227. var _u$_e = u[_e23],
  19228. _t14 = _u$_e.level,
  19229. _n16 = _u$_e.message,
  19230. _s17 = _u$_e.detail;
  19231. var _r8 = "[System Info]" + _n16;
  19232. _s17 && (_r8 = "".concat(_r8, "\n\u8BE6\u7EC6\u4FE1\u606F\uFF1A").concat(_s17)), (console["app" === P && "warn" === _t14 ? "error" : _t14] || console.log)(_r8);
  19233. }
  19234. if (t) {
  19235. return a(new te({
  19236. code: t,
  19237. message: n,
  19238. requestId: e.requestId
  19239. }));
  19240. }
  19241. e.result.errCode = e.result.errCode || e.result.code, e.result.errMsg = e.result.errMsg || e.result.message, s && c && (re({
  19242. token: s,
  19243. tokenExpired: c
  19244. }), _this24._callbackAuth("refreshToken", [{
  19245. token: s,
  19246. tokenExpired: c
  19247. }]), _this24._callback("refreshToken", [{
  19248. token: s,
  19249. tokenExpired: c
  19250. }]), Y(H.REFRESH_TOKEN, {
  19251. token: s,
  19252. tokenExpired: c
  19253. }));
  19254. var h = [{
  19255. prop: "affectedDocs",
  19256. tips: "affectedDocs不再推荐使用,请使用inserted/deleted/updated/data.length替代"
  19257. }, {
  19258. prop: "code",
  19259. tips: "code不再推荐使用,请使用errCode替代"
  19260. }, {
  19261. prop: "message",
  19262. tips: "message不再推荐使用,请使用errMsg替代"
  19263. }];
  19264. var _loop2 = function _loop2(_t15) {
  19265. var _h$_t = h[_t15],
  19266. n = _h$_t.prop,
  19267. s = _h$_t.tips;
  19268. if (n in e.result) {
  19269. var _t16 = e.result[n];
  19270. Object.defineProperty(e.result, n, {
  19271. get: function get() {
  19272. return console.warn(s), _t16;
  19273. }
  19274. });
  19275. }
  19276. };
  19277. for (var _t15 = 0; _t15 < h.length; _t15++) {
  19278. _loop2(_t15);
  19279. }
  19280. return function (e) {
  19281. return j($(o, "success"), e).then(function () {
  19282. return j($(o, "complete"), e);
  19283. }).then(function () {
  19284. r(e, null);
  19285. var t = i._parseResult(e);
  19286. return Y(H.RESPONSE, {
  19287. type: J.CLIENT_DB,
  19288. content: t
  19289. }), Promise.resolve(t);
  19290. });
  19291. }(e);
  19292. }, function (e) {
  19293. /fc_function_not_found|FUNCTION_NOT_FOUND/g.test(e.message) && console.warn("clientDB未初始化,请在web控制台保存一次schema以开启clientDB");
  19294. return a(new te({
  19295. code: e.code || "SYSTEM_ERROR",
  19296. message: e.message,
  19297. requestId: e.requestId
  19298. }));
  19299. });
  19300. }
  19301. }]);
  19302. return as;
  19303. }(is);
  19304. var cs = "token无效,跳转登录页面",
  19305. us = "token过期,跳转登录页面",
  19306. hs = {
  19307. TOKEN_INVALID_TOKEN_EXPIRED: us,
  19308. TOKEN_INVALID_INVALID_CLIENTID: cs,
  19309. TOKEN_INVALID: cs,
  19310. TOKEN_INVALID_WRONG_TOKEN: cs,
  19311. TOKEN_INVALID_ANONYMOUS_USER: cs
  19312. },
  19313. ls = {
  19314. "uni-id-token-expired": us,
  19315. "uni-id-check-token-failed": cs,
  19316. "uni-id-token-not-exist": cs,
  19317. "uni-id-check-device-feature-failed": cs
  19318. },
  19319. ds = _objectSpread(_objectSpread(_objectSpread({}, hs), ls), {}, {
  19320. default: "用户未登录或登录状态过期,自动跳转登录页面"
  19321. });
  19322. function ps(e, t) {
  19323. var n = "";
  19324. return n = e ? "".concat(e, "/").concat(t) : t, n.replace(/^\//, "");
  19325. }
  19326. function fs() {
  19327. var e = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
  19328. var t = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : "";
  19329. var n = [],
  19330. s = [];
  19331. return e.forEach(function (e) {
  19332. !0 === e.needLogin ? n.push(ps(t, e.path)) : !1 === e.needLogin && s.push(ps(t, e.path));
  19333. }), {
  19334. needLoginPage: n,
  19335. notNeedLoginPage: s
  19336. };
  19337. }
  19338. function gs(e) {
  19339. return e.split("?")[0].replace(/^\//, "");
  19340. }
  19341. function ms() {
  19342. return function (e) {
  19343. var t = e && e.$page && e.$page.fullPath;
  19344. return t ? ("/" !== t.charAt(0) && (t = "/" + t), t) : "";
  19345. }(function () {
  19346. var e = getCurrentPages();
  19347. return e[e.length - 1];
  19348. }());
  19349. }
  19350. function ys() {
  19351. return gs(ms());
  19352. }
  19353. function _s() {
  19354. var e = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : "";
  19355. var t = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  19356. if (!e) return !1;
  19357. if (!(t && t.list && t.list.length)) return !1;
  19358. var n = t.list,
  19359. s = gs(e);
  19360. return n.some(function (e) {
  19361. return e.pagePath === s;
  19362. });
  19363. }
  19364. var ws = !!_pages.default.uniIdRouter;
  19365. var _ref49 = function () {
  19366. var _ref8 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : _pages.default,
  19367. _ref8$pages = _ref8.pages,
  19368. t = _ref8$pages === void 0 ? [] : _ref8$pages,
  19369. _ref8$subPackages = _ref8.subPackages,
  19370. n = _ref8$subPackages === void 0 ? [] : _ref8$subPackages,
  19371. _ref8$uniIdRouter = _ref8.uniIdRouter,
  19372. s = _ref8$uniIdRouter === void 0 ? {} : _ref8$uniIdRouter,
  19373. _ref8$tabBar = _ref8.tabBar,
  19374. r = _ref8$tabBar === void 0 ? {} : _ref8$tabBar;
  19375. var i = s.loginPage,
  19376. _s$needLogin = s.needLogin,
  19377. o = _s$needLogin === void 0 ? [] : _s$needLogin,
  19378. _s$resToLogin = s.resToLogin,
  19379. a = _s$resToLogin === void 0 ? !0 : _s$resToLogin,
  19380. _fs = fs(t),
  19381. c = _fs.needLoginPage,
  19382. u = _fs.notNeedLoginPage,
  19383. _ref9 = function () {
  19384. var e = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
  19385. var t = [],
  19386. n = [];
  19387. return e.forEach(function (e) {
  19388. var s = e.root,
  19389. _e$pages = e.pages,
  19390. r = _e$pages === void 0 ? [] : _e$pages,
  19391. _fs2 = fs(r, s),
  19392. i = _fs2.needLoginPage,
  19393. o = _fs2.notNeedLoginPage;
  19394. t.push.apply(t, (0, _toConsumableArray2.default)(i)), n.push.apply(n, (0, _toConsumableArray2.default)(o));
  19395. }), {
  19396. needLoginPage: t,
  19397. notNeedLoginPage: n
  19398. };
  19399. }(n),
  19400. h = _ref9.needLoginPage,
  19401. l = _ref9.notNeedLoginPage;
  19402. return {
  19403. loginPage: i,
  19404. routerNeedLogin: o,
  19405. resToLogin: a,
  19406. needLoginPage: [].concat((0, _toConsumableArray2.default)(c), (0, _toConsumableArray2.default)(h)),
  19407. notNeedLoginPage: [].concat((0, _toConsumableArray2.default)(u), (0, _toConsumableArray2.default)(l)),
  19408. loginPageInTabBar: _s(i, r)
  19409. };
  19410. }(),
  19411. Is = _ref49.loginPage,
  19412. vs = _ref49.routerNeedLogin,
  19413. Ss = _ref49.resToLogin,
  19414. Ts = _ref49.needLoginPage,
  19415. bs = _ref49.notNeedLoginPage,
  19416. Es = _ref49.loginPageInTabBar;
  19417. if (Ts.indexOf(Is) > -1) throw new Error("Login page [".concat(Is, "] should not be \"needLogin\", please check your pages.json"));
  19418. function ks(e) {
  19419. var t = ys();
  19420. if ("/" === e.charAt(0)) return e;
  19421. var _e$split = e.split("?"),
  19422. _e$split2 = (0, _slicedToArray2.default)(_e$split, 2),
  19423. n = _e$split2[0],
  19424. s = _e$split2[1],
  19425. r = n.replace(/^\//, "").split("/"),
  19426. i = t.split("/");
  19427. i.pop();
  19428. for (var _e24 = 0; _e24 < r.length; _e24++) {
  19429. var _t17 = r[_e24];
  19430. ".." === _t17 ? i.pop() : "." !== _t17 && i.push(_t17);
  19431. }
  19432. return "" === i[0] && i.shift(), "/" + i.join("/") + (s ? "?" + s : "");
  19433. }
  19434. function As(e) {
  19435. var t = gs(ks(e));
  19436. return !(bs.indexOf(t) > -1) && (Ts.indexOf(t) > -1 || vs.some(function (t) {
  19437. return function (e, t) {
  19438. return new RegExp(t).test(e);
  19439. }(e, t);
  19440. }));
  19441. }
  19442. function Ps(_ref32) {
  19443. var e = _ref32.redirect;
  19444. var t = gs(e),
  19445. n = gs(Is);
  19446. return ys() !== n && t !== n;
  19447. }
  19448. function Cs() {
  19449. var _ref34 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
  19450. e = _ref34.api,
  19451. t = _ref34.redirect;
  19452. if (!t || !Ps({
  19453. redirect: t
  19454. })) return;
  19455. var n = function (e, t) {
  19456. return "/" !== e.charAt(0) && (e = "/" + e), t ? e.indexOf("?") > -1 ? e + "&uniIdRedirectUrl=".concat(encodeURIComponent(t)) : e + "?uniIdRedirectUrl=".concat(encodeURIComponent(t)) : e;
  19457. }(Is, t);
  19458. Es ? "navigateTo" !== e && "redirectTo" !== e || (e = "switchTab") : "switchTab" === e && (e = "navigateTo");
  19459. var s = {
  19460. navigateTo: uni.navigateTo,
  19461. redirectTo: uni.redirectTo,
  19462. switchTab: uni.switchTab,
  19463. reLaunch: uni.reLaunch
  19464. };
  19465. setTimeout(function () {
  19466. s[e]({
  19467. url: n
  19468. });
  19469. }, 0);
  19470. }
  19471. function Os() {
  19472. var _ref50 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
  19473. e = _ref50.url;
  19474. var t = {
  19475. abortLoginPageJump: !1,
  19476. autoToLoginPage: !1
  19477. },
  19478. n = function () {
  19479. var _se4 = se(),
  19480. e = _se4.token,
  19481. t = _se4.tokenExpired;
  19482. var n;
  19483. if (e) {
  19484. if (t < Date.now()) {
  19485. var _e25 = "uni-id-token-expired";
  19486. n = {
  19487. errCode: _e25,
  19488. errMsg: ds[_e25]
  19489. };
  19490. }
  19491. } else {
  19492. var _e26 = "uni-id-check-token-failed";
  19493. n = {
  19494. errCode: _e26,
  19495. errMsg: ds[_e26]
  19496. };
  19497. }
  19498. return n;
  19499. }();
  19500. if (As(e) && n) {
  19501. n.uniIdRedirectUrl = e;
  19502. if (z(H.NEED_LOGIN).length > 0) return setTimeout(function () {
  19503. Y(H.NEED_LOGIN, n);
  19504. }, 0), t.abortLoginPageJump = !0, t;
  19505. t.autoToLoginPage = !0;
  19506. }
  19507. return t;
  19508. }
  19509. function xs() {
  19510. !function () {
  19511. var e = ms(),
  19512. _Os = Os({
  19513. url: e
  19514. }),
  19515. t = _Os.abortLoginPageJump,
  19516. n = _Os.autoToLoginPage;
  19517. t || n && Cs({
  19518. api: "redirectTo",
  19519. redirect: e
  19520. });
  19521. }();
  19522. var e = ["navigateTo", "redirectTo", "reLaunch", "switchTab"];
  19523. var _loop3 = function _loop3(_t18) {
  19524. var n = e[_t18];
  19525. uni.addInterceptor(n, {
  19526. invoke: function invoke(e) {
  19527. var _Os2 = Os({
  19528. url: e.url
  19529. }),
  19530. t = _Os2.abortLoginPageJump,
  19531. s = _Os2.autoToLoginPage;
  19532. return t ? e : s ? (Cs({
  19533. api: n,
  19534. redirect: ks(e.url)
  19535. }), !1) : e;
  19536. }
  19537. });
  19538. };
  19539. for (var _t18 = 0; _t18 < e.length; _t18++) {
  19540. _loop3(_t18);
  19541. }
  19542. }
  19543. function Ns() {
  19544. this.onResponse(function (e) {
  19545. var t = e.type,
  19546. n = e.content;
  19547. var s = !1;
  19548. switch (t) {
  19549. case "cloudobject":
  19550. s = function (e) {
  19551. if ("object" != (0, _typeof2.default)(e)) return !1;
  19552. var _ref51 = e || {},
  19553. t = _ref51.errCode;
  19554. return t in ds;
  19555. }(n);
  19556. break;
  19557. case "clientdb":
  19558. s = function (e) {
  19559. if ("object" != (0, _typeof2.default)(e)) return !1;
  19560. var _ref52 = e || {},
  19561. t = _ref52.errCode;
  19562. return t in hs;
  19563. }(n);
  19564. }
  19565. s && function () {
  19566. var e = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
  19567. var t = z(H.NEED_LOGIN);
  19568. Z().then(function () {
  19569. var n = ms();
  19570. if (n && Ps({
  19571. redirect: n
  19572. })) return t.length > 0 ? Y(H.NEED_LOGIN, Object.assign({
  19573. uniIdRedirectUrl: n
  19574. }, e)) : void (Is && Cs({
  19575. api: "navigateTo",
  19576. redirect: n
  19577. }));
  19578. });
  19579. }(n);
  19580. });
  19581. }
  19582. function Rs(e) {
  19583. !function (e) {
  19584. e.onResponse = function (e) {
  19585. V(H.RESPONSE, e);
  19586. }, e.offResponse = function (e) {
  19587. G(H.RESPONSE, e);
  19588. };
  19589. }(e), function (e) {
  19590. e.onNeedLogin = function (e) {
  19591. V(H.NEED_LOGIN, e);
  19592. }, e.offNeedLogin = function (e) {
  19593. G(H.NEED_LOGIN, e);
  19594. }, ws && (U(Yt).needLoginInit || (U(Yt).needLoginInit = !0, Z().then(function () {
  19595. xs.call(e);
  19596. }), Ss && Ns.call(e)));
  19597. }(e), function (e) {
  19598. e.onRefreshToken = function (e) {
  19599. V(H.REFRESH_TOKEN, e);
  19600. }, e.offRefreshToken = function (e) {
  19601. G(H.REFRESH_TOKEN, e);
  19602. };
  19603. }(e);
  19604. }
  19605. var Ls;
  19606. var Us = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",
  19607. Ds = /^(?:[A-Za-z\d+/]{4})*?(?:[A-Za-z\d+/]{2}(?:==)?|[A-Za-z\d+/]{3}=?)?$/;
  19608. function Ms() {
  19609. var e = se().token || "",
  19610. t = e.split(".");
  19611. if (!e || 3 !== t.length) return {
  19612. uid: null,
  19613. role: [],
  19614. permission: [],
  19615. tokenExpired: 0
  19616. };
  19617. var n;
  19618. try {
  19619. n = JSON.parse((s = t[1], decodeURIComponent(Ls(s).split("").map(function (e) {
  19620. return "%" + ("00" + e.charCodeAt(0).toString(16)).slice(-2);
  19621. }).join(""))));
  19622. } catch (e) {
  19623. throw new Error("获取当前用户信息出错,详细错误信息为:" + e.message);
  19624. }
  19625. var s;
  19626. return n.tokenExpired = 1e3 * n.exp, delete n.exp, delete n.iat, n;
  19627. }
  19628. Ls = "function" != typeof atob ? function (e) {
  19629. if (e = String(e).replace(/[\t\n\f\r ]+/g, ""), !Ds.test(e)) throw new Error("Failed to execute 'atob' on 'Window': The string to be decoded is not correctly encoded.");
  19630. var t;
  19631. e += "==".slice(2 - (3 & e.length));
  19632. for (var n, s, r = "", i = 0; i < e.length;) {
  19633. t = Us.indexOf(e.charAt(i++)) << 18 | Us.indexOf(e.charAt(i++)) << 12 | (n = Us.indexOf(e.charAt(i++))) << 6 | (s = Us.indexOf(e.charAt(i++))), r += 64 === n ? String.fromCharCode(t >> 16 & 255) : 64 === s ? String.fromCharCode(t >> 16 & 255, t >> 8 & 255) : String.fromCharCode(t >> 16 & 255, t >> 8 & 255, 255 & t);
  19634. }
  19635. return r;
  19636. } : atob;
  19637. var qs = n(function (e, t) {
  19638. Object.defineProperty(t, "__esModule", {
  19639. value: !0
  19640. });
  19641. var n = "chooseAndUploadFile:ok",
  19642. s = "chooseAndUploadFile:fail";
  19643. function r(e, t) {
  19644. return e.tempFiles.forEach(function (e, n) {
  19645. e.name || (e.name = e.path.substring(e.path.lastIndexOf("/") + 1)), t && (e.fileType = t), e.cloudPath = Date.now() + "_" + n + e.name.substring(e.name.lastIndexOf("."));
  19646. }), e.tempFilePaths || (e.tempFilePaths = e.tempFiles.map(function (e) {
  19647. return e.path;
  19648. })), e;
  19649. }
  19650. function i(e, t, _ref53) {
  19651. var s = _ref53.onChooseFile,
  19652. r = _ref53.onUploadProgress;
  19653. return t.then(function (e) {
  19654. if (s) {
  19655. var _t19 = s(e);
  19656. if (void 0 !== _t19) return Promise.resolve(_t19).then(function (t) {
  19657. return void 0 === t ? e : t;
  19658. });
  19659. }
  19660. return e;
  19661. }).then(function (t) {
  19662. return !1 === t ? {
  19663. errMsg: n,
  19664. tempFilePaths: [],
  19665. tempFiles: []
  19666. } : function (e, t) {
  19667. var s = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 5;
  19668. var r = arguments.length > 3 ? arguments[3] : undefined;
  19669. (t = Object.assign({}, t)).errMsg = n;
  19670. var i = t.tempFiles,
  19671. o = i.length;
  19672. var a = 0;
  19673. return new Promise(function (n) {
  19674. for (; a < s;) {
  19675. c();
  19676. }
  19677. function c() {
  19678. var s = a++;
  19679. if (s >= o) return void (!i.find(function (e) {
  19680. return !e.url && !e.errMsg;
  19681. }) && n(t));
  19682. var u = i[s];
  19683. e.uploadFile({
  19684. provider: u.provider,
  19685. filePath: u.path,
  19686. cloudPath: u.cloudPath,
  19687. fileType: u.fileType,
  19688. cloudPathAsRealPath: u.cloudPathAsRealPath,
  19689. onUploadProgress: function onUploadProgress(e) {
  19690. e.index = s, e.tempFile = u, e.tempFilePath = u.path, r && r(e);
  19691. }
  19692. }).then(function (e) {
  19693. u.url = e.fileID, s < o && c();
  19694. }).catch(function (e) {
  19695. u.errMsg = e.errMsg || e.message, s < o && c();
  19696. });
  19697. }
  19698. });
  19699. }(e, t, 5, r);
  19700. });
  19701. }
  19702. t.initChooseAndUploadFile = function (e) {
  19703. return function () {
  19704. var t = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {
  19705. type: "all"
  19706. };
  19707. return "image" === t.type ? i(e, function (e) {
  19708. var t = e.count,
  19709. n = e.sizeType,
  19710. _e$sourceType = e.sourceType,
  19711. i = _e$sourceType === void 0 ? ["album", "camera"] : _e$sourceType,
  19712. o = e.extension;
  19713. return new Promise(function (e, a) {
  19714. uni.chooseImage({
  19715. count: t,
  19716. sizeType: n,
  19717. sourceType: i,
  19718. extension: o,
  19719. success: function success(t) {
  19720. e(r(t, "image"));
  19721. },
  19722. fail: function fail(e) {
  19723. a({
  19724. errMsg: e.errMsg.replace("chooseImage:fail", s)
  19725. });
  19726. }
  19727. });
  19728. });
  19729. }(t), t) : "video" === t.type ? i(e, function (e) {
  19730. var t = e.camera,
  19731. n = e.compressed,
  19732. i = e.maxDuration,
  19733. _e$sourceType2 = e.sourceType,
  19734. o = _e$sourceType2 === void 0 ? ["album", "camera"] : _e$sourceType2,
  19735. a = e.extension;
  19736. return new Promise(function (e, c) {
  19737. uni.chooseVideo({
  19738. camera: t,
  19739. compressed: n,
  19740. maxDuration: i,
  19741. sourceType: o,
  19742. extension: a,
  19743. success: function success(t) {
  19744. var n = t.tempFilePath,
  19745. s = t.duration,
  19746. i = t.size,
  19747. o = t.height,
  19748. a = t.width;
  19749. e(r({
  19750. errMsg: "chooseVideo:ok",
  19751. tempFilePaths: [n],
  19752. tempFiles: [{
  19753. name: t.tempFile && t.tempFile.name || "",
  19754. path: n,
  19755. size: i,
  19756. type: t.tempFile && t.tempFile.type || "",
  19757. width: a,
  19758. height: o,
  19759. duration: s,
  19760. fileType: "video",
  19761. cloudPath: ""
  19762. }]
  19763. }, "video"));
  19764. },
  19765. fail: function fail(e) {
  19766. c({
  19767. errMsg: e.errMsg.replace("chooseVideo:fail", s)
  19768. });
  19769. }
  19770. });
  19771. });
  19772. }(t), t) : i(e, function (e) {
  19773. var t = e.count,
  19774. n = e.extension;
  19775. return new Promise(function (e, i) {
  19776. var o = uni.chooseFile;
  19777. if ("undefined" != typeof wx && "function" == typeof wx.chooseMessageFile && (o = wx.chooseMessageFile), "function" != typeof o) return i({
  19778. errMsg: s + " 请指定 type 类型,该平台仅支持选择 image 或 video。"
  19779. });
  19780. o({
  19781. type: "all",
  19782. count: t,
  19783. extension: n,
  19784. success: function success(t) {
  19785. e(r(t));
  19786. },
  19787. fail: function fail(e) {
  19788. i({
  19789. errMsg: e.errMsg.replace("chooseFile:fail", s)
  19790. });
  19791. }
  19792. });
  19793. });
  19794. }(t), t);
  19795. };
  19796. };
  19797. }),
  19798. Fs = t(qs);
  19799. var Ks = {
  19800. auto: "auto",
  19801. onready: "onready",
  19802. manual: "manual"
  19803. };
  19804. function js(e) {
  19805. return {
  19806. props: {
  19807. localdata: {
  19808. type: Array,
  19809. default: function _default() {
  19810. return [];
  19811. }
  19812. },
  19813. options: {
  19814. type: [Object, Array],
  19815. default: function _default() {
  19816. return {};
  19817. }
  19818. },
  19819. spaceInfo: {
  19820. type: Object,
  19821. default: function _default() {
  19822. return {};
  19823. }
  19824. },
  19825. collection: {
  19826. type: [String, Array],
  19827. default: ""
  19828. },
  19829. action: {
  19830. type: String,
  19831. default: ""
  19832. },
  19833. field: {
  19834. type: String,
  19835. default: ""
  19836. },
  19837. orderby: {
  19838. type: String,
  19839. default: ""
  19840. },
  19841. where: {
  19842. type: [String, Object],
  19843. default: ""
  19844. },
  19845. pageData: {
  19846. type: String,
  19847. default: "add"
  19848. },
  19849. pageCurrent: {
  19850. type: Number,
  19851. default: 1
  19852. },
  19853. pageSize: {
  19854. type: Number,
  19855. default: 20
  19856. },
  19857. getcount: {
  19858. type: [Boolean, String],
  19859. default: !1
  19860. },
  19861. gettree: {
  19862. type: [Boolean, String],
  19863. default: !1
  19864. },
  19865. gettreepath: {
  19866. type: [Boolean, String],
  19867. default: !1
  19868. },
  19869. startwith: {
  19870. type: String,
  19871. default: ""
  19872. },
  19873. limitlevel: {
  19874. type: Number,
  19875. default: 10
  19876. },
  19877. groupby: {
  19878. type: String,
  19879. default: ""
  19880. },
  19881. groupField: {
  19882. type: String,
  19883. default: ""
  19884. },
  19885. distinct: {
  19886. type: [Boolean, String],
  19887. default: !1
  19888. },
  19889. foreignKey: {
  19890. type: String,
  19891. default: ""
  19892. },
  19893. loadtime: {
  19894. type: String,
  19895. default: "auto"
  19896. },
  19897. manual: {
  19898. type: Boolean,
  19899. default: !1
  19900. }
  19901. },
  19902. data: function data() {
  19903. return {
  19904. mixinDatacomLoading: !1,
  19905. mixinDatacomHasMore: !1,
  19906. mixinDatacomResData: [],
  19907. mixinDatacomErrorMessage: "",
  19908. mixinDatacomPage: {},
  19909. mixinDatacomError: null
  19910. };
  19911. },
  19912. created: function created() {
  19913. var _this25 = this;
  19914. this.mixinDatacomPage = {
  19915. current: this.pageCurrent,
  19916. size: this.pageSize,
  19917. count: 0
  19918. }, this.$watch(function () {
  19919. var e = [];
  19920. return ["pageCurrent", "pageSize", "localdata", "collection", "action", "field", "orderby", "where", "getont", "getcount", "gettree", "groupby", "groupField", "distinct"].forEach(function (t) {
  19921. e.push(_this25[t]);
  19922. }), e;
  19923. }, function (e, t) {
  19924. if (_this25.loadtime === Ks.manual) return;
  19925. var n = !1;
  19926. var s = [];
  19927. for (var _r9 = 2; _r9 < e.length; _r9++) {
  19928. e[_r9] !== t[_r9] && (s.push(e[_r9]), n = !0);
  19929. }
  19930. e[0] !== t[0] && (_this25.mixinDatacomPage.current = _this25.pageCurrent), _this25.mixinDatacomPage.size = _this25.pageSize, _this25.onMixinDatacomPropsChange(n, s);
  19931. });
  19932. },
  19933. methods: {
  19934. onMixinDatacomPropsChange: function onMixinDatacomPropsChange(e, t) {},
  19935. mixinDatacomEasyGet: function mixinDatacomEasyGet() {
  19936. var _this26 = this;
  19937. var _ref54 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
  19938. _ref54$getone = _ref54.getone,
  19939. e = _ref54$getone === void 0 ? !1 : _ref54$getone,
  19940. t = _ref54.success,
  19941. n = _ref54.fail;
  19942. this.mixinDatacomLoading || (this.mixinDatacomLoading = !0, this.mixinDatacomErrorMessage = "", this.mixinDatacomError = null, this.mixinDatacomGet().then(function (n) {
  19943. _this26.mixinDatacomLoading = !1;
  19944. var _n$result = n.result,
  19945. s = _n$result.data,
  19946. r = _n$result.count;
  19947. _this26.getcount && (_this26.mixinDatacomPage.count = r), _this26.mixinDatacomHasMore = s.length < _this26.pageSize;
  19948. var i = e ? s.length ? s[0] : void 0 : s;
  19949. _this26.mixinDatacomResData = i, t && t(i);
  19950. }).catch(function (e) {
  19951. _this26.mixinDatacomLoading = !1, _this26.mixinDatacomErrorMessage = e, _this26.mixinDatacomError = e, n && n(e);
  19952. }));
  19953. },
  19954. mixinDatacomGet: function mixinDatacomGet() {
  19955. var _n17;
  19956. var t = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
  19957. var n;
  19958. t = t || {}, n = "undefined" != typeof __uniX && __uniX ? e.databaseForJQL(this.spaceInfo) : e.database(this.spaceInfo);
  19959. var s = t.action || this.action;
  19960. s && (n = n.action(s));
  19961. var r = t.collection || this.collection;
  19962. n = Array.isArray(r) ? (_n17 = n).collection.apply(_n17, (0, _toConsumableArray2.default)(r)) : n.collection(r);
  19963. var i = t.where || this.where;
  19964. i && Object.keys(i).length && (n = n.where(i));
  19965. var o = t.field || this.field;
  19966. o && (n = n.field(o));
  19967. var a = t.foreignKey || this.foreignKey;
  19968. a && (n = n.foreignKey(a));
  19969. var c = t.groupby || this.groupby;
  19970. c && (n = n.groupBy(c));
  19971. var u = t.groupField || this.groupField;
  19972. u && (n = n.groupField(u));
  19973. !0 === (void 0 !== t.distinct ? t.distinct : this.distinct) && (n = n.distinct());
  19974. var h = t.orderby || this.orderby;
  19975. h && (n = n.orderBy(h));
  19976. var l = void 0 !== t.pageCurrent ? t.pageCurrent : this.mixinDatacomPage.current,
  19977. d = void 0 !== t.pageSize ? t.pageSize : this.mixinDatacomPage.size,
  19978. p = void 0 !== t.getcount ? t.getcount : this.getcount,
  19979. f = void 0 !== t.gettree ? t.gettree : this.gettree,
  19980. g = void 0 !== t.gettreepath ? t.gettreepath : this.gettreepath,
  19981. m = {
  19982. getCount: p
  19983. },
  19984. y = {
  19985. limitLevel: void 0 !== t.limitlevel ? t.limitlevel : this.limitlevel,
  19986. startWith: void 0 !== t.startwith ? t.startwith : this.startwith
  19987. };
  19988. return f && (m.getTree = y), g && (m.getTreePath = y), n = n.skip(d * (l - 1)).limit(d).get(m), n;
  19989. }
  19990. }
  19991. };
  19992. }
  19993. function $s(e) {
  19994. return function (t) {
  19995. var n = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  19996. n = function (e) {
  19997. var t = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  19998. return e.customUI = t.customUI || e.customUI, e.parseSystemError = t.parseSystemError || e.parseSystemError, Object.assign(e.loadingOptions, t.loadingOptions), Object.assign(e.errorOptions, t.errorOptions), "object" == (0, _typeof2.default)(t.secretMethods) && (e.secretMethods = t.secretMethods), e;
  19999. }({
  20000. customUI: !1,
  20001. loadingOptions: {
  20002. title: "加载中...",
  20003. mask: !0
  20004. },
  20005. errorOptions: {
  20006. type: "modal",
  20007. retry: !1
  20008. }
  20009. }, n);
  20010. var _n18 = n,
  20011. s = _n18.customUI,
  20012. r = _n18.loadingOptions,
  20013. i = _n18.errorOptions,
  20014. o = _n18.parseSystemError,
  20015. a = !s;
  20016. return new Proxy({}, {
  20017. get: function get(s, c) {
  20018. switch (c) {
  20019. case "toString":
  20020. return "[object UniCloudObject]";
  20021. case "toJSON":
  20022. return {};
  20023. }
  20024. return function () {
  20025. var _ref55 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
  20026. e = _ref55.fn,
  20027. t = _ref55.interceptorName,
  20028. n = _ref55.getCallbackArgs;
  20029. return /*#__PURE__*/(0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee64() {
  20030. var _len3,
  20031. s,
  20032. _key3,
  20033. r,
  20034. i,
  20035. o,
  20036. _args = arguments;
  20037. return _regenerator.default.wrap(function _callee64$(_context64) {
  20038. while (1) {
  20039. switch (_context64.prev = _context64.next) {
  20040. case 0:
  20041. for (_len3 = _args.length, s = new Array(_len3), _key3 = 0; _key3 < _len3; _key3++) {
  20042. s[_key3] = _args[_key3];
  20043. }
  20044. r = n ? n({
  20045. params: s
  20046. }) : {};
  20047. _context64.prev = 2;
  20048. _context64.next = 5;
  20049. return j($(t, "invoke"), _objectSpread({}, r));
  20050. case 5:
  20051. _context64.next = 7;
  20052. return e.apply(void 0, s);
  20053. case 7:
  20054. i = _context64.sent;
  20055. _context64.next = 10;
  20056. return j($(t, "success"), _objectSpread(_objectSpread({}, r), {}, {
  20057. result: i
  20058. }));
  20059. case 10:
  20060. return _context64.abrupt("return", i);
  20061. case 13:
  20062. _context64.prev = 13;
  20063. _context64.t0 = _context64["catch"](2);
  20064. o = _context64.t0;
  20065. _context64.next = 18;
  20066. return j($(t, "fail"), _objectSpread(_objectSpread({}, r), {}, {
  20067. error: o
  20068. }));
  20069. case 18:
  20070. throw o;
  20071. case 19:
  20072. _context64.prev = 19;
  20073. _context64.next = 22;
  20074. return j($(t, "complete"), o ? _objectSpread(_objectSpread({}, r), {}, {
  20075. error: o
  20076. }) : _objectSpread(_objectSpread({}, r), {}, {
  20077. result: i
  20078. }));
  20079. case 22:
  20080. return _context64.finish(19);
  20081. case 23:
  20082. case "end":
  20083. return _context64.stop();
  20084. }
  20085. }
  20086. }, _callee64, null, [[2, 13, 19, 23]]);
  20087. }));
  20088. }({
  20089. fn: function () {
  20090. var _s18 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee66() {
  20091. var h,
  20092. _len4,
  20093. u,
  20094. _key4,
  20095. d,
  20096. p,
  20097. _ref57,
  20098. f,
  20099. g,
  20100. m,
  20101. y,
  20102. _e27,
  20103. _yield,
  20104. _t20,
  20105. _n19,
  20106. _args4 = arguments;
  20107. return _regenerator.default.wrap(function _callee66$(_context66) {
  20108. while (1) {
  20109. switch (_context66.prev = _context66.next) {
  20110. case 0:
  20111. a && uni.showLoading({
  20112. title: r.title,
  20113. mask: r.mask
  20114. });
  20115. for (_len4 = _args4.length, u = new Array(_len4), _key4 = 0; _key4 < _len4; _key4++) {
  20116. u[_key4] = _args4[_key4];
  20117. }
  20118. d = {
  20119. name: t,
  20120. type: l.OBJECT,
  20121. data: {
  20122. method: c,
  20123. params: u
  20124. }
  20125. };
  20126. "object" == (0, _typeof2.default)(n.secretMethods) && function (e, t) {
  20127. var n = t.data.method,
  20128. s = e.secretMethods || {},
  20129. r = s[n] || s["*"];
  20130. r && (t.secretType = r);
  20131. }(n, d);
  20132. p = !1;
  20133. _context66.prev = 5;
  20134. _context66.next = 8;
  20135. return e.callFunction(d);
  20136. case 8:
  20137. h = _context66.sent;
  20138. _context66.next = 14;
  20139. break;
  20140. case 11:
  20141. _context66.prev = 11;
  20142. _context66.t0 = _context66["catch"](5);
  20143. p = !0, h = {
  20144. result: new te(_context66.t0)
  20145. };
  20146. case 14:
  20147. _ref57 = h.result || {}, f = _ref57.errSubject, g = _ref57.errCode, m = _ref57.errMsg, y = _ref57.newToken;
  20148. if (!(a && uni.hideLoading(), y && y.token && y.tokenExpired && (re(y), Y(H.REFRESH_TOKEN, _objectSpread({}, y))), g)) {
  20149. _context66.next = 39;
  20150. break;
  20151. }
  20152. _e27 = m;
  20153. if (!(p && o)) {
  20154. _context66.next = 24;
  20155. break;
  20156. }
  20157. _context66.next = 20;
  20158. return o({
  20159. objectName: t,
  20160. methodName: c,
  20161. params: u,
  20162. errSubject: f,
  20163. errCode: g,
  20164. errMsg: m
  20165. });
  20166. case 20:
  20167. _context66.t1 = _context66.sent.errMsg;
  20168. if (_context66.t1) {
  20169. _context66.next = 23;
  20170. break;
  20171. }
  20172. _context66.t1 = m;
  20173. case 23:
  20174. _e27 = _context66.t1;
  20175. case 24:
  20176. if (!a) {
  20177. _context66.next = 37;
  20178. break;
  20179. }
  20180. if (!("toast" === i.type)) {
  20181. _context66.next = 29;
  20182. break;
  20183. }
  20184. uni.showToast({
  20185. title: _e27,
  20186. icon: "none"
  20187. });
  20188. _context66.next = 37;
  20189. break;
  20190. case 29:
  20191. if (!("modal" !== i.type)) {
  20192. _context66.next = 31;
  20193. break;
  20194. }
  20195. throw new Error("Invalid errorOptions.type: ".concat(i.type));
  20196. case 31:
  20197. _context66.next = 33;
  20198. return (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee65() {
  20199. var _ref59,
  20200. e,
  20201. t,
  20202. n,
  20203. s,
  20204. r,
  20205. _args2 = arguments;
  20206. return _regenerator.default.wrap(function _callee65$(_context65) {
  20207. while (1) {
  20208. switch (_context65.prev = _context65.next) {
  20209. case 0:
  20210. _ref59 = _args2.length > 0 && _args2[0] !== undefined ? _args2[0] : {}, e = _ref59.title, t = _ref59.content, n = _ref59.showCancel, s = _ref59.cancelText, r = _ref59.confirmText;
  20211. return _context65.abrupt("return", new Promise(function (i, o) {
  20212. uni.showModal({
  20213. title: e,
  20214. content: t,
  20215. showCancel: n,
  20216. cancelText: s,
  20217. confirmText: r,
  20218. success: function success(e) {
  20219. i(e);
  20220. },
  20221. fail: function fail() {
  20222. i({
  20223. confirm: !1,
  20224. cancel: !0
  20225. });
  20226. }
  20227. });
  20228. }));
  20229. case 2:
  20230. case "end":
  20231. return _context65.stop();
  20232. }
  20233. }
  20234. }, _callee65);
  20235. }))({
  20236. title: "提示",
  20237. content: _e27,
  20238. showCancel: i.retry,
  20239. cancelText: "取消",
  20240. confirmText: i.retry ? "重试" : "确定"
  20241. });
  20242. case 33:
  20243. _yield = _context66.sent;
  20244. _t20 = _yield.confirm;
  20245. if (!(i.retry && _t20)) {
  20246. _context66.next = 37;
  20247. break;
  20248. }
  20249. return _context66.abrupt("return", s.apply(void 0, u));
  20250. case 37:
  20251. _n19 = new te({
  20252. subject: f,
  20253. code: g,
  20254. message: m,
  20255. requestId: h.requestId
  20256. });
  20257. throw _n19.detail = h.result, Y(H.RESPONSE, {
  20258. type: J.CLOUD_OBJECT,
  20259. content: _n19
  20260. }), _n19;
  20261. case 39:
  20262. return _context66.abrupt("return", (Y(H.RESPONSE, {
  20263. type: J.CLOUD_OBJECT,
  20264. content: h.result
  20265. }), h.result));
  20266. case 40:
  20267. case "end":
  20268. return _context66.stop();
  20269. }
  20270. }
  20271. }, _callee66, null, [[5, 11]]);
  20272. }));
  20273. function s() {
  20274. return _s18.apply(this, arguments);
  20275. }
  20276. return s;
  20277. }(),
  20278. interceptorName: "callObject",
  20279. getCallbackArgs: function getCallbackArgs() {
  20280. var _ref60 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
  20281. e = _ref60.params;
  20282. return {
  20283. objectName: t,
  20284. methodName: c,
  20285. params: e
  20286. };
  20287. }
  20288. });
  20289. }
  20290. });
  20291. };
  20292. }
  20293. function Bs(e) {
  20294. return U(Qt.replace("{spaceId}", e.config.spaceId));
  20295. }
  20296. function Ws() {
  20297. return _Ws.apply(this, arguments);
  20298. }
  20299. function _Ws() {
  20300. _Ws = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee71() {
  20301. var _ref70,
  20302. e,
  20303. _ref70$callLoginByWei,
  20304. t,
  20305. n,
  20306. s,
  20307. r,
  20308. _args10 = arguments;
  20309. return _regenerator.default.wrap(function _callee71$(_context71) {
  20310. while (1) {
  20311. switch (_context71.prev = _context71.next) {
  20312. case 0:
  20313. _ref70 = _args10.length > 0 && _args10[0] !== undefined ? _args10[0] : {}, e = _ref70.openid, _ref70$callLoginByWei = _ref70.callLoginByWeixin, t = _ref70$callLoginByWei === void 0 ? !1 : _ref70$callLoginByWei;
  20314. n = Bs(this);
  20315. if (!("mp-weixin" !== P)) {
  20316. _context71.next = 4;
  20317. break;
  20318. }
  20319. throw new Error("[SecureNetwork] API `initSecureNetworkByWeixin` is not supported on platform `".concat(P, "`"));
  20320. case 4:
  20321. if (!(e && t)) {
  20322. _context71.next = 6;
  20323. break;
  20324. }
  20325. throw new Error("[SecureNetwork] openid and callLoginByWeixin cannot be passed at the same time");
  20326. case 6:
  20327. if (!e) {
  20328. _context71.next = 8;
  20329. break;
  20330. }
  20331. return _context71.abrupt("return", (n.mpWeixinOpenid = e, {}));
  20332. case 8:
  20333. _context71.next = 10;
  20334. return new Promise(function (e, t) {
  20335. uni.login({
  20336. success: function success(t) {
  20337. e(t.code);
  20338. },
  20339. fail: function fail(e) {
  20340. t(new Error(e.errMsg));
  20341. }
  20342. });
  20343. });
  20344. case 10:
  20345. s = _context71.sent;
  20346. r = this.importObject("uni-id-co", {
  20347. customUI: !0
  20348. });
  20349. _context71.next = 14;
  20350. return r.secureNetworkHandshakeByWeixin({
  20351. code: s,
  20352. callLoginByWeixin: t
  20353. });
  20354. case 14:
  20355. n.mpWeixinCode = s;
  20356. return _context71.abrupt("return", {
  20357. code: s
  20358. });
  20359. case 16:
  20360. case "end":
  20361. return _context71.stop();
  20362. }
  20363. }
  20364. }, _callee71, this);
  20365. }));
  20366. return _Ws.apply(this, arguments);
  20367. }
  20368. function Hs(_x52) {
  20369. return _Hs.apply(this, arguments);
  20370. }
  20371. function _Hs() {
  20372. _Hs = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee72(e) {
  20373. var t;
  20374. return _regenerator.default.wrap(function _callee72$(_context72) {
  20375. while (1) {
  20376. switch (_context72.prev = _context72.next) {
  20377. case 0:
  20378. t = Bs(this);
  20379. return _context72.abrupt("return", (t.initPromise || (t.initPromise = Ws.call(this, e).then(function (e) {
  20380. return e;
  20381. }).catch(function (e) {
  20382. throw delete t.initPromise, e;
  20383. })), t.initPromise));
  20384. case 2:
  20385. case "end":
  20386. return _context72.stop();
  20387. }
  20388. }
  20389. }, _callee72, this);
  20390. }));
  20391. return _Hs.apply(this, arguments);
  20392. }
  20393. function Js(e) {
  20394. return function () {
  20395. var _ref61 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
  20396. t = _ref61.openid,
  20397. _ref61$callLoginByWei = _ref61.callLoginByWeixin,
  20398. n = _ref61$callLoginByWei === void 0 ? !1 : _ref61$callLoginByWei;
  20399. return Hs.call(e, {
  20400. openid: t,
  20401. callLoginByWeixin: n
  20402. });
  20403. };
  20404. }
  20405. function zs(e) {
  20406. !function (e) {
  20407. ue = e;
  20408. }(e);
  20409. }
  20410. function Vs(e) {
  20411. var t = "mp-weixin" === P && wx.canIUse("getAppBaseInfo"),
  20412. n = {
  20413. getAppBaseInfo: t ? uni.getAppBaseInfo : uni.getSystemInfo,
  20414. getPushClientId: uni.getPushClientId
  20415. };
  20416. return function (s) {
  20417. return new Promise(function (r, i) {
  20418. t && "getAppBaseInfo" === e ? r(n[e]()) : n[e](_objectSpread(_objectSpread({}, s), {}, {
  20419. success: function success(e) {
  20420. r(e);
  20421. },
  20422. fail: function fail(e) {
  20423. i(e);
  20424. }
  20425. }));
  20426. });
  20427. };
  20428. }
  20429. var Gs = /*#__PURE__*/function (_S) {
  20430. (0, _inherits2.default)(Gs, _S);
  20431. var _super11 = _createSuper(Gs);
  20432. function Gs() {
  20433. var _this27;
  20434. (0, _classCallCheck2.default)(this, Gs);
  20435. _this27 = _super11.call(this), _this27._uniPushMessageCallback = _this27._receivePushMessage.bind((0, _assertThisInitialized2.default)(_this27)), _this27._currentMessageId = -1, _this27._payloadQueue = [];
  20436. return _this27;
  20437. }
  20438. (0, _createClass2.default)(Gs, [{
  20439. key: "init",
  20440. value: function init() {
  20441. var _this28 = this;
  20442. return Promise.all([Vs("getAppBaseInfo")(), Vs("getPushClientId")()]).then(function () {
  20443. var _ref62 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [],
  20444. _ref63 = (0, _slicedToArray2.default)(_ref62, 2),
  20445. _ref63$ = _ref63[0];
  20446. _ref63$ = _ref63$ === void 0 ? {} : _ref63$;
  20447. var e = _ref63$.appId,
  20448. _ref63$2 = _ref63[1];
  20449. _ref63$2 = _ref63$2 === void 0 ? {} : _ref63$2;
  20450. var t = _ref63$2.cid;
  20451. if (!e) throw new Error("Invalid appId, please check the manifest.json file");
  20452. if (!t) throw new Error("Invalid push client id");
  20453. _this28._appId = e, _this28._pushClientId = t, _this28._seqId = Date.now() + "-" + Math.floor(9e5 * Math.random() + 1e5), _this28.emit("open"), _this28._initMessageListener();
  20454. }, function (e) {
  20455. throw _this28.emit("error", e), _this28.close(), e;
  20456. });
  20457. }
  20458. }, {
  20459. key: "open",
  20460. value: function () {
  20461. var _open = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee67() {
  20462. return _regenerator.default.wrap(function _callee67$(_context67) {
  20463. while (1) {
  20464. switch (_context67.prev = _context67.next) {
  20465. case 0:
  20466. return _context67.abrupt("return", this.init());
  20467. case 1:
  20468. case "end":
  20469. return _context67.stop();
  20470. }
  20471. }
  20472. }, _callee67, this);
  20473. }));
  20474. function open() {
  20475. return _open.apply(this, arguments);
  20476. }
  20477. return open;
  20478. }()
  20479. }, {
  20480. key: "_isUniCloudSSE",
  20481. value: function _isUniCloudSSE(e) {
  20482. if ("receive" !== e.type) return !1;
  20483. var t = e && e.data && e.data.payload;
  20484. return !(!t || "UNI_CLOUD_SSE" !== t.channel || t.seqId !== this._seqId);
  20485. }
  20486. }, {
  20487. key: "_receivePushMessage",
  20488. value: function _receivePushMessage(e) {
  20489. if (!this._isUniCloudSSE(e)) return;
  20490. var t = e && e.data && e.data.payload,
  20491. n = t.action,
  20492. s = t.messageId,
  20493. r = t.message;
  20494. this._payloadQueue.push({
  20495. action: n,
  20496. messageId: s,
  20497. message: r
  20498. }), this._consumMessage();
  20499. }
  20500. }, {
  20501. key: "_consumMessage",
  20502. value: function _consumMessage() {
  20503. var _this29 = this;
  20504. for (;;) {
  20505. var _e28 = this._payloadQueue.find(function (e) {
  20506. return e.messageId === _this29._currentMessageId + 1;
  20507. });
  20508. if (!_e28) break;
  20509. this._currentMessageId++, this._parseMessagePayload(_e28);
  20510. }
  20511. }
  20512. }, {
  20513. key: "_parseMessagePayload",
  20514. value: function _parseMessagePayload(e) {
  20515. var t = e.action,
  20516. n = e.messageId,
  20517. s = e.message;
  20518. "end" === t ? this._end({
  20519. messageId: n,
  20520. message: s
  20521. }) : "message" === t && this._appendMessage({
  20522. messageId: n,
  20523. message: s
  20524. });
  20525. }
  20526. }, {
  20527. key: "_appendMessage",
  20528. value: function _appendMessage() {
  20529. var _ref64 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
  20530. e = _ref64.messageId,
  20531. t = _ref64.message;
  20532. this.emit("message", t);
  20533. }
  20534. }, {
  20535. key: "_end",
  20536. value: function _end() {
  20537. var _ref65 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
  20538. e = _ref65.messageId,
  20539. t = _ref65.message;
  20540. this.emit("end", t), this.close();
  20541. }
  20542. }, {
  20543. key: "_initMessageListener",
  20544. value: function _initMessageListener() {
  20545. uni.onPushMessage(this._uniPushMessageCallback);
  20546. }
  20547. }, {
  20548. key: "_destroy",
  20549. value: function _destroy() {
  20550. uni.offPushMessage(this._uniPushMessageCallback);
  20551. }
  20552. }, {
  20553. key: "toJSON",
  20554. value: function toJSON() {
  20555. return {
  20556. appId: this._appId,
  20557. pushClientId: this._pushClientId,
  20558. seqId: this._seqId
  20559. };
  20560. }
  20561. }, {
  20562. key: "close",
  20563. value: function close() {
  20564. this._destroy(), this.emit("close");
  20565. }
  20566. }]);
  20567. return Gs;
  20568. }(S);
  20569. function Ys(_x53) {
  20570. return _Ys.apply(this, arguments);
  20571. }
  20572. function _Ys() {
  20573. _Ys = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee73(e) {
  20574. var _ae2, _e33, _t22, t, _t$debugInfo, n, s, _yield$Ct2, r, i, o;
  20575. return _regenerator.default.wrap(function _callee73$(_context73) {
  20576. while (1) {
  20577. switch (_context73.prev = _context73.next) {
  20578. case 0:
  20579. if (b) {
  20580. _context73.next = 2;
  20581. break;
  20582. }
  20583. return _context73.abrupt("return", Promise.resolve());
  20584. case 2:
  20585. if ("app" === P) {
  20586. _ae2 = ae(), _e33 = _ae2.osName, _t22 = _ae2.osVersion;
  20587. "ios" === _e33 && function (e) {
  20588. if (!e || "string" != typeof e) return 0;
  20589. var t = e.match(/^(\d+)./);
  20590. return t && t[1] ? parseInt(t[1]) : 0;
  20591. }(_t22) >= 14 && console.warn("iOS 14及以上版本连接uniCloud本地调试服务需要允许客户端查找并连接到本地网络上的设备(仅开发期间需要,发行后不需要)");
  20592. }
  20593. t = e.__dev__;
  20594. if (t.debugInfo) {
  20595. _context73.next = 6;
  20596. break;
  20597. }
  20598. return _context73.abrupt("return");
  20599. case 6:
  20600. _t$debugInfo = t.debugInfo;
  20601. n = _t$debugInfo.address;
  20602. s = _t$debugInfo.servePort;
  20603. _context73.next = 11;
  20604. return Ct(n, s);
  20605. case 11:
  20606. _yield$Ct2 = _context73.sent;
  20607. r = _yield$Ct2.address;
  20608. if (!r) {
  20609. _context73.next = 15;
  20610. break;
  20611. }
  20612. return _context73.abrupt("return", (t.localAddress = r, void (t.localPort = s)));
  20613. case 15:
  20614. i = console["app" === P ? "error" : "warn"];
  20615. o = "";
  20616. if (!("remote" === t.debugInfo.initialLaunchType ? (t.debugInfo.forceRemote = !0, o = "当前客户端和HBuilderX不在同一局域网下(或其他网络原因无法连接HBuilderX),uniCloud本地调试服务不对当前客户端生效。\n- 如果不使用uniCloud本地调试服务,请直接忽略此信息。\n- 如需使用uniCloud本地调试服务,请将客户端与主机连接到同一局域网下并重新运行到客户端。") : o = "无法连接uniCloud本地调试服务,请检查当前客户端是否与主机在同一局域网下。\n- 如需使用uniCloud本地调试服务,请将客户端与主机连接到同一局域网下并重新运行到客户端。", o += "\n- 如果在HBuilderX开启的状态下切换过网络环境,请重启HBuilderX后再试\n- 检查系统防火墙是否拦截了HBuilderX自带的nodejs\n- 检查是否错误的使用拦截器修改uni.request方法的参数", "web" === P && (o += "\n- 部分浏览器开启节流模式之后访问本地地址受限,请检查是否启用了节流模式"), 0 === P.indexOf("mp-") && (o += "\n- 小程序中如何使用uniCloud,请参考:https://uniapp.dcloud.net.cn/uniCloud/publish.html#useinmp"), !t.debugInfo.forceRemote)) {
  20617. _context73.next = 19;
  20618. break;
  20619. }
  20620. throw new Error(o);
  20621. case 19:
  20622. i(o);
  20623. case 20:
  20624. case "end":
  20625. return _context73.stop();
  20626. }
  20627. }
  20628. }, _callee73);
  20629. }));
  20630. return _Ys.apply(this, arguments);
  20631. }
  20632. function Qs(e) {
  20633. e._initPromiseHub || (e._initPromiseHub = new v({
  20634. createPromise: function createPromise() {
  20635. var t = Promise.resolve();
  20636. var n;
  20637. n = 1, t = new Promise(function (e) {
  20638. setTimeout(function () {
  20639. e();
  20640. }, n);
  20641. });
  20642. var s = e.auth();
  20643. return t.then(function () {
  20644. return s.getLoginState();
  20645. }).then(function (e) {
  20646. return e ? Promise.resolve() : s.signInAnonymously();
  20647. });
  20648. }
  20649. }));
  20650. }
  20651. var Xs = {
  20652. tcb: At,
  20653. tencent: At,
  20654. aliyun: pe,
  20655. private: Nt,
  20656. dcloud: Nt,
  20657. alipay: $t
  20658. };
  20659. var Zs = new ( /*#__PURE__*/function () {
  20660. function _class5() {
  20661. (0, _classCallCheck2.default)(this, _class5);
  20662. }
  20663. (0, _createClass2.default)(_class5, [{
  20664. key: "init",
  20665. value: function init(e) {
  20666. var t = {};
  20667. var n = Xs[e.provider];
  20668. if (!n) throw new Error("未提供正确的provider参数");
  20669. t = n.init(e), b && function (e) {
  20670. if (!b) return;
  20671. var t = {};
  20672. e.__dev__ = t, t.debugLog = b && ("web" === P && navigator.userAgent.indexOf("HBuilderX") > 0 || "app" === P || "mp-harmony" === P);
  20673. var n = C;
  20674. n && !n.code && (t.debugInfo = n);
  20675. var s = new v({
  20676. createPromise: function createPromise() {
  20677. return Ys(e);
  20678. }
  20679. });
  20680. t.initLocalNetwork = function () {
  20681. return s.exec();
  20682. };
  20683. }(t), Qs(t), Vn(t), function (e) {
  20684. var t = e.uploadFile;
  20685. e.uploadFile = function (e) {
  20686. return t.call(this, e);
  20687. };
  20688. }(t), function (e) {
  20689. e.database = function (t) {
  20690. if (t && Object.keys(t).length > 0) return e.init(t).database();
  20691. if (this._database) return this._database;
  20692. var n = os(as, {
  20693. uniClient: e
  20694. });
  20695. return this._database = n, n;
  20696. }, e.databaseForJQL = function (t) {
  20697. if (t && Object.keys(t).length > 0) return e.init(t).databaseForJQL();
  20698. if (this._databaseForJQL) return this._databaseForJQL;
  20699. var n = os(as, {
  20700. uniClient: e,
  20701. isJQL: !0
  20702. });
  20703. return this._databaseForJQL = n, n;
  20704. };
  20705. }(t), function (e) {
  20706. e.getCurrentUserInfo = Ms, e.chooseAndUploadFile = Fs.initChooseAndUploadFile(e), Object.assign(e, {
  20707. get mixinDatacom() {
  20708. return js(e);
  20709. }
  20710. }), e.SSEChannel = Gs, e.initSecureNetworkByWeixin = Js(e), e.setCustomClientInfo = zs, e.importObject = $s(e);
  20711. }(t);
  20712. return ["callFunction", "uploadFile", "deleteFile", "getTempFileURL", "downloadFile", "chooseAndUploadFile"].forEach(function (e) {
  20713. if (!t[e]) return;
  20714. var n = t[e];
  20715. t[e] = function () {
  20716. return n.apply(t, Array.from(arguments));
  20717. }, t[e] = function (e, t) {
  20718. return function (n) {
  20719. var _this30 = this;
  20720. var s = !1;
  20721. if ("callFunction" === t) {
  20722. var _e29 = n && n.type || l.DEFAULT;
  20723. s = _e29 !== l.DEFAULT;
  20724. }
  20725. var r = "callFunction" === t && !s,
  20726. i = this._initPromiseHub.exec();
  20727. n = n || {};
  20728. var _ee2 = ee(n),
  20729. o = _ee2.success,
  20730. a = _ee2.fail,
  20731. c = _ee2.complete,
  20732. u = i.then(function () {
  20733. return s ? Promise.resolve() : j($(t, "invoke"), n);
  20734. }).then(function () {
  20735. return e.call(_this30, n);
  20736. }).then(function (e) {
  20737. return s ? Promise.resolve(e) : j($(t, "success"), e).then(function () {
  20738. return j($(t, "complete"), e);
  20739. }).then(function () {
  20740. return r && Y(H.RESPONSE, {
  20741. type: J.CLOUD_FUNCTION,
  20742. content: e
  20743. }), Promise.resolve(e);
  20744. });
  20745. }, function (e) {
  20746. return s ? Promise.reject(e) : j($(t, "fail"), e).then(function () {
  20747. return j($(t, "complete"), e);
  20748. }).then(function () {
  20749. return Y(H.RESPONSE, {
  20750. type: J.CLOUD_FUNCTION,
  20751. content: e
  20752. }), Promise.reject(e);
  20753. });
  20754. });
  20755. if (!(o || a || c)) return u;
  20756. u.then(function (e) {
  20757. o && o(e), c && c(e), r && Y(H.RESPONSE, {
  20758. type: J.CLOUD_FUNCTION,
  20759. content: e
  20760. });
  20761. }, function (e) {
  20762. a && a(e), c && c(e), r && Y(H.RESPONSE, {
  20763. type: J.CLOUD_FUNCTION,
  20764. content: e
  20765. });
  20766. });
  20767. };
  20768. }(t[e], e).bind(t);
  20769. }), t.init = this.init, t;
  20770. }
  20771. }]);
  20772. return _class5;
  20773. }())();
  20774. exports.uniCloud = Zs;
  20775. (function () {
  20776. var e = O;
  20777. var t = {};
  20778. if (e && 1 === e.length) t = e[0], exports.uniCloud = Zs = Zs.init(t), Zs._isDefault = !0;else {
  20779. var _t21 = ["auth", "callFunction", "uploadFile", "deleteFile", "getTempFileURL", "downloadFile"],
  20780. _n20 = ["database", "getCurrentUserInfo", "importObject"];
  20781. var _s19;
  20782. _s19 = e && e.length > 0 ? "应用有多个服务空间,请通过uniCloud.init方法指定要使用的服务空间" : x ? "应用未关联服务空间,请在uniCloud目录右键关联服务空间" : "uni-app cli项目内使用uniCloud需要使用HBuilderX的运行菜单运行项目,且需要在uniCloud目录关联服务空间", [].concat(_t21, _n20).forEach(function (e) {
  20783. Zs[e] = function () {
  20784. if (console.error(_s19), -1 === _n20.indexOf(e)) return Promise.reject(new te({
  20785. code: "SYS_ERR",
  20786. message: _s19
  20787. }));
  20788. console.error(_s19);
  20789. };
  20790. });
  20791. }
  20792. if (Object.assign(Zs, {
  20793. get mixinDatacom() {
  20794. return js(Zs);
  20795. }
  20796. }), Rs(Zs), Zs.addInterceptor = F, Zs.removeInterceptor = K, Zs.interceptObject = B, b && "web" === P && (window.uniCloud = Zs), "app" === P && (uni.__uniCloud = Zs), "app" === P || "web" === P) {
  20797. var _e30 = D();
  20798. _e30.uniCloud = Zs, _e30.UniCloudError = te;
  20799. }
  20800. })();
  20801. var er = Zs;
  20802. exports.default = er;
  20803. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../../../../../webpack/buildin/global.js */ 3), __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"], __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/wx.js */ 1)["default"]))
  20804. /***/ }),
  20805. /***/ 29:
  20806. /*!************************************************************************************************!*\
  20807. !*** ./node_modules/@dcloudio/vue-cli-plugin-uni/packages/@babel/runtime/regenerator/index.js ***!
  20808. \************************************************************************************************/
  20809. /*! no static exports found */
  20810. /***/ (function(module, exports, __webpack_require__) {
  20811. // TODO(Babel 8): Remove this file.
  20812. var runtime = __webpack_require__(/*! @babel/runtime/helpers/regeneratorRuntime */ 30)();
  20813. module.exports = runtime;
  20814. /***/ }),
  20815. /***/ 3:
  20816. /*!***********************************!*\
  20817. !*** (webpack)/buildin/global.js ***!
  20818. \***********************************/
  20819. /*! no static exports found */
  20820. /***/ (function(module, exports) {
  20821. var g;
  20822. // This works in non-strict mode
  20823. g = (function() {
  20824. return this;
  20825. })();
  20826. try {
  20827. // This works if eval is allowed (see CSP)
  20828. g = g || new Function("return this")();
  20829. } catch (e) {
  20830. // This works if the window reference is available
  20831. if (typeof window === "object") g = window;
  20832. }
  20833. // g can still be undefined, but nothing to do about it...
  20834. // We return undefined, instead of nothing here, so it's
  20835. // easier to handle this case. if(!global) { ...}
  20836. module.exports = g;
  20837. /***/ }),
  20838. /***/ 30:
  20839. /*!*******************************************************************!*\
  20840. !*** ./node_modules/@babel/runtime/helpers/regeneratorRuntime.js ***!
  20841. \*******************************************************************/
  20842. /*! no static exports found */
  20843. /***/ (function(module, exports, __webpack_require__) {
  20844. var _typeof = __webpack_require__(/*! ./typeof.js */ 13)["default"];
  20845. function _regeneratorRuntime() {
  20846. "use strict";
  20847. /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
  20848. module.exports = _regeneratorRuntime = function _regeneratorRuntime() {
  20849. return e;
  20850. }, module.exports.__esModule = true, module.exports["default"] = module.exports;
  20851. var t,
  20852. e = {},
  20853. r = Object.prototype,
  20854. n = r.hasOwnProperty,
  20855. o = Object.defineProperty || function (t, e, r) {
  20856. t[e] = r.value;
  20857. },
  20858. i = "function" == typeof Symbol ? Symbol : {},
  20859. a = i.iterator || "@@iterator",
  20860. c = i.asyncIterator || "@@asyncIterator",
  20861. u = i.toStringTag || "@@toStringTag";
  20862. function define(t, e, r) {
  20863. return Object.defineProperty(t, e, {
  20864. value: r,
  20865. enumerable: !0,
  20866. configurable: !0,
  20867. writable: !0
  20868. }), t[e];
  20869. }
  20870. try {
  20871. define({}, "");
  20872. } catch (t) {
  20873. define = function define(t, e, r) {
  20874. return t[e] = r;
  20875. };
  20876. }
  20877. function wrap(t, e, r, n) {
  20878. var i = e && e.prototype instanceof Generator ? e : Generator,
  20879. a = Object.create(i.prototype),
  20880. c = new Context(n || []);
  20881. return o(a, "_invoke", {
  20882. value: makeInvokeMethod(t, r, c)
  20883. }), a;
  20884. }
  20885. function tryCatch(t, e, r) {
  20886. try {
  20887. return {
  20888. type: "normal",
  20889. arg: t.call(e, r)
  20890. };
  20891. } catch (t) {
  20892. return {
  20893. type: "throw",
  20894. arg: t
  20895. };
  20896. }
  20897. }
  20898. e.wrap = wrap;
  20899. var h = "suspendedStart",
  20900. l = "suspendedYield",
  20901. f = "executing",
  20902. s = "completed",
  20903. y = {};
  20904. function Generator() {}
  20905. function GeneratorFunction() {}
  20906. function GeneratorFunctionPrototype() {}
  20907. var p = {};
  20908. define(p, a, function () {
  20909. return this;
  20910. });
  20911. var d = Object.getPrototypeOf,
  20912. v = d && d(d(values([])));
  20913. v && v !== r && n.call(v, a) && (p = v);
  20914. var g = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(p);
  20915. function defineIteratorMethods(t) {
  20916. ["next", "throw", "return"].forEach(function (e) {
  20917. define(t, e, function (t) {
  20918. return this._invoke(e, t);
  20919. });
  20920. });
  20921. }
  20922. function AsyncIterator(t, e) {
  20923. function invoke(r, o, i, a) {
  20924. var c = tryCatch(t[r], t, o);
  20925. if ("throw" !== c.type) {
  20926. var u = c.arg,
  20927. h = u.value;
  20928. return h && "object" == _typeof(h) && n.call(h, "__await") ? e.resolve(h.__await).then(function (t) {
  20929. invoke("next", t, i, a);
  20930. }, function (t) {
  20931. invoke("throw", t, i, a);
  20932. }) : e.resolve(h).then(function (t) {
  20933. u.value = t, i(u);
  20934. }, function (t) {
  20935. return invoke("throw", t, i, a);
  20936. });
  20937. }
  20938. a(c.arg);
  20939. }
  20940. var r;
  20941. o(this, "_invoke", {
  20942. value: function value(t, n) {
  20943. function callInvokeWithMethodAndArg() {
  20944. return new e(function (e, r) {
  20945. invoke(t, n, e, r);
  20946. });
  20947. }
  20948. return r = r ? r.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg();
  20949. }
  20950. });
  20951. }
  20952. function makeInvokeMethod(e, r, n) {
  20953. var o = h;
  20954. return function (i, a) {
  20955. if (o === f) throw Error("Generator is already running");
  20956. if (o === s) {
  20957. if ("throw" === i) throw a;
  20958. return {
  20959. value: t,
  20960. done: !0
  20961. };
  20962. }
  20963. for (n.method = i, n.arg = a;;) {
  20964. var c = n.delegate;
  20965. if (c) {
  20966. var u = maybeInvokeDelegate(c, n);
  20967. if (u) {
  20968. if (u === y) continue;
  20969. return u;
  20970. }
  20971. }
  20972. if ("next" === n.method) n.sent = n._sent = n.arg;else if ("throw" === n.method) {
  20973. if (o === h) throw o = s, n.arg;
  20974. n.dispatchException(n.arg);
  20975. } else "return" === n.method && n.abrupt("return", n.arg);
  20976. o = f;
  20977. var p = tryCatch(e, r, n);
  20978. if ("normal" === p.type) {
  20979. if (o = n.done ? s : l, p.arg === y) continue;
  20980. return {
  20981. value: p.arg,
  20982. done: n.done
  20983. };
  20984. }
  20985. "throw" === p.type && (o = s, n.method = "throw", n.arg = p.arg);
  20986. }
  20987. };
  20988. }
  20989. function maybeInvokeDelegate(e, r) {
  20990. var n = r.method,
  20991. o = e.iterator[n];
  20992. if (o === t) return r.delegate = null, "throw" === n && e.iterator["return"] && (r.method = "return", r.arg = t, maybeInvokeDelegate(e, r), "throw" === r.method) || "return" !== n && (r.method = "throw", r.arg = new TypeError("The iterator does not provide a '" + n + "' method")), y;
  20993. var i = tryCatch(o, e.iterator, r.arg);
  20994. if ("throw" === i.type) return r.method = "throw", r.arg = i.arg, r.delegate = null, y;
  20995. var a = i.arg;
  20996. return a ? a.done ? (r[e.resultName] = a.value, r.next = e.nextLoc, "return" !== r.method && (r.method = "next", r.arg = t), r.delegate = null, y) : a : (r.method = "throw", r.arg = new TypeError("iterator result is not an object"), r.delegate = null, y);
  20997. }
  20998. function pushTryEntry(t) {
  20999. var e = {
  21000. tryLoc: t[0]
  21001. };
  21002. 1 in t && (e.catchLoc = t[1]), 2 in t && (e.finallyLoc = t[2], e.afterLoc = t[3]), this.tryEntries.push(e);
  21003. }
  21004. function resetTryEntry(t) {
  21005. var e = t.completion || {};
  21006. e.type = "normal", delete e.arg, t.completion = e;
  21007. }
  21008. function Context(t) {
  21009. this.tryEntries = [{
  21010. tryLoc: "root"
  21011. }], t.forEach(pushTryEntry, this), this.reset(!0);
  21012. }
  21013. function values(e) {
  21014. if (e || "" === e) {
  21015. var r = e[a];
  21016. if (r) return r.call(e);
  21017. if ("function" == typeof e.next) return e;
  21018. if (!isNaN(e.length)) {
  21019. var o = -1,
  21020. i = function next() {
  21021. for (; ++o < e.length;) {
  21022. if (n.call(e, o)) return next.value = e[o], next.done = !1, next;
  21023. }
  21024. return next.value = t, next.done = !0, next;
  21025. };
  21026. return i.next = i;
  21027. }
  21028. }
  21029. throw new TypeError(_typeof(e) + " is not iterable");
  21030. }
  21031. return GeneratorFunction.prototype = GeneratorFunctionPrototype, o(g, "constructor", {
  21032. value: GeneratorFunctionPrototype,
  21033. configurable: !0
  21034. }), o(GeneratorFunctionPrototype, "constructor", {
  21035. value: GeneratorFunction,
  21036. configurable: !0
  21037. }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, u, "GeneratorFunction"), e.isGeneratorFunction = function (t) {
  21038. var e = "function" == typeof t && t.constructor;
  21039. return !!e && (e === GeneratorFunction || "GeneratorFunction" === (e.displayName || e.name));
  21040. }, e.mark = function (t) {
  21041. return Object.setPrototypeOf ? Object.setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, define(t, u, "GeneratorFunction")), t.prototype = Object.create(g), t;
  21042. }, e.awrap = function (t) {
  21043. return {
  21044. __await: t
  21045. };
  21046. }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, c, function () {
  21047. return this;
  21048. }), e.AsyncIterator = AsyncIterator, e.async = function (t, r, n, o, i) {
  21049. void 0 === i && (i = Promise);
  21050. var a = new AsyncIterator(wrap(t, r, n, o), i);
  21051. return e.isGeneratorFunction(r) ? a : a.next().then(function (t) {
  21052. return t.done ? t.value : a.next();
  21053. });
  21054. }, defineIteratorMethods(g), define(g, u, "Generator"), define(g, a, function () {
  21055. return this;
  21056. }), define(g, "toString", function () {
  21057. return "[object Generator]";
  21058. }), e.keys = function (t) {
  21059. var e = Object(t),
  21060. r = [];
  21061. for (var n in e) {
  21062. r.push(n);
  21063. }
  21064. return r.reverse(), function next() {
  21065. for (; r.length;) {
  21066. var t = r.pop();
  21067. if (t in e) return next.value = t, next.done = !1, next;
  21068. }
  21069. return next.done = !0, next;
  21070. };
  21071. }, e.values = values, Context.prototype = {
  21072. constructor: Context,
  21073. reset: function reset(e) {
  21074. if (this.prev = 0, this.next = 0, this.sent = this._sent = t, this.done = !1, this.delegate = null, this.method = "next", this.arg = t, this.tryEntries.forEach(resetTryEntry), !e) for (var r in this) {
  21075. "t" === r.charAt(0) && n.call(this, r) && !isNaN(+r.slice(1)) && (this[r] = t);
  21076. }
  21077. },
  21078. stop: function stop() {
  21079. this.done = !0;
  21080. var t = this.tryEntries[0].completion;
  21081. if ("throw" === t.type) throw t.arg;
  21082. return this.rval;
  21083. },
  21084. dispatchException: function dispatchException(e) {
  21085. if (this.done) throw e;
  21086. var r = this;
  21087. function handle(n, o) {
  21088. return a.type = "throw", a.arg = e, r.next = n, o && (r.method = "next", r.arg = t), !!o;
  21089. }
  21090. for (var o = this.tryEntries.length - 1; o >= 0; --o) {
  21091. var i = this.tryEntries[o],
  21092. a = i.completion;
  21093. if ("root" === i.tryLoc) return handle("end");
  21094. if (i.tryLoc <= this.prev) {
  21095. var c = n.call(i, "catchLoc"),
  21096. u = n.call(i, "finallyLoc");
  21097. if (c && u) {
  21098. if (this.prev < i.catchLoc) return handle(i.catchLoc, !0);
  21099. if (this.prev < i.finallyLoc) return handle(i.finallyLoc);
  21100. } else if (c) {
  21101. if (this.prev < i.catchLoc) return handle(i.catchLoc, !0);
  21102. } else {
  21103. if (!u) throw Error("try statement without catch or finally");
  21104. if (this.prev < i.finallyLoc) return handle(i.finallyLoc);
  21105. }
  21106. }
  21107. }
  21108. },
  21109. abrupt: function abrupt(t, e) {
  21110. for (var r = this.tryEntries.length - 1; r >= 0; --r) {
  21111. var o = this.tryEntries[r];
  21112. if (o.tryLoc <= this.prev && n.call(o, "finallyLoc") && this.prev < o.finallyLoc) {
  21113. var i = o;
  21114. break;
  21115. }
  21116. }
  21117. i && ("break" === t || "continue" === t) && i.tryLoc <= e && e <= i.finallyLoc && (i = null);
  21118. var a = i ? i.completion : {};
  21119. return a.type = t, a.arg = e, i ? (this.method = "next", this.next = i.finallyLoc, y) : this.complete(a);
  21120. },
  21121. complete: function complete(t, e) {
  21122. if ("throw" === t.type) throw t.arg;
  21123. return "break" === t.type || "continue" === t.type ? this.next = t.arg : "return" === t.type ? (this.rval = this.arg = t.arg, this.method = "return", this.next = "end") : "normal" === t.type && e && (this.next = e), y;
  21124. },
  21125. finish: function finish(t) {
  21126. for (var e = this.tryEntries.length - 1; e >= 0; --e) {
  21127. var r = this.tryEntries[e];
  21128. if (r.finallyLoc === t) return this.complete(r.completion, r.afterLoc), resetTryEntry(r), y;
  21129. }
  21130. },
  21131. "catch": function _catch(t) {
  21132. for (var e = this.tryEntries.length - 1; e >= 0; --e) {
  21133. var r = this.tryEntries[e];
  21134. if (r.tryLoc === t) {
  21135. var n = r.completion;
  21136. if ("throw" === n.type) {
  21137. var o = n.arg;
  21138. resetTryEntry(r);
  21139. }
  21140. return o;
  21141. }
  21142. }
  21143. throw Error("illegal catch attempt");
  21144. },
  21145. delegateYield: function delegateYield(e, r, n) {
  21146. return this.delegate = {
  21147. iterator: values(e),
  21148. resultName: r,
  21149. nextLoc: n
  21150. }, "next" === this.method && (this.arg = t), y;
  21151. }
  21152. }, e;
  21153. }
  21154. module.exports = _regeneratorRuntime, module.exports.__esModule = true, module.exports["default"] = module.exports;
  21155. /***/ }),
  21156. /***/ 31:
  21157. /*!**********************************************************************!*\
  21158. !*** ./node_modules/@babel/runtime/helpers/assertThisInitialized.js ***!
  21159. \**********************************************************************/
  21160. /*! no static exports found */
  21161. /***/ (function(module, exports) {
  21162. function _assertThisInitialized(self) {
  21163. if (self === void 0) {
  21164. throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
  21165. }
  21166. return self;
  21167. }
  21168. module.exports = _assertThisInitialized, module.exports.__esModule = true, module.exports["default"] = module.exports;
  21169. /***/ }),
  21170. /***/ 32:
  21171. /*!*****************************************************************!*\
  21172. !*** ./node_modules/@babel/runtime/helpers/asyncToGenerator.js ***!
  21173. \*****************************************************************/
  21174. /*! no static exports found */
  21175. /***/ (function(module, exports) {
  21176. function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
  21177. try {
  21178. var info = gen[key](arg);
  21179. var value = info.value;
  21180. } catch (error) {
  21181. reject(error);
  21182. return;
  21183. }
  21184. if (info.done) {
  21185. resolve(value);
  21186. } else {
  21187. Promise.resolve(value).then(_next, _throw);
  21188. }
  21189. }
  21190. function _asyncToGenerator(fn) {
  21191. return function () {
  21192. var self = this,
  21193. args = arguments;
  21194. return new Promise(function (resolve, reject) {
  21195. var gen = fn.apply(self, args);
  21196. function _next(value) {
  21197. asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value);
  21198. }
  21199. function _throw(err) {
  21200. asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err);
  21201. }
  21202. _next(undefined);
  21203. });
  21204. };
  21205. }
  21206. module.exports = _asyncToGenerator, module.exports.__esModule = true, module.exports["default"] = module.exports;
  21207. /***/ }),
  21208. /***/ 33:
  21209. /*!*********************************************************!*\
  21210. !*** ./node_modules/@babel/runtime/helpers/inherits.js ***!
  21211. \*********************************************************/
  21212. /*! no static exports found */
  21213. /***/ (function(module, exports, __webpack_require__) {
  21214. var setPrototypeOf = __webpack_require__(/*! ./setPrototypeOf.js */ 16);
  21215. function _inherits(subClass, superClass) {
  21216. if (typeof superClass !== "function" && superClass !== null) {
  21217. throw new TypeError("Super expression must either be null or a function");
  21218. }
  21219. subClass.prototype = Object.create(superClass && superClass.prototype, {
  21220. constructor: {
  21221. value: subClass,
  21222. writable: true,
  21223. configurable: true
  21224. }
  21225. });
  21226. Object.defineProperty(subClass, "prototype", {
  21227. writable: false
  21228. });
  21229. if (superClass) setPrototypeOf(subClass, superClass);
  21230. }
  21231. module.exports = _inherits, module.exports.__esModule = true, module.exports["default"] = module.exports;
  21232. /***/ }),
  21233. /***/ 34:
  21234. /*!**************************************************************************!*\
  21235. !*** ./node_modules/@babel/runtime/helpers/possibleConstructorReturn.js ***!
  21236. \**************************************************************************/
  21237. /*! no static exports found */
  21238. /***/ (function(module, exports, __webpack_require__) {
  21239. var _typeof = __webpack_require__(/*! ./typeof.js */ 13)["default"];
  21240. var assertThisInitialized = __webpack_require__(/*! ./assertThisInitialized.js */ 31);
  21241. function _possibleConstructorReturn(self, call) {
  21242. if (call && (_typeof(call) === "object" || typeof call === "function")) {
  21243. return call;
  21244. } else if (call !== void 0) {
  21245. throw new TypeError("Derived constructors may only return object or undefined");
  21246. }
  21247. return assertThisInitialized(self);
  21248. }
  21249. module.exports = _possibleConstructorReturn, module.exports.__esModule = true, module.exports["default"] = module.exports;
  21250. /***/ }),
  21251. /***/ 35:
  21252. /*!***************************************************************!*\
  21253. !*** ./node_modules/@babel/runtime/helpers/getPrototypeOf.js ***!
  21254. \***************************************************************/
  21255. /*! no static exports found */
  21256. /***/ (function(module, exports) {
  21257. function _getPrototypeOf(o) {
  21258. module.exports = _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) {
  21259. return o.__proto__ || Object.getPrototypeOf(o);
  21260. }, module.exports.__esModule = true, module.exports["default"] = module.exports;
  21261. return _getPrototypeOf(o);
  21262. }
  21263. module.exports = _getPrototypeOf, module.exports.__esModule = true, module.exports["default"] = module.exports;
  21264. /***/ }),
  21265. /***/ 36:
  21266. /*!****************************************************************!*\
  21267. !*** ./node_modules/@babel/runtime/helpers/wrapNativeSuper.js ***!
  21268. \****************************************************************/
  21269. /*! no static exports found */
  21270. /***/ (function(module, exports, __webpack_require__) {
  21271. var getPrototypeOf = __webpack_require__(/*! ./getPrototypeOf.js */ 35);
  21272. var setPrototypeOf = __webpack_require__(/*! ./setPrototypeOf.js */ 16);
  21273. var isNativeFunction = __webpack_require__(/*! ./isNativeFunction.js */ 37);
  21274. var construct = __webpack_require__(/*! ./construct.js */ 15);
  21275. function _wrapNativeSuper(Class) {
  21276. var _cache = typeof Map === "function" ? new Map() : undefined;
  21277. module.exports = _wrapNativeSuper = function _wrapNativeSuper(Class) {
  21278. if (Class === null || !isNativeFunction(Class)) return Class;
  21279. if (typeof Class !== "function") {
  21280. throw new TypeError("Super expression must either be null or a function");
  21281. }
  21282. if (typeof _cache !== "undefined") {
  21283. if (_cache.has(Class)) return _cache.get(Class);
  21284. _cache.set(Class, Wrapper);
  21285. }
  21286. function Wrapper() {
  21287. return construct(Class, arguments, getPrototypeOf(this).constructor);
  21288. }
  21289. Wrapper.prototype = Object.create(Class.prototype, {
  21290. constructor: {
  21291. value: Wrapper,
  21292. enumerable: false,
  21293. writable: true,
  21294. configurable: true
  21295. }
  21296. });
  21297. return setPrototypeOf(Wrapper, Class);
  21298. }, module.exports.__esModule = true, module.exports["default"] = module.exports;
  21299. return _wrapNativeSuper(Class);
  21300. }
  21301. module.exports = _wrapNativeSuper, module.exports.__esModule = true, module.exports["default"] = module.exports;
  21302. /***/ }),
  21303. /***/ 37:
  21304. /*!*****************************************************************!*\
  21305. !*** ./node_modules/@babel/runtime/helpers/isNativeFunction.js ***!
  21306. \*****************************************************************/
  21307. /*! no static exports found */
  21308. /***/ (function(module, exports) {
  21309. function _isNativeFunction(fn) {
  21310. try {
  21311. return Function.toString.call(fn).indexOf("[native code]") !== -1;
  21312. } catch (e) {
  21313. return typeof fn === "function";
  21314. }
  21315. }
  21316. module.exports = _isNativeFunction, module.exports.__esModule = true, module.exports["default"] = module.exports;
  21317. /***/ }),
  21318. /***/ 38:
  21319. /*!*********************************************************************************!*\
  21320. !*** /Users/chenpengming/代码/product_wx/pages.json?{"type":"origin-pages-json"} ***!
  21321. \*********************************************************************************/
  21322. /*! no static exports found */
  21323. /***/ (function(module, exports, __webpack_require__) {
  21324. "use strict";
  21325. Object.defineProperty(exports, "__esModule", {
  21326. value: true
  21327. });
  21328. exports.default = void 0;
  21329. var _default = {
  21330. "pages": [{
  21331. "path": "pages/index/index",
  21332. "onReachBottomDistance": 100,
  21333. "style": {
  21334. "enablePullDownRefresh": true,
  21335. "navigationBarTitleText": "首页"
  21336. },
  21337. "usingComponents": {
  21338. "van-button": "/wxcomponents/weapp/dist/button/index",
  21339. "van-toast": "/wxcomponents/weapp/dist/toast/index",
  21340. "van-field": "/wxcomponents/weapp/dist/field/index",
  21341. "van-popup": "/wxcomponents/weapp/dist/popup/index",
  21342. "van-picker": "/wxcomponents/weapp/dist/picker/index",
  21343. "van-dialog": "/wxcomponents/weapp/dist/dialog/index"
  21344. }
  21345. }, {
  21346. "path": "pages/login/login",
  21347. "style": {
  21348. "navigationBarTitleText": "登录",
  21349. "app-plus": {
  21350. "titleNView": {
  21351. "buttons": [{
  21352. "text": "",
  21353. "fontSrc": "/static/uni.ttf",
  21354. "fontSize": "22px",
  21355. "color": "#FFFFFF"
  21356. }]
  21357. }
  21358. },
  21359. "usingComponents": {
  21360. "van-button": "/wxcomponents/weapp/dist/button/index",
  21361. "van-toast": "/wxcomponents/weapp/dist/toast/index",
  21362. "van-field": "/wxcomponents/weapp/dist/field/index",
  21363. "van-popup": "/wxcomponents/weapp/dist/popup/index",
  21364. "van-picker": "/wxcomponents/weapp/dist/picker/index",
  21365. "van-dialog": "/wxcomponents/weapp/dist/dialog/index"
  21366. }
  21367. }
  21368. }, {
  21369. "path": "pages/login2/login",
  21370. "style": {
  21371. "navigationBarTitleText": "登录",
  21372. "app-plus": {
  21373. "titleNView": {
  21374. "buttons": [{
  21375. "text": "",
  21376. "fontSrc": "/static/uni.ttf",
  21377. "fontSize": "22px",
  21378. "color": "#FFFFFF"
  21379. }]
  21380. }
  21381. },
  21382. "usingComponents": {
  21383. "van-button": "/wxcomponents/weapp/dist/button/index",
  21384. "van-toast": "/wxcomponents/weapp/dist/toast/index",
  21385. "van-field": "/wxcomponents/weapp/dist/field/index",
  21386. "van-popup": "/wxcomponents/weapp/dist/popup/index",
  21387. "van-picker": "/wxcomponents/weapp/dist/picker/index",
  21388. "van-dialog": "/wxcomponents/weapp/dist/dialog/index"
  21389. }
  21390. }
  21391. }, {
  21392. "path": "pages/mine/mine",
  21393. "style": {
  21394. "navigationBarTitleText": "我的",
  21395. "app-plus": {
  21396. "bounce": "vertical",
  21397. "titleNView": {
  21398. "buttons": [{
  21399. "text": "",
  21400. "fontSrc": "/static/uni.ttf",
  21401. "fontSize": "22px",
  21402. "color": "#FFFFFF"
  21403. }]
  21404. }
  21405. },
  21406. "usingComponents": {
  21407. "van-button": "/wxcomponents/weapp/dist/button/index",
  21408. "van-toast": "/wxcomponents/weapp/dist/toast/index",
  21409. "van-field": "/wxcomponents/weapp/dist/field/index",
  21410. "van-popup": "/wxcomponents/weapp/dist/popup/index",
  21411. "van-picker": "/wxcomponents/weapp/dist/picker/index",
  21412. "van-dialog": "/wxcomponents/weapp/dist/dialog/index",
  21413. "van-icon": "/wxcomponents/weapp/dist/icon/index"
  21414. }
  21415. }
  21416. }],
  21417. "subPackages": [{
  21418. "root": "pages/subPackages",
  21419. "pages": [{
  21420. "path": "gocompnay/index",
  21421. "style": {
  21422. "navigationBarTitleText": "企业端",
  21423. "enablePullDownRefresh": true,
  21424. "onReachBottomDistance": 100,
  21425. "app-plus": {
  21426. "bounce": "vertical",
  21427. "titleNView": {
  21428. "buttons": [{
  21429. "text": "",
  21430. "fontSrc": "/static/uni.ttf",
  21431. "fontSize": "22px",
  21432. "color": "#FFFFFF"
  21433. }]
  21434. }
  21435. },
  21436. "component": true
  21437. }
  21438. }, {
  21439. "path": "eventRelease/index",
  21440. "style": {
  21441. "navigationBarTitleText": "活动发布",
  21442. "enablePullDownRefresh": true,
  21443. "onReachBottomDistance": 100,
  21444. "app-plus": {
  21445. "bounce": "vertical",
  21446. "titleNView": {
  21447. "buttons": [{
  21448. "text": "",
  21449. "fontSrc": "/static/uni.ttf",
  21450. "fontSize": "22px",
  21451. "color": "#FFFFFF"
  21452. }]
  21453. }
  21454. },
  21455. "component": true,
  21456. "usingComponents": {
  21457. "van-empty": "/wxcomponents/weapp/dist/empty/index",
  21458. "van-button": "/wxcomponents/weapp/dist/button/index",
  21459. "van-toast": "/wxcomponents/weapp/dist/toast/index",
  21460. "van-field": "/wxcomponents/weapp/dist/field/index",
  21461. "van-popup": "/wxcomponents/weapp/dist/popup/index",
  21462. "van-picker": "/wxcomponents/weapp/dist/picker/index",
  21463. "van-dialog": "/wxcomponents/weapp/dist/dialog/index",
  21464. "van-icon": "/wxcomponents/weapp/dist/icon/index",
  21465. "van-tab": "/wxcomponents/weapp/dist/tab/index",
  21466. "van-tabs": "/wxcomponents/weapp/dist/tabs/index",
  21467. "van-uploader": "/wxcomponents/weapp/dist/uploader/index"
  21468. }
  21469. }
  21470. }, {
  21471. "path": "eventRelease/add",
  21472. "style": {
  21473. "navigationBarTitleText": "活动发布",
  21474. "enablePullDownRefresh": true,
  21475. "onReachBottomDistance": 100,
  21476. "app-plus": {
  21477. "bounce": "vertical",
  21478. "titleNView": {
  21479. "buttons": [{
  21480. "text": "",
  21481. "fontSrc": "/static/uni.ttf",
  21482. "fontSize": "22px",
  21483. "color": "#FFFFFF"
  21484. }]
  21485. }
  21486. },
  21487. "component": true,
  21488. "usingComponents": {
  21489. "van-empty": "/wxcomponents/weapp/dist/empty/index",
  21490. "van-button": "/wxcomponents/weapp/dist/button/index",
  21491. "van-toast": "/wxcomponents/weapp/dist/toast/index",
  21492. "van-field": "/wxcomponents/weapp/dist/field/index",
  21493. "van-popup": "/wxcomponents/weapp/dist/popup/index",
  21494. "van-picker": "/wxcomponents/weapp/dist/picker/index",
  21495. "van-dialog": "/wxcomponents/weapp/dist/dialog/index",
  21496. "van-icon": "/wxcomponents/weapp/dist/icon/index",
  21497. "van-tab": "/wxcomponents/weapp/dist/tab/index",
  21498. "van-tabs": "/wxcomponents/weapp/dist/tabs/index",
  21499. "van-datetime-picker": "/wxcomponents/weapp/dist/datetime-picker/index",
  21500. "van-uploader": "/wxcomponents/weapp/dist/uploader/index"
  21501. }
  21502. }
  21503. }, {
  21504. "path": "venueRoom/meetingroom",
  21505. "style": {
  21506. "navigationBarTitleText": "场馆审核",
  21507. "enablePullDownRefresh": true,
  21508. "onReachBottomDistance": 100,
  21509. "app-plus": {
  21510. "bounce": "vertical",
  21511. "titleNView": {
  21512. "buttons": [{
  21513. "text": "",
  21514. "fontSrc": "/static/uni.ttf",
  21515. "fontSize": "22px",
  21516. "color": "#FFFFFF"
  21517. }]
  21518. }
  21519. },
  21520. "component": true,
  21521. "usingComponents": {
  21522. "van-radio": "/wxcomponents/weapp/dist/radio/index",
  21523. "van-radio-group": "/wxcomponents/weapp/dist/radio-group/index",
  21524. "van-empty": "/wxcomponents/weapp/dist/empty/index",
  21525. "van-button": "/wxcomponents/weapp/dist/button/index",
  21526. "van-toast": "/wxcomponents/weapp/dist/toast/index",
  21527. "van-field": "/wxcomponents/weapp/dist/field/index",
  21528. "van-popup": "/wxcomponents/weapp/dist/popup/index",
  21529. "van-picker": "/wxcomponents/weapp/dist/picker/index",
  21530. "van-dialog": "/wxcomponents/weapp/dist/dialog/index",
  21531. "van-icon": "/wxcomponents/weapp/dist/icon/index",
  21532. "van-tab": "/wxcomponents/weapp/dist/tab/index",
  21533. "van-tabs": "/wxcomponents/weapp/dist/tabs/index"
  21534. }
  21535. }
  21536. }, {
  21537. "path": "activity/index",
  21538. "style": {
  21539. "navigationBarTitleText": "活动核销签到",
  21540. "enablePullDownRefresh": true,
  21541. "onReachBottomDistance": 100,
  21542. "app-plus": {
  21543. "bounce": "vertical",
  21544. "titleNView": {
  21545. "buttons": [{
  21546. "text": "",
  21547. "fontSrc": "/static/uni.ttf",
  21548. "fontSize": "22px",
  21549. "color": "#FFFFFF"
  21550. }]
  21551. }
  21552. },
  21553. "component": true,
  21554. "usingComponents": {
  21555. "van-radio": "/wxcomponents/weapp/dist/radio/index",
  21556. "van-radio-group": "/wxcomponents/weapp/dist/radio-group/index",
  21557. "van-empty": "/wxcomponents/weapp/dist/empty/index",
  21558. "van-button": "/wxcomponents/weapp/dist/button/index",
  21559. "van-toast": "/wxcomponents/weapp/dist/toast/index",
  21560. "van-field": "/wxcomponents/weapp/dist/field/index",
  21561. "van-popup": "/wxcomponents/weapp/dist/popup/index",
  21562. "van-picker": "/wxcomponents/weapp/dist/picker/index",
  21563. "van-dialog": "/wxcomponents/weapp/dist/dialog/index",
  21564. "van-icon": "/wxcomponents/weapp/dist/icon/index",
  21565. "van-tab": "/wxcomponents/weapp/dist/tab/index",
  21566. "van-tabs": "/wxcomponents/weapp/dist/tabs/index"
  21567. }
  21568. }
  21569. }, {
  21570. "path": "activity/code",
  21571. "style": {
  21572. "navigationBarTitleText": "活动核销扫码确认签到",
  21573. "enablePullDownRefresh": true,
  21574. "onReachBottomDistance": 100,
  21575. "app-plus": {
  21576. "bounce": "vertical",
  21577. "titleNView": {
  21578. "buttons": [{
  21579. "text": "",
  21580. "fontSrc": "/static/uni.ttf",
  21581. "fontSize": "22px",
  21582. "color": "#FFFFFF"
  21583. }]
  21584. }
  21585. },
  21586. "component": true,
  21587. "usingComponents": {
  21588. "van-radio": "/wxcomponents/weapp/dist/radio/index",
  21589. "van-radio-group": "/wxcomponents/weapp/dist/radio-group/index",
  21590. "van-empty": "/wxcomponents/weapp/dist/empty/index",
  21591. "van-button": "/wxcomponents/weapp/dist/button/index",
  21592. "van-toast": "/wxcomponents/weapp/dist/toast/index",
  21593. "van-field": "/wxcomponents/weapp/dist/field/index",
  21594. "van-popup": "/wxcomponents/weapp/dist/popup/index",
  21595. "van-picker": "/wxcomponents/weapp/dist/picker/index",
  21596. "van-dialog": "/wxcomponents/weapp/dist/dialog/index",
  21597. "van-icon": "/wxcomponents/weapp/dist/icon/index",
  21598. "van-tab": "/wxcomponents/weapp/dist/tab/index",
  21599. "van-tabs": "/wxcomponents/weapp/dist/tabs/index"
  21600. }
  21601. }
  21602. }, {
  21603. "path": "activityPromulgate/list",
  21604. "style": {
  21605. "navigationBarTitleText": "活动发布",
  21606. "enablePullDownRefresh": true,
  21607. "onReachBottomDistance": 100,
  21608. "app-plus": {
  21609. "bounce": "vertical",
  21610. "titleNView": {
  21611. "buttons": [{
  21612. "text": "",
  21613. "fontSrc": "/static/uni.ttf",
  21614. "fontSize": "22px",
  21615. "color": "#FFFFFF"
  21616. }]
  21617. }
  21618. },
  21619. "component": true,
  21620. "usingComponents": {
  21621. "van-radio": "/wxcomponents/weapp/dist/radio/index",
  21622. "van-radio-group": "/wxcomponents/weapp/dist/radio-group/index",
  21623. "van-empty": "/wxcomponents/weapp/dist/empty/index",
  21624. "van-button": "/wxcomponents/weapp/dist/button/index",
  21625. "van-toast": "/wxcomponents/weapp/dist/toast/index",
  21626. "van-field": "/wxcomponents/weapp/dist/field/index",
  21627. "van-popup": "/wxcomponents/weapp/dist/popup/index",
  21628. "van-picker": "/wxcomponents/weapp/dist/picker/index",
  21629. "van-dialog": "/wxcomponents/weapp/dist/dialog/index",
  21630. "van-icon": "/wxcomponents/weapp/dist/icon/index",
  21631. "van-tab": "/wxcomponents/weapp/dist/tab/index",
  21632. "van-tabs": "/wxcomponents/weapp/dist/tabs/index"
  21633. }
  21634. }
  21635. }, {
  21636. "path": "activityPromulgate/qrCode",
  21637. "style": {
  21638. "navigationBarTitleText": "活动签到码",
  21639. "enablePullDownRefresh": true,
  21640. "onReachBottomDistance": 100,
  21641. "app-plus": {
  21642. "bounce": "vertical",
  21643. "titleNView": {
  21644. "buttons": [{
  21645. "text": "",
  21646. "fontSrc": "/static/uni.ttf",
  21647. "fontSize": "22px",
  21648. "color": "#FFFFFF"
  21649. }]
  21650. }
  21651. },
  21652. "component": true,
  21653. "usingComponents": {
  21654. "van-radio": "/wxcomponents/weapp/dist/radio/index",
  21655. "van-radio-group": "/wxcomponents/weapp/dist/radio-group/index",
  21656. "van-empty": "/wxcomponents/weapp/dist/empty/index",
  21657. "van-button": "/wxcomponents/weapp/dist/button/index",
  21658. "van-toast": "/wxcomponents/weapp/dist/toast/index",
  21659. "van-field": "/wxcomponents/weapp/dist/field/index",
  21660. "van-popup": "/wxcomponents/weapp/dist/popup/index",
  21661. "van-picker": "/wxcomponents/weapp/dist/picker/index",
  21662. "van-dialog": "/wxcomponents/weapp/dist/dialog/index",
  21663. "van-icon": "/wxcomponents/weapp/dist/icon/index",
  21664. "van-tab": "/wxcomponents/weapp/dist/tab/index",
  21665. "van-tabs": "/wxcomponents/weapp/dist/tabs/index"
  21666. }
  21667. }
  21668. }, {
  21669. "path": "activityPromulgate/add",
  21670. "style": {
  21671. "navigationBarTitleText": "新增活动",
  21672. "enablePullDownRefresh": true,
  21673. "onReachBottomDistance": 100,
  21674. "app-plus": {
  21675. "bounce": "vertical",
  21676. "titleNView": {
  21677. "buttons": [{
  21678. "text": "",
  21679. "fontSrc": "/static/uni.ttf",
  21680. "fontSize": "22px",
  21681. "color": "#FFFFFF"
  21682. }]
  21683. }
  21684. },
  21685. "component": true,
  21686. "usingComponents": {
  21687. "van-radio": "/wxcomponents/weapp/dist/radio/index",
  21688. "van-uploader": "/wxcomponents/weapp/dist/uploader/index",
  21689. "van-radio-group": "/wxcomponents/weapp/dist/radio-group/index",
  21690. "van-empty": "/wxcomponents/weapp/dist/empty/index",
  21691. "van-button": "/wxcomponents/weapp/dist/button/index",
  21692. "van-toast": "/wxcomponents/weapp/dist/toast/index",
  21693. "van-field": "/wxcomponents/weapp/dist/field/index",
  21694. "van-popup": "/wxcomponents/weapp/dist/popup/index",
  21695. "van-picker": "/wxcomponents/weapp/dist/picker/index",
  21696. "van-dialog": "/wxcomponents/weapp/dist/dialog/index",
  21697. "van-icon": "/wxcomponents/weapp/dist/icon/index",
  21698. "van-tab": "/wxcomponents/weapp/dist/tab/index",
  21699. "van-tabs": "/wxcomponents/weapp/dist/tabs/index"
  21700. }
  21701. }
  21702. }, {
  21703. "path": "password/index",
  21704. "style": {
  21705. "navigationBarTitleText": "修改密码",
  21706. "enablePullDownRefresh": true,
  21707. "onReachBottomDistance": 100,
  21708. "app-plus": {
  21709. "bounce": "vertical",
  21710. "titleNView": {
  21711. "buttons": [{
  21712. "text": "",
  21713. "fontSrc": "/static/uni.ttf",
  21714. "fontSize": "22px",
  21715. "color": "#FFFFFF"
  21716. }]
  21717. }
  21718. },
  21719. "component": true,
  21720. "usingComponents": {
  21721. "van-radio": "/wxcomponents/weapp/dist/radio/index",
  21722. "van-radio-group": "/wxcomponents/weapp/dist/radio-group/index",
  21723. "van-empty": "/wxcomponents/weapp/dist/empty/index",
  21724. "van-button": "/wxcomponents/weapp/dist/button/index",
  21725. "van-toast": "/wxcomponents/weapp/dist/toast/index",
  21726. "van-field": "/wxcomponents/weapp/dist/field/index",
  21727. "van-popup": "/wxcomponents/weapp/dist/popup/index",
  21728. "van-picker": "/wxcomponents/weapp/dist/picker/index",
  21729. "van-dialog": "/wxcomponents/weapp/dist/dialog/index",
  21730. "van-icon": "/wxcomponents/weapp/dist/icon/index",
  21731. "van-tab": "/wxcomponents/weapp/dist/tab/index",
  21732. "van-tabs": "/wxcomponents/weapp/dist/tabs/index"
  21733. }
  21734. }
  21735. }, {
  21736. "path": "repairDispatch-app/index",
  21737. "style": {
  21738. "navigationBarTitleText": "报修派单",
  21739. "enablePullDownRefresh": true,
  21740. "onReachBottomDistance": 100,
  21741. "app-plus": {
  21742. "bounce": "vertical",
  21743. "titleNView": {
  21744. "buttons": [{
  21745. "text": "",
  21746. "fontSrc": "/static/uni.ttf",
  21747. "fontSize": "22px",
  21748. "color": "#FFFFFF"
  21749. }]
  21750. }
  21751. },
  21752. "component": true,
  21753. "usingComponents": {
  21754. "van-empty": "/wxcomponents/weapp/dist/empty/index",
  21755. "van-button": "/wxcomponents/weapp/dist/button/index",
  21756. "van-toast": "/wxcomponents/weapp/dist/toast/index",
  21757. "van-field": "/wxcomponents/weapp/dist/field/index",
  21758. "van-popup": "/wxcomponents/weapp/dist/popup/index",
  21759. "van-picker": "/wxcomponents/weapp/dist/picker/index",
  21760. "van-dialog": "/wxcomponents/weapp/dist/dialog/index",
  21761. "van-icon": "/wxcomponents/weapp/dist/icon/index",
  21762. "van-tab": "/wxcomponents/weapp/dist/tab/index",
  21763. "van-tabs": "/wxcomponents/weapp/dist/tabs/index",
  21764. "van-uploader": "/wxcomponents/weapp/dist/uploader/index"
  21765. }
  21766. }
  21767. }, {
  21768. "path": "repairDispatch-app/add",
  21769. "style": {
  21770. "navigationBarTitleText": "新增报修派单",
  21771. "enablePullDownRefresh": true,
  21772. "onReachBottomDistance": 100,
  21773. "app-plus": {
  21774. "bounce": "vertical",
  21775. "titleNView": {
  21776. "buttons": [{
  21777. "text": "",
  21778. "fontSrc": "/static/uni.ttf",
  21779. "fontSize": "22px",
  21780. "color": "#FFFFFF"
  21781. }]
  21782. }
  21783. },
  21784. "component": true,
  21785. "usingComponents": {
  21786. "van-empty": "/wxcomponents/weapp/dist/empty/index",
  21787. "van-button": "/wxcomponents/weapp/dist/button/index",
  21788. "van-toast": "/wxcomponents/weapp/dist/toast/index",
  21789. "van-field": "/wxcomponents/weapp/dist/field/index",
  21790. "van-popup": "/wxcomponents/weapp/dist/popup/index",
  21791. "van-picker": "/wxcomponents/weapp/dist/picker/index",
  21792. "van-dialog": "/wxcomponents/weapp/dist/dialog/index",
  21793. "van-icon": "/wxcomponents/weapp/dist/icon/index",
  21794. "van-tab": "/wxcomponents/weapp/dist/tab/index",
  21795. "van-tabs": "/wxcomponents/weapp/dist/tabs/index",
  21796. "van-uploader": "/wxcomponents/weapp/dist/uploader/index"
  21797. }
  21798. }
  21799. }, {
  21800. "path": "repairprocessing-app/detail",
  21801. "style": {
  21802. "navigationBarTitleText": "报修处理-详情",
  21803. "enablePullDownRefresh": true,
  21804. "onReachBottomDistance": 100,
  21805. "app-plus": {
  21806. "bounce": "vertical",
  21807. "titleNView": {
  21808. "buttons": [{
  21809. "text": "",
  21810. "fontSrc": "/static/uni.ttf",
  21811. "fontSize": "22px",
  21812. "color": "#FFFFFF"
  21813. }]
  21814. }
  21815. },
  21816. "component": true,
  21817. "usingComponents": {
  21818. "van-steps": "/wxcomponents/weapp/dist/steps/index",
  21819. "van-empty": "/wxcomponents/weapp/dist/empty/index",
  21820. "van-button": "/wxcomponents/weapp/dist/button/index",
  21821. "van-toast": "/wxcomponents/weapp/dist/toast/index",
  21822. "van-field": "/wxcomponents/weapp/dist/field/index",
  21823. "van-popup": "/wxcomponents/weapp/dist/popup/index",
  21824. "van-picker": "/wxcomponents/weapp/dist/picker/index",
  21825. "van-dialog": "/wxcomponents/weapp/dist/dialog/index",
  21826. "van-icon": "/wxcomponents/weapp/dist/icon/index",
  21827. "van-tab": "/wxcomponents/weapp/dist/tab/index",
  21828. "van-tabs": "/wxcomponents/weapp/dist/tabs/index",
  21829. "van-uploader": "/wxcomponents/weapp/dist/uploader/index"
  21830. }
  21831. }
  21832. }, {
  21833. "path": "repairprocessing-app/index",
  21834. "style": {
  21835. "navigationBarTitleText": "报修处理",
  21836. "enablePullDownRefresh": true,
  21837. "onReachBottomDistance": 100,
  21838. "app-plus": {
  21839. "bounce": "vertical",
  21840. "titleNView": {
  21841. "buttons": [{
  21842. "text": "",
  21843. "fontSrc": "/static/uni.ttf",
  21844. "fontSize": "22px",
  21845. "color": "#FFFFFF"
  21846. }]
  21847. }
  21848. },
  21849. "component": true,
  21850. "usingComponents": {
  21851. "van-empty": "/wxcomponents/weapp/dist/empty/index",
  21852. "van-button": "/wxcomponents/weapp/dist/button/index",
  21853. "van-toast": "/wxcomponents/weapp/dist/toast/index",
  21854. "van-field": "/wxcomponents/weapp/dist/field/index",
  21855. "van-popup": "/wxcomponents/weapp/dist/popup/index",
  21856. "van-picker": "/wxcomponents/weapp/dist/picker/index",
  21857. "van-dialog": "/wxcomponents/weapp/dist/dialog/index",
  21858. "van-icon": "/wxcomponents/weapp/dist/icon/index",
  21859. "van-tab": "/wxcomponents/weapp/dist/tab/index",
  21860. "van-tabs": "/wxcomponents/weapp/dist/tabs/index",
  21861. "van-uploader": "/wxcomponents/weapp/dist/uploader/index"
  21862. }
  21863. }
  21864. }, {
  21865. "path": "modifySend/index",
  21866. "style": {
  21867. "navigationBarTitleText": "整改派单",
  21868. "enablePullDownRefresh": true,
  21869. "onReachBottomDistance": 100,
  21870. "app-plus": {
  21871. "bounce": "vertical",
  21872. "titleNView": {
  21873. "buttons": [{
  21874. "text": "",
  21875. "fontSrc": "/static/uni.ttf",
  21876. "fontSize": "22px",
  21877. "color": "#FFFFFF"
  21878. }]
  21879. }
  21880. },
  21881. "component": true,
  21882. "usingComponents": {
  21883. "van-empty": "/wxcomponents/weapp/dist/empty/index",
  21884. "van-button": "/wxcomponents/weapp/dist/button/index",
  21885. "van-toast": "/wxcomponents/weapp/dist/toast/index",
  21886. "van-field": "/wxcomponents/weapp/dist/field/index",
  21887. "van-popup": "/wxcomponents/weapp/dist/popup/index",
  21888. "van-picker": "/wxcomponents/weapp/dist/picker/index",
  21889. "van-dialog": "/wxcomponents/weapp/dist/dialog/index",
  21890. "van-icon": "/wxcomponents/weapp/dist/icon/index",
  21891. "van-tab": "/wxcomponents/weapp/dist/tab/index",
  21892. "van-tabs": "/wxcomponents/weapp/dist/tabs/index",
  21893. "van-uploader": "/wxcomponents/weapp/dist/uploader/index"
  21894. }
  21895. }
  21896. }, {
  21897. "path": "modifyReport/index",
  21898. "style": {
  21899. "navigationBarTitleText": "整改填报",
  21900. "enablePullDownRefresh": true,
  21901. "onReachBottomDistance": 100,
  21902. "app-plus": {
  21903. "bounce": "vertical",
  21904. "titleNView": {
  21905. "buttons": [{
  21906. "text": "",
  21907. "fontSrc": "/static/uni.ttf",
  21908. "fontSize": "22px",
  21909. "color": "#FFFFFF"
  21910. }]
  21911. }
  21912. },
  21913. "component": true,
  21914. "usingComponents": {
  21915. "van-empty": "/wxcomponents/weapp/dist/empty/index",
  21916. "van-button": "/wxcomponents/weapp/dist/button/index",
  21917. "van-toast": "/wxcomponents/weapp/dist/toast/index",
  21918. "van-field": "/wxcomponents/weapp/dist/field/index",
  21919. "van-popup": "/wxcomponents/weapp/dist/popup/index",
  21920. "van-picker": "/wxcomponents/weapp/dist/picker/index",
  21921. "van-dialog": "/wxcomponents/weapp/dist/dialog/index",
  21922. "van-icon": "/wxcomponents/weapp/dist/icon/index",
  21923. "van-tab": "/wxcomponents/weapp/dist/tab/index",
  21924. "van-tabs": "/wxcomponents/weapp/dist/tabs/index",
  21925. "van-uploader": "/wxcomponents/weapp/dist/uploader/index"
  21926. }
  21927. }
  21928. }, {
  21929. "path": "modifyReport/detail",
  21930. "style": {
  21931. "navigationBarTitleText": "整改详情",
  21932. "enablePullDownRefresh": true,
  21933. "onReachBottomDistance": 100,
  21934. "app-plus": {
  21935. "bounce": "vertical",
  21936. "titleNView": {
  21937. "buttons": [{
  21938. "text": "",
  21939. "fontSrc": "/static/uni.ttf",
  21940. "fontSize": "22px",
  21941. "color": "#FFFFFF"
  21942. }]
  21943. }
  21944. },
  21945. "component": true,
  21946. "usingComponents": {
  21947. "van-empty": "/wxcomponents/weapp/dist/empty/index",
  21948. "van-button": "/wxcomponents/weapp/dist/button/index",
  21949. "van-toast": "/wxcomponents/weapp/dist/toast/index",
  21950. "van-field": "/wxcomponents/weapp/dist/field/index",
  21951. "van-popup": "/wxcomponents/weapp/dist/popup/index",
  21952. "van-picker": "/wxcomponents/weapp/dist/picker/index",
  21953. "van-dialog": "/wxcomponents/weapp/dist/dialog/index",
  21954. "van-icon": "/wxcomponents/weapp/dist/icon/index",
  21955. "van-tab": "/wxcomponents/weapp/dist/tab/index",
  21956. "van-tabs": "/wxcomponents/weapp/dist/tabs/index",
  21957. "van-uploader": "/wxcomponents/weapp/dist/uploader/index"
  21958. }
  21959. }
  21960. }, {
  21961. "path": "modifyHandle/handle",
  21962. "style": {
  21963. "navigationBarTitleText": "整改处理 ",
  21964. "enablePullDownRefresh": true,
  21965. "onReachBottomDistance": 100,
  21966. "app-plus": {
  21967. "bounce": "vertical",
  21968. "titleNView": {
  21969. "buttons": [{
  21970. "text": "",
  21971. "fontSrc": "/static/uni.ttf",
  21972. "fontSize": "22px",
  21973. "color": "#FFFFFF"
  21974. }]
  21975. }
  21976. },
  21977. "component": true,
  21978. "usingComponents": {
  21979. "van-empty": "/wxcomponents/weapp/dist/empty/index",
  21980. "van-button": "/wxcomponents/weapp/dist/button/index",
  21981. "van-toast": "/wxcomponents/weapp/dist/toast/index",
  21982. "van-field": "/wxcomponents/weapp/dist/field/index",
  21983. "van-popup": "/wxcomponents/weapp/dist/popup/index",
  21984. "van-picker": "/wxcomponents/weapp/dist/picker/index",
  21985. "van-dialog": "/wxcomponents/weapp/dist/dialog/index",
  21986. "van-icon": "/wxcomponents/weapp/dist/icon/index",
  21987. "van-tab": "/wxcomponents/weapp/dist/tab/index",
  21988. "van-tabs": "/wxcomponents/weapp/dist/tabs/index",
  21989. "van-uploader": "/wxcomponents/weapp/dist/uploader/index"
  21990. }
  21991. }
  21992. }, {
  21993. "path": "modifyHandle/index",
  21994. "style": {
  21995. "navigationBarTitleText": "整改处理",
  21996. "enablePullDownRefresh": true,
  21997. "onReachBottomDistance": 100,
  21998. "app-plus": {
  21999. "bounce": "vertical",
  22000. "titleNView": {
  22001. "buttons": [{
  22002. "text": "",
  22003. "fontSrc": "/static/uni.ttf",
  22004. "fontSize": "22px",
  22005. "color": "#FFFFFF"
  22006. }]
  22007. }
  22008. },
  22009. "component": true,
  22010. "usingComponents": {
  22011. "van-empty": "/wxcomponents/weapp/dist/empty/index",
  22012. "van-button": "/wxcomponents/weapp/dist/button/index",
  22013. "van-toast": "/wxcomponents/weapp/dist/toast/index",
  22014. "van-field": "/wxcomponents/weapp/dist/field/index",
  22015. "van-popup": "/wxcomponents/weapp/dist/popup/index",
  22016. "van-picker": "/wxcomponents/weapp/dist/picker/index",
  22017. "van-dialog": "/wxcomponents/weapp/dist/dialog/index",
  22018. "van-icon": "/wxcomponents/weapp/dist/icon/index",
  22019. "van-tab": "/wxcomponents/weapp/dist/tab/index",
  22020. "van-tabs": "/wxcomponents/weapp/dist/tabs/index",
  22021. "van-uploader": "/wxcomponents/weapp/dist/uploader/index"
  22022. }
  22023. }
  22024. }, {
  22025. "path": "modifyReport/add",
  22026. "style": {
  22027. "navigationBarTitleText": "整改新增",
  22028. "enablePullDownRefresh": true,
  22029. "onReachBottomDistance": 100,
  22030. "app-plus": {
  22031. "bounce": "vertical",
  22032. "titleNView": {
  22033. "buttons": [{
  22034. "text": "",
  22035. "fontSrc": "/static/uni.ttf",
  22036. "fontSize": "22px",
  22037. "color": "#FFFFFF"
  22038. }]
  22039. }
  22040. },
  22041. "component": true,
  22042. "usingComponents": {
  22043. "van-empty": "/wxcomponents/weapp/dist/empty/index",
  22044. "van-button": "/wxcomponents/weapp/dist/button/index",
  22045. "van-toast": "/wxcomponents/weapp/dist/toast/index",
  22046. "van-field": "/wxcomponents/weapp/dist/field/index",
  22047. "van-popup": "/wxcomponents/weapp/dist/popup/index",
  22048. "van-picker": "/wxcomponents/weapp/dist/picker/index",
  22049. "van-dialog": "/wxcomponents/weapp/dist/dialog/index",
  22050. "van-icon": "/wxcomponents/weapp/dist/icon/index",
  22051. "van-tab": "/wxcomponents/weapp/dist/tab/index",
  22052. "van-tabs": "/wxcomponents/weapp/dist/tabs/index",
  22053. "van-uploader": "/wxcomponents/weapp/dist/uploader/index"
  22054. }
  22055. }
  22056. }, {
  22057. "path": "toread/index",
  22058. "style": {
  22059. "navigationBarTitleText": "我的待阅",
  22060. "enablePullDownRefresh": true,
  22061. "onReachBottomDistance": 100,
  22062. "app-plus": {
  22063. "bounce": "vertical",
  22064. "titleNView": {
  22065. "buttons": [{
  22066. "text": "",
  22067. "fontSrc": "/static/uni.ttf",
  22068. "fontSize": "22px",
  22069. "color": "#FFFFFF"
  22070. }]
  22071. }
  22072. },
  22073. "component": true,
  22074. "usingComponents": {
  22075. "van-empty": "/wxcomponents/weapp/dist/empty/index",
  22076. "van-button": "/wxcomponents/weapp/dist/button/index",
  22077. "van-toast": "/wxcomponents/weapp/dist/toast/index",
  22078. "van-field": "/wxcomponents/weapp/dist/field/index",
  22079. "van-popup": "/wxcomponents/weapp/dist/popup/index",
  22080. "van-picker": "/wxcomponents/weapp/dist/picker/index",
  22081. "van-dialog": "/wxcomponents/weapp/dist/dialog/index",
  22082. "van-icon": "/wxcomponents/weapp/dist/icon/index",
  22083. "van-tab": "/wxcomponents/weapp/dist/tab/index",
  22084. "van-tabs": "/wxcomponents/weapp/dist/tabs/index"
  22085. }
  22086. }
  22087. }, {
  22088. "path": "todo/index",
  22089. "style": {
  22090. "navigationBarTitleText": "我的待办",
  22091. "enablePullDownRefresh": true,
  22092. "onReachBottomDistance": 100,
  22093. "app-plus": {
  22094. "bounce": "vertical",
  22095. "titleNView": {
  22096. "buttons": [{
  22097. "text": "",
  22098. "fontSrc": "/static/uni.ttf",
  22099. "fontSize": "22px",
  22100. "color": "#FFFFFF"
  22101. }]
  22102. }
  22103. },
  22104. "component": true,
  22105. "usingComponents": {
  22106. "van-empty": "/wxcomponents/weapp/dist/empty/index",
  22107. "van-button": "/wxcomponents/weapp/dist/button/index",
  22108. "van-toast": "/wxcomponents/weapp/dist/toast/index",
  22109. "van-field": "/wxcomponents/weapp/dist/field/index",
  22110. "van-popup": "/wxcomponents/weapp/dist/popup/index",
  22111. "van-picker": "/wxcomponents/weapp/dist/picker/index",
  22112. "van-dialog": "/wxcomponents/weapp/dist/dialog/index",
  22113. "van-icon": "/wxcomponents/weapp/dist/icon/index",
  22114. "van-tab": "/wxcomponents/weapp/dist/tab/index",
  22115. "van-tabs": "/wxcomponents/weapp/dist/tabs/index"
  22116. }
  22117. }
  22118. }, {
  22119. "path": "todo/associated",
  22120. "style": {
  22121. "navigationBarTitleText": "关联企业选择",
  22122. "enablePullDownRefresh": true,
  22123. "onReachBottomDistance": 100,
  22124. "app-plus": {
  22125. "bounce": "vertical",
  22126. "titleNView": {
  22127. "buttons": [{
  22128. "text": "",
  22129. "fontSrc": "/static/uni.ttf",
  22130. "fontSize": "22px",
  22131. "color": "#FFFFFF"
  22132. }]
  22133. }
  22134. },
  22135. "component": true,
  22136. "usingComponents": {
  22137. "van-empty": "/wxcomponents/weapp/dist/empty/index",
  22138. "van-button": "/wxcomponents/weapp/dist/button/index",
  22139. "van-toast": "/wxcomponents/weapp/dist/toast/index",
  22140. "van-field": "/wxcomponents/weapp/dist/field/index",
  22141. "van-popup": "/wxcomponents/weapp/dist/popup/index",
  22142. "van-picker": "/wxcomponents/weapp/dist/picker/index",
  22143. "van-dialog": "/wxcomponents/weapp/dist/dialog/index",
  22144. "van-icon": "/wxcomponents/weapp/dist/icon/index",
  22145. "van-tab": "/wxcomponents/weapp/dist/tab/index",
  22146. "van-tabs": "/wxcomponents/weapp/dist/tabs/index"
  22147. }
  22148. }
  22149. }, {
  22150. "path": "todo/addInvestmentManager",
  22151. "style": {
  22152. "navigationBarTitleText": "招商经理选择",
  22153. "enablePullDownRefresh": true,
  22154. "onReachBottomDistance": 100,
  22155. "app-plus": {
  22156. "bounce": "vertical",
  22157. "titleNView": {
  22158. "buttons": [{
  22159. "text": "",
  22160. "fontSrc": "/static/uni.ttf",
  22161. "fontSize": "22px",
  22162. "color": "#FFFFFF"
  22163. }]
  22164. }
  22165. },
  22166. "component": true,
  22167. "usingComponents": {
  22168. "van-empty": "/wxcomponents/weapp/dist/empty/index",
  22169. "van-button": "/wxcomponents/weapp/dist/button/index",
  22170. "van-toast": "/wxcomponents/weapp/dist/toast/index",
  22171. "van-field": "/wxcomponents/weapp/dist/field/index",
  22172. "van-popup": "/wxcomponents/weapp/dist/popup/index",
  22173. "van-picker": "/wxcomponents/weapp/dist/picker/index",
  22174. "van-dialog": "/wxcomponents/weapp/dist/dialog/index",
  22175. "van-icon": "/wxcomponents/weapp/dist/icon/index",
  22176. "van-tab": "/wxcomponents/weapp/dist/tab/index",
  22177. "van-tabs": "/wxcomponents/weapp/dist/tabs/index"
  22178. }
  22179. }
  22180. }, {
  22181. "path": "todo/predetermineDetail",
  22182. "style": {
  22183. "navigationBarTitleText": "企业预定详情",
  22184. "enablePullDownRefresh": true,
  22185. "onReachBottomDistance": 100,
  22186. "app-plus": {
  22187. "bounce": "vertical",
  22188. "titleNView": {
  22189. "buttons": [{
  22190. "text": "",
  22191. "fontSrc": "/static/uni.ttf",
  22192. "fontSize": "22px",
  22193. "color": "#FFFFFF"
  22194. }]
  22195. }
  22196. },
  22197. "component": true,
  22198. "usingComponents": {
  22199. "van-uploader": "/wxcomponents/weapp/dist/uploader/index",
  22200. "van-empty": "/wxcomponents/weapp/dist/empty/index",
  22201. "van-button": "/wxcomponents/weapp/dist/button/index",
  22202. "van-toast": "/wxcomponents/weapp/dist/toast/index",
  22203. "van-field": "/wxcomponents/weapp/dist/field/index",
  22204. "van-popup": "/wxcomponents/weapp/dist/popup/index",
  22205. "van-picker": "/wxcomponents/weapp/dist/picker/index",
  22206. "van-dialog": "/wxcomponents/weapp/dist/dialog/index",
  22207. "van-icon": "/wxcomponents/weapp/dist/icon/index",
  22208. "van-tab": "/wxcomponents/weapp/dist/tab/index",
  22209. "van-tabs": "/wxcomponents/weapp/dist/tabs/index"
  22210. }
  22211. }
  22212. }, {
  22213. "path": "todo/inventoryReview",
  22214. "style": {
  22215. "navigationBarTitleText": "企业入库审核",
  22216. "enablePullDownRefresh": true,
  22217. "onReachBottomDistance": 100,
  22218. "app-plus": {
  22219. "bounce": "vertical",
  22220. "titleNView": {
  22221. "buttons": [{
  22222. "text": "",
  22223. "fontSrc": "/static/uni.ttf",
  22224. "fontSize": "22px",
  22225. "color": "#FFFFFF"
  22226. }]
  22227. }
  22228. },
  22229. "component": true,
  22230. "usingComponents": {
  22231. "van-uploader": "/wxcomponents/weapp/dist/uploader/index",
  22232. "van-empty": "/wxcomponents/weapp/dist/empty/index",
  22233. "van-button": "/wxcomponents/weapp/dist/button/index",
  22234. "van-toast": "/wxcomponents/weapp/dist/toast/index",
  22235. "van-field": "/wxcomponents/weapp/dist/field/index",
  22236. "van-popup": "/wxcomponents/weapp/dist/popup/index",
  22237. "van-picker": "/wxcomponents/weapp/dist/picker/index",
  22238. "van-dialog": "/wxcomponents/weapp/dist/dialog/index",
  22239. "van-icon": "/wxcomponents/weapp/dist/icon/index",
  22240. "van-tab": "/wxcomponents/weapp/dist/tab/index",
  22241. "van-tabs": "/wxcomponents/weapp/dist/tabs/index"
  22242. }
  22243. }
  22244. }, {
  22245. "path": "todo/repairAcceptance",
  22246. "style": {
  22247. "navigationBarTitleText": "报修受理",
  22248. "enablePullDownRefresh": true,
  22249. "onReachBottomDistance": 100,
  22250. "app-plus": {
  22251. "bounce": "vertical",
  22252. "titleNView": {
  22253. "buttons": [{
  22254. "text": "",
  22255. "fontSrc": "/static/uni.ttf",
  22256. "fontSize": "22px",
  22257. "color": "#FFFFFF"
  22258. }]
  22259. }
  22260. },
  22261. "component": true,
  22262. "usingComponents": {
  22263. "van-uploader": "/wxcomponents/weapp/dist/uploader/index",
  22264. "van-empty": "/wxcomponents/weapp/dist/empty/index",
  22265. "van-button": "/wxcomponents/weapp/dist/button/index",
  22266. "van-toast": "/wxcomponents/weapp/dist/toast/index",
  22267. "van-field": "/wxcomponents/weapp/dist/field/index",
  22268. "van-popup": "/wxcomponents/weapp/dist/popup/index",
  22269. "van-picker": "/wxcomponents/weapp/dist/picker/index",
  22270. "van-dialog": "/wxcomponents/weapp/dist/dialog/index",
  22271. "van-icon": "/wxcomponents/weapp/dist/icon/index",
  22272. "van-tab": "/wxcomponents/weapp/dist/tab/index",
  22273. "van-tabs": "/wxcomponents/weapp/dist/tabs/index"
  22274. }
  22275. }
  22276. }, {
  22277. "path": "todo/addRepair",
  22278. "style": {
  22279. "navigationBarTitleText": "新增报修",
  22280. "enablePullDownRefresh": true,
  22281. "onReachBottomDistance": 100,
  22282. "app-plus": {
  22283. "bounce": "vertical",
  22284. "titleNView": {
  22285. "buttons": [{
  22286. "text": "",
  22287. "fontSrc": "/static/uni.ttf",
  22288. "fontSize": "22px",
  22289. "color": "#FFFFFF"
  22290. }]
  22291. }
  22292. },
  22293. "component": true,
  22294. "usingComponents": {
  22295. "van-uploader": "/wxcomponents/weapp/dist/uploader/index",
  22296. "van-empty": "/wxcomponents/weapp/dist/empty/index",
  22297. "van-button": "/wxcomponents/weapp/dist/button/index",
  22298. "van-toast": "/wxcomponents/weapp/dist/toast/index",
  22299. "van-field": "/wxcomponents/weapp/dist/field/index",
  22300. "van-popup": "/wxcomponents/weapp/dist/popup/index",
  22301. "van-picker": "/wxcomponents/weapp/dist/picker/index",
  22302. "van-dialog": "/wxcomponents/weapp/dist/dialog/index",
  22303. "van-icon": "/wxcomponents/weapp/dist/icon/index",
  22304. "van-tab": "/wxcomponents/weapp/dist/tab/index",
  22305. "van-tabs": "/wxcomponents/weapp/dist/tabs/index"
  22306. }
  22307. }
  22308. }, {
  22309. "path": "todo/dispatch",
  22310. "style": {
  22311. "navigationBarTitleText": "报修派单",
  22312. "enablePullDownRefresh": true,
  22313. "onReachBottomDistance": 100,
  22314. "app-plus": {
  22315. "bounce": "vertical",
  22316. "titleNView": {
  22317. "buttons": [{
  22318. "text": "",
  22319. "fontSrc": "/static/uni.ttf",
  22320. "fontSize": "22px",
  22321. "color": "#FFFFFF"
  22322. }]
  22323. }
  22324. },
  22325. "component": true,
  22326. "usingComponents": {
  22327. "van-uploader": "/wxcomponents/weapp/dist/uploader/index",
  22328. "van-empty": "/wxcomponents/weapp/dist/empty/index",
  22329. "van-button": "/wxcomponents/weapp/dist/button/index",
  22330. "van-toast": "/wxcomponents/weapp/dist/toast/index",
  22331. "van-field": "/wxcomponents/weapp/dist/field/index",
  22332. "van-popup": "/wxcomponents/weapp/dist/popup/index",
  22333. "van-picker": "/wxcomponents/weapp/dist/picker/index",
  22334. "van-dialog": "/wxcomponents/weapp/dist/dialog/index",
  22335. "van-icon": "/wxcomponents/weapp/dist/icon/index",
  22336. "van-tab": "/wxcomponents/weapp/dist/tab/index",
  22337. "van-tabs": "/wxcomponents/weapp/dist/tabs/index"
  22338. }
  22339. }
  22340. }, {
  22341. "path": "venueRoom/confirm",
  22342. "style": {
  22343. "navigationBarTitleText": "场馆-审核",
  22344. "enablePullDownRefresh": true,
  22345. "onReachBottomDistance": 100,
  22346. "app-plus": {
  22347. "bounce": "vertical",
  22348. "titleNView": {
  22349. "buttons": [{
  22350. "text": "",
  22351. "fontSrc": "/static/uni.ttf",
  22352. "fontSize": "22px",
  22353. "color": "#FFFFFF"
  22354. }]
  22355. }
  22356. },
  22357. "component": true,
  22358. "usingComponents": {
  22359. "van-empty": "/wxcomponents/weapp/dist/empty/index",
  22360. "van-button": "/wxcomponents/weapp/dist/button/index",
  22361. "van-toast": "/wxcomponents/weapp/dist/toast/index",
  22362. "van-field": "/wxcomponents/weapp/dist/field/index",
  22363. "van-popup": "/wxcomponents/weapp/dist/popup/index",
  22364. "van-picker": "/wxcomponents/weapp/dist/picker/index",
  22365. "van-dialog": "/wxcomponents/weapp/dist/dialog/index",
  22366. "van-icon": "/wxcomponents/weapp/dist/icon/index",
  22367. "van-tab": "/wxcomponents/weapp/dist/tab/index",
  22368. "van-tabs": "/wxcomponents/weapp/dist/tabs/index"
  22369. }
  22370. }
  22371. }, {
  22372. "path": "housedetails/housedetails",
  22373. "style": {
  22374. "navigationBarTitleText": "房源详情",
  22375. "enablePullDownRefresh": true,
  22376. "onReachBottomDistance": 100,
  22377. "app-plus": {
  22378. "bounce": "vertical",
  22379. "titleNView": {
  22380. "buttons": [{
  22381. "text": "",
  22382. "fontSrc": "/static/uni.ttf",
  22383. "fontSize": "22px",
  22384. "color": "#FFFFFF"
  22385. }]
  22386. }
  22387. },
  22388. "component": true,
  22389. "usingComponents": {
  22390. "van-empty": "/wxcomponents/weapp/dist/empty/index",
  22391. "van-button": "/wxcomponents/weapp/dist/button/index",
  22392. "van-toast": "/wxcomponents/weapp/dist/toast/index",
  22393. "van-field": "/wxcomponents/weapp/dist/field/index",
  22394. "van-popup": "/wxcomponents/weapp/dist/popup/index",
  22395. "van-picker": "/wxcomponents/weapp/dist/picker/index",
  22396. "van-dialog": "/wxcomponents/weapp/dist/dialog/index",
  22397. "van-icon": "/wxcomponents/weapp/dist/icon/index",
  22398. "van-tab": "/wxcomponents/weapp/dist/tab/index",
  22399. "van-tabs": "/wxcomponents/weapp/dist/tabs/index"
  22400. }
  22401. }
  22402. }, {
  22403. "path": "addintention/addintention",
  22404. "style": {
  22405. "navigationBarTitleText": "新增意向",
  22406. "enablePullDownRefresh": true,
  22407. "onReachBottomDistance": 100,
  22408. "app-plus": {
  22409. "bounce": "vertical",
  22410. "titleNView": {
  22411. "buttons": [{
  22412. "text": "",
  22413. "fontSrc": "/static/uni.ttf",
  22414. "fontSize": "22px",
  22415. "color": "#FFFFFF"
  22416. }]
  22417. }
  22418. },
  22419. "component": true,
  22420. "usingComponents": {
  22421. "van-button": "/wxcomponents/weapp/dist/button/index",
  22422. "van-toast": "/wxcomponents/weapp/dist/toast/index",
  22423. "van-field": "/wxcomponents/weapp/dist/field/index",
  22424. "van-popup": "/wxcomponents/weapp/dist/popup/index",
  22425. "van-picker": "/wxcomponents/weapp/dist/picker/index",
  22426. "van-dialog": "/wxcomponents/weapp/dist/dialog/index",
  22427. "van-icon": "/wxcomponents/weapp/dist/icon/index",
  22428. "van-tab": "/wxcomponents/weapp/dist/tab/index",
  22429. "van-tabs": "/wxcomponents/weapp/dist/tabs/index",
  22430. "van-datetime-picker": "/wxcomponents/weapp/dist/datetime-picker/index",
  22431. "van-uploader": "/wxcomponents/weapp/dist/uploader/index"
  22432. }
  22433. }
  22434. }, {
  22435. "path": "chosseHouse/chosseHouse",
  22436. "style": {
  22437. "navigationBarTitleText": "选择房源",
  22438. "enablePullDownRefresh": true,
  22439. "onReachBottomDistance": 100,
  22440. "app-plus": {
  22441. "bounce": "vertical",
  22442. "titleNView": {
  22443. "buttons": [{
  22444. "text": "",
  22445. "fontSrc": "/static/uni.ttf",
  22446. "fontSize": "22px",
  22447. "color": "#FFFFFF"
  22448. }]
  22449. }
  22450. },
  22451. "component": true,
  22452. "usingComponents": {
  22453. "van-button": "/wxcomponents/weapp/dist/button/index",
  22454. "van-toast": "/wxcomponents/weapp/dist/toast/index",
  22455. "van-field": "/wxcomponents/weapp/dist/field/index",
  22456. "van-popup": "/wxcomponents/weapp/dist/popup/index",
  22457. "van-picker": "/wxcomponents/weapp/dist/picker/index",
  22458. "van-dialog": "/wxcomponents/weapp/dist/dialog/index",
  22459. "van-icon": "/wxcomponents/weapp/dist/icon/index",
  22460. "van-tab": "/wxcomponents/weapp/dist/tab/index",
  22461. "van-tabs": "/wxcomponents/weapp/dist/tabs/index",
  22462. "van-datetime-picker": "/wxcomponents/weapp/dist/datetime-picker/index",
  22463. "van-uploader": "/wxcomponents/weapp/dist/uploader/index",
  22464. "van-checkbox": "/wxcomponents/weapp/dist/checkbox/index",
  22465. "van-checkbox-group": "/wxcomponents/weapp/dist/checkbox-group/index"
  22466. }
  22467. }
  22468. }, {
  22469. "path": "companyHouse/companyHouse",
  22470. "style": {
  22471. "navigationBarTitleText": "企业库",
  22472. "enablePullDownRefresh": true,
  22473. "onReachBottomDistance": 100,
  22474. "app-plus": {
  22475. "bounce": "vertical",
  22476. "titleNView": {
  22477. "buttons": [{
  22478. "text": "",
  22479. "fontSrc": "/static/uni.ttf",
  22480. "fontSize": "22px",
  22481. "color": "#FFFFFF"
  22482. }]
  22483. }
  22484. },
  22485. "component": true,
  22486. "usingComponents": {
  22487. "van-button": "/wxcomponents/weapp/dist/button/index",
  22488. "van-toast": "/wxcomponents/weapp/dist/toast/index",
  22489. "van-field": "/wxcomponents/weapp/dist/field/index",
  22490. "van-popup": "/wxcomponents/weapp/dist/popup/index",
  22491. "van-picker": "/wxcomponents/weapp/dist/picker/index",
  22492. "van-dialog": "/wxcomponents/weapp/dist/dialog/index",
  22493. "van-icon": "/wxcomponents/weapp/dist/icon/index",
  22494. "van-tab": "/wxcomponents/weapp/dist/tab/index",
  22495. "van-tabs": "/wxcomponents/weapp/dist/tabs/index",
  22496. "van-datetime-picker": "/wxcomponents/weapp/dist/datetime-picker/index",
  22497. "van-uploader": "/wxcomponents/weapp/dist/uploader/index",
  22498. "van-checkbox": "/wxcomponents/weapp/dist/checkbox/index",
  22499. "van-checkbox-group": "/wxcomponents/weapp/dist/checkbox-group/index"
  22500. }
  22501. }
  22502. }, {
  22503. "path": "companyreport/components/reportDetails",
  22504. "style": {
  22505. "navigationBarTitleText": "走访上报-详情",
  22506. "enablePullDownRefresh": true,
  22507. "onReachBottomDistance": 100,
  22508. "app-plus": {
  22509. "bounce": "vertical",
  22510. "titleNView": {
  22511. "buttons": [{
  22512. "text": "",
  22513. "fontSrc": "/static/uni.ttf",
  22514. "fontSize": "22px",
  22515. "color": "#FFFFFF"
  22516. }]
  22517. }
  22518. },
  22519. "component": true,
  22520. "usingComponents": {
  22521. "van-button": "/wxcomponents/weapp/dist/button/index",
  22522. "van-toast": "/wxcomponents/weapp/dist/toast/index",
  22523. "van-field": "/wxcomponents/weapp/dist/field/index",
  22524. "van-popup": "/wxcomponents/weapp/dist/popup/index",
  22525. "van-picker": "/wxcomponents/weapp/dist/picker/index",
  22526. "van-dialog": "/wxcomponents/weapp/dist/dialog/index",
  22527. "van-icon": "/wxcomponents/weapp/dist/icon/index",
  22528. "van-tab": "/wxcomponents/weapp/dist/tab/index",
  22529. "van-tabs": "/wxcomponents/weapp/dist/tabs/index",
  22530. "van-datetime-picker": "/wxcomponents/weapp/dist/datetime-picker/index",
  22531. "van-uploader": "/wxcomponents/weapp/dist/uploader/index",
  22532. "van-checkbox": "/wxcomponents/weapp/dist/checkbox/index",
  22533. "van-checkbox-group": "/wxcomponents/weapp/dist/checkbox-group/index"
  22534. }
  22535. }
  22536. }, {
  22537. "path": "merchants/merchants",
  22538. "style": {
  22539. "navigationBarTitleText": "我的招商",
  22540. "enablePullDownRefresh": true,
  22541. "onReachBottomDistance": 100,
  22542. "app-plus": {
  22543. "bounce": "vertical",
  22544. "titleNView": {
  22545. "buttons": [{
  22546. "text": "",
  22547. "fontSrc": "/static/uni.ttf",
  22548. "fontSize": "22px",
  22549. "color": "#FFFFFF"
  22550. }]
  22551. }
  22552. },
  22553. "component": true,
  22554. "usingComponents": {
  22555. "van-button": "/wxcomponents/weapp/dist/button/index",
  22556. "van-toast": "/wxcomponents/weapp/dist/toast/index",
  22557. "van-field": "/wxcomponents/weapp/dist/field/index",
  22558. "van-popup": "/wxcomponents/weapp/dist/popup/index",
  22559. "van-picker": "/wxcomponents/weapp/dist/picker/index",
  22560. "van-dialog": "/wxcomponents/weapp/dist/dialog/index",
  22561. "van-icon": "/wxcomponents/weapp/dist/icon/index",
  22562. "van-tab": "/wxcomponents/weapp/dist/tab/index",
  22563. "van-tabs": "/wxcomponents/weapp/dist/tabs/index"
  22564. }
  22565. }
  22566. }, {
  22567. "path": "merchants/components/mymechantsdetails",
  22568. "style": {
  22569. "navigationBarTitleText": "我的招商-详情",
  22570. "enablePullDownRefresh": true,
  22571. "onReachBottomDistance": 100,
  22572. "app-plus": {
  22573. "bounce": "vertical",
  22574. "titleNView": {
  22575. "buttons": [{
  22576. "text": "",
  22577. "fontSrc": "/static/uni.ttf",
  22578. "fontSize": "22px",
  22579. "color": "#FFFFFF"
  22580. }]
  22581. }
  22582. },
  22583. "component": true,
  22584. "usingComponents": {
  22585. "van-uploader": "/wxcomponents/weapp/dist/uploader/index",
  22586. "van-button": "/wxcomponents/weapp/dist/button/index",
  22587. "van-toast": "/wxcomponents/weapp/dist/toast/index",
  22588. "van-field": "/wxcomponents/weapp/dist/field/index",
  22589. "van-popup": "/wxcomponents/weapp/dist/popup/index",
  22590. "van-picker": "/wxcomponents/weapp/dist/picker/index",
  22591. "van-dialog": "/wxcomponents/weapp/dist/dialog/index",
  22592. "van-icon": "/wxcomponents/weapp/dist/icon/index",
  22593. "van-tab": "/wxcomponents/weapp/dist/tab/index",
  22594. "van-tabs": "/wxcomponents/weapp/dist/tabs/index"
  22595. }
  22596. }
  22597. }, {
  22598. "path": "reportRepair/index",
  22599. "style": {
  22600. "navigationBarTitleText": "报事报修",
  22601. "enablePullDownRefresh": true,
  22602. "onReachBottomDistance": 100,
  22603. "app-plus": {
  22604. "bounce": "vertical",
  22605. "titleNView": {
  22606. "buttons": [{
  22607. "text": "",
  22608. "fontSrc": "/static/uni.ttf",
  22609. "fontSize": "22px",
  22610. "color": "#FFFFFF"
  22611. }]
  22612. }
  22613. },
  22614. "component": true,
  22615. "usingComponents": {
  22616. "van-uploader": "/wxcomponents/weapp/dist/uploader/index",
  22617. "van-button": "/wxcomponents/weapp/dist/button/index",
  22618. "van-toast": "/wxcomponents/weapp/dist/toast/index",
  22619. "van-field": "/wxcomponents/weapp/dist/field/index",
  22620. "van-popup": "/wxcomponents/weapp/dist/popup/index",
  22621. "van-picker": "/wxcomponents/weapp/dist/picker/index",
  22622. "van-dialog": "/wxcomponents/weapp/dist/dialog/index",
  22623. "van-icon": "/wxcomponents/weapp/dist/icon/index",
  22624. "van-tab": "/wxcomponents/weapp/dist/tab/index",
  22625. "van-tabs": "/wxcomponents/weapp/dist/tabs/index"
  22626. }
  22627. }
  22628. }, {
  22629. "path": "reportRepair/repairRecord",
  22630. "style": {
  22631. "navigationBarTitleText": "报事记录",
  22632. "enablePullDownRefresh": true,
  22633. "onReachBottomDistance": 100,
  22634. "app-plus": {
  22635. "bounce": "vertical",
  22636. "titleNView": {
  22637. "buttons": [{
  22638. "text": "",
  22639. "fontSrc": "/static/uni.ttf",
  22640. "fontSize": "22px",
  22641. "color": "#FFFFFF"
  22642. }]
  22643. }
  22644. },
  22645. "component": true,
  22646. "usingComponents": {
  22647. "van-uploader": "/wxcomponents/weapp/dist/uploader/index",
  22648. "van-button": "/wxcomponents/weapp/dist/button/index",
  22649. "van-toast": "/wxcomponents/weapp/dist/toast/index",
  22650. "van-field": "/wxcomponents/weapp/dist/field/index",
  22651. "van-popup": "/wxcomponents/weapp/dist/popup/index",
  22652. "van-picker": "/wxcomponents/weapp/dist/picker/index",
  22653. "van-dialog": "/wxcomponents/weapp/dist/dialog/index",
  22654. "van-icon": "/wxcomponents/weapp/dist/icon/index",
  22655. "van-tab": "/wxcomponents/weapp/dist/tab/index",
  22656. "van-tabs": "/wxcomponents/weapp/dist/tabs/index"
  22657. }
  22658. }
  22659. }, {
  22660. "path": "reportRepair/repairDetail",
  22661. "style": {
  22662. "navigationBarTitleText": "报事详情",
  22663. "enablePullDownRefresh": true,
  22664. "onReachBottomDistance": 100,
  22665. "app-plus": {
  22666. "bounce": "vertical",
  22667. "titleNView": {
  22668. "buttons": [{
  22669. "text": "",
  22670. "fontSrc": "/static/uni.ttf",
  22671. "fontSize": "22px",
  22672. "color": "#FFFFFF"
  22673. }]
  22674. }
  22675. },
  22676. "component": true,
  22677. "usingComponents": {
  22678. "van-uploader": "/wxcomponents/weapp/dist/uploader/index",
  22679. "van-button": "/wxcomponents/weapp/dist/button/index",
  22680. "van-toast": "/wxcomponents/weapp/dist/toast/index",
  22681. "van-field": "/wxcomponents/weapp/dist/field/index",
  22682. "van-popup": "/wxcomponents/weapp/dist/popup/index",
  22683. "van-picker": "/wxcomponents/weapp/dist/picker/index",
  22684. "van-dialog": "/wxcomponents/weapp/dist/dialog/index",
  22685. "van-icon": "/wxcomponents/weapp/dist/icon/index",
  22686. "van-tab": "/wxcomponents/weapp/dist/tab/index",
  22687. "van-tabs": "/wxcomponents/weapp/dist/tabs/index",
  22688. "van-rate": "/wxcomponents/weapp/dist/rate/index"
  22689. }
  22690. }
  22691. }, {
  22692. "path": "companyreport/companyreport",
  22693. "style": {
  22694. "navigationBarTitleText": "走访上报",
  22695. "enablePullDownRefresh": true,
  22696. "onReachBottomDistance": 100,
  22697. "app-plus": {
  22698. "bounce": "vertical",
  22699. "titleNView": {
  22700. "buttons": [{
  22701. "text": "",
  22702. "fontSrc": "/static/uni.ttf",
  22703. "fontSize": "22px",
  22704. "color": "#FFFFFF"
  22705. }]
  22706. }
  22707. },
  22708. "component": true,
  22709. "usingComponents": {
  22710. "van-button": "/wxcomponents/weapp/dist/button/index",
  22711. "van-toast": "/wxcomponents/weapp/dist/toast/index",
  22712. "van-field": "/wxcomponents/weapp/dist/field/index",
  22713. "van-picker": "/wxcomponents/weapp/dist/picker/index",
  22714. "van-dialog": "/wxcomponents/weapp/dist/dialog/index",
  22715. "van-icon": "/wxcomponents/weapp/dist/icon/index",
  22716. "van-tab": "/wxcomponents/weapp/dist/tab/index",
  22717. "van-tabs": "/wxcomponents/weapp/dist/tabs/index",
  22718. "van-datetime-picker": "/wxcomponents/weapp/dist/datetime-picker/index",
  22719. "van-uploader": "/wxcomponents/weapp/dist/uploader/index",
  22720. "van-checkbox": "/wxcomponents/weapp/dist/checkbox/index",
  22721. "van-checkbox-group": "/wxcomponents/weapp/dist/checkbox-group/index"
  22722. }
  22723. }
  22724. }, {
  22725. "path": "economicDevelopmentReport/economic",
  22726. "style": {
  22727. "navigationBarTitleText": "经发填报",
  22728. "enablePullDownRefresh": true,
  22729. "onReachBottomDistance": 100,
  22730. "app-plus": {
  22731. "bounce": "vertical",
  22732. "titleNView": {
  22733. "buttons": [{
  22734. "text": "",
  22735. "fontSrc": "/static/uni.ttf",
  22736. "fontSize": "22px",
  22737. "color": "#FFFFFF"
  22738. }]
  22739. }
  22740. },
  22741. "component": true,
  22742. "usingComponents": {
  22743. "van-button": "/wxcomponents/weapp/dist/button/index",
  22744. "van-toast": "/wxcomponents/weapp/dist/toast/index",
  22745. "van-field": "/wxcomponents/weapp/dist/field/index",
  22746. "van-picker": "/wxcomponents/weapp/dist/picker/index",
  22747. "van-dialog": "/wxcomponents/weapp/dist/dialog/index",
  22748. "van-icon": "/wxcomponents/weapp/dist/icon/index",
  22749. "van-tab": "/wxcomponents/weapp/dist/tab/index",
  22750. "van-tabs": "/wxcomponents/weapp/dist/tabs/index",
  22751. "van-datetime-picker": "/wxcomponents/weapp/dist/datetime-picker/index",
  22752. "van-uploader": "/wxcomponents/weapp/dist/uploader/index",
  22753. "van-checkbox": "/wxcomponents/weapp/dist/checkbox/index",
  22754. "van-checkbox-group": "/wxcomponents/weapp/dist/checkbox-group/index"
  22755. }
  22756. }
  22757. }, {
  22758. "path": "enterPriseBill/index",
  22759. "style": {
  22760. "navigationBarTitleText": "企业账单",
  22761. "enablePullDownRefresh": true,
  22762. "onReachBottomDistance": 100,
  22763. "app-plus": {
  22764. "bounce": "vertical",
  22765. "titleNView": {
  22766. "buttons": [{
  22767. "text": "",
  22768. "fontSrc": "/static/uni.ttf",
  22769. "fontSize": "22px",
  22770. "color": "#FFFFFF"
  22771. }]
  22772. }
  22773. },
  22774. "component": true,
  22775. "usingComponents": {
  22776. "van-button": "/wxcomponents/weapp/dist/button/index",
  22777. "van-toast": "/wxcomponents/weapp/dist/toast/index",
  22778. "van-field": "/wxcomponents/weapp/dist/field/index",
  22779. "van-picker": "/wxcomponents/weapp/dist/picker/index",
  22780. "van-dialog": "/wxcomponents/weapp/dist/dialog/index",
  22781. "van-icon": "/wxcomponents/weapp/dist/icon/index",
  22782. "van-tab": "/wxcomponents/weapp/dist/tab/index",
  22783. "van-tabs": "/wxcomponents/weapp/dist/tabs/index",
  22784. "van-datetime-picker": "/wxcomponents/weapp/dist/datetime-picker/index",
  22785. "van-uploader": "/wxcomponents/weapp/dist/uploader/index",
  22786. "van-checkbox": "/wxcomponents/weapp/dist/checkbox/index",
  22787. "van-checkbox-group": "/wxcomponents/weapp/dist/checkbox-group/index"
  22788. }
  22789. }
  22790. }, {
  22791. "path": "enterPriseBill/detail",
  22792. "style": {
  22793. "navigationBarTitleText": "账单详情",
  22794. "enablePullDownRefresh": true,
  22795. "onReachBottomDistance": 100,
  22796. "app-plus": {
  22797. "bounce": "vertical",
  22798. "titleNView": {
  22799. "buttons": [{
  22800. "text": "",
  22801. "fontSrc": "/static/uni.ttf",
  22802. "fontSize": "22px",
  22803. "color": "#FFFFFF"
  22804. }]
  22805. }
  22806. },
  22807. "component": true,
  22808. "usingComponents": {
  22809. "van-button": "/wxcomponents/weapp/dist/button/index",
  22810. "van-toast": "/wxcomponents/weapp/dist/toast/index",
  22811. "van-field": "/wxcomponents/weapp/dist/field/index",
  22812. "van-picker": "/wxcomponents/weapp/dist/picker/index",
  22813. "van-dialog": "/wxcomponents/weapp/dist/dialog/index",
  22814. "van-icon": "/wxcomponents/weapp/dist/icon/index",
  22815. "van-tab": "/wxcomponents/weapp/dist/tab/index",
  22816. "van-tabs": "/wxcomponents/weapp/dist/tabs/index",
  22817. "van-datetime-picker": "/wxcomponents/weapp/dist/datetime-picker/index",
  22818. "van-uploader": "/wxcomponents/weapp/dist/uploader/index",
  22819. "van-checkbox": "/wxcomponents/weapp/dist/checkbox/index",
  22820. "van-checkbox-group": "/wxcomponents/weapp/dist/checkbox-group/index"
  22821. }
  22822. }
  22823. }, {
  22824. "path": "propertyNotice/index",
  22825. "style": {
  22826. "navigationBarTitleText": "物业通知",
  22827. "enablePullDownRefresh": true,
  22828. "onReachBottomDistance": 100,
  22829. "app-plus": {
  22830. "bounce": "vertical",
  22831. "titleNView": {
  22832. "buttons": [{
  22833. "text": "",
  22834. "fontSrc": "/static/uni.ttf",
  22835. "fontSize": "22px",
  22836. "color": "#FFFFFF"
  22837. }]
  22838. }
  22839. },
  22840. "component": true,
  22841. "usingComponents": {
  22842. "van-button": "/wxcomponents/weapp/dist/button/index",
  22843. "van-toast": "/wxcomponents/weapp/dist/toast/index",
  22844. "van-field": "/wxcomponents/weapp/dist/field/index",
  22845. "van-picker": "/wxcomponents/weapp/dist/picker/index",
  22846. "van-dialog": "/wxcomponents/weapp/dist/dialog/index",
  22847. "van-icon": "/wxcomponents/weapp/dist/icon/index",
  22848. "van-tab": "/wxcomponents/weapp/dist/tab/index",
  22849. "van-tabs": "/wxcomponents/weapp/dist/tabs/index",
  22850. "van-datetime-picker": "/wxcomponents/weapp/dist/datetime-picker/index",
  22851. "van-uploader": "/wxcomponents/weapp/dist/uploader/index",
  22852. "van-checkbox": "/wxcomponents/weapp/dist/checkbox/index",
  22853. "van-checkbox-group": "/wxcomponents/weapp/dist/checkbox-group/index"
  22854. }
  22855. }
  22856. }, {
  22857. "path": "propertyNotice/detail",
  22858. "style": {
  22859. "navigationBarTitleText": "通知详情",
  22860. "enablePullDownRefresh": true,
  22861. "onReachBottomDistance": 100,
  22862. "app-plus": {
  22863. "bounce": "vertical",
  22864. "titleNView": {
  22865. "buttons": [{
  22866. "text": "",
  22867. "fontSrc": "/static/uni.ttf",
  22868. "fontSize": "22px",
  22869. "color": "#FFFFFF"
  22870. }]
  22871. }
  22872. },
  22873. "component": true,
  22874. "usingComponents": {
  22875. "van-button": "/wxcomponents/weapp/dist/button/index",
  22876. "van-toast": "/wxcomponents/weapp/dist/toast/index",
  22877. "van-field": "/wxcomponents/weapp/dist/field/index",
  22878. "van-picker": "/wxcomponents/weapp/dist/picker/index",
  22879. "van-dialog": "/wxcomponents/weapp/dist/dialog/index",
  22880. "van-icon": "/wxcomponents/weapp/dist/icon/index",
  22881. "van-tab": "/wxcomponents/weapp/dist/tab/index",
  22882. "van-tabs": "/wxcomponents/weapp/dist/tabs/index",
  22883. "van-datetime-picker": "/wxcomponents/weapp/dist/datetime-picker/index",
  22884. "van-uploader": "/wxcomponents/weapp/dist/uploader/index",
  22885. "van-checkbox": "/wxcomponents/weapp/dist/checkbox/index",
  22886. "van-checkbox-group": "/wxcomponents/weapp/dist/checkbox-group/index"
  22887. }
  22888. }
  22889. }, {
  22890. "path": "propertyNotice_manage/index",
  22891. "style": {
  22892. "navigationBarTitleText": "物业通知-管理",
  22893. "enablePullDownRefresh": true,
  22894. "onReachBottomDistance": 100,
  22895. "app-plus": {
  22896. "bounce": "vertical",
  22897. "titleNView": {
  22898. "buttons": [{
  22899. "text": "",
  22900. "fontSrc": "/static/uni.ttf",
  22901. "fontSize": "22px",
  22902. "color": "#FFFFFF"
  22903. }]
  22904. }
  22905. },
  22906. "component": true,
  22907. "usingComponents": {
  22908. "van-button": "/wxcomponents/weapp/dist/button/index",
  22909. "van-toast": "/wxcomponents/weapp/dist/toast/index",
  22910. "van-field": "/wxcomponents/weapp/dist/field/index",
  22911. "van-picker": "/wxcomponents/weapp/dist/picker/index",
  22912. "van-dialog": "/wxcomponents/weapp/dist/dialog/index",
  22913. "van-icon": "/wxcomponents/weapp/dist/icon/index",
  22914. "van-tab": "/wxcomponents/weapp/dist/tab/index",
  22915. "van-tabs": "/wxcomponents/weapp/dist/tabs/index",
  22916. "van-datetime-picker": "/wxcomponents/weapp/dist/datetime-picker/index",
  22917. "van-uploader": "/wxcomponents/weapp/dist/uploader/index",
  22918. "van-checkbox": "/wxcomponents/weapp/dist/checkbox/index",
  22919. "van-checkbox-group": "/wxcomponents/weapp/dist/checkbox-group/index"
  22920. }
  22921. }
  22922. }, {
  22923. "path": "propertyNotice_manage/newRelease",
  22924. "style": {
  22925. "navigationBarTitleText": "新增发布",
  22926. "enablePullDownRefresh": true,
  22927. "onReachBottomDistance": 100,
  22928. "app-plus": {
  22929. "bounce": "vertical",
  22930. "titleNView": {
  22931. "buttons": [{
  22932. "text": "",
  22933. "fontSrc": "/static/uni.ttf",
  22934. "fontSize": "22px",
  22935. "color": "#FFFFFF"
  22936. }]
  22937. }
  22938. },
  22939. "component": true,
  22940. "usingComponents": {
  22941. "van-button": "/wxcomponents/weapp/dist/button/index",
  22942. "van-toast": "/wxcomponents/weapp/dist/toast/index",
  22943. "van-field": "/wxcomponents/weapp/dist/field/index",
  22944. "van-picker": "/wxcomponents/weapp/dist/picker/index",
  22945. "van-dialog": "/wxcomponents/weapp/dist/dialog/index",
  22946. "van-icon": "/wxcomponents/weapp/dist/icon/index",
  22947. "van-tab": "/wxcomponents/weapp/dist/tab/index",
  22948. "van-tabs": "/wxcomponents/weapp/dist/tabs/index",
  22949. "van-datetime-picker": "/wxcomponents/weapp/dist/datetime-picker/index",
  22950. "van-uploader": "/wxcomponents/weapp/dist/uploader/index",
  22951. "van-checkbox": "/wxcomponents/weapp/dist/checkbox/index",
  22952. "van-checkbox-group": "/wxcomponents/weapp/dist/checkbox-group/index"
  22953. }
  22954. }
  22955. }, {
  22956. "path": "parkActivity/index",
  22957. "style": {
  22958. "navigationBarTitleText": "园区活动",
  22959. "enablePullDownRefresh": true,
  22960. "onReachBottomDistance": 100,
  22961. "app-plus": {
  22962. "bounce": "vertical",
  22963. "titleNView": {
  22964. "buttons": [{
  22965. "text": "",
  22966. "fontSrc": "/static/uni.ttf",
  22967. "fontSize": "22px",
  22968. "color": "#FFFFFF"
  22969. }]
  22970. }
  22971. },
  22972. "component": true,
  22973. "usingComponents": {
  22974. "van-button": "/wxcomponents/weapp/dist/button/index",
  22975. "van-toast": "/wxcomponents/weapp/dist/toast/index",
  22976. "van-field": "/wxcomponents/weapp/dist/field/index",
  22977. "van-picker": "/wxcomponents/weapp/dist/picker/index",
  22978. "van-dialog": "/wxcomponents/weapp/dist/dialog/index",
  22979. "van-icon": "/wxcomponents/weapp/dist/icon/index",
  22980. "van-tab": "/wxcomponents/weapp/dist/tab/index",
  22981. "van-tabs": "/wxcomponents/weapp/dist/tabs/index",
  22982. "van-datetime-picker": "/wxcomponents/weapp/dist/datetime-picker/index",
  22983. "van-uploader": "/wxcomponents/weapp/dist/uploader/index",
  22984. "van-checkbox": "/wxcomponents/weapp/dist/checkbox/index",
  22985. "van-checkbox-group": "/wxcomponents/weapp/dist/checkbox-group/index"
  22986. }
  22987. }
  22988. }, {
  22989. "path": "parkActivity/activeApplication",
  22990. "style": {
  22991. "navigationBarTitleText": "活动报名",
  22992. "enablePullDownRefresh": true,
  22993. "onReachBottomDistance": 100,
  22994. "app-plus": {
  22995. "bounce": "vertical",
  22996. "titleNView": {
  22997. "buttons": [{
  22998. "text": "",
  22999. "fontSrc": "/static/uni.ttf",
  23000. "fontSize": "22px",
  23001. "color": "#FFFFFF"
  23002. }]
  23003. }
  23004. },
  23005. "component": true,
  23006. "usingComponents": {
  23007. "van-button": "/wxcomponents/weapp/dist/button/index",
  23008. "van-toast": "/wxcomponents/weapp/dist/toast/index",
  23009. "van-field": "/wxcomponents/weapp/dist/field/index",
  23010. "van-picker": "/wxcomponents/weapp/dist/picker/index",
  23011. "van-dialog": "/wxcomponents/weapp/dist/dialog/index",
  23012. "van-icon": "/wxcomponents/weapp/dist/icon/index",
  23013. "van-tab": "/wxcomponents/weapp/dist/tab/index",
  23014. "van-tabs": "/wxcomponents/weapp/dist/tabs/index",
  23015. "van-datetime-picker": "/wxcomponents/weapp/dist/datetime-picker/index",
  23016. "van-uploader": "/wxcomponents/weapp/dist/uploader/index",
  23017. "van-checkbox": "/wxcomponents/weapp/dist/checkbox/index",
  23018. "van-checkbox-group": "/wxcomponents/weapp/dist/checkbox-group/index"
  23019. }
  23020. }
  23021. }, {
  23022. "path": "parkActivity/applicationInfo",
  23023. "style": {
  23024. "navigationBarTitleText": "报名信息",
  23025. "enablePullDownRefresh": true,
  23026. "onReachBottomDistance": 100,
  23027. "app-plus": {
  23028. "bounce": "vertical",
  23029. "titleNView": {
  23030. "buttons": [{
  23031. "text": "",
  23032. "fontSrc": "/static/uni.ttf",
  23033. "fontSize": "22px",
  23034. "color": "#FFFFFF"
  23035. }]
  23036. }
  23037. },
  23038. "component": true,
  23039. "usingComponents": {
  23040. "van-button": "/wxcomponents/weapp/dist/button/index",
  23041. "van-toast": "/wxcomponents/weapp/dist/toast/index",
  23042. "van-field": "/wxcomponents/weapp/dist/field/index",
  23043. "van-picker": "/wxcomponents/weapp/dist/picker/index",
  23044. "van-dialog": "/wxcomponents/weapp/dist/dialog/index",
  23045. "van-icon": "/wxcomponents/weapp/dist/icon/index",
  23046. "van-tab": "/wxcomponents/weapp/dist/tab/index",
  23047. "van-tabs": "/wxcomponents/weapp/dist/tabs/index",
  23048. "van-datetime-picker": "/wxcomponents/weapp/dist/datetime-picker/index",
  23049. "van-uploader": "/wxcomponents/weapp/dist/uploader/index",
  23050. "van-checkbox": "/wxcomponents/weapp/dist/checkbox/index",
  23051. "van-checkbox-group": "/wxcomponents/weapp/dist/checkbox-group/index"
  23052. }
  23053. }
  23054. }, {
  23055. "path": "parkActivity/activityCheckIn",
  23056. "style": {
  23057. "navigationBarTitleText": "活动签到",
  23058. "enablePullDownRefresh": true,
  23059. "onReachBottomDistance": 100,
  23060. "app-plus": {
  23061. "bounce": "vertical",
  23062. "titleNView": {
  23063. "buttons": [{
  23064. "text": "",
  23065. "fontSrc": "/static/uni.ttf",
  23066. "fontSize": "22px",
  23067. "color": "#FFFFFF"
  23068. }]
  23069. }
  23070. },
  23071. "component": true,
  23072. "usingComponents": {
  23073. "van-button": "/wxcomponents/weapp/dist/button/index",
  23074. "van-toast": "/wxcomponents/weapp/dist/toast/index",
  23075. "van-field": "/wxcomponents/weapp/dist/field/index",
  23076. "van-picker": "/wxcomponents/weapp/dist/picker/index",
  23077. "van-dialog": "/wxcomponents/weapp/dist/dialog/index",
  23078. "van-icon": "/wxcomponents/weapp/dist/icon/index",
  23079. "van-tab": "/wxcomponents/weapp/dist/tab/index",
  23080. "van-tabs": "/wxcomponents/weapp/dist/tabs/index",
  23081. "van-datetime-picker": "/wxcomponents/weapp/dist/datetime-picker/index",
  23082. "van-uploader": "/wxcomponents/weapp/dist/uploader/index",
  23083. "van-checkbox": "/wxcomponents/weapp/dist/checkbox/index",
  23084. "van-checkbox-group": "/wxcomponents/weapp/dist/checkbox-group/index"
  23085. }
  23086. }
  23087. }, {
  23088. "path": "minePages/mineMessage",
  23089. "style": {
  23090. "navigationBarTitleText": "我的消息",
  23091. "enablePullDownRefresh": true,
  23092. "onReachBottomDistance": 100,
  23093. "app-plus": {
  23094. "bounce": "vertical",
  23095. "titleNView": {
  23096. "buttons": [{
  23097. "text": "",
  23098. "fontSrc": "/static/uni.ttf",
  23099. "fontSize": "22px",
  23100. "color": "#FFFFFF"
  23101. }]
  23102. }
  23103. },
  23104. "component": true,
  23105. "usingComponents": {
  23106. "van-button": "/wxcomponents/weapp/dist/button/index",
  23107. "van-toast": "/wxcomponents/weapp/dist/toast/index",
  23108. "van-field": "/wxcomponents/weapp/dist/field/index",
  23109. "van-picker": "/wxcomponents/weapp/dist/picker/index",
  23110. "van-dialog": "/wxcomponents/weapp/dist/dialog/index",
  23111. "van-icon": "/wxcomponents/weapp/dist/icon/index",
  23112. "van-tab": "/wxcomponents/weapp/dist/tab/index",
  23113. "van-tabs": "/wxcomponents/weapp/dist/tabs/index",
  23114. "van-datetime-picker": "/wxcomponents/weapp/dist/datetime-picker/index",
  23115. "van-uploader": "/wxcomponents/weapp/dist/uploader/index",
  23116. "van-checkbox": "/wxcomponents/weapp/dist/checkbox/index",
  23117. "van-checkbox-group": "/wxcomponents/weapp/dist/checkbox-group/index"
  23118. }
  23119. }
  23120. }, {
  23121. "path": "minePages/mineInfo",
  23122. "style": {
  23123. "navigationBarTitleText": "企业信息",
  23124. "enablePullDownRefresh": true,
  23125. "onReachBottomDistance": 100,
  23126. "app-plus": {
  23127. "bounce": "vertical",
  23128. "titleNView": {
  23129. "buttons": [{
  23130. "text": "",
  23131. "fontSrc": "/static/uni.ttf",
  23132. "fontSize": "22px",
  23133. "color": "#FFFFFF"
  23134. }]
  23135. }
  23136. },
  23137. "component": true,
  23138. "usingComponents": {
  23139. "van-button": "/wxcomponents/weapp/dist/button/index",
  23140. "van-toast": "/wxcomponents/weapp/dist/toast/index",
  23141. "van-field": "/wxcomponents/weapp/dist/field/index",
  23142. "van-popup": "/wxcomponents/weapp/dist/popup/index",
  23143. "van-picker": "/wxcomponents/weapp/dist/picker/index",
  23144. "van-dialog": "/wxcomponents/weapp/dist/dialog/index",
  23145. "van-icon": "/wxcomponents/weapp/dist/icon/index",
  23146. "van-tab": "/wxcomponents/weapp/dist/tab/index",
  23147. "van-tabs": "/wxcomponents/weapp/dist/tabs/index",
  23148. "van-datetime-picker": "/wxcomponents/weapp/dist/datetime-picker/index",
  23149. "van-uploader": "/wxcomponents/weapp/dist/uploader/index",
  23150. "van-checkbox": "/wxcomponents/weapp/dist/checkbox/index",
  23151. "van-checkbox-group": "/wxcomponents/weapp/dist/checkbox-group/index"
  23152. }
  23153. }
  23154. }, {
  23155. "path": "minePages/feedback",
  23156. "style": {
  23157. "navigationBarTitleText": "我的反馈",
  23158. "enablePullDownRefresh": true,
  23159. "onReachBottomDistance": 100,
  23160. "app-plus": {
  23161. "bounce": "vertical",
  23162. "titleNView": {
  23163. "buttons": [{
  23164. "text": "",
  23165. "fontSrc": "/static/uni.ttf",
  23166. "fontSize": "22px",
  23167. "color": "#FFFFFF"
  23168. }]
  23169. }
  23170. },
  23171. "component": true,
  23172. "usingComponents": {
  23173. "van-button": "/wxcomponents/weapp/dist/button/index",
  23174. "van-toast": "/wxcomponents/weapp/dist/toast/index",
  23175. "van-field": "/wxcomponents/weapp/dist/field/index",
  23176. "van-picker": "/wxcomponents/weapp/dist/picker/index",
  23177. "van-dialog": "/wxcomponents/weapp/dist/dialog/index",
  23178. "van-icon": "/wxcomponents/weapp/dist/icon/index",
  23179. "van-tab": "/wxcomponents/weapp/dist/tab/index",
  23180. "van-tabs": "/wxcomponents/weapp/dist/tabs/index",
  23181. "van-datetime-picker": "/wxcomponents/weapp/dist/datetime-picker/index",
  23182. "van-uploader": "/wxcomponents/weapp/dist/uploader/index",
  23183. "van-checkbox": "/wxcomponents/weapp/dist/checkbox/index",
  23184. "van-checkbox-group": "/wxcomponents/weapp/dist/checkbox-group/index"
  23185. }
  23186. }
  23187. }, {
  23188. "path": "minePages/feedback_record",
  23189. "style": {
  23190. "navigationBarTitleText": "反馈记录",
  23191. "enablePullDownRefresh": true,
  23192. "onReachBottomDistance": 100,
  23193. "app-plus": {
  23194. "bounce": "vertical",
  23195. "titleNView": {
  23196. "buttons": [{
  23197. "text": "",
  23198. "fontSrc": "/static/uni.ttf",
  23199. "fontSize": "22px",
  23200. "color": "#FFFFFF"
  23201. }]
  23202. }
  23203. },
  23204. "component": true,
  23205. "usingComponents": {
  23206. "van-button": "/wxcomponents/weapp/dist/button/index",
  23207. "van-toast": "/wxcomponents/weapp/dist/toast/index",
  23208. "van-field": "/wxcomponents/weapp/dist/field/index",
  23209. "van-picker": "/wxcomponents/weapp/dist/picker/index",
  23210. "van-dialog": "/wxcomponents/weapp/dist/dialog/index",
  23211. "van-icon": "/wxcomponents/weapp/dist/icon/index",
  23212. "van-tab": "/wxcomponents/weapp/dist/tab/index",
  23213. "van-tabs": "/wxcomponents/weapp/dist/tabs/index",
  23214. "van-datetime-picker": "/wxcomponents/weapp/dist/datetime-picker/index",
  23215. "van-uploader": "/wxcomponents/weapp/dist/uploader/index",
  23216. "van-checkbox": "/wxcomponents/weapp/dist/checkbox/index",
  23217. "van-checkbox-group": "/wxcomponents/weapp/dist/checkbox-group/index"
  23218. }
  23219. }
  23220. }, {
  23221. "path": "minePages/feedback_detail",
  23222. "style": {
  23223. "navigationBarTitleText": "反馈详情",
  23224. "enablePullDownRefresh": true,
  23225. "onReachBottomDistance": 100,
  23226. "app-plus": {
  23227. "bounce": "vertical",
  23228. "titleNView": {
  23229. "buttons": [{
  23230. "text": "",
  23231. "fontSrc": "/static/uni.ttf",
  23232. "fontSize": "22px",
  23233. "color": "#FFFFFF"
  23234. }]
  23235. }
  23236. },
  23237. "component": true,
  23238. "usingComponents": {
  23239. "van-button": "/wxcomponents/weapp/dist/button/index",
  23240. "van-toast": "/wxcomponents/weapp/dist/toast/index",
  23241. "van-field": "/wxcomponents/weapp/dist/field/index",
  23242. "van-picker": "/wxcomponents/weapp/dist/picker/index",
  23243. "van-dialog": "/wxcomponents/weapp/dist/dialog/index",
  23244. "van-icon": "/wxcomponents/weapp/dist/icon/index",
  23245. "van-tab": "/wxcomponents/weapp/dist/tab/index",
  23246. "van-tabs": "/wxcomponents/weapp/dist/tabs/index",
  23247. "van-datetime-picker": "/wxcomponents/weapp/dist/datetime-picker/index",
  23248. "van-uploader": "/wxcomponents/weapp/dist/uploader/index",
  23249. "van-checkbox": "/wxcomponents/weapp/dist/checkbox/index",
  23250. "van-checkbox-group": "/wxcomponents/weapp/dist/checkbox-group/index"
  23251. }
  23252. }
  23253. }, {
  23254. "path": "minePages/myActivities",
  23255. "style": {
  23256. "navigationBarTitleText": "我的活动",
  23257. "enablePullDownRefresh": true,
  23258. "onReachBottomDistance": 100,
  23259. "app-plus": {
  23260. "bounce": "vertical",
  23261. "titleNView": {
  23262. "buttons": [{
  23263. "text": "",
  23264. "fontSrc": "/static/uni.ttf",
  23265. "fontSize": "22px",
  23266. "color": "#FFFFFF"
  23267. }]
  23268. }
  23269. },
  23270. "component": true,
  23271. "usingComponents": {
  23272. "van-button": "/wxcomponents/weapp/dist/button/index",
  23273. "van-toast": "/wxcomponents/weapp/dist/toast/index",
  23274. "van-field": "/wxcomponents/weapp/dist/field/index",
  23275. "van-picker": "/wxcomponents/weapp/dist/picker/index",
  23276. "van-dialog": "/wxcomponents/weapp/dist/dialog/index",
  23277. "van-icon": "/wxcomponents/weapp/dist/icon/index",
  23278. "van-tab": "/wxcomponents/weapp/dist/tab/index",
  23279. "van-tabs": "/wxcomponents/weapp/dist/tabs/index",
  23280. "van-datetime-picker": "/wxcomponents/weapp/dist/datetime-picker/index",
  23281. "van-uploader": "/wxcomponents/weapp/dist/uploader/index",
  23282. "van-checkbox": "/wxcomponents/weapp/dist/checkbox/index",
  23283. "van-checkbox-group": "/wxcomponents/weapp/dist/checkbox-group/index"
  23284. }
  23285. }
  23286. }, {
  23287. "path": "minePages/myCollection",
  23288. "style": {
  23289. "navigationBarTitleText": "我的收藏",
  23290. "enablePullDownRefresh": true,
  23291. "onReachBottomDistance": 100,
  23292. "app-plus": {
  23293. "bounce": "vertical",
  23294. "titleNView": {
  23295. "buttons": [{
  23296. "text": "",
  23297. "fontSrc": "/static/uni.ttf",
  23298. "fontSize": "22px",
  23299. "color": "#FFFFFF"
  23300. }]
  23301. }
  23302. },
  23303. "component": true,
  23304. "usingComponents": {
  23305. "van-button": "/wxcomponents/weapp/dist/button/index",
  23306. "van-toast": "/wxcomponents/weapp/dist/toast/index",
  23307. "van-field": "/wxcomponents/weapp/dist/field/index",
  23308. "van-picker": "/wxcomponents/weapp/dist/picker/index",
  23309. "van-dialog": "/wxcomponents/weapp/dist/dialog/index",
  23310. "van-icon": "/wxcomponents/weapp/dist/icon/index",
  23311. "van-tab": "/wxcomponents/weapp/dist/tab/index",
  23312. "van-tabs": "/wxcomponents/weapp/dist/tabs/index",
  23313. "van-datetime-picker": "/wxcomponents/weapp/dist/datetime-picker/index",
  23314. "van-uploader": "/wxcomponents/weapp/dist/uploader/index",
  23315. "van-checkbox": "/wxcomponents/weapp/dist/checkbox/index",
  23316. "van-checkbox-group": "/wxcomponents/weapp/dist/checkbox-group/index"
  23317. }
  23318. }
  23319. }, {
  23320. "path": "minePages/myOrder",
  23321. "style": {
  23322. "navigationBarTitleText": "我的订单",
  23323. "enablePullDownRefresh": true,
  23324. "onReachBottomDistance": 100,
  23325. "app-plus": {
  23326. "bounce": "vertical",
  23327. "titleNView": {
  23328. "buttons": [{
  23329. "text": "",
  23330. "fontSrc": "/static/uni.ttf",
  23331. "fontSize": "22px",
  23332. "color": "#FFFFFF"
  23333. }]
  23334. }
  23335. },
  23336. "component": true,
  23337. "usingComponents": {
  23338. "van-button": "/wxcomponents/weapp/dist/button/index",
  23339. "van-toast": "/wxcomponents/weapp/dist/toast/index",
  23340. "van-field": "/wxcomponents/weapp/dist/field/index",
  23341. "van-picker": "/wxcomponents/weapp/dist/picker/index",
  23342. "van-dialog": "/wxcomponents/weapp/dist/dialog/index",
  23343. "van-icon": "/wxcomponents/weapp/dist/icon/index",
  23344. "van-tab": "/wxcomponents/weapp/dist/tab/index",
  23345. "van-tabs": "/wxcomponents/weapp/dist/tabs/index",
  23346. "van-datetime-picker": "/wxcomponents/weapp/dist/datetime-picker/index",
  23347. "van-uploader": "/wxcomponents/weapp/dist/uploader/index",
  23348. "van-checkbox": "/wxcomponents/weapp/dist/checkbox/index",
  23349. "van-checkbox-group": "/wxcomponents/weapp/dist/checkbox-group/index"
  23350. }
  23351. }
  23352. }, {
  23353. "path": "peripheralService/index",
  23354. "style": {
  23355. "navigationBarTitleText": "周边服务",
  23356. "enablePullDownRefresh": true,
  23357. "onReachBottomDistance": 100,
  23358. "app-plus": {
  23359. "bounce": "vertical",
  23360. "titleNView": {
  23361. "buttons": [{
  23362. "text": "",
  23363. "fontSrc": "/static/uni.ttf",
  23364. "fontSize": "22px",
  23365. "color": "#FFFFFF"
  23366. }]
  23367. }
  23368. },
  23369. "component": true,
  23370. "usingComponents": {
  23371. "van-button": "/wxcomponents/weapp/dist/button/index",
  23372. "van-toast": "/wxcomponents/weapp/dist/toast/index",
  23373. "van-field": "/wxcomponents/weapp/dist/field/index",
  23374. "van-picker": "/wxcomponents/weapp/dist/picker/index",
  23375. "van-dialog": "/wxcomponents/weapp/dist/dialog/index",
  23376. "van-icon": "/wxcomponents/weapp/dist/icon/index",
  23377. "van-tab": "/wxcomponents/weapp/dist/tab/index",
  23378. "van-tabs": "/wxcomponents/weapp/dist/tabs/index",
  23379. "van-datetime-picker": "/wxcomponents/weapp/dist/datetime-picker/index",
  23380. "van-uploader": "/wxcomponents/weapp/dist/uploader/index",
  23381. "van-checkbox": "/wxcomponents/weapp/dist/checkbox/index",
  23382. "van-checkbox-group": "/wxcomponents/weapp/dist/checkbox-group/index"
  23383. }
  23384. }
  23385. }, {
  23386. "path": "peripheralService/detail",
  23387. "style": {
  23388. "navigationBarTitleText": "周边服务详情",
  23389. "enablePullDownRefresh": true,
  23390. "onReachBottomDistance": 100,
  23391. "app-plus": {
  23392. "bounce": "vertical",
  23393. "titleNView": {
  23394. "buttons": [{
  23395. "text": "",
  23396. "fontSrc": "/static/uni.ttf",
  23397. "fontSize": "22px",
  23398. "color": "#FFFFFF"
  23399. }]
  23400. }
  23401. },
  23402. "component": true,
  23403. "usingComponents": {
  23404. "van-button": "/wxcomponents/weapp/dist/button/index",
  23405. "van-toast": "/wxcomponents/weapp/dist/toast/index",
  23406. "van-field": "/wxcomponents/weapp/dist/field/index",
  23407. "van-picker": "/wxcomponents/weapp/dist/picker/index",
  23408. "van-dialog": "/wxcomponents/weapp/dist/dialog/index",
  23409. "van-icon": "/wxcomponents/weapp/dist/icon/index",
  23410. "van-tab": "/wxcomponents/weapp/dist/tab/index",
  23411. "van-tabs": "/wxcomponents/weapp/dist/tabs/index",
  23412. "van-datetime-picker": "/wxcomponents/weapp/dist/datetime-picker/index",
  23413. "van-uploader": "/wxcomponents/weapp/dist/uploader/index",
  23414. "van-checkbox": "/wxcomponents/weapp/dist/checkbox/index",
  23415. "van-checkbox-group": "/wxcomponents/weapp/dist/checkbox-group/index"
  23416. }
  23417. }
  23418. }, {
  23419. "path": "industrialPolicy/index",
  23420. "style": {
  23421. "navigationBarTitleText": "产业政策",
  23422. "enablePullDownRefresh": true,
  23423. "onReachBottomDistance": 100,
  23424. "app-plus": {
  23425. "bounce": "vertical",
  23426. "titleNView": {
  23427. "buttons": [{
  23428. "text": "",
  23429. "fontSrc": "/static/uni.ttf",
  23430. "fontSize": "22px",
  23431. "color": "#FFFFFF"
  23432. }]
  23433. }
  23434. },
  23435. "component": true,
  23436. "usingComponents": {
  23437. "van-button": "/wxcomponents/weapp/dist/button/index",
  23438. "van-toast": "/wxcomponents/weapp/dist/toast/index",
  23439. "van-field": "/wxcomponents/weapp/dist/field/index",
  23440. "van-picker": "/wxcomponents/weapp/dist/picker/index",
  23441. "van-dialog": "/wxcomponents/weapp/dist/dialog/index",
  23442. "van-icon": "/wxcomponents/weapp/dist/icon/index",
  23443. "van-tab": "/wxcomponents/weapp/dist/tab/index",
  23444. "van-tabs": "/wxcomponents/weapp/dist/tabs/index",
  23445. "van-datetime-picker": "/wxcomponents/weapp/dist/datetime-picker/index",
  23446. "van-uploader": "/wxcomponents/weapp/dist/uploader/index",
  23447. "van-checkbox": "/wxcomponents/weapp/dist/checkbox/index",
  23448. "van-checkbox-group": "/wxcomponents/weapp/dist/checkbox-group/index"
  23449. }
  23450. }
  23451. }, {
  23452. "path": "industrialPolicy/detail",
  23453. "style": {
  23454. "navigationBarTitleText": "产业政策详情",
  23455. "enablePullDownRefresh": true,
  23456. "onReachBottomDistance": 100,
  23457. "app-plus": {
  23458. "bounce": "vertical",
  23459. "titleNView": {
  23460. "buttons": [{
  23461. "text": "",
  23462. "fontSrc": "/static/uni.ttf",
  23463. "fontSize": "22px",
  23464. "color": "#FFFFFF"
  23465. }]
  23466. }
  23467. },
  23468. "component": true,
  23469. "usingComponents": {
  23470. "van-button": "/wxcomponents/weapp/dist/button/index",
  23471. "van-toast": "/wxcomponents/weapp/dist/toast/index",
  23472. "van-field": "/wxcomponents/weapp/dist/field/index",
  23473. "van-picker": "/wxcomponents/weapp/dist/picker/index",
  23474. "van-dialog": "/wxcomponents/weapp/dist/dialog/index",
  23475. "van-icon": "/wxcomponents/weapp/dist/icon/index",
  23476. "van-tab": "/wxcomponents/weapp/dist/tab/index",
  23477. "van-tabs": "/wxcomponents/weapp/dist/tabs/index",
  23478. "van-datetime-picker": "/wxcomponents/weapp/dist/datetime-picker/index",
  23479. "van-uploader": "/wxcomponents/weapp/dist/uploader/index",
  23480. "van-checkbox": "/wxcomponents/weapp/dist/checkbox/index",
  23481. "van-checkbox-group": "/wxcomponents/weapp/dist/checkbox-group/index"
  23482. }
  23483. }
  23484. }, {
  23485. "path": "surroundingReleases/index",
  23486. "style": {
  23487. "navigationBarTitleText": "周边发布",
  23488. "enablePullDownRefresh": true,
  23489. "onReachBottomDistance": 100,
  23490. "app-plus": {
  23491. "bounce": "vertical",
  23492. "titleNView": {
  23493. "buttons": [{
  23494. "text": "",
  23495. "fontSrc": "/static/uni.ttf",
  23496. "fontSize": "22px",
  23497. "color": "#FFFFFF"
  23498. }]
  23499. }
  23500. },
  23501. "component": true,
  23502. "usingComponents": {
  23503. "van-button": "/wxcomponents/weapp/dist/button/index",
  23504. "van-toast": "/wxcomponents/weapp/dist/toast/index",
  23505. "van-field": "/wxcomponents/weapp/dist/field/index",
  23506. "van-picker": "/wxcomponents/weapp/dist/picker/index",
  23507. "van-dialog": "/wxcomponents/weapp/dist/dialog/index",
  23508. "van-icon": "/wxcomponents/weapp/dist/icon/index",
  23509. "van-tab": "/wxcomponents/weapp/dist/tab/index",
  23510. "van-tabs": "/wxcomponents/weapp/dist/tabs/index",
  23511. "van-datetime-picker": "/wxcomponents/weapp/dist/datetime-picker/index",
  23512. "van-uploader": "/wxcomponents/weapp/dist/uploader/index",
  23513. "van-checkbox": "/wxcomponents/weapp/dist/checkbox/index",
  23514. "van-checkbox-group": "/wxcomponents/weapp/dist/checkbox-group/index"
  23515. }
  23516. }
  23517. }, {
  23518. "path": "surroundingReleases/editPage",
  23519. "style": {
  23520. "navigationBarTitleText": "编辑发布",
  23521. "enablePullDownRefresh": true,
  23522. "onReachBottomDistance": 100,
  23523. "app-plus": {
  23524. "bounce": "vertical",
  23525. "titleNView": {
  23526. "buttons": [{
  23527. "text": "",
  23528. "fontSrc": "/static/uni.ttf",
  23529. "fontSize": "22px",
  23530. "color": "#FFFFFF"
  23531. }]
  23532. }
  23533. },
  23534. "component": true,
  23535. "usingComponents": {
  23536. "van-button": "/wxcomponents/weapp/dist/button/index",
  23537. "van-toast": "/wxcomponents/weapp/dist/toast/index",
  23538. "van-field": "/wxcomponents/weapp/dist/field/index",
  23539. "van-picker": "/wxcomponents/weapp/dist/picker/index",
  23540. "van-dialog": "/wxcomponents/weapp/dist/dialog/index",
  23541. "van-icon": "/wxcomponents/weapp/dist/icon/index",
  23542. "van-tab": "/wxcomponents/weapp/dist/tab/index",
  23543. "van-tabs": "/wxcomponents/weapp/dist/tabs/index",
  23544. "van-datetime-picker": "/wxcomponents/weapp/dist/datetime-picker/index",
  23545. "van-uploader": "/wxcomponents/weapp/dist/uploader/index",
  23546. "van-checkbox": "/wxcomponents/weapp/dist/checkbox/index",
  23547. "van-checkbox-group": "/wxcomponents/weapp/dist/checkbox-group/index"
  23548. }
  23549. }
  23550. }, {
  23551. "path": "resourceReservation_manage/index",
  23552. "style": {
  23553. "navigationBarTitleText": "资源预约",
  23554. "enablePullDownRefresh": true,
  23555. "onReachBottomDistance": 100,
  23556. "app-plus": {
  23557. "bounce": "vertical",
  23558. "titleNView": {
  23559. "buttons": [{
  23560. "text": "",
  23561. "fontSrc": "/static/uni.ttf",
  23562. "fontSize": "22px",
  23563. "color": "#FFFFFF"
  23564. }]
  23565. }
  23566. },
  23567. "component": true,
  23568. "usingComponents": {
  23569. "van-button": "/wxcomponents/weapp/dist/button/index",
  23570. "van-toast": "/wxcomponents/weapp/dist/toast/index",
  23571. "van-field": "/wxcomponents/weapp/dist/field/index",
  23572. "van-picker": "/wxcomponents/weapp/dist/picker/index",
  23573. "van-dialog": "/wxcomponents/weapp/dist/dialog/index",
  23574. "van-icon": "/wxcomponents/weapp/dist/icon/index",
  23575. "van-tab": "/wxcomponents/weapp/dist/tab/index",
  23576. "van-tabs": "/wxcomponents/weapp/dist/tabs/index",
  23577. "van-datetime-picker": "/wxcomponents/weapp/dist/datetime-picker/index",
  23578. "van-uploader": "/wxcomponents/weapp/dist/uploader/index",
  23579. "van-checkbox": "/wxcomponents/weapp/dist/checkbox/index",
  23580. "van-checkbox-group": "/wxcomponents/weapp/dist/checkbox-group/index"
  23581. }
  23582. }
  23583. }, {
  23584. "path": "resourceReservation_manage/detail",
  23585. "style": {
  23586. "navigationBarTitleText": "会议室详情",
  23587. "enablePullDownRefresh": true,
  23588. "onReachBottomDistance": 100,
  23589. "app-plus": {
  23590. "bounce": "vertical",
  23591. "titleNView": {
  23592. "buttons": [{
  23593. "text": "",
  23594. "fontSrc": "/static/uni.ttf",
  23595. "fontSize": "22px",
  23596. "color": "#FFFFFF"
  23597. }]
  23598. }
  23599. },
  23600. "component": true,
  23601. "usingComponents": {
  23602. "van-button": "/wxcomponents/weapp/dist/button/index",
  23603. "van-toast": "/wxcomponents/weapp/dist/toast/index",
  23604. "van-field": "/wxcomponents/weapp/dist/field/index",
  23605. "van-picker": "/wxcomponents/weapp/dist/picker/index",
  23606. "van-dialog": "/wxcomponents/weapp/dist/dialog/index",
  23607. "van-icon": "/wxcomponents/weapp/dist/icon/index",
  23608. "van-tab": "/wxcomponents/weapp/dist/tab/index",
  23609. "van-tabs": "/wxcomponents/weapp/dist/tabs/index",
  23610. "van-datetime-picker": "/wxcomponents/weapp/dist/datetime-picker/index",
  23611. "van-uploader": "/wxcomponents/weapp/dist/uploader/index",
  23612. "van-checkbox": "/wxcomponents/weapp/dist/checkbox/index",
  23613. "van-checkbox-group": "/wxcomponents/weapp/dist/checkbox-group/index"
  23614. }
  23615. }
  23616. }, {
  23617. "path": "resourceReservation_manage/add",
  23618. "style": {
  23619. "navigationBarTitleText": "新增预约",
  23620. "enablePullDownRefresh": true,
  23621. "onReachBottomDistance": 100,
  23622. "app-plus": {
  23623. "bounce": "vertical",
  23624. "titleNView": {
  23625. "buttons": [{
  23626. "text": "",
  23627. "fontSrc": "/static/uni.ttf",
  23628. "fontSize": "22px",
  23629. "color": "#FFFFFF"
  23630. }]
  23631. }
  23632. },
  23633. "component": true,
  23634. "usingComponents": {
  23635. "van-button": "/wxcomponents/weapp/dist/button/index",
  23636. "van-toast": "/wxcomponents/weapp/dist/toast/index",
  23637. "van-field": "/wxcomponents/weapp/dist/field/index",
  23638. "van-picker": "/wxcomponents/weapp/dist/picker/index",
  23639. "van-dialog": "/wxcomponents/weapp/dist/dialog/index",
  23640. "van-icon": "/wxcomponents/weapp/dist/icon/index",
  23641. "van-tab": "/wxcomponents/weapp/dist/tab/index",
  23642. "van-tabs": "/wxcomponents/weapp/dist/tabs/index",
  23643. "van-datetime-picker": "/wxcomponents/weapp/dist/datetime-picker/index",
  23644. "van-uploader": "/wxcomponents/weapp/dist/uploader/index",
  23645. "van-checkbox": "/wxcomponents/weapp/dist/checkbox/index",
  23646. "van-checkbox-group": "/wxcomponents/weapp/dist/checkbox-group/index"
  23647. }
  23648. }
  23649. }, {
  23650. "path": "resourceReservation_manage/edit",
  23651. "style": {
  23652. "navigationBarTitleText": "编辑预约",
  23653. "enablePullDownRefresh": true,
  23654. "onReachBottomDistance": 100,
  23655. "app-plus": {
  23656. "bounce": "vertical",
  23657. "titleNView": {
  23658. "buttons": [{
  23659. "text": "",
  23660. "fontSrc": "/static/uni.ttf",
  23661. "fontSize": "22px",
  23662. "color": "#FFFFFF"
  23663. }]
  23664. }
  23665. },
  23666. "component": true,
  23667. "usingComponents": {
  23668. "van-button": "/wxcomponents/weapp/dist/button/index",
  23669. "van-toast": "/wxcomponents/weapp/dist/toast/index",
  23670. "van-field": "/wxcomponents/weapp/dist/field/index",
  23671. "van-picker": "/wxcomponents/weapp/dist/picker/index",
  23672. "van-dialog": "/wxcomponents/weapp/dist/dialog/index",
  23673. "van-icon": "/wxcomponents/weapp/dist/icon/index",
  23674. "van-tab": "/wxcomponents/weapp/dist/tab/index",
  23675. "van-tabs": "/wxcomponents/weapp/dist/tabs/index",
  23676. "van-datetime-picker": "/wxcomponents/weapp/dist/datetime-picker/index",
  23677. "van-uploader": "/wxcomponents/weapp/dist/uploader/index",
  23678. "van-checkbox": "/wxcomponents/weapp/dist/checkbox/index",
  23679. "van-checkbox-group": "/wxcomponents/weapp/dist/checkbox-group/index"
  23680. }
  23681. }
  23682. }, {
  23683. "path": "propertyManagement/maintenance",
  23684. "style": {
  23685. "navigationBarTitleText": "房源维护",
  23686. "enablePullDownRefresh": true,
  23687. "onReachBottomDistance": 100,
  23688. "app-plus": {
  23689. "bounce": "vertical",
  23690. "titleNView": {
  23691. "buttons": [{
  23692. "text": "",
  23693. "fontSrc": "/static/uni.ttf",
  23694. "fontSize": "22px",
  23695. "color": "#FFFFFF"
  23696. }]
  23697. }
  23698. },
  23699. "component": true,
  23700. "usingComponents": {
  23701. "van-button": "/wxcomponents/weapp/dist/button/index",
  23702. "van-toast": "/wxcomponents/weapp/dist/toast/index",
  23703. "van-field": "/wxcomponents/weapp/dist/field/index",
  23704. "van-picker": "/wxcomponents/weapp/dist/picker/index",
  23705. "van-dialog": "/wxcomponents/weapp/dist/dialog/index",
  23706. "van-icon": "/wxcomponents/weapp/dist/icon/index",
  23707. "van-tab": "/wxcomponents/weapp/dist/tab/index",
  23708. "van-tabs": "/wxcomponents/weapp/dist/tabs/index",
  23709. "van-datetime-picker": "/wxcomponents/weapp/dist/datetime-picker/index",
  23710. "van-uploader": "/wxcomponents/weapp/dist/uploader/index",
  23711. "van-checkbox": "/wxcomponents/weapp/dist/checkbox/index",
  23712. "van-checkbox-group": "/wxcomponents/weapp/dist/checkbox-group/index"
  23713. }
  23714. }
  23715. }, {
  23716. "path": "propertyManagement/propertyEditor",
  23717. "style": {
  23718. "navigationBarTitleText": "房源编辑",
  23719. "enablePullDownRefresh": true,
  23720. "onReachBottomDistance": 100,
  23721. "app-plus": {
  23722. "bounce": "vertical",
  23723. "titleNView": {
  23724. "buttons": [{
  23725. "text": "",
  23726. "fontSrc": "/static/uni.ttf",
  23727. "fontSize": "22px",
  23728. "color": "#FFFFFF"
  23729. }]
  23730. }
  23731. },
  23732. "component": true,
  23733. "usingComponents": {
  23734. "van-button": "/wxcomponents/weapp/dist/button/index",
  23735. "van-toast": "/wxcomponents/weapp/dist/toast/index",
  23736. "van-field": "/wxcomponents/weapp/dist/field/index",
  23737. "van-picker": "/wxcomponents/weapp/dist/picker/index",
  23738. "van-dialog": "/wxcomponents/weapp/dist/dialog/index",
  23739. "van-icon": "/wxcomponents/weapp/dist/icon/index",
  23740. "van-tab": "/wxcomponents/weapp/dist/tab/index",
  23741. "van-tabs": "/wxcomponents/weapp/dist/tabs/index",
  23742. "van-datetime-picker": "/wxcomponents/weapp/dist/datetime-picker/index",
  23743. "van-uploader": "/wxcomponents/weapp/dist/uploader/index",
  23744. "van-checkbox": "/wxcomponents/weapp/dist/checkbox/index",
  23745. "van-checkbox-group": "/wxcomponents/weapp/dist/checkbox-group/index",
  23746. "van-cascader": "/wxcomponents/weapp/dist/cascader/index"
  23747. }
  23748. }
  23749. }, {
  23750. "path": "serviceEvaluation/index",
  23751. "style": {
  23752. "navigationBarTitleText": "服务评价",
  23753. "enablePullDownRefresh": true,
  23754. "onReachBottomDistance": 100,
  23755. "app-plus": {
  23756. "bounce": "vertical",
  23757. "titleNView": {
  23758. "buttons": [{
  23759. "text": "",
  23760. "fontSrc": "/static/uni.ttf",
  23761. "fontSize": "22px",
  23762. "color": "#FFFFFF"
  23763. }]
  23764. }
  23765. },
  23766. "component": true,
  23767. "usingComponents": {
  23768. "van-button": "/wxcomponents/weapp/dist/button/index",
  23769. "van-toast": "/wxcomponents/weapp/dist/toast/index",
  23770. "van-field": "/wxcomponents/weapp/dist/field/index",
  23771. "van-picker": "/wxcomponents/weapp/dist/picker/index",
  23772. "van-dialog": "/wxcomponents/weapp/dist/dialog/index",
  23773. "van-icon": "/wxcomponents/weapp/dist/icon/index",
  23774. "van-tab": "/wxcomponents/weapp/dist/tab/index",
  23775. "van-tabs": "/wxcomponents/weapp/dist/tabs/index",
  23776. "van-datetime-picker": "/wxcomponents/weapp/dist/datetime-picker/index",
  23777. "van-uploader": "/wxcomponents/weapp/dist/uploader/index",
  23778. "van-checkbox": "/wxcomponents/weapp/dist/checkbox/index",
  23779. "van-checkbox-group": "/wxcomponents/weapp/dist/checkbox-group/index"
  23780. }
  23781. }
  23782. }, {
  23783. "path": "housingResources/index",
  23784. "style": {
  23785. "navigationBarTitleText": "园区房源",
  23786. "enablePullDownRefresh": true,
  23787. "onReachBottomDistance": 100,
  23788. "app-plus": {
  23789. "bounce": "vertical",
  23790. "titleNView": {
  23791. "buttons": [{
  23792. "text": "",
  23793. "fontSrc": "/static/uni.ttf",
  23794. "fontSize": "22px",
  23795. "color": "#FFFFFF"
  23796. }]
  23797. }
  23798. },
  23799. "component": true,
  23800. "usingComponents": {
  23801. "van-button": "/wxcomponents/weapp/dist/button/index",
  23802. "van-toast": "/wxcomponents/weapp/dist/toast/index",
  23803. "van-field": "/wxcomponents/weapp/dist/field/index",
  23804. "van-picker": "/wxcomponents/weapp/dist/picker/index",
  23805. "van-dialog": "/wxcomponents/weapp/dist/dialog/index",
  23806. "van-icon": "/wxcomponents/weapp/dist/icon/index",
  23807. "van-tab": "/wxcomponents/weapp/dist/tab/index",
  23808. "van-tabs": "/wxcomponents/weapp/dist/tabs/index",
  23809. "van-datetime-picker": "/wxcomponents/weapp/dist/datetime-picker/index",
  23810. "van-uploader": "/wxcomponents/weapp/dist/uploader/index",
  23811. "van-checkbox": "/wxcomponents/weapp/dist/checkbox/index",
  23812. "van-checkbox-group": "/wxcomponents/weapp/dist/checkbox-group/index"
  23813. }
  23814. }
  23815. }, {
  23816. "path": "housingResources/detail",
  23817. "style": {
  23818. "navigationBarTitleText": "房源详情",
  23819. "enablePullDownRefresh": true,
  23820. "onReachBottomDistance": 100,
  23821. "app-plus": {
  23822. "bounce": "vertical",
  23823. "titleNView": {
  23824. "buttons": [{
  23825. "text": "",
  23826. "fontSrc": "/static/uni.ttf",
  23827. "fontSize": "22px",
  23828. "color": "#FFFFFF"
  23829. }]
  23830. }
  23831. },
  23832. "component": true,
  23833. "usingComponents": {
  23834. "van-button": "/wxcomponents/weapp/dist/button/index",
  23835. "van-toast": "/wxcomponents/weapp/dist/toast/index",
  23836. "van-field": "/wxcomponents/weapp/dist/field/index",
  23837. "van-picker": "/wxcomponents/weapp/dist/picker/index",
  23838. "van-dialog": "/wxcomponents/weapp/dist/dialog/index",
  23839. "van-icon": "/wxcomponents/weapp/dist/icon/index",
  23840. "van-tab": "/wxcomponents/weapp/dist/tab/index",
  23841. "van-tabs": "/wxcomponents/weapp/dist/tabs/index",
  23842. "van-datetime-picker": "/wxcomponents/weapp/dist/datetime-picker/index",
  23843. "van-uploader": "/wxcomponents/weapp/dist/uploader/index",
  23844. "van-checkbox": "/wxcomponents/weapp/dist/checkbox/index",
  23845. "van-checkbox-group": "/wxcomponents/weapp/dist/checkbox-group/index",
  23846. "van-swipe-cell": "/wxcomponents/weapp/dist/swipe-cell/index"
  23847. }
  23848. }
  23849. }, {
  23850. "path": "housingResources/addPredetermine",
  23851. "style": {
  23852. "navigationBarTitleText": "新增预定",
  23853. "enablePullDownRefresh": true,
  23854. "onReachBottomDistance": 100,
  23855. "app-plus": {
  23856. "bounce": "vertical",
  23857. "titleNView": {
  23858. "buttons": [{
  23859. "text": "",
  23860. "fontSrc": "/static/uni.ttf",
  23861. "fontSize": "22px",
  23862. "color": "#FFFFFF"
  23863. }]
  23864. }
  23865. },
  23866. "component": true,
  23867. "usingComponents": {
  23868. "van-button": "/wxcomponents/weapp/dist/button/index",
  23869. "van-toast": "/wxcomponents/weapp/dist/toast/index",
  23870. "van-field": "/wxcomponents/weapp/dist/field/index",
  23871. "van-picker": "/wxcomponents/weapp/dist/picker/index",
  23872. "van-dialog": "/wxcomponents/weapp/dist/dialog/index",
  23873. "van-icon": "/wxcomponents/weapp/dist/icon/index",
  23874. "van-tab": "/wxcomponents/weapp/dist/tab/index",
  23875. "van-tabs": "/wxcomponents/weapp/dist/tabs/index",
  23876. "van-datetime-picker": "/wxcomponents/weapp/dist/datetime-picker/index",
  23877. "van-uploader": "/wxcomponents/weapp/dist/uploader/index",
  23878. "van-checkbox": "/wxcomponents/weapp/dist/checkbox/index",
  23879. "van-checkbox-group": "/wxcomponents/weapp/dist/checkbox-group/index",
  23880. "van-swipe-cell": "/wxcomponents/weapp/dist/swipe-cell/index"
  23881. }
  23882. }
  23883. }, {
  23884. "path": "aboutThePark/index",
  23885. "style": {
  23886. "navigationBarTitleText": "关于园区",
  23887. "enablePullDownRefresh": true,
  23888. "onReachBottomDistance": 100,
  23889. "app-plus": {
  23890. "bounce": "vertical",
  23891. "titleNView": {
  23892. "buttons": [{
  23893. "text": "",
  23894. "fontSrc": "/static/uni.ttf",
  23895. "fontSize": "22px",
  23896. "color": "#FFFFFF"
  23897. }]
  23898. }
  23899. },
  23900. "component": true,
  23901. "usingComponents": {
  23902. "van-button": "/wxcomponents/weapp/dist/button/index",
  23903. "van-toast": "/wxcomponents/weapp/dist/toast/index",
  23904. "van-field": "/wxcomponents/weapp/dist/field/index",
  23905. "van-picker": "/wxcomponents/weapp/dist/picker/index",
  23906. "van-dialog": "/wxcomponents/weapp/dist/dialog/index",
  23907. "van-icon": "/wxcomponents/weapp/dist/icon/index",
  23908. "van-tab": "/wxcomponents/weapp/dist/tab/index",
  23909. "van-tabs": "/wxcomponents/weapp/dist/tabs/index",
  23910. "van-datetime-picker": "/wxcomponents/weapp/dist/datetime-picker/index",
  23911. "van-uploader": "/wxcomponents/weapp/dist/uploader/index",
  23912. "van-checkbox": "/wxcomponents/weapp/dist/checkbox/index",
  23913. "van-checkbox-group": "/wxcomponents/weapp/dist/checkbox-group/index",
  23914. "van-swipe-cell": "/wxcomponents/weapp/dist/swipe-cell/index"
  23915. }
  23916. }
  23917. }, {
  23918. "path": "todo/resourceReview",
  23919. "style": {
  23920. "navigationBarTitleText": "资源预约审核",
  23921. "enablePullDownRefresh": true,
  23922. "onReachBottomDistance": 100,
  23923. "app-plus": {
  23924. "bounce": "vertical",
  23925. "titleNView": {
  23926. "buttons": [{
  23927. "text": "",
  23928. "fontSrc": "/static/uni.ttf",
  23929. "fontSize": "22px",
  23930. "color": "#FFFFFF"
  23931. }]
  23932. }
  23933. },
  23934. "component": true,
  23935. "usingComponents": {
  23936. "van-button": "/wxcomponents/weapp/dist/button/index",
  23937. "van-toast": "/wxcomponents/weapp/dist/toast/index",
  23938. "van-field": "/wxcomponents/weapp/dist/field/index",
  23939. "van-picker": "/wxcomponents/weapp/dist/picker/index",
  23940. "van-dialog": "/wxcomponents/weapp/dist/dialog/index",
  23941. "van-icon": "/wxcomponents/weapp/dist/icon/index",
  23942. "van-tab": "/wxcomponents/weapp/dist/tab/index",
  23943. "van-tabs": "/wxcomponents/weapp/dist/tabs/index",
  23944. "van-datetime-picker": "/wxcomponents/weapp/dist/datetime-picker/index",
  23945. "van-uploader": "/wxcomponents/weapp/dist/uploader/index",
  23946. "van-checkbox": "/wxcomponents/weapp/dist/checkbox/index",
  23947. "van-checkbox-group": "/wxcomponents/weapp/dist/checkbox-group/index",
  23948. "van-swipe-cell": "/wxcomponents/weapp/dist/swipe-cell/index"
  23949. }
  23950. }
  23951. }, {
  23952. "path": "minePages/registrationDetails",
  23953. "style": {
  23954. "navigationBarTitleText": "报名详情",
  23955. "enablePullDownRefresh": true,
  23956. "onReachBottomDistance": 100,
  23957. "app-plus": {
  23958. "bounce": "vertical",
  23959. "titleNView": {
  23960. "buttons": [{
  23961. "text": "",
  23962. "fontSrc": "/static/uni.ttf",
  23963. "fontSize": "22px",
  23964. "color": "#FFFFFF"
  23965. }]
  23966. }
  23967. },
  23968. "component": true,
  23969. "usingComponents": {
  23970. "van-button": "/wxcomponents/weapp/dist/button/index",
  23971. "van-toast": "/wxcomponents/weapp/dist/toast/index",
  23972. "van-field": "/wxcomponents/weapp/dist/field/index",
  23973. "van-picker": "/wxcomponents/weapp/dist/picker/index",
  23974. "van-dialog": "/wxcomponents/weapp/dist/dialog/index",
  23975. "van-icon": "/wxcomponents/weapp/dist/icon/index",
  23976. "van-tab": "/wxcomponents/weapp/dist/tab/index",
  23977. "van-tabs": "/wxcomponents/weapp/dist/tabs/index",
  23978. "van-datetime-picker": "/wxcomponents/weapp/dist/datetime-picker/index",
  23979. "van-uploader": "/wxcomponents/weapp/dist/uploader/index",
  23980. "van-checkbox": "/wxcomponents/weapp/dist/checkbox/index",
  23981. "van-checkbox-group": "/wxcomponents/weapp/dist/checkbox-group/index",
  23982. "van-swipe-cell": "/wxcomponents/weapp/dist/swipe-cell/index"
  23983. }
  23984. }
  23985. }, {
  23986. "path": "economicDevelopmentReport/detail",
  23987. "style": {
  23988. "navigationBarTitleText": "填报详情",
  23989. "enablePullDownRefresh": true,
  23990. "onReachBottomDistance": 100,
  23991. "app-plus": {
  23992. "bounce": "vertical",
  23993. "titleNView": {
  23994. "buttons": [{
  23995. "text": "",
  23996. "fontSrc": "/static/uni.ttf",
  23997. "fontSize": "22px",
  23998. "color": "#FFFFFF"
  23999. }]
  24000. }
  24001. },
  24002. "component": true,
  24003. "usingComponents": {
  24004. "van-button": "/wxcomponents/weapp/dist/button/index",
  24005. "van-toast": "/wxcomponents/weapp/dist/toast/index",
  24006. "van-field": "/wxcomponents/weapp/dist/field/index",
  24007. "van-picker": "/wxcomponents/weapp/dist/picker/index",
  24008. "van-dialog": "/wxcomponents/weapp/dist/dialog/index",
  24009. "van-icon": "/wxcomponents/weapp/dist/icon/index",
  24010. "van-tab": "/wxcomponents/weapp/dist/tab/index",
  24011. "van-tabs": "/wxcomponents/weapp/dist/tabs/index",
  24012. "van-datetime-picker": "/wxcomponents/weapp/dist/datetime-picker/index",
  24013. "van-uploader": "/wxcomponents/weapp/dist/uploader/index",
  24014. "van-checkbox": "/wxcomponents/weapp/dist/checkbox/index",
  24015. "van-checkbox-group": "/wxcomponents/weapp/dist/checkbox-group/index",
  24016. "van-swipe-cell": "/wxcomponents/weapp/dist/swipe-cell/index"
  24017. }
  24018. }
  24019. }],
  24020. "network": "all"
  24021. }],
  24022. "globalStyle": {
  24023. "pageOrientation": "portrait",
  24024. "navigationBarTitleText": "Hello uniapp",
  24025. "navigationBarTextStyle": "black",
  24026. "navigationBarBackgroundColor": "#FFFFFF",
  24027. "backgroundColor": "#FFFFFF",
  24028. "backgroundColorTop": "#FFFFFF",
  24029. "backgroundColorBottom": "#F4F5F6",
  24030. "usingComponents": {
  24031. "van-dropdown-menu": "/wxcomponents/weapp/dist/dropdown-menu/index",
  24032. "van-dropdown-item": "/wxcomponents/weapp/dist/dropdown-item/index",
  24033. "van-action-sheet": "/wxcomponents/weapp/dist/action-sheet/index",
  24034. "van-area": "/wxcomponents/weapp/dist/area/index",
  24035. "van-button": "/wxcomponents/weapp/dist/button/index",
  24036. "van-card": "/wxcomponents/weapp/dist/card/index",
  24037. "van-cell": "/wxcomponents/weapp/dist/cell/index",
  24038. "van-cell-group": "/wxcomponents/weapp/dist/cell-group/index",
  24039. "van-checkbox": "/wxcomponents/weapp/dist/checkbox/index",
  24040. "van-checkbox-group": "/wxcomponents/weapp/dist/checkbox-group/index",
  24041. "van-col": "/wxcomponents/weapp/dist/col/index",
  24042. "van-dialog": "/wxcomponents/weapp/dist/dialog/index",
  24043. "van-field": "/wxcomponents/weapp/dist/field/index",
  24044. "van-goods-action": "/wxcomponents/weapp/dist/goods-action/index",
  24045. "van-goods-action-icon": "/wxcomponents/weapp/dist/goods-action-icon/index",
  24046. "van-goods-action-button": "/wxcomponents/weapp/dist/goods-action-button/index",
  24047. "van-icon": "/wxcomponents/weapp/dist/icon/index",
  24048. "van-loading": "/wxcomponents/weapp/dist/loading/index",
  24049. "van-nav-bar": "/wxcomponents/weapp/dist/nav-bar/index",
  24050. "van-notice-bar": "/wxcomponents/weapp/dist/notice-bar/index",
  24051. "van-notify": "/wxcomponents/weapp/dist/notify/index",
  24052. "van-panel": "/wxcomponents/weapp/dist/panel/index",
  24053. "van-popup": "/wxcomponents/weapp/dist/popup/index",
  24054. "van-progress": "/wxcomponents/weapp/dist/progress/index",
  24055. "van-radio": "/wxcomponents/weapp/dist/radio/index",
  24056. "van-radio-group": "/wxcomponents/weapp/dist/radio-group/index",
  24057. "van-row": "/wxcomponents/weapp/dist/row/index",
  24058. "van-search": "/wxcomponents/weapp/dist/search/index",
  24059. "van-slider": "/wxcomponents/weapp/dist/slider/index",
  24060. "van-stepper": "/wxcomponents/weapp/dist/stepper/index",
  24061. "van-sticky": "/wxcomponents/weapp/dist/sticky/index",
  24062. "van-steps": "/wxcomponents/weapp/dist/steps/index",
  24063. "van-submit-bar": "/wxcomponents/weapp/dist/submit-bar/index",
  24064. "van-swipe-cell": "/wxcomponents/weapp/dist/swipe-cell/index",
  24065. "van-switch": "/wxcomponents/weapp/dist/switch/index",
  24066. "van-tab": "/wxcomponents/weapp/dist/tab/index",
  24067. "van-tabs": "/wxcomponents/weapp/dist/tabs/index",
  24068. "van-tabbar": "/wxcomponents/weapp/dist/tabbar/index",
  24069. "van-tabbar-item": "/wxcomponents/weapp/dist/tabbar-item/index",
  24070. "van-tag": "/wxcomponents/weapp/dist/tag/index",
  24071. "van-toast": "/wxcomponents/weapp/dist/toast/index",
  24072. "van-transition": "/wxcomponents/weapp/dist/transition/index",
  24073. "van-tree-select": "/wxcomponents/weapp/dist/tree-select/index",
  24074. "van-datetime-picker": "/wxcomponents/weapp/dist/datetime-picker/index",
  24075. "van-rate": "/wxcomponents/weapp/dist/rate/index",
  24076. "van-collapse": "/wxcomponents/weapp/dist/collapse/index",
  24077. "van-collapse-item": "/wxcomponents/weapp/dist/collapse-item/index",
  24078. "van-picker": "/wxcomponents/weapp/dist/picker/index",
  24079. "van-share-sheet": "/wxcomponents/weapp/dist/share-sheet/index",
  24080. "van-circle": "/wxcomponents/weapp/dist/circle/index",
  24081. "van-grid": "/wxcomponents/weapp/dist/grid/index",
  24082. "van-calendar": "/wxcomponents/weapp/dist/calendar/index"
  24083. }
  24084. },
  24085. "tabBar": {
  24086. "color": "#7A7E83",
  24087. "selectedColor": "#2527AA",
  24088. "borderStyle": "black",
  24089. "enablePullDownRefresh": true,
  24090. "backgroundColor": "#F8F8F8",
  24091. "list": [{
  24092. "pagePath": "pages/index/index",
  24093. "iconPath": "static/home.png",
  24094. "selectedIconPath": "static/homeselect.png",
  24095. "text": "首页",
  24096. "enablePullDownRefresh": true,
  24097. "onReachBottomDistance": 100
  24098. }, {
  24099. "pagePath": "pages/mine/mine",
  24100. "iconPath": "static/mine.png",
  24101. "selectedIconPath": "static/mineselect.png",
  24102. "text": "我的"
  24103. }]
  24104. },
  24105. "window": {
  24106. "backgroundTextStyle": "dark",
  24107. "navigationBarBackgroundColor": "#ffffff",
  24108. "navigationBarTitleText": "Demo",
  24109. "navigationBarTextStyle": "black",
  24110. "enablePullDownRefresh": true
  24111. },
  24112. "lazyCodeLoading": "requiredComponents"
  24113. };
  24114. exports.default = _default;
  24115. /***/ }),
  24116. /***/ 39:
  24117. /*!********************************************************************!*\
  24118. !*** /Users/chenpengming/代码/product_wx/pages.json?{"type":"stat"} ***!
  24119. \********************************************************************/
  24120. /*! no static exports found */
  24121. /***/ (function(module, exports, __webpack_require__) {
  24122. "use strict";
  24123. Object.defineProperty(exports, "__esModule", {
  24124. value: true
  24125. });
  24126. exports.default = void 0;
  24127. var _default = {
  24128. "appid": "__UNI__E97C301"
  24129. };
  24130. exports.default = _default;
  24131. /***/ }),
  24132. /***/ 4:
  24133. /*!**********************************************************************!*\
  24134. !*** ./node_modules/@babel/runtime/helpers/interopRequireDefault.js ***!
  24135. \**********************************************************************/
  24136. /*! no static exports found */
  24137. /***/ (function(module, exports) {
  24138. function _interopRequireDefault(obj) {
  24139. return obj && obj.__esModule ? obj : {
  24140. "default": obj
  24141. };
  24142. }
  24143. module.exports = _interopRequireDefault, module.exports.__esModule = true, module.exports["default"] = module.exports;
  24144. /***/ }),
  24145. /***/ 40:
  24146. /*!*********************************************************************!*\
  24147. !*** /Users/chenpengming/代码/product_wx/pages.json?{"type":"style"} ***!
  24148. \*********************************************************************/
  24149. /*! no static exports found */
  24150. /***/ (function(module, exports, __webpack_require__) {
  24151. "use strict";
  24152. Object.defineProperty(exports, "__esModule", {
  24153. value: true
  24154. });
  24155. exports.default = void 0;
  24156. var _default = {
  24157. "pages": [{
  24158. "path": "pages/index/index",
  24159. "onReachBottomDistance": 100,
  24160. "style": {
  24161. "enablePullDownRefresh": true,
  24162. "navigationBarTitleText": "首页"
  24163. },
  24164. "usingComponents": {
  24165. "van-button": "/wxcomponents/weapp/dist/button/index",
  24166. "van-toast": "/wxcomponents/weapp/dist/toast/index",
  24167. "van-field": "/wxcomponents/weapp/dist/field/index",
  24168. "van-popup": "/wxcomponents/weapp/dist/popup/index",
  24169. "van-picker": "/wxcomponents/weapp/dist/picker/index",
  24170. "van-dialog": "/wxcomponents/weapp/dist/dialog/index"
  24171. }
  24172. }, {
  24173. "path": "pages/login/login",
  24174. "style": {
  24175. "navigationBarTitleText": "登录",
  24176. "app-plus": {
  24177. "titleNView": {
  24178. "buttons": [{
  24179. "text": "",
  24180. "fontSrc": "/static/uni.ttf",
  24181. "fontSize": "22px",
  24182. "color": "#FFFFFF"
  24183. }]
  24184. }
  24185. },
  24186. "usingComponents": {
  24187. "van-button": "/wxcomponents/weapp/dist/button/index",
  24188. "van-toast": "/wxcomponents/weapp/dist/toast/index",
  24189. "van-field": "/wxcomponents/weapp/dist/field/index",
  24190. "van-popup": "/wxcomponents/weapp/dist/popup/index",
  24191. "van-picker": "/wxcomponents/weapp/dist/picker/index",
  24192. "van-dialog": "/wxcomponents/weapp/dist/dialog/index"
  24193. }
  24194. }
  24195. }, {
  24196. "path": "pages/login2/login",
  24197. "style": {
  24198. "navigationBarTitleText": "登录",
  24199. "app-plus": {
  24200. "titleNView": {
  24201. "buttons": [{
  24202. "text": "",
  24203. "fontSrc": "/static/uni.ttf",
  24204. "fontSize": "22px",
  24205. "color": "#FFFFFF"
  24206. }]
  24207. }
  24208. },
  24209. "usingComponents": {
  24210. "van-button": "/wxcomponents/weapp/dist/button/index",
  24211. "van-toast": "/wxcomponents/weapp/dist/toast/index",
  24212. "van-field": "/wxcomponents/weapp/dist/field/index",
  24213. "van-popup": "/wxcomponents/weapp/dist/popup/index",
  24214. "van-picker": "/wxcomponents/weapp/dist/picker/index",
  24215. "van-dialog": "/wxcomponents/weapp/dist/dialog/index"
  24216. }
  24217. }
  24218. }, {
  24219. "path": "pages/mine/mine",
  24220. "style": {
  24221. "navigationBarTitleText": "我的",
  24222. "app-plus": {
  24223. "bounce": "vertical",
  24224. "titleNView": {
  24225. "buttons": [{
  24226. "text": "",
  24227. "fontSrc": "/static/uni.ttf",
  24228. "fontSize": "22px",
  24229. "color": "#FFFFFF"
  24230. }]
  24231. }
  24232. },
  24233. "usingComponents": {
  24234. "van-button": "/wxcomponents/weapp/dist/button/index",
  24235. "van-toast": "/wxcomponents/weapp/dist/toast/index",
  24236. "van-field": "/wxcomponents/weapp/dist/field/index",
  24237. "van-popup": "/wxcomponents/weapp/dist/popup/index",
  24238. "van-picker": "/wxcomponents/weapp/dist/picker/index",
  24239. "van-dialog": "/wxcomponents/weapp/dist/dialog/index",
  24240. "van-icon": "/wxcomponents/weapp/dist/icon/index"
  24241. }
  24242. }
  24243. }],
  24244. "subPackages": [{
  24245. "root": "pages/subPackages",
  24246. "pages": [{
  24247. "path": "gocompnay/index",
  24248. "style": {
  24249. "navigationBarTitleText": "企业端",
  24250. "enablePullDownRefresh": true,
  24251. "onReachBottomDistance": 100,
  24252. "app-plus": {
  24253. "bounce": "vertical",
  24254. "titleNView": {
  24255. "buttons": [{
  24256. "text": "",
  24257. "fontSrc": "/static/uni.ttf",
  24258. "fontSize": "22px",
  24259. "color": "#FFFFFF"
  24260. }]
  24261. }
  24262. },
  24263. "component": true
  24264. }
  24265. }, {
  24266. "path": "eventRelease/index",
  24267. "style": {
  24268. "navigationBarTitleText": "活动发布",
  24269. "enablePullDownRefresh": true,
  24270. "onReachBottomDistance": 100,
  24271. "app-plus": {
  24272. "bounce": "vertical",
  24273. "titleNView": {
  24274. "buttons": [{
  24275. "text": "",
  24276. "fontSrc": "/static/uni.ttf",
  24277. "fontSize": "22px",
  24278. "color": "#FFFFFF"
  24279. }]
  24280. }
  24281. },
  24282. "component": true,
  24283. "usingComponents": {
  24284. "van-empty": "/wxcomponents/weapp/dist/empty/index",
  24285. "van-button": "/wxcomponents/weapp/dist/button/index",
  24286. "van-toast": "/wxcomponents/weapp/dist/toast/index",
  24287. "van-field": "/wxcomponents/weapp/dist/field/index",
  24288. "van-popup": "/wxcomponents/weapp/dist/popup/index",
  24289. "van-picker": "/wxcomponents/weapp/dist/picker/index",
  24290. "van-dialog": "/wxcomponents/weapp/dist/dialog/index",
  24291. "van-icon": "/wxcomponents/weapp/dist/icon/index",
  24292. "van-tab": "/wxcomponents/weapp/dist/tab/index",
  24293. "van-tabs": "/wxcomponents/weapp/dist/tabs/index",
  24294. "van-uploader": "/wxcomponents/weapp/dist/uploader/index"
  24295. }
  24296. }
  24297. }, {
  24298. "path": "eventRelease/add",
  24299. "style": {
  24300. "navigationBarTitleText": "活动发布",
  24301. "enablePullDownRefresh": true,
  24302. "onReachBottomDistance": 100,
  24303. "app-plus": {
  24304. "bounce": "vertical",
  24305. "titleNView": {
  24306. "buttons": [{
  24307. "text": "",
  24308. "fontSrc": "/static/uni.ttf",
  24309. "fontSize": "22px",
  24310. "color": "#FFFFFF"
  24311. }]
  24312. }
  24313. },
  24314. "component": true,
  24315. "usingComponents": {
  24316. "van-empty": "/wxcomponents/weapp/dist/empty/index",
  24317. "van-button": "/wxcomponents/weapp/dist/button/index",
  24318. "van-toast": "/wxcomponents/weapp/dist/toast/index",
  24319. "van-field": "/wxcomponents/weapp/dist/field/index",
  24320. "van-popup": "/wxcomponents/weapp/dist/popup/index",
  24321. "van-picker": "/wxcomponents/weapp/dist/picker/index",
  24322. "van-dialog": "/wxcomponents/weapp/dist/dialog/index",
  24323. "van-icon": "/wxcomponents/weapp/dist/icon/index",
  24324. "van-tab": "/wxcomponents/weapp/dist/tab/index",
  24325. "van-tabs": "/wxcomponents/weapp/dist/tabs/index",
  24326. "van-datetime-picker": "/wxcomponents/weapp/dist/datetime-picker/index",
  24327. "van-uploader": "/wxcomponents/weapp/dist/uploader/index"
  24328. }
  24329. }
  24330. }, {
  24331. "path": "venueRoom/meetingroom",
  24332. "style": {
  24333. "navigationBarTitleText": "场馆审核",
  24334. "enablePullDownRefresh": true,
  24335. "onReachBottomDistance": 100,
  24336. "app-plus": {
  24337. "bounce": "vertical",
  24338. "titleNView": {
  24339. "buttons": [{
  24340. "text": "",
  24341. "fontSrc": "/static/uni.ttf",
  24342. "fontSize": "22px",
  24343. "color": "#FFFFFF"
  24344. }]
  24345. }
  24346. },
  24347. "component": true,
  24348. "usingComponents": {
  24349. "van-radio": "/wxcomponents/weapp/dist/radio/index",
  24350. "van-radio-group": "/wxcomponents/weapp/dist/radio-group/index",
  24351. "van-empty": "/wxcomponents/weapp/dist/empty/index",
  24352. "van-button": "/wxcomponents/weapp/dist/button/index",
  24353. "van-toast": "/wxcomponents/weapp/dist/toast/index",
  24354. "van-field": "/wxcomponents/weapp/dist/field/index",
  24355. "van-popup": "/wxcomponents/weapp/dist/popup/index",
  24356. "van-picker": "/wxcomponents/weapp/dist/picker/index",
  24357. "van-dialog": "/wxcomponents/weapp/dist/dialog/index",
  24358. "van-icon": "/wxcomponents/weapp/dist/icon/index",
  24359. "van-tab": "/wxcomponents/weapp/dist/tab/index",
  24360. "van-tabs": "/wxcomponents/weapp/dist/tabs/index"
  24361. }
  24362. }
  24363. }, {
  24364. "path": "activity/index",
  24365. "style": {
  24366. "navigationBarTitleText": "活动核销签到",
  24367. "enablePullDownRefresh": true,
  24368. "onReachBottomDistance": 100,
  24369. "app-plus": {
  24370. "bounce": "vertical",
  24371. "titleNView": {
  24372. "buttons": [{
  24373. "text": "",
  24374. "fontSrc": "/static/uni.ttf",
  24375. "fontSize": "22px",
  24376. "color": "#FFFFFF"
  24377. }]
  24378. }
  24379. },
  24380. "component": true,
  24381. "usingComponents": {
  24382. "van-radio": "/wxcomponents/weapp/dist/radio/index",
  24383. "van-radio-group": "/wxcomponents/weapp/dist/radio-group/index",
  24384. "van-empty": "/wxcomponents/weapp/dist/empty/index",
  24385. "van-button": "/wxcomponents/weapp/dist/button/index",
  24386. "van-toast": "/wxcomponents/weapp/dist/toast/index",
  24387. "van-field": "/wxcomponents/weapp/dist/field/index",
  24388. "van-popup": "/wxcomponents/weapp/dist/popup/index",
  24389. "van-picker": "/wxcomponents/weapp/dist/picker/index",
  24390. "van-dialog": "/wxcomponents/weapp/dist/dialog/index",
  24391. "van-icon": "/wxcomponents/weapp/dist/icon/index",
  24392. "van-tab": "/wxcomponents/weapp/dist/tab/index",
  24393. "van-tabs": "/wxcomponents/weapp/dist/tabs/index"
  24394. }
  24395. }
  24396. }, {
  24397. "path": "activity/code",
  24398. "style": {
  24399. "navigationBarTitleText": "活动核销扫码确认签到",
  24400. "enablePullDownRefresh": true,
  24401. "onReachBottomDistance": 100,
  24402. "app-plus": {
  24403. "bounce": "vertical",
  24404. "titleNView": {
  24405. "buttons": [{
  24406. "text": "",
  24407. "fontSrc": "/static/uni.ttf",
  24408. "fontSize": "22px",
  24409. "color": "#FFFFFF"
  24410. }]
  24411. }
  24412. },
  24413. "component": true,
  24414. "usingComponents": {
  24415. "van-radio": "/wxcomponents/weapp/dist/radio/index",
  24416. "van-radio-group": "/wxcomponents/weapp/dist/radio-group/index",
  24417. "van-empty": "/wxcomponents/weapp/dist/empty/index",
  24418. "van-button": "/wxcomponents/weapp/dist/button/index",
  24419. "van-toast": "/wxcomponents/weapp/dist/toast/index",
  24420. "van-field": "/wxcomponents/weapp/dist/field/index",
  24421. "van-popup": "/wxcomponents/weapp/dist/popup/index",
  24422. "van-picker": "/wxcomponents/weapp/dist/picker/index",
  24423. "van-dialog": "/wxcomponents/weapp/dist/dialog/index",
  24424. "van-icon": "/wxcomponents/weapp/dist/icon/index",
  24425. "van-tab": "/wxcomponents/weapp/dist/tab/index",
  24426. "van-tabs": "/wxcomponents/weapp/dist/tabs/index"
  24427. }
  24428. }
  24429. }, {
  24430. "path": "activityPromulgate/list",
  24431. "style": {
  24432. "navigationBarTitleText": "活动发布",
  24433. "enablePullDownRefresh": true,
  24434. "onReachBottomDistance": 100,
  24435. "app-plus": {
  24436. "bounce": "vertical",
  24437. "titleNView": {
  24438. "buttons": [{
  24439. "text": "",
  24440. "fontSrc": "/static/uni.ttf",
  24441. "fontSize": "22px",
  24442. "color": "#FFFFFF"
  24443. }]
  24444. }
  24445. },
  24446. "component": true,
  24447. "usingComponents": {
  24448. "van-radio": "/wxcomponents/weapp/dist/radio/index",
  24449. "van-radio-group": "/wxcomponents/weapp/dist/radio-group/index",
  24450. "van-empty": "/wxcomponents/weapp/dist/empty/index",
  24451. "van-button": "/wxcomponents/weapp/dist/button/index",
  24452. "van-toast": "/wxcomponents/weapp/dist/toast/index",
  24453. "van-field": "/wxcomponents/weapp/dist/field/index",
  24454. "van-popup": "/wxcomponents/weapp/dist/popup/index",
  24455. "van-picker": "/wxcomponents/weapp/dist/picker/index",
  24456. "van-dialog": "/wxcomponents/weapp/dist/dialog/index",
  24457. "van-icon": "/wxcomponents/weapp/dist/icon/index",
  24458. "van-tab": "/wxcomponents/weapp/dist/tab/index",
  24459. "van-tabs": "/wxcomponents/weapp/dist/tabs/index"
  24460. }
  24461. }
  24462. }, {
  24463. "path": "activityPromulgate/qrCode",
  24464. "style": {
  24465. "navigationBarTitleText": "活动签到码",
  24466. "enablePullDownRefresh": true,
  24467. "onReachBottomDistance": 100,
  24468. "app-plus": {
  24469. "bounce": "vertical",
  24470. "titleNView": {
  24471. "buttons": [{
  24472. "text": "",
  24473. "fontSrc": "/static/uni.ttf",
  24474. "fontSize": "22px",
  24475. "color": "#FFFFFF"
  24476. }]
  24477. }
  24478. },
  24479. "component": true,
  24480. "usingComponents": {
  24481. "van-radio": "/wxcomponents/weapp/dist/radio/index",
  24482. "van-radio-group": "/wxcomponents/weapp/dist/radio-group/index",
  24483. "van-empty": "/wxcomponents/weapp/dist/empty/index",
  24484. "van-button": "/wxcomponents/weapp/dist/button/index",
  24485. "van-toast": "/wxcomponents/weapp/dist/toast/index",
  24486. "van-field": "/wxcomponents/weapp/dist/field/index",
  24487. "van-popup": "/wxcomponents/weapp/dist/popup/index",
  24488. "van-picker": "/wxcomponents/weapp/dist/picker/index",
  24489. "van-dialog": "/wxcomponents/weapp/dist/dialog/index",
  24490. "van-icon": "/wxcomponents/weapp/dist/icon/index",
  24491. "van-tab": "/wxcomponents/weapp/dist/tab/index",
  24492. "van-tabs": "/wxcomponents/weapp/dist/tabs/index"
  24493. }
  24494. }
  24495. }, {
  24496. "path": "activityPromulgate/add",
  24497. "style": {
  24498. "navigationBarTitleText": "新增活动",
  24499. "enablePullDownRefresh": true,
  24500. "onReachBottomDistance": 100,
  24501. "app-plus": {
  24502. "bounce": "vertical",
  24503. "titleNView": {
  24504. "buttons": [{
  24505. "text": "",
  24506. "fontSrc": "/static/uni.ttf",
  24507. "fontSize": "22px",
  24508. "color": "#FFFFFF"
  24509. }]
  24510. }
  24511. },
  24512. "component": true,
  24513. "usingComponents": {
  24514. "van-radio": "/wxcomponents/weapp/dist/radio/index",
  24515. "van-uploader": "/wxcomponents/weapp/dist/uploader/index",
  24516. "van-radio-group": "/wxcomponents/weapp/dist/radio-group/index",
  24517. "van-empty": "/wxcomponents/weapp/dist/empty/index",
  24518. "van-button": "/wxcomponents/weapp/dist/button/index",
  24519. "van-toast": "/wxcomponents/weapp/dist/toast/index",
  24520. "van-field": "/wxcomponents/weapp/dist/field/index",
  24521. "van-popup": "/wxcomponents/weapp/dist/popup/index",
  24522. "van-picker": "/wxcomponents/weapp/dist/picker/index",
  24523. "van-dialog": "/wxcomponents/weapp/dist/dialog/index",
  24524. "van-icon": "/wxcomponents/weapp/dist/icon/index",
  24525. "van-tab": "/wxcomponents/weapp/dist/tab/index",
  24526. "van-tabs": "/wxcomponents/weapp/dist/tabs/index"
  24527. }
  24528. }
  24529. }, {
  24530. "path": "password/index",
  24531. "style": {
  24532. "navigationBarTitleText": "修改密码",
  24533. "enablePullDownRefresh": true,
  24534. "onReachBottomDistance": 100,
  24535. "app-plus": {
  24536. "bounce": "vertical",
  24537. "titleNView": {
  24538. "buttons": [{
  24539. "text": "",
  24540. "fontSrc": "/static/uni.ttf",
  24541. "fontSize": "22px",
  24542. "color": "#FFFFFF"
  24543. }]
  24544. }
  24545. },
  24546. "component": true,
  24547. "usingComponents": {
  24548. "van-radio": "/wxcomponents/weapp/dist/radio/index",
  24549. "van-radio-group": "/wxcomponents/weapp/dist/radio-group/index",
  24550. "van-empty": "/wxcomponents/weapp/dist/empty/index",
  24551. "van-button": "/wxcomponents/weapp/dist/button/index",
  24552. "van-toast": "/wxcomponents/weapp/dist/toast/index",
  24553. "van-field": "/wxcomponents/weapp/dist/field/index",
  24554. "van-popup": "/wxcomponents/weapp/dist/popup/index",
  24555. "van-picker": "/wxcomponents/weapp/dist/picker/index",
  24556. "van-dialog": "/wxcomponents/weapp/dist/dialog/index",
  24557. "van-icon": "/wxcomponents/weapp/dist/icon/index",
  24558. "van-tab": "/wxcomponents/weapp/dist/tab/index",
  24559. "van-tabs": "/wxcomponents/weapp/dist/tabs/index"
  24560. }
  24561. }
  24562. }, {
  24563. "path": "repairDispatch-app/index",
  24564. "style": {
  24565. "navigationBarTitleText": "报修派单",
  24566. "enablePullDownRefresh": true,
  24567. "onReachBottomDistance": 100,
  24568. "app-plus": {
  24569. "bounce": "vertical",
  24570. "titleNView": {
  24571. "buttons": [{
  24572. "text": "",
  24573. "fontSrc": "/static/uni.ttf",
  24574. "fontSize": "22px",
  24575. "color": "#FFFFFF"
  24576. }]
  24577. }
  24578. },
  24579. "component": true,
  24580. "usingComponents": {
  24581. "van-empty": "/wxcomponents/weapp/dist/empty/index",
  24582. "van-button": "/wxcomponents/weapp/dist/button/index",
  24583. "van-toast": "/wxcomponents/weapp/dist/toast/index",
  24584. "van-field": "/wxcomponents/weapp/dist/field/index",
  24585. "van-popup": "/wxcomponents/weapp/dist/popup/index",
  24586. "van-picker": "/wxcomponents/weapp/dist/picker/index",
  24587. "van-dialog": "/wxcomponents/weapp/dist/dialog/index",
  24588. "van-icon": "/wxcomponents/weapp/dist/icon/index",
  24589. "van-tab": "/wxcomponents/weapp/dist/tab/index",
  24590. "van-tabs": "/wxcomponents/weapp/dist/tabs/index",
  24591. "van-uploader": "/wxcomponents/weapp/dist/uploader/index"
  24592. }
  24593. }
  24594. }, {
  24595. "path": "repairDispatch-app/add",
  24596. "style": {
  24597. "navigationBarTitleText": "新增报修派单",
  24598. "enablePullDownRefresh": true,
  24599. "onReachBottomDistance": 100,
  24600. "app-plus": {
  24601. "bounce": "vertical",
  24602. "titleNView": {
  24603. "buttons": [{
  24604. "text": "",
  24605. "fontSrc": "/static/uni.ttf",
  24606. "fontSize": "22px",
  24607. "color": "#FFFFFF"
  24608. }]
  24609. }
  24610. },
  24611. "component": true,
  24612. "usingComponents": {
  24613. "van-empty": "/wxcomponents/weapp/dist/empty/index",
  24614. "van-button": "/wxcomponents/weapp/dist/button/index",
  24615. "van-toast": "/wxcomponents/weapp/dist/toast/index",
  24616. "van-field": "/wxcomponents/weapp/dist/field/index",
  24617. "van-popup": "/wxcomponents/weapp/dist/popup/index",
  24618. "van-picker": "/wxcomponents/weapp/dist/picker/index",
  24619. "van-dialog": "/wxcomponents/weapp/dist/dialog/index",
  24620. "van-icon": "/wxcomponents/weapp/dist/icon/index",
  24621. "van-tab": "/wxcomponents/weapp/dist/tab/index",
  24622. "van-tabs": "/wxcomponents/weapp/dist/tabs/index",
  24623. "van-uploader": "/wxcomponents/weapp/dist/uploader/index"
  24624. }
  24625. }
  24626. }, {
  24627. "path": "repairprocessing-app/detail",
  24628. "style": {
  24629. "navigationBarTitleText": "报修处理-详情",
  24630. "enablePullDownRefresh": true,
  24631. "onReachBottomDistance": 100,
  24632. "app-plus": {
  24633. "bounce": "vertical",
  24634. "titleNView": {
  24635. "buttons": [{
  24636. "text": "",
  24637. "fontSrc": "/static/uni.ttf",
  24638. "fontSize": "22px",
  24639. "color": "#FFFFFF"
  24640. }]
  24641. }
  24642. },
  24643. "component": true,
  24644. "usingComponents": {
  24645. "van-steps": "/wxcomponents/weapp/dist/steps/index",
  24646. "van-empty": "/wxcomponents/weapp/dist/empty/index",
  24647. "van-button": "/wxcomponents/weapp/dist/button/index",
  24648. "van-toast": "/wxcomponents/weapp/dist/toast/index",
  24649. "van-field": "/wxcomponents/weapp/dist/field/index",
  24650. "van-popup": "/wxcomponents/weapp/dist/popup/index",
  24651. "van-picker": "/wxcomponents/weapp/dist/picker/index",
  24652. "van-dialog": "/wxcomponents/weapp/dist/dialog/index",
  24653. "van-icon": "/wxcomponents/weapp/dist/icon/index",
  24654. "van-tab": "/wxcomponents/weapp/dist/tab/index",
  24655. "van-tabs": "/wxcomponents/weapp/dist/tabs/index",
  24656. "van-uploader": "/wxcomponents/weapp/dist/uploader/index"
  24657. }
  24658. }
  24659. }, {
  24660. "path": "repairprocessing-app/index",
  24661. "style": {
  24662. "navigationBarTitleText": "报修处理",
  24663. "enablePullDownRefresh": true,
  24664. "onReachBottomDistance": 100,
  24665. "app-plus": {
  24666. "bounce": "vertical",
  24667. "titleNView": {
  24668. "buttons": [{
  24669. "text": "",
  24670. "fontSrc": "/static/uni.ttf",
  24671. "fontSize": "22px",
  24672. "color": "#FFFFFF"
  24673. }]
  24674. }
  24675. },
  24676. "component": true,
  24677. "usingComponents": {
  24678. "van-empty": "/wxcomponents/weapp/dist/empty/index",
  24679. "van-button": "/wxcomponents/weapp/dist/button/index",
  24680. "van-toast": "/wxcomponents/weapp/dist/toast/index",
  24681. "van-field": "/wxcomponents/weapp/dist/field/index",
  24682. "van-popup": "/wxcomponents/weapp/dist/popup/index",
  24683. "van-picker": "/wxcomponents/weapp/dist/picker/index",
  24684. "van-dialog": "/wxcomponents/weapp/dist/dialog/index",
  24685. "van-icon": "/wxcomponents/weapp/dist/icon/index",
  24686. "van-tab": "/wxcomponents/weapp/dist/tab/index",
  24687. "van-tabs": "/wxcomponents/weapp/dist/tabs/index",
  24688. "van-uploader": "/wxcomponents/weapp/dist/uploader/index"
  24689. }
  24690. }
  24691. }, {
  24692. "path": "modifySend/index",
  24693. "style": {
  24694. "navigationBarTitleText": "整改派单",
  24695. "enablePullDownRefresh": true,
  24696. "onReachBottomDistance": 100,
  24697. "app-plus": {
  24698. "bounce": "vertical",
  24699. "titleNView": {
  24700. "buttons": [{
  24701. "text": "",
  24702. "fontSrc": "/static/uni.ttf",
  24703. "fontSize": "22px",
  24704. "color": "#FFFFFF"
  24705. }]
  24706. }
  24707. },
  24708. "component": true,
  24709. "usingComponents": {
  24710. "van-empty": "/wxcomponents/weapp/dist/empty/index",
  24711. "van-button": "/wxcomponents/weapp/dist/button/index",
  24712. "van-toast": "/wxcomponents/weapp/dist/toast/index",
  24713. "van-field": "/wxcomponents/weapp/dist/field/index",
  24714. "van-popup": "/wxcomponents/weapp/dist/popup/index",
  24715. "van-picker": "/wxcomponents/weapp/dist/picker/index",
  24716. "van-dialog": "/wxcomponents/weapp/dist/dialog/index",
  24717. "van-icon": "/wxcomponents/weapp/dist/icon/index",
  24718. "van-tab": "/wxcomponents/weapp/dist/tab/index",
  24719. "van-tabs": "/wxcomponents/weapp/dist/tabs/index",
  24720. "van-uploader": "/wxcomponents/weapp/dist/uploader/index"
  24721. }
  24722. }
  24723. }, {
  24724. "path": "modifyReport/index",
  24725. "style": {
  24726. "navigationBarTitleText": "整改填报",
  24727. "enablePullDownRefresh": true,
  24728. "onReachBottomDistance": 100,
  24729. "app-plus": {
  24730. "bounce": "vertical",
  24731. "titleNView": {
  24732. "buttons": [{
  24733. "text": "",
  24734. "fontSrc": "/static/uni.ttf",
  24735. "fontSize": "22px",
  24736. "color": "#FFFFFF"
  24737. }]
  24738. }
  24739. },
  24740. "component": true,
  24741. "usingComponents": {
  24742. "van-empty": "/wxcomponents/weapp/dist/empty/index",
  24743. "van-button": "/wxcomponents/weapp/dist/button/index",
  24744. "van-toast": "/wxcomponents/weapp/dist/toast/index",
  24745. "van-field": "/wxcomponents/weapp/dist/field/index",
  24746. "van-popup": "/wxcomponents/weapp/dist/popup/index",
  24747. "van-picker": "/wxcomponents/weapp/dist/picker/index",
  24748. "van-dialog": "/wxcomponents/weapp/dist/dialog/index",
  24749. "van-icon": "/wxcomponents/weapp/dist/icon/index",
  24750. "van-tab": "/wxcomponents/weapp/dist/tab/index",
  24751. "van-tabs": "/wxcomponents/weapp/dist/tabs/index",
  24752. "van-uploader": "/wxcomponents/weapp/dist/uploader/index"
  24753. }
  24754. }
  24755. }, {
  24756. "path": "modifyReport/detail",
  24757. "style": {
  24758. "navigationBarTitleText": "整改详情",
  24759. "enablePullDownRefresh": true,
  24760. "onReachBottomDistance": 100,
  24761. "app-plus": {
  24762. "bounce": "vertical",
  24763. "titleNView": {
  24764. "buttons": [{
  24765. "text": "",
  24766. "fontSrc": "/static/uni.ttf",
  24767. "fontSize": "22px",
  24768. "color": "#FFFFFF"
  24769. }]
  24770. }
  24771. },
  24772. "component": true,
  24773. "usingComponents": {
  24774. "van-empty": "/wxcomponents/weapp/dist/empty/index",
  24775. "van-button": "/wxcomponents/weapp/dist/button/index",
  24776. "van-toast": "/wxcomponents/weapp/dist/toast/index",
  24777. "van-field": "/wxcomponents/weapp/dist/field/index",
  24778. "van-popup": "/wxcomponents/weapp/dist/popup/index",
  24779. "van-picker": "/wxcomponents/weapp/dist/picker/index",
  24780. "van-dialog": "/wxcomponents/weapp/dist/dialog/index",
  24781. "van-icon": "/wxcomponents/weapp/dist/icon/index",
  24782. "van-tab": "/wxcomponents/weapp/dist/tab/index",
  24783. "van-tabs": "/wxcomponents/weapp/dist/tabs/index",
  24784. "van-uploader": "/wxcomponents/weapp/dist/uploader/index"
  24785. }
  24786. }
  24787. }, {
  24788. "path": "modifyHandle/handle",
  24789. "style": {
  24790. "navigationBarTitleText": "整改处理 ",
  24791. "enablePullDownRefresh": true,
  24792. "onReachBottomDistance": 100,
  24793. "app-plus": {
  24794. "bounce": "vertical",
  24795. "titleNView": {
  24796. "buttons": [{
  24797. "text": "",
  24798. "fontSrc": "/static/uni.ttf",
  24799. "fontSize": "22px",
  24800. "color": "#FFFFFF"
  24801. }]
  24802. }
  24803. },
  24804. "component": true,
  24805. "usingComponents": {
  24806. "van-empty": "/wxcomponents/weapp/dist/empty/index",
  24807. "van-button": "/wxcomponents/weapp/dist/button/index",
  24808. "van-toast": "/wxcomponents/weapp/dist/toast/index",
  24809. "van-field": "/wxcomponents/weapp/dist/field/index",
  24810. "van-popup": "/wxcomponents/weapp/dist/popup/index",
  24811. "van-picker": "/wxcomponents/weapp/dist/picker/index",
  24812. "van-dialog": "/wxcomponents/weapp/dist/dialog/index",
  24813. "van-icon": "/wxcomponents/weapp/dist/icon/index",
  24814. "van-tab": "/wxcomponents/weapp/dist/tab/index",
  24815. "van-tabs": "/wxcomponents/weapp/dist/tabs/index",
  24816. "van-uploader": "/wxcomponents/weapp/dist/uploader/index"
  24817. }
  24818. }
  24819. }, {
  24820. "path": "modifyHandle/index",
  24821. "style": {
  24822. "navigationBarTitleText": "整改处理",
  24823. "enablePullDownRefresh": true,
  24824. "onReachBottomDistance": 100,
  24825. "app-plus": {
  24826. "bounce": "vertical",
  24827. "titleNView": {
  24828. "buttons": [{
  24829. "text": "",
  24830. "fontSrc": "/static/uni.ttf",
  24831. "fontSize": "22px",
  24832. "color": "#FFFFFF"
  24833. }]
  24834. }
  24835. },
  24836. "component": true,
  24837. "usingComponents": {
  24838. "van-empty": "/wxcomponents/weapp/dist/empty/index",
  24839. "van-button": "/wxcomponents/weapp/dist/button/index",
  24840. "van-toast": "/wxcomponents/weapp/dist/toast/index",
  24841. "van-field": "/wxcomponents/weapp/dist/field/index",
  24842. "van-popup": "/wxcomponents/weapp/dist/popup/index",
  24843. "van-picker": "/wxcomponents/weapp/dist/picker/index",
  24844. "van-dialog": "/wxcomponents/weapp/dist/dialog/index",
  24845. "van-icon": "/wxcomponents/weapp/dist/icon/index",
  24846. "van-tab": "/wxcomponents/weapp/dist/tab/index",
  24847. "van-tabs": "/wxcomponents/weapp/dist/tabs/index",
  24848. "van-uploader": "/wxcomponents/weapp/dist/uploader/index"
  24849. }
  24850. }
  24851. }, {
  24852. "path": "modifyReport/add",
  24853. "style": {
  24854. "navigationBarTitleText": "整改新增",
  24855. "enablePullDownRefresh": true,
  24856. "onReachBottomDistance": 100,
  24857. "app-plus": {
  24858. "bounce": "vertical",
  24859. "titleNView": {
  24860. "buttons": [{
  24861. "text": "",
  24862. "fontSrc": "/static/uni.ttf",
  24863. "fontSize": "22px",
  24864. "color": "#FFFFFF"
  24865. }]
  24866. }
  24867. },
  24868. "component": true,
  24869. "usingComponents": {
  24870. "van-empty": "/wxcomponents/weapp/dist/empty/index",
  24871. "van-button": "/wxcomponents/weapp/dist/button/index",
  24872. "van-toast": "/wxcomponents/weapp/dist/toast/index",
  24873. "van-field": "/wxcomponents/weapp/dist/field/index",
  24874. "van-popup": "/wxcomponents/weapp/dist/popup/index",
  24875. "van-picker": "/wxcomponents/weapp/dist/picker/index",
  24876. "van-dialog": "/wxcomponents/weapp/dist/dialog/index",
  24877. "van-icon": "/wxcomponents/weapp/dist/icon/index",
  24878. "van-tab": "/wxcomponents/weapp/dist/tab/index",
  24879. "van-tabs": "/wxcomponents/weapp/dist/tabs/index",
  24880. "van-uploader": "/wxcomponents/weapp/dist/uploader/index"
  24881. }
  24882. }
  24883. }, {
  24884. "path": "toread/index",
  24885. "style": {
  24886. "navigationBarTitleText": "我的待阅",
  24887. "enablePullDownRefresh": true,
  24888. "onReachBottomDistance": 100,
  24889. "app-plus": {
  24890. "bounce": "vertical",
  24891. "titleNView": {
  24892. "buttons": [{
  24893. "text": "",
  24894. "fontSrc": "/static/uni.ttf",
  24895. "fontSize": "22px",
  24896. "color": "#FFFFFF"
  24897. }]
  24898. }
  24899. },
  24900. "component": true,
  24901. "usingComponents": {
  24902. "van-empty": "/wxcomponents/weapp/dist/empty/index",
  24903. "van-button": "/wxcomponents/weapp/dist/button/index",
  24904. "van-toast": "/wxcomponents/weapp/dist/toast/index",
  24905. "van-field": "/wxcomponents/weapp/dist/field/index",
  24906. "van-popup": "/wxcomponents/weapp/dist/popup/index",
  24907. "van-picker": "/wxcomponents/weapp/dist/picker/index",
  24908. "van-dialog": "/wxcomponents/weapp/dist/dialog/index",
  24909. "van-icon": "/wxcomponents/weapp/dist/icon/index",
  24910. "van-tab": "/wxcomponents/weapp/dist/tab/index",
  24911. "van-tabs": "/wxcomponents/weapp/dist/tabs/index"
  24912. }
  24913. }
  24914. }, {
  24915. "path": "todo/index",
  24916. "style": {
  24917. "navigationBarTitleText": "我的待办",
  24918. "enablePullDownRefresh": true,
  24919. "onReachBottomDistance": 100,
  24920. "app-plus": {
  24921. "bounce": "vertical",
  24922. "titleNView": {
  24923. "buttons": [{
  24924. "text": "",
  24925. "fontSrc": "/static/uni.ttf",
  24926. "fontSize": "22px",
  24927. "color": "#FFFFFF"
  24928. }]
  24929. }
  24930. },
  24931. "component": true,
  24932. "usingComponents": {
  24933. "van-empty": "/wxcomponents/weapp/dist/empty/index",
  24934. "van-button": "/wxcomponents/weapp/dist/button/index",
  24935. "van-toast": "/wxcomponents/weapp/dist/toast/index",
  24936. "van-field": "/wxcomponents/weapp/dist/field/index",
  24937. "van-popup": "/wxcomponents/weapp/dist/popup/index",
  24938. "van-picker": "/wxcomponents/weapp/dist/picker/index",
  24939. "van-dialog": "/wxcomponents/weapp/dist/dialog/index",
  24940. "van-icon": "/wxcomponents/weapp/dist/icon/index",
  24941. "van-tab": "/wxcomponents/weapp/dist/tab/index",
  24942. "van-tabs": "/wxcomponents/weapp/dist/tabs/index"
  24943. }
  24944. }
  24945. }, {
  24946. "path": "todo/associated",
  24947. "style": {
  24948. "navigationBarTitleText": "关联企业选择",
  24949. "enablePullDownRefresh": true,
  24950. "onReachBottomDistance": 100,
  24951. "app-plus": {
  24952. "bounce": "vertical",
  24953. "titleNView": {
  24954. "buttons": [{
  24955. "text": "",
  24956. "fontSrc": "/static/uni.ttf",
  24957. "fontSize": "22px",
  24958. "color": "#FFFFFF"
  24959. }]
  24960. }
  24961. },
  24962. "component": true,
  24963. "usingComponents": {
  24964. "van-empty": "/wxcomponents/weapp/dist/empty/index",
  24965. "van-button": "/wxcomponents/weapp/dist/button/index",
  24966. "van-toast": "/wxcomponents/weapp/dist/toast/index",
  24967. "van-field": "/wxcomponents/weapp/dist/field/index",
  24968. "van-popup": "/wxcomponents/weapp/dist/popup/index",
  24969. "van-picker": "/wxcomponents/weapp/dist/picker/index",
  24970. "van-dialog": "/wxcomponents/weapp/dist/dialog/index",
  24971. "van-icon": "/wxcomponents/weapp/dist/icon/index",
  24972. "van-tab": "/wxcomponents/weapp/dist/tab/index",
  24973. "van-tabs": "/wxcomponents/weapp/dist/tabs/index"
  24974. }
  24975. }
  24976. }, {
  24977. "path": "todo/addInvestmentManager",
  24978. "style": {
  24979. "navigationBarTitleText": "招商经理选择",
  24980. "enablePullDownRefresh": true,
  24981. "onReachBottomDistance": 100,
  24982. "app-plus": {
  24983. "bounce": "vertical",
  24984. "titleNView": {
  24985. "buttons": [{
  24986. "text": "",
  24987. "fontSrc": "/static/uni.ttf",
  24988. "fontSize": "22px",
  24989. "color": "#FFFFFF"
  24990. }]
  24991. }
  24992. },
  24993. "component": true,
  24994. "usingComponents": {
  24995. "van-empty": "/wxcomponents/weapp/dist/empty/index",
  24996. "van-button": "/wxcomponents/weapp/dist/button/index",
  24997. "van-toast": "/wxcomponents/weapp/dist/toast/index",
  24998. "van-field": "/wxcomponents/weapp/dist/field/index",
  24999. "van-popup": "/wxcomponents/weapp/dist/popup/index",
  25000. "van-picker": "/wxcomponents/weapp/dist/picker/index",
  25001. "van-dialog": "/wxcomponents/weapp/dist/dialog/index",
  25002. "van-icon": "/wxcomponents/weapp/dist/icon/index",
  25003. "van-tab": "/wxcomponents/weapp/dist/tab/index",
  25004. "van-tabs": "/wxcomponents/weapp/dist/tabs/index"
  25005. }
  25006. }
  25007. }, {
  25008. "path": "todo/predetermineDetail",
  25009. "style": {
  25010. "navigationBarTitleText": "企业预定详情",
  25011. "enablePullDownRefresh": true,
  25012. "onReachBottomDistance": 100,
  25013. "app-plus": {
  25014. "bounce": "vertical",
  25015. "titleNView": {
  25016. "buttons": [{
  25017. "text": "",
  25018. "fontSrc": "/static/uni.ttf",
  25019. "fontSize": "22px",
  25020. "color": "#FFFFFF"
  25021. }]
  25022. }
  25023. },
  25024. "component": true,
  25025. "usingComponents": {
  25026. "van-uploader": "/wxcomponents/weapp/dist/uploader/index",
  25027. "van-empty": "/wxcomponents/weapp/dist/empty/index",
  25028. "van-button": "/wxcomponents/weapp/dist/button/index",
  25029. "van-toast": "/wxcomponents/weapp/dist/toast/index",
  25030. "van-field": "/wxcomponents/weapp/dist/field/index",
  25031. "van-popup": "/wxcomponents/weapp/dist/popup/index",
  25032. "van-picker": "/wxcomponents/weapp/dist/picker/index",
  25033. "van-dialog": "/wxcomponents/weapp/dist/dialog/index",
  25034. "van-icon": "/wxcomponents/weapp/dist/icon/index",
  25035. "van-tab": "/wxcomponents/weapp/dist/tab/index",
  25036. "van-tabs": "/wxcomponents/weapp/dist/tabs/index"
  25037. }
  25038. }
  25039. }, {
  25040. "path": "todo/inventoryReview",
  25041. "style": {
  25042. "navigationBarTitleText": "企业入库审核",
  25043. "enablePullDownRefresh": true,
  25044. "onReachBottomDistance": 100,
  25045. "app-plus": {
  25046. "bounce": "vertical",
  25047. "titleNView": {
  25048. "buttons": [{
  25049. "text": "",
  25050. "fontSrc": "/static/uni.ttf",
  25051. "fontSize": "22px",
  25052. "color": "#FFFFFF"
  25053. }]
  25054. }
  25055. },
  25056. "component": true,
  25057. "usingComponents": {
  25058. "van-uploader": "/wxcomponents/weapp/dist/uploader/index",
  25059. "van-empty": "/wxcomponents/weapp/dist/empty/index",
  25060. "van-button": "/wxcomponents/weapp/dist/button/index",
  25061. "van-toast": "/wxcomponents/weapp/dist/toast/index",
  25062. "van-field": "/wxcomponents/weapp/dist/field/index",
  25063. "van-popup": "/wxcomponents/weapp/dist/popup/index",
  25064. "van-picker": "/wxcomponents/weapp/dist/picker/index",
  25065. "van-dialog": "/wxcomponents/weapp/dist/dialog/index",
  25066. "van-icon": "/wxcomponents/weapp/dist/icon/index",
  25067. "van-tab": "/wxcomponents/weapp/dist/tab/index",
  25068. "van-tabs": "/wxcomponents/weapp/dist/tabs/index"
  25069. }
  25070. }
  25071. }, {
  25072. "path": "todo/repairAcceptance",
  25073. "style": {
  25074. "navigationBarTitleText": "报修受理",
  25075. "enablePullDownRefresh": true,
  25076. "onReachBottomDistance": 100,
  25077. "app-plus": {
  25078. "bounce": "vertical",
  25079. "titleNView": {
  25080. "buttons": [{
  25081. "text": "",
  25082. "fontSrc": "/static/uni.ttf",
  25083. "fontSize": "22px",
  25084. "color": "#FFFFFF"
  25085. }]
  25086. }
  25087. },
  25088. "component": true,
  25089. "usingComponents": {
  25090. "van-uploader": "/wxcomponents/weapp/dist/uploader/index",
  25091. "van-empty": "/wxcomponents/weapp/dist/empty/index",
  25092. "van-button": "/wxcomponents/weapp/dist/button/index",
  25093. "van-toast": "/wxcomponents/weapp/dist/toast/index",
  25094. "van-field": "/wxcomponents/weapp/dist/field/index",
  25095. "van-popup": "/wxcomponents/weapp/dist/popup/index",
  25096. "van-picker": "/wxcomponents/weapp/dist/picker/index",
  25097. "van-dialog": "/wxcomponents/weapp/dist/dialog/index",
  25098. "van-icon": "/wxcomponents/weapp/dist/icon/index",
  25099. "van-tab": "/wxcomponents/weapp/dist/tab/index",
  25100. "van-tabs": "/wxcomponents/weapp/dist/tabs/index"
  25101. }
  25102. }
  25103. }, {
  25104. "path": "todo/addRepair",
  25105. "style": {
  25106. "navigationBarTitleText": "新增报修",
  25107. "enablePullDownRefresh": true,
  25108. "onReachBottomDistance": 100,
  25109. "app-plus": {
  25110. "bounce": "vertical",
  25111. "titleNView": {
  25112. "buttons": [{
  25113. "text": "",
  25114. "fontSrc": "/static/uni.ttf",
  25115. "fontSize": "22px",
  25116. "color": "#FFFFFF"
  25117. }]
  25118. }
  25119. },
  25120. "component": true,
  25121. "usingComponents": {
  25122. "van-uploader": "/wxcomponents/weapp/dist/uploader/index",
  25123. "van-empty": "/wxcomponents/weapp/dist/empty/index",
  25124. "van-button": "/wxcomponents/weapp/dist/button/index",
  25125. "van-toast": "/wxcomponents/weapp/dist/toast/index",
  25126. "van-field": "/wxcomponents/weapp/dist/field/index",
  25127. "van-popup": "/wxcomponents/weapp/dist/popup/index",
  25128. "van-picker": "/wxcomponents/weapp/dist/picker/index",
  25129. "van-dialog": "/wxcomponents/weapp/dist/dialog/index",
  25130. "van-icon": "/wxcomponents/weapp/dist/icon/index",
  25131. "van-tab": "/wxcomponents/weapp/dist/tab/index",
  25132. "van-tabs": "/wxcomponents/weapp/dist/tabs/index"
  25133. }
  25134. }
  25135. }, {
  25136. "path": "todo/dispatch",
  25137. "style": {
  25138. "navigationBarTitleText": "报修派单",
  25139. "enablePullDownRefresh": true,
  25140. "onReachBottomDistance": 100,
  25141. "app-plus": {
  25142. "bounce": "vertical",
  25143. "titleNView": {
  25144. "buttons": [{
  25145. "text": "",
  25146. "fontSrc": "/static/uni.ttf",
  25147. "fontSize": "22px",
  25148. "color": "#FFFFFF"
  25149. }]
  25150. }
  25151. },
  25152. "component": true,
  25153. "usingComponents": {
  25154. "van-uploader": "/wxcomponents/weapp/dist/uploader/index",
  25155. "van-empty": "/wxcomponents/weapp/dist/empty/index",
  25156. "van-button": "/wxcomponents/weapp/dist/button/index",
  25157. "van-toast": "/wxcomponents/weapp/dist/toast/index",
  25158. "van-field": "/wxcomponents/weapp/dist/field/index",
  25159. "van-popup": "/wxcomponents/weapp/dist/popup/index",
  25160. "van-picker": "/wxcomponents/weapp/dist/picker/index",
  25161. "van-dialog": "/wxcomponents/weapp/dist/dialog/index",
  25162. "van-icon": "/wxcomponents/weapp/dist/icon/index",
  25163. "van-tab": "/wxcomponents/weapp/dist/tab/index",
  25164. "van-tabs": "/wxcomponents/weapp/dist/tabs/index"
  25165. }
  25166. }
  25167. }, {
  25168. "path": "venueRoom/confirm",
  25169. "style": {
  25170. "navigationBarTitleText": "场馆-审核",
  25171. "enablePullDownRefresh": true,
  25172. "onReachBottomDistance": 100,
  25173. "app-plus": {
  25174. "bounce": "vertical",
  25175. "titleNView": {
  25176. "buttons": [{
  25177. "text": "",
  25178. "fontSrc": "/static/uni.ttf",
  25179. "fontSize": "22px",
  25180. "color": "#FFFFFF"
  25181. }]
  25182. }
  25183. },
  25184. "component": true,
  25185. "usingComponents": {
  25186. "van-empty": "/wxcomponents/weapp/dist/empty/index",
  25187. "van-button": "/wxcomponents/weapp/dist/button/index",
  25188. "van-toast": "/wxcomponents/weapp/dist/toast/index",
  25189. "van-field": "/wxcomponents/weapp/dist/field/index",
  25190. "van-popup": "/wxcomponents/weapp/dist/popup/index",
  25191. "van-picker": "/wxcomponents/weapp/dist/picker/index",
  25192. "van-dialog": "/wxcomponents/weapp/dist/dialog/index",
  25193. "van-icon": "/wxcomponents/weapp/dist/icon/index",
  25194. "van-tab": "/wxcomponents/weapp/dist/tab/index",
  25195. "van-tabs": "/wxcomponents/weapp/dist/tabs/index"
  25196. }
  25197. }
  25198. }, {
  25199. "path": "housedetails/housedetails",
  25200. "style": {
  25201. "navigationBarTitleText": "房源详情",
  25202. "enablePullDownRefresh": true,
  25203. "onReachBottomDistance": 100,
  25204. "app-plus": {
  25205. "bounce": "vertical",
  25206. "titleNView": {
  25207. "buttons": [{
  25208. "text": "",
  25209. "fontSrc": "/static/uni.ttf",
  25210. "fontSize": "22px",
  25211. "color": "#FFFFFF"
  25212. }]
  25213. }
  25214. },
  25215. "component": true,
  25216. "usingComponents": {
  25217. "van-empty": "/wxcomponents/weapp/dist/empty/index",
  25218. "van-button": "/wxcomponents/weapp/dist/button/index",
  25219. "van-toast": "/wxcomponents/weapp/dist/toast/index",
  25220. "van-field": "/wxcomponents/weapp/dist/field/index",
  25221. "van-popup": "/wxcomponents/weapp/dist/popup/index",
  25222. "van-picker": "/wxcomponents/weapp/dist/picker/index",
  25223. "van-dialog": "/wxcomponents/weapp/dist/dialog/index",
  25224. "van-icon": "/wxcomponents/weapp/dist/icon/index",
  25225. "van-tab": "/wxcomponents/weapp/dist/tab/index",
  25226. "van-tabs": "/wxcomponents/weapp/dist/tabs/index"
  25227. }
  25228. }
  25229. }, {
  25230. "path": "addintention/addintention",
  25231. "style": {
  25232. "navigationBarTitleText": "新增意向",
  25233. "enablePullDownRefresh": true,
  25234. "onReachBottomDistance": 100,
  25235. "app-plus": {
  25236. "bounce": "vertical",
  25237. "titleNView": {
  25238. "buttons": [{
  25239. "text": "",
  25240. "fontSrc": "/static/uni.ttf",
  25241. "fontSize": "22px",
  25242. "color": "#FFFFFF"
  25243. }]
  25244. }
  25245. },
  25246. "component": true,
  25247. "usingComponents": {
  25248. "van-button": "/wxcomponents/weapp/dist/button/index",
  25249. "van-toast": "/wxcomponents/weapp/dist/toast/index",
  25250. "van-field": "/wxcomponents/weapp/dist/field/index",
  25251. "van-popup": "/wxcomponents/weapp/dist/popup/index",
  25252. "van-picker": "/wxcomponents/weapp/dist/picker/index",
  25253. "van-dialog": "/wxcomponents/weapp/dist/dialog/index",
  25254. "van-icon": "/wxcomponents/weapp/dist/icon/index",
  25255. "van-tab": "/wxcomponents/weapp/dist/tab/index",
  25256. "van-tabs": "/wxcomponents/weapp/dist/tabs/index",
  25257. "van-datetime-picker": "/wxcomponents/weapp/dist/datetime-picker/index",
  25258. "van-uploader": "/wxcomponents/weapp/dist/uploader/index"
  25259. }
  25260. }
  25261. }, {
  25262. "path": "chosseHouse/chosseHouse",
  25263. "style": {
  25264. "navigationBarTitleText": "选择房源",
  25265. "enablePullDownRefresh": true,
  25266. "onReachBottomDistance": 100,
  25267. "app-plus": {
  25268. "bounce": "vertical",
  25269. "titleNView": {
  25270. "buttons": [{
  25271. "text": "",
  25272. "fontSrc": "/static/uni.ttf",
  25273. "fontSize": "22px",
  25274. "color": "#FFFFFF"
  25275. }]
  25276. }
  25277. },
  25278. "component": true,
  25279. "usingComponents": {
  25280. "van-button": "/wxcomponents/weapp/dist/button/index",
  25281. "van-toast": "/wxcomponents/weapp/dist/toast/index",
  25282. "van-field": "/wxcomponents/weapp/dist/field/index",
  25283. "van-popup": "/wxcomponents/weapp/dist/popup/index",
  25284. "van-picker": "/wxcomponents/weapp/dist/picker/index",
  25285. "van-dialog": "/wxcomponents/weapp/dist/dialog/index",
  25286. "van-icon": "/wxcomponents/weapp/dist/icon/index",
  25287. "van-tab": "/wxcomponents/weapp/dist/tab/index",
  25288. "van-tabs": "/wxcomponents/weapp/dist/tabs/index",
  25289. "van-datetime-picker": "/wxcomponents/weapp/dist/datetime-picker/index",
  25290. "van-uploader": "/wxcomponents/weapp/dist/uploader/index",
  25291. "van-checkbox": "/wxcomponents/weapp/dist/checkbox/index",
  25292. "van-checkbox-group": "/wxcomponents/weapp/dist/checkbox-group/index"
  25293. }
  25294. }
  25295. }, {
  25296. "path": "companyHouse/companyHouse",
  25297. "style": {
  25298. "navigationBarTitleText": "企业库",
  25299. "enablePullDownRefresh": true,
  25300. "onReachBottomDistance": 100,
  25301. "app-plus": {
  25302. "bounce": "vertical",
  25303. "titleNView": {
  25304. "buttons": [{
  25305. "text": "",
  25306. "fontSrc": "/static/uni.ttf",
  25307. "fontSize": "22px",
  25308. "color": "#FFFFFF"
  25309. }]
  25310. }
  25311. },
  25312. "component": true,
  25313. "usingComponents": {
  25314. "van-button": "/wxcomponents/weapp/dist/button/index",
  25315. "van-toast": "/wxcomponents/weapp/dist/toast/index",
  25316. "van-field": "/wxcomponents/weapp/dist/field/index",
  25317. "van-popup": "/wxcomponents/weapp/dist/popup/index",
  25318. "van-picker": "/wxcomponents/weapp/dist/picker/index",
  25319. "van-dialog": "/wxcomponents/weapp/dist/dialog/index",
  25320. "van-icon": "/wxcomponents/weapp/dist/icon/index",
  25321. "van-tab": "/wxcomponents/weapp/dist/tab/index",
  25322. "van-tabs": "/wxcomponents/weapp/dist/tabs/index",
  25323. "van-datetime-picker": "/wxcomponents/weapp/dist/datetime-picker/index",
  25324. "van-uploader": "/wxcomponents/weapp/dist/uploader/index",
  25325. "van-checkbox": "/wxcomponents/weapp/dist/checkbox/index",
  25326. "van-checkbox-group": "/wxcomponents/weapp/dist/checkbox-group/index"
  25327. }
  25328. }
  25329. }, {
  25330. "path": "companyreport/components/reportDetails",
  25331. "style": {
  25332. "navigationBarTitleText": "走访上报-详情",
  25333. "enablePullDownRefresh": true,
  25334. "onReachBottomDistance": 100,
  25335. "app-plus": {
  25336. "bounce": "vertical",
  25337. "titleNView": {
  25338. "buttons": [{
  25339. "text": "",
  25340. "fontSrc": "/static/uni.ttf",
  25341. "fontSize": "22px",
  25342. "color": "#FFFFFF"
  25343. }]
  25344. }
  25345. },
  25346. "component": true,
  25347. "usingComponents": {
  25348. "van-button": "/wxcomponents/weapp/dist/button/index",
  25349. "van-toast": "/wxcomponents/weapp/dist/toast/index",
  25350. "van-field": "/wxcomponents/weapp/dist/field/index",
  25351. "van-popup": "/wxcomponents/weapp/dist/popup/index",
  25352. "van-picker": "/wxcomponents/weapp/dist/picker/index",
  25353. "van-dialog": "/wxcomponents/weapp/dist/dialog/index",
  25354. "van-icon": "/wxcomponents/weapp/dist/icon/index",
  25355. "van-tab": "/wxcomponents/weapp/dist/tab/index",
  25356. "van-tabs": "/wxcomponents/weapp/dist/tabs/index",
  25357. "van-datetime-picker": "/wxcomponents/weapp/dist/datetime-picker/index",
  25358. "van-uploader": "/wxcomponents/weapp/dist/uploader/index",
  25359. "van-checkbox": "/wxcomponents/weapp/dist/checkbox/index",
  25360. "van-checkbox-group": "/wxcomponents/weapp/dist/checkbox-group/index"
  25361. }
  25362. }
  25363. }, {
  25364. "path": "merchants/merchants",
  25365. "style": {
  25366. "navigationBarTitleText": "我的招商",
  25367. "enablePullDownRefresh": true,
  25368. "onReachBottomDistance": 100,
  25369. "app-plus": {
  25370. "bounce": "vertical",
  25371. "titleNView": {
  25372. "buttons": [{
  25373. "text": "",
  25374. "fontSrc": "/static/uni.ttf",
  25375. "fontSize": "22px",
  25376. "color": "#FFFFFF"
  25377. }]
  25378. }
  25379. },
  25380. "component": true,
  25381. "usingComponents": {
  25382. "van-button": "/wxcomponents/weapp/dist/button/index",
  25383. "van-toast": "/wxcomponents/weapp/dist/toast/index",
  25384. "van-field": "/wxcomponents/weapp/dist/field/index",
  25385. "van-popup": "/wxcomponents/weapp/dist/popup/index",
  25386. "van-picker": "/wxcomponents/weapp/dist/picker/index",
  25387. "van-dialog": "/wxcomponents/weapp/dist/dialog/index",
  25388. "van-icon": "/wxcomponents/weapp/dist/icon/index",
  25389. "van-tab": "/wxcomponents/weapp/dist/tab/index",
  25390. "van-tabs": "/wxcomponents/weapp/dist/tabs/index"
  25391. }
  25392. }
  25393. }, {
  25394. "path": "merchants/components/mymechantsdetails",
  25395. "style": {
  25396. "navigationBarTitleText": "我的招商-详情",
  25397. "enablePullDownRefresh": true,
  25398. "onReachBottomDistance": 100,
  25399. "app-plus": {
  25400. "bounce": "vertical",
  25401. "titleNView": {
  25402. "buttons": [{
  25403. "text": "",
  25404. "fontSrc": "/static/uni.ttf",
  25405. "fontSize": "22px",
  25406. "color": "#FFFFFF"
  25407. }]
  25408. }
  25409. },
  25410. "component": true,
  25411. "usingComponents": {
  25412. "van-uploader": "/wxcomponents/weapp/dist/uploader/index",
  25413. "van-button": "/wxcomponents/weapp/dist/button/index",
  25414. "van-toast": "/wxcomponents/weapp/dist/toast/index",
  25415. "van-field": "/wxcomponents/weapp/dist/field/index",
  25416. "van-popup": "/wxcomponents/weapp/dist/popup/index",
  25417. "van-picker": "/wxcomponents/weapp/dist/picker/index",
  25418. "van-dialog": "/wxcomponents/weapp/dist/dialog/index",
  25419. "van-icon": "/wxcomponents/weapp/dist/icon/index",
  25420. "van-tab": "/wxcomponents/weapp/dist/tab/index",
  25421. "van-tabs": "/wxcomponents/weapp/dist/tabs/index"
  25422. }
  25423. }
  25424. }, {
  25425. "path": "reportRepair/index",
  25426. "style": {
  25427. "navigationBarTitleText": "报事报修",
  25428. "enablePullDownRefresh": true,
  25429. "onReachBottomDistance": 100,
  25430. "app-plus": {
  25431. "bounce": "vertical",
  25432. "titleNView": {
  25433. "buttons": [{
  25434. "text": "",
  25435. "fontSrc": "/static/uni.ttf",
  25436. "fontSize": "22px",
  25437. "color": "#FFFFFF"
  25438. }]
  25439. }
  25440. },
  25441. "component": true,
  25442. "usingComponents": {
  25443. "van-uploader": "/wxcomponents/weapp/dist/uploader/index",
  25444. "van-button": "/wxcomponents/weapp/dist/button/index",
  25445. "van-toast": "/wxcomponents/weapp/dist/toast/index",
  25446. "van-field": "/wxcomponents/weapp/dist/field/index",
  25447. "van-popup": "/wxcomponents/weapp/dist/popup/index",
  25448. "van-picker": "/wxcomponents/weapp/dist/picker/index",
  25449. "van-dialog": "/wxcomponents/weapp/dist/dialog/index",
  25450. "van-icon": "/wxcomponents/weapp/dist/icon/index",
  25451. "van-tab": "/wxcomponents/weapp/dist/tab/index",
  25452. "van-tabs": "/wxcomponents/weapp/dist/tabs/index"
  25453. }
  25454. }
  25455. }, {
  25456. "path": "reportRepair/repairRecord",
  25457. "style": {
  25458. "navigationBarTitleText": "报事记录",
  25459. "enablePullDownRefresh": true,
  25460. "onReachBottomDistance": 100,
  25461. "app-plus": {
  25462. "bounce": "vertical",
  25463. "titleNView": {
  25464. "buttons": [{
  25465. "text": "",
  25466. "fontSrc": "/static/uni.ttf",
  25467. "fontSize": "22px",
  25468. "color": "#FFFFFF"
  25469. }]
  25470. }
  25471. },
  25472. "component": true,
  25473. "usingComponents": {
  25474. "van-uploader": "/wxcomponents/weapp/dist/uploader/index",
  25475. "van-button": "/wxcomponents/weapp/dist/button/index",
  25476. "van-toast": "/wxcomponents/weapp/dist/toast/index",
  25477. "van-field": "/wxcomponents/weapp/dist/field/index",
  25478. "van-popup": "/wxcomponents/weapp/dist/popup/index",
  25479. "van-picker": "/wxcomponents/weapp/dist/picker/index",
  25480. "van-dialog": "/wxcomponents/weapp/dist/dialog/index",
  25481. "van-icon": "/wxcomponents/weapp/dist/icon/index",
  25482. "van-tab": "/wxcomponents/weapp/dist/tab/index",
  25483. "van-tabs": "/wxcomponents/weapp/dist/tabs/index"
  25484. }
  25485. }
  25486. }, {
  25487. "path": "reportRepair/repairDetail",
  25488. "style": {
  25489. "navigationBarTitleText": "报事详情",
  25490. "enablePullDownRefresh": true,
  25491. "onReachBottomDistance": 100,
  25492. "app-plus": {
  25493. "bounce": "vertical",
  25494. "titleNView": {
  25495. "buttons": [{
  25496. "text": "",
  25497. "fontSrc": "/static/uni.ttf",
  25498. "fontSize": "22px",
  25499. "color": "#FFFFFF"
  25500. }]
  25501. }
  25502. },
  25503. "component": true,
  25504. "usingComponents": {
  25505. "van-uploader": "/wxcomponents/weapp/dist/uploader/index",
  25506. "van-button": "/wxcomponents/weapp/dist/button/index",
  25507. "van-toast": "/wxcomponents/weapp/dist/toast/index",
  25508. "van-field": "/wxcomponents/weapp/dist/field/index",
  25509. "van-popup": "/wxcomponents/weapp/dist/popup/index",
  25510. "van-picker": "/wxcomponents/weapp/dist/picker/index",
  25511. "van-dialog": "/wxcomponents/weapp/dist/dialog/index",
  25512. "van-icon": "/wxcomponents/weapp/dist/icon/index",
  25513. "van-tab": "/wxcomponents/weapp/dist/tab/index",
  25514. "van-tabs": "/wxcomponents/weapp/dist/tabs/index",
  25515. "van-rate": "/wxcomponents/weapp/dist/rate/index"
  25516. }
  25517. }
  25518. }, {
  25519. "path": "companyreport/companyreport",
  25520. "style": {
  25521. "navigationBarTitleText": "走访上报",
  25522. "enablePullDownRefresh": true,
  25523. "onReachBottomDistance": 100,
  25524. "app-plus": {
  25525. "bounce": "vertical",
  25526. "titleNView": {
  25527. "buttons": [{
  25528. "text": "",
  25529. "fontSrc": "/static/uni.ttf",
  25530. "fontSize": "22px",
  25531. "color": "#FFFFFF"
  25532. }]
  25533. }
  25534. },
  25535. "component": true,
  25536. "usingComponents": {
  25537. "van-button": "/wxcomponents/weapp/dist/button/index",
  25538. "van-toast": "/wxcomponents/weapp/dist/toast/index",
  25539. "van-field": "/wxcomponents/weapp/dist/field/index",
  25540. "van-picker": "/wxcomponents/weapp/dist/picker/index",
  25541. "van-dialog": "/wxcomponents/weapp/dist/dialog/index",
  25542. "van-icon": "/wxcomponents/weapp/dist/icon/index",
  25543. "van-tab": "/wxcomponents/weapp/dist/tab/index",
  25544. "van-tabs": "/wxcomponents/weapp/dist/tabs/index",
  25545. "van-datetime-picker": "/wxcomponents/weapp/dist/datetime-picker/index",
  25546. "van-uploader": "/wxcomponents/weapp/dist/uploader/index",
  25547. "van-checkbox": "/wxcomponents/weapp/dist/checkbox/index",
  25548. "van-checkbox-group": "/wxcomponents/weapp/dist/checkbox-group/index"
  25549. }
  25550. }
  25551. }, {
  25552. "path": "economicDevelopmentReport/economic",
  25553. "style": {
  25554. "navigationBarTitleText": "经发填报",
  25555. "enablePullDownRefresh": true,
  25556. "onReachBottomDistance": 100,
  25557. "app-plus": {
  25558. "bounce": "vertical",
  25559. "titleNView": {
  25560. "buttons": [{
  25561. "text": "",
  25562. "fontSrc": "/static/uni.ttf",
  25563. "fontSize": "22px",
  25564. "color": "#FFFFFF"
  25565. }]
  25566. }
  25567. },
  25568. "component": true,
  25569. "usingComponents": {
  25570. "van-button": "/wxcomponents/weapp/dist/button/index",
  25571. "van-toast": "/wxcomponents/weapp/dist/toast/index",
  25572. "van-field": "/wxcomponents/weapp/dist/field/index",
  25573. "van-picker": "/wxcomponents/weapp/dist/picker/index",
  25574. "van-dialog": "/wxcomponents/weapp/dist/dialog/index",
  25575. "van-icon": "/wxcomponents/weapp/dist/icon/index",
  25576. "van-tab": "/wxcomponents/weapp/dist/tab/index",
  25577. "van-tabs": "/wxcomponents/weapp/dist/tabs/index",
  25578. "van-datetime-picker": "/wxcomponents/weapp/dist/datetime-picker/index",
  25579. "van-uploader": "/wxcomponents/weapp/dist/uploader/index",
  25580. "van-checkbox": "/wxcomponents/weapp/dist/checkbox/index",
  25581. "van-checkbox-group": "/wxcomponents/weapp/dist/checkbox-group/index"
  25582. }
  25583. }
  25584. }, {
  25585. "path": "enterPriseBill/index",
  25586. "style": {
  25587. "navigationBarTitleText": "企业账单",
  25588. "enablePullDownRefresh": true,
  25589. "onReachBottomDistance": 100,
  25590. "app-plus": {
  25591. "bounce": "vertical",
  25592. "titleNView": {
  25593. "buttons": [{
  25594. "text": "",
  25595. "fontSrc": "/static/uni.ttf",
  25596. "fontSize": "22px",
  25597. "color": "#FFFFFF"
  25598. }]
  25599. }
  25600. },
  25601. "component": true,
  25602. "usingComponents": {
  25603. "van-button": "/wxcomponents/weapp/dist/button/index",
  25604. "van-toast": "/wxcomponents/weapp/dist/toast/index",
  25605. "van-field": "/wxcomponents/weapp/dist/field/index",
  25606. "van-picker": "/wxcomponents/weapp/dist/picker/index",
  25607. "van-dialog": "/wxcomponents/weapp/dist/dialog/index",
  25608. "van-icon": "/wxcomponents/weapp/dist/icon/index",
  25609. "van-tab": "/wxcomponents/weapp/dist/tab/index",
  25610. "van-tabs": "/wxcomponents/weapp/dist/tabs/index",
  25611. "van-datetime-picker": "/wxcomponents/weapp/dist/datetime-picker/index",
  25612. "van-uploader": "/wxcomponents/weapp/dist/uploader/index",
  25613. "van-checkbox": "/wxcomponents/weapp/dist/checkbox/index",
  25614. "van-checkbox-group": "/wxcomponents/weapp/dist/checkbox-group/index"
  25615. }
  25616. }
  25617. }, {
  25618. "path": "enterPriseBill/detail",
  25619. "style": {
  25620. "navigationBarTitleText": "账单详情",
  25621. "enablePullDownRefresh": true,
  25622. "onReachBottomDistance": 100,
  25623. "app-plus": {
  25624. "bounce": "vertical",
  25625. "titleNView": {
  25626. "buttons": [{
  25627. "text": "",
  25628. "fontSrc": "/static/uni.ttf",
  25629. "fontSize": "22px",
  25630. "color": "#FFFFFF"
  25631. }]
  25632. }
  25633. },
  25634. "component": true,
  25635. "usingComponents": {
  25636. "van-button": "/wxcomponents/weapp/dist/button/index",
  25637. "van-toast": "/wxcomponents/weapp/dist/toast/index",
  25638. "van-field": "/wxcomponents/weapp/dist/field/index",
  25639. "van-picker": "/wxcomponents/weapp/dist/picker/index",
  25640. "van-dialog": "/wxcomponents/weapp/dist/dialog/index",
  25641. "van-icon": "/wxcomponents/weapp/dist/icon/index",
  25642. "van-tab": "/wxcomponents/weapp/dist/tab/index",
  25643. "van-tabs": "/wxcomponents/weapp/dist/tabs/index",
  25644. "van-datetime-picker": "/wxcomponents/weapp/dist/datetime-picker/index",
  25645. "van-uploader": "/wxcomponents/weapp/dist/uploader/index",
  25646. "van-checkbox": "/wxcomponents/weapp/dist/checkbox/index",
  25647. "van-checkbox-group": "/wxcomponents/weapp/dist/checkbox-group/index"
  25648. }
  25649. }
  25650. }, {
  25651. "path": "propertyNotice/index",
  25652. "style": {
  25653. "navigationBarTitleText": "物业通知",
  25654. "enablePullDownRefresh": true,
  25655. "onReachBottomDistance": 100,
  25656. "app-plus": {
  25657. "bounce": "vertical",
  25658. "titleNView": {
  25659. "buttons": [{
  25660. "text": "",
  25661. "fontSrc": "/static/uni.ttf",
  25662. "fontSize": "22px",
  25663. "color": "#FFFFFF"
  25664. }]
  25665. }
  25666. },
  25667. "component": true,
  25668. "usingComponents": {
  25669. "van-button": "/wxcomponents/weapp/dist/button/index",
  25670. "van-toast": "/wxcomponents/weapp/dist/toast/index",
  25671. "van-field": "/wxcomponents/weapp/dist/field/index",
  25672. "van-picker": "/wxcomponents/weapp/dist/picker/index",
  25673. "van-dialog": "/wxcomponents/weapp/dist/dialog/index",
  25674. "van-icon": "/wxcomponents/weapp/dist/icon/index",
  25675. "van-tab": "/wxcomponents/weapp/dist/tab/index",
  25676. "van-tabs": "/wxcomponents/weapp/dist/tabs/index",
  25677. "van-datetime-picker": "/wxcomponents/weapp/dist/datetime-picker/index",
  25678. "van-uploader": "/wxcomponents/weapp/dist/uploader/index",
  25679. "van-checkbox": "/wxcomponents/weapp/dist/checkbox/index",
  25680. "van-checkbox-group": "/wxcomponents/weapp/dist/checkbox-group/index"
  25681. }
  25682. }
  25683. }, {
  25684. "path": "propertyNotice/detail",
  25685. "style": {
  25686. "navigationBarTitleText": "通知详情",
  25687. "enablePullDownRefresh": true,
  25688. "onReachBottomDistance": 100,
  25689. "app-plus": {
  25690. "bounce": "vertical",
  25691. "titleNView": {
  25692. "buttons": [{
  25693. "text": "",
  25694. "fontSrc": "/static/uni.ttf",
  25695. "fontSize": "22px",
  25696. "color": "#FFFFFF"
  25697. }]
  25698. }
  25699. },
  25700. "component": true,
  25701. "usingComponents": {
  25702. "van-button": "/wxcomponents/weapp/dist/button/index",
  25703. "van-toast": "/wxcomponents/weapp/dist/toast/index",
  25704. "van-field": "/wxcomponents/weapp/dist/field/index",
  25705. "van-picker": "/wxcomponents/weapp/dist/picker/index",
  25706. "van-dialog": "/wxcomponents/weapp/dist/dialog/index",
  25707. "van-icon": "/wxcomponents/weapp/dist/icon/index",
  25708. "van-tab": "/wxcomponents/weapp/dist/tab/index",
  25709. "van-tabs": "/wxcomponents/weapp/dist/tabs/index",
  25710. "van-datetime-picker": "/wxcomponents/weapp/dist/datetime-picker/index",
  25711. "van-uploader": "/wxcomponents/weapp/dist/uploader/index",
  25712. "van-checkbox": "/wxcomponents/weapp/dist/checkbox/index",
  25713. "van-checkbox-group": "/wxcomponents/weapp/dist/checkbox-group/index"
  25714. }
  25715. }
  25716. }, {
  25717. "path": "propertyNotice_manage/index",
  25718. "style": {
  25719. "navigationBarTitleText": "物业通知-管理",
  25720. "enablePullDownRefresh": true,
  25721. "onReachBottomDistance": 100,
  25722. "app-plus": {
  25723. "bounce": "vertical",
  25724. "titleNView": {
  25725. "buttons": [{
  25726. "text": "",
  25727. "fontSrc": "/static/uni.ttf",
  25728. "fontSize": "22px",
  25729. "color": "#FFFFFF"
  25730. }]
  25731. }
  25732. },
  25733. "component": true,
  25734. "usingComponents": {
  25735. "van-button": "/wxcomponents/weapp/dist/button/index",
  25736. "van-toast": "/wxcomponents/weapp/dist/toast/index",
  25737. "van-field": "/wxcomponents/weapp/dist/field/index",
  25738. "van-picker": "/wxcomponents/weapp/dist/picker/index",
  25739. "van-dialog": "/wxcomponents/weapp/dist/dialog/index",
  25740. "van-icon": "/wxcomponents/weapp/dist/icon/index",
  25741. "van-tab": "/wxcomponents/weapp/dist/tab/index",
  25742. "van-tabs": "/wxcomponents/weapp/dist/tabs/index",
  25743. "van-datetime-picker": "/wxcomponents/weapp/dist/datetime-picker/index",
  25744. "van-uploader": "/wxcomponents/weapp/dist/uploader/index",
  25745. "van-checkbox": "/wxcomponents/weapp/dist/checkbox/index",
  25746. "van-checkbox-group": "/wxcomponents/weapp/dist/checkbox-group/index"
  25747. }
  25748. }
  25749. }, {
  25750. "path": "propertyNotice_manage/newRelease",
  25751. "style": {
  25752. "navigationBarTitleText": "新增发布",
  25753. "enablePullDownRefresh": true,
  25754. "onReachBottomDistance": 100,
  25755. "app-plus": {
  25756. "bounce": "vertical",
  25757. "titleNView": {
  25758. "buttons": [{
  25759. "text": "",
  25760. "fontSrc": "/static/uni.ttf",
  25761. "fontSize": "22px",
  25762. "color": "#FFFFFF"
  25763. }]
  25764. }
  25765. },
  25766. "component": true,
  25767. "usingComponents": {
  25768. "van-button": "/wxcomponents/weapp/dist/button/index",
  25769. "van-toast": "/wxcomponents/weapp/dist/toast/index",
  25770. "van-field": "/wxcomponents/weapp/dist/field/index",
  25771. "van-picker": "/wxcomponents/weapp/dist/picker/index",
  25772. "van-dialog": "/wxcomponents/weapp/dist/dialog/index",
  25773. "van-icon": "/wxcomponents/weapp/dist/icon/index",
  25774. "van-tab": "/wxcomponents/weapp/dist/tab/index",
  25775. "van-tabs": "/wxcomponents/weapp/dist/tabs/index",
  25776. "van-datetime-picker": "/wxcomponents/weapp/dist/datetime-picker/index",
  25777. "van-uploader": "/wxcomponents/weapp/dist/uploader/index",
  25778. "van-checkbox": "/wxcomponents/weapp/dist/checkbox/index",
  25779. "van-checkbox-group": "/wxcomponents/weapp/dist/checkbox-group/index"
  25780. }
  25781. }
  25782. }, {
  25783. "path": "parkActivity/index",
  25784. "style": {
  25785. "navigationBarTitleText": "园区活动",
  25786. "enablePullDownRefresh": true,
  25787. "onReachBottomDistance": 100,
  25788. "app-plus": {
  25789. "bounce": "vertical",
  25790. "titleNView": {
  25791. "buttons": [{
  25792. "text": "",
  25793. "fontSrc": "/static/uni.ttf",
  25794. "fontSize": "22px",
  25795. "color": "#FFFFFF"
  25796. }]
  25797. }
  25798. },
  25799. "component": true,
  25800. "usingComponents": {
  25801. "van-button": "/wxcomponents/weapp/dist/button/index",
  25802. "van-toast": "/wxcomponents/weapp/dist/toast/index",
  25803. "van-field": "/wxcomponents/weapp/dist/field/index",
  25804. "van-picker": "/wxcomponents/weapp/dist/picker/index",
  25805. "van-dialog": "/wxcomponents/weapp/dist/dialog/index",
  25806. "van-icon": "/wxcomponents/weapp/dist/icon/index",
  25807. "van-tab": "/wxcomponents/weapp/dist/tab/index",
  25808. "van-tabs": "/wxcomponents/weapp/dist/tabs/index",
  25809. "van-datetime-picker": "/wxcomponents/weapp/dist/datetime-picker/index",
  25810. "van-uploader": "/wxcomponents/weapp/dist/uploader/index",
  25811. "van-checkbox": "/wxcomponents/weapp/dist/checkbox/index",
  25812. "van-checkbox-group": "/wxcomponents/weapp/dist/checkbox-group/index"
  25813. }
  25814. }
  25815. }, {
  25816. "path": "parkActivity/activeApplication",
  25817. "style": {
  25818. "navigationBarTitleText": "活动报名",
  25819. "enablePullDownRefresh": true,
  25820. "onReachBottomDistance": 100,
  25821. "app-plus": {
  25822. "bounce": "vertical",
  25823. "titleNView": {
  25824. "buttons": [{
  25825. "text": "",
  25826. "fontSrc": "/static/uni.ttf",
  25827. "fontSize": "22px",
  25828. "color": "#FFFFFF"
  25829. }]
  25830. }
  25831. },
  25832. "component": true,
  25833. "usingComponents": {
  25834. "van-button": "/wxcomponents/weapp/dist/button/index",
  25835. "van-toast": "/wxcomponents/weapp/dist/toast/index",
  25836. "van-field": "/wxcomponents/weapp/dist/field/index",
  25837. "van-picker": "/wxcomponents/weapp/dist/picker/index",
  25838. "van-dialog": "/wxcomponents/weapp/dist/dialog/index",
  25839. "van-icon": "/wxcomponents/weapp/dist/icon/index",
  25840. "van-tab": "/wxcomponents/weapp/dist/tab/index",
  25841. "van-tabs": "/wxcomponents/weapp/dist/tabs/index",
  25842. "van-datetime-picker": "/wxcomponents/weapp/dist/datetime-picker/index",
  25843. "van-uploader": "/wxcomponents/weapp/dist/uploader/index",
  25844. "van-checkbox": "/wxcomponents/weapp/dist/checkbox/index",
  25845. "van-checkbox-group": "/wxcomponents/weapp/dist/checkbox-group/index"
  25846. }
  25847. }
  25848. }, {
  25849. "path": "parkActivity/applicationInfo",
  25850. "style": {
  25851. "navigationBarTitleText": "报名信息",
  25852. "enablePullDownRefresh": true,
  25853. "onReachBottomDistance": 100,
  25854. "app-plus": {
  25855. "bounce": "vertical",
  25856. "titleNView": {
  25857. "buttons": [{
  25858. "text": "",
  25859. "fontSrc": "/static/uni.ttf",
  25860. "fontSize": "22px",
  25861. "color": "#FFFFFF"
  25862. }]
  25863. }
  25864. },
  25865. "component": true,
  25866. "usingComponents": {
  25867. "van-button": "/wxcomponents/weapp/dist/button/index",
  25868. "van-toast": "/wxcomponents/weapp/dist/toast/index",
  25869. "van-field": "/wxcomponents/weapp/dist/field/index",
  25870. "van-picker": "/wxcomponents/weapp/dist/picker/index",
  25871. "van-dialog": "/wxcomponents/weapp/dist/dialog/index",
  25872. "van-icon": "/wxcomponents/weapp/dist/icon/index",
  25873. "van-tab": "/wxcomponents/weapp/dist/tab/index",
  25874. "van-tabs": "/wxcomponents/weapp/dist/tabs/index",
  25875. "van-datetime-picker": "/wxcomponents/weapp/dist/datetime-picker/index",
  25876. "van-uploader": "/wxcomponents/weapp/dist/uploader/index",
  25877. "van-checkbox": "/wxcomponents/weapp/dist/checkbox/index",
  25878. "van-checkbox-group": "/wxcomponents/weapp/dist/checkbox-group/index"
  25879. }
  25880. }
  25881. }, {
  25882. "path": "parkActivity/activityCheckIn",
  25883. "style": {
  25884. "navigationBarTitleText": "活动签到",
  25885. "enablePullDownRefresh": true,
  25886. "onReachBottomDistance": 100,
  25887. "app-plus": {
  25888. "bounce": "vertical",
  25889. "titleNView": {
  25890. "buttons": [{
  25891. "text": "",
  25892. "fontSrc": "/static/uni.ttf",
  25893. "fontSize": "22px",
  25894. "color": "#FFFFFF"
  25895. }]
  25896. }
  25897. },
  25898. "component": true,
  25899. "usingComponents": {
  25900. "van-button": "/wxcomponents/weapp/dist/button/index",
  25901. "van-toast": "/wxcomponents/weapp/dist/toast/index",
  25902. "van-field": "/wxcomponents/weapp/dist/field/index",
  25903. "van-picker": "/wxcomponents/weapp/dist/picker/index",
  25904. "van-dialog": "/wxcomponents/weapp/dist/dialog/index",
  25905. "van-icon": "/wxcomponents/weapp/dist/icon/index",
  25906. "van-tab": "/wxcomponents/weapp/dist/tab/index",
  25907. "van-tabs": "/wxcomponents/weapp/dist/tabs/index",
  25908. "van-datetime-picker": "/wxcomponents/weapp/dist/datetime-picker/index",
  25909. "van-uploader": "/wxcomponents/weapp/dist/uploader/index",
  25910. "van-checkbox": "/wxcomponents/weapp/dist/checkbox/index",
  25911. "van-checkbox-group": "/wxcomponents/weapp/dist/checkbox-group/index"
  25912. }
  25913. }
  25914. }, {
  25915. "path": "minePages/mineMessage",
  25916. "style": {
  25917. "navigationBarTitleText": "我的消息",
  25918. "enablePullDownRefresh": true,
  25919. "onReachBottomDistance": 100,
  25920. "app-plus": {
  25921. "bounce": "vertical",
  25922. "titleNView": {
  25923. "buttons": [{
  25924. "text": "",
  25925. "fontSrc": "/static/uni.ttf",
  25926. "fontSize": "22px",
  25927. "color": "#FFFFFF"
  25928. }]
  25929. }
  25930. },
  25931. "component": true,
  25932. "usingComponents": {
  25933. "van-button": "/wxcomponents/weapp/dist/button/index",
  25934. "van-toast": "/wxcomponents/weapp/dist/toast/index",
  25935. "van-field": "/wxcomponents/weapp/dist/field/index",
  25936. "van-picker": "/wxcomponents/weapp/dist/picker/index",
  25937. "van-dialog": "/wxcomponents/weapp/dist/dialog/index",
  25938. "van-icon": "/wxcomponents/weapp/dist/icon/index",
  25939. "van-tab": "/wxcomponents/weapp/dist/tab/index",
  25940. "van-tabs": "/wxcomponents/weapp/dist/tabs/index",
  25941. "van-datetime-picker": "/wxcomponents/weapp/dist/datetime-picker/index",
  25942. "van-uploader": "/wxcomponents/weapp/dist/uploader/index",
  25943. "van-checkbox": "/wxcomponents/weapp/dist/checkbox/index",
  25944. "van-checkbox-group": "/wxcomponents/weapp/dist/checkbox-group/index"
  25945. }
  25946. }
  25947. }, {
  25948. "path": "minePages/mineInfo",
  25949. "style": {
  25950. "navigationBarTitleText": "企业信息",
  25951. "enablePullDownRefresh": true,
  25952. "onReachBottomDistance": 100,
  25953. "app-plus": {
  25954. "bounce": "vertical",
  25955. "titleNView": {
  25956. "buttons": [{
  25957. "text": "",
  25958. "fontSrc": "/static/uni.ttf",
  25959. "fontSize": "22px",
  25960. "color": "#FFFFFF"
  25961. }]
  25962. }
  25963. },
  25964. "component": true,
  25965. "usingComponents": {
  25966. "van-button": "/wxcomponents/weapp/dist/button/index",
  25967. "van-toast": "/wxcomponents/weapp/dist/toast/index",
  25968. "van-field": "/wxcomponents/weapp/dist/field/index",
  25969. "van-popup": "/wxcomponents/weapp/dist/popup/index",
  25970. "van-picker": "/wxcomponents/weapp/dist/picker/index",
  25971. "van-dialog": "/wxcomponents/weapp/dist/dialog/index",
  25972. "van-icon": "/wxcomponents/weapp/dist/icon/index",
  25973. "van-tab": "/wxcomponents/weapp/dist/tab/index",
  25974. "van-tabs": "/wxcomponents/weapp/dist/tabs/index",
  25975. "van-datetime-picker": "/wxcomponents/weapp/dist/datetime-picker/index",
  25976. "van-uploader": "/wxcomponents/weapp/dist/uploader/index",
  25977. "van-checkbox": "/wxcomponents/weapp/dist/checkbox/index",
  25978. "van-checkbox-group": "/wxcomponents/weapp/dist/checkbox-group/index"
  25979. }
  25980. }
  25981. }, {
  25982. "path": "minePages/feedback",
  25983. "style": {
  25984. "navigationBarTitleText": "我的反馈",
  25985. "enablePullDownRefresh": true,
  25986. "onReachBottomDistance": 100,
  25987. "app-plus": {
  25988. "bounce": "vertical",
  25989. "titleNView": {
  25990. "buttons": [{
  25991. "text": "",
  25992. "fontSrc": "/static/uni.ttf",
  25993. "fontSize": "22px",
  25994. "color": "#FFFFFF"
  25995. }]
  25996. }
  25997. },
  25998. "component": true,
  25999. "usingComponents": {
  26000. "van-button": "/wxcomponents/weapp/dist/button/index",
  26001. "van-toast": "/wxcomponents/weapp/dist/toast/index",
  26002. "van-field": "/wxcomponents/weapp/dist/field/index",
  26003. "van-picker": "/wxcomponents/weapp/dist/picker/index",
  26004. "van-dialog": "/wxcomponents/weapp/dist/dialog/index",
  26005. "van-icon": "/wxcomponents/weapp/dist/icon/index",
  26006. "van-tab": "/wxcomponents/weapp/dist/tab/index",
  26007. "van-tabs": "/wxcomponents/weapp/dist/tabs/index",
  26008. "van-datetime-picker": "/wxcomponents/weapp/dist/datetime-picker/index",
  26009. "van-uploader": "/wxcomponents/weapp/dist/uploader/index",
  26010. "van-checkbox": "/wxcomponents/weapp/dist/checkbox/index",
  26011. "van-checkbox-group": "/wxcomponents/weapp/dist/checkbox-group/index"
  26012. }
  26013. }
  26014. }, {
  26015. "path": "minePages/feedback_record",
  26016. "style": {
  26017. "navigationBarTitleText": "反馈记录",
  26018. "enablePullDownRefresh": true,
  26019. "onReachBottomDistance": 100,
  26020. "app-plus": {
  26021. "bounce": "vertical",
  26022. "titleNView": {
  26023. "buttons": [{
  26024. "text": "",
  26025. "fontSrc": "/static/uni.ttf",
  26026. "fontSize": "22px",
  26027. "color": "#FFFFFF"
  26028. }]
  26029. }
  26030. },
  26031. "component": true,
  26032. "usingComponents": {
  26033. "van-button": "/wxcomponents/weapp/dist/button/index",
  26034. "van-toast": "/wxcomponents/weapp/dist/toast/index",
  26035. "van-field": "/wxcomponents/weapp/dist/field/index",
  26036. "van-picker": "/wxcomponents/weapp/dist/picker/index",
  26037. "van-dialog": "/wxcomponents/weapp/dist/dialog/index",
  26038. "van-icon": "/wxcomponents/weapp/dist/icon/index",
  26039. "van-tab": "/wxcomponents/weapp/dist/tab/index",
  26040. "van-tabs": "/wxcomponents/weapp/dist/tabs/index",
  26041. "van-datetime-picker": "/wxcomponents/weapp/dist/datetime-picker/index",
  26042. "van-uploader": "/wxcomponents/weapp/dist/uploader/index",
  26043. "van-checkbox": "/wxcomponents/weapp/dist/checkbox/index",
  26044. "van-checkbox-group": "/wxcomponents/weapp/dist/checkbox-group/index"
  26045. }
  26046. }
  26047. }, {
  26048. "path": "minePages/feedback_detail",
  26049. "style": {
  26050. "navigationBarTitleText": "反馈详情",
  26051. "enablePullDownRefresh": true,
  26052. "onReachBottomDistance": 100,
  26053. "app-plus": {
  26054. "bounce": "vertical",
  26055. "titleNView": {
  26056. "buttons": [{
  26057. "text": "",
  26058. "fontSrc": "/static/uni.ttf",
  26059. "fontSize": "22px",
  26060. "color": "#FFFFFF"
  26061. }]
  26062. }
  26063. },
  26064. "component": true,
  26065. "usingComponents": {
  26066. "van-button": "/wxcomponents/weapp/dist/button/index",
  26067. "van-toast": "/wxcomponents/weapp/dist/toast/index",
  26068. "van-field": "/wxcomponents/weapp/dist/field/index",
  26069. "van-picker": "/wxcomponents/weapp/dist/picker/index",
  26070. "van-dialog": "/wxcomponents/weapp/dist/dialog/index",
  26071. "van-icon": "/wxcomponents/weapp/dist/icon/index",
  26072. "van-tab": "/wxcomponents/weapp/dist/tab/index",
  26073. "van-tabs": "/wxcomponents/weapp/dist/tabs/index",
  26074. "van-datetime-picker": "/wxcomponents/weapp/dist/datetime-picker/index",
  26075. "van-uploader": "/wxcomponents/weapp/dist/uploader/index",
  26076. "van-checkbox": "/wxcomponents/weapp/dist/checkbox/index",
  26077. "van-checkbox-group": "/wxcomponents/weapp/dist/checkbox-group/index"
  26078. }
  26079. }
  26080. }, {
  26081. "path": "minePages/myActivities",
  26082. "style": {
  26083. "navigationBarTitleText": "我的活动",
  26084. "enablePullDownRefresh": true,
  26085. "onReachBottomDistance": 100,
  26086. "app-plus": {
  26087. "bounce": "vertical",
  26088. "titleNView": {
  26089. "buttons": [{
  26090. "text": "",
  26091. "fontSrc": "/static/uni.ttf",
  26092. "fontSize": "22px",
  26093. "color": "#FFFFFF"
  26094. }]
  26095. }
  26096. },
  26097. "component": true,
  26098. "usingComponents": {
  26099. "van-button": "/wxcomponents/weapp/dist/button/index",
  26100. "van-toast": "/wxcomponents/weapp/dist/toast/index",
  26101. "van-field": "/wxcomponents/weapp/dist/field/index",
  26102. "van-picker": "/wxcomponents/weapp/dist/picker/index",
  26103. "van-dialog": "/wxcomponents/weapp/dist/dialog/index",
  26104. "van-icon": "/wxcomponents/weapp/dist/icon/index",
  26105. "van-tab": "/wxcomponents/weapp/dist/tab/index",
  26106. "van-tabs": "/wxcomponents/weapp/dist/tabs/index",
  26107. "van-datetime-picker": "/wxcomponents/weapp/dist/datetime-picker/index",
  26108. "van-uploader": "/wxcomponents/weapp/dist/uploader/index",
  26109. "van-checkbox": "/wxcomponents/weapp/dist/checkbox/index",
  26110. "van-checkbox-group": "/wxcomponents/weapp/dist/checkbox-group/index"
  26111. }
  26112. }
  26113. }, {
  26114. "path": "minePages/myCollection",
  26115. "style": {
  26116. "navigationBarTitleText": "我的收藏",
  26117. "enablePullDownRefresh": true,
  26118. "onReachBottomDistance": 100,
  26119. "app-plus": {
  26120. "bounce": "vertical",
  26121. "titleNView": {
  26122. "buttons": [{
  26123. "text": "",
  26124. "fontSrc": "/static/uni.ttf",
  26125. "fontSize": "22px",
  26126. "color": "#FFFFFF"
  26127. }]
  26128. }
  26129. },
  26130. "component": true,
  26131. "usingComponents": {
  26132. "van-button": "/wxcomponents/weapp/dist/button/index",
  26133. "van-toast": "/wxcomponents/weapp/dist/toast/index",
  26134. "van-field": "/wxcomponents/weapp/dist/field/index",
  26135. "van-picker": "/wxcomponents/weapp/dist/picker/index",
  26136. "van-dialog": "/wxcomponents/weapp/dist/dialog/index",
  26137. "van-icon": "/wxcomponents/weapp/dist/icon/index",
  26138. "van-tab": "/wxcomponents/weapp/dist/tab/index",
  26139. "van-tabs": "/wxcomponents/weapp/dist/tabs/index",
  26140. "van-datetime-picker": "/wxcomponents/weapp/dist/datetime-picker/index",
  26141. "van-uploader": "/wxcomponents/weapp/dist/uploader/index",
  26142. "van-checkbox": "/wxcomponents/weapp/dist/checkbox/index",
  26143. "van-checkbox-group": "/wxcomponents/weapp/dist/checkbox-group/index"
  26144. }
  26145. }
  26146. }, {
  26147. "path": "minePages/myOrder",
  26148. "style": {
  26149. "navigationBarTitleText": "我的订单",
  26150. "enablePullDownRefresh": true,
  26151. "onReachBottomDistance": 100,
  26152. "app-plus": {
  26153. "bounce": "vertical",
  26154. "titleNView": {
  26155. "buttons": [{
  26156. "text": "",
  26157. "fontSrc": "/static/uni.ttf",
  26158. "fontSize": "22px",
  26159. "color": "#FFFFFF"
  26160. }]
  26161. }
  26162. },
  26163. "component": true,
  26164. "usingComponents": {
  26165. "van-button": "/wxcomponents/weapp/dist/button/index",
  26166. "van-toast": "/wxcomponents/weapp/dist/toast/index",
  26167. "van-field": "/wxcomponents/weapp/dist/field/index",
  26168. "van-picker": "/wxcomponents/weapp/dist/picker/index",
  26169. "van-dialog": "/wxcomponents/weapp/dist/dialog/index",
  26170. "van-icon": "/wxcomponents/weapp/dist/icon/index",
  26171. "van-tab": "/wxcomponents/weapp/dist/tab/index",
  26172. "van-tabs": "/wxcomponents/weapp/dist/tabs/index",
  26173. "van-datetime-picker": "/wxcomponents/weapp/dist/datetime-picker/index",
  26174. "van-uploader": "/wxcomponents/weapp/dist/uploader/index",
  26175. "van-checkbox": "/wxcomponents/weapp/dist/checkbox/index",
  26176. "van-checkbox-group": "/wxcomponents/weapp/dist/checkbox-group/index"
  26177. }
  26178. }
  26179. }, {
  26180. "path": "peripheralService/index",
  26181. "style": {
  26182. "navigationBarTitleText": "周边服务",
  26183. "enablePullDownRefresh": true,
  26184. "onReachBottomDistance": 100,
  26185. "app-plus": {
  26186. "bounce": "vertical",
  26187. "titleNView": {
  26188. "buttons": [{
  26189. "text": "",
  26190. "fontSrc": "/static/uni.ttf",
  26191. "fontSize": "22px",
  26192. "color": "#FFFFFF"
  26193. }]
  26194. }
  26195. },
  26196. "component": true,
  26197. "usingComponents": {
  26198. "van-button": "/wxcomponents/weapp/dist/button/index",
  26199. "van-toast": "/wxcomponents/weapp/dist/toast/index",
  26200. "van-field": "/wxcomponents/weapp/dist/field/index",
  26201. "van-picker": "/wxcomponents/weapp/dist/picker/index",
  26202. "van-dialog": "/wxcomponents/weapp/dist/dialog/index",
  26203. "van-icon": "/wxcomponents/weapp/dist/icon/index",
  26204. "van-tab": "/wxcomponents/weapp/dist/tab/index",
  26205. "van-tabs": "/wxcomponents/weapp/dist/tabs/index",
  26206. "van-datetime-picker": "/wxcomponents/weapp/dist/datetime-picker/index",
  26207. "van-uploader": "/wxcomponents/weapp/dist/uploader/index",
  26208. "van-checkbox": "/wxcomponents/weapp/dist/checkbox/index",
  26209. "van-checkbox-group": "/wxcomponents/weapp/dist/checkbox-group/index"
  26210. }
  26211. }
  26212. }, {
  26213. "path": "peripheralService/detail",
  26214. "style": {
  26215. "navigationBarTitleText": "周边服务详情",
  26216. "enablePullDownRefresh": true,
  26217. "onReachBottomDistance": 100,
  26218. "app-plus": {
  26219. "bounce": "vertical",
  26220. "titleNView": {
  26221. "buttons": [{
  26222. "text": "",
  26223. "fontSrc": "/static/uni.ttf",
  26224. "fontSize": "22px",
  26225. "color": "#FFFFFF"
  26226. }]
  26227. }
  26228. },
  26229. "component": true,
  26230. "usingComponents": {
  26231. "van-button": "/wxcomponents/weapp/dist/button/index",
  26232. "van-toast": "/wxcomponents/weapp/dist/toast/index",
  26233. "van-field": "/wxcomponents/weapp/dist/field/index",
  26234. "van-picker": "/wxcomponents/weapp/dist/picker/index",
  26235. "van-dialog": "/wxcomponents/weapp/dist/dialog/index",
  26236. "van-icon": "/wxcomponents/weapp/dist/icon/index",
  26237. "van-tab": "/wxcomponents/weapp/dist/tab/index",
  26238. "van-tabs": "/wxcomponents/weapp/dist/tabs/index",
  26239. "van-datetime-picker": "/wxcomponents/weapp/dist/datetime-picker/index",
  26240. "van-uploader": "/wxcomponents/weapp/dist/uploader/index",
  26241. "van-checkbox": "/wxcomponents/weapp/dist/checkbox/index",
  26242. "van-checkbox-group": "/wxcomponents/weapp/dist/checkbox-group/index"
  26243. }
  26244. }
  26245. }, {
  26246. "path": "industrialPolicy/index",
  26247. "style": {
  26248. "navigationBarTitleText": "产业政策",
  26249. "enablePullDownRefresh": true,
  26250. "onReachBottomDistance": 100,
  26251. "app-plus": {
  26252. "bounce": "vertical",
  26253. "titleNView": {
  26254. "buttons": [{
  26255. "text": "",
  26256. "fontSrc": "/static/uni.ttf",
  26257. "fontSize": "22px",
  26258. "color": "#FFFFFF"
  26259. }]
  26260. }
  26261. },
  26262. "component": true,
  26263. "usingComponents": {
  26264. "van-button": "/wxcomponents/weapp/dist/button/index",
  26265. "van-toast": "/wxcomponents/weapp/dist/toast/index",
  26266. "van-field": "/wxcomponents/weapp/dist/field/index",
  26267. "van-picker": "/wxcomponents/weapp/dist/picker/index",
  26268. "van-dialog": "/wxcomponents/weapp/dist/dialog/index",
  26269. "van-icon": "/wxcomponents/weapp/dist/icon/index",
  26270. "van-tab": "/wxcomponents/weapp/dist/tab/index",
  26271. "van-tabs": "/wxcomponents/weapp/dist/tabs/index",
  26272. "van-datetime-picker": "/wxcomponents/weapp/dist/datetime-picker/index",
  26273. "van-uploader": "/wxcomponents/weapp/dist/uploader/index",
  26274. "van-checkbox": "/wxcomponents/weapp/dist/checkbox/index",
  26275. "van-checkbox-group": "/wxcomponents/weapp/dist/checkbox-group/index"
  26276. }
  26277. }
  26278. }, {
  26279. "path": "industrialPolicy/detail",
  26280. "style": {
  26281. "navigationBarTitleText": "产业政策详情",
  26282. "enablePullDownRefresh": true,
  26283. "onReachBottomDistance": 100,
  26284. "app-plus": {
  26285. "bounce": "vertical",
  26286. "titleNView": {
  26287. "buttons": [{
  26288. "text": "",
  26289. "fontSrc": "/static/uni.ttf",
  26290. "fontSize": "22px",
  26291. "color": "#FFFFFF"
  26292. }]
  26293. }
  26294. },
  26295. "component": true,
  26296. "usingComponents": {
  26297. "van-button": "/wxcomponents/weapp/dist/button/index",
  26298. "van-toast": "/wxcomponents/weapp/dist/toast/index",
  26299. "van-field": "/wxcomponents/weapp/dist/field/index",
  26300. "van-picker": "/wxcomponents/weapp/dist/picker/index",
  26301. "van-dialog": "/wxcomponents/weapp/dist/dialog/index",
  26302. "van-icon": "/wxcomponents/weapp/dist/icon/index",
  26303. "van-tab": "/wxcomponents/weapp/dist/tab/index",
  26304. "van-tabs": "/wxcomponents/weapp/dist/tabs/index",
  26305. "van-datetime-picker": "/wxcomponents/weapp/dist/datetime-picker/index",
  26306. "van-uploader": "/wxcomponents/weapp/dist/uploader/index",
  26307. "van-checkbox": "/wxcomponents/weapp/dist/checkbox/index",
  26308. "van-checkbox-group": "/wxcomponents/weapp/dist/checkbox-group/index"
  26309. }
  26310. }
  26311. }, {
  26312. "path": "surroundingReleases/index",
  26313. "style": {
  26314. "navigationBarTitleText": "周边发布",
  26315. "enablePullDownRefresh": true,
  26316. "onReachBottomDistance": 100,
  26317. "app-plus": {
  26318. "bounce": "vertical",
  26319. "titleNView": {
  26320. "buttons": [{
  26321. "text": "",
  26322. "fontSrc": "/static/uni.ttf",
  26323. "fontSize": "22px",
  26324. "color": "#FFFFFF"
  26325. }]
  26326. }
  26327. },
  26328. "component": true,
  26329. "usingComponents": {
  26330. "van-button": "/wxcomponents/weapp/dist/button/index",
  26331. "van-toast": "/wxcomponents/weapp/dist/toast/index",
  26332. "van-field": "/wxcomponents/weapp/dist/field/index",
  26333. "van-picker": "/wxcomponents/weapp/dist/picker/index",
  26334. "van-dialog": "/wxcomponents/weapp/dist/dialog/index",
  26335. "van-icon": "/wxcomponents/weapp/dist/icon/index",
  26336. "van-tab": "/wxcomponents/weapp/dist/tab/index",
  26337. "van-tabs": "/wxcomponents/weapp/dist/tabs/index",
  26338. "van-datetime-picker": "/wxcomponents/weapp/dist/datetime-picker/index",
  26339. "van-uploader": "/wxcomponents/weapp/dist/uploader/index",
  26340. "van-checkbox": "/wxcomponents/weapp/dist/checkbox/index",
  26341. "van-checkbox-group": "/wxcomponents/weapp/dist/checkbox-group/index"
  26342. }
  26343. }
  26344. }, {
  26345. "path": "surroundingReleases/editPage",
  26346. "style": {
  26347. "navigationBarTitleText": "编辑发布",
  26348. "enablePullDownRefresh": true,
  26349. "onReachBottomDistance": 100,
  26350. "app-plus": {
  26351. "bounce": "vertical",
  26352. "titleNView": {
  26353. "buttons": [{
  26354. "text": "",
  26355. "fontSrc": "/static/uni.ttf",
  26356. "fontSize": "22px",
  26357. "color": "#FFFFFF"
  26358. }]
  26359. }
  26360. },
  26361. "component": true,
  26362. "usingComponents": {
  26363. "van-button": "/wxcomponents/weapp/dist/button/index",
  26364. "van-toast": "/wxcomponents/weapp/dist/toast/index",
  26365. "van-field": "/wxcomponents/weapp/dist/field/index",
  26366. "van-picker": "/wxcomponents/weapp/dist/picker/index",
  26367. "van-dialog": "/wxcomponents/weapp/dist/dialog/index",
  26368. "van-icon": "/wxcomponents/weapp/dist/icon/index",
  26369. "van-tab": "/wxcomponents/weapp/dist/tab/index",
  26370. "van-tabs": "/wxcomponents/weapp/dist/tabs/index",
  26371. "van-datetime-picker": "/wxcomponents/weapp/dist/datetime-picker/index",
  26372. "van-uploader": "/wxcomponents/weapp/dist/uploader/index",
  26373. "van-checkbox": "/wxcomponents/weapp/dist/checkbox/index",
  26374. "van-checkbox-group": "/wxcomponents/weapp/dist/checkbox-group/index"
  26375. }
  26376. }
  26377. }, {
  26378. "path": "resourceReservation_manage/index",
  26379. "style": {
  26380. "navigationBarTitleText": "资源预约",
  26381. "enablePullDownRefresh": true,
  26382. "onReachBottomDistance": 100,
  26383. "app-plus": {
  26384. "bounce": "vertical",
  26385. "titleNView": {
  26386. "buttons": [{
  26387. "text": "",
  26388. "fontSrc": "/static/uni.ttf",
  26389. "fontSize": "22px",
  26390. "color": "#FFFFFF"
  26391. }]
  26392. }
  26393. },
  26394. "component": true,
  26395. "usingComponents": {
  26396. "van-button": "/wxcomponents/weapp/dist/button/index",
  26397. "van-toast": "/wxcomponents/weapp/dist/toast/index",
  26398. "van-field": "/wxcomponents/weapp/dist/field/index",
  26399. "van-picker": "/wxcomponents/weapp/dist/picker/index",
  26400. "van-dialog": "/wxcomponents/weapp/dist/dialog/index",
  26401. "van-icon": "/wxcomponents/weapp/dist/icon/index",
  26402. "van-tab": "/wxcomponents/weapp/dist/tab/index",
  26403. "van-tabs": "/wxcomponents/weapp/dist/tabs/index",
  26404. "van-datetime-picker": "/wxcomponents/weapp/dist/datetime-picker/index",
  26405. "van-uploader": "/wxcomponents/weapp/dist/uploader/index",
  26406. "van-checkbox": "/wxcomponents/weapp/dist/checkbox/index",
  26407. "van-checkbox-group": "/wxcomponents/weapp/dist/checkbox-group/index"
  26408. }
  26409. }
  26410. }, {
  26411. "path": "resourceReservation_manage/detail",
  26412. "style": {
  26413. "navigationBarTitleText": "会议室详情",
  26414. "enablePullDownRefresh": true,
  26415. "onReachBottomDistance": 100,
  26416. "app-plus": {
  26417. "bounce": "vertical",
  26418. "titleNView": {
  26419. "buttons": [{
  26420. "text": "",
  26421. "fontSrc": "/static/uni.ttf",
  26422. "fontSize": "22px",
  26423. "color": "#FFFFFF"
  26424. }]
  26425. }
  26426. },
  26427. "component": true,
  26428. "usingComponents": {
  26429. "van-button": "/wxcomponents/weapp/dist/button/index",
  26430. "van-toast": "/wxcomponents/weapp/dist/toast/index",
  26431. "van-field": "/wxcomponents/weapp/dist/field/index",
  26432. "van-picker": "/wxcomponents/weapp/dist/picker/index",
  26433. "van-dialog": "/wxcomponents/weapp/dist/dialog/index",
  26434. "van-icon": "/wxcomponents/weapp/dist/icon/index",
  26435. "van-tab": "/wxcomponents/weapp/dist/tab/index",
  26436. "van-tabs": "/wxcomponents/weapp/dist/tabs/index",
  26437. "van-datetime-picker": "/wxcomponents/weapp/dist/datetime-picker/index",
  26438. "van-uploader": "/wxcomponents/weapp/dist/uploader/index",
  26439. "van-checkbox": "/wxcomponents/weapp/dist/checkbox/index",
  26440. "van-checkbox-group": "/wxcomponents/weapp/dist/checkbox-group/index"
  26441. }
  26442. }
  26443. }, {
  26444. "path": "resourceReservation_manage/add",
  26445. "style": {
  26446. "navigationBarTitleText": "新增预约",
  26447. "enablePullDownRefresh": true,
  26448. "onReachBottomDistance": 100,
  26449. "app-plus": {
  26450. "bounce": "vertical",
  26451. "titleNView": {
  26452. "buttons": [{
  26453. "text": "",
  26454. "fontSrc": "/static/uni.ttf",
  26455. "fontSize": "22px",
  26456. "color": "#FFFFFF"
  26457. }]
  26458. }
  26459. },
  26460. "component": true,
  26461. "usingComponents": {
  26462. "van-button": "/wxcomponents/weapp/dist/button/index",
  26463. "van-toast": "/wxcomponents/weapp/dist/toast/index",
  26464. "van-field": "/wxcomponents/weapp/dist/field/index",
  26465. "van-picker": "/wxcomponents/weapp/dist/picker/index",
  26466. "van-dialog": "/wxcomponents/weapp/dist/dialog/index",
  26467. "van-icon": "/wxcomponents/weapp/dist/icon/index",
  26468. "van-tab": "/wxcomponents/weapp/dist/tab/index",
  26469. "van-tabs": "/wxcomponents/weapp/dist/tabs/index",
  26470. "van-datetime-picker": "/wxcomponents/weapp/dist/datetime-picker/index",
  26471. "van-uploader": "/wxcomponents/weapp/dist/uploader/index",
  26472. "van-checkbox": "/wxcomponents/weapp/dist/checkbox/index",
  26473. "van-checkbox-group": "/wxcomponents/weapp/dist/checkbox-group/index"
  26474. }
  26475. }
  26476. }, {
  26477. "path": "resourceReservation_manage/edit",
  26478. "style": {
  26479. "navigationBarTitleText": "编辑预约",
  26480. "enablePullDownRefresh": true,
  26481. "onReachBottomDistance": 100,
  26482. "app-plus": {
  26483. "bounce": "vertical",
  26484. "titleNView": {
  26485. "buttons": [{
  26486. "text": "",
  26487. "fontSrc": "/static/uni.ttf",
  26488. "fontSize": "22px",
  26489. "color": "#FFFFFF"
  26490. }]
  26491. }
  26492. },
  26493. "component": true,
  26494. "usingComponents": {
  26495. "van-button": "/wxcomponents/weapp/dist/button/index",
  26496. "van-toast": "/wxcomponents/weapp/dist/toast/index",
  26497. "van-field": "/wxcomponents/weapp/dist/field/index",
  26498. "van-picker": "/wxcomponents/weapp/dist/picker/index",
  26499. "van-dialog": "/wxcomponents/weapp/dist/dialog/index",
  26500. "van-icon": "/wxcomponents/weapp/dist/icon/index",
  26501. "van-tab": "/wxcomponents/weapp/dist/tab/index",
  26502. "van-tabs": "/wxcomponents/weapp/dist/tabs/index",
  26503. "van-datetime-picker": "/wxcomponents/weapp/dist/datetime-picker/index",
  26504. "van-uploader": "/wxcomponents/weapp/dist/uploader/index",
  26505. "van-checkbox": "/wxcomponents/weapp/dist/checkbox/index",
  26506. "van-checkbox-group": "/wxcomponents/weapp/dist/checkbox-group/index"
  26507. }
  26508. }
  26509. }, {
  26510. "path": "propertyManagement/maintenance",
  26511. "style": {
  26512. "navigationBarTitleText": "房源维护",
  26513. "enablePullDownRefresh": true,
  26514. "onReachBottomDistance": 100,
  26515. "app-plus": {
  26516. "bounce": "vertical",
  26517. "titleNView": {
  26518. "buttons": [{
  26519. "text": "",
  26520. "fontSrc": "/static/uni.ttf",
  26521. "fontSize": "22px",
  26522. "color": "#FFFFFF"
  26523. }]
  26524. }
  26525. },
  26526. "component": true,
  26527. "usingComponents": {
  26528. "van-button": "/wxcomponents/weapp/dist/button/index",
  26529. "van-toast": "/wxcomponents/weapp/dist/toast/index",
  26530. "van-field": "/wxcomponents/weapp/dist/field/index",
  26531. "van-picker": "/wxcomponents/weapp/dist/picker/index",
  26532. "van-dialog": "/wxcomponents/weapp/dist/dialog/index",
  26533. "van-icon": "/wxcomponents/weapp/dist/icon/index",
  26534. "van-tab": "/wxcomponents/weapp/dist/tab/index",
  26535. "van-tabs": "/wxcomponents/weapp/dist/tabs/index",
  26536. "van-datetime-picker": "/wxcomponents/weapp/dist/datetime-picker/index",
  26537. "van-uploader": "/wxcomponents/weapp/dist/uploader/index",
  26538. "van-checkbox": "/wxcomponents/weapp/dist/checkbox/index",
  26539. "van-checkbox-group": "/wxcomponents/weapp/dist/checkbox-group/index"
  26540. }
  26541. }
  26542. }, {
  26543. "path": "propertyManagement/propertyEditor",
  26544. "style": {
  26545. "navigationBarTitleText": "房源编辑",
  26546. "enablePullDownRefresh": true,
  26547. "onReachBottomDistance": 100,
  26548. "app-plus": {
  26549. "bounce": "vertical",
  26550. "titleNView": {
  26551. "buttons": [{
  26552. "text": "",
  26553. "fontSrc": "/static/uni.ttf",
  26554. "fontSize": "22px",
  26555. "color": "#FFFFFF"
  26556. }]
  26557. }
  26558. },
  26559. "component": true,
  26560. "usingComponents": {
  26561. "van-button": "/wxcomponents/weapp/dist/button/index",
  26562. "van-toast": "/wxcomponents/weapp/dist/toast/index",
  26563. "van-field": "/wxcomponents/weapp/dist/field/index",
  26564. "van-picker": "/wxcomponents/weapp/dist/picker/index",
  26565. "van-dialog": "/wxcomponents/weapp/dist/dialog/index",
  26566. "van-icon": "/wxcomponents/weapp/dist/icon/index",
  26567. "van-tab": "/wxcomponents/weapp/dist/tab/index",
  26568. "van-tabs": "/wxcomponents/weapp/dist/tabs/index",
  26569. "van-datetime-picker": "/wxcomponents/weapp/dist/datetime-picker/index",
  26570. "van-uploader": "/wxcomponents/weapp/dist/uploader/index",
  26571. "van-checkbox": "/wxcomponents/weapp/dist/checkbox/index",
  26572. "van-checkbox-group": "/wxcomponents/weapp/dist/checkbox-group/index",
  26573. "van-cascader": "/wxcomponents/weapp/dist/cascader/index"
  26574. }
  26575. }
  26576. }, {
  26577. "path": "serviceEvaluation/index",
  26578. "style": {
  26579. "navigationBarTitleText": "服务评价",
  26580. "enablePullDownRefresh": true,
  26581. "onReachBottomDistance": 100,
  26582. "app-plus": {
  26583. "bounce": "vertical",
  26584. "titleNView": {
  26585. "buttons": [{
  26586. "text": "",
  26587. "fontSrc": "/static/uni.ttf",
  26588. "fontSize": "22px",
  26589. "color": "#FFFFFF"
  26590. }]
  26591. }
  26592. },
  26593. "component": true,
  26594. "usingComponents": {
  26595. "van-button": "/wxcomponents/weapp/dist/button/index",
  26596. "van-toast": "/wxcomponents/weapp/dist/toast/index",
  26597. "van-field": "/wxcomponents/weapp/dist/field/index",
  26598. "van-picker": "/wxcomponents/weapp/dist/picker/index",
  26599. "van-dialog": "/wxcomponents/weapp/dist/dialog/index",
  26600. "van-icon": "/wxcomponents/weapp/dist/icon/index",
  26601. "van-tab": "/wxcomponents/weapp/dist/tab/index",
  26602. "van-tabs": "/wxcomponents/weapp/dist/tabs/index",
  26603. "van-datetime-picker": "/wxcomponents/weapp/dist/datetime-picker/index",
  26604. "van-uploader": "/wxcomponents/weapp/dist/uploader/index",
  26605. "van-checkbox": "/wxcomponents/weapp/dist/checkbox/index",
  26606. "van-checkbox-group": "/wxcomponents/weapp/dist/checkbox-group/index"
  26607. }
  26608. }
  26609. }, {
  26610. "path": "housingResources/index",
  26611. "style": {
  26612. "navigationBarTitleText": "园区房源",
  26613. "enablePullDownRefresh": true,
  26614. "onReachBottomDistance": 100,
  26615. "app-plus": {
  26616. "bounce": "vertical",
  26617. "titleNView": {
  26618. "buttons": [{
  26619. "text": "",
  26620. "fontSrc": "/static/uni.ttf",
  26621. "fontSize": "22px",
  26622. "color": "#FFFFFF"
  26623. }]
  26624. }
  26625. },
  26626. "component": true,
  26627. "usingComponents": {
  26628. "van-button": "/wxcomponents/weapp/dist/button/index",
  26629. "van-toast": "/wxcomponents/weapp/dist/toast/index",
  26630. "van-field": "/wxcomponents/weapp/dist/field/index",
  26631. "van-picker": "/wxcomponents/weapp/dist/picker/index",
  26632. "van-dialog": "/wxcomponents/weapp/dist/dialog/index",
  26633. "van-icon": "/wxcomponents/weapp/dist/icon/index",
  26634. "van-tab": "/wxcomponents/weapp/dist/tab/index",
  26635. "van-tabs": "/wxcomponents/weapp/dist/tabs/index",
  26636. "van-datetime-picker": "/wxcomponents/weapp/dist/datetime-picker/index",
  26637. "van-uploader": "/wxcomponents/weapp/dist/uploader/index",
  26638. "van-checkbox": "/wxcomponents/weapp/dist/checkbox/index",
  26639. "van-checkbox-group": "/wxcomponents/weapp/dist/checkbox-group/index"
  26640. }
  26641. }
  26642. }, {
  26643. "path": "housingResources/detail",
  26644. "style": {
  26645. "navigationBarTitleText": "房源详情",
  26646. "enablePullDownRefresh": true,
  26647. "onReachBottomDistance": 100,
  26648. "app-plus": {
  26649. "bounce": "vertical",
  26650. "titleNView": {
  26651. "buttons": [{
  26652. "text": "",
  26653. "fontSrc": "/static/uni.ttf",
  26654. "fontSize": "22px",
  26655. "color": "#FFFFFF"
  26656. }]
  26657. }
  26658. },
  26659. "component": true,
  26660. "usingComponents": {
  26661. "van-button": "/wxcomponents/weapp/dist/button/index",
  26662. "van-toast": "/wxcomponents/weapp/dist/toast/index",
  26663. "van-field": "/wxcomponents/weapp/dist/field/index",
  26664. "van-picker": "/wxcomponents/weapp/dist/picker/index",
  26665. "van-dialog": "/wxcomponents/weapp/dist/dialog/index",
  26666. "van-icon": "/wxcomponents/weapp/dist/icon/index",
  26667. "van-tab": "/wxcomponents/weapp/dist/tab/index",
  26668. "van-tabs": "/wxcomponents/weapp/dist/tabs/index",
  26669. "van-datetime-picker": "/wxcomponents/weapp/dist/datetime-picker/index",
  26670. "van-uploader": "/wxcomponents/weapp/dist/uploader/index",
  26671. "van-checkbox": "/wxcomponents/weapp/dist/checkbox/index",
  26672. "van-checkbox-group": "/wxcomponents/weapp/dist/checkbox-group/index",
  26673. "van-swipe-cell": "/wxcomponents/weapp/dist/swipe-cell/index"
  26674. }
  26675. }
  26676. }, {
  26677. "path": "housingResources/addPredetermine",
  26678. "style": {
  26679. "navigationBarTitleText": "新增预定",
  26680. "enablePullDownRefresh": true,
  26681. "onReachBottomDistance": 100,
  26682. "app-plus": {
  26683. "bounce": "vertical",
  26684. "titleNView": {
  26685. "buttons": [{
  26686. "text": "",
  26687. "fontSrc": "/static/uni.ttf",
  26688. "fontSize": "22px",
  26689. "color": "#FFFFFF"
  26690. }]
  26691. }
  26692. },
  26693. "component": true,
  26694. "usingComponents": {
  26695. "van-button": "/wxcomponents/weapp/dist/button/index",
  26696. "van-toast": "/wxcomponents/weapp/dist/toast/index",
  26697. "van-field": "/wxcomponents/weapp/dist/field/index",
  26698. "van-picker": "/wxcomponents/weapp/dist/picker/index",
  26699. "van-dialog": "/wxcomponents/weapp/dist/dialog/index",
  26700. "van-icon": "/wxcomponents/weapp/dist/icon/index",
  26701. "van-tab": "/wxcomponents/weapp/dist/tab/index",
  26702. "van-tabs": "/wxcomponents/weapp/dist/tabs/index",
  26703. "van-datetime-picker": "/wxcomponents/weapp/dist/datetime-picker/index",
  26704. "van-uploader": "/wxcomponents/weapp/dist/uploader/index",
  26705. "van-checkbox": "/wxcomponents/weapp/dist/checkbox/index",
  26706. "van-checkbox-group": "/wxcomponents/weapp/dist/checkbox-group/index",
  26707. "van-swipe-cell": "/wxcomponents/weapp/dist/swipe-cell/index"
  26708. }
  26709. }
  26710. }, {
  26711. "path": "aboutThePark/index",
  26712. "style": {
  26713. "navigationBarTitleText": "关于园区",
  26714. "enablePullDownRefresh": true,
  26715. "onReachBottomDistance": 100,
  26716. "app-plus": {
  26717. "bounce": "vertical",
  26718. "titleNView": {
  26719. "buttons": [{
  26720. "text": "",
  26721. "fontSrc": "/static/uni.ttf",
  26722. "fontSize": "22px",
  26723. "color": "#FFFFFF"
  26724. }]
  26725. }
  26726. },
  26727. "component": true,
  26728. "usingComponents": {
  26729. "van-button": "/wxcomponents/weapp/dist/button/index",
  26730. "van-toast": "/wxcomponents/weapp/dist/toast/index",
  26731. "van-field": "/wxcomponents/weapp/dist/field/index",
  26732. "van-picker": "/wxcomponents/weapp/dist/picker/index",
  26733. "van-dialog": "/wxcomponents/weapp/dist/dialog/index",
  26734. "van-icon": "/wxcomponents/weapp/dist/icon/index",
  26735. "van-tab": "/wxcomponents/weapp/dist/tab/index",
  26736. "van-tabs": "/wxcomponents/weapp/dist/tabs/index",
  26737. "van-datetime-picker": "/wxcomponents/weapp/dist/datetime-picker/index",
  26738. "van-uploader": "/wxcomponents/weapp/dist/uploader/index",
  26739. "van-checkbox": "/wxcomponents/weapp/dist/checkbox/index",
  26740. "van-checkbox-group": "/wxcomponents/weapp/dist/checkbox-group/index",
  26741. "van-swipe-cell": "/wxcomponents/weapp/dist/swipe-cell/index"
  26742. }
  26743. }
  26744. }, {
  26745. "path": "todo/resourceReview",
  26746. "style": {
  26747. "navigationBarTitleText": "资源预约审核",
  26748. "enablePullDownRefresh": true,
  26749. "onReachBottomDistance": 100,
  26750. "app-plus": {
  26751. "bounce": "vertical",
  26752. "titleNView": {
  26753. "buttons": [{
  26754. "text": "",
  26755. "fontSrc": "/static/uni.ttf",
  26756. "fontSize": "22px",
  26757. "color": "#FFFFFF"
  26758. }]
  26759. }
  26760. },
  26761. "component": true,
  26762. "usingComponents": {
  26763. "van-button": "/wxcomponents/weapp/dist/button/index",
  26764. "van-toast": "/wxcomponents/weapp/dist/toast/index",
  26765. "van-field": "/wxcomponents/weapp/dist/field/index",
  26766. "van-picker": "/wxcomponents/weapp/dist/picker/index",
  26767. "van-dialog": "/wxcomponents/weapp/dist/dialog/index",
  26768. "van-icon": "/wxcomponents/weapp/dist/icon/index",
  26769. "van-tab": "/wxcomponents/weapp/dist/tab/index",
  26770. "van-tabs": "/wxcomponents/weapp/dist/tabs/index",
  26771. "van-datetime-picker": "/wxcomponents/weapp/dist/datetime-picker/index",
  26772. "van-uploader": "/wxcomponents/weapp/dist/uploader/index",
  26773. "van-checkbox": "/wxcomponents/weapp/dist/checkbox/index",
  26774. "van-checkbox-group": "/wxcomponents/weapp/dist/checkbox-group/index",
  26775. "van-swipe-cell": "/wxcomponents/weapp/dist/swipe-cell/index"
  26776. }
  26777. }
  26778. }, {
  26779. "path": "minePages/registrationDetails",
  26780. "style": {
  26781. "navigationBarTitleText": "报名详情",
  26782. "enablePullDownRefresh": true,
  26783. "onReachBottomDistance": 100,
  26784. "app-plus": {
  26785. "bounce": "vertical",
  26786. "titleNView": {
  26787. "buttons": [{
  26788. "text": "",
  26789. "fontSrc": "/static/uni.ttf",
  26790. "fontSize": "22px",
  26791. "color": "#FFFFFF"
  26792. }]
  26793. }
  26794. },
  26795. "component": true,
  26796. "usingComponents": {
  26797. "van-button": "/wxcomponents/weapp/dist/button/index",
  26798. "van-toast": "/wxcomponents/weapp/dist/toast/index",
  26799. "van-field": "/wxcomponents/weapp/dist/field/index",
  26800. "van-picker": "/wxcomponents/weapp/dist/picker/index",
  26801. "van-dialog": "/wxcomponents/weapp/dist/dialog/index",
  26802. "van-icon": "/wxcomponents/weapp/dist/icon/index",
  26803. "van-tab": "/wxcomponents/weapp/dist/tab/index",
  26804. "van-tabs": "/wxcomponents/weapp/dist/tabs/index",
  26805. "van-datetime-picker": "/wxcomponents/weapp/dist/datetime-picker/index",
  26806. "van-uploader": "/wxcomponents/weapp/dist/uploader/index",
  26807. "van-checkbox": "/wxcomponents/weapp/dist/checkbox/index",
  26808. "van-checkbox-group": "/wxcomponents/weapp/dist/checkbox-group/index",
  26809. "van-swipe-cell": "/wxcomponents/weapp/dist/swipe-cell/index"
  26810. }
  26811. }
  26812. }, {
  26813. "path": "economicDevelopmentReport/detail",
  26814. "style": {
  26815. "navigationBarTitleText": "填报详情",
  26816. "enablePullDownRefresh": true,
  26817. "onReachBottomDistance": 100,
  26818. "app-plus": {
  26819. "bounce": "vertical",
  26820. "titleNView": {
  26821. "buttons": [{
  26822. "text": "",
  26823. "fontSrc": "/static/uni.ttf",
  26824. "fontSize": "22px",
  26825. "color": "#FFFFFF"
  26826. }]
  26827. }
  26828. },
  26829. "component": true,
  26830. "usingComponents": {
  26831. "van-button": "/wxcomponents/weapp/dist/button/index",
  26832. "van-toast": "/wxcomponents/weapp/dist/toast/index",
  26833. "van-field": "/wxcomponents/weapp/dist/field/index",
  26834. "van-picker": "/wxcomponents/weapp/dist/picker/index",
  26835. "van-dialog": "/wxcomponents/weapp/dist/dialog/index",
  26836. "van-icon": "/wxcomponents/weapp/dist/icon/index",
  26837. "van-tab": "/wxcomponents/weapp/dist/tab/index",
  26838. "van-tabs": "/wxcomponents/weapp/dist/tabs/index",
  26839. "van-datetime-picker": "/wxcomponents/weapp/dist/datetime-picker/index",
  26840. "van-uploader": "/wxcomponents/weapp/dist/uploader/index",
  26841. "van-checkbox": "/wxcomponents/weapp/dist/checkbox/index",
  26842. "van-checkbox-group": "/wxcomponents/weapp/dist/checkbox-group/index",
  26843. "van-swipe-cell": "/wxcomponents/weapp/dist/swipe-cell/index"
  26844. }
  26845. }
  26846. }],
  26847. "network": "all"
  26848. }],
  26849. "globalStyle": {
  26850. "pageOrientation": "portrait",
  26851. "navigationBarTitleText": "Hello uniapp",
  26852. "navigationBarTextStyle": "black",
  26853. "navigationBarBackgroundColor": "#FFFFFF",
  26854. "backgroundColor": "#FFFFFF",
  26855. "backgroundColorTop": "#FFFFFF",
  26856. "backgroundColorBottom": "#F4F5F6",
  26857. "usingComponents": {
  26858. "van-dropdown-menu": "/wxcomponents/weapp/dist/dropdown-menu/index",
  26859. "van-dropdown-item": "/wxcomponents/weapp/dist/dropdown-item/index",
  26860. "van-action-sheet": "/wxcomponents/weapp/dist/action-sheet/index",
  26861. "van-area": "/wxcomponents/weapp/dist/area/index",
  26862. "van-button": "/wxcomponents/weapp/dist/button/index",
  26863. "van-card": "/wxcomponents/weapp/dist/card/index",
  26864. "van-cell": "/wxcomponents/weapp/dist/cell/index",
  26865. "van-cell-group": "/wxcomponents/weapp/dist/cell-group/index",
  26866. "van-checkbox": "/wxcomponents/weapp/dist/checkbox/index",
  26867. "van-checkbox-group": "/wxcomponents/weapp/dist/checkbox-group/index",
  26868. "van-col": "/wxcomponents/weapp/dist/col/index",
  26869. "van-dialog": "/wxcomponents/weapp/dist/dialog/index",
  26870. "van-field": "/wxcomponents/weapp/dist/field/index",
  26871. "van-goods-action": "/wxcomponents/weapp/dist/goods-action/index",
  26872. "van-goods-action-icon": "/wxcomponents/weapp/dist/goods-action-icon/index",
  26873. "van-goods-action-button": "/wxcomponents/weapp/dist/goods-action-button/index",
  26874. "van-icon": "/wxcomponents/weapp/dist/icon/index",
  26875. "van-loading": "/wxcomponents/weapp/dist/loading/index",
  26876. "van-nav-bar": "/wxcomponents/weapp/dist/nav-bar/index",
  26877. "van-notice-bar": "/wxcomponents/weapp/dist/notice-bar/index",
  26878. "van-notify": "/wxcomponents/weapp/dist/notify/index",
  26879. "van-panel": "/wxcomponents/weapp/dist/panel/index",
  26880. "van-popup": "/wxcomponents/weapp/dist/popup/index",
  26881. "van-progress": "/wxcomponents/weapp/dist/progress/index",
  26882. "van-radio": "/wxcomponents/weapp/dist/radio/index",
  26883. "van-radio-group": "/wxcomponents/weapp/dist/radio-group/index",
  26884. "van-row": "/wxcomponents/weapp/dist/row/index",
  26885. "van-search": "/wxcomponents/weapp/dist/search/index",
  26886. "van-slider": "/wxcomponents/weapp/dist/slider/index",
  26887. "van-stepper": "/wxcomponents/weapp/dist/stepper/index",
  26888. "van-sticky": "/wxcomponents/weapp/dist/sticky/index",
  26889. "van-steps": "/wxcomponents/weapp/dist/steps/index",
  26890. "van-submit-bar": "/wxcomponents/weapp/dist/submit-bar/index",
  26891. "van-swipe-cell": "/wxcomponents/weapp/dist/swipe-cell/index",
  26892. "van-switch": "/wxcomponents/weapp/dist/switch/index",
  26893. "van-tab": "/wxcomponents/weapp/dist/tab/index",
  26894. "van-tabs": "/wxcomponents/weapp/dist/tabs/index",
  26895. "van-tabbar": "/wxcomponents/weapp/dist/tabbar/index",
  26896. "van-tabbar-item": "/wxcomponents/weapp/dist/tabbar-item/index",
  26897. "van-tag": "/wxcomponents/weapp/dist/tag/index",
  26898. "van-toast": "/wxcomponents/weapp/dist/toast/index",
  26899. "van-transition": "/wxcomponents/weapp/dist/transition/index",
  26900. "van-tree-select": "/wxcomponents/weapp/dist/tree-select/index",
  26901. "van-datetime-picker": "/wxcomponents/weapp/dist/datetime-picker/index",
  26902. "van-rate": "/wxcomponents/weapp/dist/rate/index",
  26903. "van-collapse": "/wxcomponents/weapp/dist/collapse/index",
  26904. "van-collapse-item": "/wxcomponents/weapp/dist/collapse-item/index",
  26905. "van-picker": "/wxcomponents/weapp/dist/picker/index",
  26906. "van-share-sheet": "/wxcomponents/weapp/dist/share-sheet/index",
  26907. "van-circle": "/wxcomponents/weapp/dist/circle/index",
  26908. "van-grid": "/wxcomponents/weapp/dist/grid/index",
  26909. "van-calendar": "/wxcomponents/weapp/dist/calendar/index"
  26910. }
  26911. },
  26912. "tabBar": {
  26913. "color": "#7A7E83",
  26914. "selectedColor": "#2527AA",
  26915. "borderStyle": "black",
  26916. "enablePullDownRefresh": true,
  26917. "backgroundColor": "#F8F8F8",
  26918. "list": [{
  26919. "pagePath": "pages/index/index",
  26920. "iconPath": "static/home.png",
  26921. "selectedIconPath": "static/homeselect.png",
  26922. "text": "首页",
  26923. "enablePullDownRefresh": true,
  26924. "onReachBottomDistance": 100
  26925. }, {
  26926. "pagePath": "pages/mine/mine",
  26927. "iconPath": "static/mine.png",
  26928. "selectedIconPath": "static/mineselect.png",
  26929. "text": "我的"
  26930. }]
  26931. },
  26932. "window": {
  26933. "backgroundTextStyle": "dark",
  26934. "navigationBarBackgroundColor": "#ffffff",
  26935. "navigationBarTitleText": "Demo",
  26936. "navigationBarTextStyle": "black",
  26937. "enablePullDownRefresh": true
  26938. },
  26939. "lazyCodeLoading": "requiredComponents"
  26940. };
  26941. exports.default = _default;
  26942. /***/ }),
  26943. /***/ 46:
  26944. /*!**********************************************************************************************************!*\
  26945. !*** ./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/runtime/componentNormalizer.js ***!
  26946. \**********************************************************************************************************/
  26947. /*! exports provided: default */
  26948. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  26949. "use strict";
  26950. __webpack_require__.r(__webpack_exports__);
  26951. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return normalizeComponent; });
  26952. /* globals __VUE_SSR_CONTEXT__ */
  26953. // IMPORTANT: Do NOT use ES2015 features in this file (except for modules).
  26954. // This module is a runtime utility for cleaner component module output and will
  26955. // be included in the final webpack user bundle.
  26956. function normalizeComponent (
  26957. scriptExports,
  26958. render,
  26959. staticRenderFns,
  26960. functionalTemplate,
  26961. injectStyles,
  26962. scopeId,
  26963. moduleIdentifier, /* server only */
  26964. shadowMode, /* vue-cli only */
  26965. components, // fixed by xxxxxx auto components
  26966. renderjs // fixed by xxxxxx renderjs
  26967. ) {
  26968. // Vue.extend constructor export interop
  26969. var options = typeof scriptExports === 'function'
  26970. ? scriptExports.options
  26971. : scriptExports
  26972. // fixed by xxxxxx auto components
  26973. if (components) {
  26974. if (!options.components) {
  26975. options.components = {}
  26976. }
  26977. var hasOwn = Object.prototype.hasOwnProperty
  26978. for (var name in components) {
  26979. if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {
  26980. options.components[name] = components[name]
  26981. }
  26982. }
  26983. }
  26984. // fixed by xxxxxx renderjs
  26985. if (renderjs) {
  26986. if(typeof renderjs.beforeCreate === 'function'){
  26987. renderjs.beforeCreate = [renderjs.beforeCreate]
  26988. }
  26989. (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {
  26990. this[renderjs.__module] = this
  26991. });
  26992. (options.mixins || (options.mixins = [])).push(renderjs)
  26993. }
  26994. // render functions
  26995. if (render) {
  26996. options.render = render
  26997. options.staticRenderFns = staticRenderFns
  26998. options._compiled = true
  26999. }
  27000. // functional template
  27001. if (functionalTemplate) {
  27002. options.functional = true
  27003. }
  27004. // scopedId
  27005. if (scopeId) {
  27006. options._scopeId = 'data-v-' + scopeId
  27007. }
  27008. var hook
  27009. if (moduleIdentifier) { // server build
  27010. hook = function (context) {
  27011. // 2.3 injection
  27012. context =
  27013. context || // cached call
  27014. (this.$vnode && this.$vnode.ssrContext) || // stateful
  27015. (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional
  27016. // 2.2 with runInNewContext: true
  27017. if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {
  27018. context = __VUE_SSR_CONTEXT__
  27019. }
  27020. // inject component styles
  27021. if (injectStyles) {
  27022. injectStyles.call(this, context)
  27023. }
  27024. // register component module identifier for async chunk inferrence
  27025. if (context && context._registeredComponents) {
  27026. context._registeredComponents.add(moduleIdentifier)
  27027. }
  27028. }
  27029. // used by ssr in case component is cached and beforeCreate
  27030. // never gets called
  27031. options._ssrRegister = hook
  27032. } else if (injectStyles) {
  27033. hook = shadowMode
  27034. ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }
  27035. : injectStyles
  27036. }
  27037. if (hook) {
  27038. if (options.functional) {
  27039. // for template-only hot-reload because in that case the render fn doesn't
  27040. // go through the normalizer
  27041. options._injectStyles = hook
  27042. // register for functioal component in vue file
  27043. var originalRender = options.render
  27044. options.render = function renderWithStyleInjection (h, context) {
  27045. hook.call(context)
  27046. return originalRender(h, context)
  27047. }
  27048. } else {
  27049. // inject component registration as beforeCreate hook
  27050. var existing = options.beforeCreate
  27051. options.beforeCreate = existing
  27052. ? [].concat(existing, hook)
  27053. : [hook]
  27054. }
  27055. }
  27056. return {
  27057. exports: scriptExports,
  27058. options: options
  27059. }
  27060. }
  27061. /***/ }),
  27062. /***/ 47:
  27063. /*!********************************************************!*\
  27064. !*** /Users/chenpengming/代码/product_wx/store/index.js ***!
  27065. \********************************************************/
  27066. /*! no static exports found */
  27067. /***/ (function(module, exports, __webpack_require__) {
  27068. "use strict";
  27069. /* WEBPACK VAR INJECTION */(function(uni) {
  27070. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  27071. Object.defineProperty(exports, "__esModule", {
  27072. value: true
  27073. });
  27074. exports.default = void 0;
  27075. var _vue = _interopRequireDefault(__webpack_require__(/*! vue */ 25));
  27076. var _vuex = _interopRequireDefault(__webpack_require__(/*! vuex */ 48));
  27077. _vue.default.use(_vuex.default);
  27078. var store = new _vuex.default.Store({
  27079. state: {
  27080. userInfo: null,
  27081. token: null,
  27082. isRefresh: true,
  27083. kickbackData: []
  27084. },
  27085. getters: {
  27086. kickbackDataLen: function kickbackDataLen(state) {
  27087. return state.kickbackData.length;
  27088. }
  27089. },
  27090. mutations: {
  27091. setData: function setData(state, _ref) {
  27092. var payload = _ref.payload;
  27093. for (var v in payload) {
  27094. state[v] = payload[v];
  27095. uni.setStorageSync(v, payload[v]);
  27096. }
  27097. }
  27098. },
  27099. actions: {}
  27100. });
  27101. var _default = store;
  27102. exports.default = _default;
  27103. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  27104. /***/ }),
  27105. /***/ 48:
  27106. /*!**************************************************************************************!*\
  27107. !*** ./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vuex3/dist/vuex.common.js ***!
  27108. \**************************************************************************************/
  27109. /*! no static exports found */
  27110. /***/ (function(module, exports, __webpack_require__) {
  27111. "use strict";
  27112. /* WEBPACK VAR INJECTION */(function(global) {/*!
  27113. * vuex v3.6.2
  27114. * (c) 2021 Evan You
  27115. * @license MIT
  27116. */
  27117. function applyMixin (Vue) {
  27118. var version = Number(Vue.version.split('.')[0]);
  27119. if (version >= 2) {
  27120. Vue.mixin({ beforeCreate: vuexInit });
  27121. } else {
  27122. // override init and inject vuex init procedure
  27123. // for 1.x backwards compatibility.
  27124. var _init = Vue.prototype._init;
  27125. Vue.prototype._init = function (options) {
  27126. if ( options === void 0 ) options = {};
  27127. options.init = options.init
  27128. ? [vuexInit].concat(options.init)
  27129. : vuexInit;
  27130. _init.call(this, options);
  27131. };
  27132. }
  27133. /**
  27134. * Vuex init hook, injected into each instances init hooks list.
  27135. */
  27136. function vuexInit () {
  27137. var options = this.$options;
  27138. // store injection
  27139. if (options.store) {
  27140. this.$store = typeof options.store === 'function'
  27141. ? options.store()
  27142. : options.store;
  27143. } else if (options.parent && options.parent.$store) {
  27144. this.$store = options.parent.$store;
  27145. }
  27146. }
  27147. }
  27148. var target = typeof window !== 'undefined'
  27149. ? window
  27150. : typeof global !== 'undefined'
  27151. ? global
  27152. : {};
  27153. var devtoolHook = target.__VUE_DEVTOOLS_GLOBAL_HOOK__;
  27154. function devtoolPlugin (store) {
  27155. if (!devtoolHook) { return }
  27156. store._devtoolHook = devtoolHook;
  27157. devtoolHook.emit('vuex:init', store);
  27158. devtoolHook.on('vuex:travel-to-state', function (targetState) {
  27159. store.replaceState(targetState);
  27160. });
  27161. store.subscribe(function (mutation, state) {
  27162. devtoolHook.emit('vuex:mutation', mutation, state);
  27163. }, { prepend: true });
  27164. store.subscribeAction(function (action, state) {
  27165. devtoolHook.emit('vuex:action', action, state);
  27166. }, { prepend: true });
  27167. }
  27168. /**
  27169. * Get the first item that pass the test
  27170. * by second argument function
  27171. *
  27172. * @param {Array} list
  27173. * @param {Function} f
  27174. * @return {*}
  27175. */
  27176. function find (list, f) {
  27177. return list.filter(f)[0]
  27178. }
  27179. /**
  27180. * Deep copy the given object considering circular structure.
  27181. * This function caches all nested objects and its copies.
  27182. * If it detects circular structure, use cached copy to avoid infinite loop.
  27183. *
  27184. * @param {*} obj
  27185. * @param {Array<Object>} cache
  27186. * @return {*}
  27187. */
  27188. function deepCopy (obj, cache) {
  27189. if ( cache === void 0 ) cache = [];
  27190. // just return if obj is immutable value
  27191. if (obj === null || typeof obj !== 'object') {
  27192. return obj
  27193. }
  27194. // if obj is hit, it is in circular structure
  27195. var hit = find(cache, function (c) { return c.original === obj; });
  27196. if (hit) {
  27197. return hit.copy
  27198. }
  27199. var copy = Array.isArray(obj) ? [] : {};
  27200. // put the copy into cache at first
  27201. // because we want to refer it in recursive deepCopy
  27202. cache.push({
  27203. original: obj,
  27204. copy: copy
  27205. });
  27206. Object.keys(obj).forEach(function (key) {
  27207. copy[key] = deepCopy(obj[key], cache);
  27208. });
  27209. return copy
  27210. }
  27211. /**
  27212. * forEach for object
  27213. */
  27214. function forEachValue (obj, fn) {
  27215. Object.keys(obj).forEach(function (key) { return fn(obj[key], key); });
  27216. }
  27217. function isObject (obj) {
  27218. return obj !== null && typeof obj === 'object'
  27219. }
  27220. function isPromise (val) {
  27221. return val && typeof val.then === 'function'
  27222. }
  27223. function assert (condition, msg) {
  27224. if (!condition) { throw new Error(("[vuex] " + msg)) }
  27225. }
  27226. function partial (fn, arg) {
  27227. return function () {
  27228. return fn(arg)
  27229. }
  27230. }
  27231. // Base data struct for store's module, package with some attribute and method
  27232. var Module = function Module (rawModule, runtime) {
  27233. this.runtime = runtime;
  27234. // Store some children item
  27235. this._children = Object.create(null);
  27236. // Store the origin module object which passed by programmer
  27237. this._rawModule = rawModule;
  27238. var rawState = rawModule.state;
  27239. // Store the origin module's state
  27240. this.state = (typeof rawState === 'function' ? rawState() : rawState) || {};
  27241. };
  27242. var prototypeAccessors = { namespaced: { configurable: true } };
  27243. prototypeAccessors.namespaced.get = function () {
  27244. return !!this._rawModule.namespaced
  27245. };
  27246. Module.prototype.addChild = function addChild (key, module) {
  27247. this._children[key] = module;
  27248. };
  27249. Module.prototype.removeChild = function removeChild (key) {
  27250. delete this._children[key];
  27251. };
  27252. Module.prototype.getChild = function getChild (key) {
  27253. return this._children[key]
  27254. };
  27255. Module.prototype.hasChild = function hasChild (key) {
  27256. return key in this._children
  27257. };
  27258. Module.prototype.update = function update (rawModule) {
  27259. this._rawModule.namespaced = rawModule.namespaced;
  27260. if (rawModule.actions) {
  27261. this._rawModule.actions = rawModule.actions;
  27262. }
  27263. if (rawModule.mutations) {
  27264. this._rawModule.mutations = rawModule.mutations;
  27265. }
  27266. if (rawModule.getters) {
  27267. this._rawModule.getters = rawModule.getters;
  27268. }
  27269. };
  27270. Module.prototype.forEachChild = function forEachChild (fn) {
  27271. forEachValue(this._children, fn);
  27272. };
  27273. Module.prototype.forEachGetter = function forEachGetter (fn) {
  27274. if (this._rawModule.getters) {
  27275. forEachValue(this._rawModule.getters, fn);
  27276. }
  27277. };
  27278. Module.prototype.forEachAction = function forEachAction (fn) {
  27279. if (this._rawModule.actions) {
  27280. forEachValue(this._rawModule.actions, fn);
  27281. }
  27282. };
  27283. Module.prototype.forEachMutation = function forEachMutation (fn) {
  27284. if (this._rawModule.mutations) {
  27285. forEachValue(this._rawModule.mutations, fn);
  27286. }
  27287. };
  27288. Object.defineProperties( Module.prototype, prototypeAccessors );
  27289. var ModuleCollection = function ModuleCollection (rawRootModule) {
  27290. // register root module (Vuex.Store options)
  27291. this.register([], rawRootModule, false);
  27292. };
  27293. ModuleCollection.prototype.get = function get (path) {
  27294. return path.reduce(function (module, key) {
  27295. return module.getChild(key)
  27296. }, this.root)
  27297. };
  27298. ModuleCollection.prototype.getNamespace = function getNamespace (path) {
  27299. var module = this.root;
  27300. return path.reduce(function (namespace, key) {
  27301. module = module.getChild(key);
  27302. return namespace + (module.namespaced ? key + '/' : '')
  27303. }, '')
  27304. };
  27305. ModuleCollection.prototype.update = function update$1 (rawRootModule) {
  27306. update([], this.root, rawRootModule);
  27307. };
  27308. ModuleCollection.prototype.register = function register (path, rawModule, runtime) {
  27309. var this$1 = this;
  27310. if ( runtime === void 0 ) runtime = true;
  27311. if ((true)) {
  27312. assertRawModule(path, rawModule);
  27313. }
  27314. var newModule = new Module(rawModule, runtime);
  27315. if (path.length === 0) {
  27316. this.root = newModule;
  27317. } else {
  27318. var parent = this.get(path.slice(0, -1));
  27319. parent.addChild(path[path.length - 1], newModule);
  27320. }
  27321. // register nested modules
  27322. if (rawModule.modules) {
  27323. forEachValue(rawModule.modules, function (rawChildModule, key) {
  27324. this$1.register(path.concat(key), rawChildModule, runtime);
  27325. });
  27326. }
  27327. };
  27328. ModuleCollection.prototype.unregister = function unregister (path) {
  27329. var parent = this.get(path.slice(0, -1));
  27330. var key = path[path.length - 1];
  27331. var child = parent.getChild(key);
  27332. if (!child) {
  27333. if ((true)) {
  27334. console.warn(
  27335. "[vuex] trying to unregister module '" + key + "', which is " +
  27336. "not registered"
  27337. );
  27338. }
  27339. return
  27340. }
  27341. if (!child.runtime) {
  27342. return
  27343. }
  27344. parent.removeChild(key);
  27345. };
  27346. ModuleCollection.prototype.isRegistered = function isRegistered (path) {
  27347. var parent = this.get(path.slice(0, -1));
  27348. var key = path[path.length - 1];
  27349. if (parent) {
  27350. return parent.hasChild(key)
  27351. }
  27352. return false
  27353. };
  27354. function update (path, targetModule, newModule) {
  27355. if ((true)) {
  27356. assertRawModule(path, newModule);
  27357. }
  27358. // update target module
  27359. targetModule.update(newModule);
  27360. // update nested modules
  27361. if (newModule.modules) {
  27362. for (var key in newModule.modules) {
  27363. if (!targetModule.getChild(key)) {
  27364. if ((true)) {
  27365. console.warn(
  27366. "[vuex] trying to add a new module '" + key + "' on hot reloading, " +
  27367. 'manual reload is needed'
  27368. );
  27369. }
  27370. return
  27371. }
  27372. update(
  27373. path.concat(key),
  27374. targetModule.getChild(key),
  27375. newModule.modules[key]
  27376. );
  27377. }
  27378. }
  27379. }
  27380. var functionAssert = {
  27381. assert: function (value) { return typeof value === 'function'; },
  27382. expected: 'function'
  27383. };
  27384. var objectAssert = {
  27385. assert: function (value) { return typeof value === 'function' ||
  27386. (typeof value === 'object' && typeof value.handler === 'function'); },
  27387. expected: 'function or object with "handler" function'
  27388. };
  27389. var assertTypes = {
  27390. getters: functionAssert,
  27391. mutations: functionAssert,
  27392. actions: objectAssert
  27393. };
  27394. function assertRawModule (path, rawModule) {
  27395. Object.keys(assertTypes).forEach(function (key) {
  27396. if (!rawModule[key]) { return }
  27397. var assertOptions = assertTypes[key];
  27398. forEachValue(rawModule[key], function (value, type) {
  27399. assert(
  27400. assertOptions.assert(value),
  27401. makeAssertionMessage(path, key, type, value, assertOptions.expected)
  27402. );
  27403. });
  27404. });
  27405. }
  27406. function makeAssertionMessage (path, key, type, value, expected) {
  27407. var buf = key + " should be " + expected + " but \"" + key + "." + type + "\"";
  27408. if (path.length > 0) {
  27409. buf += " in module \"" + (path.join('.')) + "\"";
  27410. }
  27411. buf += " is " + (JSON.stringify(value)) + ".";
  27412. return buf
  27413. }
  27414. var Vue; // bind on install
  27415. var Store = function Store (options) {
  27416. var this$1 = this;
  27417. if ( options === void 0 ) options = {};
  27418. // Auto install if it is not done yet and `window` has `Vue`.
  27419. // To allow users to avoid auto-installation in some cases,
  27420. // this code should be placed here. See #731
  27421. if (!Vue && typeof window !== 'undefined' && window.Vue) {
  27422. install(window.Vue);
  27423. }
  27424. if ((true)) {
  27425. assert(Vue, "must call Vue.use(Vuex) before creating a store instance.");
  27426. assert(typeof Promise !== 'undefined', "vuex requires a Promise polyfill in this browser.");
  27427. assert(this instanceof Store, "store must be called with the new operator.");
  27428. }
  27429. var plugins = options.plugins; if ( plugins === void 0 ) plugins = [];
  27430. var strict = options.strict; if ( strict === void 0 ) strict = false;
  27431. // store internal state
  27432. this._committing = false;
  27433. this._actions = Object.create(null);
  27434. this._actionSubscribers = [];
  27435. this._mutations = Object.create(null);
  27436. this._wrappedGetters = Object.create(null);
  27437. this._modules = new ModuleCollection(options);
  27438. this._modulesNamespaceMap = Object.create(null);
  27439. this._subscribers = [];
  27440. this._watcherVM = new Vue();
  27441. this._makeLocalGettersCache = Object.create(null);
  27442. // bind commit and dispatch to self
  27443. var store = this;
  27444. var ref = this;
  27445. var dispatch = ref.dispatch;
  27446. var commit = ref.commit;
  27447. this.dispatch = function boundDispatch (type, payload) {
  27448. return dispatch.call(store, type, payload)
  27449. };
  27450. this.commit = function boundCommit (type, payload, options) {
  27451. return commit.call(store, type, payload, options)
  27452. };
  27453. // strict mode
  27454. this.strict = strict;
  27455. var state = this._modules.root.state;
  27456. // init root module.
  27457. // this also recursively registers all sub-modules
  27458. // and collects all module getters inside this._wrappedGetters
  27459. installModule(this, state, [], this._modules.root);
  27460. // initialize the store vm, which is responsible for the reactivity
  27461. // (also registers _wrappedGetters as computed properties)
  27462. resetStoreVM(this, state);
  27463. // apply plugins
  27464. plugins.forEach(function (plugin) { return plugin(this$1); });
  27465. var useDevtools = options.devtools !== undefined ? options.devtools : Vue.config.devtools;
  27466. if (useDevtools) {
  27467. devtoolPlugin(this);
  27468. }
  27469. };
  27470. var prototypeAccessors$1 = { state: { configurable: true } };
  27471. prototypeAccessors$1.state.get = function () {
  27472. return this._vm._data.$$state
  27473. };
  27474. prototypeAccessors$1.state.set = function (v) {
  27475. if ((true)) {
  27476. assert(false, "use store.replaceState() to explicit replace store state.");
  27477. }
  27478. };
  27479. Store.prototype.commit = function commit (_type, _payload, _options) {
  27480. var this$1 = this;
  27481. // check object-style commit
  27482. var ref = unifyObjectStyle(_type, _payload, _options);
  27483. var type = ref.type;
  27484. var payload = ref.payload;
  27485. var options = ref.options;
  27486. var mutation = { type: type, payload: payload };
  27487. var entry = this._mutations[type];
  27488. if (!entry) {
  27489. if ((true)) {
  27490. console.error(("[vuex] unknown mutation type: " + type));
  27491. }
  27492. return
  27493. }
  27494. this._withCommit(function () {
  27495. entry.forEach(function commitIterator (handler) {
  27496. handler(payload);
  27497. });
  27498. });
  27499. this._subscribers
  27500. .slice() // shallow copy to prevent iterator invalidation if subscriber synchronously calls unsubscribe
  27501. .forEach(function (sub) { return sub(mutation, this$1.state); });
  27502. if (
  27503. ( true) &&
  27504. options && options.silent
  27505. ) {
  27506. console.warn(
  27507. "[vuex] mutation type: " + type + ". Silent option has been removed. " +
  27508. 'Use the filter functionality in the vue-devtools'
  27509. );
  27510. }
  27511. };
  27512. Store.prototype.dispatch = function dispatch (_type, _payload) {
  27513. var this$1 = this;
  27514. // check object-style dispatch
  27515. var ref = unifyObjectStyle(_type, _payload);
  27516. var type = ref.type;
  27517. var payload = ref.payload;
  27518. var action = { type: type, payload: payload };
  27519. var entry = this._actions[type];
  27520. if (!entry) {
  27521. if ((true)) {
  27522. console.error(("[vuex] unknown action type: " + type));
  27523. }
  27524. return
  27525. }
  27526. try {
  27527. this._actionSubscribers
  27528. .slice() // shallow copy to prevent iterator invalidation if subscriber synchronously calls unsubscribe
  27529. .filter(function (sub) { return sub.before; })
  27530. .forEach(function (sub) { return sub.before(action, this$1.state); });
  27531. } catch (e) {
  27532. if ((true)) {
  27533. console.warn("[vuex] error in before action subscribers: ");
  27534. console.error(e);
  27535. }
  27536. }
  27537. var result = entry.length > 1
  27538. ? Promise.all(entry.map(function (handler) { return handler(payload); }))
  27539. : entry[0](payload);
  27540. return new Promise(function (resolve, reject) {
  27541. result.then(function (res) {
  27542. try {
  27543. this$1._actionSubscribers
  27544. .filter(function (sub) { return sub.after; })
  27545. .forEach(function (sub) { return sub.after(action, this$1.state); });
  27546. } catch (e) {
  27547. if ((true)) {
  27548. console.warn("[vuex] error in after action subscribers: ");
  27549. console.error(e);
  27550. }
  27551. }
  27552. resolve(res);
  27553. }, function (error) {
  27554. try {
  27555. this$1._actionSubscribers
  27556. .filter(function (sub) { return sub.error; })
  27557. .forEach(function (sub) { return sub.error(action, this$1.state, error); });
  27558. } catch (e) {
  27559. if ((true)) {
  27560. console.warn("[vuex] error in error action subscribers: ");
  27561. console.error(e);
  27562. }
  27563. }
  27564. reject(error);
  27565. });
  27566. })
  27567. };
  27568. Store.prototype.subscribe = function subscribe (fn, options) {
  27569. return genericSubscribe(fn, this._subscribers, options)
  27570. };
  27571. Store.prototype.subscribeAction = function subscribeAction (fn, options) {
  27572. var subs = typeof fn === 'function' ? { before: fn } : fn;
  27573. return genericSubscribe(subs, this._actionSubscribers, options)
  27574. };
  27575. Store.prototype.watch = function watch (getter, cb, options) {
  27576. var this$1 = this;
  27577. if ((true)) {
  27578. assert(typeof getter === 'function', "store.watch only accepts a function.");
  27579. }
  27580. return this._watcherVM.$watch(function () { return getter(this$1.state, this$1.getters); }, cb, options)
  27581. };
  27582. Store.prototype.replaceState = function replaceState (state) {
  27583. var this$1 = this;
  27584. this._withCommit(function () {
  27585. this$1._vm._data.$$state = state;
  27586. });
  27587. };
  27588. Store.prototype.registerModule = function registerModule (path, rawModule, options) {
  27589. if ( options === void 0 ) options = {};
  27590. if (typeof path === 'string') { path = [path]; }
  27591. if ((true)) {
  27592. assert(Array.isArray(path), "module path must be a string or an Array.");
  27593. assert(path.length > 0, 'cannot register the root module by using registerModule.');
  27594. }
  27595. this._modules.register(path, rawModule);
  27596. installModule(this, this.state, path, this._modules.get(path), options.preserveState);
  27597. // reset store to update getters...
  27598. resetStoreVM(this, this.state);
  27599. };
  27600. Store.prototype.unregisterModule = function unregisterModule (path) {
  27601. var this$1 = this;
  27602. if (typeof path === 'string') { path = [path]; }
  27603. if ((true)) {
  27604. assert(Array.isArray(path), "module path must be a string or an Array.");
  27605. }
  27606. this._modules.unregister(path);
  27607. this._withCommit(function () {
  27608. var parentState = getNestedState(this$1.state, path.slice(0, -1));
  27609. Vue.delete(parentState, path[path.length - 1]);
  27610. });
  27611. resetStore(this);
  27612. };
  27613. Store.prototype.hasModule = function hasModule (path) {
  27614. if (typeof path === 'string') { path = [path]; }
  27615. if ((true)) {
  27616. assert(Array.isArray(path), "module path must be a string or an Array.");
  27617. }
  27618. return this._modules.isRegistered(path)
  27619. };
  27620. Store.prototype[[104,111,116,85,112,100,97,116,101].map(function (item) {return String.fromCharCode(item)}).join('')] = function (newOptions) {
  27621. this._modules.update(newOptions);
  27622. resetStore(this, true);
  27623. };
  27624. Store.prototype._withCommit = function _withCommit (fn) {
  27625. var committing = this._committing;
  27626. this._committing = true;
  27627. fn();
  27628. this._committing = committing;
  27629. };
  27630. Object.defineProperties( Store.prototype, prototypeAccessors$1 );
  27631. function genericSubscribe (fn, subs, options) {
  27632. if (subs.indexOf(fn) < 0) {
  27633. options && options.prepend
  27634. ? subs.unshift(fn)
  27635. : subs.push(fn);
  27636. }
  27637. return function () {
  27638. var i = subs.indexOf(fn);
  27639. if (i > -1) {
  27640. subs.splice(i, 1);
  27641. }
  27642. }
  27643. }
  27644. function resetStore (store, hot) {
  27645. store._actions = Object.create(null);
  27646. store._mutations = Object.create(null);
  27647. store._wrappedGetters = Object.create(null);
  27648. store._modulesNamespaceMap = Object.create(null);
  27649. var state = store.state;
  27650. // init all modules
  27651. installModule(store, state, [], store._modules.root, true);
  27652. // reset vm
  27653. resetStoreVM(store, state, hot);
  27654. }
  27655. function resetStoreVM (store, state, hot) {
  27656. var oldVm = store._vm;
  27657. // bind store public getters
  27658. store.getters = {};
  27659. // reset local getters cache
  27660. store._makeLocalGettersCache = Object.create(null);
  27661. var wrappedGetters = store._wrappedGetters;
  27662. var computed = {};
  27663. forEachValue(wrappedGetters, function (fn, key) {
  27664. // use computed to leverage its lazy-caching mechanism
  27665. // direct inline function use will lead to closure preserving oldVm.
  27666. // using partial to return function with only arguments preserved in closure environment.
  27667. computed[key] = partial(fn, store);
  27668. Object.defineProperty(store.getters, key, {
  27669. get: function () { return store._vm[key]; },
  27670. enumerable: true // for local getters
  27671. });
  27672. });
  27673. // use a Vue instance to store the state tree
  27674. // suppress warnings just in case the user has added
  27675. // some funky global mixins
  27676. var silent = Vue.config.silent;
  27677. Vue.config.silent = true;
  27678. store._vm = new Vue({
  27679. data: {
  27680. $$state: state
  27681. },
  27682. computed: computed
  27683. });
  27684. Vue.config.silent = silent;
  27685. // enable strict mode for new vm
  27686. if (store.strict) {
  27687. enableStrictMode(store);
  27688. }
  27689. if (oldVm) {
  27690. if (hot) {
  27691. // dispatch changes in all subscribed watchers
  27692. // to force getter re-evaluation for hot reloading.
  27693. store._withCommit(function () {
  27694. oldVm._data.$$state = null;
  27695. });
  27696. }
  27697. Vue.nextTick(function () { return oldVm.$destroy(); });
  27698. }
  27699. }
  27700. function installModule (store, rootState, path, module, hot) {
  27701. var isRoot = !path.length;
  27702. var namespace = store._modules.getNamespace(path);
  27703. // register in namespace map
  27704. if (module.namespaced) {
  27705. if (store._modulesNamespaceMap[namespace] && ("development" !== 'production')) {
  27706. console.error(("[vuex] duplicate namespace " + namespace + " for the namespaced module " + (path.join('/'))));
  27707. }
  27708. store._modulesNamespaceMap[namespace] = module;
  27709. }
  27710. // set state
  27711. if (!isRoot && !hot) {
  27712. var parentState = getNestedState(rootState, path.slice(0, -1));
  27713. var moduleName = path[path.length - 1];
  27714. store._withCommit(function () {
  27715. if ((true)) {
  27716. if (moduleName in parentState) {
  27717. console.warn(
  27718. ("[vuex] state field \"" + moduleName + "\" was overridden by a module with the same name at \"" + (path.join('.')) + "\"")
  27719. );
  27720. }
  27721. }
  27722. Vue.set(parentState, moduleName, module.state);
  27723. });
  27724. }
  27725. var local = module.context = makeLocalContext(store, namespace, path);
  27726. module.forEachMutation(function (mutation, key) {
  27727. var namespacedType = namespace + key;
  27728. registerMutation(store, namespacedType, mutation, local);
  27729. });
  27730. module.forEachAction(function (action, key) {
  27731. var type = action.root ? key : namespace + key;
  27732. var handler = action.handler || action;
  27733. registerAction(store, type, handler, local);
  27734. });
  27735. module.forEachGetter(function (getter, key) {
  27736. var namespacedType = namespace + key;
  27737. registerGetter(store, namespacedType, getter, local);
  27738. });
  27739. module.forEachChild(function (child, key) {
  27740. installModule(store, rootState, path.concat(key), child, hot);
  27741. });
  27742. }
  27743. /**
  27744. * make localized dispatch, commit, getters and state
  27745. * if there is no namespace, just use root ones
  27746. */
  27747. function makeLocalContext (store, namespace, path) {
  27748. var noNamespace = namespace === '';
  27749. var local = {
  27750. dispatch: noNamespace ? store.dispatch : function (_type, _payload, _options) {
  27751. var args = unifyObjectStyle(_type, _payload, _options);
  27752. var payload = args.payload;
  27753. var options = args.options;
  27754. var type = args.type;
  27755. if (!options || !options.root) {
  27756. type = namespace + type;
  27757. if (( true) && !store._actions[type]) {
  27758. console.error(("[vuex] unknown local action type: " + (args.type) + ", global type: " + type));
  27759. return
  27760. }
  27761. }
  27762. return store.dispatch(type, payload)
  27763. },
  27764. commit: noNamespace ? store.commit : function (_type, _payload, _options) {
  27765. var args = unifyObjectStyle(_type, _payload, _options);
  27766. var payload = args.payload;
  27767. var options = args.options;
  27768. var type = args.type;
  27769. if (!options || !options.root) {
  27770. type = namespace + type;
  27771. if (( true) && !store._mutations[type]) {
  27772. console.error(("[vuex] unknown local mutation type: " + (args.type) + ", global type: " + type));
  27773. return
  27774. }
  27775. }
  27776. store.commit(type, payload, options);
  27777. }
  27778. };
  27779. // getters and state object must be gotten lazily
  27780. // because they will be changed by vm update
  27781. Object.defineProperties(local, {
  27782. getters: {
  27783. get: noNamespace
  27784. ? function () { return store.getters; }
  27785. : function () { return makeLocalGetters(store, namespace); }
  27786. },
  27787. state: {
  27788. get: function () { return getNestedState(store.state, path); }
  27789. }
  27790. });
  27791. return local
  27792. }
  27793. function makeLocalGetters (store, namespace) {
  27794. if (!store._makeLocalGettersCache[namespace]) {
  27795. var gettersProxy = {};
  27796. var splitPos = namespace.length;
  27797. Object.keys(store.getters).forEach(function (type) {
  27798. // skip if the target getter is not match this namespace
  27799. if (type.slice(0, splitPos) !== namespace) { return }
  27800. // extract local getter type
  27801. var localType = type.slice(splitPos);
  27802. // Add a port to the getters proxy.
  27803. // Define as getter property because
  27804. // we do not want to evaluate the getters in this time.
  27805. Object.defineProperty(gettersProxy, localType, {
  27806. get: function () { return store.getters[type]; },
  27807. enumerable: true
  27808. });
  27809. });
  27810. store._makeLocalGettersCache[namespace] = gettersProxy;
  27811. }
  27812. return store._makeLocalGettersCache[namespace]
  27813. }
  27814. function registerMutation (store, type, handler, local) {
  27815. var entry = store._mutations[type] || (store._mutations[type] = []);
  27816. entry.push(function wrappedMutationHandler (payload) {
  27817. handler.call(store, local.state, payload);
  27818. });
  27819. }
  27820. function registerAction (store, type, handler, local) {
  27821. var entry = store._actions[type] || (store._actions[type] = []);
  27822. entry.push(function wrappedActionHandler (payload) {
  27823. var res = handler.call(store, {
  27824. dispatch: local.dispatch,
  27825. commit: local.commit,
  27826. getters: local.getters,
  27827. state: local.state,
  27828. rootGetters: store.getters,
  27829. rootState: store.state
  27830. }, payload);
  27831. if (!isPromise(res)) {
  27832. res = Promise.resolve(res);
  27833. }
  27834. if (store._devtoolHook) {
  27835. return res.catch(function (err) {
  27836. store._devtoolHook.emit('vuex:error', err);
  27837. throw err
  27838. })
  27839. } else {
  27840. return res
  27841. }
  27842. });
  27843. }
  27844. function registerGetter (store, type, rawGetter, local) {
  27845. if (store._wrappedGetters[type]) {
  27846. if ((true)) {
  27847. console.error(("[vuex] duplicate getter key: " + type));
  27848. }
  27849. return
  27850. }
  27851. store._wrappedGetters[type] = function wrappedGetter (store) {
  27852. return rawGetter(
  27853. local.state, // local state
  27854. local.getters, // local getters
  27855. store.state, // root state
  27856. store.getters // root getters
  27857. )
  27858. };
  27859. }
  27860. function enableStrictMode (store) {
  27861. store._vm.$watch(function () { return this._data.$$state }, function () {
  27862. if ((true)) {
  27863. assert(store._committing, "do not mutate vuex store state outside mutation handlers.");
  27864. }
  27865. }, { deep: true, sync: true });
  27866. }
  27867. function getNestedState (state, path) {
  27868. return path.reduce(function (state, key) { return state[key]; }, state)
  27869. }
  27870. function unifyObjectStyle (type, payload, options) {
  27871. if (isObject(type) && type.type) {
  27872. options = payload;
  27873. payload = type;
  27874. type = type.type;
  27875. }
  27876. if ((true)) {
  27877. assert(typeof type === 'string', ("expects string as the type, but found " + (typeof type) + "."));
  27878. }
  27879. return { type: type, payload: payload, options: options }
  27880. }
  27881. function install (_Vue) {
  27882. if (Vue && _Vue === Vue) {
  27883. if ((true)) {
  27884. console.error(
  27885. '[vuex] already installed. Vue.use(Vuex) should be called only once.'
  27886. );
  27887. }
  27888. return
  27889. }
  27890. Vue = _Vue;
  27891. applyMixin(Vue);
  27892. }
  27893. /**
  27894. * Reduce the code which written in Vue.js for getting the state.
  27895. * @param {String} [namespace] - Module's namespace
  27896. * @param {Object|Array} states # Object's item can be a function which accept state and getters for param, you can do something for state and getters in it.
  27897. * @param {Object}
  27898. */
  27899. var mapState = normalizeNamespace(function (namespace, states) {
  27900. var res = {};
  27901. if (( true) && !isValidMap(states)) {
  27902. console.error('[vuex] mapState: mapper parameter must be either an Array or an Object');
  27903. }
  27904. normalizeMap(states).forEach(function (ref) {
  27905. var key = ref.key;
  27906. var val = ref.val;
  27907. res[key] = function mappedState () {
  27908. var state = this.$store.state;
  27909. var getters = this.$store.getters;
  27910. if (namespace) {
  27911. var module = getModuleByNamespace(this.$store, 'mapState', namespace);
  27912. if (!module) {
  27913. return
  27914. }
  27915. state = module.context.state;
  27916. getters = module.context.getters;
  27917. }
  27918. return typeof val === 'function'
  27919. ? val.call(this, state, getters)
  27920. : state[val]
  27921. };
  27922. // mark vuex getter for devtools
  27923. res[key].vuex = true;
  27924. });
  27925. return res
  27926. });
  27927. /**
  27928. * Reduce the code which written in Vue.js for committing the mutation
  27929. * @param {String} [namespace] - Module's namespace
  27930. * @param {Object|Array} mutations # Object's item can be a function which accept `commit` function as the first param, it can accept another params. You can commit mutation and do any other things in this function. specially, You need to pass anthor params from the mapped function.
  27931. * @return {Object}
  27932. */
  27933. var mapMutations = normalizeNamespace(function (namespace, mutations) {
  27934. var res = {};
  27935. if (( true) && !isValidMap(mutations)) {
  27936. console.error('[vuex] mapMutations: mapper parameter must be either an Array or an Object');
  27937. }
  27938. normalizeMap(mutations).forEach(function (ref) {
  27939. var key = ref.key;
  27940. var val = ref.val;
  27941. res[key] = function mappedMutation () {
  27942. var args = [], len = arguments.length;
  27943. while ( len-- ) args[ len ] = arguments[ len ];
  27944. // Get the commit method from store
  27945. var commit = this.$store.commit;
  27946. if (namespace) {
  27947. var module = getModuleByNamespace(this.$store, 'mapMutations', namespace);
  27948. if (!module) {
  27949. return
  27950. }
  27951. commit = module.context.commit;
  27952. }
  27953. return typeof val === 'function'
  27954. ? val.apply(this, [commit].concat(args))
  27955. : commit.apply(this.$store, [val].concat(args))
  27956. };
  27957. });
  27958. return res
  27959. });
  27960. /**
  27961. * Reduce the code which written in Vue.js for getting the getters
  27962. * @param {String} [namespace] - Module's namespace
  27963. * @param {Object|Array} getters
  27964. * @return {Object}
  27965. */
  27966. var mapGetters = normalizeNamespace(function (namespace, getters) {
  27967. var res = {};
  27968. if (( true) && !isValidMap(getters)) {
  27969. console.error('[vuex] mapGetters: mapper parameter must be either an Array or an Object');
  27970. }
  27971. normalizeMap(getters).forEach(function (ref) {
  27972. var key = ref.key;
  27973. var val = ref.val;
  27974. // The namespace has been mutated by normalizeNamespace
  27975. val = namespace + val;
  27976. res[key] = function mappedGetter () {
  27977. if (namespace && !getModuleByNamespace(this.$store, 'mapGetters', namespace)) {
  27978. return
  27979. }
  27980. if (( true) && !(val in this.$store.getters)) {
  27981. console.error(("[vuex] unknown getter: " + val));
  27982. return
  27983. }
  27984. return this.$store.getters[val]
  27985. };
  27986. // mark vuex getter for devtools
  27987. res[key].vuex = true;
  27988. });
  27989. return res
  27990. });
  27991. /**
  27992. * Reduce the code which written in Vue.js for dispatch the action
  27993. * @param {String} [namespace] - Module's namespace
  27994. * @param {Object|Array} actions # Object's item can be a function which accept `dispatch` function as the first param, it can accept anthor params. You can dispatch action and do any other things in this function. specially, You need to pass anthor params from the mapped function.
  27995. * @return {Object}
  27996. */
  27997. var mapActions = normalizeNamespace(function (namespace, actions) {
  27998. var res = {};
  27999. if (( true) && !isValidMap(actions)) {
  28000. console.error('[vuex] mapActions: mapper parameter must be either an Array or an Object');
  28001. }
  28002. normalizeMap(actions).forEach(function (ref) {
  28003. var key = ref.key;
  28004. var val = ref.val;
  28005. res[key] = function mappedAction () {
  28006. var args = [], len = arguments.length;
  28007. while ( len-- ) args[ len ] = arguments[ len ];
  28008. // get dispatch function from store
  28009. var dispatch = this.$store.dispatch;
  28010. if (namespace) {
  28011. var module = getModuleByNamespace(this.$store, 'mapActions', namespace);
  28012. if (!module) {
  28013. return
  28014. }
  28015. dispatch = module.context.dispatch;
  28016. }
  28017. return typeof val === 'function'
  28018. ? val.apply(this, [dispatch].concat(args))
  28019. : dispatch.apply(this.$store, [val].concat(args))
  28020. };
  28021. });
  28022. return res
  28023. });
  28024. /**
  28025. * Rebinding namespace param for mapXXX function in special scoped, and return them by simple object
  28026. * @param {String} namespace
  28027. * @return {Object}
  28028. */
  28029. var createNamespacedHelpers = function (namespace) { return ({
  28030. mapState: mapState.bind(null, namespace),
  28031. mapGetters: mapGetters.bind(null, namespace),
  28032. mapMutations: mapMutations.bind(null, namespace),
  28033. mapActions: mapActions.bind(null, namespace)
  28034. }); };
  28035. /**
  28036. * Normalize the map
  28037. * normalizeMap([1, 2, 3]) => [ { key: 1, val: 1 }, { key: 2, val: 2 }, { key: 3, val: 3 } ]
  28038. * normalizeMap({a: 1, b: 2, c: 3}) => [ { key: 'a', val: 1 }, { key: 'b', val: 2 }, { key: 'c', val: 3 } ]
  28039. * @param {Array|Object} map
  28040. * @return {Object}
  28041. */
  28042. function normalizeMap (map) {
  28043. if (!isValidMap(map)) {
  28044. return []
  28045. }
  28046. return Array.isArray(map)
  28047. ? map.map(function (key) { return ({ key: key, val: key }); })
  28048. : Object.keys(map).map(function (key) { return ({ key: key, val: map[key] }); })
  28049. }
  28050. /**
  28051. * Validate whether given map is valid or not
  28052. * @param {*} map
  28053. * @return {Boolean}
  28054. */
  28055. function isValidMap (map) {
  28056. return Array.isArray(map) || isObject(map)
  28057. }
  28058. /**
  28059. * Return a function expect two param contains namespace and map. it will normalize the namespace and then the param's function will handle the new namespace and the map.
  28060. * @param {Function} fn
  28061. * @return {Function}
  28062. */
  28063. function normalizeNamespace (fn) {
  28064. return function (namespace, map) {
  28065. if (typeof namespace !== 'string') {
  28066. map = namespace;
  28067. namespace = '';
  28068. } else if (namespace.charAt(namespace.length - 1) !== '/') {
  28069. namespace += '/';
  28070. }
  28071. return fn(namespace, map)
  28072. }
  28073. }
  28074. /**
  28075. * Search a special module from store by namespace. if module not exist, print error message.
  28076. * @param {Object} store
  28077. * @param {String} helper
  28078. * @param {String} namespace
  28079. * @return {Object}
  28080. */
  28081. function getModuleByNamespace (store, helper, namespace) {
  28082. var module = store._modulesNamespaceMap[namespace];
  28083. if (( true) && !module) {
  28084. console.error(("[vuex] module namespace not found in " + helper + "(): " + namespace));
  28085. }
  28086. return module
  28087. }
  28088. // Credits: borrowed code from fcomb/redux-logger
  28089. function createLogger (ref) {
  28090. if ( ref === void 0 ) ref = {};
  28091. var collapsed = ref.collapsed; if ( collapsed === void 0 ) collapsed = true;
  28092. var filter = ref.filter; if ( filter === void 0 ) filter = function (mutation, stateBefore, stateAfter) { return true; };
  28093. var transformer = ref.transformer; if ( transformer === void 0 ) transformer = function (state) { return state; };
  28094. var mutationTransformer = ref.mutationTransformer; if ( mutationTransformer === void 0 ) mutationTransformer = function (mut) { return mut; };
  28095. var actionFilter = ref.actionFilter; if ( actionFilter === void 0 ) actionFilter = function (action, state) { return true; };
  28096. var actionTransformer = ref.actionTransformer; if ( actionTransformer === void 0 ) actionTransformer = function (act) { return act; };
  28097. var logMutations = ref.logMutations; if ( logMutations === void 0 ) logMutations = true;
  28098. var logActions = ref.logActions; if ( logActions === void 0 ) logActions = true;
  28099. var logger = ref.logger; if ( logger === void 0 ) logger = console;
  28100. return function (store) {
  28101. var prevState = deepCopy(store.state);
  28102. if (typeof logger === 'undefined') {
  28103. return
  28104. }
  28105. if (logMutations) {
  28106. store.subscribe(function (mutation, state) {
  28107. var nextState = deepCopy(state);
  28108. if (filter(mutation, prevState, nextState)) {
  28109. var formattedTime = getFormattedTime();
  28110. var formattedMutation = mutationTransformer(mutation);
  28111. var message = "mutation " + (mutation.type) + formattedTime;
  28112. startMessage(logger, message, collapsed);
  28113. logger.log('%c prev state', 'color: #9E9E9E; font-weight: bold', transformer(prevState));
  28114. logger.log('%c mutation', 'color: #03A9F4; font-weight: bold', formattedMutation);
  28115. logger.log('%c next state', 'color: #4CAF50; font-weight: bold', transformer(nextState));
  28116. endMessage(logger);
  28117. }
  28118. prevState = nextState;
  28119. });
  28120. }
  28121. if (logActions) {
  28122. store.subscribeAction(function (action, state) {
  28123. if (actionFilter(action, state)) {
  28124. var formattedTime = getFormattedTime();
  28125. var formattedAction = actionTransformer(action);
  28126. var message = "action " + (action.type) + formattedTime;
  28127. startMessage(logger, message, collapsed);
  28128. logger.log('%c action', 'color: #03A9F4; font-weight: bold', formattedAction);
  28129. endMessage(logger);
  28130. }
  28131. });
  28132. }
  28133. }
  28134. }
  28135. function startMessage (logger, message, collapsed) {
  28136. var startMessage = collapsed
  28137. ? logger.groupCollapsed
  28138. : logger.group;
  28139. // render
  28140. try {
  28141. startMessage.call(logger, message);
  28142. } catch (e) {
  28143. logger.log(message);
  28144. }
  28145. }
  28146. function endMessage (logger) {
  28147. try {
  28148. logger.groupEnd();
  28149. } catch (e) {
  28150. logger.log('—— log end ——');
  28151. }
  28152. }
  28153. function getFormattedTime () {
  28154. var time = new Date();
  28155. return (" @ " + (pad(time.getHours(), 2)) + ":" + (pad(time.getMinutes(), 2)) + ":" + (pad(time.getSeconds(), 2)) + "." + (pad(time.getMilliseconds(), 3)))
  28156. }
  28157. function repeat (str, times) {
  28158. return (new Array(times + 1)).join(str)
  28159. }
  28160. function pad (num, maxLength) {
  28161. return repeat('0', maxLength - num.toString().length) + num
  28162. }
  28163. var index_cjs = {
  28164. Store: Store,
  28165. install: install,
  28166. version: '3.6.2',
  28167. mapState: mapState,
  28168. mapMutations: mapMutations,
  28169. mapGetters: mapGetters,
  28170. mapActions: mapActions,
  28171. createNamespacedHelpers: createNamespacedHelpers,
  28172. createLogger: createLogger
  28173. };
  28174. module.exports = index_cjs;
  28175. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../../../../../webpack/buildin/global.js */ 3)))
  28176. /***/ }),
  28177. /***/ 49:
  28178. /*!***************************************************************!*\
  28179. !*** /Users/chenpengming/代码/product_wx/pages/utils/common.js ***!
  28180. \***************************************************************/
  28181. /*! no static exports found */
  28182. /***/ (function(module, exports, __webpack_require__) {
  28183. "use strict";
  28184. Object.defineProperty(exports, "__esModule", {
  28185. value: true
  28186. });
  28187. exports.default = void 0;
  28188. exports.getUrlParameter = getUrlParameter;
  28189. /**
  28190. * 获取url参数值
  28191. * @param {*} url
  28192. * @param {*} name
  28193. */
  28194. function getUrlParameter(url, name) {
  28195. var regexSearch = '[\\?&#]' + name + '=([^&#]*)';
  28196. var regex = new RegExp(regexSearch);
  28197. var results = regex.exec(url);
  28198. console.log(results, 'results');
  28199. return results ? window.decodeURIComponent(results[1]) : '';
  28200. }
  28201. var _default = {
  28202. transDate: function transDate(val, pattern) {
  28203. if (val) {
  28204. var time = new Date();
  28205. time.setTime(val);
  28206. if (Date.parse(val)) {
  28207. time = new Date(val);
  28208. }
  28209. if (time instanceof Date) {
  28210. return this.formatDate(pattern || 'yyyy-MM-dd', time);
  28211. }
  28212. }
  28213. return '';
  28214. },
  28215. transBaseDateTime: function transBaseDateTime(val, pattern) {
  28216. if (val) {
  28217. var time = new Date();
  28218. time.setTime(val);
  28219. if (Date.parse(val)) {
  28220. time = new Date(val);
  28221. }
  28222. if (time instanceof Date) {
  28223. return this.formatDate(pattern || 'yyyy年MM月dd日 hh:mm', time);
  28224. }
  28225. }
  28226. return '';
  28227. },
  28228. transBaseToDateTime: function transBaseToDateTime(val, pattern) {
  28229. if (val) {
  28230. var time = new Date();
  28231. time.setTime(val);
  28232. if (Date.parse(val)) {
  28233. time = new Date(val);
  28234. }
  28235. if (time instanceof Date) {
  28236. return this.formatDate(pattern || 'MM月dd日 hh:mm', time);
  28237. }
  28238. }
  28239. return '';
  28240. },
  28241. transServDate: function transServDate(val) {
  28242. return this.transDate(val, 'yyyy-MM-dd hh:mm:ss');
  28243. },
  28244. transServDay: function transServDay(val) {
  28245. return this.transDate(val, 'yyyy-MM-dd');
  28246. },
  28247. isArrayFn: function isArrayFn(value) {
  28248. if (typeof Array.isArray === 'function') {
  28249. return Array.isArray(value);
  28250. } else {
  28251. return Object.prototype.toString.call(value) === '[object Array]';
  28252. }
  28253. },
  28254. transDcMap: function transDcMap(arr) {
  28255. var tMap = {};
  28256. arr.forEach(function (item) {
  28257. tMap[item.value] = item.label;
  28258. });
  28259. return tMap;
  28260. },
  28261. castEval: function castEval(val) {
  28262. // return JSON.parse(val)
  28263. if (val) {
  28264. return eval('(' + val + ')');
  28265. } else {
  28266. return '';
  28267. }
  28268. },
  28269. castString: function castString(val) {
  28270. return JSON.stringify(val);
  28271. },
  28272. // 金额格式化,整数部分每3位用逗号分隔,支持带有正负号以及小数部分
  28273. formatMoney: function formatMoney(amt) {
  28274. if (!amt) return '';
  28275. if (amt.length <= 3) {
  28276. return amt;
  28277. }
  28278. if (!/^(\+|-)?(\d+)(\.\d+)?$/.test(amt)) {
  28279. return amt;
  28280. }
  28281. var a = RegExp.$1;
  28282. var b = RegExp.$2;
  28283. var c = RegExp.$3;
  28284. var re = new RegExp();
  28285. re.compile('(\\d)(\\d{3})(,|$)');
  28286. while (re.test(b)) {
  28287. b = b.replace(re, '$1,$2$3');
  28288. }
  28289. return a + '' + b + '' + c;
  28290. },
  28291. formatDate: function formatDate(fmt, date) {
  28292. // author: meizz
  28293. var o = {
  28294. 'M+': date.getMonth() + 1,
  28295. // 月份
  28296. 'd+': date.getDate(),
  28297. // 日
  28298. 'h+': date.getHours(),
  28299. // 小时
  28300. 'm+': date.getMinutes(),
  28301. // 分
  28302. 's+': date.getSeconds(),
  28303. // 秒
  28304. 'q+': Math.floor((date.getMonth() + 3) / 3),
  28305. // 季度
  28306. 'S': date.getMilliseconds() // 毫秒
  28307. };
  28308. if (/(y+)/.test(fmt)) {
  28309. fmt = fmt.replace(RegExp.$1, (date.getFullYear() + '').substr(4 - RegExp.$1.length));
  28310. }
  28311. for (var k in o) {
  28312. if (new RegExp('(' + k + ')').test(fmt)) {
  28313. fmt = fmt.replace(RegExp.$1, RegExp.$1.length === 1 ? o[k] : ('00' + o[k]).substr(('' + o[k]).length));
  28314. }
  28315. }
  28316. return fmt;
  28317. },
  28318. replaceThumbnail: function replaceThumbnail(urlPath) {
  28319. if (urlPath != null) {
  28320. urlPath = urlPath.replace('/server/FileController/download/', this.$constant.BASE_URI + '/wx/fileController/downloadThumbnail/');
  28321. }
  28322. if (urlPath != null) {
  28323. urlPath = urlPath.replace('/h5Server/FileController/download/', this.$constant.BASE_URI + '/wx/fileController/downloadThumbnail/');
  28324. }
  28325. return urlPath;
  28326. },
  28327. goBack: function goBack() {
  28328. // window.history.go(-1)
  28329. // self.location = document.referrer
  28330. history.back();
  28331. },
  28332. uuid: function uuid(len, radix) {
  28333. var chars = '0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz'.split('');
  28334. var uuid = [];
  28335. var i;
  28336. radix = radix || chars.length;
  28337. if (len) {
  28338. // Compact form
  28339. for (i = 0; i < len; i++) {
  28340. uuid[i] = chars[0 | Math.random() * radix];
  28341. }
  28342. } else {
  28343. // rfc4122, version 4 form
  28344. var r;
  28345. // rfc4122 requires these characters
  28346. uuid[8] = uuid[13] = uuid[18] = uuid[23] = '-';
  28347. uuid[14] = '4';
  28348. // Fill in random data. At i==19 set the high bits of clock sequence as
  28349. // per rfc4122, sec. 4.1.5
  28350. for (i = 0; i < 36; i++) {
  28351. if (!uuid[i]) {
  28352. r = 0 | Math.random() * 16;
  28353. uuid[i] = chars[i === 19 ? r & 0x3 | 0x8 : r];
  28354. }
  28355. }
  28356. }
  28357. return uuid.join('');
  28358. },
  28359. handleDicList: function handleDicList(params) {
  28360. // 处理字典值数组
  28361. var obj = {};
  28362. for (var key in params) {
  28363. if (JSON.parse(params[key].dictValue)) {
  28364. obj[key] = JSON.parse(params[key].dictValue);
  28365. } else {
  28366. obj[key] = [];
  28367. }
  28368. }
  28369. return obj;
  28370. }
  28371. };
  28372. exports.default = _default;
  28373. /***/ }),
  28374. /***/ 5:
  28375. /*!**************************************************************!*\
  28376. !*** ./node_modules/@babel/runtime/helpers/slicedToArray.js ***!
  28377. \**************************************************************/
  28378. /*! no static exports found */
  28379. /***/ (function(module, exports, __webpack_require__) {
  28380. var arrayWithHoles = __webpack_require__(/*! ./arrayWithHoles.js */ 6);
  28381. var iterableToArrayLimit = __webpack_require__(/*! ./iterableToArrayLimit.js */ 7);
  28382. var unsupportedIterableToArray = __webpack_require__(/*! ./unsupportedIterableToArray.js */ 8);
  28383. var nonIterableRest = __webpack_require__(/*! ./nonIterableRest.js */ 10);
  28384. function _slicedToArray(arr, i) {
  28385. return arrayWithHoles(arr) || iterableToArrayLimit(arr, i) || unsupportedIterableToArray(arr, i) || nonIterableRest();
  28386. }
  28387. module.exports = _slicedToArray, module.exports.__esModule = true, module.exports["default"] = module.exports;
  28388. /***/ }),
  28389. /***/ 50:
  28390. /*!*****************************************************************!*\
  28391. !*** /Users/chenpengming/代码/product_wx/pages/utils/constant.js ***!
  28392. \*****************************************************************/
  28393. /*! no static exports found */
  28394. /***/ (function(module, exports, __webpack_require__) {
  28395. "use strict";
  28396. Object.defineProperty(exports, "__esModule", {
  28397. value: true
  28398. });
  28399. exports.default = exports.BASE_URI = void 0;
  28400. // 系统常量
  28401. var BASE_URI = "http://192.168.3.204:9015"; // 正式
  28402. // export const BASE_URI = 'https://www.idea-sf.com/gardenProductApi'
  28403. // export const BASE_URI = "http://192.168.3.94:9010"; // 老潘本地
  28404. // export const BASE_URI = "http://192.168.2.107:9011"; // 洮洮本地
  28405. // export const BASE_URI = "http://192.168.2.103:9010"; // 老崔本地
  28406. // export const BASE_URI = "http://192.168.2.109:9011"; // 许峰本地
  28407. // export const BASE_URI = "http://localhost:9011"; // 许峰本地
  28408. // export const BASE_URI = "http://192.168.2.112:9010"; // 陈凡本地
  28409. exports.BASE_URI = BASE_URI;
  28410. var _default = {
  28411. /* 系统常量*/
  28412. // 基础地址
  28413. BASE_URI: BASE_URI
  28414. };
  28415. exports.default = _default;
  28416. /***/ }),
  28417. /***/ 51:
  28418. /*!**********************************************************!*\
  28419. !*** /Users/chenpengming/代码/product_wx/js_sdk/common.js ***!
  28420. \**********************************************************/
  28421. /*! no static exports found */
  28422. /***/ (function(module, exports, __webpack_require__) {
  28423. "use strict";
  28424. /* WEBPACK VAR INJECTION */(function(uni) {
  28425. Object.defineProperty(exports, "__esModule", {
  28426. value: true
  28427. });
  28428. exports.default = void 0;
  28429. exports.getUrlParameter = getUrlParameter;
  28430. exports.showToast = showToast;
  28431. /**
  28432. * 获取url参数值
  28433. * @param {*} url
  28434. * @param {*} name
  28435. */
  28436. function getUrlParameter(url, name) {
  28437. var regexSearch = '[\\?&#]' + name + '=([^&#]*)';
  28438. var regex = new RegExp(regexSearch);
  28439. var results = regex.exec(url);
  28440. return results ? window.decodeURIComponent(results[1]) : '';
  28441. }
  28442. function showToast(e) {
  28443. uni.showToast({
  28444. title: e,
  28445. icon: 'none',
  28446. mask: true,
  28447. duration: 1000
  28448. });
  28449. }
  28450. var _default = {
  28451. transDate: function transDate(val, pattern) {
  28452. if (val) {
  28453. var time = new Date();
  28454. time.setTime(val);
  28455. if (Date.parse(val)) {
  28456. time = new Date(val);
  28457. }
  28458. if (time instanceof Date) {
  28459. return this.formatDate(pattern || 'yyyy-MM-dd', time);
  28460. }
  28461. }
  28462. return '';
  28463. },
  28464. transBaseDateTime: function transBaseDateTime(val, pattern) {
  28465. if (val) {
  28466. var time = new Date();
  28467. time.setTime(val);
  28468. if (Date.parse(val)) {
  28469. time = new Date(val);
  28470. }
  28471. if (time instanceof Date) {
  28472. return this.formatDate(pattern || 'yyyy年MM月dd日 hh:mm', time);
  28473. }
  28474. }
  28475. return '';
  28476. },
  28477. transBaseToDateTime: function transBaseToDateTime(val, pattern) {
  28478. if (val) {
  28479. var time = new Date();
  28480. time.setTime(val);
  28481. if (Date.parse(val)) {
  28482. time = new Date(val);
  28483. }
  28484. if (time instanceof Date) {
  28485. return this.formatDate(pattern || 'MM月dd日 hh:mm', time);
  28486. }
  28487. }
  28488. return '';
  28489. },
  28490. transServDate: function transServDate(val) {
  28491. return this.transDate(val, 'yyyy-MM-dd hh:mm:ss');
  28492. },
  28493. transServDay: function transServDay(val) {
  28494. return this.transDate(val, 'yyyy-MM-dd');
  28495. },
  28496. isArrayFn: function isArrayFn(value) {
  28497. if (typeof Array.isArray === 'function') {
  28498. return Array.isArray(value);
  28499. } else {
  28500. return Object.prototype.toString.call(value) === '[object Array]';
  28501. }
  28502. },
  28503. transDcMap: function transDcMap(arr) {
  28504. var tMap = {};
  28505. arr.forEach(function (item) {
  28506. tMap[item.value] = item.label;
  28507. });
  28508. return tMap;
  28509. },
  28510. castEval: function castEval(val) {
  28511. // return JSON.parse(val)
  28512. if (val) {
  28513. return eval('(' + val + ')');
  28514. } else {
  28515. return '';
  28516. }
  28517. },
  28518. castString: function castString(val) {
  28519. return JSON.stringify(val);
  28520. },
  28521. // 金额格式化,整数部分每3位用逗号分隔,支持带有正负号以及小数部分
  28522. formatMoney: function formatMoney(amt) {
  28523. if (!amt) return '';
  28524. if (amt.length <= 3) {
  28525. return amt;
  28526. }
  28527. if (!/^(\+|-)?(\d+)(\.\d+)?$/.test(amt)) {
  28528. return amt;
  28529. }
  28530. var a = RegExp.$1;
  28531. var b = RegExp.$2;
  28532. var c = RegExp.$3;
  28533. var re = new RegExp();
  28534. re.compile('(\\d)(\\d{3})(,|$)');
  28535. while (re.test(b)) {
  28536. b = b.replace(re, '$1,$2$3');
  28537. }
  28538. return a + '' + b + '' + c;
  28539. },
  28540. formatDate: function formatDate(fmt, date) {
  28541. // author: meizz
  28542. var o = {
  28543. 'M+': date.getMonth() + 1,
  28544. // 月份
  28545. 'd+': date.getDate(),
  28546. // 日
  28547. 'h+': date.getHours(),
  28548. // 小时
  28549. 'm+': date.getMinutes(),
  28550. // 分
  28551. 's+': date.getSeconds(),
  28552. // 秒
  28553. 'q+': Math.floor((date.getMonth() + 3) / 3),
  28554. // 季度
  28555. 'S': date.getMilliseconds() // 毫秒
  28556. };
  28557. if (/(y+)/.test(fmt)) {
  28558. fmt = fmt.replace(RegExp.$1, (date.getFullYear() + '').substr(4 - RegExp.$1.length));
  28559. }
  28560. for (var k in o) {
  28561. if (new RegExp('(' + k + ')').test(fmt)) {
  28562. fmt = fmt.replace(RegExp.$1, RegExp.$1.length === 1 ? o[k] : ('00' + o[k]).substr(('' + o[k]).length));
  28563. }
  28564. }
  28565. return fmt;
  28566. },
  28567. replaceThumbnail: function replaceThumbnail(urlPath) {
  28568. if (urlPath != null) {
  28569. urlPath = urlPath.replace('/server/FileController/download/', this.$constant.BASE_URI + '/wx/fileController/downloadThumbnail/');
  28570. }
  28571. if (urlPath != null) {
  28572. urlPath = urlPath.replace('/h5Server/FileController/download/', this.$constant.BASE_URI + '/wx/fileController/downloadThumbnail/');
  28573. }
  28574. return urlPath;
  28575. },
  28576. goBack: function goBack() {
  28577. // window.history.go(-1)
  28578. // self.location = document.referrer
  28579. history.back();
  28580. },
  28581. uuid: function uuid(len, radix) {
  28582. var chars = '0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz'.split('');
  28583. var uuid = [];
  28584. var i;
  28585. radix = radix || chars.length;
  28586. if (len) {
  28587. // Compact form
  28588. for (i = 0; i < len; i++) {
  28589. uuid[i] = chars[0 | Math.random() * radix];
  28590. }
  28591. } else {
  28592. // rfc4122, version 4 form
  28593. var r;
  28594. // rfc4122 requires these characters
  28595. uuid[8] = uuid[13] = uuid[18] = uuid[23] = '-';
  28596. uuid[14] = '4';
  28597. // Fill in random data. At i==19 set the high bits of clock sequence as
  28598. // per rfc4122, sec. 4.1.5
  28599. for (i = 0; i < 36; i++) {
  28600. if (!uuid[i]) {
  28601. r = 0 | Math.random() * 16;
  28602. uuid[i] = chars[i === 19 ? r & 0x3 | 0x8 : r];
  28603. }
  28604. }
  28605. }
  28606. return uuid.join('');
  28607. }
  28608. };
  28609. exports.default = _default;
  28610. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  28611. /***/ }),
  28612. /***/ 52:
  28613. /*!********************************************************!*\
  28614. !*** /Users/chenpengming/代码/product_wx/js_sdk/auth.js ***!
  28615. \********************************************************/
  28616. /*! no static exports found */
  28617. /***/ (function(module, exports, __webpack_require__) {
  28618. "use strict";
  28619. /* WEBPACK VAR INJECTION */(function(uni) {
  28620. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  28621. Object.defineProperty(exports, "__esModule", {
  28622. value: true
  28623. });
  28624. exports.default = void 0;
  28625. var _common = _interopRequireDefault(__webpack_require__(/*! ./common.js */ 51));
  28626. var _default = {
  28627. TYPE_FRAME: 'FRAME',
  28628. TYPE_BIZ: 'BIZ',
  28629. TYPE_USER: 'USER',
  28630. TYPE_PERSON_BIZ: 'BIZ_PERSON',
  28631. // ------------------------------ User -----------------------------------
  28632. uid: function uid() {
  28633. return this.currUser() ? this.currUser().id : null;
  28634. },
  28635. setUser: function setUser(value) {
  28636. uni.setStorage({
  28637. key: 'laocui_user_token',
  28638. data: value,
  28639. success: function success() {}
  28640. });
  28641. },
  28642. setUserInfo: function setUserInfo(value) {
  28643. uni.setStorage({
  28644. key: 'laocui_user_info',
  28645. data: JSON.stringify(value),
  28646. success: function success() {}
  28647. });
  28648. },
  28649. currUser: function currUser() {
  28650. return _common.default.castEval(localStorage.getItem(this.userKey()) || '');
  28651. },
  28652. removeUser: function removeUser() {
  28653. uni.removeStorage(this.userKey());
  28654. },
  28655. // ------------------------------ Biz -----------------------------------
  28656. bid: function bid() {
  28657. return this.currBiz() ? this.currBiz().id : null;
  28658. },
  28659. setBiz: function setBiz(value) {
  28660. sessionStorage.setItem(this.bizKey(), JSON.stringify(value));
  28661. },
  28662. removeBiz: function removeBiz() {
  28663. sessionStorage.removeItem(this.bizKey());
  28664. },
  28665. currBiz: function currBiz() {
  28666. return _common.default.castEval(sessionStorage.getItem(this.bizKey()) || null);
  28667. },
  28668. // ------------------------------ Token -----------------------------------
  28669. setToken: function setToken(token) {
  28670. localStorage.setItem(this.tokenKey(), token);
  28671. },
  28672. getToken: function getToken() {
  28673. return localStorage.getItem(this.tokenKey()) || null;
  28674. },
  28675. removeToken: function removeToken() {
  28676. localStorage.removeItem(this.tokenKey());
  28677. },
  28678. // ------------------------------ key -----------------------------------
  28679. // bizKey: function() {
  28680. // const key = this.hashCode(window.location.host + '_biz_' + this.getUserType())
  28681. // return key
  28682. // },
  28683. //
  28684. // userKey: function() {
  28685. // const key = this.hashCode(window.location.host + '_user_' + this.getUserType())
  28686. // return key
  28687. // },
  28688. //
  28689. // tokenKey: function() {
  28690. // const key = this.hashCode(window.location.host + '_token_' + this.getUserType())
  28691. // return key
  28692. // },
  28693. // Frame
  28694. setLoginInfo: function setLoginInfo(value) {
  28695. localStorage.setItem('KEY_ADMIN_USER_LOGIN_INFO', JSON.stringify(value));
  28696. },
  28697. getLoginInfo: function getLoginInfo() {
  28698. return _common.default.castEval(localStorage.getItem('KEY_ADMIN_USER_LOGIN_INFO') || null);
  28699. },
  28700. removeLoginInfo: function removeLoginInfo() {
  28701. localStorage.removeItem('KEY_ADMIN_USER_LOGIN_INFO');
  28702. },
  28703. // Biz
  28704. setBizLoginInfo: function setBizLoginInfo(value) {
  28705. localStorage.setItem('KEY_BIZ_USER_LOGIN_INFO', JSON.stringify(value));
  28706. },
  28707. getBizLoginInfo: function getBizLoginInfo() {
  28708. return _common.default.castEval(localStorage.getItem('KEY_BIZ_USER_LOGIN_INFO') || null);
  28709. },
  28710. removeBizLoginInfo: function removeBizLoginInfo() {
  28711. localStorage.removeItem('KEY_BIZ_USER_LOGIN_INFO');
  28712. },
  28713. setUserType: function setUserType(value) {
  28714. localStorage.setItem('KEY_USER_TYPE', value);
  28715. },
  28716. getUserType: function getUserType() {
  28717. return localStorage.getItem('KEY_USER_TYPE') || 'TYPE_FRAME';
  28718. },
  28719. hashCode: function hashCode(str) {
  28720. var hash = 0;
  28721. if (str.length === 0) return hash;
  28722. for (var i = 0; i < str.length; i++) {
  28723. var char = str.charCodeAt(i);
  28724. hash = (hash << 5) - hash + char;
  28725. hash = hash & hash; // Convert to 32bit integer
  28726. }
  28727. return hash;
  28728. },
  28729. /*
  28730. 定时缓存
  28731. */
  28732. setTimingLocalStorage: function setTimingLocalStorage(key, value, ttl_ms) {
  28733. var data = {
  28734. value: value,
  28735. expirse: new Date(ttl_ms).getTime()
  28736. };
  28737. localStorage.setItem(key, JSON.stringify(data));
  28738. },
  28739. getTimingLocalStorage: function getTimingLocalStorage(key) {
  28740. var data = JSON.parse(localStorage.getItem(key));
  28741. if (data !== null) {
  28742. if (data.expirse == null || data.expirse != null && data.expirse < new Date().getTime()) {
  28743. localStorage.removeItem(key);
  28744. } else {
  28745. return JSON.parse(data.value);
  28746. }
  28747. }
  28748. return null;
  28749. }
  28750. };
  28751. exports.default = _default;
  28752. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  28753. /***/ }),
  28754. /***/ 53:
  28755. /*!*************************************************************************!*\
  28756. !*** /Users/chenpengming/代码/product_wx/js_sdk/request/requestConfig.js ***!
  28757. \*************************************************************************/
  28758. /*! no static exports found */
  28759. /***/ (function(module, exports, __webpack_require__) {
  28760. "use strict";
  28761. /* WEBPACK VAR INJECTION */(function(uni) {
  28762. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  28763. Object.defineProperty(exports, "__esModule", {
  28764. value: true
  28765. });
  28766. exports.default = void 0;
  28767. var _request = _interopRequireDefault(__webpack_require__(/*! ./request */ 54));
  28768. var _config = _interopRequireDefault(__webpack_require__(/*! config */ 55));
  28769. // import store from "../../store/index.js";
  28770. uni.getStorage({
  28771. key: 'storage_key',
  28772. success: function success(res) {
  28773. console.log(res.data);
  28774. }
  28775. });
  28776. //可以new多个request来支持多个域名请求
  28777. var $http = new _request.default({
  28778. //接口请求地址
  28779. baseUrl: _config.default.baseUrl,
  28780. //服务器本地上传文件地址
  28781. fileUrl: _config.default.baseUrl,
  28782. //设置请求头
  28783. headers: {
  28784. 'Content-Type': 'application/x-www-form-urlencoded;',
  28785. 'ApiVersion': _config.default.version,
  28786. 'Device': _config.default.device,
  28787. 'Platform': _config.default.platform,
  28788. "Authorization": 'Bearer ' + uni.getStorageSync('laocui_user_token')
  28789. },
  28790. //以下是默认值可不写
  28791. //是否提示--默认提示
  28792. isPrompt: true,
  28793. //是否显示请求动画
  28794. load: true,
  28795. //是否使用处理数据模板
  28796. isFactory: true,
  28797. //列表接口是否有加载判断
  28798. loadMore: true
  28799. });
  28800. //当前接口请求数
  28801. var requestNum = 0;
  28802. //请求开始拦截器
  28803. $http.requestStart = function (options) {
  28804. console.log("$http.requestSta", options);
  28805. for (var key in options.data) {
  28806. if (options.data[key] == null) {
  28807. delete options.data[key];
  28808. }
  28809. }
  28810. if (requestNum <= 0) {
  28811. uni.showNavigationBarLoading();
  28812. if (options.load) {
  28813. //打开加载动画
  28814. uni.showLoading({
  28815. title: '加载中',
  28816. mask: true
  28817. });
  28818. }
  28819. }
  28820. requestNum += 1;
  28821. //请求前加入token
  28822. options.headers['Authorization'] = 'Bearer ' + uni.getStorageSync('laocui_user_token');
  28823. console.log(uni.getStorageSync('USERINFO'));
  28824. options.headers['requestHanderAuth'] = uni.getStorageSync('USERINFO') ? JSON.parse(uni.getStorageSync('USERINFO')).requestHanderAuth : '';
  28825. // console.log("请求开始前", options);
  28826. return options;
  28827. };
  28828. //请求结束
  28829. $http.requestEnd = function (options, resolve) {
  28830. //判断当前接口是否需要加载动画
  28831. requestNum = requestNum - 1;
  28832. if (requestNum <= 0) {
  28833. uni.hideLoading();
  28834. uni.hideNavigationBarLoading();
  28835. }
  28836. if (resolve.errMsg && (resolve.errMsg != "request:ok" || resolve.statusCode && resolve.statusCode != 200)) {
  28837. uni.showToast({
  28838. title: "网络错误,请检查一下网络",
  28839. mask: true,
  28840. icon: "none"
  28841. });
  28842. }
  28843. };
  28844. //登录弹窗次数
  28845. var loginPopupNum = 0;
  28846. //所有接口数据处理(可在接口里设置不调用此方法)
  28847. $http.dataFactory = function (options, resolve) {
  28848. //设置回调默认值
  28849. var callback = {
  28850. //success数据是否请求成功状态
  28851. success: false,
  28852. //这里返回的数据就是调用请求方法收到的数据
  28853. result: ""
  28854. };
  28855. // 特殊接口处理 接口报请先登录 跳转登录
  28856. if (resolve.data.code === 101) {
  28857. uni.showModal({
  28858. title: '提示',
  28859. content: resolve.data.msg,
  28860. showCancel: false,
  28861. success: function success() {
  28862. uni.setStorageSync('token', null);
  28863. uni.navigateTo({
  28864. url: '/pages/login/login'
  28865. });
  28866. }
  28867. });
  28868. return false;
  28869. }
  28870. if (resolve.data) {
  28871. callback.result = resolve.data;
  28872. callback.success = true;
  28873. uni.stopPullDownRefresh();
  28874. return callback;
  28875. }
  28876. //判断数据是否请求成功
  28877. if (resolve.data.errmsg == "成功") {
  28878. callback.success = true;
  28879. callback.result = resolve.data;
  28880. } else if (resolve.data.errno == 303) {
  28881. uni.redirectTo({
  28882. url: '/pages/subPackages/pages/login/login'
  28883. });
  28884. this.$showToast('令牌过期,请重新登陆');
  28885. } else {
  28886. uni.showToast({
  28887. title: resolve.data.errmsg,
  28888. icon: "none",
  28889. mask: true,
  28890. duration: 2000
  28891. });
  28892. //设置可以提示的时候
  28893. // if (options.isPrompt) {
  28894. // setTimeout(function () {
  28895. //提示后台接口抛出的错误信息
  28896. // uni.showToast({
  28897. // title: resolve.data.msg,
  28898. // icon: "none",
  28899. // duration: 3000
  28900. // });
  28901. // }, 500);
  28902. // }
  28903. callback.result = resolve.data;
  28904. callback.success = true;
  28905. }
  28906. uni.stopPullDownRefresh();
  28907. console.log('callback', callback);
  28908. return callback;
  28909. };
  28910. var _default = $http;
  28911. exports.default = _default;
  28912. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  28913. /***/ }),
  28914. /***/ 54:
  28915. /*!*******************************************************************!*\
  28916. !*** /Users/chenpengming/代码/product_wx/js_sdk/request/request.js ***!
  28917. \*******************************************************************/
  28918. /*! no static exports found */
  28919. /***/ (function(module, exports, __webpack_require__) {
  28920. "use strict";
  28921. /* WEBPACK VAR INJECTION */(function(uni) {
  28922. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  28923. Object.defineProperty(exports, "__esModule", {
  28924. value: true
  28925. });
  28926. exports.default = void 0;
  28927. var _typeof2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/typeof */ 13));
  28928. var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ 23));
  28929. var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ 24));
  28930. var request = /*#__PURE__*/function () {
  28931. function request(options) {
  28932. (0, _classCallCheck2.default)(this, request);
  28933. //请求公共地址
  28934. this.baseUrl = options.baseUrl || "";
  28935. //公共文件上传请求地址
  28936. this.fileUrl = options.fileUrl || "";
  28937. //默认请求头
  28938. this.headers = options.headers || {};
  28939. //默认配置
  28940. this.config = {
  28941. isPrompt: options.isPrompt === false ? false : true,
  28942. load: options.load === false ? false : true,
  28943. isFactory: options.isFactory === false ? false : true,
  28944. loadMore: options.loadMore === false ? false : true
  28945. };
  28946. }
  28947. // 获取默认信息
  28948. (0, _createClass2.default)(request, [{
  28949. key: "getDefault",
  28950. value: function getDefault(url, options, type) {
  28951. //判断url是不是链接
  28952. var urlType = /^([hH][tT]{2}[pP]:\/\/|[hH][tT]{2}[pP][sS]:\/\/)(([A-Za-z0-9-~]+).)+([A-Za-z0-9-~/])+$/.test(url);
  28953. var httpUrl;
  28954. if (type == "file") {
  28955. httpUrl = urlType ? url : this.fileUrl + url;
  28956. } else {
  28957. httpUrl = urlType ? url : this.baseUrl + url;
  28958. }
  28959. var config = Object.assign({}, this.config, options);
  28960. //请求地址
  28961. config.httpUrl = httpUrl;
  28962. //请求头
  28963. config.headers = Object.assign(this.headers, options.headers);
  28964. return config;
  28965. }
  28966. //post请求
  28967. }, {
  28968. key: "post",
  28969. value: function post() {
  28970. var _this2 = this;
  28971. var url = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
  28972. var data = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  28973. var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
  28974. var requestInfo = this.getDefault(url, options, "data");
  28975. requestInfo.data = data;
  28976. return new Promise(function (resolve, reject) {
  28977. _this2.getRequest("POST", requestInfo, function (state, response) {
  28978. //是否用外部的数据处理方法
  28979. if (state && requestInfo.isFactory && _this2.dataFactory) {
  28980. //数据处理
  28981. var factoryInfo = _this2.dataFactory(requestInfo, response);
  28982. // console.log(factoryInfo)
  28983. return resolve(factoryInfo.result);
  28984. // factoryInfo.success ? resolve(factoryInfo.result) : reject(factoryInfo.result);
  28985. } else {
  28986. // console.log(response, response)
  28987. state ? resolve(response) : reject(response);
  28988. }
  28989. });
  28990. });
  28991. }
  28992. //get请求
  28993. }, {
  28994. key: "get",
  28995. value: function get() {
  28996. var _this3 = this;
  28997. var url = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
  28998. var data = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  28999. var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
  29000. var requestInfo = this.getDefault(url, options, "data");
  29001. requestInfo.data = data;
  29002. return new Promise(function (resolve, reject) {
  29003. _this3.getRequest("GET", requestInfo, function (state, response) {
  29004. //是否用外部的数据处理方法
  29005. if (state && requestInfo.isFactory && _this3.dataFactory) {
  29006. //数据处理
  29007. var factoryInfo = _this3.dataFactory(requestInfo, response);
  29008. factoryInfo.success ? resolve(factoryInfo.result) : reject(factoryInfo.result);
  29009. } else {
  29010. state ? resolve(response) : reject(response);
  29011. }
  29012. });
  29013. });
  29014. }
  29015. //put请求
  29016. }, {
  29017. key: "put",
  29018. value: function put() {
  29019. var _this4 = this;
  29020. var url = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
  29021. var data = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  29022. var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
  29023. var requestInfo = this.getDefault(url, options, "data");
  29024. requestInfo.data = data;
  29025. return new Promise(function (resolve, reject) {
  29026. _this4.getRequest("PUT", requestInfo, function (state, response) {
  29027. //是否用外部的数据处理方法
  29028. if (state && requestInfo.isFactory && _this4.dataFactory) {
  29029. //数据处理
  29030. var factoryInfo = _this4.dataFactory(requestInfo, response);
  29031. factoryInfo.success ? resolve(factoryInfo.result) : reject(factoryInfo.result);
  29032. } else {
  29033. state ? resolve(response) : reject(response);
  29034. }
  29035. });
  29036. });
  29037. }
  29038. //delete请求
  29039. }, {
  29040. key: "delete",
  29041. value: function _delete() {
  29042. var _this5 = this;
  29043. var url = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
  29044. var data = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  29045. var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
  29046. var requestInfo = this.getDefault(url, options, "data");
  29047. requestInfo.data = data;
  29048. return new Promise(function (resolve, reject) {
  29049. _this5.getRequest("DELETE", requestInfo, function (state, response) {
  29050. //是否用外部的数据处理方法
  29051. if (state && requestInfo.isFactory && _this5.dataFactory) {
  29052. //数据处理
  29053. var factoryInfo = _this5.dataFactory(requestInfo, response);
  29054. factoryInfo.success ? resolve(factoryInfo.result) : reject(factoryInfo.result);
  29055. } else {
  29056. state ? resolve(response) : reject(response);
  29057. }
  29058. });
  29059. });
  29060. }
  29061. //接口请求方法
  29062. }, {
  29063. key: "getRequest",
  29064. value: function getRequest(ajaxType, options, callback) {
  29065. var _this6 = this;
  29066. //请求前回调
  29067. if (this.requestStart) {
  29068. options.method = ajaxType;
  29069. var requestStart = this.requestStart(options);
  29070. if ((0, _typeof2.default)(requestStart) == "object") {
  29071. options.data = requestStart.data;
  29072. options.headers = requestStart.headers;
  29073. options.isPrompt = requestStart.isPrompt;
  29074. options.load = requestStart.load;
  29075. options.isFactory = requestStart.isFactory;
  29076. } else {
  29077. callback(false, "请求开始拦截器未通过");
  29078. return;
  29079. }
  29080. }
  29081. // console.log(options.data)
  29082. uni.request({
  29083. url: options.httpUrl,
  29084. data: options.data,
  29085. method: ajaxType,
  29086. //请求类型
  29087. header: options.headers,
  29088. //加入请求头
  29089. success: function success(res) {
  29090. // ;
  29091. //请求完成回调
  29092. _this6.requestEnd && _this6.requestEnd(options, res);
  29093. callback(true, res);
  29094. },
  29095. fail: function fail(err) {
  29096. // console.log(err);
  29097. //请求完成回调
  29098. _this6.requestEnd && _this6.requestEnd(options, err);
  29099. callback(false, err);
  29100. }
  29101. });
  29102. }
  29103. //jsonp请求(只限于H5使用)
  29104. }, {
  29105. key: "jsonp",
  29106. value: function jsonp() {
  29107. var url = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
  29108. var data = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  29109. var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
  29110. var requestInfo = this.getDefault(url, options, "data");
  29111. var dataStr = '';
  29112. Object.keys(data).forEach(function (key) {
  29113. dataStr += key + '=' + data[key] + '&';
  29114. });
  29115. //匹配最后一个&并去除
  29116. if (dataStr !== '') {
  29117. dataStr = dataStr.substr(0, dataStr.lastIndexOf('&'));
  29118. }
  29119. requestInfo.httpUrl = requestInfo.httpUrl + '?' + dataStr;
  29120. var _this = this;
  29121. return new Promise(function (resolve, reject) {
  29122. var callbackName = "callback" + Math.ceil(Math.random() * 1000000);
  29123. if (_this.requestStart) {
  29124. requestInfo.data = data;
  29125. var requestStart = _this.requestStart(requestInfo);
  29126. if ((0, _typeof2.default)(requestStart) == "object") {
  29127. requestInfo.data = requestStart.data;
  29128. requestInfo.headers = requestStart.headers;
  29129. requestInfo.isPrompt = requestStart.isPrompt;
  29130. requestInfo.load = requestStart.load;
  29131. requestInfo.isFactory = requestStart.isFactory;
  29132. } else {
  29133. reject("请求开始拦截器未通过");
  29134. return;
  29135. }
  29136. }
  29137. window[callbackName] = function (data) {
  29138. resolve(data);
  29139. };
  29140. var script = document.createElement("script");
  29141. script.src = requestInfo.httpUrl + "&callback=" + callbackName;
  29142. document.head.appendChild(script);
  29143. // 及时删除,防止加载过多的JS
  29144. document.head.removeChild(script);
  29145. //请求完成回调
  29146. _this.requestEnd && _this.requestEnd(requestInfo, {});
  29147. });
  29148. }
  29149. //本地服务器图片上传
  29150. }, {
  29151. key: "urlImgUpload",
  29152. value: function urlImgUpload() {
  29153. var url = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
  29154. var data = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  29155. var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
  29156. var requestInfo = this.getDefault(url, options, "file");
  29157. requestInfo.data = data;
  29158. var _this = this;
  29159. return new Promise(function (resolve, reject) {
  29160. uni.chooseImage({
  29161. count: data.count || 9,
  29162. //默认9
  29163. sizeType: data.sizeType || ['original', 'compressed'],
  29164. //可以指定是原图还是压缩图,默认二者都有
  29165. sourceType: data.sourceType || ['album', 'camera'],
  29166. //从相册选择
  29167. success: function success(res) {
  29168. _this.urlFileUpload(requestInfo, res.tempFiles, function (state, response) {
  29169. state ? resolve(response) : reject(response);
  29170. });
  29171. }
  29172. });
  29173. });
  29174. }
  29175. //本地服务器文件上传方法
  29176. }, {
  29177. key: "urlFileUpload",
  29178. value: function urlFileUpload(options, files, callback) {
  29179. var _this = this;
  29180. //请求前回调
  29181. if (this.requestStart) {
  29182. options.method = "FILE";
  29183. var requestStart = this.requestStart(options);
  29184. if ((0, _typeof2.default)(requestStart) == "object") {
  29185. if ((0, _typeof2.default)(requestStart) == "object") {
  29186. options.data = requestStart.data;
  29187. options.headers = requestStart.headers;
  29188. options.isPrompt = requestStart.isPrompt;
  29189. options.load = requestStart.load;
  29190. options.isFactory = requestStart.isFactory;
  29191. } else {
  29192. callback(false, "请求开始拦截器未通过");
  29193. return;
  29194. }
  29195. }
  29196. }
  29197. var len = files.length - 1;
  29198. var fileList = new Array();
  29199. fileUpload(0);
  29200. function fileUpload(i) {
  29201. var config = {
  29202. url: options.httpUrl,
  29203. filePath: files[i].path,
  29204. header: options.headers,
  29205. //加入请求头
  29206. name: options.name || "file",
  29207. success: function success(response) {
  29208. response.data = JSON.parse(response.data);
  29209. //请求完成回调
  29210. _this.requestEnd && _this.requestEnd(options, response);
  29211. //是否用外部的数据处理方法
  29212. if (options.isFactory && _this.dataFactory) {
  29213. //数据处理
  29214. var factoryInfo = _this.dataFactory(options, response);
  29215. if (factoryInfo.success) {
  29216. fileList.push(factoryInfo.result);
  29217. if (len <= i) {
  29218. callback(true, fileList);
  29219. } else {
  29220. fileUpload(i + 1);
  29221. }
  29222. } else {
  29223. callback(false, factoryInfo.result);
  29224. }
  29225. } else {
  29226. fileList.push(response.data);
  29227. if (len <= i) {
  29228. callback(true, fileList);
  29229. } else {
  29230. fileUpload(i + 1);
  29231. }
  29232. }
  29233. },
  29234. fail: function fail(err) {
  29235. //请求完成回调
  29236. _this.requestEnd && _this.requestEnd(options, err);
  29237. callback(false, err);
  29238. }
  29239. };
  29240. if (options.data) {
  29241. config.formData = options.data;
  29242. }
  29243. uni.uploadFile(config);
  29244. }
  29245. }
  29246. }]);
  29247. return request;
  29248. }();
  29249. exports.default = request;
  29250. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  29251. /***/ }),
  29252. /***/ 55:
  29253. /*!***************************************************!*\
  29254. !*** /Users/chenpengming/代码/product_wx/config.js ***!
  29255. \***************************************************/
  29256. /*! no static exports found */
  29257. /***/ (function(module, exports, __webpack_require__) {
  29258. "use strict";
  29259. /* WEBPACK VAR INJECTION */(function(uni) {
  29260. Object.defineProperty(exports, "__esModule", {
  29261. value: true
  29262. });
  29263. exports.default = void 0;
  29264. var _constant = __webpack_require__(/*! ./pages/utils/constant.js */ 50);
  29265. // console.log(BASE_URI)
  29266. var baseUrl = _constant.BASE_URI;
  29267. var device, platform;
  29268. device = uni.getSystemInfoSync().brand + ' ' + uni.getSystemInfoSync().model;
  29269. platform = 'wxmini';
  29270. // app版本
  29271. var version = "1.0";
  29272. // 高德地图 key
  29273. var key = "53ea64b17287b1f7323e9f29870af813";
  29274. var _default = {
  29275. device: device,
  29276. version: version,
  29277. platform: platform,
  29278. key: key,
  29279. baseUrl: baseUrl
  29280. };
  29281. exports.default = _default;
  29282. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  29283. /***/ }),
  29284. /***/ 6:
  29285. /*!***************************************************************!*\
  29286. !*** ./node_modules/@babel/runtime/helpers/arrayWithHoles.js ***!
  29287. \***************************************************************/
  29288. /*! no static exports found */
  29289. /***/ (function(module, exports) {
  29290. function _arrayWithHoles(arr) {
  29291. if (Array.isArray(arr)) return arr;
  29292. }
  29293. module.exports = _arrayWithHoles, module.exports.__esModule = true, module.exports["default"] = module.exports;
  29294. /***/ }),
  29295. /***/ 62:
  29296. /*!********************************************************!*\
  29297. !*** /Users/chenpengming/代码/product_wx/js_sdk/http.js ***!
  29298. \********************************************************/
  29299. /*! no static exports found */
  29300. /***/ (function(module, exports, __webpack_require__) {
  29301. "use strict";
  29302. /* WEBPACK VAR INJECTION */(function(uni) {
  29303. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  29304. Object.defineProperty(exports, "__esModule", {
  29305. value: true
  29306. });
  29307. exports.ParkInfoControllerListAll = ParkInfoControllerListAll;
  29308. exports.activityList = activityList;
  29309. exports.add = add;
  29310. exports.addCompanyExamine = addCompanyExamine;
  29311. exports.addInterview = addInterview;
  29312. exports.addRectificationManagement = addRectificationManagement;
  29313. exports.addRepair = addRepair;
  29314. exports.addSafetySelfCheckingManage = addSafetySelfCheckingManage;
  29315. exports.addSafetySelfCheckingPlan = addSafetySelfCheckingPlan;
  29316. exports.addZaiti = addZaiti;
  29317. exports.addyixiang = addyixiang;
  29318. exports.cancelAppoint = cancelAppoint;
  29319. exports.clickCollect = clickCollect;
  29320. exports.companyECdit = companyECdit;
  29321. exports.companyExamineAdd = companyExamineAdd;
  29322. exports.companyExamineExamine = companyExamineExamine;
  29323. exports.companyExamineGetById = companyExamineGetById;
  29324. exports.confirmAudit = confirmAudit;
  29325. exports.editHomeCommunityActivity = editHomeCommunityActivity;
  29326. exports.editInterview = editInterview;
  29327. exports.editPassword = editPassword;
  29328. exports.editRepair = editRepair;
  29329. exports.editSave = editSave;
  29330. exports.fillControllerEditSave = fillControllerEditSave;
  29331. exports.fillControllerList = fillControllerList;
  29332. exports.findAllSimpleCompanies = findAllSimpleCompanies;
  29333. exports.findBillManagementMoreForCollect = findBillManagementMoreForCollect;
  29334. exports.findCompanyInfoList = findCompanyInfoList;
  29335. exports.findCompanyList = findCompanyList;
  29336. exports.findCompanyTags = findCompanyTags;
  29337. exports.findDeptList = findDeptList;
  29338. exports.findLongPanList = findLongPanList;
  29339. exports.findLouDongList = findLouDongList;
  29340. exports.findRectificationManagementInOutById = findRectificationManagementInOutById;
  29341. exports.findRectificationManagementInOutList = findRectificationManagementInOutList;
  29342. exports.findRoomByCondition = findRoomByCondition;
  29343. exports.findRoomByConditionExcel = findRoomByConditionExcel;
  29344. exports.findRoomInfoListByIds = findRoomInfoListByIds;
  29345. exports.findSafetySelfCheckingManageList = findSafetySelfCheckingManageList;
  29346. exports.findSafetySelfCheckingManagetById = findSafetySelfCheckingManagetById;
  29347. exports.findSafetySelfCheckingPlanById = findSafetySelfCheckingPlanById;
  29348. exports.findSafetySelfCheckingPlanList = findSafetySelfCheckingPlanList;
  29349. exports.findTrackUserList = findTrackUserList;
  29350. exports.findUserList = findUserList;
  29351. exports.findUserListByRoleWuye = findUserListByRoleWuye;
  29352. exports.findYuanQuList = findYuanQuList;
  29353. exports.getActivationRanking = getActivationRanking;
  29354. exports.getActivityById = getActivityById;
  29355. exports.getAllBaseCompany = getAllBaseCompany;
  29356. exports.getAppUserMain = getAppUserMain;
  29357. exports.getBuildDetails = getBuildDetails;
  29358. exports.getByCodes = getByCodes;
  29359. exports.getByGroupId = getByGroupId;
  29360. exports.getById = getById;
  29361. exports.getBySaveStatus = getBySaveStatus;
  29362. exports.getByStag = getByStag;
  29363. exports.getCompanyAll = getCompanyAll;
  29364. exports.getCompanyById = getCompanyById;
  29365. exports.getCompanyById2 = getCompanyById2;
  29366. exports.getCompanyHouseDetails = getCompanyHouseDetails;
  29367. exports.getCompanyTags = getCompanyTags;
  29368. exports.getCompanyTagsByQybq = getCompanyTagsByQybq;
  29369. exports.getContractById = getContractById;
  29370. exports.getDispatchToPerson = getDispatchToPerson;
  29371. exports.getHandleSizeTypes = getHandleSizeTypes;
  29372. exports.getHomeCommunityActivityById = getHomeCommunityActivityById;
  29373. exports.getInterviewDetails = getInterviewDetails;
  29374. exports.getInterviewList = getInterviewList;
  29375. exports.getMeetingAppointListApp = getMeetingAppointListApp;
  29376. exports.getMeetingRoomList = getMeetingRoomList;
  29377. exports.getMsgList = getMsgList;
  29378. exports.getMyList = getMyList;
  29379. exports.getParkNoticeById = getParkNoticeById;
  29380. exports.getParkRoomSlateInfoById = getParkRoomSlateInfoById;
  29381. exports.getPartyBranchList = getPartyBranchList;
  29382. exports.getPropertyNoticeById = getPropertyNoticeById;
  29383. exports.getReadSizeByTypes = getReadSizeByTypes;
  29384. exports.getRegistrationInfo = getRegistrationInfo;
  29385. exports.getRepairDispatchById = getRepairDispatchById;
  29386. exports.getRepairList = getRepairList;
  29387. exports.getRoomInfo = getRoomInfo;
  29388. exports.getSelectDeptTwo = getSelectDeptTwo;
  29389. exports.getSelectUserTwo = getSelectUserTwo;
  29390. exports.getTreeData2 = getTreeData2;
  29391. exports.getTreeData6 = getTreeData6;
  29392. exports.getUserDept = getUserDept;
  29393. exports.getUserInfo = getUserInfo;
  29394. exports.getUserLocalStorageInfo = getUserLocalStorageInfo;
  29395. exports.getUserMainHouseKeeper = getUserMainHouseKeeper;
  29396. exports.getUserPower = getUserPower;
  29397. exports.getWxCompanyTags = getWxCompanyTags;
  29398. exports.handleList = handleList;
  29399. exports.handleListAll = handleListAll;
  29400. exports.homeActivityClickCollect = homeActivityClickCollect;
  29401. exports.insertHomeCommunityActivity = insertHomeCommunityActivity;
  29402. exports.insertRegisSignInfo = insertRegisSignInfo;
  29403. exports.interviewEscalationListAll = interviewEscalationListAll;
  29404. exports.isFinishComInfo = isFinishComInfo;
  29405. exports.isRegistration = isRegistration;
  29406. exports.list = list;
  29407. exports.listAllUserMain = listAllUserMain;
  29408. exports.listApp = listApp;
  29409. exports.listByModel = listByModel;
  29410. exports.listHomeCommunityActivity = listHomeCommunityActivity;
  29411. exports.listVo = listVo;
  29412. exports.login = login;
  29413. exports.loginByCompany = loginByCompany;
  29414. exports.loginByWeixin2 = loginByWeixin2;
  29415. exports.meetingAppoint = meetingAppoint;
  29416. exports.meetingAppointCheck = meetingAppointCheck;
  29417. exports.meetingAppointConfirmAudit = meetingAppointConfirmAudit;
  29418. exports.meetingAppointDetail = meetingAppointDetail;
  29419. exports.meetingAppointEdit = meetingAppointEdit;
  29420. exports.meetingRoomDetail = meetingRoomDetail;
  29421. exports.newNotice = newNotice;
  29422. exports.noticeParkAdd = noticeParkAdd;
  29423. exports.noticeParkClickCollect = noticeParkClickCollect;
  29424. exports.noticeParkEdit = noticeParkEdit;
  29425. exports.noticeParkGetById = noticeParkGetById;
  29426. exports.noticeParkList = noticeParkList;
  29427. exports.parkBriefGetBridf = parkBriefGetBridf;
  29428. exports.parkFeedbackInfoAdd = parkFeedbackInfoAdd;
  29429. exports.parkFeedbackInfoGetById = parkFeedbackInfoGetById;
  29430. exports.parkFeedbackInfoList = parkFeedbackInfoList;
  29431. exports.parkListAll = parkListAll;
  29432. exports.parkRoomEdit = parkRoomEdit;
  29433. exports.parkRoomGetById = parkRoomGetById;
  29434. exports.parkRoomSlateAdd = parkRoomSlateAdd;
  29435. exports.parkRoomSlateAddSale = parkRoomSlateAddSale;
  29436. exports.parkRoomSlateEdit = parkRoomSlateEdit;
  29437. exports.parkRoomSlateList = parkRoomSlateList;
  29438. exports.parkRoomSlateRemove = parkRoomSlateRemove;
  29439. exports.parkServiceEvaluationAdd = parkServiceEvaluationAdd;
  29440. exports.parkSystemMsgReadAdd = parkSystemMsgReadAdd;
  29441. exports.parkUserCollectorsList = parkUserCollectorsList;
  29442. exports.peripheryAdd = peripheryAdd;
  29443. exports.peripheryEdit = peripheryEdit;
  29444. exports.peripheryGetById = peripheryGetById;
  29445. exports.peripheryList = peripheryList;
  29446. exports.peripheryRemove = peripheryRemove;
  29447. exports.policyGetById = policyGetById;
  29448. exports.policyList = policyList;
  29449. exports.policyListAll = policyListAll;
  29450. exports.propertyNoticeAdd = propertyNoticeAdd;
  29451. exports.propertyNoticeClickCollect = propertyNoticeClickCollect;
  29452. exports.propertyNoticeEdit = propertyNoticeEdit;
  29453. exports.propertyNoticeList = propertyNoticeList;
  29454. exports.readList = readList;
  29455. exports.readListAll = readListAll;
  29456. exports.removeTagsBind = removeTagsBind;
  29457. exports.repairAdd = repairAdd;
  29458. exports.repairHandleList = repairHandleList;
  29459. exports.repairList = repairList;
  29460. exports.richScan = richScan;
  29461. exports.roomTimeSoltDetail = roomTimeSoltDetail;
  29462. exports.roomTimeSoltUseful = roomTimeSoltUseful;
  29463. exports.saleControllerGetById = saleControllerGetById;
  29464. exports.selectByCompanyId = selectByCompanyId;
  29465. exports.switchCommonUser = switchCommonUser;
  29466. exports.tagCategoryList = tagCategoryList;
  29467. exports.tagInfoList = tagInfoList;
  29468. exports.tagsBind = tagsBind;
  29469. exports.updateInformation = updateInformation;
  29470. exports.updateListRectificationManagement = updateListRectificationManagement;
  29471. exports.updateRegistration = updateRegistration;
  29472. exports.updateSafetySelfCheckingManage = updateSafetySelfCheckingManage;
  29473. exports.updateSignIn = updateSignIn;
  29474. exports.upload = upload;
  29475. exports.uploadPDF = uploadPDF;
  29476. exports.userList = userList;
  29477. exports.userNoticeAdd = userNoticeAdd;
  29478. exports.userRead = userRead;
  29479. var _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/defineProperty */ 11));
  29480. var _requestConfig = _interopRequireDefault(__webpack_require__(/*! ./request/requestConfig */ 53));
  29481. var _constant = __webpack_require__(/*! ../pages/utils/constant.js */ 50);
  29482. var _qs = _interopRequireDefault(__webpack_require__(/*! qs */ 63));
  29483. function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
  29484. function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { (0, _defineProperty2.default)(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
  29485. var baseUri = '/smartParkH5Server';
  29486. var parkActivity = '/wx/meetingAppoint';
  29487. function login(data) {
  29488. return _requestConfig.default.post('/wx/auth/login_by_app_main?' + _qs.default.stringify(data), {}, {});
  29489. }
  29490. function loginByCompany(data) {
  29491. return _requestConfig.default.post('/wx/auth/loginByCompany', data, {});
  29492. }
  29493. function addRectificationManagement(data) {
  29494. return _requestConfig.default.post('/wx/RectificationController/addRectificationManagement', data, {});
  29495. }
  29496. function loginByWeixin2(code) {
  29497. return _requestConfig.default.post('/wx/auth/login_by_weixin2', code, {});
  29498. }
  29499. function switchCommonUser(code) {
  29500. return _requestConfig.default.post('/wx/auth/switchCommonUser', code, {});
  29501. }
  29502. function getUserLocalStorageInfo() {
  29503. var userInfo = JSON.parse(uni.getStorageSync("USERINFO"));
  29504. return userInfo;
  29505. }
  29506. function uploadPDF() {
  29507. uni.showLoading({
  29508. title: '加载中',
  29509. mask: true
  29510. });
  29511. return new Promise(function (resolve, reject) {
  29512. uni.chooseMessageFile({
  29513. count: 1,
  29514. //默认100
  29515. type: 'file',
  29516. success: function success(res) {
  29517. uni.uploadFile({
  29518. url: _constant.BASE_URI + "/wx/fileController/upload",
  29519. filePath: res.tempFiles[0].path,
  29520. name: "file",
  29521. formData: {
  29522. user: "test"
  29523. },
  29524. success: function success(successRes) {
  29525. // 上传完成需要更新 fileList
  29526. var data = JSON.parse(successRes.data);
  29527. uni.showToast({
  29528. title: '提交成功',
  29529. duration: 500
  29530. });
  29531. resolve({
  29532. url: data.data[0],
  29533. name: res.tempFiles[0].name
  29534. });
  29535. },
  29536. fail: function fail(res) {}
  29537. });
  29538. },
  29539. fail: function fail(e) {
  29540. uni.showToast({
  29541. title: '提交成功',
  29542. duration: 0
  29543. });
  29544. }
  29545. });
  29546. });
  29547. }
  29548. function getBuildDetails(data) {
  29549. return _requestConfig.default.post('/wx/MnpBuildingController/getById', data, {});
  29550. }
  29551. function addZaiti(data) {
  29552. return _requestConfig.default.post('/wx/ParkRoomController/add', data, {});
  29553. }
  29554. function getCompanyById2(data) {
  29555. return _requestConfig.default.post('/wx/roadShow/getCompanyById', data, {});
  29556. }
  29557. function add(data) {
  29558. return _requestConfig.default.post('/wx/repair/add', data, {});
  29559. }
  29560. function getPartyBranchList(data) {
  29561. return _requestConfig.default.post('/wx/partyBranch/getPartyBranchList', data, {});
  29562. }
  29563. function selectByCompanyId(data) {
  29564. return _requestConfig.default.post('/wx/SocialCarrierController/selectByCompanyId', data, {});
  29565. }
  29566. function getTreeData2(data) {
  29567. return _requestConfig.default.post('/wx/ParkInfoController/getTreeData2', data, {});
  29568. }
  29569. function getTreeData6(data) {
  29570. return _requestConfig.default.post('/wx/ParkInfoController/getTreeData6', data, {});
  29571. }
  29572. function getActivationRanking(data) {
  29573. return _requestConfig.default.post('/wx/partyBranch/getActivationRanking', data, {});
  29574. }
  29575. function findRectificationManagementInOutList(data) {
  29576. return _requestConfig.default.post('/wx/RectificationController/findRectificationManagementInOutList', data, {});
  29577. }
  29578. function findRectificationManagementInOutById(e) {
  29579. return _requestConfig.default.post('/wx/RectificationController/findRectificationManagementInOutById', {
  29580. id: e
  29581. }, {});
  29582. }
  29583. function repairList(data) {
  29584. return _requestConfig.default.post('/wx/repair/list', data, {});
  29585. }
  29586. function repairHandleList(data) {
  29587. return _requestConfig.default.post('/wx/repair/handleList', data, {});
  29588. }
  29589. function addSafetySelfCheckingManage(data) {
  29590. return _requestConfig.default.post('/wx/SafetyController/addSafetySelfCheckingManage', data, {});
  29591. }
  29592. function updateSafetySelfCheckingManage(data) {
  29593. return _requestConfig.default.post('/wx/SafetyController/updateSafetySelfCheckingManage', data, {});
  29594. }
  29595. function editRepair(data) {
  29596. return _requestConfig.default.post('/wx/repair/edit', data, {});
  29597. }
  29598. function addRepair(data) {
  29599. return _requestConfig.default.post('/wx/repair/add', data, {});
  29600. }
  29601. function getRepairDispatchById(id) {
  29602. return _requestConfig.default.post('/wx/repair/getById', {
  29603. id: id
  29604. }, {});
  29605. }
  29606. function getDispatchToPerson(data) {
  29607. return _requestConfig.default.post('/wx/repair/getDispatchToPerson', data, {});
  29608. }
  29609. function getCompanyById(data) {
  29610. return _requestConfig.default.post('/wx/roadShow/getCompanyById', data, {});
  29611. }
  29612. function getWxCompanyTags(e) {
  29613. return _requestConfig.default.post('/wx/MnpTagInfoController/tagInfoList', e, {});
  29614. }
  29615. function tagsBind(e) {
  29616. return _requestConfig.default.post('/wx/MnpTagInfoController/bind', e, {});
  29617. }
  29618. function saleControllerGetById(e) {
  29619. return _requestConfig.default.post('/wx/SaleController/getById', {
  29620. id: e
  29621. }, {});
  29622. }
  29623. function parkRoomGetById(e) {
  29624. return _requestConfig.default.post('/wx/ParkRoomController/getById', {
  29625. id: e
  29626. }, {});
  29627. }
  29628. function getAppUserMain(data) {
  29629. return _requestConfig.default.post('/wx/company/getById', data, {});
  29630. }
  29631. function parkRoomEdit(data) {
  29632. return _requestConfig.default.post('/wx/ParkRoomController/edit', data, {});
  29633. }
  29634. function confirmAudit(data) {
  29635. return _requestConfig.default.post('/wx/meetingAppoint/confirmAudit', data, {});
  29636. }
  29637. function getCompanyTags(e) {
  29638. return _requestConfig.default.post('/wx/MnpTagInfoController/getCompanyTags', e, {});
  29639. }
  29640. function getCompanyTagsByQybq(qybq) {
  29641. return _requestConfig.default.post('/wx/MnpTagInfoController/getCompanyTagsByQybq', {
  29642. qybq: qybq
  29643. }, {});
  29644. }
  29645. function companyECdit(data) {
  29646. return _requestConfig.default.post('/wx/company/edit', data, {});
  29647. }
  29648. function tagInfoList(e) {
  29649. return _requestConfig.default.post('/wx/MnpTagInfoController/tagInfoList', e, {});
  29650. }
  29651. function findDeptList() {
  29652. return _requestConfig.default.post('/wx/SaleController/findDeptList', {}, {});
  29653. }
  29654. function tagCategoryList() {
  29655. return _requestConfig.default.post('/wx/MnpTagController/tagCategoryList', {}, {});
  29656. }
  29657. function interviewEscalationListAll(id) {
  29658. return _requestConfig.default.post('/wx/interviewEscalation/listAll', {
  29659. companyId: id
  29660. }, {});
  29661. }
  29662. function getUserInfo(data) {
  29663. var laocui_user_info = JSON.parse(uni.getStorageSync('laocui_user_info'));
  29664. return _requestConfig.default.post('/wx/frameUser/getMyInfo?userId=' + laocui_user_info.user.id, {}, {});
  29665. }
  29666. function getRoomInfo(e) {
  29667. return _requestConfig.default.post('/wx/ParkRoomController/getById', {
  29668. id: e
  29669. }, {});
  29670. }
  29671. function getCompanyHouseDetails(e) {
  29672. return _requestConfig.default.post('/wx/company/getById', {
  29673. id: e
  29674. }, {});
  29675. }
  29676. function handleList(e) {
  29677. return _requestConfig.default.post('/wx/workPaneController/handleList', e, {});
  29678. }
  29679. function readList(e) {
  29680. return _requestConfig.default.post('/wx/workPaneController/readList', e, {});
  29681. }
  29682. function readListAll(e) {
  29683. return _requestConfig.default.post('/wx/workPaneController/readListAll', e, {});
  29684. }
  29685. // 获取待阅数量
  29686. function getReadSizeByTypes(e) {
  29687. return _requestConfig.default.post('/wx/workPaneController/getReadSizeByTypes', e, {});
  29688. }
  29689. // 阅读待阅
  29690. function userRead(e) {
  29691. return _requestConfig.default.post('/wx/workPaneController/userRead', e, {});
  29692. }
  29693. // 获取待办数量
  29694. function getHandleSizeTypes(e) {
  29695. return _requestConfig.default.post('/wx/workPaneController/getHandleSizeTypes', e, {});
  29696. }
  29697. // 获取待办列表
  29698. function handleListAll(e) {
  29699. return _requestConfig.default.post('/wx/workPaneController/handleListAll', e, {});
  29700. }
  29701. // handleList?
  29702. function findCompanyTags(e) {
  29703. return _requestConfig.default.post('/wx/MnpTagInfoController/getCompanyTags/' + e, {}, {});
  29704. }
  29705. function removeTagsBind(e) {
  29706. return _requestConfig.default.post('/wx/MnpTagInfoController/removeBind', e, {});
  29707. }
  29708. function addInterview(e) {
  29709. return _requestConfig.default.post("/wx/interviewEscalation/add", e, {});
  29710. }
  29711. function editInterview(e) {
  29712. return _requestConfig.default.post("/wx/interviewEscalation/edit", e, {});
  29713. }
  29714. function getInterviewList(e) {
  29715. return _requestConfig.default.post("/wx/interviewEscalation/list", e, {});
  29716. }
  29717. function getInterviewDetails(e) {
  29718. return _requestConfig.default.post("/wx/interviewEscalation/getById", {
  29719. id: e
  29720. }, {});
  29721. }
  29722. function findSafetySelfCheckingPlanById(e) {
  29723. return _requestConfig.default.post("/wx/SafetyController/findSafetySelfCheckingPlanById", {
  29724. id: e
  29725. }, {});
  29726. }
  29727. //
  29728. function findSafetySelfCheckingPlanList(e) {
  29729. return _requestConfig.default.post("/wx/SafetyController/findSafetySelfCheckingPlanList", e, {});
  29730. }
  29731. function getBySaveStatus(e) {
  29732. return _requestConfig.default.post("/wx/interviewEscalation/getBySaveStatus", {
  29733. createdBy: e
  29734. }, {});
  29735. }
  29736. function companyExamineAdd(e) {
  29737. return _requestConfig.default.post("/wx/companyExamine/add", e, {});
  29738. }
  29739. function companyExamineGetById(e) {
  29740. return _requestConfig.default.post("/wx/companyExamine/getById", e, {});
  29741. }
  29742. function companyExamineExamine(e) {
  29743. return _requestConfig.default.post("/wx/companyExamine/examine", e, {});
  29744. }
  29745. function listByModel(e) {
  29746. return _requestConfig.default.post('/wx/SaleController/findSaleManagementListByRoomId', e, {});
  29747. }
  29748. function listVo(e) {
  29749. // 查询园区列表,不需要参数
  29750. return _requestConfig.default.post('/wx/company/listVo', e, {});
  29751. }
  29752. // /wx/SafetyController/addSafetySelfCheckingPlan
  29753. function addSafetySelfCheckingPlan(e) {
  29754. // 查询园区列表,不需要参数
  29755. return _requestConfig.default.post('/wx/SafetyController/addSafetySelfCheckingPlan', _objectSpread({}, e), {});
  29756. }
  29757. function findSafetySelfCheckingManagetById(e) {
  29758. // 查询园区列表,不需要参数
  29759. return _requestConfig.default.post('/wx/SafetyController/findSafetySelfCheckingManagetById', {
  29760. id: e
  29761. }, {});
  29762. }
  29763. function findSafetySelfCheckingManageList(e) {
  29764. // 查询园区列表,不需要参数
  29765. return _requestConfig.default.post('/wx/SafetyController/findSafetySelfCheckingManageList', e, {});
  29766. }
  29767. function findYuanQuList() {
  29768. // 查询园区列表,不需要参数
  29769. return _requestConfig.default.post('/wx/SaleController/findYuanQuList', {}, {});
  29770. }
  29771. function findLongPanList(id) {
  29772. // 用园区ID查询楼盘列表
  29773. return _requestConfig.default.post('/wx/SaleController/findLouPanList', {
  29774. id: id
  29775. }, {});
  29776. }
  29777. function findLouDongList(id) {
  29778. // 用园区ID查询楼盘列表
  29779. return _requestConfig.default.post('/wx/SaleController/findLouDongList', {
  29780. id: id
  29781. }, {});
  29782. }
  29783. function clickCollect(e) {
  29784. return _requestConfig.default.post('/wx/parkActivity/clickCollect', e, {});
  29785. }
  29786. function insertRegisSignInfo(e) {
  29787. return _requestConfig.default.post('/wx/parkActivity/insertRegisSignInfo', e, {});
  29788. }
  29789. function richScan(e) {
  29790. return _requestConfig.default.post('/wx/parkActivity/richScan', e, {});
  29791. }
  29792. function getActivityById(id, signInCode, userId) {
  29793. return _requestConfig.default.get('/wx/parkActivity/getBySignInCode?id=' + id + '&userId=' + userId + "&signInCode=" + signInCode, {}, {});
  29794. }
  29795. // /wx/userPower/getUserPower?userId=1088765543780974592
  29796. function getUserPower(e) {
  29797. return _requestConfig.default.post('/wx/userPower/getUserPower', {
  29798. userId: e
  29799. }, {});
  29800. }
  29801. function editPassword(e) {
  29802. return _requestConfig.default.post('/wx/frameUser/editPassword', e, {});
  29803. }
  29804. function updateListRectificationManagement(e) {
  29805. return _requestConfig.default.post('/wx/RectificationController/updateListRectificationManagement', e, {});
  29806. }
  29807. // /wx/RectificationController/findUserListByRoleWuye
  29808. function findUserListByRoleWuye() {
  29809. // 用园区ID查询楼盘列表
  29810. return _requestConfig.default.post('/wx/RectificationController/findUserListByRoleWuye', {}, {});
  29811. }
  29812. function listAllUserMain() {
  29813. // 用园区ID查询楼盘列表
  29814. return _requestConfig.default.post('/wx/UserMainExpandController/listAllUserMain', {}, {});
  29815. }
  29816. function userList(e) {
  29817. // http://192.168.2.112:9011/wx/frameUser/userList
  29818. return _requestConfig.default.post('/wx/frameUser/userList', e, {});
  29819. }
  29820. function findAllSimpleCompanies(e) {
  29821. // http://192.168.2.112:9011/wx/frameUser/userList
  29822. return _requestConfig.default.post('/wx/company/findAllSimpleCompanies', {
  29823. searchInfo: e.qymc,
  29824. pageNum: 1,
  29825. pageSize: 10000
  29826. }, {});
  29827. }
  29828. function findTrackUserList() {
  29829. // http://192.168.2.112:9011/wx/frameUser/userList
  29830. return _requestConfig.default.post('/wx/SaleController/findTrackUserList', {}, {});
  29831. }
  29832. function getSelectUserTwo(e) {
  29833. // 用园区ID查询楼盘列表
  29834. return _requestConfig.default.post('/wx/frameUser/getSelectUserTwo', {
  29835. searchName: e
  29836. }, {});
  29837. }
  29838. function getSelectDeptTwo(e) {
  29839. // 用园区ID查询楼盘列表
  29840. return _requestConfig.default.post('/wx/frameUser/getSelectDeptTwo', {
  29841. searchName: e
  29842. }, {});
  29843. }
  29844. function findRoomInfoListByIds(e) {
  29845. // 用园区ID查询楼盘列表
  29846. return _requestConfig.default.post('/wx/SaleController/findRoomInfoListByIds', {
  29847. ids: e
  29848. }, {});
  29849. }
  29850. function findCompanyList() {
  29851. // 用园区ID查询楼盘列表
  29852. return _requestConfig.default.post('/wx/SaleController/findCompanyList', {}, {});
  29853. }
  29854. function addyixiang(e) {
  29855. return _requestConfig.default.post('/wx/SaleController/add', e, {});
  29856. }
  29857. function editSave(e) {
  29858. return _requestConfig.default.post('/wx/SaleController/editSave', e, {});
  29859. }
  29860. function findCompanyInfoList(data) {
  29861. return _requestConfig.default.post("/wx/SaleController/findCompanyInfoList", data, {});
  29862. }
  29863. function findRoomByCondition(params) {
  29864. // 用园区ID查询楼盘列表
  29865. return _requestConfig.default.post('/wx/SaleController/findRoomByCondition', params, {});
  29866. }
  29867. function findRoomByConditionExcel(params) {
  29868. // 用园区ID查询楼盘列表
  29869. return _requestConfig.default.post('/wx/SaleController/findRoomByConditionExcel', params, {});
  29870. }
  29871. function getCompanyAll(qymc) {
  29872. return _requestConfig.default.post('/wx/company/listAll', {
  29873. qymc: qymc ? qymc : ""
  29874. }, {});
  29875. }
  29876. function getByCodes(params) {
  29877. // 用园区ID查询楼盘列表
  29878. return _requestConfig.default.post('/wx/sysDict/getByCodes', {
  29879. codes: params
  29880. }, {});
  29881. }
  29882. function list(data) {
  29883. return _requestConfig.default.post(parkActivity + '/getMeetingAppointList', data, {});
  29884. }
  29885. function listApp(data) {
  29886. return _requestConfig.default.post(parkActivity + '/getMeetingAppointListApp', data, {});
  29887. }
  29888. function cancelAppoint(data) {
  29889. return _requestConfig.default.post(parkActivity + '/cancelAppoint', data, {});
  29890. }
  29891. // /wx/SaleController/
  29892. function getRepairList(data) {
  29893. return _requestConfig.default.post('/wx/repair/list', data, {});
  29894. }
  29895. function editHomeCommunityActivity(data) {
  29896. return _requestConfig.default.post('/wx/homeActivity/editHomeCommunityActivity', data, {});
  29897. }
  29898. function listHomeCommunityActivity(data) {
  29899. return _requestConfig.default.post('/wx/homeActivity/listHomeCommunityActivity', data, {});
  29900. }
  29901. function insertHomeCommunityActivity(data) {
  29902. return _requestConfig.default.post('/wx/homeActivity/insertHomeCommunityActivity', data, {});
  29903. }
  29904. function activityList(data) {
  29905. return _requestConfig.default.post('/wx/homeActivity/list', data, {});
  29906. }
  29907. function parkListAll(data) {
  29908. return _requestConfig.default.post('/wx/parkBrief/listAll', data, {});
  29909. }
  29910. function ParkInfoControllerListAll(data) {
  29911. return _requestConfig.default.post('/wx/ParkInfoController/listAll', data, {});
  29912. }
  29913. function parkBriefGetBridf(data) {
  29914. return _requestConfig.default.post('/wx/parkBrief/getBridf', data, {});
  29915. }
  29916. // 报名
  29917. function updateRegistration(data) {
  29918. return _requestConfig.default.post('/wx/homeActivity/updateRegistration', data, {});
  29919. }
  29920. // 查询活动详情
  29921. function getHomeCommunityActivityById(data) {
  29922. return _requestConfig.default.post('/wx/homeActivity/getHomeCommunityActivityById', data, {});
  29923. }
  29924. // 查询企业是否报名
  29925. function isRegistration(data) {
  29926. return _requestConfig.default.post('/wx/homeActivity/isRegistration', data, {});
  29927. }
  29928. //查询企业报名信息
  29929. function getRegistrationInfo(data) {
  29930. return _requestConfig.default.post('/wx/homeActivity/getRegistrationInfo', data, {});
  29931. }
  29932. //签到
  29933. function updateSignIn(data) {
  29934. return _requestConfig.default.post('/wx/homeActivity/updateSignIn', data, {});
  29935. }
  29936. function isFinishComInfo(data) {
  29937. return _requestConfig.default.post('/wx/company/isFinishComInfo', data, {});
  29938. }
  29939. function getById(data) {
  29940. return _requestConfig.default.post('/wx/company/getById', data, {});
  29941. }
  29942. function addCompanyExamine(data) {
  29943. return _requestConfig.default.post('/wx/companyExamine/add', data, {});
  29944. }
  29945. function upload(data) {
  29946. return _requestConfig.default.post('/wx/fileController/upload', data, {});
  29947. }
  29948. function newNotice(data) {
  29949. return _requestConfig.default.post('/wx/noticePark/newNotice', data, {});
  29950. }
  29951. function noticeParkList(data) {
  29952. return _requestConfig.default.post('/wx/noticePark/list', data, {});
  29953. }
  29954. function propertyNoticeList(data) {
  29955. return _requestConfig.default.post('/wx/propertyNotice/list', data, {});
  29956. }
  29957. function noticeParkClickCollect(data) {
  29958. return _requestConfig.default.post('/wx/noticePark/clickCollect', data, {});
  29959. }
  29960. function propertyNoticeClickCollect(data) {
  29961. return _requestConfig.default.post('/wx/propertyNotice/clickCollect ', data, {});
  29962. }
  29963. function homeActivityClickCollect(data) {
  29964. return _requestConfig.default.post('/wx/homeActivity/clickCollect ', data, {});
  29965. }
  29966. function userNoticeAdd(data) {
  29967. return _requestConfig.default.post('/wx/userNotice/add', data, {});
  29968. }
  29969. // 园区通知发布
  29970. function noticeParkAdd(data) {
  29971. return _requestConfig.default.post('/wx/noticePark/add', data, {});
  29972. }
  29973. function noticeParkGetById(data) {
  29974. return _requestConfig.default.post('/wx/noticePark/getById', data, {});
  29975. }
  29976. // 园区通知编辑
  29977. function noticeParkEdit(data) {
  29978. return _requestConfig.default.post('/wx/noticePark/edit', data, {});
  29979. }
  29980. // 新增我的反馈
  29981. function parkFeedbackInfoAdd(data) {
  29982. return _requestConfig.default.post('/wx/parkFeedbackInfo/add', data, {});
  29983. }
  29984. // 新增我的反馈
  29985. function parkFeedbackInfoList(data) {
  29986. return _requestConfig.default.post('/wx/parkFeedbackInfo/list', data, {});
  29987. }
  29988. // 获取我的反馈详情
  29989. function parkFeedbackInfoGetById(data) {
  29990. return _requestConfig.default.get('/wx/parkFeedbackInfo/getById', data, {});
  29991. }
  29992. // 我的收藏列表
  29993. function parkUserCollectorsList(data) {
  29994. return _requestConfig.default.post('/wx/parkUserCollectors/list', data, {});
  29995. }
  29996. // 产业政策列表
  29997. function policyList(data) {
  29998. return _requestConfig.default.post('/wx/policy/list', data, {});
  29999. }
  30000. // 产业政策类型
  30001. function policyListAll(data) {
  30002. return _requestConfig.default.post('/wx/policyType/listAll', data, {});
  30003. }
  30004. // 产业政策获取详情
  30005. function policyGetById(data) {
  30006. return _requestConfig.default.post('/wx/policy/getById', data, {});
  30007. }
  30008. // 经法填报列表
  30009. function fillControllerList(data) {
  30010. return _requestConfig.default.post('/wx/fillController/list', data, {});
  30011. }
  30012. // 经法填报详情
  30013. function getByStag(data) {
  30014. return _requestConfig.default.post('/wx/fillController/getByStag', data, {});
  30015. }
  30016. // 经法填报详情保存/提交
  30017. function fillControllerEditSave(data) {
  30018. return _requestConfig.default.post('/wx/fillController/editSave', data, {});
  30019. }
  30020. // 园区通知详情
  30021. function getParkNoticeById(data) {
  30022. return _requestConfig.default.post('/wx/noticePark/getById', data, {});
  30023. }
  30024. // 物业通知详情
  30025. function getPropertyNoticeById(data) {
  30026. return _requestConfig.default.post('/wx/propertyNotice/getById', data, {});
  30027. }
  30028. // 我的消息列表
  30029. function getMsgList(data) {
  30030. return _requestConfig.default.post('/wx/WxParkSystemMsgInfoController/getMsgList', data, {});
  30031. }
  30032. // 获取管家
  30033. function getUserMainHouseKeeper(data) {
  30034. return _requestConfig.default.post('/wx/userRelation/getUserMainHouseKeeper', data, {});
  30035. }
  30036. // 周边列表
  30037. function peripheryList(data) {
  30038. return _requestConfig.default.post('/wx/periphery/list', data, {});
  30039. }
  30040. // 获取周边详情
  30041. function peripheryGetById(data) {
  30042. return _requestConfig.default.post('/wx/periphery/getById', data, {});
  30043. }
  30044. function peripheryAdd(data) {
  30045. return _requestConfig.default.post('/wx/periphery/add', data, {});
  30046. }
  30047. function peripheryEdit(data) {
  30048. return _requestConfig.default.post('/wx/periphery/edit', data, {});
  30049. }
  30050. function peripheryRemove(data) {
  30051. return _requestConfig.default.post('/wx/periphery/remove', data, {});
  30052. }
  30053. // 报事报修提交
  30054. function repairAdd(data) {
  30055. return _requestConfig.default.post('/wx/repair/add', data, {});
  30056. }
  30057. // 企业账单列表
  30058. function findBillManagementMoreForCollect(data) {
  30059. return _requestConfig.default.post('/wx/BillController/findBillManagementMoreForCollect', data, {});
  30060. }
  30061. // 查看园区详情
  30062. function getByGroupId(data) {
  30063. return _requestConfig.default.post('/wx/parkBrief/getByGroupId', data, {});
  30064. }
  30065. // 共享资源列表
  30066. function getMeetingRoomList(data) {
  30067. return _requestConfig.default.post('/wx/meetingRoom/getMeetingRoomList', data, {});
  30068. }
  30069. // 共享资源详情
  30070. function meetingRoomDetail(data) {
  30071. return _requestConfig.default.post('/wx/meetingRoom/meetingRoomDetail', data, {});
  30072. }
  30073. // 获取共享资源可选的时间段
  30074. function roomTimeSoltUseful(data) {
  30075. return _requestConfig.default.post('/wx/meetingRoom/roomTimeSoltUseful', data, {});
  30076. }
  30077. // 获取共享资源时间段状态
  30078. function roomTimeSoltDetail(data) {
  30079. return _requestConfig.default.post('/wx/meetingRoom/roomTimeSoltDetail', data, {});
  30080. }
  30081. // 共享资源预约 新增
  30082. function meetingAppoint(data) {
  30083. return _requestConfig.default.post('/wx/meetingRoom/meetingAppoint', data, {});
  30084. }
  30085. // 共享资源预约时间段校验
  30086. function meetingAppointCheck(data) {
  30087. return _requestConfig.default.post('/wx/meetingRoom/meetingAppointCheck', data, {});
  30088. }
  30089. // 共享资源预约 历史
  30090. function getMeetingAppointListApp(data) {
  30091. return _requestConfig.default.post('/wx/meetingAppoint/getMeetingAppointListApp', data, {});
  30092. }
  30093. // 共享资源预约 编辑
  30094. function meetingAppointEdit(data) {
  30095. return _requestConfig.default.post('/wx/meetingAppoint/edit', data, {});
  30096. }
  30097. // 共享资源预约 详情
  30098. function meetingAppointDetail(e) {
  30099. return _requestConfig.default.post('/wx/meetingAppoint/meetingAppointDetail', e, {});
  30100. }
  30101. // // 共享资源预约 审核
  30102. function meetingAppointConfirmAudit(e) {
  30103. return _requestConfig.default.post('/wx/meetingAppoint/confirmAudit', e, {});
  30104. }
  30105. // 查询用户部门
  30106. function getUserDept(data) {
  30107. return _requestConfig.default.post('/wx/PubController/getUserDept', data, {});
  30108. }
  30109. // 新增企业预定
  30110. function parkRoomSlateAdd(e) {
  30111. return _requestConfig.default.post('/wx/ParkRoomSlateController/add', e, {});
  30112. }
  30113. // 我的预定
  30114. function parkRoomSlateList(e) {
  30115. return _requestConfig.default.post('/wx/ParkRoomSlateController/listAll', e, {});
  30116. }
  30117. // 删除房源预定
  30118. function parkRoomSlateRemove(e) {
  30119. return _requestConfig.default.post('/wx/ParkRoomSlateController/remove', e, {});
  30120. }
  30121. // 房源预定详情
  30122. function getParkRoomSlateInfoById(e) {
  30123. return _requestConfig.default.post('/wx/ParkRoomSlateController/getById', e, {});
  30124. }
  30125. // 编辑企业预定
  30126. function parkRoomSlateEdit(e) {
  30127. return _requestConfig.default.post('/wx/ParkRoomSlateController/edit', e, {});
  30128. }
  30129. // 添加至我的招商
  30130. function parkRoomSlateAddSale(e) {
  30131. return _requestConfig.default.post('/wx/ParkRoomSlateController/addSale', e, {});
  30132. }
  30133. // 新增物业通知
  30134. function propertyNoticeAdd(e) {
  30135. return _requestConfig.default.post('/wx/propertyNotice/add', e, {});
  30136. }
  30137. function propertyNoticeEdit(e) {
  30138. return _requestConfig.default.post('/wx/propertyNotice/edit', e, {});
  30139. }
  30140. // 我的消息列表
  30141. function getMyList(data) {
  30142. return _requestConfig.default.post('/wx/information/getMyList', data, {});
  30143. }
  30144. // 阅读我的消息
  30145. function updateInformation(data) {
  30146. return _requestConfig.default.post('/wx/information/updateInformation', data, {});
  30147. }
  30148. // 阅读我的消息2
  30149. function parkSystemMsgReadAdd(data) {
  30150. return _requestConfig.default.post('/wx/WxParkSystemMsgReadController/add', data, {});
  30151. }
  30152. // 服务评价
  30153. function parkServiceEvaluationAdd(data) {
  30154. return _requestConfig.default.post('/wx/parkServiceEvaluation/add', data, {});
  30155. }
  30156. // 合同详情
  30157. function getContractById(data) {
  30158. return _requestConfig.default.post('/wx/ParkContractManageController/getById', data, {});
  30159. }
  30160. // 企业列表
  30161. function getAllBaseCompany(data) {
  30162. return _requestConfig.default.post('/wx/company/getAllBaseCompanyPage', data, {});
  30163. }
  30164. // 用户列表
  30165. function findUserList(data) {
  30166. return _requestConfig.default.post('/wx/frameUser/page', data, {});
  30167. }
  30168. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  30169. /***/ }),
  30170. /***/ 63:
  30171. /*!**************************************!*\
  30172. !*** ./node_modules/qs/lib/index.js ***!
  30173. \**************************************/
  30174. /*! no static exports found */
  30175. /***/ (function(module, exports, __webpack_require__) {
  30176. "use strict";
  30177. var stringify = __webpack_require__(/*! ./stringify */ 64);
  30178. var parse = __webpack_require__(/*! ./parse */ 78);
  30179. var formats = __webpack_require__(/*! ./formats */ 77);
  30180. module.exports = {
  30181. formats: formats,
  30182. parse: parse,
  30183. stringify: stringify
  30184. };
  30185. /***/ }),
  30186. /***/ 64:
  30187. /*!******************************************!*\
  30188. !*** ./node_modules/qs/lib/stringify.js ***!
  30189. \******************************************/
  30190. /*! no static exports found */
  30191. /***/ (function(module, exports, __webpack_require__) {
  30192. "use strict";
  30193. var getSideChannel = __webpack_require__(/*! side-channel */ 65);
  30194. var utils = __webpack_require__(/*! ./utils */ 76);
  30195. var formats = __webpack_require__(/*! ./formats */ 77);
  30196. var has = Object.prototype.hasOwnProperty;
  30197. var arrayPrefixGenerators = {
  30198. brackets: function brackets(prefix) {
  30199. return prefix + '[]';
  30200. },
  30201. comma: 'comma',
  30202. indices: function indices(prefix, key) {
  30203. return prefix + '[' + key + ']';
  30204. },
  30205. repeat: function repeat(prefix) {
  30206. return prefix;
  30207. }
  30208. };
  30209. var isArray = Array.isArray;
  30210. var split = String.prototype.split;
  30211. var push = Array.prototype.push;
  30212. var pushToArray = function (arr, valueOrArray) {
  30213. push.apply(arr, isArray(valueOrArray) ? valueOrArray : [valueOrArray]);
  30214. };
  30215. var toISO = Date.prototype.toISOString;
  30216. var defaultFormat = formats['default'];
  30217. var defaults = {
  30218. addQueryPrefix: false,
  30219. allowDots: false,
  30220. charset: 'utf-8',
  30221. charsetSentinel: false,
  30222. delimiter: '&',
  30223. encode: true,
  30224. encoder: utils.encode,
  30225. encodeValuesOnly: false,
  30226. format: defaultFormat,
  30227. formatter: formats.formatters[defaultFormat],
  30228. // deprecated
  30229. indices: false,
  30230. serializeDate: function serializeDate(date) {
  30231. return toISO.call(date);
  30232. },
  30233. skipNulls: false,
  30234. strictNullHandling: false
  30235. };
  30236. var isNonNullishPrimitive = function isNonNullishPrimitive(v) {
  30237. return typeof v === 'string'
  30238. || typeof v === 'number'
  30239. || typeof v === 'boolean'
  30240. || typeof v === 'symbol'
  30241. || typeof v === 'bigint';
  30242. };
  30243. var sentinel = {};
  30244. var stringify = function stringify(
  30245. object,
  30246. prefix,
  30247. generateArrayPrefix,
  30248. commaRoundTrip,
  30249. strictNullHandling,
  30250. skipNulls,
  30251. encoder,
  30252. filter,
  30253. sort,
  30254. allowDots,
  30255. serializeDate,
  30256. format,
  30257. formatter,
  30258. encodeValuesOnly,
  30259. charset,
  30260. sideChannel
  30261. ) {
  30262. var obj = object;
  30263. var tmpSc = sideChannel;
  30264. var step = 0;
  30265. var findFlag = false;
  30266. while ((tmpSc = tmpSc.get(sentinel)) !== void undefined && !findFlag) {
  30267. // Where object last appeared in the ref tree
  30268. var pos = tmpSc.get(object);
  30269. step += 1;
  30270. if (typeof pos !== 'undefined') {
  30271. if (pos === step) {
  30272. throw new RangeError('Cyclic object value');
  30273. } else {
  30274. findFlag = true; // Break while
  30275. }
  30276. }
  30277. if (typeof tmpSc.get(sentinel) === 'undefined') {
  30278. step = 0;
  30279. }
  30280. }
  30281. if (typeof filter === 'function') {
  30282. obj = filter(prefix, obj);
  30283. } else if (obj instanceof Date) {
  30284. obj = serializeDate(obj);
  30285. } else if (generateArrayPrefix === 'comma' && isArray(obj)) {
  30286. obj = utils.maybeMap(obj, function (value) {
  30287. if (value instanceof Date) {
  30288. return serializeDate(value);
  30289. }
  30290. return value;
  30291. });
  30292. }
  30293. if (obj === null) {
  30294. if (strictNullHandling) {
  30295. return encoder && !encodeValuesOnly ? encoder(prefix, defaults.encoder, charset, 'key', format) : prefix;
  30296. }
  30297. obj = '';
  30298. }
  30299. if (isNonNullishPrimitive(obj) || utils.isBuffer(obj)) {
  30300. if (encoder) {
  30301. var keyValue = encodeValuesOnly ? prefix : encoder(prefix, defaults.encoder, charset, 'key', format);
  30302. if (generateArrayPrefix === 'comma' && encodeValuesOnly) {
  30303. var valuesArray = split.call(String(obj), ',');
  30304. var valuesJoined = '';
  30305. for (var i = 0; i < valuesArray.length; ++i) {
  30306. valuesJoined += (i === 0 ? '' : ',') + formatter(encoder(valuesArray[i], defaults.encoder, charset, 'value', format));
  30307. }
  30308. return [formatter(keyValue) + (commaRoundTrip && isArray(obj) && valuesArray.length === 1 ? '[]' : '') + '=' + valuesJoined];
  30309. }
  30310. return [formatter(keyValue) + '=' + formatter(encoder(obj, defaults.encoder, charset, 'value', format))];
  30311. }
  30312. return [formatter(prefix) + '=' + formatter(String(obj))];
  30313. }
  30314. var values = [];
  30315. if (typeof obj === 'undefined') {
  30316. return values;
  30317. }
  30318. var objKeys;
  30319. if (generateArrayPrefix === 'comma' && isArray(obj)) {
  30320. // we need to join elements in
  30321. objKeys = [{ value: obj.length > 0 ? obj.join(',') || null : void undefined }];
  30322. } else if (isArray(filter)) {
  30323. objKeys = filter;
  30324. } else {
  30325. var keys = Object.keys(obj);
  30326. objKeys = sort ? keys.sort(sort) : keys;
  30327. }
  30328. var adjustedPrefix = commaRoundTrip && isArray(obj) && obj.length === 1 ? prefix + '[]' : prefix;
  30329. for (var j = 0; j < objKeys.length; ++j) {
  30330. var key = objKeys[j];
  30331. var value = typeof key === 'object' && typeof key.value !== 'undefined' ? key.value : obj[key];
  30332. if (skipNulls && value === null) {
  30333. continue;
  30334. }
  30335. var keyPrefix = isArray(obj)
  30336. ? typeof generateArrayPrefix === 'function' ? generateArrayPrefix(adjustedPrefix, key) : adjustedPrefix
  30337. : adjustedPrefix + (allowDots ? '.' + key : '[' + key + ']');
  30338. sideChannel.set(object, step);
  30339. var valueSideChannel = getSideChannel();
  30340. valueSideChannel.set(sentinel, sideChannel);
  30341. pushToArray(values, stringify(
  30342. value,
  30343. keyPrefix,
  30344. generateArrayPrefix,
  30345. commaRoundTrip,
  30346. strictNullHandling,
  30347. skipNulls,
  30348. encoder,
  30349. filter,
  30350. sort,
  30351. allowDots,
  30352. serializeDate,
  30353. format,
  30354. formatter,
  30355. encodeValuesOnly,
  30356. charset,
  30357. valueSideChannel
  30358. ));
  30359. }
  30360. return values;
  30361. };
  30362. var normalizeStringifyOptions = function normalizeStringifyOptions(opts) {
  30363. if (!opts) {
  30364. return defaults;
  30365. }
  30366. if (opts.encoder !== null && typeof opts.encoder !== 'undefined' && typeof opts.encoder !== 'function') {
  30367. throw new TypeError('Encoder has to be a function.');
  30368. }
  30369. var charset = opts.charset || defaults.charset;
  30370. if (typeof opts.charset !== 'undefined' && opts.charset !== 'utf-8' && opts.charset !== 'iso-8859-1') {
  30371. throw new TypeError('The charset option must be either utf-8, iso-8859-1, or undefined');
  30372. }
  30373. var format = formats['default'];
  30374. if (typeof opts.format !== 'undefined') {
  30375. if (!has.call(formats.formatters, opts.format)) {
  30376. throw new TypeError('Unknown format option provided.');
  30377. }
  30378. format = opts.format;
  30379. }
  30380. var formatter = formats.formatters[format];
  30381. var filter = defaults.filter;
  30382. if (typeof opts.filter === 'function' || isArray(opts.filter)) {
  30383. filter = opts.filter;
  30384. }
  30385. return {
  30386. addQueryPrefix: typeof opts.addQueryPrefix === 'boolean' ? opts.addQueryPrefix : defaults.addQueryPrefix,
  30387. allowDots: typeof opts.allowDots === 'undefined' ? defaults.allowDots : !!opts.allowDots,
  30388. charset: charset,
  30389. charsetSentinel: typeof opts.charsetSentinel === 'boolean' ? opts.charsetSentinel : defaults.charsetSentinel,
  30390. delimiter: typeof opts.delimiter === 'undefined' ? defaults.delimiter : opts.delimiter,
  30391. encode: typeof opts.encode === 'boolean' ? opts.encode : defaults.encode,
  30392. encoder: typeof opts.encoder === 'function' ? opts.encoder : defaults.encoder,
  30393. encodeValuesOnly: typeof opts.encodeValuesOnly === 'boolean' ? opts.encodeValuesOnly : defaults.encodeValuesOnly,
  30394. filter: filter,
  30395. format: format,
  30396. formatter: formatter,
  30397. serializeDate: typeof opts.serializeDate === 'function' ? opts.serializeDate : defaults.serializeDate,
  30398. skipNulls: typeof opts.skipNulls === 'boolean' ? opts.skipNulls : defaults.skipNulls,
  30399. sort: typeof opts.sort === 'function' ? opts.sort : null,
  30400. strictNullHandling: typeof opts.strictNullHandling === 'boolean' ? opts.strictNullHandling : defaults.strictNullHandling
  30401. };
  30402. };
  30403. module.exports = function (object, opts) {
  30404. var obj = object;
  30405. var options = normalizeStringifyOptions(opts);
  30406. var objKeys;
  30407. var filter;
  30408. if (typeof options.filter === 'function') {
  30409. filter = options.filter;
  30410. obj = filter('', obj);
  30411. } else if (isArray(options.filter)) {
  30412. filter = options.filter;
  30413. objKeys = filter;
  30414. }
  30415. var keys = [];
  30416. if (typeof obj !== 'object' || obj === null) {
  30417. return '';
  30418. }
  30419. var arrayFormat;
  30420. if (opts && opts.arrayFormat in arrayPrefixGenerators) {
  30421. arrayFormat = opts.arrayFormat;
  30422. } else if (opts && 'indices' in opts) {
  30423. arrayFormat = opts.indices ? 'indices' : 'repeat';
  30424. } else {
  30425. arrayFormat = 'indices';
  30426. }
  30427. var generateArrayPrefix = arrayPrefixGenerators[arrayFormat];
  30428. if (opts && 'commaRoundTrip' in opts && typeof opts.commaRoundTrip !== 'boolean') {
  30429. throw new TypeError('`commaRoundTrip` must be a boolean, or absent');
  30430. }
  30431. var commaRoundTrip = generateArrayPrefix === 'comma' && opts && opts.commaRoundTrip;
  30432. if (!objKeys) {
  30433. objKeys = Object.keys(obj);
  30434. }
  30435. if (options.sort) {
  30436. objKeys.sort(options.sort);
  30437. }
  30438. var sideChannel = getSideChannel();
  30439. for (var i = 0; i < objKeys.length; ++i) {
  30440. var key = objKeys[i];
  30441. if (options.skipNulls && obj[key] === null) {
  30442. continue;
  30443. }
  30444. pushToArray(keys, stringify(
  30445. obj[key],
  30446. key,
  30447. generateArrayPrefix,
  30448. commaRoundTrip,
  30449. options.strictNullHandling,
  30450. options.skipNulls,
  30451. options.encode ? options.encoder : null,
  30452. options.filter,
  30453. options.sort,
  30454. options.allowDots,
  30455. options.serializeDate,
  30456. options.format,
  30457. options.formatter,
  30458. options.encodeValuesOnly,
  30459. options.charset,
  30460. sideChannel
  30461. ));
  30462. }
  30463. var joined = keys.join(options.delimiter);
  30464. var prefix = options.addQueryPrefix === true ? '?' : '';
  30465. if (options.charsetSentinel) {
  30466. if (options.charset === 'iso-8859-1') {
  30467. // encodeURIComponent('&#10003;'), the "numeric entity" representation of a checkmark
  30468. prefix += 'utf8=%26%2310003%3B&';
  30469. } else {
  30470. // encodeURIComponent('✓')
  30471. prefix += 'utf8=%E2%9C%93&';
  30472. }
  30473. }
  30474. return joined.length > 0 ? prefix + joined : '';
  30475. };
  30476. /***/ }),
  30477. /***/ 65:
  30478. /*!********************************************!*\
  30479. !*** ./node_modules/side-channel/index.js ***!
  30480. \********************************************/
  30481. /*! no static exports found */
  30482. /***/ (function(module, exports, __webpack_require__) {
  30483. "use strict";
  30484. var GetIntrinsic = __webpack_require__(/*! get-intrinsic */ 66);
  30485. var callBound = __webpack_require__(/*! call-bind/callBound */ 72);
  30486. var inspect = __webpack_require__(/*! object-inspect */ 74);
  30487. var $TypeError = GetIntrinsic('%TypeError%');
  30488. var $WeakMap = GetIntrinsic('%WeakMap%', true);
  30489. var $Map = GetIntrinsic('%Map%', true);
  30490. var $weakMapGet = callBound('WeakMap.prototype.get', true);
  30491. var $weakMapSet = callBound('WeakMap.prototype.set', true);
  30492. var $weakMapHas = callBound('WeakMap.prototype.has', true);
  30493. var $mapGet = callBound('Map.prototype.get', true);
  30494. var $mapSet = callBound('Map.prototype.set', true);
  30495. var $mapHas = callBound('Map.prototype.has', true);
  30496. /*
  30497. * This function traverses the list returning the node corresponding to the
  30498. * given key.
  30499. *
  30500. * That node is also moved to the head of the list, so that if it's accessed
  30501. * again we don't need to traverse the whole list. By doing so, all the recently
  30502. * used nodes can be accessed relatively quickly.
  30503. */
  30504. var listGetNode = function (list, key) { // eslint-disable-line consistent-return
  30505. for (var prev = list, curr; (curr = prev.next) !== null; prev = curr) {
  30506. if (curr.key === key) {
  30507. prev.next = curr.next;
  30508. curr.next = list.next;
  30509. list.next = curr; // eslint-disable-line no-param-reassign
  30510. return curr;
  30511. }
  30512. }
  30513. };
  30514. var listGet = function (objects, key) {
  30515. var node = listGetNode(objects, key);
  30516. return node && node.value;
  30517. };
  30518. var listSet = function (objects, key, value) {
  30519. var node = listGetNode(objects, key);
  30520. if (node) {
  30521. node.value = value;
  30522. } else {
  30523. // Prepend the new node to the beginning of the list
  30524. objects.next = { // eslint-disable-line no-param-reassign
  30525. key: key,
  30526. next: objects.next,
  30527. value: value
  30528. };
  30529. }
  30530. };
  30531. var listHas = function (objects, key) {
  30532. return !!listGetNode(objects, key);
  30533. };
  30534. module.exports = function getSideChannel() {
  30535. var $wm;
  30536. var $m;
  30537. var $o;
  30538. var channel = {
  30539. assert: function (key) {
  30540. if (!channel.has(key)) {
  30541. throw new $TypeError('Side channel does not contain ' + inspect(key));
  30542. }
  30543. },
  30544. get: function (key) { // eslint-disable-line consistent-return
  30545. if ($WeakMap && key && (typeof key === 'object' || typeof key === 'function')) {
  30546. if ($wm) {
  30547. return $weakMapGet($wm, key);
  30548. }
  30549. } else if ($Map) {
  30550. if ($m) {
  30551. return $mapGet($m, key);
  30552. }
  30553. } else {
  30554. if ($o) { // eslint-disable-line no-lonely-if
  30555. return listGet($o, key);
  30556. }
  30557. }
  30558. },
  30559. has: function (key) {
  30560. if ($WeakMap && key && (typeof key === 'object' || typeof key === 'function')) {
  30561. if ($wm) {
  30562. return $weakMapHas($wm, key);
  30563. }
  30564. } else if ($Map) {
  30565. if ($m) {
  30566. return $mapHas($m, key);
  30567. }
  30568. } else {
  30569. if ($o) { // eslint-disable-line no-lonely-if
  30570. return listHas($o, key);
  30571. }
  30572. }
  30573. return false;
  30574. },
  30575. set: function (key, value) {
  30576. if ($WeakMap && key && (typeof key === 'object' || typeof key === 'function')) {
  30577. if (!$wm) {
  30578. $wm = new $WeakMap();
  30579. }
  30580. $weakMapSet($wm, key, value);
  30581. } else if ($Map) {
  30582. if (!$m) {
  30583. $m = new $Map();
  30584. }
  30585. $mapSet($m, key, value);
  30586. } else {
  30587. if (!$o) {
  30588. /*
  30589. * Initialize the linked list as an empty node, so that we don't have
  30590. * to special-case handling of the first node: we can always refer to
  30591. * it as (previous node).next, instead of something like (list).head
  30592. */
  30593. $o = { key: {}, next: null };
  30594. }
  30595. listSet($o, key, value);
  30596. }
  30597. }
  30598. };
  30599. return channel;
  30600. };
  30601. /***/ }),
  30602. /***/ 66:
  30603. /*!*********************************************!*\
  30604. !*** ./node_modules/get-intrinsic/index.js ***!
  30605. \*********************************************/
  30606. /*! no static exports found */
  30607. /***/ (function(module, exports, __webpack_require__) {
  30608. "use strict";
  30609. var undefined;
  30610. var $SyntaxError = SyntaxError;
  30611. var $Function = Function;
  30612. var $TypeError = TypeError;
  30613. // eslint-disable-next-line consistent-return
  30614. var getEvalledConstructor = function (expressionSyntax) {
  30615. try {
  30616. return $Function('"use strict"; return (' + expressionSyntax + ').constructor;')();
  30617. } catch (e) {}
  30618. };
  30619. var $gOPD = Object.getOwnPropertyDescriptor;
  30620. if ($gOPD) {
  30621. try {
  30622. $gOPD({}, '');
  30623. } catch (e) {
  30624. $gOPD = null; // this is IE 8, which has a broken gOPD
  30625. }
  30626. }
  30627. var throwTypeError = function () {
  30628. throw new $TypeError();
  30629. };
  30630. var ThrowTypeError = $gOPD
  30631. ? (function () {
  30632. try {
  30633. // eslint-disable-next-line no-unused-expressions, no-caller, no-restricted-properties
  30634. arguments.callee; // IE 8 does not throw here
  30635. return throwTypeError;
  30636. } catch (calleeThrows) {
  30637. try {
  30638. // IE 8 throws on Object.getOwnPropertyDescriptor(arguments, '')
  30639. return $gOPD(arguments, 'callee').get;
  30640. } catch (gOPDthrows) {
  30641. return throwTypeError;
  30642. }
  30643. }
  30644. }())
  30645. : throwTypeError;
  30646. var hasSymbols = __webpack_require__(/*! has-symbols */ 67)();
  30647. var getProto = Object.getPrototypeOf || function (x) { return x.__proto__; }; // eslint-disable-line no-proto
  30648. var needsEval = {};
  30649. var TypedArray = typeof Uint8Array === 'undefined' ? undefined : getProto(Uint8Array);
  30650. var INTRINSICS = {
  30651. '%AggregateError%': typeof AggregateError === 'undefined' ? undefined : AggregateError,
  30652. '%Array%': Array,
  30653. '%ArrayBuffer%': typeof ArrayBuffer === 'undefined' ? undefined : ArrayBuffer,
  30654. '%ArrayIteratorPrototype%': hasSymbols ? getProto([][Symbol.iterator]()) : undefined,
  30655. '%AsyncFromSyncIteratorPrototype%': undefined,
  30656. '%AsyncFunction%': needsEval,
  30657. '%AsyncGenerator%': needsEval,
  30658. '%AsyncGeneratorFunction%': needsEval,
  30659. '%AsyncIteratorPrototype%': needsEval,
  30660. '%Atomics%': typeof Atomics === 'undefined' ? undefined : Atomics,
  30661. '%BigInt%': typeof BigInt === 'undefined' ? undefined : BigInt,
  30662. '%Boolean%': Boolean,
  30663. '%DataView%': typeof DataView === 'undefined' ? undefined : DataView,
  30664. '%Date%': Date,
  30665. '%decodeURI%': decodeURI,
  30666. '%decodeURIComponent%': decodeURIComponent,
  30667. '%encodeURI%': encodeURI,
  30668. '%encodeURIComponent%': encodeURIComponent,
  30669. '%Error%': Error,
  30670. '%eval%': eval, // eslint-disable-line no-eval
  30671. '%EvalError%': EvalError,
  30672. '%Float32Array%': typeof Float32Array === 'undefined' ? undefined : Float32Array,
  30673. '%Float64Array%': typeof Float64Array === 'undefined' ? undefined : Float64Array,
  30674. '%FinalizationRegistry%': typeof FinalizationRegistry === 'undefined' ? undefined : FinalizationRegistry,
  30675. '%Function%': $Function,
  30676. '%GeneratorFunction%': needsEval,
  30677. '%Int8Array%': typeof Int8Array === 'undefined' ? undefined : Int8Array,
  30678. '%Int16Array%': typeof Int16Array === 'undefined' ? undefined : Int16Array,
  30679. '%Int32Array%': typeof Int32Array === 'undefined' ? undefined : Int32Array,
  30680. '%isFinite%': isFinite,
  30681. '%isNaN%': isNaN,
  30682. '%IteratorPrototype%': hasSymbols ? getProto(getProto([][Symbol.iterator]())) : undefined,
  30683. '%JSON%': typeof JSON === 'object' ? JSON : undefined,
  30684. '%Map%': typeof Map === 'undefined' ? undefined : Map,
  30685. '%MapIteratorPrototype%': typeof Map === 'undefined' || !hasSymbols ? undefined : getProto(new Map()[Symbol.iterator]()),
  30686. '%Math%': Math,
  30687. '%Number%': Number,
  30688. '%Object%': Object,
  30689. '%parseFloat%': parseFloat,
  30690. '%parseInt%': parseInt,
  30691. '%Promise%': typeof Promise === 'undefined' ? undefined : Promise,
  30692. '%Proxy%': typeof Proxy === 'undefined' ? undefined : Proxy,
  30693. '%RangeError%': RangeError,
  30694. '%ReferenceError%': ReferenceError,
  30695. '%Reflect%': typeof Reflect === 'undefined' ? undefined : Reflect,
  30696. '%RegExp%': RegExp,
  30697. '%Set%': typeof Set === 'undefined' ? undefined : Set,
  30698. '%SetIteratorPrototype%': typeof Set === 'undefined' || !hasSymbols ? undefined : getProto(new Set()[Symbol.iterator]()),
  30699. '%SharedArrayBuffer%': typeof SharedArrayBuffer === 'undefined' ? undefined : SharedArrayBuffer,
  30700. '%String%': String,
  30701. '%StringIteratorPrototype%': hasSymbols ? getProto(''[Symbol.iterator]()) : undefined,
  30702. '%Symbol%': hasSymbols ? Symbol : undefined,
  30703. '%SyntaxError%': $SyntaxError,
  30704. '%ThrowTypeError%': ThrowTypeError,
  30705. '%TypedArray%': TypedArray,
  30706. '%TypeError%': $TypeError,
  30707. '%Uint8Array%': typeof Uint8Array === 'undefined' ? undefined : Uint8Array,
  30708. '%Uint8ClampedArray%': typeof Uint8ClampedArray === 'undefined' ? undefined : Uint8ClampedArray,
  30709. '%Uint16Array%': typeof Uint16Array === 'undefined' ? undefined : Uint16Array,
  30710. '%Uint32Array%': typeof Uint32Array === 'undefined' ? undefined : Uint32Array,
  30711. '%URIError%': URIError,
  30712. '%WeakMap%': typeof WeakMap === 'undefined' ? undefined : WeakMap,
  30713. '%WeakRef%': typeof WeakRef === 'undefined' ? undefined : WeakRef,
  30714. '%WeakSet%': typeof WeakSet === 'undefined' ? undefined : WeakSet
  30715. };
  30716. var doEval = function doEval(name) {
  30717. var value;
  30718. if (name === '%AsyncFunction%') {
  30719. value = getEvalledConstructor('async function () {}');
  30720. } else if (name === '%GeneratorFunction%') {
  30721. value = getEvalledConstructor('function* () {}');
  30722. } else if (name === '%AsyncGeneratorFunction%') {
  30723. value = getEvalledConstructor('async function* () {}');
  30724. } else if (name === '%AsyncGenerator%') {
  30725. var fn = doEval('%AsyncGeneratorFunction%');
  30726. if (fn) {
  30727. value = fn.prototype;
  30728. }
  30729. } else if (name === '%AsyncIteratorPrototype%') {
  30730. var gen = doEval('%AsyncGenerator%');
  30731. if (gen) {
  30732. value = getProto(gen.prototype);
  30733. }
  30734. }
  30735. INTRINSICS[name] = value;
  30736. return value;
  30737. };
  30738. var LEGACY_ALIASES = {
  30739. '%ArrayBufferPrototype%': ['ArrayBuffer', 'prototype'],
  30740. '%ArrayPrototype%': ['Array', 'prototype'],
  30741. '%ArrayProto_entries%': ['Array', 'prototype', 'entries'],
  30742. '%ArrayProto_forEach%': ['Array', 'prototype', 'forEach'],
  30743. '%ArrayProto_keys%': ['Array', 'prototype', 'keys'],
  30744. '%ArrayProto_values%': ['Array', 'prototype', 'values'],
  30745. '%AsyncFunctionPrototype%': ['AsyncFunction', 'prototype'],
  30746. '%AsyncGenerator%': ['AsyncGeneratorFunction', 'prototype'],
  30747. '%AsyncGeneratorPrototype%': ['AsyncGeneratorFunction', 'prototype', 'prototype'],
  30748. '%BooleanPrototype%': ['Boolean', 'prototype'],
  30749. '%DataViewPrototype%': ['DataView', 'prototype'],
  30750. '%DatePrototype%': ['Date', 'prototype'],
  30751. '%ErrorPrototype%': ['Error', 'prototype'],
  30752. '%EvalErrorPrototype%': ['EvalError', 'prototype'],
  30753. '%Float32ArrayPrototype%': ['Float32Array', 'prototype'],
  30754. '%Float64ArrayPrototype%': ['Float64Array', 'prototype'],
  30755. '%FunctionPrototype%': ['Function', 'prototype'],
  30756. '%Generator%': ['GeneratorFunction', 'prototype'],
  30757. '%GeneratorPrototype%': ['GeneratorFunction', 'prototype', 'prototype'],
  30758. '%Int8ArrayPrototype%': ['Int8Array', 'prototype'],
  30759. '%Int16ArrayPrototype%': ['Int16Array', 'prototype'],
  30760. '%Int32ArrayPrototype%': ['Int32Array', 'prototype'],
  30761. '%JSONParse%': ['JSON', 'parse'],
  30762. '%JSONStringify%': ['JSON', 'stringify'],
  30763. '%MapPrototype%': ['Map', 'prototype'],
  30764. '%NumberPrototype%': ['Number', 'prototype'],
  30765. '%ObjectPrototype%': ['Object', 'prototype'],
  30766. '%ObjProto_toString%': ['Object', 'prototype', 'toString'],
  30767. '%ObjProto_valueOf%': ['Object', 'prototype', 'valueOf'],
  30768. '%PromisePrototype%': ['Promise', 'prototype'],
  30769. '%PromiseProto_then%': ['Promise', 'prototype', 'then'],
  30770. '%Promise_all%': ['Promise', 'all'],
  30771. '%Promise_reject%': ['Promise', 'reject'],
  30772. '%Promise_resolve%': ['Promise', 'resolve'],
  30773. '%RangeErrorPrototype%': ['RangeError', 'prototype'],
  30774. '%ReferenceErrorPrototype%': ['ReferenceError', 'prototype'],
  30775. '%RegExpPrototype%': ['RegExp', 'prototype'],
  30776. '%SetPrototype%': ['Set', 'prototype'],
  30777. '%SharedArrayBufferPrototype%': ['SharedArrayBuffer', 'prototype'],
  30778. '%StringPrototype%': ['String', 'prototype'],
  30779. '%SymbolPrototype%': ['Symbol', 'prototype'],
  30780. '%SyntaxErrorPrototype%': ['SyntaxError', 'prototype'],
  30781. '%TypedArrayPrototype%': ['TypedArray', 'prototype'],
  30782. '%TypeErrorPrototype%': ['TypeError', 'prototype'],
  30783. '%Uint8ArrayPrototype%': ['Uint8Array', 'prototype'],
  30784. '%Uint8ClampedArrayPrototype%': ['Uint8ClampedArray', 'prototype'],
  30785. '%Uint16ArrayPrototype%': ['Uint16Array', 'prototype'],
  30786. '%Uint32ArrayPrototype%': ['Uint32Array', 'prototype'],
  30787. '%URIErrorPrototype%': ['URIError', 'prototype'],
  30788. '%WeakMapPrototype%': ['WeakMap', 'prototype'],
  30789. '%WeakSetPrototype%': ['WeakSet', 'prototype']
  30790. };
  30791. var bind = __webpack_require__(/*! function-bind */ 69);
  30792. var hasOwn = __webpack_require__(/*! has */ 71);
  30793. var $concat = bind.call(Function.call, Array.prototype.concat);
  30794. var $spliceApply = bind.call(Function.apply, Array.prototype.splice);
  30795. var $replace = bind.call(Function.call, String.prototype.replace);
  30796. var $strSlice = bind.call(Function.call, String.prototype.slice);
  30797. var $exec = bind.call(Function.call, RegExp.prototype.exec);
  30798. /* adapted from https://github.com/lodash/lodash/blob/4.17.15/dist/lodash.js#L6735-L6744 */
  30799. var rePropName = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g;
  30800. var reEscapeChar = /\\(\\)?/g; /** Used to match backslashes in property paths. */
  30801. var stringToPath = function stringToPath(string) {
  30802. var first = $strSlice(string, 0, 1);
  30803. var last = $strSlice(string, -1);
  30804. if (first === '%' && last !== '%') {
  30805. throw new $SyntaxError('invalid intrinsic syntax, expected closing `%`');
  30806. } else if (last === '%' && first !== '%') {
  30807. throw new $SyntaxError('invalid intrinsic syntax, expected opening `%`');
  30808. }
  30809. var result = [];
  30810. $replace(string, rePropName, function (match, number, quote, subString) {
  30811. result[result.length] = quote ? $replace(subString, reEscapeChar, '$1') : number || match;
  30812. });
  30813. return result;
  30814. };
  30815. /* end adaptation */
  30816. var getBaseIntrinsic = function getBaseIntrinsic(name, allowMissing) {
  30817. var intrinsicName = name;
  30818. var alias;
  30819. if (hasOwn(LEGACY_ALIASES, intrinsicName)) {
  30820. alias = LEGACY_ALIASES[intrinsicName];
  30821. intrinsicName = '%' + alias[0] + '%';
  30822. }
  30823. if (hasOwn(INTRINSICS, intrinsicName)) {
  30824. var value = INTRINSICS[intrinsicName];
  30825. if (value === needsEval) {
  30826. value = doEval(intrinsicName);
  30827. }
  30828. if (typeof value === 'undefined' && !allowMissing) {
  30829. throw new $TypeError('intrinsic ' + name + ' exists, but is not available. Please file an issue!');
  30830. }
  30831. return {
  30832. alias: alias,
  30833. name: intrinsicName,
  30834. value: value
  30835. };
  30836. }
  30837. throw new $SyntaxError('intrinsic ' + name + ' does not exist!');
  30838. };
  30839. module.exports = function GetIntrinsic(name, allowMissing) {
  30840. if (typeof name !== 'string' || name.length === 0) {
  30841. throw new $TypeError('intrinsic name must be a non-empty string');
  30842. }
  30843. if (arguments.length > 1 && typeof allowMissing !== 'boolean') {
  30844. throw new $TypeError('"allowMissing" argument must be a boolean');
  30845. }
  30846. if ($exec(/^%?[^%]*%?$/, name) === null) {
  30847. throw new $SyntaxError('`%` may not be present anywhere but at the beginning and end of the intrinsic name');
  30848. }
  30849. var parts = stringToPath(name);
  30850. var intrinsicBaseName = parts.length > 0 ? parts[0] : '';
  30851. var intrinsic = getBaseIntrinsic('%' + intrinsicBaseName + '%', allowMissing);
  30852. var intrinsicRealName = intrinsic.name;
  30853. var value = intrinsic.value;
  30854. var skipFurtherCaching = false;
  30855. var alias = intrinsic.alias;
  30856. if (alias) {
  30857. intrinsicBaseName = alias[0];
  30858. $spliceApply(parts, $concat([0, 1], alias));
  30859. }
  30860. for (var i = 1, isOwn = true; i < parts.length; i += 1) {
  30861. var part = parts[i];
  30862. var first = $strSlice(part, 0, 1);
  30863. var last = $strSlice(part, -1);
  30864. if (
  30865. (
  30866. (first === '"' || first === "'" || first === '`')
  30867. || (last === '"' || last === "'" || last === '`')
  30868. )
  30869. && first !== last
  30870. ) {
  30871. throw new $SyntaxError('property names with quotes must have matching quotes');
  30872. }
  30873. if (part === 'constructor' || !isOwn) {
  30874. skipFurtherCaching = true;
  30875. }
  30876. intrinsicBaseName += '.' + part;
  30877. intrinsicRealName = '%' + intrinsicBaseName + '%';
  30878. if (hasOwn(INTRINSICS, intrinsicRealName)) {
  30879. value = INTRINSICS[intrinsicRealName];
  30880. } else if (value != null) {
  30881. if (!(part in value)) {
  30882. if (!allowMissing) {
  30883. throw new $TypeError('base intrinsic for ' + name + ' exists, but the property is not available.');
  30884. }
  30885. return void undefined;
  30886. }
  30887. if ($gOPD && (i + 1) >= parts.length) {
  30888. var desc = $gOPD(value, part);
  30889. isOwn = !!desc;
  30890. // By convention, when a data property is converted to an accessor
  30891. // property to emulate a data property that does not suffer from
  30892. // the override mistake, that accessor's getter is marked with
  30893. // an `originalValue` property. Here, when we detect this, we
  30894. // uphold the illusion by pretending to see that original data
  30895. // property, i.e., returning the value rather than the getter
  30896. // itself.
  30897. if (isOwn && 'get' in desc && !('originalValue' in desc.get)) {
  30898. value = desc.get;
  30899. } else {
  30900. value = value[part];
  30901. }
  30902. } else {
  30903. isOwn = hasOwn(value, part);
  30904. value = value[part];
  30905. }
  30906. if (isOwn && !skipFurtherCaching) {
  30907. INTRINSICS[intrinsicRealName] = value;
  30908. }
  30909. }
  30910. }
  30911. return value;
  30912. };
  30913. /***/ }),
  30914. /***/ 67:
  30915. /*!*******************************************!*\
  30916. !*** ./node_modules/has-symbols/index.js ***!
  30917. \*******************************************/
  30918. /*! no static exports found */
  30919. /***/ (function(module, exports, __webpack_require__) {
  30920. "use strict";
  30921. var origSymbol = typeof Symbol !== 'undefined' && Symbol;
  30922. var hasSymbolSham = __webpack_require__(/*! ./shams */ 68);
  30923. module.exports = function hasNativeSymbols() {
  30924. if (typeof origSymbol !== 'function') { return false; }
  30925. if (typeof Symbol !== 'function') { return false; }
  30926. if (typeof origSymbol('foo') !== 'symbol') { return false; }
  30927. if (typeof Symbol('bar') !== 'symbol') { return false; }
  30928. return hasSymbolSham();
  30929. };
  30930. /***/ }),
  30931. /***/ 68:
  30932. /*!*******************************************!*\
  30933. !*** ./node_modules/has-symbols/shams.js ***!
  30934. \*******************************************/
  30935. /*! no static exports found */
  30936. /***/ (function(module, exports, __webpack_require__) {
  30937. "use strict";
  30938. /* eslint complexity: [2, 18], max-statements: [2, 33] */
  30939. module.exports = function hasSymbols() {
  30940. if (typeof Symbol !== 'function' || typeof Object.getOwnPropertySymbols !== 'function') { return false; }
  30941. if (typeof Symbol.iterator === 'symbol') { return true; }
  30942. var obj = {};
  30943. var sym = Symbol('test');
  30944. var symObj = Object(sym);
  30945. if (typeof sym === 'string') { return false; }
  30946. if (Object.prototype.toString.call(sym) !== '[object Symbol]') { return false; }
  30947. if (Object.prototype.toString.call(symObj) !== '[object Symbol]') { return false; }
  30948. // temp disabled per https://github.com/ljharb/object.assign/issues/17
  30949. // if (sym instanceof Symbol) { return false; }
  30950. // temp disabled per https://github.com/WebReflection/get-own-property-symbols/issues/4
  30951. // if (!(symObj instanceof Symbol)) { return false; }
  30952. // if (typeof Symbol.prototype.toString !== 'function') { return false; }
  30953. // if (String(sym) !== Symbol.prototype.toString.call(sym)) { return false; }
  30954. var symVal = 42;
  30955. obj[sym] = symVal;
  30956. for (sym in obj) { return false; } // eslint-disable-line no-restricted-syntax, no-unreachable-loop
  30957. if (typeof Object.keys === 'function' && Object.keys(obj).length !== 0) { return false; }
  30958. if (typeof Object.getOwnPropertyNames === 'function' && Object.getOwnPropertyNames(obj).length !== 0) { return false; }
  30959. var syms = Object.getOwnPropertySymbols(obj);
  30960. if (syms.length !== 1 || syms[0] !== sym) { return false; }
  30961. if (!Object.prototype.propertyIsEnumerable.call(obj, sym)) { return false; }
  30962. if (typeof Object.getOwnPropertyDescriptor === 'function') {
  30963. var descriptor = Object.getOwnPropertyDescriptor(obj, sym);
  30964. if (descriptor.value !== symVal || descriptor.enumerable !== true) { return false; }
  30965. }
  30966. return true;
  30967. };
  30968. /***/ }),
  30969. /***/ 69:
  30970. /*!*********************************************!*\
  30971. !*** ./node_modules/function-bind/index.js ***!
  30972. \*********************************************/
  30973. /*! no static exports found */
  30974. /***/ (function(module, exports, __webpack_require__) {
  30975. "use strict";
  30976. var implementation = __webpack_require__(/*! ./implementation */ 70);
  30977. module.exports = Function.prototype.bind || implementation;
  30978. /***/ }),
  30979. /***/ 7:
  30980. /*!*********************************************************************!*\
  30981. !*** ./node_modules/@babel/runtime/helpers/iterableToArrayLimit.js ***!
  30982. \*********************************************************************/
  30983. /*! no static exports found */
  30984. /***/ (function(module, exports) {
  30985. function _iterableToArrayLimit(r, l) {
  30986. var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
  30987. if (null != t) {
  30988. var e,
  30989. n,
  30990. i,
  30991. u,
  30992. a = [],
  30993. f = !0,
  30994. o = !1;
  30995. try {
  30996. if (i = (t = t.call(r)).next, 0 === l) {
  30997. if (Object(t) !== t) return;
  30998. f = !1;
  30999. } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0) {
  31000. ;
  31001. }
  31002. } catch (r) {
  31003. o = !0, n = r;
  31004. } finally {
  31005. try {
  31006. if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return;
  31007. } finally {
  31008. if (o) throw n;
  31009. }
  31010. }
  31011. return a;
  31012. }
  31013. }
  31014. module.exports = _iterableToArrayLimit, module.exports.__esModule = true, module.exports["default"] = module.exports;
  31015. /***/ }),
  31016. /***/ 70:
  31017. /*!******************************************************!*\
  31018. !*** ./node_modules/function-bind/implementation.js ***!
  31019. \******************************************************/
  31020. /*! no static exports found */
  31021. /***/ (function(module, exports, __webpack_require__) {
  31022. "use strict";
  31023. /* eslint no-invalid-this: 1 */
  31024. var ERROR_MESSAGE = 'Function.prototype.bind called on incompatible ';
  31025. var slice = Array.prototype.slice;
  31026. var toStr = Object.prototype.toString;
  31027. var funcType = '[object Function]';
  31028. module.exports = function bind(that) {
  31029. var target = this;
  31030. if (typeof target !== 'function' || toStr.call(target) !== funcType) {
  31031. throw new TypeError(ERROR_MESSAGE + target);
  31032. }
  31033. var args = slice.call(arguments, 1);
  31034. var bound;
  31035. var binder = function () {
  31036. if (this instanceof bound) {
  31037. var result = target.apply(
  31038. this,
  31039. args.concat(slice.call(arguments))
  31040. );
  31041. if (Object(result) === result) {
  31042. return result;
  31043. }
  31044. return this;
  31045. } else {
  31046. return target.apply(
  31047. that,
  31048. args.concat(slice.call(arguments))
  31049. );
  31050. }
  31051. };
  31052. var boundLength = Math.max(0, target.length - args.length);
  31053. var boundArgs = [];
  31054. for (var i = 0; i < boundLength; i++) {
  31055. boundArgs.push('$' + i);
  31056. }
  31057. bound = Function('binder', 'return function (' + boundArgs.join(',') + '){ return binder.apply(this,arguments); }')(binder);
  31058. if (target.prototype) {
  31059. var Empty = function Empty() {};
  31060. Empty.prototype = target.prototype;
  31061. bound.prototype = new Empty();
  31062. Empty.prototype = null;
  31063. }
  31064. return bound;
  31065. };
  31066. /***/ }),
  31067. /***/ 71:
  31068. /*!***************************************!*\
  31069. !*** ./node_modules/has/src/index.js ***!
  31070. \***************************************/
  31071. /*! no static exports found */
  31072. /***/ (function(module, exports, __webpack_require__) {
  31073. "use strict";
  31074. var bind = __webpack_require__(/*! function-bind */ 69);
  31075. module.exports = bind.call(Function.call, Object.prototype.hasOwnProperty);
  31076. /***/ }),
  31077. /***/ 72:
  31078. /*!*********************************************!*\
  31079. !*** ./node_modules/call-bind/callBound.js ***!
  31080. \*********************************************/
  31081. /*! no static exports found */
  31082. /***/ (function(module, exports, __webpack_require__) {
  31083. "use strict";
  31084. var GetIntrinsic = __webpack_require__(/*! get-intrinsic */ 66);
  31085. var callBind = __webpack_require__(/*! ./ */ 73);
  31086. var $indexOf = callBind(GetIntrinsic('String.prototype.indexOf'));
  31087. module.exports = function callBoundIntrinsic(name, allowMissing) {
  31088. var intrinsic = GetIntrinsic(name, !!allowMissing);
  31089. if (typeof intrinsic === 'function' && $indexOf(name, '.prototype.') > -1) {
  31090. return callBind(intrinsic);
  31091. }
  31092. return intrinsic;
  31093. };
  31094. /***/ }),
  31095. /***/ 73:
  31096. /*!*****************************************!*\
  31097. !*** ./node_modules/call-bind/index.js ***!
  31098. \*****************************************/
  31099. /*! no static exports found */
  31100. /***/ (function(module, exports, __webpack_require__) {
  31101. "use strict";
  31102. var bind = __webpack_require__(/*! function-bind */ 69);
  31103. var GetIntrinsic = __webpack_require__(/*! get-intrinsic */ 66);
  31104. var $apply = GetIntrinsic('%Function.prototype.apply%');
  31105. var $call = GetIntrinsic('%Function.prototype.call%');
  31106. var $reflectApply = GetIntrinsic('%Reflect.apply%', true) || bind.call($call, $apply);
  31107. var $gOPD = GetIntrinsic('%Object.getOwnPropertyDescriptor%', true);
  31108. var $defineProperty = GetIntrinsic('%Object.defineProperty%', true);
  31109. var $max = GetIntrinsic('%Math.max%');
  31110. if ($defineProperty) {
  31111. try {
  31112. $defineProperty({}, 'a', { value: 1 });
  31113. } catch (e) {
  31114. // IE 8 has a broken defineProperty
  31115. $defineProperty = null;
  31116. }
  31117. }
  31118. module.exports = function callBind(originalFunction) {
  31119. var func = $reflectApply(bind, $call, arguments);
  31120. if ($gOPD && $defineProperty) {
  31121. var desc = $gOPD(func, 'length');
  31122. if (desc.configurable) {
  31123. // original length, plus the receiver, minus any additional arguments (after the receiver)
  31124. $defineProperty(
  31125. func,
  31126. 'length',
  31127. { value: 1 + $max(0, originalFunction.length - (arguments.length - 1)) }
  31128. );
  31129. }
  31130. }
  31131. return func;
  31132. };
  31133. var applyBind = function applyBind() {
  31134. return $reflectApply(bind, $apply, arguments);
  31135. };
  31136. if ($defineProperty) {
  31137. $defineProperty(module.exports, 'apply', { value: applyBind });
  31138. } else {
  31139. module.exports.apply = applyBind;
  31140. }
  31141. /***/ }),
  31142. /***/ 74:
  31143. /*!**********************************************!*\
  31144. !*** ./node_modules/object-inspect/index.js ***!
  31145. \**********************************************/
  31146. /*! no static exports found */
  31147. /***/ (function(module, exports, __webpack_require__) {
  31148. var hasMap = typeof Map === 'function' && Map.prototype;
  31149. var mapSizeDescriptor = Object.getOwnPropertyDescriptor && hasMap ? Object.getOwnPropertyDescriptor(Map.prototype, 'size') : null;
  31150. var mapSize = hasMap && mapSizeDescriptor && typeof mapSizeDescriptor.get === 'function' ? mapSizeDescriptor.get : null;
  31151. var mapForEach = hasMap && Map.prototype.forEach;
  31152. var hasSet = typeof Set === 'function' && Set.prototype;
  31153. var setSizeDescriptor = Object.getOwnPropertyDescriptor && hasSet ? Object.getOwnPropertyDescriptor(Set.prototype, 'size') : null;
  31154. var setSize = hasSet && setSizeDescriptor && typeof setSizeDescriptor.get === 'function' ? setSizeDescriptor.get : null;
  31155. var setForEach = hasSet && Set.prototype.forEach;
  31156. var hasWeakMap = typeof WeakMap === 'function' && WeakMap.prototype;
  31157. var weakMapHas = hasWeakMap ? WeakMap.prototype.has : null;
  31158. var hasWeakSet = typeof WeakSet === 'function' && WeakSet.prototype;
  31159. var weakSetHas = hasWeakSet ? WeakSet.prototype.has : null;
  31160. var hasWeakRef = typeof WeakRef === 'function' && WeakRef.prototype;
  31161. var weakRefDeref = hasWeakRef ? WeakRef.prototype.deref : null;
  31162. var booleanValueOf = Boolean.prototype.valueOf;
  31163. var objectToString = Object.prototype.toString;
  31164. var functionToString = Function.prototype.toString;
  31165. var $match = String.prototype.match;
  31166. var $slice = String.prototype.slice;
  31167. var $replace = String.prototype.replace;
  31168. var $toUpperCase = String.prototype.toUpperCase;
  31169. var $toLowerCase = String.prototype.toLowerCase;
  31170. var $test = RegExp.prototype.test;
  31171. var $concat = Array.prototype.concat;
  31172. var $join = Array.prototype.join;
  31173. var $arrSlice = Array.prototype.slice;
  31174. var $floor = Math.floor;
  31175. var bigIntValueOf = typeof BigInt === 'function' ? BigInt.prototype.valueOf : null;
  31176. var gOPS = Object.getOwnPropertySymbols;
  31177. var symToString = typeof Symbol === 'function' && typeof Symbol.iterator === 'symbol' ? Symbol.prototype.toString : null;
  31178. var hasShammedSymbols = typeof Symbol === 'function' && typeof Symbol.iterator === 'object';
  31179. // ie, `has-tostringtag/shams
  31180. var toStringTag = typeof Symbol === 'function' && Symbol.toStringTag && (typeof Symbol.toStringTag === hasShammedSymbols ? 'object' : 'symbol')
  31181. ? Symbol.toStringTag
  31182. : null;
  31183. var isEnumerable = Object.prototype.propertyIsEnumerable;
  31184. var gPO = (typeof Reflect === 'function' ? Reflect.getPrototypeOf : Object.getPrototypeOf) || (
  31185. [].__proto__ === Array.prototype // eslint-disable-line no-proto
  31186. ? function (O) {
  31187. return O.__proto__; // eslint-disable-line no-proto
  31188. }
  31189. : null
  31190. );
  31191. function addNumericSeparator(num, str) {
  31192. if (
  31193. num === Infinity
  31194. || num === -Infinity
  31195. || num !== num
  31196. || (num && num > -1000 && num < 1000)
  31197. || $test.call(/e/, str)
  31198. ) {
  31199. return str;
  31200. }
  31201. var sepRegex = /[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;
  31202. if (typeof num === 'number') {
  31203. var int = num < 0 ? -$floor(-num) : $floor(num); // trunc(num)
  31204. if (int !== num) {
  31205. var intStr = String(int);
  31206. var dec = $slice.call(str, intStr.length + 1);
  31207. return $replace.call(intStr, sepRegex, '$&_') + '.' + $replace.call($replace.call(dec, /([0-9]{3})/g, '$&_'), /_$/, '');
  31208. }
  31209. }
  31210. return $replace.call(str, sepRegex, '$&_');
  31211. }
  31212. var utilInspect = __webpack_require__(/*! ./util.inspect */ 75);
  31213. var inspectCustom = utilInspect.custom;
  31214. var inspectSymbol = isSymbol(inspectCustom) ? inspectCustom : null;
  31215. module.exports = function inspect_(obj, options, depth, seen) {
  31216. var opts = options || {};
  31217. if (has(opts, 'quoteStyle') && (opts.quoteStyle !== 'single' && opts.quoteStyle !== 'double')) {
  31218. throw new TypeError('option "quoteStyle" must be "single" or "double"');
  31219. }
  31220. if (
  31221. has(opts, 'maxStringLength') && (typeof opts.maxStringLength === 'number'
  31222. ? opts.maxStringLength < 0 && opts.maxStringLength !== Infinity
  31223. : opts.maxStringLength !== null
  31224. )
  31225. ) {
  31226. throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');
  31227. }
  31228. var customInspect = has(opts, 'customInspect') ? opts.customInspect : true;
  31229. if (typeof customInspect !== 'boolean' && customInspect !== 'symbol') {
  31230. throw new TypeError('option "customInspect", if provided, must be `true`, `false`, or `\'symbol\'`');
  31231. }
  31232. if (
  31233. has(opts, 'indent')
  31234. && opts.indent !== null
  31235. && opts.indent !== '\t'
  31236. && !(parseInt(opts.indent, 10) === opts.indent && opts.indent > 0)
  31237. ) {
  31238. throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');
  31239. }
  31240. if (has(opts, 'numericSeparator') && typeof opts.numericSeparator !== 'boolean') {
  31241. throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');
  31242. }
  31243. var numericSeparator = opts.numericSeparator;
  31244. if (typeof obj === 'undefined') {
  31245. return 'undefined';
  31246. }
  31247. if (obj === null) {
  31248. return 'null';
  31249. }
  31250. if (typeof obj === 'boolean') {
  31251. return obj ? 'true' : 'false';
  31252. }
  31253. if (typeof obj === 'string') {
  31254. return inspectString(obj, opts);
  31255. }
  31256. if (typeof obj === 'number') {
  31257. if (obj === 0) {
  31258. return Infinity / obj > 0 ? '0' : '-0';
  31259. }
  31260. var str = String(obj);
  31261. return numericSeparator ? addNumericSeparator(obj, str) : str;
  31262. }
  31263. if (typeof obj === 'bigint') {
  31264. var bigIntStr = String(obj) + 'n';
  31265. return numericSeparator ? addNumericSeparator(obj, bigIntStr) : bigIntStr;
  31266. }
  31267. var maxDepth = typeof opts.depth === 'undefined' ? 5 : opts.depth;
  31268. if (typeof depth === 'undefined') { depth = 0; }
  31269. if (depth >= maxDepth && maxDepth > 0 && typeof obj === 'object') {
  31270. return isArray(obj) ? '[Array]' : '[Object]';
  31271. }
  31272. var indent = getIndent(opts, depth);
  31273. if (typeof seen === 'undefined') {
  31274. seen = [];
  31275. } else if (indexOf(seen, obj) >= 0) {
  31276. return '[Circular]';
  31277. }
  31278. function inspect(value, from, noIndent) {
  31279. if (from) {
  31280. seen = $arrSlice.call(seen);
  31281. seen.push(from);
  31282. }
  31283. if (noIndent) {
  31284. var newOpts = {
  31285. depth: opts.depth
  31286. };
  31287. if (has(opts, 'quoteStyle')) {
  31288. newOpts.quoteStyle = opts.quoteStyle;
  31289. }
  31290. return inspect_(value, newOpts, depth + 1, seen);
  31291. }
  31292. return inspect_(value, opts, depth + 1, seen);
  31293. }
  31294. if (typeof obj === 'function' && !isRegExp(obj)) { // in older engines, regexes are callable
  31295. var name = nameOf(obj);
  31296. var keys = arrObjKeys(obj, inspect);
  31297. return '[Function' + (name ? ': ' + name : ' (anonymous)') + ']' + (keys.length > 0 ? ' { ' + $join.call(keys, ', ') + ' }' : '');
  31298. }
  31299. if (isSymbol(obj)) {
  31300. var symString = hasShammedSymbols ? $replace.call(String(obj), /^(Symbol\(.*\))_[^)]*$/, '$1') : symToString.call(obj);
  31301. return typeof obj === 'object' && !hasShammedSymbols ? markBoxed(symString) : symString;
  31302. }
  31303. if (isElement(obj)) {
  31304. var s = '<' + $toLowerCase.call(String(obj.nodeName));
  31305. var attrs = obj.attributes || [];
  31306. for (var i = 0; i < attrs.length; i++) {
  31307. s += ' ' + attrs[i].name + '=' + wrapQuotes(quote(attrs[i].value), 'double', opts);
  31308. }
  31309. s += '>';
  31310. if (obj.childNodes && obj.childNodes.length) { s += '...'; }
  31311. s += '</' + $toLowerCase.call(String(obj.nodeName)) + '>';
  31312. return s;
  31313. }
  31314. if (isArray(obj)) {
  31315. if (obj.length === 0) { return '[]'; }
  31316. var xs = arrObjKeys(obj, inspect);
  31317. if (indent && !singleLineValues(xs)) {
  31318. return '[' + indentedJoin(xs, indent) + ']';
  31319. }
  31320. return '[ ' + $join.call(xs, ', ') + ' ]';
  31321. }
  31322. if (isError(obj)) {
  31323. var parts = arrObjKeys(obj, inspect);
  31324. if (!('cause' in Error.prototype) && 'cause' in obj && !isEnumerable.call(obj, 'cause')) {
  31325. return '{ [' + String(obj) + '] ' + $join.call($concat.call('[cause]: ' + inspect(obj.cause), parts), ', ') + ' }';
  31326. }
  31327. if (parts.length === 0) { return '[' + String(obj) + ']'; }
  31328. return '{ [' + String(obj) + '] ' + $join.call(parts, ', ') + ' }';
  31329. }
  31330. if (typeof obj === 'object' && customInspect) {
  31331. if (inspectSymbol && typeof obj[inspectSymbol] === 'function' && utilInspect) {
  31332. return utilInspect(obj, { depth: maxDepth - depth });
  31333. } else if (customInspect !== 'symbol' && typeof obj.inspect === 'function') {
  31334. return obj.inspect();
  31335. }
  31336. }
  31337. if (isMap(obj)) {
  31338. var mapParts = [];
  31339. mapForEach.call(obj, function (value, key) {
  31340. mapParts.push(inspect(key, obj, true) + ' => ' + inspect(value, obj));
  31341. });
  31342. return collectionOf('Map', mapSize.call(obj), mapParts, indent);
  31343. }
  31344. if (isSet(obj)) {
  31345. var setParts = [];
  31346. setForEach.call(obj, function (value) {
  31347. setParts.push(inspect(value, obj));
  31348. });
  31349. return collectionOf('Set', setSize.call(obj), setParts, indent);
  31350. }
  31351. if (isWeakMap(obj)) {
  31352. return weakCollectionOf('WeakMap');
  31353. }
  31354. if (isWeakSet(obj)) {
  31355. return weakCollectionOf('WeakSet');
  31356. }
  31357. if (isWeakRef(obj)) {
  31358. return weakCollectionOf('WeakRef');
  31359. }
  31360. if (isNumber(obj)) {
  31361. return markBoxed(inspect(Number(obj)));
  31362. }
  31363. if (isBigInt(obj)) {
  31364. return markBoxed(inspect(bigIntValueOf.call(obj)));
  31365. }
  31366. if (isBoolean(obj)) {
  31367. return markBoxed(booleanValueOf.call(obj));
  31368. }
  31369. if (isString(obj)) {
  31370. return markBoxed(inspect(String(obj)));
  31371. }
  31372. if (!isDate(obj) && !isRegExp(obj)) {
  31373. var ys = arrObjKeys(obj, inspect);
  31374. var isPlainObject = gPO ? gPO(obj) === Object.prototype : obj instanceof Object || obj.constructor === Object;
  31375. var protoTag = obj instanceof Object ? '' : 'null prototype';
  31376. var stringTag = !isPlainObject && toStringTag && Object(obj) === obj && toStringTag in obj ? $slice.call(toStr(obj), 8, -1) : protoTag ? 'Object' : '';
  31377. var constructorTag = isPlainObject || typeof obj.constructor !== 'function' ? '' : obj.constructor.name ? obj.constructor.name + ' ' : '';
  31378. var tag = constructorTag + (stringTag || protoTag ? '[' + $join.call($concat.call([], stringTag || [], protoTag || []), ': ') + '] ' : '');
  31379. if (ys.length === 0) { return tag + '{}'; }
  31380. if (indent) {
  31381. return tag + '{' + indentedJoin(ys, indent) + '}';
  31382. }
  31383. return tag + '{ ' + $join.call(ys, ', ') + ' }';
  31384. }
  31385. return String(obj);
  31386. };
  31387. function wrapQuotes(s, defaultStyle, opts) {
  31388. var quoteChar = (opts.quoteStyle || defaultStyle) === 'double' ? '"' : "'";
  31389. return quoteChar + s + quoteChar;
  31390. }
  31391. function quote(s) {
  31392. return $replace.call(String(s), /"/g, '&quot;');
  31393. }
  31394. function isArray(obj) { return toStr(obj) === '[object Array]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); }
  31395. function isDate(obj) { return toStr(obj) === '[object Date]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); }
  31396. function isRegExp(obj) { return toStr(obj) === '[object RegExp]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); }
  31397. function isError(obj) { return toStr(obj) === '[object Error]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); }
  31398. function isString(obj) { return toStr(obj) === '[object String]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); }
  31399. function isNumber(obj) { return toStr(obj) === '[object Number]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); }
  31400. function isBoolean(obj) { return toStr(obj) === '[object Boolean]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); }
  31401. // Symbol and BigInt do have Symbol.toStringTag by spec, so that can't be used to eliminate false positives
  31402. function isSymbol(obj) {
  31403. if (hasShammedSymbols) {
  31404. return obj && typeof obj === 'object' && obj instanceof Symbol;
  31405. }
  31406. if (typeof obj === 'symbol') {
  31407. return true;
  31408. }
  31409. if (!obj || typeof obj !== 'object' || !symToString) {
  31410. return false;
  31411. }
  31412. try {
  31413. symToString.call(obj);
  31414. return true;
  31415. } catch (e) {}
  31416. return false;
  31417. }
  31418. function isBigInt(obj) {
  31419. if (!obj || typeof obj !== 'object' || !bigIntValueOf) {
  31420. return false;
  31421. }
  31422. try {
  31423. bigIntValueOf.call(obj);
  31424. return true;
  31425. } catch (e) {}
  31426. return false;
  31427. }
  31428. var hasOwn = Object.prototype.hasOwnProperty || function (key) { return key in this; };
  31429. function has(obj, key) {
  31430. return hasOwn.call(obj, key);
  31431. }
  31432. function toStr(obj) {
  31433. return objectToString.call(obj);
  31434. }
  31435. function nameOf(f) {
  31436. if (f.name) { return f.name; }
  31437. var m = $match.call(functionToString.call(f), /^function\s*([\w$]+)/);
  31438. if (m) { return m[1]; }
  31439. return null;
  31440. }
  31441. function indexOf(xs, x) {
  31442. if (xs.indexOf) { return xs.indexOf(x); }
  31443. for (var i = 0, l = xs.length; i < l; i++) {
  31444. if (xs[i] === x) { return i; }
  31445. }
  31446. return -1;
  31447. }
  31448. function isMap(x) {
  31449. if (!mapSize || !x || typeof x !== 'object') {
  31450. return false;
  31451. }
  31452. try {
  31453. mapSize.call(x);
  31454. try {
  31455. setSize.call(x);
  31456. } catch (s) {
  31457. return true;
  31458. }
  31459. return x instanceof Map; // core-js workaround, pre-v2.5.0
  31460. } catch (e) {}
  31461. return false;
  31462. }
  31463. function isWeakMap(x) {
  31464. if (!weakMapHas || !x || typeof x !== 'object') {
  31465. return false;
  31466. }
  31467. try {
  31468. weakMapHas.call(x, weakMapHas);
  31469. try {
  31470. weakSetHas.call(x, weakSetHas);
  31471. } catch (s) {
  31472. return true;
  31473. }
  31474. return x instanceof WeakMap; // core-js workaround, pre-v2.5.0
  31475. } catch (e) {}
  31476. return false;
  31477. }
  31478. function isWeakRef(x) {
  31479. if (!weakRefDeref || !x || typeof x !== 'object') {
  31480. return false;
  31481. }
  31482. try {
  31483. weakRefDeref.call(x);
  31484. return true;
  31485. } catch (e) {}
  31486. return false;
  31487. }
  31488. function isSet(x) {
  31489. if (!setSize || !x || typeof x !== 'object') {
  31490. return false;
  31491. }
  31492. try {
  31493. setSize.call(x);
  31494. try {
  31495. mapSize.call(x);
  31496. } catch (m) {
  31497. return true;
  31498. }
  31499. return x instanceof Set; // core-js workaround, pre-v2.5.0
  31500. } catch (e) {}
  31501. return false;
  31502. }
  31503. function isWeakSet(x) {
  31504. if (!weakSetHas || !x || typeof x !== 'object') {
  31505. return false;
  31506. }
  31507. try {
  31508. weakSetHas.call(x, weakSetHas);
  31509. try {
  31510. weakMapHas.call(x, weakMapHas);
  31511. } catch (s) {
  31512. return true;
  31513. }
  31514. return x instanceof WeakSet; // core-js workaround, pre-v2.5.0
  31515. } catch (e) {}
  31516. return false;
  31517. }
  31518. function isElement(x) {
  31519. if (!x || typeof x !== 'object') { return false; }
  31520. if (typeof HTMLElement !== 'undefined' && x instanceof HTMLElement) {
  31521. return true;
  31522. }
  31523. return typeof x.nodeName === 'string' && typeof x.getAttribute === 'function';
  31524. }
  31525. function inspectString(str, opts) {
  31526. if (str.length > opts.maxStringLength) {
  31527. var remaining = str.length - opts.maxStringLength;
  31528. var trailer = '... ' + remaining + ' more character' + (remaining > 1 ? 's' : '');
  31529. return inspectString($slice.call(str, 0, opts.maxStringLength), opts) + trailer;
  31530. }
  31531. // eslint-disable-next-line no-control-regex
  31532. var s = $replace.call($replace.call(str, /(['\\])/g, '\\$1'), /[\x00-\x1f]/g, lowbyte);
  31533. return wrapQuotes(s, 'single', opts);
  31534. }
  31535. function lowbyte(c) {
  31536. var n = c.charCodeAt(0);
  31537. var x = {
  31538. 8: 'b',
  31539. 9: 't',
  31540. 10: 'n',
  31541. 12: 'f',
  31542. 13: 'r'
  31543. }[n];
  31544. if (x) { return '\\' + x; }
  31545. return '\\x' + (n < 0x10 ? '0' : '') + $toUpperCase.call(n.toString(16));
  31546. }
  31547. function markBoxed(str) {
  31548. return 'Object(' + str + ')';
  31549. }
  31550. function weakCollectionOf(type) {
  31551. return type + ' { ? }';
  31552. }
  31553. function collectionOf(type, size, entries, indent) {
  31554. var joinedEntries = indent ? indentedJoin(entries, indent) : $join.call(entries, ', ');
  31555. return type + ' (' + size + ') {' + joinedEntries + '}';
  31556. }
  31557. function singleLineValues(xs) {
  31558. for (var i = 0; i < xs.length; i++) {
  31559. if (indexOf(xs[i], '\n') >= 0) {
  31560. return false;
  31561. }
  31562. }
  31563. return true;
  31564. }
  31565. function getIndent(opts, depth) {
  31566. var baseIndent;
  31567. if (opts.indent === '\t') {
  31568. baseIndent = '\t';
  31569. } else if (typeof opts.indent === 'number' && opts.indent > 0) {
  31570. baseIndent = $join.call(Array(opts.indent + 1), ' ');
  31571. } else {
  31572. return null;
  31573. }
  31574. return {
  31575. base: baseIndent,
  31576. prev: $join.call(Array(depth + 1), baseIndent)
  31577. };
  31578. }
  31579. function indentedJoin(xs, indent) {
  31580. if (xs.length === 0) { return ''; }
  31581. var lineJoiner = '\n' + indent.prev + indent.base;
  31582. return lineJoiner + $join.call(xs, ',' + lineJoiner) + '\n' + indent.prev;
  31583. }
  31584. function arrObjKeys(obj, inspect) {
  31585. var isArr = isArray(obj);
  31586. var xs = [];
  31587. if (isArr) {
  31588. xs.length = obj.length;
  31589. for (var i = 0; i < obj.length; i++) {
  31590. xs[i] = has(obj, i) ? inspect(obj[i], obj) : '';
  31591. }
  31592. }
  31593. var syms = typeof gOPS === 'function' ? gOPS(obj) : [];
  31594. var symMap;
  31595. if (hasShammedSymbols) {
  31596. symMap = {};
  31597. for (var k = 0; k < syms.length; k++) {
  31598. symMap['$' + syms[k]] = syms[k];
  31599. }
  31600. }
  31601. for (var key in obj) { // eslint-disable-line no-restricted-syntax
  31602. if (!has(obj, key)) { continue; } // eslint-disable-line no-restricted-syntax, no-continue
  31603. if (isArr && String(Number(key)) === key && key < obj.length) { continue; } // eslint-disable-line no-restricted-syntax, no-continue
  31604. if (hasShammedSymbols && symMap['$' + key] instanceof Symbol) {
  31605. // this is to prevent shammed Symbols, which are stored as strings, from being included in the string key section
  31606. continue; // eslint-disable-line no-restricted-syntax, no-continue
  31607. } else if ($test.call(/[^\w$]/, key)) {
  31608. xs.push(inspect(key, obj) + ': ' + inspect(obj[key], obj));
  31609. } else {
  31610. xs.push(key + ': ' + inspect(obj[key], obj));
  31611. }
  31612. }
  31613. if (typeof gOPS === 'function') {
  31614. for (var j = 0; j < syms.length; j++) {
  31615. if (isEnumerable.call(obj, syms[j])) {
  31616. xs.push('[' + inspect(syms[j]) + ']: ' + inspect(obj[syms[j]], obj));
  31617. }
  31618. }
  31619. }
  31620. return xs;
  31621. }
  31622. /***/ }),
  31623. /***/ 75:
  31624. /*!********************************!*\
  31625. !*** ./util.inspect (ignored) ***!
  31626. \********************************/
  31627. /*! no static exports found */
  31628. /***/ (function(module, exports) {
  31629. /* (ignored) */
  31630. /***/ }),
  31631. /***/ 76:
  31632. /*!**************************************!*\
  31633. !*** ./node_modules/qs/lib/utils.js ***!
  31634. \**************************************/
  31635. /*! no static exports found */
  31636. /***/ (function(module, exports, __webpack_require__) {
  31637. "use strict";
  31638. var formats = __webpack_require__(/*! ./formats */ 77);
  31639. var has = Object.prototype.hasOwnProperty;
  31640. var isArray = Array.isArray;
  31641. var hexTable = (function () {
  31642. var array = [];
  31643. for (var i = 0; i < 256; ++i) {
  31644. array.push('%' + ((i < 16 ? '0' : '') + i.toString(16)).toUpperCase());
  31645. }
  31646. return array;
  31647. }());
  31648. var compactQueue = function compactQueue(queue) {
  31649. while (queue.length > 1) {
  31650. var item = queue.pop();
  31651. var obj = item.obj[item.prop];
  31652. if (isArray(obj)) {
  31653. var compacted = [];
  31654. for (var j = 0; j < obj.length; ++j) {
  31655. if (typeof obj[j] !== 'undefined') {
  31656. compacted.push(obj[j]);
  31657. }
  31658. }
  31659. item.obj[item.prop] = compacted;
  31660. }
  31661. }
  31662. };
  31663. var arrayToObject = function arrayToObject(source, options) {
  31664. var obj = options && options.plainObjects ? Object.create(null) : {};
  31665. for (var i = 0; i < source.length; ++i) {
  31666. if (typeof source[i] !== 'undefined') {
  31667. obj[i] = source[i];
  31668. }
  31669. }
  31670. return obj;
  31671. };
  31672. var merge = function merge(target, source, options) {
  31673. /* eslint no-param-reassign: 0 */
  31674. if (!source) {
  31675. return target;
  31676. }
  31677. if (typeof source !== 'object') {
  31678. if (isArray(target)) {
  31679. target.push(source);
  31680. } else if (target && typeof target === 'object') {
  31681. if ((options && (options.plainObjects || options.allowPrototypes)) || !has.call(Object.prototype, source)) {
  31682. target[source] = true;
  31683. }
  31684. } else {
  31685. return [target, source];
  31686. }
  31687. return target;
  31688. }
  31689. if (!target || typeof target !== 'object') {
  31690. return [target].concat(source);
  31691. }
  31692. var mergeTarget = target;
  31693. if (isArray(target) && !isArray(source)) {
  31694. mergeTarget = arrayToObject(target, options);
  31695. }
  31696. if (isArray(target) && isArray(source)) {
  31697. source.forEach(function (item, i) {
  31698. if (has.call(target, i)) {
  31699. var targetItem = target[i];
  31700. if (targetItem && typeof targetItem === 'object' && item && typeof item === 'object') {
  31701. target[i] = merge(targetItem, item, options);
  31702. } else {
  31703. target.push(item);
  31704. }
  31705. } else {
  31706. target[i] = item;
  31707. }
  31708. });
  31709. return target;
  31710. }
  31711. return Object.keys(source).reduce(function (acc, key) {
  31712. var value = source[key];
  31713. if (has.call(acc, key)) {
  31714. acc[key] = merge(acc[key], value, options);
  31715. } else {
  31716. acc[key] = value;
  31717. }
  31718. return acc;
  31719. }, mergeTarget);
  31720. };
  31721. var assign = function assignSingleSource(target, source) {
  31722. return Object.keys(source).reduce(function (acc, key) {
  31723. acc[key] = source[key];
  31724. return acc;
  31725. }, target);
  31726. };
  31727. var decode = function (str, decoder, charset) {
  31728. var strWithoutPlus = str.replace(/\+/g, ' ');
  31729. if (charset === 'iso-8859-1') {
  31730. // unescape never throws, no try...catch needed:
  31731. return strWithoutPlus.replace(/%[0-9a-f]{2}/gi, unescape);
  31732. }
  31733. // utf-8
  31734. try {
  31735. return decodeURIComponent(strWithoutPlus);
  31736. } catch (e) {
  31737. return strWithoutPlus;
  31738. }
  31739. };
  31740. var encode = function encode(str, defaultEncoder, charset, kind, format) {
  31741. // This code was originally written by Brian White (mscdex) for the io.js core querystring library.
  31742. // It has been adapted here for stricter adherence to RFC 3986
  31743. if (str.length === 0) {
  31744. return str;
  31745. }
  31746. var string = str;
  31747. if (typeof str === 'symbol') {
  31748. string = Symbol.prototype.toString.call(str);
  31749. } else if (typeof str !== 'string') {
  31750. string = String(str);
  31751. }
  31752. if (charset === 'iso-8859-1') {
  31753. return escape(string).replace(/%u[0-9a-f]{4}/gi, function ($0) {
  31754. return '%26%23' + parseInt($0.slice(2), 16) + '%3B';
  31755. });
  31756. }
  31757. var out = '';
  31758. for (var i = 0; i < string.length; ++i) {
  31759. var c = string.charCodeAt(i);
  31760. if (
  31761. c === 0x2D // -
  31762. || c === 0x2E // .
  31763. || c === 0x5F // _
  31764. || c === 0x7E // ~
  31765. || (c >= 0x30 && c <= 0x39) // 0-9
  31766. || (c >= 0x41 && c <= 0x5A) // a-z
  31767. || (c >= 0x61 && c <= 0x7A) // A-Z
  31768. || (format === formats.RFC1738 && (c === 0x28 || c === 0x29)) // ( )
  31769. ) {
  31770. out += string.charAt(i);
  31771. continue;
  31772. }
  31773. if (c < 0x80) {
  31774. out = out + hexTable[c];
  31775. continue;
  31776. }
  31777. if (c < 0x800) {
  31778. out = out + (hexTable[0xC0 | (c >> 6)] + hexTable[0x80 | (c & 0x3F)]);
  31779. continue;
  31780. }
  31781. if (c < 0xD800 || c >= 0xE000) {
  31782. out = out + (hexTable[0xE0 | (c >> 12)] + hexTable[0x80 | ((c >> 6) & 0x3F)] + hexTable[0x80 | (c & 0x3F)]);
  31783. continue;
  31784. }
  31785. i += 1;
  31786. c = 0x10000 + (((c & 0x3FF) << 10) | (string.charCodeAt(i) & 0x3FF));
  31787. /* eslint operator-linebreak: [2, "before"] */
  31788. out += hexTable[0xF0 | (c >> 18)]
  31789. + hexTable[0x80 | ((c >> 12) & 0x3F)]
  31790. + hexTable[0x80 | ((c >> 6) & 0x3F)]
  31791. + hexTable[0x80 | (c & 0x3F)];
  31792. }
  31793. return out;
  31794. };
  31795. var compact = function compact(value) {
  31796. var queue = [{ obj: { o: value }, prop: 'o' }];
  31797. var refs = [];
  31798. for (var i = 0; i < queue.length; ++i) {
  31799. var item = queue[i];
  31800. var obj = item.obj[item.prop];
  31801. var keys = Object.keys(obj);
  31802. for (var j = 0; j < keys.length; ++j) {
  31803. var key = keys[j];
  31804. var val = obj[key];
  31805. if (typeof val === 'object' && val !== null && refs.indexOf(val) === -1) {
  31806. queue.push({ obj: obj, prop: key });
  31807. refs.push(val);
  31808. }
  31809. }
  31810. }
  31811. compactQueue(queue);
  31812. return value;
  31813. };
  31814. var isRegExp = function isRegExp(obj) {
  31815. return Object.prototype.toString.call(obj) === '[object RegExp]';
  31816. };
  31817. var isBuffer = function isBuffer(obj) {
  31818. if (!obj || typeof obj !== 'object') {
  31819. return false;
  31820. }
  31821. return !!(obj.constructor && obj.constructor.isBuffer && obj.constructor.isBuffer(obj));
  31822. };
  31823. var combine = function combine(a, b) {
  31824. return [].concat(a, b);
  31825. };
  31826. var maybeMap = function maybeMap(val, fn) {
  31827. if (isArray(val)) {
  31828. var mapped = [];
  31829. for (var i = 0; i < val.length; i += 1) {
  31830. mapped.push(fn(val[i]));
  31831. }
  31832. return mapped;
  31833. }
  31834. return fn(val);
  31835. };
  31836. module.exports = {
  31837. arrayToObject: arrayToObject,
  31838. assign: assign,
  31839. combine: combine,
  31840. compact: compact,
  31841. decode: decode,
  31842. encode: encode,
  31843. isBuffer: isBuffer,
  31844. isRegExp: isRegExp,
  31845. maybeMap: maybeMap,
  31846. merge: merge
  31847. };
  31848. /***/ }),
  31849. /***/ 77:
  31850. /*!****************************************!*\
  31851. !*** ./node_modules/qs/lib/formats.js ***!
  31852. \****************************************/
  31853. /*! no static exports found */
  31854. /***/ (function(module, exports, __webpack_require__) {
  31855. "use strict";
  31856. var replace = String.prototype.replace;
  31857. var percentTwenties = /%20/g;
  31858. var Format = {
  31859. RFC1738: 'RFC1738',
  31860. RFC3986: 'RFC3986'
  31861. };
  31862. module.exports = {
  31863. 'default': Format.RFC3986,
  31864. formatters: {
  31865. RFC1738: function (value) {
  31866. return replace.call(value, percentTwenties, '+');
  31867. },
  31868. RFC3986: function (value) {
  31869. return String(value);
  31870. }
  31871. },
  31872. RFC1738: Format.RFC1738,
  31873. RFC3986: Format.RFC3986
  31874. };
  31875. /***/ }),
  31876. /***/ 78:
  31877. /*!**************************************!*\
  31878. !*** ./node_modules/qs/lib/parse.js ***!
  31879. \**************************************/
  31880. /*! no static exports found */
  31881. /***/ (function(module, exports, __webpack_require__) {
  31882. "use strict";
  31883. var utils = __webpack_require__(/*! ./utils */ 76);
  31884. var has = Object.prototype.hasOwnProperty;
  31885. var isArray = Array.isArray;
  31886. var defaults = {
  31887. allowDots: false,
  31888. allowPrototypes: false,
  31889. allowSparse: false,
  31890. arrayLimit: 20,
  31891. charset: 'utf-8',
  31892. charsetSentinel: false,
  31893. comma: false,
  31894. decoder: utils.decode,
  31895. delimiter: '&',
  31896. depth: 5,
  31897. ignoreQueryPrefix: false,
  31898. interpretNumericEntities: false,
  31899. parameterLimit: 1000,
  31900. parseArrays: true,
  31901. plainObjects: false,
  31902. strictNullHandling: false
  31903. };
  31904. var interpretNumericEntities = function (str) {
  31905. return str.replace(/&#(\d+);/g, function ($0, numberStr) {
  31906. return String.fromCharCode(parseInt(numberStr, 10));
  31907. });
  31908. };
  31909. var parseArrayValue = function (val, options) {
  31910. if (val && typeof val === 'string' && options.comma && val.indexOf(',') > -1) {
  31911. return val.split(',');
  31912. }
  31913. return val;
  31914. };
  31915. // This is what browsers will submit when the ✓ character occurs in an
  31916. // application/x-www-form-urlencoded body and the encoding of the page containing
  31917. // the form is iso-8859-1, or when the submitted form has an accept-charset
  31918. // attribute of iso-8859-1. Presumably also with other charsets that do not contain
  31919. // the ✓ character, such as us-ascii.
  31920. var isoSentinel = 'utf8=%26%2310003%3B'; // encodeURIComponent('&#10003;')
  31921. // These are the percent-encoded utf-8 octets representing a checkmark, indicating that the request actually is utf-8 encoded.
  31922. var charsetSentinel = 'utf8=%E2%9C%93'; // encodeURIComponent('✓')
  31923. var parseValues = function parseQueryStringValues(str, options) {
  31924. var obj = {};
  31925. var cleanStr = options.ignoreQueryPrefix ? str.replace(/^\?/, '') : str;
  31926. var limit = options.parameterLimit === Infinity ? undefined : options.parameterLimit;
  31927. var parts = cleanStr.split(options.delimiter, limit);
  31928. var skipIndex = -1; // Keep track of where the utf8 sentinel was found
  31929. var i;
  31930. var charset = options.charset;
  31931. if (options.charsetSentinel) {
  31932. for (i = 0; i < parts.length; ++i) {
  31933. if (parts[i].indexOf('utf8=') === 0) {
  31934. if (parts[i] === charsetSentinel) {
  31935. charset = 'utf-8';
  31936. } else if (parts[i] === isoSentinel) {
  31937. charset = 'iso-8859-1';
  31938. }
  31939. skipIndex = i;
  31940. i = parts.length; // The eslint settings do not allow break;
  31941. }
  31942. }
  31943. }
  31944. for (i = 0; i < parts.length; ++i) {
  31945. if (i === skipIndex) {
  31946. continue;
  31947. }
  31948. var part = parts[i];
  31949. var bracketEqualsPos = part.indexOf(']=');
  31950. var pos = bracketEqualsPos === -1 ? part.indexOf('=') : bracketEqualsPos + 1;
  31951. var key, val;
  31952. if (pos === -1) {
  31953. key = options.decoder(part, defaults.decoder, charset, 'key');
  31954. val = options.strictNullHandling ? null : '';
  31955. } else {
  31956. key = options.decoder(part.slice(0, pos), defaults.decoder, charset, 'key');
  31957. val = utils.maybeMap(
  31958. parseArrayValue(part.slice(pos + 1), options),
  31959. function (encodedVal) {
  31960. return options.decoder(encodedVal, defaults.decoder, charset, 'value');
  31961. }
  31962. );
  31963. }
  31964. if (val && options.interpretNumericEntities && charset === 'iso-8859-1') {
  31965. val = interpretNumericEntities(val);
  31966. }
  31967. if (part.indexOf('[]=') > -1) {
  31968. val = isArray(val) ? [val] : val;
  31969. }
  31970. if (has.call(obj, key)) {
  31971. obj[key] = utils.combine(obj[key], val);
  31972. } else {
  31973. obj[key] = val;
  31974. }
  31975. }
  31976. return obj;
  31977. };
  31978. var parseObject = function (chain, val, options, valuesParsed) {
  31979. var leaf = valuesParsed ? val : parseArrayValue(val, options);
  31980. for (var i = chain.length - 1; i >= 0; --i) {
  31981. var obj;
  31982. var root = chain[i];
  31983. if (root === '[]' && options.parseArrays) {
  31984. obj = [].concat(leaf);
  31985. } else {
  31986. obj = options.plainObjects ? Object.create(null) : {};
  31987. var cleanRoot = root.charAt(0) === '[' && root.charAt(root.length - 1) === ']' ? root.slice(1, -1) : root;
  31988. var index = parseInt(cleanRoot, 10);
  31989. if (!options.parseArrays && cleanRoot === '') {
  31990. obj = { 0: leaf };
  31991. } else if (
  31992. !isNaN(index)
  31993. && root !== cleanRoot
  31994. && String(index) === cleanRoot
  31995. && index >= 0
  31996. && (options.parseArrays && index <= options.arrayLimit)
  31997. ) {
  31998. obj = [];
  31999. obj[index] = leaf;
  32000. } else if (cleanRoot !== '__proto__') {
  32001. obj[cleanRoot] = leaf;
  32002. }
  32003. }
  32004. leaf = obj;
  32005. }
  32006. return leaf;
  32007. };
  32008. var parseKeys = function parseQueryStringKeys(givenKey, val, options, valuesParsed) {
  32009. if (!givenKey) {
  32010. return;
  32011. }
  32012. // Transform dot notation to bracket notation
  32013. var key = options.allowDots ? givenKey.replace(/\.([^.[]+)/g, '[$1]') : givenKey;
  32014. // The regex chunks
  32015. var brackets = /(\[[^[\]]*])/;
  32016. var child = /(\[[^[\]]*])/g;
  32017. // Get the parent
  32018. var segment = options.depth > 0 && brackets.exec(key);
  32019. var parent = segment ? key.slice(0, segment.index) : key;
  32020. // Stash the parent if it exists
  32021. var keys = [];
  32022. if (parent) {
  32023. // If we aren't using plain objects, optionally prefix keys that would overwrite object prototype properties
  32024. if (!options.plainObjects && has.call(Object.prototype, parent)) {
  32025. if (!options.allowPrototypes) {
  32026. return;
  32027. }
  32028. }
  32029. keys.push(parent);
  32030. }
  32031. // Loop through children appending to the array until we hit depth
  32032. var i = 0;
  32033. while (options.depth > 0 && (segment = child.exec(key)) !== null && i < options.depth) {
  32034. i += 1;
  32035. if (!options.plainObjects && has.call(Object.prototype, segment[1].slice(1, -1))) {
  32036. if (!options.allowPrototypes) {
  32037. return;
  32038. }
  32039. }
  32040. keys.push(segment[1]);
  32041. }
  32042. // If there's a remainder, just add whatever is left
  32043. if (segment) {
  32044. keys.push('[' + key.slice(segment.index) + ']');
  32045. }
  32046. return parseObject(keys, val, options, valuesParsed);
  32047. };
  32048. var normalizeParseOptions = function normalizeParseOptions(opts) {
  32049. if (!opts) {
  32050. return defaults;
  32051. }
  32052. if (opts.decoder !== null && opts.decoder !== undefined && typeof opts.decoder !== 'function') {
  32053. throw new TypeError('Decoder has to be a function.');
  32054. }
  32055. if (typeof opts.charset !== 'undefined' && opts.charset !== 'utf-8' && opts.charset !== 'iso-8859-1') {
  32056. throw new TypeError('The charset option must be either utf-8, iso-8859-1, or undefined');
  32057. }
  32058. var charset = typeof opts.charset === 'undefined' ? defaults.charset : opts.charset;
  32059. return {
  32060. allowDots: typeof opts.allowDots === 'undefined' ? defaults.allowDots : !!opts.allowDots,
  32061. allowPrototypes: typeof opts.allowPrototypes === 'boolean' ? opts.allowPrototypes : defaults.allowPrototypes,
  32062. allowSparse: typeof opts.allowSparse === 'boolean' ? opts.allowSparse : defaults.allowSparse,
  32063. arrayLimit: typeof opts.arrayLimit === 'number' ? opts.arrayLimit : defaults.arrayLimit,
  32064. charset: charset,
  32065. charsetSentinel: typeof opts.charsetSentinel === 'boolean' ? opts.charsetSentinel : defaults.charsetSentinel,
  32066. comma: typeof opts.comma === 'boolean' ? opts.comma : defaults.comma,
  32067. decoder: typeof opts.decoder === 'function' ? opts.decoder : defaults.decoder,
  32068. delimiter: typeof opts.delimiter === 'string' || utils.isRegExp(opts.delimiter) ? opts.delimiter : defaults.delimiter,
  32069. // eslint-disable-next-line no-implicit-coercion, no-extra-parens
  32070. depth: (typeof opts.depth === 'number' || opts.depth === false) ? +opts.depth : defaults.depth,
  32071. ignoreQueryPrefix: opts.ignoreQueryPrefix === true,
  32072. interpretNumericEntities: typeof opts.interpretNumericEntities === 'boolean' ? opts.interpretNumericEntities : defaults.interpretNumericEntities,
  32073. parameterLimit: typeof opts.parameterLimit === 'number' ? opts.parameterLimit : defaults.parameterLimit,
  32074. parseArrays: opts.parseArrays !== false,
  32075. plainObjects: typeof opts.plainObjects === 'boolean' ? opts.plainObjects : defaults.plainObjects,
  32076. strictNullHandling: typeof opts.strictNullHandling === 'boolean' ? opts.strictNullHandling : defaults.strictNullHandling
  32077. };
  32078. };
  32079. module.exports = function (str, opts) {
  32080. var options = normalizeParseOptions(opts);
  32081. if (str === '' || str === null || typeof str === 'undefined') {
  32082. return options.plainObjects ? Object.create(null) : {};
  32083. }
  32084. var tempObj = typeof str === 'string' ? parseValues(str, options) : str;
  32085. var obj = options.plainObjects ? Object.create(null) : {};
  32086. // Iterate over the keys and setup the new object
  32087. var keys = Object.keys(tempObj);
  32088. for (var i = 0; i < keys.length; ++i) {
  32089. var key = keys[i];
  32090. var newObj = parseKeys(key, tempObj[key], options, typeof str === 'string');
  32091. obj = utils.merge(obj, newObj, options);
  32092. }
  32093. if (options.allowSparse === true) {
  32094. return obj;
  32095. }
  32096. return utils.compact(obj);
  32097. };
  32098. /***/ }),
  32099. /***/ 8:
  32100. /*!***************************************************************************!*\
  32101. !*** ./node_modules/@babel/runtime/helpers/unsupportedIterableToArray.js ***!
  32102. \***************************************************************************/
  32103. /*! no static exports found */
  32104. /***/ (function(module, exports, __webpack_require__) {
  32105. var arrayLikeToArray = __webpack_require__(/*! ./arrayLikeToArray.js */ 9);
  32106. function _unsupportedIterableToArray(o, minLen) {
  32107. if (!o) return;
  32108. if (typeof o === "string") return arrayLikeToArray(o, minLen);
  32109. var n = Object.prototype.toString.call(o).slice(8, -1);
  32110. if (n === "Object" && o.constructor) n = o.constructor.name;
  32111. if (n === "Map" || n === "Set") return Array.from(o);
  32112. if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return arrayLikeToArray(o, minLen);
  32113. }
  32114. module.exports = _unsupportedIterableToArray, module.exports.__esModule = true, module.exports["default"] = module.exports;
  32115. /***/ }),
  32116. /***/ 803:
  32117. /*!********************************************************************************!*\
  32118. !*** /Users/chenpengming/代码/product_wx/wxcomponents/weapp/dist/radio/index.js ***!
  32119. \********************************************************************************/
  32120. /*! no static exports found */
  32121. /***/ (function(module, exports, __webpack_require__) {
  32122. "use strict";
  32123. var _version = __webpack_require__(/*! ../common/version */ 804);
  32124. var _component = __webpack_require__(/*! ../common/component */ 805);
  32125. var _relation = __webpack_require__(/*! ../common/relation */ 807);
  32126. (0, _component.VantComponent)({
  32127. field: true,
  32128. relation: (0, _relation.useParent)('radio-group', function () {
  32129. this.updateFromParent();
  32130. }),
  32131. classes: ['icon-class', 'label-class'],
  32132. props: {
  32133. name: null,
  32134. value: null,
  32135. disabled: Boolean,
  32136. useIconSlot: Boolean,
  32137. checkedColor: String,
  32138. labelPosition: {
  32139. type: String,
  32140. value: 'right'
  32141. },
  32142. labelDisabled: Boolean,
  32143. shape: {
  32144. type: String,
  32145. value: 'round'
  32146. },
  32147. iconSize: {
  32148. type: null,
  32149. value: 20
  32150. }
  32151. },
  32152. data: {
  32153. direction: '',
  32154. parentDisabled: false
  32155. },
  32156. methods: {
  32157. updateFromParent: function updateFromParent() {
  32158. if (!this.parent) {
  32159. return;
  32160. }
  32161. var _this$parent$data = this.parent.data,
  32162. value = _this$parent$data.value,
  32163. parentDisabled = _this$parent$data.disabled,
  32164. direction = _this$parent$data.direction;
  32165. this.setData({
  32166. value: value,
  32167. direction: direction,
  32168. parentDisabled: parentDisabled
  32169. });
  32170. },
  32171. emitChange: function emitChange(value) {
  32172. var instance = this.parent || this;
  32173. instance.$emit('input', value);
  32174. instance.$emit('change', value);
  32175. if ((0, _version.canIUseModel)()) {
  32176. instance.setData({
  32177. value: value
  32178. });
  32179. }
  32180. },
  32181. onChange: function onChange() {
  32182. if (!this.data.disabled && !this.data.parentDisabled) {
  32183. this.emitChange(this.data.name);
  32184. }
  32185. },
  32186. onClickLabel: function onClickLabel() {
  32187. var _this$data = this.data,
  32188. disabled = _this$data.disabled,
  32189. parentDisabled = _this$data.parentDisabled,
  32190. labelDisabled = _this$data.labelDisabled,
  32191. name = _this$data.name;
  32192. if (!(disabled || parentDisabled) && !labelDisabled) {
  32193. this.emitChange(name);
  32194. }
  32195. }
  32196. }
  32197. });
  32198. /***/ }),
  32199. /***/ 804:
  32200. /*!***********************************************************************************!*\
  32201. !*** /Users/chenpengming/代码/product_wx/wxcomponents/weapp/dist/common/version.js ***!
  32202. \***********************************************************************************/
  32203. /*! no static exports found */
  32204. /***/ (function(module, exports, __webpack_require__) {
  32205. "use strict";
  32206. /* WEBPACK VAR INJECTION */(function(wx) {
  32207. Object.defineProperty(exports, "__esModule", {
  32208. value: true
  32209. });
  32210. exports.canIUseAnimate = canIUseAnimate;
  32211. exports.canIUseCanvas2d = canIUseCanvas2d;
  32212. exports.canIUseFormFieldButton = canIUseFormFieldButton;
  32213. exports.canIUseGetUserProfile = canIUseGetUserProfile;
  32214. exports.canIUseGroupSetData = canIUseGroupSetData;
  32215. exports.canIUseModel = canIUseModel;
  32216. exports.canIUseNextTick = canIUseNextTick;
  32217. exports.getSystemInfoSync = getSystemInfoSync;
  32218. var systemInfo;
  32219. function getSystemInfoSync() {
  32220. if (systemInfo == null) {
  32221. systemInfo = wx.getSystemInfoSync();
  32222. }
  32223. return systemInfo;
  32224. }
  32225. function compareVersion(v1, v2) {
  32226. v1 = v1.split('.');
  32227. v2 = v2.split('.');
  32228. var len = Math.max(v1.length, v2.length);
  32229. while (v1.length < len) {
  32230. v1.push('0');
  32231. }
  32232. while (v2.length < len) {
  32233. v2.push('0');
  32234. }
  32235. for (var i = 0; i < len; i++) {
  32236. var num1 = parseInt(v1[i], 10);
  32237. var num2 = parseInt(v2[i], 10);
  32238. if (num1 > num2) {
  32239. return 1;
  32240. }
  32241. if (num1 < num2) {
  32242. return -1;
  32243. }
  32244. }
  32245. return 0;
  32246. }
  32247. function gte(version) {
  32248. var system = getSystemInfoSync();
  32249. return compareVersion(system.SDKVersion, version) >= 0;
  32250. }
  32251. function canIUseModel() {
  32252. return gte('2.9.3');
  32253. }
  32254. function canIUseFormFieldButton() {
  32255. return gte('2.10.3');
  32256. }
  32257. function canIUseAnimate() {
  32258. return gte('2.9.0');
  32259. }
  32260. function canIUseGroupSetData() {
  32261. return gte('2.4.0');
  32262. }
  32263. function canIUseNextTick() {
  32264. try {
  32265. return wx.canIUse('nextTick');
  32266. } catch (e) {
  32267. return gte('2.7.1');
  32268. }
  32269. }
  32270. function canIUseCanvas2d() {
  32271. return gte('2.9.0');
  32272. }
  32273. function canIUseGetUserProfile() {
  32274. return !!wx.getUserProfile;
  32275. }
  32276. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/wx.js */ 1)["default"]))
  32277. /***/ }),
  32278. /***/ 805:
  32279. /*!*************************************************************************************!*\
  32280. !*** /Users/chenpengming/代码/product_wx/wxcomponents/weapp/dist/common/component.js ***!
  32281. \*************************************************************************************/
  32282. /*! no static exports found */
  32283. /***/ (function(module, exports, __webpack_require__) {
  32284. "use strict";
  32285. Object.defineProperty(exports, "__esModule", {
  32286. value: true
  32287. });
  32288. exports.VantComponent = VantComponent;
  32289. var _basic = __webpack_require__(/*! ../mixins/basic */ 806);
  32290. function mapKeys(source, target, map) {
  32291. Object.keys(map).forEach(function (key) {
  32292. if (source[key]) {
  32293. target[map[key]] = source[key];
  32294. }
  32295. });
  32296. }
  32297. function VantComponent(vantOptions) {
  32298. var options = {};
  32299. mapKeys(vantOptions, options, {
  32300. data: 'data',
  32301. props: 'properties',
  32302. watch: 'observers',
  32303. mixins: 'behaviors',
  32304. methods: 'methods',
  32305. beforeCreate: 'created',
  32306. created: 'attached',
  32307. mounted: 'ready',
  32308. destroyed: 'detached',
  32309. classes: 'externalClasses'
  32310. });
  32311. // add default externalClasses
  32312. options.externalClasses = options.externalClasses || [];
  32313. options.externalClasses.push('custom-class');
  32314. // add default behaviors
  32315. options.behaviors = options.behaviors || [];
  32316. options.behaviors.push(_basic.basic);
  32317. // add relations
  32318. var relation = vantOptions.relation;
  32319. if (relation) {
  32320. options.relations = relation.relations;
  32321. options.behaviors.push(relation.mixin);
  32322. }
  32323. // map field to form-field behavior
  32324. if (vantOptions.field) {
  32325. options.behaviors.push('wx://form-field');
  32326. }
  32327. // add default options
  32328. options.options = {
  32329. multipleSlots: true,
  32330. addGlobalClass: true
  32331. };
  32332. Component(options);
  32333. }
  32334. /***/ }),
  32335. /***/ 806:
  32336. /*!*********************************************************************************!*\
  32337. !*** /Users/chenpengming/代码/product_wx/wxcomponents/weapp/dist/mixins/basic.js ***!
  32338. \*********************************************************************************/
  32339. /*! no static exports found */
  32340. /***/ (function(module, exports, __webpack_require__) {
  32341. "use strict";
  32342. /* WEBPACK VAR INJECTION */(function(wx) {
  32343. Object.defineProperty(exports, "__esModule", {
  32344. value: true
  32345. });
  32346. exports.basic = void 0;
  32347. var basic = Behavior({
  32348. methods: {
  32349. $emit: function $emit(name, detail, options) {
  32350. this.triggerEvent(name, detail, options);
  32351. },
  32352. set: function set(data) {
  32353. this.setData(data);
  32354. return new Promise(function (resolve) {
  32355. return wx.nextTick(resolve);
  32356. });
  32357. }
  32358. }
  32359. });
  32360. exports.basic = basic;
  32361. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/wx.js */ 1)["default"]))
  32362. /***/ }),
  32363. /***/ 807:
  32364. /*!************************************************************************************!*\
  32365. !*** /Users/chenpengming/代码/product_wx/wxcomponents/weapp/dist/common/relation.js ***!
  32366. \************************************************************************************/
  32367. /*! no static exports found */
  32368. /***/ (function(module, exports, __webpack_require__) {
  32369. "use strict";
  32370. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  32371. Object.defineProperty(exports, "__esModule", {
  32372. value: true
  32373. });
  32374. exports.useChildren = useChildren;
  32375. exports.useParent = useParent;
  32376. var _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/defineProperty */ 11));
  32377. function useParent(name, onEffect) {
  32378. var path = "../".concat(name, "/index");
  32379. return {
  32380. relations: (0, _defineProperty2.default)({}, path, {
  32381. type: 'ancestor',
  32382. linked: function linked() {
  32383. onEffect && onEffect.call(this);
  32384. },
  32385. linkChanged: function linkChanged() {
  32386. onEffect && onEffect.call(this);
  32387. },
  32388. unlinked: function unlinked() {
  32389. onEffect && onEffect.call(this);
  32390. }
  32391. }),
  32392. mixin: Behavior({
  32393. created: function created() {
  32394. var _this = this;
  32395. Object.defineProperty(this, 'parent', {
  32396. get: function get() {
  32397. return _this.getRelationNodes(path)[0];
  32398. }
  32399. });
  32400. Object.defineProperty(this, 'index', {
  32401. // @ts-ignore
  32402. get: function get() {
  32403. var _a, _b;
  32404. return (_b = (_a = _this.parent) === null || _a === void 0 ? void 0 : _a.children) === null || _b === void 0 ? void 0 : _b.indexOf(_this);
  32405. }
  32406. });
  32407. }
  32408. })
  32409. };
  32410. }
  32411. function useChildren(name, onEffect) {
  32412. var path = "../".concat(name, "/index");
  32413. return {
  32414. relations: (0, _defineProperty2.default)({}, path, {
  32415. type: 'descendant',
  32416. linked: function linked(target) {
  32417. onEffect && onEffect.call(this, target);
  32418. },
  32419. linkChanged: function linkChanged(target) {
  32420. onEffect && onEffect.call(this, target);
  32421. },
  32422. unlinked: function unlinked(target) {
  32423. onEffect && onEffect.call(this, target);
  32424. }
  32425. }),
  32426. mixin: Behavior({
  32427. created: function created() {
  32428. var _this2 = this;
  32429. Object.defineProperty(this, 'children', {
  32430. get: function get() {
  32431. return _this2.getRelationNodes(path) || [];
  32432. }
  32433. });
  32434. }
  32435. })
  32436. };
  32437. }
  32438. /***/ }),
  32439. /***/ 808:
  32440. /*!**************************************************************************************!*\
  32441. !*** /Users/chenpengming/代码/product_wx/wxcomponents/weapp/dist/radio-group/index.js ***!
  32442. \**************************************************************************************/
  32443. /*! no static exports found */
  32444. /***/ (function(module, exports, __webpack_require__) {
  32445. "use strict";
  32446. var _component = __webpack_require__(/*! ../common/component */ 805);
  32447. var _relation = __webpack_require__(/*! ../common/relation */ 807);
  32448. (0, _component.VantComponent)({
  32449. field: true,
  32450. relation: (0, _relation.useChildren)('radio'),
  32451. props: {
  32452. value: {
  32453. type: null,
  32454. observer: 'updateChildren'
  32455. },
  32456. direction: String,
  32457. disabled: {
  32458. type: Boolean,
  32459. observer: 'updateChildren'
  32460. }
  32461. },
  32462. methods: {
  32463. updateChildren: function updateChildren() {
  32464. this.children.forEach(function (child) {
  32465. return child.updateFromParent();
  32466. });
  32467. }
  32468. }
  32469. });
  32470. /***/ }),
  32471. /***/ 809:
  32472. /*!*******************************************************************************!*\
  32473. !*** /Users/chenpengming/代码/product_wx/wxcomponents/weapp/dist/rate/index.js ***!
  32474. \*******************************************************************************/
  32475. /*! no static exports found */
  32476. /***/ (function(module, exports, __webpack_require__) {
  32477. "use strict";
  32478. /* WEBPACK VAR INJECTION */(function(wx) {
  32479. var _utils = __webpack_require__(/*! ../common/utils */ 810);
  32480. var _component = __webpack_require__(/*! ../common/component */ 805);
  32481. var _version = __webpack_require__(/*! ../common/version */ 804);
  32482. (0, _component.VantComponent)({
  32483. field: true,
  32484. classes: ['icon-class'],
  32485. props: {
  32486. value: {
  32487. type: Number,
  32488. observer: function observer(value) {
  32489. if (value !== this.data.innerValue) {
  32490. this.setData({
  32491. innerValue: value
  32492. });
  32493. }
  32494. }
  32495. },
  32496. readonly: Boolean,
  32497. disabled: Boolean,
  32498. allowHalf: Boolean,
  32499. size: null,
  32500. icon: {
  32501. type: String,
  32502. value: 'star'
  32503. },
  32504. voidIcon: {
  32505. type: String,
  32506. value: 'star-o'
  32507. },
  32508. color: String,
  32509. voidColor: String,
  32510. disabledColor: String,
  32511. count: {
  32512. type: Number,
  32513. value: 5,
  32514. observer: function observer(value) {
  32515. this.setData({
  32516. innerCountArray: Array.from({
  32517. length: value
  32518. })
  32519. });
  32520. }
  32521. },
  32522. gutter: null,
  32523. touchable: {
  32524. type: Boolean,
  32525. value: true
  32526. }
  32527. },
  32528. data: {
  32529. innerValue: 0,
  32530. innerCountArray: Array.from({
  32531. length: 5
  32532. })
  32533. },
  32534. methods: {
  32535. onSelect: function onSelect(event) {
  32536. var _this = this;
  32537. var data = this.data;
  32538. var score = event.currentTarget.dataset.score;
  32539. if (!data.disabled && !data.readonly) {
  32540. this.setData({
  32541. innerValue: score + 1
  32542. });
  32543. if ((0, _version.canIUseModel)()) {
  32544. this.setData({
  32545. value: score + 1
  32546. });
  32547. }
  32548. wx.nextTick(function () {
  32549. _this.$emit('input', score + 1);
  32550. _this.$emit('change', score + 1);
  32551. });
  32552. }
  32553. },
  32554. onTouchMove: function onTouchMove(event) {
  32555. var _this2 = this;
  32556. var touchable = this.data.touchable;
  32557. if (!touchable) return;
  32558. var clientX = event.touches[0].clientX;
  32559. (0, _utils.getAllRect)(this, '.van-rate__icon').then(function (list) {
  32560. var target = list.sort(function (cur, next) {
  32561. return cur.dataset.score - next.dataset.score;
  32562. }).find(function (item) {
  32563. return clientX >= item.left && clientX <= item.right;
  32564. });
  32565. if (target != null) {
  32566. _this2.onSelect(Object.assign(Object.assign({}, event), {
  32567. currentTarget: target
  32568. }));
  32569. }
  32570. });
  32571. }
  32572. }
  32573. });
  32574. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/wx.js */ 1)["default"]))
  32575. /***/ }),
  32576. /***/ 810:
  32577. /*!*********************************************************************************!*\
  32578. !*** /Users/chenpengming/代码/product_wx/wxcomponents/weapp/dist/common/utils.js ***!
  32579. \*********************************************************************************/
  32580. /*! no static exports found */
  32581. /***/ (function(module, exports, __webpack_require__) {
  32582. "use strict";
  32583. /* WEBPACK VAR INJECTION */(function(wx) {
  32584. Object.defineProperty(exports, "__esModule", {
  32585. value: true
  32586. });
  32587. exports.addUnit = addUnit;
  32588. exports.getAllRect = getAllRect;
  32589. exports.getCurrentPage = getCurrentPage;
  32590. exports.getRect = getRect;
  32591. Object.defineProperty(exports, "getSystemInfoSync", {
  32592. enumerable: true,
  32593. get: function get() {
  32594. return _version.getSystemInfoSync;
  32595. }
  32596. });
  32597. exports.groupSetData = groupSetData;
  32598. Object.defineProperty(exports, "isDef", {
  32599. enumerable: true,
  32600. get: function get() {
  32601. return _validator.isDef;
  32602. }
  32603. });
  32604. exports.nextTick = nextTick;
  32605. exports.pickExclude = pickExclude;
  32606. exports.range = range;
  32607. exports.requestAnimationFrame = requestAnimationFrame;
  32608. exports.toPromise = toPromise;
  32609. var _validator = __webpack_require__(/*! ./validator */ 811);
  32610. var _version = __webpack_require__(/*! ./version */ 804);
  32611. function range(num, min, max) {
  32612. return Math.min(Math.max(num, min), max);
  32613. }
  32614. function nextTick(cb) {
  32615. if ((0, _version.canIUseNextTick)()) {
  32616. wx.nextTick(cb);
  32617. } else {
  32618. setTimeout(function () {
  32619. cb();
  32620. }, 1000 / 30);
  32621. }
  32622. }
  32623. function addUnit(value) {
  32624. if (!(0, _validator.isDef)(value)) {
  32625. return undefined;
  32626. }
  32627. value = String(value);
  32628. return (0, _validator.isNumber)(value) ? "".concat(value, "px") : value;
  32629. }
  32630. function requestAnimationFrame(cb) {
  32631. return setTimeout(function () {
  32632. cb();
  32633. }, 1000 / 30);
  32634. }
  32635. function pickExclude(obj, keys) {
  32636. if (!(0, _validator.isPlainObject)(obj)) {
  32637. return {};
  32638. }
  32639. return Object.keys(obj).reduce(function (prev, key) {
  32640. if (!keys.includes(key)) {
  32641. prev[key] = obj[key];
  32642. }
  32643. return prev;
  32644. }, {});
  32645. }
  32646. function getRect(context, selector) {
  32647. return new Promise(function (resolve) {
  32648. wx.createSelectorQuery().in(context).select(selector).boundingClientRect().exec(function () {
  32649. var rect = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
  32650. return resolve(rect[0]);
  32651. });
  32652. });
  32653. }
  32654. function getAllRect(context, selector) {
  32655. return new Promise(function (resolve) {
  32656. wx.createSelectorQuery().in(context).selectAll(selector).boundingClientRect().exec(function () {
  32657. var rect = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
  32658. return resolve(rect[0]);
  32659. });
  32660. });
  32661. }
  32662. function groupSetData(context, cb) {
  32663. if ((0, _version.canIUseGroupSetData)()) {
  32664. context.groupSetData(cb);
  32665. } else {
  32666. cb();
  32667. }
  32668. }
  32669. function toPromise(promiseLike) {
  32670. if ((0, _validator.isPromise)(promiseLike)) {
  32671. return promiseLike;
  32672. }
  32673. return Promise.resolve(promiseLike);
  32674. }
  32675. function getCurrentPage() {
  32676. var pages = getCurrentPages();
  32677. return pages[pages.length - 1];
  32678. }
  32679. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/wx.js */ 1)["default"]))
  32680. /***/ }),
  32681. /***/ 811:
  32682. /*!*************************************************************************************!*\
  32683. !*** /Users/chenpengming/代码/product_wx/wxcomponents/weapp/dist/common/validator.js ***!
  32684. \*************************************************************************************/
  32685. /*! no static exports found */
  32686. /***/ (function(module, exports, __webpack_require__) {
  32687. "use strict";
  32688. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  32689. Object.defineProperty(exports, "__esModule", {
  32690. value: true
  32691. });
  32692. exports.isBoolean = isBoolean;
  32693. exports.isDef = isDef;
  32694. exports.isFunction = isFunction;
  32695. exports.isImageUrl = isImageUrl;
  32696. exports.isNumber = isNumber;
  32697. exports.isObj = isObj;
  32698. exports.isPlainObject = isPlainObject;
  32699. exports.isPromise = isPromise;
  32700. exports.isVideoUrl = isVideoUrl;
  32701. var _typeof2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/typeof */ 13));
  32702. // eslint-disable-next-line @typescript-eslint/ban-types
  32703. function isFunction(val) {
  32704. return typeof val === 'function';
  32705. }
  32706. function isPlainObject(val) {
  32707. return val !== null && (0, _typeof2.default)(val) === 'object' && !Array.isArray(val);
  32708. }
  32709. function isPromise(val) {
  32710. return isPlainObject(val) && isFunction(val.then) && isFunction(val.catch);
  32711. }
  32712. function isDef(value) {
  32713. return value !== undefined && value !== null;
  32714. }
  32715. function isObj(x) {
  32716. var type = (0, _typeof2.default)(x);
  32717. return x !== null && (type === 'object' || type === 'function');
  32718. }
  32719. function isNumber(value) {
  32720. return /^\d+(\.\d+)?$/.test(value);
  32721. }
  32722. function isBoolean(value) {
  32723. return typeof value === 'boolean';
  32724. }
  32725. var IMAGE_REGEXP = /\.(jpeg|jpg|gif|png|svg|webp|jfif|bmp|dpg)/i;
  32726. var VIDEO_REGEXP = /\.(mp4|mpg|mpeg|dat|asf|avi|rm|rmvb|mov|wmv|flv|mkv)/i;
  32727. function isImageUrl(url) {
  32728. return IMAGE_REGEXP.test(url);
  32729. }
  32730. function isVideoUrl(url) {
  32731. return VIDEO_REGEXP.test(url);
  32732. }
  32733. /***/ }),
  32734. /***/ 831:
  32735. /*!**********************************************************************************************************************!*\
  32736. !*** /Users/chenpengming/代码/product_wx/uni_modules/uni-datetime-picker/components/uni-datetime-picker/i18n/index.js ***!
  32737. \**********************************************************************************************************************/
  32738. /*! no static exports found */
  32739. /***/ (function(module, exports, __webpack_require__) {
  32740. "use strict";
  32741. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  32742. Object.defineProperty(exports, "__esModule", {
  32743. value: true
  32744. });
  32745. exports.default = void 0;
  32746. var _en = _interopRequireDefault(__webpack_require__(/*! ./en.json */ 832));
  32747. var _zhHans = _interopRequireDefault(__webpack_require__(/*! ./zh-Hans.json */ 833));
  32748. var _zhHant = _interopRequireDefault(__webpack_require__(/*! ./zh-Hant.json */ 834));
  32749. var _default = {
  32750. en: _en.default,
  32751. 'zh-Hans': _zhHans.default,
  32752. 'zh-Hant': _zhHant.default
  32753. };
  32754. exports.default = _default;
  32755. /***/ }),
  32756. /***/ 832:
  32757. /*!*********************************************************************************************************************!*\
  32758. !*** /Users/chenpengming/代码/product_wx/uni_modules/uni-datetime-picker/components/uni-datetime-picker/i18n/en.json ***!
  32759. \*********************************************************************************************************************/
  32760. /*! exports provided: uni-datetime-picker.selectDate, uni-datetime-picker.selectTime, uni-datetime-picker.selectDateTime, uni-datetime-picker.startDate, uni-datetime-picker.endDate, uni-datetime-picker.startTime, uni-datetime-picker.endTime, uni-datetime-picker.ok, uni-datetime-picker.clear, uni-datetime-picker.cancel, uni-datetime-picker.year, uni-datetime-picker.month, uni-calender.MON, uni-calender.TUE, uni-calender.WED, uni-calender.THU, uni-calender.FRI, uni-calender.SAT, uni-calender.SUN, uni-calender.confirm, default */
  32761. /***/ (function(module) {
  32762. module.exports = JSON.parse("{\"uni-datetime-picker.selectDate\":\"select date\",\"uni-datetime-picker.selectTime\":\"select time\",\"uni-datetime-picker.selectDateTime\":\"select date and time\",\"uni-datetime-picker.startDate\":\"start date\",\"uni-datetime-picker.endDate\":\"end date\",\"uni-datetime-picker.startTime\":\"start time\",\"uni-datetime-picker.endTime\":\"end time\",\"uni-datetime-picker.ok\":\"ok\",\"uni-datetime-picker.clear\":\"clear\",\"uni-datetime-picker.cancel\":\"cancel\",\"uni-datetime-picker.year\":\"-\",\"uni-datetime-picker.month\":\"\",\"uni-calender.MON\":\"MON\",\"uni-calender.TUE\":\"TUE\",\"uni-calender.WED\":\"WED\",\"uni-calender.THU\":\"THU\",\"uni-calender.FRI\":\"FRI\",\"uni-calender.SAT\":\"SAT\",\"uni-calender.SUN\":\"SUN\",\"uni-calender.confirm\":\"confirm\"}");
  32763. /***/ }),
  32764. /***/ 833:
  32765. /*!**************************************************************************************************************************!*\
  32766. !*** /Users/chenpengming/代码/product_wx/uni_modules/uni-datetime-picker/components/uni-datetime-picker/i18n/zh-Hans.json ***!
  32767. \**************************************************************************************************************************/
  32768. /*! exports provided: uni-datetime-picker.selectDate, uni-datetime-picker.selectTime, uni-datetime-picker.selectDateTime, uni-datetime-picker.startDate, uni-datetime-picker.endDate, uni-datetime-picker.startTime, uni-datetime-picker.endTime, uni-datetime-picker.ok, uni-datetime-picker.clear, uni-datetime-picker.cancel, uni-datetime-picker.year, uni-datetime-picker.month, uni-calender.SUN, uni-calender.MON, uni-calender.TUE, uni-calender.WED, uni-calender.THU, uni-calender.FRI, uni-calender.SAT, uni-calender.confirm, default */
  32769. /***/ (function(module) {
  32770. module.exports = JSON.parse("{\"uni-datetime-picker.selectDate\":\"选择日期\",\"uni-datetime-picker.selectTime\":\"选择时间\",\"uni-datetime-picker.selectDateTime\":\"选择日期时间\",\"uni-datetime-picker.startDate\":\"开始日期\",\"uni-datetime-picker.endDate\":\"结束日期\",\"uni-datetime-picker.startTime\":\"开始时间\",\"uni-datetime-picker.endTime\":\"结束时间\",\"uni-datetime-picker.ok\":\"确定\",\"uni-datetime-picker.clear\":\"清除\",\"uni-datetime-picker.cancel\":\"取消\",\"uni-datetime-picker.year\":\"年\",\"uni-datetime-picker.month\":\"月\",\"uni-calender.SUN\":\"日\",\"uni-calender.MON\":\"一\",\"uni-calender.TUE\":\"二\",\"uni-calender.WED\":\"三\",\"uni-calender.THU\":\"四\",\"uni-calender.FRI\":\"五\",\"uni-calender.SAT\":\"六\",\"uni-calender.confirm\":\"确认\"}");
  32771. /***/ }),
  32772. /***/ 834:
  32773. /*!**************************************************************************************************************************!*\
  32774. !*** /Users/chenpengming/代码/product_wx/uni_modules/uni-datetime-picker/components/uni-datetime-picker/i18n/zh-Hant.json ***!
  32775. \**************************************************************************************************************************/
  32776. /*! exports provided: uni-datetime-picker.selectDate, uni-datetime-picker.selectTime, uni-datetime-picker.selectDateTime, uni-datetime-picker.startDate, uni-datetime-picker.endDate, uni-datetime-picker.startTime, uni-datetime-picker.endTime, uni-datetime-picker.ok, uni-datetime-picker.clear, uni-datetime-picker.cancel, uni-datetime-picker.year, uni-datetime-picker.month, uni-calender.SUN, uni-calender.MON, uni-calender.TUE, uni-calender.WED, uni-calender.THU, uni-calender.FRI, uni-calender.SAT, uni-calender.confirm, default */
  32777. /***/ (function(module) {
  32778. module.exports = JSON.parse("{\"uni-datetime-picker.selectDate\":\"選擇日期\",\"uni-datetime-picker.selectTime\":\"選擇時間\",\"uni-datetime-picker.selectDateTime\":\"選擇日期時間\",\"uni-datetime-picker.startDate\":\"開始日期\",\"uni-datetime-picker.endDate\":\"結束日期\",\"uni-datetime-picker.startTime\":\"開始时间\",\"uni-datetime-picker.endTime\":\"結束时间\",\"uni-datetime-picker.ok\":\"確定\",\"uni-datetime-picker.clear\":\"清除\",\"uni-datetime-picker.cancel\":\"取消\",\"uni-datetime-picker.year\":\"年\",\"uni-datetime-picker.month\":\"月\",\"uni-calender.SUN\":\"日\",\"uni-calender.MON\":\"一\",\"uni-calender.TUE\":\"二\",\"uni-calender.WED\":\"三\",\"uni-calender.THU\":\"四\",\"uni-calender.FRI\":\"五\",\"uni-calender.SAT\":\"六\",\"uni-calender.confirm\":\"確認\"}");
  32779. /***/ }),
  32780. /***/ 835:
  32781. /*!****************************************************************************************************************!*\
  32782. !*** /Users/chenpengming/代码/product_wx/uni_modules/uni-datetime-picker/components/uni-datetime-picker/util.js ***!
  32783. \****************************************************************************************************************/
  32784. /*! no static exports found */
  32785. /***/ (function(module, exports, __webpack_require__) {
  32786. "use strict";
  32787. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  32788. Object.defineProperty(exports, "__esModule", {
  32789. value: true
  32790. });
  32791. exports.Calendar = void 0;
  32792. exports.addZero = addZero;
  32793. exports.checkDate = checkDate;
  32794. exports.dateCompare = dateCompare;
  32795. exports.fixIosDateFormat = fixIosDateFormat;
  32796. exports.getDate = getDate;
  32797. exports.getDateTime = getDateTime;
  32798. exports.getDefaultSecond = getDefaultSecond;
  32799. exports.getTime = getTime;
  32800. var _toConsumableArray2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/toConsumableArray */ 18));
  32801. var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ 23));
  32802. var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ 24));
  32803. var Calendar = /*#__PURE__*/function () {
  32804. function Calendar() {
  32805. var _ref = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
  32806. selected = _ref.selected,
  32807. startDate = _ref.startDate,
  32808. endDate = _ref.endDate,
  32809. range = _ref.range;
  32810. (0, _classCallCheck2.default)(this, Calendar);
  32811. // 当前日期
  32812. this.date = this.getDateObj(new Date()); // 当前初入日期
  32813. // 打点信息
  32814. this.selected = selected || [];
  32815. // 起始时间
  32816. this.startDate = startDate;
  32817. // 终止时间
  32818. this.endDate = endDate;
  32819. // 是否范围选择
  32820. this.range = range;
  32821. // 多选状态
  32822. this.cleanMultipleStatus();
  32823. // 每周日期
  32824. this.weeks = {};
  32825. this.lastHover = false;
  32826. }
  32827. /**
  32828. * 设置日期
  32829. * @param {Object} date
  32830. */
  32831. (0, _createClass2.default)(Calendar, [{
  32832. key: "setDate",
  32833. value: function setDate(date) {
  32834. var selectDate = this.getDateObj(date);
  32835. this.getWeeks(selectDate.fullDate);
  32836. }
  32837. /**
  32838. * 清理多选状态
  32839. */
  32840. }, {
  32841. key: "cleanMultipleStatus",
  32842. value: function cleanMultipleStatus() {
  32843. this.multipleStatus = {
  32844. before: '',
  32845. after: '',
  32846. data: []
  32847. };
  32848. }
  32849. }, {
  32850. key: "setStartDate",
  32851. value: function setStartDate(startDate) {
  32852. this.startDate = startDate;
  32853. }
  32854. }, {
  32855. key: "setEndDate",
  32856. value: function setEndDate(endDate) {
  32857. this.endDate = endDate;
  32858. }
  32859. }, {
  32860. key: "getPreMonthObj",
  32861. value: function getPreMonthObj(date) {
  32862. date = fixIosDateFormat(date);
  32863. date = new Date(date);
  32864. var oldMonth = date.getMonth();
  32865. date.setMonth(oldMonth - 1);
  32866. var newMonth = date.getMonth();
  32867. if (oldMonth !== 0 && newMonth - oldMonth === 0) {
  32868. date.setMonth(newMonth - 1);
  32869. }
  32870. return this.getDateObj(date);
  32871. }
  32872. }, {
  32873. key: "getNextMonthObj",
  32874. value: function getNextMonthObj(date) {
  32875. date = fixIosDateFormat(date);
  32876. date = new Date(date);
  32877. var oldMonth = date.getMonth();
  32878. date.setMonth(oldMonth + 1);
  32879. var newMonth = date.getMonth();
  32880. if (newMonth - oldMonth > 1) {
  32881. date.setMonth(newMonth - 1);
  32882. }
  32883. return this.getDateObj(date);
  32884. }
  32885. /**
  32886. * 获取指定格式Date对象
  32887. */
  32888. }, {
  32889. key: "getDateObj",
  32890. value: function getDateObj(date) {
  32891. date = fixIosDateFormat(date);
  32892. date = new Date(date);
  32893. return {
  32894. fullDate: getDate(date),
  32895. year: date.getFullYear(),
  32896. month: addZero(date.getMonth() + 1),
  32897. date: addZero(date.getDate()),
  32898. day: date.getDay()
  32899. };
  32900. }
  32901. /**
  32902. * 获取上一个月日期集合
  32903. */
  32904. }, {
  32905. key: "getPreMonthDays",
  32906. value: function getPreMonthDays(amount, dateObj) {
  32907. var result = [];
  32908. for (var i = amount - 1; i >= 0; i--) {
  32909. var month = dateObj.month - 1;
  32910. result.push({
  32911. date: new Date(dateObj.year, month, -i).getDate(),
  32912. month: month,
  32913. disable: true
  32914. });
  32915. }
  32916. return result;
  32917. }
  32918. /**
  32919. * 获取本月日期集合
  32920. */
  32921. }, {
  32922. key: "getCurrentMonthDays",
  32923. value: function getCurrentMonthDays(amount, dateObj) {
  32924. var _this = this;
  32925. var result = [];
  32926. var fullDate = this.date.fullDate;
  32927. var _loop = function _loop(i) {
  32928. var currentDate = "".concat(dateObj.year, "-").concat(dateObj.month, "-").concat(addZero(i));
  32929. var isToday = fullDate === currentDate;
  32930. // 获取打点信息
  32931. var info = _this.selected && _this.selected.find(function (item) {
  32932. if (_this.dateEqual(currentDate, item.date)) {
  32933. return item;
  32934. }
  32935. });
  32936. // 日期禁用
  32937. var disableBefore = true;
  32938. var disableAfter = true;
  32939. if (_this.startDate) {
  32940. disableBefore = dateCompare(_this.startDate, currentDate);
  32941. }
  32942. if (_this.endDate) {
  32943. disableAfter = dateCompare(currentDate, _this.endDate);
  32944. }
  32945. var multiples = _this.multipleStatus.data;
  32946. var multiplesStatus = -1;
  32947. if (_this.range && multiples) {
  32948. multiplesStatus = multiples.findIndex(function (item) {
  32949. return _this.dateEqual(item, currentDate);
  32950. });
  32951. }
  32952. var checked = multiplesStatus !== -1;
  32953. result.push({
  32954. fullDate: currentDate,
  32955. year: dateObj.year,
  32956. date: i,
  32957. multiple: _this.range ? checked : false,
  32958. beforeMultiple: _this.isLogicBefore(currentDate, _this.multipleStatus.before, _this.multipleStatus.after),
  32959. afterMultiple: _this.isLogicAfter(currentDate, _this.multipleStatus.before, _this.multipleStatus.after),
  32960. month: dateObj.month,
  32961. disable: _this.startDate && !dateCompare(_this.startDate, currentDate) || _this.endDate && !dateCompare(currentDate, _this.endDate),
  32962. isToday: isToday,
  32963. userChecked: false,
  32964. extraInfo: info
  32965. });
  32966. };
  32967. for (var i = 1; i <= amount; i++) {
  32968. _loop(i);
  32969. }
  32970. return result;
  32971. }
  32972. /**
  32973. * 获取下一个月日期集合
  32974. */
  32975. }, {
  32976. key: "_getNextMonthDays",
  32977. value: function _getNextMonthDays(amount, dateObj) {
  32978. var result = [];
  32979. var month = dateObj.month + 1;
  32980. for (var i = 1; i <= amount; i++) {
  32981. result.push({
  32982. date: i,
  32983. month: month,
  32984. disable: true
  32985. });
  32986. }
  32987. return result;
  32988. }
  32989. /**
  32990. * 获取当前日期详情
  32991. * @param {Object} date
  32992. */
  32993. }, {
  32994. key: "getInfo",
  32995. value: function getInfo(date) {
  32996. var _this2 = this;
  32997. if (!date) {
  32998. date = new Date();
  32999. }
  33000. return this.calendar.find(function (item) {
  33001. return item.fullDate === _this2.getDateObj(date).fullDate;
  33002. });
  33003. }
  33004. /**
  33005. * 比较时间是否相等
  33006. */
  33007. }, {
  33008. key: "dateEqual",
  33009. value: function dateEqual(before, after) {
  33010. before = new Date(fixIosDateFormat(before));
  33011. after = new Date(fixIosDateFormat(after));
  33012. return before.valueOf() === after.valueOf();
  33013. }
  33014. /**
  33015. * 比较真实起始日期
  33016. */
  33017. }, {
  33018. key: "isLogicBefore",
  33019. value: function isLogicBefore(currentDate, before, after) {
  33020. var logicBefore = before;
  33021. if (before && after) {
  33022. logicBefore = dateCompare(before, after) ? before : after;
  33023. }
  33024. return this.dateEqual(logicBefore, currentDate);
  33025. }
  33026. }, {
  33027. key: "isLogicAfter",
  33028. value: function isLogicAfter(currentDate, before, after) {
  33029. var logicAfter = after;
  33030. if (before && after) {
  33031. logicAfter = dateCompare(before, after) ? after : before;
  33032. }
  33033. return this.dateEqual(logicAfter, currentDate);
  33034. }
  33035. /**
  33036. * 获取日期范围内所有日期
  33037. * @param {Object} begin
  33038. * @param {Object} end
  33039. */
  33040. }, {
  33041. key: "geDateAll",
  33042. value: function geDateAll(begin, end) {
  33043. var arr = [];
  33044. var ab = begin.split('-');
  33045. var ae = end.split('-');
  33046. var db = new Date();
  33047. db.setFullYear(ab[0], ab[1] - 1, ab[2]);
  33048. var de = new Date();
  33049. de.setFullYear(ae[0], ae[1] - 1, ae[2]);
  33050. var unixDb = db.getTime() - 24 * 60 * 60 * 1000;
  33051. var unixDe = de.getTime() - 24 * 60 * 60 * 1000;
  33052. for (var k = unixDb; k <= unixDe;) {
  33053. k = k + 24 * 60 * 60 * 1000;
  33054. arr.push(this.getDateObj(new Date(parseInt(k))).fullDate);
  33055. }
  33056. return arr;
  33057. }
  33058. /**
  33059. * 获取多选状态
  33060. */
  33061. }, {
  33062. key: "setMultiple",
  33063. value: function setMultiple(fullDate) {
  33064. if (!this.range) return;
  33065. var _this$multipleStatus = this.multipleStatus,
  33066. before = _this$multipleStatus.before,
  33067. after = _this$multipleStatus.after;
  33068. if (before && after) {
  33069. if (!this.lastHover) {
  33070. this.lastHover = true;
  33071. return;
  33072. }
  33073. this.multipleStatus.before = fullDate;
  33074. this.multipleStatus.after = '';
  33075. this.multipleStatus.data = [];
  33076. this.multipleStatus.fulldate = '';
  33077. this.lastHover = false;
  33078. } else {
  33079. if (!before) {
  33080. this.multipleStatus.before = fullDate;
  33081. this.lastHover = false;
  33082. } else {
  33083. this.multipleStatus.after = fullDate;
  33084. if (dateCompare(this.multipleStatus.before, this.multipleStatus.after)) {
  33085. this.multipleStatus.data = this.geDateAll(this.multipleStatus.before, this.multipleStatus.after);
  33086. } else {
  33087. this.multipleStatus.data = this.geDateAll(this.multipleStatus.after, this.multipleStatus.before);
  33088. }
  33089. this.lastHover = true;
  33090. }
  33091. }
  33092. this.getWeeks(fullDate);
  33093. }
  33094. /**
  33095. * 鼠标 hover 更新多选状态
  33096. */
  33097. }, {
  33098. key: "setHoverMultiple",
  33099. value: function setHoverMultiple(fullDate) {
  33100. if (!this.range || this.lastHover) return;
  33101. var before = this.multipleStatus.before;
  33102. if (!before) {
  33103. this.multipleStatus.before = fullDate;
  33104. } else {
  33105. this.multipleStatus.after = fullDate;
  33106. if (dateCompare(this.multipleStatus.before, this.multipleStatus.after)) {
  33107. this.multipleStatus.data = this.geDateAll(this.multipleStatus.before, this.multipleStatus.after);
  33108. } else {
  33109. this.multipleStatus.data = this.geDateAll(this.multipleStatus.after, this.multipleStatus.before);
  33110. }
  33111. }
  33112. this.getWeeks(fullDate);
  33113. }
  33114. /**
  33115. * 更新默认值多选状态
  33116. */
  33117. }, {
  33118. key: "setDefaultMultiple",
  33119. value: function setDefaultMultiple(before, after) {
  33120. this.multipleStatus.before = before;
  33121. this.multipleStatus.after = after;
  33122. if (before && after) {
  33123. if (dateCompare(before, after)) {
  33124. this.multipleStatus.data = this.geDateAll(before, after);
  33125. this.getWeeks(after);
  33126. } else {
  33127. this.multipleStatus.data = this.geDateAll(after, before);
  33128. this.getWeeks(before);
  33129. }
  33130. }
  33131. }
  33132. /**
  33133. * 获取每周数据
  33134. * @param {Object} dateData
  33135. */
  33136. }, {
  33137. key: "getWeeks",
  33138. value: function getWeeks(dateData) {
  33139. var _this$getDateObj = this.getDateObj(dateData),
  33140. year = _this$getDateObj.year,
  33141. month = _this$getDateObj.month;
  33142. var preMonthDayAmount = new Date(year, month - 1, 1).getDay();
  33143. var preMonthDays = this.getPreMonthDays(preMonthDayAmount, this.getDateObj(dateData));
  33144. var currentMonthDayAmount = new Date(year, month, 0).getDate();
  33145. var currentMonthDays = this.getCurrentMonthDays(currentMonthDayAmount, this.getDateObj(dateData));
  33146. var nextMonthDayAmount = 42 - preMonthDayAmount - currentMonthDayAmount;
  33147. var nextMonthDays = this._getNextMonthDays(nextMonthDayAmount, this.getDateObj(dateData));
  33148. var calendarDays = [].concat((0, _toConsumableArray2.default)(preMonthDays), (0, _toConsumableArray2.default)(currentMonthDays), (0, _toConsumableArray2.default)(nextMonthDays));
  33149. var weeks = new Array(6);
  33150. for (var i = 0; i < calendarDays.length; i++) {
  33151. var index = Math.floor(i / 7);
  33152. if (!weeks[index]) {
  33153. weeks[index] = new Array(7);
  33154. }
  33155. weeks[index][i % 7] = calendarDays[i];
  33156. }
  33157. this.calendar = calendarDays;
  33158. this.weeks = weeks;
  33159. }
  33160. }]);
  33161. return Calendar;
  33162. }();
  33163. exports.Calendar = Calendar;
  33164. function getDateTime(date, hideSecond) {
  33165. return "".concat(getDate(date), " ").concat(getTime(date, hideSecond));
  33166. }
  33167. function getDate(date) {
  33168. date = fixIosDateFormat(date);
  33169. date = new Date(date);
  33170. var year = date.getFullYear();
  33171. var month = date.getMonth() + 1;
  33172. var day = date.getDate();
  33173. return "".concat(year, "-").concat(addZero(month), "-").concat(addZero(day));
  33174. }
  33175. function getTime(date, hideSecond) {
  33176. date = fixIosDateFormat(date);
  33177. date = new Date(date);
  33178. var hour = date.getHours();
  33179. var minute = date.getMinutes();
  33180. var second = date.getSeconds();
  33181. return hideSecond ? "".concat(addZero(hour), ":").concat(addZero(minute)) : "".concat(addZero(hour), ":").concat(addZero(minute), ":").concat(addZero(second));
  33182. }
  33183. function addZero(num) {
  33184. if (num < 10) {
  33185. num = "0".concat(num);
  33186. }
  33187. return num;
  33188. }
  33189. function getDefaultSecond(hideSecond) {
  33190. return hideSecond ? '00:00' : '00:00:00';
  33191. }
  33192. function dateCompare(startDate, endDate) {
  33193. startDate = new Date(fixIosDateFormat(startDate));
  33194. endDate = new Date(fixIosDateFormat(endDate));
  33195. return startDate <= endDate;
  33196. }
  33197. function checkDate(date) {
  33198. var dateReg = /((19|20)\d{2})(-|\/)\d{1,2}(-|\/)\d{1,2}/g;
  33199. return date.match(dateReg);
  33200. }
  33201. var dateTimeReg = /^\d{4}-(0?[1-9]|1[012])-(0?[1-9]|[12][0-9]|3[01])( [0-5]?[0-9]:[0-5]?[0-9]:[0-5]?[0-9])?$/;
  33202. function fixIosDateFormat(value) {
  33203. if (typeof value === 'string' && dateTimeReg.test(value)) {
  33204. value = value.replace(/-/g, '/');
  33205. }
  33206. return value;
  33207. }
  33208. /***/ }),
  33209. /***/ 858:
  33210. /*!**************************************************************************************************************************!*\
  33211. !*** /Users/chenpengming/代码/product_wx/uni_modules/uni-file-picker/components/uni-file-picker/choose-and-upload-file.js ***!
  33212. \**************************************************************************************************************************/
  33213. /*! no static exports found */
  33214. /***/ (function(module, exports, __webpack_require__) {
  33215. "use strict";
  33216. /* WEBPACK VAR INJECTION */(function(uni, wx, uniCloud) {
  33217. Object.defineProperty(exports, "__esModule", {
  33218. value: true
  33219. });
  33220. exports.chooseAndUploadFile = chooseAndUploadFile;
  33221. exports.uploadCloudFiles = uploadCloudFiles;
  33222. var ERR_MSG_OK = 'chooseAndUploadFile:ok';
  33223. var ERR_MSG_FAIL = 'chooseAndUploadFile:fail';
  33224. function chooseImage(opts) {
  33225. var count = opts.count,
  33226. _opts$sizeType = opts.sizeType,
  33227. sizeType = _opts$sizeType === void 0 ? ['original', 'compressed'] : _opts$sizeType,
  33228. sourceType = opts.sourceType,
  33229. extension = opts.extension;
  33230. return new Promise(function (resolve, reject) {
  33231. uni.chooseImage({
  33232. count: count,
  33233. sizeType: sizeType,
  33234. sourceType: sourceType,
  33235. extension: extension,
  33236. success: function success(res) {
  33237. resolve(normalizeChooseAndUploadFileRes(res, 'image'));
  33238. },
  33239. fail: function fail(res) {
  33240. reject({
  33241. errMsg: res.errMsg.replace('chooseImage:fail', ERR_MSG_FAIL)
  33242. });
  33243. }
  33244. });
  33245. });
  33246. }
  33247. function chooseVideo(opts) {
  33248. var camera = opts.camera,
  33249. compressed = opts.compressed,
  33250. maxDuration = opts.maxDuration,
  33251. sourceType = opts.sourceType,
  33252. extension = opts.extension;
  33253. return new Promise(function (resolve, reject) {
  33254. uni.chooseVideo({
  33255. camera: camera,
  33256. compressed: compressed,
  33257. maxDuration: maxDuration,
  33258. sourceType: sourceType,
  33259. extension: extension,
  33260. success: function success(res) {
  33261. var tempFilePath = res.tempFilePath,
  33262. duration = res.duration,
  33263. size = res.size,
  33264. height = res.height,
  33265. width = res.width;
  33266. resolve(normalizeChooseAndUploadFileRes({
  33267. errMsg: 'chooseVideo:ok',
  33268. tempFilePaths: [tempFilePath],
  33269. tempFiles: [{
  33270. name: res.tempFile && res.tempFile.name || '',
  33271. path: tempFilePath,
  33272. size: size,
  33273. type: res.tempFile && res.tempFile.type || '',
  33274. width: width,
  33275. height: height,
  33276. duration: duration,
  33277. fileType: 'video',
  33278. cloudPath: ''
  33279. }]
  33280. }, 'video'));
  33281. },
  33282. fail: function fail(res) {
  33283. reject({
  33284. errMsg: res.errMsg.replace('chooseVideo:fail', ERR_MSG_FAIL)
  33285. });
  33286. }
  33287. });
  33288. });
  33289. }
  33290. function chooseAll(opts) {
  33291. var count = opts.count,
  33292. extension = opts.extension;
  33293. return new Promise(function (resolve, reject) {
  33294. var chooseFile = uni.chooseFile;
  33295. if (typeof wx !== 'undefined' && typeof wx.chooseMessageFile === 'function') {
  33296. chooseFile = wx.chooseMessageFile;
  33297. }
  33298. if (typeof chooseFile !== 'function') {
  33299. return reject({
  33300. errMsg: ERR_MSG_FAIL + ' 请指定 type 类型,该平台仅支持选择 image 或 video。'
  33301. });
  33302. }
  33303. chooseFile({
  33304. type: 'all',
  33305. count: count,
  33306. extension: extension,
  33307. success: function success(res) {
  33308. resolve(normalizeChooseAndUploadFileRes(res));
  33309. },
  33310. fail: function fail(res) {
  33311. reject({
  33312. errMsg: res.errMsg.replace('chooseFile:fail', ERR_MSG_FAIL)
  33313. });
  33314. }
  33315. });
  33316. });
  33317. }
  33318. function normalizeChooseAndUploadFileRes(res, fileType) {
  33319. res.tempFiles.forEach(function (item, index) {
  33320. if (!item.name) {
  33321. item.name = item.path.substring(item.path.lastIndexOf('/') + 1);
  33322. }
  33323. if (fileType) {
  33324. item.fileType = fileType;
  33325. }
  33326. item.cloudPath = Date.now() + '_' + index + item.name.substring(item.name.lastIndexOf('.'));
  33327. });
  33328. if (!res.tempFilePaths) {
  33329. res.tempFilePaths = res.tempFiles.map(function (file) {
  33330. return file.path;
  33331. });
  33332. }
  33333. return res;
  33334. }
  33335. function uploadCloudFiles(files) {
  33336. var max = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 5;
  33337. var _onUploadProgress = arguments.length > 2 ? arguments[2] : undefined;
  33338. files = JSON.parse(JSON.stringify(files));
  33339. var len = files.length;
  33340. var count = 0;
  33341. var self = this;
  33342. return new Promise(function (resolve) {
  33343. while (count < max) {
  33344. next();
  33345. }
  33346. function next() {
  33347. var cur = count++;
  33348. if (cur >= len) {
  33349. !files.find(function (item) {
  33350. return !item.url && !item.errMsg;
  33351. }) && resolve(files);
  33352. return;
  33353. }
  33354. var fileItem = files[cur];
  33355. var index = self.files.findIndex(function (v) {
  33356. return v.uuid === fileItem.uuid;
  33357. });
  33358. fileItem.url = '';
  33359. delete fileItem.errMsg;
  33360. uniCloud.uploadFile({
  33361. filePath: fileItem.path,
  33362. cloudPath: fileItem.cloudPath,
  33363. fileType: fileItem.fileType,
  33364. onUploadProgress: function onUploadProgress(res) {
  33365. res.index = index;
  33366. _onUploadProgress && _onUploadProgress(res);
  33367. }
  33368. }).then(function (res) {
  33369. fileItem.url = res.fileID;
  33370. fileItem.index = index;
  33371. if (cur < len) {
  33372. next();
  33373. }
  33374. }).catch(function (res) {
  33375. fileItem.errMsg = res.errMsg || res.message;
  33376. fileItem.index = index;
  33377. if (cur < len) {
  33378. next();
  33379. }
  33380. });
  33381. }
  33382. });
  33383. }
  33384. function uploadFiles(choosePromise, _ref) {
  33385. var onChooseFile = _ref.onChooseFile,
  33386. onUploadProgress = _ref.onUploadProgress;
  33387. return choosePromise.then(function (res) {
  33388. if (onChooseFile) {
  33389. var customChooseRes = onChooseFile(res);
  33390. if (typeof customChooseRes !== 'undefined') {
  33391. return Promise.resolve(customChooseRes).then(function (chooseRes) {
  33392. return typeof chooseRes === 'undefined' ? res : chooseRes;
  33393. });
  33394. }
  33395. }
  33396. return res;
  33397. }).then(function (res) {
  33398. if (res === false) {
  33399. return {
  33400. errMsg: ERR_MSG_OK,
  33401. tempFilePaths: [],
  33402. tempFiles: []
  33403. };
  33404. }
  33405. return res;
  33406. });
  33407. }
  33408. function chooseAndUploadFile() {
  33409. var opts = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {
  33410. type: 'all'
  33411. };
  33412. if (opts.type === 'image') {
  33413. return uploadFiles(chooseImage(opts), opts);
  33414. } else if (opts.type === 'video') {
  33415. return uploadFiles(chooseVideo(opts), opts);
  33416. }
  33417. return uploadFiles(chooseAll(opts), opts);
  33418. }
  33419. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"], __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/wx.js */ 1)["default"], __webpack_require__(/*! ./node_modules/@dcloudio/vue-cli-plugin-uni/packages/uni-cloud/dist/index.js */ 28)["uniCloud"]))
  33420. /***/ }),
  33421. /***/ 859:
  33422. /*!*********************************************************************************************************!*\
  33423. !*** /Users/chenpengming/代码/product_wx/uni_modules/uni-file-picker/components/uni-file-picker/utils.js ***!
  33424. \*********************************************************************************************************/
  33425. /*! no static exports found */
  33426. /***/ (function(module, exports, __webpack_require__) {
  33427. "use strict";
  33428. /* WEBPACK VAR INJECTION */(function(uni) {
  33429. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  33430. Object.defineProperty(exports, "__esModule", {
  33431. value: true
  33432. });
  33433. exports.get_files_and_is_max = exports.get_file_info = exports.get_file_ext = exports.get_file_data = exports.get_extname = void 0;
  33434. var _regenerator = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/regenerator */ 29));
  33435. var _asyncToGenerator2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/asyncToGenerator */ 32));
  33436. /**
  33437. * 获取文件名和后缀
  33438. * @param {String} name
  33439. */
  33440. var get_file_ext = function get_file_ext(name) {
  33441. var last_len = name.lastIndexOf('.');
  33442. var len = name.length;
  33443. return {
  33444. name: name.substring(0, last_len),
  33445. ext: name.substring(last_len + 1, len)
  33446. };
  33447. };
  33448. /**
  33449. * 获取扩展名
  33450. * @param {Array} fileExtname
  33451. */
  33452. exports.get_file_ext = get_file_ext;
  33453. var get_extname = function get_extname(fileExtname) {
  33454. if (!Array.isArray(fileExtname)) {
  33455. var extname = fileExtname.replace(/(\[|\])/g, '');
  33456. return extname.split(',');
  33457. } else {
  33458. return fileExtname;
  33459. }
  33460. return [];
  33461. };
  33462. /**
  33463. * 获取文件和检测是否可选
  33464. */
  33465. exports.get_extname = get_extname;
  33466. var get_files_and_is_max = function get_files_and_is_max(res, _extname) {
  33467. var filePaths = [];
  33468. var files = [];
  33469. if (!_extname || _extname.length === 0) {
  33470. return {
  33471. filePaths: filePaths,
  33472. files: files
  33473. };
  33474. }
  33475. res.tempFiles.forEach(function (v) {
  33476. var fileFullName = get_file_ext(v.name);
  33477. var extname = fileFullName.ext.toLowerCase();
  33478. if (_extname.indexOf(extname) !== -1) {
  33479. files.push(v);
  33480. filePaths.push(v.path);
  33481. }
  33482. });
  33483. if (files.length !== res.tempFiles.length) {
  33484. uni.showToast({
  33485. title: "\u5F53\u524D\u9009\u62E9\u4E86".concat(res.tempFiles.length, "\u4E2A\u6587\u4EF6 \uFF0C").concat(res.tempFiles.length - files.length, " \u4E2A\u6587\u4EF6\u683C\u5F0F\u4E0D\u6B63\u786E"),
  33486. icon: 'none',
  33487. duration: 5000
  33488. });
  33489. }
  33490. return {
  33491. filePaths: filePaths,
  33492. files: files
  33493. };
  33494. };
  33495. /**
  33496. * 获取图片信息
  33497. * @param {Object} filepath
  33498. */
  33499. exports.get_files_and_is_max = get_files_and_is_max;
  33500. var get_file_info = function get_file_info(filepath) {
  33501. return new Promise(function (resolve, reject) {
  33502. uni.getImageInfo({
  33503. src: filepath,
  33504. success: function success(res) {
  33505. resolve(res);
  33506. },
  33507. fail: function fail(err) {
  33508. reject(err);
  33509. }
  33510. });
  33511. });
  33512. };
  33513. /**
  33514. * 获取封装数据
  33515. */
  33516. exports.get_file_info = get_file_info;
  33517. var get_file_data = /*#__PURE__*/function () {
  33518. var _ref = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee(files) {
  33519. var type,
  33520. fileFullName,
  33521. extname,
  33522. filedata,
  33523. imageinfo,
  33524. _args = arguments;
  33525. return _regenerator.default.wrap(function _callee$(_context) {
  33526. while (1) {
  33527. switch (_context.prev = _context.next) {
  33528. case 0:
  33529. type = _args.length > 1 && _args[1] !== undefined ? _args[1] : 'image';
  33530. // 最终需要上传数据库的数据
  33531. fileFullName = get_file_ext(files.name);
  33532. extname = fileFullName.ext.toLowerCase();
  33533. filedata = {
  33534. name: files.name,
  33535. uuid: files.uuid,
  33536. extname: extname || '',
  33537. cloudPath: files.cloudPath,
  33538. fileType: files.fileType,
  33539. url: files.path || files.path,
  33540. size: files.size,
  33541. //单位是字节
  33542. image: {},
  33543. path: files.path,
  33544. video: {}
  33545. };
  33546. if (!(type === 'image')) {
  33547. _context.next = 14;
  33548. break;
  33549. }
  33550. _context.next = 7;
  33551. return get_file_info(files.path);
  33552. case 7:
  33553. imageinfo = _context.sent;
  33554. delete filedata.video;
  33555. filedata.image.width = imageinfo.width;
  33556. filedata.image.height = imageinfo.height;
  33557. filedata.image.location = imageinfo.path;
  33558. _context.next = 15;
  33559. break;
  33560. case 14:
  33561. delete filedata.image;
  33562. case 15:
  33563. return _context.abrupt("return", filedata);
  33564. case 16:
  33565. case "end":
  33566. return _context.stop();
  33567. }
  33568. }
  33569. }, _callee);
  33570. }));
  33571. return function get_file_data(_x) {
  33572. return _ref.apply(this, arguments);
  33573. };
  33574. }();
  33575. exports.get_file_data = get_file_data;
  33576. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  33577. /***/ }),
  33578. /***/ 87:
  33579. /*!**********************************************************************************!*\
  33580. !*** /Users/chenpengming/代码/product_wx/wxcomponents/weapp/dist/dialog/dialog.js ***!
  33581. \**********************************************************************************/
  33582. /*! no static exports found */
  33583. /***/ (function(module, exports, __webpack_require__) {
  33584. "use strict";
  33585. /* WEBPACK VAR INJECTION */(function(wx) {
  33586. Object.defineProperty(exports, "__esModule", {
  33587. value: true
  33588. });
  33589. exports.default = void 0;
  33590. var queue = [];
  33591. var defaultOptions = {
  33592. show: false,
  33593. title: '',
  33594. width: null,
  33595. theme: 'default',
  33596. message: '',
  33597. zIndex: 100,
  33598. overlay: true,
  33599. selector: '#van-dialog',
  33600. className: '',
  33601. asyncClose: false,
  33602. beforeClose: null,
  33603. transition: 'scale',
  33604. customStyle: '',
  33605. messageAlign: '',
  33606. overlayStyle: '',
  33607. confirmButtonText: '确认',
  33608. cancelButtonText: '取消',
  33609. showConfirmButton: true,
  33610. showCancelButton: false,
  33611. closeOnClickOverlay: false,
  33612. confirmButtonOpenType: ''
  33613. };
  33614. var currentOptions = Object.assign({}, defaultOptions);
  33615. function getContext() {
  33616. var pages = getCurrentPages();
  33617. return pages[pages.length - 1];
  33618. }
  33619. var Dialog = function Dialog(options) {
  33620. options = Object.assign(Object.assign({}, currentOptions), options);
  33621. return new Promise(function (resolve, reject) {
  33622. var context = (typeof options.context === 'function' ? options.context() : options.context) || getContext();
  33623. var dialog = context.selectComponent(options.selector);
  33624. delete options.context;
  33625. delete options.selector;
  33626. if (dialog) {
  33627. dialog.setData(Object.assign({
  33628. callback: function callback(action, instance) {
  33629. action === 'confirm' ? resolve(instance) : reject(instance);
  33630. }
  33631. }, options));
  33632. wx.nextTick(function () {
  33633. dialog.setData({
  33634. show: true
  33635. });
  33636. });
  33637. queue.push(dialog);
  33638. } else {
  33639. console.warn('未找到 van-dialog 节点,请确认 selector 及 context 是否正确');
  33640. }
  33641. });
  33642. };
  33643. Dialog.alert = function (options) {
  33644. return Dialog(options);
  33645. };
  33646. Dialog.confirm = function (options) {
  33647. return Dialog(Object.assign({
  33648. showCancelButton: true
  33649. }, options));
  33650. };
  33651. Dialog.close = function () {
  33652. queue.forEach(function (dialog) {
  33653. dialog.close();
  33654. });
  33655. queue = [];
  33656. };
  33657. Dialog.stopLoading = function () {
  33658. queue.forEach(function (dialog) {
  33659. dialog.stopLoading();
  33660. });
  33661. };
  33662. Dialog.currentOptions = currentOptions;
  33663. Dialog.defaultOptions = defaultOptions;
  33664. Dialog.setDefaultOptions = function (options) {
  33665. currentOptions = Object.assign(Object.assign({}, currentOptions), options);
  33666. Dialog.currentOptions = currentOptions;
  33667. };
  33668. Dialog.resetDefaultOptions = function () {
  33669. currentOptions = Object.assign({}, defaultOptions);
  33670. Dialog.currentOptions = currentOptions;
  33671. };
  33672. Dialog.resetDefaultOptions();
  33673. var _default = Dialog;
  33674. exports.default = _default;
  33675. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/wx.js */ 1)["default"]))
  33676. /***/ }),
  33677. /***/ 874:
  33678. /*!************************************************************************************************!*\
  33679. !*** /Users/chenpengming/代码/product_wx/uni_modules/uni-forms/components/uni-forms/validate.js ***!
  33680. \************************************************************************************************/
  33681. /*! no static exports found */
  33682. /***/ (function(module, exports, __webpack_require__) {
  33683. "use strict";
  33684. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  33685. Object.defineProperty(exports, "__esModule", {
  33686. value: true
  33687. });
  33688. exports.default = void 0;
  33689. var _regenerator = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/regenerator */ 29));
  33690. var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/inherits */ 33));
  33691. var _possibleConstructorReturn2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/possibleConstructorReturn */ 34));
  33692. var _getPrototypeOf2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ 35));
  33693. var _asyncToGenerator2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/asyncToGenerator */ 32));
  33694. var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ 23));
  33695. var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ 24));
  33696. var _typeof2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/typeof */ 13));
  33697. function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; }
  33698. function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
  33699. var pattern = {
  33700. email: /^\S+?@\S+?\.\S+?$/,
  33701. idcard: /^[1-9]\d{5}(18|19|([23]\d))\d{2}((0[1-9])|(10|11|12))(([0-2][1-9])|10|20|30|31)\d{3}[0-9Xx]$/,
  33702. url: new RegExp("^(?!mailto:)(?:(?:http|https|ftp)://|//)(?:\\S+(?::\\S*)?@)?(?:(?:(?:[1-9]\\d?|1\\d\\d|2[01]\\d|22[0-3])(?:\\.(?:1?\\d{1,2}|2[0-4]\\d|25[0-5])){2}(?:\\.(?:[0-9]\\d?|1\\d\\d|2[0-4]\\d|25[0-4]))|(?:(?:[a-z\\u00a1-\\uffff0-9]+-*)*[a-z\\u00a1-\\uffff0-9]+)(?:\\.(?:[a-z\\u00a1-\\uffff0-9]+-*)*[a-z\\u00a1-\\uffff0-9]+)*(?:\\.(?:[a-z\\u00a1-\\uffff]{2,})))|localhost)(?::\\d{2,5})?(?:(/|\\?|#)[^\\s]*)?$", 'i')
  33703. };
  33704. var FORMAT_MAPPING = {
  33705. "int": 'integer',
  33706. "bool": 'boolean',
  33707. "double": 'number',
  33708. "long": 'number',
  33709. "password": 'string'
  33710. // "fileurls": 'array'
  33711. };
  33712. function formatMessage(args) {
  33713. var resources = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : '';
  33714. var defaultMessage = ['label'];
  33715. defaultMessage.forEach(function (item) {
  33716. if (args[item] === undefined) {
  33717. args[item] = '';
  33718. }
  33719. });
  33720. var str = resources;
  33721. for (var key in args) {
  33722. var reg = new RegExp('{' + key + '}');
  33723. str = str.replace(reg, args[key]);
  33724. }
  33725. return str;
  33726. }
  33727. function isEmptyValue(value, type) {
  33728. if (value === undefined || value === null) {
  33729. return true;
  33730. }
  33731. if (typeof value === 'string' && !value) {
  33732. return true;
  33733. }
  33734. if (Array.isArray(value) && !value.length) {
  33735. return true;
  33736. }
  33737. if (type === 'object' && !Object.keys(value).length) {
  33738. return true;
  33739. }
  33740. return false;
  33741. }
  33742. var types = {
  33743. integer: function integer(value) {
  33744. return types.number(value) && parseInt(value, 10) === value;
  33745. },
  33746. string: function string(value) {
  33747. return typeof value === 'string';
  33748. },
  33749. number: function number(value) {
  33750. if (isNaN(value)) {
  33751. return false;
  33752. }
  33753. return typeof value === 'number';
  33754. },
  33755. "boolean": function boolean(value) {
  33756. return typeof value === 'boolean';
  33757. },
  33758. "float": function float(value) {
  33759. return types.number(value) && !types.integer(value);
  33760. },
  33761. array: function array(value) {
  33762. return Array.isArray(value);
  33763. },
  33764. object: function object(value) {
  33765. return (0, _typeof2.default)(value) === 'object' && !types.array(value);
  33766. },
  33767. date: function date(value) {
  33768. return value instanceof Date;
  33769. },
  33770. timestamp: function timestamp(value) {
  33771. if (!this.integer(value) || Math.abs(value).toString().length > 16) {
  33772. return false;
  33773. }
  33774. return true;
  33775. },
  33776. file: function file(value) {
  33777. return typeof value.url === 'string';
  33778. },
  33779. email: function email(value) {
  33780. return typeof value === 'string' && !!value.match(pattern.email) && value.length < 255;
  33781. },
  33782. url: function url(value) {
  33783. return typeof value === 'string' && !!value.match(pattern.url);
  33784. },
  33785. pattern: function pattern(reg, value) {
  33786. try {
  33787. return new RegExp(reg).test(value);
  33788. } catch (e) {
  33789. return false;
  33790. }
  33791. },
  33792. method: function method(value) {
  33793. return typeof value === 'function';
  33794. },
  33795. idcard: function idcard(value) {
  33796. return typeof value === 'string' && !!value.match(pattern.idcard);
  33797. },
  33798. 'url-https': function urlHttps(value) {
  33799. return this.url(value) && value.startsWith('https://');
  33800. },
  33801. 'url-scheme': function urlScheme(value) {
  33802. return value.startsWith('://');
  33803. },
  33804. 'url-web': function urlWeb(value) {
  33805. return false;
  33806. }
  33807. };
  33808. var RuleValidator = /*#__PURE__*/function () {
  33809. function RuleValidator(message) {
  33810. (0, _classCallCheck2.default)(this, RuleValidator);
  33811. this._message = message;
  33812. }
  33813. (0, _createClass2.default)(RuleValidator, [{
  33814. key: "validateRule",
  33815. value: function () {
  33816. var _validateRule = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee(fieldKey, fieldValue, value, data, allData) {
  33817. var result, rules, hasRequired, message, i, rule, vt, now, resultExpr;
  33818. return _regenerator.default.wrap(function _callee$(_context) {
  33819. while (1) {
  33820. switch (_context.prev = _context.next) {
  33821. case 0:
  33822. result = null;
  33823. rules = fieldValue.rules;
  33824. hasRequired = rules.findIndex(function (item) {
  33825. return item.required;
  33826. });
  33827. if (!(hasRequired < 0)) {
  33828. _context.next = 8;
  33829. break;
  33830. }
  33831. if (!(value === null || value === undefined)) {
  33832. _context.next = 6;
  33833. break;
  33834. }
  33835. return _context.abrupt("return", result);
  33836. case 6:
  33837. if (!(typeof value === 'string' && !value.length)) {
  33838. _context.next = 8;
  33839. break;
  33840. }
  33841. return _context.abrupt("return", result);
  33842. case 8:
  33843. message = this._message;
  33844. if (!(rules === undefined)) {
  33845. _context.next = 11;
  33846. break;
  33847. }
  33848. return _context.abrupt("return", message['default']);
  33849. case 11:
  33850. i = 0;
  33851. case 12:
  33852. if (!(i < rules.length)) {
  33853. _context.next = 35;
  33854. break;
  33855. }
  33856. rule = rules[i];
  33857. vt = this._getValidateType(rule);
  33858. Object.assign(rule, {
  33859. label: fieldValue.label || "[\"".concat(fieldKey, "\"]")
  33860. });
  33861. if (!RuleValidatorHelper[vt]) {
  33862. _context.next = 20;
  33863. break;
  33864. }
  33865. result = RuleValidatorHelper[vt](rule, value, message);
  33866. if (!(result != null)) {
  33867. _context.next = 20;
  33868. break;
  33869. }
  33870. return _context.abrupt("break", 35);
  33871. case 20:
  33872. if (!rule.validateExpr) {
  33873. _context.next = 26;
  33874. break;
  33875. }
  33876. now = Date.now();
  33877. resultExpr = rule.validateExpr(value, allData, now);
  33878. if (!(resultExpr === false)) {
  33879. _context.next = 26;
  33880. break;
  33881. }
  33882. result = this._getMessage(rule, rule.errorMessage || this._message['default']);
  33883. return _context.abrupt("break", 35);
  33884. case 26:
  33885. if (!rule.validateFunction) {
  33886. _context.next = 32;
  33887. break;
  33888. }
  33889. _context.next = 29;
  33890. return this.validateFunction(rule, value, data, allData, vt);
  33891. case 29:
  33892. result = _context.sent;
  33893. if (!(result !== null)) {
  33894. _context.next = 32;
  33895. break;
  33896. }
  33897. return _context.abrupt("break", 35);
  33898. case 32:
  33899. i++;
  33900. _context.next = 12;
  33901. break;
  33902. case 35:
  33903. if (result !== null) {
  33904. result = message.TAG + result;
  33905. }
  33906. return _context.abrupt("return", result);
  33907. case 37:
  33908. case "end":
  33909. return _context.stop();
  33910. }
  33911. }
  33912. }, _callee, this);
  33913. }));
  33914. function validateRule(_x, _x2, _x3, _x4, _x5) {
  33915. return _validateRule.apply(this, arguments);
  33916. }
  33917. return validateRule;
  33918. }()
  33919. }, {
  33920. key: "validateFunction",
  33921. value: function () {
  33922. var _validateFunction = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee2(rule, value, data, allData, vt) {
  33923. var result, callbackMessage, res;
  33924. return _regenerator.default.wrap(function _callee2$(_context2) {
  33925. while (1) {
  33926. switch (_context2.prev = _context2.next) {
  33927. case 0:
  33928. result = null;
  33929. _context2.prev = 1;
  33930. callbackMessage = null;
  33931. _context2.next = 5;
  33932. return rule.validateFunction(rule, value, allData || data, function (message) {
  33933. callbackMessage = message;
  33934. });
  33935. case 5:
  33936. res = _context2.sent;
  33937. if (callbackMessage || typeof res === 'string' && res || res === false) {
  33938. result = this._getMessage(rule, callbackMessage || res, vt);
  33939. }
  33940. _context2.next = 12;
  33941. break;
  33942. case 9:
  33943. _context2.prev = 9;
  33944. _context2.t0 = _context2["catch"](1);
  33945. result = this._getMessage(rule, _context2.t0.message, vt);
  33946. case 12:
  33947. return _context2.abrupt("return", result);
  33948. case 13:
  33949. case "end":
  33950. return _context2.stop();
  33951. }
  33952. }
  33953. }, _callee2, this, [[1, 9]]);
  33954. }));
  33955. function validateFunction(_x6, _x7, _x8, _x9, _x10) {
  33956. return _validateFunction.apply(this, arguments);
  33957. }
  33958. return validateFunction;
  33959. }()
  33960. }, {
  33961. key: "_getMessage",
  33962. value: function _getMessage(rule, message, vt) {
  33963. return formatMessage(rule, message || rule.errorMessage || this._message[vt] || message['default']);
  33964. }
  33965. }, {
  33966. key: "_getValidateType",
  33967. value: function _getValidateType(rule) {
  33968. var result = '';
  33969. if (rule.required) {
  33970. result = 'required';
  33971. } else if (rule.format) {
  33972. result = 'format';
  33973. } else if (rule.arrayType) {
  33974. result = 'arrayTypeFormat';
  33975. } else if (rule.range) {
  33976. result = 'range';
  33977. } else if (rule.maximum !== undefined || rule.minimum !== undefined) {
  33978. result = 'rangeNumber';
  33979. } else if (rule.maxLength !== undefined || rule.minLength !== undefined) {
  33980. result = 'rangeLength';
  33981. } else if (rule.pattern) {
  33982. result = 'pattern';
  33983. } else if (rule.validateFunction) {
  33984. result = 'validateFunction';
  33985. }
  33986. return result;
  33987. }
  33988. }]);
  33989. return RuleValidator;
  33990. }();
  33991. var RuleValidatorHelper = {
  33992. required: function required(rule, value, message) {
  33993. if (rule.required && isEmptyValue(value, rule.format || (0, _typeof2.default)(value))) {
  33994. return formatMessage(rule, rule.errorMessage || message.required);
  33995. }
  33996. return null;
  33997. },
  33998. range: function range(rule, value, message) {
  33999. var range = rule.range,
  34000. errorMessage = rule.errorMessage;
  34001. var list = new Array(range.length);
  34002. for (var i = 0; i < range.length; i++) {
  34003. var item = range[i];
  34004. if (types.object(item) && item.value !== undefined) {
  34005. list[i] = item.value;
  34006. } else {
  34007. list[i] = item;
  34008. }
  34009. }
  34010. var result = false;
  34011. if (Array.isArray(value)) {
  34012. result = new Set(value.concat(list)).size === list.length;
  34013. } else {
  34014. if (list.indexOf(value) > -1) {
  34015. result = true;
  34016. }
  34017. }
  34018. if (!result) {
  34019. return formatMessage(rule, errorMessage || message['enum']);
  34020. }
  34021. return null;
  34022. },
  34023. rangeNumber: function rangeNumber(rule, value, message) {
  34024. if (!types.number(value)) {
  34025. return formatMessage(rule, rule.errorMessage || message.pattern.mismatch);
  34026. }
  34027. var minimum = rule.minimum,
  34028. maximum = rule.maximum,
  34029. exclusiveMinimum = rule.exclusiveMinimum,
  34030. exclusiveMaximum = rule.exclusiveMaximum;
  34031. var min = exclusiveMinimum ? value <= minimum : value < minimum;
  34032. var max = exclusiveMaximum ? value >= maximum : value > maximum;
  34033. if (minimum !== undefined && min) {
  34034. return formatMessage(rule, rule.errorMessage || message['number'][exclusiveMinimum ? 'exclusiveMinimum' : 'minimum']);
  34035. } else if (maximum !== undefined && max) {
  34036. return formatMessage(rule, rule.errorMessage || message['number'][exclusiveMaximum ? 'exclusiveMaximum' : 'maximum']);
  34037. } else if (minimum !== undefined && maximum !== undefined && (min || max)) {
  34038. return formatMessage(rule, rule.errorMessage || message['number'].range);
  34039. }
  34040. return null;
  34041. },
  34042. rangeLength: function rangeLength(rule, value, message) {
  34043. if (!types.string(value) && !types.array(value)) {
  34044. return formatMessage(rule, rule.errorMessage || message.pattern.mismatch);
  34045. }
  34046. var min = rule.minLength;
  34047. var max = rule.maxLength;
  34048. var val = value.length;
  34049. if (min !== undefined && val < min) {
  34050. return formatMessage(rule, rule.errorMessage || message['length'].minLength);
  34051. } else if (max !== undefined && val > max) {
  34052. return formatMessage(rule, rule.errorMessage || message['length'].maxLength);
  34053. } else if (min !== undefined && max !== undefined && (val < min || val > max)) {
  34054. return formatMessage(rule, rule.errorMessage || message['length'].range);
  34055. }
  34056. return null;
  34057. },
  34058. pattern: function pattern(rule, value, message) {
  34059. if (!types['pattern'](rule.pattern, value)) {
  34060. return formatMessage(rule, rule.errorMessage || message.pattern.mismatch);
  34061. }
  34062. return null;
  34063. },
  34064. format: function format(rule, value, message) {
  34065. var customTypes = Object.keys(types);
  34066. var format = FORMAT_MAPPING[rule.format] ? FORMAT_MAPPING[rule.format] : rule.format || rule.arrayType;
  34067. if (customTypes.indexOf(format) > -1) {
  34068. if (!types[format](value)) {
  34069. return formatMessage(rule, rule.errorMessage || message.typeError);
  34070. }
  34071. }
  34072. return null;
  34073. },
  34074. arrayTypeFormat: function arrayTypeFormat(rule, value, message) {
  34075. if (!Array.isArray(value)) {
  34076. return formatMessage(rule, rule.errorMessage || message.typeError);
  34077. }
  34078. for (var i = 0; i < value.length; i++) {
  34079. var element = value[i];
  34080. var formatResult = this.format(rule, element, message);
  34081. if (formatResult !== null) {
  34082. return formatResult;
  34083. }
  34084. }
  34085. return null;
  34086. }
  34087. };
  34088. var SchemaValidator = /*#__PURE__*/function (_RuleValidator) {
  34089. (0, _inherits2.default)(SchemaValidator, _RuleValidator);
  34090. var _super = _createSuper(SchemaValidator);
  34091. function SchemaValidator(schema, options) {
  34092. var _this;
  34093. (0, _classCallCheck2.default)(this, SchemaValidator);
  34094. _this = _super.call(this, SchemaValidator.message);
  34095. _this._schema = schema;
  34096. _this._options = options || null;
  34097. return _this;
  34098. }
  34099. (0, _createClass2.default)(SchemaValidator, [{
  34100. key: "updateSchema",
  34101. value: function updateSchema(schema) {
  34102. this._schema = schema;
  34103. }
  34104. }, {
  34105. key: "validate",
  34106. value: function () {
  34107. var _validate = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee3(data, allData) {
  34108. var result;
  34109. return _regenerator.default.wrap(function _callee3$(_context3) {
  34110. while (1) {
  34111. switch (_context3.prev = _context3.next) {
  34112. case 0:
  34113. result = this._checkFieldInSchema(data);
  34114. if (result) {
  34115. _context3.next = 5;
  34116. break;
  34117. }
  34118. _context3.next = 4;
  34119. return this.invokeValidate(data, false, allData);
  34120. case 4:
  34121. result = _context3.sent;
  34122. case 5:
  34123. return _context3.abrupt("return", result.length ? result[0] : null);
  34124. case 6:
  34125. case "end":
  34126. return _context3.stop();
  34127. }
  34128. }
  34129. }, _callee3, this);
  34130. }));
  34131. function validate(_x11, _x12) {
  34132. return _validate.apply(this, arguments);
  34133. }
  34134. return validate;
  34135. }()
  34136. }, {
  34137. key: "validateAll",
  34138. value: function () {
  34139. var _validateAll = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee4(data, allData) {
  34140. var result;
  34141. return _regenerator.default.wrap(function _callee4$(_context4) {
  34142. while (1) {
  34143. switch (_context4.prev = _context4.next) {
  34144. case 0:
  34145. result = this._checkFieldInSchema(data);
  34146. if (result) {
  34147. _context4.next = 5;
  34148. break;
  34149. }
  34150. _context4.next = 4;
  34151. return this.invokeValidate(data, true, allData);
  34152. case 4:
  34153. result = _context4.sent;
  34154. case 5:
  34155. return _context4.abrupt("return", result);
  34156. case 6:
  34157. case "end":
  34158. return _context4.stop();
  34159. }
  34160. }
  34161. }, _callee4, this);
  34162. }));
  34163. function validateAll(_x13, _x14) {
  34164. return _validateAll.apply(this, arguments);
  34165. }
  34166. return validateAll;
  34167. }()
  34168. }, {
  34169. key: "validateUpdate",
  34170. value: function () {
  34171. var _validateUpdate = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee5(data, allData) {
  34172. var result;
  34173. return _regenerator.default.wrap(function _callee5$(_context5) {
  34174. while (1) {
  34175. switch (_context5.prev = _context5.next) {
  34176. case 0:
  34177. result = this._checkFieldInSchema(data);
  34178. if (result) {
  34179. _context5.next = 5;
  34180. break;
  34181. }
  34182. _context5.next = 4;
  34183. return this.invokeValidateUpdate(data, false, allData);
  34184. case 4:
  34185. result = _context5.sent;
  34186. case 5:
  34187. return _context5.abrupt("return", result.length ? result[0] : null);
  34188. case 6:
  34189. case "end":
  34190. return _context5.stop();
  34191. }
  34192. }
  34193. }, _callee5, this);
  34194. }));
  34195. function validateUpdate(_x15, _x16) {
  34196. return _validateUpdate.apply(this, arguments);
  34197. }
  34198. return validateUpdate;
  34199. }()
  34200. }, {
  34201. key: "invokeValidate",
  34202. value: function () {
  34203. var _invokeValidate = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee6(data, all, allData) {
  34204. var result, schema, key, value, errorMessage;
  34205. return _regenerator.default.wrap(function _callee6$(_context6) {
  34206. while (1) {
  34207. switch (_context6.prev = _context6.next) {
  34208. case 0:
  34209. result = [];
  34210. schema = this._schema;
  34211. _context6.t0 = _regenerator.default.keys(schema);
  34212. case 3:
  34213. if ((_context6.t1 = _context6.t0()).done) {
  34214. _context6.next = 15;
  34215. break;
  34216. }
  34217. key = _context6.t1.value;
  34218. value = schema[key];
  34219. _context6.next = 8;
  34220. return this.validateRule(key, value, data[key], data, allData);
  34221. case 8:
  34222. errorMessage = _context6.sent;
  34223. if (!(errorMessage != null)) {
  34224. _context6.next = 13;
  34225. break;
  34226. }
  34227. result.push({
  34228. key: key,
  34229. errorMessage: errorMessage
  34230. });
  34231. if (all) {
  34232. _context6.next = 13;
  34233. break;
  34234. }
  34235. return _context6.abrupt("break", 15);
  34236. case 13:
  34237. _context6.next = 3;
  34238. break;
  34239. case 15:
  34240. return _context6.abrupt("return", result);
  34241. case 16:
  34242. case "end":
  34243. return _context6.stop();
  34244. }
  34245. }
  34246. }, _callee6, this);
  34247. }));
  34248. function invokeValidate(_x17, _x18, _x19) {
  34249. return _invokeValidate.apply(this, arguments);
  34250. }
  34251. return invokeValidate;
  34252. }()
  34253. }, {
  34254. key: "invokeValidateUpdate",
  34255. value: function () {
  34256. var _invokeValidateUpdate = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee7(data, all, allData) {
  34257. var result, key, errorMessage;
  34258. return _regenerator.default.wrap(function _callee7$(_context7) {
  34259. while (1) {
  34260. switch (_context7.prev = _context7.next) {
  34261. case 0:
  34262. result = [];
  34263. _context7.t0 = _regenerator.default.keys(data);
  34264. case 2:
  34265. if ((_context7.t1 = _context7.t0()).done) {
  34266. _context7.next = 13;
  34267. break;
  34268. }
  34269. key = _context7.t1.value;
  34270. _context7.next = 6;
  34271. return this.validateRule(key, this._schema[key], data[key], data, allData);
  34272. case 6:
  34273. errorMessage = _context7.sent;
  34274. if (!(errorMessage != null)) {
  34275. _context7.next = 11;
  34276. break;
  34277. }
  34278. result.push({
  34279. key: key,
  34280. errorMessage: errorMessage
  34281. });
  34282. if (all) {
  34283. _context7.next = 11;
  34284. break;
  34285. }
  34286. return _context7.abrupt("break", 13);
  34287. case 11:
  34288. _context7.next = 2;
  34289. break;
  34290. case 13:
  34291. return _context7.abrupt("return", result);
  34292. case 14:
  34293. case "end":
  34294. return _context7.stop();
  34295. }
  34296. }
  34297. }, _callee7, this);
  34298. }));
  34299. function invokeValidateUpdate(_x20, _x21, _x22) {
  34300. return _invokeValidateUpdate.apply(this, arguments);
  34301. }
  34302. return invokeValidateUpdate;
  34303. }()
  34304. }, {
  34305. key: "_checkFieldInSchema",
  34306. value: function _checkFieldInSchema(data) {
  34307. var keys = Object.keys(data);
  34308. var keys2 = Object.keys(this._schema);
  34309. if (new Set(keys.concat(keys2)).size === keys2.length) {
  34310. return '';
  34311. }
  34312. var noExistFields = keys.filter(function (key) {
  34313. return keys2.indexOf(key) < 0;
  34314. });
  34315. var errorMessage = formatMessage({
  34316. field: JSON.stringify(noExistFields)
  34317. }, SchemaValidator.message.TAG + SchemaValidator.message['defaultInvalid']);
  34318. return [{
  34319. key: 'invalid',
  34320. errorMessage: errorMessage
  34321. }];
  34322. }
  34323. }]);
  34324. return SchemaValidator;
  34325. }(RuleValidator);
  34326. function Message() {
  34327. return {
  34328. TAG: "",
  34329. default: '验证错误',
  34330. defaultInvalid: '提交的字段{field}在数据库中并不存在',
  34331. validateFunction: '验证无效',
  34332. required: '{label}必填',
  34333. 'enum': '{label}超出范围',
  34334. timestamp: '{label}格式无效',
  34335. whitespace: '{label}不能为空',
  34336. typeError: '{label}类型无效',
  34337. date: {
  34338. format: '{label}日期{value}格式无效',
  34339. parse: '{label}日期无法解析,{value}无效',
  34340. invalid: '{label}日期{value}无效'
  34341. },
  34342. length: {
  34343. minLength: '{label}长度不能少于{minLength}',
  34344. maxLength: '{label}长度不能超过{maxLength}',
  34345. range: '{label}必须介于{minLength}和{maxLength}之间'
  34346. },
  34347. number: {
  34348. minimum: '{label}不能小于{minimum}',
  34349. maximum: '{label}不能大于{maximum}',
  34350. exclusiveMinimum: '{label}不能小于等于{minimum}',
  34351. exclusiveMaximum: '{label}不能大于等于{maximum}',
  34352. range: '{label}必须介于{minimum}and{maximum}之间'
  34353. },
  34354. pattern: {
  34355. mismatch: '{label}格式不匹配'
  34356. }
  34357. };
  34358. }
  34359. SchemaValidator.message = new Message();
  34360. var _default = SchemaValidator;
  34361. exports.default = _default;
  34362. /***/ }),
  34363. /***/ 875:
  34364. /*!*********************************************************************************************!*\
  34365. !*** /Users/chenpengming/代码/product_wx/uni_modules/uni-forms/components/uni-forms/utils.js ***!
  34366. \*********************************************************************************************/
  34367. /*! no static exports found */
  34368. /***/ (function(module, exports, __webpack_require__) {
  34369. "use strict";
  34370. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  34371. Object.defineProperty(exports, "__esModule", {
  34372. value: true
  34373. });
  34374. exports.typeFilter = exports.type = exports.setDataValue = exports.realName = exports.rawData = exports.objSet = exports.objGet = exports.name2arr = exports.isRequiredField = exports.isRealName = exports.isNumber = exports.isEqual = exports.isBoolean = exports.getValue = exports.getDataValueType = exports.getDataValue = exports.deepCopy = void 0;
  34375. var _typeof2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/typeof */ 13));
  34376. /**
  34377. * 简单处理对象拷贝
  34378. * @param {Obejct} 被拷贝对象
  34379. * @@return {Object} 拷贝对象
  34380. */
  34381. var deepCopy = function deepCopy(val) {
  34382. return JSON.parse(JSON.stringify(val));
  34383. };
  34384. /**
  34385. * 过滤数字类型
  34386. * @param {String} format 数字类型
  34387. * @@return {Boolean} 返回是否为数字类型
  34388. */
  34389. exports.deepCopy = deepCopy;
  34390. var typeFilter = function typeFilter(format) {
  34391. return format === 'int' || format === 'double' || format === 'number' || format === 'timestamp';
  34392. };
  34393. /**
  34394. * 把 value 转换成指定的类型,用于处理初始值,原因是初始值需要入库不能为 undefined
  34395. * @param {String} key 字段名
  34396. * @param {any} value 字段值
  34397. * @param {Object} rules 表单校验规则
  34398. */
  34399. exports.typeFilter = typeFilter;
  34400. var getValue = function getValue(key, value, rules) {
  34401. var isRuleNumType = rules.find(function (val) {
  34402. return val.format && typeFilter(val.format);
  34403. });
  34404. var isRuleBoolType = rules.find(function (val) {
  34405. return val.format && val.format === 'boolean' || val.format === 'bool';
  34406. });
  34407. // 输入类型为 number
  34408. if (!!isRuleNumType) {
  34409. if (!value && value !== 0) {
  34410. value = null;
  34411. } else {
  34412. value = isNumber(Number(value)) ? Number(value) : value;
  34413. }
  34414. }
  34415. // 输入类型为 boolean
  34416. if (!!isRuleBoolType) {
  34417. value = isBoolean(value) ? value : false;
  34418. }
  34419. return value;
  34420. };
  34421. /**
  34422. * 获取表单数据
  34423. * @param {String|Array} name 真实名称,需要使用 realName 获取
  34424. * @param {Object} data 原始数据
  34425. * @param {any} value 需要设置的值
  34426. */
  34427. exports.getValue = getValue;
  34428. var setDataValue = function setDataValue(field, formdata, value) {
  34429. formdata[field] = value;
  34430. return value || '';
  34431. };
  34432. /**
  34433. * 获取表单数据
  34434. * @param {String|Array} field 真实名称,需要使用 realName 获取
  34435. * @param {Object} data 原始数据
  34436. */
  34437. exports.setDataValue = setDataValue;
  34438. var getDataValue = function getDataValue(field, data) {
  34439. return objGet(data, field);
  34440. };
  34441. /**
  34442. * 获取表单类型
  34443. * @param {String|Array} field 真实名称,需要使用 realName 获取
  34444. */
  34445. exports.getDataValue = getDataValue;
  34446. var getDataValueType = function getDataValueType(field, data) {
  34447. var value = getDataValue(field, data);
  34448. return {
  34449. type: type(value),
  34450. value: value
  34451. };
  34452. };
  34453. /**
  34454. * 获取表单可用的真实name
  34455. * @param {String|Array} name 表单name
  34456. * @@return {String} 表单可用的真实name
  34457. */
  34458. exports.getDataValueType = getDataValueType;
  34459. var realName = function realName(name) {
  34460. var data = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  34461. var base_name = _basePath(name);
  34462. if ((0, _typeof2.default)(base_name) === 'object' && Array.isArray(base_name) && base_name.length > 1) {
  34463. var realname = base_name.reduce(function (a, b) {
  34464. return a += "#".concat(b);
  34465. }, '_formdata_');
  34466. return realname;
  34467. }
  34468. return base_name[0] || name;
  34469. };
  34470. /**
  34471. * 判断是否表单可用的真实name
  34472. * @param {String|Array} name 表单name
  34473. * @@return {String} 表单可用的真实name
  34474. */
  34475. exports.realName = realName;
  34476. var isRealName = function isRealName(name) {
  34477. var reg = /^_formdata_#*/;
  34478. return reg.test(name);
  34479. };
  34480. /**
  34481. * 获取表单数据的原始格式
  34482. * @@return {Object|Array} object 需要解析的数据
  34483. */
  34484. exports.isRealName = isRealName;
  34485. var rawData = function rawData() {
  34486. var object = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
  34487. var name = arguments.length > 1 ? arguments[1] : undefined;
  34488. var newData = JSON.parse(JSON.stringify(object));
  34489. var formData = {};
  34490. for (var i in newData) {
  34491. var path = name2arr(i);
  34492. objSet(formData, path, newData[i]);
  34493. }
  34494. return formData;
  34495. };
  34496. /**
  34497. * 真实name还原为 array
  34498. * @param {*} name
  34499. */
  34500. exports.rawData = rawData;
  34501. var name2arr = function name2arr(name) {
  34502. var field = name.replace('_formdata_#', '');
  34503. field = field.split('#').map(function (v) {
  34504. return isNumber(v) ? Number(v) : v;
  34505. });
  34506. return field;
  34507. };
  34508. /**
  34509. * 对象中设置值
  34510. * @param {Object|Array} object 源数据
  34511. * @param {String| Array} path 'a.b.c' 或 ['a',0,'b','c']
  34512. * @param {String} value 需要设置的值
  34513. */
  34514. exports.name2arr = name2arr;
  34515. var objSet = function objSet(object, path, value) {
  34516. if ((0, _typeof2.default)(object) !== 'object') return object;
  34517. _basePath(path).reduce(function (o, k, i, _) {
  34518. if (i === _.length - 1) {
  34519. // 若遍历结束直接赋值
  34520. o[k] = value;
  34521. return null;
  34522. } else if (k in o) {
  34523. // 若存在对应路径,则返回找到的对象,进行下一次遍历
  34524. return o[k];
  34525. } else {
  34526. // 若不存在对应路径,则创建对应对象,若下一路径是数字,新对象赋值为空数组,否则赋值为空对象
  34527. o[k] = /^[0-9]{1,}$/.test(_[i + 1]) ? [] : {};
  34528. return o[k];
  34529. }
  34530. }, object);
  34531. // 返回object
  34532. return object;
  34533. };
  34534. // 处理 path, path有三种形式:'a[0].b.c'、'a.0.b.c' 和 ['a','0','b','c'],需要统一处理成数组,便于后续使用
  34535. exports.objSet = objSet;
  34536. function _basePath(path) {
  34537. // 若是数组,则直接返回
  34538. if (Array.isArray(path)) return path;
  34539. // 若有 '[',']',则替换成将 '[' 替换成 '.',去掉 ']'
  34540. return path.replace(/\[/g, '.').replace(/\]/g, '').split('.');
  34541. }
  34542. /**
  34543. * 从对象中获取值
  34544. * @param {Object|Array} object 源数据
  34545. * @param {String| Array} path 'a.b.c' 或 ['a',0,'b','c']
  34546. * @param {String} defaultVal 如果无法从调用链中获取值的默认值
  34547. */
  34548. var objGet = function objGet(object, path) {
  34549. var defaultVal = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 'undefined';
  34550. // 先将path处理成统一格式
  34551. var newPath = _basePath(path);
  34552. // 递归处理,返回最后结果
  34553. var val = newPath.reduce(function (o, k) {
  34554. return (o || {})[k];
  34555. }, object);
  34556. return !val || val !== undefined ? val : defaultVal;
  34557. };
  34558. /**
  34559. * 是否为 number 类型
  34560. * @param {any} num 需要判断的值
  34561. * @return {Boolean} 是否为 number
  34562. */
  34563. exports.objGet = objGet;
  34564. var isNumber = function isNumber(num) {
  34565. return !isNaN(Number(num));
  34566. };
  34567. /**
  34568. * 是否为 boolean 类型
  34569. * @param {any} bool 需要判断的值
  34570. * @return {Boolean} 是否为 boolean
  34571. */
  34572. exports.isNumber = isNumber;
  34573. var isBoolean = function isBoolean(bool) {
  34574. return typeof bool === 'boolean';
  34575. };
  34576. /**
  34577. * 是否有必填字段
  34578. * @param {Object} rules 规则
  34579. * @return {Boolean} 是否有必填字段
  34580. */
  34581. exports.isBoolean = isBoolean;
  34582. var isRequiredField = function isRequiredField(rules) {
  34583. var isNoField = false;
  34584. for (var i = 0; i < rules.length; i++) {
  34585. var ruleData = rules[i];
  34586. if (ruleData.required) {
  34587. isNoField = true;
  34588. break;
  34589. }
  34590. }
  34591. return isNoField;
  34592. };
  34593. /**
  34594. * 获取数据类型
  34595. * @param {Any} obj 需要获取数据类型的值
  34596. */
  34597. exports.isRequiredField = isRequiredField;
  34598. var type = function type(obj) {
  34599. var class2type = {};
  34600. // 生成class2type映射
  34601. "Boolean Number String Function Array Date RegExp Object Error".split(" ").map(function (item, index) {
  34602. class2type["[object " + item + "]"] = item.toLowerCase();
  34603. });
  34604. if (obj == null) {
  34605. return obj + "";
  34606. }
  34607. return (0, _typeof2.default)(obj) === "object" || typeof obj === "function" ? class2type[Object.prototype.toString.call(obj)] || "object" : (0, _typeof2.default)(obj);
  34608. };
  34609. /**
  34610. * 判断两个值是否相等
  34611. * @param {any} a 值
  34612. * @param {any} b 值
  34613. * @return {Boolean} 是否相等
  34614. */
  34615. exports.type = type;
  34616. var isEqual = function isEqual(a, b) {
  34617. //如果a和b本来就全等
  34618. if (a === b) {
  34619. //判断是否为0和-0
  34620. return a !== 0 || 1 / a === 1 / b;
  34621. }
  34622. //判断是否为null和undefined
  34623. if (a == null || b == null) {
  34624. return a === b;
  34625. }
  34626. //接下来判断a和b的数据类型
  34627. var classNameA = toString.call(a),
  34628. classNameB = toString.call(b);
  34629. //如果数据类型不相等,则返回false
  34630. if (classNameA !== classNameB) {
  34631. return false;
  34632. }
  34633. //如果数据类型相等,再根据不同数据类型分别判断
  34634. switch (classNameA) {
  34635. case '[object RegExp]':
  34636. case '[object String]':
  34637. //进行字符串转换比较
  34638. return '' + a === '' + b;
  34639. case '[object Number]':
  34640. //进行数字转换比较,判断是否为NaN
  34641. if (+a !== +a) {
  34642. return +b !== +b;
  34643. }
  34644. //判断是否为0或-0
  34645. return +a === 0 ? 1 / +a === 1 / b : +a === +b;
  34646. case '[object Date]':
  34647. case '[object Boolean]':
  34648. return +a === +b;
  34649. }
  34650. //如果是对象类型
  34651. if (classNameA == '[object Object]') {
  34652. //获取a和b的属性长度
  34653. var propsA = Object.getOwnPropertyNames(a),
  34654. propsB = Object.getOwnPropertyNames(b);
  34655. if (propsA.length != propsB.length) {
  34656. return false;
  34657. }
  34658. for (var i = 0; i < propsA.length; i++) {
  34659. var propName = propsA[i];
  34660. //如果对应属性对应值不相等,则返回false
  34661. if (a[propName] !== b[propName]) {
  34662. return false;
  34663. }
  34664. }
  34665. return true;
  34666. }
  34667. //如果是数组类型
  34668. if (classNameA == '[object Array]') {
  34669. if (a.toString() == b.toString()) {
  34670. return true;
  34671. }
  34672. return false;
  34673. }
  34674. };
  34675. exports.isEqual = isEqual;
  34676. /***/ }),
  34677. /***/ 899:
  34678. /*!***********************************************************************************!*\
  34679. !*** /Users/chenpengming/代码/product_wx/wxcomponents/weapp/dist/uploader/index.js ***!
  34680. \***********************************************************************************/
  34681. /*! no static exports found */
  34682. /***/ (function(module, exports, __webpack_require__) {
  34683. "use strict";
  34684. /* WEBPACK VAR INJECTION */(function(wx) {
  34685. var _component = __webpack_require__(/*! ../common/component */ 805);
  34686. var _utils = __webpack_require__(/*! ./utils */ 900);
  34687. var _shared = __webpack_require__(/*! ./shared */ 901);
  34688. var _validator = __webpack_require__(/*! ../common/validator */ 811);
  34689. (0, _component.VantComponent)({
  34690. props: Object.assign(Object.assign(Object.assign(Object.assign({
  34691. disabled: Boolean,
  34692. multiple: Boolean,
  34693. uploadText: String,
  34694. useBeforeRead: Boolean,
  34695. afterRead: null,
  34696. beforeRead: null,
  34697. previewSize: {
  34698. type: null,
  34699. value: 80
  34700. },
  34701. name: {
  34702. type: null,
  34703. value: ''
  34704. },
  34705. accept: {
  34706. type: String,
  34707. value: 'image'
  34708. },
  34709. fileList: {
  34710. type: Array,
  34711. value: [],
  34712. observer: 'formatFileList'
  34713. },
  34714. maxSize: {
  34715. type: Number,
  34716. value: Number.MAX_VALUE
  34717. },
  34718. maxCount: {
  34719. type: Number,
  34720. value: 100
  34721. },
  34722. deletable: {
  34723. type: Boolean,
  34724. value: true
  34725. },
  34726. showUpload: {
  34727. type: Boolean,
  34728. value: true
  34729. },
  34730. previewImage: {
  34731. type: Boolean,
  34732. value: true
  34733. },
  34734. previewFullImage: {
  34735. type: Boolean,
  34736. value: true
  34737. },
  34738. imageFit: {
  34739. type: String,
  34740. value: 'scaleToFill'
  34741. },
  34742. uploadIcon: {
  34743. type: String,
  34744. value: 'photograph'
  34745. }
  34746. }, _shared.imageProps), _shared.videoProps), _shared.mediaProps), _shared.messageFileProps),
  34747. data: {
  34748. lists: [],
  34749. isInCount: true
  34750. },
  34751. methods: {
  34752. formatFileList: function formatFileList() {
  34753. var _this$data = this.data,
  34754. _this$data$fileList = _this$data.fileList,
  34755. fileList = _this$data$fileList === void 0 ? [] : _this$data$fileList,
  34756. maxCount = _this$data.maxCount;
  34757. var lists = fileList.map(function (item) {
  34758. return Object.assign(Object.assign({}, item), {
  34759. isImage: (0, _utils.isImageFile)(item),
  34760. isVideo: (0, _utils.isVideoFile)(item),
  34761. deletable: (0, _validator.isBoolean)(item.deletable) ? item.deletable : true
  34762. });
  34763. });
  34764. this.setData({
  34765. lists: lists,
  34766. isInCount: lists.length < maxCount
  34767. });
  34768. },
  34769. getDetail: function getDetail(index) {
  34770. return {
  34771. name: this.data.name,
  34772. index: index == null ? this.data.fileList.length : index
  34773. };
  34774. },
  34775. startUpload: function startUpload() {
  34776. var _this = this;
  34777. var _this$data2 = this.data,
  34778. maxCount = _this$data2.maxCount,
  34779. multiple = _this$data2.multiple,
  34780. lists = _this$data2.lists,
  34781. disabled = _this$data2.disabled;
  34782. if (disabled) return;
  34783. (0, _utils.chooseFile)(Object.assign(Object.assign({}, this.data), {
  34784. maxCount: maxCount - lists.length
  34785. })).then(function (res) {
  34786. _this.onBeforeRead(multiple ? res : res[0]);
  34787. }).catch(function (error) {
  34788. _this.$emit('error', error);
  34789. });
  34790. },
  34791. onBeforeRead: function onBeforeRead(file) {
  34792. var _this2 = this;
  34793. var _this$data3 = this.data,
  34794. beforeRead = _this$data3.beforeRead,
  34795. useBeforeRead = _this$data3.useBeforeRead;
  34796. var res = true;
  34797. if (typeof beforeRead === 'function') {
  34798. res = beforeRead(file, this.getDetail());
  34799. }
  34800. if (useBeforeRead) {
  34801. res = new Promise(function (resolve, reject) {
  34802. _this2.$emit('before-read', Object.assign(Object.assign({
  34803. file: file
  34804. }, _this2.getDetail()), {
  34805. callback: function callback(ok) {
  34806. ok ? resolve() : reject();
  34807. }
  34808. }));
  34809. });
  34810. }
  34811. if (!res) {
  34812. return;
  34813. }
  34814. if ((0, _validator.isPromise)(res)) {
  34815. res.then(function (data) {
  34816. return _this2.onAfterRead(data || file);
  34817. });
  34818. } else {
  34819. this.onAfterRead(file);
  34820. }
  34821. },
  34822. onAfterRead: function onAfterRead(file) {
  34823. var _this$data4 = this.data,
  34824. maxSize = _this$data4.maxSize,
  34825. afterRead = _this$data4.afterRead;
  34826. var oversize = Array.isArray(file) ? file.some(function (item) {
  34827. return item.size > maxSize;
  34828. }) : file.size > maxSize;
  34829. if (oversize) {
  34830. this.$emit('oversize', Object.assign({
  34831. file: file
  34832. }, this.getDetail()));
  34833. return;
  34834. }
  34835. if (typeof afterRead === 'function') {
  34836. afterRead(file, this.getDetail());
  34837. }
  34838. this.$emit('after-read', Object.assign({
  34839. file: file
  34840. }, this.getDetail()));
  34841. },
  34842. deleteItem: function deleteItem(event) {
  34843. var index = event.currentTarget.dataset.index;
  34844. this.$emit('delete', Object.assign(Object.assign({}, this.getDetail(index)), {
  34845. file: this.data.fileList[index]
  34846. }));
  34847. },
  34848. onPreviewImage: function onPreviewImage(event) {
  34849. if (!this.data.previewFullImage) return;
  34850. var index = event.currentTarget.dataset.index;
  34851. var _this$data5 = this.data,
  34852. lists = _this$data5.lists,
  34853. showmenu = _this$data5.showmenu;
  34854. var item = lists[index];
  34855. wx.previewImage({
  34856. urls: lists.filter(function (item) {
  34857. return (0, _utils.isImageFile)(item);
  34858. }).map(function (item) {
  34859. return item.url;
  34860. }),
  34861. current: item.url,
  34862. showmenu: showmenu,
  34863. fail: function fail() {
  34864. wx.showToast({
  34865. title: '预览图片失败',
  34866. icon: 'none'
  34867. });
  34868. }
  34869. });
  34870. },
  34871. onPreviewVideo: function onPreviewVideo(event) {
  34872. if (!this.data.previewFullImage) return;
  34873. var index = event.currentTarget.dataset.index;
  34874. var lists = this.data.lists;
  34875. var sources = [];
  34876. var current = lists.reduce(function (sum, cur, curIndex) {
  34877. if (!(0, _utils.isVideoFile)(cur)) {
  34878. return sum;
  34879. }
  34880. sources.push(Object.assign(Object.assign({}, cur), {
  34881. type: 'video'
  34882. }));
  34883. if (curIndex < index) {
  34884. sum++;
  34885. }
  34886. return sum;
  34887. }, 0);
  34888. wx.previewMedia({
  34889. sources: sources,
  34890. current: current,
  34891. fail: function fail() {
  34892. wx.showToast({
  34893. title: '预览视频失败',
  34894. icon: 'none'
  34895. });
  34896. }
  34897. });
  34898. },
  34899. onPreviewFile: function onPreviewFile(event) {
  34900. var index = event.currentTarget.dataset.index;
  34901. wx.openDocument({
  34902. filePath: this.data.lists[index].url,
  34903. showMenu: true
  34904. });
  34905. },
  34906. onClickPreview: function onClickPreview(event) {
  34907. var index = event.currentTarget.dataset.index;
  34908. var item = this.data.lists[index];
  34909. this.$emit('click-preview', Object.assign(Object.assign({}, item), this.getDetail(index)));
  34910. }
  34911. }
  34912. });
  34913. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/wx.js */ 1)["default"]))
  34914. /***/ }),
  34915. /***/ 9:
  34916. /*!*****************************************************************!*\
  34917. !*** ./node_modules/@babel/runtime/helpers/arrayLikeToArray.js ***!
  34918. \*****************************************************************/
  34919. /*! no static exports found */
  34920. /***/ (function(module, exports) {
  34921. function _arrayLikeToArray(arr, len) {
  34922. if (len == null || len > arr.length) len = arr.length;
  34923. for (var i = 0, arr2 = new Array(len); i < len; i++) {
  34924. arr2[i] = arr[i];
  34925. }
  34926. return arr2;
  34927. }
  34928. module.exports = _arrayLikeToArray, module.exports.__esModule = true, module.exports["default"] = module.exports;
  34929. /***/ }),
  34930. /***/ 900:
  34931. /*!***********************************************************************************!*\
  34932. !*** /Users/chenpengming/代码/product_wx/wxcomponents/weapp/dist/uploader/utils.js ***!
  34933. \***********************************************************************************/
  34934. /*! no static exports found */
  34935. /***/ (function(module, exports, __webpack_require__) {
  34936. "use strict";
  34937. /* WEBPACK VAR INJECTION */(function(wx) {
  34938. Object.defineProperty(exports, "__esModule", {
  34939. value: true
  34940. });
  34941. exports.chooseFile = chooseFile;
  34942. exports.isImageFile = isImageFile;
  34943. exports.isVideoFile = isVideoFile;
  34944. var _utils = __webpack_require__(/*! ../common/utils */ 810);
  34945. var _validator = __webpack_require__(/*! ../common/validator */ 811);
  34946. function isImageFile(item) {
  34947. if (item.isImage != null) {
  34948. return item.isImage;
  34949. }
  34950. if (item.type) {
  34951. return item.type === 'image';
  34952. }
  34953. if (item.url) {
  34954. return (0, _validator.isImageUrl)(item.url);
  34955. }
  34956. return false;
  34957. }
  34958. function isVideoFile(item) {
  34959. if (item.isVideo != null) {
  34960. return item.isVideo;
  34961. }
  34962. if (item.type) {
  34963. return item.type === 'video';
  34964. }
  34965. if (item.url) {
  34966. return (0, _validator.isVideoUrl)(item.url);
  34967. }
  34968. return false;
  34969. }
  34970. function formatImage(res) {
  34971. return res.tempFiles.map(function (item) {
  34972. return Object.assign(Object.assign({}, (0, _utils.pickExclude)(item, ['path'])), {
  34973. type: 'image',
  34974. url: item.tempFilePath,
  34975. thumb: item.tempFilePath
  34976. });
  34977. });
  34978. }
  34979. function formatVideo(res) {
  34980. return [Object.assign(Object.assign({}, (0, _utils.pickExclude)(res, ['tempFilePath', 'thumbTempFilePath', 'errMsg'])), {
  34981. type: 'video',
  34982. url: res.tempFilePath,
  34983. thumb: res.thumbTempFilePath
  34984. })];
  34985. }
  34986. function formatMedia(res) {
  34987. return res.tempFiles.map(function (item) {
  34988. return Object.assign(Object.assign({}, (0, _utils.pickExclude)(item, ['fileType', 'thumbTempFilePath', 'tempFilePath'])), {
  34989. type: res.type,
  34990. url: item.tempFilePath,
  34991. thumb: res.type === 'video' ? item.thumbTempFilePath : item.tempFilePath
  34992. });
  34993. });
  34994. }
  34995. function formatFile(res) {
  34996. return res.tempFiles.map(function (item) {
  34997. return Object.assign(Object.assign({}, (0, _utils.pickExclude)(item, ['path'])), {
  34998. url: item.path
  34999. });
  35000. });
  35001. }
  35002. function chooseFile(_ref) {
  35003. var accept = _ref.accept,
  35004. multiple = _ref.multiple,
  35005. capture = _ref.capture,
  35006. compressed = _ref.compressed,
  35007. maxDuration = _ref.maxDuration,
  35008. sizeType = _ref.sizeType,
  35009. camera = _ref.camera,
  35010. maxCount = _ref.maxCount,
  35011. mediaType = _ref.mediaType,
  35012. extension = _ref.extension;
  35013. return new Promise(function (resolve, reject) {
  35014. switch (accept) {
  35015. case 'image':
  35016. wx.chooseMedia({
  35017. count: multiple ? Math.min(maxCount, 9) : 1,
  35018. mediaType: ['image'],
  35019. sourceType: capture,
  35020. maxDuration: maxDuration,
  35021. sizeType: sizeType,
  35022. camera: camera,
  35023. success: function success(res) {
  35024. return resolve(formatImage(res));
  35025. },
  35026. fail: reject
  35027. });
  35028. break;
  35029. case 'media':
  35030. wx.chooseMedia({
  35031. count: multiple ? Math.min(maxCount, 9) : 1,
  35032. mediaType: mediaType,
  35033. sourceType: capture,
  35034. maxDuration: maxDuration,
  35035. sizeType: sizeType,
  35036. camera: camera,
  35037. success: function success(res) {
  35038. return resolve(formatMedia(res));
  35039. },
  35040. fail: reject
  35041. });
  35042. break;
  35043. case 'video':
  35044. wx.chooseVideo({
  35045. sourceType: capture,
  35046. compressed: compressed,
  35047. maxDuration: maxDuration,
  35048. camera: camera,
  35049. success: function success(res) {
  35050. return resolve(formatVideo(res));
  35051. },
  35052. fail: reject
  35053. });
  35054. break;
  35055. default:
  35056. wx.chooseMessageFile(Object.assign(Object.assign({
  35057. count: multiple ? maxCount : 1,
  35058. type: accept
  35059. }, extension ? {
  35060. extension: extension
  35061. } : {}), {
  35062. success: function success(res) {
  35063. return resolve(formatFile(res));
  35064. },
  35065. fail: reject
  35066. }));
  35067. break;
  35068. }
  35069. });
  35070. }
  35071. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/wx.js */ 1)["default"]))
  35072. /***/ }),
  35073. /***/ 901:
  35074. /*!************************************************************************************!*\
  35075. !*** /Users/chenpengming/代码/product_wx/wxcomponents/weapp/dist/uploader/shared.js ***!
  35076. \************************************************************************************/
  35077. /*! no static exports found */
  35078. /***/ (function(module, exports, __webpack_require__) {
  35079. "use strict";
  35080. Object.defineProperty(exports, "__esModule", {
  35081. value: true
  35082. });
  35083. exports.videoProps = exports.messageFileProps = exports.mediaProps = exports.imageProps = void 0;
  35084. // props for image
  35085. var imageProps = {
  35086. sizeType: {
  35087. type: Array,
  35088. value: ['original', 'compressed']
  35089. },
  35090. capture: {
  35091. type: Array,
  35092. value: ['album', 'camera']
  35093. },
  35094. showmenu: {
  35095. type: Boolean,
  35096. value: true
  35097. }
  35098. };
  35099. // props for video
  35100. exports.imageProps = imageProps;
  35101. var videoProps = {
  35102. capture: {
  35103. type: Array,
  35104. value: ['album', 'camera']
  35105. },
  35106. compressed: {
  35107. type: Boolean,
  35108. value: true
  35109. },
  35110. maxDuration: {
  35111. type: Number,
  35112. value: 60
  35113. },
  35114. camera: {
  35115. type: String,
  35116. value: 'back'
  35117. }
  35118. };
  35119. // props for media
  35120. exports.videoProps = videoProps;
  35121. var mediaProps = {
  35122. capture: {
  35123. type: Array,
  35124. value: ['album', 'camera']
  35125. },
  35126. mediaType: {
  35127. type: Array,
  35128. value: ['image', 'video']
  35129. },
  35130. maxDuration: {
  35131. type: Number,
  35132. value: 60
  35133. },
  35134. camera: {
  35135. type: String,
  35136. value: 'back'
  35137. }
  35138. };
  35139. // props for file
  35140. exports.mediaProps = mediaProps;
  35141. var messageFileProps = {
  35142. extension: null
  35143. };
  35144. exports.messageFileProps = messageFileProps;
  35145. /***/ }),
  35146. /***/ 907:
  35147. /*!******************************************************************************!*\
  35148. !*** /Users/chenpengming/代码/product_wx/wxcomponents/weapp/dist/tab/index.js ***!
  35149. \******************************************************************************/
  35150. /*! no static exports found */
  35151. /***/ (function(module, exports, __webpack_require__) {
  35152. "use strict";
  35153. var _relation = __webpack_require__(/*! ../common/relation */ 807);
  35154. var _component = __webpack_require__(/*! ../common/component */ 805);
  35155. (0, _component.VantComponent)({
  35156. relation: (0, _relation.useParent)('tabs'),
  35157. props: {
  35158. dot: {
  35159. type: Boolean,
  35160. observer: 'update'
  35161. },
  35162. info: {
  35163. type: null,
  35164. observer: 'update'
  35165. },
  35166. title: {
  35167. type: String,
  35168. observer: 'update'
  35169. },
  35170. disabled: {
  35171. type: Boolean,
  35172. observer: 'update'
  35173. },
  35174. titleStyle: {
  35175. type: String,
  35176. observer: 'update'
  35177. },
  35178. name: {
  35179. type: null,
  35180. value: ''
  35181. }
  35182. },
  35183. data: {
  35184. active: false
  35185. },
  35186. methods: {
  35187. getComputedName: function getComputedName() {
  35188. if (this.data.name !== '') {
  35189. return this.data.name;
  35190. }
  35191. return this.index;
  35192. },
  35193. updateRender: function updateRender(active, parent) {
  35194. var parentData = parent.data;
  35195. this.inited = this.inited || active;
  35196. this.setData({
  35197. active: active,
  35198. shouldRender: this.inited || !parentData.lazyRender,
  35199. shouldShow: active || parentData.animated
  35200. });
  35201. },
  35202. update: function update() {
  35203. if (this.parent) {
  35204. this.parent.updateTabs();
  35205. }
  35206. }
  35207. }
  35208. });
  35209. /***/ }),
  35210. /***/ 908:
  35211. /*!*******************************************************************************!*\
  35212. !*** /Users/chenpengming/代码/product_wx/wxcomponents/weapp/dist/tabs/index.js ***!
  35213. \*******************************************************************************/
  35214. /*! no static exports found */
  35215. /***/ (function(module, exports, __webpack_require__) {
  35216. "use strict";
  35217. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  35218. var _slicedToArray2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/slicedToArray */ 5));
  35219. var _component = __webpack_require__(/*! ../common/component */ 805);
  35220. var _touch = __webpack_require__(/*! ../mixins/touch */ 909);
  35221. var _utils = __webpack_require__(/*! ../common/utils */ 810);
  35222. var _validator = __webpack_require__(/*! ../common/validator */ 811);
  35223. var _relation = __webpack_require__(/*! ../common/relation */ 807);
  35224. (0, _component.VantComponent)({
  35225. mixins: [_touch.touch],
  35226. classes: ['nav-class', 'tab-class', 'tab-active-class', 'line-class', 'wrap-class'],
  35227. relation: (0, _relation.useChildren)('tab', function () {
  35228. this.updateTabs();
  35229. }),
  35230. props: {
  35231. sticky: Boolean,
  35232. border: Boolean,
  35233. swipeable: Boolean,
  35234. titleActiveColor: String,
  35235. titleInactiveColor: String,
  35236. color: String,
  35237. animated: {
  35238. type: Boolean,
  35239. observer: function observer() {
  35240. var _this = this;
  35241. this.children.forEach(function (child, index) {
  35242. return child.updateRender(index === _this.data.currentIndex, _this);
  35243. });
  35244. }
  35245. },
  35246. lineWidth: {
  35247. type: null,
  35248. value: 40,
  35249. observer: 'resize'
  35250. },
  35251. lineHeight: {
  35252. type: null,
  35253. value: -1
  35254. },
  35255. active: {
  35256. type: null,
  35257. value: 0,
  35258. observer: function observer(name) {
  35259. if (name !== this.getCurrentName()) {
  35260. this.setCurrentIndexByName(name);
  35261. }
  35262. }
  35263. },
  35264. type: {
  35265. type: String,
  35266. value: 'line'
  35267. },
  35268. ellipsis: {
  35269. type: Boolean,
  35270. value: true
  35271. },
  35272. duration: {
  35273. type: Number,
  35274. value: 0.3
  35275. },
  35276. zIndex: {
  35277. type: Number,
  35278. value: 1
  35279. },
  35280. swipeThreshold: {
  35281. type: Number,
  35282. value: 5,
  35283. observer: function observer(value) {
  35284. this.setData({
  35285. scrollable: this.children.length > value || !this.data.ellipsis
  35286. });
  35287. }
  35288. },
  35289. offsetTop: {
  35290. type: Number,
  35291. value: 0
  35292. },
  35293. lazyRender: {
  35294. type: Boolean,
  35295. value: true
  35296. },
  35297. useBeforeChange: {
  35298. type: Boolean,
  35299. value: false
  35300. }
  35301. },
  35302. data: {
  35303. tabs: [],
  35304. scrollLeft: 0,
  35305. scrollable: false,
  35306. currentIndex: 0,
  35307. container: null,
  35308. skipTransition: true,
  35309. scrollWithAnimation: false,
  35310. lineOffsetLeft: 0,
  35311. inited: false
  35312. },
  35313. mounted: function mounted() {
  35314. var _this2 = this;
  35315. (0, _utils.requestAnimationFrame)(function () {
  35316. _this2.swiping = true;
  35317. _this2.setData({
  35318. container: function container() {
  35319. return _this2.createSelectorQuery().select('.van-tabs');
  35320. }
  35321. });
  35322. _this2.resize();
  35323. _this2.scrollIntoView();
  35324. });
  35325. },
  35326. methods: {
  35327. updateTabs: function updateTabs() {
  35328. var _this$children = this.children,
  35329. children = _this$children === void 0 ? [] : _this$children,
  35330. data = this.data;
  35331. this.setData({
  35332. tabs: children.map(function (child) {
  35333. return child.data;
  35334. }),
  35335. scrollable: this.children.length > data.swipeThreshold || !data.ellipsis
  35336. });
  35337. this.setCurrentIndexByName(data.active || this.getCurrentName());
  35338. },
  35339. trigger: function trigger(eventName, child) {
  35340. var currentIndex = this.data.currentIndex;
  35341. var data = this.getChildData(currentIndex, child);
  35342. if (!(0, _validator.isDef)(data)) {
  35343. return;
  35344. }
  35345. this.$emit(eventName, data);
  35346. },
  35347. onTap: function onTap(event) {
  35348. var _this3 = this;
  35349. var index = event.currentTarget.dataset.index;
  35350. var child = this.children[index];
  35351. if (child.data.disabled) {
  35352. this.trigger('disabled', child);
  35353. return;
  35354. }
  35355. this.onBeforeChange(index).then(function () {
  35356. _this3.setCurrentIndex(index);
  35357. (0, _utils.nextTick)(function () {
  35358. _this3.trigger('click');
  35359. });
  35360. });
  35361. },
  35362. // correct the index of active tab
  35363. setCurrentIndexByName: function setCurrentIndexByName(name) {
  35364. var _this$children2 = this.children,
  35365. children = _this$children2 === void 0 ? [] : _this$children2;
  35366. var matched = children.filter(function (child) {
  35367. return child.getComputedName() === name;
  35368. });
  35369. if (matched.length) {
  35370. this.setCurrentIndex(matched[0].index);
  35371. }
  35372. },
  35373. setCurrentIndex: function setCurrentIndex(currentIndex) {
  35374. var _this4 = this;
  35375. var data = this.data,
  35376. _this$children3 = this.children,
  35377. children = _this$children3 === void 0 ? [] : _this$children3;
  35378. if (!(0, _validator.isDef)(currentIndex) || currentIndex >= children.length || currentIndex < 0) {
  35379. return;
  35380. }
  35381. (0, _utils.groupSetData)(this, function () {
  35382. children.forEach(function (item, index) {
  35383. var active = index === currentIndex;
  35384. if (active !== item.data.active || !item.inited) {
  35385. item.updateRender(active, _this4);
  35386. }
  35387. });
  35388. });
  35389. if (currentIndex === data.currentIndex) {
  35390. return;
  35391. }
  35392. var shouldEmitChange = data.currentIndex !== null;
  35393. this.setData({
  35394. currentIndex: currentIndex
  35395. });
  35396. (0, _utils.requestAnimationFrame)(function () {
  35397. _this4.resize();
  35398. _this4.scrollIntoView();
  35399. });
  35400. (0, _utils.nextTick)(function () {
  35401. _this4.trigger('input');
  35402. if (shouldEmitChange) {
  35403. _this4.trigger('change');
  35404. }
  35405. });
  35406. },
  35407. getCurrentName: function getCurrentName() {
  35408. var activeTab = this.children[this.data.currentIndex];
  35409. if (activeTab) {
  35410. return activeTab.getComputedName();
  35411. }
  35412. },
  35413. resize: function resize() {
  35414. var _this5 = this;
  35415. if (this.data.type !== 'line') {
  35416. return;
  35417. }
  35418. var _this$data = this.data,
  35419. currentIndex = _this$data.currentIndex,
  35420. ellipsis = _this$data.ellipsis,
  35421. skipTransition = _this$data.skipTransition;
  35422. Promise.all([(0, _utils.getAllRect)(this, '.van-tab'), (0, _utils.getRect)(this, '.van-tabs__line')]).then(function (_ref) {
  35423. var _ref2 = (0, _slicedToArray2.default)(_ref, 2),
  35424. _ref2$ = _ref2[0],
  35425. rects = _ref2$ === void 0 ? [] : _ref2$,
  35426. lineRect = _ref2[1];
  35427. var rect = rects[currentIndex];
  35428. if (rect == null) {
  35429. return;
  35430. }
  35431. var lineOffsetLeft = rects.slice(0, currentIndex).reduce(function (prev, curr) {
  35432. return prev + curr.width;
  35433. }, 0);
  35434. lineOffsetLeft += (rect.width - lineRect.width) / 2 + (ellipsis ? 0 : 8);
  35435. _this5.setData({
  35436. lineOffsetLeft: lineOffsetLeft,
  35437. inited: true
  35438. });
  35439. _this5.swiping = true;
  35440. if (skipTransition) {
  35441. // waiting transition end
  35442. setTimeout(function () {
  35443. _this5.setData({
  35444. skipTransition: false
  35445. });
  35446. }, _this5.data.duration);
  35447. }
  35448. });
  35449. },
  35450. // scroll active tab into view
  35451. scrollIntoView: function scrollIntoView() {
  35452. var _this6 = this;
  35453. var _this$data2 = this.data,
  35454. currentIndex = _this$data2.currentIndex,
  35455. scrollable = _this$data2.scrollable,
  35456. scrollWithAnimation = _this$data2.scrollWithAnimation;
  35457. if (!scrollable) {
  35458. return;
  35459. }
  35460. Promise.all([(0, _utils.getAllRect)(this, '.van-tab'), (0, _utils.getRect)(this, '.van-tabs__nav')]).then(function (_ref3) {
  35461. var _ref4 = (0, _slicedToArray2.default)(_ref3, 2),
  35462. tabRects = _ref4[0],
  35463. navRect = _ref4[1];
  35464. var tabRect = tabRects[currentIndex];
  35465. var offsetLeft = tabRects.slice(0, currentIndex).reduce(function (prev, curr) {
  35466. return prev + curr.width;
  35467. }, 0);
  35468. _this6.setData({
  35469. scrollLeft: offsetLeft - (navRect.width - tabRect.width) / 2
  35470. });
  35471. if (!scrollWithAnimation) {
  35472. (0, _utils.nextTick)(function () {
  35473. _this6.setData({
  35474. scrollWithAnimation: true
  35475. });
  35476. });
  35477. }
  35478. });
  35479. },
  35480. onTouchScroll: function onTouchScroll(event) {
  35481. this.$emit('scroll', event.detail);
  35482. },
  35483. onTouchStart: function onTouchStart(event) {
  35484. if (!this.data.swipeable) return;
  35485. this.swiping = true;
  35486. this.touchStart(event);
  35487. },
  35488. onTouchMove: function onTouchMove(event) {
  35489. if (!this.data.swipeable || !this.swiping) return;
  35490. this.touchMove(event);
  35491. },
  35492. // watch swipe touch end
  35493. onTouchEnd: function onTouchEnd() {
  35494. var _this7 = this;
  35495. if (!this.data.swipeable || !this.swiping) return;
  35496. var direction = this.direction,
  35497. deltaX = this.deltaX,
  35498. offsetX = this.offsetX;
  35499. var minSwipeDistance = 50;
  35500. if (direction === 'horizontal' && offsetX >= minSwipeDistance) {
  35501. var index = this.getAvaiableTab(deltaX);
  35502. if (index !== -1) {
  35503. this.onBeforeChange(index).then(function () {
  35504. return _this7.setCurrentIndex(index);
  35505. });
  35506. }
  35507. }
  35508. this.swiping = false;
  35509. },
  35510. getAvaiableTab: function getAvaiableTab(direction) {
  35511. var _this$data3 = this.data,
  35512. tabs = _this$data3.tabs,
  35513. currentIndex = _this$data3.currentIndex;
  35514. var step = direction > 0 ? -1 : 1;
  35515. for (var i = step; currentIndex + i < tabs.length && currentIndex + i >= 0; i += step) {
  35516. var index = currentIndex + i;
  35517. if (index >= 0 && index < tabs.length && tabs[index] && !tabs[index].disabled) {
  35518. return index;
  35519. }
  35520. }
  35521. return -1;
  35522. },
  35523. onBeforeChange: function onBeforeChange(index) {
  35524. var _this8 = this;
  35525. var useBeforeChange = this.data.useBeforeChange;
  35526. if (!useBeforeChange) {
  35527. return Promise.resolve();
  35528. }
  35529. return new Promise(function (resolve, reject) {
  35530. _this8.$emit('before-change', Object.assign(Object.assign({}, _this8.getChildData(index)), {
  35531. callback: function callback(status) {
  35532. return status ? resolve() : reject();
  35533. }
  35534. }));
  35535. });
  35536. },
  35537. getChildData: function getChildData(index, child) {
  35538. var currentChild = child || this.children[index];
  35539. if (!(0, _validator.isDef)(currentChild)) {
  35540. return;
  35541. }
  35542. return {
  35543. index: currentChild.index,
  35544. name: currentChild.getComputedName(),
  35545. title: currentChild.data.title
  35546. };
  35547. }
  35548. }
  35549. });
  35550. /***/ }),
  35551. /***/ 909:
  35552. /*!*********************************************************************************!*\
  35553. !*** /Users/chenpengming/代码/product_wx/wxcomponents/weapp/dist/mixins/touch.js ***!
  35554. \*********************************************************************************/
  35555. /*! no static exports found */
  35556. /***/ (function(module, exports, __webpack_require__) {
  35557. "use strict";
  35558. Object.defineProperty(exports, "__esModule", {
  35559. value: true
  35560. });
  35561. exports.touch = void 0;
  35562. // @ts-nocheck
  35563. var MIN_DISTANCE = 10;
  35564. function getDirection(x, y) {
  35565. if (x > y && x > MIN_DISTANCE) {
  35566. return 'horizontal';
  35567. }
  35568. if (y > x && y > MIN_DISTANCE) {
  35569. return 'vertical';
  35570. }
  35571. return '';
  35572. }
  35573. var touch = Behavior({
  35574. methods: {
  35575. resetTouchStatus: function resetTouchStatus() {
  35576. this.direction = '';
  35577. this.deltaX = 0;
  35578. this.deltaY = 0;
  35579. this.offsetX = 0;
  35580. this.offsetY = 0;
  35581. },
  35582. touchStart: function touchStart(event) {
  35583. this.resetTouchStatus();
  35584. var touch = event.touches[0];
  35585. this.startX = touch.clientX;
  35586. this.startY = touch.clientY;
  35587. },
  35588. touchMove: function touchMove(event) {
  35589. var touch = event.touches[0];
  35590. this.deltaX = touch.clientX - this.startX;
  35591. this.deltaY = touch.clientY - this.startY;
  35592. this.offsetX = Math.abs(this.deltaX);
  35593. this.offsetY = Math.abs(this.deltaY);
  35594. this.direction = this.direction || getDirection(this.offsetX, this.offsetY);
  35595. }
  35596. }
  35597. });
  35598. exports.touch = touch;
  35599. /***/ }),
  35600. /***/ 910:
  35601. /*!********************************************************************************!*\
  35602. !*** /Users/chenpengming/代码/product_wx/wxcomponents/weapp/dist/empty/index.js ***!
  35603. \********************************************************************************/
  35604. /*! no static exports found */
  35605. /***/ (function(module, exports, __webpack_require__) {
  35606. "use strict";
  35607. var _component = __webpack_require__(/*! ../common/component */ 805);
  35608. (0, _component.VantComponent)({
  35609. props: {
  35610. description: String,
  35611. image: {
  35612. type: String,
  35613. value: 'default'
  35614. }
  35615. }
  35616. });
  35617. /***/ }),
  35618. /***/ 916:
  35619. /*!************************************************************************************************************!*\
  35620. !*** /Users/chenpengming/代码/product_wx/uni_modules/uni-search-bar/components/uni-search-bar/i18n/index.js ***!
  35621. \************************************************************************************************************/
  35622. /*! no static exports found */
  35623. /***/ (function(module, exports, __webpack_require__) {
  35624. "use strict";
  35625. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  35626. Object.defineProperty(exports, "__esModule", {
  35627. value: true
  35628. });
  35629. exports.default = void 0;
  35630. var _en = _interopRequireDefault(__webpack_require__(/*! ./en.json */ 917));
  35631. var _zhHans = _interopRequireDefault(__webpack_require__(/*! ./zh-Hans.json */ 918));
  35632. var _zhHant = _interopRequireDefault(__webpack_require__(/*! ./zh-Hant.json */ 919));
  35633. var _default = {
  35634. en: _en.default,
  35635. 'zh-Hans': _zhHans.default,
  35636. 'zh-Hant': _zhHant.default
  35637. };
  35638. exports.default = _default;
  35639. /***/ }),
  35640. /***/ 917:
  35641. /*!***********************************************************************************************************!*\
  35642. !*** /Users/chenpengming/代码/product_wx/uni_modules/uni-search-bar/components/uni-search-bar/i18n/en.json ***!
  35643. \***********************************************************************************************************/
  35644. /*! exports provided: uni-search-bar.cancel, uni-search-bar.placeholder, default */
  35645. /***/ (function(module) {
  35646. module.exports = JSON.parse("{\"uni-search-bar.cancel\":\"cancel\",\"uni-search-bar.placeholder\":\"Search enter content\"}");
  35647. /***/ }),
  35648. /***/ 918:
  35649. /*!****************************************************************************************************************!*\
  35650. !*** /Users/chenpengming/代码/product_wx/uni_modules/uni-search-bar/components/uni-search-bar/i18n/zh-Hans.json ***!
  35651. \****************************************************************************************************************/
  35652. /*! exports provided: uni-search-bar.cancel, uni-search-bar.placeholder, default */
  35653. /***/ (function(module) {
  35654. module.exports = JSON.parse("{\"uni-search-bar.cancel\":\"cancel\",\"uni-search-bar.placeholder\":\"请输入搜索内容\"}");
  35655. /***/ }),
  35656. /***/ 919:
  35657. /*!****************************************************************************************************************!*\
  35658. !*** /Users/chenpengming/代码/product_wx/uni_modules/uni-search-bar/components/uni-search-bar/i18n/zh-Hant.json ***!
  35659. \****************************************************************************************************************/
  35660. /*! exports provided: uni-search-bar.cancel, uni-search-bar.placeholder, default */
  35661. /***/ (function(module) {
  35662. module.exports = JSON.parse("{\"uni-search-bar.cancel\":\"cancel\",\"uni-search-bar.placeholder\":\"請輸入搜索內容\"}");
  35663. /***/ }),
  35664. /***/ 922:
  35665. /*!******************************************************************************!*\
  35666. !*** /Users/chenpengming/代码/product_wx/wxcomponents/weapp/dist/row/index.js ***!
  35667. \******************************************************************************/
  35668. /*! no static exports found */
  35669. /***/ (function(module, exports, __webpack_require__) {
  35670. "use strict";
  35671. var _component = __webpack_require__(/*! ../common/component */ 805);
  35672. var _relation = __webpack_require__(/*! ../common/relation */ 807);
  35673. (0, _component.VantComponent)({
  35674. relation: (0, _relation.useChildren)('col', function (target) {
  35675. var gutter = this.data.gutter;
  35676. if (gutter) {
  35677. target.setData({
  35678. gutter: gutter
  35679. });
  35680. }
  35681. }),
  35682. props: {
  35683. gutter: {
  35684. type: Number,
  35685. observer: 'setGutter'
  35686. }
  35687. },
  35688. methods: {
  35689. setGutter: function setGutter() {
  35690. var _this = this;
  35691. this.children.forEach(function (col) {
  35692. col.setData(_this.data);
  35693. });
  35694. }
  35695. }
  35696. });
  35697. /***/ }),
  35698. /***/ 923:
  35699. /*!******************************************************************************!*\
  35700. !*** /Users/chenpengming/代码/product_wx/wxcomponents/weapp/dist/col/index.js ***!
  35701. \******************************************************************************/
  35702. /*! no static exports found */
  35703. /***/ (function(module, exports, __webpack_require__) {
  35704. "use strict";
  35705. var _relation = __webpack_require__(/*! ../common/relation */ 807);
  35706. var _component = __webpack_require__(/*! ../common/component */ 805);
  35707. (0, _component.VantComponent)({
  35708. relation: (0, _relation.useParent)('row'),
  35709. props: {
  35710. span: Number,
  35711. offset: Number
  35712. }
  35713. });
  35714. /***/ }),
  35715. /***/ 974:
  35716. /*!*********************************************************************************!*\
  35717. !*** /Users/chenpengming/代码/product_wx/wxcomponents/weapp/dist/picker/index.js ***!
  35718. \*********************************************************************************/
  35719. /*! no static exports found */
  35720. /***/ (function(module, exports, __webpack_require__) {
  35721. "use strict";
  35722. var _component = __webpack_require__(/*! ../common/component */ 805);
  35723. var _shared = __webpack_require__(/*! ./shared */ 975);
  35724. (0, _component.VantComponent)({
  35725. classes: ['active-class', 'toolbar-class', 'column-class'],
  35726. props: Object.assign(Object.assign({}, _shared.pickerProps), {
  35727. valueKey: {
  35728. type: String,
  35729. value: 'text'
  35730. },
  35731. toolbarPosition: {
  35732. type: String,
  35733. value: 'top'
  35734. },
  35735. defaultIndex: {
  35736. type: Number,
  35737. value: 0
  35738. },
  35739. columns: {
  35740. type: Array,
  35741. value: [],
  35742. observer: function observer() {
  35743. var columns = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
  35744. this.simple = columns.length && !columns[0].values;
  35745. if (Array.isArray(this.children) && this.children.length) {
  35746. this.setColumns().catch(function () {});
  35747. }
  35748. }
  35749. }
  35750. }),
  35751. beforeCreate: function beforeCreate() {
  35752. var _this = this;
  35753. Object.defineProperty(this, 'children', {
  35754. get: function get() {
  35755. return _this.selectAllComponents('.van-picker__column') || [];
  35756. }
  35757. });
  35758. },
  35759. methods: {
  35760. noop: function noop() {},
  35761. setColumns: function setColumns() {
  35762. var _this2 = this;
  35763. var data = this.data;
  35764. var columns = this.simple ? [{
  35765. values: data.columns
  35766. }] : data.columns;
  35767. var stack = columns.map(function (column, index) {
  35768. return _this2.setColumnValues(index, column.values);
  35769. });
  35770. return Promise.all(stack);
  35771. },
  35772. emit: function emit(event) {
  35773. var type = event.currentTarget.dataset.type;
  35774. if (this.simple) {
  35775. this.$emit(type, {
  35776. value: this.getColumnValue(0),
  35777. index: this.getColumnIndex(0)
  35778. });
  35779. } else {
  35780. this.$emit(type, {
  35781. value: this.getValues(),
  35782. index: this.getIndexes()
  35783. });
  35784. }
  35785. },
  35786. onChange: function onChange(event) {
  35787. if (this.simple) {
  35788. this.$emit('change', {
  35789. picker: this,
  35790. value: this.getColumnValue(0),
  35791. index: this.getColumnIndex(0)
  35792. });
  35793. } else {
  35794. this.$emit('change', {
  35795. picker: this,
  35796. value: this.getValues(),
  35797. index: event.currentTarget.dataset.index
  35798. });
  35799. }
  35800. },
  35801. // get column instance by index
  35802. getColumn: function getColumn(index) {
  35803. return this.children[index];
  35804. },
  35805. // get column value by index
  35806. getColumnValue: function getColumnValue(index) {
  35807. var column = this.getColumn(index);
  35808. return column && column.getValue();
  35809. },
  35810. // set column value by index
  35811. setColumnValue: function setColumnValue(index, value) {
  35812. var column = this.getColumn(index);
  35813. if (column == null) {
  35814. return Promise.reject(new Error('setColumnValue: 对应列不存在'));
  35815. }
  35816. return column.setValue(value);
  35817. },
  35818. // get column option index by column index
  35819. getColumnIndex: function getColumnIndex(columnIndex) {
  35820. return (this.getColumn(columnIndex) || {}).data.currentIndex;
  35821. },
  35822. // set column option index by column index
  35823. setColumnIndex: function setColumnIndex(columnIndex, optionIndex) {
  35824. var column = this.getColumn(columnIndex);
  35825. if (column == null) {
  35826. return Promise.reject(new Error('setColumnIndex: 对应列不存在'));
  35827. }
  35828. return column.setIndex(optionIndex);
  35829. },
  35830. // get options of column by index
  35831. getColumnValues: function getColumnValues(index) {
  35832. return (this.children[index] || {}).data.options;
  35833. },
  35834. // set options of column by index
  35835. setColumnValues: function setColumnValues(index, options) {
  35836. var needReset = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true;
  35837. var column = this.children[index];
  35838. if (column == null) {
  35839. return Promise.reject(new Error('setColumnValues: 对应列不存在'));
  35840. }
  35841. var isSame = JSON.stringify(column.data.options) === JSON.stringify(options);
  35842. if (isSame) {
  35843. return Promise.resolve();
  35844. }
  35845. return column.set({
  35846. options: options
  35847. }).then(function () {
  35848. if (needReset) {
  35849. column.setIndex(0);
  35850. }
  35851. });
  35852. },
  35853. // get values of all columns
  35854. getValues: function getValues() {
  35855. return this.children.map(function (child) {
  35856. return child.getValue();
  35857. });
  35858. },
  35859. // set values of all columns
  35860. setValues: function setValues(values) {
  35861. var _this3 = this;
  35862. var stack = values.map(function (value, index) {
  35863. return _this3.setColumnValue(index, value);
  35864. });
  35865. return Promise.all(stack);
  35866. },
  35867. // get indexes of all columns
  35868. getIndexes: function getIndexes() {
  35869. return this.children.map(function (child) {
  35870. return child.data.currentIndex;
  35871. });
  35872. },
  35873. // set indexes of all columns
  35874. setIndexes: function setIndexes(indexes) {
  35875. var _this4 = this;
  35876. var stack = indexes.map(function (optionIndex, columnIndex) {
  35877. return _this4.setColumnIndex(columnIndex, optionIndex);
  35878. });
  35879. return Promise.all(stack);
  35880. }
  35881. }
  35882. });
  35883. /***/ }),
  35884. /***/ 975:
  35885. /*!**********************************************************************************!*\
  35886. !*** /Users/chenpengming/代码/product_wx/wxcomponents/weapp/dist/picker/shared.js ***!
  35887. \**********************************************************************************/
  35888. /*! no static exports found */
  35889. /***/ (function(module, exports, __webpack_require__) {
  35890. "use strict";
  35891. Object.defineProperty(exports, "__esModule", {
  35892. value: true
  35893. });
  35894. exports.pickerProps = void 0;
  35895. var pickerProps = {
  35896. title: String,
  35897. loading: Boolean,
  35898. showToolbar: Boolean,
  35899. cancelButtonText: {
  35900. type: String,
  35901. value: '取消'
  35902. },
  35903. confirmButtonText: {
  35904. type: String,
  35905. value: '确认'
  35906. },
  35907. visibleItemCount: {
  35908. type: Number,
  35909. value: 6
  35910. },
  35911. itemHeight: {
  35912. type: Number,
  35913. value: 44
  35914. }
  35915. };
  35916. exports.pickerProps = pickerProps;
  35917. /***/ })
  35918. }]);
  35919. //# sourceMappingURL=../../.sourcemap/mp-weixin/common/vendor.js.map