vendor.js 1.0 MB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174141751417614177141781417914180141811418214183141841418514186141871418814189141901419114192141931419414195141961419714198141991420014201142021420314204142051420614207142081420914210142111421214213142141421514216142171421814219142201422114222142231422414225142261422714228142291423014231142321423314234142351423614237142381423914240142411424214243142441424514246142471424814249142501425114252142531425414255142561425714258142591426014261142621426314264142651426614267142681426914270142711427214273142741427514276142771427814279142801428114282142831428414285142861428714288142891429014291142921429314294142951429614297142981429914300143011430214303143041430514306143071430814309143101431114312143131431414315143161431714318143191432014321143221432314324143251432614327143281432914330143311433214333143341433514336143371433814339143401434114342143431434414345143461434714348143491435014351143521435314354143551435614357143581435914360143611436214363143641436514366143671436814369143701437114372143731437414375143761437714378143791438014381143821438314384143851438614387143881438914390143911439214393143941439514396143971439814399144001440114402144031440414405144061440714408144091441014411144121441314414144151441614417144181441914420144211442214423144241442514426144271442814429144301443114432144331443414435144361443714438144391444014441144421444314444144451444614447144481444914450144511445214453144541445514456144571445814459144601446114462144631446414465144661446714468144691447014471144721447314474144751447614477144781447914480144811448214483144841448514486144871448814489144901449114492144931449414495144961449714498144991450014501145021450314504145051450614507145081450914510145111451214513145141451514516145171451814519145201452114522145231452414525145261452714528145291453014531145321453314534145351453614537145381453914540145411454214543145441454514546145471454814549145501455114552145531455414555145561455714558145591456014561145621456314564145651456614567145681456914570145711457214573145741457514576145771457814579145801458114582145831458414585145861458714588145891459014591145921459314594145951459614597145981459914600146011460214603146041460514606146071460814609146101461114612146131461414615146161461714618146191462014621146221462314624146251462614627146281462914630146311463214633146341463514636146371463814639146401464114642146431464414645146461464714648146491465014651146521465314654146551465614657146581465914660146611466214663146641466514666146671466814669146701467114672146731467414675146761467714678146791468014681146821468314684146851468614687146881468914690146911469214693146941469514696146971469814699147001470114702147031470414705147061470714708147091471014711147121471314714147151471614717147181471914720147211472214723147241472514726147271472814729147301473114732147331473414735147361473714738147391474014741147421474314744147451474614747147481474914750147511475214753147541475514756147571475814759147601476114762147631476414765147661476714768147691477014771147721477314774147751477614777147781477914780147811478214783147841478514786147871478814789147901479114792147931479414795147961479714798147991480014801148021480314804148051480614807148081480914810148111481214813148141481514816148171481814819148201482114822148231482414825148261482714828148291483014831148321483314834148351483614837148381483914840148411484214843148441484514846148471484814849148501485114852148531485414855148561485714858148591486014861148621486314864148651486614867148681486914870148711487214873148741487514876148771487814879148801488114882148831488414885148861488714888148891489014891148921489314894148951489614897148981489914900149011490214903149041490514906149071490814909149101491114912149131491414915149161491714918149191492014921149221492314924149251492614927149281492914930149311493214933149341493514936149371493814939149401494114942149431494414945149461494714948149491495014951149521495314954149551495614957149581495914960149611496214963149641496514966149671496814969149701497114972149731497414975149761497714978149791498014981149821498314984149851498614987149881498914990149911499214993149941499514996149971499814999150001500115002150031500415005150061500715008150091501015011150121501315014150151501615017150181501915020150211502215023150241502515026150271502815029150301503115032150331503415035150361503715038150391504015041150421504315044150451504615047150481504915050150511505215053150541505515056150571505815059150601506115062150631506415065150661506715068150691507015071150721507315074150751507615077150781507915080150811508215083150841508515086150871508815089150901509115092150931509415095150961509715098150991510015101151021510315104151051510615107151081510915110151111511215113151141511515116151171511815119151201512115122151231512415125151261512715128151291513015131151321513315134151351513615137151381513915140151411514215143151441514515146151471514815149151501515115152151531515415155151561515715158151591516015161151621516315164151651516615167151681516915170151711517215173151741517515176151771517815179151801518115182151831518415185151861518715188151891519015191151921519315194151951519615197151981519915200152011520215203152041520515206152071520815209152101521115212152131521415215152161521715218152191522015221152221522315224152251522615227152281522915230152311523215233152341523515236152371523815239152401524115242152431524415245152461524715248152491525015251152521525315254152551525615257152581525915260152611526215263152641526515266152671526815269152701527115272152731527415275152761527715278152791528015281152821528315284152851528615287152881528915290152911529215293152941529515296152971529815299153001530115302153031530415305153061530715308153091531015311153121531315314153151531615317153181531915320153211532215323153241532515326153271532815329153301533115332153331533415335153361533715338153391534015341153421534315344153451534615347153481534915350153511535215353153541535515356153571535815359153601536115362153631536415365153661536715368153691537015371153721537315374153751537615377153781537915380153811538215383153841538515386153871538815389153901539115392153931539415395153961539715398153991540015401154021540315404154051540615407154081540915410154111541215413154141541515416154171541815419154201542115422154231542415425154261542715428154291543015431154321543315434154351543615437154381543915440154411544215443154441544515446154471544815449154501545115452154531545415455154561545715458154591546015461154621546315464154651546615467154681546915470154711547215473154741547515476154771547815479154801548115482154831548415485154861548715488154891549015491154921549315494154951549615497154981549915500155011550215503155041550515506155071550815509155101551115512155131551415515155161551715518155191552015521155221552315524155251552615527155281552915530155311553215533155341553515536155371553815539155401554115542155431554415545155461554715548155491555015551155521555315554155551555615557155581555915560155611556215563155641556515566155671556815569155701557115572155731557415575155761557715578155791558015581155821558315584155851558615587155881558915590155911559215593155941559515596155971559815599156001560115602156031560415605156061560715608156091561015611156121561315614156151561615617156181561915620156211562215623156241562515626156271562815629156301563115632156331563415635156361563715638156391564015641156421564315644156451564615647156481564915650156511565215653156541565515656156571565815659156601566115662156631566415665156661566715668156691567015671156721567315674156751567615677156781567915680156811568215683156841568515686156871568815689156901569115692156931569415695156961569715698156991570015701157021570315704157051570615707157081570915710157111571215713157141571515716157171571815719157201572115722157231572415725157261572715728157291573015731157321573315734157351573615737157381573915740157411574215743157441574515746157471574815749157501575115752157531575415755157561575715758157591576015761157621576315764157651576615767157681576915770157711577215773157741577515776157771577815779157801578115782157831578415785157861578715788157891579015791157921579315794157951579615797157981579915800158011580215803158041580515806158071580815809158101581115812158131581415815158161581715818158191582015821158221582315824158251582615827158281582915830158311583215833158341583515836158371583815839158401584115842158431584415845158461584715848158491585015851158521585315854158551585615857158581585915860158611586215863158641586515866158671586815869158701587115872158731587415875158761587715878158791588015881158821588315884158851588615887158881588915890158911589215893158941589515896158971589815899159001590115902159031590415905159061590715908159091591015911159121591315914159151591615917159181591915920159211592215923159241592515926159271592815929159301593115932159331593415935159361593715938159391594015941159421594315944159451594615947159481594915950159511595215953159541595515956159571595815959159601596115962159631596415965159661596715968159691597015971159721597315974159751597615977159781597915980159811598215983159841598515986159871598815989159901599115992159931599415995159961599715998159991600016001160021600316004160051600616007160081600916010160111601216013160141601516016160171601816019160201602116022160231602416025160261602716028160291603016031160321603316034160351603616037160381603916040160411604216043160441604516046160471604816049160501605116052160531605416055160561605716058160591606016061160621606316064160651606616067160681606916070160711607216073160741607516076160771607816079160801608116082160831608416085160861608716088160891609016091160921609316094160951609616097160981609916100161011610216103161041610516106161071610816109161101611116112161131611416115161161611716118161191612016121161221612316124161251612616127161281612916130161311613216133161341613516136161371613816139161401614116142161431614416145161461614716148161491615016151161521615316154161551615616157161581615916160161611616216163161641616516166161671616816169161701617116172161731617416175161761617716178161791618016181161821618316184161851618616187161881618916190161911619216193161941619516196161971619816199162001620116202162031620416205162061620716208162091621016211162121621316214162151621616217162181621916220162211622216223162241622516226162271622816229162301623116232162331623416235162361623716238162391624016241162421624316244162451624616247162481624916250162511625216253162541625516256162571625816259162601626116262162631626416265162661626716268162691627016271162721627316274162751627616277162781627916280162811628216283162841628516286162871628816289162901629116292162931629416295162961629716298162991630016301163021630316304163051630616307163081630916310163111631216313163141631516316163171631816319163201632116322163231632416325163261632716328163291633016331163321633316334163351633616337163381633916340163411634216343163441634516346163471634816349163501635116352163531635416355163561635716358163591636016361163621636316364163651636616367163681636916370163711637216373163741637516376163771637816379163801638116382163831638416385163861638716388163891639016391163921639316394163951639616397163981639916400164011640216403164041640516406164071640816409164101641116412164131641416415164161641716418164191642016421164221642316424164251642616427164281642916430164311643216433164341643516436164371643816439164401644116442164431644416445164461644716448164491645016451164521645316454164551645616457164581645916460164611646216463164641646516466164671646816469164701647116472164731647416475164761647716478164791648016481164821648316484164851648616487164881648916490164911649216493164941649516496164971649816499165001650116502165031650416505165061650716508165091651016511165121651316514165151651616517165181651916520165211652216523165241652516526165271652816529165301653116532165331653416535165361653716538165391654016541165421654316544165451654616547165481654916550165511655216553165541655516556165571655816559165601656116562165631656416565165661656716568165691657016571165721657316574165751657616577165781657916580165811658216583165841658516586165871658816589165901659116592165931659416595165961659716598165991660016601166021660316604166051660616607166081660916610166111661216613166141661516616166171661816619166201662116622166231662416625166261662716628166291663016631166321663316634166351663616637166381663916640166411664216643166441664516646166471664816649166501665116652166531665416655166561665716658166591666016661166621666316664166651666616667166681666916670166711667216673166741667516676166771667816679166801668116682166831668416685166861668716688166891669016691166921669316694166951669616697166981669916700167011670216703167041670516706167071670816709167101671116712167131671416715167161671716718167191672016721167221672316724167251672616727167281672916730167311673216733167341673516736167371673816739167401674116742167431674416745167461674716748167491675016751167521675316754167551675616757167581675916760167611676216763167641676516766167671676816769167701677116772167731677416775167761677716778167791678016781167821678316784167851678616787167881678916790167911679216793167941679516796167971679816799168001680116802168031680416805168061680716808168091681016811168121681316814168151681616817168181681916820168211682216823168241682516826168271682816829168301683116832168331683416835168361683716838168391684016841168421684316844168451684616847168481684916850168511685216853168541685516856168571685816859168601686116862168631686416865168661686716868168691687016871168721687316874168751687616877168781687916880168811688216883168841688516886168871688816889168901689116892168931689416895168961689716898168991690016901169021690316904169051690616907169081690916910169111691216913169141691516916169171691816919169201692116922169231692416925169261692716928169291693016931169321693316934169351693616937169381693916940169411694216943169441694516946169471694816949169501695116952169531695416955169561695716958169591696016961169621696316964169651696616967169681696916970169711697216973169741697516976169771697816979169801698116982169831698416985169861698716988169891699016991169921699316994169951699616997169981699917000170011700217003170041700517006170071700817009170101701117012170131701417015170161701717018170191702017021170221702317024170251702617027170281702917030170311703217033170341703517036170371703817039170401704117042170431704417045170461704717048170491705017051170521705317054170551705617057170581705917060170611706217063170641706517066170671706817069170701707117072170731707417075170761707717078170791708017081170821708317084170851708617087170881708917090170911709217093170941709517096170971709817099171001710117102171031710417105171061710717108171091711017111171121711317114171151711617117171181711917120171211712217123171241712517126171271712817129171301713117132171331713417135171361713717138171391714017141171421714317144171451714617147171481714917150171511715217153171541715517156171571715817159171601716117162171631716417165171661716717168171691717017171171721717317174171751717617177171781717917180171811718217183171841718517186171871718817189171901719117192171931719417195171961719717198171991720017201172021720317204172051720617207172081720917210172111721217213172141721517216172171721817219172201722117222172231722417225172261722717228172291723017231172321723317234172351723617237172381723917240172411724217243172441724517246172471724817249172501725117252172531725417255172561725717258172591726017261172621726317264172651726617267172681726917270172711727217273172741727517276172771727817279172801728117282172831728417285172861728717288172891729017291172921729317294172951729617297172981729917300173011730217303173041730517306173071730817309173101731117312173131731417315173161731717318173191732017321173221732317324173251732617327173281732917330173311733217333173341733517336173371733817339173401734117342173431734417345173461734717348173491735017351173521735317354173551735617357173581735917360173611736217363173641736517366173671736817369173701737117372173731737417375173761737717378173791738017381173821738317384173851738617387173881738917390173911739217393173941739517396173971739817399174001740117402174031740417405174061740717408174091741017411174121741317414174151741617417174181741917420174211742217423174241742517426174271742817429174301743117432174331743417435174361743717438174391744017441174421744317444174451744617447174481744917450174511745217453174541745517456174571745817459174601746117462174631746417465174661746717468174691747017471174721747317474174751747617477174781747917480174811748217483174841748517486174871748817489174901749117492174931749417495174961749717498174991750017501175021750317504175051750617507175081750917510175111751217513175141751517516175171751817519175201752117522175231752417525175261752717528175291753017531175321753317534175351753617537175381753917540175411754217543175441754517546175471754817549175501755117552175531755417555175561755717558175591756017561175621756317564175651756617567175681756917570175711757217573175741757517576175771757817579175801758117582175831758417585175861758717588175891759017591175921759317594175951759617597175981759917600176011760217603176041760517606176071760817609176101761117612176131761417615176161761717618176191762017621176221762317624176251762617627176281762917630176311763217633176341763517636176371763817639176401764117642176431764417645176461764717648176491765017651176521765317654176551765617657176581765917660176611766217663176641766517666176671766817669176701767117672176731767417675176761767717678176791768017681176821768317684176851768617687176881768917690176911769217693176941769517696176971769817699177001770117702177031770417705177061770717708177091771017711177121771317714177151771617717177181771917720177211772217723177241772517726177271772817729177301773117732177331773417735177361773717738177391774017741177421774317744177451774617747177481774917750177511775217753177541775517756177571775817759177601776117762177631776417765177661776717768177691777017771177721777317774177751777617777177781777917780177811778217783177841778517786177871778817789177901779117792177931779417795177961779717798177991780017801178021780317804178051780617807178081780917810178111781217813178141781517816178171781817819178201782117822178231782417825178261782717828178291783017831178321783317834178351783617837178381783917840178411784217843178441784517846178471784817849178501785117852178531785417855178561785717858178591786017861178621786317864178651786617867178681786917870178711787217873178741787517876178771787817879178801788117882178831788417885178861788717888178891789017891178921789317894178951789617897178981789917900179011790217903179041790517906179071790817909179101791117912179131791417915179161791717918179191792017921179221792317924179251792617927179281792917930179311793217933179341793517936179371793817939179401794117942179431794417945179461794717948179491795017951179521795317954179551795617957179581795917960179611796217963179641796517966179671796817969179701797117972179731797417975179761797717978179791798017981179821798317984179851798617987179881798917990179911799217993179941799517996179971799817999180001800118002180031800418005180061800718008180091801018011180121801318014180151801618017180181801918020180211802218023180241802518026180271802818029180301803118032180331803418035180361803718038180391804018041180421804318044180451804618047180481804918050180511805218053180541805518056180571805818059180601806118062180631806418065180661806718068180691807018071180721807318074180751807618077180781807918080180811808218083180841808518086180871808818089180901809118092180931809418095180961809718098180991810018101181021810318104181051810618107181081810918110181111811218113181141811518116181171811818119181201812118122181231812418125181261812718128181291813018131181321813318134181351813618137181381813918140181411814218143181441814518146181471814818149181501815118152181531815418155181561815718158181591816018161181621816318164181651816618167181681816918170181711817218173181741817518176181771817818179181801818118182181831818418185181861818718188181891819018191181921819318194181951819618197181981819918200182011820218203182041820518206182071820818209182101821118212182131821418215182161821718218182191822018221182221822318224182251822618227182281822918230182311823218233182341823518236182371823818239182401824118242182431824418245182461824718248182491825018251182521825318254182551825618257182581825918260182611826218263182641826518266182671826818269182701827118272182731827418275182761827718278182791828018281182821828318284182851828618287182881828918290182911829218293182941829518296182971829818299183001830118302183031830418305183061830718308183091831018311183121831318314183151831618317183181831918320183211832218323183241832518326183271832818329183301833118332183331833418335183361833718338183391834018341183421834318344183451834618347183481834918350183511835218353183541835518356183571835818359183601836118362183631836418365183661836718368183691837018371183721837318374183751837618377183781837918380183811838218383183841838518386183871838818389183901839118392183931839418395183961839718398183991840018401184021840318404184051840618407184081840918410184111841218413184141841518416184171841818419184201842118422184231842418425184261842718428184291843018431184321843318434184351843618437184381843918440184411844218443184441844518446184471844818449184501845118452184531845418455184561845718458184591846018461184621846318464184651846618467184681846918470184711847218473184741847518476184771847818479184801848118482184831848418485184861848718488184891849018491184921849318494184951849618497184981849918500185011850218503185041850518506185071850818509185101851118512185131851418515185161851718518185191852018521185221852318524185251852618527185281852918530185311853218533185341853518536185371853818539185401854118542185431854418545185461854718548185491855018551185521855318554185551855618557185581855918560185611856218563185641856518566185671856818569185701857118572185731857418575185761857718578185791858018581185821858318584185851858618587185881858918590185911859218593185941859518596185971859818599186001860118602186031860418605186061860718608186091861018611186121861318614186151861618617186181861918620186211862218623186241862518626186271862818629186301863118632186331863418635186361863718638186391864018641186421864318644186451864618647186481864918650186511865218653186541865518656186571865818659186601866118662186631866418665186661866718668186691867018671186721867318674186751867618677186781867918680186811868218683186841868518686186871868818689186901869118692186931869418695186961869718698186991870018701187021870318704187051870618707187081870918710187111871218713187141871518716187171871818719187201872118722187231872418725187261872718728187291873018731187321873318734187351873618737187381873918740187411874218743187441874518746187471874818749187501875118752187531875418755187561875718758187591876018761187621876318764187651876618767187681876918770187711877218773187741877518776187771877818779187801878118782187831878418785187861878718788187891879018791187921879318794187951879618797187981879918800188011880218803188041880518806188071880818809188101881118812188131881418815188161881718818188191882018821188221882318824188251882618827188281882918830188311883218833188341883518836188371883818839188401884118842188431884418845188461884718848188491885018851188521885318854188551885618857188581885918860188611886218863188641886518866188671886818869188701887118872188731887418875188761887718878188791888018881188821888318884188851888618887188881888918890188911889218893188941889518896188971889818899189001890118902189031890418905189061890718908189091891018911189121891318914189151891618917189181891918920189211892218923189241892518926189271892818929189301893118932189331893418935189361893718938189391894018941189421894318944189451894618947189481894918950189511895218953189541895518956189571895818959189601896118962189631896418965189661896718968189691897018971189721897318974189751897618977189781897918980189811898218983189841898518986189871898818989189901899118992189931899418995189961899718998189991900019001190021900319004190051900619007190081900919010190111901219013190141901519016190171901819019190201902119022190231902419025190261902719028190291903019031190321903319034190351903619037190381903919040190411904219043190441904519046190471904819049190501905119052190531905419055190561905719058190591906019061190621906319064190651906619067190681906919070190711907219073190741907519076190771907819079190801908119082190831908419085190861908719088190891909019091190921909319094190951909619097190981909919100191011910219103191041910519106191071910819109191101911119112191131911419115191161911719118191191912019121191221912319124191251912619127191281912919130191311913219133191341913519136191371913819139191401914119142191431914419145191461914719148191491915019151191521915319154191551915619157191581915919160191611916219163191641916519166191671916819169191701917119172191731917419175191761917719178191791918019181191821918319184191851918619187191881918919190191911919219193191941919519196191971919819199192001920119202192031920419205192061920719208192091921019211192121921319214192151921619217192181921919220192211922219223192241922519226192271922819229192301923119232192331923419235192361923719238192391924019241192421924319244192451924619247192481924919250192511925219253192541925519256192571925819259192601926119262192631926419265192661926719268192691927019271192721927319274192751927619277192781927919280192811928219283192841928519286192871928819289192901929119292192931929419295192961929719298192991930019301193021930319304193051930619307193081930919310193111931219313193141931519316193171931819319193201932119322193231932419325193261932719328193291933019331193321933319334193351933619337193381933919340193411934219343193441934519346193471934819349193501935119352193531935419355193561935719358193591936019361193621936319364193651936619367193681936919370193711937219373193741937519376193771937819379193801938119382193831938419385193861938719388193891939019391193921939319394193951939619397193981939919400194011940219403194041940519406194071940819409194101941119412194131941419415194161941719418194191942019421194221942319424194251942619427194281942919430194311943219433194341943519436194371943819439194401944119442194431944419445194461944719448194491945019451194521945319454194551945619457194581945919460194611946219463194641946519466194671946819469194701947119472194731947419475194761947719478194791948019481194821948319484194851948619487194881948919490194911949219493194941949519496194971949819499195001950119502195031950419505195061950719508195091951019511195121951319514195151951619517195181951919520195211952219523195241952519526195271952819529195301953119532195331953419535195361953719538195391954019541195421954319544195451954619547195481954919550195511955219553195541955519556195571955819559195601956119562195631956419565195661956719568195691957019571195721957319574195751957619577195781957919580195811958219583195841958519586195871958819589195901959119592195931959419595195961959719598195991960019601196021960319604196051960619607196081960919610196111961219613196141961519616196171961819619196201962119622196231962419625196261962719628196291963019631196321963319634196351963619637196381963919640196411964219643196441964519646196471964819649196501965119652196531965419655196561965719658196591966019661196621966319664196651966619667196681966919670196711967219673196741967519676196771967819679196801968119682196831968419685196861968719688196891969019691196921969319694196951969619697196981969919700197011970219703197041970519706197071970819709197101971119712197131971419715197161971719718197191972019721197221972319724197251972619727197281972919730197311973219733197341973519736197371973819739197401974119742197431974419745197461974719748197491975019751197521975319754197551975619757197581975919760197611976219763197641976519766197671976819769197701977119772197731977419775197761977719778197791978019781197821978319784197851978619787197881978919790197911979219793197941979519796197971979819799198001980119802198031980419805198061980719808198091981019811198121981319814198151981619817198181981919820198211982219823198241982519826198271982819829198301983119832198331983419835198361983719838198391984019841198421984319844198451984619847198481984919850198511985219853198541985519856198571985819859198601986119862198631986419865198661986719868198691987019871198721987319874198751987619877198781987919880198811988219883198841988519886198871988819889198901989119892198931989419895198961989719898198991990019901199021990319904199051990619907199081990919910199111991219913199141991519916199171991819919199201992119922199231992419925199261992719928199291993019931199321993319934199351993619937199381993919940199411994219943199441994519946199471994819949199501995119952199531995419955199561995719958199591996019961199621996319964199651996619967199681996919970199711997219973199741997519976199771997819979199801998119982199831998419985199861998719988199891999019991199921999319994199951999619997199981999920000200012000220003200042000520006200072000820009200102001120012200132001420015200162001720018200192002020021200222002320024200252002620027200282002920030200312003220033200342003520036200372003820039200402004120042200432004420045200462004720048200492005020051200522005320054200552005620057200582005920060200612006220063200642006520066200672006820069200702007120072200732007420075200762007720078200792008020081200822008320084200852008620087200882008920090200912009220093200942009520096200972009820099201002010120102201032010420105201062010720108201092011020111201122011320114201152011620117201182011920120201212012220123201242012520126201272012820129201302013120132201332013420135201362013720138201392014020141201422014320144201452014620147201482014920150201512015220153201542015520156201572015820159201602016120162201632016420165201662016720168201692017020171201722017320174201752017620177201782017920180201812018220183201842018520186201872018820189201902019120192201932019420195201962019720198201992020020201202022020320204202052020620207202082020920210202112021220213202142021520216202172021820219202202022120222202232022420225202262022720228202292023020231202322023320234202352023620237202382023920240202412024220243202442024520246202472024820249202502025120252202532025420255202562025720258202592026020261202622026320264202652026620267202682026920270202712027220273202742027520276202772027820279202802028120282202832028420285202862028720288202892029020291202922029320294202952029620297202982029920300203012030220303203042030520306203072030820309203102031120312203132031420315203162031720318203192032020321203222032320324203252032620327203282032920330203312033220333203342033520336203372033820339203402034120342203432034420345203462034720348203492035020351203522035320354203552035620357203582035920360203612036220363203642036520366203672036820369203702037120372203732037420375203762037720378203792038020381203822038320384203852038620387203882038920390203912039220393203942039520396203972039820399204002040120402204032040420405204062040720408204092041020411204122041320414204152041620417204182041920420204212042220423204242042520426204272042820429204302043120432204332043420435204362043720438204392044020441204422044320444204452044620447204482044920450204512045220453204542045520456204572045820459204602046120462204632046420465204662046720468204692047020471204722047320474204752047620477204782047920480204812048220483204842048520486204872048820489204902049120492204932049420495204962049720498204992050020501205022050320504205052050620507205082050920510205112051220513205142051520516205172051820519205202052120522205232052420525205262052720528205292053020531205322053320534205352053620537205382053920540205412054220543205442054520546205472054820549205502055120552205532055420555205562055720558205592056020561205622056320564205652056620567205682056920570205712057220573205742057520576205772057820579205802058120582205832058420585205862058720588205892059020591205922059320594205952059620597205982059920600206012060220603206042060520606206072060820609206102061120612206132061420615206162061720618206192062020621206222062320624206252062620627206282062920630206312063220633206342063520636206372063820639206402064120642206432064420645206462064720648206492065020651206522065320654206552065620657206582065920660206612066220663206642066520666206672066820669206702067120672206732067420675206762067720678206792068020681206822068320684206852068620687206882068920690206912069220693206942069520696206972069820699207002070120702207032070420705207062070720708207092071020711207122071320714207152071620717207182071920720207212072220723207242072520726207272072820729207302073120732207332073420735207362073720738207392074020741207422074320744207452074620747207482074920750207512075220753207542075520756207572075820759207602076120762207632076420765207662076720768207692077020771207722077320774207752077620777207782077920780207812078220783207842078520786207872078820789207902079120792207932079420795207962079720798207992080020801208022080320804208052080620807208082080920810208112081220813208142081520816208172081820819208202082120822208232082420825208262082720828208292083020831208322083320834208352083620837208382083920840208412084220843208442084520846208472084820849208502085120852208532085420855208562085720858208592086020861208622086320864208652086620867208682086920870208712087220873208742087520876208772087820879208802088120882208832088420885208862088720888208892089020891208922089320894208952089620897208982089920900209012090220903209042090520906209072090820909209102091120912209132091420915209162091720918209192092020921209222092320924209252092620927209282092920930209312093220933209342093520936209372093820939209402094120942209432094420945209462094720948209492095020951209522095320954209552095620957209582095920960209612096220963209642096520966209672096820969209702097120972209732097420975209762097720978209792098020981209822098320984209852098620987209882098920990209912099220993209942099520996209972099820999210002100121002210032100421005210062100721008210092101021011210122101321014210152101621017210182101921020210212102221023210242102521026210272102821029210302103121032210332103421035210362103721038210392104021041210422104321044210452104621047210482104921050210512105221053210542105521056210572105821059210602106121062210632106421065210662106721068210692107021071210722107321074210752107621077210782107921080210812108221083210842108521086210872108821089210902109121092210932109421095210962109721098210992110021101211022110321104211052110621107211082110921110211112111221113211142111521116211172111821119211202112121122211232112421125211262112721128211292113021131211322113321134211352113621137211382113921140211412114221143211442114521146211472114821149211502115121152211532115421155211562115721158211592116021161211622116321164211652116621167211682116921170211712117221173211742117521176211772117821179211802118121182211832118421185211862118721188211892119021191211922119321194211952119621197211982119921200212012120221203212042120521206212072120821209212102121121212212132121421215212162121721218212192122021221212222122321224212252122621227212282122921230212312123221233212342123521236212372123821239212402124121242212432124421245212462124721248212492125021251212522125321254212552125621257212582125921260212612126221263212642126521266212672126821269212702127121272212732127421275212762127721278212792128021281212822128321284212852128621287212882128921290212912129221293212942129521296212972129821299213002130121302213032130421305213062130721308213092131021311213122131321314213152131621317213182131921320213212132221323213242132521326213272132821329213302133121332213332133421335213362133721338213392134021341213422134321344213452134621347213482134921350213512135221353213542135521356213572135821359213602136121362213632136421365213662136721368213692137021371213722137321374213752137621377213782137921380213812138221383213842138521386213872138821389213902139121392213932139421395213962139721398213992140021401214022140321404214052140621407214082140921410214112141221413214142141521416214172141821419214202142121422214232142421425214262142721428214292143021431214322143321434214352143621437214382143921440214412144221443214442144521446214472144821449214502145121452214532145421455214562145721458214592146021461214622146321464214652146621467214682146921470214712147221473214742147521476214772147821479214802148121482214832148421485214862148721488214892149021491214922149321494214952149621497214982149921500215012150221503215042150521506215072150821509215102151121512215132151421515215162151721518215192152021521215222152321524215252152621527215282152921530215312153221533215342153521536215372153821539215402154121542215432154421545215462154721548215492155021551215522155321554215552155621557215582155921560215612156221563215642156521566215672156821569215702157121572215732157421575215762157721578215792158021581215822158321584215852158621587215882158921590215912159221593215942159521596215972159821599216002160121602216032160421605216062160721608216092161021611216122161321614216152161621617216182161921620216212162221623216242162521626216272162821629216302163121632216332163421635216362163721638216392164021641216422164321644216452164621647216482164921650216512165221653216542165521656216572165821659216602166121662216632166421665216662166721668216692167021671216722167321674216752167621677216782167921680216812168221683216842168521686216872168821689216902169121692216932169421695216962169721698216992170021701217022170321704217052170621707217082170921710217112171221713217142171521716217172171821719217202172121722217232172421725217262172721728217292173021731217322173321734217352173621737217382173921740217412174221743217442174521746217472174821749217502175121752217532175421755217562175721758217592176021761217622176321764217652176621767217682176921770217712177221773217742177521776217772177821779217802178121782217832178421785217862178721788217892179021791217922179321794217952179621797217982179921800218012180221803218042180521806218072180821809218102181121812218132181421815218162181721818218192182021821218222182321824218252182621827218282182921830218312183221833218342183521836218372183821839218402184121842218432184421845218462184721848218492185021851218522185321854218552185621857218582185921860218612186221863218642186521866218672186821869218702187121872218732187421875218762187721878218792188021881218822188321884218852188621887218882188921890218912189221893218942189521896218972189821899219002190121902219032190421905219062190721908219092191021911219122191321914219152191621917219182191921920219212192221923219242192521926219272192821929219302193121932219332193421935219362193721938219392194021941219422194321944219452194621947219482194921950219512195221953219542195521956219572195821959219602196121962219632196421965219662196721968219692197021971219722197321974219752197621977219782197921980219812198221983219842198521986219872198821989219902199121992219932199421995219962199721998219992200022001220022200322004220052200622007220082200922010220112201222013220142201522016220172201822019220202202122022220232202422025220262202722028220292203022031220322203322034220352203622037220382203922040220412204222043220442204522046220472204822049220502205122052220532205422055220562205722058220592206022061220622206322064220652206622067220682206922070220712207222073220742207522076220772207822079220802208122082220832208422085220862208722088220892209022091220922209322094220952209622097220982209922100221012210222103221042210522106221072210822109221102211122112221132211422115221162211722118221192212022121221222212322124221252212622127221282212922130221312213222133221342213522136221372213822139221402214122142221432214422145221462214722148221492215022151221522215322154221552215622157221582215922160221612216222163221642216522166221672216822169221702217122172221732217422175221762217722178221792218022181221822218322184221852218622187221882218922190221912219222193221942219522196221972219822199222002220122202222032220422205222062220722208222092221022211222122221322214222152221622217222182221922220222212222222223222242222522226222272222822229222302223122232222332223422235222362223722238222392224022241222422224322244222452224622247222482224922250222512225222253222542225522256222572225822259222602226122262222632226422265222662226722268222692227022271222722227322274222752227622277222782227922280222812228222283222842228522286222872228822289222902229122292222932229422295222962229722298222992230022301223022230322304223052230622307223082230922310223112231222313223142231522316223172231822319223202232122322223232232422325223262232722328223292233022331223322233322334223352233622337223382233922340223412234222343223442234522346223472234822349223502235122352223532235422355223562235722358223592236022361223622236322364223652236622367223682236922370223712237222373223742237522376223772237822379223802238122382223832238422385223862238722388223892239022391223922239322394223952239622397223982239922400224012240222403224042240522406224072240822409224102241122412224132241422415224162241722418224192242022421224222242322424224252242622427224282242922430224312243222433224342243522436224372243822439224402244122442224432244422445224462244722448224492245022451224522245322454224552245622457224582245922460224612246222463224642246522466224672246822469224702247122472224732247422475224762247722478224792248022481224822248322484224852248622487224882248922490224912249222493224942249522496224972249822499225002250122502225032250422505225062250722508225092251022511225122251322514225152251622517225182251922520225212252222523225242252522526225272252822529225302253122532225332253422535225362253722538225392254022541225422254322544225452254622547225482254922550225512255222553225542255522556225572255822559225602256122562225632256422565225662256722568225692257022571225722257322574225752257622577225782257922580225812258222583225842258522586225872258822589225902259122592225932259422595225962259722598225992260022601226022260322604226052260622607226082260922610226112261222613226142261522616226172261822619226202262122622226232262422625226262262722628226292263022631226322263322634226352263622637226382263922640226412264222643226442264522646226472264822649226502265122652226532265422655226562265722658226592266022661226622266322664226652266622667226682266922670226712267222673226742267522676226772267822679226802268122682226832268422685226862268722688226892269022691226922269322694226952269622697226982269922700227012270222703227042270522706227072270822709227102271122712227132271422715227162271722718227192272022721227222272322724227252272622727227282272922730227312273222733227342273522736227372273822739227402274122742227432274422745227462274722748227492275022751227522275322754227552275622757227582275922760227612276222763227642276522766227672276822769227702277122772227732277422775227762277722778227792278022781227822278322784227852278622787227882278922790227912279222793227942279522796227972279822799228002280122802228032280422805228062280722808228092281022811228122281322814228152281622817228182281922820228212282222823228242282522826228272282822829228302283122832228332283422835228362283722838228392284022841228422284322844228452284622847228482284922850228512285222853228542285522856228572285822859228602286122862228632286422865228662286722868228692287022871228722287322874228752287622877228782287922880228812288222883228842288522886228872288822889228902289122892228932289422895228962289722898228992290022901229022290322904229052290622907229082290922910229112291222913229142291522916229172291822919229202292122922229232292422925229262292722928229292293022931229322293322934229352293622937229382293922940229412294222943229442294522946229472294822949229502295122952229532295422955229562295722958229592296022961229622296322964229652296622967229682296922970229712297222973229742297522976229772297822979229802298122982229832298422985229862298722988229892299022991229922299322994229952299622997229982299923000230012300223003230042300523006230072300823009230102301123012230132301423015230162301723018230192302023021230222302323024230252302623027230282302923030230312303223033230342303523036230372303823039230402304123042230432304423045230462304723048230492305023051230522305323054230552305623057230582305923060230612306223063230642306523066230672306823069230702307123072230732307423075230762307723078230792308023081230822308323084230852308623087230882308923090230912309223093230942309523096230972309823099231002310123102231032310423105231062310723108231092311023111231122311323114231152311623117231182311923120231212312223123231242312523126231272312823129231302313123132231332313423135231362313723138231392314023141231422314323144231452314623147231482314923150231512315223153231542315523156231572315823159231602316123162231632316423165231662316723168231692317023171231722317323174231752317623177231782317923180231812318223183231842318523186231872318823189231902319123192231932319423195231962319723198231992320023201232022320323204232052320623207232082320923210232112321223213232142321523216232172321823219232202322123222232232322423225232262322723228232292323023231232322323323234232352323623237232382323923240232412324223243232442324523246232472324823249232502325123252232532325423255232562325723258232592326023261232622326323264232652326623267232682326923270232712327223273232742327523276232772327823279232802328123282232832328423285232862328723288232892329023291232922329323294232952329623297232982329923300233012330223303233042330523306233072330823309233102331123312233132331423315233162331723318233192332023321233222332323324233252332623327233282332923330233312333223333233342333523336233372333823339233402334123342233432334423345233462334723348233492335023351233522335323354233552335623357233582335923360233612336223363233642336523366233672336823369233702337123372233732337423375233762337723378233792338023381233822338323384233852338623387233882338923390233912339223393233942339523396233972339823399234002340123402234032340423405234062340723408234092341023411234122341323414234152341623417234182341923420234212342223423234242342523426234272342823429234302343123432234332343423435234362343723438234392344023441234422344323444234452344623447234482344923450234512345223453234542345523456234572345823459234602346123462234632346423465234662346723468234692347023471234722347323474234752347623477234782347923480234812348223483234842348523486234872348823489234902349123492234932349423495234962349723498234992350023501235022350323504235052350623507235082350923510235112351223513235142351523516235172351823519235202352123522235232352423525235262352723528235292353023531235322353323534235352353623537235382353923540235412354223543235442354523546235472354823549235502355123552235532355423555235562355723558235592356023561235622356323564235652356623567235682356923570235712357223573235742357523576235772357823579235802358123582235832358423585235862358723588235892359023591235922359323594235952359623597235982359923600236012360223603236042360523606236072360823609236102361123612236132361423615236162361723618236192362023621236222362323624236252362623627236282362923630236312363223633236342363523636236372363823639236402364123642236432364423645236462364723648236492365023651236522365323654236552365623657236582365923660236612366223663236642366523666236672366823669236702367123672236732367423675236762367723678236792368023681236822368323684236852368623687236882368923690236912369223693236942369523696236972369823699237002370123702237032370423705237062370723708237092371023711237122371323714237152371623717237182371923720237212372223723237242372523726237272372823729237302373123732237332373423735237362373723738237392374023741237422374323744237452374623747237482374923750237512375223753237542375523756237572375823759237602376123762237632376423765237662376723768237692377023771237722377323774237752377623777237782377923780237812378223783237842378523786237872378823789237902379123792237932379423795237962379723798237992380023801238022380323804238052380623807238082380923810238112381223813238142381523816238172381823819238202382123822238232382423825238262382723828238292383023831238322383323834238352383623837238382383923840238412384223843238442384523846238472384823849238502385123852238532385423855238562385723858238592386023861238622386323864238652386623867238682386923870238712387223873238742387523876238772387823879238802388123882238832388423885238862388723888238892389023891238922389323894238952389623897238982389923900239012390223903239042390523906239072390823909239102391123912239132391423915239162391723918239192392023921239222392323924239252392623927239282392923930239312393223933239342393523936239372393823939239402394123942239432394423945239462394723948239492395023951239522395323954239552395623957239582395923960239612396223963239642396523966239672396823969239702397123972239732397423975239762397723978239792398023981239822398323984239852398623987239882398923990239912399223993239942399523996239972399823999240002400124002240032400424005240062400724008240092401024011240122401324014240152401624017240182401924020240212402224023240242402524026240272402824029240302403124032240332403424035240362403724038240392404024041240422404324044240452404624047240482404924050240512405224053240542405524056240572405824059240602406124062240632406424065240662406724068240692407024071240722407324074240752407624077240782407924080240812408224083240842408524086240872408824089240902409124092240932409424095240962409724098240992410024101241022410324104241052410624107241082410924110241112411224113241142411524116241172411824119241202412124122241232412424125241262412724128241292413024131241322413324134241352413624137241382413924140241412414224143241442414524146241472414824149241502415124152241532415424155241562415724158241592416024161241622416324164241652416624167241682416924170241712417224173241742417524176241772417824179241802418124182241832418424185241862418724188241892419024191241922419324194241952419624197241982419924200242012420224203242042420524206242072420824209242102421124212242132421424215242162421724218242192422024221242222422324224242252422624227242282422924230242312423224233242342423524236242372423824239242402424124242242432424424245242462424724248242492425024251242522425324254242552425624257242582425924260242612426224263242642426524266242672426824269242702427124272242732427424275242762427724278242792428024281242822428324284242852428624287242882428924290242912429224293242942429524296242972429824299243002430124302243032430424305243062430724308243092431024311243122431324314243152431624317243182431924320243212432224323243242432524326243272432824329243302433124332243332433424335243362433724338243392434024341243422434324344243452434624347243482434924350243512435224353243542435524356243572435824359243602436124362243632436424365243662436724368243692437024371243722437324374243752437624377243782437924380243812438224383243842438524386243872438824389243902439124392243932439424395243962439724398243992440024401244022440324404244052440624407244082440924410244112441224413244142441524416244172441824419244202442124422244232442424425244262442724428244292443024431244322443324434244352443624437244382443924440244412444224443244442444524446244472444824449244502445124452244532445424455244562445724458244592446024461244622446324464244652446624467244682446924470244712447224473244742447524476244772447824479244802448124482244832448424485244862448724488244892449024491244922449324494244952449624497244982449924500245012450224503245042450524506245072450824509245102451124512245132451424515245162451724518245192452024521245222452324524245252452624527245282452924530245312453224533245342453524536245372453824539245402454124542245432454424545245462454724548245492455024551245522455324554245552455624557245582455924560245612456224563245642456524566245672456824569245702457124572245732457424575245762457724578245792458024581245822458324584245852458624587245882458924590245912459224593245942459524596245972459824599246002460124602246032460424605246062460724608246092461024611246122461324614246152461624617246182461924620246212462224623246242462524626246272462824629246302463124632246332463424635246362463724638246392464024641246422464324644246452464624647246482464924650246512465224653246542465524656246572465824659246602466124662246632466424665246662466724668246692467024671246722467324674246752467624677246782467924680246812468224683246842468524686246872468824689246902469124692246932469424695246962469724698246992470024701247022470324704247052470624707247082470924710247112471224713247142471524716247172471824719247202472124722247232472424725247262472724728247292473024731247322473324734247352473624737247382473924740247412474224743247442474524746247472474824749247502475124752247532475424755247562475724758247592476024761247622476324764247652476624767247682476924770247712477224773247742477524776247772477824779247802478124782247832478424785247862478724788247892479024791247922479324794247952479624797247982479924800248012480224803248042480524806248072480824809248102481124812248132481424815248162481724818248192482024821248222482324824248252482624827248282482924830248312483224833248342483524836248372483824839248402484124842248432484424845248462484724848248492485024851248522485324854248552485624857248582485924860248612486224863248642486524866248672486824869248702487124872248732487424875248762487724878248792488024881248822488324884248852488624887248882488924890248912489224893248942489524896248972489824899249002490124902249032490424905249062490724908249092491024911249122491324914249152491624917249182491924920249212492224923249242492524926249272492824929249302493124932249332493424935249362493724938249392494024941249422494324944249452494624947249482494924950249512495224953249542495524956249572495824959249602496124962249632496424965249662496724968249692497024971249722497324974249752497624977249782497924980249812498224983249842498524986249872498824989249902499124992249932499424995249962499724998249992500025001250022500325004250052500625007250082500925010250112501225013250142501525016250172501825019250202502125022250232502425025250262502725028250292503025031250322503325034250352503625037250382503925040250412504225043250442504525046250472504825049250502505125052250532505425055250562505725058250592506025061250622506325064250652506625067250682506925070250712507225073250742507525076250772507825079250802508125082250832508425085250862508725088250892509025091250922509325094250952509625097250982509925100251012510225103251042510525106251072510825109251102511125112251132511425115251162511725118251192512025121251222512325124251252512625127251282512925130251312513225133251342513525136251372513825139251402514125142251432514425145251462514725148251492515025151251522515325154251552515625157251582515925160251612516225163251642516525166251672516825169251702517125172251732517425175251762517725178251792518025181251822518325184251852518625187251882518925190251912519225193251942519525196251972519825199252002520125202252032520425205252062520725208252092521025211252122521325214252152521625217252182521925220252212522225223252242522525226252272522825229252302523125232252332523425235252362523725238252392524025241252422524325244252452524625247252482524925250252512525225253252542525525256252572525825259252602526125262252632526425265252662526725268252692527025271252722527325274252752527625277252782527925280252812528225283252842528525286252872528825289252902529125292252932529425295252962529725298252992530025301253022530325304253052530625307253082530925310253112531225313253142531525316253172531825319253202532125322253232532425325253262532725328253292533025331253322533325334253352533625337253382533925340253412534225343253442534525346253472534825349253502535125352253532535425355253562535725358253592536025361253622536325364253652536625367253682536925370253712537225373253742537525376253772537825379253802538125382253832538425385253862538725388253892539025391253922539325394253952539625397253982539925400254012540225403254042540525406254072540825409254102541125412254132541425415254162541725418254192542025421254222542325424254252542625427254282542925430254312543225433254342543525436254372543825439254402544125442254432544425445254462544725448254492545025451254522545325454254552545625457254582545925460254612546225463254642546525466254672546825469254702547125472254732547425475254762547725478254792548025481254822548325484254852548625487254882548925490254912549225493254942549525496254972549825499255002550125502255032550425505255062550725508255092551025511255122551325514255152551625517255182551925520255212552225523255242552525526255272552825529255302553125532255332553425535255362553725538255392554025541255422554325544255452554625547255482554925550255512555225553255542555525556255572555825559255602556125562255632556425565255662556725568255692557025571255722557325574255752557625577255782557925580255812558225583255842558525586255872558825589255902559125592255932559425595255962559725598255992560025601256022560325604256052560625607256082560925610256112561225613256142561525616256172561825619256202562125622256232562425625256262562725628256292563025631256322563325634256352563625637256382563925640256412564225643256442564525646256472564825649256502565125652256532565425655256562565725658256592566025661256622566325664256652566625667256682566925670256712567225673256742567525676256772567825679256802568125682256832568425685256862568725688256892569025691256922569325694256952569625697256982569925700257012570225703257042570525706257072570825709257102571125712257132571425715257162571725718257192572025721257222572325724257252572625727257282572925730257312573225733257342573525736257372573825739257402574125742257432574425745257462574725748257492575025751257522575325754257552575625757257582575925760257612576225763257642576525766257672576825769257702577125772257732577425775257762577725778257792578025781257822578325784257852578625787257882578925790257912579225793257942579525796257972579825799258002580125802258032580425805258062580725808258092581025811258122581325814258152581625817258182581925820258212582225823258242582525826258272582825829258302583125832258332583425835258362583725838258392584025841258422584325844258452584625847258482584925850258512585225853258542585525856258572585825859258602586125862258632586425865258662586725868258692587025871258722587325874258752587625877258782587925880258812588225883258842588525886258872588825889258902589125892258932589425895258962589725898258992590025901259022590325904259052590625907259082590925910259112591225913259142591525916259172591825919259202592125922259232592425925259262592725928259292593025931259322593325934259352593625937259382593925940259412594225943259442594525946259472594825949259502595125952259532595425955259562595725958259592596025961259622596325964259652596625967259682596925970259712597225973259742597525976259772597825979259802598125982259832598425985259862598725988259892599025991259922599325994259952599625997259982599926000260012600226003260042600526006260072600826009260102601126012260132601426015260162601726018260192602026021260222602326024260252602626027260282602926030260312603226033260342603526036260372603826039260402604126042260432604426045260462604726048260492605026051260522605326054260552605626057260582605926060260612606226063260642606526066260672606826069260702607126072260732607426075260762607726078260792608026081260822608326084260852608626087260882608926090260912609226093260942609526096260972609826099261002610126102261032610426105261062610726108261092611026111261122611326114261152611626117261182611926120261212612226123261242612526126261272612826129261302613126132261332613426135261362613726138261392614026141261422614326144261452614626147261482614926150261512615226153261542615526156261572615826159261602616126162261632616426165261662616726168261692617026171261722617326174261752617626177261782617926180261812618226183261842618526186261872618826189261902619126192261932619426195261962619726198261992620026201262022620326204262052620626207262082620926210262112621226213262142621526216262172621826219262202622126222262232622426225262262622726228262292623026231262322623326234262352623626237262382623926240262412624226243262442624526246262472624826249262502625126252262532625426255262562625726258262592626026261262622626326264262652626626267262682626926270262712627226273262742627526276262772627826279262802628126282262832628426285262862628726288262892629026291262922629326294262952629626297262982629926300263012630226303263042630526306263072630826309263102631126312263132631426315263162631726318263192632026321263222632326324263252632626327263282632926330263312633226333263342633526336263372633826339263402634126342263432634426345263462634726348263492635026351263522635326354263552635626357263582635926360263612636226363263642636526366263672636826369263702637126372263732637426375263762637726378263792638026381263822638326384263852638626387263882638926390263912639226393263942639526396263972639826399264002640126402264032640426405264062640726408264092641026411264122641326414264152641626417264182641926420264212642226423264242642526426264272642826429264302643126432264332643426435264362643726438264392644026441264422644326444264452644626447264482644926450264512645226453264542645526456264572645826459264602646126462264632646426465264662646726468264692647026471264722647326474264752647626477264782647926480264812648226483264842648526486264872648826489264902649126492264932649426495264962649726498264992650026501265022650326504265052650626507265082650926510265112651226513265142651526516265172651826519265202652126522265232652426525265262652726528265292653026531265322653326534265352653626537265382653926540265412654226543265442654526546265472654826549265502655126552265532655426555265562655726558265592656026561265622656326564265652656626567265682656926570265712657226573265742657526576265772657826579265802658126582265832658426585265862658726588265892659026591265922659326594265952659626597265982659926600266012660226603266042660526606266072660826609266102661126612266132661426615266162661726618266192662026621266222662326624266252662626627266282662926630266312663226633266342663526636266372663826639266402664126642266432664426645266462664726648266492665026651266522665326654266552665626657266582665926660266612666226663266642666526666266672666826669266702667126672266732667426675266762667726678266792668026681266822668326684266852668626687266882668926690266912669226693266942669526696266972669826699267002670126702267032670426705267062670726708267092671026711267122671326714267152671626717267182671926720267212672226723267242672526726267272672826729267302673126732267332673426735267362673726738267392674026741267422674326744267452674626747267482674926750267512675226753267542675526756267572675826759267602676126762267632676426765267662676726768267692677026771267722677326774267752677626777267782677926780267812678226783267842678526786267872678826789267902679126792267932679426795267962679726798267992680026801268022680326804268052680626807268082680926810268112681226813268142681526816268172681826819268202682126822268232682426825268262682726828268292683026831268322683326834268352683626837268382683926840268412684226843268442684526846268472684826849268502685126852268532685426855268562685726858268592686026861268622686326864268652686626867268682686926870268712687226873268742687526876268772687826879268802688126882268832688426885268862688726888268892689026891268922689326894268952689626897268982689926900269012690226903269042690526906269072690826909269102691126912269132691426915269162691726918269192692026921269222692326924269252692626927269282692926930269312693226933269342693526936269372693826939269402694126942269432694426945269462694726948269492695026951269522695326954269552695626957269582695926960269612696226963269642696526966269672696826969269702697126972269732697426975269762697726978269792698026981269822698326984269852698626987269882698926990269912699226993269942699526996269972699826999270002700127002270032700427005270062700727008270092701027011270122701327014270152701627017270182701927020270212702227023270242702527026270272702827029270302703127032270332703427035270362703727038270392704027041270422704327044270452704627047270482704927050270512705227053270542705527056270572705827059270602706127062270632706427065270662706727068270692707027071270722707327074270752707627077270782707927080270812708227083270842708527086270872708827089270902709127092270932709427095270962709727098270992710027101271022710327104271052710627107271082710927110271112711227113271142711527116271172711827119271202712127122271232712427125271262712727128271292713027131271322713327134271352713627137271382713927140271412714227143271442714527146271472714827149271502715127152271532715427155271562715727158271592716027161271622716327164271652716627167271682716927170271712717227173271742717527176271772717827179271802718127182271832718427185271862718727188271892719027191271922719327194271952719627197271982719927200272012720227203272042720527206272072720827209272102721127212272132721427215272162721727218272192722027221272222722327224272252722627227272282722927230272312723227233272342723527236272372723827239272402724127242272432724427245272462724727248272492725027251272522725327254272552725627257272582725927260272612726227263272642726527266272672726827269272702727127272272732727427275272762727727278272792728027281272822728327284272852728627287272882728927290272912729227293272942729527296272972729827299273002730127302273032730427305273062730727308273092731027311273122731327314273152731627317273182731927320273212732227323273242732527326273272732827329273302733127332273332733427335273362733727338273392734027341273422734327344273452734627347273482734927350273512735227353273542735527356273572735827359273602736127362273632736427365273662736727368273692737027371273722737327374273752737627377273782737927380273812738227383273842738527386273872738827389273902739127392273932739427395273962739727398273992740027401274022740327404274052740627407274082740927410274112741227413274142741527416274172741827419274202742127422274232742427425274262742727428274292743027431274322743327434274352743627437274382743927440274412744227443274442744527446274472744827449274502745127452274532745427455274562745727458274592746027461274622746327464274652746627467274682746927470274712747227473274742747527476274772747827479274802748127482274832748427485274862748727488274892749027491274922749327494274952749627497274982749927500275012750227503275042750527506275072750827509275102751127512275132751427515275162751727518275192752027521275222752327524275252752627527275282752927530275312753227533275342753527536275372753827539275402754127542275432754427545275462754727548275492755027551275522755327554275552755627557275582755927560275612756227563275642756527566275672756827569275702757127572275732757427575275762757727578275792758027581275822758327584275852758627587275882758927590275912759227593275942759527596275972759827599276002760127602276032760427605276062760727608276092761027611276122761327614276152761627617276182761927620276212762227623276242762527626276272762827629276302763127632276332763427635276362763727638276392764027641276422764327644276452764627647276482764927650276512765227653276542765527656276572765827659276602766127662276632766427665276662766727668276692767027671276722767327674276752767627677276782767927680276812768227683276842768527686276872768827689276902769127692276932769427695276962769727698276992770027701277022770327704277052770627707277082770927710277112771227713277142771527716277172771827719277202772127722277232772427725277262772727728277292773027731277322773327734277352773627737277382773927740277412774227743277442774527746277472774827749277502775127752277532775427755277562775727758277592776027761277622776327764277652776627767277682776927770277712777227773277742777527776277772777827779277802778127782277832778427785277862778727788277892779027791277922779327794277952779627797277982779927800278012780227803278042780527806278072780827809278102781127812278132781427815278162781727818278192782027821278222782327824278252782627827278282782927830278312783227833278342783527836278372783827839278402784127842278432784427845278462784727848278492785027851278522785327854278552785627857278582785927860278612786227863278642786527866278672786827869278702787127872278732787427875278762787727878278792788027881278822788327884278852788627887278882788927890278912789227893278942789527896278972789827899279002790127902279032790427905279062790727908279092791027911279122791327914279152791627917279182791927920279212792227923279242792527926279272792827929279302793127932279332793427935279362793727938279392794027941279422794327944279452794627947279482794927950279512795227953279542795527956279572795827959279602796127962279632796427965279662796727968279692797027971279722797327974279752797627977279782797927980279812798227983279842798527986279872798827989279902799127992279932799427995279962799727998279992800028001280022800328004280052800628007280082800928010280112801228013280142801528016280172801828019280202802128022280232802428025280262802728028280292803028031280322803328034280352803628037280382803928040280412804228043280442804528046280472804828049280502805128052280532805428055280562805728058280592806028061280622806328064280652806628067280682806928070280712807228073280742807528076280772807828079280802808128082280832808428085280862808728088280892809028091280922809328094280952809628097280982809928100281012810228103281042810528106281072810828109281102811128112281132811428115281162811728118281192812028121281222812328124281252812628127281282812928130281312813228133281342813528136281372813828139281402814128142281432814428145281462814728148281492815028151281522815328154281552815628157281582815928160281612816228163281642816528166281672816828169281702817128172281732817428175281762817728178281792818028181281822818328184281852818628187281882818928190281912819228193281942819528196281972819828199282002820128202282032820428205282062820728208282092821028211282122821328214282152821628217282182821928220282212822228223282242822528226282272822828229282302823128232282332823428235282362823728238282392824028241282422824328244282452824628247282482824928250282512825228253282542825528256282572825828259282602826128262282632826428265282662826728268282692827028271282722827328274282752827628277282782827928280282812828228283282842828528286282872828828289282902829128292282932829428295282962829728298282992830028301283022830328304283052830628307283082830928310283112831228313283142831528316283172831828319283202832128322283232832428325283262832728328283292833028331283322833328334283352833628337283382833928340283412834228343283442834528346283472834828349283502835128352283532835428355283562835728358283592836028361283622836328364283652836628367283682836928370283712837228373283742837528376283772837828379283802838128382283832838428385283862838728388283892839028391283922839328394283952839628397283982839928400284012840228403284042840528406284072840828409284102841128412284132841428415284162841728418284192842028421284222842328424284252842628427284282842928430284312843228433284342843528436284372843828439284402844128442284432844428445284462844728448284492845028451284522845328454284552845628457284582845928460284612846228463284642846528466284672846828469284702847128472284732847428475284762847728478284792848028481284822848328484284852848628487284882848928490284912849228493284942849528496284972849828499285002850128502285032850428505285062850728508285092851028511285122851328514285152851628517285182851928520285212852228523285242852528526285272852828529285302853128532285332853428535285362853728538285392854028541285422854328544285452854628547285482854928550285512855228553285542855528556285572855828559285602856128562285632856428565285662856728568285692857028571285722857328574285752857628577285782857928580285812858228583285842858528586285872858828589285902859128592285932859428595285962859728598285992860028601286022860328604286052860628607286082860928610286112861228613286142861528616286172861828619286202862128622286232862428625286262862728628286292863028631286322863328634286352863628637286382863928640286412864228643286442864528646286472864828649286502865128652286532865428655286562865728658286592866028661286622866328664286652866628667286682866928670286712867228673286742867528676286772867828679286802868128682286832868428685286862868728688286892869028691286922869328694286952869628697286982869928700287012870228703287042870528706287072870828709287102871128712287132871428715287162871728718287192872028721287222872328724287252872628727287282872928730287312873228733287342873528736287372873828739287402874128742287432874428745287462874728748287492875028751287522875328754287552875628757287582875928760287612876228763287642876528766287672876828769287702877128772287732877428775287762877728778287792878028781287822878328784287852878628787287882878928790287912879228793287942879528796287972879828799288002880128802288032880428805288062880728808288092881028811288122881328814288152881628817288182881928820288212882228823288242882528826288272882828829288302883128832288332883428835288362883728838288392884028841288422884328844288452884628847288482884928850288512885228853288542885528856288572885828859288602886128862288632886428865288662886728868288692887028871288722887328874288752887628877288782887928880288812888228883288842888528886288872888828889288902889128892288932889428895288962889728898288992890028901289022890328904289052890628907289082890928910289112891228913289142891528916289172891828919289202892128922289232892428925289262892728928289292893028931289322893328934289352893628937289382893928940289412894228943289442894528946289472894828949289502895128952289532895428955289562895728958289592896028961289622896328964289652896628967289682896928970289712897228973289742897528976289772897828979289802898128982289832898428985289862898728988289892899028991289922899328994289952899628997289982899929000290012900229003290042900529006290072900829009290102901129012290132901429015290162901729018290192902029021290222902329024290252902629027290282902929030290312903229033290342903529036290372903829039290402904129042290432904429045290462904729048290492905029051290522905329054290552905629057290582905929060290612906229063290642906529066290672906829069290702907129072290732907429075290762907729078290792908029081290822908329084290852908629087290882908929090290912909229093290942909529096290972909829099291002910129102291032910429105291062910729108291092911029111291122911329114291152911629117291182911929120291212912229123291242912529126291272912829129291302913129132291332913429135291362913729138291392914029141291422914329144291452914629147291482914929150291512915229153291542915529156291572915829159291602916129162291632916429165291662916729168291692917029171291722917329174291752917629177291782917929180291812918229183291842918529186291872918829189291902919129192291932919429195291962919729198291992920029201292022920329204292052920629207292082920929210292112921229213292142921529216292172921829219292202922129222292232922429225292262922729228292292923029231292322923329234292352923629237292382923929240292412924229243292442924529246292472924829249292502925129252292532925429255292562925729258292592926029261292622926329264292652926629267292682926929270292712927229273292742927529276292772927829279292802928129282292832928429285292862928729288292892929029291292922929329294292952929629297292982929929300293012930229303293042930529306293072930829309293102931129312293132931429315293162931729318293192932029321293222932329324293252932629327293282932929330293312933229333293342933529336293372933829339293402934129342293432934429345293462934729348293492935029351293522935329354293552935629357293582935929360293612936229363293642936529366293672936829369293702937129372293732937429375293762937729378293792938029381293822938329384293852938629387293882938929390293912939229393293942939529396293972939829399294002940129402294032940429405294062940729408294092941029411294122941329414294152941629417294182941929420294212942229423294242942529426294272942829429294302943129432294332943429435294362943729438294392944029441294422944329444294452944629447294482944929450294512945229453294542945529456294572945829459294602946129462294632946429465294662946729468294692947029471294722947329474294752947629477294782947929480294812948229483294842948529486294872948829489294902949129492294932949429495294962949729498294992950029501295022950329504295052950629507295082950929510295112951229513295142951529516295172951829519295202952129522295232952429525295262952729528295292953029531295322953329534295352953629537295382953929540295412954229543295442954529546295472954829549295502955129552295532955429555295562955729558295592956029561295622956329564295652956629567295682956929570295712957229573295742957529576295772957829579295802958129582295832958429585295862958729588295892959029591295922959329594295952959629597295982959929600296012960229603296042960529606296072960829609296102961129612296132961429615296162961729618296192962029621296222962329624296252962629627296282962929630296312963229633296342963529636296372963829639296402964129642296432964429645296462964729648296492965029651296522965329654296552965629657296582965929660296612966229663296642966529666296672966829669296702967129672296732967429675296762967729678296792968029681296822968329684296852968629687296882968929690296912969229693296942969529696296972969829699297002970129702297032970429705297062970729708297092971029711297122971329714297152971629717297182971929720297212972229723297242972529726297272972829729297302973129732297332973429735297362973729738297392974029741297422974329744297452974629747297482974929750297512975229753297542975529756297572975829759297602976129762297632976429765297662976729768297692977029771297722977329774297752977629777297782977929780297812978229783297842978529786297872978829789297902979129792297932979429795297962979729798297992980029801298022980329804298052980629807298082980929810298112981229813298142981529816298172981829819298202982129822298232982429825298262982729828298292983029831298322983329834298352983629837298382983929840298412984229843298442984529846298472984829849298502985129852298532985429855298562985729858298592986029861298622986329864298652986629867298682986929870298712987229873298742987529876298772987829879298802988129882298832988429885298862988729888298892989029891298922989329894298952989629897298982989929900299012990229903299042990529906299072990829909299102991129912299132991429915299162991729918299192992029921299222992329924299252992629927299282992929930299312993229933299342993529936299372993829939299402994129942299432994429945299462994729948299492995029951299522995329954299552995629957299582995929960299612996229963299642996529966299672996829969299702997129972299732997429975299762997729978299792998029981299822998329984299852998629987299882998929990299912999229993299942999529996299972999829999300003000130002300033000430005300063000730008300093001030011300123001330014300153001630017300183001930020300213002230023300243002530026300273002830029300303003130032300333003430035300363003730038300393004030041300423004330044300453004630047300483004930050300513005230053300543005530056300573005830059300603006130062300633006430065300663006730068300693007030071300723007330074300753007630077300783007930080300813008230083300843008530086300873008830089300903009130092300933009430095300963009730098300993010030101301023010330104301053010630107301083010930110301113011230113301143011530116301173011830119301203012130122301233012430125301263012730128301293013030131301323013330134301353013630137301383013930140301413014230143301443014530146301473014830149301503015130152301533015430155301563015730158301593016030161301623016330164301653016630167301683016930170301713017230173301743017530176301773017830179301803018130182301833018430185301863018730188301893019030191301923019330194301953019630197301983019930200302013020230203302043020530206302073020830209302103021130212302133021430215302163021730218302193022030221302223022330224302253022630227302283022930230302313023230233302343023530236302373023830239302403024130242302433024430245302463024730248302493025030251302523025330254302553025630257302583025930260302613026230263302643026530266302673026830269302703027130272302733027430275302763027730278302793028030281302823028330284302853028630287302883028930290302913029230293302943029530296302973029830299303003030130302303033030430305303063030730308303093031030311303123031330314303153031630317303183031930320303213032230323303243032530326303273032830329303303033130332303333033430335303363033730338303393034030341303423034330344303453034630347303483034930350303513035230353303543035530356303573035830359303603036130362303633036430365303663036730368303693037030371303723037330374303753037630377303783037930380303813038230383303843038530386303873038830389303903039130392303933039430395303963039730398303993040030401304023040330404304053040630407304083040930410304113041230413304143041530416304173041830419304203042130422304233042430425304263042730428304293043030431304323043330434304353043630437304383043930440304413044230443304443044530446304473044830449304503045130452304533045430455304563045730458304593046030461304623046330464304653046630467304683046930470304713047230473304743047530476304773047830479304803048130482304833048430485304863048730488304893049030491304923049330494304953049630497304983049930500305013050230503305043050530506305073050830509305103051130512305133051430515305163051730518305193052030521305223052330524305253052630527305283052930530305313053230533305343053530536305373053830539305403054130542305433054430545305463054730548305493055030551305523055330554305553055630557305583055930560305613056230563305643056530566305673056830569305703057130572305733057430575305763057730578305793058030581305823058330584305853058630587305883058930590305913059230593305943059530596305973059830599306003060130602306033060430605306063060730608306093061030611306123061330614306153061630617306183061930620306213062230623306243062530626306273062830629306303063130632306333063430635306363063730638306393064030641306423064330644306453064630647306483064930650306513065230653306543065530656306573065830659306603066130662306633066430665306663066730668306693067030671306723067330674306753067630677306783067930680306813068230683306843068530686306873068830689306903069130692306933069430695306963069730698306993070030701307023070330704307053070630707307083070930710307113071230713307143071530716307173071830719307203072130722307233072430725307263072730728307293073030731307323073330734307353073630737307383073930740307413074230743307443074530746307473074830749307503075130752307533075430755307563075730758307593076030761307623076330764307653076630767307683076930770307713077230773307743077530776307773077830779307803078130782307833078430785307863078730788307893079030791307923079330794307953079630797307983079930800308013080230803308043080530806308073080830809308103081130812308133081430815308163081730818308193082030821308223082330824308253082630827308283082930830308313083230833308343083530836308373083830839308403084130842308433084430845308463084730848308493085030851308523085330854308553085630857308583085930860308613086230863308643086530866308673086830869308703087130872308733087430875308763087730878308793088030881308823088330884308853088630887308883088930890308913089230893308943089530896308973089830899309003090130902309033090430905309063090730908309093091030911309123091330914309153091630917309183091930920309213092230923309243092530926309273092830929309303093130932309333093430935309363093730938309393094030941309423094330944309453094630947309483094930950309513095230953309543095530956309573095830959309603096130962309633096430965309663096730968309693097030971309723097330974309753097630977309783097930980309813098230983309843098530986309873098830989309903099130992309933099430995309963099730998309993100031001310023100331004310053100631007310083100931010310113101231013310143101531016310173101831019310203102131022310233102431025310263102731028310293103031031310323103331034310353103631037310383103931040310413104231043310443104531046310473104831049310503105131052310533105431055310563105731058310593106031061310623106331064310653106631067310683106931070310713107231073310743107531076310773107831079310803108131082310833108431085310863108731088310893109031091310923109331094310953109631097310983109931100311013110231103311043110531106311073110831109311103111131112311133111431115311163111731118311193112031121311223112331124311253112631127311283112931130311313113231133311343113531136311373113831139311403114131142311433114431145311463114731148311493115031151311523115331154311553115631157311583115931160311613116231163311643116531166311673116831169311703117131172311733117431175311763117731178311793118031181311823118331184311853118631187311883118931190311913119231193311943119531196311973119831199312003120131202312033120431205312063120731208312093121031211312123121331214312153121631217312183121931220312213122231223312243122531226312273122831229312303123131232312333123431235312363123731238312393124031241312423124331244312453124631247312483124931250312513125231253312543125531256312573125831259312603126131262312633126431265312663126731268312693127031271312723127331274312753127631277312783127931280312813128231283312843128531286312873128831289312903129131292312933129431295312963129731298312993130031301313023130331304313053130631307313083130931310313113131231313313143131531316313173131831319313203132131322313233132431325313263132731328313293133031331313323133331334313353133631337313383133931340313413134231343313443134531346313473134831349313503135131352313533135431355313563135731358313593136031361313623136331364313653136631367313683136931370313713137231373313743137531376313773137831379313803138131382313833138431385313863138731388313893139031391313923139331394313953139631397313983139931400314013140231403314043140531406314073140831409314103141131412314133141431415314163141731418314193142031421314223142331424314253142631427314283142931430314313143231433314343143531436314373143831439314403144131442314433144431445314463144731448314493145031451314523145331454314553145631457314583145931460314613146231463314643146531466314673146831469314703147131472314733147431475314763147731478314793148031481314823148331484314853148631487314883148931490314913149231493314943149531496314973149831499315003150131502315033150431505315063150731508315093151031511315123151331514315153151631517315183151931520315213152231523315243152531526315273152831529315303153131532315333153431535315363153731538315393154031541315423154331544315453154631547315483154931550315513155231553315543155531556315573155831559315603156131562315633156431565315663156731568315693157031571315723157331574315753157631577315783157931580315813158231583315843158531586315873158831589315903159131592315933159431595315963159731598315993160031601316023160331604316053160631607316083160931610316113161231613316143161531616316173161831619316203162131622316233162431625316263162731628316293163031631316323163331634316353163631637316383163931640316413164231643316443164531646316473164831649316503165131652316533165431655316563165731658316593166031661316623166331664316653166631667316683166931670316713167231673316743167531676316773167831679316803168131682316833168431685316863168731688316893169031691316923169331694316953169631697316983169931700317013170231703317043170531706317073170831709317103171131712317133171431715317163171731718317193172031721317223172331724317253172631727317283172931730317313173231733317343173531736317373173831739317403174131742317433174431745317463174731748317493175031751317523175331754317553175631757317583175931760317613176231763317643176531766317673176831769317703177131772317733177431775317763177731778317793178031781317823178331784317853178631787317883178931790317913179231793317943179531796317973179831799318003180131802318033180431805318063180731808318093181031811318123181331814318153181631817318183181931820318213182231823318243182531826318273182831829318303183131832318333183431835318363183731838318393184031841318423184331844318453184631847318483184931850318513185231853318543185531856318573185831859318603186131862318633186431865318663186731868318693187031871318723187331874318753187631877318783187931880318813188231883318843188531886318873188831889318903189131892318933189431895318963189731898318993190031901319023190331904319053190631907319083190931910319113191231913319143191531916319173191831919319203192131922319233192431925319263192731928319293193031931319323193331934319353193631937319383193931940319413194231943319443194531946319473194831949319503195131952319533195431955319563195731958319593196031961319623196331964319653196631967319683196931970319713197231973319743197531976319773197831979319803198131982319833198431985319863198731988319893199031991319923199331994319953199631997319983199932000320013200232003320043200532006320073200832009320103201132012320133201432015320163201732018320193202032021320223202332024320253202632027320283202932030320313203232033320343203532036320373203832039320403204132042320433204432045320463204732048320493205032051320523205332054320553205632057320583205932060320613206232063320643206532066320673206832069320703207132072320733207432075320763207732078320793208032081320823208332084320853208632087320883208932090320913209232093320943209532096320973209832099321003210132102321033210432105321063210732108321093211032111321123211332114321153211632117321183211932120321213212232123321243212532126321273212832129321303213132132321333213432135321363213732138321393214032141321423214332144321453214632147321483214932150321513215232153321543215532156321573215832159321603216132162321633216432165321663216732168321693217032171321723217332174321753217632177321783217932180321813218232183321843218532186321873218832189321903219132192321933219432195321963219732198321993220032201322023220332204322053220632207322083220932210322113221232213322143221532216322173221832219322203222132222322233222432225322263222732228322293223032231322323223332234322353223632237322383223932240322413224232243322443224532246
  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. var _default = target[key];
  39. exports.default = _default;
  40. /***/ }),
  41. /***/ 10:
  42. /*!****************************************************************!*\
  43. !*** ./node_modules/@babel/runtime/helpers/nonIterableRest.js ***!
  44. \****************************************************************/
  45. /*! no static exports found */
  46. /***/ (function(module, exports) {
  47. function _nonIterableRest() {
  48. throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
  49. }
  50. module.exports = _nonIterableRest, module.exports.__esModule = true, module.exports["default"] = module.exports;
  51. /***/ }),
  52. /***/ 102:
  53. /*!*********************************************************************!*\
  54. !*** D:/AAAcompany_product/新建文件夹/product_wx/static/mine/banner.png ***!
  55. \*********************************************************************/
  56. /*! no static exports found */
  57. /***/ (function(module, exports) {
  58. module.exports = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAABGUAAAJ8AgMAAAAqjfSkAAAABGdBTUEAALGPC/xhBQAAAAFzUkdCAK7OHOkAAAAMUExURUQ990I79zMs9igh9Ls7gNwAACAASURBVHja5J0/juM4Fsblgbs3tQNPspfRAHJUiQ1IU4FPUDrFHqEnqKCVlwBRACuXgtpLzA2mgqIAZRuUgfUsSVH/bEqWbPKRi6IHJXc3MEU8f/y97z1SsvO3gvEeTBiHv/WNz+C28fvI//PfDtjEHvRF5rS9MTSPmkNzmjYNjar5I7BUNc+BYdW83xoZ3ar5UDANI6DRrprj1GnoWlCn2yOjVzWnZ9OheQ4sVc3L5Gk82AYazar5UDMNI6DRq5rjjGloWVCn58BO1cyamJbQvASWqmbWxHSw5uO+yOhTzYeyaQCsZ1DVzJzYwTbQaFTNs+nQvASWquavzbxpPNgGGm2q+fymcBpGQKNLNaff5k7jYBtodKlmfotEcWjeA0tVc8PE1LJm9nqGUs2n4mkArGcg1dzUIlG6oH4oiYwG1TybDs27msioV81tE1PImk9FkVGumk/104BreWpVza2GQt2Ceg4sVc2tlcvBNtAoV83NlcuDbaBRrZqjlmlAFwg6VHPHxBQtqJfAUtXcMTE1oflQGRmVqrlnYkpYc1QamVHV/MsBm9ijbaAZVw2ZFZr7JnawDTSjH9cRzQrNfRM72AaaMdWc0KzQ3GkoHmwDzZhq0KzQ3NsiebQNNCOqOc4Lzb0tkoNtoBn+uFhkZoTm7srl3tB8qo/MkGrQrNB8bu6dxp2sUdTynKIaMis0J52JErLlOUE1fDlND40CAt63oP7SERnpx3VCs0KjokVysA00A6pBs0KjZGL3sOakJzIy1ZBZoTnpTJTALc9rqjmiWaFRYyjuWFDvAZRqTmhWaBRVLgfbQCNTDZoVGlWVy4NtoJGohswKjbLK5dE20Fyq5ohmhUZZ5XLrgvoIoFRzQrNCo25iN4bmqDEyZ6pBs0KjcGK3seb0HECphswKjcqJ3caalwBKNUc0KzQqJ3awDTT9j6sCTTw1NEondrANNH3VIDRHNWoNxYNtoOmphswLzQ99yLMBNF3VsOWUoGhqaOYeJ1e+oD50R6b9uFgswsmq+VQbmfmhOWmPTKOaZjlFU0Jz8x33yhbUjwBKNUckGcOhUU7AuapRvJ5HVFMXCPG00KhvkczMUJ8AkRGqkUZmMDSfGpFnC2hq1RCcEZ6g2H9XQ6NjYvMW1DtIaNjHdcJdTxNdC82z6dDAiIarBhFE0OQM9a4xG0wb/wmgVEPyFIvYTMCwnspllmqeoVRzzFF2qZih0GiqXOZkqP8GQKo5pThHBZ7qa170Ic+y9RT8XpYFKhEXTnK2oiSh0VW5zFlQfwKF5pcyz+iKItNUo61FMic0QJFxfylJSTKS8lgk/RLzIjT6WiSP1qHGd6hqUI7TjlbC4dDoa5EcbEON79DQlCW1NRg3shlWjcYWyYNtqNmx0GQZLi8EIwuNzl7so2Wuxluy0GCqmjKTiOY8NDrndLCsSnDo+CWnXpiqRqSokfJSa4vkYBeFvUo1GZUMuV5Dqbnj/v4F9QkQmb3DVUMtHy7xVdZoOX56i2oAGhK+11XN1QylGX4PViWoWjUFIqVAzTCGdX9WjxYlKN93PddjoclzPNCwaUOjfYEfrMrde1ewJstKLDPDbWj0J8zpofmmHTR+w5ocFyJDJUPlpf5P6tEqW7OoWUPt8LivAUgKB2tsDVON67pOlaFq1aBY2gCFcBIPVjk+kaGKHFHWjHT5ThDge7TG8fVYwzMUrlfTxdGjF4jP6WBTS2Kzrt1w1vgamWo+gq8VGsEal7OmoKpJhyzfESQy0xcUSCOr9jUFzlrVnGcoENDMUY3ObLltWbOsWJMVgjWSGuoFJjLTM9Q7BGuEr6EUznCaNk447BYKH0CRmb6g3nVC5sLXFJhIKUxDAxUZGxbUulVNU3lT1Uh7ElaG5k9tmvE8OWsINqsa8wtqvb7wNYw1JULy8vLLqGYbUNX4Ul8jREOLqNhIaAxnqH0QrPb7CzdcUDecVSCO7V9QWlTD5CJlDc4Q+toZasNYs9mc+xpaQxUUxP8vodGhGk+o5sLXcNXUJ0C/YobaD2UoKhlclm3LPPlqqvEryPRY4y4r1XDFYMlpvq+RoQRkJKopixSXAjbhF8xQnoCM1NeUvQwVfq0MtVsJuUh8TUELhTwjX7SGYqXTJWtcz1nWbhjhL1pDffttIVSzkPgaWnm3vibWHRrPKtV4HDXDvoYHpvE1WpP3jv7GjT2q2XdYI/M1rPKuSRxrXlD8M7JGNb63DaSs8UTbPGtP4esuL/lvdBY2+Rp3IfE1XdYQaQtUdWj4uRX62trhazhdBljjuDVr2vMAOn3NzhFjY4WvWe+v+hrKGtHKCs/3oTSQxvOWEtwYUE0FGbmvaViTyo5/qg+N7zRjYV41OwoZjr8xX5OVKSbyA2tqReO2r61p1fgCMqO+hm9eIoBCwXU6w7RqHGfFWePKfM2iqaEoiTFA5e31hlnVuM5yhDVehzVp26/RlqF8pzcWRlVDk6VgzaivycqBxrni0Lj9sTWoGn/nuKOs6WSoQn9ods7Z2JhTzWbXsMaR+JpF62tyoZpQZ/JuKLOU4AZWNQwmywm+hlfe7Z63tsrbuRgLU6r5rcOaUV+T4v7Nl5pC00DGk+AGVjWet3MEZNxR1pRZ62s07ig4krExo5p1sJvia9j9ULT21u5r/KVXv7zm3dKIaqgTnuZrKIYJkRpitaGRqabBDahq9uvNJF9DKYzx0LlhjbamjxtQ1XiMNRVkfMEabnB8du1lKKaaVCYbpaHZOfJhQDXrLmtGfA07KVE/UyKO9e0o+C1gOi/HWYKrhhXdE30NrusErSclhlRT4QZSNX6lmkn9miLN9PeGXYmvqfaWTaim9jWCNT6/m4Vdzn1NBnAqa1A13N1Aqma3muhrihxRP5w2my26jjl6y2Z03i4FiiFV43mTfQ07lqX/3LA7rBqKG0jVMCszrV/DM1SdufXtKOzkvqaK2LcDsGrOfM0Qawr2HDFzGYqPfwKqxpnsa4pWNTo3dndLR7yWntO8r0PzDzjV+F3WbAVrOHS27Er/+czXYN2nssZV8+sbmGp8Z7KvYR3Q7sHhSDdrvEvWON8RrGqm+Zoct74mMsWaX0sEpZqds5rcr6GqwXW/JgYIDauczsf3NEsNsmbL37BLVWH1VEMMumGumjR7hVLNYka/hmT6+zWjvoapBqE3ENXspvuaPONWmMie5gipGrqogVQz3dfgPBOVdwiyoAZYQ39hCqEar8sasSO25e+23hlraOJOkfSoBDBr6MfzCqAad7KvodVlnqWpaV+TVjnyTb9q3FFf45/VUG1gEnO+pjqICqGa6b6GPQUUX9bdwKzJq8dBp6CsEbDZttdtnzXsYVmZ9GmOkKoRBuJVv2om+xrWyQI4X7NjZ3HFy+28b1UjlvUbDGvcaawp68I7NpahqLkSp+YQUIaa5GuyZh/KHGtw+w0gKSBrLgaHTud8Td65s8WQaoqsLuOeRnED6mvY7RudYyS9Z5vrUY172UL/nmFaKlRpIBrDDaivYXverR82VUPR9dRJkrb4GmaHCSCGpazJcgHhJP6ZjOBGN2u8Hmv4sxwxnOUbUA3pWohXK3xNVrL9S8iNXfcSNpQ19aGEKPoZhYO4UcQaV/gaz62Y4/niJ7+2rCGG97yFasTmclJ9dYwVvobW3c1xc32P9rnGGmr46g2fiN0O8GoBa/hNqanh3UummkwcQo0TfqvEmwX9mjRtfA3IZovc1+TiQGFcBWdoSSljTS2QcdVkoiFgljXtmQQUhjQ+YWre1xS4/q4AgzVUhuuHbYZhzJd2IsUNMGsy3Ol+hqZqKFzUmSCMozgK5f0J2H4NtXyZ/nsvr/iapvKmNRQXb0zzFNLta66yJhf7UCYzFE0E9V2OlMHRU8zLuVSvr9mzJwvTP9Er9zXi1fE1hJQYMkNJ+zV5Y62in2IuiaRggK2hWHuNmHbDVDXtYxOTOEriJJa1Q6H7NUT0kYB2L2W+BjdfbRZFT/Xaji7boaC+JsedDBWay1CofbIvDU4URixXXbRD1fiavWDNfs98DbvuxYW/7bKm0P+84eu+hoi9MKYaGpcklvUnYH0Nu+kHYeNuuAO8JK7EG3HyvKlVDafMiv+kQ1w2m7W4stHZhyIFwJ73lX5N3vz+J+ZoYpbExVzM+ZqifrxaYnDPm6aCykHwSTDY0Cwl2X1Rk6E6rHEEZFb7C9aw+7yJ6NfECcRB/AHW1KJJ2p5RfX0z5WtY9m7XuaE9b1zkYg4UMLSIikKeLMW9a2pZs65Zs2bPN1rz62axqa4b9r7dvSSglk/er2Eb70Ts0SX8+7Oj9t7q1FC/hp+NNZ+higZ4ESuj+jcgvZrwNez5NUhs0YWhSdak1RcxUQTHEYdO12u9mfE1qCykx81h3XB7QDcKuRkOexlTqa9Zc9awIS7toAZn3TnL1+t/hmb7NcwFU0scV42+djKpEV/DvpiZGN7zzki948MyFFtMMQ/MOW4U+ZoVZw198T+x12pfXRl1OueG6xvgdfaG3Wv9miYRUNZw0Jz1ASrcAPsaIrbHEqOnsmrVhnweIQMOj07Uw40aX9NhjSMYsxhgDUlN+xqMS1H+x1EYhfXi7qWFFN7XdL5iNzZ4KquZAV1MT1Vv4my8qlHNiqtmValmdZah9usea+oOm877vN1p/Rrex6J+j28rXADnTUFoZrIG4Nnm1/s1aT2HmFtPtoF5MSUFC2qmryHE+PmavFN5o4RKJ4wqCffik76rYs1EXyM6bInBey9pDVUfPUI/46he3PH53tgfKlhDR/WzvdZjveN/2bIG4Gv6JtZQ9PN5qigTn5+f4+PHN1jW1LdeJib3vPM2RT6xTW8Uyj6uH/In6s/zNQv2GOrFgl4X/E/d16b625o1eXePLjLkazq94briTmShcdSw5n/MXd1t4zoTdYDsPifA7q3HD7kFLLBfCwHEKm4JeTULIEAKYAFyRxSgGj7N8Fc2aVqOxLH0YGADZA1ldHhm5syZO3mNSy9pe95ud4y05zcWh9llmQQfzcumWPN2C2uGKeyHosyh4gl1sqHLcr2xL/AtadfznmPZQyBh1CTeDdCH6jKdZvdovgc3gDIviDVwuY9wvf9+sT+2qqzE6pLvVjY/1uo1XjjcobKmeELl7L934zVTrygd1nzUmGQAlHfS2jhc8Zqv4gKPPXiNmpo4rFWwZnCqhE4KyJ84z57dxj6a78DNGqw590MDR/x61CTTNbb9BILHSznUV3GBxwqsOSDWLD7d/fL+y/6rcyLxg8S78ppjjdeE9mUHpU9MLuU1s/kqLanYg9ecde9cjyShO8A4E5tIrjhUQIUqwvB3wmYFrwEcjkPwjFPlUDqc3JxJzHRzcPNVWlKxD68JjV3aeag+/G0EU+7BcFF8ND8ejpqsNaD7eP8V/sl5gLZkw/l6zRB0c90JI8dX8Vnh0bx8D2vu1NcM5L58/8SFOiwstL2sHy0fzeFxrDkAmrwtPt0NWHPwWAN7L3tNX6+Jky1CcBiJ4iyXeyeP5sfuWINR41Nv1mBUrBA1fWIN2GHAsFsn1MNv1DqsWfAaRcJr4mSLFUoAkZizTF5gw994o1bVa2hdqoNSIra8oVrjDydZjJoHqU3+Czh8mbEmRg1izRPkUL1vvHMofmIFgDt1bOnR/GiDNe4vRKYAHabUeAmUJIzl+PD3H81KXpN06DinqdcoN7E2B8opvkr81qN57Os5i64Le0Br4GVD5nhMt6Ua4hzq5xisfaAczDspZPaI+v6jWYM1cT8UJa+JbijCCgG4g2BWfjQP4bDf35Dd62CvQ7ofShPnUGgjpqOsmwHn64JueP+oyWPNjDRtT6gcr5mUr8My/snd0G4GhxeP5sfWWHO8wJpQNCfkNT/nEyrphUklryx+t3qhVvOa3PHdltdoJ0PlHRRsYDxVlmvD30gV3PqGi50O7tPurvIvFPIa6j7Uz9G/026SWQipcuKj779Qa3Oo/e1Ra/Ua7Q9vPmONc8zm/PYL9bI/rxnIe94/9ehLWVCoEZI7vxi5+aNZiTXZhkJbXjME5REc2hgzVTb80Pfz+xvs58dytwNgzfECa6h5zdh71RzUhrmt8Em1wwu1Emumgbpeg65UqJrDjgKUbKwioNCie/z0XsNrQpXPzoFyGl5ztm+1lfAx5Skf2/yFWpdD6QaO+DVeo7x/LeeMS2hEiUzVfIOoWfyC1+PiO72GBCrkUIYea/zopZAWZ7hU+8DwGqzRUUbS5IQq8JqhDxUjoWzuLa/+WmYDrHEux6nn8Qwy+Ol4zSGp11hHKFJeE/xr5gcC2SVISdjt2vD+WDOYWHyUZPUarydkOEEHTahaH2oLrDncxBqImlGRY43yZXM7CZXZrkODNWqgrtfoc5ynFhzITadkrShx+PW/v6vvZdC4r3L8cB/XJ5RKpC00vMaEZbY8MdFpdkKVeM3wBLxGx7FhsIPyp5TYnA2v4DW4fWP/es2xEjWjn0vlFmtAx8cYMdYM0XIdcI+oD+VFc+D/GUc3KifUr7/rr+wJ5bDm4zpqBvrasIkb8ebscn6bWCeqMNwAaxosXKtijT8M2KcIqnd5uzZ8+A2bKlfeK3gNlrLiEcVosGZMyyKdsIaFrNKia8BrgkeLJOM1MLFre96oM4cBBc5lSYi/Gdbc5jWw6ce7A1DmUF6gK63IMVeRIMCaxPaNTssXhxyZTeZkvV7z7wPXunqNU4BeDvW1xBrw5UtF1cCKqes14CLWVgFamvP2A7so5RPXhm/teQ2qzffHmmrUDNE5FlUkXNUThX2xZrGZ+Ql8+RTaMHMQH83JQoUN3xLkla41vEbrdB6KjNdMJpr7iHxhmCCHits36Oo1vUNhgT2okrzGtOY1Q9gqJqmwZoxVczyhGO+EJOc1M9Ck9RpGhDUmblxL5ahyV6yp1mu8jo6wXtP7oR/GUHzUoV+WuimpboE1qu+pec2kowD0etnF7idUsV4zmJzYvG2VzzhGPodJ50/uzPzlRdT8WX+v7HmnanMqTwmf/ucHvGl4DXYUqLHGJC5vJzii4JSqikia9KHaYs31ozlrE/q6iodNE1e0b+OoqfIaNXpeI+iipvcikvn0xik6kSN9y0fz54HrwZ53k6LE62u2Nhx03Z/RMqvGhvfnNV5GR4g1o9M/SS+qjsc4Xb1mPqEm3bKjUNDX+NlLJxbmQqjMcGprXuOM+Sh5jU4WFnTolZX1g2qKNbCzZUqCpkFR4jU/vqGSRb+oN2eMmtfEsjkh1ugwQsLYSTp71GtLiUs5wAPXutrw1O/vy1fhNfODiftROC784VVJ9d68BqPGzyiQ8Zr57xP0NUK5alb1hWqANW2dSLIvVCynYcWG2wFMSV2vUY7YUOprgi8f55/KP5da1Lw/cFWw5m3Ba8Zz0ocSDXjN4ZhTZQ1hLNVOboBNAJf7suEKrzGo+iHmNeNwDuW0DkG4u6MosTPWTNN4bqrly79Q0aLl0zFiSV6vQaxR1Fij59NAO8oJXV3QDFtxLCfDGtTXjDky3Dpq3AiJQJMWq+fjnJbXwIMZdtcN35tDgfbTSrKyXbq9oiZgTRI1I6zpm5pm3vkR+LDrXAIXlncd3jvzmrNOBuAZ2Qnls0vcS8JxozerdhR2xhoAm6IH6N/N7toLdQ5nVNxgyGsyx715DaYJ1PqawTg9AJuxhqH+SNQP7/e39ff9WDONykxTT55D+Z63nAmwtLosrq46CqYpr4FVAeoJdMPhhOLOCZ9lXMRa51BDzLwvRCR/t7vuYcMmlkYEb8KG630o7wFKWBues5XBqQE6dcLnI8O8d+nRvD1w3caat7elUqLolfXACEDpvjuHsn6FUjZRSlR5Tbp+Q5JhTe8zFengFxbB32bDL+/r79tY87LgNVDlm/JR0w5rtJ9RkLwTdkJBKMVp9TXnsBOEltek/zPm3XckCjtjDdSyprQHlGLNx2Z3nQ2Pibd5shePUfahwkpQQl4DUTMEvRqDNfCcVQcMXx64b2JN+nPsKOQPqMZYE+Cucx6gSl7Xa0xrXtMPQaVAVxtWU6ylzSd3J/0OTDKsGXHoJ6vE/+/wsd1V5TWuXiNB44jRwjk1r7FDP9RaPp2sbOE4KsYzJdnLR7Pr5WYvxwLWfGx216Im1GskTinMISOkVJyW1wxjmHqkm1GAmsToTig07LorUXh74L6JNenPsTacekosyuYNsSbZ5y3FCVuYPLMwoLW+ZnQCDlKsMQtosVW+mn/NvlgD+hrVFzxAW55QevQ5FPC92PrhlH0oMxlFzWv0wgxa4nYSEJNIwqiBHbsqWl0sixINo2aIo8wnq4rNDSu01g0XPHUbq7KMfaGcWJh194xv7Iw1ZygNG5OtDbeLmmT6EwbFcKfYHbzm+LH6vslr4Odp1PS9VYtlsObPZnc183a1e3bBsaQiZsM6rxtuGDVhnzecUC5eyHlNtGKWlKqstM4HdXNUgpLzmog1Fz3vlrxGJSeUU5BUsebSNfieK89rjuHXXSglTKE2/Ge7q96H0rHK5xyHGe0JhfoaXdgqRhE1cEIxrjrOcoFziTXr7+UvWM5o4c8XbNiYrCX+fw/NAKwaDUjYsMMaFl9rQcxrgA3HcSi51A03jJpJaV/lO2Hmjb2oSm3421hzuIk10OQwmhprRnVe/N+iMNPcFGtmNjzRZ97BvAEkoHaOmUlV5TUP3PnrNfy+5IXCqCnohn+/b3YfamzYteicyyWbkZhJajY8R80wUJ9QyRnJBBgfiXtMdXfmNfavFbR8jAhrhtH+fZh39ZF3LAtogDVBbi7o+lA+WeH8BH0oMGtRnLaUNQTJ7jXWvG93VXmN6ZO9l4rfJalugDW9ImfDg98qpk7YbxFYOK/Uhi+2Idx1Z3mN+1z8HOs1yhR63n/eN7vrUTMEZx+7K1U+A6/Rir6jEPpQUvqVNvLa+si0xhqTOBZyKqyx3wJ7c5+48pKrp8ihCpMtbZUSwQ5f2XExzqu8Zt9HA9OFYWBXUp1QY5xXY8qqSAS1UgLqNZPW/ROwYR0zS1wBryRxi+6Wp0S7qInbN9Ch2q5SIK7y6QmdSALWME6VeYcjCrR8naV+xFijo3f25eH9yLxR4a5GzeieDXo4CnQhEeRs2DxBbRi+gnFlRms47ExsaHMoUCloaqwZXZ4gwsiPW/jDCXve4Etq6KMmTIqxGWukDPv6SNlwmJxIR0Lx0bxtd1WxRo1xz0V3p9Flg563JmfD2s9k2UV04D/HpaLmNZh653nNy3ZXPWrcX4d7MwnFBHHPG7eKKXqsic4JXbSnpuU1zvUo61/TDmuCt3knOSSYmEYRn1DoHDspci2fjntjJLc6Pi6JeQ3OaOkC1mx4V3veY7RiFgVjHwKsiSmUIKsNR0cJjjI+7NXRY40u+A23wxodJqqlrfRxlXsyzXOoydB3FLyWDxbJipNiTjx3sWeiLRvGiV2TtICSR9PsmrFmjEU9O3QppKCv14z0bDhgzXxqf6JFNafnNZheDnlfvrcN71rUTIlxorDmfIrR9qEgvdT0WHNO9kOBJ9QzNHbPg/GDj1e8piXW+NpwHPdhWO4jZcPzsRmTKKLacDyhIEXo3AAmcdTANpuw91LQRY0bqWbp86DNvMf58B5M/zRYgysMEW6klPRYo3pFjzW9WhwGKDiveUrsnENB97Ko5Ttud9eixuvNQTfsdylcNXZbs+FB+dlLSciGF07ZUrDOygKIec1E31Hw9RqJuuEu7qIjV0qQYw3MQ+lkWo0Jxem7lz0oJYbs7OVxw6vyQoW9l7A1q1NC8TtWgu7Na6ZBleah2kZNUoKVaJfFaAugdj+UydeGH5k3Ktx1Nuy+RAcSUOZUNpxUiG83/WhirOmH4G0unV4ta0XSujYcdcOMCmvC3kspuT+hJHGiYKMmekowmqiZYyaADTZa3AiHoK4Nl9jw64Z35YSK9RqBky15F0WC2jA5rzHGYY1wHmtCOC0fJ60N68Hka8PtsOaso5ZvjhrpAPl5tHyKLQ/vtlFjmyuCyxg89H0oVdDyNUwvdZKuwBEFGptnOKFGpclzKOVzKFszF/9n79pSLLmRqHtc4I/+cO1gdjDewVADXktBahNeR2kBAilBC1BCz36UcDfQMExGhF63SrfubcapIxh3Yew/F9mheJw4cc4jao4D+porPds21/yJP/e64Uum8hGTL18XGqhkIfc1e/9GYSheUywMjeDDcE0JzjW39lADW76iyq+ZOmyNdQ6ODTPK57v6NQOjZnW5r9E2KZsb8GKXseFWA1SDBoWCDRNjrbhmaWg3XFA+JF7jt7X2Vry3tBPwa1ZqiPsaoEOjZk0Pyrwl/3eLlhFjjz44XlO4y45hLPeYC/zZM9SRa/buJnXog6rDP7v06f57GtzX8GuK4FxDmpLlHmoRFebeUmHop7l8sr0cOUOF3PBZ1z2txu+hYGk4e9E5RYtdteSQ0dgK5bryc2OLd/bO0jbzLe1fe6ifkhddQUCZUs0tDrRCca4pt5cWiddUsU0SVxP402CxYdK59F1/qKF4zZ72UCaTSAy4eMudN37yLp4tOsVOni4VGBv28Bkq+8gKYS2jNeBcc4wvAV6hwnbFeGcdR63geM22dt1sBkdNwowU7VoYGDYfKKkAlC+sE+SaQstqr0jg91CxaGUBseFMN6dFFGESSsH1hul8I3RXCkOjJlS6msjGuq6p9+AZ6pZ07NC+xqdcw6LmYkNnwBWKsOHNr/DJuwldK/KxpqfTMrobju6Gfs3IGSqP3gu77M6gKcHa5g1eo1EzVN2F0Z03eV/qu54t5+M18Zbe8EiUb5WPw9c+higBRLAxYHWA7aZ+zXiUj0mfxs0h0lKVY5H3UKHuvLmvISd4NJeP9YZ909koFMpX8BorHBvbMyAeHzURzeUjbLhIFuoyWGIn7/1KiAQ2XvpEXtY6SUIZ/YGtC4ka78F9zV5PYxdDckeUbOAzFGmbR/zkzOFq7AAAExxJREFUHao5iq0lW6NzjYP3NX4vO+9FzpiJfKSxO++jr9kmiJoQ1mr6tlhq/DoE0PH8Glf7GtCgsK9ZzZGts5qKANYbvsU2Hwll5Tys5XjD2Qk0Ja7QABxsXoYV4eHTDNVwA2B7qH1Fc/m8S32NabhYGr9RKJ4tQLzm4hIEqml7qciCGO8qFmIl7QLJsf5d2OoUQhq6UVibvkahuuGEGS18vcGkNQWmVG+b34OLaKZE2UMdoaKSECieX5NpqeCdd+ZUH8PTwtfMJvGQkCjfXilryDRcsPvMiv2oKDG8Gw6tLh+KX+NSY0OUWLVY3l6CSSSUazbv+3feI1G+DEpom7TDDFraR/SG+fdCc/nqxa6RizG4EokPE0ze3heeI9le2gcdDM/ONbtzq4P3NaG5UWAVUKPBao4bby8n6GvkUcsaSvMRXXpa6J23h/c1u69rKOv6E9R4vCa0FoZgfg3PuIpamgWvDlBJCsDby8yvYZBGJwIo/GLXb2uAc/mIXyPKCWwxwcSajo7YcAfD4Hb8jUI17zIqeewaGqQUdA8Vg5uAX1N0qllTQuspmBK5cFpg8S4eVaZM23AvOtIbDpcJcs2eotaK3vAM6gAh9oVjh1eoq+5B48dL1hsutCyYtA/JQSUtZoLNCZXgERPNlLjpDzV0vPTvVFmUQ1tnca7B3yhk4hFZIFGu4dKN74ZXuWAD55qit5EJWWjYnHNNwLOyQmK8k+IRa5t34Zo4PtfkEqWAfc01nEYkUI1VjuW+Zu1KkQzuhhNeo/Wr6PL14Or/x74mxOjb34KofBYMSqS+ZoJuOH8Z9rx0aV6w4BkqVSjkDEWnfHujB63mcEu9qlAG29dY9lEgjgT9F3gPxbkmou+hfP02yU22b2P47tO8DOhr4DvvynPUrABaMjB6hvJwHwXXMgrZE1Q/sL18Or2vmeAeakvagFqpNzLo4zf1YeUSRz4ozjWh7qEUGpSQQiCT5X1dvpezc00zKqDuoXwGqElFTMt3mcJVLOA9W9YcM68cMzof0X2ahn9/OvPTUK7prrwH77xj4YDSPsEmuY0JXMXQunzZ6Zzka0xWNlf3by9fXs7NNdsEKN/mrndhgklAWz65h4poXT4f9ySPyquWZE1i7t5DnZlrPN1eXmuRgHjD1/mOqvfygGTh09lRU9tQIG+4tZgwbnnE6ef5/FwzwRVd2oUd3XAjTv2AZ8vLeVHD3wXusVv0a+gpLcKTsGgfBbmiq1CsRqF8pRtW8rbVAw6GT6e2fKKIj+cNF3foV0OTgn4QNn/+13m5hhXxPVyl2vtrqqV19pEV3cupUXO8ph1/e1kqFK/orC3CCcg9FOkNw1E+nytUkkZNkITWd6Gsl6fToob1his2bGAVqnSdWlGJso+dpT5/ObGvmcOzJWZbMa2laGflWA0bFMTpJ8A1JfL5hmhlaW0eOjD8kv45p6955w+Fi5qKmyfhow6/ptsNP50ZNXsunAbeDStteAWlxFzs8274C/+ciPIdUbP2PXbHVqgSMlp6cou2s6F7qBm0smJVWGP8036A8bu55vm0GsW5xk/AlPDZmlmzqA8LgD60UXg5q7NJesNVK0uBu2HjXo/3xG/JPNANP5/5oHYfZlBzDFVVwvIP0/AVPtfAtbL2xMNnQfw0eCv1CF5zXoWSvgZ/e9nErZVm2MgL15/PUC+0cHk5Lde0ZHNU8fa79HzcDd/Q2rj9oJ7PyTU0Q4U4wQzlymkLTdxdrayb2PDTKbnGh9YfCsjlK4xhZpAQEHoXAD01DYvvZYRrSgTnE29YWeEBPMSUePrpvoHv/xY1K55fs1Weua0In3nILOD5jHTDni2XKTQlklegTT4K5Ll2lwH6JGFzSpHKCmsT8Gv4QZmsN6yTzSMUGyaoJKJvFIKvw6UoH9kZLnZ97LDVxgtdNnrDVmSyHhovn89qbtizJfTB4aFRE9Y6yNGT0hkcVnex4adzOhueoVbnPNofag/lznspAaygivjUoIfWzxumXxMrI2sRM5uHFdbOm6GqLh/usiUfGB5h88ZKoMSXwCri78eD6rc1w3nDPjfk5oagxL1P8/TnR41LD+qdWMHYbnitpCySruGYwZ7AE16zTYANp0MJ7vJY2Nwt9kcU8V/Kvz//+fG+JkY0vyafKBzxogqBBOy+cTToE+gN+72QfHjdotUEKtVHGsb7Xu7lhIQrFD8oA17REV6zlhkKqMt3KYqFjqlHff+NsVHTeNEhbxRcHqKEaS6+oFBF/MuleJ29f1FDo2ar2LDMUNbgvejYpA/te+njupbtZRYYUnC85qhR+BlqC81hauFT4/WG4xS5pugmsFJ1Mr+00Bkq1o0CzM4mC6xxk3dDTwITNfgbhVAGOZqhFD0oZRzaH+pKOBbWDeeOXOVCqXsqoKO7YSeAAHiGyl+GsGGrnXMz+HmH/qQwdvL2vnjREV5DZ7vobpg9W/YJuHyxRfmMSKwZdF8zg8Kab7ph0sqy7gew4RMrlDiVWij1KJ3AW8aECRzWolqIzTVbmMcFXjEccRMcHl6hJvCiK6tlvfCIoDRx+QwSG+Y91D4Byudd83WEPWLx3XDmbyDvoWhcSUd0pUK5CfqaC/6ypWW805s6XhNRSdDd8Ax6w7FctnCF0swm0Q49QxXvLGDxzj4KljdQtsp3g7th712Ee9G5wq8R7ojtECWgO2+Fx4Y11+2ll/7Gd8Orw+eapEMqsnPs9WOdA/NriAEaIpg3XLh8IlYoo5Qx7i9smPg1ZVB4dYr1a5zDdsP71WULsBt2abxkU7GusDkG5VvRe6i2FrC9BDnRKQXva/zq4Be7vtZuIqvZ7sYbMEPFgNbKCtHnCpW2lrYH1+CwYahybF6FvfHJT+LiY5kSNEPtaH5NaGUtlJ5k5+1vBM3oXJMODI94Mdb1lc3Hd8NrwGtl7VtzylyMvD9I4w+fodyld5g1NGpq5GrGJbr6aojJG168iciSNEDTr2DhKN+2VbxGzQCbWz6BX/gTaQ1WxOeOIqJVj5onlSvTBH7eLuLvodKKjqTnFIeLcPkUeIYKzTEzijfs20sxtgWFr+g2ScPoXFMEu5jEtwg0DHdm9jdufkbza1Ky0Y7sbI6vs8CNSYg3nIFZ5YA+CvkvaJH1pexazCS8YSzKV2H7JbEdHf7OOyamhELeKGRhPqNfKQcvfOqt0d2wn4DmmJ3ojUTOHFw+YmWFnvD70KjZQtYAXdhSTNSqJ+DyJUHbCW4Ujj9vkox1z0hhPF6DV8Tf0okC6camCcoa/Eah9YeCRU35NpkFYB24QjE2XDRADeweqoryLSw+18ckAJM33B+KOLol3SlB+tRyVwP09FzT/r9RsHlpO49EY90NIebR3XDYWc8RnGuuIvfog41w1ZC3l3RE590ErmJZOJZVWpYEEuMnb7zesI/v5v++0c9wvOYKfYT1NSl4F/NG8nPOpOMN6PayCRqL4g0f02UTNQLxWTQAuq9+hm44z5fJbU1rpRxe2zzuE/hDXV+QLMmPSYP3UEeLPoOaYyh9DdmBpm4Y7QJ/5ODgsH7eIfomchkwZ2gCeed92cPlyrQFdXvp6oGhKUCWxXbD5CMTJ+DX5BsFeVV05w2evI++pnGBxzElfIGylmwIauEeuz6seP2aehursk+q6RFkh36aIw+H1eMrVJq8DeeaN1lHfTT7Gfhpfk5RA+cNx/16raH6Z3QDP80vcudd6QBopx9ONYbQrAWsX/OLbBQ8PNfE1PLpzJzT6D3UV8aGPd7B0Bfp2OWNpS773KORn2aS28v3Eq1s6v2AFPOJf37lPRReUyL4BEqQuNqSOpoFypT4u9x5J38opLZ5zKrHViR9FBrl+40YoGsTzShR3VClAd9YDcpZ56AV6p9JAxTvDxVzlZRVFLG7sfdQG2HDM+A1R9SElGBEiESnQQHWDX+7VEtQsH5N9qIzWSXVQOkAxwjFGqBhor4m7S8tGOX7+fu3rW5aLJB6VLSy3Gu2lsDiNV833sPPkWt846NAsoVY3vCv9J785la8Ll9WlMzuGxp82fKPy3c6Zp7CLbW9iJIUrJlPAuqG/9joDim0O28Nm6F80eUzS//ycmDUfDkKFLulVmwYphzrk4+CUMyt8I9wueZv37dv1ZkZrF8TysL7iBetLRav+XoEDbV8rbY5eIaSxnO5oYc37tP89u/tm8A1eG3zffXFv5BM14wp7lmIT/ONcg15is3AG24QIysbb+CDOlINRY1LPYV9hzmOjZrakxulZMsCnKG+bpxrtkrmM0B+jTyoRWgS5HqpgXjNH//5fiF+zRE2Ho4NV+n5t5JfLCpqaOy+/Le5a8mN3Aai6F44QPsG8SL7GIhvZaA5QHqfU3gbHkCAaEC9lwDxPmqAPAABMvUhJfVYs0qL5TFmFrMa1JQe33v1w64sZ+Q3x5abLTxdg00Buv26BrQWG/4jEta4/hvwGkjd5YWCH3MuSxwkXqiDHVx0dEfhjlNI7Tbvv9Q0xBrW3kKMHl8oeLs7+Zr3asz7XaMtocU01DFB1rCGWm1Ya+SUNxsjTb7/rjeqP7VCcw3B+SFrKPEZhX7RUO84Wti0bStF+V6TtXZkDbXwGi3p8pV/QlvaP43IccdTSsHhD29YW/yaRqwONZUdoIi+ShHWCGxYO9oUbPLjz36NfHMsXZbIIkFLKO9rCikM44w1k/i+4X4q81DvusF1G+2mYfOxP9AkgJoUwnjv10i2ORrT37ErvTVHtzsbBqCJCajw6Hzxa7b2mVXFGpObSFTDh855zltXfrwBaACE4TeiMPk1qwvsSgux4dzY3XKpUM3/lKov1CXhL4BgjIybrWFhXnMrHxTeoss312oP/bxQZDBz/AA4jH6N+RZ9w0tXrKb1atVv0T1RZHzC1yk69mtuphf3a/LpGBDe53xvTZm611IPlkIDOIxZM1B/jTObBn5ll29JXVxGok31y8wXjksEMuwCcj50A26dEb7ZsnjDZ7zZ0vI2x6pCgYEGXyhIG2LDrhySEa8orGwJ1bZmE2w+9gSaGCN9Th5fKKxe4pTWNInXobiRpSHLPCsFVZHXFKApLxTXoaZOvlMC22u6dRlKb57f2I8NX9KMwQF9YU/Vy267oFB7E8m8fK5R1DdcdQcoAI23IaRMhhORYfRryiVZlr1Sm0jmpVR5CIqt4Sq2+TEhzGDOWIQcwJlw5/LJ7q8p2wEa2tyt8vBlHV5TgMbmP22kx/t73NjtyxQdradWxlS9YPgGYttz3pDwDpbfbqwoLGRY6iTo5IbChv+lzNG62pm+Z8oXCyiThbd1Ab8orENtD6bWxhqzLmtos/lEfewDNPl58kxrPMTID251LVV4V9ZUlrRopfCSgmK/Znc2fLgm+JhiiGlhNgPXvPvb8C14zeeqEMbLa3QVU+IVkoVYHuknfKBAKoSQscZ8zsZjK6uhmmUEvq1TvTxlqW2J0FDqBOvRACXpLd9tjhqq3M7SvOJcb3zjj2fDR3iokw+e44O/vU8AwtyV1fXyN3aXXVl4UCzH5VyhDnWliHDKhExsIINGz1hjbt9iV1apn6pftB3tEZrXFDyzGe8LrQGsGfwwEtb0q2spWipryjjAuWlwLrXRebJlV6FwQjozwk+pJBRWTLSG1qNKY81vfXffhqrZrtm5lw+ABj8mAJfkR0gWTygMvGbwo89YI70r67krBQX0ayBxtodSHx2aC4IMwvAqY4gNQ9YUrBH3hqdZepM+wAMcSu+9pOUFdGRmMpg3bAxD8oRApRbOmn6Zh9JCWfPZ5xtVtLBQa7Ym9lTeT4kw2FufWU3MgGNZeeNu889OejvAaW6vadbmvd7TNj/YABGxIyVMpJeJ2TByvnHmNdJY89JNQ5a4Go8gKUVXbXbFGgQaIHszzFimfGiAWi7sIta4r92XdUPzO1Y1cuKUs8Ptl5VHD2XDADTBgaYEnjfC9+N9Vgn8VY3o9DGvEZ69/Gso/z04i9rCC5Vn6HarKDxhckCqxCVbsmeTrOesYayR7jb/c1o63pt8pm9rz+XDQnOwDkHYIrBAwtgY4+r1RpePevlMb6R7+f7GZZs9N7EozdK72bOwe4kgk+xcRcCMCdiNRZGBv811KDeJX0v9Z1pGFHi/ZdNsXnd8UGie4auhpxsCAyob8oYkVLGHQXl7nofqmPMJ7q/phvkQE1ufimFnJ+V9xLr2gAI7h4QgxrL6RpKTRsYatyp6K5HQHEhAlfMbfAdenfdT3lcHgaGs8Si5geItSgFiFZ1DRjwy45Ptrzn21ObDNp/CnmrOl512SrxhJOCTwayxcZFO5aXyJWu6flrRYZFevqPrl/YabCKhdgCt9lHep5gga/Ar8twzEojWeMwgYjWUNVzz7qR7+U549I0BT2FAslmzj/I+Wu8gRxx5e450d5ozptg27PJ1NGEo+kI9z+uF6MDPctzx5zLdI9jwFd6hwQ4WqwYYkRH7amKci1HwQDlPynvo53JzK1Wie8Vnsl+5WMiFldpolvj/ofkRPAmnQCYW+ljZ+8QWc654Q+ZgmyNijfnF5tj/AJn5Im5LIAsCAAAAAElFTkSuQmCC"
  59. /***/ }),
  60. /***/ 103:
  61. /*!*******************************************************************!*\
  62. !*** D:/AAAcompany_product/新建文件夹/product_wx/static/mine/head.png ***!
  63. \*******************************************************************/
  64. /*! no static exports found */
  65. /***/ (function(module, exports) {
  66. 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=="
  67. /***/ }),
  68. /***/ 104:
  69. /*!**************************************************************************!*\
  70. !*** D:/AAAcompany_product/新建文件夹/product_wx/static/mine/versionicon.png ***!
  71. \**************************************************************************/
  72. /*! no static exports found */
  73. /***/ (function(module, exports) {
  74. module.exports = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACwAAAAsCAYAAAAehFoBAAAAAXNSR0IArs4c6QAABVBJREFUWEftWd9rHFUU/s7sJtmHtrTa7EyTWaiYgmCEFhQrVnTNpD9QHwqtTWgKCoopKiIIrX+BLRREVFpRUGilUSsNNNI2mbhKI1YU2oeIBSMWdpLOJNqGmkI2uzNH7syu3d1kd2Z2t0Kg85adc+/55tzvfOeeE8Iye2iZ4cVdwHf6xOqOcDw+en8TWCPCFoA7CaSAoLjAGSaDTYDGmTGWBenT011/1PNRNQJORdW4vYcl7pdAW8IAcMBjzPTBlBX5GkjmwqwVtqEBt8vDXQQ6RkQdZc7mAR53mCYkwrx45zBiEnEHQJ0AYsX2DL7CzK9NWltHw4AOATgVSyi5dwHqLzhgxhyAARB/bpjRi0DSBbr4ScVUJbcZTHuJ0FcKno+lzeibldeW7hYIcGvrN0qL1HyaiDa71GTkADoyl7l5eHZ252yYCK1efXr1ipZVBwB+iwhRbz++mHEWds7MPGP67eUL2AUbaU4R6IH85uNZOL2WtW3cb/Nq72X5fGcTpJNELl0gKJKxF5J+oH0AuzS4ANDD+cgOZpzr+2ZmnhdUqPtpbf1yRYt0z0kiPFuItGFFk9XoURVwQhk5WuAsMwYNK7LbP7NTsXXx3JMCwLXp6Pf+3ExFVdk+XQANCE53768UjYqAhRpIJOkFGmScG4/5RVZRzq5vQlMKwPq8w6tZZJOmueNqtePwIr3mxwI9HHa0SupRAbD46txvQrpEgmVhbwrCWVXRvyJgV6l84ZRharv9+ONxOnJJJKLgs2FGH1rqNJcErMb1vSThhBddOmRYXW/7ORTvE4r+Z1F0C0uupk3tviDrVXn0HSI+KGxtRs+UpX1Rvm5JwAlFvwBgi9DZucw/iaDSpSr6WQK2l0X4nGFqO4IAFpK3MrbyWl6nx9Km9oQv4NbWcx2xSPT3vCp8Yljay0GcCRv3WCmSImCtJ1X4K8t2MgidCj5UWf+YCC+Jv+ft3IaZme0Txf4XRbg9rr8iSTiW18akYXZ/FxSwsGtbeWYtxVpcmbqVvTUY9HT+A6yMPEUgkbhwHPRPTmsfVQWsyvrxfPmcT5uRNf6yFOZzgtgK7bdvCFow44Rhaft8AI9cIqKNAP+SNrsfCeKi2MYtvbFVb4jf5uZvvhc2wl7yjvwsihUzXzas7k1VASdk/Zq4zzqMgUlL6w0LWJX1M7crF4YMS3su7B7tsn5SIvSI+3Ta0tZVB6zonDf4LG1qL4Z1ViZtgSWt2E9C0T8F8IL4LW1qJXm2KOkSyw5wnZRoRIRDUUKV60u6RgAOlXT1ylr9gEPKWnt8uF+SpKO1Fo56AaslhcPZPzm91S1ihWdR0tVTmj0NLbkAhVaJ0KU577Smy0+9gGu6/Ainany4jyTpuEuLENfLegGXXi/t3ilr20B5HQh0gc+RtNE0n/41SBEppgQzTxhW94Yg6xTl2wej7Fyu6QIvHLTJuhYhjHhR5vEgLZJ7OsroAQIf8pKWDhpm12E/wOUtks3onrI0tz0LGGHPrKwJHTKsyE7/JhRou/e8OxKY+nvbFT+wQIOaUM9RKqbKuVTRAGUo41zv9WtG/UF6Fg1v871NFw9SchTpCcrpSuA9ztoDDR6kFCKx1KiKj8xl5mocVa04ANCdGVXdjtDiYaBou0RXAHJOGGbTT9WHgdlHwVLf/zIMLD5WoR4S8fuFWVvRu3kGj3PZuJWIO6jCuNVher2SGlSiku8wcOmFqWibvLArQpFXxTggaJLl7cZstj+csppPBVGcULIWBIi4ezSTpBFJj1f/l4HzwwI7ennbHsRHsU2NEQ7rpnH2dwE3LpZL77TsIvwvQyHlS9/f8ZQAAAAASUVORK5CYII="
  75. /***/ }),
  76. /***/ 105:
  77. /*!***************************************************************************!*\
  78. !*** D:/AAAcompany_product/新建文件夹/product_wx/static/mine/editpassword.png ***!
  79. \***************************************************************************/
  80. /*! no static exports found */
  81. /***/ (function(module, exports) {
  82. module.exports = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACwAAAAsCAYAAAAehFoBAAAAAXNSR0IArs4c6QAAA/BJREFUWEftmE9oHGUYxp/3m80m8Q/UJJsZsxMQbKGCl0APETw0ZJIaqwdBhELFFhU8KBbsIVKlCoUq6qGHnixY0YOot9TSZHdZoYIBPQgWKhhIYGdkJtPGHgrdNbPzlplxcbPu7ny72e0azFz2sO/3vr/v+f7M+wxhhz20w3jx/wROpb5+oJ8eOgSBSTDtBWFPsHLMsAFaAfnLlp3IAVPF7a7othQeHc09miSeJ8JRAAPNYJhxm8AXSkwfrK8bTrvgbQLnB8ZV7yyDXidCoro4AyaYbxDBY5BGgF4DV4SPdwrryjlgymsVvGXgVOo7bUBJLgB0oFKMGctg/3yJN7Oue9iuhhh7cGFEDPY/BSFeJuBg1ZhLJX/jiOu+cLsV6JaAA9h+JZkn0P6/i6yVGa/+4RhZmaJjatZQCJ8CeCSK5x+K5T/nWoFuATif0FXvKhFNtlssGBceUDG0QBSp7TO+shzjiMyEgxhp4LSaOyWIz0TCIFv0N55rRZmtQPmBcc3LAPRkCF3GMcs1PpeBlgKO9m3/angTMOyiX5qo3asyxf61t+8fvE7ACIN/M+2Zx2RySAHrauYsEc1HavjHLXf2okzyuJj0yOIzIqF8w0wXTGf6jbh46S2ha9lCeD0x1gqOsq+d60gGRiYmVuGx4cX9Sp9yPTogdMZypt+VSdytmFjgh0eWDiQS4qcImJ+wnJnlbsHI5I0FDpKkU4vPB7+We+hbmaTdjIkFHh7OpQf7aG83ISq572zyys2b01azWk2BdTX7JoCPa/uFbsEzI+gtTpqOca5RjYbAQ0OX9fv6kqv3CrYCGECX/NJ4o3u+IbCuZQ4SKB8l4p/L7H8iSGxpbDqltM++ppB4q9JQMXjKtGe+r5dfCph9/0VzffbLTgHWy5PWlo4JiM9CebYN3CRBpybRU+DQiQjSZU59ZcI9A9a1zEcEOhkuLcMjwomCbZyPW4meAKe1zGEBulQNF0B7pc199q25tWbQPQHWtdxpAr9XCyZzaHsDrC69QiQCC7Tl8cv+hOXO/vKfUxgI3fRV0D8GVdYC9UThSMEAurwKgsbAFdNWnpXpn3sIDIxr2cBOBc74YsE2jsfdEMH/u8CN3u311NPVzO9EYUu6MxROa9mXiPGaV+a37Rv1m5jaifZ0S8js2e4ClzFnusaVdkBkx+ijS0dJiC861K3RvGlPfyhbvJ246i9LbbWXaTUzKYh+rDQxAF8D0a12YGLHMO8B6PGKu2nmzpt4unxC17xfq75UxtbtRAAzXzOdxESjl01TE5oeuqxTX/I0CPfENYOxwpt/vW9tPG02mnysze+Eap3MsQvcSTXr5dpVuNsK3wXVCjlLaPN+NwAAAABJRU5ErkJggg=="
  83. /***/ }),
  84. /***/ 106:
  85. /*!*************************************************************************!*\
  86. !*** D:/AAAcompany_product/新建文件夹/product_wx/static/mine/youjiantou.png ***!
  87. \*************************************************************************/
  88. /*! no static exports found */
  89. /***/ (function(module, exports) {
  90. 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=="
  91. /***/ }),
  92. /***/ 107:
  93. /*!**********************************************************************!*\
  94. !*** D:/AAAcompany_product/新建文件夹/product_wx/static/mine/outicon.png ***!
  95. \**********************************************************************/
  96. /*! no static exports found */
  97. /***/ (function(module, exports) {
  98. module.exports = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACwAAAAsCAYAAAAehFoBAAAAAXNSR0IArs4c6QAABQpJREFUWEftmXGIFHUUx79vZtUlFM7LvZm7mwUPCgwKDC5CSvC8mdRUMLjSoD/6w/8KukDRoEgpSSjIwNB/wj9MlCQsSu3csfUP/xBUMhQSMjyYubuZ20sFLde7mXnx2905Nr3dmdm9/UO4/WvZmffeZ76/936/92YJj9mHHjNezAG3esVaonAm893C+dLiHcS4Yo8b38/mQ7QEOKua7wDYzwwv+Pd+5+jdjROzBd0SYE09+zGBdwnIKUz1OM664Tng2VJA+JlTuErNxDmsqWd3EPMgA3ttV/9qppWJo3BWyX3JRAMIsNMe14/EXeEEwPlUt+IflghbhHNmvmK7xvONAmuKeZcICyu+9tqu8UEc6JjA+ZTW4R8lCQMlpwzHD/j10YJxvlHg7szQAEnyoRAazPss13g/CjoWsKbkPiOinWVWvu7BW1dvq4qTEsJXd+bMckmSToOglpXGVtvVv6kHHQncrebWS6CfK06Gi/6DFYXCeqee07jAwkfXk0PLpJR8saJ0cZL9F1x3zbVa/iOA8+ms6v8BYCmAoucFK8cmXrkUtWxJgMtKDw1Isny87JfPW46xsiFgTTHfI8I+YRwwfTri9n8UBdvoPtytmEfDgvaZN426xo8zxaqjcD6VVfw/QVgqisxy5R6gr9gy4PZTGs2bf5MIKQbO2Y7elwi4SzF1mZArFxrtsp3+3XFgG1W4ZKeYh4nwlvj+z+Rk9tatV+2HY9ZUWFNznxNomzAo+t7ThcLaG60GrhYJwLuWo38dGzir5i4C1Cu2MdsxnokL24zCQD6VVf27ANIB49iIq7+ZANi8X8+w3gN0KUNbZJKPgnHHcuXOuLkvfE4LxXzNdo3nYgG3tZ1oW5RedLuR/A0DaGpulVf0hp07yXrh6TwuFbreGQtYVU8vnYd5N5sBTpJC1fdmVfMQgLfFb5ajP1JjMxbdYwcshsi03C6SXxzwsZqSRhV92E5TzJ+IsAHAsOXoPbFSopT8ijlWakoYpuXqxmwBRfnRVNMiQANw3nL0R47o2vuwYp4gwiZm3LNdeTHQ50UFa/Z6dSrWWtmawOGoLiAC8IYRxzjZLFCU/f97F3/jiLsm7BKnTWsCt7ef0p4Iz3bGD7arvxYVsNnrmpK7SkTPMjBhO3J2pv27bnupVdJCgHie1Ds2sfpys1C17LsUc7NMOFYudNpnuf0zTh91gUsTgSz9Vt4s+ILtpla2IpfFQbUwvehqpdiKRf9BT60hIXri6DAPSVJ5I2fwF7ZjbJ9tlau2MqHuh5bbv6dWjEjgyjEtVBZTh5i7BmuN9408iBj3QTRYtuVLlpNaUW8VI4GFm84lZ3plWcpPj+Wl/lja01x65NPdHf6BcPXEkDBFUyui3sPFAhbQ6pLcqpRM4hQK3yWcm2Rp6/h4/19JldWUX18E/INEtLwsLBzf8/tG/15zPcpXbGDhqCuTe1mW6Hg4lovenhnfMkv7R8ZX/x4VrKvjzEsSSdvEgRTey8w3Ai/YGAdW2CQCFgaZzEl1gbTgQHXQSkFeJ+AcQNc4YAeSPBFwoEqAyoTlBIjWSxy5058AfHDSv729UHjjXtTDhtcTA4eGWsZcCxmfENAbN9i0qsAvzLx7xDUuJLVtGDgMVCrIFG0GsIFAy2oBiH2cIZnseUfiLv9MvpoGrnZa+m8DbU+RTG3wKQ2Zi1McTLju/BtJxqR6qs8qcNLlbeT+OeBGVEti8x9q9mtLhchgzwAAAABJRU5ErkJggg=="
  99. /***/ }),
  100. /***/ 11:
  101. /*!***************************************************************!*\
  102. !*** ./node_modules/@babel/runtime/helpers/defineProperty.js ***!
  103. \***************************************************************/
  104. /*! no static exports found */
  105. /***/ (function(module, exports, __webpack_require__) {
  106. var toPropertyKey = __webpack_require__(/*! ./toPropertyKey.js */ 12);
  107. function _defineProperty(obj, key, value) {
  108. key = toPropertyKey(key);
  109. if (key in obj) {
  110. Object.defineProperty(obj, key, {
  111. value: value,
  112. enumerable: true,
  113. configurable: true,
  114. writable: true
  115. });
  116. } else {
  117. obj[key] = value;
  118. }
  119. return obj;
  120. }
  121. module.exports = _defineProperty, module.exports.__esModule = true, module.exports["default"] = module.exports;
  122. /***/ }),
  123. /***/ 12:
  124. /*!**************************************************************!*\
  125. !*** ./node_modules/@babel/runtime/helpers/toPropertyKey.js ***!
  126. \**************************************************************/
  127. /*! no static exports found */
  128. /***/ (function(module, exports, __webpack_require__) {
  129. var _typeof = __webpack_require__(/*! ./typeof.js */ 13)["default"];
  130. var toPrimitive = __webpack_require__(/*! ./toPrimitive.js */ 14);
  131. function toPropertyKey(t) {
  132. var i = toPrimitive(t, "string");
  133. return "symbol" == _typeof(i) ? i : i + "";
  134. }
  135. module.exports = toPropertyKey, module.exports.__esModule = true, module.exports["default"] = module.exports;
  136. /***/ }),
  137. /***/ 13:
  138. /*!*******************************************************!*\
  139. !*** ./node_modules/@babel/runtime/helpers/typeof.js ***!
  140. \*******************************************************/
  141. /*! no static exports found */
  142. /***/ (function(module, exports) {
  143. function _typeof(o) {
  144. "@babel/helpers - typeof";
  145. return (module.exports = _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {
  146. return typeof o;
  147. } : function (o) {
  148. return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
  149. }, module.exports.__esModule = true, module.exports["default"] = module.exports), _typeof(o);
  150. }
  151. module.exports = _typeof, module.exports.__esModule = true, module.exports["default"] = module.exports;
  152. /***/ }),
  153. /***/ 14:
  154. /*!************************************************************!*\
  155. !*** ./node_modules/@babel/runtime/helpers/toPrimitive.js ***!
  156. \************************************************************/
  157. /*! no static exports found */
  158. /***/ (function(module, exports, __webpack_require__) {
  159. var _typeof = __webpack_require__(/*! ./typeof.js */ 13)["default"];
  160. function toPrimitive(t, r) {
  161. if ("object" != _typeof(t) || !t) return t;
  162. var e = t[Symbol.toPrimitive];
  163. if (void 0 !== e) {
  164. var i = e.call(t, r || "default");
  165. if ("object" != _typeof(i)) return i;
  166. throw new TypeError("@@toPrimitive must return a primitive value.");
  167. }
  168. return ("string" === r ? String : Number)(t);
  169. }
  170. module.exports = toPrimitive, module.exports.__esModule = true, module.exports["default"] = module.exports;
  171. /***/ }),
  172. /***/ 15:
  173. /*!**********************************************************!*\
  174. !*** ./node_modules/@babel/runtime/helpers/construct.js ***!
  175. \**********************************************************/
  176. /*! no static exports found */
  177. /***/ (function(module, exports, __webpack_require__) {
  178. var setPrototypeOf = __webpack_require__(/*! ./setPrototypeOf.js */ 16);
  179. var isNativeReflectConstruct = __webpack_require__(/*! ./isNativeReflectConstruct.js */ 17);
  180. function _construct(t, e, r) {
  181. if (isNativeReflectConstruct()) return Reflect.construct.apply(null, arguments);
  182. var o = [null];
  183. o.push.apply(o, e);
  184. var p = new (t.bind.apply(t, o))();
  185. return r && setPrototypeOf(p, r.prototype), p;
  186. }
  187. module.exports = _construct, module.exports.__esModule = true, module.exports["default"] = module.exports;
  188. /***/ }),
  189. /***/ 16:
  190. /*!***************************************************************!*\
  191. !*** ./node_modules/@babel/runtime/helpers/setPrototypeOf.js ***!
  192. \***************************************************************/
  193. /*! no static exports found */
  194. /***/ (function(module, exports) {
  195. function _setPrototypeOf(o, p) {
  196. module.exports = _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) {
  197. o.__proto__ = p;
  198. return o;
  199. }, module.exports.__esModule = true, module.exports["default"] = module.exports;
  200. return _setPrototypeOf(o, p);
  201. }
  202. module.exports = _setPrototypeOf, module.exports.__esModule = true, module.exports["default"] = module.exports;
  203. /***/ }),
  204. /***/ 17:
  205. /*!*************************************************************************!*\
  206. !*** ./node_modules/@babel/runtime/helpers/isNativeReflectConstruct.js ***!
  207. \*************************************************************************/
  208. /*! no static exports found */
  209. /***/ (function(module, exports) {
  210. function _isNativeReflectConstruct() {
  211. try {
  212. var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));
  213. } catch (t) {}
  214. return (module.exports = _isNativeReflectConstruct = function _isNativeReflectConstruct() {
  215. return !!t;
  216. }, module.exports.__esModule = true, module.exports["default"] = module.exports)();
  217. }
  218. module.exports = _isNativeReflectConstruct, module.exports.__esModule = true, module.exports["default"] = module.exports;
  219. /***/ }),
  220. /***/ 18:
  221. /*!******************************************************************!*\
  222. !*** ./node_modules/@babel/runtime/helpers/toConsumableArray.js ***!
  223. \******************************************************************/
  224. /*! no static exports found */
  225. /***/ (function(module, exports, __webpack_require__) {
  226. var arrayWithoutHoles = __webpack_require__(/*! ./arrayWithoutHoles.js */ 19);
  227. var iterableToArray = __webpack_require__(/*! ./iterableToArray.js */ 20);
  228. var unsupportedIterableToArray = __webpack_require__(/*! ./unsupportedIterableToArray.js */ 8);
  229. var nonIterableSpread = __webpack_require__(/*! ./nonIterableSpread.js */ 21);
  230. function _toConsumableArray(arr) {
  231. return arrayWithoutHoles(arr) || iterableToArray(arr) || unsupportedIterableToArray(arr) || nonIterableSpread();
  232. }
  233. module.exports = _toConsumableArray, module.exports.__esModule = true, module.exports["default"] = module.exports;
  234. /***/ }),
  235. /***/ 19:
  236. /*!******************************************************************!*\
  237. !*** ./node_modules/@babel/runtime/helpers/arrayWithoutHoles.js ***!
  238. \******************************************************************/
  239. /*! no static exports found */
  240. /***/ (function(module, exports, __webpack_require__) {
  241. var arrayLikeToArray = __webpack_require__(/*! ./arrayLikeToArray.js */ 9);
  242. function _arrayWithoutHoles(arr) {
  243. if (Array.isArray(arr)) return arrayLikeToArray(arr);
  244. }
  245. module.exports = _arrayWithoutHoles, module.exports.__esModule = true, module.exports["default"] = module.exports;
  246. /***/ }),
  247. /***/ 2:
  248. /*!************************************************************!*\
  249. !*** ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js ***!
  250. \************************************************************/
  251. /*! no static exports found */
  252. /***/ (function(module, exports, __webpack_require__) {
  253. "use strict";
  254. /* WEBPACK VAR INJECTION */(function(wx, global) {
  255. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  256. Object.defineProperty(exports, "__esModule", {
  257. value: true
  258. });
  259. exports.createApp = createApp;
  260. exports.createComponent = createComponent;
  261. exports.createPage = createPage;
  262. exports.createPlugin = createPlugin;
  263. exports.createSubpackageApp = createSubpackageApp;
  264. exports.default = void 0;
  265. var _slicedToArray2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/slicedToArray */ 5));
  266. var _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/defineProperty */ 11));
  267. var _construct2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/construct */ 15));
  268. var _toConsumableArray2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/toConsumableArray */ 18));
  269. var _typeof2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/typeof */ 13));
  270. var _uniI18n = __webpack_require__(/*! @dcloudio/uni-i18n */ 22);
  271. var _vue = _interopRequireDefault(__webpack_require__(/*! vue */ 25));
  272. 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; }
  273. 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; }
  274. var realAtob;
  275. var b64 = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=';
  276. var b64re = /^(?:[A-Za-z\d+/]{4})*?(?:[A-Za-z\d+/]{2}(?:==)?|[A-Za-z\d+/]{3}=?)?$/;
  277. if (typeof atob !== 'function') {
  278. realAtob = function realAtob(str) {
  279. str = String(str).replace(/[\t\n\f\r ]+/g, '');
  280. if (!b64re.test(str)) {
  281. throw new Error("Failed to execute 'atob' on 'Window': The string to be decoded is not correctly encoded.");
  282. }
  283. // Adding the padding if missing, for semplicity
  284. str += '=='.slice(2 - (str.length & 3));
  285. var bitmap;
  286. var result = '';
  287. var r1;
  288. var r2;
  289. var i = 0;
  290. for (; i < str.length;) {
  291. 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++)));
  292. 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);
  293. }
  294. return result;
  295. };
  296. } else {
  297. // 注意atob只能在全局对象上调用,例如:`const Base64 = {atob};Base64.atob('xxxx')`是错误的用法
  298. realAtob = atob;
  299. }
  300. function b64DecodeUnicode(str) {
  301. return decodeURIComponent(realAtob(str).split('').map(function (c) {
  302. return '%' + ('00' + c.charCodeAt(0).toString(16)).slice(-2);
  303. }).join(''));
  304. }
  305. function getCurrentUserInfo() {
  306. var token = wx.getStorageSync('uni_id_token') || '';
  307. var tokenArr = token.split('.');
  308. if (!token || tokenArr.length !== 3) {
  309. return {
  310. uid: null,
  311. role: [],
  312. permission: [],
  313. tokenExpired: 0
  314. };
  315. }
  316. var userInfo;
  317. try {
  318. userInfo = JSON.parse(b64DecodeUnicode(tokenArr[1]));
  319. } catch (error) {
  320. throw new Error('获取当前用户信息出错,详细错误信息为:' + error.message);
  321. }
  322. userInfo.tokenExpired = userInfo.exp * 1000;
  323. delete userInfo.exp;
  324. delete userInfo.iat;
  325. return userInfo;
  326. }
  327. function uniIdMixin(Vue) {
  328. Vue.prototype.uniIDHasRole = function (roleId) {
  329. var _getCurrentUserInfo = getCurrentUserInfo(),
  330. role = _getCurrentUserInfo.role;
  331. return role.indexOf(roleId) > -1;
  332. };
  333. Vue.prototype.uniIDHasPermission = function (permissionId) {
  334. var _getCurrentUserInfo2 = getCurrentUserInfo(),
  335. permission = _getCurrentUserInfo2.permission;
  336. return this.uniIDHasRole('admin') || permission.indexOf(permissionId) > -1;
  337. };
  338. Vue.prototype.uniIDTokenValid = function () {
  339. var _getCurrentUserInfo3 = getCurrentUserInfo(),
  340. tokenExpired = _getCurrentUserInfo3.tokenExpired;
  341. return tokenExpired > Date.now();
  342. };
  343. }
  344. var _toString = Object.prototype.toString;
  345. var hasOwnProperty = Object.prototype.hasOwnProperty;
  346. function isFn(fn) {
  347. return typeof fn === 'function';
  348. }
  349. function isStr(str) {
  350. return typeof str === 'string';
  351. }
  352. function isObject(obj) {
  353. return obj !== null && (0, _typeof2.default)(obj) === 'object';
  354. }
  355. function isPlainObject(obj) {
  356. return _toString.call(obj) === '[object Object]';
  357. }
  358. function hasOwn(obj, key) {
  359. return hasOwnProperty.call(obj, key);
  360. }
  361. function noop() {}
  362. /**
  363. * Create a cached version of a pure function.
  364. */
  365. function cached(fn) {
  366. var cache = Object.create(null);
  367. return function cachedFn(str) {
  368. var hit = cache[str];
  369. return hit || (cache[str] = fn(str));
  370. };
  371. }
  372. /**
  373. * Camelize a hyphen-delimited string.
  374. */
  375. var camelizeRE = /-(\w)/g;
  376. var camelize = cached(function (str) {
  377. return str.replace(camelizeRE, function (_, c) {
  378. return c ? c.toUpperCase() : '';
  379. });
  380. });
  381. function sortObject(obj) {
  382. var sortObj = {};
  383. if (isPlainObject(obj)) {
  384. Object.keys(obj).sort().forEach(function (key) {
  385. sortObj[key] = obj[key];
  386. });
  387. }
  388. return !Object.keys(sortObj) ? obj : sortObj;
  389. }
  390. var HOOKS = ['invoke', 'success', 'fail', 'complete', 'returnValue'];
  391. var globalInterceptors = {};
  392. var scopedInterceptors = {};
  393. function mergeHook(parentVal, childVal) {
  394. var res = childVal ? parentVal ? parentVal.concat(childVal) : Array.isArray(childVal) ? childVal : [childVal] : parentVal;
  395. return res ? dedupeHooks(res) : res;
  396. }
  397. function dedupeHooks(hooks) {
  398. var res = [];
  399. for (var i = 0; i < hooks.length; i++) {
  400. if (res.indexOf(hooks[i]) === -1) {
  401. res.push(hooks[i]);
  402. }
  403. }
  404. return res;
  405. }
  406. function removeHook(hooks, hook) {
  407. var index = hooks.indexOf(hook);
  408. if (index !== -1) {
  409. hooks.splice(index, 1);
  410. }
  411. }
  412. function mergeInterceptorHook(interceptor, option) {
  413. Object.keys(option).forEach(function (hook) {
  414. if (HOOKS.indexOf(hook) !== -1 && isFn(option[hook])) {
  415. interceptor[hook] = mergeHook(interceptor[hook], option[hook]);
  416. }
  417. });
  418. }
  419. function removeInterceptorHook(interceptor, option) {
  420. if (!interceptor || !option) {
  421. return;
  422. }
  423. Object.keys(option).forEach(function (hook) {
  424. if (HOOKS.indexOf(hook) !== -1 && isFn(option[hook])) {
  425. removeHook(interceptor[hook], option[hook]);
  426. }
  427. });
  428. }
  429. function addInterceptor(method, option) {
  430. if (typeof method === 'string' && isPlainObject(option)) {
  431. mergeInterceptorHook(scopedInterceptors[method] || (scopedInterceptors[method] = {}), option);
  432. } else if (isPlainObject(method)) {
  433. mergeInterceptorHook(globalInterceptors, method);
  434. }
  435. }
  436. function removeInterceptor(method, option) {
  437. if (typeof method === 'string') {
  438. if (isPlainObject(option)) {
  439. removeInterceptorHook(scopedInterceptors[method], option);
  440. } else {
  441. delete scopedInterceptors[method];
  442. }
  443. } else if (isPlainObject(method)) {
  444. removeInterceptorHook(globalInterceptors, method);
  445. }
  446. }
  447. function wrapperHook(hook, params) {
  448. return function (data) {
  449. return hook(data, params) || data;
  450. };
  451. }
  452. function isPromise(obj) {
  453. return !!obj && ((0, _typeof2.default)(obj) === 'object' || typeof obj === 'function') && typeof obj.then === 'function';
  454. }
  455. function queue(hooks, data, params) {
  456. var promise = false;
  457. for (var i = 0; i < hooks.length; i++) {
  458. var hook = hooks[i];
  459. if (promise) {
  460. promise = Promise.resolve(wrapperHook(hook, params));
  461. } else {
  462. var res = hook(data, params);
  463. if (isPromise(res)) {
  464. promise = Promise.resolve(res);
  465. }
  466. if (res === false) {
  467. return {
  468. then: function then() {}
  469. };
  470. }
  471. }
  472. }
  473. return promise || {
  474. then: function then(callback) {
  475. return callback(data);
  476. }
  477. };
  478. }
  479. function wrapperOptions(interceptor) {
  480. var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  481. ['success', 'fail', 'complete'].forEach(function (name) {
  482. if (Array.isArray(interceptor[name])) {
  483. var oldCallback = options[name];
  484. options[name] = function callbackInterceptor(res) {
  485. queue(interceptor[name], res, options).then(function (res) {
  486. /* eslint-disable no-mixed-operators */
  487. return isFn(oldCallback) && oldCallback(res) || res;
  488. });
  489. };
  490. }
  491. });
  492. return options;
  493. }
  494. function wrapperReturnValue(method, returnValue) {
  495. var returnValueHooks = [];
  496. if (Array.isArray(globalInterceptors.returnValue)) {
  497. returnValueHooks.push.apply(returnValueHooks, (0, _toConsumableArray2.default)(globalInterceptors.returnValue));
  498. }
  499. var interceptor = scopedInterceptors[method];
  500. if (interceptor && Array.isArray(interceptor.returnValue)) {
  501. returnValueHooks.push.apply(returnValueHooks, (0, _toConsumableArray2.default)(interceptor.returnValue));
  502. }
  503. returnValueHooks.forEach(function (hook) {
  504. returnValue = hook(returnValue) || returnValue;
  505. });
  506. return returnValue;
  507. }
  508. function getApiInterceptorHooks(method) {
  509. var interceptor = Object.create(null);
  510. Object.keys(globalInterceptors).forEach(function (hook) {
  511. if (hook !== 'returnValue') {
  512. interceptor[hook] = globalInterceptors[hook].slice();
  513. }
  514. });
  515. var scopedInterceptor = scopedInterceptors[method];
  516. if (scopedInterceptor) {
  517. Object.keys(scopedInterceptor).forEach(function (hook) {
  518. if (hook !== 'returnValue') {
  519. interceptor[hook] = (interceptor[hook] || []).concat(scopedInterceptor[hook]);
  520. }
  521. });
  522. }
  523. return interceptor;
  524. }
  525. function invokeApi(method, api, options) {
  526. for (var _len = arguments.length, params = new Array(_len > 3 ? _len - 3 : 0), _key = 3; _key < _len; _key++) {
  527. params[_key - 3] = arguments[_key];
  528. }
  529. var interceptor = getApiInterceptorHooks(method);
  530. if (interceptor && Object.keys(interceptor).length) {
  531. if (Array.isArray(interceptor.invoke)) {
  532. var res = queue(interceptor.invoke, options);
  533. return res.then(function (options) {
  534. // 重新访问 getApiInterceptorHooks, 允许 invoke 中再次调用 addInterceptor,removeInterceptor
  535. return api.apply(void 0, [wrapperOptions(getApiInterceptorHooks(method), options)].concat(params));
  536. });
  537. } else {
  538. return api.apply(void 0, [wrapperOptions(interceptor, options)].concat(params));
  539. }
  540. }
  541. return api.apply(void 0, [options].concat(params));
  542. }
  543. var promiseInterceptor = {
  544. returnValue: function returnValue(res) {
  545. if (!isPromise(res)) {
  546. return res;
  547. }
  548. return new Promise(function (resolve, reject) {
  549. res.then(function (res) {
  550. if (res[0]) {
  551. reject(res[0]);
  552. } else {
  553. resolve(res[1]);
  554. }
  555. });
  556. });
  557. }
  558. };
  559. var SYNC_API_RE = /^\$|Window$|WindowStyle$|sendHostEvent|sendNativeEvent|restoreGlobal|requireGlobal|getCurrentSubNVue|getMenuButtonBoundingClientRect|^report|interceptors|Interceptor$|getSubNVueById|requireNativePlugin|upx2px|hideKeyboard|canIUse|^create|Sync$|Manager$|base64ToArrayBuffer|arrayBufferToBase64|getLocale|setLocale|invokePushCallback|getWindowInfo|getDeviceInfo|getAppBaseInfo|getSystemSetting|getAppAuthorizeSetting|initUTS|requireUTS|registerUTS/;
  560. var CONTEXT_API_RE = /^create|Manager$/;
  561. // Context例外情况
  562. var CONTEXT_API_RE_EXC = ['createBLEConnection'];
  563. // 同步例外情况
  564. var ASYNC_API = ['createBLEConnection', 'createPushMessage'];
  565. var CALLBACK_API_RE = /^on|^off/;
  566. function isContextApi(name) {
  567. return CONTEXT_API_RE.test(name) && CONTEXT_API_RE_EXC.indexOf(name) === -1;
  568. }
  569. function isSyncApi(name) {
  570. return SYNC_API_RE.test(name) && ASYNC_API.indexOf(name) === -1;
  571. }
  572. function isCallbackApi(name) {
  573. return CALLBACK_API_RE.test(name) && name !== 'onPush';
  574. }
  575. function handlePromise(promise) {
  576. return promise.then(function (data) {
  577. return [null, data];
  578. }).catch(function (err) {
  579. return [err];
  580. });
  581. }
  582. function shouldPromise(name) {
  583. if (isContextApi(name) || isSyncApi(name) || isCallbackApi(name)) {
  584. return false;
  585. }
  586. return true;
  587. }
  588. /* eslint-disable no-extend-native */
  589. if (!Promise.prototype.finally) {
  590. Promise.prototype.finally = function (callback) {
  591. var promise = this.constructor;
  592. return this.then(function (value) {
  593. return promise.resolve(callback()).then(function () {
  594. return value;
  595. });
  596. }, function (reason) {
  597. return promise.resolve(callback()).then(function () {
  598. throw reason;
  599. });
  600. });
  601. };
  602. }
  603. function promisify(name, api) {
  604. if (!shouldPromise(name) || !isFn(api)) {
  605. return api;
  606. }
  607. return function promiseApi() {
  608. var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
  609. for (var _len2 = arguments.length, params = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {
  610. params[_key2 - 1] = arguments[_key2];
  611. }
  612. if (isFn(options.success) || isFn(options.fail) || isFn(options.complete)) {
  613. return wrapperReturnValue(name, invokeApi.apply(void 0, [name, api, options].concat(params)));
  614. }
  615. return wrapperReturnValue(name, handlePromise(new Promise(function (resolve, reject) {
  616. invokeApi.apply(void 0, [name, api, Object.assign({}, options, {
  617. success: resolve,
  618. fail: reject
  619. })].concat(params));
  620. })));
  621. };
  622. }
  623. var EPS = 1e-4;
  624. var BASE_DEVICE_WIDTH = 750;
  625. var isIOS = false;
  626. var deviceWidth = 0;
  627. var deviceDPR = 0;
  628. function checkDeviceWidth() {
  629. var _wx$getSystemInfoSync = wx.getSystemInfoSync(),
  630. platform = _wx$getSystemInfoSync.platform,
  631. pixelRatio = _wx$getSystemInfoSync.pixelRatio,
  632. windowWidth = _wx$getSystemInfoSync.windowWidth; // uni=>wx runtime 编译目标是 uni 对象,内部不允许直接使用 uni
  633. deviceWidth = windowWidth;
  634. deviceDPR = pixelRatio;
  635. isIOS = platform === 'ios';
  636. }
  637. function upx2px(number, newDeviceWidth) {
  638. if (deviceWidth === 0) {
  639. checkDeviceWidth();
  640. }
  641. number = Number(number);
  642. if (number === 0) {
  643. return 0;
  644. }
  645. var result = number / BASE_DEVICE_WIDTH * (newDeviceWidth || deviceWidth);
  646. if (result < 0) {
  647. result = -result;
  648. }
  649. result = Math.floor(result + EPS);
  650. if (result === 0) {
  651. if (deviceDPR === 1 || !isIOS) {
  652. result = 1;
  653. } else {
  654. result = 0.5;
  655. }
  656. }
  657. return number < 0 ? -result : result;
  658. }
  659. var LOCALE_ZH_HANS = 'zh-Hans';
  660. var LOCALE_ZH_HANT = 'zh-Hant';
  661. var LOCALE_EN = 'en';
  662. var LOCALE_FR = 'fr';
  663. var LOCALE_ES = 'es';
  664. var messages = {};
  665. var locale;
  666. {
  667. locale = normalizeLocale(wx.getSystemInfoSync().language) || LOCALE_EN;
  668. }
  669. function initI18nMessages() {
  670. if (!isEnableLocale()) {
  671. return;
  672. }
  673. var localeKeys = Object.keys(__uniConfig.locales);
  674. if (localeKeys.length) {
  675. localeKeys.forEach(function (locale) {
  676. var curMessages = messages[locale];
  677. var userMessages = __uniConfig.locales[locale];
  678. if (curMessages) {
  679. Object.assign(curMessages, userMessages);
  680. } else {
  681. messages[locale] = userMessages;
  682. }
  683. });
  684. }
  685. }
  686. initI18nMessages();
  687. var i18n = (0, _uniI18n.initVueI18n)(locale, {});
  688. var t = i18n.t;
  689. var i18nMixin = i18n.mixin = {
  690. beforeCreate: function beforeCreate() {
  691. var _this = this;
  692. var unwatch = i18n.i18n.watchLocale(function () {
  693. _this.$forceUpdate();
  694. });
  695. this.$once('hook:beforeDestroy', function () {
  696. unwatch();
  697. });
  698. },
  699. methods: {
  700. $$t: function $$t(key, values) {
  701. return t(key, values);
  702. }
  703. }
  704. };
  705. var setLocale = i18n.setLocale;
  706. var getLocale = i18n.getLocale;
  707. function initAppLocale(Vue, appVm, locale) {
  708. var state = Vue.observable({
  709. locale: locale || i18n.getLocale()
  710. });
  711. var localeWatchers = [];
  712. appVm.$watchLocale = function (fn) {
  713. localeWatchers.push(fn);
  714. };
  715. Object.defineProperty(appVm, '$locale', {
  716. get: function get() {
  717. return state.locale;
  718. },
  719. set: function set(v) {
  720. state.locale = v;
  721. localeWatchers.forEach(function (watch) {
  722. return watch(v);
  723. });
  724. }
  725. });
  726. }
  727. function isEnableLocale() {
  728. return typeof __uniConfig !== 'undefined' && __uniConfig.locales && !!Object.keys(__uniConfig.locales).length;
  729. }
  730. function include(str, parts) {
  731. return !!parts.find(function (part) {
  732. return str.indexOf(part) !== -1;
  733. });
  734. }
  735. function startsWith(str, parts) {
  736. return parts.find(function (part) {
  737. return str.indexOf(part) === 0;
  738. });
  739. }
  740. function normalizeLocale(locale, messages) {
  741. if (!locale) {
  742. return;
  743. }
  744. locale = locale.trim().replace(/_/g, '-');
  745. if (messages && messages[locale]) {
  746. return locale;
  747. }
  748. locale = locale.toLowerCase();
  749. if (locale === 'chinese') {
  750. // 支付宝
  751. return LOCALE_ZH_HANS;
  752. }
  753. if (locale.indexOf('zh') === 0) {
  754. if (locale.indexOf('-hans') > -1) {
  755. return LOCALE_ZH_HANS;
  756. }
  757. if (locale.indexOf('-hant') > -1) {
  758. return LOCALE_ZH_HANT;
  759. }
  760. if (include(locale, ['-tw', '-hk', '-mo', '-cht'])) {
  761. return LOCALE_ZH_HANT;
  762. }
  763. return LOCALE_ZH_HANS;
  764. }
  765. var lang = startsWith(locale, [LOCALE_EN, LOCALE_FR, LOCALE_ES]);
  766. if (lang) {
  767. return lang;
  768. }
  769. }
  770. // export function initI18n() {
  771. // const localeKeys = Object.keys(__uniConfig.locales || {})
  772. // if (localeKeys.length) {
  773. // localeKeys.forEach((locale) =>
  774. // i18n.add(locale, __uniConfig.locales[locale])
  775. // )
  776. // }
  777. // }
  778. function getLocale$1() {
  779. // 优先使用 $locale
  780. if (isFn(getApp)) {
  781. var app = getApp({
  782. allowDefault: true
  783. });
  784. if (app && app.$vm) {
  785. return app.$vm.$locale;
  786. }
  787. }
  788. return normalizeLocale(wx.getSystemInfoSync().language) || LOCALE_EN;
  789. }
  790. function setLocale$1(locale) {
  791. var app = isFn(getApp) ? getApp() : false;
  792. if (!app) {
  793. return false;
  794. }
  795. var oldLocale = app.$vm.$locale;
  796. if (oldLocale !== locale) {
  797. app.$vm.$locale = locale;
  798. onLocaleChangeCallbacks.forEach(function (fn) {
  799. return fn({
  800. locale: locale
  801. });
  802. });
  803. return true;
  804. }
  805. return false;
  806. }
  807. var onLocaleChangeCallbacks = [];
  808. function onLocaleChange(fn) {
  809. if (onLocaleChangeCallbacks.indexOf(fn) === -1) {
  810. onLocaleChangeCallbacks.push(fn);
  811. }
  812. }
  813. if (typeof global !== 'undefined') {
  814. global.getLocale = getLocale$1;
  815. }
  816. var interceptors = {
  817. promiseInterceptor: promiseInterceptor
  818. };
  819. var baseApi = /*#__PURE__*/Object.freeze({
  820. __proto__: null,
  821. upx2px: upx2px,
  822. getLocale: getLocale$1,
  823. setLocale: setLocale$1,
  824. onLocaleChange: onLocaleChange,
  825. addInterceptor: addInterceptor,
  826. removeInterceptor: removeInterceptor,
  827. interceptors: interceptors
  828. });
  829. function findExistsPageIndex(url) {
  830. var pages = getCurrentPages();
  831. var len = pages.length;
  832. while (len--) {
  833. var page = pages[len];
  834. if (page.$page && page.$page.fullPath === url) {
  835. return len;
  836. }
  837. }
  838. return -1;
  839. }
  840. var redirectTo = {
  841. name: function name(fromArgs) {
  842. if (fromArgs.exists === 'back' && fromArgs.delta) {
  843. return 'navigateBack';
  844. }
  845. return 'redirectTo';
  846. },
  847. args: function args(fromArgs) {
  848. if (fromArgs.exists === 'back' && fromArgs.url) {
  849. var existsPageIndex = findExistsPageIndex(fromArgs.url);
  850. if (existsPageIndex !== -1) {
  851. var delta = getCurrentPages().length - 1 - existsPageIndex;
  852. if (delta > 0) {
  853. fromArgs.delta = delta;
  854. }
  855. }
  856. }
  857. }
  858. };
  859. var previewImage = {
  860. args: function args(fromArgs) {
  861. var currentIndex = parseInt(fromArgs.current);
  862. if (isNaN(currentIndex)) {
  863. return;
  864. }
  865. var urls = fromArgs.urls;
  866. if (!Array.isArray(urls)) {
  867. return;
  868. }
  869. var len = urls.length;
  870. if (!len) {
  871. return;
  872. }
  873. if (currentIndex < 0) {
  874. currentIndex = 0;
  875. } else if (currentIndex >= len) {
  876. currentIndex = len - 1;
  877. }
  878. if (currentIndex > 0) {
  879. fromArgs.current = urls[currentIndex];
  880. fromArgs.urls = urls.filter(function (item, index) {
  881. return index < currentIndex ? item !== urls[currentIndex] : true;
  882. });
  883. } else {
  884. fromArgs.current = urls[0];
  885. }
  886. return {
  887. indicator: false,
  888. loop: false
  889. };
  890. }
  891. };
  892. var UUID_KEY = '__DC_STAT_UUID';
  893. var deviceId;
  894. function useDeviceId(result) {
  895. deviceId = deviceId || wx.getStorageSync(UUID_KEY);
  896. if (!deviceId) {
  897. deviceId = Date.now() + '' + Math.floor(Math.random() * 1e7);
  898. wx.setStorage({
  899. key: UUID_KEY,
  900. data: deviceId
  901. });
  902. }
  903. result.deviceId = deviceId;
  904. }
  905. function addSafeAreaInsets(result) {
  906. if (result.safeArea) {
  907. var safeArea = result.safeArea;
  908. result.safeAreaInsets = {
  909. top: safeArea.top,
  910. left: safeArea.left,
  911. right: result.windowWidth - safeArea.right,
  912. bottom: result.screenHeight - safeArea.bottom
  913. };
  914. }
  915. }
  916. function populateParameters(result) {
  917. var _result$brand = result.brand,
  918. brand = _result$brand === void 0 ? '' : _result$brand,
  919. _result$model = result.model,
  920. model = _result$model === void 0 ? '' : _result$model,
  921. _result$system = result.system,
  922. system = _result$system === void 0 ? '' : _result$system,
  923. _result$language = result.language,
  924. language = _result$language === void 0 ? '' : _result$language,
  925. theme = result.theme,
  926. version = result.version,
  927. platform = result.platform,
  928. fontSizeSetting = result.fontSizeSetting,
  929. SDKVersion = result.SDKVersion,
  930. pixelRatio = result.pixelRatio,
  931. deviceOrientation = result.deviceOrientation;
  932. // const isQuickApp = "mp-weixin".indexOf('quickapp-webview') !== -1
  933. var extraParam = {};
  934. // osName osVersion
  935. var osName = '';
  936. var osVersion = '';
  937. {
  938. osName = system.split(' ')[0] || '';
  939. osVersion = system.split(' ')[1] || '';
  940. }
  941. var hostVersion = version;
  942. // deviceType
  943. var deviceType = getGetDeviceType(result, model);
  944. // deviceModel
  945. var deviceBrand = getDeviceBrand(brand);
  946. // hostName
  947. var _hostName = getHostName(result);
  948. // deviceOrientation
  949. var _deviceOrientation = deviceOrientation; // 仅 微信 百度 支持
  950. // devicePixelRatio
  951. var _devicePixelRatio = pixelRatio;
  952. // SDKVersion
  953. var _SDKVersion = SDKVersion;
  954. // hostLanguage
  955. var hostLanguage = language.replace(/_/g, '-');
  956. // wx.getAccountInfoSync
  957. var parameters = {
  958. appId: "__UNI__E97C301",
  959. appName: "产品化管理端",
  960. appVersion: "1.0.0",
  961. appVersionCode: "100",
  962. appLanguage: getAppLanguage(hostLanguage),
  963. uniCompileVersion: "4.15",
  964. uniRuntimeVersion: "4.15",
  965. uniPlatform: undefined || "mp-weixin",
  966. deviceBrand: deviceBrand,
  967. deviceModel: model,
  968. deviceType: deviceType,
  969. devicePixelRatio: _devicePixelRatio,
  970. deviceOrientation: _deviceOrientation,
  971. osName: osName.toLocaleLowerCase(),
  972. osVersion: osVersion,
  973. hostTheme: theme,
  974. hostVersion: hostVersion,
  975. hostLanguage: hostLanguage,
  976. hostName: _hostName,
  977. hostSDKVersion: _SDKVersion,
  978. hostFontSizeSetting: fontSizeSetting,
  979. windowTop: 0,
  980. windowBottom: 0,
  981. // TODO
  982. osLanguage: undefined,
  983. osTheme: undefined,
  984. ua: undefined,
  985. hostPackageName: undefined,
  986. browserName: undefined,
  987. browserVersion: undefined
  988. };
  989. Object.assign(result, parameters, extraParam);
  990. }
  991. function getGetDeviceType(result, model) {
  992. var deviceType = result.deviceType || 'phone';
  993. {
  994. var deviceTypeMaps = {
  995. ipad: 'pad',
  996. windows: 'pc',
  997. mac: 'pc'
  998. };
  999. var deviceTypeMapsKeys = Object.keys(deviceTypeMaps);
  1000. var _model = model.toLocaleLowerCase();
  1001. for (var index = 0; index < deviceTypeMapsKeys.length; index++) {
  1002. var _m = deviceTypeMapsKeys[index];
  1003. if (_model.indexOf(_m) !== -1) {
  1004. deviceType = deviceTypeMaps[_m];
  1005. break;
  1006. }
  1007. }
  1008. }
  1009. return deviceType;
  1010. }
  1011. function getDeviceBrand(brand) {
  1012. var deviceBrand = brand;
  1013. if (deviceBrand) {
  1014. deviceBrand = brand.toLocaleLowerCase();
  1015. }
  1016. return deviceBrand;
  1017. }
  1018. function getAppLanguage(defaultLanguage) {
  1019. return getLocale$1 ? getLocale$1() : defaultLanguage;
  1020. }
  1021. function getHostName(result) {
  1022. var _platform = 'WeChat';
  1023. var _hostName = result.hostName || _platform; // mp-jd
  1024. {
  1025. if (result.environment) {
  1026. _hostName = result.environment;
  1027. } else if (result.host && result.host.env) {
  1028. _hostName = result.host.env;
  1029. }
  1030. }
  1031. return _hostName;
  1032. }
  1033. var getSystemInfo = {
  1034. returnValue: function returnValue(result) {
  1035. useDeviceId(result);
  1036. addSafeAreaInsets(result);
  1037. populateParameters(result);
  1038. }
  1039. };
  1040. var showActionSheet = {
  1041. args: function args(fromArgs) {
  1042. if ((0, _typeof2.default)(fromArgs) === 'object') {
  1043. fromArgs.alertText = fromArgs.title;
  1044. }
  1045. }
  1046. };
  1047. var getAppBaseInfo = {
  1048. returnValue: function returnValue(result) {
  1049. var _result = result,
  1050. version = _result.version,
  1051. language = _result.language,
  1052. SDKVersion = _result.SDKVersion,
  1053. theme = _result.theme;
  1054. var _hostName = getHostName(result);
  1055. var hostLanguage = language.replace('_', '-');
  1056. result = sortObject(Object.assign(result, {
  1057. appId: "__UNI__E97C301",
  1058. appName: "产品化管理端",
  1059. appVersion: "1.0.0",
  1060. appVersionCode: "100",
  1061. appLanguage: getAppLanguage(hostLanguage),
  1062. hostVersion: version,
  1063. hostLanguage: hostLanguage,
  1064. hostName: _hostName,
  1065. hostSDKVersion: SDKVersion,
  1066. hostTheme: theme
  1067. }));
  1068. }
  1069. };
  1070. var getDeviceInfo = {
  1071. returnValue: function returnValue(result) {
  1072. var _result2 = result,
  1073. brand = _result2.brand,
  1074. model = _result2.model;
  1075. var deviceType = getGetDeviceType(result, model);
  1076. var deviceBrand = getDeviceBrand(brand);
  1077. useDeviceId(result);
  1078. result = sortObject(Object.assign(result, {
  1079. deviceType: deviceType,
  1080. deviceBrand: deviceBrand,
  1081. deviceModel: model
  1082. }));
  1083. }
  1084. };
  1085. var getWindowInfo = {
  1086. returnValue: function returnValue(result) {
  1087. addSafeAreaInsets(result);
  1088. result = sortObject(Object.assign(result, {
  1089. windowTop: 0,
  1090. windowBottom: 0
  1091. }));
  1092. }
  1093. };
  1094. var getAppAuthorizeSetting = {
  1095. returnValue: function returnValue(result) {
  1096. var locationReducedAccuracy = result.locationReducedAccuracy;
  1097. result.locationAccuracy = 'unsupported';
  1098. if (locationReducedAccuracy === true) {
  1099. result.locationAccuracy = 'reduced';
  1100. } else if (locationReducedAccuracy === false) {
  1101. result.locationAccuracy = 'full';
  1102. }
  1103. }
  1104. };
  1105. // import navigateTo from 'uni-helpers/navigate-to'
  1106. var compressImage = {
  1107. args: function args(fromArgs) {
  1108. // https://developers.weixin.qq.com/community/develop/doc/000c08940c865011298e0a43256800?highLine=compressHeight
  1109. if (fromArgs.compressedHeight && !fromArgs.compressHeight) {
  1110. fromArgs.compressHeight = fromArgs.compressedHeight;
  1111. }
  1112. if (fromArgs.compressedWidth && !fromArgs.compressWidth) {
  1113. fromArgs.compressWidth = fromArgs.compressedWidth;
  1114. }
  1115. }
  1116. };
  1117. var protocols = {
  1118. redirectTo: redirectTo,
  1119. // navigateTo, // 由于在微信开发者工具的页面参数,会显示__id__参数,因此暂时关闭mp-weixin对于navigateTo的AOP
  1120. previewImage: previewImage,
  1121. getSystemInfo: getSystemInfo,
  1122. getSystemInfoSync: getSystemInfo,
  1123. showActionSheet: showActionSheet,
  1124. getAppBaseInfo: getAppBaseInfo,
  1125. getDeviceInfo: getDeviceInfo,
  1126. getWindowInfo: getWindowInfo,
  1127. getAppAuthorizeSetting: getAppAuthorizeSetting,
  1128. compressImage: compressImage
  1129. };
  1130. var todos = ['vibrate', 'preloadPage', 'unPreloadPage', 'loadSubPackage'];
  1131. var canIUses = [];
  1132. var CALLBACKS = ['success', 'fail', 'cancel', 'complete'];
  1133. function processCallback(methodName, method, returnValue) {
  1134. return function (res) {
  1135. return method(processReturnValue(methodName, res, returnValue));
  1136. };
  1137. }
  1138. function processArgs(methodName, fromArgs) {
  1139. var argsOption = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
  1140. var returnValue = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : {};
  1141. var keepFromArgs = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : false;
  1142. if (isPlainObject(fromArgs)) {
  1143. // 一般 api 的参数解析
  1144. var toArgs = keepFromArgs === true ? fromArgs : {}; // returnValue 为 false 时,说明是格式化返回值,直接在返回值对象上修改赋值
  1145. if (isFn(argsOption)) {
  1146. argsOption = argsOption(fromArgs, toArgs) || {};
  1147. }
  1148. for (var key in fromArgs) {
  1149. if (hasOwn(argsOption, key)) {
  1150. var keyOption = argsOption[key];
  1151. if (isFn(keyOption)) {
  1152. keyOption = keyOption(fromArgs[key], fromArgs, toArgs);
  1153. }
  1154. if (!keyOption) {
  1155. // 不支持的参数
  1156. console.warn("The '".concat(methodName, "' method of platform '\u5FAE\u4FE1\u5C0F\u7A0B\u5E8F' does not support option '").concat(key, "'"));
  1157. } else if (isStr(keyOption)) {
  1158. // 重写参数 key
  1159. toArgs[keyOption] = fromArgs[key];
  1160. } else if (isPlainObject(keyOption)) {
  1161. // {name:newName,value:value}可重新指定参数 key:value
  1162. toArgs[keyOption.name ? keyOption.name : key] = keyOption.value;
  1163. }
  1164. } else if (CALLBACKS.indexOf(key) !== -1) {
  1165. if (isFn(fromArgs[key])) {
  1166. toArgs[key] = processCallback(methodName, fromArgs[key], returnValue);
  1167. }
  1168. } else {
  1169. if (!keepFromArgs) {
  1170. toArgs[key] = fromArgs[key];
  1171. }
  1172. }
  1173. }
  1174. return toArgs;
  1175. } else if (isFn(fromArgs)) {
  1176. fromArgs = processCallback(methodName, fromArgs, returnValue);
  1177. }
  1178. return fromArgs;
  1179. }
  1180. function processReturnValue(methodName, res, returnValue) {
  1181. var keepReturnValue = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : false;
  1182. if (isFn(protocols.returnValue)) {
  1183. // 处理通用 returnValue
  1184. res = protocols.returnValue(methodName, res);
  1185. }
  1186. return processArgs(methodName, res, returnValue, {}, keepReturnValue);
  1187. }
  1188. function wrapper(methodName, method) {
  1189. if (hasOwn(protocols, methodName)) {
  1190. var protocol = protocols[methodName];
  1191. if (!protocol) {
  1192. // 暂不支持的 api
  1193. return function () {
  1194. console.error("Platform '\u5FAE\u4FE1\u5C0F\u7A0B\u5E8F' does not support '".concat(methodName, "'."));
  1195. };
  1196. }
  1197. return function (arg1, arg2) {
  1198. // 目前 api 最多两个参数
  1199. var options = protocol;
  1200. if (isFn(protocol)) {
  1201. options = protocol(arg1);
  1202. }
  1203. arg1 = processArgs(methodName, arg1, options.args, options.returnValue);
  1204. var args = [arg1];
  1205. if (typeof arg2 !== 'undefined') {
  1206. args.push(arg2);
  1207. }
  1208. if (isFn(options.name)) {
  1209. methodName = options.name(arg1);
  1210. } else if (isStr(options.name)) {
  1211. methodName = options.name;
  1212. }
  1213. var returnValue = wx[methodName].apply(wx, args);
  1214. if (isSyncApi(methodName)) {
  1215. // 同步 api
  1216. return processReturnValue(methodName, returnValue, options.returnValue, isContextApi(methodName));
  1217. }
  1218. return returnValue;
  1219. };
  1220. }
  1221. return method;
  1222. }
  1223. var todoApis = Object.create(null);
  1224. var TODOS = ['onTabBarMidButtonTap', 'subscribePush', 'unsubscribePush', 'onPush', 'offPush', 'share'];
  1225. function createTodoApi(name) {
  1226. return function todoApi(_ref) {
  1227. var fail = _ref.fail,
  1228. complete = _ref.complete;
  1229. var res = {
  1230. errMsg: "".concat(name, ":fail method '").concat(name, "' not supported")
  1231. };
  1232. isFn(fail) && fail(res);
  1233. isFn(complete) && complete(res);
  1234. };
  1235. }
  1236. TODOS.forEach(function (name) {
  1237. todoApis[name] = createTodoApi(name);
  1238. });
  1239. var providers = {
  1240. oauth: ['weixin'],
  1241. share: ['weixin'],
  1242. payment: ['wxpay'],
  1243. push: ['weixin']
  1244. };
  1245. function getProvider(_ref2) {
  1246. var service = _ref2.service,
  1247. success = _ref2.success,
  1248. fail = _ref2.fail,
  1249. complete = _ref2.complete;
  1250. var res = false;
  1251. if (providers[service]) {
  1252. res = {
  1253. errMsg: 'getProvider:ok',
  1254. service: service,
  1255. provider: providers[service]
  1256. };
  1257. isFn(success) && success(res);
  1258. } else {
  1259. res = {
  1260. errMsg: 'getProvider:fail service not found'
  1261. };
  1262. isFn(fail) && fail(res);
  1263. }
  1264. isFn(complete) && complete(res);
  1265. }
  1266. var extraApi = /*#__PURE__*/Object.freeze({
  1267. __proto__: null,
  1268. getProvider: getProvider
  1269. });
  1270. var getEmitter = function () {
  1271. var Emitter;
  1272. return function getUniEmitter() {
  1273. if (!Emitter) {
  1274. Emitter = new _vue.default();
  1275. }
  1276. return Emitter;
  1277. };
  1278. }();
  1279. function apply(ctx, method, args) {
  1280. return ctx[method].apply(ctx, args);
  1281. }
  1282. function $on() {
  1283. return apply(getEmitter(), '$on', Array.prototype.slice.call(arguments));
  1284. }
  1285. function $off() {
  1286. return apply(getEmitter(), '$off', Array.prototype.slice.call(arguments));
  1287. }
  1288. function $once() {
  1289. return apply(getEmitter(), '$once', Array.prototype.slice.call(arguments));
  1290. }
  1291. function $emit() {
  1292. return apply(getEmitter(), '$emit', Array.prototype.slice.call(arguments));
  1293. }
  1294. var eventApi = /*#__PURE__*/Object.freeze({
  1295. __proto__: null,
  1296. $on: $on,
  1297. $off: $off,
  1298. $once: $once,
  1299. $emit: $emit
  1300. });
  1301. /**
  1302. * 框架内 try-catch
  1303. */
  1304. /**
  1305. * 开发者 try-catch
  1306. */
  1307. function tryCatch(fn) {
  1308. return function () {
  1309. try {
  1310. return fn.apply(fn, arguments);
  1311. } catch (e) {
  1312. // TODO
  1313. console.error(e);
  1314. }
  1315. };
  1316. }
  1317. function getApiCallbacks(params) {
  1318. var apiCallbacks = {};
  1319. for (var name in params) {
  1320. var param = params[name];
  1321. if (isFn(param)) {
  1322. apiCallbacks[name] = tryCatch(param);
  1323. delete params[name];
  1324. }
  1325. }
  1326. return apiCallbacks;
  1327. }
  1328. var cid;
  1329. var cidErrMsg;
  1330. var enabled;
  1331. function normalizePushMessage(message) {
  1332. try {
  1333. return JSON.parse(message);
  1334. } catch (e) {}
  1335. return message;
  1336. }
  1337. function invokePushCallback(args) {
  1338. if (args.type === 'enabled') {
  1339. enabled = true;
  1340. } else if (args.type === 'clientId') {
  1341. cid = args.cid;
  1342. cidErrMsg = args.errMsg;
  1343. invokeGetPushCidCallbacks(cid, args.errMsg);
  1344. } else if (args.type === 'pushMsg') {
  1345. var message = {
  1346. type: 'receive',
  1347. data: normalizePushMessage(args.message)
  1348. };
  1349. for (var i = 0; i < onPushMessageCallbacks.length; i++) {
  1350. var callback = onPushMessageCallbacks[i];
  1351. callback(message);
  1352. // 该消息已被阻止
  1353. if (message.stopped) {
  1354. break;
  1355. }
  1356. }
  1357. } else if (args.type === 'click') {
  1358. onPushMessageCallbacks.forEach(function (callback) {
  1359. callback({
  1360. type: 'click',
  1361. data: normalizePushMessage(args.message)
  1362. });
  1363. });
  1364. }
  1365. }
  1366. var getPushCidCallbacks = [];
  1367. function invokeGetPushCidCallbacks(cid, errMsg) {
  1368. getPushCidCallbacks.forEach(function (callback) {
  1369. callback(cid, errMsg);
  1370. });
  1371. getPushCidCallbacks.length = 0;
  1372. }
  1373. function getPushClientId(args) {
  1374. if (!isPlainObject(args)) {
  1375. args = {};
  1376. }
  1377. var _getApiCallbacks = getApiCallbacks(args),
  1378. success = _getApiCallbacks.success,
  1379. fail = _getApiCallbacks.fail,
  1380. complete = _getApiCallbacks.complete;
  1381. var hasSuccess = isFn(success);
  1382. var hasFail = isFn(fail);
  1383. var hasComplete = isFn(complete);
  1384. Promise.resolve().then(function () {
  1385. if (typeof enabled === 'undefined') {
  1386. enabled = false;
  1387. cid = '';
  1388. cidErrMsg = 'uniPush is not enabled';
  1389. }
  1390. getPushCidCallbacks.push(function (cid, errMsg) {
  1391. var res;
  1392. if (cid) {
  1393. res = {
  1394. errMsg: 'getPushClientId:ok',
  1395. cid: cid
  1396. };
  1397. hasSuccess && success(res);
  1398. } else {
  1399. res = {
  1400. errMsg: 'getPushClientId:fail' + (errMsg ? ' ' + errMsg : '')
  1401. };
  1402. hasFail && fail(res);
  1403. }
  1404. hasComplete && complete(res);
  1405. });
  1406. if (typeof cid !== 'undefined') {
  1407. invokeGetPushCidCallbacks(cid, cidErrMsg);
  1408. }
  1409. });
  1410. }
  1411. var onPushMessageCallbacks = [];
  1412. // 不使用 defineOnApi 实现,是因为 defineOnApi 依赖 UniServiceJSBridge ,该对象目前在小程序上未提供,故简单实现
  1413. var onPushMessage = function onPushMessage(fn) {
  1414. if (onPushMessageCallbacks.indexOf(fn) === -1) {
  1415. onPushMessageCallbacks.push(fn);
  1416. }
  1417. };
  1418. var offPushMessage = function offPushMessage(fn) {
  1419. if (!fn) {
  1420. onPushMessageCallbacks.length = 0;
  1421. } else {
  1422. var index = onPushMessageCallbacks.indexOf(fn);
  1423. if (index > -1) {
  1424. onPushMessageCallbacks.splice(index, 1);
  1425. }
  1426. }
  1427. };
  1428. var baseInfo = wx.getAppBaseInfo && wx.getAppBaseInfo();
  1429. if (!baseInfo) {
  1430. baseInfo = wx.getSystemInfoSync();
  1431. }
  1432. var host = baseInfo ? baseInfo.host : null;
  1433. var shareVideoMessage = host && host.env === 'SAAASDK' ? wx.miniapp.shareVideoMessage : wx.shareVideoMessage;
  1434. var api = /*#__PURE__*/Object.freeze({
  1435. __proto__: null,
  1436. shareVideoMessage: shareVideoMessage,
  1437. getPushClientId: getPushClientId,
  1438. onPushMessage: onPushMessage,
  1439. offPushMessage: offPushMessage,
  1440. invokePushCallback: invokePushCallback
  1441. });
  1442. var mocks = ['__route__', '__wxExparserNodeId__', '__wxWebviewId__'];
  1443. function findVmByVueId(vm, vuePid) {
  1444. var $children = vm.$children;
  1445. // 优先查找直属(反向查找:https://github.com/dcloudio/uni-app/issues/1200)
  1446. for (var i = $children.length - 1; i >= 0; i--) {
  1447. var childVm = $children[i];
  1448. if (childVm.$scope._$vueId === vuePid) {
  1449. return childVm;
  1450. }
  1451. }
  1452. // 反向递归查找
  1453. var parentVm;
  1454. for (var _i = $children.length - 1; _i >= 0; _i--) {
  1455. parentVm = findVmByVueId($children[_i], vuePid);
  1456. if (parentVm) {
  1457. return parentVm;
  1458. }
  1459. }
  1460. }
  1461. function initBehavior(options) {
  1462. return Behavior(options);
  1463. }
  1464. function isPage() {
  1465. return !!this.route;
  1466. }
  1467. function initRelation(detail) {
  1468. this.triggerEvent('__l', detail);
  1469. }
  1470. function selectAllComponents(mpInstance, selector, $refs) {
  1471. var components = mpInstance.selectAllComponents(selector) || [];
  1472. components.forEach(function (component) {
  1473. var ref = component.dataset.ref;
  1474. $refs[ref] = component.$vm || toSkip(component);
  1475. {
  1476. if (component.dataset.vueGeneric === 'scoped') {
  1477. component.selectAllComponents('.scoped-ref').forEach(function (scopedComponent) {
  1478. selectAllComponents(scopedComponent, selector, $refs);
  1479. });
  1480. }
  1481. }
  1482. });
  1483. }
  1484. function syncRefs(refs, newRefs) {
  1485. var oldKeys = (0, _construct2.default)(Set, (0, _toConsumableArray2.default)(Object.keys(refs)));
  1486. var newKeys = Object.keys(newRefs);
  1487. newKeys.forEach(function (key) {
  1488. var oldValue = refs[key];
  1489. var newValue = newRefs[key];
  1490. if (Array.isArray(oldValue) && Array.isArray(newValue) && oldValue.length === newValue.length && newValue.every(function (value) {
  1491. return oldValue.includes(value);
  1492. })) {
  1493. return;
  1494. }
  1495. refs[key] = newValue;
  1496. oldKeys.delete(key);
  1497. });
  1498. oldKeys.forEach(function (key) {
  1499. delete refs[key];
  1500. });
  1501. return refs;
  1502. }
  1503. function initRefs(vm) {
  1504. var mpInstance = vm.$scope;
  1505. var refs = {};
  1506. Object.defineProperty(vm, '$refs', {
  1507. get: function get() {
  1508. var $refs = {};
  1509. selectAllComponents(mpInstance, '.vue-ref', $refs);
  1510. // TODO 暂不考虑 for 中的 scoped
  1511. var forComponents = mpInstance.selectAllComponents('.vue-ref-in-for') || [];
  1512. forComponents.forEach(function (component) {
  1513. var ref = component.dataset.ref;
  1514. if (!$refs[ref]) {
  1515. $refs[ref] = [];
  1516. }
  1517. $refs[ref].push(component.$vm || toSkip(component));
  1518. });
  1519. return syncRefs(refs, $refs);
  1520. }
  1521. });
  1522. }
  1523. function handleLink(event) {
  1524. var _ref3 = event.detail || event.value,
  1525. vuePid = _ref3.vuePid,
  1526. vueOptions = _ref3.vueOptions; // detail 是微信,value 是百度(dipatch)
  1527. var parentVm;
  1528. if (vuePid) {
  1529. parentVm = findVmByVueId(this.$vm, vuePid);
  1530. }
  1531. if (!parentVm) {
  1532. parentVm = this.$vm;
  1533. }
  1534. vueOptions.parent = parentVm;
  1535. }
  1536. function markMPComponent(component) {
  1537. // 在 Vue 中标记为小程序组件
  1538. var IS_MP = '__v_isMPComponent';
  1539. Object.defineProperty(component, IS_MP, {
  1540. configurable: true,
  1541. enumerable: false,
  1542. value: true
  1543. });
  1544. return component;
  1545. }
  1546. function toSkip(obj) {
  1547. var OB = '__ob__';
  1548. var SKIP = '__v_skip';
  1549. if (isObject(obj) && Object.isExtensible(obj)) {
  1550. // 避免被 @vue/composition-api 观测
  1551. Object.defineProperty(obj, OB, {
  1552. configurable: true,
  1553. enumerable: false,
  1554. value: (0, _defineProperty2.default)({}, SKIP, true)
  1555. });
  1556. }
  1557. return obj;
  1558. }
  1559. var WORKLET_RE = /_(.*)_worklet_factory_/;
  1560. function initWorkletMethods(mpMethods, vueMethods) {
  1561. if (vueMethods) {
  1562. Object.keys(vueMethods).forEach(function (name) {
  1563. var matches = name.match(WORKLET_RE);
  1564. if (matches) {
  1565. var workletName = matches[1];
  1566. mpMethods[name] = vueMethods[name];
  1567. mpMethods[workletName] = vueMethods[workletName];
  1568. }
  1569. });
  1570. }
  1571. }
  1572. var MPPage = Page;
  1573. var MPComponent = Component;
  1574. var customizeRE = /:/g;
  1575. var customize = cached(function (str) {
  1576. return camelize(str.replace(customizeRE, '-'));
  1577. });
  1578. function initTriggerEvent(mpInstance) {
  1579. var oldTriggerEvent = mpInstance.triggerEvent;
  1580. var newTriggerEvent = function newTriggerEvent(event) {
  1581. for (var _len3 = arguments.length, args = new Array(_len3 > 1 ? _len3 - 1 : 0), _key3 = 1; _key3 < _len3; _key3++) {
  1582. args[_key3 - 1] = arguments[_key3];
  1583. }
  1584. // 事件名统一转驼峰格式,仅处理:当前组件为 vue 组件、当前组件为 vue 组件子组件
  1585. if (this.$vm || this.dataset && this.dataset.comType) {
  1586. event = customize(event);
  1587. } else {
  1588. // 针对微信/QQ小程序单独补充驼峰格式事件,以兼容历史项目
  1589. var newEvent = customize(event);
  1590. if (newEvent !== event) {
  1591. oldTriggerEvent.apply(this, [newEvent].concat(args));
  1592. }
  1593. }
  1594. return oldTriggerEvent.apply(this, [event].concat(args));
  1595. };
  1596. try {
  1597. // 京东小程序 triggerEvent 为只读
  1598. mpInstance.triggerEvent = newTriggerEvent;
  1599. } catch (error) {
  1600. mpInstance._triggerEvent = newTriggerEvent;
  1601. }
  1602. }
  1603. function initHook(name, options, isComponent) {
  1604. var oldHook = options[name];
  1605. options[name] = function () {
  1606. markMPComponent(this);
  1607. initTriggerEvent(this);
  1608. if (oldHook) {
  1609. for (var _len4 = arguments.length, args = new Array(_len4), _key4 = 0; _key4 < _len4; _key4++) {
  1610. args[_key4] = arguments[_key4];
  1611. }
  1612. return oldHook.apply(this, args);
  1613. }
  1614. };
  1615. }
  1616. if (!MPPage.__$wrappered) {
  1617. MPPage.__$wrappered = true;
  1618. Page = function Page() {
  1619. var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
  1620. initHook('onLoad', options);
  1621. return MPPage(options);
  1622. };
  1623. Page.after = MPPage.after;
  1624. Component = function Component() {
  1625. var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
  1626. initHook('created', options);
  1627. return MPComponent(options);
  1628. };
  1629. }
  1630. var PAGE_EVENT_HOOKS = ['onPullDownRefresh', 'onReachBottom', 'onAddToFavorites', 'onShareTimeline', 'onShareAppMessage', 'onPageScroll', 'onResize', 'onTabItemTap'];
  1631. function initMocks(vm, mocks) {
  1632. var mpInstance = vm.$mp[vm.mpType];
  1633. mocks.forEach(function (mock) {
  1634. if (hasOwn(mpInstance, mock)) {
  1635. vm[mock] = mpInstance[mock];
  1636. }
  1637. });
  1638. }
  1639. function hasHook(hook, vueOptions) {
  1640. if (!vueOptions) {
  1641. return true;
  1642. }
  1643. if (_vue.default.options && Array.isArray(_vue.default.options[hook])) {
  1644. return true;
  1645. }
  1646. vueOptions = vueOptions.default || vueOptions;
  1647. if (isFn(vueOptions)) {
  1648. if (isFn(vueOptions.extendOptions[hook])) {
  1649. return true;
  1650. }
  1651. if (vueOptions.super && vueOptions.super.options && Array.isArray(vueOptions.super.options[hook])) {
  1652. return true;
  1653. }
  1654. return false;
  1655. }
  1656. if (isFn(vueOptions[hook]) || Array.isArray(vueOptions[hook])) {
  1657. return true;
  1658. }
  1659. var mixins = vueOptions.mixins;
  1660. if (Array.isArray(mixins)) {
  1661. return !!mixins.find(function (mixin) {
  1662. return hasHook(hook, mixin);
  1663. });
  1664. }
  1665. }
  1666. function initHooks(mpOptions, hooks, vueOptions) {
  1667. hooks.forEach(function (hook) {
  1668. if (hasHook(hook, vueOptions)) {
  1669. mpOptions[hook] = function (args) {
  1670. return this.$vm && this.$vm.__call_hook(hook, args);
  1671. };
  1672. }
  1673. });
  1674. }
  1675. function initUnknownHooks(mpOptions, vueOptions) {
  1676. var excludes = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : [];
  1677. findHooks(vueOptions).forEach(function (hook) {
  1678. return initHook$1(mpOptions, hook, excludes);
  1679. });
  1680. }
  1681. function findHooks(vueOptions) {
  1682. var hooks = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : [];
  1683. if (vueOptions) {
  1684. Object.keys(vueOptions).forEach(function (name) {
  1685. if (name.indexOf('on') === 0 && isFn(vueOptions[name])) {
  1686. hooks.push(name);
  1687. }
  1688. });
  1689. }
  1690. return hooks;
  1691. }
  1692. function initHook$1(mpOptions, hook, excludes) {
  1693. if (excludes.indexOf(hook) === -1 && !hasOwn(mpOptions, hook)) {
  1694. mpOptions[hook] = function (args) {
  1695. return this.$vm && this.$vm.__call_hook(hook, args);
  1696. };
  1697. }
  1698. }
  1699. function initVueComponent(Vue, vueOptions) {
  1700. vueOptions = vueOptions.default || vueOptions;
  1701. var VueComponent;
  1702. if (isFn(vueOptions)) {
  1703. VueComponent = vueOptions;
  1704. } else {
  1705. VueComponent = Vue.extend(vueOptions);
  1706. }
  1707. vueOptions = VueComponent.options;
  1708. return [VueComponent, vueOptions];
  1709. }
  1710. function initSlots(vm, vueSlots) {
  1711. if (Array.isArray(vueSlots) && vueSlots.length) {
  1712. var $slots = Object.create(null);
  1713. vueSlots.forEach(function (slotName) {
  1714. $slots[slotName] = true;
  1715. });
  1716. vm.$scopedSlots = vm.$slots = $slots;
  1717. }
  1718. }
  1719. function initVueIds(vueIds, mpInstance) {
  1720. vueIds = (vueIds || '').split(',');
  1721. var len = vueIds.length;
  1722. if (len === 1) {
  1723. mpInstance._$vueId = vueIds[0];
  1724. } else if (len === 2) {
  1725. mpInstance._$vueId = vueIds[0];
  1726. mpInstance._$vuePid = vueIds[1];
  1727. }
  1728. }
  1729. function initData(vueOptions, context) {
  1730. var data = vueOptions.data || {};
  1731. var methods = vueOptions.methods || {};
  1732. if (typeof data === 'function') {
  1733. try {
  1734. data = data.call(context); // 支持 Vue.prototype 上挂的数据
  1735. } catch (e) {
  1736. if (Object({"VUE_APP_DARK_MODE":"false","VUE_APP_NAME":"产品化管理端","VUE_APP_PLATFORM":"mp-weixin","NODE_ENV":"development","BASE_URL":"/"}).VUE_APP_DEBUG) {
  1737. console.warn('根据 Vue 的 data 函数初始化小程序 data 失败,请尽量确保 data 函数中不访问 vm 对象,否则可能影响首次数据渲染速度。', data);
  1738. }
  1739. }
  1740. } else {
  1741. try {
  1742. // 对 data 格式化
  1743. data = JSON.parse(JSON.stringify(data));
  1744. } catch (e) {}
  1745. }
  1746. if (!isPlainObject(data)) {
  1747. data = {};
  1748. }
  1749. Object.keys(methods).forEach(function (methodName) {
  1750. if (context.__lifecycle_hooks__.indexOf(methodName) === -1 && !hasOwn(data, methodName)) {
  1751. data[methodName] = methods[methodName];
  1752. }
  1753. });
  1754. return data;
  1755. }
  1756. var PROP_TYPES = [String, Number, Boolean, Object, Array, null];
  1757. function createObserver(name) {
  1758. return function observer(newVal, oldVal) {
  1759. if (this.$vm) {
  1760. this.$vm[name] = newVal; // 为了触发其他非 render watcher
  1761. }
  1762. };
  1763. }
  1764. function initBehaviors(vueOptions, initBehavior) {
  1765. var vueBehaviors = vueOptions.behaviors;
  1766. var vueExtends = vueOptions.extends;
  1767. var vueMixins = vueOptions.mixins;
  1768. var vueProps = vueOptions.props;
  1769. if (!vueProps) {
  1770. vueOptions.props = vueProps = [];
  1771. }
  1772. var behaviors = [];
  1773. if (Array.isArray(vueBehaviors)) {
  1774. vueBehaviors.forEach(function (behavior) {
  1775. behaviors.push(behavior.replace('uni://', "wx".concat("://")));
  1776. if (behavior === 'uni://form-field') {
  1777. if (Array.isArray(vueProps)) {
  1778. vueProps.push('name');
  1779. vueProps.push('value');
  1780. } else {
  1781. vueProps.name = {
  1782. type: String,
  1783. default: ''
  1784. };
  1785. vueProps.value = {
  1786. type: [String, Number, Boolean, Array, Object, Date],
  1787. default: ''
  1788. };
  1789. }
  1790. }
  1791. });
  1792. }
  1793. if (isPlainObject(vueExtends) && vueExtends.props) {
  1794. behaviors.push(initBehavior({
  1795. properties: initProperties(vueExtends.props, true)
  1796. }));
  1797. }
  1798. if (Array.isArray(vueMixins)) {
  1799. vueMixins.forEach(function (vueMixin) {
  1800. if (isPlainObject(vueMixin) && vueMixin.props) {
  1801. behaviors.push(initBehavior({
  1802. properties: initProperties(vueMixin.props, true)
  1803. }));
  1804. }
  1805. });
  1806. }
  1807. return behaviors;
  1808. }
  1809. function parsePropType(key, type, defaultValue, file) {
  1810. // [String]=>String
  1811. if (Array.isArray(type) && type.length === 1) {
  1812. return type[0];
  1813. }
  1814. return type;
  1815. }
  1816. function initProperties(props) {
  1817. var isBehavior = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
  1818. var file = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : '';
  1819. var options = arguments.length > 3 ? arguments[3] : undefined;
  1820. var properties = {};
  1821. if (!isBehavior) {
  1822. properties.vueId = {
  1823. type: String,
  1824. value: ''
  1825. };
  1826. {
  1827. if (options.virtualHost) {
  1828. properties.virtualHostStyle = {
  1829. type: null,
  1830. value: ''
  1831. };
  1832. properties.virtualHostClass = {
  1833. type: null,
  1834. value: ''
  1835. };
  1836. }
  1837. }
  1838. // scopedSlotsCompiler auto
  1839. properties.scopedSlotsCompiler = {
  1840. type: String,
  1841. value: ''
  1842. };
  1843. properties.vueSlots = {
  1844. // 小程序不能直接定义 $slots 的 props,所以通过 vueSlots 转换到 $slots
  1845. type: null,
  1846. value: [],
  1847. observer: function observer(newVal, oldVal) {
  1848. var $slots = Object.create(null);
  1849. newVal.forEach(function (slotName) {
  1850. $slots[slotName] = true;
  1851. });
  1852. this.setData({
  1853. $slots: $slots
  1854. });
  1855. }
  1856. };
  1857. }
  1858. if (Array.isArray(props)) {
  1859. // ['title']
  1860. props.forEach(function (key) {
  1861. properties[key] = {
  1862. type: null,
  1863. observer: createObserver(key)
  1864. };
  1865. });
  1866. } else if (isPlainObject(props)) {
  1867. // {title:{type:String,default:''},content:String}
  1868. Object.keys(props).forEach(function (key) {
  1869. var opts = props[key];
  1870. if (isPlainObject(opts)) {
  1871. // title:{type:String,default:''}
  1872. var value = opts.default;
  1873. if (isFn(value)) {
  1874. value = value();
  1875. }
  1876. opts.type = parsePropType(key, opts.type);
  1877. properties[key] = {
  1878. type: PROP_TYPES.indexOf(opts.type) !== -1 ? opts.type : null,
  1879. value: value,
  1880. observer: createObserver(key)
  1881. };
  1882. } else {
  1883. // content:String
  1884. var type = parsePropType(key, opts);
  1885. properties[key] = {
  1886. type: PROP_TYPES.indexOf(type) !== -1 ? type : null,
  1887. observer: createObserver(key)
  1888. };
  1889. }
  1890. });
  1891. }
  1892. return properties;
  1893. }
  1894. function wrapper$1(event) {
  1895. // TODO 又得兼容 mpvue 的 mp 对象
  1896. try {
  1897. event.mp = JSON.parse(JSON.stringify(event));
  1898. } catch (e) {}
  1899. event.stopPropagation = noop;
  1900. event.preventDefault = noop;
  1901. event.target = event.target || {};
  1902. if (!hasOwn(event, 'detail')) {
  1903. event.detail = {};
  1904. }
  1905. if (hasOwn(event, 'markerId')) {
  1906. event.detail = (0, _typeof2.default)(event.detail) === 'object' ? event.detail : {};
  1907. event.detail.markerId = event.markerId;
  1908. }
  1909. if (isPlainObject(event.detail)) {
  1910. event.target = Object.assign({}, event.target, event.detail);
  1911. }
  1912. return event;
  1913. }
  1914. function getExtraValue(vm, dataPathsArray) {
  1915. var context = vm;
  1916. dataPathsArray.forEach(function (dataPathArray) {
  1917. var dataPath = dataPathArray[0];
  1918. var value = dataPathArray[2];
  1919. if (dataPath || typeof value !== 'undefined') {
  1920. // ['','',index,'disable']
  1921. var propPath = dataPathArray[1];
  1922. var valuePath = dataPathArray[3];
  1923. var vFor;
  1924. if (Number.isInteger(dataPath)) {
  1925. vFor = dataPath;
  1926. } else if (!dataPath) {
  1927. vFor = context;
  1928. } else if (typeof dataPath === 'string' && dataPath) {
  1929. if (dataPath.indexOf('#s#') === 0) {
  1930. vFor = dataPath.substr(3);
  1931. } else {
  1932. vFor = vm.__get_value(dataPath, context);
  1933. }
  1934. }
  1935. if (Number.isInteger(vFor)) {
  1936. context = value;
  1937. } else if (!propPath) {
  1938. context = vFor[value];
  1939. } else {
  1940. if (Array.isArray(vFor)) {
  1941. context = vFor.find(function (vForItem) {
  1942. return vm.__get_value(propPath, vForItem) === value;
  1943. });
  1944. } else if (isPlainObject(vFor)) {
  1945. context = Object.keys(vFor).find(function (vForKey) {
  1946. return vm.__get_value(propPath, vFor[vForKey]) === value;
  1947. });
  1948. } else {
  1949. console.error('v-for 暂不支持循环数据:', vFor);
  1950. }
  1951. }
  1952. if (valuePath) {
  1953. context = vm.__get_value(valuePath, context);
  1954. }
  1955. }
  1956. });
  1957. return context;
  1958. }
  1959. function processEventExtra(vm, extra, event, __args__) {
  1960. var extraObj = {};
  1961. if (Array.isArray(extra) && extra.length) {
  1962. /**
  1963. *[
  1964. * ['data.items', 'data.id', item.data.id],
  1965. * ['metas', 'id', meta.id]
  1966. *],
  1967. *[
  1968. * ['data.items', 'data.id', item.data.id],
  1969. * ['metas', 'id', meta.id]
  1970. *],
  1971. *'test'
  1972. */
  1973. extra.forEach(function (dataPath, index) {
  1974. if (typeof dataPath === 'string') {
  1975. if (!dataPath) {
  1976. // model,prop.sync
  1977. extraObj['$' + index] = vm;
  1978. } else {
  1979. if (dataPath === '$event') {
  1980. // $event
  1981. extraObj['$' + index] = event;
  1982. } else if (dataPath === 'arguments') {
  1983. extraObj['$' + index] = event.detail ? event.detail.__args__ || __args__ : __args__;
  1984. } else if (dataPath.indexOf('$event.') === 0) {
  1985. // $event.target.value
  1986. extraObj['$' + index] = vm.__get_value(dataPath.replace('$event.', ''), event);
  1987. } else {
  1988. extraObj['$' + index] = vm.__get_value(dataPath);
  1989. }
  1990. }
  1991. } else {
  1992. extraObj['$' + index] = getExtraValue(vm, dataPath);
  1993. }
  1994. });
  1995. }
  1996. return extraObj;
  1997. }
  1998. function getObjByArray(arr) {
  1999. var obj = {};
  2000. for (var i = 1; i < arr.length; i++) {
  2001. var element = arr[i];
  2002. obj[element[0]] = element[1];
  2003. }
  2004. return obj;
  2005. }
  2006. function processEventArgs(vm, event) {
  2007. var args = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : [];
  2008. var extra = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : [];
  2009. var isCustom = arguments.length > 4 ? arguments[4] : undefined;
  2010. var methodName = arguments.length > 5 ? arguments[5] : undefined;
  2011. var isCustomMPEvent = false; // wxcomponent 组件,传递原始 event 对象
  2012. // fixed 用户直接触发 mpInstance.triggerEvent
  2013. var __args__ = isPlainObject(event.detail) ? event.detail.__args__ || [event.detail] : [event.detail];
  2014. if (isCustom) {
  2015. // 自定义事件
  2016. isCustomMPEvent = event.currentTarget && event.currentTarget.dataset && event.currentTarget.dataset.comType === 'wx';
  2017. if (!args.length) {
  2018. // 无参数,直接传入 event 或 detail 数组
  2019. if (isCustomMPEvent) {
  2020. return [event];
  2021. }
  2022. return __args__;
  2023. }
  2024. }
  2025. var extraObj = processEventExtra(vm, extra, event, __args__);
  2026. var ret = [];
  2027. args.forEach(function (arg) {
  2028. if (arg === '$event') {
  2029. if (methodName === '__set_model' && !isCustom) {
  2030. // input v-model value
  2031. ret.push(event.target.value);
  2032. } else {
  2033. if (isCustom && !isCustomMPEvent) {
  2034. ret.push(__args__[0]);
  2035. } else {
  2036. // wxcomponent 组件或内置组件
  2037. ret.push(event);
  2038. }
  2039. }
  2040. } else {
  2041. if (Array.isArray(arg) && arg[0] === 'o') {
  2042. ret.push(getObjByArray(arg));
  2043. } else if (typeof arg === 'string' && hasOwn(extraObj, arg)) {
  2044. ret.push(extraObj[arg]);
  2045. } else {
  2046. ret.push(arg);
  2047. }
  2048. }
  2049. });
  2050. return ret;
  2051. }
  2052. var ONCE = '~';
  2053. var CUSTOM = '^';
  2054. function isMatchEventType(eventType, optType) {
  2055. return eventType === optType || optType === 'regionchange' && (eventType === 'begin' || eventType === 'end');
  2056. }
  2057. function getContextVm(vm) {
  2058. var $parent = vm.$parent;
  2059. // 父组件是 scoped slots 或者其他自定义组件时继续查找
  2060. while ($parent && $parent.$parent && ($parent.$options.generic || $parent.$parent.$options.generic || $parent.$scope._$vuePid)) {
  2061. $parent = $parent.$parent;
  2062. }
  2063. return $parent && $parent.$parent;
  2064. }
  2065. function handleEvent(event) {
  2066. var _this2 = this;
  2067. event = wrapper$1(event);
  2068. // [['tap',[['handle',[1,2,a]],['handle1',[1,2,a]]]]]
  2069. var dataset = (event.currentTarget || event.target).dataset;
  2070. if (!dataset) {
  2071. return console.warn('事件信息不存在');
  2072. }
  2073. var eventOpts = dataset.eventOpts || dataset['event-opts']; // 支付宝 web-view 组件 dataset 非驼峰
  2074. if (!eventOpts) {
  2075. return console.warn('事件信息不存在');
  2076. }
  2077. // [['handle',[1,2,a]],['handle1',[1,2,a]]]
  2078. var eventType = event.type;
  2079. var ret = [];
  2080. eventOpts.forEach(function (eventOpt) {
  2081. var type = eventOpt[0];
  2082. var eventsArray = eventOpt[1];
  2083. var isCustom = type.charAt(0) === CUSTOM;
  2084. type = isCustom ? type.slice(1) : type;
  2085. var isOnce = type.charAt(0) === ONCE;
  2086. type = isOnce ? type.slice(1) : type;
  2087. if (eventsArray && isMatchEventType(eventType, type)) {
  2088. eventsArray.forEach(function (eventArray) {
  2089. var methodName = eventArray[0];
  2090. if (methodName) {
  2091. var handlerCtx = _this2.$vm;
  2092. if (handlerCtx.$options.generic) {
  2093. // mp-weixin,mp-toutiao 抽象节点模拟 scoped slots
  2094. handlerCtx = getContextVm(handlerCtx) || handlerCtx;
  2095. }
  2096. if (methodName === '$emit') {
  2097. handlerCtx.$emit.apply(handlerCtx, processEventArgs(_this2.$vm, event, eventArray[1], eventArray[2], isCustom, methodName));
  2098. return;
  2099. }
  2100. var handler = handlerCtx[methodName];
  2101. if (!isFn(handler)) {
  2102. var _type = _this2.$vm.mpType === 'page' ? 'Page' : 'Component';
  2103. var path = _this2.route || _this2.is;
  2104. throw new Error("".concat(_type, " \"").concat(path, "\" does not have a method \"").concat(methodName, "\""));
  2105. }
  2106. if (isOnce) {
  2107. if (handler.once) {
  2108. return;
  2109. }
  2110. handler.once = true;
  2111. }
  2112. var params = processEventArgs(_this2.$vm, event, eventArray[1], eventArray[2], isCustom, methodName);
  2113. params = Array.isArray(params) ? params : [];
  2114. // 参数尾部增加原始事件对象用于复杂表达式内获取额外数据
  2115. if (/=\s*\S+\.eventParams\s*\|\|\s*\S+\[['"]event-params['"]\]/.test(handler.toString())) {
  2116. // eslint-disable-next-line no-sparse-arrays
  2117. params = params.concat([,,,,,,,,,, event]);
  2118. }
  2119. ret.push(handler.apply(handlerCtx, params));
  2120. }
  2121. });
  2122. }
  2123. });
  2124. if (eventType === 'input' && ret.length === 1 && typeof ret[0] !== 'undefined') {
  2125. return ret[0];
  2126. }
  2127. }
  2128. var eventChannels = {};
  2129. function getEventChannel(id) {
  2130. var eventChannel = eventChannels[id];
  2131. delete eventChannels[id];
  2132. return eventChannel;
  2133. }
  2134. var hooks = ['onShow', 'onHide', 'onError', 'onPageNotFound', 'onThemeChange', 'onUnhandledRejection'];
  2135. function initEventChannel() {
  2136. _vue.default.prototype.getOpenerEventChannel = function () {
  2137. // 微信小程序使用自身getOpenerEventChannel
  2138. {
  2139. return this.$scope.getOpenerEventChannel();
  2140. }
  2141. };
  2142. var callHook = _vue.default.prototype.__call_hook;
  2143. _vue.default.prototype.__call_hook = function (hook, args) {
  2144. if (hook === 'onLoad' && args && args.__id__) {
  2145. this.__eventChannel__ = getEventChannel(args.__id__);
  2146. delete args.__id__;
  2147. }
  2148. return callHook.call(this, hook, args);
  2149. };
  2150. }
  2151. function initScopedSlotsParams() {
  2152. var center = {};
  2153. var parents = {};
  2154. function currentId(fn) {
  2155. var vueIds = this.$options.propsData.vueId;
  2156. if (vueIds) {
  2157. var vueId = vueIds.split(',')[0];
  2158. fn(vueId);
  2159. }
  2160. }
  2161. _vue.default.prototype.$hasSSP = function (vueId) {
  2162. var slot = center[vueId];
  2163. if (!slot) {
  2164. parents[vueId] = this;
  2165. this.$on('hook:destroyed', function () {
  2166. delete parents[vueId];
  2167. });
  2168. }
  2169. return slot;
  2170. };
  2171. _vue.default.prototype.$getSSP = function (vueId, name, needAll) {
  2172. var slot = center[vueId];
  2173. if (slot) {
  2174. var params = slot[name] || [];
  2175. if (needAll) {
  2176. return params;
  2177. }
  2178. return params[0];
  2179. }
  2180. };
  2181. _vue.default.prototype.$setSSP = function (name, value) {
  2182. var index = 0;
  2183. currentId.call(this, function (vueId) {
  2184. var slot = center[vueId];
  2185. var params = slot[name] = slot[name] || [];
  2186. params.push(value);
  2187. index = params.length - 1;
  2188. });
  2189. return index;
  2190. };
  2191. _vue.default.prototype.$initSSP = function () {
  2192. currentId.call(this, function (vueId) {
  2193. center[vueId] = {};
  2194. });
  2195. };
  2196. _vue.default.prototype.$callSSP = function () {
  2197. currentId.call(this, function (vueId) {
  2198. if (parents[vueId]) {
  2199. parents[vueId].$forceUpdate();
  2200. }
  2201. });
  2202. };
  2203. _vue.default.mixin({
  2204. destroyed: function destroyed() {
  2205. var propsData = this.$options.propsData;
  2206. var vueId = propsData && propsData.vueId;
  2207. if (vueId) {
  2208. delete center[vueId];
  2209. delete parents[vueId];
  2210. }
  2211. }
  2212. });
  2213. }
  2214. function parseBaseApp(vm, _ref4) {
  2215. var mocks = _ref4.mocks,
  2216. initRefs = _ref4.initRefs;
  2217. initEventChannel();
  2218. {
  2219. initScopedSlotsParams();
  2220. }
  2221. if (vm.$options.store) {
  2222. _vue.default.prototype.$store = vm.$options.store;
  2223. }
  2224. uniIdMixin(_vue.default);
  2225. _vue.default.prototype.mpHost = "mp-weixin";
  2226. _vue.default.mixin({
  2227. beforeCreate: function beforeCreate() {
  2228. if (!this.$options.mpType) {
  2229. return;
  2230. }
  2231. this.mpType = this.$options.mpType;
  2232. this.$mp = (0, _defineProperty2.default)({
  2233. data: {}
  2234. }, this.mpType, this.$options.mpInstance);
  2235. this.$scope = this.$options.mpInstance;
  2236. delete this.$options.mpType;
  2237. delete this.$options.mpInstance;
  2238. if (this.mpType === 'page' && typeof getApp === 'function') {
  2239. // hack vue-i18n
  2240. var app = getApp();
  2241. if (app.$vm && app.$vm.$i18n) {
  2242. this._i18n = app.$vm.$i18n;
  2243. }
  2244. }
  2245. if (this.mpType !== 'app') {
  2246. initRefs(this);
  2247. initMocks(this, mocks);
  2248. }
  2249. }
  2250. });
  2251. var appOptions = {
  2252. onLaunch: function onLaunch(args) {
  2253. if (this.$vm) {
  2254. // 已经初始化过了,主要是为了百度,百度 onShow 在 onLaunch 之前
  2255. return;
  2256. }
  2257. {
  2258. if (wx.canIUse && !wx.canIUse('nextTick')) {
  2259. // 事实 上2.2.3 即可,简单使用 2.3.0 的 nextTick 判断
  2260. console.error('当前微信基础库版本过低,请将 微信开发者工具-详情-项目设置-调试基础库版本 更换为`2.3.0`以上');
  2261. }
  2262. }
  2263. this.$vm = vm;
  2264. this.$vm.$mp = {
  2265. app: this
  2266. };
  2267. this.$vm.$scope = this;
  2268. // vm 上也挂载 globalData
  2269. this.$vm.globalData = this.globalData;
  2270. this.$vm._isMounted = true;
  2271. this.$vm.__call_hook('mounted', args);
  2272. this.$vm.__call_hook('onLaunch', args);
  2273. }
  2274. };
  2275. // 兼容旧版本 globalData
  2276. appOptions.globalData = vm.$options.globalData || {};
  2277. // 将 methods 中的方法挂在 getApp() 中
  2278. var methods = vm.$options.methods;
  2279. if (methods) {
  2280. Object.keys(methods).forEach(function (name) {
  2281. appOptions[name] = methods[name];
  2282. });
  2283. }
  2284. initAppLocale(_vue.default, vm, normalizeLocale(wx.getSystemInfoSync().language) || LOCALE_EN);
  2285. initHooks(appOptions, hooks);
  2286. initUnknownHooks(appOptions, vm.$options);
  2287. return appOptions;
  2288. }
  2289. function parseApp(vm) {
  2290. return parseBaseApp(vm, {
  2291. mocks: mocks,
  2292. initRefs: initRefs
  2293. });
  2294. }
  2295. function createApp(vm) {
  2296. App(parseApp(vm));
  2297. return vm;
  2298. }
  2299. var encodeReserveRE = /[!'()*]/g;
  2300. var encodeReserveReplacer = function encodeReserveReplacer(c) {
  2301. return '%' + c.charCodeAt(0).toString(16);
  2302. };
  2303. var commaRE = /%2C/g;
  2304. // fixed encodeURIComponent which is more conformant to RFC3986:
  2305. // - escapes [!'()*]
  2306. // - preserve commas
  2307. var encode = function encode(str) {
  2308. return encodeURIComponent(str).replace(encodeReserveRE, encodeReserveReplacer).replace(commaRE, ',');
  2309. };
  2310. function stringifyQuery(obj) {
  2311. var encodeStr = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : encode;
  2312. var res = obj ? Object.keys(obj).map(function (key) {
  2313. var val = obj[key];
  2314. if (val === undefined) {
  2315. return '';
  2316. }
  2317. if (val === null) {
  2318. return encodeStr(key);
  2319. }
  2320. if (Array.isArray(val)) {
  2321. var result = [];
  2322. val.forEach(function (val2) {
  2323. if (val2 === undefined) {
  2324. return;
  2325. }
  2326. if (val2 === null) {
  2327. result.push(encodeStr(key));
  2328. } else {
  2329. result.push(encodeStr(key) + '=' + encodeStr(val2));
  2330. }
  2331. });
  2332. return result.join('&');
  2333. }
  2334. return encodeStr(key) + '=' + encodeStr(val);
  2335. }).filter(function (x) {
  2336. return x.length > 0;
  2337. }).join('&') : null;
  2338. return res ? "?".concat(res) : '';
  2339. }
  2340. function parseBaseComponent(vueComponentOptions) {
  2341. var _ref5 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {},
  2342. isPage = _ref5.isPage,
  2343. initRelation = _ref5.initRelation;
  2344. var needVueOptions = arguments.length > 2 ? arguments[2] : undefined;
  2345. var _initVueComponent = initVueComponent(_vue.default, vueComponentOptions),
  2346. _initVueComponent2 = (0, _slicedToArray2.default)(_initVueComponent, 2),
  2347. VueComponent = _initVueComponent2[0],
  2348. vueOptions = _initVueComponent2[1];
  2349. var options = _objectSpread({
  2350. multipleSlots: true,
  2351. // styleIsolation: 'apply-shared',
  2352. addGlobalClass: true
  2353. }, vueOptions.options || {});
  2354. {
  2355. // 微信 multipleSlots 部分情况有 bug,导致内容顺序错乱 如 u-list,提供覆盖选项
  2356. if (vueOptions['mp-weixin'] && vueOptions['mp-weixin'].options) {
  2357. Object.assign(options, vueOptions['mp-weixin'].options);
  2358. }
  2359. }
  2360. var componentOptions = {
  2361. options: options,
  2362. data: initData(vueOptions, _vue.default.prototype),
  2363. behaviors: initBehaviors(vueOptions, initBehavior),
  2364. properties: initProperties(vueOptions.props, false, vueOptions.__file, options),
  2365. lifetimes: {
  2366. attached: function attached() {
  2367. var properties = this.properties;
  2368. var options = {
  2369. mpType: isPage.call(this) ? 'page' : 'component',
  2370. mpInstance: this,
  2371. propsData: properties
  2372. };
  2373. initVueIds(properties.vueId, this);
  2374. // 处理父子关系
  2375. initRelation.call(this, {
  2376. vuePid: this._$vuePid,
  2377. vueOptions: options
  2378. });
  2379. // 初始化 vue 实例
  2380. this.$vm = new VueComponent(options);
  2381. // 处理$slots,$scopedSlots(暂不支持动态变化$slots)
  2382. initSlots(this.$vm, properties.vueSlots);
  2383. // 触发首次 setData
  2384. this.$vm.$mount();
  2385. },
  2386. ready: function ready() {
  2387. // 当组件 props 默认值为 true,初始化时传入 false 会导致 created,ready 触发, 但 attached 不触发
  2388. // https://developers.weixin.qq.com/community/develop/doc/00066ae2844cc0f8eb883e2a557800
  2389. if (this.$vm) {
  2390. this.$vm._isMounted = true;
  2391. this.$vm.__call_hook('mounted');
  2392. this.$vm.__call_hook('onReady');
  2393. }
  2394. },
  2395. detached: function detached() {
  2396. this.$vm && this.$vm.$destroy();
  2397. }
  2398. },
  2399. pageLifetimes: {
  2400. show: function show(args) {
  2401. this.$vm && this.$vm.__call_hook('onPageShow', args);
  2402. },
  2403. hide: function hide() {
  2404. this.$vm && this.$vm.__call_hook('onPageHide');
  2405. },
  2406. resize: function resize(size) {
  2407. this.$vm && this.$vm.__call_hook('onPageResize', size);
  2408. }
  2409. },
  2410. methods: {
  2411. __l: handleLink,
  2412. __e: handleEvent
  2413. }
  2414. };
  2415. // externalClasses
  2416. if (vueOptions.externalClasses) {
  2417. componentOptions.externalClasses = vueOptions.externalClasses;
  2418. }
  2419. if (Array.isArray(vueOptions.wxsCallMethods)) {
  2420. vueOptions.wxsCallMethods.forEach(function (callMethod) {
  2421. componentOptions.methods[callMethod] = function (args) {
  2422. return this.$vm[callMethod](args);
  2423. };
  2424. });
  2425. }
  2426. if (needVueOptions) {
  2427. return [componentOptions, vueOptions, VueComponent];
  2428. }
  2429. if (isPage) {
  2430. return componentOptions;
  2431. }
  2432. return [componentOptions, VueComponent];
  2433. }
  2434. function parseComponent(vueComponentOptions, needVueOptions) {
  2435. return parseBaseComponent(vueComponentOptions, {
  2436. isPage: isPage,
  2437. initRelation: initRelation
  2438. }, needVueOptions);
  2439. }
  2440. var hooks$1 = ['onShow', 'onHide', 'onUnload'];
  2441. hooks$1.push.apply(hooks$1, PAGE_EVENT_HOOKS);
  2442. function parseBasePage(vuePageOptions) {
  2443. var _parseComponent = parseComponent(vuePageOptions, true),
  2444. _parseComponent2 = (0, _slicedToArray2.default)(_parseComponent, 2),
  2445. pageOptions = _parseComponent2[0],
  2446. vueOptions = _parseComponent2[1];
  2447. initHooks(pageOptions.methods, hooks$1, vueOptions);
  2448. pageOptions.methods.onLoad = function (query) {
  2449. this.options = query;
  2450. var copyQuery = Object.assign({}, query);
  2451. delete copyQuery.__id__;
  2452. this.$page = {
  2453. fullPath: '/' + (this.route || this.is) + stringifyQuery(copyQuery)
  2454. };
  2455. this.$vm.$mp.query = query; // 兼容 mpvue
  2456. this.$vm.__call_hook('onLoad', query);
  2457. };
  2458. {
  2459. initUnknownHooks(pageOptions.methods, vuePageOptions, ['onReady']);
  2460. }
  2461. {
  2462. initWorkletMethods(pageOptions.methods, vueOptions.methods);
  2463. }
  2464. return pageOptions;
  2465. }
  2466. function parsePage(vuePageOptions) {
  2467. return parseBasePage(vuePageOptions);
  2468. }
  2469. function createPage(vuePageOptions) {
  2470. {
  2471. return Component(parsePage(vuePageOptions));
  2472. }
  2473. }
  2474. function createComponent(vueOptions) {
  2475. {
  2476. return Component(parseComponent(vueOptions));
  2477. }
  2478. }
  2479. function createSubpackageApp(vm) {
  2480. var appOptions = parseApp(vm);
  2481. var app = getApp({
  2482. allowDefault: true
  2483. });
  2484. vm.$scope = app;
  2485. var globalData = app.globalData;
  2486. if (globalData) {
  2487. Object.keys(appOptions.globalData).forEach(function (name) {
  2488. if (!hasOwn(globalData, name)) {
  2489. globalData[name] = appOptions.globalData[name];
  2490. }
  2491. });
  2492. }
  2493. Object.keys(appOptions).forEach(function (name) {
  2494. if (!hasOwn(app, name)) {
  2495. app[name] = appOptions[name];
  2496. }
  2497. });
  2498. if (isFn(appOptions.onShow) && wx.onAppShow) {
  2499. wx.onAppShow(function () {
  2500. for (var _len5 = arguments.length, args = new Array(_len5), _key5 = 0; _key5 < _len5; _key5++) {
  2501. args[_key5] = arguments[_key5];
  2502. }
  2503. vm.__call_hook('onShow', args);
  2504. });
  2505. }
  2506. if (isFn(appOptions.onHide) && wx.onAppHide) {
  2507. wx.onAppHide(function () {
  2508. for (var _len6 = arguments.length, args = new Array(_len6), _key6 = 0; _key6 < _len6; _key6++) {
  2509. args[_key6] = arguments[_key6];
  2510. }
  2511. vm.__call_hook('onHide', args);
  2512. });
  2513. }
  2514. if (isFn(appOptions.onLaunch)) {
  2515. var args = wx.getLaunchOptionsSync && wx.getLaunchOptionsSync();
  2516. vm.__call_hook('onLaunch', args);
  2517. }
  2518. return vm;
  2519. }
  2520. function createPlugin(vm) {
  2521. var appOptions = parseApp(vm);
  2522. if (isFn(appOptions.onShow) && wx.onAppShow) {
  2523. wx.onAppShow(function () {
  2524. for (var _len7 = arguments.length, args = new Array(_len7), _key7 = 0; _key7 < _len7; _key7++) {
  2525. args[_key7] = arguments[_key7];
  2526. }
  2527. vm.__call_hook('onShow', args);
  2528. });
  2529. }
  2530. if (isFn(appOptions.onHide) && wx.onAppHide) {
  2531. wx.onAppHide(function () {
  2532. for (var _len8 = arguments.length, args = new Array(_len8), _key8 = 0; _key8 < _len8; _key8++) {
  2533. args[_key8] = arguments[_key8];
  2534. }
  2535. vm.__call_hook('onHide', args);
  2536. });
  2537. }
  2538. if (isFn(appOptions.onLaunch)) {
  2539. var args = wx.getLaunchOptionsSync && wx.getLaunchOptionsSync();
  2540. vm.__call_hook('onLaunch', args);
  2541. }
  2542. return vm;
  2543. }
  2544. todos.forEach(function (todoApi) {
  2545. protocols[todoApi] = false;
  2546. });
  2547. canIUses.forEach(function (canIUseApi) {
  2548. var apiName = protocols[canIUseApi] && protocols[canIUseApi].name ? protocols[canIUseApi].name : canIUseApi;
  2549. if (!wx.canIUse(apiName)) {
  2550. protocols[canIUseApi] = false;
  2551. }
  2552. });
  2553. var uni = {};
  2554. if (typeof Proxy !== 'undefined' && "mp-weixin" !== 'app-plus') {
  2555. uni = new Proxy({}, {
  2556. get: function get(target, name) {
  2557. if (hasOwn(target, name)) {
  2558. return target[name];
  2559. }
  2560. if (baseApi[name]) {
  2561. return baseApi[name];
  2562. }
  2563. if (api[name]) {
  2564. return promisify(name, api[name]);
  2565. }
  2566. {
  2567. if (extraApi[name]) {
  2568. return promisify(name, extraApi[name]);
  2569. }
  2570. if (todoApis[name]) {
  2571. return promisify(name, todoApis[name]);
  2572. }
  2573. }
  2574. if (eventApi[name]) {
  2575. return eventApi[name];
  2576. }
  2577. return promisify(name, wrapper(name, wx[name]));
  2578. },
  2579. set: function set(target, name, value) {
  2580. target[name] = value;
  2581. return true;
  2582. }
  2583. });
  2584. } else {
  2585. Object.keys(baseApi).forEach(function (name) {
  2586. uni[name] = baseApi[name];
  2587. });
  2588. {
  2589. Object.keys(todoApis).forEach(function (name) {
  2590. uni[name] = promisify(name, todoApis[name]);
  2591. });
  2592. Object.keys(extraApi).forEach(function (name) {
  2593. uni[name] = promisify(name, extraApi[name]);
  2594. });
  2595. }
  2596. Object.keys(eventApi).forEach(function (name) {
  2597. uni[name] = eventApi[name];
  2598. });
  2599. Object.keys(api).forEach(function (name) {
  2600. uni[name] = promisify(name, api[name]);
  2601. });
  2602. Object.keys(wx).forEach(function (name) {
  2603. if (hasOwn(wx, name) || hasOwn(protocols, name)) {
  2604. uni[name] = promisify(name, wrapper(name, wx[name]));
  2605. }
  2606. });
  2607. }
  2608. wx.createApp = createApp;
  2609. wx.createPage = createPage;
  2610. wx.createComponent = createComponent;
  2611. wx.createSubpackageApp = createSubpackageApp;
  2612. wx.createPlugin = createPlugin;
  2613. var uni$1 = uni;
  2614. var _default = uni$1;
  2615. exports.default = _default;
  2616. /* 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)))
  2617. /***/ }),
  2618. /***/ 20:
  2619. /*!****************************************************************!*\
  2620. !*** ./node_modules/@babel/runtime/helpers/iterableToArray.js ***!
  2621. \****************************************************************/
  2622. /*! no static exports found */
  2623. /***/ (function(module, exports) {
  2624. function _iterableToArray(iter) {
  2625. if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
  2626. }
  2627. module.exports = _iterableToArray, module.exports.__esModule = true, module.exports["default"] = module.exports;
  2628. /***/ }),
  2629. /***/ 21:
  2630. /*!******************************************************************!*\
  2631. !*** ./node_modules/@babel/runtime/helpers/nonIterableSpread.js ***!
  2632. \******************************************************************/
  2633. /*! no static exports found */
  2634. /***/ (function(module, exports) {
  2635. function _nonIterableSpread() {
  2636. throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
  2637. }
  2638. module.exports = _nonIterableSpread, module.exports.__esModule = true, module.exports["default"] = module.exports;
  2639. /***/ }),
  2640. /***/ 22:
  2641. /*!*************************************************************!*\
  2642. !*** ./node_modules/@dcloudio/uni-i18n/dist/uni-i18n.es.js ***!
  2643. \*************************************************************/
  2644. /*! no static exports found */
  2645. /***/ (function(module, exports, __webpack_require__) {
  2646. "use strict";
  2647. /* WEBPACK VAR INJECTION */(function(uni, global) {
  2648. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  2649. Object.defineProperty(exports, "__esModule", {
  2650. value: true
  2651. });
  2652. exports.LOCALE_ZH_HANT = exports.LOCALE_ZH_HANS = exports.LOCALE_FR = exports.LOCALE_ES = exports.LOCALE_EN = exports.I18n = exports.Formatter = void 0;
  2653. exports.compileI18nJsonStr = compileI18nJsonStr;
  2654. exports.hasI18nJson = hasI18nJson;
  2655. exports.initVueI18n = initVueI18n;
  2656. exports.isI18nStr = isI18nStr;
  2657. exports.isString = void 0;
  2658. exports.normalizeLocale = normalizeLocale;
  2659. exports.parseI18nJson = parseI18nJson;
  2660. exports.resolveLocale = resolveLocale;
  2661. var _slicedToArray2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/slicedToArray */ 5));
  2662. var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ 23));
  2663. var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ 24));
  2664. var _typeof2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/typeof */ 13));
  2665. var isObject = function isObject(val) {
  2666. return val !== null && (0, _typeof2.default)(val) === 'object';
  2667. };
  2668. var defaultDelimiters = ['{', '}'];
  2669. var BaseFormatter = /*#__PURE__*/function () {
  2670. function BaseFormatter() {
  2671. (0, _classCallCheck2.default)(this, BaseFormatter);
  2672. this._caches = Object.create(null);
  2673. }
  2674. (0, _createClass2.default)(BaseFormatter, [{
  2675. key: "interpolate",
  2676. value: function interpolate(message, values) {
  2677. var delimiters = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : defaultDelimiters;
  2678. if (!values) {
  2679. return [message];
  2680. }
  2681. var tokens = this._caches[message];
  2682. if (!tokens) {
  2683. tokens = parse(message, delimiters);
  2684. this._caches[message] = tokens;
  2685. }
  2686. return compile(tokens, values);
  2687. }
  2688. }]);
  2689. return BaseFormatter;
  2690. }();
  2691. exports.Formatter = BaseFormatter;
  2692. var RE_TOKEN_LIST_VALUE = /^(?:\d)+/;
  2693. var RE_TOKEN_NAMED_VALUE = /^(?:\w)+/;
  2694. function parse(format, _ref) {
  2695. var _ref2 = (0, _slicedToArray2.default)(_ref, 2),
  2696. startDelimiter = _ref2[0],
  2697. endDelimiter = _ref2[1];
  2698. var tokens = [];
  2699. var position = 0;
  2700. var text = '';
  2701. while (position < format.length) {
  2702. var char = format[position++];
  2703. if (char === startDelimiter) {
  2704. if (text) {
  2705. tokens.push({
  2706. type: 'text',
  2707. value: text
  2708. });
  2709. }
  2710. text = '';
  2711. var sub = '';
  2712. char = format[position++];
  2713. while (char !== undefined && char !== endDelimiter) {
  2714. sub += char;
  2715. char = format[position++];
  2716. }
  2717. var isClosed = char === endDelimiter;
  2718. var type = RE_TOKEN_LIST_VALUE.test(sub) ? 'list' : isClosed && RE_TOKEN_NAMED_VALUE.test(sub) ? 'named' : 'unknown';
  2719. tokens.push({
  2720. value: sub,
  2721. type: type
  2722. });
  2723. }
  2724. // else if (char === '%') {
  2725. // // when found rails i18n syntax, skip text capture
  2726. // if (format[position] !== '{') {
  2727. // text += char
  2728. // }
  2729. // }
  2730. else {
  2731. text += char;
  2732. }
  2733. }
  2734. text && tokens.push({
  2735. type: 'text',
  2736. value: text
  2737. });
  2738. return tokens;
  2739. }
  2740. function compile(tokens, values) {
  2741. var compiled = [];
  2742. var index = 0;
  2743. var mode = Array.isArray(values) ? 'list' : isObject(values) ? 'named' : 'unknown';
  2744. if (mode === 'unknown') {
  2745. return compiled;
  2746. }
  2747. while (index < tokens.length) {
  2748. var token = tokens[index];
  2749. switch (token.type) {
  2750. case 'text':
  2751. compiled.push(token.value);
  2752. break;
  2753. case 'list':
  2754. compiled.push(values[parseInt(token.value, 10)]);
  2755. break;
  2756. case 'named':
  2757. if (mode === 'named') {
  2758. compiled.push(values[token.value]);
  2759. } else {
  2760. if (true) {
  2761. console.warn("Type of token '".concat(token.type, "' and format of value '").concat(mode, "' don't match!"));
  2762. }
  2763. }
  2764. break;
  2765. case 'unknown':
  2766. if (true) {
  2767. console.warn("Detect 'unknown' type of token!");
  2768. }
  2769. break;
  2770. }
  2771. index++;
  2772. }
  2773. return compiled;
  2774. }
  2775. var LOCALE_ZH_HANS = 'zh-Hans';
  2776. exports.LOCALE_ZH_HANS = LOCALE_ZH_HANS;
  2777. var LOCALE_ZH_HANT = 'zh-Hant';
  2778. exports.LOCALE_ZH_HANT = LOCALE_ZH_HANT;
  2779. var LOCALE_EN = 'en';
  2780. exports.LOCALE_EN = LOCALE_EN;
  2781. var LOCALE_FR = 'fr';
  2782. exports.LOCALE_FR = LOCALE_FR;
  2783. var LOCALE_ES = 'es';
  2784. exports.LOCALE_ES = LOCALE_ES;
  2785. var hasOwnProperty = Object.prototype.hasOwnProperty;
  2786. var hasOwn = function hasOwn(val, key) {
  2787. return hasOwnProperty.call(val, key);
  2788. };
  2789. var defaultFormatter = new BaseFormatter();
  2790. function include(str, parts) {
  2791. return !!parts.find(function (part) {
  2792. return str.indexOf(part) !== -1;
  2793. });
  2794. }
  2795. function startsWith(str, parts) {
  2796. return parts.find(function (part) {
  2797. return str.indexOf(part) === 0;
  2798. });
  2799. }
  2800. function normalizeLocale(locale, messages) {
  2801. if (!locale) {
  2802. return;
  2803. }
  2804. locale = locale.trim().replace(/_/g, '-');
  2805. if (messages && messages[locale]) {
  2806. return locale;
  2807. }
  2808. locale = locale.toLowerCase();
  2809. if (locale === 'chinese') {
  2810. // 支付宝
  2811. return LOCALE_ZH_HANS;
  2812. }
  2813. if (locale.indexOf('zh') === 0) {
  2814. if (locale.indexOf('-hans') > -1) {
  2815. return LOCALE_ZH_HANS;
  2816. }
  2817. if (locale.indexOf('-hant') > -1) {
  2818. return LOCALE_ZH_HANT;
  2819. }
  2820. if (include(locale, ['-tw', '-hk', '-mo', '-cht'])) {
  2821. return LOCALE_ZH_HANT;
  2822. }
  2823. return LOCALE_ZH_HANS;
  2824. }
  2825. var locales = [LOCALE_EN, LOCALE_FR, LOCALE_ES];
  2826. if (messages && Object.keys(messages).length > 0) {
  2827. locales = Object.keys(messages);
  2828. }
  2829. var lang = startsWith(locale, locales);
  2830. if (lang) {
  2831. return lang;
  2832. }
  2833. }
  2834. var I18n = /*#__PURE__*/function () {
  2835. function I18n(_ref3) {
  2836. var locale = _ref3.locale,
  2837. fallbackLocale = _ref3.fallbackLocale,
  2838. messages = _ref3.messages,
  2839. watcher = _ref3.watcher,
  2840. formater = _ref3.formater;
  2841. (0, _classCallCheck2.default)(this, I18n);
  2842. this.locale = LOCALE_EN;
  2843. this.fallbackLocale = LOCALE_EN;
  2844. this.message = {};
  2845. this.messages = {};
  2846. this.watchers = [];
  2847. if (fallbackLocale) {
  2848. this.fallbackLocale = fallbackLocale;
  2849. }
  2850. this.formater = formater || defaultFormatter;
  2851. this.messages = messages || {};
  2852. this.setLocale(locale || LOCALE_EN);
  2853. if (watcher) {
  2854. this.watchLocale(watcher);
  2855. }
  2856. }
  2857. (0, _createClass2.default)(I18n, [{
  2858. key: "setLocale",
  2859. value: function setLocale(locale) {
  2860. var _this = this;
  2861. var oldLocale = this.locale;
  2862. this.locale = normalizeLocale(locale, this.messages) || this.fallbackLocale;
  2863. if (!this.messages[this.locale]) {
  2864. // 可能初始化时不存在
  2865. this.messages[this.locale] = {};
  2866. }
  2867. this.message = this.messages[this.locale];
  2868. // 仅发生变化时,通知
  2869. if (oldLocale !== this.locale) {
  2870. this.watchers.forEach(function (watcher) {
  2871. watcher(_this.locale, oldLocale);
  2872. });
  2873. }
  2874. }
  2875. }, {
  2876. key: "getLocale",
  2877. value: function getLocale() {
  2878. return this.locale;
  2879. }
  2880. }, {
  2881. key: "watchLocale",
  2882. value: function watchLocale(fn) {
  2883. var _this2 = this;
  2884. var index = this.watchers.push(fn) - 1;
  2885. return function () {
  2886. _this2.watchers.splice(index, 1);
  2887. };
  2888. }
  2889. }, {
  2890. key: "add",
  2891. value: function add(locale, message) {
  2892. var override = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true;
  2893. var curMessages = this.messages[locale];
  2894. if (curMessages) {
  2895. if (override) {
  2896. Object.assign(curMessages, message);
  2897. } else {
  2898. Object.keys(message).forEach(function (key) {
  2899. if (!hasOwn(curMessages, key)) {
  2900. curMessages[key] = message[key];
  2901. }
  2902. });
  2903. }
  2904. } else {
  2905. this.messages[locale] = message;
  2906. }
  2907. }
  2908. }, {
  2909. key: "f",
  2910. value: function f(message, values, delimiters) {
  2911. return this.formater.interpolate(message, values, delimiters).join('');
  2912. }
  2913. }, {
  2914. key: "t",
  2915. value: function t(key, locale, values) {
  2916. var message = this.message;
  2917. if (typeof locale === 'string') {
  2918. locale = normalizeLocale(locale, this.messages);
  2919. locale && (message = this.messages[locale]);
  2920. } else {
  2921. values = locale;
  2922. }
  2923. if (!hasOwn(message, key)) {
  2924. console.warn("Cannot translate the value of keypath ".concat(key, ". Use the value of keypath as default."));
  2925. return key;
  2926. }
  2927. return this.formater.interpolate(message[key], values).join('');
  2928. }
  2929. }]);
  2930. return I18n;
  2931. }();
  2932. exports.I18n = I18n;
  2933. function watchAppLocale(appVm, i18n) {
  2934. // 需要保证 watch 的触发在组件渲染之前
  2935. if (appVm.$watchLocale) {
  2936. // vue2
  2937. appVm.$watchLocale(function (newLocale) {
  2938. i18n.setLocale(newLocale);
  2939. });
  2940. } else {
  2941. appVm.$watch(function () {
  2942. return appVm.$locale;
  2943. }, function (newLocale) {
  2944. i18n.setLocale(newLocale);
  2945. });
  2946. }
  2947. }
  2948. function getDefaultLocale() {
  2949. if (typeof uni !== 'undefined' && uni.getLocale) {
  2950. return uni.getLocale();
  2951. }
  2952. // 小程序平台,uni 和 uni-i18n 互相引用,导致访问不到 uni,故在 global 上挂了 getLocale
  2953. if (typeof global !== 'undefined' && global.getLocale) {
  2954. return global.getLocale();
  2955. }
  2956. return LOCALE_EN;
  2957. }
  2958. function initVueI18n(locale) {
  2959. var messages = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  2960. var fallbackLocale = arguments.length > 2 ? arguments[2] : undefined;
  2961. var watcher = arguments.length > 3 ? arguments[3] : undefined;
  2962. // 兼容旧版本入参
  2963. if (typeof locale !== 'string') {
  2964. var _ref4 = [messages, locale];
  2965. locale = _ref4[0];
  2966. messages = _ref4[1];
  2967. }
  2968. if (typeof locale !== 'string') {
  2969. // 因为小程序平台,uni-i18n 和 uni 互相引用,导致此时访问 uni 时,为 undefined
  2970. locale = getDefaultLocale();
  2971. }
  2972. if (typeof fallbackLocale !== 'string') {
  2973. fallbackLocale = typeof __uniConfig !== 'undefined' && __uniConfig.fallbackLocale || LOCALE_EN;
  2974. }
  2975. var i18n = new I18n({
  2976. locale: locale,
  2977. fallbackLocale: fallbackLocale,
  2978. messages: messages,
  2979. watcher: watcher
  2980. });
  2981. var _t = function t(key, values) {
  2982. if (typeof getApp !== 'function') {
  2983. // app view
  2984. /* eslint-disable no-func-assign */
  2985. _t = function t(key, values) {
  2986. return i18n.t(key, values);
  2987. };
  2988. } else {
  2989. var isWatchedAppLocale = false;
  2990. _t = function t(key, values) {
  2991. var appVm = getApp().$vm;
  2992. // 可能$vm还不存在,比如在支付宝小程序中,组件定义较早,在props的default里使用了t()函数(如uni-goods-nav),此时app还未初始化
  2993. // options: {
  2994. // type: Array,
  2995. // default () {
  2996. // return [{
  2997. // icon: 'shop',
  2998. // text: t("uni-goods-nav.options.shop"),
  2999. // }, {
  3000. // icon: 'cart',
  3001. // text: t("uni-goods-nav.options.cart")
  3002. // }]
  3003. // }
  3004. // },
  3005. if (appVm) {
  3006. // 触发响应式
  3007. appVm.$locale;
  3008. if (!isWatchedAppLocale) {
  3009. isWatchedAppLocale = true;
  3010. watchAppLocale(appVm, i18n);
  3011. }
  3012. }
  3013. return i18n.t(key, values);
  3014. };
  3015. }
  3016. return _t(key, values);
  3017. };
  3018. return {
  3019. i18n: i18n,
  3020. f: function f(message, values, delimiters) {
  3021. return i18n.f(message, values, delimiters);
  3022. },
  3023. t: function t(key, values) {
  3024. return _t(key, values);
  3025. },
  3026. add: function add(locale, message) {
  3027. var override = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true;
  3028. return i18n.add(locale, message, override);
  3029. },
  3030. watch: function watch(fn) {
  3031. return i18n.watchLocale(fn);
  3032. },
  3033. getLocale: function getLocale() {
  3034. return i18n.getLocale();
  3035. },
  3036. setLocale: function setLocale(newLocale) {
  3037. return i18n.setLocale(newLocale);
  3038. }
  3039. };
  3040. }
  3041. var isString = function isString(val) {
  3042. return typeof val === 'string';
  3043. };
  3044. exports.isString = isString;
  3045. var formater;
  3046. function hasI18nJson(jsonObj, delimiters) {
  3047. if (!formater) {
  3048. formater = new BaseFormatter();
  3049. }
  3050. return walkJsonObj(jsonObj, function (jsonObj, key) {
  3051. var value = jsonObj[key];
  3052. if (isString(value)) {
  3053. if (isI18nStr(value, delimiters)) {
  3054. return true;
  3055. }
  3056. } else {
  3057. return hasI18nJson(value, delimiters);
  3058. }
  3059. });
  3060. }
  3061. function parseI18nJson(jsonObj, values, delimiters) {
  3062. if (!formater) {
  3063. formater = new BaseFormatter();
  3064. }
  3065. walkJsonObj(jsonObj, function (jsonObj, key) {
  3066. var value = jsonObj[key];
  3067. if (isString(value)) {
  3068. if (isI18nStr(value, delimiters)) {
  3069. jsonObj[key] = compileStr(value, values, delimiters);
  3070. }
  3071. } else {
  3072. parseI18nJson(value, values, delimiters);
  3073. }
  3074. });
  3075. return jsonObj;
  3076. }
  3077. function compileI18nJsonStr(jsonStr, _ref5) {
  3078. var locale = _ref5.locale,
  3079. locales = _ref5.locales,
  3080. delimiters = _ref5.delimiters;
  3081. if (!isI18nStr(jsonStr, delimiters)) {
  3082. return jsonStr;
  3083. }
  3084. if (!formater) {
  3085. formater = new BaseFormatter();
  3086. }
  3087. var localeValues = [];
  3088. Object.keys(locales).forEach(function (name) {
  3089. if (name !== locale) {
  3090. localeValues.push({
  3091. locale: name,
  3092. values: locales[name]
  3093. });
  3094. }
  3095. });
  3096. localeValues.unshift({
  3097. locale: locale,
  3098. values: locales[locale]
  3099. });
  3100. try {
  3101. return JSON.stringify(compileJsonObj(JSON.parse(jsonStr), localeValues, delimiters), null, 2);
  3102. } catch (e) {}
  3103. return jsonStr;
  3104. }
  3105. function isI18nStr(value, delimiters) {
  3106. return value.indexOf(delimiters[0]) > -1;
  3107. }
  3108. function compileStr(value, values, delimiters) {
  3109. return formater.interpolate(value, values, delimiters).join('');
  3110. }
  3111. function compileValue(jsonObj, key, localeValues, delimiters) {
  3112. var value = jsonObj[key];
  3113. if (isString(value)) {
  3114. // 存在国际化
  3115. if (isI18nStr(value, delimiters)) {
  3116. jsonObj[key] = compileStr(value, localeValues[0].values, delimiters);
  3117. if (localeValues.length > 1) {
  3118. // 格式化国际化语言
  3119. var valueLocales = jsonObj[key + 'Locales'] = {};
  3120. localeValues.forEach(function (localValue) {
  3121. valueLocales[localValue.locale] = compileStr(value, localValue.values, delimiters);
  3122. });
  3123. }
  3124. }
  3125. } else {
  3126. compileJsonObj(value, localeValues, delimiters);
  3127. }
  3128. }
  3129. function compileJsonObj(jsonObj, localeValues, delimiters) {
  3130. walkJsonObj(jsonObj, function (jsonObj, key) {
  3131. compileValue(jsonObj, key, localeValues, delimiters);
  3132. });
  3133. return jsonObj;
  3134. }
  3135. function walkJsonObj(jsonObj, walk) {
  3136. if (Array.isArray(jsonObj)) {
  3137. for (var i = 0; i < jsonObj.length; i++) {
  3138. if (walk(jsonObj, i)) {
  3139. return true;
  3140. }
  3141. }
  3142. } else if (isObject(jsonObj)) {
  3143. for (var key in jsonObj) {
  3144. if (walk(jsonObj, key)) {
  3145. return true;
  3146. }
  3147. }
  3148. }
  3149. return false;
  3150. }
  3151. function resolveLocale(locales) {
  3152. return function (locale) {
  3153. if (!locale) {
  3154. return locale;
  3155. }
  3156. locale = normalizeLocale(locale) || locale;
  3157. return resolveLocaleChain(locale).find(function (locale) {
  3158. return locales.indexOf(locale) > -1;
  3159. });
  3160. };
  3161. }
  3162. function resolveLocaleChain(locale) {
  3163. var chain = [];
  3164. var tokens = locale.split('-');
  3165. while (tokens.length) {
  3166. chain.push(tokens.join('-'));
  3167. tokens.pop();
  3168. }
  3169. return chain;
  3170. }
  3171. /* 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)))
  3172. /***/ }),
  3173. /***/ 23:
  3174. /*!***************************************************************!*\
  3175. !*** ./node_modules/@babel/runtime/helpers/classCallCheck.js ***!
  3176. \***************************************************************/
  3177. /*! no static exports found */
  3178. /***/ (function(module, exports) {
  3179. function _classCallCheck(instance, Constructor) {
  3180. if (!(instance instanceof Constructor)) {
  3181. throw new TypeError("Cannot call a class as a function");
  3182. }
  3183. }
  3184. module.exports = _classCallCheck, module.exports.__esModule = true, module.exports["default"] = module.exports;
  3185. /***/ }),
  3186. /***/ 24:
  3187. /*!************************************************************!*\
  3188. !*** ./node_modules/@babel/runtime/helpers/createClass.js ***!
  3189. \************************************************************/
  3190. /*! no static exports found */
  3191. /***/ (function(module, exports, __webpack_require__) {
  3192. var toPropertyKey = __webpack_require__(/*! ./toPropertyKey.js */ 12);
  3193. function _defineProperties(target, props) {
  3194. for (var i = 0; i < props.length; i++) {
  3195. var descriptor = props[i];
  3196. descriptor.enumerable = descriptor.enumerable || false;
  3197. descriptor.configurable = true;
  3198. if ("value" in descriptor) descriptor.writable = true;
  3199. Object.defineProperty(target, toPropertyKey(descriptor.key), descriptor);
  3200. }
  3201. }
  3202. function _createClass(Constructor, protoProps, staticProps) {
  3203. if (protoProps) _defineProperties(Constructor.prototype, protoProps);
  3204. if (staticProps) _defineProperties(Constructor, staticProps);
  3205. Object.defineProperty(Constructor, "prototype", {
  3206. writable: false
  3207. });
  3208. return Constructor;
  3209. }
  3210. module.exports = _createClass, module.exports.__esModule = true, module.exports["default"] = module.exports;
  3211. /***/ }),
  3212. /***/ 25:
  3213. /*!******************************************************************************************!*\
  3214. !*** ./node_modules/@dcloudio/vue-cli-plugin-uni/packages/mp-vue/dist/mp.runtime.esm.js ***!
  3215. \******************************************************************************************/
  3216. /*! exports provided: default */
  3217. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  3218. "use strict";
  3219. __webpack_require__.r(__webpack_exports__);
  3220. /* WEBPACK VAR INJECTION */(function(global) {/*!
  3221. * Vue.js v2.6.11
  3222. * (c) 2014-2023 Evan You
  3223. * Released under the MIT License.
  3224. */
  3225. /* */
  3226. var emptyObject = Object.freeze({});
  3227. // These helpers produce better VM code in JS engines due to their
  3228. // explicitness and function inlining.
  3229. function isUndef (v) {
  3230. return v === undefined || v === null
  3231. }
  3232. function isDef (v) {
  3233. return v !== undefined && v !== null
  3234. }
  3235. function isTrue (v) {
  3236. return v === true
  3237. }
  3238. function isFalse (v) {
  3239. return v === false
  3240. }
  3241. /**
  3242. * Check if value is primitive.
  3243. */
  3244. function isPrimitive (value) {
  3245. return (
  3246. typeof value === 'string' ||
  3247. typeof value === 'number' ||
  3248. // $flow-disable-line
  3249. typeof value === 'symbol' ||
  3250. typeof value === 'boolean'
  3251. )
  3252. }
  3253. /**
  3254. * Quick object check - this is primarily used to tell
  3255. * Objects from primitive values when we know the value
  3256. * is a JSON-compliant type.
  3257. */
  3258. function isObject (obj) {
  3259. return obj !== null && typeof obj === 'object'
  3260. }
  3261. /**
  3262. * Get the raw type string of a value, e.g., [object Object].
  3263. */
  3264. var _toString = Object.prototype.toString;
  3265. function toRawType (value) {
  3266. return _toString.call(value).slice(8, -1)
  3267. }
  3268. /**
  3269. * Strict object type check. Only returns true
  3270. * for plain JavaScript objects.
  3271. */
  3272. function isPlainObject (obj) {
  3273. return _toString.call(obj) === '[object Object]'
  3274. }
  3275. function isRegExp (v) {
  3276. return _toString.call(v) === '[object RegExp]'
  3277. }
  3278. /**
  3279. * Check if val is a valid array index.
  3280. */
  3281. function isValidArrayIndex (val) {
  3282. var n = parseFloat(String(val));
  3283. return n >= 0 && Math.floor(n) === n && isFinite(val)
  3284. }
  3285. function isPromise (val) {
  3286. return (
  3287. isDef(val) &&
  3288. typeof val.then === 'function' &&
  3289. typeof val.catch === 'function'
  3290. )
  3291. }
  3292. /**
  3293. * Convert a value to a string that is actually rendered.
  3294. */
  3295. function toString (val) {
  3296. return val == null
  3297. ? ''
  3298. : Array.isArray(val) || (isPlainObject(val) && val.toString === _toString)
  3299. ? JSON.stringify(val, null, 2)
  3300. : String(val)
  3301. }
  3302. /**
  3303. * Convert an input value to a number for persistence.
  3304. * If the conversion fails, return original string.
  3305. */
  3306. function toNumber (val) {
  3307. var n = parseFloat(val);
  3308. return isNaN(n) ? val : n
  3309. }
  3310. /**
  3311. * Make a map and return a function for checking if a key
  3312. * is in that map.
  3313. */
  3314. function makeMap (
  3315. str,
  3316. expectsLowerCase
  3317. ) {
  3318. var map = Object.create(null);
  3319. var list = str.split(',');
  3320. for (var i = 0; i < list.length; i++) {
  3321. map[list[i]] = true;
  3322. }
  3323. return expectsLowerCase
  3324. ? function (val) { return map[val.toLowerCase()]; }
  3325. : function (val) { return map[val]; }
  3326. }
  3327. /**
  3328. * Check if a tag is a built-in tag.
  3329. */
  3330. var isBuiltInTag = makeMap('slot,component', true);
  3331. /**
  3332. * Check if an attribute is a reserved attribute.
  3333. */
  3334. var isReservedAttribute = makeMap('key,ref,slot,slot-scope,is');
  3335. /**
  3336. * Remove an item from an array.
  3337. */
  3338. function remove (arr, item) {
  3339. if (arr.length) {
  3340. var index = arr.indexOf(item);
  3341. if (index > -1) {
  3342. return arr.splice(index, 1)
  3343. }
  3344. }
  3345. }
  3346. /**
  3347. * Check whether an object has the property.
  3348. */
  3349. var hasOwnProperty = Object.prototype.hasOwnProperty;
  3350. function hasOwn (obj, key) {
  3351. return hasOwnProperty.call(obj, key)
  3352. }
  3353. /**
  3354. * Create a cached version of a pure function.
  3355. */
  3356. function cached (fn) {
  3357. var cache = Object.create(null);
  3358. return (function cachedFn (str) {
  3359. var hit = cache[str];
  3360. return hit || (cache[str] = fn(str))
  3361. })
  3362. }
  3363. /**
  3364. * Camelize a hyphen-delimited string.
  3365. */
  3366. var camelizeRE = /-(\w)/g;
  3367. var camelize = cached(function (str) {
  3368. return str.replace(camelizeRE, function (_, c) { return c ? c.toUpperCase() : ''; })
  3369. });
  3370. /**
  3371. * Capitalize a string.
  3372. */
  3373. var capitalize = cached(function (str) {
  3374. return str.charAt(0).toUpperCase() + str.slice(1)
  3375. });
  3376. /**
  3377. * Hyphenate a camelCase string.
  3378. */
  3379. var hyphenateRE = /\B([A-Z])/g;
  3380. var hyphenate = cached(function (str) {
  3381. return str.replace(hyphenateRE, '-$1').toLowerCase()
  3382. });
  3383. /**
  3384. * Simple bind polyfill for environments that do not support it,
  3385. * e.g., PhantomJS 1.x. Technically, we don't need this anymore
  3386. * since native bind is now performant enough in most browsers.
  3387. * But removing it would mean breaking code that was able to run in
  3388. * PhantomJS 1.x, so this must be kept for backward compatibility.
  3389. */
  3390. /* istanbul ignore next */
  3391. function polyfillBind (fn, ctx) {
  3392. function boundFn (a) {
  3393. var l = arguments.length;
  3394. return l
  3395. ? l > 1
  3396. ? fn.apply(ctx, arguments)
  3397. : fn.call(ctx, a)
  3398. : fn.call(ctx)
  3399. }
  3400. boundFn._length = fn.length;
  3401. return boundFn
  3402. }
  3403. function nativeBind (fn, ctx) {
  3404. return fn.bind(ctx)
  3405. }
  3406. var bind = Function.prototype.bind
  3407. ? nativeBind
  3408. : polyfillBind;
  3409. /**
  3410. * Convert an Array-like object to a real Array.
  3411. */
  3412. function toArray (list, start) {
  3413. start = start || 0;
  3414. var i = list.length - start;
  3415. var ret = new Array(i);
  3416. while (i--) {
  3417. ret[i] = list[i + start];
  3418. }
  3419. return ret
  3420. }
  3421. /**
  3422. * Mix properties into target object.
  3423. */
  3424. function extend (to, _from) {
  3425. for (var key in _from) {
  3426. to[key] = _from[key];
  3427. }
  3428. return to
  3429. }
  3430. /**
  3431. * Merge an Array of Objects into a single Object.
  3432. */
  3433. function toObject (arr) {
  3434. var res = {};
  3435. for (var i = 0; i < arr.length; i++) {
  3436. if (arr[i]) {
  3437. extend(res, arr[i]);
  3438. }
  3439. }
  3440. return res
  3441. }
  3442. /* eslint-disable no-unused-vars */
  3443. /**
  3444. * Perform no operation.
  3445. * Stubbing args to make Flow happy without leaving useless transpiled code
  3446. * with ...rest (https://flow.org/blog/2017/05/07/Strict-Function-Call-Arity/).
  3447. */
  3448. function noop (a, b, c) {}
  3449. /**
  3450. * Always return false.
  3451. */
  3452. var no = function (a, b, c) { return false; };
  3453. /* eslint-enable no-unused-vars */
  3454. /**
  3455. * Return the same value.
  3456. */
  3457. var identity = function (_) { return _; };
  3458. /**
  3459. * Check if two values are loosely equal - that is,
  3460. * if they are plain objects, do they have the same shape?
  3461. */
  3462. function looseEqual (a, b) {
  3463. if (a === b) { return true }
  3464. var isObjectA = isObject(a);
  3465. var isObjectB = isObject(b);
  3466. if (isObjectA && isObjectB) {
  3467. try {
  3468. var isArrayA = Array.isArray(a);
  3469. var isArrayB = Array.isArray(b);
  3470. if (isArrayA && isArrayB) {
  3471. return a.length === b.length && a.every(function (e, i) {
  3472. return looseEqual(e, b[i])
  3473. })
  3474. } else if (a instanceof Date && b instanceof Date) {
  3475. return a.getTime() === b.getTime()
  3476. } else if (!isArrayA && !isArrayB) {
  3477. var keysA = Object.keys(a);
  3478. var keysB = Object.keys(b);
  3479. return keysA.length === keysB.length && keysA.every(function (key) {
  3480. return looseEqual(a[key], b[key])
  3481. })
  3482. } else {
  3483. /* istanbul ignore next */
  3484. return false
  3485. }
  3486. } catch (e) {
  3487. /* istanbul ignore next */
  3488. return false
  3489. }
  3490. } else if (!isObjectA && !isObjectB) {
  3491. return String(a) === String(b)
  3492. } else {
  3493. return false
  3494. }
  3495. }
  3496. /**
  3497. * Return the first index at which a loosely equal value can be
  3498. * found in the array (if value is a plain object, the array must
  3499. * contain an object of the same shape), or -1 if it is not present.
  3500. */
  3501. function looseIndexOf (arr, val) {
  3502. for (var i = 0; i < arr.length; i++) {
  3503. if (looseEqual(arr[i], val)) { return i }
  3504. }
  3505. return -1
  3506. }
  3507. /**
  3508. * Ensure a function is called only once.
  3509. */
  3510. function once (fn) {
  3511. var called = false;
  3512. return function () {
  3513. if (!called) {
  3514. called = true;
  3515. fn.apply(this, arguments);
  3516. }
  3517. }
  3518. }
  3519. var ASSET_TYPES = [
  3520. 'component',
  3521. 'directive',
  3522. 'filter'
  3523. ];
  3524. var LIFECYCLE_HOOKS = [
  3525. 'beforeCreate',
  3526. 'created',
  3527. 'beforeMount',
  3528. 'mounted',
  3529. 'beforeUpdate',
  3530. 'updated',
  3531. 'beforeDestroy',
  3532. 'destroyed',
  3533. 'activated',
  3534. 'deactivated',
  3535. 'errorCaptured',
  3536. 'serverPrefetch'
  3537. ];
  3538. /* */
  3539. var config = ({
  3540. /**
  3541. * Option merge strategies (used in core/util/options)
  3542. */
  3543. // $flow-disable-line
  3544. optionMergeStrategies: Object.create(null),
  3545. /**
  3546. * Whether to suppress warnings.
  3547. */
  3548. silent: false,
  3549. /**
  3550. * Show production mode tip message on boot?
  3551. */
  3552. productionTip: "development" !== 'production',
  3553. /**
  3554. * Whether to enable devtools
  3555. */
  3556. devtools: "development" !== 'production',
  3557. /**
  3558. * Whether to record perf
  3559. */
  3560. performance: false,
  3561. /**
  3562. * Error handler for watcher errors
  3563. */
  3564. errorHandler: null,
  3565. /**
  3566. * Warn handler for watcher warns
  3567. */
  3568. warnHandler: null,
  3569. /**
  3570. * Ignore certain custom elements
  3571. */
  3572. ignoredElements: [],
  3573. /**
  3574. * Custom user key aliases for v-on
  3575. */
  3576. // $flow-disable-line
  3577. keyCodes: Object.create(null),
  3578. /**
  3579. * Check if a tag is reserved so that it cannot be registered as a
  3580. * component. This is platform-dependent and may be overwritten.
  3581. */
  3582. isReservedTag: no,
  3583. /**
  3584. * Check if an attribute is reserved so that it cannot be used as a component
  3585. * prop. This is platform-dependent and may be overwritten.
  3586. */
  3587. isReservedAttr: no,
  3588. /**
  3589. * Check if a tag is an unknown element.
  3590. * Platform-dependent.
  3591. */
  3592. isUnknownElement: no,
  3593. /**
  3594. * Get the namespace of an element
  3595. */
  3596. getTagNamespace: noop,
  3597. /**
  3598. * Parse the real tag name for the specific platform.
  3599. */
  3600. parsePlatformTagName: identity,
  3601. /**
  3602. * Check if an attribute must be bound using property, e.g. value
  3603. * Platform-dependent.
  3604. */
  3605. mustUseProp: no,
  3606. /**
  3607. * Perform updates asynchronously. Intended to be used by Vue Test Utils
  3608. * This will significantly reduce performance if set to false.
  3609. */
  3610. async: true,
  3611. /**
  3612. * Exposed for legacy reasons
  3613. */
  3614. _lifecycleHooks: LIFECYCLE_HOOKS
  3615. });
  3616. /* */
  3617. /**
  3618. * unicode letters used for parsing html tags, component names and property paths.
  3619. * using https://www.w3.org/TR/html53/semantics-scripting.html#potentialcustomelementname
  3620. * skipping \u10000-\uEFFFF due to it freezing up PhantomJS
  3621. */
  3622. 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/;
  3623. /**
  3624. * Check if a string starts with $ or _
  3625. */
  3626. function isReserved (str) {
  3627. var c = (str + '').charCodeAt(0);
  3628. return c === 0x24 || c === 0x5F
  3629. }
  3630. /**
  3631. * Define a property.
  3632. */
  3633. function def (obj, key, val, enumerable) {
  3634. Object.defineProperty(obj, key, {
  3635. value: val,
  3636. enumerable: !!enumerable,
  3637. writable: true,
  3638. configurable: true
  3639. });
  3640. }
  3641. /**
  3642. * Parse simple path.
  3643. */
  3644. var bailRE = new RegExp(("[^" + (unicodeRegExp.source) + ".$_\\d]"));
  3645. function parsePath (path) {
  3646. if (bailRE.test(path)) {
  3647. return
  3648. }
  3649. var segments = path.split('.');
  3650. return function (obj) {
  3651. for (var i = 0; i < segments.length; i++) {
  3652. if (!obj) { return }
  3653. obj = obj[segments[i]];
  3654. }
  3655. return obj
  3656. }
  3657. }
  3658. /* */
  3659. // can we use __proto__?
  3660. var hasProto = '__proto__' in {};
  3661. // Browser environment sniffing
  3662. var inBrowser = typeof window !== 'undefined';
  3663. var inWeex = typeof WXEnvironment !== 'undefined' && !!WXEnvironment.platform;
  3664. var weexPlatform = inWeex && WXEnvironment.platform.toLowerCase();
  3665. var UA = inBrowser && window.navigator.userAgent.toLowerCase();
  3666. var isIE = UA && /msie|trident/.test(UA);
  3667. var isIE9 = UA && UA.indexOf('msie 9.0') > 0;
  3668. var isEdge = UA && UA.indexOf('edge/') > 0;
  3669. var isAndroid = (UA && UA.indexOf('android') > 0) || (weexPlatform === 'android');
  3670. var isIOS = (UA && /iphone|ipad|ipod|ios/.test(UA)) || (weexPlatform === 'ios');
  3671. var isChrome = UA && /chrome\/\d+/.test(UA) && !isEdge;
  3672. var isPhantomJS = UA && /phantomjs/.test(UA);
  3673. var isFF = UA && UA.match(/firefox\/(\d+)/);
  3674. // Firefox has a "watch" function on Object.prototype...
  3675. var nativeWatch = ({}).watch;
  3676. if (inBrowser) {
  3677. try {
  3678. var opts = {};
  3679. Object.defineProperty(opts, 'passive', ({
  3680. get: function get () {
  3681. }
  3682. })); // https://github.com/facebook/flow/issues/285
  3683. window.addEventListener('test-passive', null, opts);
  3684. } catch (e) {}
  3685. }
  3686. // this needs to be lazy-evaled because vue may be required before
  3687. // vue-server-renderer can set VUE_ENV
  3688. var _isServer;
  3689. var isServerRendering = function () {
  3690. if (_isServer === undefined) {
  3691. /* istanbul ignore if */
  3692. if (!inBrowser && !inWeex && typeof global !== 'undefined') {
  3693. // detect presence of vue-server-renderer and avoid
  3694. // Webpack shimming the process
  3695. _isServer = global['process'] && global['process'].env.VUE_ENV === 'server';
  3696. } else {
  3697. _isServer = false;
  3698. }
  3699. }
  3700. return _isServer
  3701. };
  3702. // detect devtools
  3703. var devtools = inBrowser && window.__VUE_DEVTOOLS_GLOBAL_HOOK__;
  3704. /* istanbul ignore next */
  3705. function isNative (Ctor) {
  3706. return typeof Ctor === 'function' && /native code/.test(Ctor.toString())
  3707. }
  3708. var hasSymbol =
  3709. typeof Symbol !== 'undefined' && isNative(Symbol) &&
  3710. typeof Reflect !== 'undefined' && isNative(Reflect.ownKeys);
  3711. var _Set;
  3712. /* istanbul ignore if */ // $flow-disable-line
  3713. if (typeof Set !== 'undefined' && isNative(Set)) {
  3714. // use native Set when available.
  3715. _Set = Set;
  3716. } else {
  3717. // a non-standard Set polyfill that only works with primitive keys.
  3718. _Set = /*@__PURE__*/(function () {
  3719. function Set () {
  3720. this.set = Object.create(null);
  3721. }
  3722. Set.prototype.has = function has (key) {
  3723. return this.set[key] === true
  3724. };
  3725. Set.prototype.add = function add (key) {
  3726. this.set[key] = true;
  3727. };
  3728. Set.prototype.clear = function clear () {
  3729. this.set = Object.create(null);
  3730. };
  3731. return Set;
  3732. }());
  3733. }
  3734. /* */
  3735. var warn = noop;
  3736. var tip = noop;
  3737. var generateComponentTrace = (noop); // work around flow check
  3738. var formatComponentName = (noop);
  3739. if (true) {
  3740. var hasConsole = typeof console !== 'undefined';
  3741. var classifyRE = /(?:^|[-_])(\w)/g;
  3742. var classify = function (str) { return str
  3743. .replace(classifyRE, function (c) { return c.toUpperCase(); })
  3744. .replace(/[-_]/g, ''); };
  3745. warn = function (msg, vm) {
  3746. var trace = vm ? generateComponentTrace(vm) : '';
  3747. if (config.warnHandler) {
  3748. config.warnHandler.call(null, msg, vm, trace);
  3749. } else if (hasConsole && (!config.silent)) {
  3750. console.error(("[Vue warn]: " + msg + trace));
  3751. }
  3752. };
  3753. tip = function (msg, vm) {
  3754. if (hasConsole && (!config.silent)) {
  3755. console.warn("[Vue tip]: " + msg + (
  3756. vm ? generateComponentTrace(vm) : ''
  3757. ));
  3758. }
  3759. };
  3760. formatComponentName = function (vm, includeFile) {
  3761. if (vm.$root === vm) {
  3762. if (vm.$options && vm.$options.__file) { // fixed by xxxxxx
  3763. return ('') + vm.$options.__file
  3764. }
  3765. return '<Root>'
  3766. }
  3767. var options = typeof vm === 'function' && vm.cid != null
  3768. ? vm.options
  3769. : vm._isVue
  3770. ? vm.$options || vm.constructor.options
  3771. : vm;
  3772. var name = options.name || options._componentTag;
  3773. var file = options.__file;
  3774. if (!name && file) {
  3775. var match = file.match(/([^/\\]+)\.vue$/);
  3776. name = match && match[1];
  3777. }
  3778. return (
  3779. (name ? ("<" + (classify(name)) + ">") : "<Anonymous>") +
  3780. (file && includeFile !== false ? (" at " + file) : '')
  3781. )
  3782. };
  3783. var repeat = function (str, n) {
  3784. var res = '';
  3785. while (n) {
  3786. if (n % 2 === 1) { res += str; }
  3787. if (n > 1) { str += str; }
  3788. n >>= 1;
  3789. }
  3790. return res
  3791. };
  3792. generateComponentTrace = function (vm) {
  3793. if (vm._isVue && vm.$parent) {
  3794. var tree = [];
  3795. var currentRecursiveSequence = 0;
  3796. while (vm && vm.$options.name !== 'PageBody') {
  3797. if (tree.length > 0) {
  3798. var last = tree[tree.length - 1];
  3799. if (last.constructor === vm.constructor) {
  3800. currentRecursiveSequence++;
  3801. vm = vm.$parent;
  3802. continue
  3803. } else if (currentRecursiveSequence > 0) {
  3804. tree[tree.length - 1] = [last, currentRecursiveSequence];
  3805. currentRecursiveSequence = 0;
  3806. }
  3807. }
  3808. !vm.$options.isReserved && tree.push(vm);
  3809. vm = vm.$parent;
  3810. }
  3811. return '\n\nfound in\n\n' + tree
  3812. .map(function (vm, i) { return ("" + (i === 0 ? '---> ' : repeat(' ', 5 + i * 2)) + (Array.isArray(vm)
  3813. ? ((formatComponentName(vm[0])) + "... (" + (vm[1]) + " recursive calls)")
  3814. : formatComponentName(vm))); })
  3815. .join('\n')
  3816. } else {
  3817. return ("\n\n(found in " + (formatComponentName(vm)) + ")")
  3818. }
  3819. };
  3820. }
  3821. /* */
  3822. var uid = 0;
  3823. /**
  3824. * A dep is an observable that can have multiple
  3825. * directives subscribing to it.
  3826. */
  3827. var Dep = function Dep () {
  3828. this.id = uid++;
  3829. this.subs = [];
  3830. };
  3831. Dep.prototype.addSub = function addSub (sub) {
  3832. this.subs.push(sub);
  3833. };
  3834. Dep.prototype.removeSub = function removeSub (sub) {
  3835. remove(this.subs, sub);
  3836. };
  3837. Dep.prototype.depend = function depend () {
  3838. if (Dep.SharedObject.target) {
  3839. Dep.SharedObject.target.addDep(this);
  3840. }
  3841. };
  3842. Dep.prototype.notify = function notify () {
  3843. // stabilize the subscriber list first
  3844. var subs = this.subs.slice();
  3845. if ( true && !config.async) {
  3846. // subs aren't sorted in scheduler if not running async
  3847. // we need to sort them now to make sure they fire in correct
  3848. // order
  3849. subs.sort(function (a, b) { return a.id - b.id; });
  3850. }
  3851. for (var i = 0, l = subs.length; i < l; i++) {
  3852. subs[i].update();
  3853. }
  3854. };
  3855. // The current target watcher being evaluated.
  3856. // This is globally unique because only one watcher
  3857. // can be evaluated at a time.
  3858. // fixed by xxxxxx (nvue shared vuex)
  3859. /* eslint-disable no-undef */
  3860. Dep.SharedObject = {};
  3861. Dep.SharedObject.target = null;
  3862. Dep.SharedObject.targetStack = [];
  3863. function pushTarget (target) {
  3864. Dep.SharedObject.targetStack.push(target);
  3865. Dep.SharedObject.target = target;
  3866. Dep.target = target;
  3867. }
  3868. function popTarget () {
  3869. Dep.SharedObject.targetStack.pop();
  3870. Dep.SharedObject.target = Dep.SharedObject.targetStack[Dep.SharedObject.targetStack.length - 1];
  3871. Dep.target = Dep.SharedObject.target;
  3872. }
  3873. /* */
  3874. var VNode = function VNode (
  3875. tag,
  3876. data,
  3877. children,
  3878. text,
  3879. elm,
  3880. context,
  3881. componentOptions,
  3882. asyncFactory
  3883. ) {
  3884. this.tag = tag;
  3885. this.data = data;
  3886. this.children = children;
  3887. this.text = text;
  3888. this.elm = elm;
  3889. this.ns = undefined;
  3890. this.context = context;
  3891. this.fnContext = undefined;
  3892. this.fnOptions = undefined;
  3893. this.fnScopeId = undefined;
  3894. this.key = data && data.key;
  3895. this.componentOptions = componentOptions;
  3896. this.componentInstance = undefined;
  3897. this.parent = undefined;
  3898. this.raw = false;
  3899. this.isStatic = false;
  3900. this.isRootInsert = true;
  3901. this.isComment = false;
  3902. this.isCloned = false;
  3903. this.isOnce = false;
  3904. this.asyncFactory = asyncFactory;
  3905. this.asyncMeta = undefined;
  3906. this.isAsyncPlaceholder = false;
  3907. };
  3908. var prototypeAccessors = { child: { configurable: true } };
  3909. // DEPRECATED: alias for componentInstance for backwards compat.
  3910. /* istanbul ignore next */
  3911. prototypeAccessors.child.get = function () {
  3912. return this.componentInstance
  3913. };
  3914. Object.defineProperties( VNode.prototype, prototypeAccessors );
  3915. var createEmptyVNode = function (text) {
  3916. if ( text === void 0 ) text = '';
  3917. var node = new VNode();
  3918. node.text = text;
  3919. node.isComment = true;
  3920. return node
  3921. };
  3922. function createTextVNode (val) {
  3923. return new VNode(undefined, undefined, undefined, String(val))
  3924. }
  3925. // optimized shallow clone
  3926. // used for static nodes and slot nodes because they may be reused across
  3927. // multiple renders, cloning them avoids errors when DOM manipulations rely
  3928. // on their elm reference.
  3929. function cloneVNode (vnode) {
  3930. var cloned = new VNode(
  3931. vnode.tag,
  3932. vnode.data,
  3933. // #7975
  3934. // clone children array to avoid mutating original in case of cloning
  3935. // a child.
  3936. vnode.children && vnode.children.slice(),
  3937. vnode.text,
  3938. vnode.elm,
  3939. vnode.context,
  3940. vnode.componentOptions,
  3941. vnode.asyncFactory
  3942. );
  3943. cloned.ns = vnode.ns;
  3944. cloned.isStatic = vnode.isStatic;
  3945. cloned.key = vnode.key;
  3946. cloned.isComment = vnode.isComment;
  3947. cloned.fnContext = vnode.fnContext;
  3948. cloned.fnOptions = vnode.fnOptions;
  3949. cloned.fnScopeId = vnode.fnScopeId;
  3950. cloned.asyncMeta = vnode.asyncMeta;
  3951. cloned.isCloned = true;
  3952. return cloned
  3953. }
  3954. /*
  3955. * not type checking this file because flow doesn't play well with
  3956. * dynamically accessing methods on Array prototype
  3957. */
  3958. var arrayProto = Array.prototype;
  3959. var arrayMethods = Object.create(arrayProto);
  3960. var methodsToPatch = [
  3961. 'push',
  3962. 'pop',
  3963. 'shift',
  3964. 'unshift',
  3965. 'splice',
  3966. 'sort',
  3967. 'reverse'
  3968. ];
  3969. /**
  3970. * Intercept mutating methods and emit events
  3971. */
  3972. methodsToPatch.forEach(function (method) {
  3973. // cache original method
  3974. var original = arrayProto[method];
  3975. def(arrayMethods, method, function mutator () {
  3976. var args = [], len = arguments.length;
  3977. while ( len-- ) args[ len ] = arguments[ len ];
  3978. var result = original.apply(this, args);
  3979. var ob = this.__ob__;
  3980. var inserted;
  3981. switch (method) {
  3982. case 'push':
  3983. case 'unshift':
  3984. inserted = args;
  3985. break
  3986. case 'splice':
  3987. inserted = args.slice(2);
  3988. break
  3989. }
  3990. if (inserted) { ob.observeArray(inserted); }
  3991. // notify change
  3992. ob.dep.notify();
  3993. return result
  3994. });
  3995. });
  3996. /* */
  3997. var arrayKeys = Object.getOwnPropertyNames(arrayMethods);
  3998. /**
  3999. * In some cases we may want to disable observation inside a component's
  4000. * update computation.
  4001. */
  4002. var shouldObserve = true;
  4003. function toggleObserving (value) {
  4004. shouldObserve = value;
  4005. }
  4006. /**
  4007. * Observer class that is attached to each observed
  4008. * object. Once attached, the observer converts the target
  4009. * object's property keys into getter/setters that
  4010. * collect dependencies and dispatch updates.
  4011. */
  4012. var Observer = function Observer (value) {
  4013. this.value = value;
  4014. this.dep = new Dep();
  4015. this.vmCount = 0;
  4016. def(value, '__ob__', this);
  4017. if (Array.isArray(value)) {
  4018. if (hasProto) {
  4019. {// fixed by xxxxxx 微信小程序使用 plugins 之后,数组方法被直接挂载到了数组对象上,需要执行 copyAugment 逻辑
  4020. if(value.push !== value.__proto__.push){
  4021. copyAugment(value, arrayMethods, arrayKeys);
  4022. } else {
  4023. protoAugment(value, arrayMethods);
  4024. }
  4025. }
  4026. } else {
  4027. copyAugment(value, arrayMethods, arrayKeys);
  4028. }
  4029. this.observeArray(value);
  4030. } else {
  4031. this.walk(value);
  4032. }
  4033. };
  4034. /**
  4035. * Walk through all properties and convert them into
  4036. * getter/setters. This method should only be called when
  4037. * value type is Object.
  4038. */
  4039. Observer.prototype.walk = function walk (obj) {
  4040. var keys = Object.keys(obj);
  4041. for (var i = 0; i < keys.length; i++) {
  4042. defineReactive$$1(obj, keys[i]);
  4043. }
  4044. };
  4045. /**
  4046. * Observe a list of Array items.
  4047. */
  4048. Observer.prototype.observeArray = function observeArray (items) {
  4049. for (var i = 0, l = items.length; i < l; i++) {
  4050. observe(items[i]);
  4051. }
  4052. };
  4053. // helpers
  4054. /**
  4055. * Augment a target Object or Array by intercepting
  4056. * the prototype chain using __proto__
  4057. */
  4058. function protoAugment (target, src) {
  4059. /* eslint-disable no-proto */
  4060. target.__proto__ = src;
  4061. /* eslint-enable no-proto */
  4062. }
  4063. /**
  4064. * Augment a target Object or Array by defining
  4065. * hidden properties.
  4066. */
  4067. /* istanbul ignore next */
  4068. function copyAugment (target, src, keys) {
  4069. for (var i = 0, l = keys.length; i < l; i++) {
  4070. var key = keys[i];
  4071. def(target, key, src[key]);
  4072. }
  4073. }
  4074. /**
  4075. * Attempt to create an observer instance for a value,
  4076. * returns the new observer if successfully observed,
  4077. * or the existing observer if the value already has one.
  4078. */
  4079. function observe (value, asRootData) {
  4080. if (!isObject(value) || value instanceof VNode) {
  4081. return
  4082. }
  4083. var ob;
  4084. if (hasOwn(value, '__ob__') && value.__ob__ instanceof Observer) {
  4085. ob = value.__ob__;
  4086. } else if (
  4087. shouldObserve &&
  4088. !isServerRendering() &&
  4089. (Array.isArray(value) || isPlainObject(value)) &&
  4090. Object.isExtensible(value) &&
  4091. !value._isVue &&
  4092. !value.__v_isMPComponent
  4093. ) {
  4094. ob = new Observer(value);
  4095. }
  4096. if (asRootData && ob) {
  4097. ob.vmCount++;
  4098. }
  4099. return ob
  4100. }
  4101. /**
  4102. * Define a reactive property on an Object.
  4103. */
  4104. function defineReactive$$1 (
  4105. obj,
  4106. key,
  4107. val,
  4108. customSetter,
  4109. shallow
  4110. ) {
  4111. var dep = new Dep();
  4112. var property = Object.getOwnPropertyDescriptor(obj, key);
  4113. if (property && property.configurable === false) {
  4114. return
  4115. }
  4116. // cater for pre-defined getter/setters
  4117. var getter = property && property.get;
  4118. var setter = property && property.set;
  4119. if ((!getter || setter) && arguments.length === 2) {
  4120. val = obj[key];
  4121. }
  4122. var childOb = !shallow && observe(val);
  4123. Object.defineProperty(obj, key, {
  4124. enumerable: true,
  4125. configurable: true,
  4126. get: function reactiveGetter () {
  4127. var value = getter ? getter.call(obj) : val;
  4128. if (Dep.SharedObject.target) { // fixed by xxxxxx
  4129. dep.depend();
  4130. if (childOb) {
  4131. childOb.dep.depend();
  4132. if (Array.isArray(value)) {
  4133. dependArray(value);
  4134. }
  4135. }
  4136. }
  4137. return value
  4138. },
  4139. set: function reactiveSetter (newVal) {
  4140. var value = getter ? getter.call(obj) : val;
  4141. /* eslint-disable no-self-compare */
  4142. if (newVal === value || (newVal !== newVal && value !== value)) {
  4143. return
  4144. }
  4145. /* eslint-enable no-self-compare */
  4146. if ( true && customSetter) {
  4147. customSetter();
  4148. }
  4149. // #7981: for accessor properties without setter
  4150. if (getter && !setter) { return }
  4151. if (setter) {
  4152. setter.call(obj, newVal);
  4153. } else {
  4154. val = newVal;
  4155. }
  4156. childOb = !shallow && observe(newVal);
  4157. dep.notify();
  4158. }
  4159. });
  4160. }
  4161. /**
  4162. * Set a property on an object. Adds the new property and
  4163. * triggers change notification if the property doesn't
  4164. * already exist.
  4165. */
  4166. function set (target, key, val) {
  4167. if ( true &&
  4168. (isUndef(target) || isPrimitive(target))
  4169. ) {
  4170. warn(("Cannot set reactive property on undefined, null, or primitive value: " + ((target))));
  4171. }
  4172. if (Array.isArray(target) && isValidArrayIndex(key)) {
  4173. target.length = Math.max(target.length, key);
  4174. target.splice(key, 1, val);
  4175. return val
  4176. }
  4177. if (key in target && !(key in Object.prototype)) {
  4178. target[key] = val;
  4179. return val
  4180. }
  4181. var ob = (target).__ob__;
  4182. if (target._isVue || (ob && ob.vmCount)) {
  4183. true && warn(
  4184. 'Avoid adding reactive properties to a Vue instance or its root $data ' +
  4185. 'at runtime - declare it upfront in the data option.'
  4186. );
  4187. return val
  4188. }
  4189. if (!ob) {
  4190. target[key] = val;
  4191. return val
  4192. }
  4193. defineReactive$$1(ob.value, key, val);
  4194. ob.dep.notify();
  4195. return val
  4196. }
  4197. /**
  4198. * Delete a property and trigger change if necessary.
  4199. */
  4200. function del (target, key) {
  4201. if ( true &&
  4202. (isUndef(target) || isPrimitive(target))
  4203. ) {
  4204. warn(("Cannot delete reactive property on undefined, null, or primitive value: " + ((target))));
  4205. }
  4206. if (Array.isArray(target) && isValidArrayIndex(key)) {
  4207. target.splice(key, 1);
  4208. return
  4209. }
  4210. var ob = (target).__ob__;
  4211. if (target._isVue || (ob && ob.vmCount)) {
  4212. true && warn(
  4213. 'Avoid deleting properties on a Vue instance or its root $data ' +
  4214. '- just set it to null.'
  4215. );
  4216. return
  4217. }
  4218. if (!hasOwn(target, key)) {
  4219. return
  4220. }
  4221. delete target[key];
  4222. if (!ob) {
  4223. return
  4224. }
  4225. ob.dep.notify();
  4226. }
  4227. /**
  4228. * Collect dependencies on array elements when the array is touched, since
  4229. * we cannot intercept array element access like property getters.
  4230. */
  4231. function dependArray (value) {
  4232. for (var e = (void 0), i = 0, l = value.length; i < l; i++) {
  4233. e = value[i];
  4234. e && e.__ob__ && e.__ob__.dep.depend();
  4235. if (Array.isArray(e)) {
  4236. dependArray(e);
  4237. }
  4238. }
  4239. }
  4240. /* */
  4241. /**
  4242. * Option overwriting strategies are functions that handle
  4243. * how to merge a parent option value and a child option
  4244. * value into the final value.
  4245. */
  4246. var strats = config.optionMergeStrategies;
  4247. /**
  4248. * Options with restrictions
  4249. */
  4250. if (true) {
  4251. strats.el = strats.propsData = function (parent, child, vm, key) {
  4252. if (!vm) {
  4253. warn(
  4254. "option \"" + key + "\" can only be used during instance " +
  4255. 'creation with the `new` keyword.'
  4256. );
  4257. }
  4258. return defaultStrat(parent, child)
  4259. };
  4260. }
  4261. /**
  4262. * Helper that recursively merges two data objects together.
  4263. */
  4264. function mergeData (to, from) {
  4265. if (!from) { return to }
  4266. var key, toVal, fromVal;
  4267. var keys = hasSymbol
  4268. ? Reflect.ownKeys(from)
  4269. : Object.keys(from);
  4270. for (var i = 0; i < keys.length; i++) {
  4271. key = keys[i];
  4272. // in case the object is already observed...
  4273. if (key === '__ob__') { continue }
  4274. toVal = to[key];
  4275. fromVal = from[key];
  4276. if (!hasOwn(to, key)) {
  4277. set(to, key, fromVal);
  4278. } else if (
  4279. toVal !== fromVal &&
  4280. isPlainObject(toVal) &&
  4281. isPlainObject(fromVal)
  4282. ) {
  4283. mergeData(toVal, fromVal);
  4284. }
  4285. }
  4286. return to
  4287. }
  4288. /**
  4289. * Data
  4290. */
  4291. function mergeDataOrFn (
  4292. parentVal,
  4293. childVal,
  4294. vm
  4295. ) {
  4296. if (!vm) {
  4297. // in a Vue.extend merge, both should be functions
  4298. if (!childVal) {
  4299. return parentVal
  4300. }
  4301. if (!parentVal) {
  4302. return childVal
  4303. }
  4304. // when parentVal & childVal are both present,
  4305. // we need to return a function that returns the
  4306. // merged result of both functions... no need to
  4307. // check if parentVal is a function here because
  4308. // it has to be a function to pass previous merges.
  4309. return function mergedDataFn () {
  4310. return mergeData(
  4311. typeof childVal === 'function' ? childVal.call(this, this) : childVal,
  4312. typeof parentVal === 'function' ? parentVal.call(this, this) : parentVal
  4313. )
  4314. }
  4315. } else {
  4316. return function mergedInstanceDataFn () {
  4317. // instance merge
  4318. var instanceData = typeof childVal === 'function'
  4319. ? childVal.call(vm, vm)
  4320. : childVal;
  4321. var defaultData = typeof parentVal === 'function'
  4322. ? parentVal.call(vm, vm)
  4323. : parentVal;
  4324. if (instanceData) {
  4325. return mergeData(instanceData, defaultData)
  4326. } else {
  4327. return defaultData
  4328. }
  4329. }
  4330. }
  4331. }
  4332. strats.data = function (
  4333. parentVal,
  4334. childVal,
  4335. vm
  4336. ) {
  4337. if (!vm) {
  4338. if (childVal && typeof childVal !== 'function') {
  4339. true && warn(
  4340. 'The "data" option should be a function ' +
  4341. 'that returns a per-instance value in component ' +
  4342. 'definitions.',
  4343. vm
  4344. );
  4345. return parentVal
  4346. }
  4347. return mergeDataOrFn(parentVal, childVal)
  4348. }
  4349. return mergeDataOrFn(parentVal, childVal, vm)
  4350. };
  4351. /**
  4352. * Hooks and props are merged as arrays.
  4353. */
  4354. function mergeHook (
  4355. parentVal,
  4356. childVal
  4357. ) {
  4358. var res = childVal
  4359. ? parentVal
  4360. ? parentVal.concat(childVal)
  4361. : Array.isArray(childVal)
  4362. ? childVal
  4363. : [childVal]
  4364. : parentVal;
  4365. return res
  4366. ? dedupeHooks(res)
  4367. : res
  4368. }
  4369. function dedupeHooks (hooks) {
  4370. var res = [];
  4371. for (var i = 0; i < hooks.length; i++) {
  4372. if (res.indexOf(hooks[i]) === -1) {
  4373. res.push(hooks[i]);
  4374. }
  4375. }
  4376. return res
  4377. }
  4378. LIFECYCLE_HOOKS.forEach(function (hook) {
  4379. strats[hook] = mergeHook;
  4380. });
  4381. /**
  4382. * Assets
  4383. *
  4384. * When a vm is present (instance creation), we need to do
  4385. * a three-way merge between constructor options, instance
  4386. * options and parent options.
  4387. */
  4388. function mergeAssets (
  4389. parentVal,
  4390. childVal,
  4391. vm,
  4392. key
  4393. ) {
  4394. var res = Object.create(parentVal || null);
  4395. if (childVal) {
  4396. true && assertObjectType(key, childVal, vm);
  4397. return extend(res, childVal)
  4398. } else {
  4399. return res
  4400. }
  4401. }
  4402. ASSET_TYPES.forEach(function (type) {
  4403. strats[type + 's'] = mergeAssets;
  4404. });
  4405. /**
  4406. * Watchers.
  4407. *
  4408. * Watchers hashes should not overwrite one
  4409. * another, so we merge them as arrays.
  4410. */
  4411. strats.watch = function (
  4412. parentVal,
  4413. childVal,
  4414. vm,
  4415. key
  4416. ) {
  4417. // work around Firefox's Object.prototype.watch...
  4418. if (parentVal === nativeWatch) { parentVal = undefined; }
  4419. if (childVal === nativeWatch) { childVal = undefined; }
  4420. /* istanbul ignore if */
  4421. if (!childVal) { return Object.create(parentVal || null) }
  4422. if (true) {
  4423. assertObjectType(key, childVal, vm);
  4424. }
  4425. if (!parentVal) { return childVal }
  4426. var ret = {};
  4427. extend(ret, parentVal);
  4428. for (var key$1 in childVal) {
  4429. var parent = ret[key$1];
  4430. var child = childVal[key$1];
  4431. if (parent && !Array.isArray(parent)) {
  4432. parent = [parent];
  4433. }
  4434. ret[key$1] = parent
  4435. ? parent.concat(child)
  4436. : Array.isArray(child) ? child : [child];
  4437. }
  4438. return ret
  4439. };
  4440. /**
  4441. * Other object hashes.
  4442. */
  4443. strats.props =
  4444. strats.methods =
  4445. strats.inject =
  4446. strats.computed = function (
  4447. parentVal,
  4448. childVal,
  4449. vm,
  4450. key
  4451. ) {
  4452. if (childVal && "development" !== 'production') {
  4453. assertObjectType(key, childVal, vm);
  4454. }
  4455. if (!parentVal) { return childVal }
  4456. var ret = Object.create(null);
  4457. extend(ret, parentVal);
  4458. if (childVal) { extend(ret, childVal); }
  4459. return ret
  4460. };
  4461. strats.provide = mergeDataOrFn;
  4462. /**
  4463. * Default strategy.
  4464. */
  4465. var defaultStrat = function (parentVal, childVal) {
  4466. return childVal === undefined
  4467. ? parentVal
  4468. : childVal
  4469. };
  4470. /**
  4471. * Validate component names
  4472. */
  4473. function checkComponents (options) {
  4474. for (var key in options.components) {
  4475. validateComponentName(key);
  4476. }
  4477. }
  4478. function validateComponentName (name) {
  4479. if (!new RegExp(("^[a-zA-Z][\\-\\.0-9_" + (unicodeRegExp.source) + "]*$")).test(name)) {
  4480. warn(
  4481. 'Invalid component name: "' + name + '". Component names ' +
  4482. 'should conform to valid custom element name in html5 specification.'
  4483. );
  4484. }
  4485. if (isBuiltInTag(name) || config.isReservedTag(name)) {
  4486. warn(
  4487. 'Do not use built-in or reserved HTML elements as component ' +
  4488. 'id: ' + name
  4489. );
  4490. }
  4491. }
  4492. /**
  4493. * Ensure all props option syntax are normalized into the
  4494. * Object-based format.
  4495. */
  4496. function normalizeProps (options, vm) {
  4497. var props = options.props;
  4498. if (!props) { return }
  4499. var res = {};
  4500. var i, val, name;
  4501. if (Array.isArray(props)) {
  4502. i = props.length;
  4503. while (i--) {
  4504. val = props[i];
  4505. if (typeof val === 'string') {
  4506. name = camelize(val);
  4507. res[name] = { type: null };
  4508. } else if (true) {
  4509. warn('props must be strings when using array syntax.');
  4510. }
  4511. }
  4512. } else if (isPlainObject(props)) {
  4513. for (var key in props) {
  4514. val = props[key];
  4515. name = camelize(key);
  4516. res[name] = isPlainObject(val)
  4517. ? val
  4518. : { type: val };
  4519. }
  4520. } else if (true) {
  4521. warn(
  4522. "Invalid value for option \"props\": expected an Array or an Object, " +
  4523. "but got " + (toRawType(props)) + ".",
  4524. vm
  4525. );
  4526. }
  4527. options.props = res;
  4528. }
  4529. /**
  4530. * Normalize all injections into Object-based format
  4531. */
  4532. function normalizeInject (options, vm) {
  4533. var inject = options.inject;
  4534. if (!inject) { return }
  4535. var normalized = options.inject = {};
  4536. if (Array.isArray(inject)) {
  4537. for (var i = 0; i < inject.length; i++) {
  4538. normalized[inject[i]] = { from: inject[i] };
  4539. }
  4540. } else if (isPlainObject(inject)) {
  4541. for (var key in inject) {
  4542. var val = inject[key];
  4543. normalized[key] = isPlainObject(val)
  4544. ? extend({ from: key }, val)
  4545. : { from: val };
  4546. }
  4547. } else if (true) {
  4548. warn(
  4549. "Invalid value for option \"inject\": expected an Array or an Object, " +
  4550. "but got " + (toRawType(inject)) + ".",
  4551. vm
  4552. );
  4553. }
  4554. }
  4555. /**
  4556. * Normalize raw function directives into object format.
  4557. */
  4558. function normalizeDirectives (options) {
  4559. var dirs = options.directives;
  4560. if (dirs) {
  4561. for (var key in dirs) {
  4562. var def$$1 = dirs[key];
  4563. if (typeof def$$1 === 'function') {
  4564. dirs[key] = { bind: def$$1, update: def$$1 };
  4565. }
  4566. }
  4567. }
  4568. }
  4569. function assertObjectType (name, value, vm) {
  4570. if (!isPlainObject(value)) {
  4571. warn(
  4572. "Invalid value for option \"" + name + "\": expected an Object, " +
  4573. "but got " + (toRawType(value)) + ".",
  4574. vm
  4575. );
  4576. }
  4577. }
  4578. /**
  4579. * Merge two option objects into a new one.
  4580. * Core utility used in both instantiation and inheritance.
  4581. */
  4582. function mergeOptions (
  4583. parent,
  4584. child,
  4585. vm
  4586. ) {
  4587. if (true) {
  4588. checkComponents(child);
  4589. }
  4590. if (typeof child === 'function') {
  4591. child = child.options;
  4592. }
  4593. normalizeProps(child, vm);
  4594. normalizeInject(child, vm);
  4595. normalizeDirectives(child);
  4596. // Apply extends and mixins on the child options,
  4597. // but only if it is a raw options object that isn't
  4598. // the result of another mergeOptions call.
  4599. // Only merged options has the _base property.
  4600. if (!child._base) {
  4601. if (child.extends) {
  4602. parent = mergeOptions(parent, child.extends, vm);
  4603. }
  4604. if (child.mixins) {
  4605. for (var i = 0, l = child.mixins.length; i < l; i++) {
  4606. parent = mergeOptions(parent, child.mixins[i], vm);
  4607. }
  4608. }
  4609. }
  4610. var options = {};
  4611. var key;
  4612. for (key in parent) {
  4613. mergeField(key);
  4614. }
  4615. for (key in child) {
  4616. if (!hasOwn(parent, key)) {
  4617. mergeField(key);
  4618. }
  4619. }
  4620. function mergeField (key) {
  4621. var strat = strats[key] || defaultStrat;
  4622. options[key] = strat(parent[key], child[key], vm, key);
  4623. }
  4624. return options
  4625. }
  4626. /**
  4627. * Resolve an asset.
  4628. * This function is used because child instances need access
  4629. * to assets defined in its ancestor chain.
  4630. */
  4631. function resolveAsset (
  4632. options,
  4633. type,
  4634. id,
  4635. warnMissing
  4636. ) {
  4637. /* istanbul ignore if */
  4638. if (typeof id !== 'string') {
  4639. return
  4640. }
  4641. var assets = options[type];
  4642. // check local registration variations first
  4643. if (hasOwn(assets, id)) { return assets[id] }
  4644. var camelizedId = camelize(id);
  4645. if (hasOwn(assets, camelizedId)) { return assets[camelizedId] }
  4646. var PascalCaseId = capitalize(camelizedId);
  4647. if (hasOwn(assets, PascalCaseId)) { return assets[PascalCaseId] }
  4648. // fallback to prototype chain
  4649. var res = assets[id] || assets[camelizedId] || assets[PascalCaseId];
  4650. if ( true && warnMissing && !res) {
  4651. warn(
  4652. 'Failed to resolve ' + type.slice(0, -1) + ': ' + id,
  4653. options
  4654. );
  4655. }
  4656. return res
  4657. }
  4658. /* */
  4659. function validateProp (
  4660. key,
  4661. propOptions,
  4662. propsData,
  4663. vm
  4664. ) {
  4665. var prop = propOptions[key];
  4666. var absent = !hasOwn(propsData, key);
  4667. var value = propsData[key];
  4668. // boolean casting
  4669. var booleanIndex = getTypeIndex(Boolean, prop.type);
  4670. if (booleanIndex > -1) {
  4671. if (absent && !hasOwn(prop, 'default')) {
  4672. value = false;
  4673. } else if (value === '' || value === hyphenate(key)) {
  4674. // only cast empty string / same name to boolean if
  4675. // boolean has higher priority
  4676. var stringIndex = getTypeIndex(String, prop.type);
  4677. if (stringIndex < 0 || booleanIndex < stringIndex) {
  4678. value = true;
  4679. }
  4680. }
  4681. }
  4682. // check default value
  4683. if (value === undefined) {
  4684. value = getPropDefaultValue(vm, prop, key);
  4685. // since the default value is a fresh copy,
  4686. // make sure to observe it.
  4687. var prevShouldObserve = shouldObserve;
  4688. toggleObserving(true);
  4689. observe(value);
  4690. toggleObserving(prevShouldObserve);
  4691. }
  4692. if (
  4693. true
  4694. ) {
  4695. assertProp(prop, key, value, vm, absent);
  4696. }
  4697. return value
  4698. }
  4699. /**
  4700. * Get the default value of a prop.
  4701. */
  4702. function getPropDefaultValue (vm, prop, key) {
  4703. // no default, return undefined
  4704. if (!hasOwn(prop, 'default')) {
  4705. return undefined
  4706. }
  4707. var def = prop.default;
  4708. // warn against non-factory defaults for Object & Array
  4709. if ( true && isObject(def)) {
  4710. warn(
  4711. 'Invalid default value for prop "' + key + '": ' +
  4712. 'Props with type Object/Array must use a factory function ' +
  4713. 'to return the default value.',
  4714. vm
  4715. );
  4716. }
  4717. // the raw prop value was also undefined from previous render,
  4718. // return previous default value to avoid unnecessary watcher trigger
  4719. if (vm && vm.$options.propsData &&
  4720. vm.$options.propsData[key] === undefined &&
  4721. vm._props[key] !== undefined
  4722. ) {
  4723. return vm._props[key]
  4724. }
  4725. // call factory function for non-Function types
  4726. // a value is Function if its prototype is function even across different execution context
  4727. return typeof def === 'function' && getType(prop.type) !== 'Function'
  4728. ? def.call(vm)
  4729. : def
  4730. }
  4731. /**
  4732. * Assert whether a prop is valid.
  4733. */
  4734. function assertProp (
  4735. prop,
  4736. name,
  4737. value,
  4738. vm,
  4739. absent
  4740. ) {
  4741. if (prop.required && absent) {
  4742. warn(
  4743. 'Missing required prop: "' + name + '"',
  4744. vm
  4745. );
  4746. return
  4747. }
  4748. if (value == null && !prop.required) {
  4749. return
  4750. }
  4751. var type = prop.type;
  4752. var valid = !type || type === true;
  4753. var expectedTypes = [];
  4754. if (type) {
  4755. if (!Array.isArray(type)) {
  4756. type = [type];
  4757. }
  4758. for (var i = 0; i < type.length && !valid; i++) {
  4759. var assertedType = assertType(value, type[i]);
  4760. expectedTypes.push(assertedType.expectedType || '');
  4761. valid = assertedType.valid;
  4762. }
  4763. }
  4764. if (!valid) {
  4765. warn(
  4766. getInvalidTypeMessage(name, value, expectedTypes),
  4767. vm
  4768. );
  4769. return
  4770. }
  4771. var validator = prop.validator;
  4772. if (validator) {
  4773. if (!validator(value)) {
  4774. warn(
  4775. 'Invalid prop: custom validator check failed for prop "' + name + '".',
  4776. vm
  4777. );
  4778. }
  4779. }
  4780. }
  4781. var simpleCheckRE = /^(String|Number|Boolean|Function|Symbol)$/;
  4782. function assertType (value, type) {
  4783. var valid;
  4784. var expectedType = getType(type);
  4785. if (simpleCheckRE.test(expectedType)) {
  4786. var t = typeof value;
  4787. valid = t === expectedType.toLowerCase();
  4788. // for primitive wrapper objects
  4789. if (!valid && t === 'object') {
  4790. valid = value instanceof type;
  4791. }
  4792. } else if (expectedType === 'Object') {
  4793. valid = isPlainObject(value);
  4794. } else if (expectedType === 'Array') {
  4795. valid = Array.isArray(value);
  4796. } else {
  4797. valid = value instanceof type;
  4798. }
  4799. return {
  4800. valid: valid,
  4801. expectedType: expectedType
  4802. }
  4803. }
  4804. /**
  4805. * Use function string name to check built-in types,
  4806. * because a simple equality check will fail when running
  4807. * across different vms / iframes.
  4808. */
  4809. function getType (fn) {
  4810. var match = fn && fn.toString().match(/^\s*function (\w+)/);
  4811. return match ? match[1] : ''
  4812. }
  4813. function isSameType (a, b) {
  4814. return getType(a) === getType(b)
  4815. }
  4816. function getTypeIndex (type, expectedTypes) {
  4817. if (!Array.isArray(expectedTypes)) {
  4818. return isSameType(expectedTypes, type) ? 0 : -1
  4819. }
  4820. for (var i = 0, len = expectedTypes.length; i < len; i++) {
  4821. if (isSameType(expectedTypes[i], type)) {
  4822. return i
  4823. }
  4824. }
  4825. return -1
  4826. }
  4827. function getInvalidTypeMessage (name, value, expectedTypes) {
  4828. var message = "Invalid prop: type check failed for prop \"" + name + "\"." +
  4829. " Expected " + (expectedTypes.map(capitalize).join(', '));
  4830. var expectedType = expectedTypes[0];
  4831. var receivedType = toRawType(value);
  4832. var expectedValue = styleValue(value, expectedType);
  4833. var receivedValue = styleValue(value, receivedType);
  4834. // check if we need to specify expected value
  4835. if (expectedTypes.length === 1 &&
  4836. isExplicable(expectedType) &&
  4837. !isBoolean(expectedType, receivedType)) {
  4838. message += " with value " + expectedValue;
  4839. }
  4840. message += ", got " + receivedType + " ";
  4841. // check if we need to specify received value
  4842. if (isExplicable(receivedType)) {
  4843. message += "with value " + receivedValue + ".";
  4844. }
  4845. return message
  4846. }
  4847. function styleValue (value, type) {
  4848. if (type === 'String') {
  4849. return ("\"" + value + "\"")
  4850. } else if (type === 'Number') {
  4851. return ("" + (Number(value)))
  4852. } else {
  4853. return ("" + value)
  4854. }
  4855. }
  4856. function isExplicable (value) {
  4857. var explicitTypes = ['string', 'number', 'boolean'];
  4858. return explicitTypes.some(function (elem) { return value.toLowerCase() === elem; })
  4859. }
  4860. function isBoolean () {
  4861. var args = [], len = arguments.length;
  4862. while ( len-- ) args[ len ] = arguments[ len ];
  4863. return args.some(function (elem) { return elem.toLowerCase() === 'boolean'; })
  4864. }
  4865. /* */
  4866. function handleError (err, vm, info) {
  4867. // Deactivate deps tracking while processing error handler to avoid possible infinite rendering.
  4868. // See: https://github.com/vuejs/vuex/issues/1505
  4869. pushTarget();
  4870. try {
  4871. if (vm) {
  4872. var cur = vm;
  4873. while ((cur = cur.$parent)) {
  4874. var hooks = cur.$options.errorCaptured;
  4875. if (hooks) {
  4876. for (var i = 0; i < hooks.length; i++) {
  4877. try {
  4878. var capture = hooks[i].call(cur, err, vm, info) === false;
  4879. if (capture) { return }
  4880. } catch (e) {
  4881. globalHandleError(e, cur, 'errorCaptured hook');
  4882. }
  4883. }
  4884. }
  4885. }
  4886. }
  4887. globalHandleError(err, vm, info);
  4888. } finally {
  4889. popTarget();
  4890. }
  4891. }
  4892. function invokeWithErrorHandling (
  4893. handler,
  4894. context,
  4895. args,
  4896. vm,
  4897. info
  4898. ) {
  4899. var res;
  4900. try {
  4901. res = args ? handler.apply(context, args) : handler.call(context);
  4902. if (res && !res._isVue && isPromise(res) && !res._handled) {
  4903. res.catch(function (e) { return handleError(e, vm, info + " (Promise/async)"); });
  4904. // issue #9511
  4905. // avoid catch triggering multiple times when nested calls
  4906. res._handled = true;
  4907. }
  4908. } catch (e) {
  4909. handleError(e, vm, info);
  4910. }
  4911. return res
  4912. }
  4913. function globalHandleError (err, vm, info) {
  4914. if (config.errorHandler) {
  4915. try {
  4916. return config.errorHandler.call(null, err, vm, info)
  4917. } catch (e) {
  4918. // if the user intentionally throws the original error in the handler,
  4919. // do not log it twice
  4920. if (e !== err) {
  4921. logError(e, null, 'config.errorHandler');
  4922. }
  4923. }
  4924. }
  4925. logError(err, vm, info);
  4926. }
  4927. function logError (err, vm, info) {
  4928. if (true) {
  4929. warn(("Error in " + info + ": \"" + (err.toString()) + "\""), vm);
  4930. }
  4931. /* istanbul ignore else */
  4932. if ((inBrowser || inWeex) && typeof console !== 'undefined') {
  4933. console.error(err);
  4934. } else {
  4935. throw err
  4936. }
  4937. }
  4938. /* */
  4939. var callbacks = [];
  4940. var pending = false;
  4941. function flushCallbacks () {
  4942. pending = false;
  4943. var copies = callbacks.slice(0);
  4944. callbacks.length = 0;
  4945. for (var i = 0; i < copies.length; i++) {
  4946. copies[i]();
  4947. }
  4948. }
  4949. // Here we have async deferring wrappers using microtasks.
  4950. // In 2.5 we used (macro) tasks (in combination with microtasks).
  4951. // However, it has subtle problems when state is changed right before repaint
  4952. // (e.g. #6813, out-in transitions).
  4953. // Also, using (macro) tasks in event handler would cause some weird behaviors
  4954. // that cannot be circumvented (e.g. #7109, #7153, #7546, #7834, #8109).
  4955. // So we now use microtasks everywhere, again.
  4956. // A major drawback of this tradeoff is that there are some scenarios
  4957. // where microtasks have too high a priority and fire in between supposedly
  4958. // sequential events (e.g. #4521, #6690, which have workarounds)
  4959. // or even between bubbling of the same event (#6566).
  4960. var timerFunc;
  4961. // The nextTick behavior leverages the microtask queue, which can be accessed
  4962. // via either native Promise.then or MutationObserver.
  4963. // MutationObserver has wider support, however it is seriously bugged in
  4964. // UIWebView in iOS >= 9.3.3 when triggered in touch event handlers. It
  4965. // completely stops working after triggering a few times... so, if native
  4966. // Promise is available, we will use it:
  4967. /* istanbul ignore next, $flow-disable-line */
  4968. if (typeof Promise !== 'undefined' && isNative(Promise)) {
  4969. var p = Promise.resolve();
  4970. timerFunc = function () {
  4971. p.then(flushCallbacks);
  4972. // In problematic UIWebViews, Promise.then doesn't completely break, but
  4973. // it can get stuck in a weird state where callbacks are pushed into the
  4974. // microtask queue but the queue isn't being flushed, until the browser
  4975. // needs to do some other work, e.g. handle a timer. Therefore we can
  4976. // "force" the microtask queue to be flushed by adding an empty timer.
  4977. if (isIOS) { setTimeout(noop); }
  4978. };
  4979. } else if (!isIE && typeof MutationObserver !== 'undefined' && (
  4980. isNative(MutationObserver) ||
  4981. // PhantomJS and iOS 7.x
  4982. MutationObserver.toString() === '[object MutationObserverConstructor]'
  4983. )) {
  4984. // Use MutationObserver where native Promise is not available,
  4985. // e.g. PhantomJS, iOS7, Android 4.4
  4986. // (#6466 MutationObserver is unreliable in IE11)
  4987. var counter = 1;
  4988. var observer = new MutationObserver(flushCallbacks);
  4989. var textNode = document.createTextNode(String(counter));
  4990. observer.observe(textNode, {
  4991. characterData: true
  4992. });
  4993. timerFunc = function () {
  4994. counter = (counter + 1) % 2;
  4995. textNode.data = String(counter);
  4996. };
  4997. } else if (typeof setImmediate !== 'undefined' && isNative(setImmediate)) {
  4998. // Fallback to setImmediate.
  4999. // Technically it leverages the (macro) task queue,
  5000. // but it is still a better choice than setTimeout.
  5001. timerFunc = function () {
  5002. setImmediate(flushCallbacks);
  5003. };
  5004. } else {
  5005. // Fallback to setTimeout.
  5006. timerFunc = function () {
  5007. setTimeout(flushCallbacks, 0);
  5008. };
  5009. }
  5010. function nextTick (cb, ctx) {
  5011. var _resolve;
  5012. callbacks.push(function () {
  5013. if (cb) {
  5014. try {
  5015. cb.call(ctx);
  5016. } catch (e) {
  5017. handleError(e, ctx, 'nextTick');
  5018. }
  5019. } else if (_resolve) {
  5020. _resolve(ctx);
  5021. }
  5022. });
  5023. if (!pending) {
  5024. pending = true;
  5025. timerFunc();
  5026. }
  5027. // $flow-disable-line
  5028. if (!cb && typeof Promise !== 'undefined') {
  5029. return new Promise(function (resolve) {
  5030. _resolve = resolve;
  5031. })
  5032. }
  5033. }
  5034. /* */
  5035. /* not type checking this file because flow doesn't play well with Proxy */
  5036. var initProxy;
  5037. if (true) {
  5038. var allowedGlobals = makeMap(
  5039. 'Infinity,undefined,NaN,isFinite,isNaN,' +
  5040. 'parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,' +
  5041. 'Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl,' +
  5042. 'require' // for Webpack/Browserify
  5043. );
  5044. var warnNonPresent = function (target, key) {
  5045. warn(
  5046. "Property or method \"" + key + "\" is not defined on the instance but " +
  5047. 'referenced during render. Make sure that this property is reactive, ' +
  5048. 'either in the data option, or for class-based components, by ' +
  5049. 'initializing the property. ' +
  5050. 'See: https://vuejs.org/v2/guide/reactivity.html#Declaring-Reactive-Properties.',
  5051. target
  5052. );
  5053. };
  5054. var warnReservedPrefix = function (target, key) {
  5055. warn(
  5056. "Property \"" + key + "\" must be accessed with \"$data." + key + "\" because " +
  5057. 'properties starting with "$" or "_" are not proxied in the Vue instance to ' +
  5058. 'prevent conflicts with Vue internals. ' +
  5059. 'See: https://vuejs.org/v2/api/#data',
  5060. target
  5061. );
  5062. };
  5063. var hasProxy =
  5064. typeof Proxy !== 'undefined' && isNative(Proxy);
  5065. if (hasProxy) {
  5066. var isBuiltInModifier = makeMap('stop,prevent,self,ctrl,shift,alt,meta,exact');
  5067. config.keyCodes = new Proxy(config.keyCodes, {
  5068. set: function set (target, key, value) {
  5069. if (isBuiltInModifier(key)) {
  5070. warn(("Avoid overwriting built-in modifier in config.keyCodes: ." + key));
  5071. return false
  5072. } else {
  5073. target[key] = value;
  5074. return true
  5075. }
  5076. }
  5077. });
  5078. }
  5079. var hasHandler = {
  5080. has: function has (target, key) {
  5081. var has = key in target;
  5082. var isAllowed = allowedGlobals(key) ||
  5083. (typeof key === 'string' && key.charAt(0) === '_' && !(key in target.$data));
  5084. if (!has && !isAllowed) {
  5085. if (key in target.$data) { warnReservedPrefix(target, key); }
  5086. else { warnNonPresent(target, key); }
  5087. }
  5088. return has || !isAllowed
  5089. }
  5090. };
  5091. var getHandler = {
  5092. get: function get (target, key) {
  5093. if (typeof key === 'string' && !(key in target)) {
  5094. if (key in target.$data) { warnReservedPrefix(target, key); }
  5095. else { warnNonPresent(target, key); }
  5096. }
  5097. return target[key]
  5098. }
  5099. };
  5100. initProxy = function initProxy (vm) {
  5101. if (hasProxy) {
  5102. // determine which proxy handler to use
  5103. var options = vm.$options;
  5104. var handlers = options.render && options.render._withStripped
  5105. ? getHandler
  5106. : hasHandler;
  5107. vm._renderProxy = new Proxy(vm, handlers);
  5108. } else {
  5109. vm._renderProxy = vm;
  5110. }
  5111. };
  5112. }
  5113. /* */
  5114. var seenObjects = new _Set();
  5115. /**
  5116. * Recursively traverse an object to evoke all converted
  5117. * getters, so that every nested property inside the object
  5118. * is collected as a "deep" dependency.
  5119. */
  5120. function traverse (val) {
  5121. _traverse(val, seenObjects);
  5122. seenObjects.clear();
  5123. }
  5124. function _traverse (val, seen) {
  5125. var i, keys;
  5126. var isA = Array.isArray(val);
  5127. if ((!isA && !isObject(val)) || Object.isFrozen(val) || val instanceof VNode) {
  5128. return
  5129. }
  5130. if (val.__ob__) {
  5131. var depId = val.__ob__.dep.id;
  5132. if (seen.has(depId)) {
  5133. return
  5134. }
  5135. seen.add(depId);
  5136. }
  5137. if (isA) {
  5138. i = val.length;
  5139. while (i--) { _traverse(val[i], seen); }
  5140. } else {
  5141. keys = Object.keys(val);
  5142. i = keys.length;
  5143. while (i--) { _traverse(val[keys[i]], seen); }
  5144. }
  5145. }
  5146. var mark;
  5147. var measure;
  5148. if (true) {
  5149. var perf = inBrowser && window.performance;
  5150. /* istanbul ignore if */
  5151. if (
  5152. perf &&
  5153. perf.mark &&
  5154. perf.measure &&
  5155. perf.clearMarks &&
  5156. perf.clearMeasures
  5157. ) {
  5158. mark = function (tag) { return perf.mark(tag); };
  5159. measure = function (name, startTag, endTag) {
  5160. perf.measure(name, startTag, endTag);
  5161. perf.clearMarks(startTag);
  5162. perf.clearMarks(endTag);
  5163. // perf.clearMeasures(name)
  5164. };
  5165. }
  5166. }
  5167. /* */
  5168. var normalizeEvent = cached(function (name) {
  5169. var passive = name.charAt(0) === '&';
  5170. name = passive ? name.slice(1) : name;
  5171. var once$$1 = name.charAt(0) === '~'; // Prefixed last, checked first
  5172. name = once$$1 ? name.slice(1) : name;
  5173. var capture = name.charAt(0) === '!';
  5174. name = capture ? name.slice(1) : name;
  5175. return {
  5176. name: name,
  5177. once: once$$1,
  5178. capture: capture,
  5179. passive: passive
  5180. }
  5181. });
  5182. function createFnInvoker (fns, vm) {
  5183. function invoker () {
  5184. var arguments$1 = arguments;
  5185. var fns = invoker.fns;
  5186. if (Array.isArray(fns)) {
  5187. var cloned = fns.slice();
  5188. for (var i = 0; i < cloned.length; i++) {
  5189. invokeWithErrorHandling(cloned[i], null, arguments$1, vm, "v-on handler");
  5190. }
  5191. } else {
  5192. // return handler return value for single handlers
  5193. return invokeWithErrorHandling(fns, null, arguments, vm, "v-on handler")
  5194. }
  5195. }
  5196. invoker.fns = fns;
  5197. return invoker
  5198. }
  5199. function updateListeners (
  5200. on,
  5201. oldOn,
  5202. add,
  5203. remove$$1,
  5204. createOnceHandler,
  5205. vm
  5206. ) {
  5207. var name, def$$1, cur, old, event;
  5208. for (name in on) {
  5209. def$$1 = cur = on[name];
  5210. old = oldOn[name];
  5211. event = normalizeEvent(name);
  5212. if (isUndef(cur)) {
  5213. true && warn(
  5214. "Invalid handler for event \"" + (event.name) + "\": got " + String(cur),
  5215. vm
  5216. );
  5217. } else if (isUndef(old)) {
  5218. if (isUndef(cur.fns)) {
  5219. cur = on[name] = createFnInvoker(cur, vm);
  5220. }
  5221. if (isTrue(event.once)) {
  5222. cur = on[name] = createOnceHandler(event.name, cur, event.capture);
  5223. }
  5224. add(event.name, cur, event.capture, event.passive, event.params);
  5225. } else if (cur !== old) {
  5226. old.fns = cur;
  5227. on[name] = old;
  5228. }
  5229. }
  5230. for (name in oldOn) {
  5231. if (isUndef(on[name])) {
  5232. event = normalizeEvent(name);
  5233. remove$$1(event.name, oldOn[name], event.capture);
  5234. }
  5235. }
  5236. }
  5237. /* */
  5238. /* */
  5239. // fixed by xxxxxx (mp properties)
  5240. function extractPropertiesFromVNodeData(data, Ctor, res, context) {
  5241. var propOptions = Ctor.options.mpOptions && Ctor.options.mpOptions.properties;
  5242. if (isUndef(propOptions)) {
  5243. return res
  5244. }
  5245. var externalClasses = Ctor.options.mpOptions.externalClasses || [];
  5246. var attrs = data.attrs;
  5247. var props = data.props;
  5248. if (isDef(attrs) || isDef(props)) {
  5249. for (var key in propOptions) {
  5250. var altKey = hyphenate(key);
  5251. var result = checkProp(res, props, key, altKey, true) ||
  5252. checkProp(res, attrs, key, altKey, false);
  5253. // externalClass
  5254. if (
  5255. result &&
  5256. res[key] &&
  5257. externalClasses.indexOf(altKey) !== -1 &&
  5258. context[camelize(res[key])]
  5259. ) {
  5260. // 赋值 externalClass 真正的值(模板里 externalClass 的值可能是字符串)
  5261. res[key] = context[camelize(res[key])];
  5262. }
  5263. }
  5264. }
  5265. return res
  5266. }
  5267. function extractPropsFromVNodeData (
  5268. data,
  5269. Ctor,
  5270. tag,
  5271. context// fixed by xxxxxx
  5272. ) {
  5273. // we are only extracting raw values here.
  5274. // validation and default values are handled in the child
  5275. // component itself.
  5276. var propOptions = Ctor.options.props;
  5277. if (isUndef(propOptions)) {
  5278. // fixed by xxxxxx
  5279. return extractPropertiesFromVNodeData(data, Ctor, {}, context)
  5280. }
  5281. var res = {};
  5282. var attrs = data.attrs;
  5283. var props = data.props;
  5284. if (isDef(attrs) || isDef(props)) {
  5285. for (var key in propOptions) {
  5286. var altKey = hyphenate(key);
  5287. if (true) {
  5288. var keyInLowerCase = key.toLowerCase();
  5289. if (
  5290. key !== keyInLowerCase &&
  5291. attrs && hasOwn(attrs, keyInLowerCase)
  5292. ) {
  5293. tip(
  5294. "Prop \"" + keyInLowerCase + "\" is passed to component " +
  5295. (formatComponentName(tag || Ctor)) + ", but the declared prop name is" +
  5296. " \"" + key + "\". " +
  5297. "Note that HTML attributes are case-insensitive and camelCased " +
  5298. "props need to use their kebab-case equivalents when using in-DOM " +
  5299. "templates. You should probably use \"" + altKey + "\" instead of \"" + key + "\"."
  5300. );
  5301. }
  5302. }
  5303. checkProp(res, props, key, altKey, true) ||
  5304. checkProp(res, attrs, key, altKey, false);
  5305. }
  5306. }
  5307. // fixed by xxxxxx
  5308. return extractPropertiesFromVNodeData(data, Ctor, res, context)
  5309. }
  5310. function checkProp (
  5311. res,
  5312. hash,
  5313. key,
  5314. altKey,
  5315. preserve
  5316. ) {
  5317. if (isDef(hash)) {
  5318. if (hasOwn(hash, key)) {
  5319. res[key] = hash[key];
  5320. if (!preserve) {
  5321. delete hash[key];
  5322. }
  5323. return true
  5324. } else if (hasOwn(hash, altKey)) {
  5325. res[key] = hash[altKey];
  5326. if (!preserve) {
  5327. delete hash[altKey];
  5328. }
  5329. return true
  5330. }
  5331. }
  5332. return false
  5333. }
  5334. /* */
  5335. // The template compiler attempts to minimize the need for normalization by
  5336. // statically analyzing the template at compile time.
  5337. //
  5338. // For plain HTML markup, normalization can be completely skipped because the
  5339. // generated render function is guaranteed to return Array<VNode>. There are
  5340. // two cases where extra normalization is needed:
  5341. // 1. When the children contains components - because a functional component
  5342. // may return an Array instead of a single root. In this case, just a simple
  5343. // normalization is needed - if any child is an Array, we flatten the whole
  5344. // thing with Array.prototype.concat. It is guaranteed to be only 1-level deep
  5345. // because functional components already normalize their own children.
  5346. function simpleNormalizeChildren (children) {
  5347. for (var i = 0; i < children.length; i++) {
  5348. if (Array.isArray(children[i])) {
  5349. return Array.prototype.concat.apply([], children)
  5350. }
  5351. }
  5352. return children
  5353. }
  5354. // 2. When the children contains constructs that always generated nested Arrays,
  5355. // e.g. <template>, <slot>, v-for, or when the children is provided by user
  5356. // with hand-written render functions / JSX. In such cases a full normalization
  5357. // is needed to cater to all possible types of children values.
  5358. function normalizeChildren (children) {
  5359. return isPrimitive(children)
  5360. ? [createTextVNode(children)]
  5361. : Array.isArray(children)
  5362. ? normalizeArrayChildren(children)
  5363. : undefined
  5364. }
  5365. function isTextNode (node) {
  5366. return isDef(node) && isDef(node.text) && isFalse(node.isComment)
  5367. }
  5368. function normalizeArrayChildren (children, nestedIndex) {
  5369. var res = [];
  5370. var i, c, lastIndex, last;
  5371. for (i = 0; i < children.length; i++) {
  5372. c = children[i];
  5373. if (isUndef(c) || typeof c === 'boolean') { continue }
  5374. lastIndex = res.length - 1;
  5375. last = res[lastIndex];
  5376. // nested
  5377. if (Array.isArray(c)) {
  5378. if (c.length > 0) {
  5379. c = normalizeArrayChildren(c, ((nestedIndex || '') + "_" + i));
  5380. // merge adjacent text nodes
  5381. if (isTextNode(c[0]) && isTextNode(last)) {
  5382. res[lastIndex] = createTextVNode(last.text + (c[0]).text);
  5383. c.shift();
  5384. }
  5385. res.push.apply(res, c);
  5386. }
  5387. } else if (isPrimitive(c)) {
  5388. if (isTextNode(last)) {
  5389. // merge adjacent text nodes
  5390. // this is necessary for SSR hydration because text nodes are
  5391. // essentially merged when rendered to HTML strings
  5392. res[lastIndex] = createTextVNode(last.text + c);
  5393. } else if (c !== '') {
  5394. // convert primitive to vnode
  5395. res.push(createTextVNode(c));
  5396. }
  5397. } else {
  5398. if (isTextNode(c) && isTextNode(last)) {
  5399. // merge adjacent text nodes
  5400. res[lastIndex] = createTextVNode(last.text + c.text);
  5401. } else {
  5402. // default key for nested array children (likely generated by v-for)
  5403. if (isTrue(children._isVList) &&
  5404. isDef(c.tag) &&
  5405. isUndef(c.key) &&
  5406. isDef(nestedIndex)) {
  5407. c.key = "__vlist" + nestedIndex + "_" + i + "__";
  5408. }
  5409. res.push(c);
  5410. }
  5411. }
  5412. }
  5413. return res
  5414. }
  5415. /* */
  5416. function initProvide (vm) {
  5417. var provide = vm.$options.provide;
  5418. if (provide) {
  5419. vm._provided = typeof provide === 'function'
  5420. ? provide.call(vm)
  5421. : provide;
  5422. }
  5423. }
  5424. function initInjections (vm) {
  5425. var result = resolveInject(vm.$options.inject, vm);
  5426. if (result) {
  5427. toggleObserving(false);
  5428. Object.keys(result).forEach(function (key) {
  5429. /* istanbul ignore else */
  5430. if (true) {
  5431. defineReactive$$1(vm, key, result[key], function () {
  5432. warn(
  5433. "Avoid mutating an injected value directly since the changes will be " +
  5434. "overwritten whenever the provided component re-renders. " +
  5435. "injection being mutated: \"" + key + "\"",
  5436. vm
  5437. );
  5438. });
  5439. } else {}
  5440. });
  5441. toggleObserving(true);
  5442. }
  5443. }
  5444. function resolveInject (inject, vm) {
  5445. if (inject) {
  5446. // inject is :any because flow is not smart enough to figure out cached
  5447. var result = Object.create(null);
  5448. var keys = hasSymbol
  5449. ? Reflect.ownKeys(inject)
  5450. : Object.keys(inject);
  5451. for (var i = 0; i < keys.length; i++) {
  5452. var key = keys[i];
  5453. // #6574 in case the inject object is observed...
  5454. if (key === '__ob__') { continue }
  5455. var provideKey = inject[key].from;
  5456. var source = vm;
  5457. while (source) {
  5458. if (source._provided && hasOwn(source._provided, provideKey)) {
  5459. result[key] = source._provided[provideKey];
  5460. break
  5461. }
  5462. source = source.$parent;
  5463. }
  5464. if (!source) {
  5465. if ('default' in inject[key]) {
  5466. var provideDefault = inject[key].default;
  5467. result[key] = typeof provideDefault === 'function'
  5468. ? provideDefault.call(vm)
  5469. : provideDefault;
  5470. } else if (true) {
  5471. warn(("Injection \"" + key + "\" not found"), vm);
  5472. }
  5473. }
  5474. }
  5475. return result
  5476. }
  5477. }
  5478. /* */
  5479. /**
  5480. * Runtime helper for resolving raw children VNodes into a slot object.
  5481. */
  5482. function resolveSlots (
  5483. children,
  5484. context
  5485. ) {
  5486. if (!children || !children.length) {
  5487. return {}
  5488. }
  5489. var slots = {};
  5490. for (var i = 0, l = children.length; i < l; i++) {
  5491. var child = children[i];
  5492. var data = child.data;
  5493. // remove slot attribute if the node is resolved as a Vue slot node
  5494. if (data && data.attrs && data.attrs.slot) {
  5495. delete data.attrs.slot;
  5496. }
  5497. // named slots should only be respected if the vnode was rendered in the
  5498. // same context.
  5499. if ((child.context === context || child.fnContext === context) &&
  5500. data && data.slot != null
  5501. ) {
  5502. var name = data.slot;
  5503. var slot = (slots[name] || (slots[name] = []));
  5504. if (child.tag === 'template') {
  5505. slot.push.apply(slot, child.children || []);
  5506. } else {
  5507. slot.push(child);
  5508. }
  5509. } else {
  5510. // fixed by xxxxxx 临时 hack 掉 uni-app 中的异步 name slot page
  5511. if(child.asyncMeta && child.asyncMeta.data && child.asyncMeta.data.slot === 'page'){
  5512. (slots['page'] || (slots['page'] = [])).push(child);
  5513. }else{
  5514. (slots.default || (slots.default = [])).push(child);
  5515. }
  5516. }
  5517. }
  5518. // ignore slots that contains only whitespace
  5519. for (var name$1 in slots) {
  5520. if (slots[name$1].every(isWhitespace)) {
  5521. delete slots[name$1];
  5522. }
  5523. }
  5524. return slots
  5525. }
  5526. function isWhitespace (node) {
  5527. return (node.isComment && !node.asyncFactory) || node.text === ' '
  5528. }
  5529. /* */
  5530. function normalizeScopedSlots (
  5531. slots,
  5532. normalSlots,
  5533. prevSlots
  5534. ) {
  5535. var res;
  5536. var hasNormalSlots = Object.keys(normalSlots).length > 0;
  5537. var isStable = slots ? !!slots.$stable : !hasNormalSlots;
  5538. var key = slots && slots.$key;
  5539. if (!slots) {
  5540. res = {};
  5541. } else if (slots._normalized) {
  5542. // fast path 1: child component re-render only, parent did not change
  5543. return slots._normalized
  5544. } else if (
  5545. isStable &&
  5546. prevSlots &&
  5547. prevSlots !== emptyObject &&
  5548. key === prevSlots.$key &&
  5549. !hasNormalSlots &&
  5550. !prevSlots.$hasNormal
  5551. ) {
  5552. // fast path 2: stable scoped slots w/ no normal slots to proxy,
  5553. // only need to normalize once
  5554. return prevSlots
  5555. } else {
  5556. res = {};
  5557. for (var key$1 in slots) {
  5558. if (slots[key$1] && key$1[0] !== '$') {
  5559. res[key$1] = normalizeScopedSlot(normalSlots, key$1, slots[key$1]);
  5560. }
  5561. }
  5562. }
  5563. // expose normal slots on scopedSlots
  5564. for (var key$2 in normalSlots) {
  5565. if (!(key$2 in res)) {
  5566. res[key$2] = proxyNormalSlot(normalSlots, key$2);
  5567. }
  5568. }
  5569. // avoriaz seems to mock a non-extensible $scopedSlots object
  5570. // and when that is passed down this would cause an error
  5571. if (slots && Object.isExtensible(slots)) {
  5572. (slots)._normalized = res;
  5573. }
  5574. def(res, '$stable', isStable);
  5575. def(res, '$key', key);
  5576. def(res, '$hasNormal', hasNormalSlots);
  5577. return res
  5578. }
  5579. function normalizeScopedSlot(normalSlots, key, fn) {
  5580. var normalized = function () {
  5581. var res = arguments.length ? fn.apply(null, arguments) : fn({});
  5582. res = res && typeof res === 'object' && !Array.isArray(res)
  5583. ? [res] // single vnode
  5584. : normalizeChildren(res);
  5585. return res && (
  5586. res.length === 0 ||
  5587. (res.length === 1 && res[0].isComment) // #9658
  5588. ) ? undefined
  5589. : res
  5590. };
  5591. // this is a slot using the new v-slot syntax without scope. although it is
  5592. // compiled as a scoped slot, render fn users would expect it to be present
  5593. // on this.$slots because the usage is semantically a normal slot.
  5594. if (fn.proxy) {
  5595. Object.defineProperty(normalSlots, key, {
  5596. get: normalized,
  5597. enumerable: true,
  5598. configurable: true
  5599. });
  5600. }
  5601. return normalized
  5602. }
  5603. function proxyNormalSlot(slots, key) {
  5604. return function () { return slots[key]; }
  5605. }
  5606. /* */
  5607. /**
  5608. * Runtime helper for rendering v-for lists.
  5609. */
  5610. function renderList (
  5611. val,
  5612. render
  5613. ) {
  5614. var ret, i, l, keys, key;
  5615. if (Array.isArray(val) || typeof val === 'string') {
  5616. ret = new Array(val.length);
  5617. for (i = 0, l = val.length; i < l; i++) {
  5618. ret[i] = render(val[i], i, i, i); // fixed by xxxxxx
  5619. }
  5620. } else if (typeof val === 'number') {
  5621. ret = new Array(val);
  5622. for (i = 0; i < val; i++) {
  5623. ret[i] = render(i + 1, i, i, i); // fixed by xxxxxx
  5624. }
  5625. } else if (isObject(val)) {
  5626. if (hasSymbol && val[Symbol.iterator]) {
  5627. ret = [];
  5628. var iterator = val[Symbol.iterator]();
  5629. var result = iterator.next();
  5630. while (!result.done) {
  5631. ret.push(render(result.value, ret.length, i, i++)); // fixed by xxxxxx
  5632. result = iterator.next();
  5633. }
  5634. } else {
  5635. keys = Object.keys(val);
  5636. ret = new Array(keys.length);
  5637. for (i = 0, l = keys.length; i < l; i++) {
  5638. key = keys[i];
  5639. ret[i] = render(val[key], key, i, i); // fixed by xxxxxx
  5640. }
  5641. }
  5642. }
  5643. if (!isDef(ret)) {
  5644. ret = [];
  5645. }
  5646. (ret)._isVList = true;
  5647. return ret
  5648. }
  5649. /* */
  5650. /**
  5651. * Runtime helper for rendering <slot>
  5652. */
  5653. function renderSlot (
  5654. name,
  5655. fallback,
  5656. props,
  5657. bindObject
  5658. ) {
  5659. var scopedSlotFn = this.$scopedSlots[name];
  5660. var nodes;
  5661. if (scopedSlotFn) { // scoped slot
  5662. props = props || {};
  5663. if (bindObject) {
  5664. if ( true && !isObject(bindObject)) {
  5665. warn(
  5666. 'slot v-bind without argument expects an Object',
  5667. this
  5668. );
  5669. }
  5670. props = extend(extend({}, bindObject), props);
  5671. }
  5672. // fixed by xxxxxx app-plus scopedSlot
  5673. nodes = scopedSlotFn(props, this, props._i) || fallback;
  5674. } else {
  5675. nodes = this.$slots[name] || fallback;
  5676. }
  5677. var target = props && props.slot;
  5678. if (target) {
  5679. return this.$createElement('template', { slot: target }, nodes)
  5680. } else {
  5681. return nodes
  5682. }
  5683. }
  5684. /* */
  5685. /**
  5686. * Runtime helper for resolving filters
  5687. */
  5688. function resolveFilter (id) {
  5689. return resolveAsset(this.$options, 'filters', id, true) || identity
  5690. }
  5691. /* */
  5692. function isKeyNotMatch (expect, actual) {
  5693. if (Array.isArray(expect)) {
  5694. return expect.indexOf(actual) === -1
  5695. } else {
  5696. return expect !== actual
  5697. }
  5698. }
  5699. /**
  5700. * Runtime helper for checking keyCodes from config.
  5701. * exposed as Vue.prototype._k
  5702. * passing in eventKeyName as last argument separately for backwards compat
  5703. */
  5704. function checkKeyCodes (
  5705. eventKeyCode,
  5706. key,
  5707. builtInKeyCode,
  5708. eventKeyName,
  5709. builtInKeyName
  5710. ) {
  5711. var mappedKeyCode = config.keyCodes[key] || builtInKeyCode;
  5712. if (builtInKeyName && eventKeyName && !config.keyCodes[key]) {
  5713. return isKeyNotMatch(builtInKeyName, eventKeyName)
  5714. } else if (mappedKeyCode) {
  5715. return isKeyNotMatch(mappedKeyCode, eventKeyCode)
  5716. } else if (eventKeyName) {
  5717. return hyphenate(eventKeyName) !== key
  5718. }
  5719. }
  5720. /* */
  5721. /**
  5722. * Runtime helper for merging v-bind="object" into a VNode's data.
  5723. */
  5724. function bindObjectProps (
  5725. data,
  5726. tag,
  5727. value,
  5728. asProp,
  5729. isSync
  5730. ) {
  5731. if (value) {
  5732. if (!isObject(value)) {
  5733. true && warn(
  5734. 'v-bind without argument expects an Object or Array value',
  5735. this
  5736. );
  5737. } else {
  5738. if (Array.isArray(value)) {
  5739. value = toObject(value);
  5740. }
  5741. var hash;
  5742. var loop = function ( key ) {
  5743. if (
  5744. key === 'class' ||
  5745. key === 'style' ||
  5746. isReservedAttribute(key)
  5747. ) {
  5748. hash = data;
  5749. } else {
  5750. var type = data.attrs && data.attrs.type;
  5751. hash = asProp || config.mustUseProp(tag, type, key)
  5752. ? data.domProps || (data.domProps = {})
  5753. : data.attrs || (data.attrs = {});
  5754. }
  5755. var camelizedKey = camelize(key);
  5756. var hyphenatedKey = hyphenate(key);
  5757. if (!(camelizedKey in hash) && !(hyphenatedKey in hash)) {
  5758. hash[key] = value[key];
  5759. if (isSync) {
  5760. var on = data.on || (data.on = {});
  5761. on[("update:" + key)] = function ($event) {
  5762. value[key] = $event;
  5763. };
  5764. }
  5765. }
  5766. };
  5767. for (var key in value) loop( key );
  5768. }
  5769. }
  5770. return data
  5771. }
  5772. /* */
  5773. /**
  5774. * Runtime helper for rendering static trees.
  5775. */
  5776. function renderStatic (
  5777. index,
  5778. isInFor
  5779. ) {
  5780. var cached = this._staticTrees || (this._staticTrees = []);
  5781. var tree = cached[index];
  5782. // if has already-rendered static tree and not inside v-for,
  5783. // we can reuse the same tree.
  5784. if (tree && !isInFor) {
  5785. return tree
  5786. }
  5787. // otherwise, render a fresh tree.
  5788. tree = cached[index] = this.$options.staticRenderFns[index].call(
  5789. this._renderProxy,
  5790. null,
  5791. this // for render fns generated for functional component templates
  5792. );
  5793. markStatic(tree, ("__static__" + index), false);
  5794. return tree
  5795. }
  5796. /**
  5797. * Runtime helper for v-once.
  5798. * Effectively it means marking the node as static with a unique key.
  5799. */
  5800. function markOnce (
  5801. tree,
  5802. index,
  5803. key
  5804. ) {
  5805. markStatic(tree, ("__once__" + index + (key ? ("_" + key) : "")), true);
  5806. return tree
  5807. }
  5808. function markStatic (
  5809. tree,
  5810. key,
  5811. isOnce
  5812. ) {
  5813. if (Array.isArray(tree)) {
  5814. for (var i = 0; i < tree.length; i++) {
  5815. if (tree[i] && typeof tree[i] !== 'string') {
  5816. markStaticNode(tree[i], (key + "_" + i), isOnce);
  5817. }
  5818. }
  5819. } else {
  5820. markStaticNode(tree, key, isOnce);
  5821. }
  5822. }
  5823. function markStaticNode (node, key, isOnce) {
  5824. node.isStatic = true;
  5825. node.key = key;
  5826. node.isOnce = isOnce;
  5827. }
  5828. /* */
  5829. function bindObjectListeners (data, value) {
  5830. if (value) {
  5831. if (!isPlainObject(value)) {
  5832. true && warn(
  5833. 'v-on without argument expects an Object value',
  5834. this
  5835. );
  5836. } else {
  5837. var on = data.on = data.on ? extend({}, data.on) : {};
  5838. for (var key in value) {
  5839. var existing = on[key];
  5840. var ours = value[key];
  5841. on[key] = existing ? [].concat(existing, ours) : ours;
  5842. }
  5843. }
  5844. }
  5845. return data
  5846. }
  5847. /* */
  5848. function resolveScopedSlots (
  5849. fns, // see flow/vnode
  5850. res,
  5851. // the following are added in 2.6
  5852. hasDynamicKeys,
  5853. contentHashKey
  5854. ) {
  5855. res = res || { $stable: !hasDynamicKeys };
  5856. for (var i = 0; i < fns.length; i++) {
  5857. var slot = fns[i];
  5858. if (Array.isArray(slot)) {
  5859. resolveScopedSlots(slot, res, hasDynamicKeys);
  5860. } else if (slot) {
  5861. // marker for reverse proxying v-slot without scope on this.$slots
  5862. if (slot.proxy) {
  5863. slot.fn.proxy = true;
  5864. }
  5865. res[slot.key] = slot.fn;
  5866. }
  5867. }
  5868. if (contentHashKey) {
  5869. (res).$key = contentHashKey;
  5870. }
  5871. return res
  5872. }
  5873. /* */
  5874. function bindDynamicKeys (baseObj, values) {
  5875. for (var i = 0; i < values.length; i += 2) {
  5876. var key = values[i];
  5877. if (typeof key === 'string' && key) {
  5878. baseObj[values[i]] = values[i + 1];
  5879. } else if ( true && key !== '' && key !== null) {
  5880. // null is a special value for explicitly removing a binding
  5881. warn(
  5882. ("Invalid value for dynamic directive argument (expected string or null): " + key),
  5883. this
  5884. );
  5885. }
  5886. }
  5887. return baseObj
  5888. }
  5889. // helper to dynamically append modifier runtime markers to event names.
  5890. // ensure only append when value is already string, otherwise it will be cast
  5891. // to string and cause the type check to miss.
  5892. function prependModifier (value, symbol) {
  5893. return typeof value === 'string' ? symbol + value : value
  5894. }
  5895. /* */
  5896. function installRenderHelpers (target) {
  5897. target._o = markOnce;
  5898. target._n = toNumber;
  5899. target._s = toString;
  5900. target._l = renderList;
  5901. target._t = renderSlot;
  5902. target._q = looseEqual;
  5903. target._i = looseIndexOf;
  5904. target._m = renderStatic;
  5905. target._f = resolveFilter;
  5906. target._k = checkKeyCodes;
  5907. target._b = bindObjectProps;
  5908. target._v = createTextVNode;
  5909. target._e = createEmptyVNode;
  5910. target._u = resolveScopedSlots;
  5911. target._g = bindObjectListeners;
  5912. target._d = bindDynamicKeys;
  5913. target._p = prependModifier;
  5914. }
  5915. /* */
  5916. function FunctionalRenderContext (
  5917. data,
  5918. props,
  5919. children,
  5920. parent,
  5921. Ctor
  5922. ) {
  5923. var this$1 = this;
  5924. var options = Ctor.options;
  5925. // ensure the createElement function in functional components
  5926. // gets a unique context - this is necessary for correct named slot check
  5927. var contextVm;
  5928. if (hasOwn(parent, '_uid')) {
  5929. contextVm = Object.create(parent);
  5930. // $flow-disable-line
  5931. contextVm._original = parent;
  5932. } else {
  5933. // the context vm passed in is a functional context as well.
  5934. // in this case we want to make sure we are able to get a hold to the
  5935. // real context instance.
  5936. contextVm = parent;
  5937. // $flow-disable-line
  5938. parent = parent._original;
  5939. }
  5940. var isCompiled = isTrue(options._compiled);
  5941. var needNormalization = !isCompiled;
  5942. this.data = data;
  5943. this.props = props;
  5944. this.children = children;
  5945. this.parent = parent;
  5946. this.listeners = data.on || emptyObject;
  5947. this.injections = resolveInject(options.inject, parent);
  5948. this.slots = function () {
  5949. if (!this$1.$slots) {
  5950. normalizeScopedSlots(
  5951. data.scopedSlots,
  5952. this$1.$slots = resolveSlots(children, parent)
  5953. );
  5954. }
  5955. return this$1.$slots
  5956. };
  5957. Object.defineProperty(this, 'scopedSlots', ({
  5958. enumerable: true,
  5959. get: function get () {
  5960. return normalizeScopedSlots(data.scopedSlots, this.slots())
  5961. }
  5962. }));
  5963. // support for compiled functional template
  5964. if (isCompiled) {
  5965. // exposing $options for renderStatic()
  5966. this.$options = options;
  5967. // pre-resolve slots for renderSlot()
  5968. this.$slots = this.slots();
  5969. this.$scopedSlots = normalizeScopedSlots(data.scopedSlots, this.$slots);
  5970. }
  5971. if (options._scopeId) {
  5972. this._c = function (a, b, c, d) {
  5973. var vnode = createElement(contextVm, a, b, c, d, needNormalization);
  5974. if (vnode && !Array.isArray(vnode)) {
  5975. vnode.fnScopeId = options._scopeId;
  5976. vnode.fnContext = parent;
  5977. }
  5978. return vnode
  5979. };
  5980. } else {
  5981. this._c = function (a, b, c, d) { return createElement(contextVm, a, b, c, d, needNormalization); };
  5982. }
  5983. }
  5984. installRenderHelpers(FunctionalRenderContext.prototype);
  5985. function createFunctionalComponent (
  5986. Ctor,
  5987. propsData,
  5988. data,
  5989. contextVm,
  5990. children
  5991. ) {
  5992. var options = Ctor.options;
  5993. var props = {};
  5994. var propOptions = options.props;
  5995. if (isDef(propOptions)) {
  5996. for (var key in propOptions) {
  5997. props[key] = validateProp(key, propOptions, propsData || emptyObject);
  5998. }
  5999. } else {
  6000. if (isDef(data.attrs)) { mergeProps(props, data.attrs); }
  6001. if (isDef(data.props)) { mergeProps(props, data.props); }
  6002. }
  6003. var renderContext = new FunctionalRenderContext(
  6004. data,
  6005. props,
  6006. children,
  6007. contextVm,
  6008. Ctor
  6009. );
  6010. var vnode = options.render.call(null, renderContext._c, renderContext);
  6011. if (vnode instanceof VNode) {
  6012. return cloneAndMarkFunctionalResult(vnode, data, renderContext.parent, options, renderContext)
  6013. } else if (Array.isArray(vnode)) {
  6014. var vnodes = normalizeChildren(vnode) || [];
  6015. var res = new Array(vnodes.length);
  6016. for (var i = 0; i < vnodes.length; i++) {
  6017. res[i] = cloneAndMarkFunctionalResult(vnodes[i], data, renderContext.parent, options, renderContext);
  6018. }
  6019. return res
  6020. }
  6021. }
  6022. function cloneAndMarkFunctionalResult (vnode, data, contextVm, options, renderContext) {
  6023. // #7817 clone node before setting fnContext, otherwise if the node is reused
  6024. // (e.g. it was from a cached normal slot) the fnContext causes named slots
  6025. // that should not be matched to match.
  6026. var clone = cloneVNode(vnode);
  6027. clone.fnContext = contextVm;
  6028. clone.fnOptions = options;
  6029. if (true) {
  6030. (clone.devtoolsMeta = clone.devtoolsMeta || {}).renderContext = renderContext;
  6031. }
  6032. if (data.slot) {
  6033. (clone.data || (clone.data = {})).slot = data.slot;
  6034. }
  6035. return clone
  6036. }
  6037. function mergeProps (to, from) {
  6038. for (var key in from) {
  6039. to[camelize(key)] = from[key];
  6040. }
  6041. }
  6042. /* */
  6043. /* */
  6044. /* */
  6045. /* */
  6046. // inline hooks to be invoked on component VNodes during patch
  6047. var componentVNodeHooks = {
  6048. init: function init (vnode, hydrating) {
  6049. if (
  6050. vnode.componentInstance &&
  6051. !vnode.componentInstance._isDestroyed &&
  6052. vnode.data.keepAlive
  6053. ) {
  6054. // kept-alive components, treat as a patch
  6055. var mountedNode = vnode; // work around flow
  6056. componentVNodeHooks.prepatch(mountedNode, mountedNode);
  6057. } else {
  6058. var child = vnode.componentInstance = createComponentInstanceForVnode(
  6059. vnode,
  6060. activeInstance
  6061. );
  6062. child.$mount(hydrating ? vnode.elm : undefined, hydrating);
  6063. }
  6064. },
  6065. prepatch: function prepatch (oldVnode, vnode) {
  6066. var options = vnode.componentOptions;
  6067. var child = vnode.componentInstance = oldVnode.componentInstance;
  6068. updateChildComponent(
  6069. child,
  6070. options.propsData, // updated props
  6071. options.listeners, // updated listeners
  6072. vnode, // new parent vnode
  6073. options.children // new children
  6074. );
  6075. },
  6076. insert: function insert (vnode) {
  6077. var context = vnode.context;
  6078. var componentInstance = vnode.componentInstance;
  6079. if (!componentInstance._isMounted) {
  6080. callHook(componentInstance, 'onServiceCreated');
  6081. callHook(componentInstance, 'onServiceAttached');
  6082. componentInstance._isMounted = true;
  6083. callHook(componentInstance, 'mounted');
  6084. }
  6085. if (vnode.data.keepAlive) {
  6086. if (context._isMounted) {
  6087. // vue-router#1212
  6088. // During updates, a kept-alive component's child components may
  6089. // change, so directly walking the tree here may call activated hooks
  6090. // on incorrect children. Instead we push them into a queue which will
  6091. // be processed after the whole patch process ended.
  6092. queueActivatedComponent(componentInstance);
  6093. } else {
  6094. activateChildComponent(componentInstance, true /* direct */);
  6095. }
  6096. }
  6097. },
  6098. destroy: function destroy (vnode) {
  6099. var componentInstance = vnode.componentInstance;
  6100. if (!componentInstance._isDestroyed) {
  6101. if (!vnode.data.keepAlive) {
  6102. componentInstance.$destroy();
  6103. } else {
  6104. deactivateChildComponent(componentInstance, true /* direct */);
  6105. }
  6106. }
  6107. }
  6108. };
  6109. var hooksToMerge = Object.keys(componentVNodeHooks);
  6110. function createComponent (
  6111. Ctor,
  6112. data,
  6113. context,
  6114. children,
  6115. tag
  6116. ) {
  6117. if (isUndef(Ctor)) {
  6118. return
  6119. }
  6120. var baseCtor = context.$options._base;
  6121. // plain options object: turn it into a constructor
  6122. if (isObject(Ctor)) {
  6123. Ctor = baseCtor.extend(Ctor);
  6124. }
  6125. // if at this stage it's not a constructor or an async component factory,
  6126. // reject.
  6127. if (typeof Ctor !== 'function') {
  6128. if (true) {
  6129. warn(("Invalid Component definition: " + (String(Ctor))), context);
  6130. }
  6131. return
  6132. }
  6133. // async component
  6134. var asyncFactory;
  6135. if (isUndef(Ctor.cid)) {
  6136. asyncFactory = Ctor;
  6137. Ctor = resolveAsyncComponent(asyncFactory, baseCtor);
  6138. if (Ctor === undefined) {
  6139. // return a placeholder node for async component, which is rendered
  6140. // as a comment node but preserves all the raw information for the node.
  6141. // the information will be used for async server-rendering and hydration.
  6142. return createAsyncPlaceholder(
  6143. asyncFactory,
  6144. data,
  6145. context,
  6146. children,
  6147. tag
  6148. )
  6149. }
  6150. }
  6151. data = data || {};
  6152. // resolve constructor options in case global mixins are applied after
  6153. // component constructor creation
  6154. resolveConstructorOptions(Ctor);
  6155. // transform component v-model data into props & events
  6156. if (isDef(data.model)) {
  6157. transformModel(Ctor.options, data);
  6158. }
  6159. // extract props
  6160. var propsData = extractPropsFromVNodeData(data, Ctor, tag, context); // fixed by xxxxxx
  6161. // functional component
  6162. if (isTrue(Ctor.options.functional)) {
  6163. return createFunctionalComponent(Ctor, propsData, data, context, children)
  6164. }
  6165. // extract listeners, since these needs to be treated as
  6166. // child component listeners instead of DOM listeners
  6167. var listeners = data.on;
  6168. // replace with listeners with .native modifier
  6169. // so it gets processed during parent component patch.
  6170. data.on = data.nativeOn;
  6171. if (isTrue(Ctor.options.abstract)) {
  6172. // abstract components do not keep anything
  6173. // other than props & listeners & slot
  6174. // work around flow
  6175. var slot = data.slot;
  6176. data = {};
  6177. if (slot) {
  6178. data.slot = slot;
  6179. }
  6180. }
  6181. // install component management hooks onto the placeholder node
  6182. installComponentHooks(data);
  6183. // return a placeholder vnode
  6184. var name = Ctor.options.name || tag;
  6185. var vnode = new VNode(
  6186. ("vue-component-" + (Ctor.cid) + (name ? ("-" + name) : '')),
  6187. data, undefined, undefined, undefined, context,
  6188. { Ctor: Ctor, propsData: propsData, listeners: listeners, tag: tag, children: children },
  6189. asyncFactory
  6190. );
  6191. return vnode
  6192. }
  6193. function createComponentInstanceForVnode (
  6194. vnode, // we know it's MountedComponentVNode but flow doesn't
  6195. parent // activeInstance in lifecycle state
  6196. ) {
  6197. var options = {
  6198. _isComponent: true,
  6199. _parentVnode: vnode,
  6200. parent: parent
  6201. };
  6202. // check inline-template render functions
  6203. var inlineTemplate = vnode.data.inlineTemplate;
  6204. if (isDef(inlineTemplate)) {
  6205. options.render = inlineTemplate.render;
  6206. options.staticRenderFns = inlineTemplate.staticRenderFns;
  6207. }
  6208. return new vnode.componentOptions.Ctor(options)
  6209. }
  6210. function installComponentHooks (data) {
  6211. var hooks = data.hook || (data.hook = {});
  6212. for (var i = 0; i < hooksToMerge.length; i++) {
  6213. var key = hooksToMerge[i];
  6214. var existing = hooks[key];
  6215. var toMerge = componentVNodeHooks[key];
  6216. if (existing !== toMerge && !(existing && existing._merged)) {
  6217. hooks[key] = existing ? mergeHook$1(toMerge, existing) : toMerge;
  6218. }
  6219. }
  6220. }
  6221. function mergeHook$1 (f1, f2) {
  6222. var merged = function (a, b) {
  6223. // flow complains about extra args which is why we use any
  6224. f1(a, b);
  6225. f2(a, b);
  6226. };
  6227. merged._merged = true;
  6228. return merged
  6229. }
  6230. // transform component v-model info (value and callback) into
  6231. // prop and event handler respectively.
  6232. function transformModel (options, data) {
  6233. var prop = (options.model && options.model.prop) || 'value';
  6234. var event = (options.model && options.model.event) || 'input'
  6235. ;(data.attrs || (data.attrs = {}))[prop] = data.model.value;
  6236. var on = data.on || (data.on = {});
  6237. var existing = on[event];
  6238. var callback = data.model.callback;
  6239. if (isDef(existing)) {
  6240. if (
  6241. Array.isArray(existing)
  6242. ? existing.indexOf(callback) === -1
  6243. : existing !== callback
  6244. ) {
  6245. on[event] = [callback].concat(existing);
  6246. }
  6247. } else {
  6248. on[event] = callback;
  6249. }
  6250. }
  6251. /* */
  6252. var SIMPLE_NORMALIZE = 1;
  6253. var ALWAYS_NORMALIZE = 2;
  6254. // wrapper function for providing a more flexible interface
  6255. // without getting yelled at by flow
  6256. function createElement (
  6257. context,
  6258. tag,
  6259. data,
  6260. children,
  6261. normalizationType,
  6262. alwaysNormalize
  6263. ) {
  6264. if (Array.isArray(data) || isPrimitive(data)) {
  6265. normalizationType = children;
  6266. children = data;
  6267. data = undefined;
  6268. }
  6269. if (isTrue(alwaysNormalize)) {
  6270. normalizationType = ALWAYS_NORMALIZE;
  6271. }
  6272. return _createElement(context, tag, data, children, normalizationType)
  6273. }
  6274. function _createElement (
  6275. context,
  6276. tag,
  6277. data,
  6278. children,
  6279. normalizationType
  6280. ) {
  6281. if (isDef(data) && isDef((data).__ob__)) {
  6282. true && warn(
  6283. "Avoid using observed data object as vnode data: " + (JSON.stringify(data)) + "\n" +
  6284. 'Always create fresh vnode data objects in each render!',
  6285. context
  6286. );
  6287. return createEmptyVNode()
  6288. }
  6289. // object syntax in v-bind
  6290. if (isDef(data) && isDef(data.is)) {
  6291. tag = data.is;
  6292. }
  6293. if (!tag) {
  6294. // in case of component :is set to falsy value
  6295. return createEmptyVNode()
  6296. }
  6297. // warn against non-primitive key
  6298. if ( true &&
  6299. isDef(data) && isDef(data.key) && !isPrimitive(data.key)
  6300. ) {
  6301. {
  6302. warn(
  6303. 'Avoid using non-primitive value as key, ' +
  6304. 'use string/number value instead.',
  6305. context
  6306. );
  6307. }
  6308. }
  6309. // support single function children as default scoped slot
  6310. if (Array.isArray(children) &&
  6311. typeof children[0] === 'function'
  6312. ) {
  6313. data = data || {};
  6314. data.scopedSlots = { default: children[0] };
  6315. children.length = 0;
  6316. }
  6317. if (normalizationType === ALWAYS_NORMALIZE) {
  6318. children = normalizeChildren(children);
  6319. } else if (normalizationType === SIMPLE_NORMALIZE) {
  6320. children = simpleNormalizeChildren(children);
  6321. }
  6322. var vnode, ns;
  6323. if (typeof tag === 'string') {
  6324. var Ctor;
  6325. ns = (context.$vnode && context.$vnode.ns) || config.getTagNamespace(tag);
  6326. if (config.isReservedTag(tag)) {
  6327. // platform built-in elements
  6328. if ( true && isDef(data) && isDef(data.nativeOn)) {
  6329. warn(
  6330. ("The .native modifier for v-on is only valid on components but it was used on <" + tag + ">."),
  6331. context
  6332. );
  6333. }
  6334. vnode = new VNode(
  6335. config.parsePlatformTagName(tag), data, children,
  6336. undefined, undefined, context
  6337. );
  6338. } else if ((!data || !data.pre) && isDef(Ctor = resolveAsset(context.$options, 'components', tag))) {
  6339. // component
  6340. vnode = createComponent(Ctor, data, context, children, tag);
  6341. } else {
  6342. // unknown or unlisted namespaced elements
  6343. // check at runtime because it may get assigned a namespace when its
  6344. // parent normalizes children
  6345. vnode = new VNode(
  6346. tag, data, children,
  6347. undefined, undefined, context
  6348. );
  6349. }
  6350. } else {
  6351. // direct component options / constructor
  6352. vnode = createComponent(tag, data, context, children);
  6353. }
  6354. if (Array.isArray(vnode)) {
  6355. return vnode
  6356. } else if (isDef(vnode)) {
  6357. if (isDef(ns)) { applyNS(vnode, ns); }
  6358. if (isDef(data)) { registerDeepBindings(data); }
  6359. return vnode
  6360. } else {
  6361. return createEmptyVNode()
  6362. }
  6363. }
  6364. function applyNS (vnode, ns, force) {
  6365. vnode.ns = ns;
  6366. if (vnode.tag === 'foreignObject') {
  6367. // use default namespace inside foreignObject
  6368. ns = undefined;
  6369. force = true;
  6370. }
  6371. if (isDef(vnode.children)) {
  6372. for (var i = 0, l = vnode.children.length; i < l; i++) {
  6373. var child = vnode.children[i];
  6374. if (isDef(child.tag) && (
  6375. isUndef(child.ns) || (isTrue(force) && child.tag !== 'svg'))) {
  6376. applyNS(child, ns, force);
  6377. }
  6378. }
  6379. }
  6380. }
  6381. // ref #5318
  6382. // necessary to ensure parent re-render when deep bindings like :style and
  6383. // :class are used on slot nodes
  6384. function registerDeepBindings (data) {
  6385. if (isObject(data.style)) {
  6386. traverse(data.style);
  6387. }
  6388. if (isObject(data.class)) {
  6389. traverse(data.class);
  6390. }
  6391. }
  6392. /* */
  6393. function initRender (vm) {
  6394. vm._vnode = null; // the root of the child tree
  6395. vm._staticTrees = null; // v-once cached trees
  6396. var options = vm.$options;
  6397. var parentVnode = vm.$vnode = options._parentVnode; // the placeholder node in parent tree
  6398. var renderContext = parentVnode && parentVnode.context;
  6399. vm.$slots = resolveSlots(options._renderChildren, renderContext);
  6400. vm.$scopedSlots = emptyObject;
  6401. // bind the createElement fn to this instance
  6402. // so that we get proper render context inside it.
  6403. // args order: tag, data, children, normalizationType, alwaysNormalize
  6404. // internal version is used by render functions compiled from templates
  6405. vm._c = function (a, b, c, d) { return createElement(vm, a, b, c, d, false); };
  6406. // normalization is always applied for the public version, used in
  6407. // user-written render functions.
  6408. vm.$createElement = function (a, b, c, d) { return createElement(vm, a, b, c, d, true); };
  6409. // $attrs & $listeners are exposed for easier HOC creation.
  6410. // they need to be reactive so that HOCs using them are always updated
  6411. var parentData = parentVnode && parentVnode.data;
  6412. /* istanbul ignore else */
  6413. if (true) {
  6414. defineReactive$$1(vm, '$attrs', parentData && parentData.attrs || emptyObject, function () {
  6415. !isUpdatingChildComponent && warn("$attrs is readonly.", vm);
  6416. }, true);
  6417. defineReactive$$1(vm, '$listeners', options._parentListeners || emptyObject, function () {
  6418. !isUpdatingChildComponent && warn("$listeners is readonly.", vm);
  6419. }, true);
  6420. } else {}
  6421. }
  6422. var currentRenderingInstance = null;
  6423. function renderMixin (Vue) {
  6424. // install runtime convenience helpers
  6425. installRenderHelpers(Vue.prototype);
  6426. Vue.prototype.$nextTick = function (fn) {
  6427. return nextTick(fn, this)
  6428. };
  6429. Vue.prototype._render = function () {
  6430. var vm = this;
  6431. var ref = vm.$options;
  6432. var render = ref.render;
  6433. var _parentVnode = ref._parentVnode;
  6434. if (_parentVnode) {
  6435. vm.$scopedSlots = normalizeScopedSlots(
  6436. _parentVnode.data.scopedSlots,
  6437. vm.$slots,
  6438. vm.$scopedSlots
  6439. );
  6440. }
  6441. // set parent vnode. this allows render functions to have access
  6442. // to the data on the placeholder node.
  6443. vm.$vnode = _parentVnode;
  6444. // render self
  6445. var vnode;
  6446. try {
  6447. // There's no need to maintain a stack because all render fns are called
  6448. // separately from one another. Nested component's render fns are called
  6449. // when parent component is patched.
  6450. currentRenderingInstance = vm;
  6451. vnode = render.call(vm._renderProxy, vm.$createElement);
  6452. } catch (e) {
  6453. handleError(e, vm, "render");
  6454. // return error render result,
  6455. // or previous vnode to prevent render error causing blank component
  6456. /* istanbul ignore else */
  6457. if ( true && vm.$options.renderError) {
  6458. try {
  6459. vnode = vm.$options.renderError.call(vm._renderProxy, vm.$createElement, e);
  6460. } catch (e) {
  6461. handleError(e, vm, "renderError");
  6462. vnode = vm._vnode;
  6463. }
  6464. } else {
  6465. vnode = vm._vnode;
  6466. }
  6467. } finally {
  6468. currentRenderingInstance = null;
  6469. }
  6470. // if the returned array contains only a single node, allow it
  6471. if (Array.isArray(vnode) && vnode.length === 1) {
  6472. vnode = vnode[0];
  6473. }
  6474. // return empty vnode in case the render function errored out
  6475. if (!(vnode instanceof VNode)) {
  6476. if ( true && Array.isArray(vnode)) {
  6477. warn(
  6478. 'Multiple root nodes returned from render function. Render function ' +
  6479. 'should return a single root node.',
  6480. vm
  6481. );
  6482. }
  6483. vnode = createEmptyVNode();
  6484. }
  6485. // set parent
  6486. vnode.parent = _parentVnode;
  6487. return vnode
  6488. };
  6489. }
  6490. /* */
  6491. function ensureCtor (comp, base) {
  6492. if (
  6493. comp.__esModule ||
  6494. (hasSymbol && comp[Symbol.toStringTag] === 'Module')
  6495. ) {
  6496. comp = comp.default;
  6497. }
  6498. return isObject(comp)
  6499. ? base.extend(comp)
  6500. : comp
  6501. }
  6502. function createAsyncPlaceholder (
  6503. factory,
  6504. data,
  6505. context,
  6506. children,
  6507. tag
  6508. ) {
  6509. var node = createEmptyVNode();
  6510. node.asyncFactory = factory;
  6511. node.asyncMeta = { data: data, context: context, children: children, tag: tag };
  6512. return node
  6513. }
  6514. function resolveAsyncComponent (
  6515. factory,
  6516. baseCtor
  6517. ) {
  6518. if (isTrue(factory.error) && isDef(factory.errorComp)) {
  6519. return factory.errorComp
  6520. }
  6521. if (isDef(factory.resolved)) {
  6522. return factory.resolved
  6523. }
  6524. var owner = currentRenderingInstance;
  6525. if (owner && isDef(factory.owners) && factory.owners.indexOf(owner) === -1) {
  6526. // already pending
  6527. factory.owners.push(owner);
  6528. }
  6529. if (isTrue(factory.loading) && isDef(factory.loadingComp)) {
  6530. return factory.loadingComp
  6531. }
  6532. if (owner && !isDef(factory.owners)) {
  6533. var owners = factory.owners = [owner];
  6534. var sync = true;
  6535. var timerLoading = null;
  6536. var timerTimeout = null
  6537. ;(owner).$on('hook:destroyed', function () { return remove(owners, owner); });
  6538. var forceRender = function (renderCompleted) {
  6539. for (var i = 0, l = owners.length; i < l; i++) {
  6540. (owners[i]).$forceUpdate();
  6541. }
  6542. if (renderCompleted) {
  6543. owners.length = 0;
  6544. if (timerLoading !== null) {
  6545. clearTimeout(timerLoading);
  6546. timerLoading = null;
  6547. }
  6548. if (timerTimeout !== null) {
  6549. clearTimeout(timerTimeout);
  6550. timerTimeout = null;
  6551. }
  6552. }
  6553. };
  6554. var resolve = once(function (res) {
  6555. // cache resolved
  6556. factory.resolved = ensureCtor(res, baseCtor);
  6557. // invoke callbacks only if this is not a synchronous resolve
  6558. // (async resolves are shimmed as synchronous during SSR)
  6559. if (!sync) {
  6560. forceRender(true);
  6561. } else {
  6562. owners.length = 0;
  6563. }
  6564. });
  6565. var reject = once(function (reason) {
  6566. true && warn(
  6567. "Failed to resolve async component: " + (String(factory)) +
  6568. (reason ? ("\nReason: " + reason) : '')
  6569. );
  6570. if (isDef(factory.errorComp)) {
  6571. factory.error = true;
  6572. forceRender(true);
  6573. }
  6574. });
  6575. var res = factory(resolve, reject);
  6576. if (isObject(res)) {
  6577. if (isPromise(res)) {
  6578. // () => Promise
  6579. if (isUndef(factory.resolved)) {
  6580. res.then(resolve, reject);
  6581. }
  6582. } else if (isPromise(res.component)) {
  6583. res.component.then(resolve, reject);
  6584. if (isDef(res.error)) {
  6585. factory.errorComp = ensureCtor(res.error, baseCtor);
  6586. }
  6587. if (isDef(res.loading)) {
  6588. factory.loadingComp = ensureCtor(res.loading, baseCtor);
  6589. if (res.delay === 0) {
  6590. factory.loading = true;
  6591. } else {
  6592. timerLoading = setTimeout(function () {
  6593. timerLoading = null;
  6594. if (isUndef(factory.resolved) && isUndef(factory.error)) {
  6595. factory.loading = true;
  6596. forceRender(false);
  6597. }
  6598. }, res.delay || 200);
  6599. }
  6600. }
  6601. if (isDef(res.timeout)) {
  6602. timerTimeout = setTimeout(function () {
  6603. timerTimeout = null;
  6604. if (isUndef(factory.resolved)) {
  6605. reject(
  6606. true
  6607. ? ("timeout (" + (res.timeout) + "ms)")
  6608. : undefined
  6609. );
  6610. }
  6611. }, res.timeout);
  6612. }
  6613. }
  6614. }
  6615. sync = false;
  6616. // return in case resolved synchronously
  6617. return factory.loading
  6618. ? factory.loadingComp
  6619. : factory.resolved
  6620. }
  6621. }
  6622. /* */
  6623. function isAsyncPlaceholder (node) {
  6624. return node.isComment && node.asyncFactory
  6625. }
  6626. /* */
  6627. function getFirstComponentChild (children) {
  6628. if (Array.isArray(children)) {
  6629. for (var i = 0; i < children.length; i++) {
  6630. var c = children[i];
  6631. if (isDef(c) && (isDef(c.componentOptions) || isAsyncPlaceholder(c))) {
  6632. return c
  6633. }
  6634. }
  6635. }
  6636. }
  6637. /* */
  6638. /* */
  6639. function initEvents (vm) {
  6640. vm._events = Object.create(null);
  6641. vm._hasHookEvent = false;
  6642. // init parent attached events
  6643. var listeners = vm.$options._parentListeners;
  6644. if (listeners) {
  6645. updateComponentListeners(vm, listeners);
  6646. }
  6647. }
  6648. var target;
  6649. function add (event, fn) {
  6650. target.$on(event, fn);
  6651. }
  6652. function remove$1 (event, fn) {
  6653. target.$off(event, fn);
  6654. }
  6655. function createOnceHandler (event, fn) {
  6656. var _target = target;
  6657. return function onceHandler () {
  6658. var res = fn.apply(null, arguments);
  6659. if (res !== null) {
  6660. _target.$off(event, onceHandler);
  6661. }
  6662. }
  6663. }
  6664. function updateComponentListeners (
  6665. vm,
  6666. listeners,
  6667. oldListeners
  6668. ) {
  6669. target = vm;
  6670. updateListeners(listeners, oldListeners || {}, add, remove$1, createOnceHandler, vm);
  6671. target = undefined;
  6672. }
  6673. function eventsMixin (Vue) {
  6674. var hookRE = /^hook:/;
  6675. Vue.prototype.$on = function (event, fn) {
  6676. var vm = this;
  6677. if (Array.isArray(event)) {
  6678. for (var i = 0, l = event.length; i < l; i++) {
  6679. vm.$on(event[i], fn);
  6680. }
  6681. } else {
  6682. (vm._events[event] || (vm._events[event] = [])).push(fn);
  6683. // optimize hook:event cost by using a boolean flag marked at registration
  6684. // instead of a hash lookup
  6685. if (hookRE.test(event)) {
  6686. vm._hasHookEvent = true;
  6687. }
  6688. }
  6689. return vm
  6690. };
  6691. Vue.prototype.$once = function (event, fn) {
  6692. var vm = this;
  6693. function on () {
  6694. vm.$off(event, on);
  6695. fn.apply(vm, arguments);
  6696. }
  6697. on.fn = fn;
  6698. vm.$on(event, on);
  6699. return vm
  6700. };
  6701. Vue.prototype.$off = function (event, fn) {
  6702. var vm = this;
  6703. // all
  6704. if (!arguments.length) {
  6705. vm._events = Object.create(null);
  6706. return vm
  6707. }
  6708. // array of events
  6709. if (Array.isArray(event)) {
  6710. for (var i$1 = 0, l = event.length; i$1 < l; i$1++) {
  6711. vm.$off(event[i$1], fn);
  6712. }
  6713. return vm
  6714. }
  6715. // specific event
  6716. var cbs = vm._events[event];
  6717. if (!cbs) {
  6718. return vm
  6719. }
  6720. if (!fn) {
  6721. vm._events[event] = null;
  6722. return vm
  6723. }
  6724. // specific handler
  6725. var cb;
  6726. var i = cbs.length;
  6727. while (i--) {
  6728. cb = cbs[i];
  6729. if (cb === fn || cb.fn === fn) {
  6730. cbs.splice(i, 1);
  6731. break
  6732. }
  6733. }
  6734. return vm
  6735. };
  6736. Vue.prototype.$emit = function (event) {
  6737. var vm = this;
  6738. if (true) {
  6739. var lowerCaseEvent = event.toLowerCase();
  6740. if (lowerCaseEvent !== event && vm._events[lowerCaseEvent]) {
  6741. tip(
  6742. "Event \"" + lowerCaseEvent + "\" is emitted in component " +
  6743. (formatComponentName(vm)) + " but the handler is registered for \"" + event + "\". " +
  6744. "Note that HTML attributes are case-insensitive and you cannot use " +
  6745. "v-on to listen to camelCase events when using in-DOM templates. " +
  6746. "You should probably use \"" + (hyphenate(event)) + "\" instead of \"" + event + "\"."
  6747. );
  6748. }
  6749. }
  6750. var cbs = vm._events[event];
  6751. if (cbs) {
  6752. cbs = cbs.length > 1 ? toArray(cbs) : cbs;
  6753. var args = toArray(arguments, 1);
  6754. var info = "event handler for \"" + event + "\"";
  6755. for (var i = 0, l = cbs.length; i < l; i++) {
  6756. invokeWithErrorHandling(cbs[i], vm, args, vm, info);
  6757. }
  6758. }
  6759. return vm
  6760. };
  6761. }
  6762. /* */
  6763. var activeInstance = null;
  6764. var isUpdatingChildComponent = false;
  6765. function setActiveInstance(vm) {
  6766. var prevActiveInstance = activeInstance;
  6767. activeInstance = vm;
  6768. return function () {
  6769. activeInstance = prevActiveInstance;
  6770. }
  6771. }
  6772. function initLifecycle (vm) {
  6773. var options = vm.$options;
  6774. // locate first non-abstract parent
  6775. var parent = options.parent;
  6776. if (parent && !options.abstract) {
  6777. while (parent.$options.abstract && parent.$parent) {
  6778. parent = parent.$parent;
  6779. }
  6780. parent.$children.push(vm);
  6781. }
  6782. vm.$parent = parent;
  6783. vm.$root = parent ? parent.$root : vm;
  6784. vm.$children = [];
  6785. vm.$refs = {};
  6786. vm._watcher = null;
  6787. vm._inactive = null;
  6788. vm._directInactive = false;
  6789. vm._isMounted = false;
  6790. vm._isDestroyed = false;
  6791. vm._isBeingDestroyed = false;
  6792. }
  6793. function lifecycleMixin (Vue) {
  6794. Vue.prototype._update = function (vnode, hydrating) {
  6795. var vm = this;
  6796. var prevEl = vm.$el;
  6797. var prevVnode = vm._vnode;
  6798. var restoreActiveInstance = setActiveInstance(vm);
  6799. vm._vnode = vnode;
  6800. // Vue.prototype.__patch__ is injected in entry points
  6801. // based on the rendering backend used.
  6802. if (!prevVnode) {
  6803. // initial render
  6804. vm.$el = vm.__patch__(vm.$el, vnode, hydrating, false /* removeOnly */);
  6805. } else {
  6806. // updates
  6807. vm.$el = vm.__patch__(prevVnode, vnode);
  6808. }
  6809. restoreActiveInstance();
  6810. // update __vue__ reference
  6811. if (prevEl) {
  6812. prevEl.__vue__ = null;
  6813. }
  6814. if (vm.$el) {
  6815. vm.$el.__vue__ = vm;
  6816. }
  6817. // if parent is an HOC, update its $el as well
  6818. if (vm.$vnode && vm.$parent && vm.$vnode === vm.$parent._vnode) {
  6819. vm.$parent.$el = vm.$el;
  6820. }
  6821. // updated hook is called by the scheduler to ensure that children are
  6822. // updated in a parent's updated hook.
  6823. };
  6824. Vue.prototype.$forceUpdate = function () {
  6825. var vm = this;
  6826. if (vm._watcher) {
  6827. vm._watcher.update();
  6828. }
  6829. };
  6830. Vue.prototype.$destroy = function () {
  6831. var vm = this;
  6832. if (vm._isBeingDestroyed) {
  6833. return
  6834. }
  6835. callHook(vm, 'beforeDestroy');
  6836. vm._isBeingDestroyed = true;
  6837. // remove self from parent
  6838. var parent = vm.$parent;
  6839. if (parent && !parent._isBeingDestroyed && !vm.$options.abstract) {
  6840. remove(parent.$children, vm);
  6841. }
  6842. // teardown watchers
  6843. if (vm._watcher) {
  6844. vm._watcher.teardown();
  6845. }
  6846. var i = vm._watchers.length;
  6847. while (i--) {
  6848. vm._watchers[i].teardown();
  6849. }
  6850. // remove reference from data ob
  6851. // frozen object may not have observer.
  6852. if (vm._data.__ob__) {
  6853. vm._data.__ob__.vmCount--;
  6854. }
  6855. // call the last hook...
  6856. vm._isDestroyed = true;
  6857. // invoke destroy hooks on current rendered tree
  6858. vm.__patch__(vm._vnode, null);
  6859. // fire destroyed hook
  6860. callHook(vm, 'destroyed');
  6861. // turn off all instance listeners.
  6862. vm.$off();
  6863. // remove __vue__ reference
  6864. if (vm.$el) {
  6865. vm.$el.__vue__ = null;
  6866. }
  6867. // release circular reference (#6759)
  6868. if (vm.$vnode) {
  6869. vm.$vnode.parent = null;
  6870. }
  6871. };
  6872. }
  6873. function updateChildComponent (
  6874. vm,
  6875. propsData,
  6876. listeners,
  6877. parentVnode,
  6878. renderChildren
  6879. ) {
  6880. if (true) {
  6881. isUpdatingChildComponent = true;
  6882. }
  6883. // determine whether component has slot children
  6884. // we need to do this before overwriting $options._renderChildren.
  6885. // check if there are dynamic scopedSlots (hand-written or compiled but with
  6886. // dynamic slot names). Static scoped slots compiled from template has the
  6887. // "$stable" marker.
  6888. var newScopedSlots = parentVnode.data.scopedSlots;
  6889. var oldScopedSlots = vm.$scopedSlots;
  6890. var hasDynamicScopedSlot = !!(
  6891. (newScopedSlots && !newScopedSlots.$stable) ||
  6892. (oldScopedSlots !== emptyObject && !oldScopedSlots.$stable) ||
  6893. (newScopedSlots && vm.$scopedSlots.$key !== newScopedSlots.$key)
  6894. );
  6895. // Any static slot children from the parent may have changed during parent's
  6896. // update. Dynamic scoped slots may also have changed. In such cases, a forced
  6897. // update is necessary to ensure correctness.
  6898. var needsForceUpdate = !!(
  6899. renderChildren || // has new static slots
  6900. vm.$options._renderChildren || // has old static slots
  6901. hasDynamicScopedSlot
  6902. );
  6903. vm.$options._parentVnode = parentVnode;
  6904. vm.$vnode = parentVnode; // update vm's placeholder node without re-render
  6905. if (vm._vnode) { // update child tree's parent
  6906. vm._vnode.parent = parentVnode;
  6907. }
  6908. vm.$options._renderChildren = renderChildren;
  6909. // update $attrs and $listeners hash
  6910. // these are also reactive so they may trigger child update if the child
  6911. // used them during render
  6912. vm.$attrs = parentVnode.data.attrs || emptyObject;
  6913. vm.$listeners = listeners || emptyObject;
  6914. // update props
  6915. if (propsData && vm.$options.props) {
  6916. toggleObserving(false);
  6917. var props = vm._props;
  6918. var propKeys = vm.$options._propKeys || [];
  6919. for (var i = 0; i < propKeys.length; i++) {
  6920. var key = propKeys[i];
  6921. var propOptions = vm.$options.props; // wtf flow?
  6922. props[key] = validateProp(key, propOptions, propsData, vm);
  6923. }
  6924. toggleObserving(true);
  6925. // keep a copy of raw propsData
  6926. vm.$options.propsData = propsData;
  6927. }
  6928. // fixed by xxxxxx update properties(mp runtime)
  6929. vm._$updateProperties && vm._$updateProperties(vm);
  6930. // update listeners
  6931. listeners = listeners || emptyObject;
  6932. var oldListeners = vm.$options._parentListeners;
  6933. vm.$options._parentListeners = listeners;
  6934. updateComponentListeners(vm, listeners, oldListeners);
  6935. // resolve slots + force update if has children
  6936. if (needsForceUpdate) {
  6937. vm.$slots = resolveSlots(renderChildren, parentVnode.context);
  6938. vm.$forceUpdate();
  6939. }
  6940. if (true) {
  6941. isUpdatingChildComponent = false;
  6942. }
  6943. }
  6944. function isInInactiveTree (vm) {
  6945. while (vm && (vm = vm.$parent)) {
  6946. if (vm._inactive) { return true }
  6947. }
  6948. return false
  6949. }
  6950. function activateChildComponent (vm, direct) {
  6951. if (direct) {
  6952. vm._directInactive = false;
  6953. if (isInInactiveTree(vm)) {
  6954. return
  6955. }
  6956. } else if (vm._directInactive) {
  6957. return
  6958. }
  6959. if (vm._inactive || vm._inactive === null) {
  6960. vm._inactive = false;
  6961. for (var i = 0; i < vm.$children.length; i++) {
  6962. activateChildComponent(vm.$children[i]);
  6963. }
  6964. callHook(vm, 'activated');
  6965. }
  6966. }
  6967. function deactivateChildComponent (vm, direct) {
  6968. if (direct) {
  6969. vm._directInactive = true;
  6970. if (isInInactiveTree(vm)) {
  6971. return
  6972. }
  6973. }
  6974. if (!vm._inactive) {
  6975. vm._inactive = true;
  6976. for (var i = 0; i < vm.$children.length; i++) {
  6977. deactivateChildComponent(vm.$children[i]);
  6978. }
  6979. callHook(vm, 'deactivated');
  6980. }
  6981. }
  6982. function callHook (vm, hook) {
  6983. // #7573 disable dep collection when invoking lifecycle hooks
  6984. pushTarget();
  6985. var handlers = vm.$options[hook];
  6986. var info = hook + " hook";
  6987. if (handlers) {
  6988. for (var i = 0, j = handlers.length; i < j; i++) {
  6989. invokeWithErrorHandling(handlers[i], vm, null, vm, info);
  6990. }
  6991. }
  6992. if (vm._hasHookEvent) {
  6993. vm.$emit('hook:' + hook);
  6994. }
  6995. popTarget();
  6996. }
  6997. /* */
  6998. var MAX_UPDATE_COUNT = 100;
  6999. var queue = [];
  7000. var activatedChildren = [];
  7001. var has = {};
  7002. var circular = {};
  7003. var waiting = false;
  7004. var flushing = false;
  7005. var index = 0;
  7006. /**
  7007. * Reset the scheduler's state.
  7008. */
  7009. function resetSchedulerState () {
  7010. index = queue.length = activatedChildren.length = 0;
  7011. has = {};
  7012. if (true) {
  7013. circular = {};
  7014. }
  7015. waiting = flushing = false;
  7016. }
  7017. // Async edge case #6566 requires saving the timestamp when event listeners are
  7018. // attached. However, calling performance.now() has a perf overhead especially
  7019. // if the page has thousands of event listeners. Instead, we take a timestamp
  7020. // every time the scheduler flushes and use that for all event listeners
  7021. // attached during that flush.
  7022. var currentFlushTimestamp = 0;
  7023. // Async edge case fix requires storing an event listener's attach timestamp.
  7024. var getNow = Date.now;
  7025. // Determine what event timestamp the browser is using. Annoyingly, the
  7026. // timestamp can either be hi-res (relative to page load) or low-res
  7027. // (relative to UNIX epoch), so in order to compare time we have to use the
  7028. // same timestamp type when saving the flush timestamp.
  7029. // All IE versions use low-res event timestamps, and have problematic clock
  7030. // implementations (#9632)
  7031. if (inBrowser && !isIE) {
  7032. var performance = window.performance;
  7033. if (
  7034. performance &&
  7035. typeof performance.now === 'function' &&
  7036. getNow() > document.createEvent('Event').timeStamp
  7037. ) {
  7038. // if the event timestamp, although evaluated AFTER the Date.now(), is
  7039. // smaller than it, it means the event is using a hi-res timestamp,
  7040. // and we need to use the hi-res version for event listener timestamps as
  7041. // well.
  7042. getNow = function () { return performance.now(); };
  7043. }
  7044. }
  7045. /**
  7046. * Flush both queues and run the watchers.
  7047. */
  7048. function flushSchedulerQueue () {
  7049. currentFlushTimestamp = getNow();
  7050. flushing = true;
  7051. var watcher, id;
  7052. // Sort queue before flush.
  7053. // This ensures that:
  7054. // 1. Components are updated from parent to child. (because parent is always
  7055. // created before the child)
  7056. // 2. A component's user watchers are run before its render watcher (because
  7057. // user watchers are created before the render watcher)
  7058. // 3. If a component is destroyed during a parent component's watcher run,
  7059. // its watchers can be skipped.
  7060. queue.sort(function (a, b) { return a.id - b.id; });
  7061. // do not cache length because more watchers might be pushed
  7062. // as we run existing watchers
  7063. for (index = 0; index < queue.length; index++) {
  7064. watcher = queue[index];
  7065. if (watcher.before) {
  7066. watcher.before();
  7067. }
  7068. id = watcher.id;
  7069. has[id] = null;
  7070. watcher.run();
  7071. // in dev build, check and stop circular updates.
  7072. if ( true && has[id] != null) {
  7073. circular[id] = (circular[id] || 0) + 1;
  7074. if (circular[id] > MAX_UPDATE_COUNT) {
  7075. warn(
  7076. 'You may have an infinite update loop ' + (
  7077. watcher.user
  7078. ? ("in watcher with expression \"" + (watcher.expression) + "\"")
  7079. : "in a component render function."
  7080. ),
  7081. watcher.vm
  7082. );
  7083. break
  7084. }
  7085. }
  7086. }
  7087. // keep copies of post queues before resetting state
  7088. var activatedQueue = activatedChildren.slice();
  7089. var updatedQueue = queue.slice();
  7090. resetSchedulerState();
  7091. // call component updated and activated hooks
  7092. callActivatedHooks(activatedQueue);
  7093. callUpdatedHooks(updatedQueue);
  7094. // devtool hook
  7095. /* istanbul ignore if */
  7096. if (devtools && config.devtools) {
  7097. devtools.emit('flush');
  7098. }
  7099. }
  7100. function callUpdatedHooks (queue) {
  7101. var i = queue.length;
  7102. while (i--) {
  7103. var watcher = queue[i];
  7104. var vm = watcher.vm;
  7105. if (vm._watcher === watcher && vm._isMounted && !vm._isDestroyed) {
  7106. callHook(vm, 'updated');
  7107. }
  7108. }
  7109. }
  7110. /**
  7111. * Queue a kept-alive component that was activated during patch.
  7112. * The queue will be processed after the entire tree has been patched.
  7113. */
  7114. function queueActivatedComponent (vm) {
  7115. // setting _inactive to false here so that a render function can
  7116. // rely on checking whether it's in an inactive tree (e.g. router-view)
  7117. vm._inactive = false;
  7118. activatedChildren.push(vm);
  7119. }
  7120. function callActivatedHooks (queue) {
  7121. for (var i = 0; i < queue.length; i++) {
  7122. queue[i]._inactive = true;
  7123. activateChildComponent(queue[i], true /* true */);
  7124. }
  7125. }
  7126. /**
  7127. * Push a watcher into the watcher queue.
  7128. * Jobs with duplicate IDs will be skipped unless it's
  7129. * pushed when the queue is being flushed.
  7130. */
  7131. function queueWatcher (watcher) {
  7132. var id = watcher.id;
  7133. if (has[id] == null) {
  7134. has[id] = true;
  7135. if (!flushing) {
  7136. queue.push(watcher);
  7137. } else {
  7138. // if already flushing, splice the watcher based on its id
  7139. // if already past its id, it will be run next immediately.
  7140. var i = queue.length - 1;
  7141. while (i > index && queue[i].id > watcher.id) {
  7142. i--;
  7143. }
  7144. queue.splice(i + 1, 0, watcher);
  7145. }
  7146. // queue the flush
  7147. if (!waiting) {
  7148. waiting = true;
  7149. if ( true && !config.async) {
  7150. flushSchedulerQueue();
  7151. return
  7152. }
  7153. nextTick(flushSchedulerQueue);
  7154. }
  7155. }
  7156. }
  7157. /* */
  7158. var uid$2 = 0;
  7159. /**
  7160. * A watcher parses an expression, collects dependencies,
  7161. * and fires callback when the expression value changes.
  7162. * This is used for both the $watch() api and directives.
  7163. */
  7164. var Watcher = function Watcher (
  7165. vm,
  7166. expOrFn,
  7167. cb,
  7168. options,
  7169. isRenderWatcher
  7170. ) {
  7171. this.vm = vm;
  7172. if (isRenderWatcher) {
  7173. vm._watcher = this;
  7174. }
  7175. vm._watchers.push(this);
  7176. // options
  7177. if (options) {
  7178. this.deep = !!options.deep;
  7179. this.user = !!options.user;
  7180. this.lazy = !!options.lazy;
  7181. this.sync = !!options.sync;
  7182. this.before = options.before;
  7183. } else {
  7184. this.deep = this.user = this.lazy = this.sync = false;
  7185. }
  7186. this.cb = cb;
  7187. this.id = ++uid$2; // uid for batching
  7188. this.active = true;
  7189. this.dirty = this.lazy; // for lazy watchers
  7190. this.deps = [];
  7191. this.newDeps = [];
  7192. this.depIds = new _Set();
  7193. this.newDepIds = new _Set();
  7194. this.expression = true
  7195. ? expOrFn.toString()
  7196. : undefined;
  7197. // parse expression for getter
  7198. if (typeof expOrFn === 'function') {
  7199. this.getter = expOrFn;
  7200. } else {
  7201. this.getter = parsePath(expOrFn);
  7202. if (!this.getter) {
  7203. this.getter = noop;
  7204. true && warn(
  7205. "Failed watching path: \"" + expOrFn + "\" " +
  7206. 'Watcher only accepts simple dot-delimited paths. ' +
  7207. 'For full control, use a function instead.',
  7208. vm
  7209. );
  7210. }
  7211. }
  7212. this.value = this.lazy
  7213. ? undefined
  7214. : this.get();
  7215. };
  7216. /**
  7217. * Evaluate the getter, and re-collect dependencies.
  7218. */
  7219. Watcher.prototype.get = function get () {
  7220. pushTarget(this);
  7221. var value;
  7222. var vm = this.vm;
  7223. try {
  7224. value = this.getter.call(vm, vm);
  7225. } catch (e) {
  7226. if (this.user) {
  7227. handleError(e, vm, ("getter for watcher \"" + (this.expression) + "\""));
  7228. } else {
  7229. throw e
  7230. }
  7231. } finally {
  7232. // "touch" every property so they are all tracked as
  7233. // dependencies for deep watching
  7234. if (this.deep) {
  7235. traverse(value);
  7236. }
  7237. popTarget();
  7238. this.cleanupDeps();
  7239. }
  7240. return value
  7241. };
  7242. /**
  7243. * Add a dependency to this directive.
  7244. */
  7245. Watcher.prototype.addDep = function addDep (dep) {
  7246. var id = dep.id;
  7247. if (!this.newDepIds.has(id)) {
  7248. this.newDepIds.add(id);
  7249. this.newDeps.push(dep);
  7250. if (!this.depIds.has(id)) {
  7251. dep.addSub(this);
  7252. }
  7253. }
  7254. };
  7255. /**
  7256. * Clean up for dependency collection.
  7257. */
  7258. Watcher.prototype.cleanupDeps = function cleanupDeps () {
  7259. var i = this.deps.length;
  7260. while (i--) {
  7261. var dep = this.deps[i];
  7262. if (!this.newDepIds.has(dep.id)) {
  7263. dep.removeSub(this);
  7264. }
  7265. }
  7266. var tmp = this.depIds;
  7267. this.depIds = this.newDepIds;
  7268. this.newDepIds = tmp;
  7269. this.newDepIds.clear();
  7270. tmp = this.deps;
  7271. this.deps = this.newDeps;
  7272. this.newDeps = tmp;
  7273. this.newDeps.length = 0;
  7274. };
  7275. /**
  7276. * Subscriber interface.
  7277. * Will be called when a dependency changes.
  7278. */
  7279. Watcher.prototype.update = function update () {
  7280. /* istanbul ignore else */
  7281. if (this.lazy) {
  7282. this.dirty = true;
  7283. } else if (this.sync) {
  7284. this.run();
  7285. } else {
  7286. queueWatcher(this);
  7287. }
  7288. };
  7289. /**
  7290. * Scheduler job interface.
  7291. * Will be called by the scheduler.
  7292. */
  7293. Watcher.prototype.run = function run () {
  7294. if (this.active) {
  7295. var value = this.get();
  7296. if (
  7297. value !== this.value ||
  7298. // Deep watchers and watchers on Object/Arrays should fire even
  7299. // when the value is the same, because the value may
  7300. // have mutated.
  7301. isObject(value) ||
  7302. this.deep
  7303. ) {
  7304. // set new value
  7305. var oldValue = this.value;
  7306. this.value = value;
  7307. if (this.user) {
  7308. try {
  7309. this.cb.call(this.vm, value, oldValue);
  7310. } catch (e) {
  7311. handleError(e, this.vm, ("callback for watcher \"" + (this.expression) + "\""));
  7312. }
  7313. } else {
  7314. this.cb.call(this.vm, value, oldValue);
  7315. }
  7316. }
  7317. }
  7318. };
  7319. /**
  7320. * Evaluate the value of the watcher.
  7321. * This only gets called for lazy watchers.
  7322. */
  7323. Watcher.prototype.evaluate = function evaluate () {
  7324. this.value = this.get();
  7325. this.dirty = false;
  7326. };
  7327. /**
  7328. * Depend on all deps collected by this watcher.
  7329. */
  7330. Watcher.prototype.depend = function depend () {
  7331. var i = this.deps.length;
  7332. while (i--) {
  7333. this.deps[i].depend();
  7334. }
  7335. };
  7336. /**
  7337. * Remove self from all dependencies' subscriber list.
  7338. */
  7339. Watcher.prototype.teardown = function teardown () {
  7340. if (this.active) {
  7341. // remove self from vm's watcher list
  7342. // this is a somewhat expensive operation so we skip it
  7343. // if the vm is being destroyed.
  7344. if (!this.vm._isBeingDestroyed) {
  7345. remove(this.vm._watchers, this);
  7346. }
  7347. var i = this.deps.length;
  7348. while (i--) {
  7349. this.deps[i].removeSub(this);
  7350. }
  7351. this.active = false;
  7352. }
  7353. };
  7354. /* */
  7355. var sharedPropertyDefinition = {
  7356. enumerable: true,
  7357. configurable: true,
  7358. get: noop,
  7359. set: noop
  7360. };
  7361. function proxy (target, sourceKey, key) {
  7362. sharedPropertyDefinition.get = function proxyGetter () {
  7363. return this[sourceKey][key]
  7364. };
  7365. sharedPropertyDefinition.set = function proxySetter (val) {
  7366. this[sourceKey][key] = val;
  7367. };
  7368. Object.defineProperty(target, key, sharedPropertyDefinition);
  7369. }
  7370. function initState (vm) {
  7371. vm._watchers = [];
  7372. var opts = vm.$options;
  7373. if (opts.props) { initProps(vm, opts.props); }
  7374. if (opts.methods) { initMethods(vm, opts.methods); }
  7375. if (opts.data) {
  7376. initData(vm);
  7377. } else {
  7378. observe(vm._data = {}, true /* asRootData */);
  7379. }
  7380. if (opts.computed) { initComputed(vm, opts.computed); }
  7381. if (opts.watch && opts.watch !== nativeWatch) {
  7382. initWatch(vm, opts.watch);
  7383. }
  7384. }
  7385. function initProps (vm, propsOptions) {
  7386. var propsData = vm.$options.propsData || {};
  7387. var props = vm._props = {};
  7388. // cache prop keys so that future props updates can iterate using Array
  7389. // instead of dynamic object key enumeration.
  7390. var keys = vm.$options._propKeys = [];
  7391. var isRoot = !vm.$parent;
  7392. // root instance props should be converted
  7393. if (!isRoot) {
  7394. toggleObserving(false);
  7395. }
  7396. var loop = function ( key ) {
  7397. keys.push(key);
  7398. var value = validateProp(key, propsOptions, propsData, vm);
  7399. /* istanbul ignore else */
  7400. if (true) {
  7401. var hyphenatedKey = hyphenate(key);
  7402. if (isReservedAttribute(hyphenatedKey) ||
  7403. config.isReservedAttr(hyphenatedKey)) {
  7404. warn(
  7405. ("\"" + hyphenatedKey + "\" is a reserved attribute and cannot be used as component prop."),
  7406. vm
  7407. );
  7408. }
  7409. defineReactive$$1(props, key, value, function () {
  7410. if (!isRoot && !isUpdatingChildComponent) {
  7411. {
  7412. if(vm.mpHost === 'mp-baidu' || vm.mpHost === 'mp-kuaishou' || vm.mpHost === 'mp-xhs'){//百度、快手、小红书 observer 在 setData callback 之后触发,直接忽略该 warn
  7413. return
  7414. }
  7415. //fixed by xxxxxx __next_tick_pending,uni://form-field 时不告警
  7416. if(
  7417. key === 'value' &&
  7418. Array.isArray(vm.$options.behaviors) &&
  7419. vm.$options.behaviors.indexOf('uni://form-field') !== -1
  7420. ){
  7421. return
  7422. }
  7423. if(vm._getFormData){
  7424. return
  7425. }
  7426. var $parent = vm.$parent;
  7427. while($parent){
  7428. if($parent.__next_tick_pending){
  7429. return
  7430. }
  7431. $parent = $parent.$parent;
  7432. }
  7433. }
  7434. warn(
  7435. "Avoid mutating a prop directly since the value will be " +
  7436. "overwritten whenever the parent component re-renders. " +
  7437. "Instead, use a data or computed property based on the prop's " +
  7438. "value. Prop being mutated: \"" + key + "\"",
  7439. vm
  7440. );
  7441. }
  7442. });
  7443. } else {}
  7444. // static props are already proxied on the component's prototype
  7445. // during Vue.extend(). We only need to proxy props defined at
  7446. // instantiation here.
  7447. if (!(key in vm)) {
  7448. proxy(vm, "_props", key);
  7449. }
  7450. };
  7451. for (var key in propsOptions) loop( key );
  7452. toggleObserving(true);
  7453. }
  7454. function initData (vm) {
  7455. var data = vm.$options.data;
  7456. data = vm._data = typeof data === 'function'
  7457. ? getData(data, vm)
  7458. : data || {};
  7459. if (!isPlainObject(data)) {
  7460. data = {};
  7461. true && warn(
  7462. 'data functions should return an object:\n' +
  7463. 'https://vuejs.org/v2/guide/components.html#data-Must-Be-a-Function',
  7464. vm
  7465. );
  7466. }
  7467. // proxy data on instance
  7468. var keys = Object.keys(data);
  7469. var props = vm.$options.props;
  7470. var methods = vm.$options.methods;
  7471. var i = keys.length;
  7472. while (i--) {
  7473. var key = keys[i];
  7474. if (true) {
  7475. if (methods && hasOwn(methods, key)) {
  7476. warn(
  7477. ("Method \"" + key + "\" has already been defined as a data property."),
  7478. vm
  7479. );
  7480. }
  7481. }
  7482. if (props && hasOwn(props, key)) {
  7483. true && warn(
  7484. "The data property \"" + key + "\" is already declared as a prop. " +
  7485. "Use prop default value instead.",
  7486. vm
  7487. );
  7488. } else if (!isReserved(key)) {
  7489. proxy(vm, "_data", key);
  7490. }
  7491. }
  7492. // observe data
  7493. observe(data, true /* asRootData */);
  7494. }
  7495. function getData (data, vm) {
  7496. // #7573 disable dep collection when invoking data getters
  7497. pushTarget();
  7498. try {
  7499. return data.call(vm, vm)
  7500. } catch (e) {
  7501. handleError(e, vm, "data()");
  7502. return {}
  7503. } finally {
  7504. popTarget();
  7505. }
  7506. }
  7507. var computedWatcherOptions = { lazy: true };
  7508. function initComputed (vm, computed) {
  7509. // $flow-disable-line
  7510. var watchers = vm._computedWatchers = Object.create(null);
  7511. // computed properties are just getters during SSR
  7512. var isSSR = isServerRendering();
  7513. for (var key in computed) {
  7514. var userDef = computed[key];
  7515. var getter = typeof userDef === 'function' ? userDef : userDef.get;
  7516. if ( true && getter == null) {
  7517. warn(
  7518. ("Getter is missing for computed property \"" + key + "\"."),
  7519. vm
  7520. );
  7521. }
  7522. if (!isSSR) {
  7523. // create internal watcher for the computed property.
  7524. watchers[key] = new Watcher(
  7525. vm,
  7526. getter || noop,
  7527. noop,
  7528. computedWatcherOptions
  7529. );
  7530. }
  7531. // component-defined computed properties are already defined on the
  7532. // component prototype. We only need to define computed properties defined
  7533. // at instantiation here.
  7534. if (!(key in vm)) {
  7535. defineComputed(vm, key, userDef);
  7536. } else if (true) {
  7537. if (key in vm.$data) {
  7538. warn(("The computed property \"" + key + "\" is already defined in data."), vm);
  7539. } else if (vm.$options.props && key in vm.$options.props) {
  7540. warn(("The computed property \"" + key + "\" is already defined as a prop."), vm);
  7541. }
  7542. }
  7543. }
  7544. }
  7545. function defineComputed (
  7546. target,
  7547. key,
  7548. userDef
  7549. ) {
  7550. var shouldCache = !isServerRendering();
  7551. if (typeof userDef === 'function') {
  7552. sharedPropertyDefinition.get = shouldCache
  7553. ? createComputedGetter(key)
  7554. : createGetterInvoker(userDef);
  7555. sharedPropertyDefinition.set = noop;
  7556. } else {
  7557. sharedPropertyDefinition.get = userDef.get
  7558. ? shouldCache && userDef.cache !== false
  7559. ? createComputedGetter(key)
  7560. : createGetterInvoker(userDef.get)
  7561. : noop;
  7562. sharedPropertyDefinition.set = userDef.set || noop;
  7563. }
  7564. if ( true &&
  7565. sharedPropertyDefinition.set === noop) {
  7566. sharedPropertyDefinition.set = function () {
  7567. warn(
  7568. ("Computed property \"" + key + "\" was assigned to but it has no setter."),
  7569. this
  7570. );
  7571. };
  7572. }
  7573. Object.defineProperty(target, key, sharedPropertyDefinition);
  7574. }
  7575. function createComputedGetter (key) {
  7576. return function computedGetter () {
  7577. var watcher = this._computedWatchers && this._computedWatchers[key];
  7578. if (watcher) {
  7579. if (watcher.dirty) {
  7580. watcher.evaluate();
  7581. }
  7582. if (Dep.SharedObject.target) {// fixed by xxxxxx
  7583. watcher.depend();
  7584. }
  7585. return watcher.value
  7586. }
  7587. }
  7588. }
  7589. function createGetterInvoker(fn) {
  7590. return function computedGetter () {
  7591. return fn.call(this, this)
  7592. }
  7593. }
  7594. function initMethods (vm, methods) {
  7595. var props = vm.$options.props;
  7596. for (var key in methods) {
  7597. if (true) {
  7598. if (typeof methods[key] !== 'function') {
  7599. warn(
  7600. "Method \"" + key + "\" has type \"" + (typeof methods[key]) + "\" in the component definition. " +
  7601. "Did you reference the function correctly?",
  7602. vm
  7603. );
  7604. }
  7605. if (props && hasOwn(props, key)) {
  7606. warn(
  7607. ("Method \"" + key + "\" has already been defined as a prop."),
  7608. vm
  7609. );
  7610. }
  7611. if ((key in vm) && isReserved(key)) {
  7612. warn(
  7613. "Method \"" + key + "\" conflicts with an existing Vue instance method. " +
  7614. "Avoid defining component methods that start with _ or $."
  7615. );
  7616. }
  7617. }
  7618. vm[key] = typeof methods[key] !== 'function' ? noop : bind(methods[key], vm);
  7619. }
  7620. }
  7621. function initWatch (vm, watch) {
  7622. for (var key in watch) {
  7623. var handler = watch[key];
  7624. if (Array.isArray(handler)) {
  7625. for (var i = 0; i < handler.length; i++) {
  7626. createWatcher(vm, key, handler[i]);
  7627. }
  7628. } else {
  7629. createWatcher(vm, key, handler);
  7630. }
  7631. }
  7632. }
  7633. function createWatcher (
  7634. vm,
  7635. expOrFn,
  7636. handler,
  7637. options
  7638. ) {
  7639. if (isPlainObject(handler)) {
  7640. options = handler;
  7641. handler = handler.handler;
  7642. }
  7643. if (typeof handler === 'string') {
  7644. handler = vm[handler];
  7645. }
  7646. return vm.$watch(expOrFn, handler, options)
  7647. }
  7648. function stateMixin (Vue) {
  7649. // flow somehow has problems with directly declared definition object
  7650. // when using Object.defineProperty, so we have to procedurally build up
  7651. // the object here.
  7652. var dataDef = {};
  7653. dataDef.get = function () { return this._data };
  7654. var propsDef = {};
  7655. propsDef.get = function () { return this._props };
  7656. if (true) {
  7657. dataDef.set = function () {
  7658. warn(
  7659. 'Avoid replacing instance root $data. ' +
  7660. 'Use nested data properties instead.',
  7661. this
  7662. );
  7663. };
  7664. propsDef.set = function () {
  7665. warn("$props is readonly.", this);
  7666. };
  7667. }
  7668. Object.defineProperty(Vue.prototype, '$data', dataDef);
  7669. Object.defineProperty(Vue.prototype, '$props', propsDef);
  7670. Vue.prototype.$set = set;
  7671. Vue.prototype.$delete = del;
  7672. Vue.prototype.$watch = function (
  7673. expOrFn,
  7674. cb,
  7675. options
  7676. ) {
  7677. var vm = this;
  7678. if (isPlainObject(cb)) {
  7679. return createWatcher(vm, expOrFn, cb, options)
  7680. }
  7681. options = options || {};
  7682. options.user = true;
  7683. var watcher = new Watcher(vm, expOrFn, cb, options);
  7684. if (options.immediate) {
  7685. try {
  7686. cb.call(vm, watcher.value);
  7687. } catch (error) {
  7688. handleError(error, vm, ("callback for immediate watcher \"" + (watcher.expression) + "\""));
  7689. }
  7690. }
  7691. return function unwatchFn () {
  7692. watcher.teardown();
  7693. }
  7694. };
  7695. }
  7696. /* */
  7697. var uid$3 = 0;
  7698. function initMixin (Vue) {
  7699. Vue.prototype._init = function (options) {
  7700. var vm = this;
  7701. // a uid
  7702. vm._uid = uid$3++;
  7703. var startTag, endTag;
  7704. /* istanbul ignore if */
  7705. if ( true && config.performance && mark) {
  7706. startTag = "vue-perf-start:" + (vm._uid);
  7707. endTag = "vue-perf-end:" + (vm._uid);
  7708. mark(startTag);
  7709. }
  7710. // a flag to avoid this being observed
  7711. vm._isVue = true;
  7712. // merge options
  7713. if (options && options._isComponent) {
  7714. // optimize internal component instantiation
  7715. // since dynamic options merging is pretty slow, and none of the
  7716. // internal component options needs special treatment.
  7717. initInternalComponent(vm, options);
  7718. } else {
  7719. vm.$options = mergeOptions(
  7720. resolveConstructorOptions(vm.constructor),
  7721. options || {},
  7722. vm
  7723. );
  7724. }
  7725. /* istanbul ignore else */
  7726. if (true) {
  7727. initProxy(vm);
  7728. } else {}
  7729. // expose real self
  7730. vm._self = vm;
  7731. initLifecycle(vm);
  7732. initEvents(vm);
  7733. initRender(vm);
  7734. callHook(vm, 'beforeCreate');
  7735. !vm._$fallback && initInjections(vm); // resolve injections before data/props
  7736. initState(vm);
  7737. !vm._$fallback && initProvide(vm); // resolve provide after data/props
  7738. !vm._$fallback && callHook(vm, 'created');
  7739. /* istanbul ignore if */
  7740. if ( true && config.performance && mark) {
  7741. vm._name = formatComponentName(vm, false);
  7742. mark(endTag);
  7743. measure(("vue " + (vm._name) + " init"), startTag, endTag);
  7744. }
  7745. if (vm.$options.el) {
  7746. vm.$mount(vm.$options.el);
  7747. }
  7748. };
  7749. }
  7750. function initInternalComponent (vm, options) {
  7751. var opts = vm.$options = Object.create(vm.constructor.options);
  7752. // doing this because it's faster than dynamic enumeration.
  7753. var parentVnode = options._parentVnode;
  7754. opts.parent = options.parent;
  7755. opts._parentVnode = parentVnode;
  7756. var vnodeComponentOptions = parentVnode.componentOptions;
  7757. opts.propsData = vnodeComponentOptions.propsData;
  7758. opts._parentListeners = vnodeComponentOptions.listeners;
  7759. opts._renderChildren = vnodeComponentOptions.children;
  7760. opts._componentTag = vnodeComponentOptions.tag;
  7761. if (options.render) {
  7762. opts.render = options.render;
  7763. opts.staticRenderFns = options.staticRenderFns;
  7764. }
  7765. }
  7766. function resolveConstructorOptions (Ctor) {
  7767. var options = Ctor.options;
  7768. if (Ctor.super) {
  7769. var superOptions = resolveConstructorOptions(Ctor.super);
  7770. var cachedSuperOptions = Ctor.superOptions;
  7771. if (superOptions !== cachedSuperOptions) {
  7772. // super option changed,
  7773. // need to resolve new options.
  7774. Ctor.superOptions = superOptions;
  7775. // check if there are any late-modified/attached options (#4976)
  7776. var modifiedOptions = resolveModifiedOptions(Ctor);
  7777. // update base extend options
  7778. if (modifiedOptions) {
  7779. extend(Ctor.extendOptions, modifiedOptions);
  7780. }
  7781. options = Ctor.options = mergeOptions(superOptions, Ctor.extendOptions);
  7782. if (options.name) {
  7783. options.components[options.name] = Ctor;
  7784. }
  7785. }
  7786. }
  7787. return options
  7788. }
  7789. function resolveModifiedOptions (Ctor) {
  7790. var modified;
  7791. var latest = Ctor.options;
  7792. var sealed = Ctor.sealedOptions;
  7793. for (var key in latest) {
  7794. if (latest[key] !== sealed[key]) {
  7795. if (!modified) { modified = {}; }
  7796. modified[key] = latest[key];
  7797. }
  7798. }
  7799. return modified
  7800. }
  7801. function Vue (options) {
  7802. if ( true &&
  7803. !(this instanceof Vue)
  7804. ) {
  7805. warn('Vue is a constructor and should be called with the `new` keyword');
  7806. }
  7807. this._init(options);
  7808. }
  7809. initMixin(Vue);
  7810. stateMixin(Vue);
  7811. eventsMixin(Vue);
  7812. lifecycleMixin(Vue);
  7813. renderMixin(Vue);
  7814. /* */
  7815. function initUse (Vue) {
  7816. Vue.use = function (plugin) {
  7817. var installedPlugins = (this._installedPlugins || (this._installedPlugins = []));
  7818. if (installedPlugins.indexOf(plugin) > -1) {
  7819. return this
  7820. }
  7821. // additional parameters
  7822. var args = toArray(arguments, 1);
  7823. args.unshift(this);
  7824. if (typeof plugin.install === 'function') {
  7825. plugin.install.apply(plugin, args);
  7826. } else if (typeof plugin === 'function') {
  7827. plugin.apply(null, args);
  7828. }
  7829. installedPlugins.push(plugin);
  7830. return this
  7831. };
  7832. }
  7833. /* */
  7834. function initMixin$1 (Vue) {
  7835. Vue.mixin = function (mixin) {
  7836. this.options = mergeOptions(this.options, mixin);
  7837. return this
  7838. };
  7839. }
  7840. /* */
  7841. function initExtend (Vue) {
  7842. /**
  7843. * Each instance constructor, including Vue, has a unique
  7844. * cid. This enables us to create wrapped "child
  7845. * constructors" for prototypal inheritance and cache them.
  7846. */
  7847. Vue.cid = 0;
  7848. var cid = 1;
  7849. /**
  7850. * Class inheritance
  7851. */
  7852. Vue.extend = function (extendOptions) {
  7853. extendOptions = extendOptions || {};
  7854. var Super = this;
  7855. var SuperId = Super.cid;
  7856. var cachedCtors = extendOptions._Ctor || (extendOptions._Ctor = {});
  7857. if (cachedCtors[SuperId]) {
  7858. return cachedCtors[SuperId]
  7859. }
  7860. var name = extendOptions.name || Super.options.name;
  7861. if ( true && name) {
  7862. validateComponentName(name);
  7863. }
  7864. var Sub = function VueComponent (options) {
  7865. this._init(options);
  7866. };
  7867. Sub.prototype = Object.create(Super.prototype);
  7868. Sub.prototype.constructor = Sub;
  7869. Sub.cid = cid++;
  7870. Sub.options = mergeOptions(
  7871. Super.options,
  7872. extendOptions
  7873. );
  7874. Sub['super'] = Super;
  7875. // For props and computed properties, we define the proxy getters on
  7876. // the Vue instances at extension time, on the extended prototype. This
  7877. // avoids Object.defineProperty calls for each instance created.
  7878. if (Sub.options.props) {
  7879. initProps$1(Sub);
  7880. }
  7881. if (Sub.options.computed) {
  7882. initComputed$1(Sub);
  7883. }
  7884. // allow further extension/mixin/plugin usage
  7885. Sub.extend = Super.extend;
  7886. Sub.mixin = Super.mixin;
  7887. Sub.use = Super.use;
  7888. // create asset registers, so extended classes
  7889. // can have their private assets too.
  7890. ASSET_TYPES.forEach(function (type) {
  7891. Sub[type] = Super[type];
  7892. });
  7893. // enable recursive self-lookup
  7894. if (name) {
  7895. Sub.options.components[name] = Sub;
  7896. }
  7897. // keep a reference to the super options at extension time.
  7898. // later at instantiation we can check if Super's options have
  7899. // been updated.
  7900. Sub.superOptions = Super.options;
  7901. Sub.extendOptions = extendOptions;
  7902. Sub.sealedOptions = extend({}, Sub.options);
  7903. // cache constructor
  7904. cachedCtors[SuperId] = Sub;
  7905. return Sub
  7906. };
  7907. }
  7908. function initProps$1 (Comp) {
  7909. var props = Comp.options.props;
  7910. for (var key in props) {
  7911. proxy(Comp.prototype, "_props", key);
  7912. }
  7913. }
  7914. function initComputed$1 (Comp) {
  7915. var computed = Comp.options.computed;
  7916. for (var key in computed) {
  7917. defineComputed(Comp.prototype, key, computed[key]);
  7918. }
  7919. }
  7920. /* */
  7921. function initAssetRegisters (Vue) {
  7922. /**
  7923. * Create asset registration methods.
  7924. */
  7925. ASSET_TYPES.forEach(function (type) {
  7926. Vue[type] = function (
  7927. id,
  7928. definition
  7929. ) {
  7930. if (!definition) {
  7931. return this.options[type + 's'][id]
  7932. } else {
  7933. /* istanbul ignore if */
  7934. if ( true && type === 'component') {
  7935. validateComponentName(id);
  7936. }
  7937. if (type === 'component' && isPlainObject(definition)) {
  7938. definition.name = definition.name || id;
  7939. definition = this.options._base.extend(definition);
  7940. }
  7941. if (type === 'directive' && typeof definition === 'function') {
  7942. definition = { bind: definition, update: definition };
  7943. }
  7944. this.options[type + 's'][id] = definition;
  7945. return definition
  7946. }
  7947. };
  7948. });
  7949. }
  7950. /* */
  7951. function getComponentName (opts) {
  7952. return opts && (opts.Ctor.options.name || opts.tag)
  7953. }
  7954. function matches (pattern, name) {
  7955. if (Array.isArray(pattern)) {
  7956. return pattern.indexOf(name) > -1
  7957. } else if (typeof pattern === 'string') {
  7958. return pattern.split(',').indexOf(name) > -1
  7959. } else if (isRegExp(pattern)) {
  7960. return pattern.test(name)
  7961. }
  7962. /* istanbul ignore next */
  7963. return false
  7964. }
  7965. function pruneCache (keepAliveInstance, filter) {
  7966. var cache = keepAliveInstance.cache;
  7967. var keys = keepAliveInstance.keys;
  7968. var _vnode = keepAliveInstance._vnode;
  7969. for (var key in cache) {
  7970. var cachedNode = cache[key];
  7971. if (cachedNode) {
  7972. var name = getComponentName(cachedNode.componentOptions);
  7973. if (name && !filter(name)) {
  7974. pruneCacheEntry(cache, key, keys, _vnode);
  7975. }
  7976. }
  7977. }
  7978. }
  7979. function pruneCacheEntry (
  7980. cache,
  7981. key,
  7982. keys,
  7983. current
  7984. ) {
  7985. var cached$$1 = cache[key];
  7986. if (cached$$1 && (!current || cached$$1.tag !== current.tag)) {
  7987. cached$$1.componentInstance.$destroy();
  7988. }
  7989. cache[key] = null;
  7990. remove(keys, key);
  7991. }
  7992. var patternTypes = [String, RegExp, Array];
  7993. var KeepAlive = {
  7994. name: 'keep-alive',
  7995. abstract: true,
  7996. props: {
  7997. include: patternTypes,
  7998. exclude: patternTypes,
  7999. max: [String, Number]
  8000. },
  8001. created: function created () {
  8002. this.cache = Object.create(null);
  8003. this.keys = [];
  8004. },
  8005. destroyed: function destroyed () {
  8006. for (var key in this.cache) {
  8007. pruneCacheEntry(this.cache, key, this.keys);
  8008. }
  8009. },
  8010. mounted: function mounted () {
  8011. var this$1 = this;
  8012. this.$watch('include', function (val) {
  8013. pruneCache(this$1, function (name) { return matches(val, name); });
  8014. });
  8015. this.$watch('exclude', function (val) {
  8016. pruneCache(this$1, function (name) { return !matches(val, name); });
  8017. });
  8018. },
  8019. render: function render () {
  8020. var slot = this.$slots.default;
  8021. var vnode = getFirstComponentChild(slot);
  8022. var componentOptions = vnode && vnode.componentOptions;
  8023. if (componentOptions) {
  8024. // check pattern
  8025. var name = getComponentName(componentOptions);
  8026. var ref = this;
  8027. var include = ref.include;
  8028. var exclude = ref.exclude;
  8029. if (
  8030. // not included
  8031. (include && (!name || !matches(include, name))) ||
  8032. // excluded
  8033. (exclude && name && matches(exclude, name))
  8034. ) {
  8035. return vnode
  8036. }
  8037. var ref$1 = this;
  8038. var cache = ref$1.cache;
  8039. var keys = ref$1.keys;
  8040. var key = vnode.key == null
  8041. // same constructor may get registered as different local components
  8042. // so cid alone is not enough (#3269)
  8043. ? componentOptions.Ctor.cid + (componentOptions.tag ? ("::" + (componentOptions.tag)) : '')
  8044. : vnode.key;
  8045. if (cache[key]) {
  8046. vnode.componentInstance = cache[key].componentInstance;
  8047. // make current key freshest
  8048. remove(keys, key);
  8049. keys.push(key);
  8050. } else {
  8051. cache[key] = vnode;
  8052. keys.push(key);
  8053. // prune oldest entry
  8054. if (this.max && keys.length > parseInt(this.max)) {
  8055. pruneCacheEntry(cache, keys[0], keys, this._vnode);
  8056. }
  8057. }
  8058. vnode.data.keepAlive = true;
  8059. }
  8060. return vnode || (slot && slot[0])
  8061. }
  8062. };
  8063. var builtInComponents = {
  8064. KeepAlive: KeepAlive
  8065. };
  8066. /* */
  8067. function initGlobalAPI (Vue) {
  8068. // config
  8069. var configDef = {};
  8070. configDef.get = function () { return config; };
  8071. if (true) {
  8072. configDef.set = function () {
  8073. warn(
  8074. 'Do not replace the Vue.config object, set individual fields instead.'
  8075. );
  8076. };
  8077. }
  8078. Object.defineProperty(Vue, 'config', configDef);
  8079. // exposed util methods.
  8080. // NOTE: these are not considered part of the public API - avoid relying on
  8081. // them unless you are aware of the risk.
  8082. Vue.util = {
  8083. warn: warn,
  8084. extend: extend,
  8085. mergeOptions: mergeOptions,
  8086. defineReactive: defineReactive$$1
  8087. };
  8088. Vue.set = set;
  8089. Vue.delete = del;
  8090. Vue.nextTick = nextTick;
  8091. // 2.6 explicit observable API
  8092. Vue.observable = function (obj) {
  8093. observe(obj);
  8094. return obj
  8095. };
  8096. Vue.options = Object.create(null);
  8097. ASSET_TYPES.forEach(function (type) {
  8098. Vue.options[type + 's'] = Object.create(null);
  8099. });
  8100. // this is used to identify the "base" constructor to extend all plain-object
  8101. // components with in Weex's multi-instance scenarios.
  8102. Vue.options._base = Vue;
  8103. extend(Vue.options.components, builtInComponents);
  8104. initUse(Vue);
  8105. initMixin$1(Vue);
  8106. initExtend(Vue);
  8107. initAssetRegisters(Vue);
  8108. }
  8109. initGlobalAPI(Vue);
  8110. Object.defineProperty(Vue.prototype, '$isServer', {
  8111. get: isServerRendering
  8112. });
  8113. Object.defineProperty(Vue.prototype, '$ssrContext', {
  8114. get: function get () {
  8115. /* istanbul ignore next */
  8116. return this.$vnode && this.$vnode.ssrContext
  8117. }
  8118. });
  8119. // expose FunctionalRenderContext for ssr runtime helper installation
  8120. Object.defineProperty(Vue, 'FunctionalRenderContext', {
  8121. value: FunctionalRenderContext
  8122. });
  8123. Vue.version = '2.6.11';
  8124. /**
  8125. * https://raw.githubusercontent.com/Tencent/westore/master/packages/westore/utils/diff.js
  8126. */
  8127. var ARRAYTYPE = '[object Array]';
  8128. var OBJECTTYPE = '[object Object]';
  8129. var NULLTYPE = '[object Null]';
  8130. var UNDEFINEDTYPE = '[object Undefined]';
  8131. // const FUNCTIONTYPE = '[object Function]'
  8132. function diff(current, pre) {
  8133. var result = {};
  8134. syncKeys(current, pre);
  8135. _diff(current, pre, '', result);
  8136. return result
  8137. }
  8138. function syncKeys(current, pre) {
  8139. if (current === pre) { return }
  8140. var rootCurrentType = type(current);
  8141. var rootPreType = type(pre);
  8142. if (rootCurrentType == OBJECTTYPE && rootPreType == OBJECTTYPE) {
  8143. if(Object.keys(current).length >= Object.keys(pre).length){
  8144. for (var key in pre) {
  8145. var currentValue = current[key];
  8146. if (currentValue === undefined) {
  8147. current[key] = null;
  8148. } else {
  8149. syncKeys(currentValue, pre[key]);
  8150. }
  8151. }
  8152. }
  8153. } else if (rootCurrentType == ARRAYTYPE && rootPreType == ARRAYTYPE) {
  8154. if (current.length >= pre.length) {
  8155. pre.forEach(function (item, index) {
  8156. syncKeys(current[index], item);
  8157. });
  8158. }
  8159. }
  8160. }
  8161. function nullOrUndefined(currentType, preType) {
  8162. if(
  8163. (currentType === NULLTYPE || currentType === UNDEFINEDTYPE) &&
  8164. (preType === NULLTYPE || preType === UNDEFINEDTYPE)
  8165. ) {
  8166. return false
  8167. }
  8168. return true
  8169. }
  8170. function _diff(current, pre, path, result) {
  8171. if (current === pre) { return }
  8172. var rootCurrentType = type(current);
  8173. var rootPreType = type(pre);
  8174. if (rootCurrentType == OBJECTTYPE) {
  8175. if (rootPreType != OBJECTTYPE || Object.keys(current).length < Object.keys(pre).length) {
  8176. setResult(result, path, current);
  8177. } else {
  8178. var loop = function ( key ) {
  8179. var currentValue = current[key];
  8180. var preValue = pre[key];
  8181. var currentType = type(currentValue);
  8182. var preType = type(preValue);
  8183. if (currentType != ARRAYTYPE && currentType != OBJECTTYPE) {
  8184. if (currentValue !== pre[key] && nullOrUndefined(currentType, preType)) {
  8185. setResult(result, (path == '' ? '' : path + ".") + key, currentValue);
  8186. }
  8187. } else if (currentType == ARRAYTYPE) {
  8188. if (preType != ARRAYTYPE) {
  8189. setResult(result, (path == '' ? '' : path + ".") + key, currentValue);
  8190. } else {
  8191. if (currentValue.length < preValue.length) {
  8192. setResult(result, (path == '' ? '' : path + ".") + key, currentValue);
  8193. } else {
  8194. currentValue.forEach(function (item, index) {
  8195. _diff(item, preValue[index], (path == '' ? '' : path + ".") + key + '[' + index + ']', result);
  8196. });
  8197. }
  8198. }
  8199. } else if (currentType == OBJECTTYPE) {
  8200. if (preType != OBJECTTYPE || Object.keys(currentValue).length < Object.keys(preValue).length) {
  8201. setResult(result, (path == '' ? '' : path + ".") + key, currentValue);
  8202. } else {
  8203. for (var subKey in currentValue) {
  8204. _diff(currentValue[subKey], preValue[subKey], (path == '' ? '' : path + ".") + key + '.' + subKey, result);
  8205. }
  8206. }
  8207. }
  8208. };
  8209. for (var key in current) loop( key );
  8210. }
  8211. } else if (rootCurrentType == ARRAYTYPE) {
  8212. if (rootPreType != ARRAYTYPE) {
  8213. setResult(result, path, current);
  8214. } else {
  8215. if (current.length < pre.length) {
  8216. setResult(result, path, current);
  8217. } else {
  8218. current.forEach(function (item, index) {
  8219. _diff(item, pre[index], path + '[' + index + ']', result);
  8220. });
  8221. }
  8222. }
  8223. } else {
  8224. setResult(result, path, current);
  8225. }
  8226. }
  8227. function setResult(result, k, v) {
  8228. // if (type(v) != FUNCTIONTYPE) {
  8229. result[k] = v;
  8230. // }
  8231. }
  8232. function type(obj) {
  8233. return Object.prototype.toString.call(obj)
  8234. }
  8235. /* */
  8236. function flushCallbacks$1(vm) {
  8237. if (vm.__next_tick_callbacks && vm.__next_tick_callbacks.length) {
  8238. if (Object({"VUE_APP_DARK_MODE":"false","VUE_APP_NAME":"产品化管理端","VUE_APP_PLATFORM":"mp-weixin","NODE_ENV":"development","BASE_URL":"/"}).VUE_APP_DEBUG) {
  8239. var mpInstance = vm.$scope;
  8240. console.log('[' + (+new Date) + '][' + (mpInstance.is || mpInstance.route) + '][' + vm._uid +
  8241. ']:flushCallbacks[' + vm.__next_tick_callbacks.length + ']');
  8242. }
  8243. var copies = vm.__next_tick_callbacks.slice(0);
  8244. vm.__next_tick_callbacks.length = 0;
  8245. for (var i = 0; i < copies.length; i++) {
  8246. copies[i]();
  8247. }
  8248. }
  8249. }
  8250. function hasRenderWatcher(vm) {
  8251. return queue.find(function (watcher) { return vm._watcher === watcher; })
  8252. }
  8253. function nextTick$1(vm, cb) {
  8254. //1.nextTick 之前 已 setData 且 setData 还未回调完成
  8255. //2.nextTick 之前存在 render watcher
  8256. if (!vm.__next_tick_pending && !hasRenderWatcher(vm)) {
  8257. if(Object({"VUE_APP_DARK_MODE":"false","VUE_APP_NAME":"产品化管理端","VUE_APP_PLATFORM":"mp-weixin","NODE_ENV":"development","BASE_URL":"/"}).VUE_APP_DEBUG){
  8258. var mpInstance = vm.$scope;
  8259. console.log('[' + (+new Date) + '][' + (mpInstance.is || mpInstance.route) + '][' + vm._uid +
  8260. ']:nextVueTick');
  8261. }
  8262. return nextTick(cb, vm)
  8263. }else{
  8264. if(Object({"VUE_APP_DARK_MODE":"false","VUE_APP_NAME":"产品化管理端","VUE_APP_PLATFORM":"mp-weixin","NODE_ENV":"development","BASE_URL":"/"}).VUE_APP_DEBUG){
  8265. var mpInstance$1 = vm.$scope;
  8266. console.log('[' + (+new Date) + '][' + (mpInstance$1.is || mpInstance$1.route) + '][' + vm._uid +
  8267. ']:nextMPTick');
  8268. }
  8269. }
  8270. var _resolve;
  8271. if (!vm.__next_tick_callbacks) {
  8272. vm.__next_tick_callbacks = [];
  8273. }
  8274. vm.__next_tick_callbacks.push(function () {
  8275. if (cb) {
  8276. try {
  8277. cb.call(vm);
  8278. } catch (e) {
  8279. handleError(e, vm, 'nextTick');
  8280. }
  8281. } else if (_resolve) {
  8282. _resolve(vm);
  8283. }
  8284. });
  8285. // $flow-disable-line
  8286. if (!cb && typeof Promise !== 'undefined') {
  8287. return new Promise(function (resolve) {
  8288. _resolve = resolve;
  8289. })
  8290. }
  8291. }
  8292. /* */
  8293. function clearInstance(key, value) {
  8294. // 简易去除 Vue 和小程序组件实例
  8295. if (value) {
  8296. if (value._isVue || value.__v_isMPComponent) {
  8297. return {}
  8298. }
  8299. }
  8300. return value
  8301. }
  8302. function cloneWithData(vm) {
  8303. // 确保当前 vm 所有数据被同步
  8304. var ret = Object.create(null);
  8305. var dataKeys = [].concat(
  8306. Object.keys(vm._data || {}),
  8307. Object.keys(vm._computedWatchers || {}));
  8308. dataKeys.reduce(function(ret, key) {
  8309. ret[key] = vm[key];
  8310. return ret
  8311. }, ret);
  8312. // vue-composition-api
  8313. var compositionApiState = vm.__composition_api_state__ || vm.__secret_vfa_state__;
  8314. var rawBindings = compositionApiState && compositionApiState.rawBindings;
  8315. if (rawBindings) {
  8316. Object.keys(rawBindings).forEach(function (key) {
  8317. ret[key] = vm[key];
  8318. });
  8319. }
  8320. //TODO 需要把无用数据处理掉,比如 list=>l0 则 list 需要移除,否则多传输一份数据
  8321. Object.assign(ret, vm.$mp.data || {});
  8322. if (
  8323. Array.isArray(vm.$options.behaviors) &&
  8324. vm.$options.behaviors.indexOf('uni://form-field') !== -1
  8325. ) { //form-field
  8326. ret['name'] = vm.name;
  8327. ret['value'] = vm.value;
  8328. }
  8329. return JSON.parse(JSON.stringify(ret, clearInstance))
  8330. }
  8331. var patch = function(oldVnode, vnode) {
  8332. var this$1 = this;
  8333. if (vnode === null) { //destroy
  8334. return
  8335. }
  8336. if (this.mpType === 'page' || this.mpType === 'component') {
  8337. var mpInstance = this.$scope;
  8338. var data = Object.create(null);
  8339. try {
  8340. data = cloneWithData(this);
  8341. } catch (err) {
  8342. console.error(err);
  8343. }
  8344. data.__webviewId__ = mpInstance.data.__webviewId__;
  8345. var mpData = Object.create(null);
  8346. Object.keys(data).forEach(function (key) { //仅同步 data 中有的数据
  8347. mpData[key] = mpInstance.data[key];
  8348. });
  8349. var diffData = this.$shouldDiffData === false ? data : diff(data, mpData);
  8350. if (Object.keys(diffData).length) {
  8351. if (Object({"VUE_APP_DARK_MODE":"false","VUE_APP_NAME":"产品化管理端","VUE_APP_PLATFORM":"mp-weixin","NODE_ENV":"development","BASE_URL":"/"}).VUE_APP_DEBUG) {
  8352. console.log('[' + (+new Date) + '][' + (mpInstance.is || mpInstance.route) + '][' + this._uid +
  8353. ']差量更新',
  8354. JSON.stringify(diffData));
  8355. }
  8356. this.__next_tick_pending = true;
  8357. mpInstance.setData(diffData, function () {
  8358. this$1.__next_tick_pending = false;
  8359. flushCallbacks$1(this$1);
  8360. });
  8361. } else {
  8362. flushCallbacks$1(this);
  8363. }
  8364. }
  8365. };
  8366. /* */
  8367. function createEmptyRender() {
  8368. }
  8369. function mountComponent$1(
  8370. vm,
  8371. el,
  8372. hydrating
  8373. ) {
  8374. if (!vm.mpType) {//main.js 中的 new Vue
  8375. return vm
  8376. }
  8377. if (vm.mpType === 'app') {
  8378. vm.$options.render = createEmptyRender;
  8379. }
  8380. if (!vm.$options.render) {
  8381. vm.$options.render = createEmptyRender;
  8382. if (true) {
  8383. /* istanbul ignore if */
  8384. if ((vm.$options.template && vm.$options.template.charAt(0) !== '#') ||
  8385. vm.$options.el || el) {
  8386. warn(
  8387. 'You are using the runtime-only build of Vue where the template ' +
  8388. 'compiler is not available. Either pre-compile the templates into ' +
  8389. 'render functions, or use the compiler-included build.',
  8390. vm
  8391. );
  8392. } else {
  8393. warn(
  8394. 'Failed to mount component: template or render function not defined.',
  8395. vm
  8396. );
  8397. }
  8398. }
  8399. }
  8400. !vm._$fallback && callHook(vm, 'beforeMount');
  8401. var updateComponent = function () {
  8402. vm._update(vm._render(), hydrating);
  8403. };
  8404. // we set this to vm._watcher inside the watcher's constructor
  8405. // since the watcher's initial patch may call $forceUpdate (e.g. inside child
  8406. // component's mounted hook), which relies on vm._watcher being already defined
  8407. new Watcher(vm, updateComponent, noop, {
  8408. before: function before() {
  8409. if (vm._isMounted && !vm._isDestroyed) {
  8410. callHook(vm, 'beforeUpdate');
  8411. }
  8412. }
  8413. }, true /* isRenderWatcher */);
  8414. hydrating = false;
  8415. return vm
  8416. }
  8417. /* */
  8418. function renderClass (
  8419. staticClass,
  8420. dynamicClass
  8421. ) {
  8422. if (isDef(staticClass) || isDef(dynamicClass)) {
  8423. return concat(staticClass, stringifyClass(dynamicClass))
  8424. }
  8425. /* istanbul ignore next */
  8426. return ''
  8427. }
  8428. function concat (a, b) {
  8429. return a ? b ? (a + ' ' + b) : a : (b || '')
  8430. }
  8431. function stringifyClass (value) {
  8432. if (Array.isArray(value)) {
  8433. return stringifyArray(value)
  8434. }
  8435. if (isObject(value)) {
  8436. return stringifyObject(value)
  8437. }
  8438. if (typeof value === 'string') {
  8439. return value
  8440. }
  8441. /* istanbul ignore next */
  8442. return ''
  8443. }
  8444. function stringifyArray (value) {
  8445. var res = '';
  8446. var stringified;
  8447. for (var i = 0, l = value.length; i < l; i++) {
  8448. if (isDef(stringified = stringifyClass(value[i])) && stringified !== '') {
  8449. if (res) { res += ' '; }
  8450. res += stringified;
  8451. }
  8452. }
  8453. return res
  8454. }
  8455. function stringifyObject (value) {
  8456. var res = '';
  8457. for (var key in value) {
  8458. if (value[key]) {
  8459. if (res) { res += ' '; }
  8460. res += key;
  8461. }
  8462. }
  8463. return res
  8464. }
  8465. /* */
  8466. var parseStyleText = cached(function (cssText) {
  8467. var res = {};
  8468. var listDelimiter = /;(?![^(]*\))/g;
  8469. var propertyDelimiter = /:(.+)/;
  8470. cssText.split(listDelimiter).forEach(function (item) {
  8471. if (item) {
  8472. var tmp = item.split(propertyDelimiter);
  8473. tmp.length > 1 && (res[tmp[0].trim()] = tmp[1].trim());
  8474. }
  8475. });
  8476. return res
  8477. });
  8478. // normalize possible array / string values into Object
  8479. function normalizeStyleBinding (bindingStyle) {
  8480. if (Array.isArray(bindingStyle)) {
  8481. return toObject(bindingStyle)
  8482. }
  8483. if (typeof bindingStyle === 'string') {
  8484. return parseStyleText(bindingStyle)
  8485. }
  8486. return bindingStyle
  8487. }
  8488. /* */
  8489. var MP_METHODS = ['createSelectorQuery', 'createIntersectionObserver', 'selectAllComponents', 'selectComponent'];
  8490. function getTarget(obj, path) {
  8491. var parts = path.split('.');
  8492. var key = parts[0];
  8493. if (key.indexOf('__$n') === 0) { //number index
  8494. key = parseInt(key.replace('__$n', ''));
  8495. }
  8496. if (parts.length === 1) {
  8497. return obj[key]
  8498. }
  8499. return getTarget(obj[key], parts.slice(1).join('.'))
  8500. }
  8501. function internalMixin(Vue) {
  8502. Vue.config.errorHandler = function(err, vm, info) {
  8503. Vue.util.warn(("Error in " + info + ": \"" + (err.toString()) + "\""), vm);
  8504. console.error(err);
  8505. /* eslint-disable no-undef */
  8506. var app = typeof getApp === 'function' && getApp();
  8507. if (app && app.onError) {
  8508. app.onError(err);
  8509. }
  8510. };
  8511. var oldEmit = Vue.prototype.$emit;
  8512. Vue.prototype.$emit = function(event) {
  8513. if (this.$scope && event) {
  8514. var triggerEvent = this.$scope['_triggerEvent'] || this.$scope['triggerEvent'];
  8515. if (triggerEvent) {
  8516. try {
  8517. triggerEvent.call(this.$scope, event, {
  8518. __args__: toArray(arguments, 1)
  8519. });
  8520. } catch (error) {
  8521. }
  8522. }
  8523. }
  8524. return oldEmit.apply(this, arguments)
  8525. };
  8526. Vue.prototype.$nextTick = function(fn) {
  8527. return nextTick$1(this, fn)
  8528. };
  8529. MP_METHODS.forEach(function (method) {
  8530. Vue.prototype[method] = function(args) {
  8531. if (this.$scope && this.$scope[method]) {
  8532. return this.$scope[method](args)
  8533. }
  8534. // mp-alipay
  8535. if (typeof my === 'undefined') {
  8536. return
  8537. }
  8538. if (method === 'createSelectorQuery') {
  8539. /* eslint-disable no-undef */
  8540. return my.createSelectorQuery(args)
  8541. } else if (method === 'createIntersectionObserver') {
  8542. /* eslint-disable no-undef */
  8543. return my.createIntersectionObserver(args)
  8544. }
  8545. // TODO mp-alipay 暂不支持 selectAllComponents,selectComponent
  8546. };
  8547. });
  8548. Vue.prototype.__init_provide = initProvide;
  8549. Vue.prototype.__init_injections = initInjections;
  8550. Vue.prototype.__call_hook = function(hook, args) {
  8551. var vm = this;
  8552. // #7573 disable dep collection when invoking lifecycle hooks
  8553. pushTarget();
  8554. var handlers = vm.$options[hook];
  8555. var info = hook + " hook";
  8556. var ret;
  8557. if (handlers) {
  8558. for (var i = 0, j = handlers.length; i < j; i++) {
  8559. ret = invokeWithErrorHandling(handlers[i], vm, args ? [args] : null, vm, info);
  8560. }
  8561. }
  8562. if (vm._hasHookEvent) {
  8563. vm.$emit('hook:' + hook, args);
  8564. }
  8565. popTarget();
  8566. return ret
  8567. };
  8568. Vue.prototype.__set_model = function(target, key, value, modifiers) {
  8569. if (Array.isArray(modifiers)) {
  8570. if (modifiers.indexOf('trim') !== -1) {
  8571. value = value.trim();
  8572. }
  8573. if (modifiers.indexOf('number') !== -1) {
  8574. value = this._n(value);
  8575. }
  8576. }
  8577. if (!target) {
  8578. target = this;
  8579. }
  8580. // 解决动态属性添加
  8581. Vue.set(target, key, value);
  8582. };
  8583. Vue.prototype.__set_sync = function(target, key, value) {
  8584. if (!target) {
  8585. target = this;
  8586. }
  8587. // 解决动态属性添加
  8588. Vue.set(target, key, value);
  8589. };
  8590. Vue.prototype.__get_orig = function(item) {
  8591. if (isPlainObject(item)) {
  8592. return item['$orig'] || item
  8593. }
  8594. return item
  8595. };
  8596. Vue.prototype.__get_value = function(dataPath, target) {
  8597. return getTarget(target || this, dataPath)
  8598. };
  8599. Vue.prototype.__get_class = function(dynamicClass, staticClass) {
  8600. return renderClass(staticClass, dynamicClass)
  8601. };
  8602. Vue.prototype.__get_style = function(dynamicStyle, staticStyle) {
  8603. if (!dynamicStyle && !staticStyle) {
  8604. return ''
  8605. }
  8606. var dynamicStyleObj = normalizeStyleBinding(dynamicStyle);
  8607. var styleObj = staticStyle ? extend(staticStyle, dynamicStyleObj) : dynamicStyleObj;
  8608. return Object.keys(styleObj).map(function (name) { return ((hyphenate(name)) + ":" + (styleObj[name])); }).join(';')
  8609. };
  8610. Vue.prototype.__map = function(val, iteratee) {
  8611. //TODO 暂不考虑 string
  8612. var ret, i, l, keys, key;
  8613. if (Array.isArray(val)) {
  8614. ret = new Array(val.length);
  8615. for (i = 0, l = val.length; i < l; i++) {
  8616. ret[i] = iteratee(val[i], i);
  8617. }
  8618. return ret
  8619. } else if (isObject(val)) {
  8620. keys = Object.keys(val);
  8621. ret = Object.create(null);
  8622. for (i = 0, l = keys.length; i < l; i++) {
  8623. key = keys[i];
  8624. ret[key] = iteratee(val[key], key, i);
  8625. }
  8626. return ret
  8627. } else if (typeof val === 'number') {
  8628. ret = new Array(val);
  8629. for (i = 0, l = val; i < l; i++) {
  8630. // 第一个参数暂时仍和小程序一致
  8631. ret[i] = iteratee(i, i);
  8632. }
  8633. return ret
  8634. }
  8635. return []
  8636. };
  8637. }
  8638. /* */
  8639. var LIFECYCLE_HOOKS$1 = [
  8640. //App
  8641. 'onLaunch',
  8642. 'onShow',
  8643. 'onHide',
  8644. 'onUniNViewMessage',
  8645. 'onPageNotFound',
  8646. 'onThemeChange',
  8647. 'onError',
  8648. 'onUnhandledRejection',
  8649. //Page
  8650. 'onInit',
  8651. 'onLoad',
  8652. // 'onShow',
  8653. 'onReady',
  8654. // 'onHide',
  8655. 'onUnload',
  8656. 'onPullDownRefresh',
  8657. 'onReachBottom',
  8658. 'onTabItemTap',
  8659. 'onAddToFavorites',
  8660. 'onShareTimeline',
  8661. 'onShareAppMessage',
  8662. 'onResize',
  8663. 'onPageScroll',
  8664. 'onNavigationBarButtonTap',
  8665. 'onBackPress',
  8666. 'onNavigationBarSearchInputChanged',
  8667. 'onNavigationBarSearchInputConfirmed',
  8668. 'onNavigationBarSearchInputClicked',
  8669. 'onUploadDouyinVideo',
  8670. 'onNFCReadMessage',
  8671. //Component
  8672. // 'onReady', // 兼容旧版本,应该移除该事件
  8673. 'onPageShow',
  8674. 'onPageHide',
  8675. 'onPageResize'
  8676. ];
  8677. function lifecycleMixin$1(Vue) {
  8678. //fixed vue-class-component
  8679. var oldExtend = Vue.extend;
  8680. Vue.extend = function(extendOptions) {
  8681. extendOptions = extendOptions || {};
  8682. var methods = extendOptions.methods;
  8683. if (methods) {
  8684. Object.keys(methods).forEach(function (methodName) {
  8685. if (LIFECYCLE_HOOKS$1.indexOf(methodName)!==-1) {
  8686. extendOptions[methodName] = methods[methodName];
  8687. delete methods[methodName];
  8688. }
  8689. });
  8690. }
  8691. return oldExtend.call(this, extendOptions)
  8692. };
  8693. var strategies = Vue.config.optionMergeStrategies;
  8694. var mergeHook = strategies.created;
  8695. LIFECYCLE_HOOKS$1.forEach(function (hook) {
  8696. strategies[hook] = mergeHook;
  8697. });
  8698. Vue.prototype.__lifecycle_hooks__ = LIFECYCLE_HOOKS$1;
  8699. }
  8700. /* */
  8701. // install platform patch function
  8702. Vue.prototype.__patch__ = patch;
  8703. // public mount method
  8704. Vue.prototype.$mount = function(
  8705. el ,
  8706. hydrating
  8707. ) {
  8708. return mountComponent$1(this, el, hydrating)
  8709. };
  8710. lifecycleMixin$1(Vue);
  8711. internalMixin(Vue);
  8712. /* */
  8713. /* harmony default export */ __webpack_exports__["default"] = (Vue);
  8714. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../../../../../webpack/buildin/global.js */ 3)))
  8715. /***/ }),
  8716. /***/ 26:
  8717. /*!*********************************************************!*\
  8718. !*** D:/AAAcompany_product/新建文件夹/product_wx/pages.json ***!
  8719. \*********************************************************/
  8720. /*! no static exports found */
  8721. /***/ (function(module, exports) {
  8722. /***/ }),
  8723. /***/ 27:
  8724. /*!*******************************************************************!*\
  8725. !*** ./node_modules/@dcloudio/uni-stat/dist/uni-cloud-stat.es.js ***!
  8726. \*******************************************************************/
  8727. /*! no static exports found */
  8728. /***/ (function(module, exports, __webpack_require__) {
  8729. /* WEBPACK VAR INJECTION */(function(uni, uniCloud) {var _inherits = __webpack_require__(/*! @babel/runtime/helpers/inherits */ 33);
  8730. var _possibleConstructorReturn = __webpack_require__(/*! @babel/runtime/helpers/possibleConstructorReturn */ 34);
  8731. var _getPrototypeOf = __webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ 35);
  8732. var _classCallCheck = __webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ 23);
  8733. var _createClass = __webpack_require__(/*! @babel/runtime/helpers/createClass */ 24);
  8734. var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  8735. var _defineProperty = __webpack_require__(/*! @babel/runtime/helpers/defineProperty */ 11);
  8736. 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); }; }
  8737. 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; } }
  8738. /**
  8739. * 获取系统信息
  8740. */
  8741. var sys = uni.getSystemInfoSync();
  8742. // 访问开始即启动小程序,访问结束结分为:进入后台超过5min、在前台无任何操作超过30min、在新的来源打开小程序;
  8743. var STAT_VERSION = "4.15";
  8744. var STAT_URL = 'https://tongji.dcloud.io/uni/stat';
  8745. var STAT_H5_URL = 'https://tongji.dcloud.io/uni/stat.gif';
  8746. var PAGE_PVER_TIME = 1800; // 页面在前台无操作结束访问时间 单位s
  8747. var APP_PVER_TIME = 300; // 应用在后台结束访问时间 单位s
  8748. var OPERATING_TIME = 10; // 数据上报时间 单位s
  8749. var DIFF_TIME = 60 * 1000 * 60 * 24;
  8750. var appid = "__UNI__E97C301"; // 做应用隔离
  8751. var dbSet = function dbSet(name, value) {
  8752. var data = uni.getStorageSync('$$STAT__DBDATA:' + appid) || {};
  8753. if (!data) {
  8754. data = {};
  8755. }
  8756. data[name] = value;
  8757. uni.setStorageSync('$$STAT__DBDATA:' + appid, data);
  8758. };
  8759. var dbGet = function dbGet(name) {
  8760. var data = uni.getStorageSync('$$STAT__DBDATA:' + appid) || {};
  8761. if (!data[name]) {
  8762. var dbdata = uni.getStorageSync('$$STAT__DBDATA:' + appid);
  8763. if (!dbdata) {
  8764. dbdata = {};
  8765. }
  8766. if (!dbdata[name]) {
  8767. return undefined;
  8768. }
  8769. data[name] = dbdata[name];
  8770. }
  8771. return data[name];
  8772. };
  8773. var dbRemove = function dbRemove(name) {
  8774. var data = uni.getStorageSync('$$STAT__DBDATA:' + appid) || {};
  8775. if (data[name]) {
  8776. delete data[name];
  8777. uni.setStorageSync('$$STAT__DBDATA:' + appid, data);
  8778. } else {
  8779. data = uni.getStorageSync('$$STAT__DBDATA:' + appid);
  8780. if (data[name]) {
  8781. delete data[name];
  8782. uni.setStorageSync('$$STAT__DBDATA:' + appid, data);
  8783. }
  8784. }
  8785. };
  8786. // 获取 manifest.json 中统计配置
  8787. var uniStatisticsConfig = {"version":"2","enable":true};
  8788. var statConfig = {
  8789. appid: "__UNI__E97C301"
  8790. };
  8791. var titleJsons = {};
  8792. var debug = false || false;
  8793. // eslint-disable-next-line no-restricted-globals
  8794. var pagesTitle = __webpack_require__(/*! uni-pages?{"type":"style"} */ 40).default;
  8795. var pagesData = pagesTitle.pages;
  8796. for (var i in pagesData) {
  8797. var _style$navigationBar;
  8798. var style = pagesData[i];
  8799. var titleText =
  8800. // MP
  8801. style.navigationBarTitleText ||
  8802. // ali
  8803. style.defaultTitle || ( // H5 || App
  8804. (_style$navigationBar = style.navigationBar) === null || _style$navigationBar === void 0 ? void 0 : _style$navigationBar.titleText) || '';
  8805. if (titleText) {
  8806. titleJsons[i] = titleText;
  8807. }
  8808. }
  8809. // TODO 在云函数中获取,暂时注释
  8810. var UUID_KEY = '__DC_STAT_UUID';
  8811. var UUID_VALUE = '__DC_UUID_VALUE';
  8812. function getUuid() {
  8813. var uuid = '';
  8814. if (get_platform_name() === 'n') {
  8815. try {
  8816. uuid = plus.runtime.getDCloudId();
  8817. } catch (e) {
  8818. uuid = '';
  8819. }
  8820. return uuid;
  8821. }
  8822. try {
  8823. uuid = uni.getStorageSync(UUID_KEY);
  8824. } catch (e) {
  8825. uuid = UUID_VALUE;
  8826. }
  8827. if (!uuid) {
  8828. uuid = Date.now() + '' + Math.floor(Math.random() * 1e7);
  8829. try {
  8830. uni.setStorageSync(UUID_KEY, uuid);
  8831. } catch (e) {
  8832. uni.setStorageSync(UUID_KEY, UUID_VALUE);
  8833. }
  8834. }
  8835. return uuid;
  8836. }
  8837. var get_uuid = function get_uuid(statData) {
  8838. // 有可能不存在 deviceId(一般不存在就是出bug了),就自己生成一个
  8839. return sys.deviceId || getUuid();
  8840. };
  8841. /**
  8842. * 获取老版的 deviceid ,兼容以前的错误 deviceid
  8843. * @param {*} statData
  8844. * @returns
  8845. */
  8846. var get_odid = function get_odid(statData) {
  8847. var odid = '';
  8848. if (get_platform_name() === 'n') {
  8849. try {
  8850. odid = plus.device.uuid;
  8851. } catch (e) {
  8852. odid = '';
  8853. }
  8854. return odid;
  8855. }
  8856. return sys.deviceId || getUuid();
  8857. };
  8858. /**
  8859. * 获取配置信息 如 appid
  8860. */
  8861. var stat_config = statConfig;
  8862. var get_sgin = function get_sgin(statData) {
  8863. var arr = Object.keys(statData);
  8864. var sortArr = arr.sort();
  8865. var sgin = {};
  8866. var sginStr = '';
  8867. for (var i in sortArr) {
  8868. sgin[sortArr[i]] = statData[sortArr[i]];
  8869. sginStr += sortArr[i] + '=' + statData[sortArr[i]] + '&';
  8870. }
  8871. return {
  8872. sign: '',
  8873. options: sginStr.substr(0, sginStr.length - 1)
  8874. };
  8875. };
  8876. var get_encodeURIComponent_options = function get_encodeURIComponent_options(statData) {
  8877. var data = {};
  8878. for (var prop in statData) {
  8879. data[prop] = encodeURIComponent(statData[prop]);
  8880. }
  8881. return data;
  8882. };
  8883. /**
  8884. * 获取当前平台
  8885. * 移动端 : 'n',
  8886. * h5 : 'h5',
  8887. * 微信 : 'wx',
  8888. * 阿里 : 'ali',
  8889. * 百度 : 'bd',
  8890. * 头条 : 'tt',
  8891. * qq : 'qq',
  8892. * 快应用 : 'qn',
  8893. * 快手 : 'ks',
  8894. * 飞书 : 'lark',
  8895. * 快应用 : 'qw',
  8896. * 钉钉 : 'dt'
  8897. */
  8898. var get_platform_name = function get_platform_name() {
  8899. var _platformList;
  8900. // 苹果审核代码中禁止出现 alipay 字样 ,需要特殊处理一下
  8901. var aliArr = ['y', 'a', 'p', 'mp-ali'];
  8902. var platformList = (_platformList = {
  8903. app: 'n',
  8904. 'app-plus': 'n',
  8905. h5: 'h5',
  8906. 'mp-weixin': 'wx'
  8907. }, _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);
  8908. if (platformList["mp-weixin"] === 'ali') {
  8909. if (my && my.env) {
  8910. var clientName = my.env.clientName;
  8911. if (clientName === 'ap') return 'ali';
  8912. if (clientName === 'dingtalk') return 'dt';
  8913. // TODO 缺少 ali 下的其他平台
  8914. }
  8915. }
  8916. return platformList["mp-weixin"];
  8917. };
  8918. /**
  8919. * 获取小程序 appid
  8920. */
  8921. var get_pack_name = function get_pack_name() {
  8922. var packName = '';
  8923. if (get_platform_name() === 'wx' || get_platform_name() === 'qq') {
  8924. // 兼容微信小程序低版本基础库
  8925. if (uni.canIUse('getAccountInfoSync')) {
  8926. packName = uni.getAccountInfoSync().miniProgram.appId || '';
  8927. }
  8928. }
  8929. if (get_platform_name() === 'n') ;
  8930. return packName;
  8931. };
  8932. /**
  8933. * 应用版本
  8934. */
  8935. var get_version = function get_version() {
  8936. return get_platform_name() === 'n' ? plus.runtime.version : '';
  8937. };
  8938. /**
  8939. * 获取渠道
  8940. */
  8941. var get_channel = function get_channel() {
  8942. var platformName = get_platform_name();
  8943. var channel = '';
  8944. if (platformName === 'n') {
  8945. channel = plus.runtime.channel;
  8946. }
  8947. return channel;
  8948. };
  8949. /**
  8950. * 获取小程序场景值
  8951. * @param {Object} options 页面信息
  8952. */
  8953. var get_scene = function get_scene(options) {
  8954. var platformName = get_platform_name();
  8955. var scene = '';
  8956. if (options) {
  8957. return options;
  8958. }
  8959. if (platformName === 'wx') {
  8960. scene = uni.getLaunchOptionsSync().scene;
  8961. }
  8962. return scene;
  8963. };
  8964. /**
  8965. * 获取页面url,不包含参数
  8966. */
  8967. var get_route$1 = function get_route$1(pageVm) {
  8968. var _self = pageVm || get_page_vm();
  8969. if (get_platform_name() === 'bd') {
  8970. var mp_route = _self.$mp && _self.$mp.page && _self.$mp.page.is;
  8971. var scope_route = _self.$scope && _self.$scope.is;
  8972. return mp_route || scope_route || '';
  8973. } else {
  8974. return _self.route || _self.$scope && _self.$scope.route || _self.$mp && _self.$mp.page.route;
  8975. }
  8976. };
  8977. /**
  8978. * 获取页面url, 包含参数
  8979. */
  8980. var get_page_route = function get_page_route(pageVm) {
  8981. // 从 app 进入应用 ,没有 $page ,获取不到路由 ,需要获取页面 尝试从 getCurrentPages 获取也页面实例
  8982. // FIXME 尽量不使用 getCurrentPages ,大部分获取路由是从 onHide 获取 ,这时可以获取到,如果是 onload ,则可能获取不到,比如 百度
  8983. var page = pageVm && (pageVm.$page || pageVm.$scope && pageVm.$scope.$page);
  8984. var lastPageRoute = uni.getStorageSync('_STAT_LAST_PAGE_ROUTE');
  8985. if (!page) return lastPageRoute || '';
  8986. // 如果找不到 fullPath 就取 route 的值
  8987. return page.fullPath === '/' ? page.route : page.fullPath || page.route;
  8988. };
  8989. /**
  8990. * 获取页面实例
  8991. */
  8992. var get_page_vm = function get_page_vm() {
  8993. var pages = getCurrentPages();
  8994. var $page = pages[pages.length - 1];
  8995. if (!$page) return null;
  8996. return $page.$vm;
  8997. };
  8998. /**
  8999. * 获取页面类型
  9000. */
  9001. var get_page_types = function get_page_types(self) {
  9002. // XXX 百度有问题 ,获取的都是 componet ,等待修复
  9003. if (self.mpType === 'page' || self.$mpType === 'page' || self.$mp && self.$mp.mpType === 'page' || self.$options.mpType === 'page') {
  9004. return 'page';
  9005. }
  9006. if (self.mpType === 'app' || self.$mpType === 'app' || self.$mp && self.$mp.mpType === 'app' || self.$options.mpType === 'app') {
  9007. return 'app';
  9008. }
  9009. return null;
  9010. };
  9011. /**
  9012. * 处理上报参数
  9013. * @param {Object} 需要处理的数据
  9014. */
  9015. var handle_data = function handle_data(statData) {
  9016. var firstArr = [];
  9017. var contentArr = [];
  9018. var lastArr = [];
  9019. var _loop = function _loop(_i) {
  9020. var rd = statData[_i];
  9021. rd.forEach(function (elm) {
  9022. var newData = '';
  9023. {
  9024. newData = elm;
  9025. }
  9026. if (_i === 0) {
  9027. firstArr.push(newData);
  9028. } else if (_i === 3) {
  9029. lastArr.push(newData);
  9030. } else {
  9031. contentArr.push(newData);
  9032. }
  9033. });
  9034. };
  9035. for (var _i in statData) {
  9036. _loop(_i);
  9037. }
  9038. firstArr.push.apply(firstArr, contentArr.concat(lastArr));
  9039. // 参数需要处理成字符串,方便上传
  9040. return JSON.stringify(firstArr);
  9041. };
  9042. /**
  9043. * 自定义事件参数校验
  9044. */
  9045. var calibration = function calibration(eventName, options) {
  9046. // login 、 share 、pay_success 、pay_fail 、register 、title
  9047. if (!eventName) {
  9048. console.error("uni.report Missing [eventName] parameter");
  9049. return true;
  9050. }
  9051. if (typeof eventName !== 'string') {
  9052. console.error("uni.report [eventName] Parameter type error, it can only be of type String");
  9053. return true;
  9054. }
  9055. if (eventName.length > 255) {
  9056. console.error("uni.report [eventName] Parameter length cannot be greater than 255");
  9057. return true;
  9058. }
  9059. if (typeof options !== 'string' && _typeof(options) !== 'object') {
  9060. console.error('uni.report [options] Parameter type error, Only supports String or Object type');
  9061. return true;
  9062. }
  9063. if (typeof options === 'string' && options.length > 255) {
  9064. console.error("uni.report [options] Parameter length cannot be greater than 255");
  9065. return true;
  9066. }
  9067. if (eventName === 'title' && typeof options !== 'string') {
  9068. console.error("uni.report [eventName] When the parameter is title, the [options] parameter can only be of type String");
  9069. return true;
  9070. }
  9071. };
  9072. var get_page_name = function get_page_name(routepath) {
  9073. return titleJsons && titleJsons[routepath] || '';
  9074. };
  9075. var Report_Data_Time = 'Report_Data_Time';
  9076. var Report_Status = 'Report_Status';
  9077. var is_report_data = function is_report_data() {
  9078. return new Promise(function (resolve, reject) {
  9079. var start_time = '';
  9080. var end_time = new Date().getTime();
  9081. var diff_time = DIFF_TIME;
  9082. var report_status = 1;
  9083. try {
  9084. start_time = uni.getStorageSync(Report_Data_Time);
  9085. report_status = uni.getStorageSync(Report_Status);
  9086. } catch (e) {
  9087. start_time = '';
  9088. report_status = 1;
  9089. }
  9090. if (report_status === '') {
  9091. requestData(function (_ref) {
  9092. var enable = _ref.enable;
  9093. uni.setStorageSync(Report_Data_Time, end_time);
  9094. uni.setStorageSync(Report_Status, enable);
  9095. if (enable === 1) {
  9096. resolve();
  9097. }
  9098. });
  9099. return;
  9100. }
  9101. if (report_status === 1) {
  9102. resolve();
  9103. }
  9104. if (!start_time) {
  9105. uni.setStorageSync(Report_Data_Time, end_time);
  9106. start_time = end_time;
  9107. }
  9108. if (end_time - start_time > diff_time) {
  9109. requestData(function (_ref2) {
  9110. var enable = _ref2.enable;
  9111. uni.setStorageSync(Report_Data_Time, end_time);
  9112. uni.setStorageSync(Report_Status, enable);
  9113. });
  9114. }
  9115. });
  9116. };
  9117. var requestData = function requestData(done) {
  9118. var appid = "__UNI__E97C301";
  9119. var formData = {
  9120. usv: STAT_VERSION,
  9121. conf: JSON.stringify({
  9122. ak: appid
  9123. })
  9124. };
  9125. uni.request({
  9126. url: STAT_URL,
  9127. method: 'GET',
  9128. data: formData,
  9129. success: function success(res) {
  9130. var data = res.data;
  9131. if (data.ret === 0) {
  9132. typeof done === 'function' && done({
  9133. enable: data.enable
  9134. });
  9135. }
  9136. },
  9137. fail: function fail(e) {
  9138. var report_status_code = 1;
  9139. try {
  9140. report_status_code = uni.getStorageSync(Report_Status);
  9141. } catch (e) {
  9142. report_status_code = 1;
  9143. }
  9144. if (report_status_code === '') {
  9145. report_status_code = 1;
  9146. }
  9147. typeof done === 'function' && done({
  9148. enable: report_status_code
  9149. });
  9150. }
  9151. });
  9152. };
  9153. /**
  9154. * 获取uniCloud服务空间配置
  9155. * @returns {Object}
  9156. */
  9157. var uni_cloud_config = function uni_cloud_config() {
  9158. return {} || {};
  9159. };
  9160. /**
  9161. * 获取服务空间
  9162. * @param {*} config
  9163. * @returns
  9164. */
  9165. var get_space = function get_space(config) {
  9166. var uniCloudConfig = uni_cloud_config();
  9167. var spaceId = uniCloudConfig.spaceId,
  9168. provider = uniCloudConfig.provider,
  9169. clientSecret = uniCloudConfig.clientSecret,
  9170. secretKey = uniCloudConfig.secretKey,
  9171. secretId = uniCloudConfig.secretId;
  9172. var space_type = ['tcb', 'tencent', 'aliyun', 'alipay'];
  9173. var is_provider = space_type.indexOf(provider) !== -1;
  9174. var is_aliyun = provider === 'aliyun' && spaceId && clientSecret;
  9175. var is_tcb = (provider === 'tcb' || provider === 'tencent') && spaceId;
  9176. var is_alipay = provider === 'alipay' && spaceId && secretKey && secretId;
  9177. if (is_provider && (is_aliyun || is_tcb || is_alipay)) {
  9178. return uniCloudConfig;
  9179. } else {
  9180. if (config && config.spaceId) {
  9181. return config;
  9182. }
  9183. }
  9184. return null;
  9185. };
  9186. /**
  9187. * 是否开启 debug 模式
  9188. */
  9189. var is_debug = debug;
  9190. /**
  9191. * 日志输出
  9192. * @param {*} data
  9193. */
  9194. var log = function log(data, type) {
  9195. var msg_type = '';
  9196. switch (data.lt) {
  9197. case '1':
  9198. msg_type = '应用启动';
  9199. break;
  9200. case '3':
  9201. msg_type = '应用进入后台';
  9202. break;
  9203. case '11':
  9204. msg_type = '页面切换';
  9205. break;
  9206. case '21':
  9207. msg_type = '事件触发';
  9208. break;
  9209. case '31':
  9210. msg_type = '应用错误';
  9211. break;
  9212. case '101':
  9213. msg_type = 'PUSH';
  9214. break;
  9215. }
  9216. if (type) {
  9217. console.log("=== \u7EDF\u8BA1\u961F\u5217\u6570\u636E\u4E0A\u62A5 ===");
  9218. console.log(data);
  9219. console.log("=== \u4E0A\u62A5\u7ED3\u675F ===");
  9220. return;
  9221. }
  9222. if (msg_type) {
  9223. console.log("=== \u7EDF\u8BA1\u6570\u636E\u91C7\u96C6\uFF1A".concat(msg_type, " ==="));
  9224. console.log(data);
  9225. console.log("=== \u91C7\u96C6\u7ED3\u675F ===");
  9226. }
  9227. };
  9228. /**
  9229. * 获取上报时间间隔
  9230. * @param {*} defaultTime 默认上报间隔时间 单位s
  9231. */
  9232. var get_report_Interval = function get_report_Interval(defaultTime) {
  9233. var time = uniStatisticsConfig.reportInterval;
  9234. // 如果上报时间配置为0 相当于立即上报
  9235. if (Number(time) === 0) return 0;
  9236. time = time || defaultTime;
  9237. var reg = /(^[1-9]\d*$)/;
  9238. // 如果不是整数,则默认为上报间隔时间
  9239. if (!reg.test(time)) return defaultTime;
  9240. return Number(time);
  9241. };
  9242. /**
  9243. * 获取隐私协议配置
  9244. */
  9245. var is_push_clientid = function is_push_clientid() {
  9246. if (uniStatisticsConfig.collectItems) {
  9247. var ClientID = uniStatisticsConfig.collectItems.uniPushClientID;
  9248. return typeof ClientID === 'boolean' ? ClientID : false;
  9249. }
  9250. return false;
  9251. };
  9252. /**
  9253. * 是否上报页面数据
  9254. * @returns
  9255. */
  9256. var is_page_report = function is_page_report() {
  9257. if (uniStatisticsConfig.collectItems) {
  9258. var statPageLog = uniStatisticsConfig.collectItems.uniStatPageLog;
  9259. // 如果字段不存在返回 true , 如果是boolean 值按原值返回,如果是其他类型 返回false
  9260. if (statPageLog === undefined) return true;
  9261. return typeof statPageLog === 'boolean' ? statPageLog : true;
  9262. }
  9263. return true;
  9264. };
  9265. /**
  9266. * 是否已处理设备 DeviceId
  9267. * 如果值为 1 则表示已处理
  9268. */
  9269. var IS_HANDLE_DEVECE_ID = 'is_handle_device_id';
  9270. var is_handle_device = function is_handle_device() {
  9271. var isHandleDevice = dbGet(IS_HANDLE_DEVECE_ID) || '';
  9272. dbSet(IS_HANDLE_DEVECE_ID, '1');
  9273. return isHandleDevice === '1';
  9274. };
  9275. // 首次访问时间
  9276. var FIRST_VISIT_TIME_KEY = '__first__visit__time';
  9277. // 最后访问时间
  9278. var LAST_VISIT_TIME_KEY = '__last__visit__time';
  9279. /**
  9280. * 获取当前时间
  9281. */
  9282. var get_time = function get_time() {
  9283. return parseInt(new Date().getTime() / 1000);
  9284. };
  9285. /**
  9286. * 获取首次访问时间
  9287. */
  9288. var get_first_visit_time = function get_first_visit_time() {
  9289. var timeStorge = dbGet(FIRST_VISIT_TIME_KEY);
  9290. var time = 0;
  9291. if (timeStorge) {
  9292. time = timeStorge;
  9293. } else {
  9294. time = get_time();
  9295. dbSet(FIRST_VISIT_TIME_KEY, time);
  9296. // 首次访问需要 将最后访问时间置 0
  9297. dbRemove(LAST_VISIT_TIME_KEY);
  9298. }
  9299. return time;
  9300. };
  9301. /**
  9302. * 最后访问时间
  9303. */
  9304. var get_last_visit_time = function get_last_visit_time() {
  9305. var timeStorge = dbGet(LAST_VISIT_TIME_KEY);
  9306. var time = 0;
  9307. if (timeStorge) {
  9308. time = timeStorge;
  9309. }
  9310. dbSet(LAST_VISIT_TIME_KEY, get_time());
  9311. return time;
  9312. };
  9313. // 页面停留时间记录key
  9314. var PAGE_RESIDENCE_TIME = '__page__residence__time';
  9315. var First_Page_Residence_Time = 0;
  9316. var Last_Page_Residence_Time = 0;
  9317. /**
  9318. * 设置页面停留时间
  9319. */
  9320. var set_page_residence_time = function set_page_residence_time() {
  9321. First_Page_Residence_Time = get_time();
  9322. dbSet(PAGE_RESIDENCE_TIME, First_Page_Residence_Time);
  9323. return First_Page_Residence_Time;
  9324. };
  9325. /**
  9326. * 获取页面停留时间
  9327. */
  9328. var get_page_residence_time = function get_page_residence_time() {
  9329. Last_Page_Residence_Time = get_time();
  9330. First_Page_Residence_Time = dbGet(PAGE_RESIDENCE_TIME);
  9331. return Last_Page_Residence_Time - First_Page_Residence_Time;
  9332. };
  9333. /**
  9334. * 获取总访问次数
  9335. */
  9336. var TOTAL_VISIT_COUNT = '__total__visit__count';
  9337. var get_total_visit_count = function get_total_visit_count() {
  9338. var timeStorge = dbGet(TOTAL_VISIT_COUNT);
  9339. var count = 1;
  9340. if (timeStorge) {
  9341. count = timeStorge;
  9342. count++;
  9343. }
  9344. dbSet(TOTAL_VISIT_COUNT, count);
  9345. return count;
  9346. };
  9347. var FIRST_TIME = '__first_time';
  9348. /**
  9349. * 设置页面首次访问时间,用户获取页面/应用停留时常
  9350. */
  9351. var set_first_time = function set_first_time() {
  9352. // 获取当前时间 ,以下代码获取到是毫秒级时间戳 ,实际上用到是秒级时间戳,所以需要除以1000
  9353. // const time = new Date().getTime()
  9354. var time = get_time();
  9355. var timeStorge = dbSet(FIRST_TIME, time);
  9356. return timeStorge;
  9357. };
  9358. /**
  9359. * 获取最后一次时间 ,暂时用不到,直接获取当前时间即可
  9360. */
  9361. // export const get_last_time = () => {
  9362. // let time = new Date().getTime()
  9363. // Set__Last__Time = time
  9364. // return time
  9365. // }
  9366. /**
  9367. * 获取页面 \ 应用停留时间
  9368. */
  9369. var get_residence_time = function get_residence_time(type) {
  9370. var residenceTime = 0;
  9371. var first_time = dbGet(FIRST_TIME);
  9372. var last_time = get_time();
  9373. if (first_time !== 0) {
  9374. residenceTime = last_time - first_time;
  9375. }
  9376. // 将毫秒级时间戳转换为秒级时间戳,因为直接获取的是秒级时间戳,所以不需要转换
  9377. // residenceTime = parseInt(residenceTime / 1000)
  9378. residenceTime = residenceTime < 1 ? 1 : residenceTime;
  9379. if (type === 'app') {
  9380. var overtime = residenceTime > APP_PVER_TIME ? true : false;
  9381. return {
  9382. residenceTime: residenceTime,
  9383. overtime: overtime
  9384. };
  9385. }
  9386. if (type === 'page') {
  9387. var _overtime = residenceTime > PAGE_PVER_TIME ? true : false;
  9388. return {
  9389. residenceTime: residenceTime,
  9390. overtime: _overtime
  9391. };
  9392. }
  9393. return {
  9394. residenceTime: residenceTime
  9395. };
  9396. };
  9397. var eport_Interval = get_report_Interval(OPERATING_TIME);
  9398. // 统计数据默认值
  9399. var statData = {
  9400. uuid: get_uuid(),
  9401. // 设备标识
  9402. ak: stat_config.appid,
  9403. // uni-app 应用 Appid
  9404. p: sys.platform === 'android' ? 'a' : 'i',
  9405. // 手机系统
  9406. ut: get_platform_name(),
  9407. // 平台类型
  9408. mpn: get_pack_name(),
  9409. // 原生平台包名、小程序 appid
  9410. usv: STAT_VERSION,
  9411. // 统计 sdk 版本
  9412. v: get_version(),
  9413. // 应用版本,仅app
  9414. ch: get_channel(),
  9415. // 渠道信息
  9416. cn: '',
  9417. // 国家
  9418. pn: '',
  9419. // 省份
  9420. ct: '',
  9421. // 城市
  9422. t: get_time(),
  9423. // 上报数据时的时间戳
  9424. tt: '',
  9425. brand: sys.brand || '',
  9426. // 手机品牌
  9427. md: sys.model,
  9428. // 手机型号
  9429. sv: sys.system.replace(/(Android|iOS)\s/, ''),
  9430. // 手机系统版本
  9431. mpsdk: sys.SDKVersion || '',
  9432. // x程序 sdk version
  9433. mpv: sys.version || '',
  9434. // 小程序平台版本 ,如微信、支付宝
  9435. lang: sys.language,
  9436. // 语言
  9437. pr: sys.pixelRatio,
  9438. // pixelRatio 设备像素比
  9439. ww: sys.windowWidth,
  9440. // windowWidth 可使用窗口宽度
  9441. wh: sys.windowHeight,
  9442. // windowHeight 可使用窗口高度
  9443. sw: sys.screenWidth,
  9444. // screenWidth 屏幕宽度
  9445. sh: sys.screenHeight // screenHeight 屏幕高度
  9446. };
  9447. var Report = /*#__PURE__*/function () {
  9448. "use strict";
  9449. function Report() {
  9450. _classCallCheck(this, Report);
  9451. // 页面实例
  9452. this.self = '';
  9453. // 进入应用标识
  9454. this.__licationShow = false;
  9455. // 离开应用标识
  9456. this.__licationHide = false;
  9457. // 统计默认值
  9458. this.statData = statData;
  9459. // 标题默认值
  9460. this._navigationBarTitle = {
  9461. config: '',
  9462. page: '',
  9463. report: '',
  9464. lt: ''
  9465. };
  9466. // 页面参数
  9467. this._query = {};
  9468. // 页面最后停留页面的 url
  9469. // this._lastPageRoute = ''
  9470. // 注册拦截器
  9471. var registerInterceptor = typeof uni.addInterceptor === 'function';
  9472. if (registerInterceptor) {
  9473. this.addInterceptorInit();
  9474. this.interceptLogin();
  9475. this.interceptShare(true);
  9476. this.interceptRequestPayment();
  9477. }
  9478. }
  9479. _createClass(Report, [{
  9480. key: "addInterceptorInit",
  9481. value: function addInterceptorInit() {
  9482. var self = this;
  9483. uni.addInterceptor('setNavigationBarTitle', {
  9484. invoke: function invoke(args) {
  9485. self._navigationBarTitle.page = args.title;
  9486. }
  9487. });
  9488. }
  9489. }, {
  9490. key: "interceptLogin",
  9491. value: function interceptLogin() {
  9492. var self = this;
  9493. uni.addInterceptor('login', {
  9494. complete: function complete() {
  9495. self._login();
  9496. }
  9497. });
  9498. }
  9499. }, {
  9500. key: "interceptShare",
  9501. value: function interceptShare(type) {
  9502. var self = this;
  9503. if (!type) {
  9504. self._share();
  9505. return;
  9506. }
  9507. uni.addInterceptor('share', {
  9508. success: function success() {
  9509. self._share();
  9510. },
  9511. fail: function fail() {
  9512. self._share();
  9513. }
  9514. });
  9515. }
  9516. }, {
  9517. key: "interceptRequestPayment",
  9518. value: function interceptRequestPayment() {
  9519. var self = this;
  9520. uni.addInterceptor('requestPayment', {
  9521. success: function success() {
  9522. self._payment('pay_success');
  9523. },
  9524. fail: function fail() {
  9525. self._payment('pay_fail');
  9526. }
  9527. });
  9528. }
  9529. }, {
  9530. key: "_login",
  9531. value: function _login() {
  9532. this.sendEventRequest({
  9533. key: 'login'
  9534. }, 0);
  9535. }
  9536. }, {
  9537. key: "_share",
  9538. value: function _share() {
  9539. this.sendEventRequest({
  9540. key: 'share'
  9541. }, 0);
  9542. }
  9543. }, {
  9544. key: "_payment",
  9545. value: function _payment(key) {
  9546. this.sendEventRequest({
  9547. key: key
  9548. }, 0);
  9549. }
  9550. /**
  9551. * 进入应用触发
  9552. */
  9553. }, {
  9554. key: "applicationShow",
  9555. value: function applicationShow() {
  9556. // 通过 __licationHide 判断保证是进入后台后在次进入应用,避免重复上报数据
  9557. if (this.__licationHide) {
  9558. var time = get_residence_time('app');
  9559. // 需要判断进入后台是否超过时限 ,默认是 30min ,是的话需要执行进入应用的上报
  9560. if (time.overtime) {
  9561. var lastPageRoute = uni.getStorageSync('_STAT_LAST_PAGE_ROUTE');
  9562. var options = {
  9563. path: lastPageRoute,
  9564. scene: this.statData.sc,
  9565. cst: 2
  9566. };
  9567. this.sendReportRequest(options);
  9568. }
  9569. // 状态重置
  9570. this.__licationHide = false;
  9571. }
  9572. }
  9573. /**
  9574. * 离开应用触发
  9575. * @param {Object} self
  9576. * @param {Object} type
  9577. */
  9578. }, {
  9579. key: "applicationHide",
  9580. value: function applicationHide(self, type) {
  9581. if (!self) {
  9582. // 表示应用切换到后台 ,此时需要从页面栈获取页面实例
  9583. self = get_page_vm();
  9584. }
  9585. // 进入应用后台保存状态,方便进入前台后判断是否上报应用数据
  9586. this.__licationHide = true;
  9587. var time = get_residence_time();
  9588. var route = get_page_route(self);
  9589. uni.setStorageSync('_STAT_LAST_PAGE_ROUTE', route);
  9590. this.sendHideRequest({
  9591. urlref: route,
  9592. urlref_ts: time.residenceTime
  9593. }, type);
  9594. // 更新页面首次访问时间
  9595. set_first_time();
  9596. }
  9597. /**
  9598. * 进入页面触发
  9599. */
  9600. }, {
  9601. key: "pageShow",
  9602. value: function pageShow(self) {
  9603. // 清空值 ,初始化 ,避免污染后面的上报数据
  9604. this._navigationBarTitle = {
  9605. config: '',
  9606. page: '',
  9607. report: '',
  9608. lt: ''
  9609. };
  9610. var route = get_page_route(self);
  9611. var routepath = get_route$1(self);
  9612. this._navigationBarTitle.config = get_page_name(routepath);
  9613. // 表示应用触发 ,页面切换不触发之后的逻辑
  9614. if (this.__licationShow) {
  9615. // 更新页面首次访问时间
  9616. set_first_time();
  9617. // this._lastPageRoute = route
  9618. uni.setStorageSync('_STAT_LAST_PAGE_ROUTE', route);
  9619. this.__licationShow = false;
  9620. return;
  9621. }
  9622. var time = get_residence_time('page');
  9623. // 停留时间
  9624. if (time.overtime) {
  9625. var options = {
  9626. path: route,
  9627. scene: this.statData.sc,
  9628. cst: 3
  9629. };
  9630. this.sendReportRequest(options);
  9631. }
  9632. // 更新页面首次访问时间
  9633. set_first_time();
  9634. }
  9635. /**
  9636. * 离开页面触发
  9637. */
  9638. }, {
  9639. key: "pageHide",
  9640. value: function pageHide(self) {
  9641. if (!this.__licationHide) {
  9642. var time = get_residence_time('page');
  9643. var route = get_page_route(self);
  9644. var lastPageRoute = uni.getStorageSync('_STAT_LAST_PAGE_ROUTE');
  9645. if (!lastPageRoute) {
  9646. lastPageRoute = route;
  9647. }
  9648. uni.setStorageSync('_STAT_LAST_PAGE_ROUTE', route);
  9649. this.sendPageRequest({
  9650. url: route,
  9651. urlref: lastPageRoute,
  9652. urlref_ts: time.residenceTime
  9653. });
  9654. // this._lastPageRoute = route
  9655. return;
  9656. }
  9657. }
  9658. /**
  9659. * 发送请求,应用维度上报
  9660. * @param {Object} options 页面信息
  9661. * @param {Boolean} type 是否立即上报
  9662. */
  9663. }, {
  9664. key: "sendReportRequest",
  9665. value: function sendReportRequest(options, type) {
  9666. this._navigationBarTitle.lt = '1';
  9667. this._navigationBarTitle.config = get_page_name(options.path);
  9668. var is_opt = options.query && JSON.stringify(options.query) !== '{}';
  9669. var query = is_opt ? '?' + JSON.stringify(options.query) : '';
  9670. var last_time = get_last_visit_time();
  9671. // 非老用户
  9672. if (last_time !== 0 || !last_time) {
  9673. var odid = get_odid();
  9674. // 2.0 处理规则
  9675. {
  9676. var have_device = is_handle_device();
  9677. // 如果没有上报过设备信息 ,则需要上报设备信息
  9678. if (!have_device) {
  9679. this.statData.odid = odid;
  9680. }
  9681. }
  9682. }
  9683. Object.assign(this.statData, {
  9684. lt: '1',
  9685. url: options.path + query || '',
  9686. t: get_time(),
  9687. sc: get_scene(options.scene),
  9688. fvts: get_first_visit_time(),
  9689. lvts: last_time,
  9690. tvc: get_total_visit_count(),
  9691. // create session type 上报类型 ,1 应用进入 2.后台30min进入 3.页面30min进入
  9692. cst: options.cst || 1
  9693. });
  9694. if (get_platform_name() === 'n') {
  9695. this.getProperty(type);
  9696. } else {
  9697. this.getNetworkInfo(type);
  9698. }
  9699. }
  9700. /**
  9701. * 发送请求,页面维度上报
  9702. * @param {Object} opt
  9703. */
  9704. }, {
  9705. key: "sendPageRequest",
  9706. value: function sendPageRequest(opt) {
  9707. var url = opt.url,
  9708. urlref = opt.urlref,
  9709. urlref_ts = opt.urlref_ts;
  9710. this._navigationBarTitle.lt = '11';
  9711. var options = {
  9712. ak: this.statData.ak,
  9713. uuid: this.statData.uuid,
  9714. p: this.statData.p,
  9715. lt: '11',
  9716. ut: this.statData.ut,
  9717. url: url,
  9718. tt: this.statData.tt,
  9719. urlref: urlref,
  9720. urlref_ts: urlref_ts,
  9721. ch: this.statData.ch,
  9722. usv: this.statData.usv,
  9723. t: get_time()
  9724. };
  9725. this.request(options);
  9726. }
  9727. /**
  9728. * 进入后台上报数据
  9729. * @param {Object} opt
  9730. * @param {Object} type
  9731. */
  9732. }, {
  9733. key: "sendHideRequest",
  9734. value: function sendHideRequest(opt, type) {
  9735. var urlref = opt.urlref,
  9736. urlref_ts = opt.urlref_ts;
  9737. var options = {
  9738. ak: this.statData.ak,
  9739. uuid: this.statData.uuid,
  9740. p: this.statData.p,
  9741. lt: '3',
  9742. ut: this.statData.ut,
  9743. urlref: urlref,
  9744. urlref_ts: urlref_ts,
  9745. ch: this.statData.ch,
  9746. usv: this.statData.usv,
  9747. t: get_time()
  9748. };
  9749. this.request(options, type);
  9750. }
  9751. /**
  9752. * 自定义事件上报
  9753. */
  9754. }, {
  9755. key: "sendEventRequest",
  9756. value: function sendEventRequest() {
  9757. var _ref3 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
  9758. _ref3$key = _ref3.key,
  9759. key = _ref3$key === void 0 ? '' : _ref3$key,
  9760. _ref3$value = _ref3.value,
  9761. value = _ref3$value === void 0 ? '' : _ref3$value;
  9762. var routepath = '';
  9763. try {
  9764. routepath = get_route$1();
  9765. } catch (error) {
  9766. var launch_options = dbGet('__launch_options');
  9767. routepath = launch_options.path;
  9768. }
  9769. this._navigationBarTitle.config = get_page_name(routepath);
  9770. this._navigationBarTitle.lt = '21';
  9771. var options = {
  9772. ak: this.statData.ak,
  9773. uuid: this.statData.uuid,
  9774. p: this.statData.p,
  9775. lt: '21',
  9776. ut: this.statData.ut,
  9777. url: routepath,
  9778. ch: this.statData.ch,
  9779. e_n: key,
  9780. e_v: _typeof(value) === 'object' ? JSON.stringify(value) : value.toString(),
  9781. usv: this.statData.usv,
  9782. t: get_time()
  9783. };
  9784. this.request(options);
  9785. }
  9786. }, {
  9787. key: "sendPushRequest",
  9788. value: function sendPushRequest(options, cid) {
  9789. var _this = this;
  9790. var time = get_time();
  9791. var statData = {
  9792. lt: '101',
  9793. cid: cid,
  9794. t: time,
  9795. ut: this.statData.ut
  9796. };
  9797. // debug 打印打点信息
  9798. if (is_debug) {
  9799. log(statData);
  9800. }
  9801. var stat_data = handle_data({
  9802. 101: [statData]
  9803. });
  9804. var optionsData = {
  9805. usv: STAT_VERSION,
  9806. //统计 SDK 版本号
  9807. t: time,
  9808. //发送请求时的时间戮
  9809. requests: stat_data
  9810. };
  9811. // XXX 安卓需要延迟上报 ,否则会有未知错误,需要验证处理
  9812. if (get_platform_name() === 'n' && this.statData.p === 'a') {
  9813. setTimeout(function () {
  9814. _this.sendRequest(optionsData);
  9815. }, 200);
  9816. return;
  9817. }
  9818. this.sendRequest(optionsData);
  9819. }
  9820. /**
  9821. * 获取wgt资源版本
  9822. */
  9823. }, {
  9824. key: "getProperty",
  9825. value: function getProperty(type) {
  9826. var _this2 = this;
  9827. plus.runtime.getProperty(plus.runtime.appid, function (wgtinfo) {
  9828. _this2.statData.v = wgtinfo.version || '';
  9829. _this2.getNetworkInfo(type);
  9830. });
  9831. }
  9832. /**
  9833. * 获取网络信息
  9834. */
  9835. }, {
  9836. key: "getNetworkInfo",
  9837. value: function getNetworkInfo(type) {
  9838. var _this3 = this;
  9839. uni.getNetworkType({
  9840. success: function success(result) {
  9841. _this3.statData.net = result.networkType;
  9842. _this3.getLocation(type);
  9843. }
  9844. });
  9845. }
  9846. /**
  9847. * 获取位置信息
  9848. */
  9849. }, {
  9850. key: "getLocation",
  9851. value: function getLocation(type) {
  9852. var _this4 = this;
  9853. if (stat_config.getLocation) {
  9854. uni.getLocation({
  9855. type: 'wgs84',
  9856. geocode: true,
  9857. success: function success(result) {
  9858. if (result.address) {
  9859. _this4.statData.cn = result.address.country;
  9860. _this4.statData.pn = result.address.province;
  9861. _this4.statData.ct = result.address.city;
  9862. }
  9863. _this4.statData.lat = result.latitude;
  9864. _this4.statData.lng = result.longitude;
  9865. _this4.request(_this4.statData, type);
  9866. }
  9867. });
  9868. } else {
  9869. this.statData.lat = 0;
  9870. this.statData.lng = 0;
  9871. this.request(this.statData, type);
  9872. }
  9873. }
  9874. /**
  9875. * 发送请求
  9876. * @param {Object} data 上报数据
  9877. * @param {Object} type 类型
  9878. */
  9879. }, {
  9880. key: "request",
  9881. value: function request(data, type) {
  9882. var _this5 = this;
  9883. var time = get_time();
  9884. var title = this._navigationBarTitle;
  9885. Object.assign(data, {
  9886. ttn: title.page,
  9887. ttpj: title.config,
  9888. ttc: title.report
  9889. });
  9890. var uniStatData = dbGet('__UNI__STAT__DATA') || {};
  9891. if (!uniStatData[data.lt]) {
  9892. uniStatData[data.lt] = [];
  9893. }
  9894. // 加入队列
  9895. uniStatData[data.lt].push(data);
  9896. dbSet('__UNI__STAT__DATA', uniStatData);
  9897. var page_residence_time = get_page_residence_time();
  9898. // debug 打印打点信息
  9899. if (is_debug) {
  9900. log(data);
  9901. }
  9902. // 判断时候到达上报时间 ,默认 10 秒上报
  9903. if (page_residence_time < eport_Interval && !type) return;
  9904. // 时间超过,重新获取时间戳
  9905. set_page_residence_time();
  9906. var stat_data = handle_data(uniStatData);
  9907. var optionsData = {
  9908. usv: STAT_VERSION,
  9909. //统计 SDK 版本号
  9910. t: time,
  9911. //发送请求时的时间戮
  9912. requests: stat_data
  9913. };
  9914. // 重置队列
  9915. dbRemove('__UNI__STAT__DATA');
  9916. // XXX 安卓需要延迟上报 ,否则会有未知错误,需要验证处理
  9917. if (get_platform_name() === 'n' && this.statData.p === 'a') {
  9918. setTimeout(function () {
  9919. _this5.sendRequest(optionsData);
  9920. }, 200);
  9921. return;
  9922. }
  9923. this.sendRequest(optionsData);
  9924. }
  9925. }, {
  9926. key: "getIsReportData",
  9927. value: function getIsReportData() {
  9928. return is_report_data();
  9929. }
  9930. /**
  9931. * 数据上报
  9932. * @param {Object} optionsData 需要上报的数据
  9933. */
  9934. }, {
  9935. key: "sendRequest",
  9936. value: function sendRequest(optionsData) {
  9937. {
  9938. if (!uni.__stat_uniCloud_space) {
  9939. console.error('应用未关联服务空间,统计上报失败,请在uniCloud目录右键关联服务空间.');
  9940. return;
  9941. }
  9942. var uniCloudObj = uni.__stat_uniCloud_space.importObject('uni-stat-receiver', {
  9943. customUI: true
  9944. });
  9945. uniCloudObj.report(optionsData).then(function () {
  9946. if (is_debug) {
  9947. log(optionsData, true);
  9948. }
  9949. }).catch(function (err) {
  9950. if (is_debug) {
  9951. console.warn('=== 统计上报错误');
  9952. console.error(err);
  9953. }
  9954. });
  9955. }
  9956. }
  9957. /**
  9958. * h5 请求
  9959. */
  9960. }, {
  9961. key: "imageRequest",
  9962. value: function imageRequest(data) {
  9963. this.getIsReportData().then(function () {
  9964. var image = new Image();
  9965. var options = get_sgin(get_encodeURIComponent_options(data)).options;
  9966. image.src = STAT_H5_URL + '?' + options;
  9967. if (is_debug) {
  9968. log(data, true);
  9969. }
  9970. });
  9971. }
  9972. }, {
  9973. key: "sendEvent",
  9974. value: function sendEvent(key, value) {
  9975. // 校验 type 参数
  9976. if (calibration(key, value)) return;
  9977. if (key === 'title') {
  9978. this._navigationBarTitle.report = value;
  9979. return;
  9980. }
  9981. this.sendEventRequest({
  9982. key: key,
  9983. value: _typeof(value) === 'object' ? JSON.stringify(value) : value
  9984. }, 1);
  9985. }
  9986. }]);
  9987. return Report;
  9988. }();
  9989. var Stat = /*#__PURE__*/function (_Report) {
  9990. "use strict";
  9991. _inherits(Stat, _Report);
  9992. var _super = _createSuper(Stat);
  9993. function Stat() {
  9994. _classCallCheck(this, Stat);
  9995. return _super.call(this);
  9996. }
  9997. /**
  9998. * 获取推送id
  9999. */
  10000. _createClass(Stat, [{
  10001. key: "pushEvent",
  10002. value: function pushEvent(options) {
  10003. var _this6 = this;
  10004. var ClientID = is_push_clientid();
  10005. if (uni.getPushClientId && ClientID) {
  10006. uni.getPushClientId({
  10007. success: function success(res) {
  10008. var cid = res.cid || false;
  10009. // 只有获取到才会上传
  10010. if (cid) {
  10011. _this6.sendPushRequest(options, cid);
  10012. }
  10013. }
  10014. });
  10015. }
  10016. }
  10017. /**
  10018. * 进入应用
  10019. * @param {Object} options 页面参数
  10020. * @param {Object} self 当前页面实例
  10021. */
  10022. }, {
  10023. key: "launch",
  10024. value: function launch(options, self) {
  10025. // 初始化页面停留时间 start
  10026. set_page_residence_time();
  10027. this.__licationShow = true;
  10028. dbSet('__launch_options', options);
  10029. // 应用初始上报参数为1
  10030. options.cst = 1;
  10031. this.sendReportRequest(options, true);
  10032. }
  10033. }, {
  10034. key: "load",
  10035. value: function load(options, self) {
  10036. this.self = self;
  10037. this._query = options;
  10038. }
  10039. }, {
  10040. key: "appHide",
  10041. value: function appHide(self) {
  10042. this.applicationHide(self, true);
  10043. }
  10044. }, {
  10045. key: "appShow",
  10046. value: function appShow(self) {
  10047. this.applicationShow(self);
  10048. }
  10049. }, {
  10050. key: "show",
  10051. value: function show(self) {
  10052. this.self = self;
  10053. if (get_page_types(self) === 'page') {
  10054. var isPageReport = is_page_report();
  10055. if (isPageReport) {
  10056. this.pageShow(self);
  10057. }
  10058. }
  10059. if (get_page_types(self) === 'app') {
  10060. this.appShow();
  10061. }
  10062. }
  10063. }, {
  10064. key: "hide",
  10065. value: function hide(self) {
  10066. this.self = self;
  10067. if (get_page_types(self) === 'page') {
  10068. var isPageReport = is_page_report();
  10069. if (isPageReport) {
  10070. this.pageHide(self);
  10071. }
  10072. }
  10073. if (get_page_types(self) === 'app') {
  10074. this.appHide();
  10075. }
  10076. }
  10077. }, {
  10078. key: "error",
  10079. value: function error(em) {
  10080. // 开发工具内不上报错误
  10081. // if (this._platform === 'devtools') {
  10082. // if (process.env.NODE_ENV === 'development') {
  10083. // console.info('当前运行环境为开发者工具,不上报数据。')
  10084. // return
  10085. // }
  10086. // }
  10087. var emVal = '';
  10088. if (!em.message) {
  10089. emVal = JSON.stringify(em);
  10090. } else {
  10091. emVal = em.stack;
  10092. }
  10093. var route = '';
  10094. try {
  10095. route = get_route();
  10096. } catch (e) {
  10097. // 未获取到页面路径
  10098. route = '';
  10099. }
  10100. var options = {
  10101. ak: this.statData.ak,
  10102. uuid: this.statData.uuid,
  10103. p: this.statData.p,
  10104. lt: '31',
  10105. url: route,
  10106. ut: this.statData.ut,
  10107. ch: this.statData.ch,
  10108. mpsdk: this.statData.mpsdk,
  10109. mpv: this.statData.mpv,
  10110. v: this.statData.v,
  10111. em: emVal,
  10112. usv: this.statData.usv,
  10113. t: parseInt(new Date().getTime() / 1000)
  10114. };
  10115. this.request(options);
  10116. }
  10117. }], [{
  10118. key: "getInstance",
  10119. value: function getInstance() {
  10120. if (!uni.__stat_instance) {
  10121. uni.__stat_instance = new Stat();
  10122. }
  10123. // 2.0 init 服务空间
  10124. {
  10125. var space = get_space(uniCloud.config);
  10126. if (!uni.__stat_uniCloud_space) {
  10127. // 判断不为空对象
  10128. if (space && Object.keys(space).length !== 0) {
  10129. var spaceData = {
  10130. provider: space.provider,
  10131. spaceId: space.spaceId,
  10132. clientSecret: space.clientSecret
  10133. };
  10134. if (space.endpoint) {
  10135. spaceData.endpoint = space.endpoint;
  10136. }
  10137. if (space.provider === 'alipay') {
  10138. spaceData.secretKey = space.secretKey;
  10139. spaceData.accessKey = space.accessKey || space.secretId;
  10140. spaceData.spaceAppId = space.spaceAppId || space.appId;
  10141. }
  10142. uni.__stat_uniCloud_space = uniCloud.init(spaceData);
  10143. // console.log(
  10144. // '=== 当前绑定的统计服务空间spaceId:' +
  10145. // uni.__stat_uniCloud_space.config.spaceId
  10146. // )
  10147. } else {
  10148. console.error('应用未关联服务空间,请在uniCloud目录右键关联服务空间');
  10149. }
  10150. }
  10151. }
  10152. return uni.__stat_instance;
  10153. }
  10154. }]);
  10155. return Stat;
  10156. }(Report);
  10157. var Stat$1 = Stat;
  10158. var stat = Stat$1.getInstance();
  10159. // 用于判断是隐藏页面还是卸载页面
  10160. var isHide = false;
  10161. var lifecycle = {
  10162. onLaunch: function onLaunch(options) {
  10163. // 进入应用上报数据
  10164. stat.launch(options, this);
  10165. // 上报push推送id
  10166. stat.pushEvent(options);
  10167. },
  10168. onLoad: function onLoad(options) {
  10169. stat.load(options, this);
  10170. // 重写分享,获取分享上报事件
  10171. if (this.$scope && this.$scope.onShareAppMessage) {
  10172. var oldShareAppMessage = this.$scope.onShareAppMessage;
  10173. this.$scope.onShareAppMessage = function (options) {
  10174. stat.interceptShare(false);
  10175. return oldShareAppMessage.call(this, options);
  10176. };
  10177. }
  10178. },
  10179. onShow: function onShow() {
  10180. isHide = false;
  10181. stat.show(this);
  10182. },
  10183. onHide: function onHide() {
  10184. isHide = true;
  10185. stat.hide(this);
  10186. },
  10187. onUnload: function onUnload() {
  10188. if (isHide) {
  10189. isHide = false;
  10190. return;
  10191. }
  10192. stat.hide(this);
  10193. },
  10194. onError: function onError(e) {
  10195. stat.error(e);
  10196. }
  10197. };
  10198. // 加载统计代码
  10199. function load_stat() {
  10200. // eslint-disable-next-line no-restricted-globals
  10201. var Vue = __webpack_require__(/*! vue */ 25);
  10202. (Vue.default || Vue).mixin(lifecycle);
  10203. uni.report = function (type, options) {
  10204. stat.sendEvent(type, options);
  10205. };
  10206. }
  10207. function main() {
  10208. if (is_debug) {
  10209. {
  10210. console.log('=== uni统计开启,version:2.0 ===');
  10211. }
  10212. load_stat();
  10213. } else {
  10214. if (true) {
  10215. uni.report = function (type, options) {};
  10216. } else {}
  10217. }
  10218. }
  10219. main();
  10220. /* 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)["default"]))
  10221. /***/ }),
  10222. /***/ 28:
  10223. /*!************************************************************************************!*\
  10224. !*** ./node_modules/@dcloudio/vue-cli-plugin-uni/packages/uni-cloud/dist/index.js ***!
  10225. \************************************************************************************/
  10226. /*! no static exports found */
  10227. /***/ (function(module, exports, __webpack_require__) {
  10228. "use strict";
  10229. /* WEBPACK VAR INJECTION */(function(global, uni, wx) {
  10230. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  10231. Object.defineProperty(exports, "__esModule", {
  10232. value: true
  10233. });
  10234. exports.default = void 0;
  10235. var _regenerator = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/regenerator */ 29));
  10236. var _assertThisInitialized2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/assertThisInitialized */ 31));
  10237. var _slicedToArray2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/slicedToArray */ 5));
  10238. var _typeof2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/typeof */ 13));
  10239. var _toConsumableArray2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/toConsumableArray */ 18));
  10240. var _asyncToGenerator2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/asyncToGenerator */ 32));
  10241. var _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/defineProperty */ 11));
  10242. var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/inherits */ 33));
  10243. var _possibleConstructorReturn2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/possibleConstructorReturn */ 34));
  10244. var _getPrototypeOf2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ 35));
  10245. var _wrapNativeSuper2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/wrapNativeSuper */ 36));
  10246. var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ 23));
  10247. var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ 24));
  10248. var _pages = _interopRequireDefault(__webpack_require__(/*! @/pages.json */ 38));
  10249. 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; } } }; }
  10250. 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); }
  10251. 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; }
  10252. 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; }
  10253. 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; }
  10254. 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); }; }
  10255. 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; } }
  10256. "undefined" != typeof globalThis ? globalThis : "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof self && self;
  10257. function t(e) {
  10258. return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
  10259. }
  10260. function n(e, t, n) {
  10261. return e(n = {
  10262. path: t,
  10263. exports: {},
  10264. require: function require(e, t) {
  10265. return function () {
  10266. throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs");
  10267. }(null == t && n.path);
  10268. }
  10269. }, n.exports), n.exports;
  10270. }
  10271. var s = n(function (e, t) {
  10272. var n;
  10273. e.exports = (n = n || function (e, t) {
  10274. var n = Object.create || function () {
  10275. function e() {}
  10276. return function (t) {
  10277. var n;
  10278. return e.prototype = t, n = new e(), e.prototype = null, n;
  10279. };
  10280. }(),
  10281. s = {},
  10282. r = s.lib = {},
  10283. i = r.Base = {
  10284. extend: function extend(e) {
  10285. var t = n(this);
  10286. return e && t.mixIn(e), t.hasOwnProperty("init") && this.init !== t.init || (t.init = function () {
  10287. t.$super.init.apply(this, arguments);
  10288. }), t.init.prototype = t, t.$super = this, t;
  10289. },
  10290. create: function create() {
  10291. var e = this.extend();
  10292. return e.init.apply(e, arguments), e;
  10293. },
  10294. init: function init() {},
  10295. mixIn: function mixIn(e) {
  10296. for (var t in e) {
  10297. e.hasOwnProperty(t) && (this[t] = e[t]);
  10298. }
  10299. e.hasOwnProperty("toString") && (this.toString = e.toString);
  10300. },
  10301. clone: function clone() {
  10302. return this.init.prototype.extend(this);
  10303. }
  10304. },
  10305. o = r.WordArray = i.extend({
  10306. init: function init(e, n) {
  10307. e = this.words = e || [], this.sigBytes = n != t ? n : 4 * e.length;
  10308. },
  10309. toString: function toString(e) {
  10310. return (e || c).stringify(this);
  10311. },
  10312. concat: function concat(e) {
  10313. var t = this.words,
  10314. n = e.words,
  10315. s = this.sigBytes,
  10316. r = e.sigBytes;
  10317. if (this.clamp(), s % 4) for (var i = 0; i < r; i++) {
  10318. var o = n[i >>> 2] >>> 24 - i % 4 * 8 & 255;
  10319. t[s + i >>> 2] |= o << 24 - (s + i) % 4 * 8;
  10320. } else for (i = 0; i < r; i += 4) {
  10321. t[s + i >>> 2] = n[i >>> 2];
  10322. }
  10323. return this.sigBytes += r, this;
  10324. },
  10325. clamp: function clamp() {
  10326. var t = this.words,
  10327. n = this.sigBytes;
  10328. t[n >>> 2] &= 4294967295 << 32 - n % 4 * 8, t.length = e.ceil(n / 4);
  10329. },
  10330. clone: function clone() {
  10331. var e = i.clone.call(this);
  10332. return e.words = this.words.slice(0), e;
  10333. },
  10334. random: function random(t) {
  10335. for (var n, s = [], r = function r(t) {
  10336. t = t;
  10337. var n = 987654321,
  10338. s = 4294967295;
  10339. return function () {
  10340. var r = ((n = 36969 * (65535 & n) + (n >> 16) & s) << 16) + (t = 18e3 * (65535 & t) + (t >> 16) & s) & s;
  10341. return r /= 4294967296, (r += .5) * (e.random() > .5 ? 1 : -1);
  10342. };
  10343. }, i = 0; i < t; i += 4) {
  10344. var a = r(4294967296 * (n || e.random()));
  10345. n = 987654071 * a(), s.push(4294967296 * a() | 0);
  10346. }
  10347. return new o.init(s, t);
  10348. }
  10349. }),
  10350. a = s.enc = {},
  10351. c = a.Hex = {
  10352. stringify: function stringify(e) {
  10353. for (var t = e.words, n = e.sigBytes, s = [], r = 0; r < n; r++) {
  10354. var i = t[r >>> 2] >>> 24 - r % 4 * 8 & 255;
  10355. s.push((i >>> 4).toString(16)), s.push((15 & i).toString(16));
  10356. }
  10357. return s.join("");
  10358. },
  10359. parse: function parse(e) {
  10360. for (var t = e.length, n = [], s = 0; s < t; s += 2) {
  10361. n[s >>> 3] |= parseInt(e.substr(s, 2), 16) << 24 - s % 8 * 4;
  10362. }
  10363. return new o.init(n, t / 2);
  10364. }
  10365. },
  10366. u = a.Latin1 = {
  10367. stringify: function stringify(e) {
  10368. for (var t = e.words, n = e.sigBytes, s = [], r = 0; r < n; r++) {
  10369. var i = t[r >>> 2] >>> 24 - r % 4 * 8 & 255;
  10370. s.push(String.fromCharCode(i));
  10371. }
  10372. return s.join("");
  10373. },
  10374. parse: function parse(e) {
  10375. for (var t = e.length, n = [], s = 0; s < t; s++) {
  10376. n[s >>> 2] |= (255 & e.charCodeAt(s)) << 24 - s % 4 * 8;
  10377. }
  10378. return new o.init(n, t);
  10379. }
  10380. },
  10381. h = a.Utf8 = {
  10382. stringify: function stringify(e) {
  10383. try {
  10384. return decodeURIComponent(escape(u.stringify(e)));
  10385. } catch (e) {
  10386. throw new Error("Malformed UTF-8 data");
  10387. }
  10388. },
  10389. parse: function parse(e) {
  10390. return u.parse(unescape(encodeURIComponent(e)));
  10391. }
  10392. },
  10393. l = r.BufferedBlockAlgorithm = i.extend({
  10394. reset: function reset() {
  10395. this._data = new o.init(), this._nDataBytes = 0;
  10396. },
  10397. _append: function _append(e) {
  10398. "string" == typeof e && (e = h.parse(e)), this._data.concat(e), this._nDataBytes += e.sigBytes;
  10399. },
  10400. _process: function _process(t) {
  10401. var n = this._data,
  10402. s = n.words,
  10403. r = n.sigBytes,
  10404. i = this.blockSize,
  10405. a = r / (4 * i),
  10406. c = (a = t ? e.ceil(a) : e.max((0 | a) - this._minBufferSize, 0)) * i,
  10407. u = e.min(4 * c, r);
  10408. if (c) {
  10409. for (var h = 0; h < c; h += i) {
  10410. this._doProcessBlock(s, h);
  10411. }
  10412. var l = s.splice(0, c);
  10413. n.sigBytes -= u;
  10414. }
  10415. return new o.init(l, u);
  10416. },
  10417. clone: function clone() {
  10418. var e = i.clone.call(this);
  10419. return e._data = this._data.clone(), e;
  10420. },
  10421. _minBufferSize: 0
  10422. });
  10423. r.Hasher = l.extend({
  10424. cfg: i.extend(),
  10425. init: function init(e) {
  10426. this.cfg = this.cfg.extend(e), this.reset();
  10427. },
  10428. reset: function reset() {
  10429. l.reset.call(this), this._doReset();
  10430. },
  10431. update: function update(e) {
  10432. return this._append(e), this._process(), this;
  10433. },
  10434. finalize: function finalize(e) {
  10435. return e && this._append(e), this._doFinalize();
  10436. },
  10437. blockSize: 16,
  10438. _createHelper: function _createHelper(e) {
  10439. return function (t, n) {
  10440. return new e.init(n).finalize(t);
  10441. };
  10442. },
  10443. _createHmacHelper: function _createHmacHelper(e) {
  10444. return function (t, n) {
  10445. return new d.HMAC.init(e, n).finalize(t);
  10446. };
  10447. }
  10448. });
  10449. var d = s.algo = {};
  10450. return s;
  10451. }(Math), n);
  10452. }),
  10453. r = s,
  10454. i = (n(function (e, t) {
  10455. var n;
  10456. e.exports = (n = r, function (e) {
  10457. var t = n,
  10458. s = t.lib,
  10459. r = s.WordArray,
  10460. i = s.Hasher,
  10461. o = t.algo,
  10462. a = [];
  10463. !function () {
  10464. for (var t = 0; t < 64; t++) {
  10465. a[t] = 4294967296 * e.abs(e.sin(t + 1)) | 0;
  10466. }
  10467. }();
  10468. var c = o.MD5 = i.extend({
  10469. _doReset: function _doReset() {
  10470. this._hash = new r.init([1732584193, 4023233417, 2562383102, 271733878]);
  10471. },
  10472. _doProcessBlock: function _doProcessBlock(e, t) {
  10473. for (var n = 0; n < 16; n++) {
  10474. var s = t + n,
  10475. r = e[s];
  10476. e[s] = 16711935 & (r << 8 | r >>> 24) | 4278255360 & (r << 24 | r >>> 8);
  10477. }
  10478. var i = this._hash.words,
  10479. o = e[t + 0],
  10480. c = e[t + 1],
  10481. p = e[t + 2],
  10482. f = e[t + 3],
  10483. g = e[t + 4],
  10484. m = e[t + 5],
  10485. y = e[t + 6],
  10486. _ = e[t + 7],
  10487. w = e[t + 8],
  10488. v = e[t + 9],
  10489. I = e[t + 10],
  10490. S = e[t + 11],
  10491. b = e[t + 12],
  10492. k = e[t + 13],
  10493. A = e[t + 14],
  10494. P = e[t + 15],
  10495. T = i[0],
  10496. C = i[1],
  10497. x = i[2],
  10498. O = i[3];
  10499. T = u(T, C, x, O, o, 7, a[0]), O = u(O, T, C, x, c, 12, a[1]), x = u(x, O, T, C, p, 17, a[2]), C = u(C, x, O, T, f, 22, a[3]), T = u(T, C, x, O, g, 7, a[4]), O = u(O, T, C, x, m, 12, a[5]), x = u(x, O, T, C, y, 17, a[6]), C = u(C, x, O, T, _, 22, a[7]), T = u(T, C, x, O, w, 7, a[8]), O = u(O, T, C, x, v, 12, a[9]), x = u(x, O, T, C, I, 17, a[10]), C = u(C, x, O, T, S, 22, a[11]), T = u(T, C, x, O, b, 7, a[12]), O = u(O, T, C, x, k, 12, a[13]), x = u(x, O, T, C, A, 17, a[14]), T = h(T, C = u(C, x, O, T, P, 22, a[15]), x, O, c, 5, a[16]), O = h(O, T, C, x, y, 9, a[17]), x = h(x, O, T, C, S, 14, a[18]), C = h(C, x, O, T, o, 20, a[19]), T = h(T, C, x, O, m, 5, a[20]), O = h(O, T, C, x, I, 9, a[21]), x = h(x, O, T, C, P, 14, a[22]), C = h(C, x, O, T, g, 20, a[23]), T = h(T, C, x, O, v, 5, a[24]), O = h(O, T, C, x, A, 9, a[25]), x = h(x, O, T, C, f, 14, a[26]), C = h(C, x, O, T, w, 20, a[27]), T = h(T, C, x, O, k, 5, a[28]), O = h(O, T, C, x, p, 9, a[29]), x = h(x, O, T, C, _, 14, a[30]), T = l(T, C = h(C, x, O, T, b, 20, a[31]), x, O, m, 4, a[32]), O = l(O, T, C, x, w, 11, a[33]), x = l(x, O, T, C, S, 16, a[34]), C = l(C, x, O, T, A, 23, a[35]), T = l(T, C, x, O, c, 4, a[36]), O = l(O, T, C, x, g, 11, a[37]), x = l(x, O, T, C, _, 16, a[38]), C = l(C, x, O, T, I, 23, a[39]), T = l(T, C, x, O, k, 4, a[40]), O = l(O, T, C, x, o, 11, a[41]), x = l(x, O, T, C, f, 16, a[42]), C = l(C, x, O, T, y, 23, a[43]), T = l(T, C, x, O, v, 4, a[44]), O = l(O, T, C, x, b, 11, a[45]), x = l(x, O, T, C, P, 16, a[46]), T = d(T, C = l(C, x, O, T, p, 23, a[47]), x, O, o, 6, a[48]), O = d(O, T, C, x, _, 10, a[49]), x = d(x, O, T, C, A, 15, a[50]), C = d(C, x, O, T, m, 21, a[51]), T = d(T, C, x, O, b, 6, a[52]), O = d(O, T, C, x, f, 10, a[53]), x = d(x, O, T, C, I, 15, a[54]), C = d(C, x, O, T, c, 21, a[55]), T = d(T, C, x, O, w, 6, a[56]), O = d(O, T, C, x, P, 10, a[57]), x = d(x, O, T, C, y, 15, a[58]), C = d(C, x, O, T, k, 21, a[59]), T = d(T, C, x, O, g, 6, a[60]), O = d(O, T, C, x, S, 10, a[61]), x = d(x, O, T, C, p, 15, a[62]), C = d(C, x, O, T, v, 21, a[63]), i[0] = i[0] + T | 0, i[1] = i[1] + C | 0, i[2] = i[2] + x | 0, i[3] = i[3] + O | 0;
  10500. },
  10501. _doFinalize: function _doFinalize() {
  10502. var t = this._data,
  10503. n = t.words,
  10504. s = 8 * this._nDataBytes,
  10505. r = 8 * t.sigBytes;
  10506. n[r >>> 5] |= 128 << 24 - r % 32;
  10507. var i = e.floor(s / 4294967296),
  10508. o = s;
  10509. 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();
  10510. for (var a = this._hash, c = a.words, u = 0; u < 4; u++) {
  10511. var h = c[u];
  10512. c[u] = 16711935 & (h << 8 | h >>> 24) | 4278255360 & (h << 24 | h >>> 8);
  10513. }
  10514. return a;
  10515. },
  10516. clone: function clone() {
  10517. var e = i.clone.call(this);
  10518. return e._hash = this._hash.clone(), e;
  10519. }
  10520. });
  10521. function u(e, t, n, s, r, i, o) {
  10522. var a = e + (t & n | ~t & s) + r + o;
  10523. return (a << i | a >>> 32 - i) + t;
  10524. }
  10525. function h(e, t, n, s, r, i, o) {
  10526. var a = e + (t & s | n & ~s) + r + o;
  10527. return (a << i | a >>> 32 - i) + t;
  10528. }
  10529. function l(e, t, n, s, r, i, o) {
  10530. var a = e + (t ^ n ^ s) + r + o;
  10531. return (a << i | a >>> 32 - i) + t;
  10532. }
  10533. function d(e, t, n, s, r, i, o) {
  10534. var a = e + (n ^ (t | ~s)) + r + o;
  10535. return (a << i | a >>> 32 - i) + t;
  10536. }
  10537. t.MD5 = i._createHelper(c), t.HmacMD5 = i._createHmacHelper(c);
  10538. }(Math), n.MD5);
  10539. }), n(function (e, t) {
  10540. var n;
  10541. e.exports = (n = r, void function () {
  10542. var e = n,
  10543. t = e.lib.Base,
  10544. s = e.enc.Utf8;
  10545. e.algo.HMAC = t.extend({
  10546. init: function init(e, t) {
  10547. e = this._hasher = new e.init(), "string" == typeof t && (t = s.parse(t));
  10548. var n = e.blockSize,
  10549. r = 4 * n;
  10550. t.sigBytes > r && (t = e.finalize(t)), t.clamp();
  10551. for (var i = this._oKey = t.clone(), o = this._iKey = t.clone(), a = i.words, c = o.words, u = 0; u < n; u++) {
  10552. a[u] ^= 1549556828, c[u] ^= 909522486;
  10553. }
  10554. i.sigBytes = o.sigBytes = r, this.reset();
  10555. },
  10556. reset: function reset() {
  10557. var e = this._hasher;
  10558. e.reset(), e.update(this._iKey);
  10559. },
  10560. update: function update(e) {
  10561. return this._hasher.update(e), this;
  10562. },
  10563. finalize: function finalize(e) {
  10564. var t = this._hasher,
  10565. n = t.finalize(e);
  10566. return t.reset(), t.finalize(this._oKey.clone().concat(n));
  10567. }
  10568. });
  10569. }());
  10570. }), n(function (e, t) {
  10571. e.exports = r.HmacMD5;
  10572. })),
  10573. o = n(function (e, t) {
  10574. e.exports = r.enc.Utf8;
  10575. }),
  10576. a = n(function (e, t) {
  10577. var n;
  10578. e.exports = (n = r, function () {
  10579. var e = n,
  10580. t = e.lib.WordArray;
  10581. function s(e, n, s) {
  10582. for (var r = [], i = 0, o = 0; o < n; o++) {
  10583. if (o % 4) {
  10584. var a = s[e.charCodeAt(o - 1)] << o % 4 * 2,
  10585. c = s[e.charCodeAt(o)] >>> 6 - o % 4 * 2;
  10586. r[i >>> 2] |= (a | c) << 24 - i % 4 * 8, i++;
  10587. }
  10588. }
  10589. return t.create(r, i);
  10590. }
  10591. e.enc.Base64 = {
  10592. stringify: function stringify(e) {
  10593. var t = e.words,
  10594. n = e.sigBytes,
  10595. s = this._map;
  10596. e.clamp();
  10597. for (var r = [], i = 0; i < n; i += 3) {
  10598. 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++) {
  10599. r.push(s.charAt(o >>> 6 * (3 - a) & 63));
  10600. }
  10601. }
  10602. var c = s.charAt(64);
  10603. if (c) for (; r.length % 4;) {
  10604. r.push(c);
  10605. }
  10606. return r.join("");
  10607. },
  10608. parse: function parse(e) {
  10609. var t = e.length,
  10610. n = this._map,
  10611. r = this._reverseMap;
  10612. if (!r) {
  10613. r = this._reverseMap = [];
  10614. for (var i = 0; i < n.length; i++) {
  10615. r[n.charCodeAt(i)] = i;
  10616. }
  10617. }
  10618. var o = n.charAt(64);
  10619. if (o) {
  10620. var a = e.indexOf(o);
  10621. -1 !== a && (t = a);
  10622. }
  10623. return s(e, t, r);
  10624. },
  10625. _map: "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="
  10626. };
  10627. }(), n.enc.Base64);
  10628. });
  10629. var c = "FUNCTION",
  10630. u = "OBJECT",
  10631. h = "CLIENT_DB",
  10632. l = "pending",
  10633. d = "fulfilled",
  10634. p = "rejected";
  10635. function f(e) {
  10636. return Object.prototype.toString.call(e).slice(8, -1).toLowerCase();
  10637. }
  10638. function g(e) {
  10639. return "object" === f(e);
  10640. }
  10641. function m(e) {
  10642. return "function" == typeof e;
  10643. }
  10644. function y(e) {
  10645. return function () {
  10646. try {
  10647. return e.apply(e, arguments);
  10648. } catch (e) {
  10649. console.error(e);
  10650. }
  10651. };
  10652. }
  10653. var _ = "REJECTED",
  10654. w = "NOT_PENDING";
  10655. var v = /*#__PURE__*/function () {
  10656. function v() {
  10657. var _ref = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
  10658. e = _ref.createPromise,
  10659. _ref$retryRule = _ref.retryRule,
  10660. t = _ref$retryRule === void 0 ? _ : _ref$retryRule;
  10661. (0, _classCallCheck2.default)(this, v);
  10662. this.createPromise = e, this.status = null, this.promise = null, this.retryRule = t;
  10663. }
  10664. (0, _createClass2.default)(v, [{
  10665. key: "needRetry",
  10666. get: function get() {
  10667. if (!this.status) return !0;
  10668. switch (this.retryRule) {
  10669. case _:
  10670. return this.status === p;
  10671. case w:
  10672. return this.status !== l;
  10673. }
  10674. }
  10675. }, {
  10676. key: "exec",
  10677. value: function exec() {
  10678. var _this = this;
  10679. return this.needRetry ? (this.status = l, this.promise = this.createPromise().then(function (e) {
  10680. return _this.status = d, Promise.resolve(e);
  10681. }, function (e) {
  10682. return _this.status = p, Promise.reject(e);
  10683. }), this.promise) : this.promise;
  10684. }
  10685. }]);
  10686. return v;
  10687. }();
  10688. function I(e) {
  10689. return e && "string" == typeof e ? JSON.parse(e) : e;
  10690. }
  10691. var S = "development" === "development",
  10692. b = "mp-weixin",
  10693. k = "true" === undefined || !0 === undefined,
  10694. A = I([]),
  10695. P = "h5" === b ? "web" : "app-plus" === b ? "app" : b,
  10696. T = I(undefined),
  10697. C = I([]) || [],
  10698. x = true;
  10699. var O = "";
  10700. try {
  10701. O = (__webpack_require__(/*! uni-stat-config */ 39).default || __webpack_require__(/*! uni-stat-config */ 39)).appid;
  10702. } catch (e) {}
  10703. var E = {};
  10704. function L(e) {
  10705. var t = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  10706. var n, s;
  10707. return n = E, s = e, Object.prototype.hasOwnProperty.call(n, s) || (E[e] = t), E[e];
  10708. }
  10709. "app" === P && (E = uni._globalUniCloudObj ? uni._globalUniCloudObj : uni._globalUniCloudObj = {});
  10710. var R = ["invoke", "success", "fail", "complete"],
  10711. U = L("_globalUniCloudInterceptor");
  10712. function N(e, t) {
  10713. U[e] || (U[e] = {}), g(t) && Object.keys(t).forEach(function (n) {
  10714. R.indexOf(n) > -1 && function (e, t, n) {
  10715. var s = U[e][t];
  10716. s || (s = U[e][t] = []), -1 === s.indexOf(n) && m(n) && s.push(n);
  10717. }(e, n, t[n]);
  10718. });
  10719. }
  10720. function D(e, t) {
  10721. U[e] || (U[e] = {}), g(t) ? Object.keys(t).forEach(function (n) {
  10722. R.indexOf(n) > -1 && function (e, t, n) {
  10723. var s = U[e][t];
  10724. if (!s) return;
  10725. var r = s.indexOf(n);
  10726. r > -1 && s.splice(r, 1);
  10727. }(e, n, t[n]);
  10728. }) : delete U[e];
  10729. }
  10730. function M(e, t) {
  10731. return e && 0 !== e.length ? e.reduce(function (e, n) {
  10732. return e.then(function () {
  10733. return n(t);
  10734. });
  10735. }, Promise.resolve()) : Promise.resolve();
  10736. }
  10737. function q(e, t) {
  10738. return U[e] && U[e][t] || [];
  10739. }
  10740. function F(e) {
  10741. N("callObject", e);
  10742. }
  10743. var K = L("_globalUniCloudListener"),
  10744. j = "response",
  10745. $ = "needLogin",
  10746. B = "refreshToken",
  10747. W = "clientdb",
  10748. H = "cloudfunction",
  10749. z = "cloudobject";
  10750. function J(e) {
  10751. return K[e] || (K[e] = []), K[e];
  10752. }
  10753. function G(e, t) {
  10754. var n = J(e);
  10755. n.includes(t) || n.push(t);
  10756. }
  10757. function V(e, t) {
  10758. var n = J(e),
  10759. s = n.indexOf(t);
  10760. -1 !== s && n.splice(s, 1);
  10761. }
  10762. function Y(e, t) {
  10763. var n = J(e);
  10764. for (var _e2 = 0; _e2 < n.length; _e2++) {
  10765. (0, n[_e2])(t);
  10766. }
  10767. }
  10768. var Q,
  10769. X = !1;
  10770. function Z() {
  10771. return Q || (Q = new Promise(function (e) {
  10772. X && e(), function t() {
  10773. if ("function" == typeof getCurrentPages) {
  10774. var _t2 = getCurrentPages();
  10775. _t2 && _t2[0] && (X = !0, e());
  10776. }
  10777. X || setTimeout(function () {
  10778. t();
  10779. }, 30);
  10780. }();
  10781. }), Q);
  10782. }
  10783. function ee(e) {
  10784. var t = {};
  10785. for (var _n2 in e) {
  10786. var _s2 = e[_n2];
  10787. m(_s2) && (t[_n2] = y(_s2));
  10788. }
  10789. return t;
  10790. }
  10791. var te = /*#__PURE__*/function (_Error) {
  10792. (0, _inherits2.default)(te, _Error);
  10793. var _super = _createSuper(te);
  10794. function te(e) {
  10795. var _this2;
  10796. (0, _classCallCheck2.default)(this, te);
  10797. _this2 = _super.call(this, e.message), _this2.errMsg = e.message || e.errMsg || "unknown system error", _this2.code = _this2.errCode = e.code || e.errCode || "SYSTEM_ERROR", _this2.errSubject = _this2.subject = e.subject || e.errSubject, _this2.cause = e.cause, _this2.requestId = e.requestId;
  10798. return _this2;
  10799. }
  10800. (0, _createClass2.default)(te, [{
  10801. key: "toJson",
  10802. value: function toJson() {
  10803. var e = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 0;
  10804. if (!(e >= 10)) return e++, {
  10805. errCode: this.errCode,
  10806. errMsg: this.errMsg,
  10807. errSubject: this.errSubject,
  10808. cause: this.cause && this.cause.toJson ? this.cause.toJson(e) : this.cause
  10809. };
  10810. }
  10811. }]);
  10812. return te;
  10813. }( /*#__PURE__*/(0, _wrapNativeSuper2.default)(Error));
  10814. var ne = {
  10815. request: function request(e) {
  10816. return uni.request(e);
  10817. },
  10818. uploadFile: function uploadFile(e) {
  10819. return uni.uploadFile(e);
  10820. },
  10821. setStorageSync: function setStorageSync(e, t) {
  10822. return uni.setStorageSync(e, t);
  10823. },
  10824. getStorageSync: function getStorageSync(e) {
  10825. return uni.getStorageSync(e);
  10826. },
  10827. removeStorageSync: function removeStorageSync(e) {
  10828. return uni.removeStorageSync(e);
  10829. },
  10830. clearStorageSync: function clearStorageSync() {
  10831. return uni.clearStorageSync();
  10832. }
  10833. };
  10834. function se() {
  10835. return {
  10836. token: ne.getStorageSync("uni_id_token") || ne.getStorageSync("uniIdToken"),
  10837. tokenExpired: ne.getStorageSync("uni_id_token_expired")
  10838. };
  10839. }
  10840. function re() {
  10841. var _ref2 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
  10842. e = _ref2.token,
  10843. t = _ref2.tokenExpired;
  10844. e && ne.setStorageSync("uni_id_token", e), t && ne.setStorageSync("uni_id_token_expired", t);
  10845. }
  10846. var ie, oe;
  10847. function ae() {
  10848. return ie || (ie = uni.getSystemInfoSync()), ie;
  10849. }
  10850. function ce() {
  10851. var e, t;
  10852. try {
  10853. if (uni.getLaunchOptionsSync) {
  10854. if (uni.getLaunchOptionsSync.toString().indexOf("not yet implemented") > -1) return;
  10855. var _uni$getLaunchOptions = uni.getLaunchOptionsSync(),
  10856. _n3 = _uni$getLaunchOptions.scene,
  10857. _s3 = _uni$getLaunchOptions.channel;
  10858. e = _s3, t = _n3;
  10859. }
  10860. } catch (e) {}
  10861. return {
  10862. channel: e,
  10863. scene: t
  10864. };
  10865. }
  10866. function ue() {
  10867. var e = uni.getLocale && uni.getLocale() || "en";
  10868. if (oe) return _objectSpread(_objectSpread({}, oe), {}, {
  10869. locale: e,
  10870. LOCALE: e
  10871. });
  10872. var t = ae(),
  10873. n = t.deviceId,
  10874. s = t.osName,
  10875. r = t.uniPlatform,
  10876. i = t.appId,
  10877. o = ["pixelRatio", "brand", "model", "system", "language", "version", "platform", "host", "SDKVersion", "swanNativeVersion", "app", "AppPlatform", "fontSizeSetting"];
  10878. for (var _e3 = 0; _e3 < o.length; _e3++) {
  10879. delete t[o[_e3]];
  10880. }
  10881. return oe = _objectSpread(_objectSpread({
  10882. PLATFORM: r,
  10883. OS: s,
  10884. APPID: i,
  10885. DEVICEID: n
  10886. }, ce()), t), _objectSpread(_objectSpread({}, oe), {}, {
  10887. locale: e,
  10888. LOCALE: e
  10889. });
  10890. }
  10891. var he = {
  10892. sign: function sign(e, t) {
  10893. var n = "";
  10894. return Object.keys(e).sort().forEach(function (t) {
  10895. e[t] && (n = n + "&" + t + "=" + e[t]);
  10896. }), n = n.slice(1), i(n, t).toString();
  10897. },
  10898. wrappedRequest: function wrappedRequest(e, t) {
  10899. return new Promise(function (n, s) {
  10900. t(Object.assign(e, {
  10901. complete: function complete(e) {
  10902. e || (e = {}), S && "web" === P && e.errMsg && 0 === e.errMsg.indexOf("request:fail") && console.warn("发布H5,需要在uniCloud后台操作,绑定安全域名,否则会因为跨域问题而无法访问。教程参考:https://uniapp.dcloud.io/uniCloud/quickstart?id=useinh5");
  10903. var t = e.data && e.data.header && e.data.header["x-serverless-request-id"] || e.header && e.header["request-id"];
  10904. if (!e.statusCode || e.statusCode >= 400) {
  10905. var _n4 = e.data && e.data.error && e.data.error.code || "SYS_ERR",
  10906. _r = e.data && e.data.error && e.data.error.message || e.errMsg || "request:fail";
  10907. return s(new te({
  10908. code: _n4,
  10909. message: _r,
  10910. requestId: t
  10911. }));
  10912. }
  10913. var r = e.data;
  10914. if (r.error) return s(new te({
  10915. code: r.error.code,
  10916. message: r.error.message,
  10917. requestId: t
  10918. }));
  10919. r.result = r.data, r.requestId = t, delete r.data, n(r);
  10920. }
  10921. }));
  10922. });
  10923. },
  10924. toBase64: function toBase64(e) {
  10925. return a.stringify(o.parse(e));
  10926. }
  10927. };
  10928. var le = /*#__PURE__*/function () {
  10929. function le(e) {
  10930. var _this3 = this;
  10931. (0, _classCallCheck2.default)(this, le);
  10932. ["spaceId", "clientSecret"].forEach(function (t) {
  10933. if (!Object.prototype.hasOwnProperty.call(e, t)) throw new Error("".concat(t, " required"));
  10934. }), this.config = Object.assign({}, {
  10935. endpoint: 0 === e.spaceId.indexOf("mp-") ? "https://api.next.bspapp.com" : "https://api.bspapp.com"
  10936. }, 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({
  10937. createPromise: function createPromise() {
  10938. return _this3.requestAuth(_this3.setupRequest({
  10939. method: "serverless.auth.user.anonymousAuthorize",
  10940. params: "{}"
  10941. }, "auth")).then(function (e) {
  10942. if (!e.result || !e.result.accessToken) throw new te({
  10943. code: "AUTH_FAILED",
  10944. message: "获取accessToken失败"
  10945. });
  10946. _this3.setAccessToken(e.result.accessToken);
  10947. });
  10948. },
  10949. retryRule: w
  10950. });
  10951. }
  10952. (0, _createClass2.default)(le, [{
  10953. key: "hasAccessToken",
  10954. get: function get() {
  10955. return !!this.accessToken;
  10956. }
  10957. }, {
  10958. key: "setAccessToken",
  10959. value: function setAccessToken(e) {
  10960. this.accessToken = e;
  10961. }
  10962. }, {
  10963. key: "requestWrapped",
  10964. value: function requestWrapped(e) {
  10965. return he.wrappedRequest(e, this.adapter.request);
  10966. }
  10967. }, {
  10968. key: "requestAuth",
  10969. value: function requestAuth(e) {
  10970. return this.requestWrapped(e);
  10971. }
  10972. }, {
  10973. key: "request",
  10974. value: function request(e, t) {
  10975. var _this4 = this;
  10976. return Promise.resolve().then(function () {
  10977. return _this4.hasAccessToken ? t ? _this4.requestWrapped(e) : _this4.requestWrapped(e).catch(function (t) {
  10978. return new Promise(function (e, n) {
  10979. !t || "GATEWAY_INVALID_TOKEN" !== t.code && "InvalidParameter.InvalidToken" !== t.code ? n(t) : e();
  10980. }).then(function () {
  10981. return _this4.getAccessToken();
  10982. }).then(function () {
  10983. var t = _this4.rebuildRequest(e);
  10984. return _this4.request(t, !0);
  10985. });
  10986. }) : _this4.getAccessToken().then(function () {
  10987. var t = _this4.rebuildRequest(e);
  10988. return _this4.request(t, !0);
  10989. });
  10990. });
  10991. }
  10992. }, {
  10993. key: "rebuildRequest",
  10994. value: function rebuildRequest(e) {
  10995. var t = Object.assign({}, e);
  10996. return t.data.token = this.accessToken, t.header["x-basement-token"] = this.accessToken, t.header["x-serverless-sign"] = he.sign(t.data, this.config.clientSecret), t;
  10997. }
  10998. }, {
  10999. key: "setupRequest",
  11000. value: function setupRequest(e, t) {
  11001. var n = Object.assign({}, e, {
  11002. spaceId: this.config.spaceId,
  11003. timestamp: Date.now()
  11004. }),
  11005. s = {
  11006. "Content-Type": "application/json"
  11007. };
  11008. return "auth" !== t && (n.token = this.accessToken, s["x-basement-token"] = this.accessToken), s["x-serverless-sign"] = he.sign(n, this.config.clientSecret), {
  11009. url: this.config.requestUrl,
  11010. method: "POST",
  11011. data: n,
  11012. dataType: "json",
  11013. header: s
  11014. };
  11015. }
  11016. }, {
  11017. key: "getAccessToken",
  11018. value: function getAccessToken() {
  11019. return this._getAccessTokenPromiseHub.exec();
  11020. }
  11021. }, {
  11022. key: "authorize",
  11023. value: function () {
  11024. var _authorize = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee() {
  11025. return _regenerator.default.wrap(function _callee$(_context) {
  11026. while (1) {
  11027. switch (_context.prev = _context.next) {
  11028. case 0:
  11029. _context.next = 2;
  11030. return this.getAccessToken();
  11031. case 2:
  11032. case "end":
  11033. return _context.stop();
  11034. }
  11035. }
  11036. }, _callee, this);
  11037. }));
  11038. function authorize() {
  11039. return _authorize.apply(this, arguments);
  11040. }
  11041. return authorize;
  11042. }()
  11043. }, {
  11044. key: "callFunction",
  11045. value: function callFunction(e) {
  11046. var t = {
  11047. method: "serverless.function.runtime.invoke",
  11048. params: JSON.stringify({
  11049. functionTarget: e.name,
  11050. functionArgs: e.data || {}
  11051. })
  11052. };
  11053. return this.request(this.setupRequest(t));
  11054. }
  11055. }, {
  11056. key: "getOSSUploadOptionsFromPath",
  11057. value: function getOSSUploadOptionsFromPath(e) {
  11058. var t = {
  11059. method: "serverless.file.resource.generateProximalSign",
  11060. params: JSON.stringify(e)
  11061. };
  11062. return this.request(this.setupRequest(t));
  11063. }
  11064. }, {
  11065. key: "uploadFileToOSS",
  11066. value: function uploadFileToOSS(_ref3) {
  11067. var _this5 = this;
  11068. var e = _ref3.url,
  11069. t = _ref3.formData,
  11070. n = _ref3.name,
  11071. s = _ref3.filePath,
  11072. r = _ref3.fileType,
  11073. i = _ref3.onUploadProgress;
  11074. return new Promise(function (o, a) {
  11075. var c = _this5.adapter.uploadFile({
  11076. url: e,
  11077. formData: t,
  11078. name: n,
  11079. filePath: s,
  11080. fileType: r,
  11081. header: {
  11082. "X-OSS-server-side-encrpytion": "AES256"
  11083. },
  11084. success: function success(e) {
  11085. e && e.statusCode < 400 ? o(e) : a(new te({
  11086. code: "UPLOAD_FAILED",
  11087. message: "文件上传失败"
  11088. }));
  11089. },
  11090. fail: function fail(e) {
  11091. a(new te({
  11092. code: e.code || "UPLOAD_FAILED",
  11093. message: e.message || e.errMsg || "文件上传失败"
  11094. }));
  11095. }
  11096. });
  11097. "function" == typeof i && c && "function" == typeof c.onProgressUpdate && c.onProgressUpdate(function (e) {
  11098. i({
  11099. loaded: e.totalBytesSent,
  11100. total: e.totalBytesExpectedToSend
  11101. });
  11102. });
  11103. });
  11104. }
  11105. }, {
  11106. key: "reportOSSUpload",
  11107. value: function reportOSSUpload(e) {
  11108. var t = {
  11109. method: "serverless.file.resource.report",
  11110. params: JSON.stringify(e)
  11111. };
  11112. return this.request(this.setupRequest(t));
  11113. }
  11114. }, {
  11115. key: "uploadFile",
  11116. value: function () {
  11117. var _uploadFile = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee2(_ref4) {
  11118. var e, t, _ref4$fileType, n, _ref4$cloudPathAsReal, s, r, i, o, a, c, u, h, l, d, p, g, m, y, _, _e4, w;
  11119. return _regenerator.default.wrap(function _callee2$(_context2) {
  11120. while (1) {
  11121. switch (_context2.prev = _context2.next) {
  11122. case 0:
  11123. 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;
  11124. if (!("string" !== f(t))) {
  11125. _context2.next = 3;
  11126. break;
  11127. }
  11128. throw new te({
  11129. code: "INVALID_PARAM",
  11130. message: "cloudPath必须为字符串类型"
  11131. });
  11132. case 3:
  11133. if (t = t.trim()) {
  11134. _context2.next = 5;
  11135. break;
  11136. }
  11137. throw new te({
  11138. code: "INVALID_PARAM",
  11139. message: "cloudPath不可为空"
  11140. });
  11141. case 5:
  11142. if (!/:\/\//.test(t)) {
  11143. _context2.next = 7;
  11144. break;
  11145. }
  11146. throw new te({
  11147. code: "INVALID_PARAM",
  11148. message: "cloudPath不合法"
  11149. });
  11150. case 7:
  11151. o = i && i.envType || this.config.envType;
  11152. if (!(s && ("/" !== t[0] && (t = "/" + t), t.indexOf("\\") > -1))) {
  11153. _context2.next = 10;
  11154. break;
  11155. }
  11156. throw new te({
  11157. code: "INVALID_PARAM",
  11158. message: "使用cloudPath作为路径时,cloudPath不可包含“\\”"
  11159. });
  11160. case 10:
  11161. _context2.next = 12;
  11162. return this.getOSSUploadOptionsFromPath({
  11163. env: o,
  11164. filename: s ? t.split("/").pop() : t,
  11165. fileId: s ? t : void 0
  11166. });
  11167. case 12:
  11168. a = _context2.sent.result;
  11169. c = "https://" + a.cdnDomain + "/" + a.ossPath;
  11170. u = a.securityToken;
  11171. h = a.accessKeyId;
  11172. l = a.signature;
  11173. d = a.host;
  11174. p = a.ossPath;
  11175. g = a.id;
  11176. m = a.policy;
  11177. y = a.ossCallbackUrl;
  11178. _ = {
  11179. "Cache-Control": "max-age=2592000",
  11180. "Content-Disposition": "attachment",
  11181. OSSAccessKeyId: h,
  11182. Signature: l,
  11183. host: d,
  11184. id: g,
  11185. key: p,
  11186. policy: m,
  11187. success_action_status: 200
  11188. };
  11189. if (u && (_["x-oss-security-token"] = u), y) {
  11190. _e4 = JSON.stringify({
  11191. callbackUrl: y,
  11192. callbackBody: JSON.stringify({
  11193. fileId: g,
  11194. spaceId: this.config.spaceId
  11195. }),
  11196. callbackBodyType: "application/json"
  11197. });
  11198. _.callback = he.toBase64(_e4);
  11199. }
  11200. w = {
  11201. url: "https://" + a.host,
  11202. formData: _,
  11203. fileName: "file",
  11204. name: "file",
  11205. filePath: e,
  11206. fileType: n
  11207. };
  11208. _context2.next = 27;
  11209. return this.uploadFileToOSS(Object.assign({}, w, {
  11210. onUploadProgress: r
  11211. }));
  11212. case 27:
  11213. if (!y) {
  11214. _context2.next = 29;
  11215. break;
  11216. }
  11217. return _context2.abrupt("return", {
  11218. success: !0,
  11219. filePath: e,
  11220. fileID: c
  11221. });
  11222. case 29:
  11223. _context2.next = 31;
  11224. return this.reportOSSUpload({
  11225. id: g
  11226. });
  11227. case 31:
  11228. if (!_context2.sent.success) {
  11229. _context2.next = 33;
  11230. break;
  11231. }
  11232. return _context2.abrupt("return", {
  11233. success: !0,
  11234. filePath: e,
  11235. fileID: c
  11236. });
  11237. case 33:
  11238. throw new te({
  11239. code: "UPLOAD_FAILED",
  11240. message: "文件上传失败"
  11241. });
  11242. case 34:
  11243. case "end":
  11244. return _context2.stop();
  11245. }
  11246. }
  11247. }, _callee2, this);
  11248. }));
  11249. function uploadFile(_x) {
  11250. return _uploadFile.apply(this, arguments);
  11251. }
  11252. return uploadFile;
  11253. }()
  11254. }, {
  11255. key: "getTempFileURL",
  11256. value: function getTempFileURL() {
  11257. var _ref5 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
  11258. e = _ref5.fileList;
  11259. return new Promise(function (t, n) {
  11260. Array.isArray(e) && 0 !== e.length || n(new te({
  11261. code: "INVALID_PARAM",
  11262. message: "fileList的元素必须是非空的字符串"
  11263. })), t({
  11264. fileList: e.map(function (e) {
  11265. return {
  11266. fileID: e,
  11267. tempFileURL: e
  11268. };
  11269. })
  11270. });
  11271. });
  11272. }
  11273. }, {
  11274. key: "getFileInfo",
  11275. value: function () {
  11276. var _getFileInfo = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee3() {
  11277. var _ref6,
  11278. e,
  11279. t,
  11280. _args3 = arguments;
  11281. return _regenerator.default.wrap(function _callee3$(_context3) {
  11282. while (1) {
  11283. switch (_context3.prev = _context3.next) {
  11284. case 0:
  11285. _ref6 = _args3.length > 0 && _args3[0] !== undefined ? _args3[0] : {}, e = _ref6.fileList;
  11286. if (!(!Array.isArray(e) || 0 === e.length)) {
  11287. _context3.next = 3;
  11288. break;
  11289. }
  11290. throw new te({
  11291. code: "INVALID_PARAM",
  11292. message: "fileList的元素必须是非空的字符串"
  11293. });
  11294. case 3:
  11295. t = {
  11296. method: "serverless.file.resource.info",
  11297. params: JSON.stringify({
  11298. id: e.map(function (e) {
  11299. return e.split("?")[0];
  11300. }).join(",")
  11301. })
  11302. };
  11303. _context3.next = 6;
  11304. return this.request(this.setupRequest(t));
  11305. case 6:
  11306. _context3.t0 = _context3.sent.result;
  11307. return _context3.abrupt("return", {
  11308. fileList: _context3.t0
  11309. });
  11310. case 8:
  11311. case "end":
  11312. return _context3.stop();
  11313. }
  11314. }
  11315. }, _callee3, this);
  11316. }));
  11317. function getFileInfo() {
  11318. return _getFileInfo.apply(this, arguments);
  11319. }
  11320. return getFileInfo;
  11321. }()
  11322. }]);
  11323. return le;
  11324. }();
  11325. var de = {
  11326. init: function init(e) {
  11327. var t = new le(e),
  11328. n = {
  11329. signInAnonymously: function signInAnonymously() {
  11330. return t.authorize();
  11331. },
  11332. getLoginState: function getLoginState() {
  11333. return Promise.resolve(!1);
  11334. }
  11335. };
  11336. return t.auth = function () {
  11337. return n;
  11338. }, t.customAuth = t.auth, t;
  11339. }
  11340. };
  11341. var pe = "undefined" != typeof location && "http:" === location.protocol ? "http:" : "https:";
  11342. var fe;
  11343. !function (e) {
  11344. e.local = "local", e.none = "none", e.session = "session";
  11345. }(fe || (fe = {}));
  11346. var ge = function ge() {},
  11347. me = n(function (e, t) {
  11348. var n;
  11349. e.exports = (n = r, function (e) {
  11350. var t = n,
  11351. s = t.lib,
  11352. r = s.WordArray,
  11353. i = s.Hasher,
  11354. o = t.algo,
  11355. a = [],
  11356. c = [];
  11357. !function () {
  11358. function t(t) {
  11359. for (var n = e.sqrt(t), s = 2; s <= n; s++) {
  11360. if (!(t % s)) return !1;
  11361. }
  11362. return !0;
  11363. }
  11364. function n(e) {
  11365. return 4294967296 * (e - (0 | e)) | 0;
  11366. }
  11367. for (var s = 2, r = 0; r < 64;) {
  11368. t(s) && (r < 8 && (a[r] = n(e.pow(s, .5))), c[r] = n(e.pow(s, 1 / 3)), r++), s++;
  11369. }
  11370. }();
  11371. var u = [],
  11372. h = o.SHA256 = i.extend({
  11373. _doReset: function _doReset() {
  11374. this._hash = new r.init(a.slice(0));
  11375. },
  11376. _doProcessBlock: function _doProcessBlock(e, t) {
  11377. 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++) {
  11378. if (p < 16) u[p] = 0 | e[t + p];else {
  11379. var f = u[p - 15],
  11380. g = (f << 25 | f >>> 7) ^ (f << 14 | f >>> 18) ^ f >>> 3,
  11381. m = u[p - 2],
  11382. y = (m << 15 | m >>> 17) ^ (m << 13 | m >>> 19) ^ m >>> 10;
  11383. u[p] = g + u[p - 7] + y + u[p - 16];
  11384. }
  11385. var _ = s & r ^ s & i ^ r & i,
  11386. w = (s << 30 | s >>> 2) ^ (s << 19 | s >>> 13) ^ (s << 10 | s >>> 22),
  11387. v = d + ((a << 26 | a >>> 6) ^ (a << 21 | a >>> 11) ^ (a << 7 | a >>> 25)) + (a & h ^ ~a & l) + c[p] + u[p];
  11388. d = l, l = h, h = a, a = o + v | 0, o = i, i = r, r = s, s = v + (w + _) | 0;
  11389. }
  11390. 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;
  11391. },
  11392. _doFinalize: function _doFinalize() {
  11393. var t = this._data,
  11394. n = t.words,
  11395. s = 8 * this._nDataBytes,
  11396. r = 8 * t.sigBytes;
  11397. 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;
  11398. },
  11399. clone: function clone() {
  11400. var e = i.clone.call(this);
  11401. return e._hash = this._hash.clone(), e;
  11402. }
  11403. });
  11404. t.SHA256 = i._createHelper(h), t.HmacSHA256 = i._createHmacHelper(h);
  11405. }(Math), n.SHA256);
  11406. }),
  11407. ye = me,
  11408. _e = n(function (e, t) {
  11409. e.exports = r.HmacSHA256;
  11410. });
  11411. var we = function we() {
  11412. var e;
  11413. if (!Promise) {
  11414. e = function e() {}, e.promise = {};
  11415. var _t3 = function _t3() {
  11416. throw new te({
  11417. message: 'Your Node runtime does support ES6 Promises. Set "global.Promise" to your preferred implementation of promises.'
  11418. });
  11419. };
  11420. return Object.defineProperty(e.promise, "then", {
  11421. get: _t3
  11422. }), Object.defineProperty(e.promise, "catch", {
  11423. get: _t3
  11424. }), e;
  11425. }
  11426. var t = new Promise(function (t, n) {
  11427. e = function e(_e5, s) {
  11428. return _e5 ? n(_e5) : t(s);
  11429. };
  11430. });
  11431. return e.promise = t, e;
  11432. };
  11433. function ve(e) {
  11434. return void 0 === e;
  11435. }
  11436. function Ie(e) {
  11437. return "[object Null]" === Object.prototype.toString.call(e);
  11438. }
  11439. var Se;
  11440. function be(e) {
  11441. var t = (n = e, "[object Array]" === Object.prototype.toString.call(n) ? e : [e]);
  11442. var n;
  11443. var _iterator = _createForOfIteratorHelper(t),
  11444. _step;
  11445. try {
  11446. for (_iterator.s(); !(_step = _iterator.n()).done;) {
  11447. var _e6 = _step.value;
  11448. var _t4 = _e6.isMatch,
  11449. _n5 = _e6.genAdapter,
  11450. _s4 = _e6.runtime;
  11451. if (_t4()) return {
  11452. adapter: _n5(),
  11453. runtime: _s4
  11454. };
  11455. }
  11456. } catch (err) {
  11457. _iterator.e(err);
  11458. } finally {
  11459. _iterator.f();
  11460. }
  11461. }
  11462. !function (e) {
  11463. e.WEB = "web", e.WX_MP = "wx_mp";
  11464. }(Se || (Se = {}));
  11465. var ke = {
  11466. adapter: null,
  11467. runtime: void 0
  11468. },
  11469. Ae = ["anonymousUuidKey"];
  11470. var Pe = /*#__PURE__*/function (_ge) {
  11471. (0, _inherits2.default)(Pe, _ge);
  11472. var _super2 = _createSuper(Pe);
  11473. function Pe() {
  11474. var _this6;
  11475. (0, _classCallCheck2.default)(this, Pe);
  11476. _this6 = _super2.call(this), ke.adapter.root.tcbObject || (ke.adapter.root.tcbObject = {});
  11477. return _this6;
  11478. }
  11479. (0, _createClass2.default)(Pe, [{
  11480. key: "setItem",
  11481. value: function setItem(e, t) {
  11482. ke.adapter.root.tcbObject[e] = t;
  11483. }
  11484. }, {
  11485. key: "getItem",
  11486. value: function getItem(e) {
  11487. return ke.adapter.root.tcbObject[e];
  11488. }
  11489. }, {
  11490. key: "removeItem",
  11491. value: function removeItem(e) {
  11492. delete ke.adapter.root.tcbObject[e];
  11493. }
  11494. }, {
  11495. key: "clear",
  11496. value: function clear() {
  11497. delete ke.adapter.root.tcbObject;
  11498. }
  11499. }]);
  11500. return Pe;
  11501. }(ge);
  11502. function Te(e, t) {
  11503. switch (e) {
  11504. case "local":
  11505. return t.localStorage || new Pe();
  11506. case "none":
  11507. return new Pe();
  11508. default:
  11509. return t.sessionStorage || new Pe();
  11510. }
  11511. }
  11512. var Ce = /*#__PURE__*/function () {
  11513. function Ce(e) {
  11514. (0, _classCallCheck2.default)(this, Ce);
  11515. if (!this._storage) {
  11516. this._persistence = ke.adapter.primaryStorage || e.persistence, this._storage = Te(this._persistence, ke.adapter);
  11517. var _t5 = "access_token_".concat(e.env),
  11518. _n6 = "access_token_expire_".concat(e.env),
  11519. _s5 = "refresh_token_".concat(e.env),
  11520. _r2 = "anonymous_uuid_".concat(e.env),
  11521. _i = "login_type_".concat(e.env),
  11522. _o = "user_info_".concat(e.env);
  11523. this.keys = {
  11524. accessTokenKey: _t5,
  11525. accessTokenExpireKey: _n6,
  11526. refreshTokenKey: _s5,
  11527. anonymousUuidKey: _r2,
  11528. loginTypeKey: _i,
  11529. userInfoKey: _o
  11530. };
  11531. }
  11532. }
  11533. (0, _createClass2.default)(Ce, [{
  11534. key: "updatePersistence",
  11535. value: function updatePersistence(e) {
  11536. if (e === this._persistence) return;
  11537. var t = "local" === this._persistence;
  11538. this._persistence = e;
  11539. var n = Te(e, ke.adapter);
  11540. for (var _e7 in this.keys) {
  11541. var _s6 = this.keys[_e7];
  11542. if (t && Ae.includes(_e7)) continue;
  11543. var _r3 = this._storage.getItem(_s6);
  11544. ve(_r3) || Ie(_r3) || (n.setItem(_s6, _r3), this._storage.removeItem(_s6));
  11545. }
  11546. this._storage = n;
  11547. }
  11548. }, {
  11549. key: "setStore",
  11550. value: function setStore(e, t, n) {
  11551. if (!this._storage) return;
  11552. var s = {
  11553. version: n || "localCachev1",
  11554. content: t
  11555. },
  11556. r = JSON.stringify(s);
  11557. try {
  11558. this._storage.setItem(e, r);
  11559. } catch (e) {
  11560. throw e;
  11561. }
  11562. }
  11563. }, {
  11564. key: "getStore",
  11565. value: function getStore(e, t) {
  11566. try {
  11567. if (!this._storage) return;
  11568. } catch (e) {
  11569. return "";
  11570. }
  11571. t = t || "localCachev1";
  11572. var n = this._storage.getItem(e);
  11573. if (!n) return "";
  11574. if (n.indexOf(t) >= 0) {
  11575. return JSON.parse(n).content;
  11576. }
  11577. return "";
  11578. }
  11579. }, {
  11580. key: "removeStore",
  11581. value: function removeStore(e) {
  11582. this._storage.removeItem(e);
  11583. }
  11584. }]);
  11585. return Ce;
  11586. }();
  11587. var xe = {},
  11588. Oe = {};
  11589. function Ee(e) {
  11590. return xe[e];
  11591. }
  11592. var Le = /*#__PURE__*/(0, _createClass2.default)(function Le(e, t) {
  11593. (0, _classCallCheck2.default)(this, Le);
  11594. this.data = t || null, this.name = e;
  11595. });
  11596. var Re = /*#__PURE__*/function (_Le) {
  11597. (0, _inherits2.default)(Re, _Le);
  11598. var _super3 = _createSuper(Re);
  11599. function Re(e, t) {
  11600. var _this7;
  11601. (0, _classCallCheck2.default)(this, Re);
  11602. _this7 = _super3.call(this, "error", {
  11603. error: e,
  11604. data: t
  11605. }), _this7.error = e;
  11606. return _this7;
  11607. }
  11608. return (0, _createClass2.default)(Re);
  11609. }(Le);
  11610. var Ue = new ( /*#__PURE__*/function () {
  11611. function _class() {
  11612. (0, _classCallCheck2.default)(this, _class);
  11613. this._listeners = {};
  11614. }
  11615. (0, _createClass2.default)(_class, [{
  11616. key: "on",
  11617. value: function on(e, t) {
  11618. return function (e, t, n) {
  11619. n[e] = n[e] || [], n[e].push(t);
  11620. }(e, t, this._listeners), this;
  11621. }
  11622. }, {
  11623. key: "off",
  11624. value: function off(e, t) {
  11625. return function (e, t, n) {
  11626. if (n && n[e]) {
  11627. var _s7 = n[e].indexOf(t);
  11628. -1 !== _s7 && n[e].splice(_s7, 1);
  11629. }
  11630. }(e, t, this._listeners), this;
  11631. }
  11632. }, {
  11633. key: "fire",
  11634. value: function fire(e, t) {
  11635. if (e instanceof Re) return console.error(e.error), this;
  11636. var n = "string" == typeof e ? new Le(e, t || {}) : e;
  11637. var s = n.name;
  11638. if (this._listens(s)) {
  11639. n.target = this;
  11640. var _e8 = this._listeners[s] ? (0, _toConsumableArray2.default)(this._listeners[s]) : [];
  11641. var _iterator2 = _createForOfIteratorHelper(_e8),
  11642. _step2;
  11643. try {
  11644. for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
  11645. var _t6 = _step2.value;
  11646. _t6.call(this, n);
  11647. }
  11648. } catch (err) {
  11649. _iterator2.e(err);
  11650. } finally {
  11651. _iterator2.f();
  11652. }
  11653. }
  11654. return this;
  11655. }
  11656. }, {
  11657. key: "_listens",
  11658. value: function _listens(e) {
  11659. return this._listeners[e] && this._listeners[e].length > 0;
  11660. }
  11661. }]);
  11662. return _class;
  11663. }())();
  11664. function Ne(e, t) {
  11665. Ue.on(e, t);
  11666. }
  11667. function De(e) {
  11668. var t = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  11669. Ue.fire(e, t);
  11670. }
  11671. function Me(e, t) {
  11672. Ue.off(e, t);
  11673. }
  11674. var qe = "loginStateChanged",
  11675. Fe = "loginStateExpire",
  11676. Ke = "loginTypeChanged",
  11677. je = "anonymousConverted",
  11678. $e = "refreshAccessToken";
  11679. var Be;
  11680. !function (e) {
  11681. 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";
  11682. }(Be || (Be = {}));
  11683. var We = ["auth.getJwt", "auth.logout", "auth.signInWithTicket", "auth.signInAnonymously", "auth.signIn", "auth.fetchAccessTokenWithRefreshToken", "auth.signUpWithEmailAndPassword", "auth.activateEndUserMail", "auth.sendPasswordResetEmail", "auth.resetPasswordWithToken", "auth.isUsernameRegistered"],
  11684. He = {
  11685. "X-SDK-Version": "1.3.5"
  11686. };
  11687. function ze(e, t, n) {
  11688. var s = e[t];
  11689. e[t] = function (t) {
  11690. var r = {},
  11691. i = {};
  11692. n.forEach(function (n) {
  11693. var _n$call = n.call(e, t),
  11694. s = _n$call.data,
  11695. o = _n$call.headers;
  11696. Object.assign(r, s), Object.assign(i, o);
  11697. });
  11698. var o = t.data;
  11699. return o && function () {
  11700. var e;
  11701. if (e = o, "[object FormData]" !== Object.prototype.toString.call(e)) t.data = _objectSpread(_objectSpread({}, o), r);else for (var _e9 in r) {
  11702. o.append(_e9, r[_e9]);
  11703. }
  11704. }(), t.headers = _objectSpread(_objectSpread({}, t.headers || {}), i), s.call(e, t);
  11705. };
  11706. }
  11707. function Je() {
  11708. var e = Math.random().toString(16).slice(2);
  11709. return {
  11710. data: {
  11711. seqId: e
  11712. },
  11713. headers: _objectSpread(_objectSpread({}, He), {}, {
  11714. "x-seqid": e
  11715. })
  11716. };
  11717. }
  11718. var Ge = /*#__PURE__*/function () {
  11719. function Ge() {
  11720. var e = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
  11721. (0, _classCallCheck2.default)(this, Ge);
  11722. var t;
  11723. this.config = e, this._reqClass = new ke.adapter.reqClass({
  11724. timeout: this.config.timeout,
  11725. timeoutMsg: "\u8BF7\u6C42\u5728".concat(this.config.timeout / 1e3, "s\u5185\u672A\u5B8C\u6210\uFF0C\u5DF2\u4E2D\u65AD"),
  11726. restrictedMethods: ["post"]
  11727. }), this._cache = Ee(this.config.env), this._localCache = (t = this.config.env, Oe[t]), ze(this._reqClass, "post", [Je]), ze(this._reqClass, "upload", [Je]), ze(this._reqClass, "download", [Je]);
  11728. }
  11729. (0, _createClass2.default)(Ge, [{
  11730. key: "post",
  11731. value: function () {
  11732. var _post = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee4(e) {
  11733. return _regenerator.default.wrap(function _callee4$(_context4) {
  11734. while (1) {
  11735. switch (_context4.prev = _context4.next) {
  11736. case 0:
  11737. _context4.next = 2;
  11738. return this._reqClass.post(e);
  11739. case 2:
  11740. return _context4.abrupt("return", _context4.sent);
  11741. case 3:
  11742. case "end":
  11743. return _context4.stop();
  11744. }
  11745. }
  11746. }, _callee4, this);
  11747. }));
  11748. function post(_x2) {
  11749. return _post.apply(this, arguments);
  11750. }
  11751. return post;
  11752. }()
  11753. }, {
  11754. key: "upload",
  11755. value: function () {
  11756. var _upload = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee5(e) {
  11757. return _regenerator.default.wrap(function _callee5$(_context5) {
  11758. while (1) {
  11759. switch (_context5.prev = _context5.next) {
  11760. case 0:
  11761. _context5.next = 2;
  11762. return this._reqClass.upload(e);
  11763. case 2:
  11764. return _context5.abrupt("return", _context5.sent);
  11765. case 3:
  11766. case "end":
  11767. return _context5.stop();
  11768. }
  11769. }
  11770. }, _callee5, this);
  11771. }));
  11772. function upload(_x3) {
  11773. return _upload.apply(this, arguments);
  11774. }
  11775. return upload;
  11776. }()
  11777. }, {
  11778. key: "download",
  11779. value: function () {
  11780. var _download = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee6(e) {
  11781. return _regenerator.default.wrap(function _callee6$(_context6) {
  11782. while (1) {
  11783. switch (_context6.prev = _context6.next) {
  11784. case 0:
  11785. _context6.next = 2;
  11786. return this._reqClass.download(e);
  11787. case 2:
  11788. return _context6.abrupt("return", _context6.sent);
  11789. case 3:
  11790. case "end":
  11791. return _context6.stop();
  11792. }
  11793. }
  11794. }, _callee6, this);
  11795. }));
  11796. function download(_x4) {
  11797. return _download.apply(this, arguments);
  11798. }
  11799. return download;
  11800. }()
  11801. }, {
  11802. key: "refreshAccessToken",
  11803. value: function () {
  11804. var _refreshAccessToken2 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee7() {
  11805. var e, t;
  11806. return _regenerator.default.wrap(function _callee7$(_context7) {
  11807. while (1) {
  11808. switch (_context7.prev = _context7.next) {
  11809. case 0:
  11810. this._refreshAccessTokenPromise || (this._refreshAccessTokenPromise = this._refreshAccessToken());
  11811. _context7.prev = 1;
  11812. _context7.next = 4;
  11813. return this._refreshAccessTokenPromise;
  11814. case 4:
  11815. e = _context7.sent;
  11816. _context7.next = 10;
  11817. break;
  11818. case 7:
  11819. _context7.prev = 7;
  11820. _context7.t0 = _context7["catch"](1);
  11821. t = _context7.t0;
  11822. case 10:
  11823. if (!(this._refreshAccessTokenPromise = null, this._shouldRefreshAccessTokenHook = null, t)) {
  11824. _context7.next = 12;
  11825. break;
  11826. }
  11827. throw t;
  11828. case 12:
  11829. return _context7.abrupt("return", e);
  11830. case 13:
  11831. case "end":
  11832. return _context7.stop();
  11833. }
  11834. }
  11835. }, _callee7, this, [[1, 7]]);
  11836. }));
  11837. function refreshAccessToken() {
  11838. return _refreshAccessToken2.apply(this, arguments);
  11839. }
  11840. return refreshAccessToken;
  11841. }()
  11842. }, {
  11843. key: "_refreshAccessToken",
  11844. value: function () {
  11845. var _refreshAccessToken3 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee8() {
  11846. var _this$_cache$keys, e, t, n, s, r, i, o, a, _e10, _e11, _t7, _s8;
  11847. return _regenerator.default.wrap(function _callee8$(_context8) {
  11848. while (1) {
  11849. switch (_context8.prev = _context8.next) {
  11850. case 0:
  11851. _this$_cache$keys = this._cache.keys, e = _this$_cache$keys.accessTokenKey, t = _this$_cache$keys.accessTokenExpireKey, n = _this$_cache$keys.refreshTokenKey, s = _this$_cache$keys.loginTypeKey, r = _this$_cache$keys.anonymousUuidKey;
  11852. this._cache.removeStore(e), this._cache.removeStore(t);
  11853. i = this._cache.getStore(n);
  11854. if (i) {
  11855. _context8.next = 5;
  11856. break;
  11857. }
  11858. throw new te({
  11859. message: "未登录CloudBase"
  11860. });
  11861. case 5:
  11862. o = {
  11863. refresh_token: i
  11864. };
  11865. _context8.next = 8;
  11866. return this.request("auth.fetchAccessTokenWithRefreshToken", o);
  11867. case 8:
  11868. a = _context8.sent;
  11869. if (!a.data.code) {
  11870. _context8.next = 21;
  11871. break;
  11872. }
  11873. _e10 = a.data.code;
  11874. if (!("SIGN_PARAM_INVALID" === _e10 || "REFRESH_TOKEN_EXPIRED" === _e10 || "INVALID_REFRESH_TOKEN" === _e10)) {
  11875. _context8.next = 20;
  11876. break;
  11877. }
  11878. if (!(this._cache.getStore(s) === Be.ANONYMOUS && "INVALID_REFRESH_TOKEN" === _e10)) {
  11879. _context8.next = 19;
  11880. break;
  11881. }
  11882. _e11 = this._cache.getStore(r);
  11883. _t7 = this._cache.getStore(n);
  11884. _context8.next = 17;
  11885. return this.send("auth.signInAnonymously", {
  11886. anonymous_uuid: _e11,
  11887. refresh_token: _t7
  11888. });
  11889. case 17:
  11890. _s8 = _context8.sent;
  11891. return _context8.abrupt("return", (this.setRefreshToken(_s8.refresh_token), this._refreshAccessToken()));
  11892. case 19:
  11893. De(Fe), this._cache.removeStore(n);
  11894. case 20:
  11895. throw new te({
  11896. code: a.data.code,
  11897. message: "\u5237\u65B0access token\u5931\u8D25\uFF1A".concat(a.data.code)
  11898. });
  11899. case 21:
  11900. if (!a.data.access_token) {
  11901. _context8.next = 23;
  11902. break;
  11903. }
  11904. return _context8.abrupt("return", (De($e), this._cache.setStore(e, a.data.access_token), this._cache.setStore(t, a.data.access_token_expire + Date.now()), {
  11905. accessToken: a.data.access_token,
  11906. accessTokenExpire: a.data.access_token_expire
  11907. }));
  11908. case 23:
  11909. a.data.refresh_token && (this._cache.removeStore(n), this._cache.setStore(n, a.data.refresh_token), this._refreshAccessToken());
  11910. case 24:
  11911. case "end":
  11912. return _context8.stop();
  11913. }
  11914. }
  11915. }, _callee8, this);
  11916. }));
  11917. function _refreshAccessToken() {
  11918. return _refreshAccessToken3.apply(this, arguments);
  11919. }
  11920. return _refreshAccessToken;
  11921. }()
  11922. }, {
  11923. key: "getAccessToken",
  11924. value: function () {
  11925. var _getAccessToken = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee9() {
  11926. var _this$_cache$keys2, e, t, n, s, r, i;
  11927. return _regenerator.default.wrap(function _callee9$(_context9) {
  11928. while (1) {
  11929. switch (_context9.prev = _context9.next) {
  11930. case 0:
  11931. _this$_cache$keys2 = this._cache.keys, e = _this$_cache$keys2.accessTokenKey, t = _this$_cache$keys2.accessTokenExpireKey, n = _this$_cache$keys2.refreshTokenKey;
  11932. if (this._cache.getStore(n)) {
  11933. _context9.next = 3;
  11934. break;
  11935. }
  11936. throw new te({
  11937. message: "refresh token不存在,登录状态异常"
  11938. });
  11939. case 3:
  11940. s = this._cache.getStore(e), r = this._cache.getStore(t), i = !0;
  11941. _context9.t0 = this._shouldRefreshAccessTokenHook;
  11942. if (!_context9.t0) {
  11943. _context9.next = 9;
  11944. break;
  11945. }
  11946. _context9.next = 8;
  11947. return this._shouldRefreshAccessTokenHook(s, r);
  11948. case 8:
  11949. _context9.t0 = !_context9.sent;
  11950. case 9:
  11951. _context9.t1 = _context9.t0;
  11952. if (!_context9.t1) {
  11953. _context9.next = 12;
  11954. break;
  11955. }
  11956. i = !1;
  11957. case 12:
  11958. return _context9.abrupt("return", (!s || !r || r < Date.now()) && i ? this.refreshAccessToken() : {
  11959. accessToken: s,
  11960. accessTokenExpire: r
  11961. });
  11962. case 13:
  11963. case "end":
  11964. return _context9.stop();
  11965. }
  11966. }
  11967. }, _callee9, this);
  11968. }));
  11969. function getAccessToken() {
  11970. return _getAccessToken.apply(this, arguments);
  11971. }
  11972. return getAccessToken;
  11973. }()
  11974. }, {
  11975. key: "request",
  11976. value: function () {
  11977. var _request = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee10(e, t, n) {
  11978. var s, r, i, _e12, o, _e13, _e14, a, c, u, h, l, d, p, f, g;
  11979. return _regenerator.default.wrap(function _callee10$(_context10) {
  11980. while (1) {
  11981. switch (_context10.prev = _context10.next) {
  11982. case 0:
  11983. s = "x-tcb-trace_".concat(this.config.env);
  11984. r = "application/x-www-form-urlencoded";
  11985. i = _objectSpread({
  11986. action: e,
  11987. env: this.config.env,
  11988. dataVersion: "2019-08-16"
  11989. }, t);
  11990. if (!(-1 === We.indexOf(e))) {
  11991. _context10.next = 10;
  11992. break;
  11993. }
  11994. _e12 = this._cache.keys.refreshTokenKey;
  11995. _context10.t0 = this._cache.getStore(_e12);
  11996. if (!_context10.t0) {
  11997. _context10.next = 10;
  11998. break;
  11999. }
  12000. _context10.next = 9;
  12001. return this.getAccessToken();
  12002. case 9:
  12003. i.access_token = _context10.sent.accessToken;
  12004. case 10:
  12005. if ("storage.uploadFile" === e) {
  12006. o = new FormData();
  12007. for (_e13 in o) {
  12008. o.hasOwnProperty(_e13) && void 0 !== o[_e13] && o.append(_e13, i[_e13]);
  12009. }
  12010. r = "multipart/form-data";
  12011. } else {
  12012. r = "application/json", o = {};
  12013. for (_e14 in i) {
  12014. void 0 !== i[_e14] && (o[_e14] = i[_e14]);
  12015. }
  12016. }
  12017. a = {
  12018. headers: {
  12019. "content-type": r
  12020. }
  12021. };
  12022. n && n.onUploadProgress && (a.onUploadProgress = n.onUploadProgress);
  12023. c = this._localCache.getStore(s);
  12024. c && (a.headers["X-TCB-Trace"] = c);
  12025. u = t.parse, h = t.inQuery, l = t.search;
  12026. d = {
  12027. env: this.config.env
  12028. };
  12029. u && (d.parse = !0), h && (d = _objectSpread(_objectSpread({}, h), d));
  12030. p = function (e, t) {
  12031. var n = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
  12032. var s = /\?/.test(t);
  12033. var r = "";
  12034. for (var _e15 in n) {
  12035. "" === r ? !s && (t += "?") : r += "&", r += "".concat(_e15, "=").concat(encodeURIComponent(n[_e15]));
  12036. }
  12037. return /^http(s)?\:\/\//.test(t += r) ? t : "".concat(e).concat(t);
  12038. }(pe, "//tcb-api.tencentcloudapi.com/web", d);
  12039. l && (p += l);
  12040. _context10.next = 22;
  12041. return this.post(_objectSpread({
  12042. url: p,
  12043. data: o
  12044. }, a));
  12045. case 22:
  12046. f = _context10.sent;
  12047. g = f.header && f.header["x-tcb-trace"];
  12048. if (!(g && this._localCache.setStore(s, g), 200 !== Number(f.status) && 200 !== Number(f.statusCode) || !f.data)) {
  12049. _context10.next = 26;
  12050. break;
  12051. }
  12052. throw new te({
  12053. code: "NETWORK_ERROR",
  12054. message: "network request error"
  12055. });
  12056. case 26:
  12057. return _context10.abrupt("return", f);
  12058. case 27:
  12059. case "end":
  12060. return _context10.stop();
  12061. }
  12062. }
  12063. }, _callee10, this);
  12064. }));
  12065. function request(_x5, _x6, _x7) {
  12066. return _request.apply(this, arguments);
  12067. }
  12068. return request;
  12069. }()
  12070. }, {
  12071. key: "send",
  12072. value: function () {
  12073. var _send = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee11(e) {
  12074. var t,
  12075. n,
  12076. _n7,
  12077. _args11 = arguments;
  12078. return _regenerator.default.wrap(function _callee11$(_context11) {
  12079. while (1) {
  12080. switch (_context11.prev = _context11.next) {
  12081. case 0:
  12082. t = _args11.length > 1 && _args11[1] !== undefined ? _args11[1] : {};
  12083. _context11.next = 3;
  12084. return this.request(e, t, {
  12085. onUploadProgress: t.onUploadProgress
  12086. });
  12087. case 3:
  12088. n = _context11.sent;
  12089. if (!("ACCESS_TOKEN_EXPIRED" === n.data.code && -1 === We.indexOf(e))) {
  12090. _context11.next = 13;
  12091. break;
  12092. }
  12093. _context11.next = 7;
  12094. return this.refreshAccessToken();
  12095. case 7:
  12096. _context11.next = 9;
  12097. return this.request(e, t, {
  12098. onUploadProgress: t.onUploadProgress
  12099. });
  12100. case 9:
  12101. _n7 = _context11.sent;
  12102. if (!_n7.data.code) {
  12103. _context11.next = 12;
  12104. break;
  12105. }
  12106. throw new te({
  12107. code: _n7.data.code,
  12108. message: _n7.data.message
  12109. });
  12110. case 12:
  12111. return _context11.abrupt("return", _n7.data);
  12112. case 13:
  12113. if (!n.data.code) {
  12114. _context11.next = 15;
  12115. break;
  12116. }
  12117. throw new te({
  12118. code: n.data.code,
  12119. message: n.data.message
  12120. });
  12121. case 15:
  12122. return _context11.abrupt("return", n.data);
  12123. case 16:
  12124. case "end":
  12125. return _context11.stop();
  12126. }
  12127. }
  12128. }, _callee11, this);
  12129. }));
  12130. function send(_x8) {
  12131. return _send.apply(this, arguments);
  12132. }
  12133. return send;
  12134. }()
  12135. }, {
  12136. key: "setRefreshToken",
  12137. value: function setRefreshToken(e) {
  12138. var _this$_cache$keys3 = this._cache.keys,
  12139. t = _this$_cache$keys3.accessTokenKey,
  12140. n = _this$_cache$keys3.accessTokenExpireKey,
  12141. s = _this$_cache$keys3.refreshTokenKey;
  12142. this._cache.removeStore(t), this._cache.removeStore(n), this._cache.setStore(s, e);
  12143. }
  12144. }]);
  12145. return Ge;
  12146. }();
  12147. var Ve = {};
  12148. function Ye(e) {
  12149. return Ve[e];
  12150. }
  12151. var Qe = /*#__PURE__*/function () {
  12152. function Qe(e) {
  12153. (0, _classCallCheck2.default)(this, Qe);
  12154. this.config = e, this._cache = Ee(e.env), this._request = Ye(e.env);
  12155. }
  12156. (0, _createClass2.default)(Qe, [{
  12157. key: "setRefreshToken",
  12158. value: function setRefreshToken(e) {
  12159. var _this$_cache$keys4 = this._cache.keys,
  12160. t = _this$_cache$keys4.accessTokenKey,
  12161. n = _this$_cache$keys4.accessTokenExpireKey,
  12162. s = _this$_cache$keys4.refreshTokenKey;
  12163. this._cache.removeStore(t), this._cache.removeStore(n), this._cache.setStore(s, e);
  12164. }
  12165. }, {
  12166. key: "setAccessToken",
  12167. value: function setAccessToken(e, t) {
  12168. var _this$_cache$keys5 = this._cache.keys,
  12169. n = _this$_cache$keys5.accessTokenKey,
  12170. s = _this$_cache$keys5.accessTokenExpireKey;
  12171. this._cache.setStore(n, e), this._cache.setStore(s, t);
  12172. }
  12173. }, {
  12174. key: "refreshUserInfo",
  12175. value: function () {
  12176. var _refreshUserInfo = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee12() {
  12177. var _yield$this$_request$, e;
  12178. return _regenerator.default.wrap(function _callee12$(_context12) {
  12179. while (1) {
  12180. switch (_context12.prev = _context12.next) {
  12181. case 0:
  12182. _context12.next = 2;
  12183. return this._request.send("auth.getUserInfo", {});
  12184. case 2:
  12185. _yield$this$_request$ = _context12.sent;
  12186. e = _yield$this$_request$.data;
  12187. return _context12.abrupt("return", (this.setLocalUserInfo(e), e));
  12188. case 5:
  12189. case "end":
  12190. return _context12.stop();
  12191. }
  12192. }
  12193. }, _callee12, this);
  12194. }));
  12195. function refreshUserInfo() {
  12196. return _refreshUserInfo.apply(this, arguments);
  12197. }
  12198. return refreshUserInfo;
  12199. }()
  12200. }, {
  12201. key: "setLocalUserInfo",
  12202. value: function setLocalUserInfo(e) {
  12203. var t = this._cache.keys.userInfoKey;
  12204. this._cache.setStore(t, e);
  12205. }
  12206. }]);
  12207. return Qe;
  12208. }();
  12209. var Xe = /*#__PURE__*/function () {
  12210. function Xe(e) {
  12211. (0, _classCallCheck2.default)(this, Xe);
  12212. if (!e) throw new te({
  12213. code: "PARAM_ERROR",
  12214. message: "envId is not defined"
  12215. });
  12216. this._envId = e, this._cache = Ee(this._envId), this._request = Ye(this._envId), this.setUserInfo();
  12217. }
  12218. (0, _createClass2.default)(Xe, [{
  12219. key: "linkWithTicket",
  12220. value: function linkWithTicket(e) {
  12221. if ("string" != typeof e) throw new te({
  12222. code: "PARAM_ERROR",
  12223. message: "ticket must be string"
  12224. });
  12225. return this._request.send("auth.linkWithTicket", {
  12226. ticket: e
  12227. });
  12228. }
  12229. }, {
  12230. key: "linkWithRedirect",
  12231. value: function linkWithRedirect(e) {
  12232. e.signInWithRedirect();
  12233. }
  12234. }, {
  12235. key: "updatePassword",
  12236. value: function updatePassword(e, t) {
  12237. return this._request.send("auth.updatePassword", {
  12238. oldPassword: t,
  12239. newPassword: e
  12240. });
  12241. }
  12242. }, {
  12243. key: "updateEmail",
  12244. value: function updateEmail(e) {
  12245. return this._request.send("auth.updateEmail", {
  12246. newEmail: e
  12247. });
  12248. }
  12249. }, {
  12250. key: "updateUsername",
  12251. value: function updateUsername(e) {
  12252. if ("string" != typeof e) throw new te({
  12253. code: "PARAM_ERROR",
  12254. message: "username must be a string"
  12255. });
  12256. return this._request.send("auth.updateUsername", {
  12257. username: e
  12258. });
  12259. }
  12260. }, {
  12261. key: "getLinkedUidList",
  12262. value: function () {
  12263. var _getLinkedUidList = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee13() {
  12264. var _yield$this$_request$2, e, t, n;
  12265. return _regenerator.default.wrap(function _callee13$(_context13) {
  12266. while (1) {
  12267. switch (_context13.prev = _context13.next) {
  12268. case 0:
  12269. _context13.next = 2;
  12270. return this._request.send("auth.getLinkedUidList", {});
  12271. case 2:
  12272. _yield$this$_request$2 = _context13.sent;
  12273. e = _yield$this$_request$2.data;
  12274. t = !1;
  12275. n = e.users;
  12276. return _context13.abrupt("return", (n.forEach(function (e) {
  12277. e.wxOpenId && e.wxPublicId && (t = !0);
  12278. }), {
  12279. users: n,
  12280. hasPrimaryUid: t
  12281. }));
  12282. case 7:
  12283. case "end":
  12284. return _context13.stop();
  12285. }
  12286. }
  12287. }, _callee13, this);
  12288. }));
  12289. function getLinkedUidList() {
  12290. return _getLinkedUidList.apply(this, arguments);
  12291. }
  12292. return getLinkedUidList;
  12293. }()
  12294. }, {
  12295. key: "setPrimaryUid",
  12296. value: function setPrimaryUid(e) {
  12297. return this._request.send("auth.setPrimaryUid", {
  12298. uid: e
  12299. });
  12300. }
  12301. }, {
  12302. key: "unlink",
  12303. value: function unlink(e) {
  12304. return this._request.send("auth.unlink", {
  12305. platform: e
  12306. });
  12307. }
  12308. }, {
  12309. key: "update",
  12310. value: function () {
  12311. var _update = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee14(e) {
  12312. var t, n, s, r, i, o, _yield$this$_request$3, a;
  12313. return _regenerator.default.wrap(function _callee14$(_context14) {
  12314. while (1) {
  12315. switch (_context14.prev = _context14.next) {
  12316. case 0:
  12317. t = e.nickName;
  12318. n = e.gender;
  12319. s = e.avatarUrl;
  12320. r = e.province;
  12321. i = e.country;
  12322. o = e.city;
  12323. _context14.next = 8;
  12324. return this._request.send("auth.updateUserInfo", {
  12325. nickName: t,
  12326. gender: n,
  12327. avatarUrl: s,
  12328. province: r,
  12329. country: i,
  12330. city: o
  12331. });
  12332. case 8:
  12333. _yield$this$_request$3 = _context14.sent;
  12334. a = _yield$this$_request$3.data;
  12335. this.setLocalUserInfo(a);
  12336. case 11:
  12337. case "end":
  12338. return _context14.stop();
  12339. }
  12340. }
  12341. }, _callee14, this);
  12342. }));
  12343. function update(_x9) {
  12344. return _update.apply(this, arguments);
  12345. }
  12346. return update;
  12347. }()
  12348. }, {
  12349. key: "refresh",
  12350. value: function () {
  12351. var _refresh = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee15() {
  12352. var _yield$this$_request$4, e;
  12353. return _regenerator.default.wrap(function _callee15$(_context15) {
  12354. while (1) {
  12355. switch (_context15.prev = _context15.next) {
  12356. case 0:
  12357. _context15.next = 2;
  12358. return this._request.send("auth.getUserInfo", {});
  12359. case 2:
  12360. _yield$this$_request$4 = _context15.sent;
  12361. e = _yield$this$_request$4.data;
  12362. return _context15.abrupt("return", (this.setLocalUserInfo(e), e));
  12363. case 5:
  12364. case "end":
  12365. return _context15.stop();
  12366. }
  12367. }
  12368. }, _callee15, this);
  12369. }));
  12370. function refresh() {
  12371. return _refresh.apply(this, arguments);
  12372. }
  12373. return refresh;
  12374. }()
  12375. }, {
  12376. key: "setUserInfo",
  12377. value: function setUserInfo() {
  12378. var _this8 = this;
  12379. var e = this._cache.keys.userInfoKey,
  12380. t = this._cache.getStore(e);
  12381. ["uid", "loginType", "openid", "wxOpenId", "wxPublicId", "unionId", "qqMiniOpenId", "email", "hasPassword", "customUserId", "nickName", "gender", "avatarUrl"].forEach(function (e) {
  12382. _this8[e] = t[e];
  12383. }), this.location = {
  12384. country: t.country,
  12385. province: t.province,
  12386. city: t.city
  12387. };
  12388. }
  12389. }, {
  12390. key: "setLocalUserInfo",
  12391. value: function setLocalUserInfo(e) {
  12392. var t = this._cache.keys.userInfoKey;
  12393. this._cache.setStore(t, e), this.setUserInfo();
  12394. }
  12395. }]);
  12396. return Xe;
  12397. }();
  12398. var Ze = /*#__PURE__*/function () {
  12399. function Ze(e) {
  12400. (0, _classCallCheck2.default)(this, Ze);
  12401. if (!e) throw new te({
  12402. code: "PARAM_ERROR",
  12403. message: "envId is not defined"
  12404. });
  12405. this._cache = Ee(e);
  12406. var _this$_cache$keys6 = this._cache.keys,
  12407. t = _this$_cache$keys6.refreshTokenKey,
  12408. n = _this$_cache$keys6.accessTokenKey,
  12409. s = _this$_cache$keys6.accessTokenExpireKey,
  12410. r = this._cache.getStore(t),
  12411. i = this._cache.getStore(n),
  12412. o = this._cache.getStore(s);
  12413. this.credential = {
  12414. refreshToken: r,
  12415. accessToken: i,
  12416. accessTokenExpire: o
  12417. }, this.user = new Xe(e);
  12418. }
  12419. (0, _createClass2.default)(Ze, [{
  12420. key: "isAnonymousAuth",
  12421. get: function get() {
  12422. return this.loginType === Be.ANONYMOUS;
  12423. }
  12424. }, {
  12425. key: "isCustomAuth",
  12426. get: function get() {
  12427. return this.loginType === Be.CUSTOM;
  12428. }
  12429. }, {
  12430. key: "isWeixinAuth",
  12431. get: function get() {
  12432. return this.loginType === Be.WECHAT || this.loginType === Be.WECHAT_OPEN || this.loginType === Be.WECHAT_PUBLIC;
  12433. }
  12434. }, {
  12435. key: "loginType",
  12436. get: function get() {
  12437. return this._cache.getStore(this._cache.keys.loginTypeKey);
  12438. }
  12439. }]);
  12440. return Ze;
  12441. }();
  12442. var et = /*#__PURE__*/function (_Qe) {
  12443. (0, _inherits2.default)(et, _Qe);
  12444. var _super4 = _createSuper(et);
  12445. function et() {
  12446. (0, _classCallCheck2.default)(this, et);
  12447. return _super4.apply(this, arguments);
  12448. }
  12449. (0, _createClass2.default)(et, [{
  12450. key: "signIn",
  12451. value: function () {
  12452. var _signIn = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee16() {
  12453. var _this$_cache$keys7, e, t, n, s, r, _e16;
  12454. return _regenerator.default.wrap(function _callee16$(_context16) {
  12455. while (1) {
  12456. switch (_context16.prev = _context16.next) {
  12457. case 0:
  12458. this._cache.updatePersistence("local");
  12459. _this$_cache$keys7 = this._cache.keys;
  12460. e = _this$_cache$keys7.anonymousUuidKey;
  12461. t = _this$_cache$keys7.refreshTokenKey;
  12462. n = this._cache.getStore(e) || void 0;
  12463. s = this._cache.getStore(t) || void 0;
  12464. _context16.next = 8;
  12465. return this._request.send("auth.signInAnonymously", {
  12466. anonymous_uuid: n,
  12467. refresh_token: s
  12468. });
  12469. case 8:
  12470. r = _context16.sent;
  12471. if (!(r.uuid && r.refresh_token)) {
  12472. _context16.next = 20;
  12473. break;
  12474. }
  12475. this._setAnonymousUUID(r.uuid);
  12476. this.setRefreshToken(r.refresh_token);
  12477. _context16.next = 14;
  12478. return this._request.refreshAccessToken();
  12479. case 14:
  12480. De(qe);
  12481. De(Ke, {
  12482. env: this.config.env,
  12483. loginType: Be.ANONYMOUS,
  12484. persistence: "local"
  12485. });
  12486. _e16 = new Ze(this.config.env);
  12487. _context16.next = 19;
  12488. return _e16.user.refresh();
  12489. case 19:
  12490. return _context16.abrupt("return", _e16);
  12491. case 20:
  12492. throw new te({
  12493. message: "匿名登录失败"
  12494. });
  12495. case 21:
  12496. case "end":
  12497. return _context16.stop();
  12498. }
  12499. }
  12500. }, _callee16, this);
  12501. }));
  12502. function signIn() {
  12503. return _signIn.apply(this, arguments);
  12504. }
  12505. return signIn;
  12506. }()
  12507. }, {
  12508. key: "linkAndRetrieveDataWithTicket",
  12509. value: function () {
  12510. var _linkAndRetrieveDataWithTicket = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee17(e) {
  12511. var _this$_cache$keys8, t, n, s, r, i;
  12512. return _regenerator.default.wrap(function _callee17$(_context17) {
  12513. while (1) {
  12514. switch (_context17.prev = _context17.next) {
  12515. case 0:
  12516. _this$_cache$keys8 = this._cache.keys;
  12517. t = _this$_cache$keys8.anonymousUuidKey;
  12518. n = _this$_cache$keys8.refreshTokenKey;
  12519. s = this._cache.getStore(t);
  12520. r = this._cache.getStore(n);
  12521. _context17.next = 7;
  12522. return this._request.send("auth.linkAndRetrieveDataWithTicket", {
  12523. anonymous_uuid: s,
  12524. refresh_token: r,
  12525. ticket: e
  12526. });
  12527. case 7:
  12528. i = _context17.sent;
  12529. if (!i.refresh_token) {
  12530. _context17.next = 16;
  12531. break;
  12532. }
  12533. this._clearAnonymousUUID();
  12534. this.setRefreshToken(i.refresh_token);
  12535. _context17.next = 13;
  12536. return this._request.refreshAccessToken();
  12537. case 13:
  12538. De(je, {
  12539. env: this.config.env
  12540. });
  12541. De(Ke, {
  12542. loginType: Be.CUSTOM,
  12543. persistence: "local"
  12544. });
  12545. return _context17.abrupt("return", {
  12546. credential: {
  12547. refreshToken: i.refresh_token
  12548. }
  12549. });
  12550. case 16:
  12551. throw new te({
  12552. message: "匿名转化失败"
  12553. });
  12554. case 17:
  12555. case "end":
  12556. return _context17.stop();
  12557. }
  12558. }
  12559. }, _callee17, this);
  12560. }));
  12561. function linkAndRetrieveDataWithTicket(_x10) {
  12562. return _linkAndRetrieveDataWithTicket.apply(this, arguments);
  12563. }
  12564. return linkAndRetrieveDataWithTicket;
  12565. }()
  12566. }, {
  12567. key: "_setAnonymousUUID",
  12568. value: function _setAnonymousUUID(e) {
  12569. var _this$_cache$keys9 = this._cache.keys,
  12570. t = _this$_cache$keys9.anonymousUuidKey,
  12571. n = _this$_cache$keys9.loginTypeKey;
  12572. this._cache.removeStore(t), this._cache.setStore(t, e), this._cache.setStore(n, Be.ANONYMOUS);
  12573. }
  12574. }, {
  12575. key: "_clearAnonymousUUID",
  12576. value: function _clearAnonymousUUID() {
  12577. this._cache.removeStore(this._cache.keys.anonymousUuidKey);
  12578. }
  12579. }]);
  12580. return et;
  12581. }(Qe);
  12582. var tt = /*#__PURE__*/function (_Qe2) {
  12583. (0, _inherits2.default)(tt, _Qe2);
  12584. var _super5 = _createSuper(tt);
  12585. function tt() {
  12586. (0, _classCallCheck2.default)(this, tt);
  12587. return _super5.apply(this, arguments);
  12588. }
  12589. (0, _createClass2.default)(tt, [{
  12590. key: "signIn",
  12591. value: function () {
  12592. var _signIn2 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee18(e) {
  12593. var t, n;
  12594. return _regenerator.default.wrap(function _callee18$(_context18) {
  12595. while (1) {
  12596. switch (_context18.prev = _context18.next) {
  12597. case 0:
  12598. if (!("string" != typeof e)) {
  12599. _context18.next = 2;
  12600. break;
  12601. }
  12602. throw new te({
  12603. code: "PARAM_ERROR",
  12604. message: "ticket must be a string"
  12605. });
  12606. case 2:
  12607. t = this._cache.keys.refreshTokenKey;
  12608. _context18.next = 5;
  12609. return this._request.send("auth.signInWithTicket", {
  12610. ticket: e,
  12611. refresh_token: this._cache.getStore(t) || ""
  12612. });
  12613. case 5:
  12614. n = _context18.sent;
  12615. if (!n.refresh_token) {
  12616. _context18.next = 15;
  12617. break;
  12618. }
  12619. this.setRefreshToken(n.refresh_token);
  12620. _context18.next = 10;
  12621. return this._request.refreshAccessToken();
  12622. case 10:
  12623. De(qe);
  12624. De(Ke, {
  12625. env: this.config.env,
  12626. loginType: Be.CUSTOM,
  12627. persistence: this.config.persistence
  12628. });
  12629. _context18.next = 14;
  12630. return this.refreshUserInfo();
  12631. case 14:
  12632. return _context18.abrupt("return", new Ze(this.config.env));
  12633. case 15:
  12634. throw new te({
  12635. message: "自定义登录失败"
  12636. });
  12637. case 16:
  12638. case "end":
  12639. return _context18.stop();
  12640. }
  12641. }
  12642. }, _callee18, this);
  12643. }));
  12644. function signIn(_x11) {
  12645. return _signIn2.apply(this, arguments);
  12646. }
  12647. return signIn;
  12648. }()
  12649. }]);
  12650. return tt;
  12651. }(Qe);
  12652. var nt = /*#__PURE__*/function (_Qe3) {
  12653. (0, _inherits2.default)(nt, _Qe3);
  12654. var _super6 = _createSuper(nt);
  12655. function nt() {
  12656. (0, _classCallCheck2.default)(this, nt);
  12657. return _super6.apply(this, arguments);
  12658. }
  12659. (0, _createClass2.default)(nt, [{
  12660. key: "signIn",
  12661. value: function () {
  12662. var _signIn3 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee19(e, t) {
  12663. var n, s, r, i, o;
  12664. return _regenerator.default.wrap(function _callee19$(_context19) {
  12665. while (1) {
  12666. switch (_context19.prev = _context19.next) {
  12667. case 0:
  12668. if (!("string" != typeof e)) {
  12669. _context19.next = 2;
  12670. break;
  12671. }
  12672. throw new te({
  12673. code: "PARAM_ERROR",
  12674. message: "email must be a string"
  12675. });
  12676. case 2:
  12677. n = this._cache.keys.refreshTokenKey;
  12678. _context19.next = 5;
  12679. return this._request.send("auth.signIn", {
  12680. loginType: "EMAIL",
  12681. email: e,
  12682. password: t,
  12683. refresh_token: this._cache.getStore(n) || ""
  12684. });
  12685. case 5:
  12686. s = _context19.sent;
  12687. r = s.refresh_token;
  12688. i = s.access_token;
  12689. o = s.access_token_expire;
  12690. if (!r) {
  12691. _context19.next = 22;
  12692. break;
  12693. }
  12694. this.setRefreshToken(r);
  12695. if (!(i && o)) {
  12696. _context19.next = 15;
  12697. break;
  12698. }
  12699. this.setAccessToken(i, o);
  12700. _context19.next = 17;
  12701. break;
  12702. case 15:
  12703. _context19.next = 17;
  12704. return this._request.refreshAccessToken();
  12705. case 17:
  12706. _context19.next = 19;
  12707. return this.refreshUserInfo();
  12708. case 19:
  12709. De(qe);
  12710. De(Ke, {
  12711. env: this.config.env,
  12712. loginType: Be.EMAIL,
  12713. persistence: this.config.persistence
  12714. });
  12715. return _context19.abrupt("return", new Ze(this.config.env));
  12716. case 22:
  12717. throw s.code ? new te({
  12718. code: s.code,
  12719. message: "\u90AE\u7BB1\u767B\u5F55\u5931\u8D25: ".concat(s.message)
  12720. }) : new te({
  12721. message: "邮箱登录失败"
  12722. });
  12723. case 23:
  12724. case "end":
  12725. return _context19.stop();
  12726. }
  12727. }
  12728. }, _callee19, this);
  12729. }));
  12730. function signIn(_x12, _x13) {
  12731. return _signIn3.apply(this, arguments);
  12732. }
  12733. return signIn;
  12734. }()
  12735. }, {
  12736. key: "activate",
  12737. value: function () {
  12738. var _activate = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee20(e) {
  12739. return _regenerator.default.wrap(function _callee20$(_context20) {
  12740. while (1) {
  12741. switch (_context20.prev = _context20.next) {
  12742. case 0:
  12743. return _context20.abrupt("return", this._request.send("auth.activateEndUserMail", {
  12744. token: e
  12745. }));
  12746. case 1:
  12747. case "end":
  12748. return _context20.stop();
  12749. }
  12750. }
  12751. }, _callee20, this);
  12752. }));
  12753. function activate(_x14) {
  12754. return _activate.apply(this, arguments);
  12755. }
  12756. return activate;
  12757. }()
  12758. }, {
  12759. key: "resetPasswordWithToken",
  12760. value: function () {
  12761. var _resetPasswordWithToken = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee21(e, t) {
  12762. return _regenerator.default.wrap(function _callee21$(_context21) {
  12763. while (1) {
  12764. switch (_context21.prev = _context21.next) {
  12765. case 0:
  12766. return _context21.abrupt("return", this._request.send("auth.resetPasswordWithToken", {
  12767. token: e,
  12768. newPassword: t
  12769. }));
  12770. case 1:
  12771. case "end":
  12772. return _context21.stop();
  12773. }
  12774. }
  12775. }, _callee21, this);
  12776. }));
  12777. function resetPasswordWithToken(_x15, _x16) {
  12778. return _resetPasswordWithToken.apply(this, arguments);
  12779. }
  12780. return resetPasswordWithToken;
  12781. }()
  12782. }]);
  12783. return nt;
  12784. }(Qe);
  12785. var st = /*#__PURE__*/function (_Qe4) {
  12786. (0, _inherits2.default)(st, _Qe4);
  12787. var _super7 = _createSuper(st);
  12788. function st() {
  12789. (0, _classCallCheck2.default)(this, st);
  12790. return _super7.apply(this, arguments);
  12791. }
  12792. (0, _createClass2.default)(st, [{
  12793. key: "signIn",
  12794. value: function () {
  12795. var _signIn4 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee22(e, t) {
  12796. var n, s, r, i, o;
  12797. return _regenerator.default.wrap(function _callee22$(_context22) {
  12798. while (1) {
  12799. switch (_context22.prev = _context22.next) {
  12800. case 0:
  12801. if (!("string" != typeof e)) {
  12802. _context22.next = 2;
  12803. break;
  12804. }
  12805. throw new te({
  12806. code: "PARAM_ERROR",
  12807. message: "username must be a string"
  12808. });
  12809. case 2:
  12810. "string" != typeof t && (t = "", console.warn("password is empty"));
  12811. n = this._cache.keys.refreshTokenKey;
  12812. _context22.next = 6;
  12813. return this._request.send("auth.signIn", {
  12814. loginType: Be.USERNAME,
  12815. username: e,
  12816. password: t,
  12817. refresh_token: this._cache.getStore(n) || ""
  12818. });
  12819. case 6:
  12820. s = _context22.sent;
  12821. r = s.refresh_token;
  12822. i = s.access_token_expire;
  12823. o = s.access_token;
  12824. if (!r) {
  12825. _context22.next = 23;
  12826. break;
  12827. }
  12828. this.setRefreshToken(r);
  12829. if (!(o && i)) {
  12830. _context22.next = 16;
  12831. break;
  12832. }
  12833. this.setAccessToken(o, i);
  12834. _context22.next = 18;
  12835. break;
  12836. case 16:
  12837. _context22.next = 18;
  12838. return this._request.refreshAccessToken();
  12839. case 18:
  12840. _context22.next = 20;
  12841. return this.refreshUserInfo();
  12842. case 20:
  12843. De(qe);
  12844. De(Ke, {
  12845. env: this.config.env,
  12846. loginType: Be.USERNAME,
  12847. persistence: this.config.persistence
  12848. });
  12849. return _context22.abrupt("return", new Ze(this.config.env));
  12850. case 23:
  12851. throw s.code ? new te({
  12852. code: s.code,
  12853. message: "\u7528\u6237\u540D\u5BC6\u7801\u767B\u5F55\u5931\u8D25: ".concat(s.message)
  12854. }) : new te({
  12855. message: "用户名密码登录失败"
  12856. });
  12857. case 24:
  12858. case "end":
  12859. return _context22.stop();
  12860. }
  12861. }
  12862. }, _callee22, this);
  12863. }));
  12864. function signIn(_x17, _x18) {
  12865. return _signIn4.apply(this, arguments);
  12866. }
  12867. return signIn;
  12868. }()
  12869. }]);
  12870. return st;
  12871. }(Qe);
  12872. var rt = /*#__PURE__*/function () {
  12873. function rt(e) {
  12874. (0, _classCallCheck2.default)(this, rt);
  12875. this.config = e, this._cache = Ee(e.env), this._request = Ye(e.env), this._onAnonymousConverted = this._onAnonymousConverted.bind(this), this._onLoginTypeChanged = this._onLoginTypeChanged.bind(this), Ne(Ke, this._onLoginTypeChanged);
  12876. }
  12877. (0, _createClass2.default)(rt, [{
  12878. key: "currentUser",
  12879. get: function get() {
  12880. var e = this.hasLoginState();
  12881. return e && e.user || null;
  12882. }
  12883. }, {
  12884. key: "loginType",
  12885. get: function get() {
  12886. return this._cache.getStore(this._cache.keys.loginTypeKey);
  12887. }
  12888. }, {
  12889. key: "anonymousAuthProvider",
  12890. value: function anonymousAuthProvider() {
  12891. return new et(this.config);
  12892. }
  12893. }, {
  12894. key: "customAuthProvider",
  12895. value: function customAuthProvider() {
  12896. return new tt(this.config);
  12897. }
  12898. }, {
  12899. key: "emailAuthProvider",
  12900. value: function emailAuthProvider() {
  12901. return new nt(this.config);
  12902. }
  12903. }, {
  12904. key: "usernameAuthProvider",
  12905. value: function usernameAuthProvider() {
  12906. return new st(this.config);
  12907. }
  12908. }, {
  12909. key: "signInAnonymously",
  12910. value: function () {
  12911. var _signInAnonymously = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee23() {
  12912. return _regenerator.default.wrap(function _callee23$(_context23) {
  12913. while (1) {
  12914. switch (_context23.prev = _context23.next) {
  12915. case 0:
  12916. return _context23.abrupt("return", new et(this.config).signIn());
  12917. case 1:
  12918. case "end":
  12919. return _context23.stop();
  12920. }
  12921. }
  12922. }, _callee23, this);
  12923. }));
  12924. function signInAnonymously() {
  12925. return _signInAnonymously.apply(this, arguments);
  12926. }
  12927. return signInAnonymously;
  12928. }()
  12929. }, {
  12930. key: "signInWithEmailAndPassword",
  12931. value: function () {
  12932. var _signInWithEmailAndPassword = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee24(e, t) {
  12933. return _regenerator.default.wrap(function _callee24$(_context24) {
  12934. while (1) {
  12935. switch (_context24.prev = _context24.next) {
  12936. case 0:
  12937. return _context24.abrupt("return", new nt(this.config).signIn(e, t));
  12938. case 1:
  12939. case "end":
  12940. return _context24.stop();
  12941. }
  12942. }
  12943. }, _callee24, this);
  12944. }));
  12945. function signInWithEmailAndPassword(_x19, _x20) {
  12946. return _signInWithEmailAndPassword.apply(this, arguments);
  12947. }
  12948. return signInWithEmailAndPassword;
  12949. }()
  12950. }, {
  12951. key: "signInWithUsernameAndPassword",
  12952. value: function signInWithUsernameAndPassword(e, t) {
  12953. return new st(this.config).signIn(e, t);
  12954. }
  12955. }, {
  12956. key: "linkAndRetrieveDataWithTicket",
  12957. value: function () {
  12958. var _linkAndRetrieveDataWithTicket2 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee25(e) {
  12959. return _regenerator.default.wrap(function _callee25$(_context25) {
  12960. while (1) {
  12961. switch (_context25.prev = _context25.next) {
  12962. case 0:
  12963. this._anonymousAuthProvider || (this._anonymousAuthProvider = new et(this.config)), Ne(je, this._onAnonymousConverted);
  12964. _context25.next = 3;
  12965. return this._anonymousAuthProvider.linkAndRetrieveDataWithTicket(e);
  12966. case 3:
  12967. return _context25.abrupt("return", _context25.sent);
  12968. case 4:
  12969. case "end":
  12970. return _context25.stop();
  12971. }
  12972. }
  12973. }, _callee25, this);
  12974. }));
  12975. function linkAndRetrieveDataWithTicket(_x21) {
  12976. return _linkAndRetrieveDataWithTicket2.apply(this, arguments);
  12977. }
  12978. return linkAndRetrieveDataWithTicket;
  12979. }()
  12980. }, {
  12981. key: "signOut",
  12982. value: function () {
  12983. var _signOut = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee26() {
  12984. var _this$_cache$keys10, e, t, n, s, r;
  12985. return _regenerator.default.wrap(function _callee26$(_context26) {
  12986. while (1) {
  12987. switch (_context26.prev = _context26.next) {
  12988. case 0:
  12989. if (!(this.loginType === Be.ANONYMOUS)) {
  12990. _context26.next = 2;
  12991. break;
  12992. }
  12993. throw new te({
  12994. message: "匿名用户不支持登出操作"
  12995. });
  12996. case 2:
  12997. _this$_cache$keys10 = this._cache.keys, e = _this$_cache$keys10.refreshTokenKey, t = _this$_cache$keys10.accessTokenKey, n = _this$_cache$keys10.accessTokenExpireKey, s = this._cache.getStore(e);
  12998. if (s) {
  12999. _context26.next = 5;
  13000. break;
  13001. }
  13002. return _context26.abrupt("return");
  13003. case 5:
  13004. _context26.next = 7;
  13005. return this._request.send("auth.logout", {
  13006. refresh_token: s
  13007. });
  13008. case 7:
  13009. r = _context26.sent;
  13010. return _context26.abrupt("return", (this._cache.removeStore(e), this._cache.removeStore(t), this._cache.removeStore(n), De(qe), De(Ke, {
  13011. env: this.config.env,
  13012. loginType: Be.NULL,
  13013. persistence: this.config.persistence
  13014. }), r));
  13015. case 9:
  13016. case "end":
  13017. return _context26.stop();
  13018. }
  13019. }
  13020. }, _callee26, this);
  13021. }));
  13022. function signOut() {
  13023. return _signOut.apply(this, arguments);
  13024. }
  13025. return signOut;
  13026. }()
  13027. }, {
  13028. key: "signUpWithEmailAndPassword",
  13029. value: function () {
  13030. var _signUpWithEmailAndPassword = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee27(e, t) {
  13031. return _regenerator.default.wrap(function _callee27$(_context27) {
  13032. while (1) {
  13033. switch (_context27.prev = _context27.next) {
  13034. case 0:
  13035. return _context27.abrupt("return", this._request.send("auth.signUpWithEmailAndPassword", {
  13036. email: e,
  13037. password: t
  13038. }));
  13039. case 1:
  13040. case "end":
  13041. return _context27.stop();
  13042. }
  13043. }
  13044. }, _callee27, this);
  13045. }));
  13046. function signUpWithEmailAndPassword(_x22, _x23) {
  13047. return _signUpWithEmailAndPassword.apply(this, arguments);
  13048. }
  13049. return signUpWithEmailAndPassword;
  13050. }()
  13051. }, {
  13052. key: "sendPasswordResetEmail",
  13053. value: function () {
  13054. var _sendPasswordResetEmail = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee28(e) {
  13055. return _regenerator.default.wrap(function _callee28$(_context28) {
  13056. while (1) {
  13057. switch (_context28.prev = _context28.next) {
  13058. case 0:
  13059. return _context28.abrupt("return", this._request.send("auth.sendPasswordResetEmail", {
  13060. email: e
  13061. }));
  13062. case 1:
  13063. case "end":
  13064. return _context28.stop();
  13065. }
  13066. }
  13067. }, _callee28, this);
  13068. }));
  13069. function sendPasswordResetEmail(_x24) {
  13070. return _sendPasswordResetEmail.apply(this, arguments);
  13071. }
  13072. return sendPasswordResetEmail;
  13073. }()
  13074. }, {
  13075. key: "onLoginStateChanged",
  13076. value: function onLoginStateChanged(e) {
  13077. var _this9 = this;
  13078. Ne(qe, function () {
  13079. var t = _this9.hasLoginState();
  13080. e.call(_this9, t);
  13081. });
  13082. var t = this.hasLoginState();
  13083. e.call(this, t);
  13084. }
  13085. }, {
  13086. key: "onLoginStateExpired",
  13087. value: function onLoginStateExpired(e) {
  13088. Ne(Fe, e.bind(this));
  13089. }
  13090. }, {
  13091. key: "onAccessTokenRefreshed",
  13092. value: function onAccessTokenRefreshed(e) {
  13093. Ne($e, e.bind(this));
  13094. }
  13095. }, {
  13096. key: "onAnonymousConverted",
  13097. value: function onAnonymousConverted(e) {
  13098. Ne(je, e.bind(this));
  13099. }
  13100. }, {
  13101. key: "onLoginTypeChanged",
  13102. value: function onLoginTypeChanged(e) {
  13103. var _this10 = this;
  13104. Ne(Ke, function () {
  13105. var t = _this10.hasLoginState();
  13106. e.call(_this10, t);
  13107. });
  13108. }
  13109. }, {
  13110. key: "getAccessToken",
  13111. value: function () {
  13112. var _getAccessToken2 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee29() {
  13113. return _regenerator.default.wrap(function _callee29$(_context29) {
  13114. while (1) {
  13115. switch (_context29.prev = _context29.next) {
  13116. case 0:
  13117. _context29.next = 2;
  13118. return this._request.getAccessToken();
  13119. case 2:
  13120. _context29.t0 = _context29.sent.accessToken;
  13121. _context29.t1 = this.config.env;
  13122. return _context29.abrupt("return", {
  13123. accessToken: _context29.t0,
  13124. env: _context29.t1
  13125. });
  13126. case 5:
  13127. case "end":
  13128. return _context29.stop();
  13129. }
  13130. }
  13131. }, _callee29, this);
  13132. }));
  13133. function getAccessToken() {
  13134. return _getAccessToken2.apply(this, arguments);
  13135. }
  13136. return getAccessToken;
  13137. }()
  13138. }, {
  13139. key: "hasLoginState",
  13140. value: function hasLoginState() {
  13141. var e = this._cache.keys.refreshTokenKey;
  13142. return this._cache.getStore(e) ? new Ze(this.config.env) : null;
  13143. }
  13144. }, {
  13145. key: "isUsernameRegistered",
  13146. value: function () {
  13147. var _isUsernameRegistered = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee30(e) {
  13148. var _yield$this$_request$5, t;
  13149. return _regenerator.default.wrap(function _callee30$(_context30) {
  13150. while (1) {
  13151. switch (_context30.prev = _context30.next) {
  13152. case 0:
  13153. if (!("string" != typeof e)) {
  13154. _context30.next = 2;
  13155. break;
  13156. }
  13157. throw new te({
  13158. code: "PARAM_ERROR",
  13159. message: "username must be a string"
  13160. });
  13161. case 2:
  13162. _context30.next = 4;
  13163. return this._request.send("auth.isUsernameRegistered", {
  13164. username: e
  13165. });
  13166. case 4:
  13167. _yield$this$_request$5 = _context30.sent;
  13168. t = _yield$this$_request$5.data;
  13169. return _context30.abrupt("return", t && t.isRegistered);
  13170. case 7:
  13171. case "end":
  13172. return _context30.stop();
  13173. }
  13174. }
  13175. }, _callee30, this);
  13176. }));
  13177. function isUsernameRegistered(_x25) {
  13178. return _isUsernameRegistered.apply(this, arguments);
  13179. }
  13180. return isUsernameRegistered;
  13181. }()
  13182. }, {
  13183. key: "getLoginState",
  13184. value: function getLoginState() {
  13185. return Promise.resolve(this.hasLoginState());
  13186. }
  13187. }, {
  13188. key: "signInWithTicket",
  13189. value: function () {
  13190. var _signInWithTicket = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee31(e) {
  13191. return _regenerator.default.wrap(function _callee31$(_context31) {
  13192. while (1) {
  13193. switch (_context31.prev = _context31.next) {
  13194. case 0:
  13195. return _context31.abrupt("return", new tt(this.config).signIn(e));
  13196. case 1:
  13197. case "end":
  13198. return _context31.stop();
  13199. }
  13200. }
  13201. }, _callee31, this);
  13202. }));
  13203. function signInWithTicket(_x26) {
  13204. return _signInWithTicket.apply(this, arguments);
  13205. }
  13206. return signInWithTicket;
  13207. }()
  13208. }, {
  13209. key: "shouldRefreshAccessToken",
  13210. value: function shouldRefreshAccessToken(e) {
  13211. this._request._shouldRefreshAccessTokenHook = e.bind(this);
  13212. }
  13213. }, {
  13214. key: "getUserInfo",
  13215. value: function getUserInfo() {
  13216. return this._request.send("auth.getUserInfo", {}).then(function (e) {
  13217. return e.code ? e : _objectSpread(_objectSpread({}, e.data), {}, {
  13218. requestId: e.seqId
  13219. });
  13220. });
  13221. }
  13222. }, {
  13223. key: "getAuthHeader",
  13224. value: function getAuthHeader() {
  13225. var _this$_cache$keys11 = this._cache.keys,
  13226. e = _this$_cache$keys11.refreshTokenKey,
  13227. t = _this$_cache$keys11.accessTokenKey,
  13228. n = this._cache.getStore(e);
  13229. return {
  13230. "x-cloudbase-credentials": this._cache.getStore(t) + "/@@/" + n
  13231. };
  13232. }
  13233. }, {
  13234. key: "_onAnonymousConverted",
  13235. value: function _onAnonymousConverted(e) {
  13236. var t = e.data.env;
  13237. t === this.config.env && this._cache.updatePersistence(this.config.persistence);
  13238. }
  13239. }, {
  13240. key: "_onLoginTypeChanged",
  13241. value: function _onLoginTypeChanged(e) {
  13242. var _e$data = e.data,
  13243. t = _e$data.loginType,
  13244. n = _e$data.persistence,
  13245. s = _e$data.env;
  13246. s === this.config.env && (this._cache.updatePersistence(n), this._cache.setStore(this._cache.keys.loginTypeKey, t));
  13247. }
  13248. }]);
  13249. return rt;
  13250. }();
  13251. var it = function it(e, t) {
  13252. t = t || we();
  13253. var n = Ye(this.config.env),
  13254. s = e.cloudPath,
  13255. r = e.filePath,
  13256. i = e.onUploadProgress,
  13257. _e$fileType = e.fileType,
  13258. o = _e$fileType === void 0 ? "image" : _e$fileType;
  13259. return n.send("storage.getUploadMetadata", {
  13260. path: s
  13261. }).then(function (e) {
  13262. var _e$data2 = e.data,
  13263. a = _e$data2.url,
  13264. c = _e$data2.authorization,
  13265. u = _e$data2.token,
  13266. h = _e$data2.fileId,
  13267. l = _e$data2.cosFileId,
  13268. d = e.requestId,
  13269. p = {
  13270. key: s,
  13271. signature: c,
  13272. "x-cos-meta-fileid": l,
  13273. success_action_status: "201",
  13274. "x-cos-security-token": u
  13275. };
  13276. n.upload({
  13277. url: a,
  13278. data: p,
  13279. file: r,
  13280. name: s,
  13281. fileType: o,
  13282. onUploadProgress: i
  13283. }).then(function (e) {
  13284. 201 === e.statusCode ? t(null, {
  13285. fileID: h,
  13286. requestId: d
  13287. }) : t(new te({
  13288. code: "STORAGE_REQUEST_FAIL",
  13289. message: "STORAGE_REQUEST_FAIL: ".concat(e.data)
  13290. }));
  13291. }).catch(function (e) {
  13292. t(e);
  13293. });
  13294. }).catch(function (e) {
  13295. t(e);
  13296. }), t.promise;
  13297. },
  13298. ot = function ot(e, t) {
  13299. t = t || we();
  13300. var n = Ye(this.config.env),
  13301. s = e.cloudPath;
  13302. return n.send("storage.getUploadMetadata", {
  13303. path: s
  13304. }).then(function (e) {
  13305. t(null, e);
  13306. }).catch(function (e) {
  13307. t(e);
  13308. }), t.promise;
  13309. },
  13310. at = function at(_ref7, t) {
  13311. var e = _ref7.fileList;
  13312. if (t = t || we(), !e || !Array.isArray(e)) return {
  13313. code: "INVALID_PARAM",
  13314. message: "fileList必须是非空的数组"
  13315. };
  13316. var _iterator3 = _createForOfIteratorHelper(e),
  13317. _step3;
  13318. try {
  13319. for (_iterator3.s(); !(_step3 = _iterator3.n()).done;) {
  13320. var _t8 = _step3.value;
  13321. if (!_t8 || "string" != typeof _t8) return {
  13322. code: "INVALID_PARAM",
  13323. message: "fileList的元素必须是非空的字符串"
  13324. };
  13325. }
  13326. } catch (err) {
  13327. _iterator3.e(err);
  13328. } finally {
  13329. _iterator3.f();
  13330. }
  13331. var n = {
  13332. fileid_list: e
  13333. };
  13334. return Ye(this.config.env).send("storage.batchDeleteFile", n).then(function (e) {
  13335. e.code ? t(null, e) : t(null, {
  13336. fileList: e.data.delete_list,
  13337. requestId: e.requestId
  13338. });
  13339. }).catch(function (e) {
  13340. t(e);
  13341. }), t.promise;
  13342. },
  13343. ct = function ct(_ref8, t) {
  13344. var e = _ref8.fileList;
  13345. t = t || we(), e && Array.isArray(e) || t(null, {
  13346. code: "INVALID_PARAM",
  13347. message: "fileList必须是非空的数组"
  13348. });
  13349. var n = [];
  13350. var _iterator4 = _createForOfIteratorHelper(e),
  13351. _step4;
  13352. try {
  13353. for (_iterator4.s(); !(_step4 = _iterator4.n()).done;) {
  13354. var _s9 = _step4.value;
  13355. "object" == (0, _typeof2.default)(_s9) ? (_s9.hasOwnProperty("fileID") && _s9.hasOwnProperty("maxAge") || t(null, {
  13356. code: "INVALID_PARAM",
  13357. message: "fileList的元素必须是包含fileID和maxAge的对象"
  13358. }), n.push({
  13359. fileid: _s9.fileID,
  13360. max_age: _s9.maxAge
  13361. })) : "string" == typeof _s9 ? n.push({
  13362. fileid: _s9
  13363. }) : t(null, {
  13364. code: "INVALID_PARAM",
  13365. message: "fileList的元素必须是字符串"
  13366. });
  13367. }
  13368. } catch (err) {
  13369. _iterator4.e(err);
  13370. } finally {
  13371. _iterator4.f();
  13372. }
  13373. var s = {
  13374. file_list: n
  13375. };
  13376. return Ye(this.config.env).send("storage.batchGetDownloadUrl", s).then(function (e) {
  13377. e.code ? t(null, e) : t(null, {
  13378. fileList: e.data.download_list,
  13379. requestId: e.requestId
  13380. });
  13381. }).catch(function (e) {
  13382. t(e);
  13383. }), t.promise;
  13384. },
  13385. ut = /*#__PURE__*/function () {
  13386. var _ref10 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee32(_ref9, t) {
  13387. var e, n, s, r;
  13388. return _regenerator.default.wrap(function _callee32$(_context32) {
  13389. while (1) {
  13390. switch (_context32.prev = _context32.next) {
  13391. case 0:
  13392. e = _ref9.fileID;
  13393. _context32.next = 3;
  13394. return ct.call(this, {
  13395. fileList: [{
  13396. fileID: e,
  13397. maxAge: 600
  13398. }]
  13399. });
  13400. case 3:
  13401. n = _context32.sent.fileList[0];
  13402. if (!("SUCCESS" !== n.code)) {
  13403. _context32.next = 6;
  13404. break;
  13405. }
  13406. return _context32.abrupt("return", t ? t(n) : new Promise(function (e) {
  13407. e(n);
  13408. }));
  13409. case 6:
  13410. s = Ye(this.config.env);
  13411. r = n.download_url;
  13412. if (!(r = encodeURI(r), !t)) {
  13413. _context32.next = 10;
  13414. break;
  13415. }
  13416. return _context32.abrupt("return", s.download({
  13417. url: r
  13418. }));
  13419. case 10:
  13420. _context32.t0 = t;
  13421. _context32.next = 13;
  13422. return s.download({
  13423. url: r
  13424. });
  13425. case 13:
  13426. _context32.t1 = _context32.sent;
  13427. (0, _context32.t0)(_context32.t1);
  13428. case 15:
  13429. case "end":
  13430. return _context32.stop();
  13431. }
  13432. }
  13433. }, _callee32, this);
  13434. }));
  13435. return function ut(_x27, _x28) {
  13436. return _ref10.apply(this, arguments);
  13437. };
  13438. }(),
  13439. ht = function ht(_ref11, i) {
  13440. var e = _ref11.name,
  13441. t = _ref11.data,
  13442. n = _ref11.query,
  13443. s = _ref11.parse,
  13444. r = _ref11.search;
  13445. var o = i || we();
  13446. var a;
  13447. try {
  13448. a = t ? JSON.stringify(t) : "";
  13449. } catch (e) {
  13450. return Promise.reject(e);
  13451. }
  13452. if (!e) return Promise.reject(new te({
  13453. code: "PARAM_ERROR",
  13454. message: "函数名不能为空"
  13455. }));
  13456. var c = {
  13457. inQuery: n,
  13458. parse: s,
  13459. search: r,
  13460. function_name: e,
  13461. request_data: a
  13462. };
  13463. return Ye(this.config.env).send("functions.invokeFunction", c).then(function (e) {
  13464. if (e.code) o(null, e);else {
  13465. var _t9 = e.data.response_data;
  13466. if (s) o(null, {
  13467. result: _t9,
  13468. requestId: e.requestId
  13469. });else try {
  13470. _t9 = JSON.parse(e.data.response_data), o(null, {
  13471. result: _t9,
  13472. requestId: e.requestId
  13473. });
  13474. } catch (e) {
  13475. o(new te({
  13476. message: "response data must be json"
  13477. }));
  13478. }
  13479. }
  13480. return o.promise;
  13481. }).catch(function (e) {
  13482. o(e);
  13483. }), o.promise;
  13484. },
  13485. lt = {
  13486. timeout: 15e3,
  13487. persistence: "session"
  13488. },
  13489. dt = {};
  13490. var pt = /*#__PURE__*/function () {
  13491. function pt(e) {
  13492. (0, _classCallCheck2.default)(this, pt);
  13493. this.config = e || this.config, this.authObj = void 0;
  13494. }
  13495. (0, _createClass2.default)(pt, [{
  13496. key: "init",
  13497. value: function init(e) {
  13498. switch (ke.adapter || (this.requestClient = new ke.adapter.reqClass({
  13499. timeout: e.timeout || 5e3,
  13500. timeoutMsg: "\u8BF7\u6C42\u5728".concat((e.timeout || 5e3) / 1e3, "s\u5185\u672A\u5B8C\u6210\uFF0C\u5DF2\u4E2D\u65AD")
  13501. })), this.config = _objectSpread(_objectSpread({}, lt), e), !0) {
  13502. case this.config.timeout > 6e5:
  13503. console.warn("timeout大于可配置上限[10分钟],已重置为上限数值"), this.config.timeout = 6e5;
  13504. break;
  13505. case this.config.timeout < 100:
  13506. console.warn("timeout小于可配置下限[100ms],已重置为下限数值"), this.config.timeout = 100;
  13507. }
  13508. return new pt(this.config);
  13509. }
  13510. }, {
  13511. key: "auth",
  13512. value: function auth() {
  13513. var _ref12 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
  13514. e = _ref12.persistence;
  13515. if (this.authObj) return this.authObj;
  13516. var t = e || ke.adapter.primaryStorage || lt.persistence;
  13517. var n;
  13518. return t !== this.config.persistence && (this.config.persistence = t), function (e) {
  13519. var t = e.env;
  13520. xe[t] = new Ce(e), Oe[t] = new Ce(_objectSpread(_objectSpread({}, e), {}, {
  13521. persistence: "local"
  13522. }));
  13523. }(this.config), n = this.config, Ve[n.env] = new Ge(n), this.authObj = new rt(this.config), this.authObj;
  13524. }
  13525. }, {
  13526. key: "on",
  13527. value: function on(e, t) {
  13528. return Ne.apply(this, [e, t]);
  13529. }
  13530. }, {
  13531. key: "off",
  13532. value: function off(e, t) {
  13533. return Me.apply(this, [e, t]);
  13534. }
  13535. }, {
  13536. key: "callFunction",
  13537. value: function callFunction(e, t) {
  13538. return ht.apply(this, [e, t]);
  13539. }
  13540. }, {
  13541. key: "deleteFile",
  13542. value: function deleteFile(e, t) {
  13543. return at.apply(this, [e, t]);
  13544. }
  13545. }, {
  13546. key: "getTempFileURL",
  13547. value: function getTempFileURL(e, t) {
  13548. return ct.apply(this, [e, t]);
  13549. }
  13550. }, {
  13551. key: "downloadFile",
  13552. value: function downloadFile(e, t) {
  13553. return ut.apply(this, [e, t]);
  13554. }
  13555. }, {
  13556. key: "uploadFile",
  13557. value: function uploadFile(e, t) {
  13558. return it.apply(this, [e, t]);
  13559. }
  13560. }, {
  13561. key: "getUploadMetadata",
  13562. value: function getUploadMetadata(e, t) {
  13563. return ot.apply(this, [e, t]);
  13564. }
  13565. }, {
  13566. key: "registerExtension",
  13567. value: function registerExtension(e) {
  13568. dt[e.name] = e;
  13569. }
  13570. }, {
  13571. key: "invokeExtension",
  13572. value: function () {
  13573. var _invokeExtension = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee33(e, t) {
  13574. var n;
  13575. return _regenerator.default.wrap(function _callee33$(_context33) {
  13576. while (1) {
  13577. switch (_context33.prev = _context33.next) {
  13578. case 0:
  13579. n = dt[e];
  13580. if (n) {
  13581. _context33.next = 3;
  13582. break;
  13583. }
  13584. throw new te({
  13585. message: "\u6269\u5C55".concat(e, " \u5FC5\u987B\u5148\u6CE8\u518C")
  13586. });
  13587. case 3:
  13588. _context33.next = 5;
  13589. return n.invoke(t, this);
  13590. case 5:
  13591. return _context33.abrupt("return", _context33.sent);
  13592. case 6:
  13593. case "end":
  13594. return _context33.stop();
  13595. }
  13596. }
  13597. }, _callee33, this);
  13598. }));
  13599. function invokeExtension(_x29, _x30) {
  13600. return _invokeExtension.apply(this, arguments);
  13601. }
  13602. return invokeExtension;
  13603. }()
  13604. }, {
  13605. key: "useAdapters",
  13606. value: function useAdapters(e) {
  13607. var _ref13 = be(e) || {},
  13608. t = _ref13.adapter,
  13609. n = _ref13.runtime;
  13610. t && (ke.adapter = t), n && (ke.runtime = n);
  13611. }
  13612. }]);
  13613. return pt;
  13614. }();
  13615. var ft = new pt();
  13616. function gt(e, t, n) {
  13617. void 0 === n && (n = {});
  13618. var s = /\?/.test(t),
  13619. r = "";
  13620. for (var i in n) {
  13621. "" === r ? !s && (t += "?") : r += "&", r += i + "=" + encodeURIComponent(n[i]);
  13622. }
  13623. return /^http(s)?:\/\//.test(t += r) ? t : "" + e + t;
  13624. }
  13625. var mt = /*#__PURE__*/function () {
  13626. function mt() {
  13627. (0, _classCallCheck2.default)(this, mt);
  13628. }
  13629. (0, _createClass2.default)(mt, [{
  13630. key: "post",
  13631. value: function post(e) {
  13632. var t = e.url,
  13633. n = e.data,
  13634. s = e.headers;
  13635. return new Promise(function (e, r) {
  13636. ne.request({
  13637. url: gt("https:", t),
  13638. data: n,
  13639. method: "POST",
  13640. header: s,
  13641. success: function success(t) {
  13642. e(t);
  13643. },
  13644. fail: function fail(e) {
  13645. r(e);
  13646. }
  13647. });
  13648. });
  13649. }
  13650. }, {
  13651. key: "upload",
  13652. value: function upload(e) {
  13653. return new Promise(function (t, n) {
  13654. var s = e.url,
  13655. r = e.file,
  13656. i = e.data,
  13657. o = e.headers,
  13658. a = e.fileType,
  13659. c = ne.uploadFile({
  13660. url: gt("https:", s),
  13661. name: "file",
  13662. formData: Object.assign({}, i),
  13663. filePath: r,
  13664. fileType: a,
  13665. header: o,
  13666. success: function success(e) {
  13667. var n = {
  13668. statusCode: e.statusCode,
  13669. data: e.data || {}
  13670. };
  13671. 200 === e.statusCode && i.success_action_status && (n.statusCode = parseInt(i.success_action_status, 10)), t(n);
  13672. },
  13673. fail: function fail(e) {
  13674. n(new Error(e.errMsg || "uploadFile:fail"));
  13675. }
  13676. });
  13677. "function" == typeof e.onUploadProgress && c && "function" == typeof c.onProgressUpdate && c.onProgressUpdate(function (t) {
  13678. e.onUploadProgress({
  13679. loaded: t.totalBytesSent,
  13680. total: t.totalBytesExpectedToSend
  13681. });
  13682. });
  13683. });
  13684. }
  13685. }]);
  13686. return mt;
  13687. }();
  13688. var yt = {
  13689. setItem: function setItem(e, t) {
  13690. ne.setStorageSync(e, t);
  13691. },
  13692. getItem: function getItem(e) {
  13693. return ne.getStorageSync(e);
  13694. },
  13695. removeItem: function removeItem(e) {
  13696. ne.removeStorageSync(e);
  13697. },
  13698. clear: function clear() {
  13699. ne.clearStorageSync();
  13700. }
  13701. };
  13702. var _t = {
  13703. genAdapter: function genAdapter() {
  13704. return {
  13705. root: {},
  13706. reqClass: mt,
  13707. localStorage: yt,
  13708. primaryStorage: "local"
  13709. };
  13710. },
  13711. isMatch: function isMatch() {
  13712. return !0;
  13713. },
  13714. runtime: "uni_app"
  13715. };
  13716. ft.useAdapters(_t);
  13717. var wt = ft,
  13718. vt = wt.init;
  13719. wt.init = function (e) {
  13720. e.env = e.spaceId;
  13721. var t = vt.call(this, e);
  13722. t.config.provider = "tencent", t.config.spaceId = e.spaceId;
  13723. var n = t.auth;
  13724. return t.auth = function (e) {
  13725. var t = n.call(this, e);
  13726. return ["linkAndRetrieveDataWithTicket", "signInAnonymously", "signOut", "getAccessToken", "getLoginState", "signInWithTicket", "getUserInfo"].forEach(function (e) {
  13727. var n;
  13728. t[e] = (n = t[e], function (e) {
  13729. e = e || {};
  13730. var _ee = ee(e),
  13731. t = _ee.success,
  13732. s = _ee.fail,
  13733. r = _ee.complete;
  13734. if (!(t || s || r)) return n.call(this, e);
  13735. n.call(this, e).then(function (e) {
  13736. t && t(e), r && r(e);
  13737. }, function (e) {
  13738. s && s(e), r && r(e);
  13739. });
  13740. }).bind(t);
  13741. }), t;
  13742. }, t.customAuth = t.auth, t;
  13743. };
  13744. var It = wt;
  13745. var St = /*#__PURE__*/function (_le) {
  13746. (0, _inherits2.default)(St, _le);
  13747. var _super8 = _createSuper(St);
  13748. function St() {
  13749. (0, _classCallCheck2.default)(this, St);
  13750. return _super8.apply(this, arguments);
  13751. }
  13752. (0, _createClass2.default)(St, [{
  13753. key: "getAccessToken",
  13754. value: function getAccessToken() {
  13755. var _this11 = this;
  13756. return new Promise(function (e, t) {
  13757. var n = "Anonymous_Access_token";
  13758. _this11.setAccessToken(n), e(n);
  13759. });
  13760. }
  13761. }, {
  13762. key: "setupRequest",
  13763. value: function setupRequest(e, t) {
  13764. var n = Object.assign({}, e, {
  13765. spaceId: this.config.spaceId,
  13766. timestamp: Date.now()
  13767. }),
  13768. s = {
  13769. "Content-Type": "application/json"
  13770. };
  13771. "auth" !== t && (n.token = this.accessToken, s["x-basement-token"] = this.accessToken), s["x-serverless-sign"] = he.sign(n, this.config.clientSecret);
  13772. var r = ue();
  13773. s["x-client-info"] = encodeURIComponent(JSON.stringify(r));
  13774. var _se = se(),
  13775. i = _se.token;
  13776. return s["x-client-token"] = i, {
  13777. url: this.config.requestUrl,
  13778. method: "POST",
  13779. data: n,
  13780. dataType: "json",
  13781. header: JSON.parse(JSON.stringify(s))
  13782. };
  13783. }
  13784. }, {
  13785. key: "uploadFileToOSS",
  13786. value: function uploadFileToOSS(_ref14) {
  13787. var _this12 = this;
  13788. var e = _ref14.url,
  13789. t = _ref14.formData,
  13790. n = _ref14.name,
  13791. s = _ref14.filePath,
  13792. r = _ref14.fileType,
  13793. i = _ref14.onUploadProgress;
  13794. return new Promise(function (o, a) {
  13795. var c = _this12.adapter.uploadFile({
  13796. url: e,
  13797. formData: t,
  13798. name: n,
  13799. filePath: s,
  13800. fileType: r,
  13801. success: function success(e) {
  13802. e && e.statusCode < 400 ? o(e) : a(new te({
  13803. code: "UPLOAD_FAILED",
  13804. message: "文件上传失败"
  13805. }));
  13806. },
  13807. fail: function fail(e) {
  13808. a(new te({
  13809. code: e.code || "UPLOAD_FAILED",
  13810. message: e.message || e.errMsg || "文件上传失败"
  13811. }));
  13812. }
  13813. });
  13814. "function" == typeof i && c && "function" == typeof c.onProgressUpdate && c.onProgressUpdate(function (e) {
  13815. i({
  13816. loaded: e.totalBytesSent,
  13817. total: e.totalBytesExpectedToSend
  13818. });
  13819. });
  13820. });
  13821. }
  13822. }, {
  13823. key: "uploadFile",
  13824. value: function uploadFile(_ref15) {
  13825. var _this13 = this;
  13826. var e = _ref15.filePath,
  13827. t = _ref15.cloudPath,
  13828. _ref15$fileType = _ref15.fileType,
  13829. n = _ref15$fileType === void 0 ? "image" : _ref15$fileType,
  13830. s = _ref15.onUploadProgress;
  13831. if (!t) throw new te({
  13832. code: "CLOUDPATH_REQUIRED",
  13833. message: "cloudPath不可为空"
  13834. });
  13835. var r;
  13836. return this.getOSSUploadOptionsFromPath({
  13837. cloudPath: t
  13838. }).then(function (t) {
  13839. var _t$result = t.result,
  13840. i = _t$result.url,
  13841. o = _t$result.formData,
  13842. a = _t$result.name;
  13843. r = t.result.fileUrl;
  13844. var c = {
  13845. url: i,
  13846. formData: o,
  13847. name: a,
  13848. filePath: e,
  13849. fileType: n
  13850. };
  13851. return _this13.uploadFileToOSS(Object.assign({}, c, {
  13852. onUploadProgress: s
  13853. }));
  13854. }).then(function () {
  13855. return _this13.reportOSSUpload({
  13856. cloudPath: t
  13857. });
  13858. }).then(function (t) {
  13859. return new Promise(function (n, s) {
  13860. t.success ? n({
  13861. success: !0,
  13862. filePath: e,
  13863. fileID: r
  13864. }) : s(new te({
  13865. code: "UPLOAD_FAILED",
  13866. message: "文件上传失败"
  13867. }));
  13868. });
  13869. });
  13870. }
  13871. }, {
  13872. key: "deleteFile",
  13873. value: function deleteFile(_ref16) {
  13874. var e = _ref16.fileList;
  13875. var t = {
  13876. method: "serverless.file.resource.delete",
  13877. params: JSON.stringify({
  13878. fileList: e
  13879. })
  13880. };
  13881. return this.request(this.setupRequest(t)).then(function (e) {
  13882. if (e.success) return e.result;
  13883. throw new te({
  13884. code: "DELETE_FILE_FAILED",
  13885. message: "删除文件失败"
  13886. });
  13887. });
  13888. }
  13889. }, {
  13890. key: "getTempFileURL",
  13891. value: function getTempFileURL() {
  13892. var _ref17 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
  13893. e = _ref17.fileList,
  13894. t = _ref17.maxAge;
  13895. if (!Array.isArray(e) || 0 === e.length) throw new te({
  13896. code: "INVALID_PARAM",
  13897. message: "fileList的元素必须是非空的字符串"
  13898. });
  13899. var n = {
  13900. method: "serverless.file.resource.getTempFileURL",
  13901. params: JSON.stringify({
  13902. fileList: e,
  13903. maxAge: t
  13904. })
  13905. };
  13906. return this.request(this.setupRequest(n)).then(function (e) {
  13907. if (e.success) return {
  13908. fileList: e.result.fileList.map(function (e) {
  13909. return {
  13910. fileID: e.fileID,
  13911. tempFileURL: e.tempFileURL
  13912. };
  13913. })
  13914. };
  13915. throw new te({
  13916. code: "GET_TEMP_FILE_URL_FAILED",
  13917. message: "获取临时文件链接失败"
  13918. });
  13919. });
  13920. }
  13921. }]);
  13922. return St;
  13923. }(le);
  13924. var bt = {
  13925. init: function init(e) {
  13926. var t = new St(e),
  13927. n = {
  13928. signInAnonymously: function signInAnonymously() {
  13929. return t.authorize();
  13930. },
  13931. getLoginState: function getLoginState() {
  13932. return Promise.resolve(!1);
  13933. }
  13934. };
  13935. return t.auth = function () {
  13936. return n;
  13937. }, t.customAuth = t.auth, t;
  13938. }
  13939. },
  13940. kt = n(function (e, t) {
  13941. e.exports = r.enc.Hex;
  13942. });
  13943. function At() {
  13944. var e = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : "";
  13945. var t = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  13946. var n = t.data,
  13947. s = t.functionName,
  13948. r = t.method,
  13949. i = t.headers,
  13950. _t$signHeaderKeys = t.signHeaderKeys,
  13951. o = _t$signHeaderKeys === void 0 ? [] : _t$signHeaderKeys,
  13952. a = t.config,
  13953. c = Date.now(),
  13954. u = "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, function (e) {
  13955. var t = 16 * Math.random() | 0;
  13956. return ("x" === e ? t : 3 & t | 8).toString(16);
  13957. }),
  13958. h = Object.assign({}, i, {
  13959. "x-from-app-id": a.spaceAppId,
  13960. "x-from-env-id": a.spaceId,
  13961. "x-to-env-id": a.spaceId,
  13962. "x-from-instance-id": c,
  13963. "x-from-function-name": s,
  13964. "x-client-timestamp": c,
  13965. "x-alipay-source": "client",
  13966. "x-request-id": u,
  13967. "x-alipay-callid": u,
  13968. "x-trace-id": u
  13969. }),
  13970. 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),
  13971. _ref18 = e.split("?") || [],
  13972. _ref19 = (0, _slicedToArray2.default)(_ref18, 2),
  13973. _ref19$ = _ref19[0],
  13974. d = _ref19$ === void 0 ? "" : _ref19$,
  13975. _ref19$2 = _ref19[1],
  13976. p = _ref19$2 === void 0 ? "" : _ref19$2,
  13977. f = function (e) {
  13978. var t = e.signedHeaders.join(";"),
  13979. n = e.signedHeaders.map(function (t) {
  13980. return "".concat(t.toLowerCase(), ":").concat(e.headers[t], "\n");
  13981. }).join(""),
  13982. s = ye(e.body).toString(kt),
  13983. r = "".concat(e.method.toUpperCase(), "\n").concat(e.path, "\n").concat(e.query, "\n").concat(n, "\n").concat(t, "\n").concat(s, "\n"),
  13984. i = ye(r).toString(kt),
  13985. o = "HMAC-SHA256\n".concat(e.timestamp, "\n").concat(i, "\n"),
  13986. a = _e(o, e.secretKey).toString(kt);
  13987. return "HMAC-SHA256 Credential=".concat(e.secretId, ", SignedHeaders=").concat(t, ", Signature=").concat(a);
  13988. }({
  13989. path: d,
  13990. query: p,
  13991. method: r,
  13992. headers: h,
  13993. timestamp: c,
  13994. body: JSON.stringify(n),
  13995. secretId: a.accessKey,
  13996. secretKey: a.secretKey,
  13997. signedHeaders: l.sort()
  13998. });
  13999. return {
  14000. url: "".concat(a.endpoint).concat(e),
  14001. headers: Object.assign({}, h, {
  14002. Authorization: f
  14003. })
  14004. };
  14005. }
  14006. function Pt(_ref20) {
  14007. var e = _ref20.url,
  14008. t = _ref20.data,
  14009. _ref20$method = _ref20.method,
  14010. n = _ref20$method === void 0 ? "POST" : _ref20$method,
  14011. _ref20$headers = _ref20.headers,
  14012. s = _ref20$headers === void 0 ? {} : _ref20$headers;
  14013. return new Promise(function (r, i) {
  14014. ne.request({
  14015. url: e,
  14016. method: n,
  14017. data: t,
  14018. header: s,
  14019. dataType: "json",
  14020. complete: function complete() {
  14021. var e = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
  14022. var t = s["x-trace-id"] || "";
  14023. if (!e.statusCode || e.statusCode >= 400) {
  14024. var _ref21 = e.data || {},
  14025. _n8 = _ref21.message,
  14026. _s10 = _ref21.errMsg,
  14027. _r4 = _ref21.trace_id;
  14028. return i(new te({
  14029. code: "SYS_ERR",
  14030. message: _n8 || _s10 || "request:fail",
  14031. requestId: _r4 || t
  14032. }));
  14033. }
  14034. r({
  14035. status: e.statusCode,
  14036. data: e.data,
  14037. headers: e.header,
  14038. requestId: t
  14039. });
  14040. }
  14041. });
  14042. });
  14043. }
  14044. function Tt(e, t) {
  14045. var n = e.path,
  14046. s = e.data,
  14047. _e$method = e.method,
  14048. r = _e$method === void 0 ? "GET" : _e$method,
  14049. _At = At(n, {
  14050. functionName: "",
  14051. data: s,
  14052. method: r,
  14053. headers: {
  14054. "x-alipay-cloud-mode": "oss",
  14055. "x-data-api-type": "oss",
  14056. "x-expire-timestamp": Date.now() + 6e4
  14057. },
  14058. signHeaderKeys: ["x-data-api-type", "x-expire-timestamp"],
  14059. config: t
  14060. }),
  14061. i = _At.url,
  14062. o = _At.headers;
  14063. return Pt({
  14064. url: i,
  14065. data: s,
  14066. method: r,
  14067. headers: o
  14068. }).then(function (e) {
  14069. var t = e.data || {};
  14070. if (!t.success) throw new te({
  14071. code: e.errCode,
  14072. message: e.errMsg,
  14073. requestId: e.requestId
  14074. });
  14075. return t.data || {};
  14076. }).catch(function (e) {
  14077. throw new te({
  14078. code: e.errCode,
  14079. message: e.errMsg,
  14080. requestId: e.requestId
  14081. });
  14082. });
  14083. }
  14084. function Ct() {
  14085. var e = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : "";
  14086. var t = e.trim().replace(/^cloud:\/\//, ""),
  14087. n = t.indexOf("/");
  14088. if (n <= 0) throw new te({
  14089. code: "INVALID_PARAM",
  14090. message: "fileID不合法"
  14091. });
  14092. var s = t.substring(0, n),
  14093. r = t.substring(n + 1);
  14094. return s !== this.config.spaceId && console.warn("file ".concat(e, " does not belong to env ").concat(this.config.spaceId)), r;
  14095. }
  14096. function xt() {
  14097. var e = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : "";
  14098. return "cloud://".concat(this.config.spaceId, "/").concat(e.replace(/^\/+/, ""));
  14099. }
  14100. var Ot = /*#__PURE__*/function () {
  14101. function Ot(e) {
  14102. (0, _classCallCheck2.default)(this, Ot);
  14103. if (["spaceId", "spaceAppId", "accessKey", "secretKey"].forEach(function (t) {
  14104. if (!Object.prototype.hasOwnProperty.call(e, t)) throw new Error("".concat(t, " required"));
  14105. }), e.endpoint) {
  14106. if ("string" != typeof e.endpoint) throw new Error("endpoint must be string");
  14107. if (!/^https:\/\//.test(e.endpoint)) throw new Error("endpoint must start with https://");
  14108. e.endpoint = e.endpoint.replace(/\/$/, "");
  14109. }
  14110. this.config = Object.assign({}, e, {
  14111. endpoint: e.endpoint || "https://".concat(e.spaceId, ".api-hz.cloudbasefunction.cn")
  14112. });
  14113. }
  14114. (0, _createClass2.default)(Ot, [{
  14115. key: "callFunction",
  14116. value: function callFunction(e) {
  14117. return function (e, t) {
  14118. var n = e.name,
  14119. s = e.data,
  14120. r = "POST",
  14121. _At2 = At("/functions/invokeFunction", {
  14122. functionName: n,
  14123. data: s,
  14124. method: r,
  14125. headers: {
  14126. "x-to-function-name": n
  14127. },
  14128. signHeaderKeys: ["x-to-function-name"],
  14129. config: t
  14130. }),
  14131. i = _At2.url,
  14132. o = _At2.headers;
  14133. return Pt({
  14134. url: i,
  14135. data: s,
  14136. method: r,
  14137. headers: o
  14138. }).then(function (e) {
  14139. return {
  14140. errCode: 0,
  14141. success: !0,
  14142. requestId: e.requestId,
  14143. result: e.data
  14144. };
  14145. }).catch(function (e) {
  14146. throw new te({
  14147. code: e.errCode,
  14148. message: e.errMsg,
  14149. requestId: e.requestId
  14150. });
  14151. });
  14152. }(e, this.config);
  14153. }
  14154. }, {
  14155. key: "uploadFileToOSS",
  14156. value: function uploadFileToOSS(_ref22) {
  14157. var e = _ref22.url,
  14158. t = _ref22.filePath,
  14159. n = _ref22.fileType,
  14160. s = _ref22.formData,
  14161. r = _ref22.onUploadProgress;
  14162. return new Promise(function (i, o) {
  14163. var a = ne.uploadFile({
  14164. url: e,
  14165. filePath: t,
  14166. fileType: n,
  14167. formData: s,
  14168. name: "file",
  14169. success: function success(e) {
  14170. e && e.statusCode < 400 ? i(e) : o(new te({
  14171. code: "UPLOAD_FAILED",
  14172. message: "文件上传失败"
  14173. }));
  14174. },
  14175. fail: function fail(e) {
  14176. o(new te({
  14177. code: e.code || "UPLOAD_FAILED",
  14178. message: e.message || e.errMsg || "文件上传失败"
  14179. }));
  14180. }
  14181. });
  14182. "function" == typeof r && a && "function" == typeof a.onProgressUpdate && a.onProgressUpdate(function (e) {
  14183. r({
  14184. loaded: e.totalBytesSent,
  14185. total: e.totalBytesExpectedToSend
  14186. });
  14187. });
  14188. });
  14189. }
  14190. }, {
  14191. key: "uploadFile",
  14192. value: function () {
  14193. var _uploadFile2 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee34(_ref23) {
  14194. var e, _ref23$cloudPath, t, _ref23$fileType, n, s, r, i, o, a, c;
  14195. return _regenerator.default.wrap(function _callee34$(_context34) {
  14196. while (1) {
  14197. switch (_context34.prev = _context34.next) {
  14198. case 0:
  14199. e = _ref23.filePath, _ref23$cloudPath = _ref23.cloudPath, t = _ref23$cloudPath === void 0 ? "" : _ref23$cloudPath, _ref23$fileType = _ref23.fileType, n = _ref23$fileType === void 0 ? "image" : _ref23$fileType, s = _ref23.onUploadProgress;
  14200. if (!("string" !== f(t))) {
  14201. _context34.next = 3;
  14202. break;
  14203. }
  14204. throw new te({
  14205. code: "INVALID_PARAM",
  14206. message: "cloudPath必须为字符串类型"
  14207. });
  14208. case 3:
  14209. if (t = t.trim()) {
  14210. _context34.next = 5;
  14211. break;
  14212. }
  14213. throw new te({
  14214. code: "INVALID_PARAM",
  14215. message: "cloudPath不可为空"
  14216. });
  14217. case 5:
  14218. if (!/:\/\//.test(t)) {
  14219. _context34.next = 7;
  14220. break;
  14221. }
  14222. throw new te({
  14223. code: "INVALID_PARAM",
  14224. message: "cloudPath不合法"
  14225. });
  14226. case 7:
  14227. _context34.next = 9;
  14228. return Tt({
  14229. path: "/".concat(t.replace(/^\//, ""), "?post_url")
  14230. }, this.config);
  14231. case 9:
  14232. r = _context34.sent;
  14233. i = r.file_id;
  14234. o = r.upload_url;
  14235. a = r.form_data;
  14236. c = a && a.reduce(function (e, t) {
  14237. return e[t.key] = t.value, e;
  14238. }, {});
  14239. return _context34.abrupt("return", this.uploadFileToOSS({
  14240. url: o,
  14241. filePath: e,
  14242. fileType: n,
  14243. formData: c,
  14244. onUploadProgress: s
  14245. }).then(function () {
  14246. return {
  14247. fileID: i
  14248. };
  14249. }));
  14250. case 15:
  14251. case "end":
  14252. return _context34.stop();
  14253. }
  14254. }
  14255. }, _callee34, this);
  14256. }));
  14257. function uploadFile(_x31) {
  14258. return _uploadFile2.apply(this, arguments);
  14259. }
  14260. return uploadFile;
  14261. }()
  14262. }, {
  14263. key: "getTempFileURL",
  14264. value: function () {
  14265. var _getTempFileURL = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee35(_ref24) {
  14266. var _this14 = this;
  14267. var e;
  14268. return _regenerator.default.wrap(function _callee35$(_context35) {
  14269. while (1) {
  14270. switch (_context35.prev = _context35.next) {
  14271. case 0:
  14272. e = _ref24.fileList;
  14273. return _context35.abrupt("return", new Promise(function (t, n) {
  14274. (!e || e.length < 0) && n(new te({
  14275. errCode: "INVALID_PARAM",
  14276. errMsg: "fileList不能为空数组"
  14277. })), e.length > 50 && n(new te({
  14278. errCode: "INVALID_PARAM",
  14279. errMsg: "fileList数组长度不能超过50"
  14280. }));
  14281. var s = [];
  14282. var _iterator5 = _createForOfIteratorHelper(e),
  14283. _step5;
  14284. try {
  14285. for (_iterator5.s(); !(_step5 = _iterator5.n()).done;) {
  14286. var _t10 = _step5.value;
  14287. "string" !== f(_t10) && n(new te({
  14288. errCode: "INVALID_PARAM",
  14289. errMsg: "fileList的元素必须是非空的字符串"
  14290. }));
  14291. var _e17 = Ct.call(_this14, _t10);
  14292. s.push({
  14293. file_id: _e17,
  14294. expire: 600
  14295. });
  14296. }
  14297. } catch (err) {
  14298. _iterator5.e(err);
  14299. } finally {
  14300. _iterator5.f();
  14301. }
  14302. Tt({
  14303. path: "/?download_url",
  14304. data: {
  14305. file_list: s
  14306. },
  14307. method: "POST"
  14308. }, _this14.config).then(function (e) {
  14309. var _e$file_list = e.file_list,
  14310. n = _e$file_list === void 0 ? [] : _e$file_list;
  14311. t({
  14312. fileList: n.map(function (e) {
  14313. return {
  14314. fileID: xt.call(_this14, e.file_id),
  14315. tempFileURL: e.download_url
  14316. };
  14317. })
  14318. });
  14319. }).catch(function (e) {
  14320. return n(e);
  14321. });
  14322. }));
  14323. case 2:
  14324. case "end":
  14325. return _context35.stop();
  14326. }
  14327. }
  14328. }, _callee35);
  14329. }));
  14330. function getTempFileURL(_x32) {
  14331. return _getTempFileURL.apply(this, arguments);
  14332. }
  14333. return getTempFileURL;
  14334. }()
  14335. }]);
  14336. return Ot;
  14337. }();
  14338. var Et = {
  14339. init: function init(e) {
  14340. e.provider = "alipay";
  14341. var t = new Ot(e);
  14342. return t.auth = function () {
  14343. return {
  14344. signInAnonymously: function signInAnonymously() {
  14345. return Promise.resolve();
  14346. },
  14347. getLoginState: function getLoginState() {
  14348. return Promise.resolve(!0);
  14349. }
  14350. };
  14351. }, t;
  14352. }
  14353. };
  14354. function Lt(_ref25) {
  14355. var e = _ref25.data;
  14356. var t;
  14357. t = ue();
  14358. var n = JSON.parse(JSON.stringify(e || {}));
  14359. if (Object.assign(n, {
  14360. clientInfo: t
  14361. }), !n.uniIdToken) {
  14362. var _se2 = se(),
  14363. _e18 = _se2.token;
  14364. _e18 && (n.uniIdToken = _e18);
  14365. }
  14366. return n;
  14367. }
  14368. function Rt() {
  14369. return _Rt.apply(this, arguments);
  14370. }
  14371. function _Rt() {
  14372. _Rt = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee56() {
  14373. var _this27 = this;
  14374. var _ref67,
  14375. e,
  14376. t,
  14377. _this$__dev__,
  14378. n,
  14379. s,
  14380. r,
  14381. i,
  14382. o,
  14383. a,
  14384. _args6 = arguments;
  14385. return _regenerator.default.wrap(function _callee56$(_context56) {
  14386. while (1) {
  14387. switch (_context56.prev = _context56.next) {
  14388. case 0:
  14389. _ref67 = _args6.length > 0 && _args6[0] !== undefined ? _args6[0] : {}, e = _ref67.name, t = _ref67.data;
  14390. _context56.next = 3;
  14391. return this.__dev__.initLocalNetwork();
  14392. case 3:
  14393. _this$__dev__ = this.__dev__, n = _this$__dev__.localAddress, s = _this$__dev__.localPort, r = {
  14394. aliyun: "aliyun",
  14395. tencent: "tcb",
  14396. alipay: "alipay"
  14397. }[this.config.provider], i = this.config.spaceId, o = "http://".concat(n, ":").concat(s, "/system/check-function"), a = "http://".concat(n, ":").concat(s, "/cloudfunctions/").concat(e);
  14398. return _context56.abrupt("return", new Promise(function (t, n) {
  14399. ne.request({
  14400. method: "POST",
  14401. url: o,
  14402. data: {
  14403. name: e,
  14404. platform: P,
  14405. provider: r,
  14406. spaceId: i
  14407. },
  14408. timeout: 3e3,
  14409. success: function success(e) {
  14410. t(e);
  14411. },
  14412. fail: function fail() {
  14413. t({
  14414. data: {
  14415. code: "NETWORK_ERROR",
  14416. message: "连接本地调试服务失败,请检查客户端是否和主机在同一局域网下,自动切换为已部署的云函数。"
  14417. }
  14418. });
  14419. }
  14420. });
  14421. }).then(function () {
  14422. var _ref68 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
  14423. e = _ref68.data;
  14424. var _ref69 = e || {},
  14425. t = _ref69.code,
  14426. n = _ref69.message;
  14427. return {
  14428. code: 0 === t ? 0 : t || "SYS_ERR",
  14429. message: n || "SYS_ERR"
  14430. };
  14431. }).then(function (_ref70) {
  14432. var n = _ref70.code,
  14433. s = _ref70.message;
  14434. if (0 !== n) {
  14435. switch (n) {
  14436. case "MODULE_ENCRYPTED":
  14437. console.error("\u6B64\u4E91\u51FD\u6570\uFF08".concat(e, "\uFF09\u4F9D\u8D56\u52A0\u5BC6\u516C\u5171\u6A21\u5757\u4E0D\u53EF\u672C\u5730\u8C03\u8BD5\uFF0C\u81EA\u52A8\u5207\u6362\u4E3A\u4E91\u7AEF\u5DF2\u90E8\u7F72\u7684\u4E91\u51FD\u6570"));
  14438. break;
  14439. case "FUNCTION_ENCRYPTED":
  14440. console.error("\u6B64\u4E91\u51FD\u6570\uFF08".concat(e, "\uFF09\u5DF2\u52A0\u5BC6\u4E0D\u53EF\u672C\u5730\u8C03\u8BD5\uFF0C\u81EA\u52A8\u5207\u6362\u4E3A\u4E91\u7AEF\u5DF2\u90E8\u7F72\u7684\u4E91\u51FD\u6570"));
  14441. break;
  14442. case "ACTION_ENCRYPTED":
  14443. console.error(s || "需要访问加密的uni-clientDB-action,自动切换为云端环境");
  14444. break;
  14445. case "NETWORK_ERROR":
  14446. {
  14447. var _e30 = "连接本地调试服务失败,请检查客户端是否和主机在同一局域网下";
  14448. throw console.error(_e30), new Error(_e30);
  14449. }
  14450. case "SWITCH_TO_CLOUD":
  14451. break;
  14452. default:
  14453. {
  14454. var _e31 = "\u68C0\u6D4B\u672C\u5730\u8C03\u8BD5\u670D\u52A1\u51FA\u73B0\u9519\u8BEF\uFF1A".concat(s, "\uFF0C\u8BF7\u68C0\u67E5\u7F51\u7EDC\u73AF\u5883\u6216\u91CD\u542F\u5BA2\u6237\u7AEF\u518D\u8BD5");
  14455. throw console.error(_e31), new Error(_e31);
  14456. }
  14457. }
  14458. return _this27._callCloudFunction({
  14459. name: e,
  14460. data: t
  14461. });
  14462. }
  14463. return new Promise(function (e, n) {
  14464. var s = Lt.call(_this27, {
  14465. data: t
  14466. });
  14467. ne.request({
  14468. method: "POST",
  14469. url: a,
  14470. data: {
  14471. provider: r,
  14472. platform: P,
  14473. param: s
  14474. },
  14475. success: function success() {
  14476. var _ref71 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
  14477. t = _ref71.statusCode,
  14478. s = _ref71.data;
  14479. return !t || t >= 400 ? n(new te({
  14480. code: s.code || "SYS_ERR",
  14481. message: s.message || "request:fail"
  14482. })) : e({
  14483. result: s
  14484. });
  14485. },
  14486. fail: function fail(e) {
  14487. n(new te({
  14488. code: e.code || e.errCode || "SYS_ERR",
  14489. message: e.message || e.errMsg || "request:fail"
  14490. }));
  14491. }
  14492. });
  14493. });
  14494. }));
  14495. case 5:
  14496. case "end":
  14497. return _context56.stop();
  14498. }
  14499. }
  14500. }, _callee56, this);
  14501. }));
  14502. return _Rt.apply(this, arguments);
  14503. }
  14504. var Ut = [{
  14505. rule: /fc_function_not_found|FUNCTION_NOT_FOUND/,
  14506. content: ",云函数[{functionName}]在云端不存在,请检查此云函数名称是否正确以及该云函数是否已上传到服务空间",
  14507. mode: "append"
  14508. }];
  14509. var Nt = /[\\^$.*+?()[\]{}|]/g,
  14510. Dt = RegExp(Nt.source);
  14511. function Mt(e, t, n) {
  14512. return e.replace(new RegExp((s = t) && Dt.test(s) ? s.replace(Nt, "\\$&") : s, "g"), n);
  14513. var s;
  14514. }
  14515. var qt = "none",
  14516. Ft = "request",
  14517. Kt = "response",
  14518. jt = "both";
  14519. var $t = /*#__PURE__*/function () {
  14520. function $t() {
  14521. var _ref26 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
  14522. e = _ref26.secretType,
  14523. t = _ref26.uniCloudIns;
  14524. (0, _classCallCheck2.default)(this, $t);
  14525. this.clientType = "", this.secretType = e || qt, this.uniCloudIns = t;
  14526. var _this$uniCloudIns$con = this.uniCloudIns.config,
  14527. n = _this$uniCloudIns$con.provider,
  14528. s = _this$uniCloudIns$con.spaceId;
  14529. var r;
  14530. this.provider = n, this.spaceId = s, this.scopedGlobalCache = (r = this.uniCloudIns, L("_globalUniCloudSecureNetworkCache__{spaceId}".replace("{spaceId}", r.config.spaceId)));
  14531. }
  14532. (0, _createClass2.default)($t, [{
  14533. key: "getSystemInfo",
  14534. value: function getSystemInfo() {
  14535. return this._systemInfo || (this._systemInfo = ae()), this._systemInfo;
  14536. }
  14537. }, {
  14538. key: "appId",
  14539. get: function get() {
  14540. return this.getSystemInfo().appId;
  14541. }
  14542. }, {
  14543. key: "deviceId",
  14544. get: function get() {
  14545. return this.getSystemInfo().deviceId;
  14546. }
  14547. }, {
  14548. key: "encryptData",
  14549. value: function () {
  14550. var _encryptData = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee36(e) {
  14551. return _regenerator.default.wrap(function _callee36$(_context36) {
  14552. while (1) {
  14553. switch (_context36.prev = _context36.next) {
  14554. case 0:
  14555. return _context36.abrupt("return", this.secretType === qt ? e : this.platformEncryptData(e));
  14556. case 1:
  14557. case "end":
  14558. return _context36.stop();
  14559. }
  14560. }
  14561. }, _callee36, this);
  14562. }));
  14563. function encryptData(_x33) {
  14564. return _encryptData.apply(this, arguments);
  14565. }
  14566. return encryptData;
  14567. }()
  14568. }, {
  14569. key: "decryptResult",
  14570. value: function () {
  14571. var _decryptResult = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee37(e) {
  14572. var _ref27, t, n;
  14573. return _regenerator.default.wrap(function _callee37$(_context37) {
  14574. while (1) {
  14575. switch (_context37.prev = _context37.next) {
  14576. case 0:
  14577. if (!(this.secretType === qt)) {
  14578. _context37.next = 2;
  14579. break;
  14580. }
  14581. return _context37.abrupt("return", e);
  14582. case 2:
  14583. _ref27 = e || {}, t = _ref27.errCode, n = _ref27.content;
  14584. return _context37.abrupt("return", t || !n ? e : this.secretType === Ft ? n : this.platformDecryptResult(e));
  14585. case 4:
  14586. case "end":
  14587. return _context37.stop();
  14588. }
  14589. }
  14590. }, _callee37, this);
  14591. }));
  14592. function decryptResult(_x34) {
  14593. return _decryptResult.apply(this, arguments);
  14594. }
  14595. return decryptResult;
  14596. }()
  14597. }, {
  14598. key: "wrapVerifyClientCallFunction",
  14599. value: function wrapVerifyClientCallFunction(e) {
  14600. var t = this;
  14601. return /*#__PURE__*/(0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee38() {
  14602. var _ref29,
  14603. n,
  14604. _ref29$data,
  14605. s,
  14606. r,
  14607. _args38 = arguments;
  14608. return _regenerator.default.wrap(function _callee38$(_context38) {
  14609. while (1) {
  14610. switch (_context38.prev = _context38.next) {
  14611. case 0:
  14612. _ref29 = _args38.length > 0 && _args38[0] !== undefined ? _args38[0] : {}, n = _ref29.name, _ref29$data = _ref29.data, s = _ref29$data === void 0 ? {} : _ref29$data;
  14613. _context38.next = 3;
  14614. return t.prepare();
  14615. case 3:
  14616. _context38.next = 5;
  14617. return t.platformGetSignOption();
  14618. case 5:
  14619. (s = JSON.parse(JSON.stringify(s)))._uniCloudOptions = _context38.sent;
  14620. _context38.next = 8;
  14621. return e({
  14622. name: n,
  14623. data: s
  14624. });
  14625. case 8:
  14626. r = _context38.sent;
  14627. _context38.t0 = t.isClientKeyNotFound(r);
  14628. if (!_context38.t0) {
  14629. _context38.next = 19;
  14630. break;
  14631. }
  14632. _context38.next = 13;
  14633. return t.prepare({
  14634. forceUpdate: !0
  14635. });
  14636. case 13:
  14637. _context38.next = 15;
  14638. return t.platformGetSignOption();
  14639. case 15:
  14640. s._uniCloudOptions = _context38.sent;
  14641. _context38.next = 18;
  14642. return e({
  14643. name: n,
  14644. data: s
  14645. });
  14646. case 18:
  14647. r = _context38.sent;
  14648. case 19:
  14649. return _context38.abrupt("return", r);
  14650. case 20:
  14651. case "end":
  14652. return _context38.stop();
  14653. }
  14654. }
  14655. }, _callee38);
  14656. }));
  14657. }
  14658. }, {
  14659. key: "wrapEncryptDataCallFunction",
  14660. value: function wrapEncryptDataCallFunction(e) {
  14661. var t = this;
  14662. return /*#__PURE__*/(0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee39() {
  14663. var _ref31,
  14664. n,
  14665. _ref31$data,
  14666. s,
  14667. r,
  14668. i,
  14669. _r5,
  14670. _args39 = arguments;
  14671. return _regenerator.default.wrap(function _callee39$(_context39) {
  14672. while (1) {
  14673. switch (_context39.prev = _context39.next) {
  14674. case 0:
  14675. _ref31 = _args39.length > 0 && _args39[0] !== undefined ? _args39[0] : {}, n = _ref31.name, _ref31$data = _ref31.data, s = _ref31$data === void 0 ? {} : _ref31$data;
  14676. _context39.next = 3;
  14677. return t.prepare();
  14678. case 3:
  14679. _context39.next = 5;
  14680. return t.encryptData(s);
  14681. case 5:
  14682. r = _context39.sent;
  14683. _context39.next = 8;
  14684. return e({
  14685. name: n,
  14686. data: r
  14687. });
  14688. case 8:
  14689. i = _context39.sent;
  14690. if (!t.isClientKeyNotFound(i)) {
  14691. _context39.next = 21;
  14692. break;
  14693. }
  14694. _context39.next = 12;
  14695. return t.prepare({
  14696. forceUpdate: !0
  14697. });
  14698. case 12:
  14699. _context39.next = 14;
  14700. return t.encryptData(s);
  14701. case 14:
  14702. _r5 = _context39.sent;
  14703. _context39.next = 17;
  14704. return t.platformGetSignOption();
  14705. case 17:
  14706. s._uniCloudOptions = _context39.sent;
  14707. _context39.next = 20;
  14708. return e({
  14709. name: n,
  14710. data: _r5
  14711. });
  14712. case 20:
  14713. i = _context39.sent;
  14714. case 21:
  14715. _context39.next = 23;
  14716. return t.decryptResult(i.result);
  14717. case 23:
  14718. i.result = _context39.sent;
  14719. return _context39.abrupt("return", i);
  14720. case 25:
  14721. case "end":
  14722. return _context39.stop();
  14723. }
  14724. }
  14725. }, _callee39);
  14726. }));
  14727. }
  14728. }]);
  14729. return $t;
  14730. }();
  14731. /*! MIT License. Copyright 2015-2018 Richard Moore <me@ricmoo.com>. See LICENSE.txt. */
  14732. function Bt(e) {
  14733. return parseInt(e) === e;
  14734. }
  14735. function Wt(e) {
  14736. if (!Bt(e.length)) return !1;
  14737. for (var t = 0; t < e.length; t++) {
  14738. if (!Bt(e[t]) || e[t] < 0 || e[t] > 255) return !1;
  14739. }
  14740. return !0;
  14741. }
  14742. function Ht(e, t) {
  14743. if (e.buffer && "Uint8Array" === e.name) return t && (e = e.slice ? e.slice() : Array.prototype.slice.call(e)), e;
  14744. if (Array.isArray(e)) {
  14745. if (!Wt(e)) throw new Error("Array contains invalid value: " + e);
  14746. return new Uint8Array(e);
  14747. }
  14748. if (Bt(e.length) && Wt(e)) return new Uint8Array(e);
  14749. throw new Error("unsupported array-like object");
  14750. }
  14751. function zt(e) {
  14752. return new Uint8Array(e);
  14753. }
  14754. function Jt(e, t, n, s, r) {
  14755. null == s && null == r || (e = e.slice ? e.slice(s, r) : Array.prototype.slice.call(e, s, r)), t.set(e, n);
  14756. }
  14757. var Gt,
  14758. Vt = {
  14759. toBytes: function toBytes(e) {
  14760. var t = [],
  14761. n = 0;
  14762. for (e = encodeURI(e); n < e.length;) {
  14763. var s = e.charCodeAt(n++);
  14764. 37 === s ? (t.push(parseInt(e.substr(n, 2), 16)), n += 2) : t.push(s);
  14765. }
  14766. return Ht(t);
  14767. },
  14768. fromBytes: function fromBytes(e) {
  14769. for (var t = [], n = 0; n < e.length;) {
  14770. var s = e[n];
  14771. 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);
  14772. }
  14773. return t.join("");
  14774. }
  14775. },
  14776. Yt = (Gt = "0123456789abcdef", {
  14777. toBytes: function toBytes(e) {
  14778. for (var t = [], n = 0; n < e.length; n += 2) {
  14779. t.push(parseInt(e.substr(n, 2), 16));
  14780. }
  14781. return t;
  14782. },
  14783. fromBytes: function fromBytes(e) {
  14784. for (var t = [], n = 0; n < e.length; n++) {
  14785. var s = e[n];
  14786. t.push(Gt[(240 & s) >> 4] + Gt[15 & s]);
  14787. }
  14788. return t.join("");
  14789. }
  14790. }),
  14791. Qt = {
  14792. 16: 10,
  14793. 24: 12,
  14794. 32: 14
  14795. },
  14796. Xt = [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],
  14797. Zt = [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],
  14798. en = [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],
  14799. tn = [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],
  14800. nn = [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],
  14801. sn = [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],
  14802. rn = [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],
  14803. on = [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],
  14804. an = [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],
  14805. cn = [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],
  14806. un = [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],
  14807. hn = [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],
  14808. ln = [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],
  14809. dn = [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],
  14810. pn = [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];
  14811. function fn(e) {
  14812. for (var t = [], n = 0; n < e.length; n += 4) {
  14813. t.push(e[n] << 24 | e[n + 1] << 16 | e[n + 2] << 8 | e[n + 3]);
  14814. }
  14815. return t;
  14816. }
  14817. var gn = /*#__PURE__*/function () {
  14818. function gn(e) {
  14819. (0, _classCallCheck2.default)(this, gn);
  14820. if (!(this instanceof gn)) throw Error("AES must be instanitated with `new`");
  14821. Object.defineProperty(this, "key", {
  14822. value: Ht(e, !0)
  14823. }), this._prepare();
  14824. }
  14825. (0, _createClass2.default)(gn, [{
  14826. key: "_prepare",
  14827. value: function _prepare() {
  14828. var e = Qt[this.key.length];
  14829. if (null == e) throw new Error("invalid key size (must be 16, 24 or 32 bytes)");
  14830. this._Ke = [], this._Kd = [];
  14831. for (var t = 0; t <= e; t++) {
  14832. this._Ke.push([0, 0, 0, 0]), this._Kd.push([0, 0, 0, 0]);
  14833. }
  14834. var n,
  14835. s = 4 * (e + 1),
  14836. r = this.key.length / 4,
  14837. i = fn(this.key);
  14838. for (t = 0; t < r; t++) {
  14839. n = t >> 2, this._Ke[n][t % 4] = i[t], this._Kd[e - n][t % 4] = i[t];
  14840. }
  14841. for (var o, a = 0, c = r; c < s;) {
  14842. if (o = i[r - 1], i[0] ^= Zt[o >> 16 & 255] << 24 ^ Zt[o >> 8 & 255] << 16 ^ Zt[255 & o] << 8 ^ Zt[o >> 24 & 255] ^ Xt[a] << 24, a += 1, 8 != r) for (t = 1; t < r; t++) {
  14843. i[t] ^= i[t - 1];
  14844. } else {
  14845. for (t = 1; t < r / 2; t++) {
  14846. i[t] ^= i[t - 1];
  14847. }
  14848. o = i[r / 2 - 1], i[r / 2] ^= Zt[255 & o] ^ Zt[o >> 8 & 255] << 8 ^ Zt[o >> 16 & 255] << 16 ^ Zt[o >> 24 & 255] << 24;
  14849. for (t = r / 2 + 1; t < r; t++) {
  14850. i[t] ^= i[t - 1];
  14851. }
  14852. }
  14853. for (t = 0; t < r && c < s;) {
  14854. u = c >> 2, h = c % 4, this._Ke[u][h] = i[t], this._Kd[e - u][h] = i[t++], c++;
  14855. }
  14856. }
  14857. for (var u = 1; u < e; u++) {
  14858. for (var h = 0; h < 4; h++) {
  14859. o = this._Kd[u][h], this._Kd[u][h] = hn[o >> 24 & 255] ^ ln[o >> 16 & 255] ^ dn[o >> 8 & 255] ^ pn[255 & o];
  14860. }
  14861. }
  14862. }
  14863. }, {
  14864. key: "encrypt",
  14865. value: function encrypt(e) {
  14866. if (16 != e.length) throw new Error("invalid plaintext size (must be 16 bytes)");
  14867. for (var t = this._Ke.length - 1, n = [0, 0, 0, 0], s = fn(e), r = 0; r < 4; r++) {
  14868. s[r] ^= this._Ke[0][r];
  14869. }
  14870. for (var i = 1; i < t; i++) {
  14871. for (r = 0; r < 4; r++) {
  14872. n[r] = tn[s[r] >> 24 & 255] ^ nn[s[(r + 1) % 4] >> 16 & 255] ^ sn[s[(r + 2) % 4] >> 8 & 255] ^ rn[255 & s[(r + 3) % 4]] ^ this._Ke[i][r];
  14873. }
  14874. s = n.slice();
  14875. }
  14876. var o,
  14877. a = zt(16);
  14878. for (r = 0; r < 4; r++) {
  14879. o = this._Ke[t][r], a[4 * r] = 255 & (Zt[s[r] >> 24 & 255] ^ o >> 24), a[4 * r + 1] = 255 & (Zt[s[(r + 1) % 4] >> 16 & 255] ^ o >> 16), a[4 * r + 2] = 255 & (Zt[s[(r + 2) % 4] >> 8 & 255] ^ o >> 8), a[4 * r + 3] = 255 & (Zt[255 & s[(r + 3) % 4]] ^ o);
  14880. }
  14881. return a;
  14882. }
  14883. }, {
  14884. key: "decrypt",
  14885. value: function decrypt(e) {
  14886. if (16 != e.length) throw new Error("invalid ciphertext size (must be 16 bytes)");
  14887. for (var t = this._Kd.length - 1, n = [0, 0, 0, 0], s = fn(e), r = 0; r < 4; r++) {
  14888. s[r] ^= this._Kd[0][r];
  14889. }
  14890. for (var i = 1; i < t; i++) {
  14891. for (r = 0; r < 4; r++) {
  14892. n[r] = on[s[r] >> 24 & 255] ^ an[s[(r + 3) % 4] >> 16 & 255] ^ cn[s[(r + 2) % 4] >> 8 & 255] ^ un[255 & s[(r + 1) % 4]] ^ this._Kd[i][r];
  14893. }
  14894. s = n.slice();
  14895. }
  14896. var o,
  14897. a = zt(16);
  14898. for (r = 0; r < 4; r++) {
  14899. o = this._Kd[t][r], a[4 * r] = 255 & (en[s[r] >> 24 & 255] ^ o >> 24), a[4 * r + 1] = 255 & (en[s[(r + 3) % 4] >> 16 & 255] ^ o >> 16), a[4 * r + 2] = 255 & (en[s[(r + 2) % 4] >> 8 & 255] ^ o >> 8), a[4 * r + 3] = 255 & (en[255 & s[(r + 1) % 4]] ^ o);
  14900. }
  14901. return a;
  14902. }
  14903. }]);
  14904. return gn;
  14905. }();
  14906. var mn = /*#__PURE__*/function () {
  14907. function mn(e) {
  14908. (0, _classCallCheck2.default)(this, mn);
  14909. if (!(this instanceof mn)) throw Error("AES must be instanitated with `new`");
  14910. this.description = "Electronic Code Block", this.name = "ecb", this._aes = new gn(e);
  14911. }
  14912. (0, _createClass2.default)(mn, [{
  14913. key: "encrypt",
  14914. value: function encrypt(e) {
  14915. if ((e = Ht(e)).length % 16 != 0) throw new Error("invalid plaintext size (must be multiple of 16 bytes)");
  14916. for (var t = zt(e.length), n = zt(16), s = 0; s < e.length; s += 16) {
  14917. Jt(e, n, 0, s, s + 16), Jt(n = this._aes.encrypt(n), t, s);
  14918. }
  14919. return t;
  14920. }
  14921. }, {
  14922. key: "decrypt",
  14923. value: function decrypt(e) {
  14924. if ((e = Ht(e)).length % 16 != 0) throw new Error("invalid ciphertext size (must be multiple of 16 bytes)");
  14925. for (var t = zt(e.length), n = zt(16), s = 0; s < e.length; s += 16) {
  14926. Jt(e, n, 0, s, s + 16), Jt(n = this._aes.decrypt(n), t, s);
  14927. }
  14928. return t;
  14929. }
  14930. }]);
  14931. return mn;
  14932. }();
  14933. var yn = /*#__PURE__*/function () {
  14934. function yn(e, t) {
  14935. (0, _classCallCheck2.default)(this, yn);
  14936. if (!(this instanceof yn)) throw Error("AES must be instanitated with `new`");
  14937. if (this.description = "Cipher Block Chaining", this.name = "cbc", t) {
  14938. if (16 != t.length) throw new Error("invalid initialation vector size (must be 16 bytes)");
  14939. } else t = zt(16);
  14940. this._lastCipherblock = Ht(t, !0), this._aes = new gn(e);
  14941. }
  14942. (0, _createClass2.default)(yn, [{
  14943. key: "encrypt",
  14944. value: function encrypt(e) {
  14945. if ((e = Ht(e)).length % 16 != 0) throw new Error("invalid plaintext size (must be multiple of 16 bytes)");
  14946. for (var t = zt(e.length), n = zt(16), s = 0; s < e.length; s += 16) {
  14947. Jt(e, n, 0, s, s + 16);
  14948. for (var r = 0; r < 16; r++) {
  14949. n[r] ^= this._lastCipherblock[r];
  14950. }
  14951. this._lastCipherblock = this._aes.encrypt(n), Jt(this._lastCipherblock, t, s);
  14952. }
  14953. return t;
  14954. }
  14955. }, {
  14956. key: "decrypt",
  14957. value: function decrypt(e) {
  14958. if ((e = Ht(e)).length % 16 != 0) throw new Error("invalid ciphertext size (must be multiple of 16 bytes)");
  14959. for (var t = zt(e.length), n = zt(16), s = 0; s < e.length; s += 16) {
  14960. Jt(e, n, 0, s, s + 16), n = this._aes.decrypt(n);
  14961. for (var r = 0; r < 16; r++) {
  14962. t[s + r] = n[r] ^ this._lastCipherblock[r];
  14963. }
  14964. Jt(e, this._lastCipherblock, 0, s, s + 16);
  14965. }
  14966. return t;
  14967. }
  14968. }]);
  14969. return yn;
  14970. }();
  14971. var _n = /*#__PURE__*/function () {
  14972. function _n(e, t, n) {
  14973. (0, _classCallCheck2.default)(this, _n);
  14974. if (!(this instanceof _n)) throw Error("AES must be instanitated with `new`");
  14975. if (this.description = "Cipher Feedback", this.name = "cfb", t) {
  14976. if (16 != t.length) throw new Error("invalid initialation vector size (must be 16 size)");
  14977. } else t = zt(16);
  14978. n || (n = 1), this.segmentSize = n, this._shiftRegister = Ht(t, !0), this._aes = new gn(e);
  14979. }
  14980. (0, _createClass2.default)(_n, [{
  14981. key: "encrypt",
  14982. value: function encrypt(e) {
  14983. if (e.length % this.segmentSize != 0) throw new Error("invalid plaintext size (must be segmentSize bytes)");
  14984. for (var t, n = Ht(e, !0), s = 0; s < n.length; s += this.segmentSize) {
  14985. t = this._aes.encrypt(this._shiftRegister);
  14986. for (var r = 0; r < this.segmentSize; r++) {
  14987. n[s + r] ^= t[r];
  14988. }
  14989. Jt(this._shiftRegister, this._shiftRegister, 0, this.segmentSize), Jt(n, this._shiftRegister, 16 - this.segmentSize, s, s + this.segmentSize);
  14990. }
  14991. return n;
  14992. }
  14993. }, {
  14994. key: "decrypt",
  14995. value: function decrypt(e) {
  14996. if (e.length % this.segmentSize != 0) throw new Error("invalid ciphertext size (must be segmentSize bytes)");
  14997. for (var t, n = Ht(e, !0), s = 0; s < n.length; s += this.segmentSize) {
  14998. t = this._aes.encrypt(this._shiftRegister);
  14999. for (var r = 0; r < this.segmentSize; r++) {
  15000. n[s + r] ^= t[r];
  15001. }
  15002. Jt(this._shiftRegister, this._shiftRegister, 0, this.segmentSize), Jt(e, this._shiftRegister, 16 - this.segmentSize, s, s + this.segmentSize);
  15003. }
  15004. return n;
  15005. }
  15006. }]);
  15007. return _n;
  15008. }();
  15009. var wn = /*#__PURE__*/function () {
  15010. function wn(e, t) {
  15011. (0, _classCallCheck2.default)(this, wn);
  15012. if (!(this instanceof wn)) throw Error("AES must be instanitated with `new`");
  15013. if (this.description = "Output Feedback", this.name = "ofb", t) {
  15014. if (16 != t.length) throw new Error("invalid initialation vector size (must be 16 bytes)");
  15015. } else t = zt(16);
  15016. this._lastPrecipher = Ht(t, !0), this._lastPrecipherIndex = 16, this._aes = new gn(e);
  15017. }
  15018. (0, _createClass2.default)(wn, [{
  15019. key: "encrypt",
  15020. value: function encrypt(e) {
  15021. for (var t = Ht(e, !0), n = 0; n < t.length; n++) {
  15022. 16 === this._lastPrecipherIndex && (this._lastPrecipher = this._aes.encrypt(this._lastPrecipher), this._lastPrecipherIndex = 0), t[n] ^= this._lastPrecipher[this._lastPrecipherIndex++];
  15023. }
  15024. return t;
  15025. }
  15026. }, {
  15027. key: "decrypt",
  15028. value: function decrypt(e) {
  15029. return this.encrypt(e);
  15030. }
  15031. }]);
  15032. return wn;
  15033. }();
  15034. var vn = /*#__PURE__*/function () {
  15035. function vn(e) {
  15036. (0, _classCallCheck2.default)(this, vn);
  15037. if (!(this instanceof vn)) throw Error("Counter must be instanitated with `new`");
  15038. 0 === e || e || (e = 1), "number" == typeof e ? (this._counter = zt(16), this.setValue(e)) : this.setBytes(e);
  15039. }
  15040. (0, _createClass2.default)(vn, [{
  15041. key: "setValue",
  15042. value: function setValue(e) {
  15043. if ("number" != typeof e || parseInt(e) != e) throw new Error("invalid counter value (must be an integer)");
  15044. if (e > Number.MAX_SAFE_INTEGER) throw new Error("integer value out of safe range");
  15045. for (var t = 15; t >= 0; --t) {
  15046. this._counter[t] = e % 256, e = parseInt(e / 256);
  15047. }
  15048. }
  15049. }, {
  15050. key: "setBytes",
  15051. value: function setBytes(e) {
  15052. if (16 != (e = Ht(e, !0)).length) throw new Error("invalid counter bytes size (must be 16 bytes)");
  15053. this._counter = e;
  15054. }
  15055. }, {
  15056. key: "increment",
  15057. value: function increment() {
  15058. for (var e = 15; e >= 0; e--) {
  15059. if (255 !== this._counter[e]) {
  15060. this._counter[e]++;
  15061. break;
  15062. }
  15063. this._counter[e] = 0;
  15064. }
  15065. }
  15066. }]);
  15067. return vn;
  15068. }();
  15069. var In = /*#__PURE__*/function () {
  15070. function In(e, t) {
  15071. (0, _classCallCheck2.default)(this, In);
  15072. if (!(this instanceof In)) throw Error("AES must be instanitated with `new`");
  15073. this.description = "Counter", this.name = "ctr", t instanceof vn || (t = new vn(t)), this._counter = t, this._remainingCounter = null, this._remainingCounterIndex = 16, this._aes = new gn(e);
  15074. }
  15075. (0, _createClass2.default)(In, [{
  15076. key: "encrypt",
  15077. value: function encrypt(e) {
  15078. for (var t = Ht(e, !0), n = 0; n < t.length; n++) {
  15079. 16 === this._remainingCounterIndex && (this._remainingCounter = this._aes.encrypt(this._counter._counter), this._remainingCounterIndex = 0, this._counter.increment()), t[n] ^= this._remainingCounter[this._remainingCounterIndex++];
  15080. }
  15081. return t;
  15082. }
  15083. }, {
  15084. key: "decrypt",
  15085. value: function decrypt(e) {
  15086. return this.encrypt(e);
  15087. }
  15088. }]);
  15089. return In;
  15090. }();
  15091. var Sn = {
  15092. AES: gn,
  15093. Counter: vn,
  15094. ModeOfOperation: {
  15095. ecb: mn,
  15096. cbc: yn,
  15097. cfb: _n,
  15098. ofb: wn,
  15099. ctr: In
  15100. },
  15101. utils: {
  15102. hex: Yt,
  15103. utf8: Vt
  15104. },
  15105. padding: {
  15106. pkcs7: {
  15107. pad: function pad(e) {
  15108. var t = 16 - (e = Ht(e, !0)).length % 16,
  15109. n = zt(e.length + t);
  15110. Jt(e, n);
  15111. for (var s = e.length; s < n.length; s++) {
  15112. n[s] = t;
  15113. }
  15114. return n;
  15115. },
  15116. strip: function strip(e) {
  15117. if ((e = Ht(e, !0)).length < 16) throw new Error("PKCS#7 invalid length");
  15118. var t = e[e.length - 1];
  15119. if (t > 16) throw new Error("PKCS#7 padding byte out of range");
  15120. for (var n = e.length - t, s = 0; s < t; s++) {
  15121. if (e[n + s] !== t) throw new Error("PKCS#7 invalid padding byte");
  15122. }
  15123. var r = zt(n);
  15124. return Jt(e, r, 0, 0, n), r;
  15125. }
  15126. }
  15127. },
  15128. _arrayTest: {
  15129. coerceArray: Ht,
  15130. createArray: zt,
  15131. copyArray: Jt
  15132. }
  15133. };
  15134. function bn(e, t, n) {
  15135. var s = new Uint8Array(uni.base64ToArrayBuffer(t)),
  15136. r = Sn.utils.utf8.toBytes(n),
  15137. i = Sn.utils.utf8.toBytes(e),
  15138. o = new Sn.ModeOfOperation.cbc(s, r),
  15139. a = Sn.padding.pkcs7.pad(i),
  15140. c = o.encrypt(a);
  15141. return uni.arrayBufferToBase64(c);
  15142. }
  15143. var kn = {
  15144. code: 2e4,
  15145. message: "System error"
  15146. },
  15147. An = {
  15148. code: 20101,
  15149. message: "Invalid client"
  15150. },
  15151. Pn = {
  15152. code: 20102,
  15153. message: "Get encrypt key failed"
  15154. },
  15155. Tn = {
  15156. 10001: "Secure network is not supported on current playground or unimpsdk",
  15157. 10003: "Config missing in current app. If the problem pesist, please contact DCloud.",
  15158. 10009: "Encrypt payload failed",
  15159. 10010: "Decrypt response failed"
  15160. };
  15161. function Cn(e) {
  15162. var _ref32 = e || {},
  15163. t = _ref32.errSubject,
  15164. n = _ref32.subject,
  15165. s = _ref32.errCode,
  15166. r = _ref32.errMsg,
  15167. i = _ref32.code,
  15168. o = _ref32.message,
  15169. a = _ref32.cause;
  15170. return new te({
  15171. subject: t || n || "uni-secure-network",
  15172. code: s || i || kn.code,
  15173. message: r || o,
  15174. cause: a
  15175. });
  15176. }
  15177. var xn,
  15178. On,
  15179. En = null;
  15180. var Ln = /*#__PURE__*/function (_$t) {
  15181. (0, _inherits2.default)(Ln, _$t);
  15182. var _super9 = _createSuper(Ln);
  15183. function Ln(e) {
  15184. var _this15;
  15185. (0, _classCallCheck2.default)(this, Ln);
  15186. _this15 = _super9.call(this, e), _this15.clientType = "mp-weixin", _this15.userEncryptKey = null;
  15187. return _this15;
  15188. }
  15189. (0, _createClass2.default)(Ln, [{
  15190. key: "isLogin",
  15191. value: function isLogin() {
  15192. return !!this.scopedGlobalCache.mpWeixinCode || !!this.scopedGlobalCache.mpWeixinOpenid;
  15193. }
  15194. }, {
  15195. key: "prepare",
  15196. value: function () {
  15197. var _prepare2 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee40() {
  15198. return _regenerator.default.wrap(function _callee40$(_context40) {
  15199. while (1) {
  15200. switch (_context40.prev = _context40.next) {
  15201. case 0:
  15202. if (this.isLogin()) {
  15203. _context40.next = 7;
  15204. break;
  15205. }
  15206. if (this.scopedGlobalCache.initPromise) {
  15207. _context40.next = 3;
  15208. break;
  15209. }
  15210. throw new Error("`uniCloud.initSecureNetworkByWeixin` has not yet been called");
  15211. case 3:
  15212. _context40.next = 5;
  15213. return this.scopedGlobalCache.initPromise;
  15214. case 5:
  15215. if (this.isLogin()) {
  15216. _context40.next = 7;
  15217. break;
  15218. }
  15219. throw new Error("uniCloud.initSecureNetworkByWeixin` has not yet been called or successfully excuted");
  15220. case 7:
  15221. case "end":
  15222. return _context40.stop();
  15223. }
  15224. }
  15225. }, _callee40, this);
  15226. }));
  15227. function prepare() {
  15228. return _prepare2.apply(this, arguments);
  15229. }
  15230. return prepare;
  15231. }()
  15232. }, {
  15233. key: "getUserEncryptKey",
  15234. value: function () {
  15235. var _getUserEncryptKey = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee41() {
  15236. var _this16 = this;
  15237. var e;
  15238. return _regenerator.default.wrap(function _callee41$(_context41) {
  15239. while (1) {
  15240. switch (_context41.prev = _context41.next) {
  15241. case 0:
  15242. if (!this.userEncryptKey) {
  15243. _context41.next = 2;
  15244. break;
  15245. }
  15246. return _context41.abrupt("return", this.userEncryptKey);
  15247. case 2:
  15248. if (!(En && En.expireTime)) {
  15249. _context41.next = 6;
  15250. break;
  15251. }
  15252. e = Date.now();
  15253. if (!(En.expireTime - e > 0)) {
  15254. _context41.next = 6;
  15255. break;
  15256. }
  15257. return _context41.abrupt("return", (this.userEncryptKey = En, this.userEncryptKey));
  15258. case 6:
  15259. return _context41.abrupt("return", new Promise(function (e, t) {
  15260. uni.getUserCryptoManager().getLatestUserKey({
  15261. success: function success(t) {
  15262. En = t, _this16.userEncryptKey = t, e(_this16.userEncryptKey);
  15263. },
  15264. fail: function fail(e) {
  15265. t(Cn(_objectSpread(_objectSpread({}, Pn), {}, {
  15266. cause: e
  15267. })));
  15268. }
  15269. });
  15270. }));
  15271. case 7:
  15272. case "end":
  15273. return _context41.stop();
  15274. }
  15275. }
  15276. }, _callee41, this);
  15277. }));
  15278. function getUserEncryptKey() {
  15279. return _getUserEncryptKey.apply(this, arguments);
  15280. }
  15281. return getUserEncryptKey;
  15282. }()
  15283. }, {
  15284. key: "getWxAppId",
  15285. value: function getWxAppId() {
  15286. return wx.getAccountInfoSync().miniProgram.appId;
  15287. }
  15288. }, {
  15289. key: "platformGetSignOption",
  15290. value: function () {
  15291. var _platformGetSignOption = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee42() {
  15292. var _yield$this$getUserEn, e, t, n;
  15293. return _regenerator.default.wrap(function _callee42$(_context42) {
  15294. while (1) {
  15295. switch (_context42.prev = _context42.next) {
  15296. case 0:
  15297. _context42.next = 2;
  15298. return this.getUserEncryptKey();
  15299. case 2:
  15300. _yield$this$getUserEn = _context42.sent;
  15301. e = _yield$this$getUserEn.encryptKey;
  15302. t = _yield$this$getUserEn.iv;
  15303. n = _yield$this$getUserEn.version;
  15304. return _context42.abrupt("return", {
  15305. verifyClientSign: bn(JSON.stringify({
  15306. data: JSON.stringify({}),
  15307. appId: this.appId,
  15308. deviceId: this.deviceId,
  15309. wxAppId: this.getWxAppId(),
  15310. simulator: "devtools" === ae().platform,
  15311. timestamp: Date.now()
  15312. }), e, t),
  15313. encryptKeyId: n,
  15314. mpWeixinCode: this.scopedGlobalCache.mpWeixinCode,
  15315. mpWeixinOpenid: this.scopedGlobalCache.mpWeixinOpenid
  15316. });
  15317. case 7:
  15318. case "end":
  15319. return _context42.stop();
  15320. }
  15321. }
  15322. }, _callee42, this);
  15323. }));
  15324. function platformGetSignOption() {
  15325. return _platformGetSignOption.apply(this, arguments);
  15326. }
  15327. return platformGetSignOption;
  15328. }()
  15329. }, {
  15330. key: "platformEncryptData",
  15331. value: function () {
  15332. var _platformEncryptData = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee43(e) {
  15333. var _yield$this$getUserEn2, t, n, s, r;
  15334. return _regenerator.default.wrap(function _callee43$(_context43) {
  15335. while (1) {
  15336. switch (_context43.prev = _context43.next) {
  15337. case 0:
  15338. _context43.next = 2;
  15339. return this.getUserEncryptKey();
  15340. case 2:
  15341. _yield$this$getUserEn2 = _context43.sent;
  15342. t = _yield$this$getUserEn2.encryptKey;
  15343. n = _yield$this$getUserEn2.iv;
  15344. s = _yield$this$getUserEn2.version;
  15345. r = {
  15346. secretType: this.secretType,
  15347. encryptKeyId: s,
  15348. mpWeixinCode: this.scopedGlobalCache.mpWeixinCode,
  15349. mpWeixinOpenid: this.scopedGlobalCache.mpWeixinOpenid
  15350. };
  15351. return _context43.abrupt("return", this.secretType === Kt ? {
  15352. content: e,
  15353. _uniCloudOptions: r
  15354. } : {
  15355. content: bn(JSON.stringify({
  15356. data: JSON.stringify(e),
  15357. appId: this.appId,
  15358. deviceId: this.deviceId,
  15359. wxAppId: this.getWxAppId(),
  15360. simulator: "devtools" === ae().platform,
  15361. timestamp: Date.now()
  15362. }), t, n),
  15363. _uniCloudOptions: r
  15364. });
  15365. case 8:
  15366. case "end":
  15367. return _context43.stop();
  15368. }
  15369. }
  15370. }, _callee43, this);
  15371. }));
  15372. function platformEncryptData(_x35) {
  15373. return _platformEncryptData.apply(this, arguments);
  15374. }
  15375. return platformEncryptData;
  15376. }()
  15377. }, {
  15378. key: "platformDecryptResult",
  15379. value: function () {
  15380. var _platformDecryptResult = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee44(e) {
  15381. var t, _yield$this$getUserEn3, n, s;
  15382. return _regenerator.default.wrap(function _callee44$(_context44) {
  15383. while (1) {
  15384. switch (_context44.prev = _context44.next) {
  15385. case 0:
  15386. t = e.content;
  15387. _context44.next = 3;
  15388. return this.getUserEncryptKey();
  15389. case 3:
  15390. _yield$this$getUserEn3 = _context44.sent;
  15391. n = _yield$this$getUserEn3.encryptKey;
  15392. s = _yield$this$getUserEn3.iv;
  15393. return _context44.abrupt("return", JSON.parse(function (e, t, n) {
  15394. var s = new Uint8Array(uni.base64ToArrayBuffer(e)),
  15395. r = new Uint8Array(uni.base64ToArrayBuffer(t)),
  15396. i = Sn.utils.utf8.toBytes(n),
  15397. o = new Sn.ModeOfOperation.cbc(r, i),
  15398. a = Sn.padding.pkcs7.strip(o.decrypt(s));
  15399. return Sn.utils.utf8.fromBytes(a);
  15400. }(t, n, s)));
  15401. case 7:
  15402. case "end":
  15403. return _context44.stop();
  15404. }
  15405. }
  15406. }, _callee44, this);
  15407. }));
  15408. function platformDecryptResult(_x36) {
  15409. return _platformDecryptResult.apply(this, arguments);
  15410. }
  15411. return platformDecryptResult;
  15412. }()
  15413. }, {
  15414. key: "isClientKeyNotFound",
  15415. value: function isClientKeyNotFound() {
  15416. return !1;
  15417. }
  15418. }]);
  15419. return Ln;
  15420. }($t);
  15421. function Rn(e) {
  15422. var t = ["hasClientKey", "encryptGetClientKeyPayload", "setClientKey", "encrypt", "decrypt"],
  15423. n = {};
  15424. var _loop = function _loop(_s11) {
  15425. var r = t[_s11];
  15426. n[r] = function () {
  15427. for (var _len = arguments.length, t = new Array(_len), _key = 0; _key < _len; _key++) {
  15428. t[_key] = arguments[_key];
  15429. }
  15430. return new Promise(function (n, s) {
  15431. "function" == typeof e[r] ? e[r].apply(e, t.concat([function () {
  15432. var _ref33 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
  15433. e = _ref33.type,
  15434. t = _ref33.data,
  15435. r = _ref33.errCode,
  15436. i = _ref33.errMsg,
  15437. o = _ref33.errSubject,
  15438. a = _ref33.message;
  15439. "success" === e ? n(t) : s(Cn({
  15440. errCode: r,
  15441. errMsg: Tn[r] || i || a,
  15442. errSubject: o
  15443. }));
  15444. }])) : s(Cn({
  15445. message: "请检查manifest.json内是否开启安全网络模块,另外注意标准基座不支持安全网络模块"
  15446. }));
  15447. });
  15448. };
  15449. };
  15450. for (var _s11 = 0; _s11 < t.length; _s11++) {
  15451. _loop(_s11);
  15452. }
  15453. return n;
  15454. }
  15455. var Un = /*#__PURE__*/function (_$t2) {
  15456. (0, _inherits2.default)(Un, _$t2);
  15457. var _super10 = _createSuper(Un);
  15458. function Un(e) {
  15459. var _this17;
  15460. (0, _classCallCheck2.default)(this, Un);
  15461. _this17 = _super10.call(this, e), _this17.clientType = "app", _this17.appUtils = _objectSpread({}, Rn(uni.requireNativePlugin("plus"))), _this17.systemInfo = xn || (xn = ae());
  15462. return _this17;
  15463. }
  15464. (0, _createClass2.default)(Un, [{
  15465. key: "hasClientKey",
  15466. value: function () {
  15467. var _hasClientKey = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee45() {
  15468. return _regenerator.default.wrap(function _callee45$(_context45) {
  15469. while (1) {
  15470. switch (_context45.prev = _context45.next) {
  15471. case 0:
  15472. _context45.next = 2;
  15473. return this.appUtils.hasClientKey({
  15474. provider: this.provider,
  15475. spaceId: this.spaceId
  15476. });
  15477. case 2:
  15478. this._hasClientKey = _context45.sent;
  15479. return _context45.abrupt("return", this._hasClientKey);
  15480. case 4:
  15481. case "end":
  15482. return _context45.stop();
  15483. }
  15484. }
  15485. }, _callee45, this);
  15486. }));
  15487. function hasClientKey() {
  15488. return _hasClientKey.apply(this, arguments);
  15489. }
  15490. return hasClientKey;
  15491. }()
  15492. }, {
  15493. key: "getAppClientKey",
  15494. value: function () {
  15495. var _getAppClientKey = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee46() {
  15496. var _yield$this$appUtils$, e, t, n, s, r;
  15497. return _regenerator.default.wrap(function _callee46$(_context46) {
  15498. while (1) {
  15499. switch (_context46.prev = _context46.next) {
  15500. case 0:
  15501. _context46.next = 2;
  15502. return this.appUtils.encryptGetClientKeyPayload({
  15503. data: JSON.stringify({})
  15504. });
  15505. case 2:
  15506. _yield$this$appUtils$ = _context46.sent;
  15507. e = _yield$this$appUtils$.data;
  15508. t = _yield$this$appUtils$.key;
  15509. _context46.next = 7;
  15510. return this.uniCloudIns.callFunction({
  15511. name: "DCloud-clientDB",
  15512. data: {
  15513. redirectTo: "encryption",
  15514. action: "getAppClientKey",
  15515. data: e,
  15516. key: t
  15517. }
  15518. });
  15519. case 7:
  15520. _context46.t0 = _context46.sent.result;
  15521. if (_context46.t0) {
  15522. _context46.next = 10;
  15523. break;
  15524. }
  15525. _context46.t0 = {};
  15526. case 10:
  15527. n = _context46.t0;
  15528. if (!(0 !== n.errCode)) {
  15529. _context46.next = 13;
  15530. break;
  15531. }
  15532. throw function (e) {
  15533. return new te({
  15534. subject: e.errSubject || "uni-secure-network",
  15535. code: e.errCode || e.code || kn.code,
  15536. message: e.errMsg || e.message
  15537. });
  15538. }(n);
  15539. case 13:
  15540. s = n.clientKey, r = n.key;
  15541. _context46.next = 16;
  15542. return this.appUtils.setClientKey({
  15543. provider: this.provider,
  15544. spaceId: this.spaceId,
  15545. clientKey: s,
  15546. key: r
  15547. });
  15548. case 16:
  15549. case "end":
  15550. return _context46.stop();
  15551. }
  15552. }
  15553. }, _callee46, this);
  15554. }));
  15555. function getAppClientKey() {
  15556. return _getAppClientKey.apply(this, arguments);
  15557. }
  15558. return getAppClientKey;
  15559. }()
  15560. }, {
  15561. key: "ensureClientKey",
  15562. value: function () {
  15563. var _ensureClientKey = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee47() {
  15564. var _this18 = this;
  15565. var _ref34,
  15566. _ref34$forceUpdate,
  15567. e,
  15568. _args47 = arguments;
  15569. return _regenerator.default.wrap(function _callee47$(_context47) {
  15570. while (1) {
  15571. switch (_context47.prev = _context47.next) {
  15572. case 0:
  15573. _ref34 = _args47.length > 0 && _args47[0] !== undefined ? _args47[0] : {}, _ref34$forceUpdate = _ref34.forceUpdate, e = _ref34$forceUpdate === void 0 ? !1 : _ref34$forceUpdate;
  15574. _context47.t1 = !0;
  15575. _context47.next = 4;
  15576. return this.hasClientKey();
  15577. case 4:
  15578. _context47.t2 = _context47.sent;
  15579. _context47.t0 = _context47.t1 !== _context47.t2;
  15580. if (_context47.t0) {
  15581. _context47.next = 8;
  15582. break;
  15583. }
  15584. _context47.t0 = e;
  15585. case 8:
  15586. if (!_context47.t0) {
  15587. _context47.next = 10;
  15588. break;
  15589. }
  15590. return _context47.abrupt("return", (e && this.scopedGlobalCache.initPromise && this.scopedGlobalCache.initStatus === l || !e && this.scopedGlobalCache.initPromise && this.scopedGlobalCache.initStatus !== p || (this.scopedGlobalCache.initPromise = this.getAppClientKey(), this.scopedGlobalCache.initPromise.then(function (e) {
  15591. _this18.scopedGlobalCache.initStatus = d;
  15592. }).catch(function (e) {
  15593. throw _this18.scopedGlobalCache.initStatus = p, e;
  15594. }), this.scopedGlobalCache.initStatus = l), this.scopedGlobalCache.initPromise));
  15595. case 10:
  15596. case "end":
  15597. return _context47.stop();
  15598. }
  15599. }
  15600. }, _callee47, this);
  15601. }));
  15602. function ensureClientKey() {
  15603. return _ensureClientKey.apply(this, arguments);
  15604. }
  15605. return ensureClientKey;
  15606. }()
  15607. }, {
  15608. key: "prepare",
  15609. value: function () {
  15610. var _prepare3 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee48() {
  15611. var _ref35,
  15612. _ref35$forceUpdate,
  15613. e,
  15614. _args48 = arguments;
  15615. return _regenerator.default.wrap(function _callee48$(_context48) {
  15616. while (1) {
  15617. switch (_context48.prev = _context48.next) {
  15618. case 0:
  15619. _ref35 = _args48.length > 0 && _args48[0] !== undefined ? _args48[0] : {}, _ref35$forceUpdate = _ref35.forceUpdate, e = _ref35$forceUpdate === void 0 ? !1 : _ref35$forceUpdate;
  15620. _context48.next = 3;
  15621. return this.ensureClientKey({
  15622. forceUpdate: e
  15623. });
  15624. case 3:
  15625. case "end":
  15626. return _context48.stop();
  15627. }
  15628. }
  15629. }, _callee48, this);
  15630. }));
  15631. function prepare() {
  15632. return _prepare3.apply(this, arguments);
  15633. }
  15634. return prepare;
  15635. }()
  15636. }, {
  15637. key: "platformGetSignOption",
  15638. value: function () {
  15639. var _platformGetSignOption2 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee49() {
  15640. var _yield$this$appUtils$2, e, t;
  15641. return _regenerator.default.wrap(function _callee49$(_context49) {
  15642. while (1) {
  15643. switch (_context49.prev = _context49.next) {
  15644. case 0:
  15645. _context49.next = 2;
  15646. return this.appUtils.encrypt({
  15647. provider: this.provider,
  15648. spaceId: this.spaceId,
  15649. data: JSON.stringify({})
  15650. });
  15651. case 2:
  15652. _yield$this$appUtils$2 = _context49.sent;
  15653. e = _yield$this$appUtils$2.data;
  15654. t = _yield$this$appUtils$2.key;
  15655. return _context49.abrupt("return", {
  15656. verifyClientSign: e,
  15657. encryptKeyId: t
  15658. });
  15659. case 6:
  15660. case "end":
  15661. return _context49.stop();
  15662. }
  15663. }
  15664. }, _callee49, this);
  15665. }));
  15666. function platformGetSignOption() {
  15667. return _platformGetSignOption2.apply(this, arguments);
  15668. }
  15669. return platformGetSignOption;
  15670. }()
  15671. }, {
  15672. key: "platformEncryptData",
  15673. value: function () {
  15674. var _platformEncryptData2 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee50(e) {
  15675. var _yield$this$appUtils$3, t, n, s;
  15676. return _regenerator.default.wrap(function _callee50$(_context50) {
  15677. while (1) {
  15678. switch (_context50.prev = _context50.next) {
  15679. case 0:
  15680. _context50.next = 2;
  15681. return this.appUtils.encrypt({
  15682. provider: this.provider,
  15683. spaceId: this.spaceId,
  15684. data: JSON.stringify(e)
  15685. });
  15686. case 2:
  15687. _yield$this$appUtils$3 = _context50.sent;
  15688. t = _yield$this$appUtils$3.data;
  15689. n = _yield$this$appUtils$3.key;
  15690. s = {
  15691. secretType: this.secretType,
  15692. encryptKeyId: n
  15693. };
  15694. return _context50.abrupt("return", this.secretType === Kt ? {
  15695. content: e,
  15696. _uniCloudOptions: s
  15697. } : {
  15698. content: t,
  15699. _uniCloudOptions: s
  15700. });
  15701. case 7:
  15702. case "end":
  15703. return _context50.stop();
  15704. }
  15705. }
  15706. }, _callee50, this);
  15707. }));
  15708. function platformEncryptData(_x37) {
  15709. return _platformEncryptData2.apply(this, arguments);
  15710. }
  15711. return platformEncryptData;
  15712. }()
  15713. }, {
  15714. key: "platformDecryptResult",
  15715. value: function () {
  15716. var _platformDecryptResult2 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee51(e) {
  15717. var t, _e$_uniCloudOptions, n, s, r;
  15718. return _regenerator.default.wrap(function _callee51$(_context51) {
  15719. while (1) {
  15720. switch (_context51.prev = _context51.next) {
  15721. case 0:
  15722. t = e.content;
  15723. _e$_uniCloudOptions = e._uniCloudOptions;
  15724. n = _e$_uniCloudOptions === void 0 ? {} : _e$_uniCloudOptions;
  15725. s = n.encryptKeyId;
  15726. _context51.next = 6;
  15727. return this.appUtils.decrypt({
  15728. provider: this.provider,
  15729. spaceId: this.spaceId,
  15730. data: t,
  15731. key: s
  15732. });
  15733. case 6:
  15734. r = _context51.sent;
  15735. return _context51.abrupt("return", JSON.parse(r.data));
  15736. case 8:
  15737. case "end":
  15738. return _context51.stop();
  15739. }
  15740. }
  15741. }, _callee51, this);
  15742. }));
  15743. function platformDecryptResult(_x38) {
  15744. return _platformDecryptResult2.apply(this, arguments);
  15745. }
  15746. return platformDecryptResult;
  15747. }()
  15748. }, {
  15749. key: "isClientKeyNotFound",
  15750. value: function isClientKeyNotFound() {
  15751. var e = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
  15752. var t = e.result || {};
  15753. return 70009 === t.errCode && "uni-secure-network" === t.errSubject;
  15754. }
  15755. }]);
  15756. return Un;
  15757. }($t);
  15758. function Nn() {
  15759. var _ref36 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
  15760. e = _ref36.secretType;
  15761. return e === Ft || e === Kt || e === jt;
  15762. }
  15763. function Dn() {
  15764. var _ref37 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
  15765. e = _ref37.name,
  15766. _ref37$data = _ref37.data,
  15767. t = _ref37$data === void 0 ? {} : _ref37$data;
  15768. return "app" === P && "DCloud-clientDB" === e && "encryption" === t.redirectTo && "getAppClientKey" === t.action;
  15769. }
  15770. function Mn() {
  15771. var _ref38 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
  15772. e = _ref38.provider,
  15773. t = _ref38.spaceId,
  15774. n = _ref38.functionName;
  15775. var _ae = ae(),
  15776. s = _ae.appId,
  15777. r = _ae.uniPlatform,
  15778. i = _ae.osName;
  15779. var o = r;
  15780. "app" === r && (o = i);
  15781. var a = function () {
  15782. var _ref39 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
  15783. e = _ref39.provider,
  15784. t = _ref39.spaceId;
  15785. var n = A;
  15786. if (!n) return {};
  15787. e = function (e) {
  15788. return "tencent" === e ? "tcb" : e;
  15789. }(e);
  15790. var s = n.find(function (n) {
  15791. return n.provider === e && n.spaceId === t;
  15792. });
  15793. return s && s.config;
  15794. }({
  15795. provider: e,
  15796. spaceId: t
  15797. });
  15798. if (!a || !a.accessControl || !a.accessControl.enable) return !1;
  15799. var c = a.accessControl.function || {},
  15800. u = Object.keys(c);
  15801. if (0 === u.length) return !0;
  15802. var h = function (e, t) {
  15803. var n, s, r;
  15804. for (var _i2 = 0; _i2 < e.length; _i2++) {
  15805. var _o2 = e[_i2];
  15806. _o2 !== t ? "*" !== _o2 ? _o2.split(",").map(function (e) {
  15807. return e.trim();
  15808. }).indexOf(t) > -1 && (s = _o2) : r = _o2 : n = _o2;
  15809. }
  15810. return n || s || r;
  15811. }(u, n);
  15812. if (!h) return !1;
  15813. if ((c[h] || []).find(function () {
  15814. var e = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
  15815. return e.appId === s && (e.platform || "").toLowerCase() === o.toLowerCase();
  15816. })) return !0;
  15817. 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")), Cn(An);
  15818. }
  15819. function qn(_ref40) {
  15820. var e = _ref40.functionName,
  15821. t = _ref40.result,
  15822. n = _ref40.logPvd;
  15823. if (S && this.__dev__.debugLog && t && t.requestId) {
  15824. var _s12 = JSON.stringify({
  15825. spaceId: this.config.spaceId,
  15826. functionName: e,
  15827. requestId: t.requestId
  15828. });
  15829. console.log("[".concat(n, "-request]").concat(_s12, "[/").concat(n, "-request]"));
  15830. }
  15831. }
  15832. function Fn(e) {
  15833. var t = e.callFunction,
  15834. n = function n(_n9) {
  15835. var _this19 = this;
  15836. var s = _n9.name;
  15837. _n9.data = Lt.call(e, {
  15838. data: _n9.data
  15839. });
  15840. var r = {
  15841. aliyun: "aliyun",
  15842. tencent: "tcb",
  15843. tcb: "tcb",
  15844. alipay: "alipay"
  15845. }[this.config.provider],
  15846. i = Nn(_n9),
  15847. o = Dn(_n9),
  15848. a = i || o;
  15849. return t.call(this, _n9).then(function (e) {
  15850. return e.errCode = 0, !a && qn.call(_this19, {
  15851. functionName: s,
  15852. result: e,
  15853. logPvd: r
  15854. }), Promise.resolve(e);
  15855. }, function (e) {
  15856. return !a && qn.call(_this19, {
  15857. functionName: s,
  15858. result: e,
  15859. logPvd: r
  15860. }), e && e.message && (e.message = function () {
  15861. var _ref41 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
  15862. _ref41$message = _ref41.message,
  15863. e = _ref41$message === void 0 ? "" : _ref41$message,
  15864. _ref41$extraInfo = _ref41.extraInfo,
  15865. t = _ref41$extraInfo === void 0 ? {} : _ref41$extraInfo,
  15866. _ref41$formatter = _ref41.formatter,
  15867. n = _ref41$formatter === void 0 ? [] : _ref41$formatter;
  15868. for (var _s13 = 0; _s13 < n.length; _s13++) {
  15869. var _n$_s = n[_s13],
  15870. _r6 = _n$_s.rule,
  15871. _i3 = _n$_s.content,
  15872. _o3 = _n$_s.mode,
  15873. _a = e.match(_r6);
  15874. if (!_a) continue;
  15875. var _c = _i3;
  15876. for (var _e19 = 1; _e19 < _a.length; _e19++) {
  15877. _c = Mt(_c, "{$".concat(_e19, "}"), _a[_e19]);
  15878. }
  15879. for (var _e20 in t) {
  15880. _c = Mt(_c, "{".concat(_e20, "}"), t[_e20]);
  15881. }
  15882. return "replace" === _o3 ? _c : e + _c;
  15883. }
  15884. return e;
  15885. }({
  15886. message: "[".concat(_n9.name, "]: ").concat(e.message),
  15887. formatter: Ut,
  15888. extraInfo: {
  15889. functionName: s
  15890. }
  15891. })), Promise.reject(e);
  15892. });
  15893. };
  15894. e.callFunction = function (t) {
  15895. var _e$config = e.config,
  15896. s = _e$config.provider,
  15897. r = _e$config.spaceId,
  15898. i = t.name;
  15899. var o, a;
  15900. if (t.data = t.data || {}, S && e.__dev__.debugInfo && !e.__dev__.debugInfo.forceRemote && C ? (e._callCloudFunction || (e._callCloudFunction = n, e._callLocalFunction = Rt), o = Rt) : o = n, o = o.bind(e), Dn(t)) a = n.call(e, t);else if (function (_ref42) {
  15901. var e = _ref42.name,
  15902. _ref42$data = _ref42.data,
  15903. t = _ref42$data === void 0 ? {} : _ref42$data;
  15904. return "mp-weixin" === P && "uni-id-co" === e && "secureNetworkHandshakeByWeixin" === t.method;
  15905. }(t)) a = o.call(e, t);else if (Nn(t)) {
  15906. a = new On({
  15907. secretType: t.secretType,
  15908. uniCloudIns: e
  15909. }).wrapEncryptDataCallFunction(n.bind(e))(t);
  15910. } else if (Mn({
  15911. provider: s,
  15912. spaceId: r,
  15913. functionName: i
  15914. })) {
  15915. a = new On({
  15916. secretType: t.secretType,
  15917. uniCloudIns: e
  15918. }).wrapVerifyClientCallFunction(n.bind(e))(t);
  15919. } else a = o(t);
  15920. return Object.defineProperty(a, "result", {
  15921. get: function get() {
  15922. return console.warn("当前返回结果为Promise类型,不可直接访问其result属性,详情请参考:https://uniapp.dcloud.net.cn/uniCloud/faq?id=promise"), {};
  15923. }
  15924. }), a.then(function (e) {
  15925. return "undefined" != typeof UTSJSONObject && (e.result = new UTSJSONObject(e.result)), e;
  15926. });
  15927. };
  15928. }
  15929. On = "mp-weixin" !== P && "app" !== P ? /*#__PURE__*/function () {
  15930. function _class2() {
  15931. (0, _classCallCheck2.default)(this, _class2);
  15932. throw Cn({
  15933. message: "Platform ".concat(P, " is not supported by secure network")
  15934. });
  15935. }
  15936. return (0, _createClass2.default)(_class2);
  15937. }() : k ? "mp-weixin" === P ? Ln : Un : /*#__PURE__*/function () {
  15938. function _class3() {
  15939. (0, _classCallCheck2.default)(this, _class3);
  15940. throw Cn({
  15941. message: "Platform ".concat(P, " is not enabled, please check whether secure network module is enabled in your manifest.json")
  15942. });
  15943. }
  15944. return (0, _createClass2.default)(_class3);
  15945. }();
  15946. var Kn = Symbol("CLIENT_DB_INTERNAL");
  15947. function jn(e, t) {
  15948. return e.then = "DoNotReturnProxyWithAFunctionNamedThen", e._internalType = Kn, e.inspect = null, e.__ob__ = void 0, new Proxy(e, {
  15949. get: function get(e, n, s) {
  15950. if ("_uniClient" === n) return null;
  15951. if ("symbol" == (0, _typeof2.default)(n)) return e[n];
  15952. if (n in e || "string" != typeof n) {
  15953. var _t11 = e[n];
  15954. return "function" == typeof _t11 ? _t11.bind(e) : _t11;
  15955. }
  15956. return t.get(e, n, s);
  15957. }
  15958. });
  15959. }
  15960. function $n(e) {
  15961. return {
  15962. on: function on(t, n) {
  15963. e[t] = e[t] || [], e[t].indexOf(n) > -1 || e[t].push(n);
  15964. },
  15965. off: function off(t, n) {
  15966. e[t] = e[t] || [];
  15967. var s = e[t].indexOf(n);
  15968. -1 !== s && e[t].splice(s, 1);
  15969. }
  15970. };
  15971. }
  15972. var Bn = ["db.Geo", "db.command", "command.aggregate"];
  15973. function Wn(e, t) {
  15974. return Bn.indexOf("".concat(e, ".").concat(t)) > -1;
  15975. }
  15976. function Hn(e) {
  15977. switch (f(e)) {
  15978. case "array":
  15979. return e.map(function (e) {
  15980. return Hn(e);
  15981. });
  15982. case "object":
  15983. return e._internalType === Kn || Object.keys(e).forEach(function (t) {
  15984. e[t] = Hn(e[t]);
  15985. }), e;
  15986. case "regexp":
  15987. return {
  15988. $regexp: {
  15989. source: e.source,
  15990. flags: e.flags
  15991. }
  15992. };
  15993. case "date":
  15994. return {
  15995. $date: e.toISOString()
  15996. };
  15997. default:
  15998. return e;
  15999. }
  16000. }
  16001. function zn(e) {
  16002. return e && e.content && e.content.$method;
  16003. }
  16004. var Jn = /*#__PURE__*/function () {
  16005. function Jn(e, t, n) {
  16006. (0, _classCallCheck2.default)(this, Jn);
  16007. this.content = e, this.prevStage = t || null, this.udb = null, this._database = n;
  16008. }
  16009. (0, _createClass2.default)(Jn, [{
  16010. key: "toJSON",
  16011. value: function toJSON() {
  16012. var e = this;
  16013. var t = [e.content];
  16014. for (; e.prevStage;) {
  16015. e = e.prevStage, t.push(e.content);
  16016. }
  16017. return {
  16018. $db: t.reverse().map(function (e) {
  16019. return {
  16020. $method: e.$method,
  16021. $param: Hn(e.$param)
  16022. };
  16023. })
  16024. };
  16025. }
  16026. }, {
  16027. key: "toString",
  16028. value: function toString() {
  16029. return JSON.stringify(this.toJSON());
  16030. }
  16031. }, {
  16032. key: "getAction",
  16033. value: function getAction() {
  16034. var e = this.toJSON().$db.find(function (e) {
  16035. return "action" === e.$method;
  16036. });
  16037. return e && e.$param && e.$param[0];
  16038. }
  16039. }, {
  16040. key: "getCommand",
  16041. value: function getCommand() {
  16042. return {
  16043. $db: this.toJSON().$db.filter(function (e) {
  16044. return "action" !== e.$method;
  16045. })
  16046. };
  16047. }
  16048. }, {
  16049. key: "isAggregate",
  16050. get: function get() {
  16051. var e = this;
  16052. for (; e;) {
  16053. var t = zn(e),
  16054. _n10 = zn(e.prevStage);
  16055. if ("aggregate" === t && "collection" === _n10 || "pipeline" === t) return !0;
  16056. e = e.prevStage;
  16057. }
  16058. return !1;
  16059. }
  16060. }, {
  16061. key: "isCommand",
  16062. get: function get() {
  16063. var e = this;
  16064. for (; e;) {
  16065. if ("command" === zn(e)) return !0;
  16066. e = e.prevStage;
  16067. }
  16068. return !1;
  16069. }
  16070. }, {
  16071. key: "isAggregateCommand",
  16072. get: function get() {
  16073. var e = this;
  16074. for (; e;) {
  16075. var t = zn(e),
  16076. _n11 = zn(e.prevStage);
  16077. if ("aggregate" === t && "command" === _n11) return !0;
  16078. e = e.prevStage;
  16079. }
  16080. return !1;
  16081. }
  16082. }, {
  16083. key: "getNextStageFn",
  16084. value: function getNextStageFn(e) {
  16085. var t = this;
  16086. return function () {
  16087. return Gn({
  16088. $method: e,
  16089. $param: Hn(Array.from(arguments))
  16090. }, t, t._database);
  16091. };
  16092. }
  16093. }, {
  16094. key: "count",
  16095. get: function get() {
  16096. return this.isAggregate ? this.getNextStageFn("count") : function () {
  16097. return this._send("count", Array.from(arguments));
  16098. };
  16099. }
  16100. }, {
  16101. key: "remove",
  16102. get: function get() {
  16103. return this.isCommand ? this.getNextStageFn("remove") : function () {
  16104. return this._send("remove", Array.from(arguments));
  16105. };
  16106. }
  16107. }, {
  16108. key: "get",
  16109. value: function get() {
  16110. return this._send("get", Array.from(arguments));
  16111. }
  16112. }, {
  16113. key: "add",
  16114. get: function get() {
  16115. return this.isCommand ? this.getNextStageFn("add") : function () {
  16116. return this._send("add", Array.from(arguments));
  16117. };
  16118. }
  16119. }, {
  16120. key: "update",
  16121. value: function update() {
  16122. return this._send("update", Array.from(arguments));
  16123. }
  16124. }, {
  16125. key: "end",
  16126. value: function end() {
  16127. return this._send("end", Array.from(arguments));
  16128. }
  16129. }, {
  16130. key: "set",
  16131. get: function get() {
  16132. return this.isCommand ? this.getNextStageFn("set") : function () {
  16133. throw new Error("JQL禁止使用set方法");
  16134. };
  16135. }
  16136. }, {
  16137. key: "_send",
  16138. value: function _send(e, t) {
  16139. var n = this.getAction(),
  16140. s = this.getCommand();
  16141. if (s.$db.push({
  16142. $method: e,
  16143. $param: Hn(t)
  16144. }), S) {
  16145. var _e21 = s.$db.find(function (e) {
  16146. return "collection" === e.$method;
  16147. }),
  16148. _t12 = _e21 && _e21.$param;
  16149. _t12 && 1 === _t12.length && "string" == typeof _e21.$param[0] && _e21.$param[0].indexOf(",") > -1 && console.warn("检测到使用JQL语法联表查询时,未使用getTemp先过滤主表数据,在主表数据量大的情况下可能会查询缓慢。\n- 如何优化请参考此文档:https://uniapp.dcloud.net.cn/uniCloud/jql?id=lookup-with-temp \n- 如果主表数据量很小请忽略此信息,项目发行时不会出现此提示。");
  16150. }
  16151. return this._database._callCloudFunction({
  16152. action: n,
  16153. command: s
  16154. });
  16155. }
  16156. }]);
  16157. return Jn;
  16158. }();
  16159. function Gn(e, t, n) {
  16160. return jn(new Jn(e, t, n), {
  16161. get: function get(e, t) {
  16162. var s = "db";
  16163. return e && e.content && (s = e.content.$method), Wn(s, t) ? Gn({
  16164. $method: t
  16165. }, e, n) : function () {
  16166. return Gn({
  16167. $method: t,
  16168. $param: Hn(Array.from(arguments))
  16169. }, e, n);
  16170. };
  16171. }
  16172. });
  16173. }
  16174. function Vn(_ref43) {
  16175. var e = _ref43.path,
  16176. t = _ref43.method;
  16177. return /*#__PURE__*/function () {
  16178. function _class4() {
  16179. (0, _classCallCheck2.default)(this, _class4);
  16180. this.param = Array.from(arguments);
  16181. }
  16182. (0, _createClass2.default)(_class4, [{
  16183. key: "toJSON",
  16184. value: function toJSON() {
  16185. return {
  16186. $newDb: [].concat((0, _toConsumableArray2.default)(e.map(function (e) {
  16187. return {
  16188. $method: e
  16189. };
  16190. })), [{
  16191. $method: t,
  16192. $param: this.param
  16193. }])
  16194. };
  16195. }
  16196. }, {
  16197. key: "toString",
  16198. value: function toString() {
  16199. return JSON.stringify(this.toJSON());
  16200. }
  16201. }]);
  16202. return _class4;
  16203. }();
  16204. }
  16205. function Yn(e) {
  16206. var t = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  16207. return jn(new e(t), {
  16208. get: function get(e, t) {
  16209. return Wn("db", t) ? Gn({
  16210. $method: t
  16211. }, null, e) : function () {
  16212. return Gn({
  16213. $method: t,
  16214. $param: Hn(Array.from(arguments))
  16215. }, null, e);
  16216. };
  16217. }
  16218. });
  16219. }
  16220. var Qn = /*#__PURE__*/function (_ref44) {
  16221. (0, _inherits2.default)(Qn, _ref44);
  16222. var _super11 = _createSuper(Qn);
  16223. function Qn() {
  16224. (0, _classCallCheck2.default)(this, Qn);
  16225. return _super11.apply(this, arguments);
  16226. }
  16227. (0, _createClass2.default)(Qn, [{
  16228. key: "_parseResult",
  16229. value: function _parseResult(e) {
  16230. return this._isJQL ? e.result : e;
  16231. }
  16232. }, {
  16233. key: "_callCloudFunction",
  16234. value: function _callCloudFunction(_ref45) {
  16235. var _this20 = this;
  16236. var e = _ref45.action,
  16237. t = _ref45.command,
  16238. n = _ref45.multiCommand,
  16239. s = _ref45.queryList;
  16240. function r(e, t) {
  16241. if (n && s) for (var _n12 = 0; _n12 < s.length; _n12++) {
  16242. var _r7 = s[_n12];
  16243. _r7.udb && "function" == typeof _r7.udb.setResult && (t ? _r7.udb.setResult(t) : _r7.udb.setResult(e.result.dataList[_n12]));
  16244. }
  16245. }
  16246. var i = this,
  16247. o = this._isJQL ? "databaseForJQL" : "database";
  16248. function a(e) {
  16249. return i._callback("error", [e]), M(q(o, "fail"), e).then(function () {
  16250. return M(q(o, "complete"), e);
  16251. }).then(function () {
  16252. return r(null, e), Y(j, {
  16253. type: W,
  16254. content: e
  16255. }), Promise.reject(e);
  16256. });
  16257. }
  16258. var c = M(q(o, "invoke")),
  16259. u = this._uniClient;
  16260. return c.then(function () {
  16261. return u.callFunction({
  16262. name: "DCloud-clientDB",
  16263. type: h,
  16264. data: {
  16265. action: e,
  16266. command: t,
  16267. multiCommand: n
  16268. }
  16269. });
  16270. }).then(function (e) {
  16271. var _e$result = e.result,
  16272. t = _e$result.code,
  16273. n = _e$result.message,
  16274. s = _e$result.token,
  16275. c = _e$result.tokenExpired,
  16276. _e$result$systemInfo = _e$result.systemInfo,
  16277. u = _e$result$systemInfo === void 0 ? [] : _e$result$systemInfo;
  16278. if (u) for (var _e22 = 0; _e22 < u.length; _e22++) {
  16279. var _u$_e = u[_e22],
  16280. _t13 = _u$_e.level,
  16281. _n13 = _u$_e.message,
  16282. _s14 = _u$_e.detail,
  16283. _r8 = console["app" === P && "warn" === _t13 ? "error" : _t13] || console.log;
  16284. var _i4 = "[System Info]" + _n13;
  16285. _s14 && (_i4 = "".concat(_i4, "\n\u8BE6\u7EC6\u4FE1\u606F\uFF1A").concat(_s14)), _r8(_i4);
  16286. }
  16287. if (t) {
  16288. return a(new te({
  16289. code: t,
  16290. message: n,
  16291. requestId: e.requestId
  16292. }));
  16293. }
  16294. e.result.errCode = e.result.errCode || e.result.code, e.result.errMsg = e.result.errMsg || e.result.message, s && c && (re({
  16295. token: s,
  16296. tokenExpired: c
  16297. }), _this20._callbackAuth("refreshToken", [{
  16298. token: s,
  16299. tokenExpired: c
  16300. }]), _this20._callback("refreshToken", [{
  16301. token: s,
  16302. tokenExpired: c
  16303. }]), Y(B, {
  16304. token: s,
  16305. tokenExpired: c
  16306. }));
  16307. var h = [{
  16308. prop: "affectedDocs",
  16309. tips: "affectedDocs不再推荐使用,请使用inserted/deleted/updated/data.length替代"
  16310. }, {
  16311. prop: "code",
  16312. tips: "code不再推荐使用,请使用errCode替代"
  16313. }, {
  16314. prop: "message",
  16315. tips: "message不再推荐使用,请使用errMsg替代"
  16316. }];
  16317. var _loop2 = function _loop2(_t14) {
  16318. var _h$_t = h[_t14],
  16319. n = _h$_t.prop,
  16320. s = _h$_t.tips;
  16321. if (n in e.result) {
  16322. var _t15 = e.result[n];
  16323. Object.defineProperty(e.result, n, {
  16324. get: function get() {
  16325. return console.warn(s), _t15;
  16326. }
  16327. });
  16328. }
  16329. };
  16330. for (var _t14 = 0; _t14 < h.length; _t14++) {
  16331. _loop2(_t14);
  16332. }
  16333. return function (e) {
  16334. return M(q(o, "success"), e).then(function () {
  16335. return M(q(o, "complete"), e);
  16336. }).then(function () {
  16337. r(e, null);
  16338. var t = i._parseResult(e);
  16339. return Y(j, {
  16340. type: W,
  16341. content: t
  16342. }), Promise.resolve(t);
  16343. });
  16344. }(e);
  16345. }, function (e) {
  16346. /fc_function_not_found|FUNCTION_NOT_FOUND/g.test(e.message) && console.warn("clientDB未初始化,请在web控制台保存一次schema以开启clientDB");
  16347. return a(new te({
  16348. code: e.code || "SYSTEM_ERROR",
  16349. message: e.message,
  16350. requestId: e.requestId
  16351. }));
  16352. });
  16353. }
  16354. }]);
  16355. return Qn;
  16356. }( /*#__PURE__*/function () {
  16357. function _class5() {
  16358. var _ref46 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
  16359. _ref46$uniClient = _ref46.uniClient,
  16360. e = _ref46$uniClient === void 0 ? {} : _ref46$uniClient,
  16361. _ref46$isJQL = _ref46.isJQL,
  16362. t = _ref46$isJQL === void 0 ? !1 : _ref46$isJQL;
  16363. (0, _classCallCheck2.default)(this, _class5);
  16364. this._uniClient = e, this._authCallBacks = {}, this._dbCallBacks = {}, e._isDefault && (this._dbCallBacks = L("_globalUniCloudDatabaseCallback")), t || (this.auth = $n(this._authCallBacks)), this._isJQL = t, Object.assign(this, $n(this._dbCallBacks)), this.env = jn({}, {
  16365. get: function get(e, t) {
  16366. return {
  16367. $env: t
  16368. };
  16369. }
  16370. }), this.Geo = jn({}, {
  16371. get: function get(e, t) {
  16372. return Vn({
  16373. path: ["Geo"],
  16374. method: t
  16375. });
  16376. }
  16377. }), this.serverDate = Vn({
  16378. path: [],
  16379. method: "serverDate"
  16380. }), this.RegExp = Vn({
  16381. path: [],
  16382. method: "RegExp"
  16383. });
  16384. }
  16385. (0, _createClass2.default)(_class5, [{
  16386. key: "getCloudEnv",
  16387. value: function getCloudEnv(e) {
  16388. if ("string" != typeof e || !e.trim()) throw new Error("getCloudEnv参数错误");
  16389. return {
  16390. $env: e.replace("$cloudEnv_", "")
  16391. };
  16392. }
  16393. }, {
  16394. key: "_callback",
  16395. value: function _callback(e, t) {
  16396. var n = this._dbCallBacks;
  16397. n[e] && n[e].forEach(function (e) {
  16398. e.apply(void 0, (0, _toConsumableArray2.default)(t));
  16399. });
  16400. }
  16401. }, {
  16402. key: "_callbackAuth",
  16403. value: function _callbackAuth(e, t) {
  16404. var n = this._authCallBacks;
  16405. n[e] && n[e].forEach(function (e) {
  16406. e.apply(void 0, (0, _toConsumableArray2.default)(t));
  16407. });
  16408. }
  16409. }, {
  16410. key: "multiSend",
  16411. value: function multiSend() {
  16412. var e = Array.from(arguments),
  16413. t = e.map(function (e) {
  16414. var t = e.getAction(),
  16415. n = e.getCommand();
  16416. if ("getTemp" !== n.$db[n.$db.length - 1].$method) throw new Error("multiSend只支持子命令内使用getTemp");
  16417. return {
  16418. action: t,
  16419. command: n
  16420. };
  16421. });
  16422. return this._callCloudFunction({
  16423. multiCommand: t,
  16424. queryList: e
  16425. });
  16426. }
  16427. }]);
  16428. return _class5;
  16429. }());
  16430. var Xn = "token无效,跳转登录页面",
  16431. Zn = "token过期,跳转登录页面",
  16432. es = {
  16433. TOKEN_INVALID_TOKEN_EXPIRED: Zn,
  16434. TOKEN_INVALID_INVALID_CLIENTID: Xn,
  16435. TOKEN_INVALID: Xn,
  16436. TOKEN_INVALID_WRONG_TOKEN: Xn,
  16437. TOKEN_INVALID_ANONYMOUS_USER: Xn
  16438. },
  16439. ts = {
  16440. "uni-id-token-expired": Zn,
  16441. "uni-id-check-token-failed": Xn,
  16442. "uni-id-token-not-exist": Xn,
  16443. "uni-id-check-device-feature-failed": Xn
  16444. };
  16445. function ns(e, t) {
  16446. var n = "";
  16447. return n = e ? "".concat(e, "/").concat(t) : t, n.replace(/^\//, "");
  16448. }
  16449. function ss() {
  16450. var e = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
  16451. var t = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : "";
  16452. var n = [],
  16453. s = [];
  16454. return e.forEach(function (e) {
  16455. !0 === e.needLogin ? n.push(ns(t, e.path)) : !1 === e.needLogin && s.push(ns(t, e.path));
  16456. }), {
  16457. needLoginPage: n,
  16458. notNeedLoginPage: s
  16459. };
  16460. }
  16461. function rs(e) {
  16462. return e.split("?")[0].replace(/^\//, "");
  16463. }
  16464. function is() {
  16465. return function (e) {
  16466. var t = e && e.$page && e.$page.fullPath || "";
  16467. return t ? ("/" !== t.charAt(0) && (t = "/" + t), t) : t;
  16468. }(function () {
  16469. var e = getCurrentPages();
  16470. return e[e.length - 1];
  16471. }());
  16472. }
  16473. function os() {
  16474. return rs(is());
  16475. }
  16476. function as() {
  16477. var e = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : "";
  16478. var t = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  16479. if (!e) return !1;
  16480. if (!(t && t.list && t.list.length)) return !1;
  16481. var n = t.list,
  16482. s = rs(e);
  16483. return n.some(function (e) {
  16484. return e.pagePath === s;
  16485. });
  16486. }
  16487. var cs = !!_pages.default.uniIdRouter;
  16488. var _ref47 = function () {
  16489. var _ref28 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : _pages.default,
  16490. _ref28$pages = _ref28.pages,
  16491. t = _ref28$pages === void 0 ? [] : _ref28$pages,
  16492. _ref28$subPackages = _ref28.subPackages,
  16493. n = _ref28$subPackages === void 0 ? [] : _ref28$subPackages,
  16494. _ref28$uniIdRouter = _ref28.uniIdRouter,
  16495. s = _ref28$uniIdRouter === void 0 ? {} : _ref28$uniIdRouter,
  16496. _ref28$tabBar = _ref28.tabBar,
  16497. r = _ref28$tabBar === void 0 ? {} : _ref28$tabBar;
  16498. var i = s.loginPage,
  16499. _s$needLogin = s.needLogin,
  16500. o = _s$needLogin === void 0 ? [] : _s$needLogin,
  16501. _s$resToLogin = s.resToLogin,
  16502. a = _s$resToLogin === void 0 ? !0 : _s$resToLogin,
  16503. _ss = ss(t),
  16504. c = _ss.needLoginPage,
  16505. u = _ss.notNeedLoginPage,
  16506. _ref30 = function () {
  16507. var e = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
  16508. var t = [],
  16509. n = [];
  16510. return e.forEach(function (e) {
  16511. var s = e.root,
  16512. _e$pages = e.pages,
  16513. r = _e$pages === void 0 ? [] : _e$pages,
  16514. _ss2 = ss(r, s),
  16515. i = _ss2.needLoginPage,
  16516. o = _ss2.notNeedLoginPage;
  16517. t.push.apply(t, (0, _toConsumableArray2.default)(i)), n.push.apply(n, (0, _toConsumableArray2.default)(o));
  16518. }), {
  16519. needLoginPage: t,
  16520. notNeedLoginPage: n
  16521. };
  16522. }(n),
  16523. h = _ref30.needLoginPage,
  16524. l = _ref30.notNeedLoginPage;
  16525. return {
  16526. loginPage: i,
  16527. routerNeedLogin: o,
  16528. resToLogin: a,
  16529. needLoginPage: [].concat((0, _toConsumableArray2.default)(c), (0, _toConsumableArray2.default)(h)),
  16530. notNeedLoginPage: [].concat((0, _toConsumableArray2.default)(u), (0, _toConsumableArray2.default)(l)),
  16531. loginPageInTabBar: as(i, r)
  16532. };
  16533. }(),
  16534. us = _ref47.loginPage,
  16535. hs = _ref47.routerNeedLogin,
  16536. ls = _ref47.resToLogin,
  16537. ds = _ref47.needLoginPage,
  16538. ps = _ref47.notNeedLoginPage,
  16539. fs = _ref47.loginPageInTabBar;
  16540. if (ds.indexOf(us) > -1) throw new Error("Login page [".concat(us, "] should not be \"needLogin\", please check your pages.json"));
  16541. function gs(e) {
  16542. var t = os();
  16543. if ("/" === e.charAt(0)) return e;
  16544. var _e$split = e.split("?"),
  16545. _e$split2 = (0, _slicedToArray2.default)(_e$split, 2),
  16546. n = _e$split2[0],
  16547. s = _e$split2[1],
  16548. r = n.replace(/^\//, "").split("/"),
  16549. i = t.split("/");
  16550. i.pop();
  16551. for (var _e23 = 0; _e23 < r.length; _e23++) {
  16552. var _t16 = r[_e23];
  16553. ".." === _t16 ? i.pop() : "." !== _t16 && i.push(_t16);
  16554. }
  16555. return "" === i[0] && i.shift(), "/" + i.join("/") + (s ? "?" + s : "");
  16556. }
  16557. function ms(e) {
  16558. var t = rs(gs(e));
  16559. return !(ps.indexOf(t) > -1) && (ds.indexOf(t) > -1 || hs.some(function (t) {
  16560. return function (e, t) {
  16561. return new RegExp(t).test(e);
  16562. }(e, t);
  16563. }));
  16564. }
  16565. function ys(_ref48) {
  16566. var e = _ref48.redirect;
  16567. var t = rs(e),
  16568. n = rs(us);
  16569. return os() !== n && t !== n;
  16570. }
  16571. function _s() {
  16572. var _ref49 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
  16573. e = _ref49.api,
  16574. t = _ref49.redirect;
  16575. if (!t || !ys({
  16576. redirect: t
  16577. })) return;
  16578. var n = function (e, t) {
  16579. return "/" !== e.charAt(0) && (e = "/" + e), t ? e.indexOf("?") > -1 ? e + "&uniIdRedirectUrl=".concat(encodeURIComponent(t)) : e + "?uniIdRedirectUrl=".concat(encodeURIComponent(t)) : e;
  16580. }(us, t);
  16581. fs ? "navigateTo" !== e && "redirectTo" !== e || (e = "switchTab") : "switchTab" === e && (e = "navigateTo");
  16582. var s = {
  16583. navigateTo: uni.navigateTo,
  16584. redirectTo: uni.redirectTo,
  16585. switchTab: uni.switchTab,
  16586. reLaunch: uni.reLaunch
  16587. };
  16588. setTimeout(function () {
  16589. s[e]({
  16590. url: n
  16591. });
  16592. }, 0);
  16593. }
  16594. function ws() {
  16595. var _ref50 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
  16596. e = _ref50.url;
  16597. var t = {
  16598. abortLoginPageJump: !1,
  16599. autoToLoginPage: !1
  16600. },
  16601. n = function () {
  16602. var _se3 = se(),
  16603. e = _se3.token,
  16604. t = _se3.tokenExpired;
  16605. var n;
  16606. if (e) {
  16607. if (t < Date.now()) {
  16608. var _e24 = "uni-id-token-expired";
  16609. n = {
  16610. errCode: _e24,
  16611. errMsg: ts[_e24]
  16612. };
  16613. }
  16614. } else {
  16615. var _e25 = "uni-id-check-token-failed";
  16616. n = {
  16617. errCode: _e25,
  16618. errMsg: ts[_e25]
  16619. };
  16620. }
  16621. return n;
  16622. }();
  16623. if (ms(e) && n) {
  16624. n.uniIdRedirectUrl = e;
  16625. if (J($).length > 0) return setTimeout(function () {
  16626. Y($, n);
  16627. }, 0), t.abortLoginPageJump = !0, t;
  16628. t.autoToLoginPage = !0;
  16629. }
  16630. return t;
  16631. }
  16632. function vs() {
  16633. !function () {
  16634. var e = is(),
  16635. _ws = ws({
  16636. url: e
  16637. }),
  16638. t = _ws.abortLoginPageJump,
  16639. n = _ws.autoToLoginPage;
  16640. t || n && _s({
  16641. api: "redirectTo",
  16642. redirect: e
  16643. });
  16644. }();
  16645. var e = ["navigateTo", "redirectTo", "reLaunch", "switchTab"];
  16646. var _loop3 = function _loop3(_t17) {
  16647. var n = e[_t17];
  16648. uni.addInterceptor(n, {
  16649. invoke: function invoke(e) {
  16650. var _ws2 = ws({
  16651. url: e.url
  16652. }),
  16653. t = _ws2.abortLoginPageJump,
  16654. s = _ws2.autoToLoginPage;
  16655. return t ? e : s ? (_s({
  16656. api: n,
  16657. redirect: gs(e.url)
  16658. }), !1) : e;
  16659. }
  16660. });
  16661. };
  16662. for (var _t17 = 0; _t17 < e.length; _t17++) {
  16663. _loop3(_t17);
  16664. }
  16665. }
  16666. function Is() {
  16667. this.onResponse(function (e) {
  16668. var t = e.type,
  16669. n = e.content;
  16670. var s = !1;
  16671. switch (t) {
  16672. case "cloudobject":
  16673. s = function (e) {
  16674. if ("object" != (0, _typeof2.default)(e)) return !1;
  16675. var _ref51 = e || {},
  16676. t = _ref51.errCode;
  16677. return t in ts;
  16678. }(n);
  16679. break;
  16680. case "clientdb":
  16681. s = function (e) {
  16682. if ("object" != (0, _typeof2.default)(e)) return !1;
  16683. var _ref52 = e || {},
  16684. t = _ref52.errCode;
  16685. return t in es;
  16686. }(n);
  16687. }
  16688. s && function () {
  16689. var e = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
  16690. var t = J($);
  16691. Z().then(function () {
  16692. var n = is();
  16693. if (n && ys({
  16694. redirect: n
  16695. })) return t.length > 0 ? Y($, Object.assign({
  16696. uniIdRedirectUrl: n
  16697. }, e)) : void (us && _s({
  16698. api: "navigateTo",
  16699. redirect: n
  16700. }));
  16701. });
  16702. }(n);
  16703. });
  16704. }
  16705. function Ss(e) {
  16706. !function (e) {
  16707. e.onResponse = function (e) {
  16708. G(j, e);
  16709. }, e.offResponse = function (e) {
  16710. V(j, e);
  16711. };
  16712. }(e), function (e) {
  16713. e.onNeedLogin = function (e) {
  16714. G($, e);
  16715. }, e.offNeedLogin = function (e) {
  16716. V($, e);
  16717. }, cs && (L("_globalUniCloudStatus").needLoginInit || (L("_globalUniCloudStatus").needLoginInit = !0, Z().then(function () {
  16718. vs.call(e);
  16719. }), ls && Is.call(e)));
  16720. }(e), function (e) {
  16721. e.onRefreshToken = function (e) {
  16722. G(B, e);
  16723. }, e.offRefreshToken = function (e) {
  16724. V(B, e);
  16725. };
  16726. }(e);
  16727. }
  16728. var bs;
  16729. var ks = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",
  16730. As = /^(?:[A-Za-z\d+/]{4})*?(?:[A-Za-z\d+/]{2}(?:==)?|[A-Za-z\d+/]{3}=?)?$/;
  16731. function Ps() {
  16732. var e = se().token || "",
  16733. t = e.split(".");
  16734. if (!e || 3 !== t.length) return {
  16735. uid: null,
  16736. role: [],
  16737. permission: [],
  16738. tokenExpired: 0
  16739. };
  16740. var n;
  16741. try {
  16742. n = JSON.parse((s = t[1], decodeURIComponent(bs(s).split("").map(function (e) {
  16743. return "%" + ("00" + e.charCodeAt(0).toString(16)).slice(-2);
  16744. }).join(""))));
  16745. } catch (e) {
  16746. throw new Error("获取当前用户信息出错,详细错误信息为:" + e.message);
  16747. }
  16748. var s;
  16749. return n.tokenExpired = 1e3 * n.exp, delete n.exp, delete n.iat, n;
  16750. }
  16751. bs = "function" != typeof atob ? function (e) {
  16752. if (e = String(e).replace(/[\t\n\f\r ]+/g, ""), !As.test(e)) throw new Error("Failed to execute 'atob' on 'Window': The string to be decoded is not correctly encoded.");
  16753. var t;
  16754. e += "==".slice(2 - (3 & e.length));
  16755. for (var n, s, r = "", i = 0; i < e.length;) {
  16756. t = ks.indexOf(e.charAt(i++)) << 18 | ks.indexOf(e.charAt(i++)) << 12 | (n = ks.indexOf(e.charAt(i++))) << 6 | (s = ks.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);
  16757. }
  16758. return r;
  16759. } : atob;
  16760. var Ts = n(function (e, t) {
  16761. Object.defineProperty(t, "__esModule", {
  16762. value: !0
  16763. });
  16764. var n = "chooseAndUploadFile:ok",
  16765. s = "chooseAndUploadFile:fail";
  16766. function r(e, t) {
  16767. return e.tempFiles.forEach(function (e, n) {
  16768. 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("."));
  16769. }), e.tempFilePaths || (e.tempFilePaths = e.tempFiles.map(function (e) {
  16770. return e.path;
  16771. })), e;
  16772. }
  16773. function i(e, t, _ref53) {
  16774. var s = _ref53.onChooseFile,
  16775. r = _ref53.onUploadProgress;
  16776. return t.then(function (e) {
  16777. if (s) {
  16778. var _t18 = s(e);
  16779. if (void 0 !== _t18) return Promise.resolve(_t18).then(function (t) {
  16780. return void 0 === t ? e : t;
  16781. });
  16782. }
  16783. return e;
  16784. }).then(function (t) {
  16785. return !1 === t ? {
  16786. errMsg: n,
  16787. tempFilePaths: [],
  16788. tempFiles: []
  16789. } : function (e, t) {
  16790. var s = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 5;
  16791. var r = arguments.length > 3 ? arguments[3] : undefined;
  16792. (t = Object.assign({}, t)).errMsg = n;
  16793. var i = t.tempFiles,
  16794. o = i.length;
  16795. var a = 0;
  16796. return new Promise(function (n) {
  16797. for (; a < s;) {
  16798. c();
  16799. }
  16800. function c() {
  16801. var s = a++;
  16802. if (s >= o) return void (!i.find(function (e) {
  16803. return !e.url && !e.errMsg;
  16804. }) && n(t));
  16805. var u = i[s];
  16806. e.uploadFile({
  16807. provider: u.provider,
  16808. filePath: u.path,
  16809. cloudPath: u.cloudPath,
  16810. fileType: u.fileType,
  16811. cloudPathAsRealPath: u.cloudPathAsRealPath,
  16812. onUploadProgress: function onUploadProgress(e) {
  16813. e.index = s, e.tempFile = u, e.tempFilePath = u.path, r && r(e);
  16814. }
  16815. }).then(function (e) {
  16816. u.url = e.fileID, s < o && c();
  16817. }).catch(function (e) {
  16818. u.errMsg = e.errMsg || e.message, s < o && c();
  16819. });
  16820. }
  16821. });
  16822. }(e, t, 5, r);
  16823. });
  16824. }
  16825. t.initChooseAndUploadFile = function (e) {
  16826. return function () {
  16827. var t = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {
  16828. type: "all"
  16829. };
  16830. return "image" === t.type ? i(e, function (e) {
  16831. var t = e.count,
  16832. n = e.sizeType,
  16833. _e$sourceType = e.sourceType,
  16834. i = _e$sourceType === void 0 ? ["album", "camera"] : _e$sourceType,
  16835. o = e.extension;
  16836. return new Promise(function (e, a) {
  16837. uni.chooseImage({
  16838. count: t,
  16839. sizeType: n,
  16840. sourceType: i,
  16841. extension: o,
  16842. success: function success(t) {
  16843. e(r(t, "image"));
  16844. },
  16845. fail: function fail(e) {
  16846. a({
  16847. errMsg: e.errMsg.replace("chooseImage:fail", s)
  16848. });
  16849. }
  16850. });
  16851. });
  16852. }(t), t) : "video" === t.type ? i(e, function (e) {
  16853. var t = e.camera,
  16854. n = e.compressed,
  16855. i = e.maxDuration,
  16856. _e$sourceType2 = e.sourceType,
  16857. o = _e$sourceType2 === void 0 ? ["album", "camera"] : _e$sourceType2,
  16858. a = e.extension;
  16859. return new Promise(function (e, c) {
  16860. uni.chooseVideo({
  16861. camera: t,
  16862. compressed: n,
  16863. maxDuration: i,
  16864. sourceType: o,
  16865. extension: a,
  16866. success: function success(t) {
  16867. var n = t.tempFilePath,
  16868. s = t.duration,
  16869. i = t.size,
  16870. o = t.height,
  16871. a = t.width;
  16872. e(r({
  16873. errMsg: "chooseVideo:ok",
  16874. tempFilePaths: [n],
  16875. tempFiles: [{
  16876. name: t.tempFile && t.tempFile.name || "",
  16877. path: n,
  16878. size: i,
  16879. type: t.tempFile && t.tempFile.type || "",
  16880. width: a,
  16881. height: o,
  16882. duration: s,
  16883. fileType: "video",
  16884. cloudPath: ""
  16885. }]
  16886. }, "video"));
  16887. },
  16888. fail: function fail(e) {
  16889. c({
  16890. errMsg: e.errMsg.replace("chooseVideo:fail", s)
  16891. });
  16892. }
  16893. });
  16894. });
  16895. }(t), t) : i(e, function (e) {
  16896. var t = e.count,
  16897. n = e.extension;
  16898. return new Promise(function (e, i) {
  16899. var o = uni.chooseFile;
  16900. if ("undefined" != typeof wx && "function" == typeof wx.chooseMessageFile && (o = wx.chooseMessageFile), "function" != typeof o) return i({
  16901. errMsg: s + " 请指定 type 类型,该平台仅支持选择 image 或 video。"
  16902. });
  16903. o({
  16904. type: "all",
  16905. count: t,
  16906. extension: n,
  16907. success: function success(t) {
  16908. e(r(t));
  16909. },
  16910. fail: function fail(e) {
  16911. i({
  16912. errMsg: e.errMsg.replace("chooseFile:fail", s)
  16913. });
  16914. }
  16915. });
  16916. });
  16917. }(t), t);
  16918. };
  16919. };
  16920. }),
  16921. Cs = t(Ts);
  16922. var xs = "manual";
  16923. function Os(e) {
  16924. return {
  16925. props: {
  16926. localdata: {
  16927. type: Array,
  16928. default: function _default() {
  16929. return [];
  16930. }
  16931. },
  16932. options: {
  16933. type: [Object, Array],
  16934. default: function _default() {
  16935. return {};
  16936. }
  16937. },
  16938. spaceInfo: {
  16939. type: Object,
  16940. default: function _default() {
  16941. return {};
  16942. }
  16943. },
  16944. collection: {
  16945. type: [String, Array],
  16946. default: ""
  16947. },
  16948. action: {
  16949. type: String,
  16950. default: ""
  16951. },
  16952. field: {
  16953. type: String,
  16954. default: ""
  16955. },
  16956. orderby: {
  16957. type: String,
  16958. default: ""
  16959. },
  16960. where: {
  16961. type: [String, Object],
  16962. default: ""
  16963. },
  16964. pageData: {
  16965. type: String,
  16966. default: "add"
  16967. },
  16968. pageCurrent: {
  16969. type: Number,
  16970. default: 1
  16971. },
  16972. pageSize: {
  16973. type: Number,
  16974. default: 20
  16975. },
  16976. getcount: {
  16977. type: [Boolean, String],
  16978. default: !1
  16979. },
  16980. gettree: {
  16981. type: [Boolean, String],
  16982. default: !1
  16983. },
  16984. gettreepath: {
  16985. type: [Boolean, String],
  16986. default: !1
  16987. },
  16988. startwith: {
  16989. type: String,
  16990. default: ""
  16991. },
  16992. limitlevel: {
  16993. type: Number,
  16994. default: 10
  16995. },
  16996. groupby: {
  16997. type: String,
  16998. default: ""
  16999. },
  17000. groupField: {
  17001. type: String,
  17002. default: ""
  17003. },
  17004. distinct: {
  17005. type: [Boolean, String],
  17006. default: !1
  17007. },
  17008. foreignKey: {
  17009. type: String,
  17010. default: ""
  17011. },
  17012. loadtime: {
  17013. type: String,
  17014. default: "auto"
  17015. },
  17016. manual: {
  17017. type: Boolean,
  17018. default: !1
  17019. }
  17020. },
  17021. data: function data() {
  17022. return {
  17023. mixinDatacomLoading: !1,
  17024. mixinDatacomHasMore: !1,
  17025. mixinDatacomResData: [],
  17026. mixinDatacomErrorMessage: "",
  17027. mixinDatacomPage: {},
  17028. mixinDatacomError: null
  17029. };
  17030. },
  17031. created: function created() {
  17032. var _this21 = this;
  17033. this.mixinDatacomPage = {
  17034. current: this.pageCurrent,
  17035. size: this.pageSize,
  17036. count: 0
  17037. }, this.$watch(function () {
  17038. var e = [];
  17039. return ["pageCurrent", "pageSize", "localdata", "collection", "action", "field", "orderby", "where", "getont", "getcount", "gettree", "groupby", "groupField", "distinct"].forEach(function (t) {
  17040. e.push(_this21[t]);
  17041. }), e;
  17042. }, function (e, t) {
  17043. if (_this21.loadtime === xs) return;
  17044. var n = !1;
  17045. var s = [];
  17046. for (var _r9 = 2; _r9 < e.length; _r9++) {
  17047. e[_r9] !== t[_r9] && (s.push(e[_r9]), n = !0);
  17048. }
  17049. e[0] !== t[0] && (_this21.mixinDatacomPage.current = _this21.pageCurrent), _this21.mixinDatacomPage.size = _this21.pageSize, _this21.onMixinDatacomPropsChange(n, s);
  17050. });
  17051. },
  17052. methods: {
  17053. onMixinDatacomPropsChange: function onMixinDatacomPropsChange(e, t) {},
  17054. mixinDatacomEasyGet: function mixinDatacomEasyGet() {
  17055. var _this22 = this;
  17056. var _ref54 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
  17057. _ref54$getone = _ref54.getone,
  17058. e = _ref54$getone === void 0 ? !1 : _ref54$getone,
  17059. t = _ref54.success,
  17060. n = _ref54.fail;
  17061. this.mixinDatacomLoading || (this.mixinDatacomLoading = !0, this.mixinDatacomErrorMessage = "", this.mixinDatacomError = null, this.mixinDatacomGet().then(function (n) {
  17062. _this22.mixinDatacomLoading = !1;
  17063. var _n$result = n.result,
  17064. s = _n$result.data,
  17065. r = _n$result.count;
  17066. _this22.getcount && (_this22.mixinDatacomPage.count = r), _this22.mixinDatacomHasMore = s.length < _this22.pageSize;
  17067. var i = e ? s.length ? s[0] : void 0 : s;
  17068. _this22.mixinDatacomResData = i, t && t(i);
  17069. }).catch(function (e) {
  17070. _this22.mixinDatacomLoading = !1, _this22.mixinDatacomErrorMessage = e, _this22.mixinDatacomError = e, n && n(e);
  17071. }));
  17072. },
  17073. mixinDatacomGet: function mixinDatacomGet() {
  17074. var _n14;
  17075. var t = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
  17076. var n;
  17077. t = t || {}, n = "undefined" != typeof __uniX && __uniX ? e.databaseForJQL(this.spaceInfo) : e.database(this.spaceInfo);
  17078. var s = t.action || this.action;
  17079. s && (n = n.action(s));
  17080. var r = t.collection || this.collection;
  17081. n = Array.isArray(r) ? (_n14 = n).collection.apply(_n14, (0, _toConsumableArray2.default)(r)) : n.collection(r);
  17082. var i = t.where || this.where;
  17083. i && Object.keys(i).length && (n = n.where(i));
  17084. var o = t.field || this.field;
  17085. o && (n = n.field(o));
  17086. var a = t.foreignKey || this.foreignKey;
  17087. a && (n = n.foreignKey(a));
  17088. var c = t.groupby || this.groupby;
  17089. c && (n = n.groupBy(c));
  17090. var u = t.groupField || this.groupField;
  17091. u && (n = n.groupField(u));
  17092. !0 === (void 0 !== t.distinct ? t.distinct : this.distinct) && (n = n.distinct());
  17093. var h = t.orderby || this.orderby;
  17094. h && (n = n.orderBy(h));
  17095. var l = void 0 !== t.pageCurrent ? t.pageCurrent : this.mixinDatacomPage.current,
  17096. d = void 0 !== t.pageSize ? t.pageSize : this.mixinDatacomPage.size,
  17097. p = void 0 !== t.getcount ? t.getcount : this.getcount,
  17098. f = void 0 !== t.gettree ? t.gettree : this.gettree,
  17099. g = void 0 !== t.gettreepath ? t.gettreepath : this.gettreepath,
  17100. m = {
  17101. getCount: p
  17102. },
  17103. y = {
  17104. limitLevel: void 0 !== t.limitlevel ? t.limitlevel : this.limitlevel,
  17105. startWith: void 0 !== t.startwith ? t.startwith : this.startwith
  17106. };
  17107. return f && (m.getTree = y), g && (m.getTreePath = y), n = n.skip(d * (l - 1)).limit(d).get(m), n;
  17108. }
  17109. }
  17110. };
  17111. }
  17112. function Es(e) {
  17113. return function (t) {
  17114. var n = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  17115. n = function (e) {
  17116. var t = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  17117. 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;
  17118. }({
  17119. customUI: !1,
  17120. loadingOptions: {
  17121. title: "加载中...",
  17122. mask: !0
  17123. },
  17124. errorOptions: {
  17125. type: "modal",
  17126. retry: !1
  17127. }
  17128. }, n);
  17129. var _n15 = n,
  17130. s = _n15.customUI,
  17131. r = _n15.loadingOptions,
  17132. i = _n15.errorOptions,
  17133. o = _n15.parseSystemError,
  17134. a = !s;
  17135. return new Proxy({}, {
  17136. get: function get(s, c) {
  17137. switch (c) {
  17138. case "toString":
  17139. return "[object UniCloudObject]";
  17140. case "toJSON":
  17141. return {};
  17142. }
  17143. return function () {
  17144. var _ref55 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
  17145. e = _ref55.fn,
  17146. t = _ref55.interceptorName,
  17147. n = _ref55.getCallbackArgs;
  17148. return /*#__PURE__*/(0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee52() {
  17149. var _len2,
  17150. s,
  17151. _key2,
  17152. r,
  17153. i,
  17154. o,
  17155. _args = arguments;
  17156. return _regenerator.default.wrap(function _callee52$(_context52) {
  17157. while (1) {
  17158. switch (_context52.prev = _context52.next) {
  17159. case 0:
  17160. for (_len2 = _args.length, s = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
  17161. s[_key2] = _args[_key2];
  17162. }
  17163. r = n ? n({
  17164. params: s
  17165. }) : {};
  17166. _context52.prev = 2;
  17167. _context52.next = 5;
  17168. return M(q(t, "invoke"), _objectSpread({}, r));
  17169. case 5:
  17170. _context52.next = 7;
  17171. return e.apply(void 0, s);
  17172. case 7:
  17173. i = _context52.sent;
  17174. _context52.next = 10;
  17175. return M(q(t, "success"), _objectSpread(_objectSpread({}, r), {}, {
  17176. result: i
  17177. }));
  17178. case 10:
  17179. return _context52.abrupt("return", i);
  17180. case 13:
  17181. _context52.prev = 13;
  17182. _context52.t0 = _context52["catch"](2);
  17183. o = _context52.t0;
  17184. _context52.next = 18;
  17185. return M(q(t, "fail"), _objectSpread(_objectSpread({}, r), {}, {
  17186. error: o
  17187. }));
  17188. case 18:
  17189. throw o;
  17190. case 19:
  17191. _context52.prev = 19;
  17192. _context52.next = 22;
  17193. return M(q(t, "complete"), o ? _objectSpread(_objectSpread({}, r), {}, {
  17194. error: o
  17195. }) : _objectSpread(_objectSpread({}, r), {}, {
  17196. result: i
  17197. }));
  17198. case 22:
  17199. return _context52.finish(19);
  17200. case 23:
  17201. case "end":
  17202. return _context52.stop();
  17203. }
  17204. }
  17205. }, _callee52, null, [[2, 13, 19, 23]]);
  17206. }));
  17207. }({
  17208. fn: function () {
  17209. var _s15 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee54() {
  17210. var l,
  17211. _len3,
  17212. h,
  17213. _key3,
  17214. d,
  17215. p,
  17216. _ref57,
  17217. f,
  17218. g,
  17219. m,
  17220. y,
  17221. _e26,
  17222. _yield,
  17223. _t19,
  17224. _n16,
  17225. _args4 = arguments;
  17226. return _regenerator.default.wrap(function _callee54$(_context54) {
  17227. while (1) {
  17228. switch (_context54.prev = _context54.next) {
  17229. case 0:
  17230. a && uni.showLoading({
  17231. title: r.title,
  17232. mask: r.mask
  17233. });
  17234. for (_len3 = _args4.length, h = new Array(_len3), _key3 = 0; _key3 < _len3; _key3++) {
  17235. h[_key3] = _args4[_key3];
  17236. }
  17237. d = {
  17238. name: t,
  17239. type: u,
  17240. data: {
  17241. method: c,
  17242. params: h
  17243. }
  17244. };
  17245. "object" == (0, _typeof2.default)(n.secretMethods) && function (e, t) {
  17246. var n = t.data.method,
  17247. s = e.secretMethods || {},
  17248. r = s[n] || s["*"];
  17249. r && (t.secretType = r);
  17250. }(n, d);
  17251. p = !1;
  17252. _context54.prev = 5;
  17253. _context54.next = 8;
  17254. return e.callFunction(d);
  17255. case 8:
  17256. l = _context54.sent;
  17257. _context54.next = 14;
  17258. break;
  17259. case 11:
  17260. _context54.prev = 11;
  17261. _context54.t0 = _context54["catch"](5);
  17262. p = !0, l = {
  17263. result: new te(_context54.t0)
  17264. };
  17265. case 14:
  17266. _ref57 = l.result || {}, f = _ref57.errSubject, g = _ref57.errCode, m = _ref57.errMsg, y = _ref57.newToken;
  17267. if (!(a && uni.hideLoading(), y && y.token && y.tokenExpired && (re(y), Y(B, _objectSpread({}, y))), g)) {
  17268. _context54.next = 39;
  17269. break;
  17270. }
  17271. _e26 = m;
  17272. if (!(p && o)) {
  17273. _context54.next = 24;
  17274. break;
  17275. }
  17276. _context54.next = 20;
  17277. return o({
  17278. objectName: t,
  17279. methodName: c,
  17280. params: h,
  17281. errSubject: f,
  17282. errCode: g,
  17283. errMsg: m
  17284. });
  17285. case 20:
  17286. _context54.t1 = _context54.sent.errMsg;
  17287. if (_context54.t1) {
  17288. _context54.next = 23;
  17289. break;
  17290. }
  17291. _context54.t1 = m;
  17292. case 23:
  17293. _e26 = _context54.t1;
  17294. case 24:
  17295. if (!a) {
  17296. _context54.next = 37;
  17297. break;
  17298. }
  17299. if (!("toast" === i.type)) {
  17300. _context54.next = 29;
  17301. break;
  17302. }
  17303. uni.showToast({
  17304. title: _e26,
  17305. icon: "none"
  17306. });
  17307. _context54.next = 37;
  17308. break;
  17309. case 29:
  17310. if (!("modal" !== i.type)) {
  17311. _context54.next = 31;
  17312. break;
  17313. }
  17314. throw new Error("Invalid errorOptions.type: ".concat(i.type));
  17315. case 31:
  17316. _context54.next = 33;
  17317. return (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee53() {
  17318. var _ref59,
  17319. e,
  17320. t,
  17321. n,
  17322. s,
  17323. r,
  17324. _args2 = arguments;
  17325. return _regenerator.default.wrap(function _callee53$(_context53) {
  17326. while (1) {
  17327. switch (_context53.prev = _context53.next) {
  17328. case 0:
  17329. _ref59 = _args2.length > 0 && _args2[0] !== undefined ? _args2[0] : {}, e = _ref59.title, t = _ref59.content, n = _ref59.showCancel, s = _ref59.cancelText, r = _ref59.confirmText;
  17330. return _context53.abrupt("return", new Promise(function (i, o) {
  17331. uni.showModal({
  17332. title: e,
  17333. content: t,
  17334. showCancel: n,
  17335. cancelText: s,
  17336. confirmText: r,
  17337. success: function success(e) {
  17338. i(e);
  17339. },
  17340. fail: function fail() {
  17341. i({
  17342. confirm: !1,
  17343. cancel: !0
  17344. });
  17345. }
  17346. });
  17347. }));
  17348. case 2:
  17349. case "end":
  17350. return _context53.stop();
  17351. }
  17352. }
  17353. }, _callee53);
  17354. }))({
  17355. title: "提示",
  17356. content: _e26,
  17357. showCancel: i.retry,
  17358. cancelText: "取消",
  17359. confirmText: i.retry ? "重试" : "确定"
  17360. });
  17361. case 33:
  17362. _yield = _context54.sent;
  17363. _t19 = _yield.confirm;
  17364. if (!(i.retry && _t19)) {
  17365. _context54.next = 37;
  17366. break;
  17367. }
  17368. return _context54.abrupt("return", s.apply(void 0, h));
  17369. case 37:
  17370. _n16 = new te({
  17371. subject: f,
  17372. code: g,
  17373. message: m,
  17374. requestId: l.requestId
  17375. });
  17376. throw _n16.detail = l.result, Y(j, {
  17377. type: z,
  17378. content: _n16
  17379. }), _n16;
  17380. case 39:
  17381. return _context54.abrupt("return", (Y(j, {
  17382. type: z,
  17383. content: l.result
  17384. }), l.result));
  17385. case 40:
  17386. case "end":
  17387. return _context54.stop();
  17388. }
  17389. }
  17390. }, _callee54, null, [[5, 11]]);
  17391. }));
  17392. function s() {
  17393. return _s15.apply(this, arguments);
  17394. }
  17395. return s;
  17396. }(),
  17397. interceptorName: "callObject",
  17398. getCallbackArgs: function getCallbackArgs() {
  17399. var _ref60 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
  17400. e = _ref60.params;
  17401. return {
  17402. objectName: t,
  17403. methodName: c,
  17404. params: e
  17405. };
  17406. }
  17407. });
  17408. }
  17409. });
  17410. };
  17411. }
  17412. function Ls(e) {
  17413. return L("_globalUniCloudSecureNetworkCache__{spaceId}".replace("{spaceId}", e.config.spaceId));
  17414. }
  17415. function Rs() {
  17416. return _Rs.apply(this, arguments);
  17417. }
  17418. function _Rs() {
  17419. _Rs = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee57() {
  17420. var _ref72,
  17421. e,
  17422. _ref72$callLoginByWei,
  17423. t,
  17424. n,
  17425. s,
  17426. r,
  17427. _args7 = arguments;
  17428. return _regenerator.default.wrap(function _callee57$(_context57) {
  17429. while (1) {
  17430. switch (_context57.prev = _context57.next) {
  17431. case 0:
  17432. _ref72 = _args7.length > 0 && _args7[0] !== undefined ? _args7[0] : {}, e = _ref72.openid, _ref72$callLoginByWei = _ref72.callLoginByWeixin, t = _ref72$callLoginByWei === void 0 ? !1 : _ref72$callLoginByWei;
  17433. n = Ls(this);
  17434. if (!("mp-weixin" !== P)) {
  17435. _context57.next = 4;
  17436. break;
  17437. }
  17438. throw new Error("[SecureNetwork] API `initSecureNetworkByWeixin` is not supported on platform `".concat(P, "`"));
  17439. case 4:
  17440. if (!(e && t)) {
  17441. _context57.next = 6;
  17442. break;
  17443. }
  17444. throw new Error("[SecureNetwork] openid and callLoginByWeixin cannot be passed at the same time");
  17445. case 6:
  17446. if (!e) {
  17447. _context57.next = 8;
  17448. break;
  17449. }
  17450. return _context57.abrupt("return", (n.mpWeixinOpenid = e, {}));
  17451. case 8:
  17452. _context57.next = 10;
  17453. return new Promise(function (e, t) {
  17454. uni.login({
  17455. success: function success(t) {
  17456. e(t.code);
  17457. },
  17458. fail: function fail(e) {
  17459. t(new Error(e.errMsg));
  17460. }
  17461. });
  17462. });
  17463. case 10:
  17464. s = _context57.sent;
  17465. r = this.importObject("uni-id-co", {
  17466. customUI: !0
  17467. });
  17468. _context57.next = 14;
  17469. return r.secureNetworkHandshakeByWeixin({
  17470. code: s,
  17471. callLoginByWeixin: t
  17472. });
  17473. case 14:
  17474. n.mpWeixinCode = s;
  17475. return _context57.abrupt("return", {
  17476. code: s
  17477. });
  17478. case 16:
  17479. case "end":
  17480. return _context57.stop();
  17481. }
  17482. }
  17483. }, _callee57, this);
  17484. }));
  17485. return _Rs.apply(this, arguments);
  17486. }
  17487. function Us(_x39) {
  17488. return _Us.apply(this, arguments);
  17489. }
  17490. function _Us() {
  17491. _Us = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee58(e) {
  17492. var t;
  17493. return _regenerator.default.wrap(function _callee58$(_context58) {
  17494. while (1) {
  17495. switch (_context58.prev = _context58.next) {
  17496. case 0:
  17497. t = Ls(this);
  17498. return _context58.abrupt("return", (t.initPromise || (t.initPromise = Rs.call(this, e).then(function (e) {
  17499. return e;
  17500. }).catch(function (e) {
  17501. throw delete t.initPromise, e;
  17502. })), t.initPromise));
  17503. case 2:
  17504. case "end":
  17505. return _context58.stop();
  17506. }
  17507. }
  17508. }, _callee58, this);
  17509. }));
  17510. return _Us.apply(this, arguments);
  17511. }
  17512. function Ns(e) {
  17513. return function () {
  17514. var _ref61 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
  17515. t = _ref61.openid,
  17516. _ref61$callLoginByWei = _ref61.callLoginByWeixin,
  17517. n = _ref61$callLoginByWei === void 0 ? !1 : _ref61$callLoginByWei;
  17518. return Us.call(e, {
  17519. openid: t,
  17520. callLoginByWeixin: n
  17521. });
  17522. };
  17523. }
  17524. function Ds(e) {
  17525. var t = {
  17526. getSystemInfo: uni.getSystemInfo,
  17527. getPushClientId: uni.getPushClientId
  17528. };
  17529. return function (n) {
  17530. return new Promise(function (s, r) {
  17531. t[e](_objectSpread(_objectSpread({}, n), {}, {
  17532. success: function success(e) {
  17533. s(e);
  17534. },
  17535. fail: function fail(e) {
  17536. r(e);
  17537. }
  17538. }));
  17539. });
  17540. };
  17541. }
  17542. var Ms = /*#__PURE__*/function (_ref62) {
  17543. (0, _inherits2.default)(Ms, _ref62);
  17544. var _super12 = _createSuper(Ms);
  17545. function Ms() {
  17546. var _this23;
  17547. (0, _classCallCheck2.default)(this, Ms);
  17548. _this23 = _super12.call(this), _this23._uniPushMessageCallback = _this23._receivePushMessage.bind((0, _assertThisInitialized2.default)(_this23)), _this23._currentMessageId = -1, _this23._payloadQueue = [];
  17549. return _this23;
  17550. }
  17551. (0, _createClass2.default)(Ms, [{
  17552. key: "init",
  17553. value: function init() {
  17554. var _this24 = this;
  17555. return Promise.all([Ds("getSystemInfo")(), Ds("getPushClientId")()]).then(function () {
  17556. var _ref63 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [],
  17557. _ref64 = (0, _slicedToArray2.default)(_ref63, 2),
  17558. _ref64$ = _ref64[0];
  17559. _ref64$ = _ref64$ === void 0 ? {} : _ref64$;
  17560. var e = _ref64$.appId,
  17561. _ref64$2 = _ref64[1];
  17562. _ref64$2 = _ref64$2 === void 0 ? {} : _ref64$2;
  17563. var t = _ref64$2.cid;
  17564. if (!e) throw new Error("Invalid appId, please check the manifest.json file");
  17565. if (!t) throw new Error("Invalid push client id");
  17566. _this24._appId = e, _this24._pushClientId = t, _this24._seqId = Date.now() + "-" + Math.floor(9e5 * Math.random() + 1e5), _this24.emit("open"), _this24._initMessageListener();
  17567. }, function (e) {
  17568. throw _this24.emit("error", e), _this24.close(), e;
  17569. });
  17570. }
  17571. }, {
  17572. key: "open",
  17573. value: function () {
  17574. var _open = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee55() {
  17575. return _regenerator.default.wrap(function _callee55$(_context55) {
  17576. while (1) {
  17577. switch (_context55.prev = _context55.next) {
  17578. case 0:
  17579. return _context55.abrupt("return", this.init());
  17580. case 1:
  17581. case "end":
  17582. return _context55.stop();
  17583. }
  17584. }
  17585. }, _callee55, this);
  17586. }));
  17587. function open() {
  17588. return _open.apply(this, arguments);
  17589. }
  17590. return open;
  17591. }()
  17592. }, {
  17593. key: "_isUniCloudSSE",
  17594. value: function _isUniCloudSSE(e) {
  17595. if ("receive" !== e.type) return !1;
  17596. var t = e && e.data && e.data.payload;
  17597. return !(!t || "UNI_CLOUD_SSE" !== t.channel || t.seqId !== this._seqId);
  17598. }
  17599. }, {
  17600. key: "_receivePushMessage",
  17601. value: function _receivePushMessage(e) {
  17602. if (!this._isUniCloudSSE(e)) return;
  17603. var t = e && e.data && e.data.payload,
  17604. n = t.action,
  17605. s = t.messageId,
  17606. r = t.message;
  17607. this._payloadQueue.push({
  17608. action: n,
  17609. messageId: s,
  17610. message: r
  17611. }), this._consumMessage();
  17612. }
  17613. }, {
  17614. key: "_consumMessage",
  17615. value: function _consumMessage() {
  17616. var _this25 = this;
  17617. for (;;) {
  17618. var _e27 = this._payloadQueue.find(function (e) {
  17619. return e.messageId === _this25._currentMessageId + 1;
  17620. });
  17621. if (!_e27) break;
  17622. this._currentMessageId++, this._parseMessagePayload(_e27);
  17623. }
  17624. }
  17625. }, {
  17626. key: "_parseMessagePayload",
  17627. value: function _parseMessagePayload(e) {
  17628. var t = e.action,
  17629. n = e.messageId,
  17630. s = e.message;
  17631. "end" === t ? this._end({
  17632. messageId: n,
  17633. message: s
  17634. }) : "message" === t && this._appendMessage({
  17635. messageId: n,
  17636. message: s
  17637. });
  17638. }
  17639. }, {
  17640. key: "_appendMessage",
  17641. value: function _appendMessage() {
  17642. var _ref65 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
  17643. e = _ref65.messageId,
  17644. t = _ref65.message;
  17645. this.emit("message", t);
  17646. }
  17647. }, {
  17648. key: "_end",
  17649. value: function _end() {
  17650. var _ref66 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
  17651. e = _ref66.messageId,
  17652. t = _ref66.message;
  17653. this.emit("end", t), this.close();
  17654. }
  17655. }, {
  17656. key: "_initMessageListener",
  17657. value: function _initMessageListener() {
  17658. uni.onPushMessage(this._uniPushMessageCallback);
  17659. }
  17660. }, {
  17661. key: "_destroy",
  17662. value: function _destroy() {
  17663. uni.offPushMessage(this._uniPushMessageCallback);
  17664. }
  17665. }, {
  17666. key: "toJSON",
  17667. value: function toJSON() {
  17668. return {
  17669. appId: this._appId,
  17670. pushClientId: this._pushClientId,
  17671. seqId: this._seqId
  17672. };
  17673. }
  17674. }, {
  17675. key: "close",
  17676. value: function close() {
  17677. this._destroy(), this.emit("close");
  17678. }
  17679. }]);
  17680. return Ms;
  17681. }( /*#__PURE__*/function () {
  17682. function _class6() {
  17683. (0, _classCallCheck2.default)(this, _class6);
  17684. this._callback = {};
  17685. }
  17686. (0, _createClass2.default)(_class6, [{
  17687. key: "addListener",
  17688. value: function addListener(e, t) {
  17689. this._callback[e] || (this._callback[e] = []), this._callback[e].push(t);
  17690. }
  17691. }, {
  17692. key: "on",
  17693. value: function on(e, t) {
  17694. return this.addListener(e, t);
  17695. }
  17696. }, {
  17697. key: "removeListener",
  17698. value: function removeListener(e, t) {
  17699. if (!t) throw new Error('The "listener" argument must be of type function. Received undefined');
  17700. var n = this._callback[e];
  17701. if (!n) return;
  17702. var s = function (e, t) {
  17703. for (var _n17 = e.length - 1; _n17 >= 0; _n17--) {
  17704. if (e[_n17] === t) return _n17;
  17705. }
  17706. return -1;
  17707. }(n, t);
  17708. n.splice(s, 1);
  17709. }
  17710. }, {
  17711. key: "off",
  17712. value: function off(e, t) {
  17713. return this.removeListener(e, t);
  17714. }
  17715. }, {
  17716. key: "removeAllListener",
  17717. value: function removeAllListener(e) {
  17718. delete this._callback[e];
  17719. }
  17720. }, {
  17721. key: "emit",
  17722. value: function emit(e) {
  17723. var n = this._callback[e];
  17724. for (var _len4 = arguments.length, t = new Array(_len4 > 1 ? _len4 - 1 : 0), _key4 = 1; _key4 < _len4; _key4++) {
  17725. t[_key4 - 1] = arguments[_key4];
  17726. }
  17727. if (n) for (var _e28 = 0; _e28 < n.length; _e28++) {
  17728. n[_e28].apply(n, t);
  17729. }
  17730. }
  17731. }]);
  17732. return _class6;
  17733. }());
  17734. function qs(_x40, _x41) {
  17735. return _qs.apply(this, arguments);
  17736. }
  17737. function _qs() {
  17738. _qs = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee59(e, t) {
  17739. var n, _e32, s;
  17740. return _regenerator.default.wrap(function _callee59$(_context59) {
  17741. while (1) {
  17742. switch (_context59.prev = _context59.next) {
  17743. case 0:
  17744. n = "http://".concat(e, ":").concat(t, "/system/ping");
  17745. _context59.prev = 1;
  17746. _context59.next = 4;
  17747. return s = {
  17748. url: n,
  17749. timeout: 500
  17750. }, new Promise(function (e, t) {
  17751. ne.request(_objectSpread(_objectSpread({}, s), {}, {
  17752. success: function success(t) {
  17753. e(t);
  17754. },
  17755. fail: function fail(e) {
  17756. t(e);
  17757. }
  17758. }));
  17759. });
  17760. case 4:
  17761. _e32 = _context59.sent;
  17762. return _context59.abrupt("return", !(!_e32.data || 0 !== _e32.data.code));
  17763. case 8:
  17764. _context59.prev = 8;
  17765. _context59.t0 = _context59["catch"](1);
  17766. return _context59.abrupt("return", !1);
  17767. case 11:
  17768. case "end":
  17769. return _context59.stop();
  17770. }
  17771. }
  17772. }, _callee59, null, [[1, 8]]);
  17773. }));
  17774. return _qs.apply(this, arguments);
  17775. }
  17776. function Fs(_x42) {
  17777. return _Fs.apply(this, arguments);
  17778. }
  17779. function _Fs() {
  17780. _Fs = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee61(e) {
  17781. var _ae2, _e33, _t21, t, _t$debugInfo, n, s, _yield2, r, i, o;
  17782. return _regenerator.default.wrap(function _callee61$(_context61) {
  17783. while (1) {
  17784. switch (_context61.prev = _context61.next) {
  17785. case 0:
  17786. if (S) {
  17787. _context61.next = 2;
  17788. break;
  17789. }
  17790. return _context61.abrupt("return", Promise.resolve());
  17791. case 2:
  17792. if ("app" === P) {
  17793. _ae2 = ae(), _e33 = _ae2.osName, _t21 = _ae2.osVersion;
  17794. "ios" === _e33 && function (e) {
  17795. if (!e || "string" != typeof e) return 0;
  17796. var t = e.match(/^(\d+)./);
  17797. return t && t[1] ? parseInt(t[1]) : 0;
  17798. }(_t21) >= 14 && console.warn("iOS 14及以上版本连接uniCloud本地调试服务需要允许客户端查找并连接到本地网络上的设备(仅开发期间需要,发行后不需要)");
  17799. }
  17800. t = e.__dev__;
  17801. if (t.debugInfo) {
  17802. _context61.next = 6;
  17803. break;
  17804. }
  17805. return _context61.abrupt("return");
  17806. case 6:
  17807. _t$debugInfo = t.debugInfo;
  17808. n = _t$debugInfo.address;
  17809. s = _t$debugInfo.servePort;
  17810. _context61.next = 11;
  17811. return function () {
  17812. var _ref73 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee60(e, t) {
  17813. var n, _s16, _r10;
  17814. return _regenerator.default.wrap(function _callee60$(_context60) {
  17815. while (1) {
  17816. switch (_context60.prev = _context60.next) {
  17817. case 0:
  17818. _s16 = 0;
  17819. case 1:
  17820. if (!(_s16 < e.length)) {
  17821. _context60.next = 11;
  17822. break;
  17823. }
  17824. _r10 = e[_s16];
  17825. _context60.next = 5;
  17826. return qs(_r10, t);
  17827. case 5:
  17828. if (!_context60.sent) {
  17829. _context60.next = 8;
  17830. break;
  17831. }
  17832. n = _r10;
  17833. return _context60.abrupt("break", 11);
  17834. case 8:
  17835. _s16++;
  17836. _context60.next = 1;
  17837. break;
  17838. case 11:
  17839. return _context60.abrupt("return", {
  17840. address: n,
  17841. port: t
  17842. });
  17843. case 12:
  17844. case "end":
  17845. return _context60.stop();
  17846. }
  17847. }
  17848. }, _callee60);
  17849. }));
  17850. return function (_x43, _x44) {
  17851. return _ref73.apply(this, arguments);
  17852. };
  17853. }()(n, s);
  17854. case 11:
  17855. _yield2 = _context61.sent;
  17856. r = _yield2.address;
  17857. if (!r) {
  17858. _context61.next = 15;
  17859. break;
  17860. }
  17861. return _context61.abrupt("return", (t.localAddress = r, void (t.localPort = s)));
  17862. case 15:
  17863. i = console["app" === P ? "error" : "warn"];
  17864. o = "";
  17865. 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)) {
  17866. _context61.next = 19;
  17867. break;
  17868. }
  17869. throw new Error(o);
  17870. case 19:
  17871. i(o);
  17872. case 20:
  17873. case "end":
  17874. return _context61.stop();
  17875. }
  17876. }
  17877. }, _callee61);
  17878. }));
  17879. return _Fs.apply(this, arguments);
  17880. }
  17881. function Ks(e) {
  17882. e._initPromiseHub || (e._initPromiseHub = new v({
  17883. createPromise: function createPromise() {
  17884. var t = Promise.resolve();
  17885. var n;
  17886. n = 1, t = new Promise(function (e) {
  17887. setTimeout(function () {
  17888. e();
  17889. }, n);
  17890. });
  17891. var s = e.auth();
  17892. return t.then(function () {
  17893. return s.getLoginState();
  17894. }).then(function (e) {
  17895. return e ? Promise.resolve() : s.signInAnonymously();
  17896. });
  17897. }
  17898. }));
  17899. }
  17900. var js = {
  17901. tcb: It,
  17902. tencent: It,
  17903. aliyun: de,
  17904. private: bt,
  17905. alipay: Et
  17906. };
  17907. var $s = new ( /*#__PURE__*/function () {
  17908. function _class7() {
  17909. (0, _classCallCheck2.default)(this, _class7);
  17910. }
  17911. (0, _createClass2.default)(_class7, [{
  17912. key: "init",
  17913. value: function init(e) {
  17914. var t = {};
  17915. var n = js[e.provider];
  17916. if (!n) throw new Error("未提供正确的provider参数");
  17917. t = n.init(e), S && function (e) {
  17918. if (!S) return;
  17919. var t = {};
  17920. e.__dev__ = t, t.debugLog = S && ("web" === P && navigator.userAgent.indexOf("HBuilderX") > 0 || "app" === P);
  17921. var n = T;
  17922. n && !n.code && (t.debugInfo = n);
  17923. var s = new v({
  17924. createPromise: function createPromise() {
  17925. return Fs(e);
  17926. }
  17927. });
  17928. t.initLocalNetwork = function () {
  17929. return s.exec();
  17930. };
  17931. }(t), Ks(t), Fn(t), function (e) {
  17932. var t = e.uploadFile;
  17933. e.uploadFile = function (e) {
  17934. return t.call(this, e);
  17935. };
  17936. }(t), function (e) {
  17937. e.database = function (t) {
  17938. if (t && Object.keys(t).length > 0) return e.init(t).database();
  17939. if (this._database) return this._database;
  17940. var n = Yn(Qn, {
  17941. uniClient: e
  17942. });
  17943. return this._database = n, n;
  17944. }, e.databaseForJQL = function (t) {
  17945. if (t && Object.keys(t).length > 0) return e.init(t).databaseForJQL();
  17946. if (this._databaseForJQL) return this._databaseForJQL;
  17947. var n = Yn(Qn, {
  17948. uniClient: e,
  17949. isJQL: !0
  17950. });
  17951. return this._databaseForJQL = n, n;
  17952. };
  17953. }(t), function (e) {
  17954. e.getCurrentUserInfo = Ps, e.chooseAndUploadFile = Cs.initChooseAndUploadFile(e), Object.assign(e, {
  17955. get mixinDatacom() {
  17956. return Os(e);
  17957. }
  17958. }), e.SSEChannel = Ms, e.initSecureNetworkByWeixin = Ns(e), e.importObject = Es(e);
  17959. }(t);
  17960. return ["callFunction", "uploadFile", "deleteFile", "getTempFileURL", "downloadFile", "chooseAndUploadFile"].forEach(function (e) {
  17961. if (!t[e]) return;
  17962. var n = t[e];
  17963. t[e] = function () {
  17964. return n.apply(t, Array.from(arguments));
  17965. }, t[e] = function (e, t) {
  17966. return function (n) {
  17967. var _this26 = this;
  17968. var s = !1;
  17969. if ("callFunction" === t) {
  17970. var _e29 = n && n.type || c;
  17971. s = _e29 !== c;
  17972. }
  17973. var r = "callFunction" === t && !s,
  17974. i = this._initPromiseHub.exec();
  17975. n = n || {};
  17976. var _ee2 = ee(n),
  17977. o = _ee2.success,
  17978. a = _ee2.fail,
  17979. u = _ee2.complete,
  17980. h = i.then(function () {
  17981. return s ? Promise.resolve() : M(q(t, "invoke"), n);
  17982. }).then(function () {
  17983. return e.call(_this26, n);
  17984. }).then(function (e) {
  17985. return s ? Promise.resolve(e) : M(q(t, "success"), e).then(function () {
  17986. return M(q(t, "complete"), e);
  17987. }).then(function () {
  17988. return r && Y(j, {
  17989. type: H,
  17990. content: e
  17991. }), Promise.resolve(e);
  17992. });
  17993. }, function (e) {
  17994. return s ? Promise.reject(e) : M(q(t, "fail"), e).then(function () {
  17995. return M(q(t, "complete"), e);
  17996. }).then(function () {
  17997. return Y(j, {
  17998. type: H,
  17999. content: e
  18000. }), Promise.reject(e);
  18001. });
  18002. });
  18003. if (!(o || a || u)) return h;
  18004. h.then(function (e) {
  18005. o && o(e), u && u(e), r && Y(j, {
  18006. type: H,
  18007. content: e
  18008. });
  18009. }, function (e) {
  18010. a && a(e), u && u(e), r && Y(j, {
  18011. type: H,
  18012. content: e
  18013. });
  18014. });
  18015. };
  18016. }(t[e], e).bind(t);
  18017. }), t.init = this.init, t;
  18018. }
  18019. }]);
  18020. return _class7;
  18021. }())();
  18022. (function () {
  18023. var e = C;
  18024. var t = {};
  18025. if (e && 1 === e.length) t = e[0], $s = $s.init(t), $s._isDefault = !0;else {
  18026. var _t20 = ["auth", "callFunction", "uploadFile", "deleteFile", "getTempFileURL", "downloadFile", "database", "getCurrentUSerInfo", "importObject"];
  18027. var _n18;
  18028. _n18 = e && e.length > 0 ? "应用有多个服务空间,请通过uniCloud.init方法指定要使用的服务空间" : x ? "应用未关联服务空间,请在uniCloud目录右键关联服务空间" : "uni-app cli项目内使用uniCloud需要使用HBuilderX的运行菜单运行项目,且需要在uniCloud目录关联服务空间", _t20.forEach(function (e) {
  18029. $s[e] = function () {
  18030. return console.error(_n18), Promise.reject(new te({
  18031. code: "SYS_ERR",
  18032. message: _n18
  18033. }));
  18034. };
  18035. });
  18036. }
  18037. Object.assign($s, {
  18038. get mixinDatacom() {
  18039. return Os($s);
  18040. }
  18041. }), Ss($s), $s.addInterceptor = N, $s.removeInterceptor = D, $s.interceptObject = F, S && "web" === P && (window.uniCloud = $s);
  18042. })();
  18043. var Bs = $s;
  18044. exports.default = Bs;
  18045. /* 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"]))
  18046. /***/ }),
  18047. /***/ 29:
  18048. /*!************************************************************************************************!*\
  18049. !*** ./node_modules/@dcloudio/vue-cli-plugin-uni/packages/@babel/runtime/regenerator/index.js ***!
  18050. \************************************************************************************************/
  18051. /*! no static exports found */
  18052. /***/ (function(module, exports, __webpack_require__) {
  18053. // TODO(Babel 8): Remove this file.
  18054. var runtime = __webpack_require__(/*! @babel/runtime/helpers/regeneratorRuntime */ 30)();
  18055. module.exports = runtime;
  18056. /***/ }),
  18057. /***/ 3:
  18058. /*!***********************************!*\
  18059. !*** (webpack)/buildin/global.js ***!
  18060. \***********************************/
  18061. /*! no static exports found */
  18062. /***/ (function(module, exports) {
  18063. var g;
  18064. // This works in non-strict mode
  18065. g = (function() {
  18066. return this;
  18067. })();
  18068. try {
  18069. // This works if eval is allowed (see CSP)
  18070. g = g || new Function("return this")();
  18071. } catch (e) {
  18072. // This works if the window reference is available
  18073. if (typeof window === "object") g = window;
  18074. }
  18075. // g can still be undefined, but nothing to do about it...
  18076. // We return undefined, instead of nothing here, so it's
  18077. // easier to handle this case. if(!global) { ...}
  18078. module.exports = g;
  18079. /***/ }),
  18080. /***/ 30:
  18081. /*!*******************************************************************!*\
  18082. !*** ./node_modules/@babel/runtime/helpers/regeneratorRuntime.js ***!
  18083. \*******************************************************************/
  18084. /*! no static exports found */
  18085. /***/ (function(module, exports, __webpack_require__) {
  18086. var _typeof = __webpack_require__(/*! ./typeof.js */ 13)["default"];
  18087. function _regeneratorRuntime() {
  18088. "use strict";
  18089. /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
  18090. module.exports = _regeneratorRuntime = function _regeneratorRuntime() {
  18091. return e;
  18092. }, module.exports.__esModule = true, module.exports["default"] = module.exports;
  18093. var t,
  18094. e = {},
  18095. r = Object.prototype,
  18096. n = r.hasOwnProperty,
  18097. o = Object.defineProperty || function (t, e, r) {
  18098. t[e] = r.value;
  18099. },
  18100. i = "function" == typeof Symbol ? Symbol : {},
  18101. a = i.iterator || "@@iterator",
  18102. c = i.asyncIterator || "@@asyncIterator",
  18103. u = i.toStringTag || "@@toStringTag";
  18104. function define(t, e, r) {
  18105. return Object.defineProperty(t, e, {
  18106. value: r,
  18107. enumerable: !0,
  18108. configurable: !0,
  18109. writable: !0
  18110. }), t[e];
  18111. }
  18112. try {
  18113. define({}, "");
  18114. } catch (t) {
  18115. define = function define(t, e, r) {
  18116. return t[e] = r;
  18117. };
  18118. }
  18119. function wrap(t, e, r, n) {
  18120. var i = e && e.prototype instanceof Generator ? e : Generator,
  18121. a = Object.create(i.prototype),
  18122. c = new Context(n || []);
  18123. return o(a, "_invoke", {
  18124. value: makeInvokeMethod(t, r, c)
  18125. }), a;
  18126. }
  18127. function tryCatch(t, e, r) {
  18128. try {
  18129. return {
  18130. type: "normal",
  18131. arg: t.call(e, r)
  18132. };
  18133. } catch (t) {
  18134. return {
  18135. type: "throw",
  18136. arg: t
  18137. };
  18138. }
  18139. }
  18140. e.wrap = wrap;
  18141. var h = "suspendedStart",
  18142. l = "suspendedYield",
  18143. f = "executing",
  18144. s = "completed",
  18145. y = {};
  18146. function Generator() {}
  18147. function GeneratorFunction() {}
  18148. function GeneratorFunctionPrototype() {}
  18149. var p = {};
  18150. define(p, a, function () {
  18151. return this;
  18152. });
  18153. var d = Object.getPrototypeOf,
  18154. v = d && d(d(values([])));
  18155. v && v !== r && n.call(v, a) && (p = v);
  18156. var g = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(p);
  18157. function defineIteratorMethods(t) {
  18158. ["next", "throw", "return"].forEach(function (e) {
  18159. define(t, e, function (t) {
  18160. return this._invoke(e, t);
  18161. });
  18162. });
  18163. }
  18164. function AsyncIterator(t, e) {
  18165. function invoke(r, o, i, a) {
  18166. var c = tryCatch(t[r], t, o);
  18167. if ("throw" !== c.type) {
  18168. var u = c.arg,
  18169. h = u.value;
  18170. return h && "object" == _typeof(h) && n.call(h, "__await") ? e.resolve(h.__await).then(function (t) {
  18171. invoke("next", t, i, a);
  18172. }, function (t) {
  18173. invoke("throw", t, i, a);
  18174. }) : e.resolve(h).then(function (t) {
  18175. u.value = t, i(u);
  18176. }, function (t) {
  18177. return invoke("throw", t, i, a);
  18178. });
  18179. }
  18180. a(c.arg);
  18181. }
  18182. var r;
  18183. o(this, "_invoke", {
  18184. value: function value(t, n) {
  18185. function callInvokeWithMethodAndArg() {
  18186. return new e(function (e, r) {
  18187. invoke(t, n, e, r);
  18188. });
  18189. }
  18190. return r = r ? r.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg();
  18191. }
  18192. });
  18193. }
  18194. function makeInvokeMethod(e, r, n) {
  18195. var o = h;
  18196. return function (i, a) {
  18197. if (o === f) throw Error("Generator is already running");
  18198. if (o === s) {
  18199. if ("throw" === i) throw a;
  18200. return {
  18201. value: t,
  18202. done: !0
  18203. };
  18204. }
  18205. for (n.method = i, n.arg = a;;) {
  18206. var c = n.delegate;
  18207. if (c) {
  18208. var u = maybeInvokeDelegate(c, n);
  18209. if (u) {
  18210. if (u === y) continue;
  18211. return u;
  18212. }
  18213. }
  18214. if ("next" === n.method) n.sent = n._sent = n.arg;else if ("throw" === n.method) {
  18215. if (o === h) throw o = s, n.arg;
  18216. n.dispatchException(n.arg);
  18217. } else "return" === n.method && n.abrupt("return", n.arg);
  18218. o = f;
  18219. var p = tryCatch(e, r, n);
  18220. if ("normal" === p.type) {
  18221. if (o = n.done ? s : l, p.arg === y) continue;
  18222. return {
  18223. value: p.arg,
  18224. done: n.done
  18225. };
  18226. }
  18227. "throw" === p.type && (o = s, n.method = "throw", n.arg = p.arg);
  18228. }
  18229. };
  18230. }
  18231. function maybeInvokeDelegate(e, r) {
  18232. var n = r.method,
  18233. o = e.iterator[n];
  18234. 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;
  18235. var i = tryCatch(o, e.iterator, r.arg);
  18236. if ("throw" === i.type) return r.method = "throw", r.arg = i.arg, r.delegate = null, y;
  18237. var a = i.arg;
  18238. 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);
  18239. }
  18240. function pushTryEntry(t) {
  18241. var e = {
  18242. tryLoc: t[0]
  18243. };
  18244. 1 in t && (e.catchLoc = t[1]), 2 in t && (e.finallyLoc = t[2], e.afterLoc = t[3]), this.tryEntries.push(e);
  18245. }
  18246. function resetTryEntry(t) {
  18247. var e = t.completion || {};
  18248. e.type = "normal", delete e.arg, t.completion = e;
  18249. }
  18250. function Context(t) {
  18251. this.tryEntries = [{
  18252. tryLoc: "root"
  18253. }], t.forEach(pushTryEntry, this), this.reset(!0);
  18254. }
  18255. function values(e) {
  18256. if (e || "" === e) {
  18257. var r = e[a];
  18258. if (r) return r.call(e);
  18259. if ("function" == typeof e.next) return e;
  18260. if (!isNaN(e.length)) {
  18261. var o = -1,
  18262. i = function next() {
  18263. for (; ++o < e.length;) {
  18264. if (n.call(e, o)) return next.value = e[o], next.done = !1, next;
  18265. }
  18266. return next.value = t, next.done = !0, next;
  18267. };
  18268. return i.next = i;
  18269. }
  18270. }
  18271. throw new TypeError(_typeof(e) + " is not iterable");
  18272. }
  18273. return GeneratorFunction.prototype = GeneratorFunctionPrototype, o(g, "constructor", {
  18274. value: GeneratorFunctionPrototype,
  18275. configurable: !0
  18276. }), o(GeneratorFunctionPrototype, "constructor", {
  18277. value: GeneratorFunction,
  18278. configurable: !0
  18279. }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, u, "GeneratorFunction"), e.isGeneratorFunction = function (t) {
  18280. var e = "function" == typeof t && t.constructor;
  18281. return !!e && (e === GeneratorFunction || "GeneratorFunction" === (e.displayName || e.name));
  18282. }, e.mark = function (t) {
  18283. return Object.setPrototypeOf ? Object.setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, define(t, u, "GeneratorFunction")), t.prototype = Object.create(g), t;
  18284. }, e.awrap = function (t) {
  18285. return {
  18286. __await: t
  18287. };
  18288. }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, c, function () {
  18289. return this;
  18290. }), e.AsyncIterator = AsyncIterator, e.async = function (t, r, n, o, i) {
  18291. void 0 === i && (i = Promise);
  18292. var a = new AsyncIterator(wrap(t, r, n, o), i);
  18293. return e.isGeneratorFunction(r) ? a : a.next().then(function (t) {
  18294. return t.done ? t.value : a.next();
  18295. });
  18296. }, defineIteratorMethods(g), define(g, u, "Generator"), define(g, a, function () {
  18297. return this;
  18298. }), define(g, "toString", function () {
  18299. return "[object Generator]";
  18300. }), e.keys = function (t) {
  18301. var e = Object(t),
  18302. r = [];
  18303. for (var n in e) {
  18304. r.push(n);
  18305. }
  18306. return r.reverse(), function next() {
  18307. for (; r.length;) {
  18308. var t = r.pop();
  18309. if (t in e) return next.value = t, next.done = !1, next;
  18310. }
  18311. return next.done = !0, next;
  18312. };
  18313. }, e.values = values, Context.prototype = {
  18314. constructor: Context,
  18315. reset: function reset(e) {
  18316. 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) {
  18317. "t" === r.charAt(0) && n.call(this, r) && !isNaN(+r.slice(1)) && (this[r] = t);
  18318. }
  18319. },
  18320. stop: function stop() {
  18321. this.done = !0;
  18322. var t = this.tryEntries[0].completion;
  18323. if ("throw" === t.type) throw t.arg;
  18324. return this.rval;
  18325. },
  18326. dispatchException: function dispatchException(e) {
  18327. if (this.done) throw e;
  18328. var r = this;
  18329. function handle(n, o) {
  18330. return a.type = "throw", a.arg = e, r.next = n, o && (r.method = "next", r.arg = t), !!o;
  18331. }
  18332. for (var o = this.tryEntries.length - 1; o >= 0; --o) {
  18333. var i = this.tryEntries[o],
  18334. a = i.completion;
  18335. if ("root" === i.tryLoc) return handle("end");
  18336. if (i.tryLoc <= this.prev) {
  18337. var c = n.call(i, "catchLoc"),
  18338. u = n.call(i, "finallyLoc");
  18339. if (c && u) {
  18340. if (this.prev < i.catchLoc) return handle(i.catchLoc, !0);
  18341. if (this.prev < i.finallyLoc) return handle(i.finallyLoc);
  18342. } else if (c) {
  18343. if (this.prev < i.catchLoc) return handle(i.catchLoc, !0);
  18344. } else {
  18345. if (!u) throw Error("try statement without catch or finally");
  18346. if (this.prev < i.finallyLoc) return handle(i.finallyLoc);
  18347. }
  18348. }
  18349. }
  18350. },
  18351. abrupt: function abrupt(t, e) {
  18352. for (var r = this.tryEntries.length - 1; r >= 0; --r) {
  18353. var o = this.tryEntries[r];
  18354. if (o.tryLoc <= this.prev && n.call(o, "finallyLoc") && this.prev < o.finallyLoc) {
  18355. var i = o;
  18356. break;
  18357. }
  18358. }
  18359. i && ("break" === t || "continue" === t) && i.tryLoc <= e && e <= i.finallyLoc && (i = null);
  18360. var a = i ? i.completion : {};
  18361. return a.type = t, a.arg = e, i ? (this.method = "next", this.next = i.finallyLoc, y) : this.complete(a);
  18362. },
  18363. complete: function complete(t, e) {
  18364. if ("throw" === t.type) throw t.arg;
  18365. 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;
  18366. },
  18367. finish: function finish(t) {
  18368. for (var e = this.tryEntries.length - 1; e >= 0; --e) {
  18369. var r = this.tryEntries[e];
  18370. if (r.finallyLoc === t) return this.complete(r.completion, r.afterLoc), resetTryEntry(r), y;
  18371. }
  18372. },
  18373. "catch": function _catch(t) {
  18374. for (var e = this.tryEntries.length - 1; e >= 0; --e) {
  18375. var r = this.tryEntries[e];
  18376. if (r.tryLoc === t) {
  18377. var n = r.completion;
  18378. if ("throw" === n.type) {
  18379. var o = n.arg;
  18380. resetTryEntry(r);
  18381. }
  18382. return o;
  18383. }
  18384. }
  18385. throw Error("illegal catch attempt");
  18386. },
  18387. delegateYield: function delegateYield(e, r, n) {
  18388. return this.delegate = {
  18389. iterator: values(e),
  18390. resultName: r,
  18391. nextLoc: n
  18392. }, "next" === this.method && (this.arg = t), y;
  18393. }
  18394. }, e;
  18395. }
  18396. module.exports = _regeneratorRuntime, module.exports.__esModule = true, module.exports["default"] = module.exports;
  18397. /***/ }),
  18398. /***/ 31:
  18399. /*!**********************************************************************!*\
  18400. !*** ./node_modules/@babel/runtime/helpers/assertThisInitialized.js ***!
  18401. \**********************************************************************/
  18402. /*! no static exports found */
  18403. /***/ (function(module, exports) {
  18404. function _assertThisInitialized(self) {
  18405. if (self === void 0) {
  18406. throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
  18407. }
  18408. return self;
  18409. }
  18410. module.exports = _assertThisInitialized, module.exports.__esModule = true, module.exports["default"] = module.exports;
  18411. /***/ }),
  18412. /***/ 32:
  18413. /*!*****************************************************************!*\
  18414. !*** ./node_modules/@babel/runtime/helpers/asyncToGenerator.js ***!
  18415. \*****************************************************************/
  18416. /*! no static exports found */
  18417. /***/ (function(module, exports) {
  18418. function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
  18419. try {
  18420. var info = gen[key](arg);
  18421. var value = info.value;
  18422. } catch (error) {
  18423. reject(error);
  18424. return;
  18425. }
  18426. if (info.done) {
  18427. resolve(value);
  18428. } else {
  18429. Promise.resolve(value).then(_next, _throw);
  18430. }
  18431. }
  18432. function _asyncToGenerator(fn) {
  18433. return function () {
  18434. var self = this,
  18435. args = arguments;
  18436. return new Promise(function (resolve, reject) {
  18437. var gen = fn.apply(self, args);
  18438. function _next(value) {
  18439. asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value);
  18440. }
  18441. function _throw(err) {
  18442. asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err);
  18443. }
  18444. _next(undefined);
  18445. });
  18446. };
  18447. }
  18448. module.exports = _asyncToGenerator, module.exports.__esModule = true, module.exports["default"] = module.exports;
  18449. /***/ }),
  18450. /***/ 33:
  18451. /*!*********************************************************!*\
  18452. !*** ./node_modules/@babel/runtime/helpers/inherits.js ***!
  18453. \*********************************************************/
  18454. /*! no static exports found */
  18455. /***/ (function(module, exports, __webpack_require__) {
  18456. var setPrototypeOf = __webpack_require__(/*! ./setPrototypeOf.js */ 16);
  18457. function _inherits(subClass, superClass) {
  18458. if (typeof superClass !== "function" && superClass !== null) {
  18459. throw new TypeError("Super expression must either be null or a function");
  18460. }
  18461. subClass.prototype = Object.create(superClass && superClass.prototype, {
  18462. constructor: {
  18463. value: subClass,
  18464. writable: true,
  18465. configurable: true
  18466. }
  18467. });
  18468. Object.defineProperty(subClass, "prototype", {
  18469. writable: false
  18470. });
  18471. if (superClass) setPrototypeOf(subClass, superClass);
  18472. }
  18473. module.exports = _inherits, module.exports.__esModule = true, module.exports["default"] = module.exports;
  18474. /***/ }),
  18475. /***/ 34:
  18476. /*!**************************************************************************!*\
  18477. !*** ./node_modules/@babel/runtime/helpers/possibleConstructorReturn.js ***!
  18478. \**************************************************************************/
  18479. /*! no static exports found */
  18480. /***/ (function(module, exports, __webpack_require__) {
  18481. var _typeof = __webpack_require__(/*! ./typeof.js */ 13)["default"];
  18482. var assertThisInitialized = __webpack_require__(/*! ./assertThisInitialized.js */ 31);
  18483. function _possibleConstructorReturn(self, call) {
  18484. if (call && (_typeof(call) === "object" || typeof call === "function")) {
  18485. return call;
  18486. } else if (call !== void 0) {
  18487. throw new TypeError("Derived constructors may only return object or undefined");
  18488. }
  18489. return assertThisInitialized(self);
  18490. }
  18491. module.exports = _possibleConstructorReturn, module.exports.__esModule = true, module.exports["default"] = module.exports;
  18492. /***/ }),
  18493. /***/ 35:
  18494. /*!***************************************************************!*\
  18495. !*** ./node_modules/@babel/runtime/helpers/getPrototypeOf.js ***!
  18496. \***************************************************************/
  18497. /*! no static exports found */
  18498. /***/ (function(module, exports) {
  18499. function _getPrototypeOf(o) {
  18500. module.exports = _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) {
  18501. return o.__proto__ || Object.getPrototypeOf(o);
  18502. }, module.exports.__esModule = true, module.exports["default"] = module.exports;
  18503. return _getPrototypeOf(o);
  18504. }
  18505. module.exports = _getPrototypeOf, module.exports.__esModule = true, module.exports["default"] = module.exports;
  18506. /***/ }),
  18507. /***/ 36:
  18508. /*!****************************************************************!*\
  18509. !*** ./node_modules/@babel/runtime/helpers/wrapNativeSuper.js ***!
  18510. \****************************************************************/
  18511. /*! no static exports found */
  18512. /***/ (function(module, exports, __webpack_require__) {
  18513. var getPrototypeOf = __webpack_require__(/*! ./getPrototypeOf.js */ 35);
  18514. var setPrototypeOf = __webpack_require__(/*! ./setPrototypeOf.js */ 16);
  18515. var isNativeFunction = __webpack_require__(/*! ./isNativeFunction.js */ 37);
  18516. var construct = __webpack_require__(/*! ./construct.js */ 15);
  18517. function _wrapNativeSuper(Class) {
  18518. var _cache = typeof Map === "function" ? new Map() : undefined;
  18519. module.exports = _wrapNativeSuper = function _wrapNativeSuper(Class) {
  18520. if (Class === null || !isNativeFunction(Class)) return Class;
  18521. if (typeof Class !== "function") {
  18522. throw new TypeError("Super expression must either be null or a function");
  18523. }
  18524. if (typeof _cache !== "undefined") {
  18525. if (_cache.has(Class)) return _cache.get(Class);
  18526. _cache.set(Class, Wrapper);
  18527. }
  18528. function Wrapper() {
  18529. return construct(Class, arguments, getPrototypeOf(this).constructor);
  18530. }
  18531. Wrapper.prototype = Object.create(Class.prototype, {
  18532. constructor: {
  18533. value: Wrapper,
  18534. enumerable: false,
  18535. writable: true,
  18536. configurable: true
  18537. }
  18538. });
  18539. return setPrototypeOf(Wrapper, Class);
  18540. }, module.exports.__esModule = true, module.exports["default"] = module.exports;
  18541. return _wrapNativeSuper(Class);
  18542. }
  18543. module.exports = _wrapNativeSuper, module.exports.__esModule = true, module.exports["default"] = module.exports;
  18544. /***/ }),
  18545. /***/ 37:
  18546. /*!*****************************************************************!*\
  18547. !*** ./node_modules/@babel/runtime/helpers/isNativeFunction.js ***!
  18548. \*****************************************************************/
  18549. /*! no static exports found */
  18550. /***/ (function(module, exports) {
  18551. function _isNativeFunction(fn) {
  18552. try {
  18553. return Function.toString.call(fn).indexOf("[native code]") !== -1;
  18554. } catch (e) {
  18555. return typeof fn === "function";
  18556. }
  18557. }
  18558. module.exports = _isNativeFunction, module.exports.__esModule = true, module.exports["default"] = module.exports;
  18559. /***/ }),
  18560. /***/ 38:
  18561. /*!**************************************************************************************!*\
  18562. !*** D:/AAAcompany_product/新建文件夹/product_wx/pages.json?{"type":"origin-pages-json"} ***!
  18563. \**************************************************************************************/
  18564. /*! no static exports found */
  18565. /***/ (function(module, exports, __webpack_require__) {
  18566. "use strict";
  18567. Object.defineProperty(exports, "__esModule", {
  18568. value: true
  18569. });
  18570. exports.default = void 0;
  18571. var _default = {
  18572. "pages": [{
  18573. "path": "pages/login/login",
  18574. "style": {
  18575. "navigationBarTitleText": "登录",
  18576. "app-plus": {
  18577. "titleNView": {
  18578. "buttons": [{
  18579. "text": "",
  18580. "fontSrc": "/static/uni.ttf",
  18581. "fontSize": "22px",
  18582. "color": "#FFFFFF"
  18583. }]
  18584. }
  18585. },
  18586. "usingComponents": {
  18587. "van-button": "/wxcomponents/weapp/dist/button/index",
  18588. "van-toast": "/wxcomponents/weapp/dist/toast/index",
  18589. "van-field": "/wxcomponents/weapp/dist/field/index",
  18590. "van-popup": "/wxcomponents/weapp/dist/popup/index",
  18591. "van-picker": "/wxcomponents/weapp/dist/picker/index",
  18592. "van-dialog": "/wxcomponents/weapp/dist/dialog/index"
  18593. }
  18594. }
  18595. }, {
  18596. "path": "pages/login2/login",
  18597. "style": {
  18598. "navigationBarTitleText": "登录",
  18599. "app-plus": {
  18600. "titleNView": {
  18601. "buttons": [{
  18602. "text": "",
  18603. "fontSrc": "/static/uni.ttf",
  18604. "fontSize": "22px",
  18605. "color": "#FFFFFF"
  18606. }]
  18607. }
  18608. },
  18609. "usingComponents": {
  18610. "van-button": "/wxcomponents/weapp/dist/button/index",
  18611. "van-toast": "/wxcomponents/weapp/dist/toast/index",
  18612. "van-field": "/wxcomponents/weapp/dist/field/index",
  18613. "van-popup": "/wxcomponents/weapp/dist/popup/index",
  18614. "van-picker": "/wxcomponents/weapp/dist/picker/index",
  18615. "van-dialog": "/wxcomponents/weapp/dist/dialog/index"
  18616. }
  18617. }
  18618. }, {
  18619. "path": "pages/index/index",
  18620. "style": {
  18621. "navigationBarTitleText": "首页"
  18622. },
  18623. "usingComponents": {
  18624. "van-button": "/wxcomponents/weapp/dist/button/index",
  18625. "van-toast": "/wxcomponents/weapp/dist/toast/index",
  18626. "van-field": "/wxcomponents/weapp/dist/field/index",
  18627. "van-popup": "/wxcomponents/weapp/dist/popup/index",
  18628. "van-picker": "/wxcomponents/weapp/dist/picker/index",
  18629. "van-dialog": "/wxcomponents/weapp/dist/dialog/index"
  18630. }
  18631. }, {
  18632. "path": "pages/mine/mine",
  18633. "style": {
  18634. "navigationBarTitleText": "我的",
  18635. "app-plus": {
  18636. "bounce": "vertical",
  18637. "titleNView": {
  18638. "buttons": [{
  18639. "text": "",
  18640. "fontSrc": "/static/uni.ttf",
  18641. "fontSize": "22px",
  18642. "color": "#FFFFFF"
  18643. }]
  18644. }
  18645. },
  18646. "usingComponents": {
  18647. "van-button": "/wxcomponents/weapp/dist/button/index",
  18648. "van-toast": "/wxcomponents/weapp/dist/toast/index",
  18649. "van-field": "/wxcomponents/weapp/dist/field/index",
  18650. "van-popup": "/wxcomponents/weapp/dist/popup/index",
  18651. "van-picker": "/wxcomponents/weapp/dist/picker/index",
  18652. "van-dialog": "/wxcomponents/weapp/dist/dialog/index",
  18653. "van-icon": "/wxcomponents/weapp/dist/icon/index"
  18654. }
  18655. }
  18656. }],
  18657. "subPackages": [{
  18658. "root": "pages/subPackages",
  18659. "pages": [{
  18660. "path": "gocompnay/index",
  18661. "style": {
  18662. "navigationBarTitleText": "企业端",
  18663. "enablePullDownRefresh": true,
  18664. "onReachBottomDistance": 100,
  18665. "app-plus": {
  18666. "bounce": "vertical",
  18667. "titleNView": {
  18668. "buttons": [{
  18669. "text": "",
  18670. "fontSrc": "/static/uni.ttf",
  18671. "fontSize": "22px",
  18672. "color": "#FFFFFF"
  18673. }]
  18674. }
  18675. },
  18676. "component": true
  18677. }
  18678. }, {
  18679. "path": "eventRelease/index",
  18680. "style": {
  18681. "navigationBarTitleText": "活动发布",
  18682. "enablePullDownRefresh": true,
  18683. "onReachBottomDistance": 100,
  18684. "app-plus": {
  18685. "bounce": "vertical",
  18686. "titleNView": {
  18687. "buttons": [{
  18688. "text": "",
  18689. "fontSrc": "/static/uni.ttf",
  18690. "fontSize": "22px",
  18691. "color": "#FFFFFF"
  18692. }]
  18693. }
  18694. },
  18695. "component": true,
  18696. "usingComponents": {
  18697. "van-empty": "/wxcomponents/weapp/dist/empty/index",
  18698. "van-button": "/wxcomponents/weapp/dist/button/index",
  18699. "van-toast": "/wxcomponents/weapp/dist/toast/index",
  18700. "van-field": "/wxcomponents/weapp/dist/field/index",
  18701. "van-popup": "/wxcomponents/weapp/dist/popup/index",
  18702. "van-picker": "/wxcomponents/weapp/dist/picker/index",
  18703. "van-dialog": "/wxcomponents/weapp/dist/dialog/index",
  18704. "van-icon": "/wxcomponents/weapp/dist/icon/index",
  18705. "van-tab": "/wxcomponents/weapp/dist/tab/index",
  18706. "van-tabs": "/wxcomponents/weapp/dist/tabs/index",
  18707. "van-uploader": "/wxcomponents/weapp/dist/uploader/index"
  18708. }
  18709. }
  18710. }, {
  18711. "path": "eventRelease/add",
  18712. "style": {
  18713. "navigationBarTitleText": "活动发布",
  18714. "enablePullDownRefresh": true,
  18715. "onReachBottomDistance": 100,
  18716. "app-plus": {
  18717. "bounce": "vertical",
  18718. "titleNView": {
  18719. "buttons": [{
  18720. "text": "",
  18721. "fontSrc": "/static/uni.ttf",
  18722. "fontSize": "22px",
  18723. "color": "#FFFFFF"
  18724. }]
  18725. }
  18726. },
  18727. "component": true,
  18728. "usingComponents": {
  18729. "van-empty": "/wxcomponents/weapp/dist/empty/index",
  18730. "van-button": "/wxcomponents/weapp/dist/button/index",
  18731. "van-toast": "/wxcomponents/weapp/dist/toast/index",
  18732. "van-field": "/wxcomponents/weapp/dist/field/index",
  18733. "van-popup": "/wxcomponents/weapp/dist/popup/index",
  18734. "van-picker": "/wxcomponents/weapp/dist/picker/index",
  18735. "van-dialog": "/wxcomponents/weapp/dist/dialog/index",
  18736. "van-icon": "/wxcomponents/weapp/dist/icon/index",
  18737. "van-tab": "/wxcomponents/weapp/dist/tab/index",
  18738. "van-tabs": "/wxcomponents/weapp/dist/tabs/index",
  18739. "van-datetime-picker": "/wxcomponents/weapp/dist/datetime-picker/index",
  18740. "van-uploader": "/wxcomponents/weapp/dist/uploader/index"
  18741. }
  18742. }
  18743. }, {
  18744. "path": "venueRoom/meetingroom",
  18745. "style": {
  18746. "navigationBarTitleText": "场馆审核",
  18747. "enablePullDownRefresh": true,
  18748. "onReachBottomDistance": 100,
  18749. "app-plus": {
  18750. "bounce": "vertical",
  18751. "titleNView": {
  18752. "buttons": [{
  18753. "text": "",
  18754. "fontSrc": "/static/uni.ttf",
  18755. "fontSize": "22px",
  18756. "color": "#FFFFFF"
  18757. }]
  18758. }
  18759. },
  18760. "component": true,
  18761. "usingComponents": {
  18762. "van-radio": "/wxcomponents/weapp/dist/radio/index",
  18763. "van-radio-group": "/wxcomponents/weapp/dist/radio-group/index",
  18764. "van-empty": "/wxcomponents/weapp/dist/empty/index",
  18765. "van-button": "/wxcomponents/weapp/dist/button/index",
  18766. "van-toast": "/wxcomponents/weapp/dist/toast/index",
  18767. "van-field": "/wxcomponents/weapp/dist/field/index",
  18768. "van-popup": "/wxcomponents/weapp/dist/popup/index",
  18769. "van-picker": "/wxcomponents/weapp/dist/picker/index",
  18770. "van-dialog": "/wxcomponents/weapp/dist/dialog/index",
  18771. "van-icon": "/wxcomponents/weapp/dist/icon/index",
  18772. "van-tab": "/wxcomponents/weapp/dist/tab/index",
  18773. "van-tabs": "/wxcomponents/weapp/dist/tabs/index"
  18774. }
  18775. }
  18776. }, {
  18777. "path": "activity/index",
  18778. "style": {
  18779. "navigationBarTitleText": "活动核销签到",
  18780. "enablePullDownRefresh": true,
  18781. "onReachBottomDistance": 100,
  18782. "app-plus": {
  18783. "bounce": "vertical",
  18784. "titleNView": {
  18785. "buttons": [{
  18786. "text": "",
  18787. "fontSrc": "/static/uni.ttf",
  18788. "fontSize": "22px",
  18789. "color": "#FFFFFF"
  18790. }]
  18791. }
  18792. },
  18793. "component": true,
  18794. "usingComponents": {
  18795. "van-radio": "/wxcomponents/weapp/dist/radio/index",
  18796. "van-radio-group": "/wxcomponents/weapp/dist/radio-group/index",
  18797. "van-empty": "/wxcomponents/weapp/dist/empty/index",
  18798. "van-button": "/wxcomponents/weapp/dist/button/index",
  18799. "van-toast": "/wxcomponents/weapp/dist/toast/index",
  18800. "van-field": "/wxcomponents/weapp/dist/field/index",
  18801. "van-popup": "/wxcomponents/weapp/dist/popup/index",
  18802. "van-picker": "/wxcomponents/weapp/dist/picker/index",
  18803. "van-dialog": "/wxcomponents/weapp/dist/dialog/index",
  18804. "van-icon": "/wxcomponents/weapp/dist/icon/index",
  18805. "van-tab": "/wxcomponents/weapp/dist/tab/index",
  18806. "van-tabs": "/wxcomponents/weapp/dist/tabs/index"
  18807. }
  18808. }
  18809. }, {
  18810. "path": "activity/code",
  18811. "style": {
  18812. "navigationBarTitleText": "活动核销扫码确认签到",
  18813. "enablePullDownRefresh": true,
  18814. "onReachBottomDistance": 100,
  18815. "app-plus": {
  18816. "bounce": "vertical",
  18817. "titleNView": {
  18818. "buttons": [{
  18819. "text": "",
  18820. "fontSrc": "/static/uni.ttf",
  18821. "fontSize": "22px",
  18822. "color": "#FFFFFF"
  18823. }]
  18824. }
  18825. },
  18826. "component": true,
  18827. "usingComponents": {
  18828. "van-radio": "/wxcomponents/weapp/dist/radio/index",
  18829. "van-radio-group": "/wxcomponents/weapp/dist/radio-group/index",
  18830. "van-empty": "/wxcomponents/weapp/dist/empty/index",
  18831. "van-button": "/wxcomponents/weapp/dist/button/index",
  18832. "van-toast": "/wxcomponents/weapp/dist/toast/index",
  18833. "van-field": "/wxcomponents/weapp/dist/field/index",
  18834. "van-popup": "/wxcomponents/weapp/dist/popup/index",
  18835. "van-picker": "/wxcomponents/weapp/dist/picker/index",
  18836. "van-dialog": "/wxcomponents/weapp/dist/dialog/index",
  18837. "van-icon": "/wxcomponents/weapp/dist/icon/index",
  18838. "van-tab": "/wxcomponents/weapp/dist/tab/index",
  18839. "van-tabs": "/wxcomponents/weapp/dist/tabs/index"
  18840. }
  18841. }
  18842. }, {
  18843. "path": "activityPromulgate/list",
  18844. "style": {
  18845. "navigationBarTitleText": "活动发布",
  18846. "enablePullDownRefresh": true,
  18847. "onReachBottomDistance": 100,
  18848. "app-plus": {
  18849. "bounce": "vertical",
  18850. "titleNView": {
  18851. "buttons": [{
  18852. "text": "",
  18853. "fontSrc": "/static/uni.ttf",
  18854. "fontSize": "22px",
  18855. "color": "#FFFFFF"
  18856. }]
  18857. }
  18858. },
  18859. "component": true,
  18860. "usingComponents": {
  18861. "van-radio": "/wxcomponents/weapp/dist/radio/index",
  18862. "van-radio-group": "/wxcomponents/weapp/dist/radio-group/index",
  18863. "van-empty": "/wxcomponents/weapp/dist/empty/index",
  18864. "van-button": "/wxcomponents/weapp/dist/button/index",
  18865. "van-toast": "/wxcomponents/weapp/dist/toast/index",
  18866. "van-field": "/wxcomponents/weapp/dist/field/index",
  18867. "van-popup": "/wxcomponents/weapp/dist/popup/index",
  18868. "van-picker": "/wxcomponents/weapp/dist/picker/index",
  18869. "van-dialog": "/wxcomponents/weapp/dist/dialog/index",
  18870. "van-icon": "/wxcomponents/weapp/dist/icon/index",
  18871. "van-tab": "/wxcomponents/weapp/dist/tab/index",
  18872. "van-tabs": "/wxcomponents/weapp/dist/tabs/index"
  18873. }
  18874. }
  18875. }, {
  18876. "path": "password/index",
  18877. "style": {
  18878. "navigationBarTitleText": "修改密码",
  18879. "enablePullDownRefresh": true,
  18880. "onReachBottomDistance": 100,
  18881. "app-plus": {
  18882. "bounce": "vertical",
  18883. "titleNView": {
  18884. "buttons": [{
  18885. "text": "",
  18886. "fontSrc": "/static/uni.ttf",
  18887. "fontSize": "22px",
  18888. "color": "#FFFFFF"
  18889. }]
  18890. }
  18891. },
  18892. "component": true,
  18893. "usingComponents": {
  18894. "van-radio": "/wxcomponents/weapp/dist/radio/index",
  18895. "van-radio-group": "/wxcomponents/weapp/dist/radio-group/index",
  18896. "van-empty": "/wxcomponents/weapp/dist/empty/index",
  18897. "van-button": "/wxcomponents/weapp/dist/button/index",
  18898. "van-toast": "/wxcomponents/weapp/dist/toast/index",
  18899. "van-field": "/wxcomponents/weapp/dist/field/index",
  18900. "van-popup": "/wxcomponents/weapp/dist/popup/index",
  18901. "van-picker": "/wxcomponents/weapp/dist/picker/index",
  18902. "van-dialog": "/wxcomponents/weapp/dist/dialog/index",
  18903. "van-icon": "/wxcomponents/weapp/dist/icon/index",
  18904. "van-tab": "/wxcomponents/weapp/dist/tab/index",
  18905. "van-tabs": "/wxcomponents/weapp/dist/tabs/index"
  18906. }
  18907. }
  18908. }, {
  18909. "path": "repairDispatch-app/index",
  18910. "style": {
  18911. "navigationBarTitleText": "报修派单",
  18912. "enablePullDownRefresh": true,
  18913. "onReachBottomDistance": 100,
  18914. "app-plus": {
  18915. "bounce": "vertical",
  18916. "titleNView": {
  18917. "buttons": [{
  18918. "text": "",
  18919. "fontSrc": "/static/uni.ttf",
  18920. "fontSize": "22px",
  18921. "color": "#FFFFFF"
  18922. }]
  18923. }
  18924. },
  18925. "component": true,
  18926. "usingComponents": {
  18927. "van-empty": "/wxcomponents/weapp/dist/empty/index",
  18928. "van-button": "/wxcomponents/weapp/dist/button/index",
  18929. "van-toast": "/wxcomponents/weapp/dist/toast/index",
  18930. "van-field": "/wxcomponents/weapp/dist/field/index",
  18931. "van-popup": "/wxcomponents/weapp/dist/popup/index",
  18932. "van-picker": "/wxcomponents/weapp/dist/picker/index",
  18933. "van-dialog": "/wxcomponents/weapp/dist/dialog/index",
  18934. "van-icon": "/wxcomponents/weapp/dist/icon/index",
  18935. "van-tab": "/wxcomponents/weapp/dist/tab/index",
  18936. "van-tabs": "/wxcomponents/weapp/dist/tabs/index",
  18937. "van-uploader": "/wxcomponents/weapp/dist/uploader/index"
  18938. }
  18939. }
  18940. }, {
  18941. "path": "repairDispatch-app/add",
  18942. "style": {
  18943. "navigationBarTitleText": "新增报修派单",
  18944. "enablePullDownRefresh": true,
  18945. "onReachBottomDistance": 100,
  18946. "app-plus": {
  18947. "bounce": "vertical",
  18948. "titleNView": {
  18949. "buttons": [{
  18950. "text": "",
  18951. "fontSrc": "/static/uni.ttf",
  18952. "fontSize": "22px",
  18953. "color": "#FFFFFF"
  18954. }]
  18955. }
  18956. },
  18957. "component": true,
  18958. "usingComponents": {
  18959. "van-empty": "/wxcomponents/weapp/dist/empty/index",
  18960. "van-button": "/wxcomponents/weapp/dist/button/index",
  18961. "van-toast": "/wxcomponents/weapp/dist/toast/index",
  18962. "van-field": "/wxcomponents/weapp/dist/field/index",
  18963. "van-popup": "/wxcomponents/weapp/dist/popup/index",
  18964. "van-picker": "/wxcomponents/weapp/dist/picker/index",
  18965. "van-dialog": "/wxcomponents/weapp/dist/dialog/index",
  18966. "van-icon": "/wxcomponents/weapp/dist/icon/index",
  18967. "van-tab": "/wxcomponents/weapp/dist/tab/index",
  18968. "van-tabs": "/wxcomponents/weapp/dist/tabs/index",
  18969. "van-uploader": "/wxcomponents/weapp/dist/uploader/index"
  18970. }
  18971. }
  18972. }, {
  18973. "path": "repairprocessing-app/detail",
  18974. "style": {
  18975. "navigationBarTitleText": "报修处理-详情",
  18976. "enablePullDownRefresh": true,
  18977. "onReachBottomDistance": 100,
  18978. "app-plus": {
  18979. "bounce": "vertical",
  18980. "titleNView": {
  18981. "buttons": [{
  18982. "text": "",
  18983. "fontSrc": "/static/uni.ttf",
  18984. "fontSize": "22px",
  18985. "color": "#FFFFFF"
  18986. }]
  18987. }
  18988. },
  18989. "component": true,
  18990. "usingComponents": {
  18991. "van-steps": "/wxcomponents/weapp/dist/steps/index",
  18992. "van-empty": "/wxcomponents/weapp/dist/empty/index",
  18993. "van-button": "/wxcomponents/weapp/dist/button/index",
  18994. "van-toast": "/wxcomponents/weapp/dist/toast/index",
  18995. "van-field": "/wxcomponents/weapp/dist/field/index",
  18996. "van-popup": "/wxcomponents/weapp/dist/popup/index",
  18997. "van-picker": "/wxcomponents/weapp/dist/picker/index",
  18998. "van-dialog": "/wxcomponents/weapp/dist/dialog/index",
  18999. "van-icon": "/wxcomponents/weapp/dist/icon/index",
  19000. "van-tab": "/wxcomponents/weapp/dist/tab/index",
  19001. "van-tabs": "/wxcomponents/weapp/dist/tabs/index",
  19002. "van-uploader": "/wxcomponents/weapp/dist/uploader/index"
  19003. }
  19004. }
  19005. }, {
  19006. "path": "repairprocessing-app/index",
  19007. "style": {
  19008. "navigationBarTitleText": "报修处理",
  19009. "enablePullDownRefresh": true,
  19010. "onReachBottomDistance": 100,
  19011. "app-plus": {
  19012. "bounce": "vertical",
  19013. "titleNView": {
  19014. "buttons": [{
  19015. "text": "",
  19016. "fontSrc": "/static/uni.ttf",
  19017. "fontSize": "22px",
  19018. "color": "#FFFFFF"
  19019. }]
  19020. }
  19021. },
  19022. "component": true,
  19023. "usingComponents": {
  19024. "van-empty": "/wxcomponents/weapp/dist/empty/index",
  19025. "van-button": "/wxcomponents/weapp/dist/button/index",
  19026. "van-toast": "/wxcomponents/weapp/dist/toast/index",
  19027. "van-field": "/wxcomponents/weapp/dist/field/index",
  19028. "van-popup": "/wxcomponents/weapp/dist/popup/index",
  19029. "van-picker": "/wxcomponents/weapp/dist/picker/index",
  19030. "van-dialog": "/wxcomponents/weapp/dist/dialog/index",
  19031. "van-icon": "/wxcomponents/weapp/dist/icon/index",
  19032. "van-tab": "/wxcomponents/weapp/dist/tab/index",
  19033. "van-tabs": "/wxcomponents/weapp/dist/tabs/index",
  19034. "van-uploader": "/wxcomponents/weapp/dist/uploader/index"
  19035. }
  19036. }
  19037. }, {
  19038. "path": "modifySend/index",
  19039. "style": {
  19040. "navigationBarTitleText": "整改派单",
  19041. "enablePullDownRefresh": true,
  19042. "onReachBottomDistance": 100,
  19043. "app-plus": {
  19044. "bounce": "vertical",
  19045. "titleNView": {
  19046. "buttons": [{
  19047. "text": "",
  19048. "fontSrc": "/static/uni.ttf",
  19049. "fontSize": "22px",
  19050. "color": "#FFFFFF"
  19051. }]
  19052. }
  19053. },
  19054. "component": true,
  19055. "usingComponents": {
  19056. "van-empty": "/wxcomponents/weapp/dist/empty/index",
  19057. "van-button": "/wxcomponents/weapp/dist/button/index",
  19058. "van-toast": "/wxcomponents/weapp/dist/toast/index",
  19059. "van-field": "/wxcomponents/weapp/dist/field/index",
  19060. "van-popup": "/wxcomponents/weapp/dist/popup/index",
  19061. "van-picker": "/wxcomponents/weapp/dist/picker/index",
  19062. "van-dialog": "/wxcomponents/weapp/dist/dialog/index",
  19063. "van-icon": "/wxcomponents/weapp/dist/icon/index",
  19064. "van-tab": "/wxcomponents/weapp/dist/tab/index",
  19065. "van-tabs": "/wxcomponents/weapp/dist/tabs/index",
  19066. "van-uploader": "/wxcomponents/weapp/dist/uploader/index"
  19067. }
  19068. }
  19069. }, {
  19070. "path": "modifyReport/index",
  19071. "style": {
  19072. "navigationBarTitleText": "整改填报",
  19073. "enablePullDownRefresh": true,
  19074. "onReachBottomDistance": 100,
  19075. "app-plus": {
  19076. "bounce": "vertical",
  19077. "titleNView": {
  19078. "buttons": [{
  19079. "text": "",
  19080. "fontSrc": "/static/uni.ttf",
  19081. "fontSize": "22px",
  19082. "color": "#FFFFFF"
  19083. }]
  19084. }
  19085. },
  19086. "component": true,
  19087. "usingComponents": {
  19088. "van-empty": "/wxcomponents/weapp/dist/empty/index",
  19089. "van-button": "/wxcomponents/weapp/dist/button/index",
  19090. "van-toast": "/wxcomponents/weapp/dist/toast/index",
  19091. "van-field": "/wxcomponents/weapp/dist/field/index",
  19092. "van-popup": "/wxcomponents/weapp/dist/popup/index",
  19093. "van-picker": "/wxcomponents/weapp/dist/picker/index",
  19094. "van-dialog": "/wxcomponents/weapp/dist/dialog/index",
  19095. "van-icon": "/wxcomponents/weapp/dist/icon/index",
  19096. "van-tab": "/wxcomponents/weapp/dist/tab/index",
  19097. "van-tabs": "/wxcomponents/weapp/dist/tabs/index",
  19098. "van-uploader": "/wxcomponents/weapp/dist/uploader/index"
  19099. }
  19100. }
  19101. }, {
  19102. "path": "modifyReport/detail",
  19103. "style": {
  19104. "navigationBarTitleText": "整改详情",
  19105. "enablePullDownRefresh": true,
  19106. "onReachBottomDistance": 100,
  19107. "app-plus": {
  19108. "bounce": "vertical",
  19109. "titleNView": {
  19110. "buttons": [{
  19111. "text": "",
  19112. "fontSrc": "/static/uni.ttf",
  19113. "fontSize": "22px",
  19114. "color": "#FFFFFF"
  19115. }]
  19116. }
  19117. },
  19118. "component": true,
  19119. "usingComponents": {
  19120. "van-empty": "/wxcomponents/weapp/dist/empty/index",
  19121. "van-button": "/wxcomponents/weapp/dist/button/index",
  19122. "van-toast": "/wxcomponents/weapp/dist/toast/index",
  19123. "van-field": "/wxcomponents/weapp/dist/field/index",
  19124. "van-popup": "/wxcomponents/weapp/dist/popup/index",
  19125. "van-picker": "/wxcomponents/weapp/dist/picker/index",
  19126. "van-dialog": "/wxcomponents/weapp/dist/dialog/index",
  19127. "van-icon": "/wxcomponents/weapp/dist/icon/index",
  19128. "van-tab": "/wxcomponents/weapp/dist/tab/index",
  19129. "van-tabs": "/wxcomponents/weapp/dist/tabs/index",
  19130. "van-uploader": "/wxcomponents/weapp/dist/uploader/index"
  19131. }
  19132. }
  19133. }, {
  19134. "path": "modifyHandle/handle",
  19135. "style": {
  19136. "navigationBarTitleText": "整改处理 ",
  19137. "enablePullDownRefresh": true,
  19138. "onReachBottomDistance": 100,
  19139. "app-plus": {
  19140. "bounce": "vertical",
  19141. "titleNView": {
  19142. "buttons": [{
  19143. "text": "",
  19144. "fontSrc": "/static/uni.ttf",
  19145. "fontSize": "22px",
  19146. "color": "#FFFFFF"
  19147. }]
  19148. }
  19149. },
  19150. "component": true,
  19151. "usingComponents": {
  19152. "van-empty": "/wxcomponents/weapp/dist/empty/index",
  19153. "van-button": "/wxcomponents/weapp/dist/button/index",
  19154. "van-toast": "/wxcomponents/weapp/dist/toast/index",
  19155. "van-field": "/wxcomponents/weapp/dist/field/index",
  19156. "van-popup": "/wxcomponents/weapp/dist/popup/index",
  19157. "van-picker": "/wxcomponents/weapp/dist/picker/index",
  19158. "van-dialog": "/wxcomponents/weapp/dist/dialog/index",
  19159. "van-icon": "/wxcomponents/weapp/dist/icon/index",
  19160. "van-tab": "/wxcomponents/weapp/dist/tab/index",
  19161. "van-tabs": "/wxcomponents/weapp/dist/tabs/index",
  19162. "van-uploader": "/wxcomponents/weapp/dist/uploader/index"
  19163. }
  19164. }
  19165. }, {
  19166. "path": "modifyHandle/index",
  19167. "style": {
  19168. "navigationBarTitleText": "整改处理",
  19169. "enablePullDownRefresh": true,
  19170. "onReachBottomDistance": 100,
  19171. "app-plus": {
  19172. "bounce": "vertical",
  19173. "titleNView": {
  19174. "buttons": [{
  19175. "text": "",
  19176. "fontSrc": "/static/uni.ttf",
  19177. "fontSize": "22px",
  19178. "color": "#FFFFFF"
  19179. }]
  19180. }
  19181. },
  19182. "component": true,
  19183. "usingComponents": {
  19184. "van-empty": "/wxcomponents/weapp/dist/empty/index",
  19185. "van-button": "/wxcomponents/weapp/dist/button/index",
  19186. "van-toast": "/wxcomponents/weapp/dist/toast/index",
  19187. "van-field": "/wxcomponents/weapp/dist/field/index",
  19188. "van-popup": "/wxcomponents/weapp/dist/popup/index",
  19189. "van-picker": "/wxcomponents/weapp/dist/picker/index",
  19190. "van-dialog": "/wxcomponents/weapp/dist/dialog/index",
  19191. "van-icon": "/wxcomponents/weapp/dist/icon/index",
  19192. "van-tab": "/wxcomponents/weapp/dist/tab/index",
  19193. "van-tabs": "/wxcomponents/weapp/dist/tabs/index",
  19194. "van-uploader": "/wxcomponents/weapp/dist/uploader/index"
  19195. }
  19196. }
  19197. }, {
  19198. "path": "modifyReport/add",
  19199. "style": {
  19200. "navigationBarTitleText": "整改新增",
  19201. "enablePullDownRefresh": true,
  19202. "onReachBottomDistance": 100,
  19203. "app-plus": {
  19204. "bounce": "vertical",
  19205. "titleNView": {
  19206. "buttons": [{
  19207. "text": "",
  19208. "fontSrc": "/static/uni.ttf",
  19209. "fontSize": "22px",
  19210. "color": "#FFFFFF"
  19211. }]
  19212. }
  19213. },
  19214. "component": true,
  19215. "usingComponents": {
  19216. "van-empty": "/wxcomponents/weapp/dist/empty/index",
  19217. "van-button": "/wxcomponents/weapp/dist/button/index",
  19218. "van-toast": "/wxcomponents/weapp/dist/toast/index",
  19219. "van-field": "/wxcomponents/weapp/dist/field/index",
  19220. "van-popup": "/wxcomponents/weapp/dist/popup/index",
  19221. "van-picker": "/wxcomponents/weapp/dist/picker/index",
  19222. "van-dialog": "/wxcomponents/weapp/dist/dialog/index",
  19223. "van-icon": "/wxcomponents/weapp/dist/icon/index",
  19224. "van-tab": "/wxcomponents/weapp/dist/tab/index",
  19225. "van-tabs": "/wxcomponents/weapp/dist/tabs/index",
  19226. "van-uploader": "/wxcomponents/weapp/dist/uploader/index"
  19227. }
  19228. }
  19229. }, {
  19230. "path": "toread/index",
  19231. "style": {
  19232. "navigationBarTitleText": "我的待阅",
  19233. "enablePullDownRefresh": true,
  19234. "onReachBottomDistance": 100,
  19235. "app-plus": {
  19236. "bounce": "vertical",
  19237. "titleNView": {
  19238. "buttons": [{
  19239. "text": "",
  19240. "fontSrc": "/static/uni.ttf",
  19241. "fontSize": "22px",
  19242. "color": "#FFFFFF"
  19243. }]
  19244. }
  19245. },
  19246. "component": true,
  19247. "usingComponents": {
  19248. "van-empty": "/wxcomponents/weapp/dist/empty/index",
  19249. "van-button": "/wxcomponents/weapp/dist/button/index",
  19250. "van-toast": "/wxcomponents/weapp/dist/toast/index",
  19251. "van-field": "/wxcomponents/weapp/dist/field/index",
  19252. "van-popup": "/wxcomponents/weapp/dist/popup/index",
  19253. "van-picker": "/wxcomponents/weapp/dist/picker/index",
  19254. "van-dialog": "/wxcomponents/weapp/dist/dialog/index",
  19255. "van-icon": "/wxcomponents/weapp/dist/icon/index",
  19256. "van-tab": "/wxcomponents/weapp/dist/tab/index",
  19257. "van-tabs": "/wxcomponents/weapp/dist/tabs/index"
  19258. }
  19259. }
  19260. }, {
  19261. "path": "todo/index",
  19262. "style": {
  19263. "navigationBarTitleText": "我的待办",
  19264. "enablePullDownRefresh": true,
  19265. "onReachBottomDistance": 100,
  19266. "app-plus": {
  19267. "bounce": "vertical",
  19268. "titleNView": {
  19269. "buttons": [{
  19270. "text": "",
  19271. "fontSrc": "/static/uni.ttf",
  19272. "fontSize": "22px",
  19273. "color": "#FFFFFF"
  19274. }]
  19275. }
  19276. },
  19277. "component": true,
  19278. "usingComponents": {
  19279. "van-empty": "/wxcomponents/weapp/dist/empty/index",
  19280. "van-button": "/wxcomponents/weapp/dist/button/index",
  19281. "van-toast": "/wxcomponents/weapp/dist/toast/index",
  19282. "van-field": "/wxcomponents/weapp/dist/field/index",
  19283. "van-popup": "/wxcomponents/weapp/dist/popup/index",
  19284. "van-picker": "/wxcomponents/weapp/dist/picker/index",
  19285. "van-dialog": "/wxcomponents/weapp/dist/dialog/index",
  19286. "van-icon": "/wxcomponents/weapp/dist/icon/index",
  19287. "van-tab": "/wxcomponents/weapp/dist/tab/index",
  19288. "van-tabs": "/wxcomponents/weapp/dist/tabs/index"
  19289. }
  19290. }
  19291. }, {
  19292. "path": "venueRoom/confirm",
  19293. "style": {
  19294. "navigationBarTitleText": "场馆-审核",
  19295. "enablePullDownRefresh": true,
  19296. "onReachBottomDistance": 100,
  19297. "app-plus": {
  19298. "bounce": "vertical",
  19299. "titleNView": {
  19300. "buttons": [{
  19301. "text": "",
  19302. "fontSrc": "/static/uni.ttf",
  19303. "fontSize": "22px",
  19304. "color": "#FFFFFF"
  19305. }]
  19306. }
  19307. },
  19308. "component": true,
  19309. "usingComponents": {
  19310. "van-empty": "/wxcomponents/weapp/dist/empty/index",
  19311. "van-button": "/wxcomponents/weapp/dist/button/index",
  19312. "van-toast": "/wxcomponents/weapp/dist/toast/index",
  19313. "van-field": "/wxcomponents/weapp/dist/field/index",
  19314. "van-popup": "/wxcomponents/weapp/dist/popup/index",
  19315. "van-picker": "/wxcomponents/weapp/dist/picker/index",
  19316. "van-dialog": "/wxcomponents/weapp/dist/dialog/index",
  19317. "van-icon": "/wxcomponents/weapp/dist/icon/index",
  19318. "van-tab": "/wxcomponents/weapp/dist/tab/index",
  19319. "van-tabs": "/wxcomponents/weapp/dist/tabs/index"
  19320. }
  19321. }
  19322. }, {
  19323. "path": "housedetails/housedetails",
  19324. "style": {
  19325. "navigationBarTitleText": "房源详情",
  19326. "enablePullDownRefresh": true,
  19327. "onReachBottomDistance": 100,
  19328. "app-plus": {
  19329. "bounce": "vertical",
  19330. "titleNView": {
  19331. "buttons": [{
  19332. "text": "",
  19333. "fontSrc": "/static/uni.ttf",
  19334. "fontSize": "22px",
  19335. "color": "#FFFFFF"
  19336. }]
  19337. }
  19338. },
  19339. "component": true,
  19340. "usingComponents": {
  19341. "van-empty": "/wxcomponents/weapp/dist/empty/index",
  19342. "van-button": "/wxcomponents/weapp/dist/button/index",
  19343. "van-toast": "/wxcomponents/weapp/dist/toast/index",
  19344. "van-field": "/wxcomponents/weapp/dist/field/index",
  19345. "van-popup": "/wxcomponents/weapp/dist/popup/index",
  19346. "van-picker": "/wxcomponents/weapp/dist/picker/index",
  19347. "van-dialog": "/wxcomponents/weapp/dist/dialog/index",
  19348. "van-icon": "/wxcomponents/weapp/dist/icon/index",
  19349. "van-tab": "/wxcomponents/weapp/dist/tab/index",
  19350. "van-tabs": "/wxcomponents/weapp/dist/tabs/index"
  19351. }
  19352. }
  19353. }, {
  19354. "path": "addintention/addintention",
  19355. "style": {
  19356. "navigationBarTitleText": "新增意向",
  19357. "enablePullDownRefresh": true,
  19358. "onReachBottomDistance": 100,
  19359. "app-plus": {
  19360. "bounce": "vertical",
  19361. "titleNView": {
  19362. "buttons": [{
  19363. "text": "",
  19364. "fontSrc": "/static/uni.ttf",
  19365. "fontSize": "22px",
  19366. "color": "#FFFFFF"
  19367. }]
  19368. }
  19369. },
  19370. "component": true,
  19371. "usingComponents": {
  19372. "van-button": "/wxcomponents/weapp/dist/button/index",
  19373. "van-toast": "/wxcomponents/weapp/dist/toast/index",
  19374. "van-field": "/wxcomponents/weapp/dist/field/index",
  19375. "van-popup": "/wxcomponents/weapp/dist/popup/index",
  19376. "van-picker": "/wxcomponents/weapp/dist/picker/index",
  19377. "van-dialog": "/wxcomponents/weapp/dist/dialog/index",
  19378. "van-icon": "/wxcomponents/weapp/dist/icon/index",
  19379. "van-tab": "/wxcomponents/weapp/dist/tab/index",
  19380. "van-tabs": "/wxcomponents/weapp/dist/tabs/index",
  19381. "van-datetime-picker": "/wxcomponents/weapp/dist/datetime-picker/index",
  19382. "van-uploader": "/wxcomponents/weapp/dist/uploader/index"
  19383. }
  19384. }
  19385. }, {
  19386. "path": "chosseHouse/chosseHouse",
  19387. "style": {
  19388. "navigationBarTitleText": "选择房源",
  19389. "enablePullDownRefresh": true,
  19390. "onReachBottomDistance": 100,
  19391. "app-plus": {
  19392. "bounce": "vertical",
  19393. "titleNView": {
  19394. "buttons": [{
  19395. "text": "",
  19396. "fontSrc": "/static/uni.ttf",
  19397. "fontSize": "22px",
  19398. "color": "#FFFFFF"
  19399. }]
  19400. }
  19401. },
  19402. "component": true,
  19403. "usingComponents": {
  19404. "van-button": "/wxcomponents/weapp/dist/button/index",
  19405. "van-toast": "/wxcomponents/weapp/dist/toast/index",
  19406. "van-field": "/wxcomponents/weapp/dist/field/index",
  19407. "van-popup": "/wxcomponents/weapp/dist/popup/index",
  19408. "van-picker": "/wxcomponents/weapp/dist/picker/index",
  19409. "van-dialog": "/wxcomponents/weapp/dist/dialog/index",
  19410. "van-icon": "/wxcomponents/weapp/dist/icon/index",
  19411. "van-tab": "/wxcomponents/weapp/dist/tab/index",
  19412. "van-tabs": "/wxcomponents/weapp/dist/tabs/index",
  19413. "van-datetime-picker": "/wxcomponents/weapp/dist/datetime-picker/index",
  19414. "van-uploader": "/wxcomponents/weapp/dist/uploader/index",
  19415. "van-checkbox": "/wxcomponents/weapp/dist/checkbox/index",
  19416. "van-checkbox-group": "/wxcomponents/weapp/dist/checkbox-group/index"
  19417. }
  19418. }
  19419. }, {
  19420. "path": "companyHouse/companyHouse",
  19421. "style": {
  19422. "navigationBarTitleText": "企业库",
  19423. "enablePullDownRefresh": true,
  19424. "onReachBottomDistance": 100,
  19425. "app-plus": {
  19426. "bounce": "vertical",
  19427. "titleNView": {
  19428. "buttons": [{
  19429. "text": "",
  19430. "fontSrc": "/static/uni.ttf",
  19431. "fontSize": "22px",
  19432. "color": "#FFFFFF"
  19433. }]
  19434. }
  19435. },
  19436. "component": true,
  19437. "usingComponents": {
  19438. "van-button": "/wxcomponents/weapp/dist/button/index",
  19439. "van-toast": "/wxcomponents/weapp/dist/toast/index",
  19440. "van-field": "/wxcomponents/weapp/dist/field/index",
  19441. "van-popup": "/wxcomponents/weapp/dist/popup/index",
  19442. "van-picker": "/wxcomponents/weapp/dist/picker/index",
  19443. "van-dialog": "/wxcomponents/weapp/dist/dialog/index",
  19444. "van-icon": "/wxcomponents/weapp/dist/icon/index",
  19445. "van-tab": "/wxcomponents/weapp/dist/tab/index",
  19446. "van-tabs": "/wxcomponents/weapp/dist/tabs/index",
  19447. "van-datetime-picker": "/wxcomponents/weapp/dist/datetime-picker/index",
  19448. "van-uploader": "/wxcomponents/weapp/dist/uploader/index",
  19449. "van-checkbox": "/wxcomponents/weapp/dist/checkbox/index",
  19450. "van-checkbox-group": "/wxcomponents/weapp/dist/checkbox-group/index"
  19451. }
  19452. }
  19453. }, {
  19454. "path": "companyreport/components/reportDetails",
  19455. "style": {
  19456. "navigationBarTitleText": "走访上报-详情",
  19457. "enablePullDownRefresh": true,
  19458. "onReachBottomDistance": 100,
  19459. "app-plus": {
  19460. "bounce": "vertical",
  19461. "titleNView": {
  19462. "buttons": [{
  19463. "text": "",
  19464. "fontSrc": "/static/uni.ttf",
  19465. "fontSize": "22px",
  19466. "color": "#FFFFFF"
  19467. }]
  19468. }
  19469. },
  19470. "component": true,
  19471. "usingComponents": {
  19472. "van-button": "/wxcomponents/weapp/dist/button/index",
  19473. "van-toast": "/wxcomponents/weapp/dist/toast/index",
  19474. "van-field": "/wxcomponents/weapp/dist/field/index",
  19475. "van-popup": "/wxcomponents/weapp/dist/popup/index",
  19476. "van-picker": "/wxcomponents/weapp/dist/picker/index",
  19477. "van-dialog": "/wxcomponents/weapp/dist/dialog/index",
  19478. "van-icon": "/wxcomponents/weapp/dist/icon/index",
  19479. "van-tab": "/wxcomponents/weapp/dist/tab/index",
  19480. "van-tabs": "/wxcomponents/weapp/dist/tabs/index",
  19481. "van-datetime-picker": "/wxcomponents/weapp/dist/datetime-picker/index",
  19482. "van-uploader": "/wxcomponents/weapp/dist/uploader/index",
  19483. "van-checkbox": "/wxcomponents/weapp/dist/checkbox/index",
  19484. "van-checkbox-group": "/wxcomponents/weapp/dist/checkbox-group/index"
  19485. }
  19486. }
  19487. }, {
  19488. "path": "merchants/merchants",
  19489. "style": {
  19490. "navigationBarTitleText": "我的招商",
  19491. "enablePullDownRefresh": true,
  19492. "onReachBottomDistance": 100,
  19493. "app-plus": {
  19494. "bounce": "vertical",
  19495. "titleNView": {
  19496. "buttons": [{
  19497. "text": "",
  19498. "fontSrc": "/static/uni.ttf",
  19499. "fontSize": "22px",
  19500. "color": "#FFFFFF"
  19501. }]
  19502. }
  19503. },
  19504. "component": true,
  19505. "usingComponents": {
  19506. "van-button": "/wxcomponents/weapp/dist/button/index",
  19507. "van-toast": "/wxcomponents/weapp/dist/toast/index",
  19508. "van-field": "/wxcomponents/weapp/dist/field/index",
  19509. "van-popup": "/wxcomponents/weapp/dist/popup/index",
  19510. "van-picker": "/wxcomponents/weapp/dist/picker/index",
  19511. "van-dialog": "/wxcomponents/weapp/dist/dialog/index",
  19512. "van-icon": "/wxcomponents/weapp/dist/icon/index",
  19513. "van-tab": "/wxcomponents/weapp/dist/tab/index",
  19514. "van-tabs": "/wxcomponents/weapp/dist/tabs/index"
  19515. }
  19516. }
  19517. }, {
  19518. "path": "merchants/components/mymechantsdetails",
  19519. "style": {
  19520. "navigationBarTitleText": "我的招商-详情",
  19521. "enablePullDownRefresh": true,
  19522. "onReachBottomDistance": 100,
  19523. "app-plus": {
  19524. "bounce": "vertical",
  19525. "titleNView": {
  19526. "buttons": [{
  19527. "text": "",
  19528. "fontSrc": "/static/uni.ttf",
  19529. "fontSize": "22px",
  19530. "color": "#FFFFFF"
  19531. }]
  19532. }
  19533. },
  19534. "component": true,
  19535. "usingComponents": {
  19536. "van-uploader": "/wxcomponents/weapp/dist/uploader/index",
  19537. "van-button": "/wxcomponents/weapp/dist/button/index",
  19538. "van-toast": "/wxcomponents/weapp/dist/toast/index",
  19539. "van-field": "/wxcomponents/weapp/dist/field/index",
  19540. "van-popup": "/wxcomponents/weapp/dist/popup/index",
  19541. "van-picker": "/wxcomponents/weapp/dist/picker/index",
  19542. "van-dialog": "/wxcomponents/weapp/dist/dialog/index",
  19543. "van-icon": "/wxcomponents/weapp/dist/icon/index",
  19544. "van-tab": "/wxcomponents/weapp/dist/tab/index",
  19545. "van-tabs": "/wxcomponents/weapp/dist/tabs/index"
  19546. }
  19547. }
  19548. }, {
  19549. "path": "reportRepair/index",
  19550. "style": {
  19551. "navigationBarTitleText": "报事报修",
  19552. "enablePullDownRefresh": true,
  19553. "onReachBottomDistance": 100,
  19554. "app-plus": {
  19555. "bounce": "vertical",
  19556. "titleNView": {
  19557. "buttons": [{
  19558. "text": "",
  19559. "fontSrc": "/static/uni.ttf",
  19560. "fontSize": "22px",
  19561. "color": "#FFFFFF"
  19562. }]
  19563. }
  19564. },
  19565. "component": true,
  19566. "usingComponents": {
  19567. "van-uploader": "/wxcomponents/weapp/dist/uploader/index",
  19568. "van-button": "/wxcomponents/weapp/dist/button/index",
  19569. "van-toast": "/wxcomponents/weapp/dist/toast/index",
  19570. "van-field": "/wxcomponents/weapp/dist/field/index",
  19571. "van-popup": "/wxcomponents/weapp/dist/popup/index",
  19572. "van-picker": "/wxcomponents/weapp/dist/picker/index",
  19573. "van-dialog": "/wxcomponents/weapp/dist/dialog/index",
  19574. "van-icon": "/wxcomponents/weapp/dist/icon/index",
  19575. "van-tab": "/wxcomponents/weapp/dist/tab/index",
  19576. "van-tabs": "/wxcomponents/weapp/dist/tabs/index"
  19577. }
  19578. }
  19579. }, {
  19580. "path": "companyreport/companyreport",
  19581. "style": {
  19582. "navigationBarTitleText": "走访上报",
  19583. "enablePullDownRefresh": true,
  19584. "onReachBottomDistance": 100,
  19585. "app-plus": {
  19586. "bounce": "vertical",
  19587. "titleNView": {
  19588. "buttons": [{
  19589. "text": "",
  19590. "fontSrc": "/static/uni.ttf",
  19591. "fontSize": "22px",
  19592. "color": "#FFFFFF"
  19593. }]
  19594. }
  19595. },
  19596. "component": true,
  19597. "usingComponents": {
  19598. "van-button": "/wxcomponents/weapp/dist/button/index",
  19599. "van-toast": "/wxcomponents/weapp/dist/toast/index",
  19600. "van-field": "/wxcomponents/weapp/dist/field/index",
  19601. "van-picker": "/wxcomponents/weapp/dist/picker/index",
  19602. "van-dialog": "/wxcomponents/weapp/dist/dialog/index",
  19603. "van-icon": "/wxcomponents/weapp/dist/icon/index",
  19604. "van-tab": "/wxcomponents/weapp/dist/tab/index",
  19605. "van-tabs": "/wxcomponents/weapp/dist/tabs/index",
  19606. "van-datetime-picker": "/wxcomponents/weapp/dist/datetime-picker/index",
  19607. "van-uploader": "/wxcomponents/weapp/dist/uploader/index",
  19608. "van-checkbox": "/wxcomponents/weapp/dist/checkbox/index",
  19609. "van-checkbox-group": "/wxcomponents/weapp/dist/checkbox-group/index"
  19610. }
  19611. }
  19612. }],
  19613. "network": "all"
  19614. }],
  19615. "globalStyle": {
  19616. "pageOrientation": "portrait",
  19617. "navigationBarTitleText": "Hello uniapp",
  19618. "navigationBarTextStyle": "black",
  19619. "navigationBarBackgroundColor": "#FFFFFF",
  19620. "backgroundColor": "#FFFFFF",
  19621. "backgroundColorTop": "#FFFFFF",
  19622. "backgroundColorBottom": "#F4F5F6",
  19623. "usingComponents": {
  19624. "van-dropdown-menu": "/wxcomponents/weapp/dist/dropdown-menu/index",
  19625. "van-dropdown-item": "/wxcomponents/weapp/dist/dropdown-item/index",
  19626. "van-action-sheet": "/wxcomponents/weapp/dist/action-sheet/index",
  19627. "van-area": "/wxcomponents/weapp/dist/area/index",
  19628. "van-button": "/wxcomponents/weapp/dist/button/index",
  19629. "van-card": "/wxcomponents/weapp/dist/card/index",
  19630. "van-cell": "/wxcomponents/weapp/dist/cell/index",
  19631. "van-cell-group": "/wxcomponents/weapp/dist/cell-group/index",
  19632. "van-checkbox": "/wxcomponents/weapp/dist/checkbox/index",
  19633. "van-checkbox-group": "/wxcomponents/weapp/dist/checkbox-group/index",
  19634. "van-col": "/wxcomponents/weapp/dist/col/index",
  19635. "van-dialog": "/wxcomponents/weapp/dist/dialog/index",
  19636. "van-field": "/wxcomponents/weapp/dist/field/index",
  19637. "van-goods-action": "/wxcomponents/weapp/dist/goods-action/index",
  19638. "van-goods-action-icon": "/wxcomponents/weapp/dist/goods-action-icon/index",
  19639. "van-goods-action-button": "/wxcomponents/weapp/dist/goods-action-button/index",
  19640. "van-icon": "/wxcomponents/weapp/dist/icon/index",
  19641. "van-loading": "/wxcomponents/weapp/dist/loading/index",
  19642. "van-nav-bar": "/wxcomponents/weapp/dist/nav-bar/index",
  19643. "van-notice-bar": "/wxcomponents/weapp/dist/notice-bar/index",
  19644. "van-notify": "/wxcomponents/weapp/dist/notify/index",
  19645. "van-panel": "/wxcomponents/weapp/dist/panel/index",
  19646. "van-popup": "/wxcomponents/weapp/dist/popup/index",
  19647. "van-progress": "/wxcomponents/weapp/dist/progress/index",
  19648. "van-radio": "/wxcomponents/weapp/dist/radio/index",
  19649. "van-radio-group": "/wxcomponents/weapp/dist/radio-group/index",
  19650. "van-row": "/wxcomponents/weapp/dist/row/index",
  19651. "van-search": "/wxcomponents/weapp/dist/search/index",
  19652. "van-slider": "/wxcomponents/weapp/dist/slider/index",
  19653. "van-stepper": "/wxcomponents/weapp/dist/stepper/index",
  19654. "van-sticky": "/wxcomponents/weapp/dist/sticky/index",
  19655. "van-steps": "/wxcomponents/weapp/dist/steps/index",
  19656. "van-submit-bar": "/wxcomponents/weapp/dist/submit-bar/index",
  19657. "van-swipe-cell": "/wxcomponents/weapp/dist/swipe-cell/index",
  19658. "van-switch": "/wxcomponents/weapp/dist/switch/index",
  19659. "van-tab": "/wxcomponents/weapp/dist/tab/index",
  19660. "van-tabs": "/wxcomponents/weapp/dist/tabs/index",
  19661. "van-tabbar": "/wxcomponents/weapp/dist/tabbar/index",
  19662. "van-tabbar-item": "/wxcomponents/weapp/dist/tabbar-item/index",
  19663. "van-tag": "/wxcomponents/weapp/dist/tag/index",
  19664. "van-toast": "/wxcomponents/weapp/dist/toast/index",
  19665. "van-transition": "/wxcomponents/weapp/dist/transition/index",
  19666. "van-tree-select": "/wxcomponents/weapp/dist/tree-select/index",
  19667. "van-datetime-picker": "/wxcomponents/weapp/dist/datetime-picker/index",
  19668. "van-rate": "/wxcomponents/weapp/dist/rate/index",
  19669. "van-collapse": "/wxcomponents/weapp/dist/collapse/index",
  19670. "van-collapse-item": "/wxcomponents/weapp/dist/collapse-item/index",
  19671. "van-picker": "/wxcomponents/weapp/dist/picker/index",
  19672. "van-share-sheet": "/wxcomponents/weapp/dist/share-sheet/index",
  19673. "van-circle": "/wxcomponents/weapp/dist/circle/index",
  19674. "van-grid": "/wxcomponents/weapp/dist/grid/index",
  19675. "van-calendar": "/wxcomponents/weapp/dist/calendar/index"
  19676. }
  19677. },
  19678. "tabBar": {
  19679. "color": "#7A7E83",
  19680. "selectedColor": "#2527AA",
  19681. "borderStyle": "black",
  19682. "backgroundColor": "#F8F8F8",
  19683. "list": [{
  19684. "pagePath": "pages/index/index",
  19685. "iconPath": "static/home.png",
  19686. "selectedIconPath": "static/homeselect.png",
  19687. "text": "首页"
  19688. }, {
  19689. "pagePath": "pages/mine/mine",
  19690. "iconPath": "static/mine.png",
  19691. "selectedIconPath": "static/mineselect.png",
  19692. "text": "我的"
  19693. }]
  19694. },
  19695. "window": {
  19696. "backgroundTextStyle": "dark",
  19697. "navigationBarBackgroundColor": "#ffffff",
  19698. "navigationBarTitleText": "Demo",
  19699. "navigationBarTextStyle": "black",
  19700. "enablePullDownRefresh": true
  19701. },
  19702. "lazyCodeLoading": "requiredComponents"
  19703. };
  19704. exports.default = _default;
  19705. /***/ }),
  19706. /***/ 39:
  19707. /*!*************************************************************************!*\
  19708. !*** D:/AAAcompany_product/新建文件夹/product_wx/pages.json?{"type":"stat"} ***!
  19709. \*************************************************************************/
  19710. /*! no static exports found */
  19711. /***/ (function(module, exports, __webpack_require__) {
  19712. "use strict";
  19713. Object.defineProperty(exports, "__esModule", {
  19714. value: true
  19715. });
  19716. exports.default = void 0;
  19717. var _default = {
  19718. "appid": "__UNI__E97C301"
  19719. };
  19720. exports.default = _default;
  19721. /***/ }),
  19722. /***/ 395:
  19723. /*!*************************************************************************************!*\
  19724. !*** D:/AAAcompany_product/新建文件夹/product_wx/wxcomponents/weapp/dist/radio/index.js ***!
  19725. \*************************************************************************************/
  19726. /*! no static exports found */
  19727. /***/ (function(module, exports, __webpack_require__) {
  19728. "use strict";
  19729. var _version = __webpack_require__(/*! ../common/version */ 396);
  19730. var _component = __webpack_require__(/*! ../common/component */ 397);
  19731. var _relation = __webpack_require__(/*! ../common/relation */ 399);
  19732. (0, _component.VantComponent)({
  19733. field: true,
  19734. relation: (0, _relation.useParent)('radio-group', function () {
  19735. this.updateFromParent();
  19736. }),
  19737. classes: ['icon-class', 'label-class'],
  19738. props: {
  19739. name: null,
  19740. value: null,
  19741. disabled: Boolean,
  19742. useIconSlot: Boolean,
  19743. checkedColor: String,
  19744. labelPosition: {
  19745. type: String,
  19746. value: 'right'
  19747. },
  19748. labelDisabled: Boolean,
  19749. shape: {
  19750. type: String,
  19751. value: 'round'
  19752. },
  19753. iconSize: {
  19754. type: null,
  19755. value: 20
  19756. }
  19757. },
  19758. data: {
  19759. direction: '',
  19760. parentDisabled: false
  19761. },
  19762. methods: {
  19763. updateFromParent: function updateFromParent() {
  19764. if (!this.parent) {
  19765. return;
  19766. }
  19767. var _this$parent$data = this.parent.data,
  19768. value = _this$parent$data.value,
  19769. parentDisabled = _this$parent$data.disabled,
  19770. direction = _this$parent$data.direction;
  19771. this.setData({
  19772. value: value,
  19773. direction: direction,
  19774. parentDisabled: parentDisabled
  19775. });
  19776. },
  19777. emitChange: function emitChange(value) {
  19778. var instance = this.parent || this;
  19779. instance.$emit('input', value);
  19780. instance.$emit('change', value);
  19781. if ((0, _version.canIUseModel)()) {
  19782. instance.setData({
  19783. value: value
  19784. });
  19785. }
  19786. },
  19787. onChange: function onChange() {
  19788. if (!this.data.disabled && !this.data.parentDisabled) {
  19789. this.emitChange(this.data.name);
  19790. }
  19791. },
  19792. onClickLabel: function onClickLabel() {
  19793. var _this$data = this.data,
  19794. disabled = _this$data.disabled,
  19795. parentDisabled = _this$data.parentDisabled,
  19796. labelDisabled = _this$data.labelDisabled,
  19797. name = _this$data.name;
  19798. if (!(disabled || parentDisabled) && !labelDisabled) {
  19799. this.emitChange(name);
  19800. }
  19801. }
  19802. }
  19803. });
  19804. /***/ }),
  19805. /***/ 396:
  19806. /*!****************************************************************************************!*\
  19807. !*** D:/AAAcompany_product/新建文件夹/product_wx/wxcomponents/weapp/dist/common/version.js ***!
  19808. \****************************************************************************************/
  19809. /*! no static exports found */
  19810. /***/ (function(module, exports, __webpack_require__) {
  19811. "use strict";
  19812. /* WEBPACK VAR INJECTION */(function(wx) {
  19813. Object.defineProperty(exports, "__esModule", {
  19814. value: true
  19815. });
  19816. exports.canIUseAnimate = canIUseAnimate;
  19817. exports.canIUseCanvas2d = canIUseCanvas2d;
  19818. exports.canIUseFormFieldButton = canIUseFormFieldButton;
  19819. exports.canIUseGetUserProfile = canIUseGetUserProfile;
  19820. exports.canIUseGroupSetData = canIUseGroupSetData;
  19821. exports.canIUseModel = canIUseModel;
  19822. exports.canIUseNextTick = canIUseNextTick;
  19823. exports.getSystemInfoSync = getSystemInfoSync;
  19824. var systemInfo;
  19825. function getSystemInfoSync() {
  19826. if (systemInfo == null) {
  19827. systemInfo = wx.getSystemInfoSync();
  19828. }
  19829. return systemInfo;
  19830. }
  19831. function compareVersion(v1, v2) {
  19832. v1 = v1.split('.');
  19833. v2 = v2.split('.');
  19834. var len = Math.max(v1.length, v2.length);
  19835. while (v1.length < len) {
  19836. v1.push('0');
  19837. }
  19838. while (v2.length < len) {
  19839. v2.push('0');
  19840. }
  19841. for (var i = 0; i < len; i++) {
  19842. var num1 = parseInt(v1[i], 10);
  19843. var num2 = parseInt(v2[i], 10);
  19844. if (num1 > num2) {
  19845. return 1;
  19846. }
  19847. if (num1 < num2) {
  19848. return -1;
  19849. }
  19850. }
  19851. return 0;
  19852. }
  19853. function gte(version) {
  19854. var system = getSystemInfoSync();
  19855. return compareVersion(system.SDKVersion, version) >= 0;
  19856. }
  19857. function canIUseModel() {
  19858. return gte('2.9.3');
  19859. }
  19860. function canIUseFormFieldButton() {
  19861. return gte('2.10.3');
  19862. }
  19863. function canIUseAnimate() {
  19864. return gte('2.9.0');
  19865. }
  19866. function canIUseGroupSetData() {
  19867. return gte('2.4.0');
  19868. }
  19869. function canIUseNextTick() {
  19870. try {
  19871. return wx.canIUse('nextTick');
  19872. } catch (e) {
  19873. return gte('2.7.1');
  19874. }
  19875. }
  19876. function canIUseCanvas2d() {
  19877. return gte('2.9.0');
  19878. }
  19879. function canIUseGetUserProfile() {
  19880. return !!wx.getUserProfile;
  19881. }
  19882. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/wx.js */ 1)["default"]))
  19883. /***/ }),
  19884. /***/ 397:
  19885. /*!******************************************************************************************!*\
  19886. !*** D:/AAAcompany_product/新建文件夹/product_wx/wxcomponents/weapp/dist/common/component.js ***!
  19887. \******************************************************************************************/
  19888. /*! no static exports found */
  19889. /***/ (function(module, exports, __webpack_require__) {
  19890. "use strict";
  19891. Object.defineProperty(exports, "__esModule", {
  19892. value: true
  19893. });
  19894. exports.VantComponent = VantComponent;
  19895. var _basic = __webpack_require__(/*! ../mixins/basic */ 398);
  19896. function mapKeys(source, target, map) {
  19897. Object.keys(map).forEach(function (key) {
  19898. if (source[key]) {
  19899. target[map[key]] = source[key];
  19900. }
  19901. });
  19902. }
  19903. function VantComponent(vantOptions) {
  19904. var options = {};
  19905. mapKeys(vantOptions, options, {
  19906. data: 'data',
  19907. props: 'properties',
  19908. watch: 'observers',
  19909. mixins: 'behaviors',
  19910. methods: 'methods',
  19911. beforeCreate: 'created',
  19912. created: 'attached',
  19913. mounted: 'ready',
  19914. destroyed: 'detached',
  19915. classes: 'externalClasses'
  19916. });
  19917. // add default externalClasses
  19918. options.externalClasses = options.externalClasses || [];
  19919. options.externalClasses.push('custom-class');
  19920. // add default behaviors
  19921. options.behaviors = options.behaviors || [];
  19922. options.behaviors.push(_basic.basic);
  19923. // add relations
  19924. var relation = vantOptions.relation;
  19925. if (relation) {
  19926. options.relations = relation.relations;
  19927. options.behaviors.push(relation.mixin);
  19928. }
  19929. // map field to form-field behavior
  19930. if (vantOptions.field) {
  19931. options.behaviors.push('wx://form-field');
  19932. }
  19933. // add default options
  19934. options.options = {
  19935. multipleSlots: true,
  19936. addGlobalClass: true
  19937. };
  19938. Component(options);
  19939. }
  19940. /***/ }),
  19941. /***/ 398:
  19942. /*!**************************************************************************************!*\
  19943. !*** D:/AAAcompany_product/新建文件夹/product_wx/wxcomponents/weapp/dist/mixins/basic.js ***!
  19944. \**************************************************************************************/
  19945. /*! no static exports found */
  19946. /***/ (function(module, exports, __webpack_require__) {
  19947. "use strict";
  19948. /* WEBPACK VAR INJECTION */(function(wx) {
  19949. Object.defineProperty(exports, "__esModule", {
  19950. value: true
  19951. });
  19952. exports.basic = void 0;
  19953. var basic = Behavior({
  19954. methods: {
  19955. $emit: function $emit(name, detail, options) {
  19956. this.triggerEvent(name, detail, options);
  19957. },
  19958. set: function set(data) {
  19959. this.setData(data);
  19960. return new Promise(function (resolve) {
  19961. return wx.nextTick(resolve);
  19962. });
  19963. }
  19964. }
  19965. });
  19966. exports.basic = basic;
  19967. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/wx.js */ 1)["default"]))
  19968. /***/ }),
  19969. /***/ 399:
  19970. /*!*****************************************************************************************!*\
  19971. !*** D:/AAAcompany_product/新建文件夹/product_wx/wxcomponents/weapp/dist/common/relation.js ***!
  19972. \*****************************************************************************************/
  19973. /*! no static exports found */
  19974. /***/ (function(module, exports, __webpack_require__) {
  19975. "use strict";
  19976. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  19977. Object.defineProperty(exports, "__esModule", {
  19978. value: true
  19979. });
  19980. exports.useChildren = useChildren;
  19981. exports.useParent = useParent;
  19982. var _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/defineProperty */ 11));
  19983. function useParent(name, onEffect) {
  19984. var path = "../".concat(name, "/index");
  19985. return {
  19986. relations: (0, _defineProperty2.default)({}, path, {
  19987. type: 'ancestor',
  19988. linked: function linked() {
  19989. onEffect && onEffect.call(this);
  19990. },
  19991. linkChanged: function linkChanged() {
  19992. onEffect && onEffect.call(this);
  19993. },
  19994. unlinked: function unlinked() {
  19995. onEffect && onEffect.call(this);
  19996. }
  19997. }),
  19998. mixin: Behavior({
  19999. created: function created() {
  20000. var _this = this;
  20001. Object.defineProperty(this, 'parent', {
  20002. get: function get() {
  20003. return _this.getRelationNodes(path)[0];
  20004. }
  20005. });
  20006. Object.defineProperty(this, 'index', {
  20007. // @ts-ignore
  20008. get: function get() {
  20009. var _a, _b;
  20010. return (_b = (_a = _this.parent) === null || _a === void 0 ? void 0 : _a.children) === null || _b === void 0 ? void 0 : _b.indexOf(_this);
  20011. }
  20012. });
  20013. }
  20014. })
  20015. };
  20016. }
  20017. function useChildren(name, onEffect) {
  20018. var path = "../".concat(name, "/index");
  20019. return {
  20020. relations: (0, _defineProperty2.default)({}, path, {
  20021. type: 'descendant',
  20022. linked: function linked(target) {
  20023. onEffect && onEffect.call(this, target);
  20024. },
  20025. linkChanged: function linkChanged(target) {
  20026. onEffect && onEffect.call(this, target);
  20027. },
  20028. unlinked: function unlinked(target) {
  20029. onEffect && onEffect.call(this, target);
  20030. }
  20031. }),
  20032. mixin: Behavior({
  20033. created: function created() {
  20034. var _this2 = this;
  20035. Object.defineProperty(this, 'children', {
  20036. get: function get() {
  20037. return _this2.getRelationNodes(path) || [];
  20038. }
  20039. });
  20040. }
  20041. })
  20042. };
  20043. }
  20044. /***/ }),
  20045. /***/ 4:
  20046. /*!**********************************************************************!*\
  20047. !*** ./node_modules/@babel/runtime/helpers/interopRequireDefault.js ***!
  20048. \**********************************************************************/
  20049. /*! no static exports found */
  20050. /***/ (function(module, exports) {
  20051. function _interopRequireDefault(obj) {
  20052. return obj && obj.__esModule ? obj : {
  20053. "default": obj
  20054. };
  20055. }
  20056. module.exports = _interopRequireDefault, module.exports.__esModule = true, module.exports["default"] = module.exports;
  20057. /***/ }),
  20058. /***/ 40:
  20059. /*!**************************************************************************!*\
  20060. !*** D:/AAAcompany_product/新建文件夹/product_wx/pages.json?{"type":"style"} ***!
  20061. \**************************************************************************/
  20062. /*! no static exports found */
  20063. /***/ (function(module, exports, __webpack_require__) {
  20064. "use strict";
  20065. Object.defineProperty(exports, "__esModule", {
  20066. value: true
  20067. });
  20068. exports.default = void 0;
  20069. var _default = {
  20070. "pages": {
  20071. "pages/login/login": {
  20072. "navigationBarTitleText": "登录"
  20073. },
  20074. "pages/login2/login": {
  20075. "navigationBarTitleText": "登录"
  20076. },
  20077. "pages/index/index": {
  20078. "navigationBarTitleText": "首页"
  20079. },
  20080. "pages/mine/mine": {
  20081. "navigationBarTitleText": "我的"
  20082. },
  20083. "pages/subPackages/gocompnay/index": {
  20084. "navigationBarTitleText": "企业端",
  20085. "enablePullDownRefresh": true,
  20086. "onReachBottomDistance": 100,
  20087. "component": true
  20088. },
  20089. "pages/subPackages/eventRelease/index": {
  20090. "navigationBarTitleText": "活动发布",
  20091. "enablePullDownRefresh": true,
  20092. "onReachBottomDistance": 100,
  20093. "component": true
  20094. },
  20095. "pages/subPackages/eventRelease/add": {
  20096. "navigationBarTitleText": "活动发布",
  20097. "enablePullDownRefresh": true,
  20098. "onReachBottomDistance": 100,
  20099. "component": true
  20100. },
  20101. "pages/subPackages/venueRoom/meetingroom": {
  20102. "navigationBarTitleText": "场馆审核",
  20103. "enablePullDownRefresh": true,
  20104. "onReachBottomDistance": 100,
  20105. "component": true
  20106. },
  20107. "pages/subPackages/activity/index": {
  20108. "navigationBarTitleText": "活动核销签到",
  20109. "enablePullDownRefresh": true,
  20110. "onReachBottomDistance": 100,
  20111. "component": true
  20112. },
  20113. "pages/subPackages/activity/code": {
  20114. "navigationBarTitleText": "活动核销扫码确认签到",
  20115. "enablePullDownRefresh": true,
  20116. "onReachBottomDistance": 100,
  20117. "component": true
  20118. },
  20119. "pages/subPackages/activityPromulgate/list": {
  20120. "navigationBarTitleText": "活动发布",
  20121. "enablePullDownRefresh": true,
  20122. "onReachBottomDistance": 100,
  20123. "component": true
  20124. },
  20125. "pages/subPackages/password/index": {
  20126. "navigationBarTitleText": "修改密码",
  20127. "enablePullDownRefresh": true,
  20128. "onReachBottomDistance": 100,
  20129. "component": true
  20130. },
  20131. "pages/subPackages/repairDispatch-app/index": {
  20132. "navigationBarTitleText": "报修派单",
  20133. "enablePullDownRefresh": true,
  20134. "onReachBottomDistance": 100,
  20135. "component": true
  20136. },
  20137. "pages/subPackages/repairDispatch-app/add": {
  20138. "navigationBarTitleText": "新增报修派单",
  20139. "enablePullDownRefresh": true,
  20140. "onReachBottomDistance": 100,
  20141. "component": true
  20142. },
  20143. "pages/subPackages/repairprocessing-app/detail": {
  20144. "navigationBarTitleText": "报修处理-详情",
  20145. "enablePullDownRefresh": true,
  20146. "onReachBottomDistance": 100,
  20147. "component": true
  20148. },
  20149. "pages/subPackages/repairprocessing-app/index": {
  20150. "navigationBarTitleText": "报修处理",
  20151. "enablePullDownRefresh": true,
  20152. "onReachBottomDistance": 100,
  20153. "component": true
  20154. },
  20155. "pages/subPackages/modifySend/index": {
  20156. "navigationBarTitleText": "整改派单",
  20157. "enablePullDownRefresh": true,
  20158. "onReachBottomDistance": 100,
  20159. "component": true
  20160. },
  20161. "pages/subPackages/modifyReport/index": {
  20162. "navigationBarTitleText": "整改填报",
  20163. "enablePullDownRefresh": true,
  20164. "onReachBottomDistance": 100,
  20165. "component": true
  20166. },
  20167. "pages/subPackages/modifyReport/detail": {
  20168. "navigationBarTitleText": "整改详情",
  20169. "enablePullDownRefresh": true,
  20170. "onReachBottomDistance": 100,
  20171. "component": true
  20172. },
  20173. "pages/subPackages/modifyHandle/handle": {
  20174. "navigationBarTitleText": "整改处理 ",
  20175. "enablePullDownRefresh": true,
  20176. "onReachBottomDistance": 100,
  20177. "component": true
  20178. },
  20179. "pages/subPackages/modifyHandle/index": {
  20180. "navigationBarTitleText": "整改处理",
  20181. "enablePullDownRefresh": true,
  20182. "onReachBottomDistance": 100,
  20183. "component": true
  20184. },
  20185. "pages/subPackages/modifyReport/add": {
  20186. "navigationBarTitleText": "整改新增",
  20187. "enablePullDownRefresh": true,
  20188. "onReachBottomDistance": 100,
  20189. "component": true
  20190. },
  20191. "pages/subPackages/toread/index": {
  20192. "navigationBarTitleText": "我的待阅",
  20193. "enablePullDownRefresh": true,
  20194. "onReachBottomDistance": 100,
  20195. "component": true
  20196. },
  20197. "pages/subPackages/todo/index": {
  20198. "navigationBarTitleText": "我的待办",
  20199. "enablePullDownRefresh": true,
  20200. "onReachBottomDistance": 100,
  20201. "component": true
  20202. },
  20203. "pages/subPackages/venueRoom/confirm": {
  20204. "navigationBarTitleText": "场馆-审核",
  20205. "enablePullDownRefresh": true,
  20206. "onReachBottomDistance": 100,
  20207. "component": true
  20208. },
  20209. "pages/subPackages/housedetails/housedetails": {
  20210. "navigationBarTitleText": "房源详情",
  20211. "enablePullDownRefresh": true,
  20212. "onReachBottomDistance": 100,
  20213. "component": true
  20214. },
  20215. "pages/subPackages/addintention/addintention": {
  20216. "navigationBarTitleText": "新增意向",
  20217. "enablePullDownRefresh": true,
  20218. "onReachBottomDistance": 100,
  20219. "component": true
  20220. },
  20221. "pages/subPackages/chosseHouse/chosseHouse": {
  20222. "navigationBarTitleText": "选择房源",
  20223. "enablePullDownRefresh": true,
  20224. "onReachBottomDistance": 100,
  20225. "component": true
  20226. },
  20227. "pages/subPackages/companyHouse/companyHouse": {
  20228. "navigationBarTitleText": "企业库",
  20229. "enablePullDownRefresh": true,
  20230. "onReachBottomDistance": 100,
  20231. "component": true
  20232. },
  20233. "pages/subPackages/companyreport/components/reportDetails": {
  20234. "navigationBarTitleText": "走访上报-详情",
  20235. "enablePullDownRefresh": true,
  20236. "onReachBottomDistance": 100,
  20237. "component": true
  20238. },
  20239. "pages/subPackages/merchants/merchants": {
  20240. "navigationBarTitleText": "我的招商",
  20241. "enablePullDownRefresh": true,
  20242. "onReachBottomDistance": 100,
  20243. "component": true
  20244. },
  20245. "pages/subPackages/merchants/components/mymechantsdetails": {
  20246. "navigationBarTitleText": "我的招商-详情",
  20247. "enablePullDownRefresh": true,
  20248. "onReachBottomDistance": 100,
  20249. "component": true
  20250. },
  20251. "pages/subPackages/reportRepair/index": {
  20252. "navigationBarTitleText": "报事报修",
  20253. "enablePullDownRefresh": true,
  20254. "onReachBottomDistance": 100,
  20255. "component": true
  20256. },
  20257. "pages/subPackages/companyreport/companyreport": {
  20258. "navigationBarTitleText": "走访上报",
  20259. "enablePullDownRefresh": true,
  20260. "onReachBottomDistance": 100,
  20261. "component": true
  20262. }
  20263. },
  20264. "globalStyle": {
  20265. "pageOrientation": "portrait",
  20266. "navigationBarTitleText": "Hello uniapp",
  20267. "navigationBarTextStyle": "black",
  20268. "navigationBarBackgroundColor": "#FFFFFF",
  20269. "backgroundColor": "#FFFFFF",
  20270. "backgroundColorTop": "#FFFFFF",
  20271. "backgroundColorBottom": "#F4F5F6"
  20272. }
  20273. };
  20274. exports.default = _default;
  20275. /***/ }),
  20276. /***/ 400:
  20277. /*!*******************************************************************************************!*\
  20278. !*** D:/AAAcompany_product/新建文件夹/product_wx/wxcomponents/weapp/dist/radio-group/index.js ***!
  20279. \*******************************************************************************************/
  20280. /*! no static exports found */
  20281. /***/ (function(module, exports, __webpack_require__) {
  20282. "use strict";
  20283. var _component = __webpack_require__(/*! ../common/component */ 397);
  20284. var _relation = __webpack_require__(/*! ../common/relation */ 399);
  20285. (0, _component.VantComponent)({
  20286. field: true,
  20287. relation: (0, _relation.useChildren)('radio'),
  20288. props: {
  20289. value: {
  20290. type: null,
  20291. observer: 'updateChildren'
  20292. },
  20293. direction: String,
  20294. disabled: {
  20295. type: Boolean,
  20296. observer: 'updateChildren'
  20297. }
  20298. },
  20299. methods: {
  20300. updateChildren: function updateChildren() {
  20301. this.children.forEach(function (child) {
  20302. return child.updateFromParent();
  20303. });
  20304. }
  20305. }
  20306. });
  20307. /***/ }),
  20308. /***/ 401:
  20309. /*!************************************************************************************!*\
  20310. !*** D:/AAAcompany_product/新建文件夹/product_wx/wxcomponents/weapp/dist/rate/index.js ***!
  20311. \************************************************************************************/
  20312. /*! no static exports found */
  20313. /***/ (function(module, exports, __webpack_require__) {
  20314. "use strict";
  20315. /* WEBPACK VAR INJECTION */(function(wx) {
  20316. var _utils = __webpack_require__(/*! ../common/utils */ 402);
  20317. var _component = __webpack_require__(/*! ../common/component */ 397);
  20318. var _version = __webpack_require__(/*! ../common/version */ 396);
  20319. (0, _component.VantComponent)({
  20320. field: true,
  20321. classes: ['icon-class'],
  20322. props: {
  20323. value: {
  20324. type: Number,
  20325. observer: function observer(value) {
  20326. if (value !== this.data.innerValue) {
  20327. this.setData({
  20328. innerValue: value
  20329. });
  20330. }
  20331. }
  20332. },
  20333. readonly: Boolean,
  20334. disabled: Boolean,
  20335. allowHalf: Boolean,
  20336. size: null,
  20337. icon: {
  20338. type: String,
  20339. value: 'star'
  20340. },
  20341. voidIcon: {
  20342. type: String,
  20343. value: 'star-o'
  20344. },
  20345. color: String,
  20346. voidColor: String,
  20347. disabledColor: String,
  20348. count: {
  20349. type: Number,
  20350. value: 5,
  20351. observer: function observer(value) {
  20352. this.setData({
  20353. innerCountArray: Array.from({
  20354. length: value
  20355. })
  20356. });
  20357. }
  20358. },
  20359. gutter: null,
  20360. touchable: {
  20361. type: Boolean,
  20362. value: true
  20363. }
  20364. },
  20365. data: {
  20366. innerValue: 0,
  20367. innerCountArray: Array.from({
  20368. length: 5
  20369. })
  20370. },
  20371. methods: {
  20372. onSelect: function onSelect(event) {
  20373. var _this = this;
  20374. var data = this.data;
  20375. var score = event.currentTarget.dataset.score;
  20376. if (!data.disabled && !data.readonly) {
  20377. this.setData({
  20378. innerValue: score + 1
  20379. });
  20380. if ((0, _version.canIUseModel)()) {
  20381. this.setData({
  20382. value: score + 1
  20383. });
  20384. }
  20385. wx.nextTick(function () {
  20386. _this.$emit('input', score + 1);
  20387. _this.$emit('change', score + 1);
  20388. });
  20389. }
  20390. },
  20391. onTouchMove: function onTouchMove(event) {
  20392. var _this2 = this;
  20393. var touchable = this.data.touchable;
  20394. if (!touchable) return;
  20395. var clientX = event.touches[0].clientX;
  20396. (0, _utils.getAllRect)(this, '.van-rate__icon').then(function (list) {
  20397. var target = list.sort(function (cur, next) {
  20398. return cur.dataset.score - next.dataset.score;
  20399. }).find(function (item) {
  20400. return clientX >= item.left && clientX <= item.right;
  20401. });
  20402. if (target != null) {
  20403. _this2.onSelect(Object.assign(Object.assign({}, event), {
  20404. currentTarget: target
  20405. }));
  20406. }
  20407. });
  20408. }
  20409. }
  20410. });
  20411. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/wx.js */ 1)["default"]))
  20412. /***/ }),
  20413. /***/ 402:
  20414. /*!**************************************************************************************!*\
  20415. !*** D:/AAAcompany_product/新建文件夹/product_wx/wxcomponents/weapp/dist/common/utils.js ***!
  20416. \**************************************************************************************/
  20417. /*! no static exports found */
  20418. /***/ (function(module, exports, __webpack_require__) {
  20419. "use strict";
  20420. /* WEBPACK VAR INJECTION */(function(wx) {
  20421. Object.defineProperty(exports, "__esModule", {
  20422. value: true
  20423. });
  20424. exports.addUnit = addUnit;
  20425. exports.getAllRect = getAllRect;
  20426. exports.getCurrentPage = getCurrentPage;
  20427. exports.getRect = getRect;
  20428. Object.defineProperty(exports, "getSystemInfoSync", {
  20429. enumerable: true,
  20430. get: function get() {
  20431. return _version.getSystemInfoSync;
  20432. }
  20433. });
  20434. exports.groupSetData = groupSetData;
  20435. Object.defineProperty(exports, "isDef", {
  20436. enumerable: true,
  20437. get: function get() {
  20438. return _validator.isDef;
  20439. }
  20440. });
  20441. exports.nextTick = nextTick;
  20442. exports.pickExclude = pickExclude;
  20443. exports.range = range;
  20444. exports.requestAnimationFrame = requestAnimationFrame;
  20445. exports.toPromise = toPromise;
  20446. var _validator = __webpack_require__(/*! ./validator */ 403);
  20447. var _version = __webpack_require__(/*! ./version */ 396);
  20448. function range(num, min, max) {
  20449. return Math.min(Math.max(num, min), max);
  20450. }
  20451. function nextTick(cb) {
  20452. if ((0, _version.canIUseNextTick)()) {
  20453. wx.nextTick(cb);
  20454. } else {
  20455. setTimeout(function () {
  20456. cb();
  20457. }, 1000 / 30);
  20458. }
  20459. }
  20460. function addUnit(value) {
  20461. if (!(0, _validator.isDef)(value)) {
  20462. return undefined;
  20463. }
  20464. value = String(value);
  20465. return (0, _validator.isNumber)(value) ? "".concat(value, "px") : value;
  20466. }
  20467. function requestAnimationFrame(cb) {
  20468. return setTimeout(function () {
  20469. cb();
  20470. }, 1000 / 30);
  20471. }
  20472. function pickExclude(obj, keys) {
  20473. if (!(0, _validator.isPlainObject)(obj)) {
  20474. return {};
  20475. }
  20476. return Object.keys(obj).reduce(function (prev, key) {
  20477. if (!keys.includes(key)) {
  20478. prev[key] = obj[key];
  20479. }
  20480. return prev;
  20481. }, {});
  20482. }
  20483. function getRect(context, selector) {
  20484. return new Promise(function (resolve) {
  20485. wx.createSelectorQuery().in(context).select(selector).boundingClientRect().exec(function () {
  20486. var rect = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
  20487. return resolve(rect[0]);
  20488. });
  20489. });
  20490. }
  20491. function getAllRect(context, selector) {
  20492. return new Promise(function (resolve) {
  20493. wx.createSelectorQuery().in(context).selectAll(selector).boundingClientRect().exec(function () {
  20494. var rect = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
  20495. return resolve(rect[0]);
  20496. });
  20497. });
  20498. }
  20499. function groupSetData(context, cb) {
  20500. if ((0, _version.canIUseGroupSetData)()) {
  20501. context.groupSetData(cb);
  20502. } else {
  20503. cb();
  20504. }
  20505. }
  20506. function toPromise(promiseLike) {
  20507. if ((0, _validator.isPromise)(promiseLike)) {
  20508. return promiseLike;
  20509. }
  20510. return Promise.resolve(promiseLike);
  20511. }
  20512. function getCurrentPage() {
  20513. var pages = getCurrentPages();
  20514. return pages[pages.length - 1];
  20515. }
  20516. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/wx.js */ 1)["default"]))
  20517. /***/ }),
  20518. /***/ 403:
  20519. /*!******************************************************************************************!*\
  20520. !*** D:/AAAcompany_product/新建文件夹/product_wx/wxcomponents/weapp/dist/common/validator.js ***!
  20521. \******************************************************************************************/
  20522. /*! no static exports found */
  20523. /***/ (function(module, exports, __webpack_require__) {
  20524. "use strict";
  20525. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  20526. Object.defineProperty(exports, "__esModule", {
  20527. value: true
  20528. });
  20529. exports.isBoolean = isBoolean;
  20530. exports.isDef = isDef;
  20531. exports.isFunction = isFunction;
  20532. exports.isImageUrl = isImageUrl;
  20533. exports.isNumber = isNumber;
  20534. exports.isObj = isObj;
  20535. exports.isPlainObject = isPlainObject;
  20536. exports.isPromise = isPromise;
  20537. exports.isVideoUrl = isVideoUrl;
  20538. var _typeof2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/typeof */ 13));
  20539. // eslint-disable-next-line @typescript-eslint/ban-types
  20540. function isFunction(val) {
  20541. return typeof val === 'function';
  20542. }
  20543. function isPlainObject(val) {
  20544. return val !== null && (0, _typeof2.default)(val) === 'object' && !Array.isArray(val);
  20545. }
  20546. function isPromise(val) {
  20547. return isPlainObject(val) && isFunction(val.then) && isFunction(val.catch);
  20548. }
  20549. function isDef(value) {
  20550. return value !== undefined && value !== null;
  20551. }
  20552. function isObj(x) {
  20553. var type = (0, _typeof2.default)(x);
  20554. return x !== null && (type === 'object' || type === 'function');
  20555. }
  20556. function isNumber(value) {
  20557. return /^\d+(\.\d+)?$/.test(value);
  20558. }
  20559. function isBoolean(value) {
  20560. return typeof value === 'boolean';
  20561. }
  20562. var IMAGE_REGEXP = /\.(jpeg|jpg|gif|png|svg|webp|jfif|bmp|dpg)/i;
  20563. var VIDEO_REGEXP = /\.(mp4|mpg|mpeg|dat|asf|avi|rm|rmvb|mov|wmv|flv|mkv)/i;
  20564. function isImageUrl(url) {
  20565. return IMAGE_REGEXP.test(url);
  20566. }
  20567. function isVideoUrl(url) {
  20568. return VIDEO_REGEXP.test(url);
  20569. }
  20570. /***/ }),
  20571. /***/ 423:
  20572. /*!***************************************************************************************************************************!*\
  20573. !*** D:/AAAcompany_product/新建文件夹/product_wx/uni_modules/uni-datetime-picker/components/uni-datetime-picker/i18n/index.js ***!
  20574. \***************************************************************************************************************************/
  20575. /*! no static exports found */
  20576. /***/ (function(module, exports, __webpack_require__) {
  20577. "use strict";
  20578. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  20579. Object.defineProperty(exports, "__esModule", {
  20580. value: true
  20581. });
  20582. exports.default = void 0;
  20583. var _en = _interopRequireDefault(__webpack_require__(/*! ./en.json */ 424));
  20584. var _zhHans = _interopRequireDefault(__webpack_require__(/*! ./zh-Hans.json */ 425));
  20585. var _zhHant = _interopRequireDefault(__webpack_require__(/*! ./zh-Hant.json */ 426));
  20586. var _default = {
  20587. en: _en.default,
  20588. 'zh-Hans': _zhHans.default,
  20589. 'zh-Hant': _zhHant.default
  20590. };
  20591. exports.default = _default;
  20592. /***/ }),
  20593. /***/ 424:
  20594. /*!**************************************************************************************************************************!*\
  20595. !*** D:/AAAcompany_product/新建文件夹/product_wx/uni_modules/uni-datetime-picker/components/uni-datetime-picker/i18n/en.json ***!
  20596. \**************************************************************************************************************************/
  20597. /*! 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 */
  20598. /***/ (function(module) {
  20599. 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\"}");
  20600. /***/ }),
  20601. /***/ 425:
  20602. /*!*******************************************************************************************************************************!*\
  20603. !*** D:/AAAcompany_product/新建文件夹/product_wx/uni_modules/uni-datetime-picker/components/uni-datetime-picker/i18n/zh-Hans.json ***!
  20604. \*******************************************************************************************************************************/
  20605. /*! 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 */
  20606. /***/ (function(module) {
  20607. 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\":\"确认\"}");
  20608. /***/ }),
  20609. /***/ 426:
  20610. /*!*******************************************************************************************************************************!*\
  20611. !*** D:/AAAcompany_product/新建文件夹/product_wx/uni_modules/uni-datetime-picker/components/uni-datetime-picker/i18n/zh-Hant.json ***!
  20612. \*******************************************************************************************************************************/
  20613. /*! 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 */
  20614. /***/ (function(module) {
  20615. 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\":\"確認\"}");
  20616. /***/ }),
  20617. /***/ 427:
  20618. /*!*********************************************************************************************************************!*\
  20619. !*** D:/AAAcompany_product/新建文件夹/product_wx/uni_modules/uni-datetime-picker/components/uni-datetime-picker/util.js ***!
  20620. \*********************************************************************************************************************/
  20621. /*! no static exports found */
  20622. /***/ (function(module, exports, __webpack_require__) {
  20623. "use strict";
  20624. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  20625. Object.defineProperty(exports, "__esModule", {
  20626. value: true
  20627. });
  20628. exports.Calendar = void 0;
  20629. exports.addZero = addZero;
  20630. exports.checkDate = checkDate;
  20631. exports.dateCompare = dateCompare;
  20632. exports.fixIosDateFormat = fixIosDateFormat;
  20633. exports.getDate = getDate;
  20634. exports.getDateTime = getDateTime;
  20635. exports.getDefaultSecond = getDefaultSecond;
  20636. exports.getTime = getTime;
  20637. var _toConsumableArray2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/toConsumableArray */ 18));
  20638. var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ 23));
  20639. var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ 24));
  20640. var Calendar = /*#__PURE__*/function () {
  20641. function Calendar() {
  20642. var _ref = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
  20643. selected = _ref.selected,
  20644. startDate = _ref.startDate,
  20645. endDate = _ref.endDate,
  20646. range = _ref.range;
  20647. (0, _classCallCheck2.default)(this, Calendar);
  20648. // 当前日期
  20649. this.date = this.getDateObj(new Date()); // 当前初入日期
  20650. // 打点信息
  20651. this.selected = selected || [];
  20652. // 起始时间
  20653. this.startDate = startDate;
  20654. // 终止时间
  20655. this.endDate = endDate;
  20656. // 是否范围选择
  20657. this.range = range;
  20658. // 多选状态
  20659. this.cleanMultipleStatus();
  20660. // 每周日期
  20661. this.weeks = {};
  20662. this.lastHover = false;
  20663. }
  20664. /**
  20665. * 设置日期
  20666. * @param {Object} date
  20667. */
  20668. (0, _createClass2.default)(Calendar, [{
  20669. key: "setDate",
  20670. value: function setDate(date) {
  20671. var selectDate = this.getDateObj(date);
  20672. this.getWeeks(selectDate.fullDate);
  20673. }
  20674. /**
  20675. * 清理多选状态
  20676. */
  20677. }, {
  20678. key: "cleanMultipleStatus",
  20679. value: function cleanMultipleStatus() {
  20680. this.multipleStatus = {
  20681. before: '',
  20682. after: '',
  20683. data: []
  20684. };
  20685. }
  20686. }, {
  20687. key: "setStartDate",
  20688. value: function setStartDate(startDate) {
  20689. this.startDate = startDate;
  20690. }
  20691. }, {
  20692. key: "setEndDate",
  20693. value: function setEndDate(endDate) {
  20694. this.endDate = endDate;
  20695. }
  20696. }, {
  20697. key: "getPreMonthObj",
  20698. value: function getPreMonthObj(date) {
  20699. date = fixIosDateFormat(date);
  20700. date = new Date(date);
  20701. var oldMonth = date.getMonth();
  20702. date.setMonth(oldMonth - 1);
  20703. var newMonth = date.getMonth();
  20704. if (oldMonth !== 0 && newMonth - oldMonth === 0) {
  20705. date.setMonth(newMonth - 1);
  20706. }
  20707. return this.getDateObj(date);
  20708. }
  20709. }, {
  20710. key: "getNextMonthObj",
  20711. value: function getNextMonthObj(date) {
  20712. date = fixIosDateFormat(date);
  20713. date = new Date(date);
  20714. var oldMonth = date.getMonth();
  20715. date.setMonth(oldMonth + 1);
  20716. var newMonth = date.getMonth();
  20717. if (newMonth - oldMonth > 1) {
  20718. date.setMonth(newMonth - 1);
  20719. }
  20720. return this.getDateObj(date);
  20721. }
  20722. /**
  20723. * 获取指定格式Date对象
  20724. */
  20725. }, {
  20726. key: "getDateObj",
  20727. value: function getDateObj(date) {
  20728. date = fixIosDateFormat(date);
  20729. date = new Date(date);
  20730. return {
  20731. fullDate: getDate(date),
  20732. year: date.getFullYear(),
  20733. month: addZero(date.getMonth() + 1),
  20734. date: addZero(date.getDate()),
  20735. day: date.getDay()
  20736. };
  20737. }
  20738. /**
  20739. * 获取上一个月日期集合
  20740. */
  20741. }, {
  20742. key: "getPreMonthDays",
  20743. value: function getPreMonthDays(amount, dateObj) {
  20744. var result = [];
  20745. for (var i = amount - 1; i >= 0; i--) {
  20746. var month = dateObj.month - 1;
  20747. result.push({
  20748. date: new Date(dateObj.year, month, -i).getDate(),
  20749. month: month,
  20750. disable: true
  20751. });
  20752. }
  20753. return result;
  20754. }
  20755. /**
  20756. * 获取本月日期集合
  20757. */
  20758. }, {
  20759. key: "getCurrentMonthDays",
  20760. value: function getCurrentMonthDays(amount, dateObj) {
  20761. var _this = this;
  20762. var result = [];
  20763. var fullDate = this.date.fullDate;
  20764. var _loop = function _loop(i) {
  20765. var currentDate = "".concat(dateObj.year, "-").concat(dateObj.month, "-").concat(addZero(i));
  20766. var isToday = fullDate === currentDate;
  20767. // 获取打点信息
  20768. var info = _this.selected && _this.selected.find(function (item) {
  20769. if (_this.dateEqual(currentDate, item.date)) {
  20770. return item;
  20771. }
  20772. });
  20773. // 日期禁用
  20774. var disableBefore = true;
  20775. var disableAfter = true;
  20776. if (_this.startDate) {
  20777. disableBefore = dateCompare(_this.startDate, currentDate);
  20778. }
  20779. if (_this.endDate) {
  20780. disableAfter = dateCompare(currentDate, _this.endDate);
  20781. }
  20782. var multiples = _this.multipleStatus.data;
  20783. var multiplesStatus = -1;
  20784. if (_this.range && multiples) {
  20785. multiplesStatus = multiples.findIndex(function (item) {
  20786. return _this.dateEqual(item, currentDate);
  20787. });
  20788. }
  20789. var checked = multiplesStatus !== -1;
  20790. result.push({
  20791. fullDate: currentDate,
  20792. year: dateObj.year,
  20793. date: i,
  20794. multiple: _this.range ? checked : false,
  20795. beforeMultiple: _this.isLogicBefore(currentDate, _this.multipleStatus.before, _this.multipleStatus.after),
  20796. afterMultiple: _this.isLogicAfter(currentDate, _this.multipleStatus.before, _this.multipleStatus.after),
  20797. month: dateObj.month,
  20798. disable: _this.startDate && !dateCompare(_this.startDate, currentDate) || _this.endDate && !dateCompare(currentDate, _this.endDate),
  20799. isToday: isToday,
  20800. userChecked: false,
  20801. extraInfo: info
  20802. });
  20803. };
  20804. for (var i = 1; i <= amount; i++) {
  20805. _loop(i);
  20806. }
  20807. return result;
  20808. }
  20809. /**
  20810. * 获取下一个月日期集合
  20811. */
  20812. }, {
  20813. key: "_getNextMonthDays",
  20814. value: function _getNextMonthDays(amount, dateObj) {
  20815. var result = [];
  20816. var month = dateObj.month + 1;
  20817. for (var i = 1; i <= amount; i++) {
  20818. result.push({
  20819. date: i,
  20820. month: month,
  20821. disable: true
  20822. });
  20823. }
  20824. return result;
  20825. }
  20826. /**
  20827. * 获取当前日期详情
  20828. * @param {Object} date
  20829. */
  20830. }, {
  20831. key: "getInfo",
  20832. value: function getInfo(date) {
  20833. var _this2 = this;
  20834. if (!date) {
  20835. date = new Date();
  20836. }
  20837. return this.calendar.find(function (item) {
  20838. return item.fullDate === _this2.getDateObj(date).fullDate;
  20839. });
  20840. }
  20841. /**
  20842. * 比较时间是否相等
  20843. */
  20844. }, {
  20845. key: "dateEqual",
  20846. value: function dateEqual(before, after) {
  20847. before = new Date(fixIosDateFormat(before));
  20848. after = new Date(fixIosDateFormat(after));
  20849. return before.valueOf() === after.valueOf();
  20850. }
  20851. /**
  20852. * 比较真实起始日期
  20853. */
  20854. }, {
  20855. key: "isLogicBefore",
  20856. value: function isLogicBefore(currentDate, before, after) {
  20857. var logicBefore = before;
  20858. if (before && after) {
  20859. logicBefore = dateCompare(before, after) ? before : after;
  20860. }
  20861. return this.dateEqual(logicBefore, currentDate);
  20862. }
  20863. }, {
  20864. key: "isLogicAfter",
  20865. value: function isLogicAfter(currentDate, before, after) {
  20866. var logicAfter = after;
  20867. if (before && after) {
  20868. logicAfter = dateCompare(before, after) ? after : before;
  20869. }
  20870. return this.dateEqual(logicAfter, currentDate);
  20871. }
  20872. /**
  20873. * 获取日期范围内所有日期
  20874. * @param {Object} begin
  20875. * @param {Object} end
  20876. */
  20877. }, {
  20878. key: "geDateAll",
  20879. value: function geDateAll(begin, end) {
  20880. var arr = [];
  20881. var ab = begin.split('-');
  20882. var ae = end.split('-');
  20883. var db = new Date();
  20884. db.setFullYear(ab[0], ab[1] - 1, ab[2]);
  20885. var de = new Date();
  20886. de.setFullYear(ae[0], ae[1] - 1, ae[2]);
  20887. var unixDb = db.getTime() - 24 * 60 * 60 * 1000;
  20888. var unixDe = de.getTime() - 24 * 60 * 60 * 1000;
  20889. for (var k = unixDb; k <= unixDe;) {
  20890. k = k + 24 * 60 * 60 * 1000;
  20891. arr.push(this.getDateObj(new Date(parseInt(k))).fullDate);
  20892. }
  20893. return arr;
  20894. }
  20895. /**
  20896. * 获取多选状态
  20897. */
  20898. }, {
  20899. key: "setMultiple",
  20900. value: function setMultiple(fullDate) {
  20901. if (!this.range) return;
  20902. var _this$multipleStatus = this.multipleStatus,
  20903. before = _this$multipleStatus.before,
  20904. after = _this$multipleStatus.after;
  20905. if (before && after) {
  20906. if (!this.lastHover) {
  20907. this.lastHover = true;
  20908. return;
  20909. }
  20910. this.multipleStatus.before = fullDate;
  20911. this.multipleStatus.after = '';
  20912. this.multipleStatus.data = [];
  20913. this.multipleStatus.fulldate = '';
  20914. this.lastHover = false;
  20915. } else {
  20916. if (!before) {
  20917. this.multipleStatus.before = fullDate;
  20918. this.lastHover = false;
  20919. } else {
  20920. this.multipleStatus.after = fullDate;
  20921. if (dateCompare(this.multipleStatus.before, this.multipleStatus.after)) {
  20922. this.multipleStatus.data = this.geDateAll(this.multipleStatus.before, this.multipleStatus.after);
  20923. } else {
  20924. this.multipleStatus.data = this.geDateAll(this.multipleStatus.after, this.multipleStatus.before);
  20925. }
  20926. this.lastHover = true;
  20927. }
  20928. }
  20929. this.getWeeks(fullDate);
  20930. }
  20931. /**
  20932. * 鼠标 hover 更新多选状态
  20933. */
  20934. }, {
  20935. key: "setHoverMultiple",
  20936. value: function setHoverMultiple(fullDate) {
  20937. if (!this.range || this.lastHover) return;
  20938. var before = this.multipleStatus.before;
  20939. if (!before) {
  20940. this.multipleStatus.before = fullDate;
  20941. } else {
  20942. this.multipleStatus.after = fullDate;
  20943. if (dateCompare(this.multipleStatus.before, this.multipleStatus.after)) {
  20944. this.multipleStatus.data = this.geDateAll(this.multipleStatus.before, this.multipleStatus.after);
  20945. } else {
  20946. this.multipleStatus.data = this.geDateAll(this.multipleStatus.after, this.multipleStatus.before);
  20947. }
  20948. }
  20949. this.getWeeks(fullDate);
  20950. }
  20951. /**
  20952. * 更新默认值多选状态
  20953. */
  20954. }, {
  20955. key: "setDefaultMultiple",
  20956. value: function setDefaultMultiple(before, after) {
  20957. this.multipleStatus.before = before;
  20958. this.multipleStatus.after = after;
  20959. if (before && after) {
  20960. if (dateCompare(before, after)) {
  20961. this.multipleStatus.data = this.geDateAll(before, after);
  20962. this.getWeeks(after);
  20963. } else {
  20964. this.multipleStatus.data = this.geDateAll(after, before);
  20965. this.getWeeks(before);
  20966. }
  20967. }
  20968. }
  20969. /**
  20970. * 获取每周数据
  20971. * @param {Object} dateData
  20972. */
  20973. }, {
  20974. key: "getWeeks",
  20975. value: function getWeeks(dateData) {
  20976. var _this$getDateObj = this.getDateObj(dateData),
  20977. year = _this$getDateObj.year,
  20978. month = _this$getDateObj.month;
  20979. var preMonthDayAmount = new Date(year, month - 1, 1).getDay();
  20980. var preMonthDays = this.getPreMonthDays(preMonthDayAmount, this.getDateObj(dateData));
  20981. var currentMonthDayAmount = new Date(year, month, 0).getDate();
  20982. var currentMonthDays = this.getCurrentMonthDays(currentMonthDayAmount, this.getDateObj(dateData));
  20983. var nextMonthDayAmount = 42 - preMonthDayAmount - currentMonthDayAmount;
  20984. var nextMonthDays = this._getNextMonthDays(nextMonthDayAmount, this.getDateObj(dateData));
  20985. var calendarDays = [].concat((0, _toConsumableArray2.default)(preMonthDays), (0, _toConsumableArray2.default)(currentMonthDays), (0, _toConsumableArray2.default)(nextMonthDays));
  20986. var weeks = new Array(6);
  20987. for (var i = 0; i < calendarDays.length; i++) {
  20988. var index = Math.floor(i / 7);
  20989. if (!weeks[index]) {
  20990. weeks[index] = new Array(7);
  20991. }
  20992. weeks[index][i % 7] = calendarDays[i];
  20993. }
  20994. this.calendar = calendarDays;
  20995. this.weeks = weeks;
  20996. }
  20997. }]);
  20998. return Calendar;
  20999. }();
  21000. exports.Calendar = Calendar;
  21001. function getDateTime(date, hideSecond) {
  21002. return "".concat(getDate(date), " ").concat(getTime(date, hideSecond));
  21003. }
  21004. function getDate(date) {
  21005. date = fixIosDateFormat(date);
  21006. date = new Date(date);
  21007. var year = date.getFullYear();
  21008. var month = date.getMonth() + 1;
  21009. var day = date.getDate();
  21010. return "".concat(year, "-").concat(addZero(month), "-").concat(addZero(day));
  21011. }
  21012. function getTime(date, hideSecond) {
  21013. date = fixIosDateFormat(date);
  21014. date = new Date(date);
  21015. var hour = date.getHours();
  21016. var minute = date.getMinutes();
  21017. var second = date.getSeconds();
  21018. return hideSecond ? "".concat(addZero(hour), ":").concat(addZero(minute)) : "".concat(addZero(hour), ":").concat(addZero(minute), ":").concat(addZero(second));
  21019. }
  21020. function addZero(num) {
  21021. if (num < 10) {
  21022. num = "0".concat(num);
  21023. }
  21024. return num;
  21025. }
  21026. function getDefaultSecond(hideSecond) {
  21027. return hideSecond ? '00:00' : '00:00:00';
  21028. }
  21029. function dateCompare(startDate, endDate) {
  21030. startDate = new Date(fixIosDateFormat(startDate));
  21031. endDate = new Date(fixIosDateFormat(endDate));
  21032. return startDate <= endDate;
  21033. }
  21034. function checkDate(date) {
  21035. var dateReg = /((19|20)\d{2})(-|\/)\d{1,2}(-|\/)\d{1,2}/g;
  21036. return date.match(dateReg);
  21037. }
  21038. 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])?$/;
  21039. function fixIosDateFormat(value) {
  21040. if (typeof value === 'string' && dateTimeReg.test(value)) {
  21041. value = value.replace(/-/g, '/');
  21042. }
  21043. return value;
  21044. }
  21045. /***/ }),
  21046. /***/ 450:
  21047. /*!*******************************************************************************************************************************!*\
  21048. !*** D:/AAAcompany_product/新建文件夹/product_wx/uni_modules/uni-file-picker/components/uni-file-picker/choose-and-upload-file.js ***!
  21049. \*******************************************************************************************************************************/
  21050. /*! no static exports found */
  21051. /***/ (function(module, exports, __webpack_require__) {
  21052. "use strict";
  21053. /* WEBPACK VAR INJECTION */(function(uni, wx, uniCloud) {
  21054. Object.defineProperty(exports, "__esModule", {
  21055. value: true
  21056. });
  21057. exports.chooseAndUploadFile = chooseAndUploadFile;
  21058. exports.uploadCloudFiles = uploadCloudFiles;
  21059. var ERR_MSG_OK = 'chooseAndUploadFile:ok';
  21060. var ERR_MSG_FAIL = 'chooseAndUploadFile:fail';
  21061. function chooseImage(opts) {
  21062. var count = opts.count,
  21063. _opts$sizeType = opts.sizeType,
  21064. sizeType = _opts$sizeType === void 0 ? ['original', 'compressed'] : _opts$sizeType,
  21065. sourceType = opts.sourceType,
  21066. extension = opts.extension;
  21067. return new Promise(function (resolve, reject) {
  21068. uni.chooseImage({
  21069. count: count,
  21070. sizeType: sizeType,
  21071. sourceType: sourceType,
  21072. extension: extension,
  21073. success: function success(res) {
  21074. resolve(normalizeChooseAndUploadFileRes(res, 'image'));
  21075. },
  21076. fail: function fail(res) {
  21077. reject({
  21078. errMsg: res.errMsg.replace('chooseImage:fail', ERR_MSG_FAIL)
  21079. });
  21080. }
  21081. });
  21082. });
  21083. }
  21084. function chooseVideo(opts) {
  21085. var camera = opts.camera,
  21086. compressed = opts.compressed,
  21087. maxDuration = opts.maxDuration,
  21088. sourceType = opts.sourceType,
  21089. extension = opts.extension;
  21090. return new Promise(function (resolve, reject) {
  21091. uni.chooseVideo({
  21092. camera: camera,
  21093. compressed: compressed,
  21094. maxDuration: maxDuration,
  21095. sourceType: sourceType,
  21096. extension: extension,
  21097. success: function success(res) {
  21098. var tempFilePath = res.tempFilePath,
  21099. duration = res.duration,
  21100. size = res.size,
  21101. height = res.height,
  21102. width = res.width;
  21103. resolve(normalizeChooseAndUploadFileRes({
  21104. errMsg: 'chooseVideo:ok',
  21105. tempFilePaths: [tempFilePath],
  21106. tempFiles: [{
  21107. name: res.tempFile && res.tempFile.name || '',
  21108. path: tempFilePath,
  21109. size: size,
  21110. type: res.tempFile && res.tempFile.type || '',
  21111. width: width,
  21112. height: height,
  21113. duration: duration,
  21114. fileType: 'video',
  21115. cloudPath: ''
  21116. }]
  21117. }, 'video'));
  21118. },
  21119. fail: function fail(res) {
  21120. reject({
  21121. errMsg: res.errMsg.replace('chooseVideo:fail', ERR_MSG_FAIL)
  21122. });
  21123. }
  21124. });
  21125. });
  21126. }
  21127. function chooseAll(opts) {
  21128. var count = opts.count,
  21129. extension = opts.extension;
  21130. return new Promise(function (resolve, reject) {
  21131. var chooseFile = uni.chooseFile;
  21132. if (typeof wx !== 'undefined' && typeof wx.chooseMessageFile === 'function') {
  21133. chooseFile = wx.chooseMessageFile;
  21134. }
  21135. if (typeof chooseFile !== 'function') {
  21136. return reject({
  21137. errMsg: ERR_MSG_FAIL + ' 请指定 type 类型,该平台仅支持选择 image 或 video。'
  21138. });
  21139. }
  21140. chooseFile({
  21141. type: 'all',
  21142. count: count,
  21143. extension: extension,
  21144. success: function success(res) {
  21145. resolve(normalizeChooseAndUploadFileRes(res));
  21146. },
  21147. fail: function fail(res) {
  21148. reject({
  21149. errMsg: res.errMsg.replace('chooseFile:fail', ERR_MSG_FAIL)
  21150. });
  21151. }
  21152. });
  21153. });
  21154. }
  21155. function normalizeChooseAndUploadFileRes(res, fileType) {
  21156. res.tempFiles.forEach(function (item, index) {
  21157. if (!item.name) {
  21158. item.name = item.path.substring(item.path.lastIndexOf('/') + 1);
  21159. }
  21160. if (fileType) {
  21161. item.fileType = fileType;
  21162. }
  21163. item.cloudPath = Date.now() + '_' + index + item.name.substring(item.name.lastIndexOf('.'));
  21164. });
  21165. if (!res.tempFilePaths) {
  21166. res.tempFilePaths = res.tempFiles.map(function (file) {
  21167. return file.path;
  21168. });
  21169. }
  21170. return res;
  21171. }
  21172. function uploadCloudFiles(files) {
  21173. var max = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 5;
  21174. var _onUploadProgress = arguments.length > 2 ? arguments[2] : undefined;
  21175. files = JSON.parse(JSON.stringify(files));
  21176. var len = files.length;
  21177. var count = 0;
  21178. var self = this;
  21179. return new Promise(function (resolve) {
  21180. while (count < max) {
  21181. next();
  21182. }
  21183. function next() {
  21184. var cur = count++;
  21185. if (cur >= len) {
  21186. !files.find(function (item) {
  21187. return !item.url && !item.errMsg;
  21188. }) && resolve(files);
  21189. return;
  21190. }
  21191. var fileItem = files[cur];
  21192. var index = self.files.findIndex(function (v) {
  21193. return v.uuid === fileItem.uuid;
  21194. });
  21195. fileItem.url = '';
  21196. delete fileItem.errMsg;
  21197. uniCloud.uploadFile({
  21198. filePath: fileItem.path,
  21199. cloudPath: fileItem.cloudPath,
  21200. fileType: fileItem.fileType,
  21201. onUploadProgress: function onUploadProgress(res) {
  21202. res.index = index;
  21203. _onUploadProgress && _onUploadProgress(res);
  21204. }
  21205. }).then(function (res) {
  21206. fileItem.url = res.fileID;
  21207. fileItem.index = index;
  21208. if (cur < len) {
  21209. next();
  21210. }
  21211. }).catch(function (res) {
  21212. fileItem.errMsg = res.errMsg || res.message;
  21213. fileItem.index = index;
  21214. if (cur < len) {
  21215. next();
  21216. }
  21217. });
  21218. }
  21219. });
  21220. }
  21221. function uploadFiles(choosePromise, _ref) {
  21222. var onChooseFile = _ref.onChooseFile,
  21223. onUploadProgress = _ref.onUploadProgress;
  21224. return choosePromise.then(function (res) {
  21225. if (onChooseFile) {
  21226. var customChooseRes = onChooseFile(res);
  21227. if (typeof customChooseRes !== 'undefined') {
  21228. return Promise.resolve(customChooseRes).then(function (chooseRes) {
  21229. return typeof chooseRes === 'undefined' ? res : chooseRes;
  21230. });
  21231. }
  21232. }
  21233. return res;
  21234. }).then(function (res) {
  21235. if (res === false) {
  21236. return {
  21237. errMsg: ERR_MSG_OK,
  21238. tempFilePaths: [],
  21239. tempFiles: []
  21240. };
  21241. }
  21242. return res;
  21243. });
  21244. }
  21245. function chooseAndUploadFile() {
  21246. var opts = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {
  21247. type: 'all'
  21248. };
  21249. if (opts.type === 'image') {
  21250. return uploadFiles(chooseImage(opts), opts);
  21251. } else if (opts.type === 'video') {
  21252. return uploadFiles(chooseVideo(opts), opts);
  21253. }
  21254. return uploadFiles(chooseAll(opts), opts);
  21255. }
  21256. /* 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)["default"]))
  21257. /***/ }),
  21258. /***/ 451:
  21259. /*!**************************************************************************************************************!*\
  21260. !*** D:/AAAcompany_product/新建文件夹/product_wx/uni_modules/uni-file-picker/components/uni-file-picker/utils.js ***!
  21261. \**************************************************************************************************************/
  21262. /*! no static exports found */
  21263. /***/ (function(module, exports, __webpack_require__) {
  21264. "use strict";
  21265. /* WEBPACK VAR INJECTION */(function(uni) {
  21266. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  21267. Object.defineProperty(exports, "__esModule", {
  21268. value: true
  21269. });
  21270. exports.get_files_and_is_max = exports.get_file_info = exports.get_file_ext = exports.get_file_data = exports.get_extname = void 0;
  21271. var _regenerator = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/regenerator */ 29));
  21272. var _asyncToGenerator2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/asyncToGenerator */ 32));
  21273. /**
  21274. * 获取文件名和后缀
  21275. * @param {String} name
  21276. */
  21277. var get_file_ext = function get_file_ext(name) {
  21278. var last_len = name.lastIndexOf('.');
  21279. var len = name.length;
  21280. return {
  21281. name: name.substring(0, last_len),
  21282. ext: name.substring(last_len + 1, len)
  21283. };
  21284. };
  21285. /**
  21286. * 获取扩展名
  21287. * @param {Array} fileExtname
  21288. */
  21289. exports.get_file_ext = get_file_ext;
  21290. var get_extname = function get_extname(fileExtname) {
  21291. if (!Array.isArray(fileExtname)) {
  21292. var extname = fileExtname.replace(/(\[|\])/g, '');
  21293. return extname.split(',');
  21294. } else {
  21295. return fileExtname;
  21296. }
  21297. return [];
  21298. };
  21299. /**
  21300. * 获取文件和检测是否可选
  21301. */
  21302. exports.get_extname = get_extname;
  21303. var get_files_and_is_max = function get_files_and_is_max(res, _extname) {
  21304. var filePaths = [];
  21305. var files = [];
  21306. if (!_extname || _extname.length === 0) {
  21307. return {
  21308. filePaths: filePaths,
  21309. files: files
  21310. };
  21311. }
  21312. res.tempFiles.forEach(function (v) {
  21313. var fileFullName = get_file_ext(v.name);
  21314. var extname = fileFullName.ext.toLowerCase();
  21315. if (_extname.indexOf(extname) !== -1) {
  21316. files.push(v);
  21317. filePaths.push(v.path);
  21318. }
  21319. });
  21320. if (files.length !== res.tempFiles.length) {
  21321. uni.showToast({
  21322. 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"),
  21323. icon: 'none',
  21324. duration: 5000
  21325. });
  21326. }
  21327. return {
  21328. filePaths: filePaths,
  21329. files: files
  21330. };
  21331. };
  21332. /**
  21333. * 获取图片信息
  21334. * @param {Object} filepath
  21335. */
  21336. exports.get_files_and_is_max = get_files_and_is_max;
  21337. var get_file_info = function get_file_info(filepath) {
  21338. return new Promise(function (resolve, reject) {
  21339. uni.getImageInfo({
  21340. src: filepath,
  21341. success: function success(res) {
  21342. resolve(res);
  21343. },
  21344. fail: function fail(err) {
  21345. reject(err);
  21346. }
  21347. });
  21348. });
  21349. };
  21350. /**
  21351. * 获取封装数据
  21352. */
  21353. exports.get_file_info = get_file_info;
  21354. var get_file_data = /*#__PURE__*/function () {
  21355. var _ref = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee(files) {
  21356. var type,
  21357. fileFullName,
  21358. extname,
  21359. filedata,
  21360. imageinfo,
  21361. _args = arguments;
  21362. return _regenerator.default.wrap(function _callee$(_context) {
  21363. while (1) {
  21364. switch (_context.prev = _context.next) {
  21365. case 0:
  21366. type = _args.length > 1 && _args[1] !== undefined ? _args[1] : 'image';
  21367. // 最终需要上传数据库的数据
  21368. fileFullName = get_file_ext(files.name);
  21369. extname = fileFullName.ext.toLowerCase();
  21370. filedata = {
  21371. name: files.name,
  21372. uuid: files.uuid,
  21373. extname: extname || '',
  21374. cloudPath: files.cloudPath,
  21375. fileType: files.fileType,
  21376. url: files.path || files.path,
  21377. size: files.size,
  21378. //单位是字节
  21379. image: {},
  21380. path: files.path,
  21381. video: {}
  21382. };
  21383. if (!(type === 'image')) {
  21384. _context.next = 14;
  21385. break;
  21386. }
  21387. _context.next = 7;
  21388. return get_file_info(files.path);
  21389. case 7:
  21390. imageinfo = _context.sent;
  21391. delete filedata.video;
  21392. filedata.image.width = imageinfo.width;
  21393. filedata.image.height = imageinfo.height;
  21394. filedata.image.location = imageinfo.path;
  21395. _context.next = 15;
  21396. break;
  21397. case 14:
  21398. delete filedata.image;
  21399. case 15:
  21400. return _context.abrupt("return", filedata);
  21401. case 16:
  21402. case "end":
  21403. return _context.stop();
  21404. }
  21405. }
  21406. }, _callee);
  21407. }));
  21408. return function get_file_data(_x) {
  21409. return _ref.apply(this, arguments);
  21410. };
  21411. }();
  21412. exports.get_file_data = get_file_data;
  21413. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  21414. /***/ }),
  21415. /***/ 454:
  21416. /*!*************************************************************************************!*\
  21417. !*** D:/AAAcompany_product/新建文件夹/product_wx/wxcomponents/weapp/dist/empty/index.js ***!
  21418. \*************************************************************************************/
  21419. /*! no static exports found */
  21420. /***/ (function(module, exports, __webpack_require__) {
  21421. "use strict";
  21422. var _component = __webpack_require__(/*! ../common/component */ 397);
  21423. (0, _component.VantComponent)({
  21424. props: {
  21425. description: String,
  21426. image: {
  21427. type: String,
  21428. value: 'default'
  21429. }
  21430. }
  21431. });
  21432. /***/ }),
  21433. /***/ 46:
  21434. /*!**********************************************************************************************************!*\
  21435. !*** ./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/runtime/componentNormalizer.js ***!
  21436. \**********************************************************************************************************/
  21437. /*! exports provided: default */
  21438. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  21439. "use strict";
  21440. __webpack_require__.r(__webpack_exports__);
  21441. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return normalizeComponent; });
  21442. /* globals __VUE_SSR_CONTEXT__ */
  21443. // IMPORTANT: Do NOT use ES2015 features in this file (except for modules).
  21444. // This module is a runtime utility for cleaner component module output and will
  21445. // be included in the final webpack user bundle.
  21446. function normalizeComponent (
  21447. scriptExports,
  21448. render,
  21449. staticRenderFns,
  21450. functionalTemplate,
  21451. injectStyles,
  21452. scopeId,
  21453. moduleIdentifier, /* server only */
  21454. shadowMode, /* vue-cli only */
  21455. components, // fixed by xxxxxx auto components
  21456. renderjs // fixed by xxxxxx renderjs
  21457. ) {
  21458. // Vue.extend constructor export interop
  21459. var options = typeof scriptExports === 'function'
  21460. ? scriptExports.options
  21461. : scriptExports
  21462. // fixed by xxxxxx auto components
  21463. if (components) {
  21464. if (!options.components) {
  21465. options.components = {}
  21466. }
  21467. var hasOwn = Object.prototype.hasOwnProperty
  21468. for (var name in components) {
  21469. if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {
  21470. options.components[name] = components[name]
  21471. }
  21472. }
  21473. }
  21474. // fixed by xxxxxx renderjs
  21475. if (renderjs) {
  21476. if(typeof renderjs.beforeCreate === 'function'){
  21477. renderjs.beforeCreate = [renderjs.beforeCreate]
  21478. }
  21479. (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {
  21480. this[renderjs.__module] = this
  21481. });
  21482. (options.mixins || (options.mixins = [])).push(renderjs)
  21483. }
  21484. // render functions
  21485. if (render) {
  21486. options.render = render
  21487. options.staticRenderFns = staticRenderFns
  21488. options._compiled = true
  21489. }
  21490. // functional template
  21491. if (functionalTemplate) {
  21492. options.functional = true
  21493. }
  21494. // scopedId
  21495. if (scopeId) {
  21496. options._scopeId = 'data-v-' + scopeId
  21497. }
  21498. var hook
  21499. if (moduleIdentifier) { // server build
  21500. hook = function (context) {
  21501. // 2.3 injection
  21502. context =
  21503. context || // cached call
  21504. (this.$vnode && this.$vnode.ssrContext) || // stateful
  21505. (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional
  21506. // 2.2 with runInNewContext: true
  21507. if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {
  21508. context = __VUE_SSR_CONTEXT__
  21509. }
  21510. // inject component styles
  21511. if (injectStyles) {
  21512. injectStyles.call(this, context)
  21513. }
  21514. // register component module identifier for async chunk inferrence
  21515. if (context && context._registeredComponents) {
  21516. context._registeredComponents.add(moduleIdentifier)
  21517. }
  21518. }
  21519. // used by ssr in case component is cached and beforeCreate
  21520. // never gets called
  21521. options._ssrRegister = hook
  21522. } else if (injectStyles) {
  21523. hook = shadowMode
  21524. ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }
  21525. : injectStyles
  21526. }
  21527. if (hook) {
  21528. if (options.functional) {
  21529. // for template-only hot-reload because in that case the render fn doesn't
  21530. // go through the normalizer
  21531. options._injectStyles = hook
  21532. // register for functioal component in vue file
  21533. var originalRender = options.render
  21534. options.render = function renderWithStyleInjection (h, context) {
  21535. hook.call(context)
  21536. return originalRender(h, context)
  21537. }
  21538. } else {
  21539. // inject component registration as beforeCreate hook
  21540. var existing = options.beforeCreate
  21541. options.beforeCreate = existing
  21542. ? [].concat(existing, hook)
  21543. : [hook]
  21544. }
  21545. }
  21546. return {
  21547. exports: scriptExports,
  21548. options: options
  21549. }
  21550. }
  21551. /***/ }),
  21552. /***/ 467:
  21553. /*!*****************************************************************************************************!*\
  21554. !*** D:/AAAcompany_product/新建文件夹/product_wx/uni_modules/uni-forms/components/uni-forms/validate.js ***!
  21555. \*****************************************************************************************************/
  21556. /*! no static exports found */
  21557. /***/ (function(module, exports, __webpack_require__) {
  21558. "use strict";
  21559. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  21560. Object.defineProperty(exports, "__esModule", {
  21561. value: true
  21562. });
  21563. exports.default = void 0;
  21564. var _regenerator = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/regenerator */ 29));
  21565. var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/inherits */ 33));
  21566. var _possibleConstructorReturn2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/possibleConstructorReturn */ 34));
  21567. var _getPrototypeOf2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ 35));
  21568. var _asyncToGenerator2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/asyncToGenerator */ 32));
  21569. var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ 23));
  21570. var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ 24));
  21571. var _typeof2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/typeof */ 13));
  21572. 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); }; }
  21573. 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; } }
  21574. var pattern = {
  21575. email: /^\S+?@\S+?\.\S+?$/,
  21576. 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]$/,
  21577. 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')
  21578. };
  21579. var FORMAT_MAPPING = {
  21580. "int": 'integer',
  21581. "bool": 'boolean',
  21582. "double": 'number',
  21583. "long": 'number',
  21584. "password": 'string'
  21585. // "fileurls": 'array'
  21586. };
  21587. function formatMessage(args) {
  21588. var resources = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : '';
  21589. var defaultMessage = ['label'];
  21590. defaultMessage.forEach(function (item) {
  21591. if (args[item] === undefined) {
  21592. args[item] = '';
  21593. }
  21594. });
  21595. var str = resources;
  21596. for (var key in args) {
  21597. var reg = new RegExp('{' + key + '}');
  21598. str = str.replace(reg, args[key]);
  21599. }
  21600. return str;
  21601. }
  21602. function isEmptyValue(value, type) {
  21603. if (value === undefined || value === null) {
  21604. return true;
  21605. }
  21606. if (typeof value === 'string' && !value) {
  21607. return true;
  21608. }
  21609. if (Array.isArray(value) && !value.length) {
  21610. return true;
  21611. }
  21612. if (type === 'object' && !Object.keys(value).length) {
  21613. return true;
  21614. }
  21615. return false;
  21616. }
  21617. var types = {
  21618. integer: function integer(value) {
  21619. return types.number(value) && parseInt(value, 10) === value;
  21620. },
  21621. string: function string(value) {
  21622. return typeof value === 'string';
  21623. },
  21624. number: function number(value) {
  21625. if (isNaN(value)) {
  21626. return false;
  21627. }
  21628. return typeof value === 'number';
  21629. },
  21630. "boolean": function boolean(value) {
  21631. return typeof value === 'boolean';
  21632. },
  21633. "float": function float(value) {
  21634. return types.number(value) && !types.integer(value);
  21635. },
  21636. array: function array(value) {
  21637. return Array.isArray(value);
  21638. },
  21639. object: function object(value) {
  21640. return (0, _typeof2.default)(value) === 'object' && !types.array(value);
  21641. },
  21642. date: function date(value) {
  21643. return value instanceof Date;
  21644. },
  21645. timestamp: function timestamp(value) {
  21646. if (!this.integer(value) || Math.abs(value).toString().length > 16) {
  21647. return false;
  21648. }
  21649. return true;
  21650. },
  21651. file: function file(value) {
  21652. return typeof value.url === 'string';
  21653. },
  21654. email: function email(value) {
  21655. return typeof value === 'string' && !!value.match(pattern.email) && value.length < 255;
  21656. },
  21657. url: function url(value) {
  21658. return typeof value === 'string' && !!value.match(pattern.url);
  21659. },
  21660. pattern: function pattern(reg, value) {
  21661. try {
  21662. return new RegExp(reg).test(value);
  21663. } catch (e) {
  21664. return false;
  21665. }
  21666. },
  21667. method: function method(value) {
  21668. return typeof value === 'function';
  21669. },
  21670. idcard: function idcard(value) {
  21671. return typeof value === 'string' && !!value.match(pattern.idcard);
  21672. },
  21673. 'url-https': function urlHttps(value) {
  21674. return this.url(value) && value.startsWith('https://');
  21675. },
  21676. 'url-scheme': function urlScheme(value) {
  21677. return value.startsWith('://');
  21678. },
  21679. 'url-web': function urlWeb(value) {
  21680. return false;
  21681. }
  21682. };
  21683. var RuleValidator = /*#__PURE__*/function () {
  21684. function RuleValidator(message) {
  21685. (0, _classCallCheck2.default)(this, RuleValidator);
  21686. this._message = message;
  21687. }
  21688. (0, _createClass2.default)(RuleValidator, [{
  21689. key: "validateRule",
  21690. value: function () {
  21691. var _validateRule = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee(fieldKey, fieldValue, value, data, allData) {
  21692. var result, rules, hasRequired, message, i, rule, vt, now, resultExpr;
  21693. return _regenerator.default.wrap(function _callee$(_context) {
  21694. while (1) {
  21695. switch (_context.prev = _context.next) {
  21696. case 0:
  21697. result = null;
  21698. rules = fieldValue.rules;
  21699. hasRequired = rules.findIndex(function (item) {
  21700. return item.required;
  21701. });
  21702. if (!(hasRequired < 0)) {
  21703. _context.next = 8;
  21704. break;
  21705. }
  21706. if (!(value === null || value === undefined)) {
  21707. _context.next = 6;
  21708. break;
  21709. }
  21710. return _context.abrupt("return", result);
  21711. case 6:
  21712. if (!(typeof value === 'string' && !value.length)) {
  21713. _context.next = 8;
  21714. break;
  21715. }
  21716. return _context.abrupt("return", result);
  21717. case 8:
  21718. message = this._message;
  21719. if (!(rules === undefined)) {
  21720. _context.next = 11;
  21721. break;
  21722. }
  21723. return _context.abrupt("return", message['default']);
  21724. case 11:
  21725. i = 0;
  21726. case 12:
  21727. if (!(i < rules.length)) {
  21728. _context.next = 35;
  21729. break;
  21730. }
  21731. rule = rules[i];
  21732. vt = this._getValidateType(rule);
  21733. Object.assign(rule, {
  21734. label: fieldValue.label || "[\"".concat(fieldKey, "\"]")
  21735. });
  21736. if (!RuleValidatorHelper[vt]) {
  21737. _context.next = 20;
  21738. break;
  21739. }
  21740. result = RuleValidatorHelper[vt](rule, value, message);
  21741. if (!(result != null)) {
  21742. _context.next = 20;
  21743. break;
  21744. }
  21745. return _context.abrupt("break", 35);
  21746. case 20:
  21747. if (!rule.validateExpr) {
  21748. _context.next = 26;
  21749. break;
  21750. }
  21751. now = Date.now();
  21752. resultExpr = rule.validateExpr(value, allData, now);
  21753. if (!(resultExpr === false)) {
  21754. _context.next = 26;
  21755. break;
  21756. }
  21757. result = this._getMessage(rule, rule.errorMessage || this._message['default']);
  21758. return _context.abrupt("break", 35);
  21759. case 26:
  21760. if (!rule.validateFunction) {
  21761. _context.next = 32;
  21762. break;
  21763. }
  21764. _context.next = 29;
  21765. return this.validateFunction(rule, value, data, allData, vt);
  21766. case 29:
  21767. result = _context.sent;
  21768. if (!(result !== null)) {
  21769. _context.next = 32;
  21770. break;
  21771. }
  21772. return _context.abrupt("break", 35);
  21773. case 32:
  21774. i++;
  21775. _context.next = 12;
  21776. break;
  21777. case 35:
  21778. if (result !== null) {
  21779. result = message.TAG + result;
  21780. }
  21781. return _context.abrupt("return", result);
  21782. case 37:
  21783. case "end":
  21784. return _context.stop();
  21785. }
  21786. }
  21787. }, _callee, this);
  21788. }));
  21789. function validateRule(_x, _x2, _x3, _x4, _x5) {
  21790. return _validateRule.apply(this, arguments);
  21791. }
  21792. return validateRule;
  21793. }()
  21794. }, {
  21795. key: "validateFunction",
  21796. value: function () {
  21797. var _validateFunction = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee2(rule, value, data, allData, vt) {
  21798. var result, callbackMessage, res;
  21799. return _regenerator.default.wrap(function _callee2$(_context2) {
  21800. while (1) {
  21801. switch (_context2.prev = _context2.next) {
  21802. case 0:
  21803. result = null;
  21804. _context2.prev = 1;
  21805. callbackMessage = null;
  21806. _context2.next = 5;
  21807. return rule.validateFunction(rule, value, allData || data, function (message) {
  21808. callbackMessage = message;
  21809. });
  21810. case 5:
  21811. res = _context2.sent;
  21812. if (callbackMessage || typeof res === 'string' && res || res === false) {
  21813. result = this._getMessage(rule, callbackMessage || res, vt);
  21814. }
  21815. _context2.next = 12;
  21816. break;
  21817. case 9:
  21818. _context2.prev = 9;
  21819. _context2.t0 = _context2["catch"](1);
  21820. result = this._getMessage(rule, _context2.t0.message, vt);
  21821. case 12:
  21822. return _context2.abrupt("return", result);
  21823. case 13:
  21824. case "end":
  21825. return _context2.stop();
  21826. }
  21827. }
  21828. }, _callee2, this, [[1, 9]]);
  21829. }));
  21830. function validateFunction(_x6, _x7, _x8, _x9, _x10) {
  21831. return _validateFunction.apply(this, arguments);
  21832. }
  21833. return validateFunction;
  21834. }()
  21835. }, {
  21836. key: "_getMessage",
  21837. value: function _getMessage(rule, message, vt) {
  21838. return formatMessage(rule, message || rule.errorMessage || this._message[vt] || message['default']);
  21839. }
  21840. }, {
  21841. key: "_getValidateType",
  21842. value: function _getValidateType(rule) {
  21843. var result = '';
  21844. if (rule.required) {
  21845. result = 'required';
  21846. } else if (rule.format) {
  21847. result = 'format';
  21848. } else if (rule.arrayType) {
  21849. result = 'arrayTypeFormat';
  21850. } else if (rule.range) {
  21851. result = 'range';
  21852. } else if (rule.maximum !== undefined || rule.minimum !== undefined) {
  21853. result = 'rangeNumber';
  21854. } else if (rule.maxLength !== undefined || rule.minLength !== undefined) {
  21855. result = 'rangeLength';
  21856. } else if (rule.pattern) {
  21857. result = 'pattern';
  21858. } else if (rule.validateFunction) {
  21859. result = 'validateFunction';
  21860. }
  21861. return result;
  21862. }
  21863. }]);
  21864. return RuleValidator;
  21865. }();
  21866. var RuleValidatorHelper = {
  21867. required: function required(rule, value, message) {
  21868. if (rule.required && isEmptyValue(value, rule.format || (0, _typeof2.default)(value))) {
  21869. return formatMessage(rule, rule.errorMessage || message.required);
  21870. }
  21871. return null;
  21872. },
  21873. range: function range(rule, value, message) {
  21874. var range = rule.range,
  21875. errorMessage = rule.errorMessage;
  21876. var list = new Array(range.length);
  21877. for (var i = 0; i < range.length; i++) {
  21878. var item = range[i];
  21879. if (types.object(item) && item.value !== undefined) {
  21880. list[i] = item.value;
  21881. } else {
  21882. list[i] = item;
  21883. }
  21884. }
  21885. var result = false;
  21886. if (Array.isArray(value)) {
  21887. result = new Set(value.concat(list)).size === list.length;
  21888. } else {
  21889. if (list.indexOf(value) > -1) {
  21890. result = true;
  21891. }
  21892. }
  21893. if (!result) {
  21894. return formatMessage(rule, errorMessage || message['enum']);
  21895. }
  21896. return null;
  21897. },
  21898. rangeNumber: function rangeNumber(rule, value, message) {
  21899. if (!types.number(value)) {
  21900. return formatMessage(rule, rule.errorMessage || message.pattern.mismatch);
  21901. }
  21902. var minimum = rule.minimum,
  21903. maximum = rule.maximum,
  21904. exclusiveMinimum = rule.exclusiveMinimum,
  21905. exclusiveMaximum = rule.exclusiveMaximum;
  21906. var min = exclusiveMinimum ? value <= minimum : value < minimum;
  21907. var max = exclusiveMaximum ? value >= maximum : value > maximum;
  21908. if (minimum !== undefined && min) {
  21909. return formatMessage(rule, rule.errorMessage || message['number'][exclusiveMinimum ? 'exclusiveMinimum' : 'minimum']);
  21910. } else if (maximum !== undefined && max) {
  21911. return formatMessage(rule, rule.errorMessage || message['number'][exclusiveMaximum ? 'exclusiveMaximum' : 'maximum']);
  21912. } else if (minimum !== undefined && maximum !== undefined && (min || max)) {
  21913. return formatMessage(rule, rule.errorMessage || message['number'].range);
  21914. }
  21915. return null;
  21916. },
  21917. rangeLength: function rangeLength(rule, value, message) {
  21918. if (!types.string(value) && !types.array(value)) {
  21919. return formatMessage(rule, rule.errorMessage || message.pattern.mismatch);
  21920. }
  21921. var min = rule.minLength;
  21922. var max = rule.maxLength;
  21923. var val = value.length;
  21924. if (min !== undefined && val < min) {
  21925. return formatMessage(rule, rule.errorMessage || message['length'].minLength);
  21926. } else if (max !== undefined && val > max) {
  21927. return formatMessage(rule, rule.errorMessage || message['length'].maxLength);
  21928. } else if (min !== undefined && max !== undefined && (val < min || val > max)) {
  21929. return formatMessage(rule, rule.errorMessage || message['length'].range);
  21930. }
  21931. return null;
  21932. },
  21933. pattern: function pattern(rule, value, message) {
  21934. if (!types['pattern'](rule.pattern, value)) {
  21935. return formatMessage(rule, rule.errorMessage || message.pattern.mismatch);
  21936. }
  21937. return null;
  21938. },
  21939. format: function format(rule, value, message) {
  21940. var customTypes = Object.keys(types);
  21941. var format = FORMAT_MAPPING[rule.format] ? FORMAT_MAPPING[rule.format] : rule.format || rule.arrayType;
  21942. if (customTypes.indexOf(format) > -1) {
  21943. if (!types[format](value)) {
  21944. return formatMessage(rule, rule.errorMessage || message.typeError);
  21945. }
  21946. }
  21947. return null;
  21948. },
  21949. arrayTypeFormat: function arrayTypeFormat(rule, value, message) {
  21950. if (!Array.isArray(value)) {
  21951. return formatMessage(rule, rule.errorMessage || message.typeError);
  21952. }
  21953. for (var i = 0; i < value.length; i++) {
  21954. var element = value[i];
  21955. var formatResult = this.format(rule, element, message);
  21956. if (formatResult !== null) {
  21957. return formatResult;
  21958. }
  21959. }
  21960. return null;
  21961. }
  21962. };
  21963. var SchemaValidator = /*#__PURE__*/function (_RuleValidator) {
  21964. (0, _inherits2.default)(SchemaValidator, _RuleValidator);
  21965. var _super = _createSuper(SchemaValidator);
  21966. function SchemaValidator(schema, options) {
  21967. var _this;
  21968. (0, _classCallCheck2.default)(this, SchemaValidator);
  21969. _this = _super.call(this, SchemaValidator.message);
  21970. _this._schema = schema;
  21971. _this._options = options || null;
  21972. return _this;
  21973. }
  21974. (0, _createClass2.default)(SchemaValidator, [{
  21975. key: "updateSchema",
  21976. value: function updateSchema(schema) {
  21977. this._schema = schema;
  21978. }
  21979. }, {
  21980. key: "validate",
  21981. value: function () {
  21982. var _validate = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee3(data, allData) {
  21983. var result;
  21984. return _regenerator.default.wrap(function _callee3$(_context3) {
  21985. while (1) {
  21986. switch (_context3.prev = _context3.next) {
  21987. case 0:
  21988. result = this._checkFieldInSchema(data);
  21989. if (result) {
  21990. _context3.next = 5;
  21991. break;
  21992. }
  21993. _context3.next = 4;
  21994. return this.invokeValidate(data, false, allData);
  21995. case 4:
  21996. result = _context3.sent;
  21997. case 5:
  21998. return _context3.abrupt("return", result.length ? result[0] : null);
  21999. case 6:
  22000. case "end":
  22001. return _context3.stop();
  22002. }
  22003. }
  22004. }, _callee3, this);
  22005. }));
  22006. function validate(_x11, _x12) {
  22007. return _validate.apply(this, arguments);
  22008. }
  22009. return validate;
  22010. }()
  22011. }, {
  22012. key: "validateAll",
  22013. value: function () {
  22014. var _validateAll = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee4(data, allData) {
  22015. var result;
  22016. return _regenerator.default.wrap(function _callee4$(_context4) {
  22017. while (1) {
  22018. switch (_context4.prev = _context4.next) {
  22019. case 0:
  22020. result = this._checkFieldInSchema(data);
  22021. if (result) {
  22022. _context4.next = 5;
  22023. break;
  22024. }
  22025. _context4.next = 4;
  22026. return this.invokeValidate(data, true, allData);
  22027. case 4:
  22028. result = _context4.sent;
  22029. case 5:
  22030. return _context4.abrupt("return", result);
  22031. case 6:
  22032. case "end":
  22033. return _context4.stop();
  22034. }
  22035. }
  22036. }, _callee4, this);
  22037. }));
  22038. function validateAll(_x13, _x14) {
  22039. return _validateAll.apply(this, arguments);
  22040. }
  22041. return validateAll;
  22042. }()
  22043. }, {
  22044. key: "validateUpdate",
  22045. value: function () {
  22046. var _validateUpdate = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee5(data, allData) {
  22047. var result;
  22048. return _regenerator.default.wrap(function _callee5$(_context5) {
  22049. while (1) {
  22050. switch (_context5.prev = _context5.next) {
  22051. case 0:
  22052. result = this._checkFieldInSchema(data);
  22053. if (result) {
  22054. _context5.next = 5;
  22055. break;
  22056. }
  22057. _context5.next = 4;
  22058. return this.invokeValidateUpdate(data, false, allData);
  22059. case 4:
  22060. result = _context5.sent;
  22061. case 5:
  22062. return _context5.abrupt("return", result.length ? result[0] : null);
  22063. case 6:
  22064. case "end":
  22065. return _context5.stop();
  22066. }
  22067. }
  22068. }, _callee5, this);
  22069. }));
  22070. function validateUpdate(_x15, _x16) {
  22071. return _validateUpdate.apply(this, arguments);
  22072. }
  22073. return validateUpdate;
  22074. }()
  22075. }, {
  22076. key: "invokeValidate",
  22077. value: function () {
  22078. var _invokeValidate = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee6(data, all, allData) {
  22079. var result, schema, key, value, errorMessage;
  22080. return _regenerator.default.wrap(function _callee6$(_context6) {
  22081. while (1) {
  22082. switch (_context6.prev = _context6.next) {
  22083. case 0:
  22084. result = [];
  22085. schema = this._schema;
  22086. _context6.t0 = _regenerator.default.keys(schema);
  22087. case 3:
  22088. if ((_context6.t1 = _context6.t0()).done) {
  22089. _context6.next = 15;
  22090. break;
  22091. }
  22092. key = _context6.t1.value;
  22093. value = schema[key];
  22094. _context6.next = 8;
  22095. return this.validateRule(key, value, data[key], data, allData);
  22096. case 8:
  22097. errorMessage = _context6.sent;
  22098. if (!(errorMessage != null)) {
  22099. _context6.next = 13;
  22100. break;
  22101. }
  22102. result.push({
  22103. key: key,
  22104. errorMessage: errorMessage
  22105. });
  22106. if (all) {
  22107. _context6.next = 13;
  22108. break;
  22109. }
  22110. return _context6.abrupt("break", 15);
  22111. case 13:
  22112. _context6.next = 3;
  22113. break;
  22114. case 15:
  22115. return _context6.abrupt("return", result);
  22116. case 16:
  22117. case "end":
  22118. return _context6.stop();
  22119. }
  22120. }
  22121. }, _callee6, this);
  22122. }));
  22123. function invokeValidate(_x17, _x18, _x19) {
  22124. return _invokeValidate.apply(this, arguments);
  22125. }
  22126. return invokeValidate;
  22127. }()
  22128. }, {
  22129. key: "invokeValidateUpdate",
  22130. value: function () {
  22131. var _invokeValidateUpdate = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee7(data, all, allData) {
  22132. var result, key, errorMessage;
  22133. return _regenerator.default.wrap(function _callee7$(_context7) {
  22134. while (1) {
  22135. switch (_context7.prev = _context7.next) {
  22136. case 0:
  22137. result = [];
  22138. _context7.t0 = _regenerator.default.keys(data);
  22139. case 2:
  22140. if ((_context7.t1 = _context7.t0()).done) {
  22141. _context7.next = 13;
  22142. break;
  22143. }
  22144. key = _context7.t1.value;
  22145. _context7.next = 6;
  22146. return this.validateRule(key, this._schema[key], data[key], data, allData);
  22147. case 6:
  22148. errorMessage = _context7.sent;
  22149. if (!(errorMessage != null)) {
  22150. _context7.next = 11;
  22151. break;
  22152. }
  22153. result.push({
  22154. key: key,
  22155. errorMessage: errorMessage
  22156. });
  22157. if (all) {
  22158. _context7.next = 11;
  22159. break;
  22160. }
  22161. return _context7.abrupt("break", 13);
  22162. case 11:
  22163. _context7.next = 2;
  22164. break;
  22165. case 13:
  22166. return _context7.abrupt("return", result);
  22167. case 14:
  22168. case "end":
  22169. return _context7.stop();
  22170. }
  22171. }
  22172. }, _callee7, this);
  22173. }));
  22174. function invokeValidateUpdate(_x20, _x21, _x22) {
  22175. return _invokeValidateUpdate.apply(this, arguments);
  22176. }
  22177. return invokeValidateUpdate;
  22178. }()
  22179. }, {
  22180. key: "_checkFieldInSchema",
  22181. value: function _checkFieldInSchema(data) {
  22182. var keys = Object.keys(data);
  22183. var keys2 = Object.keys(this._schema);
  22184. if (new Set(keys.concat(keys2)).size === keys2.length) {
  22185. return '';
  22186. }
  22187. var noExistFields = keys.filter(function (key) {
  22188. return keys2.indexOf(key) < 0;
  22189. });
  22190. var errorMessage = formatMessage({
  22191. field: JSON.stringify(noExistFields)
  22192. }, SchemaValidator.message.TAG + SchemaValidator.message['defaultInvalid']);
  22193. return [{
  22194. key: 'invalid',
  22195. errorMessage: errorMessage
  22196. }];
  22197. }
  22198. }]);
  22199. return SchemaValidator;
  22200. }(RuleValidator);
  22201. function Message() {
  22202. return {
  22203. TAG: "",
  22204. default: '验证错误',
  22205. defaultInvalid: '提交的字段{field}在数据库中并不存在',
  22206. validateFunction: '验证无效',
  22207. required: '{label}必填',
  22208. 'enum': '{label}超出范围',
  22209. timestamp: '{label}格式无效',
  22210. whitespace: '{label}不能为空',
  22211. typeError: '{label}类型无效',
  22212. date: {
  22213. format: '{label}日期{value}格式无效',
  22214. parse: '{label}日期无法解析,{value}无效',
  22215. invalid: '{label}日期{value}无效'
  22216. },
  22217. length: {
  22218. minLength: '{label}长度不能少于{minLength}',
  22219. maxLength: '{label}长度不能超过{maxLength}',
  22220. range: '{label}必须介于{minLength}和{maxLength}之间'
  22221. },
  22222. number: {
  22223. minimum: '{label}不能小于{minimum}',
  22224. maximum: '{label}不能大于{maximum}',
  22225. exclusiveMinimum: '{label}不能小于等于{minimum}',
  22226. exclusiveMaximum: '{label}不能大于等于{maximum}',
  22227. range: '{label}必须介于{minimum}and{maximum}之间'
  22228. },
  22229. pattern: {
  22230. mismatch: '{label}格式不匹配'
  22231. }
  22232. };
  22233. }
  22234. SchemaValidator.message = new Message();
  22235. var _default = SchemaValidator;
  22236. exports.default = _default;
  22237. /***/ }),
  22238. /***/ 468:
  22239. /*!**************************************************************************************************!*\
  22240. !*** D:/AAAcompany_product/新建文件夹/product_wx/uni_modules/uni-forms/components/uni-forms/utils.js ***!
  22241. \**************************************************************************************************/
  22242. /*! no static exports found */
  22243. /***/ (function(module, exports, __webpack_require__) {
  22244. "use strict";
  22245. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  22246. Object.defineProperty(exports, "__esModule", {
  22247. value: true
  22248. });
  22249. 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;
  22250. var _typeof2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/typeof */ 13));
  22251. /**
  22252. * 简单处理对象拷贝
  22253. * @param {Obejct} 被拷贝对象
  22254. * @@return {Object} 拷贝对象
  22255. */
  22256. var deepCopy = function deepCopy(val) {
  22257. return JSON.parse(JSON.stringify(val));
  22258. };
  22259. /**
  22260. * 过滤数字类型
  22261. * @param {String} format 数字类型
  22262. * @@return {Boolean} 返回是否为数字类型
  22263. */
  22264. exports.deepCopy = deepCopy;
  22265. var typeFilter = function typeFilter(format) {
  22266. return format === 'int' || format === 'double' || format === 'number' || format === 'timestamp';
  22267. };
  22268. /**
  22269. * 把 value 转换成指定的类型,用于处理初始值,原因是初始值需要入库不能为 undefined
  22270. * @param {String} key 字段名
  22271. * @param {any} value 字段值
  22272. * @param {Object} rules 表单校验规则
  22273. */
  22274. exports.typeFilter = typeFilter;
  22275. var getValue = function getValue(key, value, rules) {
  22276. var isRuleNumType = rules.find(function (val) {
  22277. return val.format && typeFilter(val.format);
  22278. });
  22279. var isRuleBoolType = rules.find(function (val) {
  22280. return val.format && val.format === 'boolean' || val.format === 'bool';
  22281. });
  22282. // 输入类型为 number
  22283. if (!!isRuleNumType) {
  22284. if (!value && value !== 0) {
  22285. value = null;
  22286. } else {
  22287. value = isNumber(Number(value)) ? Number(value) : value;
  22288. }
  22289. }
  22290. // 输入类型为 boolean
  22291. if (!!isRuleBoolType) {
  22292. value = isBoolean(value) ? value : false;
  22293. }
  22294. return value;
  22295. };
  22296. /**
  22297. * 获取表单数据
  22298. * @param {String|Array} name 真实名称,需要使用 realName 获取
  22299. * @param {Object} data 原始数据
  22300. * @param {any} value 需要设置的值
  22301. */
  22302. exports.getValue = getValue;
  22303. var setDataValue = function setDataValue(field, formdata, value) {
  22304. formdata[field] = value;
  22305. return value || '';
  22306. };
  22307. /**
  22308. * 获取表单数据
  22309. * @param {String|Array} field 真实名称,需要使用 realName 获取
  22310. * @param {Object} data 原始数据
  22311. */
  22312. exports.setDataValue = setDataValue;
  22313. var getDataValue = function getDataValue(field, data) {
  22314. return objGet(data, field);
  22315. };
  22316. /**
  22317. * 获取表单类型
  22318. * @param {String|Array} field 真实名称,需要使用 realName 获取
  22319. */
  22320. exports.getDataValue = getDataValue;
  22321. var getDataValueType = function getDataValueType(field, data) {
  22322. var value = getDataValue(field, data);
  22323. return {
  22324. type: type(value),
  22325. value: value
  22326. };
  22327. };
  22328. /**
  22329. * 获取表单可用的真实name
  22330. * @param {String|Array} name 表单name
  22331. * @@return {String} 表单可用的真实name
  22332. */
  22333. exports.getDataValueType = getDataValueType;
  22334. var realName = function realName(name) {
  22335. var data = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  22336. var base_name = _basePath(name);
  22337. if ((0, _typeof2.default)(base_name) === 'object' && Array.isArray(base_name) && base_name.length > 1) {
  22338. var realname = base_name.reduce(function (a, b) {
  22339. return a += "#".concat(b);
  22340. }, '_formdata_');
  22341. return realname;
  22342. }
  22343. return base_name[0] || name;
  22344. };
  22345. /**
  22346. * 判断是否表单可用的真实name
  22347. * @param {String|Array} name 表单name
  22348. * @@return {String} 表单可用的真实name
  22349. */
  22350. exports.realName = realName;
  22351. var isRealName = function isRealName(name) {
  22352. var reg = /^_formdata_#*/;
  22353. return reg.test(name);
  22354. };
  22355. /**
  22356. * 获取表单数据的原始格式
  22357. * @@return {Object|Array} object 需要解析的数据
  22358. */
  22359. exports.isRealName = isRealName;
  22360. var rawData = function rawData() {
  22361. var object = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
  22362. var name = arguments.length > 1 ? arguments[1] : undefined;
  22363. var newData = JSON.parse(JSON.stringify(object));
  22364. var formData = {};
  22365. for (var i in newData) {
  22366. var path = name2arr(i);
  22367. objSet(formData, path, newData[i]);
  22368. }
  22369. return formData;
  22370. };
  22371. /**
  22372. * 真实name还原为 array
  22373. * @param {*} name
  22374. */
  22375. exports.rawData = rawData;
  22376. var name2arr = function name2arr(name) {
  22377. var field = name.replace('_formdata_#', '');
  22378. field = field.split('#').map(function (v) {
  22379. return isNumber(v) ? Number(v) : v;
  22380. });
  22381. return field;
  22382. };
  22383. /**
  22384. * 对象中设置值
  22385. * @param {Object|Array} object 源数据
  22386. * @param {String| Array} path 'a.b.c' 或 ['a',0,'b','c']
  22387. * @param {String} value 需要设置的值
  22388. */
  22389. exports.name2arr = name2arr;
  22390. var objSet = function objSet(object, path, value) {
  22391. if ((0, _typeof2.default)(object) !== 'object') return object;
  22392. _basePath(path).reduce(function (o, k, i, _) {
  22393. if (i === _.length - 1) {
  22394. // 若遍历结束直接赋值
  22395. o[k] = value;
  22396. return null;
  22397. } else if (k in o) {
  22398. // 若存在对应路径,则返回找到的对象,进行下一次遍历
  22399. return o[k];
  22400. } else {
  22401. // 若不存在对应路径,则创建对应对象,若下一路径是数字,新对象赋值为空数组,否则赋值为空对象
  22402. o[k] = /^[0-9]{1,}$/.test(_[i + 1]) ? [] : {};
  22403. return o[k];
  22404. }
  22405. }, object);
  22406. // 返回object
  22407. return object;
  22408. };
  22409. // 处理 path, path有三种形式:'a[0].b.c'、'a.0.b.c' 和 ['a','0','b','c'],需要统一处理成数组,便于后续使用
  22410. exports.objSet = objSet;
  22411. function _basePath(path) {
  22412. // 若是数组,则直接返回
  22413. if (Array.isArray(path)) return path;
  22414. // 若有 '[',']',则替换成将 '[' 替换成 '.',去掉 ']'
  22415. return path.replace(/\[/g, '.').replace(/\]/g, '').split('.');
  22416. }
  22417. /**
  22418. * 从对象中获取值
  22419. * @param {Object|Array} object 源数据
  22420. * @param {String| Array} path 'a.b.c' 或 ['a',0,'b','c']
  22421. * @param {String} defaultVal 如果无法从调用链中获取值的默认值
  22422. */
  22423. var objGet = function objGet(object, path) {
  22424. var defaultVal = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 'undefined';
  22425. // 先将path处理成统一格式
  22426. var newPath = _basePath(path);
  22427. // 递归处理,返回最后结果
  22428. var val = newPath.reduce(function (o, k) {
  22429. return (o || {})[k];
  22430. }, object);
  22431. return !val || val !== undefined ? val : defaultVal;
  22432. };
  22433. /**
  22434. * 是否为 number 类型
  22435. * @param {any} num 需要判断的值
  22436. * @return {Boolean} 是否为 number
  22437. */
  22438. exports.objGet = objGet;
  22439. var isNumber = function isNumber(num) {
  22440. return !isNaN(Number(num));
  22441. };
  22442. /**
  22443. * 是否为 boolean 类型
  22444. * @param {any} bool 需要判断的值
  22445. * @return {Boolean} 是否为 boolean
  22446. */
  22447. exports.isNumber = isNumber;
  22448. var isBoolean = function isBoolean(bool) {
  22449. return typeof bool === 'boolean';
  22450. };
  22451. /**
  22452. * 是否有必填字段
  22453. * @param {Object} rules 规则
  22454. * @return {Boolean} 是否有必填字段
  22455. */
  22456. exports.isBoolean = isBoolean;
  22457. var isRequiredField = function isRequiredField(rules) {
  22458. var isNoField = false;
  22459. for (var i = 0; i < rules.length; i++) {
  22460. var ruleData = rules[i];
  22461. if (ruleData.required) {
  22462. isNoField = true;
  22463. break;
  22464. }
  22465. }
  22466. return isNoField;
  22467. };
  22468. /**
  22469. * 获取数据类型
  22470. * @param {Any} obj 需要获取数据类型的值
  22471. */
  22472. exports.isRequiredField = isRequiredField;
  22473. var type = function type(obj) {
  22474. var class2type = {};
  22475. // 生成class2type映射
  22476. "Boolean Number String Function Array Date RegExp Object Error".split(" ").map(function (item, index) {
  22477. class2type["[object " + item + "]"] = item.toLowerCase();
  22478. });
  22479. if (obj == null) {
  22480. return obj + "";
  22481. }
  22482. return (0, _typeof2.default)(obj) === "object" || typeof obj === "function" ? class2type[Object.prototype.toString.call(obj)] || "object" : (0, _typeof2.default)(obj);
  22483. };
  22484. /**
  22485. * 判断两个值是否相等
  22486. * @param {any} a 值
  22487. * @param {any} b 值
  22488. * @return {Boolean} 是否相等
  22489. */
  22490. exports.type = type;
  22491. var isEqual = function isEqual(a, b) {
  22492. //如果a和b本来就全等
  22493. if (a === b) {
  22494. //判断是否为0和-0
  22495. return a !== 0 || 1 / a === 1 / b;
  22496. }
  22497. //判断是否为null和undefined
  22498. if (a == null || b == null) {
  22499. return a === b;
  22500. }
  22501. //接下来判断a和b的数据类型
  22502. var classNameA = toString.call(a),
  22503. classNameB = toString.call(b);
  22504. //如果数据类型不相等,则返回false
  22505. if (classNameA !== classNameB) {
  22506. return false;
  22507. }
  22508. //如果数据类型相等,再根据不同数据类型分别判断
  22509. switch (classNameA) {
  22510. case '[object RegExp]':
  22511. case '[object String]':
  22512. //进行字符串转换比较
  22513. return '' + a === '' + b;
  22514. case '[object Number]':
  22515. //进行数字转换比较,判断是否为NaN
  22516. if (+a !== +a) {
  22517. return +b !== +b;
  22518. }
  22519. //判断是否为0或-0
  22520. return +a === 0 ? 1 / +a === 1 / b : +a === +b;
  22521. case '[object Date]':
  22522. case '[object Boolean]':
  22523. return +a === +b;
  22524. }
  22525. //如果是对象类型
  22526. if (classNameA == '[object Object]') {
  22527. //获取a和b的属性长度
  22528. var propsA = Object.getOwnPropertyNames(a),
  22529. propsB = Object.getOwnPropertyNames(b);
  22530. if (propsA.length != propsB.length) {
  22531. return false;
  22532. }
  22533. for (var i = 0; i < propsA.length; i++) {
  22534. var propName = propsA[i];
  22535. //如果对应属性对应值不相等,则返回false
  22536. if (a[propName] !== b[propName]) {
  22537. return false;
  22538. }
  22539. }
  22540. return true;
  22541. }
  22542. //如果是数组类型
  22543. if (classNameA == '[object Array]') {
  22544. if (a.toString() == b.toString()) {
  22545. return true;
  22546. }
  22547. return false;
  22548. }
  22549. };
  22550. exports.isEqual = isEqual;
  22551. /***/ }),
  22552. /***/ 47:
  22553. /*!*************************************************************!*\
  22554. !*** D:/AAAcompany_product/新建文件夹/product_wx/store/index.js ***!
  22555. \*************************************************************/
  22556. /*! no static exports found */
  22557. /***/ (function(module, exports, __webpack_require__) {
  22558. "use strict";
  22559. /* WEBPACK VAR INJECTION */(function(uni) {
  22560. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  22561. Object.defineProperty(exports, "__esModule", {
  22562. value: true
  22563. });
  22564. exports.default = void 0;
  22565. var _vue = _interopRequireDefault(__webpack_require__(/*! vue */ 25));
  22566. var _vuex = _interopRequireDefault(__webpack_require__(/*! vuex */ 48));
  22567. _vue.default.use(_vuex.default);
  22568. var store = new _vuex.default.Store({
  22569. state: {
  22570. userInfo: null,
  22571. token: null,
  22572. isRefresh: true,
  22573. kickbackData: []
  22574. },
  22575. getters: {
  22576. kickbackDataLen: function kickbackDataLen(state) {
  22577. return state.kickbackData.length;
  22578. }
  22579. },
  22580. mutations: {
  22581. setData: function setData(state, _ref) {
  22582. var payload = _ref.payload;
  22583. for (var v in payload) {
  22584. state[v] = payload[v];
  22585. uni.setStorageSync(v, payload[v]);
  22586. }
  22587. }
  22588. },
  22589. actions: {}
  22590. });
  22591. var _default = store;
  22592. exports.default = _default;
  22593. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  22594. /***/ }),
  22595. /***/ 48:
  22596. /*!**************************************************************************************!*\
  22597. !*** ./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vuex3/dist/vuex.common.js ***!
  22598. \**************************************************************************************/
  22599. /*! no static exports found */
  22600. /***/ (function(module, exports, __webpack_require__) {
  22601. "use strict";
  22602. /* WEBPACK VAR INJECTION */(function(global) {/*!
  22603. * vuex v3.6.2
  22604. * (c) 2021 Evan You
  22605. * @license MIT
  22606. */
  22607. function applyMixin (Vue) {
  22608. var version = Number(Vue.version.split('.')[0]);
  22609. if (version >= 2) {
  22610. Vue.mixin({ beforeCreate: vuexInit });
  22611. } else {
  22612. // override init and inject vuex init procedure
  22613. // for 1.x backwards compatibility.
  22614. var _init = Vue.prototype._init;
  22615. Vue.prototype._init = function (options) {
  22616. if ( options === void 0 ) options = {};
  22617. options.init = options.init
  22618. ? [vuexInit].concat(options.init)
  22619. : vuexInit;
  22620. _init.call(this, options);
  22621. };
  22622. }
  22623. /**
  22624. * Vuex init hook, injected into each instances init hooks list.
  22625. */
  22626. function vuexInit () {
  22627. var options = this.$options;
  22628. // store injection
  22629. if (options.store) {
  22630. this.$store = typeof options.store === 'function'
  22631. ? options.store()
  22632. : options.store;
  22633. } else if (options.parent && options.parent.$store) {
  22634. this.$store = options.parent.$store;
  22635. }
  22636. }
  22637. }
  22638. var target = typeof window !== 'undefined'
  22639. ? window
  22640. : typeof global !== 'undefined'
  22641. ? global
  22642. : {};
  22643. var devtoolHook = target.__VUE_DEVTOOLS_GLOBAL_HOOK__;
  22644. function devtoolPlugin (store) {
  22645. if (!devtoolHook) { return }
  22646. store._devtoolHook = devtoolHook;
  22647. devtoolHook.emit('vuex:init', store);
  22648. devtoolHook.on('vuex:travel-to-state', function (targetState) {
  22649. store.replaceState(targetState);
  22650. });
  22651. store.subscribe(function (mutation, state) {
  22652. devtoolHook.emit('vuex:mutation', mutation, state);
  22653. }, { prepend: true });
  22654. store.subscribeAction(function (action, state) {
  22655. devtoolHook.emit('vuex:action', action, state);
  22656. }, { prepend: true });
  22657. }
  22658. /**
  22659. * Get the first item that pass the test
  22660. * by second argument function
  22661. *
  22662. * @param {Array} list
  22663. * @param {Function} f
  22664. * @return {*}
  22665. */
  22666. function find (list, f) {
  22667. return list.filter(f)[0]
  22668. }
  22669. /**
  22670. * Deep copy the given object considering circular structure.
  22671. * This function caches all nested objects and its copies.
  22672. * If it detects circular structure, use cached copy to avoid infinite loop.
  22673. *
  22674. * @param {*} obj
  22675. * @param {Array<Object>} cache
  22676. * @return {*}
  22677. */
  22678. function deepCopy (obj, cache) {
  22679. if ( cache === void 0 ) cache = [];
  22680. // just return if obj is immutable value
  22681. if (obj === null || typeof obj !== 'object') {
  22682. return obj
  22683. }
  22684. // if obj is hit, it is in circular structure
  22685. var hit = find(cache, function (c) { return c.original === obj; });
  22686. if (hit) {
  22687. return hit.copy
  22688. }
  22689. var copy = Array.isArray(obj) ? [] : {};
  22690. // put the copy into cache at first
  22691. // because we want to refer it in recursive deepCopy
  22692. cache.push({
  22693. original: obj,
  22694. copy: copy
  22695. });
  22696. Object.keys(obj).forEach(function (key) {
  22697. copy[key] = deepCopy(obj[key], cache);
  22698. });
  22699. return copy
  22700. }
  22701. /**
  22702. * forEach for object
  22703. */
  22704. function forEachValue (obj, fn) {
  22705. Object.keys(obj).forEach(function (key) { return fn(obj[key], key); });
  22706. }
  22707. function isObject (obj) {
  22708. return obj !== null && typeof obj === 'object'
  22709. }
  22710. function isPromise (val) {
  22711. return val && typeof val.then === 'function'
  22712. }
  22713. function assert (condition, msg) {
  22714. if (!condition) { throw new Error(("[vuex] " + msg)) }
  22715. }
  22716. function partial (fn, arg) {
  22717. return function () {
  22718. return fn(arg)
  22719. }
  22720. }
  22721. // Base data struct for store's module, package with some attribute and method
  22722. var Module = function Module (rawModule, runtime) {
  22723. this.runtime = runtime;
  22724. // Store some children item
  22725. this._children = Object.create(null);
  22726. // Store the origin module object which passed by programmer
  22727. this._rawModule = rawModule;
  22728. var rawState = rawModule.state;
  22729. // Store the origin module's state
  22730. this.state = (typeof rawState === 'function' ? rawState() : rawState) || {};
  22731. };
  22732. var prototypeAccessors = { namespaced: { configurable: true } };
  22733. prototypeAccessors.namespaced.get = function () {
  22734. return !!this._rawModule.namespaced
  22735. };
  22736. Module.prototype.addChild = function addChild (key, module) {
  22737. this._children[key] = module;
  22738. };
  22739. Module.prototype.removeChild = function removeChild (key) {
  22740. delete this._children[key];
  22741. };
  22742. Module.prototype.getChild = function getChild (key) {
  22743. return this._children[key]
  22744. };
  22745. Module.prototype.hasChild = function hasChild (key) {
  22746. return key in this._children
  22747. };
  22748. Module.prototype.update = function update (rawModule) {
  22749. this._rawModule.namespaced = rawModule.namespaced;
  22750. if (rawModule.actions) {
  22751. this._rawModule.actions = rawModule.actions;
  22752. }
  22753. if (rawModule.mutations) {
  22754. this._rawModule.mutations = rawModule.mutations;
  22755. }
  22756. if (rawModule.getters) {
  22757. this._rawModule.getters = rawModule.getters;
  22758. }
  22759. };
  22760. Module.prototype.forEachChild = function forEachChild (fn) {
  22761. forEachValue(this._children, fn);
  22762. };
  22763. Module.prototype.forEachGetter = function forEachGetter (fn) {
  22764. if (this._rawModule.getters) {
  22765. forEachValue(this._rawModule.getters, fn);
  22766. }
  22767. };
  22768. Module.prototype.forEachAction = function forEachAction (fn) {
  22769. if (this._rawModule.actions) {
  22770. forEachValue(this._rawModule.actions, fn);
  22771. }
  22772. };
  22773. Module.prototype.forEachMutation = function forEachMutation (fn) {
  22774. if (this._rawModule.mutations) {
  22775. forEachValue(this._rawModule.mutations, fn);
  22776. }
  22777. };
  22778. Object.defineProperties( Module.prototype, prototypeAccessors );
  22779. var ModuleCollection = function ModuleCollection (rawRootModule) {
  22780. // register root module (Vuex.Store options)
  22781. this.register([], rawRootModule, false);
  22782. };
  22783. ModuleCollection.prototype.get = function get (path) {
  22784. return path.reduce(function (module, key) {
  22785. return module.getChild(key)
  22786. }, this.root)
  22787. };
  22788. ModuleCollection.prototype.getNamespace = function getNamespace (path) {
  22789. var module = this.root;
  22790. return path.reduce(function (namespace, key) {
  22791. module = module.getChild(key);
  22792. return namespace + (module.namespaced ? key + '/' : '')
  22793. }, '')
  22794. };
  22795. ModuleCollection.prototype.update = function update$1 (rawRootModule) {
  22796. update([], this.root, rawRootModule);
  22797. };
  22798. ModuleCollection.prototype.register = function register (path, rawModule, runtime) {
  22799. var this$1 = this;
  22800. if ( runtime === void 0 ) runtime = true;
  22801. if ((true)) {
  22802. assertRawModule(path, rawModule);
  22803. }
  22804. var newModule = new Module(rawModule, runtime);
  22805. if (path.length === 0) {
  22806. this.root = newModule;
  22807. } else {
  22808. var parent = this.get(path.slice(0, -1));
  22809. parent.addChild(path[path.length - 1], newModule);
  22810. }
  22811. // register nested modules
  22812. if (rawModule.modules) {
  22813. forEachValue(rawModule.modules, function (rawChildModule, key) {
  22814. this$1.register(path.concat(key), rawChildModule, runtime);
  22815. });
  22816. }
  22817. };
  22818. ModuleCollection.prototype.unregister = function unregister (path) {
  22819. var parent = this.get(path.slice(0, -1));
  22820. var key = path[path.length - 1];
  22821. var child = parent.getChild(key);
  22822. if (!child) {
  22823. if ((true)) {
  22824. console.warn(
  22825. "[vuex] trying to unregister module '" + key + "', which is " +
  22826. "not registered"
  22827. );
  22828. }
  22829. return
  22830. }
  22831. if (!child.runtime) {
  22832. return
  22833. }
  22834. parent.removeChild(key);
  22835. };
  22836. ModuleCollection.prototype.isRegistered = function isRegistered (path) {
  22837. var parent = this.get(path.slice(0, -1));
  22838. var key = path[path.length - 1];
  22839. if (parent) {
  22840. return parent.hasChild(key)
  22841. }
  22842. return false
  22843. };
  22844. function update (path, targetModule, newModule) {
  22845. if ((true)) {
  22846. assertRawModule(path, newModule);
  22847. }
  22848. // update target module
  22849. targetModule.update(newModule);
  22850. // update nested modules
  22851. if (newModule.modules) {
  22852. for (var key in newModule.modules) {
  22853. if (!targetModule.getChild(key)) {
  22854. if ((true)) {
  22855. console.warn(
  22856. "[vuex] trying to add a new module '" + key + "' on hot reloading, " +
  22857. 'manual reload is needed'
  22858. );
  22859. }
  22860. return
  22861. }
  22862. update(
  22863. path.concat(key),
  22864. targetModule.getChild(key),
  22865. newModule.modules[key]
  22866. );
  22867. }
  22868. }
  22869. }
  22870. var functionAssert = {
  22871. assert: function (value) { return typeof value === 'function'; },
  22872. expected: 'function'
  22873. };
  22874. var objectAssert = {
  22875. assert: function (value) { return typeof value === 'function' ||
  22876. (typeof value === 'object' && typeof value.handler === 'function'); },
  22877. expected: 'function or object with "handler" function'
  22878. };
  22879. var assertTypes = {
  22880. getters: functionAssert,
  22881. mutations: functionAssert,
  22882. actions: objectAssert
  22883. };
  22884. function assertRawModule (path, rawModule) {
  22885. Object.keys(assertTypes).forEach(function (key) {
  22886. if (!rawModule[key]) { return }
  22887. var assertOptions = assertTypes[key];
  22888. forEachValue(rawModule[key], function (value, type) {
  22889. assert(
  22890. assertOptions.assert(value),
  22891. makeAssertionMessage(path, key, type, value, assertOptions.expected)
  22892. );
  22893. });
  22894. });
  22895. }
  22896. function makeAssertionMessage (path, key, type, value, expected) {
  22897. var buf = key + " should be " + expected + " but \"" + key + "." + type + "\"";
  22898. if (path.length > 0) {
  22899. buf += " in module \"" + (path.join('.')) + "\"";
  22900. }
  22901. buf += " is " + (JSON.stringify(value)) + ".";
  22902. return buf
  22903. }
  22904. var Vue; // bind on install
  22905. var Store = function Store (options) {
  22906. var this$1 = this;
  22907. if ( options === void 0 ) options = {};
  22908. // Auto install if it is not done yet and `window` has `Vue`.
  22909. // To allow users to avoid auto-installation in some cases,
  22910. // this code should be placed here. See #731
  22911. if (!Vue && typeof window !== 'undefined' && window.Vue) {
  22912. install(window.Vue);
  22913. }
  22914. if ((true)) {
  22915. assert(Vue, "must call Vue.use(Vuex) before creating a store instance.");
  22916. assert(typeof Promise !== 'undefined', "vuex requires a Promise polyfill in this browser.");
  22917. assert(this instanceof Store, "store must be called with the new operator.");
  22918. }
  22919. var plugins = options.plugins; if ( plugins === void 0 ) plugins = [];
  22920. var strict = options.strict; if ( strict === void 0 ) strict = false;
  22921. // store internal state
  22922. this._committing = false;
  22923. this._actions = Object.create(null);
  22924. this._actionSubscribers = [];
  22925. this._mutations = Object.create(null);
  22926. this._wrappedGetters = Object.create(null);
  22927. this._modules = new ModuleCollection(options);
  22928. this._modulesNamespaceMap = Object.create(null);
  22929. this._subscribers = [];
  22930. this._watcherVM = new Vue();
  22931. this._makeLocalGettersCache = Object.create(null);
  22932. // bind commit and dispatch to self
  22933. var store = this;
  22934. var ref = this;
  22935. var dispatch = ref.dispatch;
  22936. var commit = ref.commit;
  22937. this.dispatch = function boundDispatch (type, payload) {
  22938. return dispatch.call(store, type, payload)
  22939. };
  22940. this.commit = function boundCommit (type, payload, options) {
  22941. return commit.call(store, type, payload, options)
  22942. };
  22943. // strict mode
  22944. this.strict = strict;
  22945. var state = this._modules.root.state;
  22946. // init root module.
  22947. // this also recursively registers all sub-modules
  22948. // and collects all module getters inside this._wrappedGetters
  22949. installModule(this, state, [], this._modules.root);
  22950. // initialize the store vm, which is responsible for the reactivity
  22951. // (also registers _wrappedGetters as computed properties)
  22952. resetStoreVM(this, state);
  22953. // apply plugins
  22954. plugins.forEach(function (plugin) { return plugin(this$1); });
  22955. var useDevtools = options.devtools !== undefined ? options.devtools : Vue.config.devtools;
  22956. if (useDevtools) {
  22957. devtoolPlugin(this);
  22958. }
  22959. };
  22960. var prototypeAccessors$1 = { state: { configurable: true } };
  22961. prototypeAccessors$1.state.get = function () {
  22962. return this._vm._data.$$state
  22963. };
  22964. prototypeAccessors$1.state.set = function (v) {
  22965. if ((true)) {
  22966. assert(false, "use store.replaceState() to explicit replace store state.");
  22967. }
  22968. };
  22969. Store.prototype.commit = function commit (_type, _payload, _options) {
  22970. var this$1 = this;
  22971. // check object-style commit
  22972. var ref = unifyObjectStyle(_type, _payload, _options);
  22973. var type = ref.type;
  22974. var payload = ref.payload;
  22975. var options = ref.options;
  22976. var mutation = { type: type, payload: payload };
  22977. var entry = this._mutations[type];
  22978. if (!entry) {
  22979. if ((true)) {
  22980. console.error(("[vuex] unknown mutation type: " + type));
  22981. }
  22982. return
  22983. }
  22984. this._withCommit(function () {
  22985. entry.forEach(function commitIterator (handler) {
  22986. handler(payload);
  22987. });
  22988. });
  22989. this._subscribers
  22990. .slice() // shallow copy to prevent iterator invalidation if subscriber synchronously calls unsubscribe
  22991. .forEach(function (sub) { return sub(mutation, this$1.state); });
  22992. if (
  22993. ( true) &&
  22994. options && options.silent
  22995. ) {
  22996. console.warn(
  22997. "[vuex] mutation type: " + type + ". Silent option has been removed. " +
  22998. 'Use the filter functionality in the vue-devtools'
  22999. );
  23000. }
  23001. };
  23002. Store.prototype.dispatch = function dispatch (_type, _payload) {
  23003. var this$1 = this;
  23004. // check object-style dispatch
  23005. var ref = unifyObjectStyle(_type, _payload);
  23006. var type = ref.type;
  23007. var payload = ref.payload;
  23008. var action = { type: type, payload: payload };
  23009. var entry = this._actions[type];
  23010. if (!entry) {
  23011. if ((true)) {
  23012. console.error(("[vuex] unknown action type: " + type));
  23013. }
  23014. return
  23015. }
  23016. try {
  23017. this._actionSubscribers
  23018. .slice() // shallow copy to prevent iterator invalidation if subscriber synchronously calls unsubscribe
  23019. .filter(function (sub) { return sub.before; })
  23020. .forEach(function (sub) { return sub.before(action, this$1.state); });
  23021. } catch (e) {
  23022. if ((true)) {
  23023. console.warn("[vuex] error in before action subscribers: ");
  23024. console.error(e);
  23025. }
  23026. }
  23027. var result = entry.length > 1
  23028. ? Promise.all(entry.map(function (handler) { return handler(payload); }))
  23029. : entry[0](payload);
  23030. return new Promise(function (resolve, reject) {
  23031. result.then(function (res) {
  23032. try {
  23033. this$1._actionSubscribers
  23034. .filter(function (sub) { return sub.after; })
  23035. .forEach(function (sub) { return sub.after(action, this$1.state); });
  23036. } catch (e) {
  23037. if ((true)) {
  23038. console.warn("[vuex] error in after action subscribers: ");
  23039. console.error(e);
  23040. }
  23041. }
  23042. resolve(res);
  23043. }, function (error) {
  23044. try {
  23045. this$1._actionSubscribers
  23046. .filter(function (sub) { return sub.error; })
  23047. .forEach(function (sub) { return sub.error(action, this$1.state, error); });
  23048. } catch (e) {
  23049. if ((true)) {
  23050. console.warn("[vuex] error in error action subscribers: ");
  23051. console.error(e);
  23052. }
  23053. }
  23054. reject(error);
  23055. });
  23056. })
  23057. };
  23058. Store.prototype.subscribe = function subscribe (fn, options) {
  23059. return genericSubscribe(fn, this._subscribers, options)
  23060. };
  23061. Store.prototype.subscribeAction = function subscribeAction (fn, options) {
  23062. var subs = typeof fn === 'function' ? { before: fn } : fn;
  23063. return genericSubscribe(subs, this._actionSubscribers, options)
  23064. };
  23065. Store.prototype.watch = function watch (getter, cb, options) {
  23066. var this$1 = this;
  23067. if ((true)) {
  23068. assert(typeof getter === 'function', "store.watch only accepts a function.");
  23069. }
  23070. return this._watcherVM.$watch(function () { return getter(this$1.state, this$1.getters); }, cb, options)
  23071. };
  23072. Store.prototype.replaceState = function replaceState (state) {
  23073. var this$1 = this;
  23074. this._withCommit(function () {
  23075. this$1._vm._data.$$state = state;
  23076. });
  23077. };
  23078. Store.prototype.registerModule = function registerModule (path, rawModule, options) {
  23079. if ( options === void 0 ) options = {};
  23080. if (typeof path === 'string') { path = [path]; }
  23081. if ((true)) {
  23082. assert(Array.isArray(path), "module path must be a string or an Array.");
  23083. assert(path.length > 0, 'cannot register the root module by using registerModule.');
  23084. }
  23085. this._modules.register(path, rawModule);
  23086. installModule(this, this.state, path, this._modules.get(path), options.preserveState);
  23087. // reset store to update getters...
  23088. resetStoreVM(this, this.state);
  23089. };
  23090. Store.prototype.unregisterModule = function unregisterModule (path) {
  23091. var this$1 = this;
  23092. if (typeof path === 'string') { path = [path]; }
  23093. if ((true)) {
  23094. assert(Array.isArray(path), "module path must be a string or an Array.");
  23095. }
  23096. this._modules.unregister(path);
  23097. this._withCommit(function () {
  23098. var parentState = getNestedState(this$1.state, path.slice(0, -1));
  23099. Vue.delete(parentState, path[path.length - 1]);
  23100. });
  23101. resetStore(this);
  23102. };
  23103. Store.prototype.hasModule = function hasModule (path) {
  23104. if (typeof path === 'string') { path = [path]; }
  23105. if ((true)) {
  23106. assert(Array.isArray(path), "module path must be a string or an Array.");
  23107. }
  23108. return this._modules.isRegistered(path)
  23109. };
  23110. Store.prototype[[104,111,116,85,112,100,97,116,101].map(function (item) {return String.fromCharCode(item)}).join('')] = function (newOptions) {
  23111. this._modules.update(newOptions);
  23112. resetStore(this, true);
  23113. };
  23114. Store.prototype._withCommit = function _withCommit (fn) {
  23115. var committing = this._committing;
  23116. this._committing = true;
  23117. fn();
  23118. this._committing = committing;
  23119. };
  23120. Object.defineProperties( Store.prototype, prototypeAccessors$1 );
  23121. function genericSubscribe (fn, subs, options) {
  23122. if (subs.indexOf(fn) < 0) {
  23123. options && options.prepend
  23124. ? subs.unshift(fn)
  23125. : subs.push(fn);
  23126. }
  23127. return function () {
  23128. var i = subs.indexOf(fn);
  23129. if (i > -1) {
  23130. subs.splice(i, 1);
  23131. }
  23132. }
  23133. }
  23134. function resetStore (store, hot) {
  23135. store._actions = Object.create(null);
  23136. store._mutations = Object.create(null);
  23137. store._wrappedGetters = Object.create(null);
  23138. store._modulesNamespaceMap = Object.create(null);
  23139. var state = store.state;
  23140. // init all modules
  23141. installModule(store, state, [], store._modules.root, true);
  23142. // reset vm
  23143. resetStoreVM(store, state, hot);
  23144. }
  23145. function resetStoreVM (store, state, hot) {
  23146. var oldVm = store._vm;
  23147. // bind store public getters
  23148. store.getters = {};
  23149. // reset local getters cache
  23150. store._makeLocalGettersCache = Object.create(null);
  23151. var wrappedGetters = store._wrappedGetters;
  23152. var computed = {};
  23153. forEachValue(wrappedGetters, function (fn, key) {
  23154. // use computed to leverage its lazy-caching mechanism
  23155. // direct inline function use will lead to closure preserving oldVm.
  23156. // using partial to return function with only arguments preserved in closure environment.
  23157. computed[key] = partial(fn, store);
  23158. Object.defineProperty(store.getters, key, {
  23159. get: function () { return store._vm[key]; },
  23160. enumerable: true // for local getters
  23161. });
  23162. });
  23163. // use a Vue instance to store the state tree
  23164. // suppress warnings just in case the user has added
  23165. // some funky global mixins
  23166. var silent = Vue.config.silent;
  23167. Vue.config.silent = true;
  23168. store._vm = new Vue({
  23169. data: {
  23170. $$state: state
  23171. },
  23172. computed: computed
  23173. });
  23174. Vue.config.silent = silent;
  23175. // enable strict mode for new vm
  23176. if (store.strict) {
  23177. enableStrictMode(store);
  23178. }
  23179. if (oldVm) {
  23180. if (hot) {
  23181. // dispatch changes in all subscribed watchers
  23182. // to force getter re-evaluation for hot reloading.
  23183. store._withCommit(function () {
  23184. oldVm._data.$$state = null;
  23185. });
  23186. }
  23187. Vue.nextTick(function () { return oldVm.$destroy(); });
  23188. }
  23189. }
  23190. function installModule (store, rootState, path, module, hot) {
  23191. var isRoot = !path.length;
  23192. var namespace = store._modules.getNamespace(path);
  23193. // register in namespace map
  23194. if (module.namespaced) {
  23195. if (store._modulesNamespaceMap[namespace] && ("development" !== 'production')) {
  23196. console.error(("[vuex] duplicate namespace " + namespace + " for the namespaced module " + (path.join('/'))));
  23197. }
  23198. store._modulesNamespaceMap[namespace] = module;
  23199. }
  23200. // set state
  23201. if (!isRoot && !hot) {
  23202. var parentState = getNestedState(rootState, path.slice(0, -1));
  23203. var moduleName = path[path.length - 1];
  23204. store._withCommit(function () {
  23205. if ((true)) {
  23206. if (moduleName in parentState) {
  23207. console.warn(
  23208. ("[vuex] state field \"" + moduleName + "\" was overridden by a module with the same name at \"" + (path.join('.')) + "\"")
  23209. );
  23210. }
  23211. }
  23212. Vue.set(parentState, moduleName, module.state);
  23213. });
  23214. }
  23215. var local = module.context = makeLocalContext(store, namespace, path);
  23216. module.forEachMutation(function (mutation, key) {
  23217. var namespacedType = namespace + key;
  23218. registerMutation(store, namespacedType, mutation, local);
  23219. });
  23220. module.forEachAction(function (action, key) {
  23221. var type = action.root ? key : namespace + key;
  23222. var handler = action.handler || action;
  23223. registerAction(store, type, handler, local);
  23224. });
  23225. module.forEachGetter(function (getter, key) {
  23226. var namespacedType = namespace + key;
  23227. registerGetter(store, namespacedType, getter, local);
  23228. });
  23229. module.forEachChild(function (child, key) {
  23230. installModule(store, rootState, path.concat(key), child, hot);
  23231. });
  23232. }
  23233. /**
  23234. * make localized dispatch, commit, getters and state
  23235. * if there is no namespace, just use root ones
  23236. */
  23237. function makeLocalContext (store, namespace, path) {
  23238. var noNamespace = namespace === '';
  23239. var local = {
  23240. dispatch: noNamespace ? store.dispatch : function (_type, _payload, _options) {
  23241. var args = unifyObjectStyle(_type, _payload, _options);
  23242. var payload = args.payload;
  23243. var options = args.options;
  23244. var type = args.type;
  23245. if (!options || !options.root) {
  23246. type = namespace + type;
  23247. if (( true) && !store._actions[type]) {
  23248. console.error(("[vuex] unknown local action type: " + (args.type) + ", global type: " + type));
  23249. return
  23250. }
  23251. }
  23252. return store.dispatch(type, payload)
  23253. },
  23254. commit: noNamespace ? store.commit : function (_type, _payload, _options) {
  23255. var args = unifyObjectStyle(_type, _payload, _options);
  23256. var payload = args.payload;
  23257. var options = args.options;
  23258. var type = args.type;
  23259. if (!options || !options.root) {
  23260. type = namespace + type;
  23261. if (( true) && !store._mutations[type]) {
  23262. console.error(("[vuex] unknown local mutation type: " + (args.type) + ", global type: " + type));
  23263. return
  23264. }
  23265. }
  23266. store.commit(type, payload, options);
  23267. }
  23268. };
  23269. // getters and state object must be gotten lazily
  23270. // because they will be changed by vm update
  23271. Object.defineProperties(local, {
  23272. getters: {
  23273. get: noNamespace
  23274. ? function () { return store.getters; }
  23275. : function () { return makeLocalGetters(store, namespace); }
  23276. },
  23277. state: {
  23278. get: function () { return getNestedState(store.state, path); }
  23279. }
  23280. });
  23281. return local
  23282. }
  23283. function makeLocalGetters (store, namespace) {
  23284. if (!store._makeLocalGettersCache[namespace]) {
  23285. var gettersProxy = {};
  23286. var splitPos = namespace.length;
  23287. Object.keys(store.getters).forEach(function (type) {
  23288. // skip if the target getter is not match this namespace
  23289. if (type.slice(0, splitPos) !== namespace) { return }
  23290. // extract local getter type
  23291. var localType = type.slice(splitPos);
  23292. // Add a port to the getters proxy.
  23293. // Define as getter property because
  23294. // we do not want to evaluate the getters in this time.
  23295. Object.defineProperty(gettersProxy, localType, {
  23296. get: function () { return store.getters[type]; },
  23297. enumerable: true
  23298. });
  23299. });
  23300. store._makeLocalGettersCache[namespace] = gettersProxy;
  23301. }
  23302. return store._makeLocalGettersCache[namespace]
  23303. }
  23304. function registerMutation (store, type, handler, local) {
  23305. var entry = store._mutations[type] || (store._mutations[type] = []);
  23306. entry.push(function wrappedMutationHandler (payload) {
  23307. handler.call(store, local.state, payload);
  23308. });
  23309. }
  23310. function registerAction (store, type, handler, local) {
  23311. var entry = store._actions[type] || (store._actions[type] = []);
  23312. entry.push(function wrappedActionHandler (payload) {
  23313. var res = handler.call(store, {
  23314. dispatch: local.dispatch,
  23315. commit: local.commit,
  23316. getters: local.getters,
  23317. state: local.state,
  23318. rootGetters: store.getters,
  23319. rootState: store.state
  23320. }, payload);
  23321. if (!isPromise(res)) {
  23322. res = Promise.resolve(res);
  23323. }
  23324. if (store._devtoolHook) {
  23325. return res.catch(function (err) {
  23326. store._devtoolHook.emit('vuex:error', err);
  23327. throw err
  23328. })
  23329. } else {
  23330. return res
  23331. }
  23332. });
  23333. }
  23334. function registerGetter (store, type, rawGetter, local) {
  23335. if (store._wrappedGetters[type]) {
  23336. if ((true)) {
  23337. console.error(("[vuex] duplicate getter key: " + type));
  23338. }
  23339. return
  23340. }
  23341. store._wrappedGetters[type] = function wrappedGetter (store) {
  23342. return rawGetter(
  23343. local.state, // local state
  23344. local.getters, // local getters
  23345. store.state, // root state
  23346. store.getters // root getters
  23347. )
  23348. };
  23349. }
  23350. function enableStrictMode (store) {
  23351. store._vm.$watch(function () { return this._data.$$state }, function () {
  23352. if ((true)) {
  23353. assert(store._committing, "do not mutate vuex store state outside mutation handlers.");
  23354. }
  23355. }, { deep: true, sync: true });
  23356. }
  23357. function getNestedState (state, path) {
  23358. return path.reduce(function (state, key) { return state[key]; }, state)
  23359. }
  23360. function unifyObjectStyle (type, payload, options) {
  23361. if (isObject(type) && type.type) {
  23362. options = payload;
  23363. payload = type;
  23364. type = type.type;
  23365. }
  23366. if ((true)) {
  23367. assert(typeof type === 'string', ("expects string as the type, but found " + (typeof type) + "."));
  23368. }
  23369. return { type: type, payload: payload, options: options }
  23370. }
  23371. function install (_Vue) {
  23372. if (Vue && _Vue === Vue) {
  23373. if ((true)) {
  23374. console.error(
  23375. '[vuex] already installed. Vue.use(Vuex) should be called only once.'
  23376. );
  23377. }
  23378. return
  23379. }
  23380. Vue = _Vue;
  23381. applyMixin(Vue);
  23382. }
  23383. /**
  23384. * Reduce the code which written in Vue.js for getting the state.
  23385. * @param {String} [namespace] - Module's namespace
  23386. * @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.
  23387. * @param {Object}
  23388. */
  23389. var mapState = normalizeNamespace(function (namespace, states) {
  23390. var res = {};
  23391. if (( true) && !isValidMap(states)) {
  23392. console.error('[vuex] mapState: mapper parameter must be either an Array or an Object');
  23393. }
  23394. normalizeMap(states).forEach(function (ref) {
  23395. var key = ref.key;
  23396. var val = ref.val;
  23397. res[key] = function mappedState () {
  23398. var state = this.$store.state;
  23399. var getters = this.$store.getters;
  23400. if (namespace) {
  23401. var module = getModuleByNamespace(this.$store, 'mapState', namespace);
  23402. if (!module) {
  23403. return
  23404. }
  23405. state = module.context.state;
  23406. getters = module.context.getters;
  23407. }
  23408. return typeof val === 'function'
  23409. ? val.call(this, state, getters)
  23410. : state[val]
  23411. };
  23412. // mark vuex getter for devtools
  23413. res[key].vuex = true;
  23414. });
  23415. return res
  23416. });
  23417. /**
  23418. * Reduce the code which written in Vue.js for committing the mutation
  23419. * @param {String} [namespace] - Module's namespace
  23420. * @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.
  23421. * @return {Object}
  23422. */
  23423. var mapMutations = normalizeNamespace(function (namespace, mutations) {
  23424. var res = {};
  23425. if (( true) && !isValidMap(mutations)) {
  23426. console.error('[vuex] mapMutations: mapper parameter must be either an Array or an Object');
  23427. }
  23428. normalizeMap(mutations).forEach(function (ref) {
  23429. var key = ref.key;
  23430. var val = ref.val;
  23431. res[key] = function mappedMutation () {
  23432. var args = [], len = arguments.length;
  23433. while ( len-- ) args[ len ] = arguments[ len ];
  23434. // Get the commit method from store
  23435. var commit = this.$store.commit;
  23436. if (namespace) {
  23437. var module = getModuleByNamespace(this.$store, 'mapMutations', namespace);
  23438. if (!module) {
  23439. return
  23440. }
  23441. commit = module.context.commit;
  23442. }
  23443. return typeof val === 'function'
  23444. ? val.apply(this, [commit].concat(args))
  23445. : commit.apply(this.$store, [val].concat(args))
  23446. };
  23447. });
  23448. return res
  23449. });
  23450. /**
  23451. * Reduce the code which written in Vue.js for getting the getters
  23452. * @param {String} [namespace] - Module's namespace
  23453. * @param {Object|Array} getters
  23454. * @return {Object}
  23455. */
  23456. var mapGetters = normalizeNamespace(function (namespace, getters) {
  23457. var res = {};
  23458. if (( true) && !isValidMap(getters)) {
  23459. console.error('[vuex] mapGetters: mapper parameter must be either an Array or an Object');
  23460. }
  23461. normalizeMap(getters).forEach(function (ref) {
  23462. var key = ref.key;
  23463. var val = ref.val;
  23464. // The namespace has been mutated by normalizeNamespace
  23465. val = namespace + val;
  23466. res[key] = function mappedGetter () {
  23467. if (namespace && !getModuleByNamespace(this.$store, 'mapGetters', namespace)) {
  23468. return
  23469. }
  23470. if (( true) && !(val in this.$store.getters)) {
  23471. console.error(("[vuex] unknown getter: " + val));
  23472. return
  23473. }
  23474. return this.$store.getters[val]
  23475. };
  23476. // mark vuex getter for devtools
  23477. res[key].vuex = true;
  23478. });
  23479. return res
  23480. });
  23481. /**
  23482. * Reduce the code which written in Vue.js for dispatch the action
  23483. * @param {String} [namespace] - Module's namespace
  23484. * @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.
  23485. * @return {Object}
  23486. */
  23487. var mapActions = normalizeNamespace(function (namespace, actions) {
  23488. var res = {};
  23489. if (( true) && !isValidMap(actions)) {
  23490. console.error('[vuex] mapActions: mapper parameter must be either an Array or an Object');
  23491. }
  23492. normalizeMap(actions).forEach(function (ref) {
  23493. var key = ref.key;
  23494. var val = ref.val;
  23495. res[key] = function mappedAction () {
  23496. var args = [], len = arguments.length;
  23497. while ( len-- ) args[ len ] = arguments[ len ];
  23498. // get dispatch function from store
  23499. var dispatch = this.$store.dispatch;
  23500. if (namespace) {
  23501. var module = getModuleByNamespace(this.$store, 'mapActions', namespace);
  23502. if (!module) {
  23503. return
  23504. }
  23505. dispatch = module.context.dispatch;
  23506. }
  23507. return typeof val === 'function'
  23508. ? val.apply(this, [dispatch].concat(args))
  23509. : dispatch.apply(this.$store, [val].concat(args))
  23510. };
  23511. });
  23512. return res
  23513. });
  23514. /**
  23515. * Rebinding namespace param for mapXXX function in special scoped, and return them by simple object
  23516. * @param {String} namespace
  23517. * @return {Object}
  23518. */
  23519. var createNamespacedHelpers = function (namespace) { return ({
  23520. mapState: mapState.bind(null, namespace),
  23521. mapGetters: mapGetters.bind(null, namespace),
  23522. mapMutations: mapMutations.bind(null, namespace),
  23523. mapActions: mapActions.bind(null, namespace)
  23524. }); };
  23525. /**
  23526. * Normalize the map
  23527. * normalizeMap([1, 2, 3]) => [ { key: 1, val: 1 }, { key: 2, val: 2 }, { key: 3, val: 3 } ]
  23528. * normalizeMap({a: 1, b: 2, c: 3}) => [ { key: 'a', val: 1 }, { key: 'b', val: 2 }, { key: 'c', val: 3 } ]
  23529. * @param {Array|Object} map
  23530. * @return {Object}
  23531. */
  23532. function normalizeMap (map) {
  23533. if (!isValidMap(map)) {
  23534. return []
  23535. }
  23536. return Array.isArray(map)
  23537. ? map.map(function (key) { return ({ key: key, val: key }); })
  23538. : Object.keys(map).map(function (key) { return ({ key: key, val: map[key] }); })
  23539. }
  23540. /**
  23541. * Validate whether given map is valid or not
  23542. * @param {*} map
  23543. * @return {Boolean}
  23544. */
  23545. function isValidMap (map) {
  23546. return Array.isArray(map) || isObject(map)
  23547. }
  23548. /**
  23549. * 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.
  23550. * @param {Function} fn
  23551. * @return {Function}
  23552. */
  23553. function normalizeNamespace (fn) {
  23554. return function (namespace, map) {
  23555. if (typeof namespace !== 'string') {
  23556. map = namespace;
  23557. namespace = '';
  23558. } else if (namespace.charAt(namespace.length - 1) !== '/') {
  23559. namespace += '/';
  23560. }
  23561. return fn(namespace, map)
  23562. }
  23563. }
  23564. /**
  23565. * Search a special module from store by namespace. if module not exist, print error message.
  23566. * @param {Object} store
  23567. * @param {String} helper
  23568. * @param {String} namespace
  23569. * @return {Object}
  23570. */
  23571. function getModuleByNamespace (store, helper, namespace) {
  23572. var module = store._modulesNamespaceMap[namespace];
  23573. if (( true) && !module) {
  23574. console.error(("[vuex] module namespace not found in " + helper + "(): " + namespace));
  23575. }
  23576. return module
  23577. }
  23578. // Credits: borrowed code from fcomb/redux-logger
  23579. function createLogger (ref) {
  23580. if ( ref === void 0 ) ref = {};
  23581. var collapsed = ref.collapsed; if ( collapsed === void 0 ) collapsed = true;
  23582. var filter = ref.filter; if ( filter === void 0 ) filter = function (mutation, stateBefore, stateAfter) { return true; };
  23583. var transformer = ref.transformer; if ( transformer === void 0 ) transformer = function (state) { return state; };
  23584. var mutationTransformer = ref.mutationTransformer; if ( mutationTransformer === void 0 ) mutationTransformer = function (mut) { return mut; };
  23585. var actionFilter = ref.actionFilter; if ( actionFilter === void 0 ) actionFilter = function (action, state) { return true; };
  23586. var actionTransformer = ref.actionTransformer; if ( actionTransformer === void 0 ) actionTransformer = function (act) { return act; };
  23587. var logMutations = ref.logMutations; if ( logMutations === void 0 ) logMutations = true;
  23588. var logActions = ref.logActions; if ( logActions === void 0 ) logActions = true;
  23589. var logger = ref.logger; if ( logger === void 0 ) logger = console;
  23590. return function (store) {
  23591. var prevState = deepCopy(store.state);
  23592. if (typeof logger === 'undefined') {
  23593. return
  23594. }
  23595. if (logMutations) {
  23596. store.subscribe(function (mutation, state) {
  23597. var nextState = deepCopy(state);
  23598. if (filter(mutation, prevState, nextState)) {
  23599. var formattedTime = getFormattedTime();
  23600. var formattedMutation = mutationTransformer(mutation);
  23601. var message = "mutation " + (mutation.type) + formattedTime;
  23602. startMessage(logger, message, collapsed);
  23603. logger.log('%c prev state', 'color: #9E9E9E; font-weight: bold', transformer(prevState));
  23604. logger.log('%c mutation', 'color: #03A9F4; font-weight: bold', formattedMutation);
  23605. logger.log('%c next state', 'color: #4CAF50; font-weight: bold', transformer(nextState));
  23606. endMessage(logger);
  23607. }
  23608. prevState = nextState;
  23609. });
  23610. }
  23611. if (logActions) {
  23612. store.subscribeAction(function (action, state) {
  23613. if (actionFilter(action, state)) {
  23614. var formattedTime = getFormattedTime();
  23615. var formattedAction = actionTransformer(action);
  23616. var message = "action " + (action.type) + formattedTime;
  23617. startMessage(logger, message, collapsed);
  23618. logger.log('%c action', 'color: #03A9F4; font-weight: bold', formattedAction);
  23619. endMessage(logger);
  23620. }
  23621. });
  23622. }
  23623. }
  23624. }
  23625. function startMessage (logger, message, collapsed) {
  23626. var startMessage = collapsed
  23627. ? logger.groupCollapsed
  23628. : logger.group;
  23629. // render
  23630. try {
  23631. startMessage.call(logger, message);
  23632. } catch (e) {
  23633. logger.log(message);
  23634. }
  23635. }
  23636. function endMessage (logger) {
  23637. try {
  23638. logger.groupEnd();
  23639. } catch (e) {
  23640. logger.log('—— log end ——');
  23641. }
  23642. }
  23643. function getFormattedTime () {
  23644. var time = new Date();
  23645. return (" @ " + (pad(time.getHours(), 2)) + ":" + (pad(time.getMinutes(), 2)) + ":" + (pad(time.getSeconds(), 2)) + "." + (pad(time.getMilliseconds(), 3)))
  23646. }
  23647. function repeat (str, times) {
  23648. return (new Array(times + 1)).join(str)
  23649. }
  23650. function pad (num, maxLength) {
  23651. return repeat('0', maxLength - num.toString().length) + num
  23652. }
  23653. var index_cjs = {
  23654. Store: Store,
  23655. install: install,
  23656. version: '3.6.2',
  23657. mapState: mapState,
  23658. mapMutations: mapMutations,
  23659. mapGetters: mapGetters,
  23660. mapActions: mapActions,
  23661. createNamespacedHelpers: createNamespacedHelpers,
  23662. createLogger: createLogger
  23663. };
  23664. module.exports = index_cjs;
  23665. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../../../../../webpack/buildin/global.js */ 3)))
  23666. /***/ }),
  23667. /***/ 49:
  23668. /*!********************************************************************!*\
  23669. !*** D:/AAAcompany_product/新建文件夹/product_wx/pages/utils/common.js ***!
  23670. \********************************************************************/
  23671. /*! no static exports found */
  23672. /***/ (function(module, exports, __webpack_require__) {
  23673. "use strict";
  23674. Object.defineProperty(exports, "__esModule", {
  23675. value: true
  23676. });
  23677. exports.default = void 0;
  23678. exports.getUrlParameter = getUrlParameter;
  23679. /**
  23680. * 获取url参数值
  23681. * @param {*} url
  23682. * @param {*} name
  23683. */
  23684. function getUrlParameter(url, name) {
  23685. var regexSearch = '[\\?&#]' + name + '=([^&#]*)';
  23686. var regex = new RegExp(regexSearch);
  23687. var results = regex.exec(url);
  23688. console.log(results, 'results');
  23689. return results ? window.decodeURIComponent(results[1]) : '';
  23690. }
  23691. var _default = {
  23692. transDate: function transDate(val, pattern) {
  23693. if (val) {
  23694. var time = new Date();
  23695. time.setTime(val);
  23696. if (Date.parse(val)) {
  23697. time = new Date(val);
  23698. }
  23699. if (time instanceof Date) {
  23700. return this.formatDate(pattern || 'yyyy-MM-dd', time);
  23701. }
  23702. }
  23703. return '';
  23704. },
  23705. transBaseDateTime: function transBaseDateTime(val, pattern) {
  23706. if (val) {
  23707. var time = new Date();
  23708. time.setTime(val);
  23709. if (Date.parse(val)) {
  23710. time = new Date(val);
  23711. }
  23712. if (time instanceof Date) {
  23713. return this.formatDate(pattern || 'yyyy年MM月dd日 hh:mm', time);
  23714. }
  23715. }
  23716. return '';
  23717. },
  23718. transBaseToDateTime: function transBaseToDateTime(val, pattern) {
  23719. if (val) {
  23720. var time = new Date();
  23721. time.setTime(val);
  23722. if (Date.parse(val)) {
  23723. time = new Date(val);
  23724. }
  23725. if (time instanceof Date) {
  23726. return this.formatDate(pattern || 'MM月dd日 hh:mm', time);
  23727. }
  23728. }
  23729. return '';
  23730. },
  23731. transServDate: function transServDate(val) {
  23732. return this.transDate(val, 'yyyy-MM-dd hh:mm:ss');
  23733. },
  23734. transServDay: function transServDay(val) {
  23735. return this.transDate(val, 'yyyy-MM-dd');
  23736. },
  23737. isArrayFn: function isArrayFn(value) {
  23738. if (typeof Array.isArray === 'function') {
  23739. return Array.isArray(value);
  23740. } else {
  23741. return Object.prototype.toString.call(value) === '[object Array]';
  23742. }
  23743. },
  23744. transDcMap: function transDcMap(arr) {
  23745. var tMap = {};
  23746. arr.forEach(function (item) {
  23747. tMap[item.value] = item.label;
  23748. });
  23749. return tMap;
  23750. },
  23751. castEval: function castEval(val) {
  23752. // return JSON.parse(val)
  23753. if (val) {
  23754. return eval('(' + val + ')');
  23755. } else {
  23756. return '';
  23757. }
  23758. },
  23759. castString: function castString(val) {
  23760. return JSON.stringify(val);
  23761. },
  23762. // 金额格式化,整数部分每3位用逗号分隔,支持带有正负号以及小数部分
  23763. formatMoney: function formatMoney(amt) {
  23764. if (!amt) return '';
  23765. if (amt.length <= 3) {
  23766. return amt;
  23767. }
  23768. if (!/^(\+|-)?(\d+)(\.\d+)?$/.test(amt)) {
  23769. return amt;
  23770. }
  23771. var a = RegExp.$1;
  23772. var b = RegExp.$2;
  23773. var c = RegExp.$3;
  23774. var re = new RegExp();
  23775. re.compile('(\\d)(\\d{3})(,|$)');
  23776. while (re.test(b)) {
  23777. b = b.replace(re, '$1,$2$3');
  23778. }
  23779. return a + '' + b + '' + c;
  23780. },
  23781. formatDate: function formatDate(fmt, date) {
  23782. // author: meizz
  23783. var o = {
  23784. 'M+': date.getMonth() + 1,
  23785. // 月份
  23786. 'd+': date.getDate(),
  23787. // 日
  23788. 'h+': date.getHours(),
  23789. // 小时
  23790. 'm+': date.getMinutes(),
  23791. // 分
  23792. 's+': date.getSeconds(),
  23793. // 秒
  23794. 'q+': Math.floor((date.getMonth() + 3) / 3),
  23795. // 季度
  23796. 'S': date.getMilliseconds() // 毫秒
  23797. };
  23798. if (/(y+)/.test(fmt)) {
  23799. fmt = fmt.replace(RegExp.$1, (date.getFullYear() + '').substr(4 - RegExp.$1.length));
  23800. }
  23801. for (var k in o) {
  23802. if (new RegExp('(' + k + ')').test(fmt)) {
  23803. fmt = fmt.replace(RegExp.$1, RegExp.$1.length === 1 ? o[k] : ('00' + o[k]).substr(('' + o[k]).length));
  23804. }
  23805. }
  23806. return fmt;
  23807. },
  23808. replaceThumbnail: function replaceThumbnail(urlPath) {
  23809. if (urlPath != null) {
  23810. urlPath = urlPath.replace('/server/FileController/download/', this.$constant.BASE_URI + '/wx/fileController/downloadThumbnail/');
  23811. }
  23812. if (urlPath != null) {
  23813. urlPath = urlPath.replace('/h5Server/FileController/download/', this.$constant.BASE_URI + '/wx/fileController/downloadThumbnail/');
  23814. }
  23815. return urlPath;
  23816. },
  23817. goBack: function goBack() {
  23818. // window.history.go(-1)
  23819. // self.location = document.referrer
  23820. history.back();
  23821. },
  23822. uuid: function uuid(len, radix) {
  23823. var chars = '0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz'.split('');
  23824. var uuid = [];
  23825. var i;
  23826. radix = radix || chars.length;
  23827. if (len) {
  23828. // Compact form
  23829. for (i = 0; i < len; i++) {
  23830. uuid[i] = chars[0 | Math.random() * radix];
  23831. }
  23832. } else {
  23833. // rfc4122, version 4 form
  23834. var r;
  23835. // rfc4122 requires these characters
  23836. uuid[8] = uuid[13] = uuid[18] = uuid[23] = '-';
  23837. uuid[14] = '4';
  23838. // Fill in random data. At i==19 set the high bits of clock sequence as
  23839. // per rfc4122, sec. 4.1.5
  23840. for (i = 0; i < 36; i++) {
  23841. if (!uuid[i]) {
  23842. r = 0 | Math.random() * 16;
  23843. uuid[i] = chars[i === 19 ? r & 0x3 | 0x8 : r];
  23844. }
  23845. }
  23846. }
  23847. return uuid.join('');
  23848. },
  23849. handleDicList: function handleDicList(params) {
  23850. // 处理字典值数组
  23851. var obj = {};
  23852. for (var key in params) {
  23853. if (JSON.parse(params[key].dictValue)) {
  23854. obj[key] = JSON.parse(params[key].dictValue);
  23855. } else {
  23856. obj[key] = [];
  23857. }
  23858. }
  23859. return obj;
  23860. }
  23861. };
  23862. exports.default = _default;
  23863. /***/ }),
  23864. /***/ 492:
  23865. /*!****************************************************************************************!*\
  23866. !*** D:/AAAcompany_product/新建文件夹/product_wx/wxcomponents/weapp/dist/uploader/index.js ***!
  23867. \****************************************************************************************/
  23868. /*! no static exports found */
  23869. /***/ (function(module, exports, __webpack_require__) {
  23870. "use strict";
  23871. /* WEBPACK VAR INJECTION */(function(wx) {
  23872. var _component = __webpack_require__(/*! ../common/component */ 397);
  23873. var _utils = __webpack_require__(/*! ./utils */ 493);
  23874. var _shared = __webpack_require__(/*! ./shared */ 494);
  23875. var _validator = __webpack_require__(/*! ../common/validator */ 403);
  23876. (0, _component.VantComponent)({
  23877. props: Object.assign(Object.assign(Object.assign(Object.assign({
  23878. disabled: Boolean,
  23879. multiple: Boolean,
  23880. uploadText: String,
  23881. useBeforeRead: Boolean,
  23882. afterRead: null,
  23883. beforeRead: null,
  23884. previewSize: {
  23885. type: null,
  23886. value: 80
  23887. },
  23888. name: {
  23889. type: null,
  23890. value: ''
  23891. },
  23892. accept: {
  23893. type: String,
  23894. value: 'image'
  23895. },
  23896. fileList: {
  23897. type: Array,
  23898. value: [],
  23899. observer: 'formatFileList'
  23900. },
  23901. maxSize: {
  23902. type: Number,
  23903. value: Number.MAX_VALUE
  23904. },
  23905. maxCount: {
  23906. type: Number,
  23907. value: 100
  23908. },
  23909. deletable: {
  23910. type: Boolean,
  23911. value: true
  23912. },
  23913. showUpload: {
  23914. type: Boolean,
  23915. value: true
  23916. },
  23917. previewImage: {
  23918. type: Boolean,
  23919. value: true
  23920. },
  23921. previewFullImage: {
  23922. type: Boolean,
  23923. value: true
  23924. },
  23925. imageFit: {
  23926. type: String,
  23927. value: 'scaleToFill'
  23928. },
  23929. uploadIcon: {
  23930. type: String,
  23931. value: 'photograph'
  23932. }
  23933. }, _shared.imageProps), _shared.videoProps), _shared.mediaProps), _shared.messageFileProps),
  23934. data: {
  23935. lists: [],
  23936. isInCount: true
  23937. },
  23938. methods: {
  23939. formatFileList: function formatFileList() {
  23940. var _this$data = this.data,
  23941. _this$data$fileList = _this$data.fileList,
  23942. fileList = _this$data$fileList === void 0 ? [] : _this$data$fileList,
  23943. maxCount = _this$data.maxCount;
  23944. var lists = fileList.map(function (item) {
  23945. return Object.assign(Object.assign({}, item), {
  23946. isImage: (0, _utils.isImageFile)(item),
  23947. isVideo: (0, _utils.isVideoFile)(item),
  23948. deletable: (0, _validator.isBoolean)(item.deletable) ? item.deletable : true
  23949. });
  23950. });
  23951. this.setData({
  23952. lists: lists,
  23953. isInCount: lists.length < maxCount
  23954. });
  23955. },
  23956. getDetail: function getDetail(index) {
  23957. return {
  23958. name: this.data.name,
  23959. index: index == null ? this.data.fileList.length : index
  23960. };
  23961. },
  23962. startUpload: function startUpload() {
  23963. var _this = this;
  23964. var _this$data2 = this.data,
  23965. maxCount = _this$data2.maxCount,
  23966. multiple = _this$data2.multiple,
  23967. lists = _this$data2.lists,
  23968. disabled = _this$data2.disabled;
  23969. if (disabled) return;
  23970. (0, _utils.chooseFile)(Object.assign(Object.assign({}, this.data), {
  23971. maxCount: maxCount - lists.length
  23972. })).then(function (res) {
  23973. _this.onBeforeRead(multiple ? res : res[0]);
  23974. }).catch(function (error) {
  23975. _this.$emit('error', error);
  23976. });
  23977. },
  23978. onBeforeRead: function onBeforeRead(file) {
  23979. var _this2 = this;
  23980. var _this$data3 = this.data,
  23981. beforeRead = _this$data3.beforeRead,
  23982. useBeforeRead = _this$data3.useBeforeRead;
  23983. var res = true;
  23984. if (typeof beforeRead === 'function') {
  23985. res = beforeRead(file, this.getDetail());
  23986. }
  23987. if (useBeforeRead) {
  23988. res = new Promise(function (resolve, reject) {
  23989. _this2.$emit('before-read', Object.assign(Object.assign({
  23990. file: file
  23991. }, _this2.getDetail()), {
  23992. callback: function callback(ok) {
  23993. ok ? resolve() : reject();
  23994. }
  23995. }));
  23996. });
  23997. }
  23998. if (!res) {
  23999. return;
  24000. }
  24001. if ((0, _validator.isPromise)(res)) {
  24002. res.then(function (data) {
  24003. return _this2.onAfterRead(data || file);
  24004. });
  24005. } else {
  24006. this.onAfterRead(file);
  24007. }
  24008. },
  24009. onAfterRead: function onAfterRead(file) {
  24010. var _this$data4 = this.data,
  24011. maxSize = _this$data4.maxSize,
  24012. afterRead = _this$data4.afterRead;
  24013. var oversize = Array.isArray(file) ? file.some(function (item) {
  24014. return item.size > maxSize;
  24015. }) : file.size > maxSize;
  24016. if (oversize) {
  24017. this.$emit('oversize', Object.assign({
  24018. file: file
  24019. }, this.getDetail()));
  24020. return;
  24021. }
  24022. if (typeof afterRead === 'function') {
  24023. afterRead(file, this.getDetail());
  24024. }
  24025. this.$emit('after-read', Object.assign({
  24026. file: file
  24027. }, this.getDetail()));
  24028. },
  24029. deleteItem: function deleteItem(event) {
  24030. var index = event.currentTarget.dataset.index;
  24031. this.$emit('delete', Object.assign(Object.assign({}, this.getDetail(index)), {
  24032. file: this.data.fileList[index]
  24033. }));
  24034. },
  24035. onPreviewImage: function onPreviewImage(event) {
  24036. if (!this.data.previewFullImage) return;
  24037. var index = event.currentTarget.dataset.index;
  24038. var _this$data5 = this.data,
  24039. lists = _this$data5.lists,
  24040. showmenu = _this$data5.showmenu;
  24041. var item = lists[index];
  24042. wx.previewImage({
  24043. urls: lists.filter(function (item) {
  24044. return (0, _utils.isImageFile)(item);
  24045. }).map(function (item) {
  24046. return item.url;
  24047. }),
  24048. current: item.url,
  24049. showmenu: showmenu,
  24050. fail: function fail() {
  24051. wx.showToast({
  24052. title: '预览图片失败',
  24053. icon: 'none'
  24054. });
  24055. }
  24056. });
  24057. },
  24058. onPreviewVideo: function onPreviewVideo(event) {
  24059. if (!this.data.previewFullImage) return;
  24060. var index = event.currentTarget.dataset.index;
  24061. var lists = this.data.lists;
  24062. var sources = [];
  24063. var current = lists.reduce(function (sum, cur, curIndex) {
  24064. if (!(0, _utils.isVideoFile)(cur)) {
  24065. return sum;
  24066. }
  24067. sources.push(Object.assign(Object.assign({}, cur), {
  24068. type: 'video'
  24069. }));
  24070. if (curIndex < index) {
  24071. sum++;
  24072. }
  24073. return sum;
  24074. }, 0);
  24075. wx.previewMedia({
  24076. sources: sources,
  24077. current: current,
  24078. fail: function fail() {
  24079. wx.showToast({
  24080. title: '预览视频失败',
  24081. icon: 'none'
  24082. });
  24083. }
  24084. });
  24085. },
  24086. onPreviewFile: function onPreviewFile(event) {
  24087. var index = event.currentTarget.dataset.index;
  24088. wx.openDocument({
  24089. filePath: this.data.lists[index].url,
  24090. showMenu: true
  24091. });
  24092. },
  24093. onClickPreview: function onClickPreview(event) {
  24094. var index = event.currentTarget.dataset.index;
  24095. var item = this.data.lists[index];
  24096. this.$emit('click-preview', Object.assign(Object.assign({}, item), this.getDetail(index)));
  24097. }
  24098. }
  24099. });
  24100. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/wx.js */ 1)["default"]))
  24101. /***/ }),
  24102. /***/ 493:
  24103. /*!****************************************************************************************!*\
  24104. !*** D:/AAAcompany_product/新建文件夹/product_wx/wxcomponents/weapp/dist/uploader/utils.js ***!
  24105. \****************************************************************************************/
  24106. /*! no static exports found */
  24107. /***/ (function(module, exports, __webpack_require__) {
  24108. "use strict";
  24109. /* WEBPACK VAR INJECTION */(function(wx) {
  24110. Object.defineProperty(exports, "__esModule", {
  24111. value: true
  24112. });
  24113. exports.chooseFile = chooseFile;
  24114. exports.isImageFile = isImageFile;
  24115. exports.isVideoFile = isVideoFile;
  24116. var _utils = __webpack_require__(/*! ../common/utils */ 402);
  24117. var _validator = __webpack_require__(/*! ../common/validator */ 403);
  24118. function isImageFile(item) {
  24119. if (item.isImage != null) {
  24120. return item.isImage;
  24121. }
  24122. if (item.type) {
  24123. return item.type === 'image';
  24124. }
  24125. if (item.url) {
  24126. return (0, _validator.isImageUrl)(item.url);
  24127. }
  24128. return false;
  24129. }
  24130. function isVideoFile(item) {
  24131. if (item.isVideo != null) {
  24132. return item.isVideo;
  24133. }
  24134. if (item.type) {
  24135. return item.type === 'video';
  24136. }
  24137. if (item.url) {
  24138. return (0, _validator.isVideoUrl)(item.url);
  24139. }
  24140. return false;
  24141. }
  24142. function formatImage(res) {
  24143. return res.tempFiles.map(function (item) {
  24144. return Object.assign(Object.assign({}, (0, _utils.pickExclude)(item, ['path'])), {
  24145. type: 'image',
  24146. url: item.tempFilePath,
  24147. thumb: item.tempFilePath
  24148. });
  24149. });
  24150. }
  24151. function formatVideo(res) {
  24152. return [Object.assign(Object.assign({}, (0, _utils.pickExclude)(res, ['tempFilePath', 'thumbTempFilePath', 'errMsg'])), {
  24153. type: 'video',
  24154. url: res.tempFilePath,
  24155. thumb: res.thumbTempFilePath
  24156. })];
  24157. }
  24158. function formatMedia(res) {
  24159. return res.tempFiles.map(function (item) {
  24160. return Object.assign(Object.assign({}, (0, _utils.pickExclude)(item, ['fileType', 'thumbTempFilePath', 'tempFilePath'])), {
  24161. type: res.type,
  24162. url: item.tempFilePath,
  24163. thumb: res.type === 'video' ? item.thumbTempFilePath : item.tempFilePath
  24164. });
  24165. });
  24166. }
  24167. function formatFile(res) {
  24168. return res.tempFiles.map(function (item) {
  24169. return Object.assign(Object.assign({}, (0, _utils.pickExclude)(item, ['path'])), {
  24170. url: item.path
  24171. });
  24172. });
  24173. }
  24174. function chooseFile(_ref) {
  24175. var accept = _ref.accept,
  24176. multiple = _ref.multiple,
  24177. capture = _ref.capture,
  24178. compressed = _ref.compressed,
  24179. maxDuration = _ref.maxDuration,
  24180. sizeType = _ref.sizeType,
  24181. camera = _ref.camera,
  24182. maxCount = _ref.maxCount,
  24183. mediaType = _ref.mediaType,
  24184. extension = _ref.extension;
  24185. return new Promise(function (resolve, reject) {
  24186. switch (accept) {
  24187. case 'image':
  24188. wx.chooseMedia({
  24189. count: multiple ? Math.min(maxCount, 9) : 1,
  24190. mediaType: ['image'],
  24191. sourceType: capture,
  24192. maxDuration: maxDuration,
  24193. sizeType: sizeType,
  24194. camera: camera,
  24195. success: function success(res) {
  24196. return resolve(formatImage(res));
  24197. },
  24198. fail: reject
  24199. });
  24200. break;
  24201. case 'media':
  24202. wx.chooseMedia({
  24203. count: multiple ? Math.min(maxCount, 9) : 1,
  24204. mediaType: mediaType,
  24205. sourceType: capture,
  24206. maxDuration: maxDuration,
  24207. sizeType: sizeType,
  24208. camera: camera,
  24209. success: function success(res) {
  24210. return resolve(formatMedia(res));
  24211. },
  24212. fail: reject
  24213. });
  24214. break;
  24215. case 'video':
  24216. wx.chooseVideo({
  24217. sourceType: capture,
  24218. compressed: compressed,
  24219. maxDuration: maxDuration,
  24220. camera: camera,
  24221. success: function success(res) {
  24222. return resolve(formatVideo(res));
  24223. },
  24224. fail: reject
  24225. });
  24226. break;
  24227. default:
  24228. wx.chooseMessageFile(Object.assign(Object.assign({
  24229. count: multiple ? maxCount : 1,
  24230. type: accept
  24231. }, extension ? {
  24232. extension: extension
  24233. } : {}), {
  24234. success: function success(res) {
  24235. return resolve(formatFile(res));
  24236. },
  24237. fail: reject
  24238. }));
  24239. break;
  24240. }
  24241. });
  24242. }
  24243. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/wx.js */ 1)["default"]))
  24244. /***/ }),
  24245. /***/ 494:
  24246. /*!*****************************************************************************************!*\
  24247. !*** D:/AAAcompany_product/新建文件夹/product_wx/wxcomponents/weapp/dist/uploader/shared.js ***!
  24248. \*****************************************************************************************/
  24249. /*! no static exports found */
  24250. /***/ (function(module, exports, __webpack_require__) {
  24251. "use strict";
  24252. Object.defineProperty(exports, "__esModule", {
  24253. value: true
  24254. });
  24255. exports.videoProps = exports.messageFileProps = exports.mediaProps = exports.imageProps = void 0;
  24256. // props for image
  24257. var imageProps = {
  24258. sizeType: {
  24259. type: Array,
  24260. value: ['original', 'compressed']
  24261. },
  24262. capture: {
  24263. type: Array,
  24264. value: ['album', 'camera']
  24265. },
  24266. showmenu: {
  24267. type: Boolean,
  24268. value: true
  24269. }
  24270. };
  24271. // props for video
  24272. exports.imageProps = imageProps;
  24273. var videoProps = {
  24274. capture: {
  24275. type: Array,
  24276. value: ['album', 'camera']
  24277. },
  24278. compressed: {
  24279. type: Boolean,
  24280. value: true
  24281. },
  24282. maxDuration: {
  24283. type: Number,
  24284. value: 60
  24285. },
  24286. camera: {
  24287. type: String,
  24288. value: 'back'
  24289. }
  24290. };
  24291. // props for media
  24292. exports.videoProps = videoProps;
  24293. var mediaProps = {
  24294. capture: {
  24295. type: Array,
  24296. value: ['album', 'camera']
  24297. },
  24298. mediaType: {
  24299. type: Array,
  24300. value: ['image', 'video']
  24301. },
  24302. maxDuration: {
  24303. type: Number,
  24304. value: 60
  24305. },
  24306. camera: {
  24307. type: String,
  24308. value: 'back'
  24309. }
  24310. };
  24311. // props for file
  24312. exports.mediaProps = mediaProps;
  24313. var messageFileProps = {
  24314. extension: null
  24315. };
  24316. exports.messageFileProps = messageFileProps;
  24317. /***/ }),
  24318. /***/ 5:
  24319. /*!**************************************************************!*\
  24320. !*** ./node_modules/@babel/runtime/helpers/slicedToArray.js ***!
  24321. \**************************************************************/
  24322. /*! no static exports found */
  24323. /***/ (function(module, exports, __webpack_require__) {
  24324. var arrayWithHoles = __webpack_require__(/*! ./arrayWithHoles.js */ 6);
  24325. var iterableToArrayLimit = __webpack_require__(/*! ./iterableToArrayLimit.js */ 7);
  24326. var unsupportedIterableToArray = __webpack_require__(/*! ./unsupportedIterableToArray.js */ 8);
  24327. var nonIterableRest = __webpack_require__(/*! ./nonIterableRest.js */ 10);
  24328. function _slicedToArray(arr, i) {
  24329. return arrayWithHoles(arr) || iterableToArrayLimit(arr, i) || unsupportedIterableToArray(arr, i) || nonIterableRest();
  24330. }
  24331. module.exports = _slicedToArray, module.exports.__esModule = true, module.exports["default"] = module.exports;
  24332. /***/ }),
  24333. /***/ 50:
  24334. /*!**********************************************************************!*\
  24335. !*** D:/AAAcompany_product/新建文件夹/product_wx/pages/utils/constant.js ***!
  24336. \**********************************************************************/
  24337. /*! no static exports found */
  24338. /***/ (function(module, exports, __webpack_require__) {
  24339. "use strict";
  24340. Object.defineProperty(exports, "__esModule", {
  24341. value: true
  24342. });
  24343. exports.default = exports.BASE_URI = void 0;
  24344. // 系统常量
  24345. // export const BASE_URI = "http://192.168.2.111:9011"; // 正式
  24346. // export const BASE_URI = 'https://www.idea-co-sf.com/gardenProductApi'
  24347. // export const BASE_URI = "http://192.168.3.94:9010"; // 老潘本地
  24348. // export const BASE_URI = "http://192.168.2.107:9011"; // 洮洮本地
  24349. // export const BASE_URI = "http://192.168.2.103:9010"; // 老崔本地
  24350. var BASE_URI = "http://192.168.2.107:9015"; // 许峰本地
  24351. // export const BASE_URI = "http://192.168.2.112:9010"; // 陈凡本地
  24352. exports.BASE_URI = BASE_URI;
  24353. var _default = {
  24354. /* 系统常量*/
  24355. // 基础地址
  24356. BASE_URI: BASE_URI
  24357. };
  24358. exports.default = _default;
  24359. /***/ }),
  24360. /***/ 500:
  24361. /*!***********************************************************************************!*\
  24362. !*** D:/AAAcompany_product/新建文件夹/product_wx/wxcomponents/weapp/dist/tab/index.js ***!
  24363. \***********************************************************************************/
  24364. /*! no static exports found */
  24365. /***/ (function(module, exports, __webpack_require__) {
  24366. "use strict";
  24367. var _relation = __webpack_require__(/*! ../common/relation */ 399);
  24368. var _component = __webpack_require__(/*! ../common/component */ 397);
  24369. (0, _component.VantComponent)({
  24370. relation: (0, _relation.useParent)('tabs'),
  24371. props: {
  24372. dot: {
  24373. type: Boolean,
  24374. observer: 'update'
  24375. },
  24376. info: {
  24377. type: null,
  24378. observer: 'update'
  24379. },
  24380. title: {
  24381. type: String,
  24382. observer: 'update'
  24383. },
  24384. disabled: {
  24385. type: Boolean,
  24386. observer: 'update'
  24387. },
  24388. titleStyle: {
  24389. type: String,
  24390. observer: 'update'
  24391. },
  24392. name: {
  24393. type: null,
  24394. value: ''
  24395. }
  24396. },
  24397. data: {
  24398. active: false
  24399. },
  24400. methods: {
  24401. getComputedName: function getComputedName() {
  24402. if (this.data.name !== '') {
  24403. return this.data.name;
  24404. }
  24405. return this.index;
  24406. },
  24407. updateRender: function updateRender(active, parent) {
  24408. var parentData = parent.data;
  24409. this.inited = this.inited || active;
  24410. this.setData({
  24411. active: active,
  24412. shouldRender: this.inited || !parentData.lazyRender,
  24413. shouldShow: active || parentData.animated
  24414. });
  24415. },
  24416. update: function update() {
  24417. if (this.parent) {
  24418. this.parent.updateTabs();
  24419. }
  24420. }
  24421. }
  24422. });
  24423. /***/ }),
  24424. /***/ 501:
  24425. /*!************************************************************************************!*\
  24426. !*** D:/AAAcompany_product/新建文件夹/product_wx/wxcomponents/weapp/dist/tabs/index.js ***!
  24427. \************************************************************************************/
  24428. /*! no static exports found */
  24429. /***/ (function(module, exports, __webpack_require__) {
  24430. "use strict";
  24431. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  24432. var _slicedToArray2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/slicedToArray */ 5));
  24433. var _component = __webpack_require__(/*! ../common/component */ 397);
  24434. var _touch = __webpack_require__(/*! ../mixins/touch */ 502);
  24435. var _utils = __webpack_require__(/*! ../common/utils */ 402);
  24436. var _validator = __webpack_require__(/*! ../common/validator */ 403);
  24437. var _relation = __webpack_require__(/*! ../common/relation */ 399);
  24438. (0, _component.VantComponent)({
  24439. mixins: [_touch.touch],
  24440. classes: ['nav-class', 'tab-class', 'tab-active-class', 'line-class', 'wrap-class'],
  24441. relation: (0, _relation.useChildren)('tab', function () {
  24442. this.updateTabs();
  24443. }),
  24444. props: {
  24445. sticky: Boolean,
  24446. border: Boolean,
  24447. swipeable: Boolean,
  24448. titleActiveColor: String,
  24449. titleInactiveColor: String,
  24450. color: String,
  24451. animated: {
  24452. type: Boolean,
  24453. observer: function observer() {
  24454. var _this = this;
  24455. this.children.forEach(function (child, index) {
  24456. return child.updateRender(index === _this.data.currentIndex, _this);
  24457. });
  24458. }
  24459. },
  24460. lineWidth: {
  24461. type: null,
  24462. value: 40,
  24463. observer: 'resize'
  24464. },
  24465. lineHeight: {
  24466. type: null,
  24467. value: -1
  24468. },
  24469. active: {
  24470. type: null,
  24471. value: 0,
  24472. observer: function observer(name) {
  24473. if (name !== this.getCurrentName()) {
  24474. this.setCurrentIndexByName(name);
  24475. }
  24476. }
  24477. },
  24478. type: {
  24479. type: String,
  24480. value: 'line'
  24481. },
  24482. ellipsis: {
  24483. type: Boolean,
  24484. value: true
  24485. },
  24486. duration: {
  24487. type: Number,
  24488. value: 0.3
  24489. },
  24490. zIndex: {
  24491. type: Number,
  24492. value: 1
  24493. },
  24494. swipeThreshold: {
  24495. type: Number,
  24496. value: 5,
  24497. observer: function observer(value) {
  24498. this.setData({
  24499. scrollable: this.children.length > value || !this.data.ellipsis
  24500. });
  24501. }
  24502. },
  24503. offsetTop: {
  24504. type: Number,
  24505. value: 0
  24506. },
  24507. lazyRender: {
  24508. type: Boolean,
  24509. value: true
  24510. },
  24511. useBeforeChange: {
  24512. type: Boolean,
  24513. value: false
  24514. }
  24515. },
  24516. data: {
  24517. tabs: [],
  24518. scrollLeft: 0,
  24519. scrollable: false,
  24520. currentIndex: 0,
  24521. container: null,
  24522. skipTransition: true,
  24523. scrollWithAnimation: false,
  24524. lineOffsetLeft: 0,
  24525. inited: false
  24526. },
  24527. mounted: function mounted() {
  24528. var _this2 = this;
  24529. (0, _utils.requestAnimationFrame)(function () {
  24530. _this2.swiping = true;
  24531. _this2.setData({
  24532. container: function container() {
  24533. return _this2.createSelectorQuery().select('.van-tabs');
  24534. }
  24535. });
  24536. _this2.resize();
  24537. _this2.scrollIntoView();
  24538. });
  24539. },
  24540. methods: {
  24541. updateTabs: function updateTabs() {
  24542. var _this$children = this.children,
  24543. children = _this$children === void 0 ? [] : _this$children,
  24544. data = this.data;
  24545. this.setData({
  24546. tabs: children.map(function (child) {
  24547. return child.data;
  24548. }),
  24549. scrollable: this.children.length > data.swipeThreshold || !data.ellipsis
  24550. });
  24551. this.setCurrentIndexByName(data.active || this.getCurrentName());
  24552. },
  24553. trigger: function trigger(eventName, child) {
  24554. var currentIndex = this.data.currentIndex;
  24555. var data = this.getChildData(currentIndex, child);
  24556. if (!(0, _validator.isDef)(data)) {
  24557. return;
  24558. }
  24559. this.$emit(eventName, data);
  24560. },
  24561. onTap: function onTap(event) {
  24562. var _this3 = this;
  24563. var index = event.currentTarget.dataset.index;
  24564. var child = this.children[index];
  24565. if (child.data.disabled) {
  24566. this.trigger('disabled', child);
  24567. return;
  24568. }
  24569. this.onBeforeChange(index).then(function () {
  24570. _this3.setCurrentIndex(index);
  24571. (0, _utils.nextTick)(function () {
  24572. _this3.trigger('click');
  24573. });
  24574. });
  24575. },
  24576. // correct the index of active tab
  24577. setCurrentIndexByName: function setCurrentIndexByName(name) {
  24578. var _this$children2 = this.children,
  24579. children = _this$children2 === void 0 ? [] : _this$children2;
  24580. var matched = children.filter(function (child) {
  24581. return child.getComputedName() === name;
  24582. });
  24583. if (matched.length) {
  24584. this.setCurrentIndex(matched[0].index);
  24585. }
  24586. },
  24587. setCurrentIndex: function setCurrentIndex(currentIndex) {
  24588. var _this4 = this;
  24589. var data = this.data,
  24590. _this$children3 = this.children,
  24591. children = _this$children3 === void 0 ? [] : _this$children3;
  24592. if (!(0, _validator.isDef)(currentIndex) || currentIndex >= children.length || currentIndex < 0) {
  24593. return;
  24594. }
  24595. (0, _utils.groupSetData)(this, function () {
  24596. children.forEach(function (item, index) {
  24597. var active = index === currentIndex;
  24598. if (active !== item.data.active || !item.inited) {
  24599. item.updateRender(active, _this4);
  24600. }
  24601. });
  24602. });
  24603. if (currentIndex === data.currentIndex) {
  24604. return;
  24605. }
  24606. var shouldEmitChange = data.currentIndex !== null;
  24607. this.setData({
  24608. currentIndex: currentIndex
  24609. });
  24610. (0, _utils.requestAnimationFrame)(function () {
  24611. _this4.resize();
  24612. _this4.scrollIntoView();
  24613. });
  24614. (0, _utils.nextTick)(function () {
  24615. _this4.trigger('input');
  24616. if (shouldEmitChange) {
  24617. _this4.trigger('change');
  24618. }
  24619. });
  24620. },
  24621. getCurrentName: function getCurrentName() {
  24622. var activeTab = this.children[this.data.currentIndex];
  24623. if (activeTab) {
  24624. return activeTab.getComputedName();
  24625. }
  24626. },
  24627. resize: function resize() {
  24628. var _this5 = this;
  24629. if (this.data.type !== 'line') {
  24630. return;
  24631. }
  24632. var _this$data = this.data,
  24633. currentIndex = _this$data.currentIndex,
  24634. ellipsis = _this$data.ellipsis,
  24635. skipTransition = _this$data.skipTransition;
  24636. Promise.all([(0, _utils.getAllRect)(this, '.van-tab'), (0, _utils.getRect)(this, '.van-tabs__line')]).then(function (_ref) {
  24637. var _ref2 = (0, _slicedToArray2.default)(_ref, 2),
  24638. _ref2$ = _ref2[0],
  24639. rects = _ref2$ === void 0 ? [] : _ref2$,
  24640. lineRect = _ref2[1];
  24641. var rect = rects[currentIndex];
  24642. if (rect == null) {
  24643. return;
  24644. }
  24645. var lineOffsetLeft = rects.slice(0, currentIndex).reduce(function (prev, curr) {
  24646. return prev + curr.width;
  24647. }, 0);
  24648. lineOffsetLeft += (rect.width - lineRect.width) / 2 + (ellipsis ? 0 : 8);
  24649. _this5.setData({
  24650. lineOffsetLeft: lineOffsetLeft,
  24651. inited: true
  24652. });
  24653. _this5.swiping = true;
  24654. if (skipTransition) {
  24655. // waiting transition end
  24656. setTimeout(function () {
  24657. _this5.setData({
  24658. skipTransition: false
  24659. });
  24660. }, _this5.data.duration);
  24661. }
  24662. });
  24663. },
  24664. // scroll active tab into view
  24665. scrollIntoView: function scrollIntoView() {
  24666. var _this6 = this;
  24667. var _this$data2 = this.data,
  24668. currentIndex = _this$data2.currentIndex,
  24669. scrollable = _this$data2.scrollable,
  24670. scrollWithAnimation = _this$data2.scrollWithAnimation;
  24671. if (!scrollable) {
  24672. return;
  24673. }
  24674. Promise.all([(0, _utils.getAllRect)(this, '.van-tab'), (0, _utils.getRect)(this, '.van-tabs__nav')]).then(function (_ref3) {
  24675. var _ref4 = (0, _slicedToArray2.default)(_ref3, 2),
  24676. tabRects = _ref4[0],
  24677. navRect = _ref4[1];
  24678. var tabRect = tabRects[currentIndex];
  24679. var offsetLeft = tabRects.slice(0, currentIndex).reduce(function (prev, curr) {
  24680. return prev + curr.width;
  24681. }, 0);
  24682. _this6.setData({
  24683. scrollLeft: offsetLeft - (navRect.width - tabRect.width) / 2
  24684. });
  24685. if (!scrollWithAnimation) {
  24686. (0, _utils.nextTick)(function () {
  24687. _this6.setData({
  24688. scrollWithAnimation: true
  24689. });
  24690. });
  24691. }
  24692. });
  24693. },
  24694. onTouchScroll: function onTouchScroll(event) {
  24695. this.$emit('scroll', event.detail);
  24696. },
  24697. onTouchStart: function onTouchStart(event) {
  24698. if (!this.data.swipeable) return;
  24699. this.swiping = true;
  24700. this.touchStart(event);
  24701. },
  24702. onTouchMove: function onTouchMove(event) {
  24703. if (!this.data.swipeable || !this.swiping) return;
  24704. this.touchMove(event);
  24705. },
  24706. // watch swipe touch end
  24707. onTouchEnd: function onTouchEnd() {
  24708. var _this7 = this;
  24709. if (!this.data.swipeable || !this.swiping) return;
  24710. var direction = this.direction,
  24711. deltaX = this.deltaX,
  24712. offsetX = this.offsetX;
  24713. var minSwipeDistance = 50;
  24714. if (direction === 'horizontal' && offsetX >= minSwipeDistance) {
  24715. var index = this.getAvaiableTab(deltaX);
  24716. if (index !== -1) {
  24717. this.onBeforeChange(index).then(function () {
  24718. return _this7.setCurrentIndex(index);
  24719. });
  24720. }
  24721. }
  24722. this.swiping = false;
  24723. },
  24724. getAvaiableTab: function getAvaiableTab(direction) {
  24725. var _this$data3 = this.data,
  24726. tabs = _this$data3.tabs,
  24727. currentIndex = _this$data3.currentIndex;
  24728. var step = direction > 0 ? -1 : 1;
  24729. for (var i = step; currentIndex + i < tabs.length && currentIndex + i >= 0; i += step) {
  24730. var index = currentIndex + i;
  24731. if (index >= 0 && index < tabs.length && tabs[index] && !tabs[index].disabled) {
  24732. return index;
  24733. }
  24734. }
  24735. return -1;
  24736. },
  24737. onBeforeChange: function onBeforeChange(index) {
  24738. var _this8 = this;
  24739. var useBeforeChange = this.data.useBeforeChange;
  24740. if (!useBeforeChange) {
  24741. return Promise.resolve();
  24742. }
  24743. return new Promise(function (resolve, reject) {
  24744. _this8.$emit('before-change', Object.assign(Object.assign({}, _this8.getChildData(index)), {
  24745. callback: function callback(status) {
  24746. return status ? resolve() : reject();
  24747. }
  24748. }));
  24749. });
  24750. },
  24751. getChildData: function getChildData(index, child) {
  24752. var currentChild = child || this.children[index];
  24753. if (!(0, _validator.isDef)(currentChild)) {
  24754. return;
  24755. }
  24756. return {
  24757. index: currentChild.index,
  24758. name: currentChild.getComputedName(),
  24759. title: currentChild.data.title
  24760. };
  24761. }
  24762. }
  24763. });
  24764. /***/ }),
  24765. /***/ 502:
  24766. /*!**************************************************************************************!*\
  24767. !*** D:/AAAcompany_product/新建文件夹/product_wx/wxcomponents/weapp/dist/mixins/touch.js ***!
  24768. \**************************************************************************************/
  24769. /*! no static exports found */
  24770. /***/ (function(module, exports, __webpack_require__) {
  24771. "use strict";
  24772. Object.defineProperty(exports, "__esModule", {
  24773. value: true
  24774. });
  24775. exports.touch = void 0;
  24776. // @ts-nocheck
  24777. var MIN_DISTANCE = 10;
  24778. function getDirection(x, y) {
  24779. if (x > y && x > MIN_DISTANCE) {
  24780. return 'horizontal';
  24781. }
  24782. if (y > x && y > MIN_DISTANCE) {
  24783. return 'vertical';
  24784. }
  24785. return '';
  24786. }
  24787. var touch = Behavior({
  24788. methods: {
  24789. resetTouchStatus: function resetTouchStatus() {
  24790. this.direction = '';
  24791. this.deltaX = 0;
  24792. this.deltaY = 0;
  24793. this.offsetX = 0;
  24794. this.offsetY = 0;
  24795. },
  24796. touchStart: function touchStart(event) {
  24797. this.resetTouchStatus();
  24798. var touch = event.touches[0];
  24799. this.startX = touch.clientX;
  24800. this.startY = touch.clientY;
  24801. },
  24802. touchMove: function touchMove(event) {
  24803. var touch = event.touches[0];
  24804. this.deltaX = touch.clientX - this.startX;
  24805. this.deltaY = touch.clientY - this.startY;
  24806. this.offsetX = Math.abs(this.deltaX);
  24807. this.offsetY = Math.abs(this.deltaY);
  24808. this.direction = this.direction || getDirection(this.offsetX, this.offsetY);
  24809. }
  24810. }
  24811. });
  24812. exports.touch = touch;
  24813. /***/ }),
  24814. /***/ 508:
  24815. /*!*****************************************************************************************************************!*\
  24816. !*** D:/AAAcompany_product/新建文件夹/product_wx/uni_modules/uni-search-bar/components/uni-search-bar/i18n/index.js ***!
  24817. \*****************************************************************************************************************/
  24818. /*! no static exports found */
  24819. /***/ (function(module, exports, __webpack_require__) {
  24820. "use strict";
  24821. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  24822. Object.defineProperty(exports, "__esModule", {
  24823. value: true
  24824. });
  24825. exports.default = void 0;
  24826. var _en = _interopRequireDefault(__webpack_require__(/*! ./en.json */ 509));
  24827. var _zhHans = _interopRequireDefault(__webpack_require__(/*! ./zh-Hans.json */ 510));
  24828. var _zhHant = _interopRequireDefault(__webpack_require__(/*! ./zh-Hant.json */ 511));
  24829. var _default = {
  24830. en: _en.default,
  24831. 'zh-Hans': _zhHans.default,
  24832. 'zh-Hant': _zhHant.default
  24833. };
  24834. exports.default = _default;
  24835. /***/ }),
  24836. /***/ 509:
  24837. /*!****************************************************************************************************************!*\
  24838. !*** D:/AAAcompany_product/新建文件夹/product_wx/uni_modules/uni-search-bar/components/uni-search-bar/i18n/en.json ***!
  24839. \****************************************************************************************************************/
  24840. /*! exports provided: uni-search-bar.cancel, uni-search-bar.placeholder, default */
  24841. /***/ (function(module) {
  24842. module.exports = JSON.parse("{\"uni-search-bar.cancel\":\"cancel\",\"uni-search-bar.placeholder\":\"Search enter content\"}");
  24843. /***/ }),
  24844. /***/ 51:
  24845. /*!***************************************************************!*\
  24846. !*** D:/AAAcompany_product/新建文件夹/product_wx/js_sdk/common.js ***!
  24847. \***************************************************************/
  24848. /*! no static exports found */
  24849. /***/ (function(module, exports, __webpack_require__) {
  24850. "use strict";
  24851. /* WEBPACK VAR INJECTION */(function(uni) {
  24852. Object.defineProperty(exports, "__esModule", {
  24853. value: true
  24854. });
  24855. exports.default = void 0;
  24856. exports.getUrlParameter = getUrlParameter;
  24857. exports.showToast = showToast;
  24858. /**
  24859. * 获取url参数值
  24860. * @param {*} url
  24861. * @param {*} name
  24862. */
  24863. function getUrlParameter(url, name) {
  24864. var regexSearch = '[\\?&#]' + name + '=([^&#]*)';
  24865. var regex = new RegExp(regexSearch);
  24866. var results = regex.exec(url);
  24867. return results ? window.decodeURIComponent(results[1]) : '';
  24868. }
  24869. function showToast(e) {
  24870. uni.showToast({
  24871. title: e,
  24872. icon: 'none',
  24873. mask: true,
  24874. duration: 1000
  24875. });
  24876. }
  24877. var _default = {
  24878. transDate: function transDate(val, pattern) {
  24879. if (val) {
  24880. var time = new Date();
  24881. time.setTime(val);
  24882. if (Date.parse(val)) {
  24883. time = new Date(val);
  24884. }
  24885. if (time instanceof Date) {
  24886. return this.formatDate(pattern || 'yyyy-MM-dd', time);
  24887. }
  24888. }
  24889. return '';
  24890. },
  24891. transBaseDateTime: function transBaseDateTime(val, pattern) {
  24892. if (val) {
  24893. var time = new Date();
  24894. time.setTime(val);
  24895. if (Date.parse(val)) {
  24896. time = new Date(val);
  24897. }
  24898. if (time instanceof Date) {
  24899. return this.formatDate(pattern || 'yyyy年MM月dd日 hh:mm', time);
  24900. }
  24901. }
  24902. return '';
  24903. },
  24904. transBaseToDateTime: function transBaseToDateTime(val, pattern) {
  24905. if (val) {
  24906. var time = new Date();
  24907. time.setTime(val);
  24908. if (Date.parse(val)) {
  24909. time = new Date(val);
  24910. }
  24911. if (time instanceof Date) {
  24912. return this.formatDate(pattern || 'MM月dd日 hh:mm', time);
  24913. }
  24914. }
  24915. return '';
  24916. },
  24917. transServDate: function transServDate(val) {
  24918. return this.transDate(val, 'yyyy-MM-dd hh:mm:ss');
  24919. },
  24920. transServDay: function transServDay(val) {
  24921. return this.transDate(val, 'yyyy-MM-dd');
  24922. },
  24923. isArrayFn: function isArrayFn(value) {
  24924. if (typeof Array.isArray === 'function') {
  24925. return Array.isArray(value);
  24926. } else {
  24927. return Object.prototype.toString.call(value) === '[object Array]';
  24928. }
  24929. },
  24930. transDcMap: function transDcMap(arr) {
  24931. var tMap = {};
  24932. arr.forEach(function (item) {
  24933. tMap[item.value] = item.label;
  24934. });
  24935. return tMap;
  24936. },
  24937. castEval: function castEval(val) {
  24938. // return JSON.parse(val)
  24939. if (val) {
  24940. return eval('(' + val + ')');
  24941. } else {
  24942. return '';
  24943. }
  24944. },
  24945. castString: function castString(val) {
  24946. return JSON.stringify(val);
  24947. },
  24948. // 金额格式化,整数部分每3位用逗号分隔,支持带有正负号以及小数部分
  24949. formatMoney: function formatMoney(amt) {
  24950. if (!amt) return '';
  24951. if (amt.length <= 3) {
  24952. return amt;
  24953. }
  24954. if (!/^(\+|-)?(\d+)(\.\d+)?$/.test(amt)) {
  24955. return amt;
  24956. }
  24957. var a = RegExp.$1;
  24958. var b = RegExp.$2;
  24959. var c = RegExp.$3;
  24960. var re = new RegExp();
  24961. re.compile('(\\d)(\\d{3})(,|$)');
  24962. while (re.test(b)) {
  24963. b = b.replace(re, '$1,$2$3');
  24964. }
  24965. return a + '' + b + '' + c;
  24966. },
  24967. formatDate: function formatDate(fmt, date) {
  24968. // author: meizz
  24969. var o = {
  24970. 'M+': date.getMonth() + 1,
  24971. // 月份
  24972. 'd+': date.getDate(),
  24973. // 日
  24974. 'h+': date.getHours(),
  24975. // 小时
  24976. 'm+': date.getMinutes(),
  24977. // 分
  24978. 's+': date.getSeconds(),
  24979. // 秒
  24980. 'q+': Math.floor((date.getMonth() + 3) / 3),
  24981. // 季度
  24982. 'S': date.getMilliseconds() // 毫秒
  24983. };
  24984. if (/(y+)/.test(fmt)) {
  24985. fmt = fmt.replace(RegExp.$1, (date.getFullYear() + '').substr(4 - RegExp.$1.length));
  24986. }
  24987. for (var k in o) {
  24988. if (new RegExp('(' + k + ')').test(fmt)) {
  24989. fmt = fmt.replace(RegExp.$1, RegExp.$1.length === 1 ? o[k] : ('00' + o[k]).substr(('' + o[k]).length));
  24990. }
  24991. }
  24992. return fmt;
  24993. },
  24994. replaceThumbnail: function replaceThumbnail(urlPath) {
  24995. if (urlPath != null) {
  24996. urlPath = urlPath.replace('/server/FileController/download/', this.$constant.BASE_URI + '/wx/fileController/downloadThumbnail/');
  24997. }
  24998. if (urlPath != null) {
  24999. urlPath = urlPath.replace('/h5Server/FileController/download/', this.$constant.BASE_URI + '/wx/fileController/downloadThumbnail/');
  25000. }
  25001. return urlPath;
  25002. },
  25003. goBack: function goBack() {
  25004. // window.history.go(-1)
  25005. // self.location = document.referrer
  25006. history.back();
  25007. },
  25008. uuid: function uuid(len, radix) {
  25009. var chars = '0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz'.split('');
  25010. var uuid = [];
  25011. var i;
  25012. radix = radix || chars.length;
  25013. if (len) {
  25014. // Compact form
  25015. for (i = 0; i < len; i++) {
  25016. uuid[i] = chars[0 | Math.random() * radix];
  25017. }
  25018. } else {
  25019. // rfc4122, version 4 form
  25020. var r;
  25021. // rfc4122 requires these characters
  25022. uuid[8] = uuid[13] = uuid[18] = uuid[23] = '-';
  25023. uuid[14] = '4';
  25024. // Fill in random data. At i==19 set the high bits of clock sequence as
  25025. // per rfc4122, sec. 4.1.5
  25026. for (i = 0; i < 36; i++) {
  25027. if (!uuid[i]) {
  25028. r = 0 | Math.random() * 16;
  25029. uuid[i] = chars[i === 19 ? r & 0x3 | 0x8 : r];
  25030. }
  25031. }
  25032. }
  25033. return uuid.join('');
  25034. }
  25035. };
  25036. exports.default = _default;
  25037. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  25038. /***/ }),
  25039. /***/ 510:
  25040. /*!*********************************************************************************************************************!*\
  25041. !*** D:/AAAcompany_product/新建文件夹/product_wx/uni_modules/uni-search-bar/components/uni-search-bar/i18n/zh-Hans.json ***!
  25042. \*********************************************************************************************************************/
  25043. /*! exports provided: uni-search-bar.cancel, uni-search-bar.placeholder, default */
  25044. /***/ (function(module) {
  25045. module.exports = JSON.parse("{\"uni-search-bar.cancel\":\"cancel\",\"uni-search-bar.placeholder\":\"请输入搜索内容\"}");
  25046. /***/ }),
  25047. /***/ 511:
  25048. /*!*********************************************************************************************************************!*\
  25049. !*** D:/AAAcompany_product/新建文件夹/product_wx/uni_modules/uni-search-bar/components/uni-search-bar/i18n/zh-Hant.json ***!
  25050. \*********************************************************************************************************************/
  25051. /*! exports provided: uni-search-bar.cancel, uni-search-bar.placeholder, default */
  25052. /***/ (function(module) {
  25053. module.exports = JSON.parse("{\"uni-search-bar.cancel\":\"cancel\",\"uni-search-bar.placeholder\":\"請輸入搜索內容\"}");
  25054. /***/ }),
  25055. /***/ 514:
  25056. /*!***********************************************************************************!*\
  25057. !*** D:/AAAcompany_product/新建文件夹/product_wx/wxcomponents/weapp/dist/row/index.js ***!
  25058. \***********************************************************************************/
  25059. /*! no static exports found */
  25060. /***/ (function(module, exports, __webpack_require__) {
  25061. "use strict";
  25062. var _component = __webpack_require__(/*! ../common/component */ 397);
  25063. var _relation = __webpack_require__(/*! ../common/relation */ 399);
  25064. (0, _component.VantComponent)({
  25065. relation: (0, _relation.useChildren)('col', function (target) {
  25066. var gutter = this.data.gutter;
  25067. if (gutter) {
  25068. target.setData({
  25069. gutter: gutter
  25070. });
  25071. }
  25072. }),
  25073. props: {
  25074. gutter: {
  25075. type: Number,
  25076. observer: 'setGutter'
  25077. }
  25078. },
  25079. methods: {
  25080. setGutter: function setGutter() {
  25081. var _this = this;
  25082. this.children.forEach(function (col) {
  25083. col.setData(_this.data);
  25084. });
  25085. }
  25086. }
  25087. });
  25088. /***/ }),
  25089. /***/ 515:
  25090. /*!***********************************************************************************!*\
  25091. !*** D:/AAAcompany_product/新建文件夹/product_wx/wxcomponents/weapp/dist/col/index.js ***!
  25092. \***********************************************************************************/
  25093. /*! no static exports found */
  25094. /***/ (function(module, exports, __webpack_require__) {
  25095. "use strict";
  25096. var _relation = __webpack_require__(/*! ../common/relation */ 399);
  25097. var _component = __webpack_require__(/*! ../common/component */ 397);
  25098. (0, _component.VantComponent)({
  25099. relation: (0, _relation.useParent)('row'),
  25100. props: {
  25101. span: Number,
  25102. offset: Number
  25103. }
  25104. });
  25105. /***/ }),
  25106. /***/ 52:
  25107. /*!*************************************************************!*\
  25108. !*** D:/AAAcompany_product/新建文件夹/product_wx/js_sdk/auth.js ***!
  25109. \*************************************************************/
  25110. /*! no static exports found */
  25111. /***/ (function(module, exports, __webpack_require__) {
  25112. "use strict";
  25113. /* WEBPACK VAR INJECTION */(function(uni) {
  25114. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  25115. Object.defineProperty(exports, "__esModule", {
  25116. value: true
  25117. });
  25118. exports.default = void 0;
  25119. var _common = _interopRequireDefault(__webpack_require__(/*! ./common.js */ 51));
  25120. var _default = {
  25121. TYPE_FRAME: 'FRAME',
  25122. TYPE_BIZ: 'BIZ',
  25123. TYPE_USER: 'USER',
  25124. TYPE_PERSON_BIZ: 'BIZ_PERSON',
  25125. // ------------------------------ User -----------------------------------
  25126. uid: function uid() {
  25127. return this.currUser() ? this.currUser().id : null;
  25128. },
  25129. setUser: function setUser(value) {
  25130. uni.setStorage({
  25131. key: 'laocui_user_token',
  25132. data: value,
  25133. success: function success() {}
  25134. });
  25135. },
  25136. setUserInfo: function setUserInfo(value) {
  25137. uni.setStorage({
  25138. key: 'laocui_user_info',
  25139. data: JSON.stringify(value),
  25140. success: function success() {}
  25141. });
  25142. },
  25143. currUser: function currUser() {
  25144. return _common.default.castEval(localStorage.getItem(this.userKey()) || '');
  25145. },
  25146. removeUser: function removeUser() {
  25147. uni.removeStorage(this.userKey());
  25148. },
  25149. // ------------------------------ Biz -----------------------------------
  25150. bid: function bid() {
  25151. return this.currBiz() ? this.currBiz().id : null;
  25152. },
  25153. setBiz: function setBiz(value) {
  25154. sessionStorage.setItem(this.bizKey(), JSON.stringify(value));
  25155. },
  25156. removeBiz: function removeBiz() {
  25157. sessionStorage.removeItem(this.bizKey());
  25158. },
  25159. currBiz: function currBiz() {
  25160. return _common.default.castEval(sessionStorage.getItem(this.bizKey()) || null);
  25161. },
  25162. // ------------------------------ Token -----------------------------------
  25163. setToken: function setToken(token) {
  25164. localStorage.setItem(this.tokenKey(), token);
  25165. },
  25166. getToken: function getToken() {
  25167. return localStorage.getItem(this.tokenKey()) || null;
  25168. },
  25169. removeToken: function removeToken() {
  25170. localStorage.removeItem(this.tokenKey());
  25171. },
  25172. // ------------------------------ key -----------------------------------
  25173. // bizKey: function() {
  25174. // const key = this.hashCode(window.location.host + '_biz_' + this.getUserType())
  25175. // return key
  25176. // },
  25177. //
  25178. // userKey: function() {
  25179. // const key = this.hashCode(window.location.host + '_user_' + this.getUserType())
  25180. // return key
  25181. // },
  25182. //
  25183. // tokenKey: function() {
  25184. // const key = this.hashCode(window.location.host + '_token_' + this.getUserType())
  25185. // return key
  25186. // },
  25187. // Frame
  25188. setLoginInfo: function setLoginInfo(value) {
  25189. localStorage.setItem('KEY_ADMIN_USER_LOGIN_INFO', JSON.stringify(value));
  25190. },
  25191. getLoginInfo: function getLoginInfo() {
  25192. return _common.default.castEval(localStorage.getItem('KEY_ADMIN_USER_LOGIN_INFO') || null);
  25193. },
  25194. removeLoginInfo: function removeLoginInfo() {
  25195. localStorage.removeItem('KEY_ADMIN_USER_LOGIN_INFO');
  25196. },
  25197. // Biz
  25198. setBizLoginInfo: function setBizLoginInfo(value) {
  25199. localStorage.setItem('KEY_BIZ_USER_LOGIN_INFO', JSON.stringify(value));
  25200. },
  25201. getBizLoginInfo: function getBizLoginInfo() {
  25202. return _common.default.castEval(localStorage.getItem('KEY_BIZ_USER_LOGIN_INFO') || null);
  25203. },
  25204. removeBizLoginInfo: function removeBizLoginInfo() {
  25205. localStorage.removeItem('KEY_BIZ_USER_LOGIN_INFO');
  25206. },
  25207. setUserType: function setUserType(value) {
  25208. localStorage.setItem('KEY_USER_TYPE', value);
  25209. },
  25210. getUserType: function getUserType() {
  25211. return localStorage.getItem('KEY_USER_TYPE') || 'TYPE_FRAME';
  25212. },
  25213. hashCode: function hashCode(str) {
  25214. var hash = 0;
  25215. if (str.length === 0) return hash;
  25216. for (var i = 0; i < str.length; i++) {
  25217. var char = str.charCodeAt(i);
  25218. hash = (hash << 5) - hash + char;
  25219. hash = hash & hash; // Convert to 32bit integer
  25220. }
  25221. return hash;
  25222. },
  25223. /*
  25224. 定时缓存
  25225. */
  25226. setTimingLocalStorage: function setTimingLocalStorage(key, value, ttl_ms) {
  25227. var data = {
  25228. value: value,
  25229. expirse: new Date(ttl_ms).getTime()
  25230. };
  25231. localStorage.setItem(key, JSON.stringify(data));
  25232. },
  25233. getTimingLocalStorage: function getTimingLocalStorage(key) {
  25234. var data = JSON.parse(localStorage.getItem(key));
  25235. if (data !== null) {
  25236. if (data.expirse == null || data.expirse != null && data.expirse < new Date().getTime()) {
  25237. localStorage.removeItem(key);
  25238. } else {
  25239. return JSON.parse(data.value);
  25240. }
  25241. }
  25242. return null;
  25243. }
  25244. };
  25245. exports.default = _default;
  25246. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  25247. /***/ }),
  25248. /***/ 53:
  25249. /*!******************************************************************************!*\
  25250. !*** D:/AAAcompany_product/新建文件夹/product_wx/js_sdk/request/requestConfig.js ***!
  25251. \******************************************************************************/
  25252. /*! no static exports found */
  25253. /***/ (function(module, exports, __webpack_require__) {
  25254. "use strict";
  25255. /* WEBPACK VAR INJECTION */(function(uni) {
  25256. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  25257. Object.defineProperty(exports, "__esModule", {
  25258. value: true
  25259. });
  25260. exports.default = void 0;
  25261. var _request = _interopRequireDefault(__webpack_require__(/*! ./request */ 54));
  25262. var _config = _interopRequireDefault(__webpack_require__(/*! config */ 55));
  25263. // import store from "../../store/index.js";
  25264. uni.getStorage({
  25265. key: 'storage_key',
  25266. success: function success(res) {
  25267. console.log(res.data);
  25268. }
  25269. });
  25270. //可以new多个request来支持多个域名请求
  25271. var $http = new _request.default({
  25272. //接口请求地址
  25273. baseUrl: _config.default.baseUrl,
  25274. //服务器本地上传文件地址
  25275. fileUrl: _config.default.baseUrl,
  25276. //设置请求头
  25277. headers: {
  25278. 'Content-Type': 'application/x-www-form-urlencoded;',
  25279. 'ApiVersion': _config.default.version,
  25280. 'Device': _config.default.device,
  25281. 'Platform': _config.default.platform,
  25282. "Authorization": 'Bearer ' + uni.getStorageSync('laocui_user_token')
  25283. },
  25284. //以下是默认值可不写
  25285. //是否提示--默认提示
  25286. isPrompt: true,
  25287. //是否显示请求动画
  25288. load: true,
  25289. //是否使用处理数据模板
  25290. isFactory: true,
  25291. //列表接口是否有加载判断
  25292. loadMore: true
  25293. });
  25294. //当前接口请求数
  25295. var requestNum = 0;
  25296. //请求开始拦截器
  25297. $http.requestStart = function (options) {
  25298. for (var key in options.data) {
  25299. if (options.data[key] == null) {
  25300. delete options.data[key];
  25301. }
  25302. }
  25303. if (requestNum <= 0) {
  25304. uni.showNavigationBarLoading();
  25305. if (options.load) {
  25306. //打开加载动画
  25307. uni.showLoading({
  25308. title: '加载中',
  25309. mask: true
  25310. });
  25311. }
  25312. }
  25313. requestNum += 1;
  25314. //请求前加入token
  25315. options.headers['Authorization'] = 'Bearer ' + uni.getStorageSync('laocui_user_token');
  25316. console.log(uni.getStorageSync('USERINFO'));
  25317. options.headers['requestHanderAuth'] = uni.getStorageSync('USERINFO') ? JSON.parse(uni.getStorageSync('USERINFO')).requestHanderAuth : '';
  25318. // console.log("请求开始前", options);
  25319. return options;
  25320. };
  25321. //请求结束
  25322. $http.requestEnd = function (options, resolve) {
  25323. //判断当前接口是否需要加载动画
  25324. requestNum = requestNum - 1;
  25325. if (requestNum <= 0) {
  25326. uni.hideLoading();
  25327. uni.hideNavigationBarLoading();
  25328. }
  25329. if (resolve.errMsg && (resolve.errMsg != "request:ok" || resolve.statusCode && resolve.statusCode != 200)) {
  25330. uni.showToast({
  25331. title: "网络错误,请检查一下网络",
  25332. mask: true,
  25333. icon: "none"
  25334. });
  25335. }
  25336. };
  25337. //登录弹窗次数
  25338. var loginPopupNum = 0;
  25339. //所有接口数据处理(可在接口里设置不调用此方法)
  25340. $http.dataFactory = function (options, resolve) {
  25341. //设置回调默认值
  25342. var callback = {
  25343. //success数据是否请求成功状态
  25344. success: false,
  25345. //这里返回的数据就是调用请求方法收到的数据
  25346. result: ""
  25347. };
  25348. // 特殊接口处理 接口报请先登录 跳转登录
  25349. if (resolve.data.code === 101) {
  25350. uni.showModal({
  25351. title: '提示',
  25352. content: resolve.data.msg,
  25353. showCancel: false,
  25354. success: function success() {
  25355. uni.setStorageSync('token', null);
  25356. uni.navigateTo({
  25357. url: '/pages/login/login'
  25358. });
  25359. }
  25360. });
  25361. return false;
  25362. }
  25363. //判断数据是否请求成功
  25364. if (resolve.data.errmsg == "成功") {
  25365. callback.success = true;
  25366. callback.result = resolve.data;
  25367. } else if (resolve.data.errno == 303) {
  25368. uni.redirectTo({
  25369. url: '/pages/subPackages/pages/login/login'
  25370. });
  25371. this.$showToast('令牌过期,请重新登陆');
  25372. } else {
  25373. uni.showToast({
  25374. title: resolve.data.errmsg,
  25375. icon: "none",
  25376. mask: true,
  25377. duration: 2000
  25378. });
  25379. //设置可以提示的时候
  25380. // if (options.isPrompt) {
  25381. // setTimeout(function () {
  25382. //提示后台接口抛出的错误信息
  25383. // uni.showToast({
  25384. // title: resolve.data.msg,
  25385. // icon: "none",
  25386. // duration: 3000
  25387. // });
  25388. // }, 500);
  25389. // }
  25390. callback.result = resolve.data;
  25391. }
  25392. uni.stopPullDownRefresh();
  25393. return callback;
  25394. };
  25395. var _default = $http;
  25396. exports.default = _default;
  25397. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  25398. /***/ }),
  25399. /***/ 54:
  25400. /*!************************************************************************!*\
  25401. !*** D:/AAAcompany_product/新建文件夹/product_wx/js_sdk/request/request.js ***!
  25402. \************************************************************************/
  25403. /*! no static exports found */
  25404. /***/ (function(module, exports, __webpack_require__) {
  25405. "use strict";
  25406. /* WEBPACK VAR INJECTION */(function(uni) {
  25407. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  25408. Object.defineProperty(exports, "__esModule", {
  25409. value: true
  25410. });
  25411. exports.default = void 0;
  25412. var _typeof2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/typeof */ 13));
  25413. var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ 23));
  25414. var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ 24));
  25415. var request = /*#__PURE__*/function () {
  25416. function request(options) {
  25417. (0, _classCallCheck2.default)(this, request);
  25418. //请求公共地址
  25419. this.baseUrl = options.baseUrl || "";
  25420. //公共文件上传请求地址
  25421. this.fileUrl = options.fileUrl || "";
  25422. //默认请求头
  25423. this.headers = options.headers || {};
  25424. //默认配置
  25425. this.config = {
  25426. isPrompt: options.isPrompt === false ? false : true,
  25427. load: options.load === false ? false : true,
  25428. isFactory: options.isFactory === false ? false : true,
  25429. loadMore: options.loadMore === false ? false : true
  25430. };
  25431. }
  25432. // 获取默认信息
  25433. (0, _createClass2.default)(request, [{
  25434. key: "getDefault",
  25435. value: function getDefault(url, options, type) {
  25436. //判断url是不是链接
  25437. var urlType = /^([hH][tT]{2}[pP]:\/\/|[hH][tT]{2}[pP][sS]:\/\/)(([A-Za-z0-9-~]+).)+([A-Za-z0-9-~/])+$/.test(url);
  25438. var httpUrl;
  25439. if (type == "file") {
  25440. httpUrl = urlType ? url : this.fileUrl + url;
  25441. } else {
  25442. httpUrl = urlType ? url : this.baseUrl + url;
  25443. }
  25444. var config = Object.assign({}, this.config, options);
  25445. //请求地址
  25446. config.httpUrl = httpUrl;
  25447. //请求头
  25448. config.headers = Object.assign(this.headers, options.headers);
  25449. return config;
  25450. }
  25451. //post请求
  25452. }, {
  25453. key: "post",
  25454. value: function post() {
  25455. var _this2 = this;
  25456. var url = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
  25457. var data = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  25458. var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
  25459. var requestInfo = this.getDefault(url, options, "data");
  25460. requestInfo.data = data;
  25461. return new Promise(function (resolve, reject) {
  25462. _this2.getRequest("POST", requestInfo, function (state, response) {
  25463. //是否用外部的数据处理方法
  25464. if (state && requestInfo.isFactory && _this2.dataFactory) {
  25465. //数据处理
  25466. var factoryInfo = _this2.dataFactory(requestInfo, response);
  25467. // console.log(factoryInfo)
  25468. return resolve(factoryInfo.result);
  25469. // factoryInfo.success ? resolve(factoryInfo.result) : reject(factoryInfo.result);
  25470. } else {
  25471. // console.log(response, response)
  25472. state ? resolve(response) : reject(response);
  25473. }
  25474. });
  25475. });
  25476. }
  25477. //get请求
  25478. }, {
  25479. key: "get",
  25480. value: function get() {
  25481. var _this3 = this;
  25482. var url = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
  25483. var data = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  25484. var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
  25485. var requestInfo = this.getDefault(url, options, "data");
  25486. requestInfo.data = data;
  25487. return new Promise(function (resolve, reject) {
  25488. _this3.getRequest("GET", requestInfo, function (state, response) {
  25489. //是否用外部的数据处理方法
  25490. if (state && requestInfo.isFactory && _this3.dataFactory) {
  25491. //数据处理
  25492. var factoryInfo = _this3.dataFactory(requestInfo, response);
  25493. factoryInfo.success ? resolve(factoryInfo.result) : reject(factoryInfo.result);
  25494. } else {
  25495. state ? resolve(response) : reject(response);
  25496. }
  25497. });
  25498. });
  25499. }
  25500. //put请求
  25501. }, {
  25502. key: "put",
  25503. value: function put() {
  25504. var _this4 = this;
  25505. var url = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
  25506. var data = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  25507. var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
  25508. var requestInfo = this.getDefault(url, options, "data");
  25509. requestInfo.data = data;
  25510. return new Promise(function (resolve, reject) {
  25511. _this4.getRequest("PUT", requestInfo, function (state, response) {
  25512. //是否用外部的数据处理方法
  25513. if (state && requestInfo.isFactory && _this4.dataFactory) {
  25514. //数据处理
  25515. var factoryInfo = _this4.dataFactory(requestInfo, response);
  25516. factoryInfo.success ? resolve(factoryInfo.result) : reject(factoryInfo.result);
  25517. } else {
  25518. state ? resolve(response) : reject(response);
  25519. }
  25520. });
  25521. });
  25522. }
  25523. //delete请求
  25524. }, {
  25525. key: "delete",
  25526. value: function _delete() {
  25527. var _this5 = this;
  25528. var url = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
  25529. var data = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  25530. var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
  25531. var requestInfo = this.getDefault(url, options, "data");
  25532. requestInfo.data = data;
  25533. return new Promise(function (resolve, reject) {
  25534. _this5.getRequest("DELETE", requestInfo, function (state, response) {
  25535. //是否用外部的数据处理方法
  25536. if (state && requestInfo.isFactory && _this5.dataFactory) {
  25537. //数据处理
  25538. var factoryInfo = _this5.dataFactory(requestInfo, response);
  25539. factoryInfo.success ? resolve(factoryInfo.result) : reject(factoryInfo.result);
  25540. } else {
  25541. state ? resolve(response) : reject(response);
  25542. }
  25543. });
  25544. });
  25545. }
  25546. //接口请求方法
  25547. }, {
  25548. key: "getRequest",
  25549. value: function getRequest(ajaxType, options, callback) {
  25550. var _this6 = this;
  25551. //请求前回调
  25552. if (this.requestStart) {
  25553. options.method = ajaxType;
  25554. var requestStart = this.requestStart(options);
  25555. if ((0, _typeof2.default)(requestStart) == "object") {
  25556. options.data = requestStart.data;
  25557. options.headers = requestStart.headers;
  25558. options.isPrompt = requestStart.isPrompt;
  25559. options.load = requestStart.load;
  25560. options.isFactory = requestStart.isFactory;
  25561. } else {
  25562. callback(false, "请求开始拦截器未通过");
  25563. return;
  25564. }
  25565. }
  25566. // console.log(options.data)
  25567. uni.request({
  25568. url: options.httpUrl,
  25569. data: options.data,
  25570. method: ajaxType,
  25571. //请求类型
  25572. header: options.headers,
  25573. //加入请求头
  25574. success: function success(res) {
  25575. // ;
  25576. //请求完成回调
  25577. _this6.requestEnd && _this6.requestEnd(options, res);
  25578. callback(true, res);
  25579. },
  25580. fail: function fail(err) {
  25581. // console.log(err);
  25582. //请求完成回调
  25583. _this6.requestEnd && _this6.requestEnd(options, err);
  25584. callback(false, err);
  25585. }
  25586. });
  25587. }
  25588. //jsonp请求(只限于H5使用)
  25589. }, {
  25590. key: "jsonp",
  25591. value: function jsonp() {
  25592. var url = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
  25593. var data = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  25594. var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
  25595. var requestInfo = this.getDefault(url, options, "data");
  25596. var dataStr = '';
  25597. Object.keys(data).forEach(function (key) {
  25598. dataStr += key + '=' + data[key] + '&';
  25599. });
  25600. //匹配最后一个&并去除
  25601. if (dataStr !== '') {
  25602. dataStr = dataStr.substr(0, dataStr.lastIndexOf('&'));
  25603. }
  25604. requestInfo.httpUrl = requestInfo.httpUrl + '?' + dataStr;
  25605. var _this = this;
  25606. return new Promise(function (resolve, reject) {
  25607. var callbackName = "callback" + Math.ceil(Math.random() * 1000000);
  25608. if (_this.requestStart) {
  25609. requestInfo.data = data;
  25610. var requestStart = _this.requestStart(requestInfo);
  25611. if ((0, _typeof2.default)(requestStart) == "object") {
  25612. requestInfo.data = requestStart.data;
  25613. requestInfo.headers = requestStart.headers;
  25614. requestInfo.isPrompt = requestStart.isPrompt;
  25615. requestInfo.load = requestStart.load;
  25616. requestInfo.isFactory = requestStart.isFactory;
  25617. } else {
  25618. reject("请求开始拦截器未通过");
  25619. return;
  25620. }
  25621. }
  25622. window[callbackName] = function (data) {
  25623. resolve(data);
  25624. };
  25625. var script = document.createElement("script");
  25626. script.src = requestInfo.httpUrl + "&callback=" + callbackName;
  25627. document.head.appendChild(script);
  25628. // 及时删除,防止加载过多的JS
  25629. document.head.removeChild(script);
  25630. //请求完成回调
  25631. _this.requestEnd && _this.requestEnd(requestInfo, {});
  25632. });
  25633. }
  25634. //本地服务器图片上传
  25635. }, {
  25636. key: "urlImgUpload",
  25637. value: function urlImgUpload() {
  25638. var url = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
  25639. var data = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  25640. var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
  25641. var requestInfo = this.getDefault(url, options, "file");
  25642. requestInfo.data = data;
  25643. var _this = this;
  25644. return new Promise(function (resolve, reject) {
  25645. uni.chooseImage({
  25646. count: data.count || 9,
  25647. //默认9
  25648. sizeType: data.sizeType || ['original', 'compressed'],
  25649. //可以指定是原图还是压缩图,默认二者都有
  25650. sourceType: data.sourceType || ['album', 'camera'],
  25651. //从相册选择
  25652. success: function success(res) {
  25653. _this.urlFileUpload(requestInfo, res.tempFiles, function (state, response) {
  25654. state ? resolve(response) : reject(response);
  25655. });
  25656. }
  25657. });
  25658. });
  25659. }
  25660. //本地服务器文件上传方法
  25661. }, {
  25662. key: "urlFileUpload",
  25663. value: function urlFileUpload(options, files, callback) {
  25664. var _this = this;
  25665. //请求前回调
  25666. if (this.requestStart) {
  25667. options.method = "FILE";
  25668. var requestStart = this.requestStart(options);
  25669. if ((0, _typeof2.default)(requestStart) == "object") {
  25670. if ((0, _typeof2.default)(requestStart) == "object") {
  25671. options.data = requestStart.data;
  25672. options.headers = requestStart.headers;
  25673. options.isPrompt = requestStart.isPrompt;
  25674. options.load = requestStart.load;
  25675. options.isFactory = requestStart.isFactory;
  25676. } else {
  25677. callback(false, "请求开始拦截器未通过");
  25678. return;
  25679. }
  25680. }
  25681. }
  25682. var len = files.length - 1;
  25683. var fileList = new Array();
  25684. fileUpload(0);
  25685. function fileUpload(i) {
  25686. var config = {
  25687. url: options.httpUrl,
  25688. filePath: files[i].path,
  25689. header: options.headers,
  25690. //加入请求头
  25691. name: options.name || "file",
  25692. success: function success(response) {
  25693. response.data = JSON.parse(response.data);
  25694. //请求完成回调
  25695. _this.requestEnd && _this.requestEnd(options, response);
  25696. //是否用外部的数据处理方法
  25697. if (options.isFactory && _this.dataFactory) {
  25698. //数据处理
  25699. var factoryInfo = _this.dataFactory(options, response);
  25700. if (factoryInfo.success) {
  25701. fileList.push(factoryInfo.result);
  25702. if (len <= i) {
  25703. callback(true, fileList);
  25704. } else {
  25705. fileUpload(i + 1);
  25706. }
  25707. } else {
  25708. callback(false, factoryInfo.result);
  25709. }
  25710. } else {
  25711. fileList.push(response.data);
  25712. if (len <= i) {
  25713. callback(true, fileList);
  25714. } else {
  25715. fileUpload(i + 1);
  25716. }
  25717. }
  25718. },
  25719. fail: function fail(err) {
  25720. //请求完成回调
  25721. _this.requestEnd && _this.requestEnd(options, err);
  25722. callback(false, err);
  25723. }
  25724. };
  25725. if (options.data) {
  25726. config.formData = options.data;
  25727. }
  25728. uni.uploadFile(config);
  25729. }
  25730. }
  25731. }]);
  25732. return request;
  25733. }();
  25734. exports.default = request;
  25735. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  25736. /***/ }),
  25737. /***/ 55:
  25738. /*!********************************************************!*\
  25739. !*** D:/AAAcompany_product/新建文件夹/product_wx/config.js ***!
  25740. \********************************************************/
  25741. /*! no static exports found */
  25742. /***/ (function(module, exports, __webpack_require__) {
  25743. "use strict";
  25744. /* WEBPACK VAR INJECTION */(function(uni) {
  25745. Object.defineProperty(exports, "__esModule", {
  25746. value: true
  25747. });
  25748. exports.default = void 0;
  25749. var _constant = __webpack_require__(/*! ./pages/utils/constant.js */ 50);
  25750. // console.log(BASE_URI)
  25751. var baseUrl = _constant.BASE_URI;
  25752. var device, platform;
  25753. device = uni.getSystemInfoSync().brand + ' ' + uni.getSystemInfoSync().model;
  25754. platform = 'wxmini';
  25755. // app版本
  25756. var version = "1.0";
  25757. // 高德地图 key
  25758. var key = "53ea64b17287b1f7323e9f29870af813";
  25759. var _default = {
  25760. device: device,
  25761. version: version,
  25762. platform: platform,
  25763. key: key,
  25764. baseUrl: baseUrl
  25765. };
  25766. exports.default = _default;
  25767. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  25768. /***/ }),
  25769. /***/ 566:
  25770. /*!**************************************************************************************!*\
  25771. !*** D:/AAAcompany_product/新建文件夹/product_wx/wxcomponents/weapp/dist/picker/index.js ***!
  25772. \**************************************************************************************/
  25773. /*! no static exports found */
  25774. /***/ (function(module, exports, __webpack_require__) {
  25775. "use strict";
  25776. var _component = __webpack_require__(/*! ../common/component */ 397);
  25777. var _shared = __webpack_require__(/*! ./shared */ 567);
  25778. (0, _component.VantComponent)({
  25779. classes: ['active-class', 'toolbar-class', 'column-class'],
  25780. props: Object.assign(Object.assign({}, _shared.pickerProps), {
  25781. valueKey: {
  25782. type: String,
  25783. value: 'text'
  25784. },
  25785. toolbarPosition: {
  25786. type: String,
  25787. value: 'top'
  25788. },
  25789. defaultIndex: {
  25790. type: Number,
  25791. value: 0
  25792. },
  25793. columns: {
  25794. type: Array,
  25795. value: [],
  25796. observer: function observer() {
  25797. var columns = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
  25798. this.simple = columns.length && !columns[0].values;
  25799. if (Array.isArray(this.children) && this.children.length) {
  25800. this.setColumns().catch(function () {});
  25801. }
  25802. }
  25803. }
  25804. }),
  25805. beforeCreate: function beforeCreate() {
  25806. var _this = this;
  25807. Object.defineProperty(this, 'children', {
  25808. get: function get() {
  25809. return _this.selectAllComponents('.van-picker__column') || [];
  25810. }
  25811. });
  25812. },
  25813. methods: {
  25814. noop: function noop() {},
  25815. setColumns: function setColumns() {
  25816. var _this2 = this;
  25817. var data = this.data;
  25818. var columns = this.simple ? [{
  25819. values: data.columns
  25820. }] : data.columns;
  25821. var stack = columns.map(function (column, index) {
  25822. return _this2.setColumnValues(index, column.values);
  25823. });
  25824. return Promise.all(stack);
  25825. },
  25826. emit: function emit(event) {
  25827. var type = event.currentTarget.dataset.type;
  25828. if (this.simple) {
  25829. this.$emit(type, {
  25830. value: this.getColumnValue(0),
  25831. index: this.getColumnIndex(0)
  25832. });
  25833. } else {
  25834. this.$emit(type, {
  25835. value: this.getValues(),
  25836. index: this.getIndexes()
  25837. });
  25838. }
  25839. },
  25840. onChange: function onChange(event) {
  25841. if (this.simple) {
  25842. this.$emit('change', {
  25843. picker: this,
  25844. value: this.getColumnValue(0),
  25845. index: this.getColumnIndex(0)
  25846. });
  25847. } else {
  25848. this.$emit('change', {
  25849. picker: this,
  25850. value: this.getValues(),
  25851. index: event.currentTarget.dataset.index
  25852. });
  25853. }
  25854. },
  25855. // get column instance by index
  25856. getColumn: function getColumn(index) {
  25857. return this.children[index];
  25858. },
  25859. // get column value by index
  25860. getColumnValue: function getColumnValue(index) {
  25861. var column = this.getColumn(index);
  25862. return column && column.getValue();
  25863. },
  25864. // set column value by index
  25865. setColumnValue: function setColumnValue(index, value) {
  25866. var column = this.getColumn(index);
  25867. if (column == null) {
  25868. return Promise.reject(new Error('setColumnValue: 对应列不存在'));
  25869. }
  25870. return column.setValue(value);
  25871. },
  25872. // get column option index by column index
  25873. getColumnIndex: function getColumnIndex(columnIndex) {
  25874. return (this.getColumn(columnIndex) || {}).data.currentIndex;
  25875. },
  25876. // set column option index by column index
  25877. setColumnIndex: function setColumnIndex(columnIndex, optionIndex) {
  25878. var column = this.getColumn(columnIndex);
  25879. if (column == null) {
  25880. return Promise.reject(new Error('setColumnIndex: 对应列不存在'));
  25881. }
  25882. return column.setIndex(optionIndex);
  25883. },
  25884. // get options of column by index
  25885. getColumnValues: function getColumnValues(index) {
  25886. return (this.children[index] || {}).data.options;
  25887. },
  25888. // set options of column by index
  25889. setColumnValues: function setColumnValues(index, options) {
  25890. var needReset = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true;
  25891. var column = this.children[index];
  25892. if (column == null) {
  25893. return Promise.reject(new Error('setColumnValues: 对应列不存在'));
  25894. }
  25895. var isSame = JSON.stringify(column.data.options) === JSON.stringify(options);
  25896. if (isSame) {
  25897. return Promise.resolve();
  25898. }
  25899. return column.set({
  25900. options: options
  25901. }).then(function () {
  25902. if (needReset) {
  25903. column.setIndex(0);
  25904. }
  25905. });
  25906. },
  25907. // get values of all columns
  25908. getValues: function getValues() {
  25909. return this.children.map(function (child) {
  25910. return child.getValue();
  25911. });
  25912. },
  25913. // set values of all columns
  25914. setValues: function setValues(values) {
  25915. var _this3 = this;
  25916. var stack = values.map(function (value, index) {
  25917. return _this3.setColumnValue(index, value);
  25918. });
  25919. return Promise.all(stack);
  25920. },
  25921. // get indexes of all columns
  25922. getIndexes: function getIndexes() {
  25923. return this.children.map(function (child) {
  25924. return child.data.currentIndex;
  25925. });
  25926. },
  25927. // set indexes of all columns
  25928. setIndexes: function setIndexes(indexes) {
  25929. var _this4 = this;
  25930. var stack = indexes.map(function (optionIndex, columnIndex) {
  25931. return _this4.setColumnIndex(columnIndex, optionIndex);
  25932. });
  25933. return Promise.all(stack);
  25934. }
  25935. }
  25936. });
  25937. /***/ }),
  25938. /***/ 567:
  25939. /*!***************************************************************************************!*\
  25940. !*** D:/AAAcompany_product/新建文件夹/product_wx/wxcomponents/weapp/dist/picker/shared.js ***!
  25941. \***************************************************************************************/
  25942. /*! no static exports found */
  25943. /***/ (function(module, exports, __webpack_require__) {
  25944. "use strict";
  25945. Object.defineProperty(exports, "__esModule", {
  25946. value: true
  25947. });
  25948. exports.pickerProps = void 0;
  25949. var pickerProps = {
  25950. title: String,
  25951. loading: Boolean,
  25952. showToolbar: Boolean,
  25953. cancelButtonText: {
  25954. type: String,
  25955. value: '取消'
  25956. },
  25957. confirmButtonText: {
  25958. type: String,
  25959. value: '确认'
  25960. },
  25961. visibleItemCount: {
  25962. type: Number,
  25963. value: 6
  25964. },
  25965. itemHeight: {
  25966. type: Number,
  25967. value: 44
  25968. }
  25969. };
  25970. exports.pickerProps = pickerProps;
  25971. /***/ }),
  25972. /***/ 596:
  25973. /*!*************************************************************************************!*\
  25974. !*** D:/AAAcompany_product/新建文件夹/product_wx/wxcomponents/weapp/dist/popup/index.js ***!
  25975. \*************************************************************************************/
  25976. /*! no static exports found */
  25977. /***/ (function(module, exports, __webpack_require__) {
  25978. "use strict";
  25979. var _component = __webpack_require__(/*! ../common/component */ 397);
  25980. var _transition = __webpack_require__(/*! ../mixins/transition */ 597);
  25981. (0, _component.VantComponent)({
  25982. classes: ['enter-class', 'enter-active-class', 'enter-to-class', 'leave-class', 'leave-active-class', 'leave-to-class', 'close-icon-class'],
  25983. mixins: [(0, _transition.transition)(false)],
  25984. props: {
  25985. round: Boolean,
  25986. closeable: Boolean,
  25987. customStyle: String,
  25988. overlayStyle: String,
  25989. transition: {
  25990. type: String,
  25991. observer: 'observeClass'
  25992. },
  25993. zIndex: {
  25994. type: Number,
  25995. value: 100
  25996. },
  25997. overlay: {
  25998. type: Boolean,
  25999. value: true
  26000. },
  26001. closeIcon: {
  26002. type: String,
  26003. value: 'cross'
  26004. },
  26005. closeIconPosition: {
  26006. type: String,
  26007. value: 'top-right'
  26008. },
  26009. closeOnClickOverlay: {
  26010. type: Boolean,
  26011. value: true
  26012. },
  26013. position: {
  26014. type: String,
  26015. value: 'center',
  26016. observer: 'observeClass'
  26017. },
  26018. safeAreaInsetBottom: {
  26019. type: Boolean,
  26020. value: true
  26021. },
  26022. safeAreaInsetTop: {
  26023. type: Boolean,
  26024. value: false
  26025. },
  26026. safeAreaTabBar: {
  26027. type: Boolean,
  26028. value: false
  26029. },
  26030. lockScroll: {
  26031. type: Boolean,
  26032. value: true
  26033. },
  26034. rootPortal: {
  26035. type: Boolean,
  26036. value: false
  26037. }
  26038. },
  26039. created: function created() {
  26040. this.observeClass();
  26041. },
  26042. methods: {
  26043. onClickCloseIcon: function onClickCloseIcon() {
  26044. this.$emit('close');
  26045. },
  26046. onClickOverlay: function onClickOverlay() {
  26047. this.$emit('click-overlay');
  26048. if (this.data.closeOnClickOverlay) {
  26049. this.$emit('close');
  26050. }
  26051. },
  26052. observeClass: function observeClass() {
  26053. var _this$data = this.data,
  26054. transition = _this$data.transition,
  26055. position = _this$data.position,
  26056. duration = _this$data.duration;
  26057. var updateData = {
  26058. name: transition || position
  26059. };
  26060. if (transition === 'none') {
  26061. updateData.duration = 0;
  26062. this.originDuration = duration;
  26063. } else if (this.originDuration != null) {
  26064. updateData.duration = this.originDuration;
  26065. }
  26066. this.setData(updateData);
  26067. }
  26068. }
  26069. });
  26070. /***/ }),
  26071. /***/ 597:
  26072. /*!*******************************************************************************************!*\
  26073. !*** D:/AAAcompany_product/新建文件夹/product_wx/wxcomponents/weapp/dist/mixins/transition.js ***!
  26074. \*******************************************************************************************/
  26075. /*! no static exports found */
  26076. /***/ (function(module, exports, __webpack_require__) {
  26077. "use strict";
  26078. Object.defineProperty(exports, "__esModule", {
  26079. value: true
  26080. });
  26081. exports.transition = transition;
  26082. var _utils = __webpack_require__(/*! ../common/utils */ 402);
  26083. var _validator = __webpack_require__(/*! ../common/validator */ 403);
  26084. // @ts-nocheck
  26085. var getClassNames = function getClassNames(name) {
  26086. return {
  26087. enter: "van-".concat(name, "-enter van-").concat(name, "-enter-active enter-class enter-active-class"),
  26088. 'enter-to': "van-".concat(name, "-enter-to van-").concat(name, "-enter-active enter-to-class enter-active-class"),
  26089. leave: "van-".concat(name, "-leave van-").concat(name, "-leave-active leave-class leave-active-class"),
  26090. 'leave-to': "van-".concat(name, "-leave-to van-").concat(name, "-leave-active leave-to-class leave-active-class")
  26091. };
  26092. };
  26093. function transition(showDefaultValue) {
  26094. return Behavior({
  26095. properties: {
  26096. customStyle: String,
  26097. // @ts-ignore
  26098. show: {
  26099. type: Boolean,
  26100. value: showDefaultValue,
  26101. observer: 'observeShow'
  26102. },
  26103. // @ts-ignore
  26104. duration: {
  26105. type: null,
  26106. value: 300,
  26107. observer: 'observeDuration'
  26108. },
  26109. name: {
  26110. type: String,
  26111. value: 'fade'
  26112. }
  26113. },
  26114. data: {
  26115. type: '',
  26116. inited: false,
  26117. display: false
  26118. },
  26119. ready: function ready() {
  26120. if (this.data.show === true) {
  26121. this.observeShow(true, false);
  26122. }
  26123. },
  26124. methods: {
  26125. observeShow: function observeShow(value, old) {
  26126. if (value === old) {
  26127. return;
  26128. }
  26129. value ? this.enter() : this.leave();
  26130. },
  26131. enter: function enter() {
  26132. var _this = this;
  26133. var _this$data = this.data,
  26134. duration = _this$data.duration,
  26135. name = _this$data.name;
  26136. var classNames = getClassNames(name);
  26137. var currentDuration = (0, _validator.isObj)(duration) ? duration.enter : duration;
  26138. if (this.status === 'enter') {
  26139. return;
  26140. }
  26141. this.status = 'enter';
  26142. this.$emit('before-enter');
  26143. (0, _utils.requestAnimationFrame)(function () {
  26144. if (_this.status !== 'enter') {
  26145. return;
  26146. }
  26147. _this.$emit('enter');
  26148. _this.setData({
  26149. inited: true,
  26150. display: true,
  26151. classes: classNames.enter,
  26152. currentDuration: currentDuration
  26153. });
  26154. (0, _utils.requestAnimationFrame)(function () {
  26155. if (_this.status !== 'enter') {
  26156. return;
  26157. }
  26158. _this.transitionEnded = false;
  26159. _this.setData({
  26160. classes: classNames['enter-to']
  26161. });
  26162. });
  26163. });
  26164. },
  26165. leave: function leave() {
  26166. var _this2 = this;
  26167. if (!this.data.display) {
  26168. return;
  26169. }
  26170. var _this$data2 = this.data,
  26171. duration = _this$data2.duration,
  26172. name = _this$data2.name;
  26173. var classNames = getClassNames(name);
  26174. var currentDuration = (0, _validator.isObj)(duration) ? duration.leave : duration;
  26175. this.status = 'leave';
  26176. this.$emit('before-leave');
  26177. (0, _utils.requestAnimationFrame)(function () {
  26178. if (_this2.status !== 'leave') {
  26179. return;
  26180. }
  26181. _this2.$emit('leave');
  26182. _this2.setData({
  26183. classes: classNames.leave,
  26184. currentDuration: currentDuration
  26185. });
  26186. (0, _utils.requestAnimationFrame)(function () {
  26187. if (_this2.status !== 'leave') {
  26188. return;
  26189. }
  26190. _this2.transitionEnded = false;
  26191. setTimeout(function () {
  26192. return _this2.onTransitionEnd();
  26193. }, currentDuration);
  26194. _this2.setData({
  26195. classes: classNames['leave-to']
  26196. });
  26197. });
  26198. });
  26199. },
  26200. onTransitionEnd: function onTransitionEnd() {
  26201. if (this.transitionEnded) {
  26202. return;
  26203. }
  26204. this.transitionEnded = true;
  26205. this.$emit("after-".concat(this.status));
  26206. var _this$data3 = this.data,
  26207. show = _this$data3.show,
  26208. display = _this$data3.display;
  26209. if (!show && display) {
  26210. this.setData({
  26211. display: false
  26212. });
  26213. }
  26214. }
  26215. }
  26216. });
  26217. }
  26218. /***/ }),
  26219. /***/ 598:
  26220. /*!*************************************************************************************!*\
  26221. !*** D:/AAAcompany_product/新建文件夹/product_wx/wxcomponents/weapp/dist/field/index.js ***!
  26222. \*************************************************************************************/
  26223. /*! no static exports found */
  26224. /***/ (function(module, exports, __webpack_require__) {
  26225. "use strict";
  26226. var _utils = __webpack_require__(/*! ../common/utils */ 402);
  26227. var _component = __webpack_require__(/*! ../common/component */ 397);
  26228. var _props = __webpack_require__(/*! ./props */ 599);
  26229. (0, _component.VantComponent)({
  26230. field: true,
  26231. classes: ['input-class', 'right-icon-class', 'label-class'],
  26232. props: Object.assign(Object.assign(Object.assign(Object.assign({}, _props.commonProps), _props.inputProps), _props.textareaProps), {
  26233. size: String,
  26234. icon: String,
  26235. label: String,
  26236. error: Boolean,
  26237. center: Boolean,
  26238. isLink: Boolean,
  26239. leftIcon: String,
  26240. rightIcon: String,
  26241. autosize: null,
  26242. required: Boolean,
  26243. iconClass: String,
  26244. clickable: Boolean,
  26245. inputAlign: String,
  26246. customStyle: String,
  26247. errorMessage: String,
  26248. arrowDirection: String,
  26249. showWordLimit: Boolean,
  26250. errorMessageAlign: String,
  26251. readonly: {
  26252. type: Boolean,
  26253. observer: 'setShowClear'
  26254. },
  26255. clearable: {
  26256. type: Boolean,
  26257. observer: 'setShowClear'
  26258. },
  26259. clearTrigger: {
  26260. type: String,
  26261. value: 'focus'
  26262. },
  26263. border: {
  26264. type: Boolean,
  26265. value: true
  26266. },
  26267. titleWidth: {
  26268. type: String,
  26269. value: '6.2em'
  26270. },
  26271. clearIcon: {
  26272. type: String,
  26273. value: 'clear'
  26274. },
  26275. extraEventParams: {
  26276. type: Boolean,
  26277. value: false
  26278. }
  26279. }),
  26280. data: {
  26281. focused: false,
  26282. innerValue: '',
  26283. showClear: false
  26284. },
  26285. created: function created() {
  26286. this.value = this.data.value;
  26287. this.setData({
  26288. innerValue: this.value
  26289. });
  26290. },
  26291. methods: {
  26292. formatValue: function formatValue(value) {
  26293. var maxlength = this.data.maxlength;
  26294. if (maxlength !== -1 && value.length > maxlength) {
  26295. return value.slice(0, maxlength);
  26296. }
  26297. return value;
  26298. },
  26299. onInput: function onInput(event) {
  26300. var _ref = event.detail || {},
  26301. _ref$value = _ref.value,
  26302. value = _ref$value === void 0 ? '' : _ref$value;
  26303. var formatValue = this.formatValue(value);
  26304. this.value = formatValue;
  26305. this.setShowClear();
  26306. return this.emitChange(Object.assign(Object.assign({}, event.detail), {
  26307. value: formatValue
  26308. }));
  26309. },
  26310. onFocus: function onFocus(event) {
  26311. this.focused = true;
  26312. this.setShowClear();
  26313. this.$emit('focus', event.detail);
  26314. },
  26315. onBlur: function onBlur(event) {
  26316. this.focused = false;
  26317. this.setShowClear();
  26318. this.$emit('blur', event.detail);
  26319. },
  26320. onClickIcon: function onClickIcon() {
  26321. this.$emit('click-icon');
  26322. },
  26323. onClickInput: function onClickInput(event) {
  26324. this.$emit('click-input', event.detail);
  26325. },
  26326. onClear: function onClear() {
  26327. var _this = this;
  26328. this.setData({
  26329. innerValue: ''
  26330. });
  26331. this.value = '';
  26332. this.setShowClear();
  26333. (0, _utils.nextTick)(function () {
  26334. _this.emitChange({
  26335. value: ''
  26336. });
  26337. _this.$emit('clear', '');
  26338. });
  26339. },
  26340. onConfirm: function onConfirm(event) {
  26341. var _ref2 = event.detail || {},
  26342. _ref2$value = _ref2.value,
  26343. value = _ref2$value === void 0 ? '' : _ref2$value;
  26344. this.value = value;
  26345. this.setShowClear();
  26346. this.$emit('confirm', value);
  26347. },
  26348. setValue: function setValue(value) {
  26349. this.value = value;
  26350. this.setShowClear();
  26351. if (value === '') {
  26352. this.setData({
  26353. innerValue: ''
  26354. });
  26355. }
  26356. this.emitChange({
  26357. value: value
  26358. });
  26359. },
  26360. onLineChange: function onLineChange(event) {
  26361. this.$emit('linechange', event.detail);
  26362. },
  26363. onKeyboardHeightChange: function onKeyboardHeightChange(event) {
  26364. this.$emit('keyboardheightchange', event.detail);
  26365. },
  26366. emitChange: function emitChange(detail) {
  26367. var extraEventParams = this.data.extraEventParams;
  26368. this.setData({
  26369. value: detail.value
  26370. });
  26371. var result;
  26372. var data = extraEventParams ? Object.assign(Object.assign({}, detail), {
  26373. callback: function callback(data) {
  26374. result = data;
  26375. }
  26376. }) : detail.value;
  26377. this.$emit('input', data);
  26378. this.$emit('change', data);
  26379. return result;
  26380. },
  26381. setShowClear: function setShowClear() {
  26382. var _this$data = this.data,
  26383. clearable = _this$data.clearable,
  26384. readonly = _this$data.readonly,
  26385. clearTrigger = _this$data.clearTrigger;
  26386. var focused = this.focused,
  26387. value = this.value;
  26388. var showClear = false;
  26389. if (clearable && !readonly) {
  26390. var hasValue = !!value;
  26391. var trigger = clearTrigger === 'always' || clearTrigger === 'focus' && focused;
  26392. showClear = hasValue && trigger;
  26393. }
  26394. this.setData({
  26395. showClear: showClear
  26396. });
  26397. },
  26398. noop: function noop() {}
  26399. }
  26400. });
  26401. /***/ }),
  26402. /***/ 599:
  26403. /*!*************************************************************************************!*\
  26404. !*** D:/AAAcompany_product/新建文件夹/product_wx/wxcomponents/weapp/dist/field/props.js ***!
  26405. \*************************************************************************************/
  26406. /*! no static exports found */
  26407. /***/ (function(module, exports, __webpack_require__) {
  26408. "use strict";
  26409. Object.defineProperty(exports, "__esModule", {
  26410. value: true
  26411. });
  26412. exports.textareaProps = exports.inputProps = exports.commonProps = void 0;
  26413. var commonProps = {
  26414. value: {
  26415. type: String,
  26416. observer: function observer(value) {
  26417. if (value !== this.value) {
  26418. this.setData({
  26419. innerValue: value
  26420. });
  26421. this.value = value;
  26422. }
  26423. }
  26424. },
  26425. placeholder: String,
  26426. placeholderStyle: String,
  26427. placeholderClass: String,
  26428. disabled: Boolean,
  26429. maxlength: {
  26430. type: Number,
  26431. value: -1
  26432. },
  26433. cursorSpacing: {
  26434. type: Number,
  26435. value: 50
  26436. },
  26437. autoFocus: Boolean,
  26438. focus: Boolean,
  26439. cursor: {
  26440. type: Number,
  26441. value: -1
  26442. },
  26443. selectionStart: {
  26444. type: Number,
  26445. value: -1
  26446. },
  26447. selectionEnd: {
  26448. type: Number,
  26449. value: -1
  26450. },
  26451. adjustPosition: {
  26452. type: Boolean,
  26453. value: true
  26454. },
  26455. holdKeyboard: Boolean
  26456. };
  26457. exports.commonProps = commonProps;
  26458. var inputProps = {
  26459. type: {
  26460. type: String,
  26461. value: 'text'
  26462. },
  26463. password: Boolean,
  26464. confirmType: String,
  26465. confirmHold: Boolean,
  26466. alwaysEmbed: Boolean
  26467. };
  26468. exports.inputProps = inputProps;
  26469. var textareaProps = {
  26470. autoHeight: Boolean,
  26471. fixed: Boolean,
  26472. showConfirmBar: {
  26473. type: Boolean,
  26474. value: true
  26475. },
  26476. disableDefaultPadding: {
  26477. type: Boolean,
  26478. value: true
  26479. }
  26480. };
  26481. exports.textareaProps = textareaProps;
  26482. /***/ }),
  26483. /***/ 6:
  26484. /*!***************************************************************!*\
  26485. !*** ./node_modules/@babel/runtime/helpers/arrayWithHoles.js ***!
  26486. \***************************************************************/
  26487. /*! no static exports found */
  26488. /***/ (function(module, exports) {
  26489. function _arrayWithHoles(arr) {
  26490. if (Array.isArray(arr)) return arr;
  26491. }
  26492. module.exports = _arrayWithHoles, module.exports.__esModule = true, module.exports["default"] = module.exports;
  26493. /***/ }),
  26494. /***/ 605:
  26495. /*!**************************************************************************************************!*\
  26496. !*** D:/AAAcompany_product/新建文件夹/product_wx/uni_modules/uni-icons/components/uni-icons/icons.js ***!
  26497. \**************************************************************************************************/
  26498. /*! no static exports found */
  26499. /***/ (function(module, exports, __webpack_require__) {
  26500. "use strict";
  26501. Object.defineProperty(exports, "__esModule", {
  26502. value: true
  26503. });
  26504. exports.default = void 0;
  26505. var _default = {
  26506. "id": "2852637",
  26507. "name": "uniui图标库",
  26508. "font_family": "uniicons",
  26509. "css_prefix_text": "uniui-",
  26510. "description": "",
  26511. "glyphs": [{
  26512. "icon_id": "25027049",
  26513. "name": "yanse",
  26514. "font_class": "color",
  26515. "unicode": "e6cf",
  26516. "unicode_decimal": 59087
  26517. }, {
  26518. "icon_id": "25027048",
  26519. "name": "wallet",
  26520. "font_class": "wallet",
  26521. "unicode": "e6b1",
  26522. "unicode_decimal": 59057
  26523. }, {
  26524. "icon_id": "25015720",
  26525. "name": "settings-filled",
  26526. "font_class": "settings-filled",
  26527. "unicode": "e6ce",
  26528. "unicode_decimal": 59086
  26529. }, {
  26530. "icon_id": "25015434",
  26531. "name": "shimingrenzheng-filled",
  26532. "font_class": "auth-filled",
  26533. "unicode": "e6cc",
  26534. "unicode_decimal": 59084
  26535. }, {
  26536. "icon_id": "24934246",
  26537. "name": "shop-filled",
  26538. "font_class": "shop-filled",
  26539. "unicode": "e6cd",
  26540. "unicode_decimal": 59085
  26541. }, {
  26542. "icon_id": "24934159",
  26543. "name": "staff-filled-01",
  26544. "font_class": "staff-filled",
  26545. "unicode": "e6cb",
  26546. "unicode_decimal": 59083
  26547. }, {
  26548. "icon_id": "24932461",
  26549. "name": "VIP-filled",
  26550. "font_class": "vip-filled",
  26551. "unicode": "e6c6",
  26552. "unicode_decimal": 59078
  26553. }, {
  26554. "icon_id": "24932462",
  26555. "name": "plus_circle_fill",
  26556. "font_class": "plus-filled",
  26557. "unicode": "e6c7",
  26558. "unicode_decimal": 59079
  26559. }, {
  26560. "icon_id": "24932463",
  26561. "name": "folder_add-filled",
  26562. "font_class": "folder-add-filled",
  26563. "unicode": "e6c8",
  26564. "unicode_decimal": 59080
  26565. }, {
  26566. "icon_id": "24932464",
  26567. "name": "yanse-filled",
  26568. "font_class": "color-filled",
  26569. "unicode": "e6c9",
  26570. "unicode_decimal": 59081
  26571. }, {
  26572. "icon_id": "24932465",
  26573. "name": "tune-filled",
  26574. "font_class": "tune-filled",
  26575. "unicode": "e6ca",
  26576. "unicode_decimal": 59082
  26577. }, {
  26578. "icon_id": "24932455",
  26579. "name": "a-rilidaka-filled",
  26580. "font_class": "calendar-filled",
  26581. "unicode": "e6c0",
  26582. "unicode_decimal": 59072
  26583. }, {
  26584. "icon_id": "24932456",
  26585. "name": "notification-filled",
  26586. "font_class": "notification-filled",
  26587. "unicode": "e6c1",
  26588. "unicode_decimal": 59073
  26589. }, {
  26590. "icon_id": "24932457",
  26591. "name": "wallet-filled",
  26592. "font_class": "wallet-filled",
  26593. "unicode": "e6c2",
  26594. "unicode_decimal": 59074
  26595. }, {
  26596. "icon_id": "24932458",
  26597. "name": "paihangbang-filled",
  26598. "font_class": "medal-filled",
  26599. "unicode": "e6c3",
  26600. "unicode_decimal": 59075
  26601. }, {
  26602. "icon_id": "24932459",
  26603. "name": "gift-filled",
  26604. "font_class": "gift-filled",
  26605. "unicode": "e6c4",
  26606. "unicode_decimal": 59076
  26607. }, {
  26608. "icon_id": "24932460",
  26609. "name": "fire-filled",
  26610. "font_class": "fire-filled",
  26611. "unicode": "e6c5",
  26612. "unicode_decimal": 59077
  26613. }, {
  26614. "icon_id": "24928001",
  26615. "name": "refreshempty",
  26616. "font_class": "refreshempty",
  26617. "unicode": "e6bf",
  26618. "unicode_decimal": 59071
  26619. }, {
  26620. "icon_id": "24926853",
  26621. "name": "location-ellipse",
  26622. "font_class": "location-filled",
  26623. "unicode": "e6af",
  26624. "unicode_decimal": 59055
  26625. }, {
  26626. "icon_id": "24926735",
  26627. "name": "person-filled",
  26628. "font_class": "person-filled",
  26629. "unicode": "e69d",
  26630. "unicode_decimal": 59037
  26631. }, {
  26632. "icon_id": "24926703",
  26633. "name": "personadd-filled",
  26634. "font_class": "personadd-filled",
  26635. "unicode": "e698",
  26636. "unicode_decimal": 59032
  26637. }, {
  26638. "icon_id": "24923351",
  26639. "name": "back",
  26640. "font_class": "back",
  26641. "unicode": "e6b9",
  26642. "unicode_decimal": 59065
  26643. }, {
  26644. "icon_id": "24923352",
  26645. "name": "forward",
  26646. "font_class": "forward",
  26647. "unicode": "e6ba",
  26648. "unicode_decimal": 59066
  26649. }, {
  26650. "icon_id": "24923353",
  26651. "name": "arrowthinright",
  26652. "font_class": "arrow-right",
  26653. "unicode": "e6bb",
  26654. "unicode_decimal": 59067
  26655. }, {
  26656. "icon_id": "24923353",
  26657. "name": "arrowthinright",
  26658. "font_class": "arrowthinright",
  26659. "unicode": "e6bb",
  26660. "unicode_decimal": 59067
  26661. }, {
  26662. "icon_id": "24923354",
  26663. "name": "arrowthinleft",
  26664. "font_class": "arrow-left",
  26665. "unicode": "e6bc",
  26666. "unicode_decimal": 59068
  26667. }, {
  26668. "icon_id": "24923354",
  26669. "name": "arrowthinleft",
  26670. "font_class": "arrowthinleft",
  26671. "unicode": "e6bc",
  26672. "unicode_decimal": 59068
  26673. }, {
  26674. "icon_id": "24923355",
  26675. "name": "arrowthinup",
  26676. "font_class": "arrow-up",
  26677. "unicode": "e6bd",
  26678. "unicode_decimal": 59069
  26679. }, {
  26680. "icon_id": "24923355",
  26681. "name": "arrowthinup",
  26682. "font_class": "arrowthinup",
  26683. "unicode": "e6bd",
  26684. "unicode_decimal": 59069
  26685. }, {
  26686. "icon_id": "24923356",
  26687. "name": "arrowthindown",
  26688. "font_class": "arrow-down",
  26689. "unicode": "e6be",
  26690. "unicode_decimal": 59070
  26691. }, {
  26692. "icon_id": "24923356",
  26693. "name": "arrowthindown",
  26694. "font_class": "arrowthindown",
  26695. "unicode": "e6be",
  26696. "unicode_decimal": 59070
  26697. }, {
  26698. "icon_id": "24923349",
  26699. "name": "arrowdown",
  26700. "font_class": "bottom",
  26701. "unicode": "e6b8",
  26702. "unicode_decimal": 59064
  26703. }, {
  26704. "icon_id": "24923349",
  26705. "name": "arrowdown",
  26706. "font_class": "arrowdown",
  26707. "unicode": "e6b8",
  26708. "unicode_decimal": 59064
  26709. }, {
  26710. "icon_id": "24923346",
  26711. "name": "arrowright",
  26712. "font_class": "right",
  26713. "unicode": "e6b5",
  26714. "unicode_decimal": 59061
  26715. }, {
  26716. "icon_id": "24923346",
  26717. "name": "arrowright",
  26718. "font_class": "arrowright",
  26719. "unicode": "e6b5",
  26720. "unicode_decimal": 59061
  26721. }, {
  26722. "icon_id": "24923347",
  26723. "name": "arrowup",
  26724. "font_class": "top",
  26725. "unicode": "e6b6",
  26726. "unicode_decimal": 59062
  26727. }, {
  26728. "icon_id": "24923347",
  26729. "name": "arrowup",
  26730. "font_class": "arrowup",
  26731. "unicode": "e6b6",
  26732. "unicode_decimal": 59062
  26733. }, {
  26734. "icon_id": "24923348",
  26735. "name": "arrowleft",
  26736. "font_class": "left",
  26737. "unicode": "e6b7",
  26738. "unicode_decimal": 59063
  26739. }, {
  26740. "icon_id": "24923348",
  26741. "name": "arrowleft",
  26742. "font_class": "arrowleft",
  26743. "unicode": "e6b7",
  26744. "unicode_decimal": 59063
  26745. }, {
  26746. "icon_id": "24923334",
  26747. "name": "eye",
  26748. "font_class": "eye",
  26749. "unicode": "e651",
  26750. "unicode_decimal": 58961
  26751. }, {
  26752. "icon_id": "24923335",
  26753. "name": "eye-filled",
  26754. "font_class": "eye-filled",
  26755. "unicode": "e66a",
  26756. "unicode_decimal": 58986
  26757. }, {
  26758. "icon_id": "24923336",
  26759. "name": "eye-slash",
  26760. "font_class": "eye-slash",
  26761. "unicode": "e6b3",
  26762. "unicode_decimal": 59059
  26763. }, {
  26764. "icon_id": "24923337",
  26765. "name": "eye-slash-filled",
  26766. "font_class": "eye-slash-filled",
  26767. "unicode": "e6b4",
  26768. "unicode_decimal": 59060
  26769. }, {
  26770. "icon_id": "24923305",
  26771. "name": "info-filled",
  26772. "font_class": "info-filled",
  26773. "unicode": "e649",
  26774. "unicode_decimal": 58953
  26775. }, {
  26776. "icon_id": "24923299",
  26777. "name": "reload-01",
  26778. "font_class": "reload",
  26779. "unicode": "e6b2",
  26780. "unicode_decimal": 59058
  26781. }, {
  26782. "icon_id": "24923195",
  26783. "name": "mic_slash_fill",
  26784. "font_class": "micoff-filled",
  26785. "unicode": "e6b0",
  26786. "unicode_decimal": 59056
  26787. }, {
  26788. "icon_id": "24923165",
  26789. "name": "map-pin-ellipse",
  26790. "font_class": "map-pin-ellipse",
  26791. "unicode": "e6ac",
  26792. "unicode_decimal": 59052
  26793. }, {
  26794. "icon_id": "24923166",
  26795. "name": "map-pin",
  26796. "font_class": "map-pin",
  26797. "unicode": "e6ad",
  26798. "unicode_decimal": 59053
  26799. }, {
  26800. "icon_id": "24923167",
  26801. "name": "location",
  26802. "font_class": "location",
  26803. "unicode": "e6ae",
  26804. "unicode_decimal": 59054
  26805. }, {
  26806. "icon_id": "24923064",
  26807. "name": "starhalf",
  26808. "font_class": "starhalf",
  26809. "unicode": "e683",
  26810. "unicode_decimal": 59011
  26811. }, {
  26812. "icon_id": "24923065",
  26813. "name": "star",
  26814. "font_class": "star",
  26815. "unicode": "e688",
  26816. "unicode_decimal": 59016
  26817. }, {
  26818. "icon_id": "24923066",
  26819. "name": "star-filled",
  26820. "font_class": "star-filled",
  26821. "unicode": "e68f",
  26822. "unicode_decimal": 59023
  26823. }, {
  26824. "icon_id": "24899646",
  26825. "name": "a-rilidaka",
  26826. "font_class": "calendar",
  26827. "unicode": "e6a0",
  26828. "unicode_decimal": 59040
  26829. }, {
  26830. "icon_id": "24899647",
  26831. "name": "fire",
  26832. "font_class": "fire",
  26833. "unicode": "e6a1",
  26834. "unicode_decimal": 59041
  26835. }, {
  26836. "icon_id": "24899648",
  26837. "name": "paihangbang",
  26838. "font_class": "medal",
  26839. "unicode": "e6a2",
  26840. "unicode_decimal": 59042
  26841. }, {
  26842. "icon_id": "24899649",
  26843. "name": "font",
  26844. "font_class": "font",
  26845. "unicode": "e6a3",
  26846. "unicode_decimal": 59043
  26847. }, {
  26848. "icon_id": "24899650",
  26849. "name": "gift",
  26850. "font_class": "gift",
  26851. "unicode": "e6a4",
  26852. "unicode_decimal": 59044
  26853. }, {
  26854. "icon_id": "24899651",
  26855. "name": "link",
  26856. "font_class": "link",
  26857. "unicode": "e6a5",
  26858. "unicode_decimal": 59045
  26859. }, {
  26860. "icon_id": "24899652",
  26861. "name": "notification",
  26862. "font_class": "notification",
  26863. "unicode": "e6a6",
  26864. "unicode_decimal": 59046
  26865. }, {
  26866. "icon_id": "24899653",
  26867. "name": "staff",
  26868. "font_class": "staff",
  26869. "unicode": "e6a7",
  26870. "unicode_decimal": 59047
  26871. }, {
  26872. "icon_id": "24899654",
  26873. "name": "VIP",
  26874. "font_class": "vip",
  26875. "unicode": "e6a8",
  26876. "unicode_decimal": 59048
  26877. }, {
  26878. "icon_id": "24899655",
  26879. "name": "folder_add",
  26880. "font_class": "folder-add",
  26881. "unicode": "e6a9",
  26882. "unicode_decimal": 59049
  26883. }, {
  26884. "icon_id": "24899656",
  26885. "name": "tune",
  26886. "font_class": "tune",
  26887. "unicode": "e6aa",
  26888. "unicode_decimal": 59050
  26889. }, {
  26890. "icon_id": "24899657",
  26891. "name": "shimingrenzheng",
  26892. "font_class": "auth",
  26893. "unicode": "e6ab",
  26894. "unicode_decimal": 59051
  26895. }, {
  26896. "icon_id": "24899565",
  26897. "name": "person",
  26898. "font_class": "person",
  26899. "unicode": "e699",
  26900. "unicode_decimal": 59033
  26901. }, {
  26902. "icon_id": "24899566",
  26903. "name": "email-filled",
  26904. "font_class": "email-filled",
  26905. "unicode": "e69a",
  26906. "unicode_decimal": 59034
  26907. }, {
  26908. "icon_id": "24899567",
  26909. "name": "phone-filled",
  26910. "font_class": "phone-filled",
  26911. "unicode": "e69b",
  26912. "unicode_decimal": 59035
  26913. }, {
  26914. "icon_id": "24899568",
  26915. "name": "phone",
  26916. "font_class": "phone",
  26917. "unicode": "e69c",
  26918. "unicode_decimal": 59036
  26919. }, {
  26920. "icon_id": "24899570",
  26921. "name": "email",
  26922. "font_class": "email",
  26923. "unicode": "e69e",
  26924. "unicode_decimal": 59038
  26925. }, {
  26926. "icon_id": "24899571",
  26927. "name": "personadd",
  26928. "font_class": "personadd",
  26929. "unicode": "e69f",
  26930. "unicode_decimal": 59039
  26931. }, {
  26932. "icon_id": "24899558",
  26933. "name": "chatboxes-filled",
  26934. "font_class": "chatboxes-filled",
  26935. "unicode": "e692",
  26936. "unicode_decimal": 59026
  26937. }, {
  26938. "icon_id": "24899559",
  26939. "name": "contact",
  26940. "font_class": "contact",
  26941. "unicode": "e693",
  26942. "unicode_decimal": 59027
  26943. }, {
  26944. "icon_id": "24899560",
  26945. "name": "chatbubble-filled",
  26946. "font_class": "chatbubble-filled",
  26947. "unicode": "e694",
  26948. "unicode_decimal": 59028
  26949. }, {
  26950. "icon_id": "24899561",
  26951. "name": "contact-filled",
  26952. "font_class": "contact-filled",
  26953. "unicode": "e695",
  26954. "unicode_decimal": 59029
  26955. }, {
  26956. "icon_id": "24899562",
  26957. "name": "chatboxes",
  26958. "font_class": "chatboxes",
  26959. "unicode": "e696",
  26960. "unicode_decimal": 59030
  26961. }, {
  26962. "icon_id": "24899563",
  26963. "name": "chatbubble",
  26964. "font_class": "chatbubble",
  26965. "unicode": "e697",
  26966. "unicode_decimal": 59031
  26967. }, {
  26968. "icon_id": "24881290",
  26969. "name": "upload-filled",
  26970. "font_class": "upload-filled",
  26971. "unicode": "e68e",
  26972. "unicode_decimal": 59022
  26973. }, {
  26974. "icon_id": "24881292",
  26975. "name": "upload",
  26976. "font_class": "upload",
  26977. "unicode": "e690",
  26978. "unicode_decimal": 59024
  26979. }, {
  26980. "icon_id": "24881293",
  26981. "name": "weixin",
  26982. "font_class": "weixin",
  26983. "unicode": "e691",
  26984. "unicode_decimal": 59025
  26985. }, {
  26986. "icon_id": "24881274",
  26987. "name": "compose",
  26988. "font_class": "compose",
  26989. "unicode": "e67f",
  26990. "unicode_decimal": 59007
  26991. }, {
  26992. "icon_id": "24881275",
  26993. "name": "qq",
  26994. "font_class": "qq",
  26995. "unicode": "e680",
  26996. "unicode_decimal": 59008
  26997. }, {
  26998. "icon_id": "24881276",
  26999. "name": "download-filled",
  27000. "font_class": "download-filled",
  27001. "unicode": "e681",
  27002. "unicode_decimal": 59009
  27003. }, {
  27004. "icon_id": "24881277",
  27005. "name": "pengyouquan",
  27006. "font_class": "pyq",
  27007. "unicode": "e682",
  27008. "unicode_decimal": 59010
  27009. }, {
  27010. "icon_id": "24881279",
  27011. "name": "sound",
  27012. "font_class": "sound",
  27013. "unicode": "e684",
  27014. "unicode_decimal": 59012
  27015. }, {
  27016. "icon_id": "24881280",
  27017. "name": "trash-filled",
  27018. "font_class": "trash-filled",
  27019. "unicode": "e685",
  27020. "unicode_decimal": 59013
  27021. }, {
  27022. "icon_id": "24881281",
  27023. "name": "sound-filled",
  27024. "font_class": "sound-filled",
  27025. "unicode": "e686",
  27026. "unicode_decimal": 59014
  27027. }, {
  27028. "icon_id": "24881282",
  27029. "name": "trash",
  27030. "font_class": "trash",
  27031. "unicode": "e687",
  27032. "unicode_decimal": 59015
  27033. }, {
  27034. "icon_id": "24881284",
  27035. "name": "videocam-filled",
  27036. "font_class": "videocam-filled",
  27037. "unicode": "e689",
  27038. "unicode_decimal": 59017
  27039. }, {
  27040. "icon_id": "24881285",
  27041. "name": "spinner-cycle",
  27042. "font_class": "spinner-cycle",
  27043. "unicode": "e68a",
  27044. "unicode_decimal": 59018
  27045. }, {
  27046. "icon_id": "24881286",
  27047. "name": "weibo",
  27048. "font_class": "weibo",
  27049. "unicode": "e68b",
  27050. "unicode_decimal": 59019
  27051. }, {
  27052. "icon_id": "24881288",
  27053. "name": "videocam",
  27054. "font_class": "videocam",
  27055. "unicode": "e68c",
  27056. "unicode_decimal": 59020
  27057. }, {
  27058. "icon_id": "24881289",
  27059. "name": "download",
  27060. "font_class": "download",
  27061. "unicode": "e68d",
  27062. "unicode_decimal": 59021
  27063. }, {
  27064. "icon_id": "24879601",
  27065. "name": "help",
  27066. "font_class": "help",
  27067. "unicode": "e679",
  27068. "unicode_decimal": 59001
  27069. }, {
  27070. "icon_id": "24879602",
  27071. "name": "navigate-filled",
  27072. "font_class": "navigate-filled",
  27073. "unicode": "e67a",
  27074. "unicode_decimal": 59002
  27075. }, {
  27076. "icon_id": "24879603",
  27077. "name": "plusempty",
  27078. "font_class": "plusempty",
  27079. "unicode": "e67b",
  27080. "unicode_decimal": 59003
  27081. }, {
  27082. "icon_id": "24879604",
  27083. "name": "smallcircle",
  27084. "font_class": "smallcircle",
  27085. "unicode": "e67c",
  27086. "unicode_decimal": 59004
  27087. }, {
  27088. "icon_id": "24879605",
  27089. "name": "minus-filled",
  27090. "font_class": "minus-filled",
  27091. "unicode": "e67d",
  27092. "unicode_decimal": 59005
  27093. }, {
  27094. "icon_id": "24879606",
  27095. "name": "micoff",
  27096. "font_class": "micoff",
  27097. "unicode": "e67e",
  27098. "unicode_decimal": 59006
  27099. }, {
  27100. "icon_id": "24879588",
  27101. "name": "closeempty",
  27102. "font_class": "closeempty",
  27103. "unicode": "e66c",
  27104. "unicode_decimal": 58988
  27105. }, {
  27106. "icon_id": "24879589",
  27107. "name": "clear",
  27108. "font_class": "clear",
  27109. "unicode": "e66d",
  27110. "unicode_decimal": 58989
  27111. }, {
  27112. "icon_id": "24879590",
  27113. "name": "navigate",
  27114. "font_class": "navigate",
  27115. "unicode": "e66e",
  27116. "unicode_decimal": 58990
  27117. }, {
  27118. "icon_id": "24879591",
  27119. "name": "minus",
  27120. "font_class": "minus",
  27121. "unicode": "e66f",
  27122. "unicode_decimal": 58991
  27123. }, {
  27124. "icon_id": "24879592",
  27125. "name": "image",
  27126. "font_class": "image",
  27127. "unicode": "e670",
  27128. "unicode_decimal": 58992
  27129. }, {
  27130. "icon_id": "24879593",
  27131. "name": "mic",
  27132. "font_class": "mic",
  27133. "unicode": "e671",
  27134. "unicode_decimal": 58993
  27135. }, {
  27136. "icon_id": "24879594",
  27137. "name": "paperplane",
  27138. "font_class": "paperplane",
  27139. "unicode": "e672",
  27140. "unicode_decimal": 58994
  27141. }, {
  27142. "icon_id": "24879595",
  27143. "name": "close",
  27144. "font_class": "close",
  27145. "unicode": "e673",
  27146. "unicode_decimal": 58995
  27147. }, {
  27148. "icon_id": "24879596",
  27149. "name": "help-filled",
  27150. "font_class": "help-filled",
  27151. "unicode": "e674",
  27152. "unicode_decimal": 58996
  27153. }, {
  27154. "icon_id": "24879597",
  27155. "name": "plus-filled",
  27156. "font_class": "paperplane-filled",
  27157. "unicode": "e675",
  27158. "unicode_decimal": 58997
  27159. }, {
  27160. "icon_id": "24879598",
  27161. "name": "plus",
  27162. "font_class": "plus",
  27163. "unicode": "e676",
  27164. "unicode_decimal": 58998
  27165. }, {
  27166. "icon_id": "24879599",
  27167. "name": "mic-filled",
  27168. "font_class": "mic-filled",
  27169. "unicode": "e677",
  27170. "unicode_decimal": 58999
  27171. }, {
  27172. "icon_id": "24879600",
  27173. "name": "image-filled",
  27174. "font_class": "image-filled",
  27175. "unicode": "e678",
  27176. "unicode_decimal": 59000
  27177. }, {
  27178. "icon_id": "24855900",
  27179. "name": "locked-filled",
  27180. "font_class": "locked-filled",
  27181. "unicode": "e668",
  27182. "unicode_decimal": 58984
  27183. }, {
  27184. "icon_id": "24855901",
  27185. "name": "info",
  27186. "font_class": "info",
  27187. "unicode": "e669",
  27188. "unicode_decimal": 58985
  27189. }, {
  27190. "icon_id": "24855903",
  27191. "name": "locked",
  27192. "font_class": "locked",
  27193. "unicode": "e66b",
  27194. "unicode_decimal": 58987
  27195. }, {
  27196. "icon_id": "24855884",
  27197. "name": "camera-filled",
  27198. "font_class": "camera-filled",
  27199. "unicode": "e658",
  27200. "unicode_decimal": 58968
  27201. }, {
  27202. "icon_id": "24855885",
  27203. "name": "chat-filled",
  27204. "font_class": "chat-filled",
  27205. "unicode": "e659",
  27206. "unicode_decimal": 58969
  27207. }, {
  27208. "icon_id": "24855886",
  27209. "name": "camera",
  27210. "font_class": "camera",
  27211. "unicode": "e65a",
  27212. "unicode_decimal": 58970
  27213. }, {
  27214. "icon_id": "24855887",
  27215. "name": "circle",
  27216. "font_class": "circle",
  27217. "unicode": "e65b",
  27218. "unicode_decimal": 58971
  27219. }, {
  27220. "icon_id": "24855888",
  27221. "name": "checkmarkempty",
  27222. "font_class": "checkmarkempty",
  27223. "unicode": "e65c",
  27224. "unicode_decimal": 58972
  27225. }, {
  27226. "icon_id": "24855889",
  27227. "name": "chat",
  27228. "font_class": "chat",
  27229. "unicode": "e65d",
  27230. "unicode_decimal": 58973
  27231. }, {
  27232. "icon_id": "24855890",
  27233. "name": "circle-filled",
  27234. "font_class": "circle-filled",
  27235. "unicode": "e65e",
  27236. "unicode_decimal": 58974
  27237. }, {
  27238. "icon_id": "24855891",
  27239. "name": "flag",
  27240. "font_class": "flag",
  27241. "unicode": "e65f",
  27242. "unicode_decimal": 58975
  27243. }, {
  27244. "icon_id": "24855892",
  27245. "name": "flag-filled",
  27246. "font_class": "flag-filled",
  27247. "unicode": "e660",
  27248. "unicode_decimal": 58976
  27249. }, {
  27250. "icon_id": "24855893",
  27251. "name": "gear-filled",
  27252. "font_class": "gear-filled",
  27253. "unicode": "e661",
  27254. "unicode_decimal": 58977
  27255. }, {
  27256. "icon_id": "24855894",
  27257. "name": "home",
  27258. "font_class": "home",
  27259. "unicode": "e662",
  27260. "unicode_decimal": 58978
  27261. }, {
  27262. "icon_id": "24855895",
  27263. "name": "home-filled",
  27264. "font_class": "home-filled",
  27265. "unicode": "e663",
  27266. "unicode_decimal": 58979
  27267. }, {
  27268. "icon_id": "24855896",
  27269. "name": "gear",
  27270. "font_class": "gear",
  27271. "unicode": "e664",
  27272. "unicode_decimal": 58980
  27273. }, {
  27274. "icon_id": "24855897",
  27275. "name": "smallcircle-filled",
  27276. "font_class": "smallcircle-filled",
  27277. "unicode": "e665",
  27278. "unicode_decimal": 58981
  27279. }, {
  27280. "icon_id": "24855898",
  27281. "name": "map-filled",
  27282. "font_class": "map-filled",
  27283. "unicode": "e666",
  27284. "unicode_decimal": 58982
  27285. }, {
  27286. "icon_id": "24855899",
  27287. "name": "map",
  27288. "font_class": "map",
  27289. "unicode": "e667",
  27290. "unicode_decimal": 58983
  27291. }, {
  27292. "icon_id": "24855825",
  27293. "name": "refresh-filled",
  27294. "font_class": "refresh-filled",
  27295. "unicode": "e656",
  27296. "unicode_decimal": 58966
  27297. }, {
  27298. "icon_id": "24855826",
  27299. "name": "refresh",
  27300. "font_class": "refresh",
  27301. "unicode": "e657",
  27302. "unicode_decimal": 58967
  27303. }, {
  27304. "icon_id": "24855808",
  27305. "name": "cloud-upload",
  27306. "font_class": "cloud-upload",
  27307. "unicode": "e645",
  27308. "unicode_decimal": 58949
  27309. }, {
  27310. "icon_id": "24855809",
  27311. "name": "cloud-download-filled",
  27312. "font_class": "cloud-download-filled",
  27313. "unicode": "e646",
  27314. "unicode_decimal": 58950
  27315. }, {
  27316. "icon_id": "24855810",
  27317. "name": "cloud-download",
  27318. "font_class": "cloud-download",
  27319. "unicode": "e647",
  27320. "unicode_decimal": 58951
  27321. }, {
  27322. "icon_id": "24855811",
  27323. "name": "cloud-upload-filled",
  27324. "font_class": "cloud-upload-filled",
  27325. "unicode": "e648",
  27326. "unicode_decimal": 58952
  27327. }, {
  27328. "icon_id": "24855813",
  27329. "name": "redo",
  27330. "font_class": "redo",
  27331. "unicode": "e64a",
  27332. "unicode_decimal": 58954
  27333. }, {
  27334. "icon_id": "24855814",
  27335. "name": "images-filled",
  27336. "font_class": "images-filled",
  27337. "unicode": "e64b",
  27338. "unicode_decimal": 58955
  27339. }, {
  27340. "icon_id": "24855815",
  27341. "name": "undo-filled",
  27342. "font_class": "undo-filled",
  27343. "unicode": "e64c",
  27344. "unicode_decimal": 58956
  27345. }, {
  27346. "icon_id": "24855816",
  27347. "name": "more",
  27348. "font_class": "more",
  27349. "unicode": "e64d",
  27350. "unicode_decimal": 58957
  27351. }, {
  27352. "icon_id": "24855817",
  27353. "name": "more-filled",
  27354. "font_class": "more-filled",
  27355. "unicode": "e64e",
  27356. "unicode_decimal": 58958
  27357. }, {
  27358. "icon_id": "24855818",
  27359. "name": "undo",
  27360. "font_class": "undo",
  27361. "unicode": "e64f",
  27362. "unicode_decimal": 58959
  27363. }, {
  27364. "icon_id": "24855819",
  27365. "name": "images",
  27366. "font_class": "images",
  27367. "unicode": "e650",
  27368. "unicode_decimal": 58960
  27369. }, {
  27370. "icon_id": "24855821",
  27371. "name": "paperclip",
  27372. "font_class": "paperclip",
  27373. "unicode": "e652",
  27374. "unicode_decimal": 58962
  27375. }, {
  27376. "icon_id": "24855822",
  27377. "name": "settings",
  27378. "font_class": "settings",
  27379. "unicode": "e653",
  27380. "unicode_decimal": 58963
  27381. }, {
  27382. "icon_id": "24855823",
  27383. "name": "search",
  27384. "font_class": "search",
  27385. "unicode": "e654",
  27386. "unicode_decimal": 58964
  27387. }, {
  27388. "icon_id": "24855824",
  27389. "name": "redo-filled",
  27390. "font_class": "redo-filled",
  27391. "unicode": "e655",
  27392. "unicode_decimal": 58965
  27393. }, {
  27394. "icon_id": "24841702",
  27395. "name": "list",
  27396. "font_class": "list",
  27397. "unicode": "e644",
  27398. "unicode_decimal": 58948
  27399. }, {
  27400. "icon_id": "24841489",
  27401. "name": "mail-open-filled",
  27402. "font_class": "mail-open-filled",
  27403. "unicode": "e63a",
  27404. "unicode_decimal": 58938
  27405. }, {
  27406. "icon_id": "24841491",
  27407. "name": "hand-thumbsdown-filled",
  27408. "font_class": "hand-down-filled",
  27409. "unicode": "e63c",
  27410. "unicode_decimal": 58940
  27411. }, {
  27412. "icon_id": "24841492",
  27413. "name": "hand-thumbsdown",
  27414. "font_class": "hand-down",
  27415. "unicode": "e63d",
  27416. "unicode_decimal": 58941
  27417. }, {
  27418. "icon_id": "24841493",
  27419. "name": "hand-thumbsup-filled",
  27420. "font_class": "hand-up-filled",
  27421. "unicode": "e63e",
  27422. "unicode_decimal": 58942
  27423. }, {
  27424. "icon_id": "24841494",
  27425. "name": "hand-thumbsup",
  27426. "font_class": "hand-up",
  27427. "unicode": "e63f",
  27428. "unicode_decimal": 58943
  27429. }, {
  27430. "icon_id": "24841496",
  27431. "name": "heart-filled",
  27432. "font_class": "heart-filled",
  27433. "unicode": "e641",
  27434. "unicode_decimal": 58945
  27435. }, {
  27436. "icon_id": "24841498",
  27437. "name": "mail-open",
  27438. "font_class": "mail-open",
  27439. "unicode": "e643",
  27440. "unicode_decimal": 58947
  27441. }, {
  27442. "icon_id": "24841488",
  27443. "name": "heart",
  27444. "font_class": "heart",
  27445. "unicode": "e639",
  27446. "unicode_decimal": 58937
  27447. }, {
  27448. "icon_id": "24839963",
  27449. "name": "loop",
  27450. "font_class": "loop",
  27451. "unicode": "e633",
  27452. "unicode_decimal": 58931
  27453. }, {
  27454. "icon_id": "24839866",
  27455. "name": "pulldown",
  27456. "font_class": "pulldown",
  27457. "unicode": "e632",
  27458. "unicode_decimal": 58930
  27459. }, {
  27460. "icon_id": "24813798",
  27461. "name": "scan",
  27462. "font_class": "scan",
  27463. "unicode": "e62a",
  27464. "unicode_decimal": 58922
  27465. }, {
  27466. "icon_id": "24813786",
  27467. "name": "bars",
  27468. "font_class": "bars",
  27469. "unicode": "e627",
  27470. "unicode_decimal": 58919
  27471. }, {
  27472. "icon_id": "24813788",
  27473. "name": "cart-filled",
  27474. "font_class": "cart-filled",
  27475. "unicode": "e629",
  27476. "unicode_decimal": 58921
  27477. }, {
  27478. "icon_id": "24813790",
  27479. "name": "checkbox",
  27480. "font_class": "checkbox",
  27481. "unicode": "e62b",
  27482. "unicode_decimal": 58923
  27483. }, {
  27484. "icon_id": "24813791",
  27485. "name": "checkbox-filled",
  27486. "font_class": "checkbox-filled",
  27487. "unicode": "e62c",
  27488. "unicode_decimal": 58924
  27489. }, {
  27490. "icon_id": "24813794",
  27491. "name": "shop",
  27492. "font_class": "shop",
  27493. "unicode": "e62f",
  27494. "unicode_decimal": 58927
  27495. }, {
  27496. "icon_id": "24813795",
  27497. "name": "headphones",
  27498. "font_class": "headphones",
  27499. "unicode": "e630",
  27500. "unicode_decimal": 58928
  27501. }, {
  27502. "icon_id": "24813796",
  27503. "name": "cart",
  27504. "font_class": "cart",
  27505. "unicode": "e631",
  27506. "unicode_decimal": 58929
  27507. }]
  27508. };
  27509. exports.default = _default;
  27510. /***/ }),
  27511. /***/ 62:
  27512. /*!***************************************************************************************!*\
  27513. !*** D:/AAAcompany_product/新建文件夹/product_wx/wxcomponents/weapp/dist/dialog/dialog.js ***!
  27514. \***************************************************************************************/
  27515. /*! no static exports found */
  27516. /***/ (function(module, exports, __webpack_require__) {
  27517. "use strict";
  27518. /* WEBPACK VAR INJECTION */(function(wx) {
  27519. Object.defineProperty(exports, "__esModule", {
  27520. value: true
  27521. });
  27522. exports.default = void 0;
  27523. var queue = [];
  27524. var defaultOptions = {
  27525. show: false,
  27526. title: '',
  27527. width: null,
  27528. theme: 'default',
  27529. message: '',
  27530. zIndex: 100,
  27531. overlay: true,
  27532. selector: '#van-dialog',
  27533. className: '',
  27534. asyncClose: false,
  27535. beforeClose: null,
  27536. transition: 'scale',
  27537. customStyle: '',
  27538. messageAlign: '',
  27539. overlayStyle: '',
  27540. confirmButtonText: '确认',
  27541. cancelButtonText: '取消',
  27542. showConfirmButton: true,
  27543. showCancelButton: false,
  27544. closeOnClickOverlay: false,
  27545. confirmButtonOpenType: ''
  27546. };
  27547. var currentOptions = Object.assign({}, defaultOptions);
  27548. function getContext() {
  27549. var pages = getCurrentPages();
  27550. return pages[pages.length - 1];
  27551. }
  27552. var Dialog = function Dialog(options) {
  27553. options = Object.assign(Object.assign({}, currentOptions), options);
  27554. return new Promise(function (resolve, reject) {
  27555. var context = (typeof options.context === 'function' ? options.context() : options.context) || getContext();
  27556. var dialog = context.selectComponent(options.selector);
  27557. delete options.context;
  27558. delete options.selector;
  27559. if (dialog) {
  27560. dialog.setData(Object.assign({
  27561. callback: function callback(action, instance) {
  27562. action === 'confirm' ? resolve(instance) : reject(instance);
  27563. }
  27564. }, options));
  27565. wx.nextTick(function () {
  27566. dialog.setData({
  27567. show: true
  27568. });
  27569. });
  27570. queue.push(dialog);
  27571. } else {
  27572. console.warn('未找到 van-dialog 节点,请确认 selector 及 context 是否正确');
  27573. }
  27574. });
  27575. };
  27576. Dialog.alert = function (options) {
  27577. return Dialog(options);
  27578. };
  27579. Dialog.confirm = function (options) {
  27580. return Dialog(Object.assign({
  27581. showCancelButton: true
  27582. }, options));
  27583. };
  27584. Dialog.close = function () {
  27585. queue.forEach(function (dialog) {
  27586. dialog.close();
  27587. });
  27588. queue = [];
  27589. };
  27590. Dialog.stopLoading = function () {
  27591. queue.forEach(function (dialog) {
  27592. dialog.stopLoading();
  27593. });
  27594. };
  27595. Dialog.currentOptions = currentOptions;
  27596. Dialog.defaultOptions = defaultOptions;
  27597. Dialog.setDefaultOptions = function (options) {
  27598. currentOptions = Object.assign(Object.assign({}, currentOptions), options);
  27599. Dialog.currentOptions = currentOptions;
  27600. };
  27601. Dialog.resetDefaultOptions = function () {
  27602. currentOptions = Object.assign({}, defaultOptions);
  27603. Dialog.currentOptions = currentOptions;
  27604. };
  27605. Dialog.resetDefaultOptions();
  27606. var _default = Dialog;
  27607. exports.default = _default;
  27608. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/wx.js */ 1)["default"]))
  27609. /***/ }),
  27610. /***/ 63:
  27611. /*!*************************************************************!*\
  27612. !*** D:/AAAcompany_product/新建文件夹/product_wx/js_sdk/http.js ***!
  27613. \*************************************************************/
  27614. /*! no static exports found */
  27615. /***/ (function(module, exports, __webpack_require__) {
  27616. "use strict";
  27617. /* WEBPACK VAR INJECTION */(function(uni) {
  27618. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  27619. Object.defineProperty(exports, "__esModule", {
  27620. value: true
  27621. });
  27622. exports.add = add;
  27623. exports.addInterview = addInterview;
  27624. exports.addRectificationManagement = addRectificationManagement;
  27625. exports.addRepair = addRepair;
  27626. exports.addSafetySelfCheckingManage = addSafetySelfCheckingManage;
  27627. exports.addSafetySelfCheckingPlan = addSafetySelfCheckingPlan;
  27628. exports.addZaiti = addZaiti;
  27629. exports.addyixiang = addyixiang;
  27630. exports.cancelAppoint = cancelAppoint;
  27631. exports.clickCollect = clickCollect;
  27632. exports.companyECdit = companyECdit;
  27633. exports.companyExamineAdd = companyExamineAdd;
  27634. exports.confirmAudit = confirmAudit;
  27635. exports.editHomeCommunityActivity = editHomeCommunityActivity;
  27636. exports.editInterview = editInterview;
  27637. exports.editPassword = editPassword;
  27638. exports.editRepair = editRepair;
  27639. exports.editSave = editSave;
  27640. exports.findAllSimpleCompanies = findAllSimpleCompanies;
  27641. exports.findCompanyInfoList = findCompanyInfoList;
  27642. exports.findCompanyList = findCompanyList;
  27643. exports.findCompanyTags = findCompanyTags;
  27644. exports.findDeptList = findDeptList;
  27645. exports.findLongPanList = findLongPanList;
  27646. exports.findLouDongList = findLouDongList;
  27647. exports.findRectificationManagementInOutById = findRectificationManagementInOutById;
  27648. exports.findRectificationManagementInOutList = findRectificationManagementInOutList;
  27649. exports.findRoomByCondition = findRoomByCondition;
  27650. exports.findRoomInfoListByIds = findRoomInfoListByIds;
  27651. exports.findSafetySelfCheckingManageList = findSafetySelfCheckingManageList;
  27652. exports.findSafetySelfCheckingManagetById = findSafetySelfCheckingManagetById;
  27653. exports.findSafetySelfCheckingPlanById = findSafetySelfCheckingPlanById;
  27654. exports.findSafetySelfCheckingPlanList = findSafetySelfCheckingPlanList;
  27655. exports.findTrackUserList = findTrackUserList;
  27656. exports.findUserListByRoleWuye = findUserListByRoleWuye;
  27657. exports.findYuanQuList = findYuanQuList;
  27658. exports.getActivationRanking = getActivationRanking;
  27659. exports.getActivityById = getActivityById;
  27660. exports.getAppUserMain = getAppUserMain;
  27661. exports.getBuildDetails = getBuildDetails;
  27662. exports.getByCodes = getByCodes;
  27663. exports.getBySaveStatus = getBySaveStatus;
  27664. exports.getCompanyAll = getCompanyAll;
  27665. exports.getCompanyById = getCompanyById;
  27666. exports.getCompanyById2 = getCompanyById2;
  27667. exports.getCompanyHouseDetails = getCompanyHouseDetails;
  27668. exports.getCompanyTags = getCompanyTags;
  27669. exports.getCompanyTagsByQybq = getCompanyTagsByQybq;
  27670. exports.getDetial = getDetial;
  27671. exports.getDispatchToPerson = getDispatchToPerson;
  27672. exports.getInterviewDetails = getInterviewDetails;
  27673. exports.getInterviewList = getInterviewList;
  27674. exports.getPartyBranchList = getPartyBranchList;
  27675. exports.getRepairDispatchById = getRepairDispatchById;
  27676. exports.getRepairList = getRepairList;
  27677. exports.getRoomInfo = getRoomInfo;
  27678. exports.getSelectDeptTwo = getSelectDeptTwo;
  27679. exports.getSelectUserTwo = getSelectUserTwo;
  27680. exports.getTreeData2 = getTreeData2;
  27681. exports.getTreeData6 = getTreeData6;
  27682. exports.getUserInfo = getUserInfo;
  27683. exports.getUserLocalStorageInfo = getUserLocalStorageInfo;
  27684. exports.getUserPower = getUserPower;
  27685. exports.getWxCompanyTags = getWxCompanyTags;
  27686. exports.handleList = handleList;
  27687. exports.insertRegisSignInfo = insertRegisSignInfo;
  27688. exports.interviewEscalationListAll = interviewEscalationListAll;
  27689. exports.list = list;
  27690. exports.listAllUserMain = listAllUserMain;
  27691. exports.listApp = listApp;
  27692. exports.listByModel = listByModel;
  27693. exports.listHomeCommunityActivity = listHomeCommunityActivity;
  27694. exports.listVo = listVo;
  27695. exports.login = login;
  27696. exports.loginByCompany = loginByCompany;
  27697. exports.loginByWeixin2 = loginByWeixin2;
  27698. exports.readList = readList;
  27699. exports.removeTagsBind = removeTagsBind;
  27700. exports.repairList = repairList;
  27701. exports.richScan = richScan;
  27702. exports.saleControllerGetById = saleControllerGetById;
  27703. exports.selectByCompanyId = selectByCompanyId;
  27704. exports.tagCategoryList = tagCategoryList;
  27705. exports.tagInfoList = tagInfoList;
  27706. exports.tagsBind = tagsBind;
  27707. exports.updateListRectificationManagement = updateListRectificationManagement;
  27708. exports.updateSafetySelfCheckingManage = updateSafetySelfCheckingManage;
  27709. exports.uploadPDF = uploadPDF;
  27710. exports.userList = userList;
  27711. var _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/defineProperty */ 11));
  27712. var _requestConfig = _interopRequireDefault(__webpack_require__(/*! ./request/requestConfig */ 53));
  27713. var _constant = __webpack_require__(/*! ../pages/utils/constant.js */ 50);
  27714. var _qs = _interopRequireDefault(__webpack_require__(/*! qs */ 64));
  27715. 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; }
  27716. 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; }
  27717. var baseUri = '/smartParkH5Server';
  27718. var parkActivity = '/wx/meetingAppoint';
  27719. function login(data) {
  27720. return _requestConfig.default.post('/wx/auth/login_by_app_main?' + _qs.default.stringify(data), {}, {});
  27721. }
  27722. function loginByCompany(data) {
  27723. return _requestConfig.default.post('/wx/auth/loginByCompany', data, {});
  27724. }
  27725. function addRectificationManagement(data) {
  27726. return _requestConfig.default.post('/wx/RectificationController/addRectificationManagement', data, {});
  27727. }
  27728. function loginByWeixin2(code) {
  27729. return _requestConfig.default.post('/wx/auth/login_by_weixin2', code, {});
  27730. }
  27731. function getUserLocalStorageInfo() {
  27732. var userInfo = JSON.parse(uni.getStorageSync("USERINFO"));
  27733. return userInfo;
  27734. }
  27735. function uploadPDF() {
  27736. uni.showLoading({
  27737. title: '加载中',
  27738. mask: true
  27739. });
  27740. return new Promise(function (resolve, reject) {
  27741. uni.chooseMessageFile({
  27742. count: 1,
  27743. //默认100
  27744. type: 'file',
  27745. success: function success(res) {
  27746. uni.uploadFile({
  27747. url: _constant.BASE_URI + "/wx/fileController/upload",
  27748. filePath: res.tempFiles[0].path,
  27749. name: "file",
  27750. formData: {
  27751. user: "test"
  27752. },
  27753. success: function success(successRes) {
  27754. // 上传完成需要更新 fileList
  27755. var data = JSON.parse(successRes.data);
  27756. uni.showToast({
  27757. title: '提交成功',
  27758. duration: 500
  27759. });
  27760. resolve({
  27761. url: data.data[0],
  27762. name: res.tempFiles[0].name
  27763. });
  27764. },
  27765. fail: function fail(res) {}
  27766. });
  27767. },
  27768. fail: function fail(e) {
  27769. uni.showToast({
  27770. title: '提交成功',
  27771. duration: 0
  27772. });
  27773. }
  27774. });
  27775. });
  27776. }
  27777. function getBuildDetails(data) {
  27778. return _requestConfig.default.post('/wx/MnpBuildingController/getById', data, {});
  27779. }
  27780. function addZaiti(data) {
  27781. return _requestConfig.default.post('/wx/ParkRoomController/add', data, {});
  27782. }
  27783. function getCompanyById2(data) {
  27784. return _requestConfig.default.post('/wx/roadShow/getCompanyById', data, {});
  27785. }
  27786. function add(data) {
  27787. return _requestConfig.default.post('/wx/repair/add', data, {});
  27788. }
  27789. function getPartyBranchList(data) {
  27790. return _requestConfig.default.post('/wx/partyBranch/getPartyBranchList', data, {});
  27791. }
  27792. function selectByCompanyId(data) {
  27793. return _requestConfig.default.post('/wx/SocialCarrierController/selectByCompanyId', data, {});
  27794. }
  27795. function getTreeData2(data) {
  27796. return _requestConfig.default.post('/wx/ParkInfoController/getTreeData2', data, {});
  27797. }
  27798. function getTreeData6(data) {
  27799. return _requestConfig.default.post('/wx/ParkInfoController/getTreeData6', data, {});
  27800. }
  27801. function getActivationRanking(data) {
  27802. return _requestConfig.default.post('/wx/partyBranch/getActivationRanking', data, {});
  27803. }
  27804. function findRectificationManagementInOutList(data) {
  27805. return _requestConfig.default.post('/wx/RectificationController/findRectificationManagementInOutList', data, {});
  27806. }
  27807. function findRectificationManagementInOutById(e) {
  27808. return _requestConfig.default.post('/wx/RectificationController/findRectificationManagementInOutById', {
  27809. id: e
  27810. }, {});
  27811. }
  27812. function repairList(data) {
  27813. return _requestConfig.default.post('/wx/repair/list', data, {});
  27814. }
  27815. function addSafetySelfCheckingManage(data) {
  27816. return _requestConfig.default.post('/wx/SafetyController/addSafetySelfCheckingManage', data, {});
  27817. }
  27818. function updateSafetySelfCheckingManage(data) {
  27819. return _requestConfig.default.post('/wx/SafetyController/updateSafetySelfCheckingManage', data, {});
  27820. }
  27821. function editRepair(data) {
  27822. return _requestConfig.default.post('/wx/repair/edit', data, {});
  27823. }
  27824. function addRepair(data) {
  27825. return _requestConfig.default.post('/wx/repair/add', data, {});
  27826. }
  27827. function getRepairDispatchById(id) {
  27828. return _requestConfig.default.post('/wx/repair/getById', {
  27829. id: id
  27830. }, {});
  27831. }
  27832. function getDispatchToPerson(data) {
  27833. return _requestConfig.default.post('/wx/repair/getDispatchToPerson', data, {});
  27834. }
  27835. function getCompanyById(data) {
  27836. return _requestConfig.default.post('/wx/repair/getCompanyById', data, {});
  27837. }
  27838. function getWxCompanyTags(e) {
  27839. return _requestConfig.default.post('/wx/MnpTagInfoController/tagInfoList', e, {});
  27840. }
  27841. function tagsBind(e) {
  27842. return _requestConfig.default.post('/wx/MnpTagInfoController/bind', e, {});
  27843. }
  27844. function getDetial(e) {
  27845. return _requestConfig.default.post('/wx/meetingAppoint/meetingAppointDetail', e, {});
  27846. }
  27847. function saleControllerGetById(e) {
  27848. return _requestConfig.default.post('/wx/SaleController/getById', {
  27849. id: e
  27850. }, {});
  27851. }
  27852. function getAppUserMain(data) {
  27853. return _requestConfig.default.post('/wx/company/getById', data, {});
  27854. }
  27855. function confirmAudit(data) {
  27856. return _requestConfig.default.post('/wx/meetingAppoint/confirmAudit', data, {});
  27857. }
  27858. function getCompanyTags(e) {
  27859. return _requestConfig.default.post('/wx/MnpTagInfoController/getCompanyTags', e, {});
  27860. }
  27861. function getCompanyTagsByQybq(qybq) {
  27862. return _requestConfig.default.post('/wx/MnpTagInfoController/getCompanyTagsByQybq', {
  27863. qybq: qybq
  27864. }, {});
  27865. }
  27866. function companyECdit(data) {
  27867. return _requestConfig.default.post('/wx/company/edit', data, {});
  27868. }
  27869. function tagInfoList(e) {
  27870. return _requestConfig.default.post('/wx/MnpTagInfoController/tagInfoList', e, {});
  27871. }
  27872. function findDeptList() {
  27873. return _requestConfig.default.post('/wx/SaleController/findDeptList', {}, {});
  27874. }
  27875. function tagCategoryList() {
  27876. return _requestConfig.default.post('/wx/MnpTagController/tagCategoryList', {}, {});
  27877. }
  27878. function interviewEscalationListAll(id) {
  27879. return _requestConfig.default.post('/wx/interviewEscalation/listAll', {
  27880. companyId: id
  27881. }, {});
  27882. }
  27883. function getUserInfo(data) {
  27884. var laocui_user_info = JSON.parse(uni.getStorageSync('laocui_user_info'));
  27885. return _requestConfig.default.post('/wx/frameUser/getMyInfo?userId=' + laocui_user_info.user.id, {}, {});
  27886. }
  27887. function getRoomInfo(e) {
  27888. return _requestConfig.default.post('/wx/ParkRoomController/getById', {
  27889. id: e
  27890. }, {});
  27891. }
  27892. function getCompanyHouseDetails(e) {
  27893. return _requestConfig.default.post('/wx/company/getById', {
  27894. id: e
  27895. }, {});
  27896. }
  27897. function handleList(e) {
  27898. return _requestConfig.default.post('/wx/workPaneController/handleList', e, {});
  27899. }
  27900. function readList(e) {
  27901. return _requestConfig.default.post('/wx/workPaneController/readList', e, {});
  27902. }
  27903. // handleList?
  27904. function findCompanyTags(e) {
  27905. return _requestConfig.default.post('/wx/MnpTagInfoController/getCompanyTags/' + e, {}, {});
  27906. }
  27907. function removeTagsBind(e) {
  27908. return _requestConfig.default.post('/wx/MnpTagInfoController/removeBind', e, {});
  27909. }
  27910. function addInterview(e) {
  27911. return _requestConfig.default.post("/wx/interviewEscalation/add", e, {});
  27912. }
  27913. function editInterview(e) {
  27914. return _requestConfig.default.post("/wx/interviewEscalation/edit", e, {});
  27915. }
  27916. function getInterviewList(e) {
  27917. return _requestConfig.default.post("/wx/interviewEscalation/list", e, {});
  27918. }
  27919. function getInterviewDetails(e) {
  27920. return _requestConfig.default.post("/wx/interviewEscalation/getById", {
  27921. id: e
  27922. }, {});
  27923. }
  27924. function findSafetySelfCheckingPlanById(e) {
  27925. return _requestConfig.default.post("/wx/SafetyController/findSafetySelfCheckingPlanById", {
  27926. id: e
  27927. }, {});
  27928. }
  27929. //
  27930. function findSafetySelfCheckingPlanList(e) {
  27931. return _requestConfig.default.post("/wx/SafetyController/findSafetySelfCheckingPlanList", e, {});
  27932. }
  27933. function getBySaveStatus(e) {
  27934. return _requestConfig.default.post("/wx/interviewEscalation/getBySaveStatus", {
  27935. createdBy: e
  27936. }, {});
  27937. }
  27938. function companyExamineAdd(e) {
  27939. return _requestConfig.default.post("/wx/company/add", e, {});
  27940. }
  27941. function listByModel(e) {
  27942. return _requestConfig.default.post('/wx/SaleController/findSaleManagementListByRoomId', e, {});
  27943. }
  27944. function listVo(e) {
  27945. // 查询园区列表,不需要参数
  27946. return _requestConfig.default.post('/wx/company/listVo', e, {});
  27947. }
  27948. // /wx/SafetyController/addSafetySelfCheckingPlan
  27949. function addSafetySelfCheckingPlan(e) {
  27950. // 查询园区列表,不需要参数
  27951. return _requestConfig.default.post('/wx/SafetyController/addSafetySelfCheckingPlan', _objectSpread({}, e), {});
  27952. }
  27953. function findSafetySelfCheckingManagetById(e) {
  27954. // 查询园区列表,不需要参数
  27955. return _requestConfig.default.post('/wx/SafetyController/findSafetySelfCheckingManagetById', {
  27956. id: e
  27957. }, {});
  27958. }
  27959. function findSafetySelfCheckingManageList(e) {
  27960. // 查询园区列表,不需要参数
  27961. return _requestConfig.default.post('/wx/SafetyController/findSafetySelfCheckingManageList', e, {});
  27962. }
  27963. function findYuanQuList() {
  27964. // 查询园区列表,不需要参数
  27965. return _requestConfig.default.post('/wx/SaleController/findYuanQuList', {}, {});
  27966. }
  27967. function findLongPanList(id) {
  27968. // 用园区ID查询楼盘列表
  27969. return _requestConfig.default.post('/wx/SaleController/findLouPanList', {
  27970. id: id
  27971. }, {});
  27972. }
  27973. function findLouDongList(id) {
  27974. // 用园区ID查询楼盘列表
  27975. return _requestConfig.default.post('/wx/SaleController/findLouDongList', {
  27976. id: id
  27977. }, {});
  27978. }
  27979. function clickCollect(e) {
  27980. return _requestConfig.default.post('/wx/parkActivity/clickCollect', e, {});
  27981. }
  27982. function insertRegisSignInfo(e) {
  27983. return _requestConfig.default.post('/wx/parkActivity/insertRegisSignInfo', e, {});
  27984. }
  27985. function richScan(e) {
  27986. return _requestConfig.default.post('/wx/parkActivity/richScan', e, {});
  27987. }
  27988. function getActivityById(id, signInCode, userId) {
  27989. return _requestConfig.default.get('/wx/parkActivity/getBySignInCode?id=' + id + '&userId=' + userId + "&signInCode=" + signInCode, {}, {});
  27990. }
  27991. // /wx/userPower/getUserPower?userId=1088765543780974592
  27992. function getUserPower(e) {
  27993. return _requestConfig.default.post('/wx/userPower/getUserPower', {
  27994. userId: e
  27995. }, {});
  27996. }
  27997. function editPassword(e) {
  27998. return _requestConfig.default.post('/wx/frameUser/editPassword', e, {});
  27999. }
  28000. function updateListRectificationManagement(e) {
  28001. return _requestConfig.default.post('/wx/RectificationController/updateListRectificationManagement', e, {});
  28002. }
  28003. // /wx/RectificationController/findUserListByRoleWuye
  28004. function findUserListByRoleWuye() {
  28005. // 用园区ID查询楼盘列表
  28006. return _requestConfig.default.post('/wx/RectificationController/findUserListByRoleWuye', {}, {});
  28007. }
  28008. function listAllUserMain() {
  28009. // 用园区ID查询楼盘列表
  28010. return _requestConfig.default.post('/wx/UserMainExpandController/listAllUserMain', {}, {});
  28011. }
  28012. function userList(e) {
  28013. // http://192.168.2.112:9011/wx/frameUser/userList
  28014. return _requestConfig.default.post('/wx/frameUser/userList', e, {});
  28015. }
  28016. function findAllSimpleCompanies(e) {
  28017. // http://192.168.2.112:9011/wx/frameUser/userList
  28018. return _requestConfig.default.post('/wx/company/findAllSimpleCompanies', {
  28019. searchInfo: e.qymc,
  28020. pageNum: 1,
  28021. pageSize: 10000
  28022. }, {});
  28023. }
  28024. function findTrackUserList() {
  28025. // http://192.168.2.112:9011/wx/frameUser/userList
  28026. return _requestConfig.default.post('/wx/SaleController/findTrackUserList', {}, {});
  28027. }
  28028. function getSelectUserTwo(e) {
  28029. // 用园区ID查询楼盘列表
  28030. return _requestConfig.default.post('/wx/frameUser/getSelectUserTwo', {
  28031. searchName: e
  28032. }, {});
  28033. }
  28034. function getSelectDeptTwo(e) {
  28035. // 用园区ID查询楼盘列表
  28036. return _requestConfig.default.post('/wx/frameUser/getSelectDeptTwo', {
  28037. searchName: e
  28038. }, {});
  28039. }
  28040. function findRoomInfoListByIds(e) {
  28041. // 用园区ID查询楼盘列表
  28042. return _requestConfig.default.post('/wx/SaleController/findRoomInfoListByIds', {
  28043. ids: e
  28044. }, {});
  28045. }
  28046. function findCompanyList() {
  28047. // 用园区ID查询楼盘列表
  28048. return _requestConfig.default.post('/wx/SaleController/findCompanyList', {}, {});
  28049. }
  28050. function addyixiang(e) {
  28051. return _requestConfig.default.post('/wx/SaleController/add', e, {});
  28052. }
  28053. function editSave(e) {
  28054. return _requestConfig.default.post('/wx/SaleController/editSave', e, {});
  28055. }
  28056. function findCompanyInfoList(data) {
  28057. return _requestConfig.default.post("/wx/SaleController/findCompanyInfoList", data, {});
  28058. }
  28059. function findRoomByCondition(params) {
  28060. // 用园区ID查询楼盘列表
  28061. return _requestConfig.default.post('/wx/SaleController/findRoomByCondition', params, {});
  28062. }
  28063. function getCompanyAll(qymc) {
  28064. return _requestConfig.default.post('/wx/company/listAll', {
  28065. qymc: qymc ? qymc : ""
  28066. }, {});
  28067. }
  28068. function getByCodes(params) {
  28069. // 用园区ID查询楼盘列表
  28070. return _requestConfig.default.post('/wx/sysDict/getByCodes', {
  28071. codes: params
  28072. }, {});
  28073. }
  28074. function list(data) {
  28075. return _requestConfig.default.post(parkActivity + '/getMeetingAppointList', data, {});
  28076. }
  28077. function listApp(data) {
  28078. return _requestConfig.default.post(parkActivity + '/getMeetingAppointListApp', data, {});
  28079. }
  28080. function cancelAppoint(data) {
  28081. return _requestConfig.default.post(parkActivity + '/cancelAppoint', data, {});
  28082. }
  28083. // /wx/SaleController/
  28084. function getRepairList(data) {
  28085. return _requestConfig.default.post('/wx/repair/list', data, {});
  28086. }
  28087. function editHomeCommunityActivity(data) {
  28088. return _requestConfig.default.post('/wx/homeActivity/editHomeCommunityActivity', data, {});
  28089. }
  28090. function listHomeCommunityActivity(data) {
  28091. return _requestConfig.default.post('/wx/homeActivity/listHomeCommunityActivity', data, {});
  28092. }
  28093. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  28094. /***/ }),
  28095. /***/ 64:
  28096. /*!**************************************!*\
  28097. !*** ./node_modules/qs/lib/index.js ***!
  28098. \**************************************/
  28099. /*! no static exports found */
  28100. /***/ (function(module, exports, __webpack_require__) {
  28101. "use strict";
  28102. var stringify = __webpack_require__(/*! ./stringify */ 65);
  28103. var parse = __webpack_require__(/*! ./parse */ 79);
  28104. var formats = __webpack_require__(/*! ./formats */ 78);
  28105. module.exports = {
  28106. formats: formats,
  28107. parse: parse,
  28108. stringify: stringify
  28109. };
  28110. /***/ }),
  28111. /***/ 641:
  28112. /*!***************************************************************************************************************!*\
  28113. !*** D:/AAAcompany_product/新建文件夹/product_wx/uni_modules/uni-load-more/components/uni-load-more/i18n/index.js ***!
  28114. \***************************************************************************************************************/
  28115. /*! no static exports found */
  28116. /***/ (function(module, exports, __webpack_require__) {
  28117. "use strict";
  28118. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  28119. Object.defineProperty(exports, "__esModule", {
  28120. value: true
  28121. });
  28122. exports.default = void 0;
  28123. var _en = _interopRequireDefault(__webpack_require__(/*! ./en.json */ 642));
  28124. var _zhHans = _interopRequireDefault(__webpack_require__(/*! ./zh-Hans.json */ 643));
  28125. var _zhHant = _interopRequireDefault(__webpack_require__(/*! ./zh-Hant.json */ 644));
  28126. var _default = {
  28127. en: _en.default,
  28128. 'zh-Hans': _zhHans.default,
  28129. 'zh-Hant': _zhHant.default
  28130. };
  28131. exports.default = _default;
  28132. /***/ }),
  28133. /***/ 642:
  28134. /*!**************************************************************************************************************!*\
  28135. !*** D:/AAAcompany_product/新建文件夹/product_wx/uni_modules/uni-load-more/components/uni-load-more/i18n/en.json ***!
  28136. \**************************************************************************************************************/
  28137. /*! exports provided: uni-load-more.contentdown, uni-load-more.contentrefresh, uni-load-more.contentnomore, default */
  28138. /***/ (function(module) {
  28139. 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\"}");
  28140. /***/ }),
  28141. /***/ 643:
  28142. /*!*******************************************************************************************************************!*\
  28143. !*** D:/AAAcompany_product/新建文件夹/product_wx/uni_modules/uni-load-more/components/uni-load-more/i18n/zh-Hans.json ***!
  28144. \*******************************************************************************************************************/
  28145. /*! exports provided: uni-load-more.contentdown, uni-load-more.contentrefresh, uni-load-more.contentnomore, default */
  28146. /***/ (function(module) {
  28147. module.exports = JSON.parse("{\"uni-load-more.contentdown\":\"上拉显示更多\",\"uni-load-more.contentrefresh\":\"正在加载...\",\"uni-load-more.contentnomore\":\"没有更多数据了\"}");
  28148. /***/ }),
  28149. /***/ 644:
  28150. /*!*******************************************************************************************************************!*\
  28151. !*** D:/AAAcompany_product/新建文件夹/product_wx/uni_modules/uni-load-more/components/uni-load-more/i18n/zh-Hant.json ***!
  28152. \*******************************************************************************************************************/
  28153. /*! exports provided: uni-load-more.contentdown, uni-load-more.contentrefresh, uni-load-more.contentnomore, default */
  28154. /***/ (function(module) {
  28155. module.exports = JSON.parse("{\"uni-load-more.contentdown\":\"上拉顯示更多\",\"uni-load-more.contentrefresh\":\"正在加載...\",\"uni-load-more.contentnomore\":\"沒有更多數據了\"}");
  28156. /***/ }),
  28157. /***/ 647:
  28158. /*!***********************************************************************************************!*\
  28159. !*** D:/AAAcompany_product/新建文件夹/product_wx/wxcomponents/weapp/dist/datetime-picker/index.js ***!
  28160. \***********************************************************************************************/
  28161. /*! no static exports found */
  28162. /***/ (function(module, exports, __webpack_require__) {
  28163. "use strict";
  28164. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  28165. var _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/defineProperty */ 11));
  28166. var _slicedToArray2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/slicedToArray */ 5));
  28167. var _component = __webpack_require__(/*! ../common/component */ 397);
  28168. var _validator = __webpack_require__(/*! ../common/validator */ 403);
  28169. var _shared = __webpack_require__(/*! ../picker/shared */ 567);
  28170. var currentYear = new Date().getFullYear();
  28171. function isValidDate(date) {
  28172. return (0, _validator.isDef)(date) && !isNaN(new Date(date).getTime());
  28173. }
  28174. function range(num, min, max) {
  28175. return Math.min(Math.max(num, min), max);
  28176. }
  28177. function padZero(val) {
  28178. return "00".concat(val).slice(-2);
  28179. }
  28180. function times(n, iteratee) {
  28181. var index = -1;
  28182. var result = Array(n < 0 ? 0 : n);
  28183. while (++index < n) {
  28184. result[index] = iteratee(index);
  28185. }
  28186. return result;
  28187. }
  28188. function getTrueValue(formattedValue) {
  28189. if (formattedValue === undefined) {
  28190. formattedValue = '1';
  28191. }
  28192. while (isNaN(parseInt(formattedValue, 10))) {
  28193. formattedValue = formattedValue.slice(1);
  28194. }
  28195. return parseInt(formattedValue, 10);
  28196. }
  28197. function getMonthEndDay(year, month) {
  28198. return 32 - new Date(year, month - 1, 32).getDate();
  28199. }
  28200. var defaultFormatter = function defaultFormatter(type, value) {
  28201. return value;
  28202. };
  28203. (0, _component.VantComponent)({
  28204. classes: ['active-class', 'toolbar-class', 'column-class'],
  28205. props: Object.assign(Object.assign({}, _shared.pickerProps), {
  28206. value: {
  28207. type: null,
  28208. observer: 'updateValue'
  28209. },
  28210. filter: null,
  28211. type: {
  28212. type: String,
  28213. value: 'datetime',
  28214. observer: 'updateValue'
  28215. },
  28216. showToolbar: {
  28217. type: Boolean,
  28218. value: true
  28219. },
  28220. formatter: {
  28221. type: null,
  28222. value: defaultFormatter
  28223. },
  28224. minDate: {
  28225. type: Number,
  28226. value: new Date(currentYear - 10, 0, 1).getTime(),
  28227. observer: 'updateValue'
  28228. },
  28229. maxDate: {
  28230. type: Number,
  28231. value: new Date(currentYear + 10, 11, 31).getTime(),
  28232. observer: 'updateValue'
  28233. },
  28234. minHour: {
  28235. type: Number,
  28236. value: 0,
  28237. observer: 'updateValue'
  28238. },
  28239. maxHour: {
  28240. type: Number,
  28241. value: 23,
  28242. observer: 'updateValue'
  28243. },
  28244. minMinute: {
  28245. type: Number,
  28246. value: 0,
  28247. observer: 'updateValue'
  28248. },
  28249. maxMinute: {
  28250. type: Number,
  28251. value: 59,
  28252. observer: 'updateValue'
  28253. }
  28254. }),
  28255. data: {
  28256. innerValue: Date.now(),
  28257. columns: []
  28258. },
  28259. methods: {
  28260. updateValue: function updateValue() {
  28261. var _this = this;
  28262. var data = this.data;
  28263. var val = this.correctValue(data.value);
  28264. var isEqual = val === data.innerValue;
  28265. this.updateColumnValue(val).then(function () {
  28266. if (!isEqual) {
  28267. _this.$emit('input', val);
  28268. }
  28269. });
  28270. },
  28271. getPicker: function getPicker() {
  28272. if (this.picker == null) {
  28273. this.picker = this.selectComponent('.van-datetime-picker');
  28274. var picker = this.picker;
  28275. var setColumnValues = picker.setColumnValues;
  28276. picker.setColumnValues = function () {
  28277. for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
  28278. args[_key] = arguments[_key];
  28279. }
  28280. return setColumnValues.apply(picker, [].concat(args, [false]));
  28281. };
  28282. }
  28283. return this.picker;
  28284. },
  28285. updateColumns: function updateColumns() {
  28286. var _this$data$formatter = this.data.formatter,
  28287. formatter = _this$data$formatter === void 0 ? defaultFormatter : _this$data$formatter;
  28288. var results = this.getOriginColumns().map(function (column) {
  28289. return {
  28290. values: column.values.map(function (value) {
  28291. return formatter(column.type, value);
  28292. })
  28293. };
  28294. });
  28295. return this.set({
  28296. columns: results
  28297. });
  28298. },
  28299. getOriginColumns: function getOriginColumns() {
  28300. var filter = this.data.filter;
  28301. var results = this.getRanges().map(function (_ref) {
  28302. var type = _ref.type,
  28303. range = _ref.range;
  28304. var values = times(range[1] - range[0] + 1, function (index) {
  28305. var value = range[0] + index;
  28306. return type === 'year' ? "".concat(value) : padZero(value);
  28307. });
  28308. if (filter) {
  28309. values = filter(type, values);
  28310. }
  28311. return {
  28312. type: type,
  28313. values: values
  28314. };
  28315. });
  28316. return results;
  28317. },
  28318. getRanges: function getRanges() {
  28319. var data = this.data;
  28320. if (data.type === 'time') {
  28321. return [{
  28322. type: 'hour',
  28323. range: [data.minHour, data.maxHour]
  28324. }, {
  28325. type: 'minute',
  28326. range: [data.minMinute, data.maxMinute]
  28327. }];
  28328. }
  28329. var _this$getBoundary = this.getBoundary('max', data.innerValue),
  28330. maxYear = _this$getBoundary.maxYear,
  28331. maxDate = _this$getBoundary.maxDate,
  28332. maxMonth = _this$getBoundary.maxMonth,
  28333. maxHour = _this$getBoundary.maxHour,
  28334. maxMinute = _this$getBoundary.maxMinute;
  28335. var _this$getBoundary2 = this.getBoundary('min', data.innerValue),
  28336. minYear = _this$getBoundary2.minYear,
  28337. minDate = _this$getBoundary2.minDate,
  28338. minMonth = _this$getBoundary2.minMonth,
  28339. minHour = _this$getBoundary2.minHour,
  28340. minMinute = _this$getBoundary2.minMinute;
  28341. var result = [{
  28342. type: 'year',
  28343. range: [minYear, maxYear]
  28344. }, {
  28345. type: 'month',
  28346. range: [minMonth, maxMonth]
  28347. }, {
  28348. type: 'day',
  28349. range: [minDate, maxDate]
  28350. }, {
  28351. type: 'hour',
  28352. range: [minHour, maxHour]
  28353. }, {
  28354. type: 'minute',
  28355. range: [minMinute, maxMinute]
  28356. }];
  28357. if (data.type === 'date') result.splice(3, 2);
  28358. if (data.type === 'year-month') result.splice(2, 3);
  28359. return result;
  28360. },
  28361. correctValue: function correctValue(value) {
  28362. var data = this.data;
  28363. // validate value
  28364. var isDateType = data.type !== 'time';
  28365. if (isDateType && !isValidDate(value)) {
  28366. value = data.minDate;
  28367. } else if (!isDateType && !value) {
  28368. var minHour = data.minHour;
  28369. value = "".concat(padZero(minHour), ":00");
  28370. }
  28371. // time type
  28372. if (!isDateType) {
  28373. var _value$split = value.split(':'),
  28374. _value$split2 = (0, _slicedToArray2.default)(_value$split, 2),
  28375. hour = _value$split2[0],
  28376. minute = _value$split2[1];
  28377. hour = padZero(range(hour, data.minHour, data.maxHour));
  28378. minute = padZero(range(minute, data.minMinute, data.maxMinute));
  28379. return "".concat(hour, ":").concat(minute);
  28380. }
  28381. // date type
  28382. value = Math.max(value, data.minDate);
  28383. value = Math.min(value, data.maxDate);
  28384. return value;
  28385. },
  28386. getBoundary: function getBoundary(type, innerValue) {
  28387. var _ref2;
  28388. var value = new Date(innerValue);
  28389. var boundary = new Date(this.data["".concat(type, "Date")]);
  28390. var year = boundary.getFullYear();
  28391. var month = 1;
  28392. var date = 1;
  28393. var hour = 0;
  28394. var minute = 0;
  28395. if (type === 'max') {
  28396. month = 12;
  28397. date = getMonthEndDay(value.getFullYear(), value.getMonth() + 1);
  28398. hour = 23;
  28399. minute = 59;
  28400. }
  28401. if (value.getFullYear() === year) {
  28402. month = boundary.getMonth() + 1;
  28403. if (value.getMonth() + 1 === month) {
  28404. date = boundary.getDate();
  28405. if (value.getDate() === date) {
  28406. hour = boundary.getHours();
  28407. if (value.getHours() === hour) {
  28408. minute = boundary.getMinutes();
  28409. }
  28410. }
  28411. }
  28412. }
  28413. 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;
  28414. },
  28415. onCancel: function onCancel() {
  28416. this.$emit('cancel');
  28417. },
  28418. onConfirm: function onConfirm() {
  28419. this.$emit('confirm', this.data.innerValue);
  28420. },
  28421. onChange: function onChange() {
  28422. var _this2 = this;
  28423. var data = this.data;
  28424. var value;
  28425. var picker = this.getPicker();
  28426. var originColumns = this.getOriginColumns();
  28427. if (data.type === 'time') {
  28428. var indexes = picker.getIndexes();
  28429. value = "".concat(+originColumns[0].values[indexes[0]], ":").concat(+originColumns[1].values[indexes[1]]);
  28430. } else {
  28431. var _indexes = picker.getIndexes();
  28432. var values = _indexes.map(function (value, index) {
  28433. return originColumns[index].values[value];
  28434. });
  28435. var year = getTrueValue(values[0]);
  28436. var month = getTrueValue(values[1]);
  28437. var maxDate = getMonthEndDay(year, month);
  28438. var date = getTrueValue(values[2]);
  28439. if (data.type === 'year-month') {
  28440. date = 1;
  28441. }
  28442. date = date > maxDate ? maxDate : date;
  28443. var hour = 0;
  28444. var minute = 0;
  28445. if (data.type === 'datetime') {
  28446. hour = getTrueValue(values[3]);
  28447. minute = getTrueValue(values[4]);
  28448. }
  28449. value = new Date(year, month - 1, date, hour, minute);
  28450. }
  28451. value = this.correctValue(value);
  28452. this.updateColumnValue(value).then(function () {
  28453. _this2.$emit('input', value);
  28454. _this2.$emit('change', picker);
  28455. });
  28456. },
  28457. updateColumnValue: function updateColumnValue(value) {
  28458. var _this3 = this;
  28459. var values = [];
  28460. var type = this.data.type;
  28461. var formatter = this.data.formatter || defaultFormatter;
  28462. var picker = this.getPicker();
  28463. if (type === 'time') {
  28464. var pair = value.split(':');
  28465. values = [formatter('hour', pair[0]), formatter('minute', pair[1])];
  28466. } else {
  28467. var date = new Date(value);
  28468. values = [formatter('year', "".concat(date.getFullYear())), formatter('month', padZero(date.getMonth() + 1))];
  28469. if (type === 'date') {
  28470. values.push(formatter('day', padZero(date.getDate())));
  28471. }
  28472. if (type === 'datetime') {
  28473. values.push(formatter('day', padZero(date.getDate())), formatter('hour', padZero(date.getHours())), formatter('minute', padZero(date.getMinutes())));
  28474. }
  28475. }
  28476. return this.set({
  28477. innerValue: value
  28478. }).then(function () {
  28479. return _this3.updateColumns();
  28480. }).then(function () {
  28481. return picker.setValues(values);
  28482. });
  28483. }
  28484. },
  28485. created: function created() {
  28486. var _this4 = this;
  28487. var innerValue = this.correctValue(this.data.value);
  28488. this.updateColumnValue(innerValue).then(function () {
  28489. _this4.$emit('input', innerValue);
  28490. });
  28491. }
  28492. });
  28493. /***/ }),
  28494. /***/ 648:
  28495. /*!**************************************************************************************!*\
  28496. !*** D:/AAAcompany_product/新建文件夹/product_wx/wxcomponents/weapp/dist/button/index.js ***!
  28497. \**************************************************************************************/
  28498. /*! no static exports found */
  28499. /***/ (function(module, exports, __webpack_require__) {
  28500. "use strict";
  28501. /* WEBPACK VAR INJECTION */(function(wx) {
  28502. var _component = __webpack_require__(/*! ../common/component */ 397);
  28503. var _button = __webpack_require__(/*! ../mixins/button */ 649);
  28504. var _version = __webpack_require__(/*! ../common/version */ 396);
  28505. var mixins = [_button.button];
  28506. if ((0, _version.canIUseFormFieldButton)()) {
  28507. mixins.push('wx://form-field-button');
  28508. }
  28509. (0, _component.VantComponent)({
  28510. mixins: mixins,
  28511. classes: ['hover-class', 'loading-class'],
  28512. data: {
  28513. baseStyle: ''
  28514. },
  28515. props: {
  28516. formType: String,
  28517. icon: String,
  28518. classPrefix: {
  28519. type: String,
  28520. value: 'van-icon'
  28521. },
  28522. plain: Boolean,
  28523. block: Boolean,
  28524. round: Boolean,
  28525. square: Boolean,
  28526. loading: Boolean,
  28527. hairline: Boolean,
  28528. disabled: Boolean,
  28529. loadingText: String,
  28530. customStyle: String,
  28531. loadingType: {
  28532. type: String,
  28533. value: 'circular'
  28534. },
  28535. type: {
  28536. type: String,
  28537. value: 'default'
  28538. },
  28539. dataset: null,
  28540. size: {
  28541. type: String,
  28542. value: 'normal'
  28543. },
  28544. loadingSize: {
  28545. type: String,
  28546. value: '20px'
  28547. },
  28548. color: String
  28549. },
  28550. methods: {
  28551. onClick: function onClick(event) {
  28552. var _this = this;
  28553. this.$emit('click', event);
  28554. var _this$data = this.data,
  28555. canIUseGetUserProfile = _this$data.canIUseGetUserProfile,
  28556. openType = _this$data.openType,
  28557. getUserProfileDesc = _this$data.getUserProfileDesc,
  28558. lang = _this$data.lang;
  28559. if (openType === 'getUserInfo' && canIUseGetUserProfile) {
  28560. wx.getUserProfile({
  28561. desc: getUserProfileDesc || ' ',
  28562. lang: lang || 'en',
  28563. complete: function complete(userProfile) {
  28564. _this.$emit('getuserinfo', userProfile);
  28565. }
  28566. });
  28567. }
  28568. }
  28569. }
  28570. });
  28571. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/wx.js */ 1)["default"]))
  28572. /***/ }),
  28573. /***/ 649:
  28574. /*!***************************************************************************************!*\
  28575. !*** D:/AAAcompany_product/新建文件夹/product_wx/wxcomponents/weapp/dist/mixins/button.js ***!
  28576. \***************************************************************************************/
  28577. /*! no static exports found */
  28578. /***/ (function(module, exports, __webpack_require__) {
  28579. "use strict";
  28580. Object.defineProperty(exports, "__esModule", {
  28581. value: true
  28582. });
  28583. exports.button = void 0;
  28584. var _version = __webpack_require__(/*! ../common/version */ 396);
  28585. var button = Behavior({
  28586. externalClasses: ['hover-class'],
  28587. properties: {
  28588. id: String,
  28589. lang: String,
  28590. businessId: Number,
  28591. sessionFrom: String,
  28592. sendMessageTitle: String,
  28593. sendMessagePath: String,
  28594. sendMessageImg: String,
  28595. showMessageCard: Boolean,
  28596. appParameter: String,
  28597. ariaLabel: String,
  28598. openType: String,
  28599. getUserProfileDesc: String
  28600. },
  28601. data: {
  28602. canIUseGetUserProfile: (0, _version.canIUseGetUserProfile)()
  28603. },
  28604. methods: {
  28605. onGetUserInfo: function onGetUserInfo(event) {
  28606. this.triggerEvent('getuserinfo', event.detail);
  28607. },
  28608. onContact: function onContact(event) {
  28609. this.triggerEvent('contact', event.detail);
  28610. },
  28611. onGetPhoneNumber: function onGetPhoneNumber(event) {
  28612. this.triggerEvent('getphonenumber', event.detail);
  28613. },
  28614. onError: function onError(event) {
  28615. this.triggerEvent('error', event.detail);
  28616. },
  28617. onLaunchApp: function onLaunchApp(event) {
  28618. this.triggerEvent('launchapp', event.detail);
  28619. },
  28620. onOpenSetting: function onOpenSetting(event) {
  28621. this.triggerEvent('opensetting', event.detail);
  28622. },
  28623. onChooseAvatar: function onChooseAvatar(event) {
  28624. this.triggerEvent('chooseavatar', event.detail);
  28625. }
  28626. }
  28627. });
  28628. exports.button = button;
  28629. /***/ }),
  28630. /***/ 65:
  28631. /*!******************************************!*\
  28632. !*** ./node_modules/qs/lib/stringify.js ***!
  28633. \******************************************/
  28634. /*! no static exports found */
  28635. /***/ (function(module, exports, __webpack_require__) {
  28636. "use strict";
  28637. var getSideChannel = __webpack_require__(/*! side-channel */ 66);
  28638. var utils = __webpack_require__(/*! ./utils */ 77);
  28639. var formats = __webpack_require__(/*! ./formats */ 78);
  28640. var has = Object.prototype.hasOwnProperty;
  28641. var arrayPrefixGenerators = {
  28642. brackets: function brackets(prefix) {
  28643. return prefix + '[]';
  28644. },
  28645. comma: 'comma',
  28646. indices: function indices(prefix, key) {
  28647. return prefix + '[' + key + ']';
  28648. },
  28649. repeat: function repeat(prefix) {
  28650. return prefix;
  28651. }
  28652. };
  28653. var isArray = Array.isArray;
  28654. var split = String.prototype.split;
  28655. var push = Array.prototype.push;
  28656. var pushToArray = function (arr, valueOrArray) {
  28657. push.apply(arr, isArray(valueOrArray) ? valueOrArray : [valueOrArray]);
  28658. };
  28659. var toISO = Date.prototype.toISOString;
  28660. var defaultFormat = formats['default'];
  28661. var defaults = {
  28662. addQueryPrefix: false,
  28663. allowDots: false,
  28664. charset: 'utf-8',
  28665. charsetSentinel: false,
  28666. delimiter: '&',
  28667. encode: true,
  28668. encoder: utils.encode,
  28669. encodeValuesOnly: false,
  28670. format: defaultFormat,
  28671. formatter: formats.formatters[defaultFormat],
  28672. // deprecated
  28673. indices: false,
  28674. serializeDate: function serializeDate(date) {
  28675. return toISO.call(date);
  28676. },
  28677. skipNulls: false,
  28678. strictNullHandling: false
  28679. };
  28680. var isNonNullishPrimitive = function isNonNullishPrimitive(v) {
  28681. return typeof v === 'string'
  28682. || typeof v === 'number'
  28683. || typeof v === 'boolean'
  28684. || typeof v === 'symbol'
  28685. || typeof v === 'bigint';
  28686. };
  28687. var sentinel = {};
  28688. var stringify = function stringify(
  28689. object,
  28690. prefix,
  28691. generateArrayPrefix,
  28692. commaRoundTrip,
  28693. strictNullHandling,
  28694. skipNulls,
  28695. encoder,
  28696. filter,
  28697. sort,
  28698. allowDots,
  28699. serializeDate,
  28700. format,
  28701. formatter,
  28702. encodeValuesOnly,
  28703. charset,
  28704. sideChannel
  28705. ) {
  28706. var obj = object;
  28707. var tmpSc = sideChannel;
  28708. var step = 0;
  28709. var findFlag = false;
  28710. while ((tmpSc = tmpSc.get(sentinel)) !== void undefined && !findFlag) {
  28711. // Where object last appeared in the ref tree
  28712. var pos = tmpSc.get(object);
  28713. step += 1;
  28714. if (typeof pos !== 'undefined') {
  28715. if (pos === step) {
  28716. throw new RangeError('Cyclic object value');
  28717. } else {
  28718. findFlag = true; // Break while
  28719. }
  28720. }
  28721. if (typeof tmpSc.get(sentinel) === 'undefined') {
  28722. step = 0;
  28723. }
  28724. }
  28725. if (typeof filter === 'function') {
  28726. obj = filter(prefix, obj);
  28727. } else if (obj instanceof Date) {
  28728. obj = serializeDate(obj);
  28729. } else if (generateArrayPrefix === 'comma' && isArray(obj)) {
  28730. obj = utils.maybeMap(obj, function (value) {
  28731. if (value instanceof Date) {
  28732. return serializeDate(value);
  28733. }
  28734. return value;
  28735. });
  28736. }
  28737. if (obj === null) {
  28738. if (strictNullHandling) {
  28739. return encoder && !encodeValuesOnly ? encoder(prefix, defaults.encoder, charset, 'key', format) : prefix;
  28740. }
  28741. obj = '';
  28742. }
  28743. if (isNonNullishPrimitive(obj) || utils.isBuffer(obj)) {
  28744. if (encoder) {
  28745. var keyValue = encodeValuesOnly ? prefix : encoder(prefix, defaults.encoder, charset, 'key', format);
  28746. if (generateArrayPrefix === 'comma' && encodeValuesOnly) {
  28747. var valuesArray = split.call(String(obj), ',');
  28748. var valuesJoined = '';
  28749. for (var i = 0; i < valuesArray.length; ++i) {
  28750. valuesJoined += (i === 0 ? '' : ',') + formatter(encoder(valuesArray[i], defaults.encoder, charset, 'value', format));
  28751. }
  28752. return [formatter(keyValue) + (commaRoundTrip && isArray(obj) && valuesArray.length === 1 ? '[]' : '') + '=' + valuesJoined];
  28753. }
  28754. return [formatter(keyValue) + '=' + formatter(encoder(obj, defaults.encoder, charset, 'value', format))];
  28755. }
  28756. return [formatter(prefix) + '=' + formatter(String(obj))];
  28757. }
  28758. var values = [];
  28759. if (typeof obj === 'undefined') {
  28760. return values;
  28761. }
  28762. var objKeys;
  28763. if (generateArrayPrefix === 'comma' && isArray(obj)) {
  28764. // we need to join elements in
  28765. objKeys = [{ value: obj.length > 0 ? obj.join(',') || null : void undefined }];
  28766. } else if (isArray(filter)) {
  28767. objKeys = filter;
  28768. } else {
  28769. var keys = Object.keys(obj);
  28770. objKeys = sort ? keys.sort(sort) : keys;
  28771. }
  28772. var adjustedPrefix = commaRoundTrip && isArray(obj) && obj.length === 1 ? prefix + '[]' : prefix;
  28773. for (var j = 0; j < objKeys.length; ++j) {
  28774. var key = objKeys[j];
  28775. var value = typeof key === 'object' && typeof key.value !== 'undefined' ? key.value : obj[key];
  28776. if (skipNulls && value === null) {
  28777. continue;
  28778. }
  28779. var keyPrefix = isArray(obj)
  28780. ? typeof generateArrayPrefix === 'function' ? generateArrayPrefix(adjustedPrefix, key) : adjustedPrefix
  28781. : adjustedPrefix + (allowDots ? '.' + key : '[' + key + ']');
  28782. sideChannel.set(object, step);
  28783. var valueSideChannel = getSideChannel();
  28784. valueSideChannel.set(sentinel, sideChannel);
  28785. pushToArray(values, stringify(
  28786. value,
  28787. keyPrefix,
  28788. generateArrayPrefix,
  28789. commaRoundTrip,
  28790. strictNullHandling,
  28791. skipNulls,
  28792. encoder,
  28793. filter,
  28794. sort,
  28795. allowDots,
  28796. serializeDate,
  28797. format,
  28798. formatter,
  28799. encodeValuesOnly,
  28800. charset,
  28801. valueSideChannel
  28802. ));
  28803. }
  28804. return values;
  28805. };
  28806. var normalizeStringifyOptions = function normalizeStringifyOptions(opts) {
  28807. if (!opts) {
  28808. return defaults;
  28809. }
  28810. if (opts.encoder !== null && typeof opts.encoder !== 'undefined' && typeof opts.encoder !== 'function') {
  28811. throw new TypeError('Encoder has to be a function.');
  28812. }
  28813. var charset = opts.charset || defaults.charset;
  28814. if (typeof opts.charset !== 'undefined' && opts.charset !== 'utf-8' && opts.charset !== 'iso-8859-1') {
  28815. throw new TypeError('The charset option must be either utf-8, iso-8859-1, or undefined');
  28816. }
  28817. var format = formats['default'];
  28818. if (typeof opts.format !== 'undefined') {
  28819. if (!has.call(formats.formatters, opts.format)) {
  28820. throw new TypeError('Unknown format option provided.');
  28821. }
  28822. format = opts.format;
  28823. }
  28824. var formatter = formats.formatters[format];
  28825. var filter = defaults.filter;
  28826. if (typeof opts.filter === 'function' || isArray(opts.filter)) {
  28827. filter = opts.filter;
  28828. }
  28829. return {
  28830. addQueryPrefix: typeof opts.addQueryPrefix === 'boolean' ? opts.addQueryPrefix : defaults.addQueryPrefix,
  28831. allowDots: typeof opts.allowDots === 'undefined' ? defaults.allowDots : !!opts.allowDots,
  28832. charset: charset,
  28833. charsetSentinel: typeof opts.charsetSentinel === 'boolean' ? opts.charsetSentinel : defaults.charsetSentinel,
  28834. delimiter: typeof opts.delimiter === 'undefined' ? defaults.delimiter : opts.delimiter,
  28835. encode: typeof opts.encode === 'boolean' ? opts.encode : defaults.encode,
  28836. encoder: typeof opts.encoder === 'function' ? opts.encoder : defaults.encoder,
  28837. encodeValuesOnly: typeof opts.encodeValuesOnly === 'boolean' ? opts.encodeValuesOnly : defaults.encodeValuesOnly,
  28838. filter: filter,
  28839. format: format,
  28840. formatter: formatter,
  28841. serializeDate: typeof opts.serializeDate === 'function' ? opts.serializeDate : defaults.serializeDate,
  28842. skipNulls: typeof opts.skipNulls === 'boolean' ? opts.skipNulls : defaults.skipNulls,
  28843. sort: typeof opts.sort === 'function' ? opts.sort : null,
  28844. strictNullHandling: typeof opts.strictNullHandling === 'boolean' ? opts.strictNullHandling : defaults.strictNullHandling
  28845. };
  28846. };
  28847. module.exports = function (object, opts) {
  28848. var obj = object;
  28849. var options = normalizeStringifyOptions(opts);
  28850. var objKeys;
  28851. var filter;
  28852. if (typeof options.filter === 'function') {
  28853. filter = options.filter;
  28854. obj = filter('', obj);
  28855. } else if (isArray(options.filter)) {
  28856. filter = options.filter;
  28857. objKeys = filter;
  28858. }
  28859. var keys = [];
  28860. if (typeof obj !== 'object' || obj === null) {
  28861. return '';
  28862. }
  28863. var arrayFormat;
  28864. if (opts && opts.arrayFormat in arrayPrefixGenerators) {
  28865. arrayFormat = opts.arrayFormat;
  28866. } else if (opts && 'indices' in opts) {
  28867. arrayFormat = opts.indices ? 'indices' : 'repeat';
  28868. } else {
  28869. arrayFormat = 'indices';
  28870. }
  28871. var generateArrayPrefix = arrayPrefixGenerators[arrayFormat];
  28872. if (opts && 'commaRoundTrip' in opts && typeof opts.commaRoundTrip !== 'boolean') {
  28873. throw new TypeError('`commaRoundTrip` must be a boolean, or absent');
  28874. }
  28875. var commaRoundTrip = generateArrayPrefix === 'comma' && opts && opts.commaRoundTrip;
  28876. if (!objKeys) {
  28877. objKeys = Object.keys(obj);
  28878. }
  28879. if (options.sort) {
  28880. objKeys.sort(options.sort);
  28881. }
  28882. var sideChannel = getSideChannel();
  28883. for (var i = 0; i < objKeys.length; ++i) {
  28884. var key = objKeys[i];
  28885. if (options.skipNulls && obj[key] === null) {
  28886. continue;
  28887. }
  28888. pushToArray(keys, stringify(
  28889. obj[key],
  28890. key,
  28891. generateArrayPrefix,
  28892. commaRoundTrip,
  28893. options.strictNullHandling,
  28894. options.skipNulls,
  28895. options.encode ? options.encoder : null,
  28896. options.filter,
  28897. options.sort,
  28898. options.allowDots,
  28899. options.serializeDate,
  28900. options.format,
  28901. options.formatter,
  28902. options.encodeValuesOnly,
  28903. options.charset,
  28904. sideChannel
  28905. ));
  28906. }
  28907. var joined = keys.join(options.delimiter);
  28908. var prefix = options.addQueryPrefix === true ? '?' : '';
  28909. if (options.charsetSentinel) {
  28910. if (options.charset === 'iso-8859-1') {
  28911. // encodeURIComponent('&#10003;'), the "numeric entity" representation of a checkmark
  28912. prefix += 'utf8=%26%2310003%3B&';
  28913. } else {
  28914. // encodeURIComponent('✓')
  28915. prefix += 'utf8=%E2%9C%93&';
  28916. }
  28917. }
  28918. return joined.length > 0 ? prefix + joined : '';
  28919. };
  28920. /***/ }),
  28921. /***/ 650:
  28922. /*!***************************************************************************************!*\
  28923. !*** D:/AAAcompany_product/新建文件夹/product_wx/wxcomponents/weapp/dist/divider/index.js ***!
  28924. \***************************************************************************************/
  28925. /*! no static exports found */
  28926. /***/ (function(module, exports, __webpack_require__) {
  28927. "use strict";
  28928. var _component = __webpack_require__(/*! ../common/component */ 397);
  28929. (0, _component.VantComponent)({
  28930. props: {
  28931. dashed: Boolean,
  28932. hairline: Boolean,
  28933. contentPosition: String,
  28934. fontSize: String,
  28935. borderColor: String,
  28936. textColor: String,
  28937. customStyle: String
  28938. }
  28939. });
  28940. /***/ }),
  28941. /***/ 66:
  28942. /*!********************************************!*\
  28943. !*** ./node_modules/side-channel/index.js ***!
  28944. \********************************************/
  28945. /*! no static exports found */
  28946. /***/ (function(module, exports, __webpack_require__) {
  28947. "use strict";
  28948. var GetIntrinsic = __webpack_require__(/*! get-intrinsic */ 67);
  28949. var callBound = __webpack_require__(/*! call-bind/callBound */ 73);
  28950. var inspect = __webpack_require__(/*! object-inspect */ 75);
  28951. var $TypeError = GetIntrinsic('%TypeError%');
  28952. var $WeakMap = GetIntrinsic('%WeakMap%', true);
  28953. var $Map = GetIntrinsic('%Map%', true);
  28954. var $weakMapGet = callBound('WeakMap.prototype.get', true);
  28955. var $weakMapSet = callBound('WeakMap.prototype.set', true);
  28956. var $weakMapHas = callBound('WeakMap.prototype.has', true);
  28957. var $mapGet = callBound('Map.prototype.get', true);
  28958. var $mapSet = callBound('Map.prototype.set', true);
  28959. var $mapHas = callBound('Map.prototype.has', true);
  28960. /*
  28961. * This function traverses the list returning the node corresponding to the
  28962. * given key.
  28963. *
  28964. * That node is also moved to the head of the list, so that if it's accessed
  28965. * again we don't need to traverse the whole list. By doing so, all the recently
  28966. * used nodes can be accessed relatively quickly.
  28967. */
  28968. var listGetNode = function (list, key) { // eslint-disable-line consistent-return
  28969. for (var prev = list, curr; (curr = prev.next) !== null; prev = curr) {
  28970. if (curr.key === key) {
  28971. prev.next = curr.next;
  28972. curr.next = list.next;
  28973. list.next = curr; // eslint-disable-line no-param-reassign
  28974. return curr;
  28975. }
  28976. }
  28977. };
  28978. var listGet = function (objects, key) {
  28979. var node = listGetNode(objects, key);
  28980. return node && node.value;
  28981. };
  28982. var listSet = function (objects, key, value) {
  28983. var node = listGetNode(objects, key);
  28984. if (node) {
  28985. node.value = value;
  28986. } else {
  28987. // Prepend the new node to the beginning of the list
  28988. objects.next = { // eslint-disable-line no-param-reassign
  28989. key: key,
  28990. next: objects.next,
  28991. value: value
  28992. };
  28993. }
  28994. };
  28995. var listHas = function (objects, key) {
  28996. return !!listGetNode(objects, key);
  28997. };
  28998. module.exports = function getSideChannel() {
  28999. var $wm;
  29000. var $m;
  29001. var $o;
  29002. var channel = {
  29003. assert: function (key) {
  29004. if (!channel.has(key)) {
  29005. throw new $TypeError('Side channel does not contain ' + inspect(key));
  29006. }
  29007. },
  29008. get: function (key) { // eslint-disable-line consistent-return
  29009. if ($WeakMap && key && (typeof key === 'object' || typeof key === 'function')) {
  29010. if ($wm) {
  29011. return $weakMapGet($wm, key);
  29012. }
  29013. } else if ($Map) {
  29014. if ($m) {
  29015. return $mapGet($m, key);
  29016. }
  29017. } else {
  29018. if ($o) { // eslint-disable-line no-lonely-if
  29019. return listGet($o, key);
  29020. }
  29021. }
  29022. },
  29023. has: function (key) {
  29024. if ($WeakMap && key && (typeof key === 'object' || typeof key === 'function')) {
  29025. if ($wm) {
  29026. return $weakMapHas($wm, key);
  29027. }
  29028. } else if ($Map) {
  29029. if ($m) {
  29030. return $mapHas($m, key);
  29031. }
  29032. } else {
  29033. if ($o) { // eslint-disable-line no-lonely-if
  29034. return listHas($o, key);
  29035. }
  29036. }
  29037. return false;
  29038. },
  29039. set: function (key, value) {
  29040. if ($WeakMap && key && (typeof key === 'object' || typeof key === 'function')) {
  29041. if (!$wm) {
  29042. $wm = new $WeakMap();
  29043. }
  29044. $weakMapSet($wm, key, value);
  29045. } else if ($Map) {
  29046. if (!$m) {
  29047. $m = new $Map();
  29048. }
  29049. $mapSet($m, key, value);
  29050. } else {
  29051. if (!$o) {
  29052. /*
  29053. * Initialize the linked list as an empty node, so that we don't have
  29054. * to special-case handling of the first node: we can always refer to
  29055. * it as (previous node).next, instead of something like (list).head
  29056. */
  29057. $o = { key: {}, next: null };
  29058. }
  29059. listSet($o, key, value);
  29060. }
  29061. }
  29062. };
  29063. return channel;
  29064. };
  29065. /***/ }),
  29066. /***/ 67:
  29067. /*!*********************************************!*\
  29068. !*** ./node_modules/get-intrinsic/index.js ***!
  29069. \*********************************************/
  29070. /*! no static exports found */
  29071. /***/ (function(module, exports, __webpack_require__) {
  29072. "use strict";
  29073. var undefined;
  29074. var $SyntaxError = SyntaxError;
  29075. var $Function = Function;
  29076. var $TypeError = TypeError;
  29077. // eslint-disable-next-line consistent-return
  29078. var getEvalledConstructor = function (expressionSyntax) {
  29079. try {
  29080. return $Function('"use strict"; return (' + expressionSyntax + ').constructor;')();
  29081. } catch (e) {}
  29082. };
  29083. var $gOPD = Object.getOwnPropertyDescriptor;
  29084. if ($gOPD) {
  29085. try {
  29086. $gOPD({}, '');
  29087. } catch (e) {
  29088. $gOPD = null; // this is IE 8, which has a broken gOPD
  29089. }
  29090. }
  29091. var throwTypeError = function () {
  29092. throw new $TypeError();
  29093. };
  29094. var ThrowTypeError = $gOPD
  29095. ? (function () {
  29096. try {
  29097. // eslint-disable-next-line no-unused-expressions, no-caller, no-restricted-properties
  29098. arguments.callee; // IE 8 does not throw here
  29099. return throwTypeError;
  29100. } catch (calleeThrows) {
  29101. try {
  29102. // IE 8 throws on Object.getOwnPropertyDescriptor(arguments, '')
  29103. return $gOPD(arguments, 'callee').get;
  29104. } catch (gOPDthrows) {
  29105. return throwTypeError;
  29106. }
  29107. }
  29108. }())
  29109. : throwTypeError;
  29110. var hasSymbols = __webpack_require__(/*! has-symbols */ 68)();
  29111. var getProto = Object.getPrototypeOf || function (x) { return x.__proto__; }; // eslint-disable-line no-proto
  29112. var needsEval = {};
  29113. var TypedArray = typeof Uint8Array === 'undefined' ? undefined : getProto(Uint8Array);
  29114. var INTRINSICS = {
  29115. '%AggregateError%': typeof AggregateError === 'undefined' ? undefined : AggregateError,
  29116. '%Array%': Array,
  29117. '%ArrayBuffer%': typeof ArrayBuffer === 'undefined' ? undefined : ArrayBuffer,
  29118. '%ArrayIteratorPrototype%': hasSymbols ? getProto([][Symbol.iterator]()) : undefined,
  29119. '%AsyncFromSyncIteratorPrototype%': undefined,
  29120. '%AsyncFunction%': needsEval,
  29121. '%AsyncGenerator%': needsEval,
  29122. '%AsyncGeneratorFunction%': needsEval,
  29123. '%AsyncIteratorPrototype%': needsEval,
  29124. '%Atomics%': typeof Atomics === 'undefined' ? undefined : Atomics,
  29125. '%BigInt%': typeof BigInt === 'undefined' ? undefined : BigInt,
  29126. '%Boolean%': Boolean,
  29127. '%DataView%': typeof DataView === 'undefined' ? undefined : DataView,
  29128. '%Date%': Date,
  29129. '%decodeURI%': decodeURI,
  29130. '%decodeURIComponent%': decodeURIComponent,
  29131. '%encodeURI%': encodeURI,
  29132. '%encodeURIComponent%': encodeURIComponent,
  29133. '%Error%': Error,
  29134. '%eval%': eval, // eslint-disable-line no-eval
  29135. '%EvalError%': EvalError,
  29136. '%Float32Array%': typeof Float32Array === 'undefined' ? undefined : Float32Array,
  29137. '%Float64Array%': typeof Float64Array === 'undefined' ? undefined : Float64Array,
  29138. '%FinalizationRegistry%': typeof FinalizationRegistry === 'undefined' ? undefined : FinalizationRegistry,
  29139. '%Function%': $Function,
  29140. '%GeneratorFunction%': needsEval,
  29141. '%Int8Array%': typeof Int8Array === 'undefined' ? undefined : Int8Array,
  29142. '%Int16Array%': typeof Int16Array === 'undefined' ? undefined : Int16Array,
  29143. '%Int32Array%': typeof Int32Array === 'undefined' ? undefined : Int32Array,
  29144. '%isFinite%': isFinite,
  29145. '%isNaN%': isNaN,
  29146. '%IteratorPrototype%': hasSymbols ? getProto(getProto([][Symbol.iterator]())) : undefined,
  29147. '%JSON%': typeof JSON === 'object' ? JSON : undefined,
  29148. '%Map%': typeof Map === 'undefined' ? undefined : Map,
  29149. '%MapIteratorPrototype%': typeof Map === 'undefined' || !hasSymbols ? undefined : getProto(new Map()[Symbol.iterator]()),
  29150. '%Math%': Math,
  29151. '%Number%': Number,
  29152. '%Object%': Object,
  29153. '%parseFloat%': parseFloat,
  29154. '%parseInt%': parseInt,
  29155. '%Promise%': typeof Promise === 'undefined' ? undefined : Promise,
  29156. '%Proxy%': typeof Proxy === 'undefined' ? undefined : Proxy,
  29157. '%RangeError%': RangeError,
  29158. '%ReferenceError%': ReferenceError,
  29159. '%Reflect%': typeof Reflect === 'undefined' ? undefined : Reflect,
  29160. '%RegExp%': RegExp,
  29161. '%Set%': typeof Set === 'undefined' ? undefined : Set,
  29162. '%SetIteratorPrototype%': typeof Set === 'undefined' || !hasSymbols ? undefined : getProto(new Set()[Symbol.iterator]()),
  29163. '%SharedArrayBuffer%': typeof SharedArrayBuffer === 'undefined' ? undefined : SharedArrayBuffer,
  29164. '%String%': String,
  29165. '%StringIteratorPrototype%': hasSymbols ? getProto(''[Symbol.iterator]()) : undefined,
  29166. '%Symbol%': hasSymbols ? Symbol : undefined,
  29167. '%SyntaxError%': $SyntaxError,
  29168. '%ThrowTypeError%': ThrowTypeError,
  29169. '%TypedArray%': TypedArray,
  29170. '%TypeError%': $TypeError,
  29171. '%Uint8Array%': typeof Uint8Array === 'undefined' ? undefined : Uint8Array,
  29172. '%Uint8ClampedArray%': typeof Uint8ClampedArray === 'undefined' ? undefined : Uint8ClampedArray,
  29173. '%Uint16Array%': typeof Uint16Array === 'undefined' ? undefined : Uint16Array,
  29174. '%Uint32Array%': typeof Uint32Array === 'undefined' ? undefined : Uint32Array,
  29175. '%URIError%': URIError,
  29176. '%WeakMap%': typeof WeakMap === 'undefined' ? undefined : WeakMap,
  29177. '%WeakRef%': typeof WeakRef === 'undefined' ? undefined : WeakRef,
  29178. '%WeakSet%': typeof WeakSet === 'undefined' ? undefined : WeakSet
  29179. };
  29180. var doEval = function doEval(name) {
  29181. var value;
  29182. if (name === '%AsyncFunction%') {
  29183. value = getEvalledConstructor('async function () {}');
  29184. } else if (name === '%GeneratorFunction%') {
  29185. value = getEvalledConstructor('function* () {}');
  29186. } else if (name === '%AsyncGeneratorFunction%') {
  29187. value = getEvalledConstructor('async function* () {}');
  29188. } else if (name === '%AsyncGenerator%') {
  29189. var fn = doEval('%AsyncGeneratorFunction%');
  29190. if (fn) {
  29191. value = fn.prototype;
  29192. }
  29193. } else if (name === '%AsyncIteratorPrototype%') {
  29194. var gen = doEval('%AsyncGenerator%');
  29195. if (gen) {
  29196. value = getProto(gen.prototype);
  29197. }
  29198. }
  29199. INTRINSICS[name] = value;
  29200. return value;
  29201. };
  29202. var LEGACY_ALIASES = {
  29203. '%ArrayBufferPrototype%': ['ArrayBuffer', 'prototype'],
  29204. '%ArrayPrototype%': ['Array', 'prototype'],
  29205. '%ArrayProto_entries%': ['Array', 'prototype', 'entries'],
  29206. '%ArrayProto_forEach%': ['Array', 'prototype', 'forEach'],
  29207. '%ArrayProto_keys%': ['Array', 'prototype', 'keys'],
  29208. '%ArrayProto_values%': ['Array', 'prototype', 'values'],
  29209. '%AsyncFunctionPrototype%': ['AsyncFunction', 'prototype'],
  29210. '%AsyncGenerator%': ['AsyncGeneratorFunction', 'prototype'],
  29211. '%AsyncGeneratorPrototype%': ['AsyncGeneratorFunction', 'prototype', 'prototype'],
  29212. '%BooleanPrototype%': ['Boolean', 'prototype'],
  29213. '%DataViewPrototype%': ['DataView', 'prototype'],
  29214. '%DatePrototype%': ['Date', 'prototype'],
  29215. '%ErrorPrototype%': ['Error', 'prototype'],
  29216. '%EvalErrorPrototype%': ['EvalError', 'prototype'],
  29217. '%Float32ArrayPrototype%': ['Float32Array', 'prototype'],
  29218. '%Float64ArrayPrototype%': ['Float64Array', 'prototype'],
  29219. '%FunctionPrototype%': ['Function', 'prototype'],
  29220. '%Generator%': ['GeneratorFunction', 'prototype'],
  29221. '%GeneratorPrototype%': ['GeneratorFunction', 'prototype', 'prototype'],
  29222. '%Int8ArrayPrototype%': ['Int8Array', 'prototype'],
  29223. '%Int16ArrayPrototype%': ['Int16Array', 'prototype'],
  29224. '%Int32ArrayPrototype%': ['Int32Array', 'prototype'],
  29225. '%JSONParse%': ['JSON', 'parse'],
  29226. '%JSONStringify%': ['JSON', 'stringify'],
  29227. '%MapPrototype%': ['Map', 'prototype'],
  29228. '%NumberPrototype%': ['Number', 'prototype'],
  29229. '%ObjectPrototype%': ['Object', 'prototype'],
  29230. '%ObjProto_toString%': ['Object', 'prototype', 'toString'],
  29231. '%ObjProto_valueOf%': ['Object', 'prototype', 'valueOf'],
  29232. '%PromisePrototype%': ['Promise', 'prototype'],
  29233. '%PromiseProto_then%': ['Promise', 'prototype', 'then'],
  29234. '%Promise_all%': ['Promise', 'all'],
  29235. '%Promise_reject%': ['Promise', 'reject'],
  29236. '%Promise_resolve%': ['Promise', 'resolve'],
  29237. '%RangeErrorPrototype%': ['RangeError', 'prototype'],
  29238. '%ReferenceErrorPrototype%': ['ReferenceError', 'prototype'],
  29239. '%RegExpPrototype%': ['RegExp', 'prototype'],
  29240. '%SetPrototype%': ['Set', 'prototype'],
  29241. '%SharedArrayBufferPrototype%': ['SharedArrayBuffer', 'prototype'],
  29242. '%StringPrototype%': ['String', 'prototype'],
  29243. '%SymbolPrototype%': ['Symbol', 'prototype'],
  29244. '%SyntaxErrorPrototype%': ['SyntaxError', 'prototype'],
  29245. '%TypedArrayPrototype%': ['TypedArray', 'prototype'],
  29246. '%TypeErrorPrototype%': ['TypeError', 'prototype'],
  29247. '%Uint8ArrayPrototype%': ['Uint8Array', 'prototype'],
  29248. '%Uint8ClampedArrayPrototype%': ['Uint8ClampedArray', 'prototype'],
  29249. '%Uint16ArrayPrototype%': ['Uint16Array', 'prototype'],
  29250. '%Uint32ArrayPrototype%': ['Uint32Array', 'prototype'],
  29251. '%URIErrorPrototype%': ['URIError', 'prototype'],
  29252. '%WeakMapPrototype%': ['WeakMap', 'prototype'],
  29253. '%WeakSetPrototype%': ['WeakSet', 'prototype']
  29254. };
  29255. var bind = __webpack_require__(/*! function-bind */ 70);
  29256. var hasOwn = __webpack_require__(/*! has */ 72);
  29257. var $concat = bind.call(Function.call, Array.prototype.concat);
  29258. var $spliceApply = bind.call(Function.apply, Array.prototype.splice);
  29259. var $replace = bind.call(Function.call, String.prototype.replace);
  29260. var $strSlice = bind.call(Function.call, String.prototype.slice);
  29261. var $exec = bind.call(Function.call, RegExp.prototype.exec);
  29262. /* adapted from https://github.com/lodash/lodash/blob/4.17.15/dist/lodash.js#L6735-L6744 */
  29263. var rePropName = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g;
  29264. var reEscapeChar = /\\(\\)?/g; /** Used to match backslashes in property paths. */
  29265. var stringToPath = function stringToPath(string) {
  29266. var first = $strSlice(string, 0, 1);
  29267. var last = $strSlice(string, -1);
  29268. if (first === '%' && last !== '%') {
  29269. throw new $SyntaxError('invalid intrinsic syntax, expected closing `%`');
  29270. } else if (last === '%' && first !== '%') {
  29271. throw new $SyntaxError('invalid intrinsic syntax, expected opening `%`');
  29272. }
  29273. var result = [];
  29274. $replace(string, rePropName, function (match, number, quote, subString) {
  29275. result[result.length] = quote ? $replace(subString, reEscapeChar, '$1') : number || match;
  29276. });
  29277. return result;
  29278. };
  29279. /* end adaptation */
  29280. var getBaseIntrinsic = function getBaseIntrinsic(name, allowMissing) {
  29281. var intrinsicName = name;
  29282. var alias;
  29283. if (hasOwn(LEGACY_ALIASES, intrinsicName)) {
  29284. alias = LEGACY_ALIASES[intrinsicName];
  29285. intrinsicName = '%' + alias[0] + '%';
  29286. }
  29287. if (hasOwn(INTRINSICS, intrinsicName)) {
  29288. var value = INTRINSICS[intrinsicName];
  29289. if (value === needsEval) {
  29290. value = doEval(intrinsicName);
  29291. }
  29292. if (typeof value === 'undefined' && !allowMissing) {
  29293. throw new $TypeError('intrinsic ' + name + ' exists, but is not available. Please file an issue!');
  29294. }
  29295. return {
  29296. alias: alias,
  29297. name: intrinsicName,
  29298. value: value
  29299. };
  29300. }
  29301. throw new $SyntaxError('intrinsic ' + name + ' does not exist!');
  29302. };
  29303. module.exports = function GetIntrinsic(name, allowMissing) {
  29304. if (typeof name !== 'string' || name.length === 0) {
  29305. throw new $TypeError('intrinsic name must be a non-empty string');
  29306. }
  29307. if (arguments.length > 1 && typeof allowMissing !== 'boolean') {
  29308. throw new $TypeError('"allowMissing" argument must be a boolean');
  29309. }
  29310. if ($exec(/^%?[^%]*%?$/, name) === null) {
  29311. throw new $SyntaxError('`%` may not be present anywhere but at the beginning and end of the intrinsic name');
  29312. }
  29313. var parts = stringToPath(name);
  29314. var intrinsicBaseName = parts.length > 0 ? parts[0] : '';
  29315. var intrinsic = getBaseIntrinsic('%' + intrinsicBaseName + '%', allowMissing);
  29316. var intrinsicRealName = intrinsic.name;
  29317. var value = intrinsic.value;
  29318. var skipFurtherCaching = false;
  29319. var alias = intrinsic.alias;
  29320. if (alias) {
  29321. intrinsicBaseName = alias[0];
  29322. $spliceApply(parts, $concat([0, 1], alias));
  29323. }
  29324. for (var i = 1, isOwn = true; i < parts.length; i += 1) {
  29325. var part = parts[i];
  29326. var first = $strSlice(part, 0, 1);
  29327. var last = $strSlice(part, -1);
  29328. if (
  29329. (
  29330. (first === '"' || first === "'" || first === '`')
  29331. || (last === '"' || last === "'" || last === '`')
  29332. )
  29333. && first !== last
  29334. ) {
  29335. throw new $SyntaxError('property names with quotes must have matching quotes');
  29336. }
  29337. if (part === 'constructor' || !isOwn) {
  29338. skipFurtherCaching = true;
  29339. }
  29340. intrinsicBaseName += '.' + part;
  29341. intrinsicRealName = '%' + intrinsicBaseName + '%';
  29342. if (hasOwn(INTRINSICS, intrinsicRealName)) {
  29343. value = INTRINSICS[intrinsicRealName];
  29344. } else if (value != null) {
  29345. if (!(part in value)) {
  29346. if (!allowMissing) {
  29347. throw new $TypeError('base intrinsic for ' + name + ' exists, but the property is not available.');
  29348. }
  29349. return void undefined;
  29350. }
  29351. if ($gOPD && (i + 1) >= parts.length) {
  29352. var desc = $gOPD(value, part);
  29353. isOwn = !!desc;
  29354. // By convention, when a data property is converted to an accessor
  29355. // property to emulate a data property that does not suffer from
  29356. // the override mistake, that accessor's getter is marked with
  29357. // an `originalValue` property. Here, when we detect this, we
  29358. // uphold the illusion by pretending to see that original data
  29359. // property, i.e., returning the value rather than the getter
  29360. // itself.
  29361. if (isOwn && 'get' in desc && !('originalValue' in desc.get)) {
  29362. value = desc.get;
  29363. } else {
  29364. value = value[part];
  29365. }
  29366. } else {
  29367. isOwn = hasOwn(value, part);
  29368. value = value[part];
  29369. }
  29370. if (isOwn && !skipFurtherCaching) {
  29371. INTRINSICS[intrinsicRealName] = value;
  29372. }
  29373. }
  29374. }
  29375. return value;
  29376. };
  29377. /***/ }),
  29378. /***/ 68:
  29379. /*!*******************************************!*\
  29380. !*** ./node_modules/has-symbols/index.js ***!
  29381. \*******************************************/
  29382. /*! no static exports found */
  29383. /***/ (function(module, exports, __webpack_require__) {
  29384. "use strict";
  29385. var origSymbol = typeof Symbol !== 'undefined' && Symbol;
  29386. var hasSymbolSham = __webpack_require__(/*! ./shams */ 69);
  29387. module.exports = function hasNativeSymbols() {
  29388. if (typeof origSymbol !== 'function') { return false; }
  29389. if (typeof Symbol !== 'function') { return false; }
  29390. if (typeof origSymbol('foo') !== 'symbol') { return false; }
  29391. if (typeof Symbol('bar') !== 'symbol') { return false; }
  29392. return hasSymbolSham();
  29393. };
  29394. /***/ }),
  29395. /***/ 69:
  29396. /*!*******************************************!*\
  29397. !*** ./node_modules/has-symbols/shams.js ***!
  29398. \*******************************************/
  29399. /*! no static exports found */
  29400. /***/ (function(module, exports, __webpack_require__) {
  29401. "use strict";
  29402. /* eslint complexity: [2, 18], max-statements: [2, 33] */
  29403. module.exports = function hasSymbols() {
  29404. if (typeof Symbol !== 'function' || typeof Object.getOwnPropertySymbols !== 'function') { return false; }
  29405. if (typeof Symbol.iterator === 'symbol') { return true; }
  29406. var obj = {};
  29407. var sym = Symbol('test');
  29408. var symObj = Object(sym);
  29409. if (typeof sym === 'string') { return false; }
  29410. if (Object.prototype.toString.call(sym) !== '[object Symbol]') { return false; }
  29411. if (Object.prototype.toString.call(symObj) !== '[object Symbol]') { return false; }
  29412. // temp disabled per https://github.com/ljharb/object.assign/issues/17
  29413. // if (sym instanceof Symbol) { return false; }
  29414. // temp disabled per https://github.com/WebReflection/get-own-property-symbols/issues/4
  29415. // if (!(symObj instanceof Symbol)) { return false; }
  29416. // if (typeof Symbol.prototype.toString !== 'function') { return false; }
  29417. // if (String(sym) !== Symbol.prototype.toString.call(sym)) { return false; }
  29418. var symVal = 42;
  29419. obj[sym] = symVal;
  29420. for (sym in obj) { return false; } // eslint-disable-line no-restricted-syntax, no-unreachable-loop
  29421. if (typeof Object.keys === 'function' && Object.keys(obj).length !== 0) { return false; }
  29422. if (typeof Object.getOwnPropertyNames === 'function' && Object.getOwnPropertyNames(obj).length !== 0) { return false; }
  29423. var syms = Object.getOwnPropertySymbols(obj);
  29424. if (syms.length !== 1 || syms[0] !== sym) { return false; }
  29425. if (!Object.prototype.propertyIsEnumerable.call(obj, sym)) { return false; }
  29426. if (typeof Object.getOwnPropertyDescriptor === 'function') {
  29427. var descriptor = Object.getOwnPropertyDescriptor(obj, sym);
  29428. if (descriptor.value !== symVal || descriptor.enumerable !== true) { return false; }
  29429. }
  29430. return true;
  29431. };
  29432. /***/ }),
  29433. /***/ 7:
  29434. /*!*********************************************************************!*\
  29435. !*** ./node_modules/@babel/runtime/helpers/iterableToArrayLimit.js ***!
  29436. \*********************************************************************/
  29437. /*! no static exports found */
  29438. /***/ (function(module, exports) {
  29439. function _iterableToArrayLimit(r, l) {
  29440. var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
  29441. if (null != t) {
  29442. var e,
  29443. n,
  29444. i,
  29445. u,
  29446. a = [],
  29447. f = !0,
  29448. o = !1;
  29449. try {
  29450. if (i = (t = t.call(r)).next, 0 === l) {
  29451. if (Object(t) !== t) return;
  29452. f = !1;
  29453. } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0) {
  29454. ;
  29455. }
  29456. } catch (r) {
  29457. o = !0, n = r;
  29458. } finally {
  29459. try {
  29460. if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return;
  29461. } finally {
  29462. if (o) throw n;
  29463. }
  29464. }
  29465. return a;
  29466. }
  29467. }
  29468. module.exports = _iterableToArrayLimit, module.exports.__esModule = true, module.exports["default"] = module.exports;
  29469. /***/ }),
  29470. /***/ 70:
  29471. /*!*********************************************!*\
  29472. !*** ./node_modules/function-bind/index.js ***!
  29473. \*********************************************/
  29474. /*! no static exports found */
  29475. /***/ (function(module, exports, __webpack_require__) {
  29476. "use strict";
  29477. var implementation = __webpack_require__(/*! ./implementation */ 71);
  29478. module.exports = Function.prototype.bind || implementation;
  29479. /***/ }),
  29480. /***/ 71:
  29481. /*!******************************************************!*\
  29482. !*** ./node_modules/function-bind/implementation.js ***!
  29483. \******************************************************/
  29484. /*! no static exports found */
  29485. /***/ (function(module, exports, __webpack_require__) {
  29486. "use strict";
  29487. /* eslint no-invalid-this: 1 */
  29488. var ERROR_MESSAGE = 'Function.prototype.bind called on incompatible ';
  29489. var slice = Array.prototype.slice;
  29490. var toStr = Object.prototype.toString;
  29491. var funcType = '[object Function]';
  29492. module.exports = function bind(that) {
  29493. var target = this;
  29494. if (typeof target !== 'function' || toStr.call(target) !== funcType) {
  29495. throw new TypeError(ERROR_MESSAGE + target);
  29496. }
  29497. var args = slice.call(arguments, 1);
  29498. var bound;
  29499. var binder = function () {
  29500. if (this instanceof bound) {
  29501. var result = target.apply(
  29502. this,
  29503. args.concat(slice.call(arguments))
  29504. );
  29505. if (Object(result) === result) {
  29506. return result;
  29507. }
  29508. return this;
  29509. } else {
  29510. return target.apply(
  29511. that,
  29512. args.concat(slice.call(arguments))
  29513. );
  29514. }
  29515. };
  29516. var boundLength = Math.max(0, target.length - args.length);
  29517. var boundArgs = [];
  29518. for (var i = 0; i < boundLength; i++) {
  29519. boundArgs.push('$' + i);
  29520. }
  29521. bound = Function('binder', 'return function (' + boundArgs.join(',') + '){ return binder.apply(this,arguments); }')(binder);
  29522. if (target.prototype) {
  29523. var Empty = function Empty() {};
  29524. Empty.prototype = target.prototype;
  29525. bound.prototype = new Empty();
  29526. Empty.prototype = null;
  29527. }
  29528. return bound;
  29529. };
  29530. /***/ }),
  29531. /***/ 72:
  29532. /*!***************************************!*\
  29533. !*** ./node_modules/has/src/index.js ***!
  29534. \***************************************/
  29535. /*! no static exports found */
  29536. /***/ (function(module, exports, __webpack_require__) {
  29537. "use strict";
  29538. var bind = __webpack_require__(/*! function-bind */ 70);
  29539. module.exports = bind.call(Function.call, Object.prototype.hasOwnProperty);
  29540. /***/ }),
  29541. /***/ 73:
  29542. /*!*********************************************!*\
  29543. !*** ./node_modules/call-bind/callBound.js ***!
  29544. \*********************************************/
  29545. /*! no static exports found */
  29546. /***/ (function(module, exports, __webpack_require__) {
  29547. "use strict";
  29548. var GetIntrinsic = __webpack_require__(/*! get-intrinsic */ 67);
  29549. var callBind = __webpack_require__(/*! ./ */ 74);
  29550. var $indexOf = callBind(GetIntrinsic('String.prototype.indexOf'));
  29551. module.exports = function callBoundIntrinsic(name, allowMissing) {
  29552. var intrinsic = GetIntrinsic(name, !!allowMissing);
  29553. if (typeof intrinsic === 'function' && $indexOf(name, '.prototype.') > -1) {
  29554. return callBind(intrinsic);
  29555. }
  29556. return intrinsic;
  29557. };
  29558. /***/ }),
  29559. /***/ 74:
  29560. /*!*****************************************!*\
  29561. !*** ./node_modules/call-bind/index.js ***!
  29562. \*****************************************/
  29563. /*! no static exports found */
  29564. /***/ (function(module, exports, __webpack_require__) {
  29565. "use strict";
  29566. var bind = __webpack_require__(/*! function-bind */ 70);
  29567. var GetIntrinsic = __webpack_require__(/*! get-intrinsic */ 67);
  29568. var $apply = GetIntrinsic('%Function.prototype.apply%');
  29569. var $call = GetIntrinsic('%Function.prototype.call%');
  29570. var $reflectApply = GetIntrinsic('%Reflect.apply%', true) || bind.call($call, $apply);
  29571. var $gOPD = GetIntrinsic('%Object.getOwnPropertyDescriptor%', true);
  29572. var $defineProperty = GetIntrinsic('%Object.defineProperty%', true);
  29573. var $max = GetIntrinsic('%Math.max%');
  29574. if ($defineProperty) {
  29575. try {
  29576. $defineProperty({}, 'a', { value: 1 });
  29577. } catch (e) {
  29578. // IE 8 has a broken defineProperty
  29579. $defineProperty = null;
  29580. }
  29581. }
  29582. module.exports = function callBind(originalFunction) {
  29583. var func = $reflectApply(bind, $call, arguments);
  29584. if ($gOPD && $defineProperty) {
  29585. var desc = $gOPD(func, 'length');
  29586. if (desc.configurable) {
  29587. // original length, plus the receiver, minus any additional arguments (after the receiver)
  29588. $defineProperty(
  29589. func,
  29590. 'length',
  29591. { value: 1 + $max(0, originalFunction.length - (arguments.length - 1)) }
  29592. );
  29593. }
  29594. }
  29595. return func;
  29596. };
  29597. var applyBind = function applyBind() {
  29598. return $reflectApply(bind, $apply, arguments);
  29599. };
  29600. if ($defineProperty) {
  29601. $defineProperty(module.exports, 'apply', { value: applyBind });
  29602. } else {
  29603. module.exports.apply = applyBind;
  29604. }
  29605. /***/ }),
  29606. /***/ 75:
  29607. /*!**********************************************!*\
  29608. !*** ./node_modules/object-inspect/index.js ***!
  29609. \**********************************************/
  29610. /*! no static exports found */
  29611. /***/ (function(module, exports, __webpack_require__) {
  29612. var hasMap = typeof Map === 'function' && Map.prototype;
  29613. var mapSizeDescriptor = Object.getOwnPropertyDescriptor && hasMap ? Object.getOwnPropertyDescriptor(Map.prototype, 'size') : null;
  29614. var mapSize = hasMap && mapSizeDescriptor && typeof mapSizeDescriptor.get === 'function' ? mapSizeDescriptor.get : null;
  29615. var mapForEach = hasMap && Map.prototype.forEach;
  29616. var hasSet = typeof Set === 'function' && Set.prototype;
  29617. var setSizeDescriptor = Object.getOwnPropertyDescriptor && hasSet ? Object.getOwnPropertyDescriptor(Set.prototype, 'size') : null;
  29618. var setSize = hasSet && setSizeDescriptor && typeof setSizeDescriptor.get === 'function' ? setSizeDescriptor.get : null;
  29619. var setForEach = hasSet && Set.prototype.forEach;
  29620. var hasWeakMap = typeof WeakMap === 'function' && WeakMap.prototype;
  29621. var weakMapHas = hasWeakMap ? WeakMap.prototype.has : null;
  29622. var hasWeakSet = typeof WeakSet === 'function' && WeakSet.prototype;
  29623. var weakSetHas = hasWeakSet ? WeakSet.prototype.has : null;
  29624. var hasWeakRef = typeof WeakRef === 'function' && WeakRef.prototype;
  29625. var weakRefDeref = hasWeakRef ? WeakRef.prototype.deref : null;
  29626. var booleanValueOf = Boolean.prototype.valueOf;
  29627. var objectToString = Object.prototype.toString;
  29628. var functionToString = Function.prototype.toString;
  29629. var $match = String.prototype.match;
  29630. var $slice = String.prototype.slice;
  29631. var $replace = String.prototype.replace;
  29632. var $toUpperCase = String.prototype.toUpperCase;
  29633. var $toLowerCase = String.prototype.toLowerCase;
  29634. var $test = RegExp.prototype.test;
  29635. var $concat = Array.prototype.concat;
  29636. var $join = Array.prototype.join;
  29637. var $arrSlice = Array.prototype.slice;
  29638. var $floor = Math.floor;
  29639. var bigIntValueOf = typeof BigInt === 'function' ? BigInt.prototype.valueOf : null;
  29640. var gOPS = Object.getOwnPropertySymbols;
  29641. var symToString = typeof Symbol === 'function' && typeof Symbol.iterator === 'symbol' ? Symbol.prototype.toString : null;
  29642. var hasShammedSymbols = typeof Symbol === 'function' && typeof Symbol.iterator === 'object';
  29643. // ie, `has-tostringtag/shams
  29644. var toStringTag = typeof Symbol === 'function' && Symbol.toStringTag && (typeof Symbol.toStringTag === hasShammedSymbols ? 'object' : 'symbol')
  29645. ? Symbol.toStringTag
  29646. : null;
  29647. var isEnumerable = Object.prototype.propertyIsEnumerable;
  29648. var gPO = (typeof Reflect === 'function' ? Reflect.getPrototypeOf : Object.getPrototypeOf) || (
  29649. [].__proto__ === Array.prototype // eslint-disable-line no-proto
  29650. ? function (O) {
  29651. return O.__proto__; // eslint-disable-line no-proto
  29652. }
  29653. : null
  29654. );
  29655. function addNumericSeparator(num, str) {
  29656. if (
  29657. num === Infinity
  29658. || num === -Infinity
  29659. || num !== num
  29660. || (num && num > -1000 && num < 1000)
  29661. || $test.call(/e/, str)
  29662. ) {
  29663. return str;
  29664. }
  29665. var sepRegex = /[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;
  29666. if (typeof num === 'number') {
  29667. var int = num < 0 ? -$floor(-num) : $floor(num); // trunc(num)
  29668. if (int !== num) {
  29669. var intStr = String(int);
  29670. var dec = $slice.call(str, intStr.length + 1);
  29671. return $replace.call(intStr, sepRegex, '$&_') + '.' + $replace.call($replace.call(dec, /([0-9]{3})/g, '$&_'), /_$/, '');
  29672. }
  29673. }
  29674. return $replace.call(str, sepRegex, '$&_');
  29675. }
  29676. var utilInspect = __webpack_require__(/*! ./util.inspect */ 76);
  29677. var inspectCustom = utilInspect.custom;
  29678. var inspectSymbol = isSymbol(inspectCustom) ? inspectCustom : null;
  29679. module.exports = function inspect_(obj, options, depth, seen) {
  29680. var opts = options || {};
  29681. if (has(opts, 'quoteStyle') && (opts.quoteStyle !== 'single' && opts.quoteStyle !== 'double')) {
  29682. throw new TypeError('option "quoteStyle" must be "single" or "double"');
  29683. }
  29684. if (
  29685. has(opts, 'maxStringLength') && (typeof opts.maxStringLength === 'number'
  29686. ? opts.maxStringLength < 0 && opts.maxStringLength !== Infinity
  29687. : opts.maxStringLength !== null
  29688. )
  29689. ) {
  29690. throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');
  29691. }
  29692. var customInspect = has(opts, 'customInspect') ? opts.customInspect : true;
  29693. if (typeof customInspect !== 'boolean' && customInspect !== 'symbol') {
  29694. throw new TypeError('option "customInspect", if provided, must be `true`, `false`, or `\'symbol\'`');
  29695. }
  29696. if (
  29697. has(opts, 'indent')
  29698. && opts.indent !== null
  29699. && opts.indent !== '\t'
  29700. && !(parseInt(opts.indent, 10) === opts.indent && opts.indent > 0)
  29701. ) {
  29702. throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');
  29703. }
  29704. if (has(opts, 'numericSeparator') && typeof opts.numericSeparator !== 'boolean') {
  29705. throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');
  29706. }
  29707. var numericSeparator = opts.numericSeparator;
  29708. if (typeof obj === 'undefined') {
  29709. return 'undefined';
  29710. }
  29711. if (obj === null) {
  29712. return 'null';
  29713. }
  29714. if (typeof obj === 'boolean') {
  29715. return obj ? 'true' : 'false';
  29716. }
  29717. if (typeof obj === 'string') {
  29718. return inspectString(obj, opts);
  29719. }
  29720. if (typeof obj === 'number') {
  29721. if (obj === 0) {
  29722. return Infinity / obj > 0 ? '0' : '-0';
  29723. }
  29724. var str = String(obj);
  29725. return numericSeparator ? addNumericSeparator(obj, str) : str;
  29726. }
  29727. if (typeof obj === 'bigint') {
  29728. var bigIntStr = String(obj) + 'n';
  29729. return numericSeparator ? addNumericSeparator(obj, bigIntStr) : bigIntStr;
  29730. }
  29731. var maxDepth = typeof opts.depth === 'undefined' ? 5 : opts.depth;
  29732. if (typeof depth === 'undefined') { depth = 0; }
  29733. if (depth >= maxDepth && maxDepth > 0 && typeof obj === 'object') {
  29734. return isArray(obj) ? '[Array]' : '[Object]';
  29735. }
  29736. var indent = getIndent(opts, depth);
  29737. if (typeof seen === 'undefined') {
  29738. seen = [];
  29739. } else if (indexOf(seen, obj) >= 0) {
  29740. return '[Circular]';
  29741. }
  29742. function inspect(value, from, noIndent) {
  29743. if (from) {
  29744. seen = $arrSlice.call(seen);
  29745. seen.push(from);
  29746. }
  29747. if (noIndent) {
  29748. var newOpts = {
  29749. depth: opts.depth
  29750. };
  29751. if (has(opts, 'quoteStyle')) {
  29752. newOpts.quoteStyle = opts.quoteStyle;
  29753. }
  29754. return inspect_(value, newOpts, depth + 1, seen);
  29755. }
  29756. return inspect_(value, opts, depth + 1, seen);
  29757. }
  29758. if (typeof obj === 'function' && !isRegExp(obj)) { // in older engines, regexes are callable
  29759. var name = nameOf(obj);
  29760. var keys = arrObjKeys(obj, inspect);
  29761. return '[Function' + (name ? ': ' + name : ' (anonymous)') + ']' + (keys.length > 0 ? ' { ' + $join.call(keys, ', ') + ' }' : '');
  29762. }
  29763. if (isSymbol(obj)) {
  29764. var symString = hasShammedSymbols ? $replace.call(String(obj), /^(Symbol\(.*\))_[^)]*$/, '$1') : symToString.call(obj);
  29765. return typeof obj === 'object' && !hasShammedSymbols ? markBoxed(symString) : symString;
  29766. }
  29767. if (isElement(obj)) {
  29768. var s = '<' + $toLowerCase.call(String(obj.nodeName));
  29769. var attrs = obj.attributes || [];
  29770. for (var i = 0; i < attrs.length; i++) {
  29771. s += ' ' + attrs[i].name + '=' + wrapQuotes(quote(attrs[i].value), 'double', opts);
  29772. }
  29773. s += '>';
  29774. if (obj.childNodes && obj.childNodes.length) { s += '...'; }
  29775. s += '</' + $toLowerCase.call(String(obj.nodeName)) + '>';
  29776. return s;
  29777. }
  29778. if (isArray(obj)) {
  29779. if (obj.length === 0) { return '[]'; }
  29780. var xs = arrObjKeys(obj, inspect);
  29781. if (indent && !singleLineValues(xs)) {
  29782. return '[' + indentedJoin(xs, indent) + ']';
  29783. }
  29784. return '[ ' + $join.call(xs, ', ') + ' ]';
  29785. }
  29786. if (isError(obj)) {
  29787. var parts = arrObjKeys(obj, inspect);
  29788. if (!('cause' in Error.prototype) && 'cause' in obj && !isEnumerable.call(obj, 'cause')) {
  29789. return '{ [' + String(obj) + '] ' + $join.call($concat.call('[cause]: ' + inspect(obj.cause), parts), ', ') + ' }';
  29790. }
  29791. if (parts.length === 0) { return '[' + String(obj) + ']'; }
  29792. return '{ [' + String(obj) + '] ' + $join.call(parts, ', ') + ' }';
  29793. }
  29794. if (typeof obj === 'object' && customInspect) {
  29795. if (inspectSymbol && typeof obj[inspectSymbol] === 'function' && utilInspect) {
  29796. return utilInspect(obj, { depth: maxDepth - depth });
  29797. } else if (customInspect !== 'symbol' && typeof obj.inspect === 'function') {
  29798. return obj.inspect();
  29799. }
  29800. }
  29801. if (isMap(obj)) {
  29802. var mapParts = [];
  29803. mapForEach.call(obj, function (value, key) {
  29804. mapParts.push(inspect(key, obj, true) + ' => ' + inspect(value, obj));
  29805. });
  29806. return collectionOf('Map', mapSize.call(obj), mapParts, indent);
  29807. }
  29808. if (isSet(obj)) {
  29809. var setParts = [];
  29810. setForEach.call(obj, function (value) {
  29811. setParts.push(inspect(value, obj));
  29812. });
  29813. return collectionOf('Set', setSize.call(obj), setParts, indent);
  29814. }
  29815. if (isWeakMap(obj)) {
  29816. return weakCollectionOf('WeakMap');
  29817. }
  29818. if (isWeakSet(obj)) {
  29819. return weakCollectionOf('WeakSet');
  29820. }
  29821. if (isWeakRef(obj)) {
  29822. return weakCollectionOf('WeakRef');
  29823. }
  29824. if (isNumber(obj)) {
  29825. return markBoxed(inspect(Number(obj)));
  29826. }
  29827. if (isBigInt(obj)) {
  29828. return markBoxed(inspect(bigIntValueOf.call(obj)));
  29829. }
  29830. if (isBoolean(obj)) {
  29831. return markBoxed(booleanValueOf.call(obj));
  29832. }
  29833. if (isString(obj)) {
  29834. return markBoxed(inspect(String(obj)));
  29835. }
  29836. if (!isDate(obj) && !isRegExp(obj)) {
  29837. var ys = arrObjKeys(obj, inspect);
  29838. var isPlainObject = gPO ? gPO(obj) === Object.prototype : obj instanceof Object || obj.constructor === Object;
  29839. var protoTag = obj instanceof Object ? '' : 'null prototype';
  29840. var stringTag = !isPlainObject && toStringTag && Object(obj) === obj && toStringTag in obj ? $slice.call(toStr(obj), 8, -1) : protoTag ? 'Object' : '';
  29841. var constructorTag = isPlainObject || typeof obj.constructor !== 'function' ? '' : obj.constructor.name ? obj.constructor.name + ' ' : '';
  29842. var tag = constructorTag + (stringTag || protoTag ? '[' + $join.call($concat.call([], stringTag || [], protoTag || []), ': ') + '] ' : '');
  29843. if (ys.length === 0) { return tag + '{}'; }
  29844. if (indent) {
  29845. return tag + '{' + indentedJoin(ys, indent) + '}';
  29846. }
  29847. return tag + '{ ' + $join.call(ys, ', ') + ' }';
  29848. }
  29849. return String(obj);
  29850. };
  29851. function wrapQuotes(s, defaultStyle, opts) {
  29852. var quoteChar = (opts.quoteStyle || defaultStyle) === 'double' ? '"' : "'";
  29853. return quoteChar + s + quoteChar;
  29854. }
  29855. function quote(s) {
  29856. return $replace.call(String(s), /"/g, '&quot;');
  29857. }
  29858. function isArray(obj) { return toStr(obj) === '[object Array]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); }
  29859. function isDate(obj) { return toStr(obj) === '[object Date]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); }
  29860. function isRegExp(obj) { return toStr(obj) === '[object RegExp]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); }
  29861. function isError(obj) { return toStr(obj) === '[object Error]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); }
  29862. function isString(obj) { return toStr(obj) === '[object String]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); }
  29863. function isNumber(obj) { return toStr(obj) === '[object Number]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); }
  29864. function isBoolean(obj) { return toStr(obj) === '[object Boolean]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); }
  29865. // Symbol and BigInt do have Symbol.toStringTag by spec, so that can't be used to eliminate false positives
  29866. function isSymbol(obj) {
  29867. if (hasShammedSymbols) {
  29868. return obj && typeof obj === 'object' && obj instanceof Symbol;
  29869. }
  29870. if (typeof obj === 'symbol') {
  29871. return true;
  29872. }
  29873. if (!obj || typeof obj !== 'object' || !symToString) {
  29874. return false;
  29875. }
  29876. try {
  29877. symToString.call(obj);
  29878. return true;
  29879. } catch (e) {}
  29880. return false;
  29881. }
  29882. function isBigInt(obj) {
  29883. if (!obj || typeof obj !== 'object' || !bigIntValueOf) {
  29884. return false;
  29885. }
  29886. try {
  29887. bigIntValueOf.call(obj);
  29888. return true;
  29889. } catch (e) {}
  29890. return false;
  29891. }
  29892. var hasOwn = Object.prototype.hasOwnProperty || function (key) { return key in this; };
  29893. function has(obj, key) {
  29894. return hasOwn.call(obj, key);
  29895. }
  29896. function toStr(obj) {
  29897. return objectToString.call(obj);
  29898. }
  29899. function nameOf(f) {
  29900. if (f.name) { return f.name; }
  29901. var m = $match.call(functionToString.call(f), /^function\s*([\w$]+)/);
  29902. if (m) { return m[1]; }
  29903. return null;
  29904. }
  29905. function indexOf(xs, x) {
  29906. if (xs.indexOf) { return xs.indexOf(x); }
  29907. for (var i = 0, l = xs.length; i < l; i++) {
  29908. if (xs[i] === x) { return i; }
  29909. }
  29910. return -1;
  29911. }
  29912. function isMap(x) {
  29913. if (!mapSize || !x || typeof x !== 'object') {
  29914. return false;
  29915. }
  29916. try {
  29917. mapSize.call(x);
  29918. try {
  29919. setSize.call(x);
  29920. } catch (s) {
  29921. return true;
  29922. }
  29923. return x instanceof Map; // core-js workaround, pre-v2.5.0
  29924. } catch (e) {}
  29925. return false;
  29926. }
  29927. function isWeakMap(x) {
  29928. if (!weakMapHas || !x || typeof x !== 'object') {
  29929. return false;
  29930. }
  29931. try {
  29932. weakMapHas.call(x, weakMapHas);
  29933. try {
  29934. weakSetHas.call(x, weakSetHas);
  29935. } catch (s) {
  29936. return true;
  29937. }
  29938. return x instanceof WeakMap; // core-js workaround, pre-v2.5.0
  29939. } catch (e) {}
  29940. return false;
  29941. }
  29942. function isWeakRef(x) {
  29943. if (!weakRefDeref || !x || typeof x !== 'object') {
  29944. return false;
  29945. }
  29946. try {
  29947. weakRefDeref.call(x);
  29948. return true;
  29949. } catch (e) {}
  29950. return false;
  29951. }
  29952. function isSet(x) {
  29953. if (!setSize || !x || typeof x !== 'object') {
  29954. return false;
  29955. }
  29956. try {
  29957. setSize.call(x);
  29958. try {
  29959. mapSize.call(x);
  29960. } catch (m) {
  29961. return true;
  29962. }
  29963. return x instanceof Set; // core-js workaround, pre-v2.5.0
  29964. } catch (e) {}
  29965. return false;
  29966. }
  29967. function isWeakSet(x) {
  29968. if (!weakSetHas || !x || typeof x !== 'object') {
  29969. return false;
  29970. }
  29971. try {
  29972. weakSetHas.call(x, weakSetHas);
  29973. try {
  29974. weakMapHas.call(x, weakMapHas);
  29975. } catch (s) {
  29976. return true;
  29977. }
  29978. return x instanceof WeakSet; // core-js workaround, pre-v2.5.0
  29979. } catch (e) {}
  29980. return false;
  29981. }
  29982. function isElement(x) {
  29983. if (!x || typeof x !== 'object') { return false; }
  29984. if (typeof HTMLElement !== 'undefined' && x instanceof HTMLElement) {
  29985. return true;
  29986. }
  29987. return typeof x.nodeName === 'string' && typeof x.getAttribute === 'function';
  29988. }
  29989. function inspectString(str, opts) {
  29990. if (str.length > opts.maxStringLength) {
  29991. var remaining = str.length - opts.maxStringLength;
  29992. var trailer = '... ' + remaining + ' more character' + (remaining > 1 ? 's' : '');
  29993. return inspectString($slice.call(str, 0, opts.maxStringLength), opts) + trailer;
  29994. }
  29995. // eslint-disable-next-line no-control-regex
  29996. var s = $replace.call($replace.call(str, /(['\\])/g, '\\$1'), /[\x00-\x1f]/g, lowbyte);
  29997. return wrapQuotes(s, 'single', opts);
  29998. }
  29999. function lowbyte(c) {
  30000. var n = c.charCodeAt(0);
  30001. var x = {
  30002. 8: 'b',
  30003. 9: 't',
  30004. 10: 'n',
  30005. 12: 'f',
  30006. 13: 'r'
  30007. }[n];
  30008. if (x) { return '\\' + x; }
  30009. return '\\x' + (n < 0x10 ? '0' : '') + $toUpperCase.call(n.toString(16));
  30010. }
  30011. function markBoxed(str) {
  30012. return 'Object(' + str + ')';
  30013. }
  30014. function weakCollectionOf(type) {
  30015. return type + ' { ? }';
  30016. }
  30017. function collectionOf(type, size, entries, indent) {
  30018. var joinedEntries = indent ? indentedJoin(entries, indent) : $join.call(entries, ', ');
  30019. return type + ' (' + size + ') {' + joinedEntries + '}';
  30020. }
  30021. function singleLineValues(xs) {
  30022. for (var i = 0; i < xs.length; i++) {
  30023. if (indexOf(xs[i], '\n') >= 0) {
  30024. return false;
  30025. }
  30026. }
  30027. return true;
  30028. }
  30029. function getIndent(opts, depth) {
  30030. var baseIndent;
  30031. if (opts.indent === '\t') {
  30032. baseIndent = '\t';
  30033. } else if (typeof opts.indent === 'number' && opts.indent > 0) {
  30034. baseIndent = $join.call(Array(opts.indent + 1), ' ');
  30035. } else {
  30036. return null;
  30037. }
  30038. return {
  30039. base: baseIndent,
  30040. prev: $join.call(Array(depth + 1), baseIndent)
  30041. };
  30042. }
  30043. function indentedJoin(xs, indent) {
  30044. if (xs.length === 0) { return ''; }
  30045. var lineJoiner = '\n' + indent.prev + indent.base;
  30046. return lineJoiner + $join.call(xs, ',' + lineJoiner) + '\n' + indent.prev;
  30047. }
  30048. function arrObjKeys(obj, inspect) {
  30049. var isArr = isArray(obj);
  30050. var xs = [];
  30051. if (isArr) {
  30052. xs.length = obj.length;
  30053. for (var i = 0; i < obj.length; i++) {
  30054. xs[i] = has(obj, i) ? inspect(obj[i], obj) : '';
  30055. }
  30056. }
  30057. var syms = typeof gOPS === 'function' ? gOPS(obj) : [];
  30058. var symMap;
  30059. if (hasShammedSymbols) {
  30060. symMap = {};
  30061. for (var k = 0; k < syms.length; k++) {
  30062. symMap['$' + syms[k]] = syms[k];
  30063. }
  30064. }
  30065. for (var key in obj) { // eslint-disable-line no-restricted-syntax
  30066. if (!has(obj, key)) { continue; } // eslint-disable-line no-restricted-syntax, no-continue
  30067. if (isArr && String(Number(key)) === key && key < obj.length) { continue; } // eslint-disable-line no-restricted-syntax, no-continue
  30068. if (hasShammedSymbols && symMap['$' + key] instanceof Symbol) {
  30069. // this is to prevent shammed Symbols, which are stored as strings, from being included in the string key section
  30070. continue; // eslint-disable-line no-restricted-syntax, no-continue
  30071. } else if ($test.call(/[^\w$]/, key)) {
  30072. xs.push(inspect(key, obj) + ': ' + inspect(obj[key], obj));
  30073. } else {
  30074. xs.push(key + ': ' + inspect(obj[key], obj));
  30075. }
  30076. }
  30077. if (typeof gOPS === 'function') {
  30078. for (var j = 0; j < syms.length; j++) {
  30079. if (isEnumerable.call(obj, syms[j])) {
  30080. xs.push('[' + inspect(syms[j]) + ']: ' + inspect(obj[syms[j]], obj));
  30081. }
  30082. }
  30083. }
  30084. return xs;
  30085. }
  30086. /***/ }),
  30087. /***/ 76:
  30088. /*!********************************!*\
  30089. !*** ./util.inspect (ignored) ***!
  30090. \********************************/
  30091. /*! no static exports found */
  30092. /***/ (function(module, exports) {
  30093. /* (ignored) */
  30094. /***/ }),
  30095. /***/ 77:
  30096. /*!**************************************!*\
  30097. !*** ./node_modules/qs/lib/utils.js ***!
  30098. \**************************************/
  30099. /*! no static exports found */
  30100. /***/ (function(module, exports, __webpack_require__) {
  30101. "use strict";
  30102. var formats = __webpack_require__(/*! ./formats */ 78);
  30103. var has = Object.prototype.hasOwnProperty;
  30104. var isArray = Array.isArray;
  30105. var hexTable = (function () {
  30106. var array = [];
  30107. for (var i = 0; i < 256; ++i) {
  30108. array.push('%' + ((i < 16 ? '0' : '') + i.toString(16)).toUpperCase());
  30109. }
  30110. return array;
  30111. }());
  30112. var compactQueue = function compactQueue(queue) {
  30113. while (queue.length > 1) {
  30114. var item = queue.pop();
  30115. var obj = item.obj[item.prop];
  30116. if (isArray(obj)) {
  30117. var compacted = [];
  30118. for (var j = 0; j < obj.length; ++j) {
  30119. if (typeof obj[j] !== 'undefined') {
  30120. compacted.push(obj[j]);
  30121. }
  30122. }
  30123. item.obj[item.prop] = compacted;
  30124. }
  30125. }
  30126. };
  30127. var arrayToObject = function arrayToObject(source, options) {
  30128. var obj = options && options.plainObjects ? Object.create(null) : {};
  30129. for (var i = 0; i < source.length; ++i) {
  30130. if (typeof source[i] !== 'undefined') {
  30131. obj[i] = source[i];
  30132. }
  30133. }
  30134. return obj;
  30135. };
  30136. var merge = function merge(target, source, options) {
  30137. /* eslint no-param-reassign: 0 */
  30138. if (!source) {
  30139. return target;
  30140. }
  30141. if (typeof source !== 'object') {
  30142. if (isArray(target)) {
  30143. target.push(source);
  30144. } else if (target && typeof target === 'object') {
  30145. if ((options && (options.plainObjects || options.allowPrototypes)) || !has.call(Object.prototype, source)) {
  30146. target[source] = true;
  30147. }
  30148. } else {
  30149. return [target, source];
  30150. }
  30151. return target;
  30152. }
  30153. if (!target || typeof target !== 'object') {
  30154. return [target].concat(source);
  30155. }
  30156. var mergeTarget = target;
  30157. if (isArray(target) && !isArray(source)) {
  30158. mergeTarget = arrayToObject(target, options);
  30159. }
  30160. if (isArray(target) && isArray(source)) {
  30161. source.forEach(function (item, i) {
  30162. if (has.call(target, i)) {
  30163. var targetItem = target[i];
  30164. if (targetItem && typeof targetItem === 'object' && item && typeof item === 'object') {
  30165. target[i] = merge(targetItem, item, options);
  30166. } else {
  30167. target.push(item);
  30168. }
  30169. } else {
  30170. target[i] = item;
  30171. }
  30172. });
  30173. return target;
  30174. }
  30175. return Object.keys(source).reduce(function (acc, key) {
  30176. var value = source[key];
  30177. if (has.call(acc, key)) {
  30178. acc[key] = merge(acc[key], value, options);
  30179. } else {
  30180. acc[key] = value;
  30181. }
  30182. return acc;
  30183. }, mergeTarget);
  30184. };
  30185. var assign = function assignSingleSource(target, source) {
  30186. return Object.keys(source).reduce(function (acc, key) {
  30187. acc[key] = source[key];
  30188. return acc;
  30189. }, target);
  30190. };
  30191. var decode = function (str, decoder, charset) {
  30192. var strWithoutPlus = str.replace(/\+/g, ' ');
  30193. if (charset === 'iso-8859-1') {
  30194. // unescape never throws, no try...catch needed:
  30195. return strWithoutPlus.replace(/%[0-9a-f]{2}/gi, unescape);
  30196. }
  30197. // utf-8
  30198. try {
  30199. return decodeURIComponent(strWithoutPlus);
  30200. } catch (e) {
  30201. return strWithoutPlus;
  30202. }
  30203. };
  30204. var encode = function encode(str, defaultEncoder, charset, kind, format) {
  30205. // This code was originally written by Brian White (mscdex) for the io.js core querystring library.
  30206. // It has been adapted here for stricter adherence to RFC 3986
  30207. if (str.length === 0) {
  30208. return str;
  30209. }
  30210. var string = str;
  30211. if (typeof str === 'symbol') {
  30212. string = Symbol.prototype.toString.call(str);
  30213. } else if (typeof str !== 'string') {
  30214. string = String(str);
  30215. }
  30216. if (charset === 'iso-8859-1') {
  30217. return escape(string).replace(/%u[0-9a-f]{4}/gi, function ($0) {
  30218. return '%26%23' + parseInt($0.slice(2), 16) + '%3B';
  30219. });
  30220. }
  30221. var out = '';
  30222. for (var i = 0; i < string.length; ++i) {
  30223. var c = string.charCodeAt(i);
  30224. if (
  30225. c === 0x2D // -
  30226. || c === 0x2E // .
  30227. || c === 0x5F // _
  30228. || c === 0x7E // ~
  30229. || (c >= 0x30 && c <= 0x39) // 0-9
  30230. || (c >= 0x41 && c <= 0x5A) // a-z
  30231. || (c >= 0x61 && c <= 0x7A) // A-Z
  30232. || (format === formats.RFC1738 && (c === 0x28 || c === 0x29)) // ( )
  30233. ) {
  30234. out += string.charAt(i);
  30235. continue;
  30236. }
  30237. if (c < 0x80) {
  30238. out = out + hexTable[c];
  30239. continue;
  30240. }
  30241. if (c < 0x800) {
  30242. out = out + (hexTable[0xC0 | (c >> 6)] + hexTable[0x80 | (c & 0x3F)]);
  30243. continue;
  30244. }
  30245. if (c < 0xD800 || c >= 0xE000) {
  30246. out = out + (hexTable[0xE0 | (c >> 12)] + hexTable[0x80 | ((c >> 6) & 0x3F)] + hexTable[0x80 | (c & 0x3F)]);
  30247. continue;
  30248. }
  30249. i += 1;
  30250. c = 0x10000 + (((c & 0x3FF) << 10) | (string.charCodeAt(i) & 0x3FF));
  30251. /* eslint operator-linebreak: [2, "before"] */
  30252. out += hexTable[0xF0 | (c >> 18)]
  30253. + hexTable[0x80 | ((c >> 12) & 0x3F)]
  30254. + hexTable[0x80 | ((c >> 6) & 0x3F)]
  30255. + hexTable[0x80 | (c & 0x3F)];
  30256. }
  30257. return out;
  30258. };
  30259. var compact = function compact(value) {
  30260. var queue = [{ obj: { o: value }, prop: 'o' }];
  30261. var refs = [];
  30262. for (var i = 0; i < queue.length; ++i) {
  30263. var item = queue[i];
  30264. var obj = item.obj[item.prop];
  30265. var keys = Object.keys(obj);
  30266. for (var j = 0; j < keys.length; ++j) {
  30267. var key = keys[j];
  30268. var val = obj[key];
  30269. if (typeof val === 'object' && val !== null && refs.indexOf(val) === -1) {
  30270. queue.push({ obj: obj, prop: key });
  30271. refs.push(val);
  30272. }
  30273. }
  30274. }
  30275. compactQueue(queue);
  30276. return value;
  30277. };
  30278. var isRegExp = function isRegExp(obj) {
  30279. return Object.prototype.toString.call(obj) === '[object RegExp]';
  30280. };
  30281. var isBuffer = function isBuffer(obj) {
  30282. if (!obj || typeof obj !== 'object') {
  30283. return false;
  30284. }
  30285. return !!(obj.constructor && obj.constructor.isBuffer && obj.constructor.isBuffer(obj));
  30286. };
  30287. var combine = function combine(a, b) {
  30288. return [].concat(a, b);
  30289. };
  30290. var maybeMap = function maybeMap(val, fn) {
  30291. if (isArray(val)) {
  30292. var mapped = [];
  30293. for (var i = 0; i < val.length; i += 1) {
  30294. mapped.push(fn(val[i]));
  30295. }
  30296. return mapped;
  30297. }
  30298. return fn(val);
  30299. };
  30300. module.exports = {
  30301. arrayToObject: arrayToObject,
  30302. assign: assign,
  30303. combine: combine,
  30304. compact: compact,
  30305. decode: decode,
  30306. encode: encode,
  30307. isBuffer: isBuffer,
  30308. isRegExp: isRegExp,
  30309. maybeMap: maybeMap,
  30310. merge: merge
  30311. };
  30312. /***/ }),
  30313. /***/ 78:
  30314. /*!****************************************!*\
  30315. !*** ./node_modules/qs/lib/formats.js ***!
  30316. \****************************************/
  30317. /*! no static exports found */
  30318. /***/ (function(module, exports, __webpack_require__) {
  30319. "use strict";
  30320. var replace = String.prototype.replace;
  30321. var percentTwenties = /%20/g;
  30322. var Format = {
  30323. RFC1738: 'RFC1738',
  30324. RFC3986: 'RFC3986'
  30325. };
  30326. module.exports = {
  30327. 'default': Format.RFC3986,
  30328. formatters: {
  30329. RFC1738: function (value) {
  30330. return replace.call(value, percentTwenties, '+');
  30331. },
  30332. RFC3986: function (value) {
  30333. return String(value);
  30334. }
  30335. },
  30336. RFC1738: Format.RFC1738,
  30337. RFC3986: Format.RFC3986
  30338. };
  30339. /***/ }),
  30340. /***/ 79:
  30341. /*!**************************************!*\
  30342. !*** ./node_modules/qs/lib/parse.js ***!
  30343. \**************************************/
  30344. /*! no static exports found */
  30345. /***/ (function(module, exports, __webpack_require__) {
  30346. "use strict";
  30347. var utils = __webpack_require__(/*! ./utils */ 77);
  30348. var has = Object.prototype.hasOwnProperty;
  30349. var isArray = Array.isArray;
  30350. var defaults = {
  30351. allowDots: false,
  30352. allowPrototypes: false,
  30353. allowSparse: false,
  30354. arrayLimit: 20,
  30355. charset: 'utf-8',
  30356. charsetSentinel: false,
  30357. comma: false,
  30358. decoder: utils.decode,
  30359. delimiter: '&',
  30360. depth: 5,
  30361. ignoreQueryPrefix: false,
  30362. interpretNumericEntities: false,
  30363. parameterLimit: 1000,
  30364. parseArrays: true,
  30365. plainObjects: false,
  30366. strictNullHandling: false
  30367. };
  30368. var interpretNumericEntities = function (str) {
  30369. return str.replace(/&#(\d+);/g, function ($0, numberStr) {
  30370. return String.fromCharCode(parseInt(numberStr, 10));
  30371. });
  30372. };
  30373. var parseArrayValue = function (val, options) {
  30374. if (val && typeof val === 'string' && options.comma && val.indexOf(',') > -1) {
  30375. return val.split(',');
  30376. }
  30377. return val;
  30378. };
  30379. // This is what browsers will submit when the ✓ character occurs in an
  30380. // application/x-www-form-urlencoded body and the encoding of the page containing
  30381. // the form is iso-8859-1, or when the submitted form has an accept-charset
  30382. // attribute of iso-8859-1. Presumably also with other charsets that do not contain
  30383. // the ✓ character, such as us-ascii.
  30384. var isoSentinel = 'utf8=%26%2310003%3B'; // encodeURIComponent('&#10003;')
  30385. // These are the percent-encoded utf-8 octets representing a checkmark, indicating that the request actually is utf-8 encoded.
  30386. var charsetSentinel = 'utf8=%E2%9C%93'; // encodeURIComponent('✓')
  30387. var parseValues = function parseQueryStringValues(str, options) {
  30388. var obj = {};
  30389. var cleanStr = options.ignoreQueryPrefix ? str.replace(/^\?/, '') : str;
  30390. var limit = options.parameterLimit === Infinity ? undefined : options.parameterLimit;
  30391. var parts = cleanStr.split(options.delimiter, limit);
  30392. var skipIndex = -1; // Keep track of where the utf8 sentinel was found
  30393. var i;
  30394. var charset = options.charset;
  30395. if (options.charsetSentinel) {
  30396. for (i = 0; i < parts.length; ++i) {
  30397. if (parts[i].indexOf('utf8=') === 0) {
  30398. if (parts[i] === charsetSentinel) {
  30399. charset = 'utf-8';
  30400. } else if (parts[i] === isoSentinel) {
  30401. charset = 'iso-8859-1';
  30402. }
  30403. skipIndex = i;
  30404. i = parts.length; // The eslint settings do not allow break;
  30405. }
  30406. }
  30407. }
  30408. for (i = 0; i < parts.length; ++i) {
  30409. if (i === skipIndex) {
  30410. continue;
  30411. }
  30412. var part = parts[i];
  30413. var bracketEqualsPos = part.indexOf(']=');
  30414. var pos = bracketEqualsPos === -1 ? part.indexOf('=') : bracketEqualsPos + 1;
  30415. var key, val;
  30416. if (pos === -1) {
  30417. key = options.decoder(part, defaults.decoder, charset, 'key');
  30418. val = options.strictNullHandling ? null : '';
  30419. } else {
  30420. key = options.decoder(part.slice(0, pos), defaults.decoder, charset, 'key');
  30421. val = utils.maybeMap(
  30422. parseArrayValue(part.slice(pos + 1), options),
  30423. function (encodedVal) {
  30424. return options.decoder(encodedVal, defaults.decoder, charset, 'value');
  30425. }
  30426. );
  30427. }
  30428. if (val && options.interpretNumericEntities && charset === 'iso-8859-1') {
  30429. val = interpretNumericEntities(val);
  30430. }
  30431. if (part.indexOf('[]=') > -1) {
  30432. val = isArray(val) ? [val] : val;
  30433. }
  30434. if (has.call(obj, key)) {
  30435. obj[key] = utils.combine(obj[key], val);
  30436. } else {
  30437. obj[key] = val;
  30438. }
  30439. }
  30440. return obj;
  30441. };
  30442. var parseObject = function (chain, val, options, valuesParsed) {
  30443. var leaf = valuesParsed ? val : parseArrayValue(val, options);
  30444. for (var i = chain.length - 1; i >= 0; --i) {
  30445. var obj;
  30446. var root = chain[i];
  30447. if (root === '[]' && options.parseArrays) {
  30448. obj = [].concat(leaf);
  30449. } else {
  30450. obj = options.plainObjects ? Object.create(null) : {};
  30451. var cleanRoot = root.charAt(0) === '[' && root.charAt(root.length - 1) === ']' ? root.slice(1, -1) : root;
  30452. var index = parseInt(cleanRoot, 10);
  30453. if (!options.parseArrays && cleanRoot === '') {
  30454. obj = { 0: leaf };
  30455. } else if (
  30456. !isNaN(index)
  30457. && root !== cleanRoot
  30458. && String(index) === cleanRoot
  30459. && index >= 0
  30460. && (options.parseArrays && index <= options.arrayLimit)
  30461. ) {
  30462. obj = [];
  30463. obj[index] = leaf;
  30464. } else if (cleanRoot !== '__proto__') {
  30465. obj[cleanRoot] = leaf;
  30466. }
  30467. }
  30468. leaf = obj;
  30469. }
  30470. return leaf;
  30471. };
  30472. var parseKeys = function parseQueryStringKeys(givenKey, val, options, valuesParsed) {
  30473. if (!givenKey) {
  30474. return;
  30475. }
  30476. // Transform dot notation to bracket notation
  30477. var key = options.allowDots ? givenKey.replace(/\.([^.[]+)/g, '[$1]') : givenKey;
  30478. // The regex chunks
  30479. var brackets = /(\[[^[\]]*])/;
  30480. var child = /(\[[^[\]]*])/g;
  30481. // Get the parent
  30482. var segment = options.depth > 0 && brackets.exec(key);
  30483. var parent = segment ? key.slice(0, segment.index) : key;
  30484. // Stash the parent if it exists
  30485. var keys = [];
  30486. if (parent) {
  30487. // If we aren't using plain objects, optionally prefix keys that would overwrite object prototype properties
  30488. if (!options.plainObjects && has.call(Object.prototype, parent)) {
  30489. if (!options.allowPrototypes) {
  30490. return;
  30491. }
  30492. }
  30493. keys.push(parent);
  30494. }
  30495. // Loop through children appending to the array until we hit depth
  30496. var i = 0;
  30497. while (options.depth > 0 && (segment = child.exec(key)) !== null && i < options.depth) {
  30498. i += 1;
  30499. if (!options.plainObjects && has.call(Object.prototype, segment[1].slice(1, -1))) {
  30500. if (!options.allowPrototypes) {
  30501. return;
  30502. }
  30503. }
  30504. keys.push(segment[1]);
  30505. }
  30506. // If there's a remainder, just add whatever is left
  30507. if (segment) {
  30508. keys.push('[' + key.slice(segment.index) + ']');
  30509. }
  30510. return parseObject(keys, val, options, valuesParsed);
  30511. };
  30512. var normalizeParseOptions = function normalizeParseOptions(opts) {
  30513. if (!opts) {
  30514. return defaults;
  30515. }
  30516. if (opts.decoder !== null && opts.decoder !== undefined && typeof opts.decoder !== 'function') {
  30517. throw new TypeError('Decoder has to be a function.');
  30518. }
  30519. if (typeof opts.charset !== 'undefined' && opts.charset !== 'utf-8' && opts.charset !== 'iso-8859-1') {
  30520. throw new TypeError('The charset option must be either utf-8, iso-8859-1, or undefined');
  30521. }
  30522. var charset = typeof opts.charset === 'undefined' ? defaults.charset : opts.charset;
  30523. return {
  30524. allowDots: typeof opts.allowDots === 'undefined' ? defaults.allowDots : !!opts.allowDots,
  30525. allowPrototypes: typeof opts.allowPrototypes === 'boolean' ? opts.allowPrototypes : defaults.allowPrototypes,
  30526. allowSparse: typeof opts.allowSparse === 'boolean' ? opts.allowSparse : defaults.allowSparse,
  30527. arrayLimit: typeof opts.arrayLimit === 'number' ? opts.arrayLimit : defaults.arrayLimit,
  30528. charset: charset,
  30529. charsetSentinel: typeof opts.charsetSentinel === 'boolean' ? opts.charsetSentinel : defaults.charsetSentinel,
  30530. comma: typeof opts.comma === 'boolean' ? opts.comma : defaults.comma,
  30531. decoder: typeof opts.decoder === 'function' ? opts.decoder : defaults.decoder,
  30532. delimiter: typeof opts.delimiter === 'string' || utils.isRegExp(opts.delimiter) ? opts.delimiter : defaults.delimiter,
  30533. // eslint-disable-next-line no-implicit-coercion, no-extra-parens
  30534. depth: (typeof opts.depth === 'number' || opts.depth === false) ? +opts.depth : defaults.depth,
  30535. ignoreQueryPrefix: opts.ignoreQueryPrefix === true,
  30536. interpretNumericEntities: typeof opts.interpretNumericEntities === 'boolean' ? opts.interpretNumericEntities : defaults.interpretNumericEntities,
  30537. parameterLimit: typeof opts.parameterLimit === 'number' ? opts.parameterLimit : defaults.parameterLimit,
  30538. parseArrays: opts.parseArrays !== false,
  30539. plainObjects: typeof opts.plainObjects === 'boolean' ? opts.plainObjects : defaults.plainObjects,
  30540. strictNullHandling: typeof opts.strictNullHandling === 'boolean' ? opts.strictNullHandling : defaults.strictNullHandling
  30541. };
  30542. };
  30543. module.exports = function (str, opts) {
  30544. var options = normalizeParseOptions(opts);
  30545. if (str === '' || str === null || typeof str === 'undefined') {
  30546. return options.plainObjects ? Object.create(null) : {};
  30547. }
  30548. var tempObj = typeof str === 'string' ? parseValues(str, options) : str;
  30549. var obj = options.plainObjects ? Object.create(null) : {};
  30550. // Iterate over the keys and setup the new object
  30551. var keys = Object.keys(tempObj);
  30552. for (var i = 0; i < keys.length; ++i) {
  30553. var key = keys[i];
  30554. var newObj = parseKeys(key, tempObj[key], options, typeof str === 'string');
  30555. obj = utils.merge(obj, newObj, options);
  30556. }
  30557. if (options.allowSparse === true) {
  30558. return obj;
  30559. }
  30560. return utils.compact(obj);
  30561. };
  30562. /***/ }),
  30563. /***/ 8:
  30564. /*!***************************************************************************!*\
  30565. !*** ./node_modules/@babel/runtime/helpers/unsupportedIterableToArray.js ***!
  30566. \***************************************************************************/
  30567. /*! no static exports found */
  30568. /***/ (function(module, exports, __webpack_require__) {
  30569. var arrayLikeToArray = __webpack_require__(/*! ./arrayLikeToArray.js */ 9);
  30570. function _unsupportedIterableToArray(o, minLen) {
  30571. if (!o) return;
  30572. if (typeof o === "string") return arrayLikeToArray(o, minLen);
  30573. var n = Object.prototype.toString.call(o).slice(8, -1);
  30574. if (n === "Object" && o.constructor) n = o.constructor.name;
  30575. if (n === "Map" || n === "Set") return Array.from(o);
  30576. if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return arrayLikeToArray(o, minLen);
  30577. }
  30578. module.exports = _unsupportedIterableToArray, module.exports.__esModule = true, module.exports["default"] = module.exports;
  30579. /***/ }),
  30580. /***/ 9:
  30581. /*!*****************************************************************!*\
  30582. !*** ./node_modules/@babel/runtime/helpers/arrayLikeToArray.js ***!
  30583. \*****************************************************************/
  30584. /*! no static exports found */
  30585. /***/ (function(module, exports) {
  30586. function _arrayLikeToArray(arr, len) {
  30587. if (len == null || len > arr.length) len = arr.length;
  30588. for (var i = 0, arr2 = new Array(len); i < len; i++) {
  30589. arr2[i] = arr[i];
  30590. }
  30591. return arr2;
  30592. }
  30593. module.exports = _arrayLikeToArray, module.exports.__esModule = true, module.exports["default"] = module.exports;
  30594. /***/ })
  30595. }]);
  30596. //# sourceMappingURL=../../.sourcemap/mp-weixin/common/vendor.js.map