1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819 |
- <!DOCTYPE html>
- <html>
- <head>
- <meta charset="UTF-8">
- <title></title>
- </head>
- <body>
- <script>
- /*! 2018-02-06 20:38:35 v8.2.1 */ ! function(e) {
- function i(n) {
- if(o[n]) return o[n].exports;
- var r = o[n] = {
- exports: {},
- id: n,
- loaded: !1
- };
- return e[n].call(r.exports, r, r.exports, i), r.loaded = !0, r.exports
- }
- var o = {};
- return i.m = e, i.c = o, i.p = "", i(0)
- }([function(e, i) {
- "use strict";
- var o = window,
- n = document;
- ! function() {
- var e = 2,
- r = "ali_analytics";
- if(o[r] && o[r].ua && e <= o[r].ua.version) return void(i.info = o[r].ua);
- var t, a, d, s, c, u, h, l, m, b, f, v, p, w, g, x, z, O = o.navigator,
- k = O.appVersion,
- T = O && O.userAgent || "",
- y = function(e) {
- var i = 0;
- return parseFloat(e.replace(/\./g, function() {
- return 0 === i++ ? "." : ""
- }))
- },
- _ = function(e, i) {
- var o, n;
- i[o = "trident"] = .1, (n = e.match(/Trident\/([\d.]*)/)) && n[1] && (i[o] = y(n[1])), i.core = o
- },
- N = function(e) {
- var i, o;
- return(i = e.match(/MSIE ([^;]*)|Trident.*; rv(?:\s|:)?([0-9.]+)/)) && (o = i[1] || i[2]) ? y(o) : 0
- },
- P = function(e) {
- return e || "other"
- },
- M = function(e) {
- function i() {
- for(var i = [
- ["Windows NT 5.1", "winXP"],
- ["Windows NT 6.1", "win7"],
- ["Windows NT 6.0", "winVista"],
- ["Windows NT 6.2", "win8"],
- ["Windows NT 10.0", "win10"],
- ["iPad", "ios"],
- ["iPhone;", "ios"],
- ["iPod", "ios"],
- ["Macintosh", "mac"],
- ["Android", "android"],
- ["Ubuntu", "ubuntu"],
- ["Linux", "linux"],
- ["Windows NT 5.2", "win2003"],
- ["Windows NT 5.0", "win2000"],
- ["Windows", "winOther"],
- ["rhino", "rhino"]
- ], o = 0, n = i.length; o < n; ++o)
- if(e.indexOf(i[o][0]) !== -1) return i[o][1];
- return "other"
- }
- function r(e, i, n, r) {
- var t, a = o.navigator.mimeTypes;
- try {
- for(t in a)
- if(a.hasOwnProperty(t) && a[t][e] == i) {
- if(void 0 !== n && r.test(a[t][n])) return !0;
- if(void 0 === n) return !0
- }
- return !1
- } catch(e) {
- return !1
- }
- }
- var t, a, d, s, c, u, h, l = "",
- m = l,
- b = l,
- f = [6, 9],
- v = "{{version}}",
- p = "<!--[if IE " + v + "]><s></s><![endif]-->",
- w = n && n.createElement("div"),
- g = [],
- x = {
- webkit: void 0,
- edge: void 0,
- trident: void 0,
- gecko: void 0,
- presto: void 0,
- chrome: void 0,
- safari: void 0,
- firefox: void 0,
- ie: void 0,
- ieMode: void 0,
- opera: void 0,
- mobile: void 0,
- core: void 0,
- shell: void 0,
- phantomjs: void 0,
- os: void 0,
- ipad: void 0,
- iphone: void 0,
- ipod: void 0,
- ios: void 0,
- android: void 0,
- nodejs: void 0,
- extraName: void 0,
- extraVersion: void 0
- };
- if(w && w.getElementsByTagName && (w.innerHTML = p.replace(v, ""), g = w.getElementsByTagName("s")), g.length > 0) {
- for(_(e, x), s = f[0], c = f[1]; s <= c; s++)
- if(w.innerHTML = p.replace(v, s), g.length > 0) {
- x[b = "ie"] = s;
- break
- }!x.ie && (d = N(e)) && (x[b = "ie"] = d)
- } else((a = e.match(/AppleWebKit\/*\s*([\d.]*)/i)) || (a = e.match(/Safari\/([\d.]*)/))) && a[1] ? (x[m = "webkit"] = y(a[1]), (a = e.match(/OPR\/(\d+\.\d+)/)) && a[1] ? x[b = "opera"] = y(a[1]) : (a = e.match(/Chrome\/([\d.]*)/)) && a[1] ? x[b = "chrome"] = y(a[1]) : (a = e.match(/\/([\d.]*) Safari/)) && a[1] ? x[b = "safari"] = y(a[1]) : x.safari = x.webkit, (a = e.match(/Edge\/([\d.]*)/)) && a[1] && (m = b = "edge", x[m] = y(a[1])), / Mobile\//.test(e) && e.match(/iPad|iPod|iPhone/) ? (x.mobile = "apple", a = e.match(/OS ([^\s]*)/), a && a[1] && (x.ios = y(a[1].replace("_", "."))), t = "ios", a = e.match(/iPad|iPod|iPhone/), a && a[0] && (x[a[0].toLowerCase()] = x.ios)) : / Android/i.test(e) ? (/Mobile/.test(e) && (t = x.mobile = "android"), a = e.match(/Android ([^\s]*);/), a && a[1] && (x.android = y(a[1]))) : (a = e.match(/NokiaN[^\/]*|Android \d\.\d|webOS\/\d\.\d/)) && (x.mobile = a[0].toLowerCase()), (a = e.match(/PhantomJS\/([^\s]*)/)) && a[1] && (x.phantomjs = y(a[1]))) : (a = e.match(/Presto\/([\d.]*)/)) && a[1] ? (x[m = "presto"] = y(a[1]), (a = e.match(/Opera\/([\d.]*)/)) && a[1] && (x[b = "opera"] = y(a[1]), (a = e.match(/Opera\/.* Version\/([\d.]*)/)) && a[1] && (x[b] = y(a[1])), (a = e.match(/Opera Mini[^;]*/)) && a ? x.mobile = a[0].toLowerCase() : (a = e.match(/Opera Mobi[^;]*/)) && a && (x.mobile = a[0]))) : (d = N(e)) ? (x[b = "ie"] = d, _(e, x)) : (a = e.match(/Gecko/)) && (x[m = "gecko"] = .1, (a = e.match(/rv:([\d.]*)/)) && a[1] && (x[m] = y(a[1]), /Mobile|Tablet/.test(e) && (x.mobile = "firefox")), (a = e.match(/Firefox\/([\d.]*)/)) && a[1] && (x[b = "firefox"] = y(a[1])));
- t || (t = i());
- var z, O, T;
- if(!r("type", "application/vnd.chromium.remoting-viewer")) {
- z = "scoped" in n.createElement("style"), T = "v8Locale" in o;
- try {
- O = o.external || void 0
- } catch(e) {}
- if(a = e.match(/360SE/)) u = "360";
- else if((a = e.match(/SE\s([\d.]*)/)) || O && "SEVersion" in O) u = "sougou", h = y(a[1]) || .1;
- else if((a = e.match(/Maxthon(?:\/)+([\d.]*)/)) && O) {
- u = "maxthon";
- try {
- h = y(O.max_version || a[1])
- } catch(e) {
- h = .1
- }
- } else z && T ? u = "360se" : z || T || !/Gecko\)\s+Chrome/.test(k) || x.opera || x.edge || (u = "360ee")
- }(a = e.match(/TencentTraveler\s([\d.]*)|QQBrowser\/([\d.]*)/)) ? (u = "tt", h = y(a[2]) || .1) : (a = e.match(/LBBROWSER/)) || O && "LiebaoGetVersion" in O ? u = "liebao" : (a = e.match(/TheWorld/)) ? (u = "theworld", h = 3) : (a = e.match(/TaoBrowser\/([\d.]*)/)) ? (u = "taobao", h = y(a[1]) || .1) : (a = e.match(/UCBrowser\/([\d.]*)/)) && (u = "uc", h = y(a[1]) || .1), x.os = t, x.core = x.core || m, x.shell = b, x.ieMode = x.ie && n.documentMode || x.ie, x.extraName = u, x.extraVersion = h;
- var P = o.screen.width,
- M = o.screen.height;
- return x.resolution = P + "x" + M, x
- },
- S = function(e) {
- function i(e) {
- return Object.prototype.toString.call(e)
- }
- function o(e, o, n) {
- if("[object Function]" == i(o) && (o = o(n)), !o) return null;
- var r = {
- name: e,
- version: ""
- },
- t = i(o);
- if(o === !0) return r;
- if("[object String]" === t) {
- if(n.indexOf(o) !== -1) return r
- } else if(o.exec) {
- var a = o.exec(n);
- if(a) return a.length >= 2 && a[1] ? r.version = a[1].replace(/_/g, ".") : r.version = "", r
- }
- }
- var n = {
- name: "other",
- version: ""
- };
- e = (e || "").toLowerCase();
- for(var r = [
- ["nokia", function(e) {
- return e.indexOf("nokia ") !== -1 ? /\bnokia ([0-9]+)?/ : /\bnokia([a-z0-9]+)?/
- }],
- ["samsung", function(e) {
- return e.indexOf("samsung") !== -1 ? /\bsamsung(?:[ \-](?:sgh|gt|sm))?-([a-z0-9]+)/ : /\b(?:sgh|sch|gt|sm)-([a-z0-9]+)/
- }],
- ["wp", function(e) {
- return e.indexOf("windows phone ") !== -1 || e.indexOf("xblwp") !== -1 || e.indexOf("zunewp") !== -1 || e.indexOf("windows ce") !== -1
- }],
- ["pc", "windows"],
- ["ipad", "ipad"],
- ["ipod", "ipod"],
- ["iphone", /\biphone\b|\biph(\d)/],
- ["mac", "macintosh"],
- ["mi", /\bmi[ \-]?([a-z0-9 ]+(?= build|\)))/],
- ["hongmi", /\bhm[ \-]?([a-z0-9]+)/],
- ["aliyun", /\baliyunos\b(?:[\-](\d+))?/],
- ["meizu", function(e) {
- return e.indexOf("meizu") >= 0 ? /\bmeizu[\/ ]([a-z0-9]+)\b/ : /\bm([0-9x]{1,3})\b/
- }],
- ["nexus", /\bnexus ([0-9s.]+)/],
- ["huawei", function(e) {
- var i = /\bmediapad (.+?)(?= build\/huaweimediapad\b)/;
- return e.indexOf("huawei-huawei") !== -1 ? /\bhuawei\-huawei\-([a-z0-9\-]+)/ : i.test(e) ? i : /\bhuawei[ _\-]?([a-z0-9]+)/
- }],
- ["lenovo", function(e) {
- return e.indexOf("lenovo-lenovo") !== -1 ? /\blenovo\-lenovo[ \-]([a-z0-9]+)/ : /\blenovo[ \-]?([a-z0-9]+)/
- }],
- ["zte", function(e) {
- return /\bzte\-[tu]/.test(e) ? /\bzte-[tu][ _\-]?([a-su-z0-9\+]+)/ : /\bzte[ _\-]?([a-su-z0-9\+]+)/
- }],
- ["vivo", /\bvivo(?: ([a-z0-9]+))?/],
- ["htc", function(e) {
- return /\bhtc[a-z0-9 _\-]+(?= build\b)/.test(e) ? /\bhtc[ _\-]?([a-z0-9 ]+(?= build))/ : /\bhtc[ _\-]?([a-z0-9 ]+)/
- }],
- ["oppo", /\boppo[_]([a-z0-9]+)/],
- ["konka", /\bkonka[_\-]([a-z0-9]+)/],
- ["sonyericsson", /\bmt([a-z0-9]+)/],
- ["coolpad", /\bcoolpad[_ ]?([a-z0-9]+)/],
- ["lg", /\blg[\-]([a-z0-9]+)/],
- ["android", /\bandroid\b|\badr\b/],
- ["blackberry", function(e) {
- return e.indexOf("blackberry") >= 0 ? /\bblackberry\s?(\d+)/ : "bb10"
- }]
- ], t = 0; t < r.length; t++) {
- var a = r[t][0],
- d = r[t][1],
- s = o(a, d, e);
- if(s) {
- n = s;
- break
- }
- }
- return n
- },
- E = 1;
- try {
- t = M(T), a = S(T), d = t.os, s = t.shell, c = t.core, u = t.resolution, h = t.extraName, l = t.extraVersion, m = a.name, b = a.version, v = d ? d + (t[d] ? t[d] : "") : "", p = s ? s + parseInt(t[s]) : "", w = c, g = u, x = h ? h + (l ? parseInt(l) : "") : "", z = m + b
- } catch(e) {}
- f = {
- p: E,
- o: P(v),
- b: P(p),
- w: P(w),
- s: g,
- mx: x,
- ism: z
- }, o[r] || (o[r] = {}), o[r].ua || (o[r].ua = {}), o.goldlog || (o.goldlog = {}), i.info = o[r].ua = goldlog._aplus_client = {
- version: e,
- ua_info: f
- }
- }()
- }]); /*! 2017-10-31 20:15:15 v0.2.4 */
- ! function(t) {
- function e(o) {
- if(n[o]) return n[o].exports;
- var i = n[o] = {
- exports: {},
- id: o,
- loaded: !1
- };
- return t[o].call(i.exports, i, i.exports, e), i.loaded = !0, i.exports
- }
- var n = {};
- return e.m = t, e.c = n, e.p = "", e(0)
- }([function(t, e, n) {
- "use strict";
- ! function() {
- var t = window.goldlog || (window.goldlog = {});
- t._aplus_cplugin_utilkit || (t._aplus_cplugin_utilkit = {
- status: "init"
- }, n(1).init(t), t._aplus_cplugin_utilkit.status = "complete")
- }()
- }, function(t, e, n) {
- "use strict";
- var o = n(2),
- i = n(4);
- e.init = function(t) {
- t.setCookie = o.setCookie, t.getCookie = o.getCookie, t.on = i.on
- }
- }, function(t, e, n) {
- "use strict";
- var o = document,
- i = n(3),
- a = function(t) {
- var e = new RegExp("(?:^|;)\\s*" + t + "=([^;]+)"),
- n = o.cookie.match(e);
- return n ? n[1] : ""
- };
- e.getCookie = a;
- var r = function(t, e, n) {
- n || (n = {});
- var i = new Date;
- return n.expires && ("number" == typeof n.expires || n.expires.toUTCString) ? ("number" == typeof n.expires ? i.setTime(i.getTime() + 24 * n.expires * 60 * 60 * 1e3) : i = n.expires, e += "; expires=" + i.toUTCString()) : "session" !== n.expires && (i.setTime(i.getTime() + 63072e7), e += "; expires=" + i.toUTCString()), e += "; path=" + (n.path ? n.path : "/"), e += "; domain=" + n.domain, o.cookie = t + "=" + e, a(t)
- };
- e.setCookie = function(t, e, n) {
- try {
- if(n || (n = {}), n.domain) r(t, e, n);
- else
- for(var o = i.getDomains(), a = 0; a < o.length;) n.domain = o[a], r(t, e, n) ? a = o.length : a++
- } catch(t) {}
- }
- }, function(t, e) {
- "use strict";
- e.getDomains = function() {
- var t = [];
- try {
- for(var e = location.hostname, n = e.split("."), o = 2; o <= n.length;) t.push(n.slice(n.length - o).join(".")), o++
- } catch(t) {}
- return t
- }
- }, function(t, e) {
- "use strict";
- var n = window,
- o = document,
- i = !!o.attachEvent,
- a = "attachEvent",
- r = "addEventListener",
- c = i ? a : r,
- u = function(t, e) {
- var n = goldlog._$ || {},
- o = n.meta_info || {},
- i = o.aplus_ctap || {};
- if(i && "function" == typeof i.on) i.on(t, e);
- else {
- var a = "ontouchend" in document.createElement("div"),
- r = a ? "touchstart" : "mousedown";
- s(t, r, e)
- }
- },
- s = function(t, e, o) {
- return "tap" === e ? void u(t, o) : void t[c]((i ? "on" : "") + e, function(t) {
- t = t || n.event;
- var e = t.target || t.srcElement;
- "function" == typeof o && o(t, e)
- }, !1)
- };
- e.on = s;
- var d = function(t) {
- try {
- o.documentElement.doScroll("left")
- } catch(e) {
- return void setTimeout(function() {
- d(t)
- }, 1)
- }
- t()
- },
- l = function(t) {
- var e = 0,
- n = function() {
- 0 === e && t(), e++
- };
- "complete" === o.readyState && n();
- var i;
- if(o.addEventListener) i = function() {
- o.removeEventListener("DOMContentLoaded", i, !1), n()
- }, o.addEventListener("DOMContentLoaded", i, !1), window.addEventListener("load", n, !1);
- else if(o.attachEvent) {
- i = function() {
- "complete" === o.readyState && (o.detachEvent("onreadystatechange", i), n())
- }, o.attachEvent("onreadystatechange", i), window.attachEvent("onload", n);
- var a = !1;
- try {
- a = null === window.frameElement
- } catch(t) {}
- o.documentElement.doScroll && a && d(n)
- }
- };
- e.DOMReady = function(t) {
- l(t)
- }, e.onload = function(t) {
- "complete" === o.readyState ? t() : s(n, "load", t)
- }
- }]); /*! 2017-12-19 12:10:24 v0.2.9 */
- ! function(o) {
- function t(r) {
- if(e[r]) return e[r].exports;
- var a = e[r] = {
- exports: {},
- id: r,
- loaded: !1
- };
- return o[r].call(a.exports, a, a.exports, t), a.loaded = !0, a.exports
- }
- var e = {};
- return t.m = o, t.c = e, t.p = "", t(0)
- }([function(o, t, e) {
- "use strict";
- ! function() {
- var o = window.goldlog || (window.goldlog = {});
- o._aplus_cplugin_m || (o._aplus_cplugin_m = e(1).run())
- }()
- }, function(o, t, e) {
- "use strict";
- var r = e(2),
- a = e(3),
- n = e(4),
- s = navigator.sendBeacon ? "post" : "get";
- e(5).run(), t.run = function() {
- return {
- status: "complete",
- do_tracker_jserror: function(o) {
- try {
- var t = new n({
- logkey: o ? o.logkey : "",
- ratio: o && "number" == typeof o.ratio && o.ratio > 0 ? o.ratio : r.jsErrorRecordRatio
- }),
- e = ["Message: " + o.message, "Error object: " + o.error].join(" - "),
- c = goldlog.spm_ab || [],
- i = location.hostname + location.pathname;
- t.run({
- code: 110,
- page: i,
- msg: "record_jserror_by" + s + "_" + o.message,
- spm_a: c[0],
- spm_b: c[1],
- c1: e,
- c2: o.filename,
- c3: location.protocol + "//" + i
- })
- } catch(o) {
- a.logger({
- msg: o
- })
- }
- },
- do_tracker_lostpv: function(o) {
- var t = !1;
- try {
- if(o && o.page) {
- var e = o.spm_ab ? o.spm_ab.split(".") : [],
- c = "record_lostpv_by" + s + "_" + o.msg,
- i = new n({
- ratio: o.ratio || r.lostPvRecordRatio
- });
- i.run({
- code: 102,
- page: o.page,
- msg: c,
- spm_a: e[0],
- spm_b: e[1],
- c1: o.duration,
- c2: o.page_url
- }), t = !0
- }
- } catch(o) {
- a.logger({
- msg: o
- })
- }
- return t
- },
- do_tracker_obsolete_inter: function(o) {
- var t = !1;
- try {
- if(o && o.page) {
- var e = o.spm_ab ? o.spm_ab.split(".") : [],
- c = "record_obsolete interface be called by" + s,
- i = new n({
- ratio: o.ratio || r.obsoleteInterRecordRatio
- });
- i.run({
- code: 109,
- page: o.page,
- msg: c,
- spm_a: e[0],
- spm_b: e[1],
- c1: o.interface_name,
- c2: o.interface_params
- }), t = !0
- }
- } catch(o) {
- a.logger({
- msg: o
- })
- }
- return t
- },
- do_tracker_browser_support: function(o) {
- var t = !1;
- try {
- if(o && o.page) {
- var e = o.spm_ab ? o.spm_ab.split(".") : [],
- c = new n({
- ratio: o.ratio || r.browserSupportRatio
- }),
- i = goldlog._aplus_client || {},
- g = i.ua_info || {};
- c.run({
- code: 111,
- page: o.page,
- msg: o.msg + "_by" + s,
- spm_a: e[0],
- spm_b: e[1],
- c1: [g.o, g.b, g.w].join("_"),
- c2: o.etag || "",
- c3: o.cna || ""
- }), t = !0
- }
- } catch(o) {
- a.logger({
- msg: o
- })
- }
- return t
- }
- }
- }
- }, function(o, t) {
- "use strict";
- t.lostPvRecordRatio = "0.01", t.obsoleteInterRecordRatio = "0.01", t.jsErrorRecordRatio = "0.01", t.browserSupportRatio = "0.01", t.goldlogQueueRatio = "0.01"
- }, function(o, t) {
- "use strict";
- var e = function(o) {
- var t = o.level || "warn";
- window.console && window.console[t] && window.console[t](o.msg)
- };
- t.logger = e, t.assign = function(o, t) {
- if("function" != typeof Object.assign) {
- var e = function(o) {
- if(null === o) throw new TypeError("Cannot convert undefined or null to object");
- for(var t = Object(o), e = 1; e < arguments.length; e++) {
- var r = arguments[e];
- if(null !== r)
- for(var a in r) Object.prototype.hasOwnProperty.call(r, a) && (t[a] = r[a])
- }
- return t
- };
- return e(o, t)
- }
- return Object.assign({}, o, t)
- }, t.makeCacheNum = function() {
- return Math.floor(268435456 * Math.random()).toString(16)
- }, t.obj2param = function(o) {
- var t, e, r = [];
- for(t in o) o.hasOwnProperty(t) && (e = "" + o[t], r.push(t + "=" + encodeURIComponent(e)));
- return r.join("&")
- }
- }, function(o, t, e) {
- var r = e(3),
- a = {
- ratio: 1,
- logkey: "fsp.1.1",
- gmkey: "",
- chksum: "H46747615"
- },
- n = function(o) {
- o && "object" == typeof o || (o = a), this.opts = o, this.opts.ratio = o.ratio || a.ratio, this.opts.logkey = o.logkey || a.logkey, this.opts.gmkey = o.gmkey || a.gmkey, this.opts.chksum = o.chksum || a.chksum
- },
- s = n.prototype;
- s.getRandom = function() {
- return Math.floor(100 * Math.random()) + 1
- }, s.run = function(o) {
- var t, e, a = {
- pid: "aplus",
- code: 101,
- msg: "异常内容"
- },
- n = "";
- try {
- var s = window.goldlog || {},
- c = s._$ || {},
- i = c.meta_info || {},
- g = parseFloat(i["aplus-tracker-rate"]);
- if(t = this.opts || {}, "number" == typeof g && g + "" != "NaN" || (g = t.ratio), e = this.getRandom(), e <= 100 * g) {
- n = "//gm.mmstat.com/" + t.logkey, o.rel = c.script_name + "@" + s.lver, o.type = o.code, o.uid = encodeURIComponent(s.getCookie("cna")), o = r.assign(a, o);
- var l = r.obj2param(o);
- s.tracker = s.send(n, {
- cache: r.makeCacheNum(),
- gokey: l,
- logtype: "2"
- }, "POST")
- }
- } catch(o) {
- r.logger({
- msg: "tracker.run() exec error: " + o
- })
- }
- }, o.exports = n
- }, function(o, t, e) {
- "use strict";
- var r = e(6),
- a = function(o) {
- var t = window.goldlog || {},
- e = t._$ = t._$ || {},
- r = t.spm_ab ? t.spm_ab.join(".") : "0.0",
- a = e.send_pv_count || 0;
- if(a < 1 && navigator && navigator.sendBeacon) {
- var n = window.goldlog_queue || (window.goldlog_queue = []),
- s = location.hostname + location.pathname;
- n.push({
- action: ["goldlog", "_aplus_cplugin_m", "do_tracker_lostpv"].join("."),
- arguments: [{
- page: s,
- page_url: location.protocol + "//" + s,
- duration: o,
- spm_ab: r,
- msg: "dom_state=" + document.readyState
- }]
- })
- }
- };
- t.run = function() {
- var o = new Date;
- r.on(window, "beforeunload", function() {
- var t = new Date,
- e = t.getTime() - o.getTime();
- a(e)
- })
- }
- }, function(o, t) {
- "use strict";
- var e = window,
- r = document,
- a = !!r.attachEvent,
- n = "attachEvent",
- s = "addEventListener",
- c = a ? n : s;
- t.getIframeUrl = function(o) {
- var t, e = "//g.alicdn.com";
- return t = goldlog && "function" == typeof goldlog.getCdnPath ? goldlog.getCdnPath() || e : e, (o || "https") + ":" + t + "/alilog/aplus_cplugin/@@APLUS_CPLUGIN_VER/ls.html"
- }, t.on = function(o, t, r) {
- o[c]((a ? "on" : "") + t, function(o) {
- o = o || e.event;
- var t = o.target || o.srcElement;
- "function" == typeof r && r(o, t)
- }, !1)
- }, t.checkLs = function() {
- var o;
- try {
- window.localStorage && (localStorage.setItem("test_log_cna", "1"), "1" === localStorage.getItem("test_log_cna") && (localStorage.removeItem("test_log_cna"), o = !0))
- } catch(t) {
- o = !1
- }
- return o
- }, t.tracker_iframe_status = function(o, t) {
- var e = window.goldlog_queue || (window.goldlog_queue = []),
- r = goldlog.spm_ab ? goldlog.spm_ab.join(".") : "",
- a = "createIframe_" + t.status + "_id=" + o;
- t.msg && (a += "_" + t.msg), e.push({
- action: "goldlog._aplus_cplugin_m.do_tracker_browser_support",
- arguments: [{
- page: location.hostname + location.pathname,
- msg: a,
- browser_attr: navigator.userAgent,
- spm_ab: r,
- cna: t.duration || "",
- ratio: .01
- }]
- })
- }, t.tracker_ls_failed = function() {
- var o = window.goldlog_queue || (window.goldlog_queue = []),
- t = goldlog.spm_ab ? goldlog.spm_ab.join(".") : "";
- o.push({
- action: "goldlog._aplus_cplugin_m.do_tracker_browser_support",
- arguments: [{
- page: location.hostname + location.pathname,
- msg: "donot support localStorage",
- browser_attr: navigator.userAgent,
- spm_ab: t
- }]
- })
- }, t.processMsgData = function(o) {
- var t = {};
- try {
- t = "string" == typeof o ? JSON.parse(o) : o, t || (t = {})
- } catch(o) {
- t = {}
- }
- return t
- }, t.do_pub_fn = function(o, t) {
- var e = window.goldlog_queue || (window.goldlog_queue = []);
- e.push({
- action: "goldlog.aplus_pubsub.publish",
- arguments: [o, t]
- }), e.push({
- action: "goldlog.aplus_pubsub.cachePubs",
- arguments: [o, t]
- })
- }
- }]); /*! 2018-02-06 20:38:18 v8.2.1 */
- ! function(t) {
- function e(o) {
- if(n[o]) return n[o].exports;
- var a = n[o] = {
- exports: {},
- id: o,
- loaded: !1
- };
- return t[o].call(a.exports, a, a.exports, e), a.loaded = !0, a.exports
- }
- var n = {};
- return e.m = t, e.c = n, e.p = "", e(0)
- }([function(t, e, n) {
- t.exports = n(1)
- }, function(t, e, n) {
- "use strict";
- ! function() {
- var t = function() {
- n(2);
- var e = n(5);
- if(e.doPubMsg(["goldlogReady", "running"]), document.getElementsByTagName("body").length) {
- var o = window,
- a = "g_tb_aplus_loaded";
- if(o[a]) return;
- o[a] = 1, n(6).initGoldlog(), n(85).init()
- } else setTimeout(function() {
- t()
- }, 50)
- };
- t()
- }()
- }, function(t, e, n) {
- "use strict";
- ! function() {
- var t = window.goldlog || (window.goldlog = {}),
- e = n(3);
- t.aplus_pubsub || (t.aplus_pubsub = e.create())
- }()
- }, function(t, e, n) {
- "use strict";
- function o(t) {
- if("function" != typeof t) throw new TypeError(t + " is not a function");
- return t
- }
- var a = n(4),
- r = function(t) {
- for(var e = t.length, n = new Array(e - 1), o = 1; o < e; o++) n[o - 1] = t[o];
- return n
- },
- i = a.extend({
- create: function(t) {
- var e = new this;
- for(var n in t) e[n] = t[n];
- return e.handlers = [], e.pubs = {}, e
- },
- setHandlers: function(t) {
- this.handlers = t
- },
- subscribe: function(t, e) {
- o(e);
- var n = this,
- a = n.pubs || {};
- if(a[t]) {
- var r = a[t]();
- e.apply(n, r)
- }
- var i = n.handlers;
- return t in i || (i[t] = []), i[t].push(e), n.setHandlers(i), n
- },
- subscribeOnce: function(t, e) {
- o(e);
- var n, a = this;
- return this.subscribe.call(this, t, n = function() {
- a.unsubscribe.call(a, t, n);
- var o = Array.prototype.slice.call(arguments);
- e.apply(a, o)
- }), this
- },
- unsubscribe: function(t, e) {
- o(e);
- var n = this.handlers[t];
- if(!n) return this;
- if("object" == typeof n && n.length > 0) {
- for(var a = 0; a < n.length; a++) {
- var r = e.toString(),
- i = n[a].toString();
- r === i && n.splice(a, 1)
- }
- this.handlers[t] = n
- } else delete this.handlers[t];
- return this
- },
- publish: function(t) {
- var e = r(arguments),
- n = this.handlers,
- o = n[t] ? n[t].length : 0;
- if(o > 0)
- for(var a = 0; a < o; a++) n[t][a].apply(this, e);
- return this
- },
- cachePubs: function(t) {
- var e = this.pubs || {},
- n = r(arguments);
- e[t] = function() {
- return n
- }
- }
- });
- t.exports = i
- }, function(t, e) {
- "use strict";
- function n() {}
- n.prototype.extend = function() {}, n.prototype.create = function() {}, n.extend = function(t) {
- return this.prototype.extend.call(this, t)
- }, n.prototype.create = function(t) {
- var e = new this;
- for(var n in t) e[n] = t[n];
- return e
- }, n.prototype.extend = function(t) {
- var e = function() {};
- try {
- "function" != typeof Object.create && (Object.create = function(t) {
- function e() {}
- return e.prototype = t, new e
- }), e.prototype = Object.create(this.prototype);
- for(var n in t) e.prototype[n] = t[n];
- e.prototype.constructor = e, e.extend = e.prototype.extend, e.create = e.prototype.create
- } catch(t) {
- console.log(t)
- } finally {
- return e
- }
- }, t.exports = n
- }, function(t, e) {
- "use strict";
- var n = function() {
- var t = window.goldlog || {},
- e = t.aplus_pubsub || {},
- n = "function" == typeof e.publish;
- return n ? e : ""
- };
- e.doPubMsg = function(t) {
- var e = n();
- e && e.publish.apply(e, t)
- }, e.doCachePubs = function(t) {
- var e = n();
- e && "function" == typeof e.cachePubs && e.cachePubs.apply(e, t)
- }, e.doSubMsg = function(t, e) {
- var o = n();
- o && "function" == typeof o.subscribe && o.subscribe(t, e)
- }
- }, function(t, e, n) {
- "use strict";
- var o = n(7),
- a = n(5),
- r = n(8),
- i = n(34),
- s = i.getInfo(),
- u = "complete";
- e.initGoldlog = function() {
- var t = window.goldlog || (window.goldlog = {}),
- e = r.goldlog_path.run.create();
- for(var n in e) t[n] = e[n];
- var i = /TB\-PD/i.test(navigator.userAgent),
- c = t._$ = t._$ || {};
- return c.meta_info = s, c.is_terminal = "aplus_wap" === r.script_name || i || "1" == s["aplus-terminal"], c.send_pv_count = 0, c.status = u, c.script_name = r.script_name, t.lver = r.lver, t.nameStorage = o.nameStorage, a.doPubMsg(["goldlogReady", u]), a.doCachePubs(["goldlogReady", u]), t
- }
- }, function(t, e) {
- "use strict";
- var n = function() {
- function t() {
- var t, e = [],
- r = !0;
- for(var l in p) p.hasOwnProperty(l) && (r = !1, t = p[l] || "", e.push(c(l) + s + c(t)));
- n.name = r ? o : a + c(o) + i + e.join(u)
- }
- function e(t, e, n) {
- t && (t.addEventListener ? t.addEventListener(e, n, !1) : t.attachEvent && t.attachEvent("on" + e, function(e) {
- n.call(t, e)
- }))
- }
- var n = window;
- if(n.nameStorage) return n.nameStorage;
- var o, a = "nameStorage:",
- r = /^([^=]+)(?:=(.*))?$/,
- i = "?",
- s = "=",
- u = "&",
- c = encodeURIComponent,
- l = decodeURIComponent,
- p = {},
- g = {};
- return function(t) {
- if(t && 0 === t.indexOf(a)) {
- var e = t.split(/[:?]/);
- e.shift(), o = l(e.shift()) || "";
- for(var n, i, s, c = e.join(""), g = c.split(u), f = 0, d = g.length; f < d; f++) n = g[f].match(r), n && n[1] && (i = l(n[1]), s = l(n[2]) || "", p[i] = s)
- } else o = t || ""
- }(n.name), g.setItem = function(e, n) {
- e && "undefined" != typeof n && (p[e] = String(n), t())
- }, g.getItem = function(t) {
- return p.hasOwnProperty(t) ? p[t] : null
- }, g.removeItem = function(e) {
- p.hasOwnProperty(e) && (p[e] = null, delete p[e], t())
- }, g.clear = function() {
- p = {}, t()
- }, g.valueOf = function() {
- return p
- }, g.toString = function() {
- var t = n.name;
- return 0 === t.indexOf(a) ? t : a + t
- }, e(n, "beforeunload", function() {
- t()
- }), g
- }();
- e.nameStorage = n
- }, function(t, e, n) {
- "use strict";
- var o = n(9),
- a = n(10),
- r = n(11);
- e.APLUS_ENV = "production", e.lver = a.lver, e.toUtVersion = a.toUtVersion, e.script_name = a.script_name, e.recordTypes = o.recordTypes, e.KEY = o.KEY, e.context = r.context, e.context_prepv = r.context_prepv, e.aplus_init_plugins = n(18).aplus_init_plugins, e.plugins_pv = n(29).plugins_pv, e.plugins_prepv = n(60).plugins_prepv, e.context_hjlj = n(61), e.plugins_hjlj = n(63).plugins_hjlj, e.beforeUnload = n(70), e.initLoad = n(72), e.spmException = n(76), e.goldlog_path = n(77), e.is_auto_pv = "true", e.utilPvid = n(81), e.disablePvid = "false", e.mustSpmE = !0, e.LS_CNA_KEY = "APLUS_CNA"
- }, function(t, e) {
- "use strict";
- e.recordTypes = {
- hjlj: "COMMON_HJLJ",
- uhjlj: "DATACLICK_HJLJ",
- pv: "PV",
- prepv: "PREPV"
- }, e.KEY = {
- NAME_STORAGE: {
- REFERRER: "wm_referrer",
- REFERRER_PV_ID: "refer_pv_id",
- LOST_PV_PAGE_DURATION: "lost_pv_page_duration",
- LOST_PV_PAGE_SPMAB: "lost_pv_page_spmab",
- LOST_PV_PAGE: "lost_pv_page",
- LOST_PV_PAGE_MSG: "lost_pv_page_msg"
- }
- }
- }, function(t, e) {
- "use strict";
- e.lver = "8.2.1", e.toUtVersion = "v20180206", e.script_name = "aplus_std"
- }, function(t, e, n) {
- "use strict";
- e.context = n(12), e.context_prepv = n(17)
- }, function(t, e, n) {
- "use strict";
- function o() {
- return {
- compose: {
- maxTimeout: 5500
- },
- etag: {
- egUrl: "//log.mmstat.com/eg.js",
- cna: i.getCookie("cna")
- }
- }
- }
- function a() {
- return r.assign(new s.initConfig, new o)
- }
- var r = n(13),
- i = n(14),
- s = n(16);
- t.exports = a
- }, function(t, e) {
- "use strict";
- function n(t, e) {
- return "function" != typeof Object.assign ? function(t) {
- if(null === t) throw new TypeError("Cannot convert undefined or null to object");
- for(var e = Object(t), n = 1; n < arguments.length; n++) {
- var o = arguments[n];
- if(null !== o)
- for(var a in o) Object.prototype.hasOwnProperty.call(o, a) && (e[a] = o[a])
- }
- return e
- }(t, e) : Object.assign({}, t, e)
- }
- function o(t) {
- return "function" == typeof t
- }
- function a(t) {
- return "[object Array]" === Object.prototype.toString.call(t)
- }
- function r(t) {
- return "string" == typeof t
- }
- function i(t) {
- return "undefined" == typeof t
- }
- function s(t, e) {
- return t.indexOf(e) > -1
- }
- var u = window;
- e.assign = n, e.makeCacheNum = function() {
- return Math.floor(268435456 * Math.random()).toString(16)
- }, e.each = function(t, e) {
- var n, o = t.length;
- for(n = 0; n < o; n++) e(t[n])
- }, e.isStartWith = function(t, e) {
- return 0 === t.indexOf(e)
- }, e.isEndWith = function(t, e) {
- var n = t.length,
- o = e.length;
- return n >= o && t.indexOf(e) == n - o
- }, e.any = function(t, e) {
- var n, o = t.length;
- for(n = 0; n < o; n++)
- if(e(t[n])) return !0;
- return !1
- }, e.isFunction = o, e.isArray = a, e.isString = r, e.isNumber = function(t) {
- return "number" == typeof t
- }, e.isUnDefined = i, e.isContain = s;
- var c = function(t) {
- var e, n = t.constructor === Array ? [] : {};
- if("object" == typeof t) {
- if(u.JSON && u.JSON.parse) e = JSON.stringify(t), n = JSON.parse(e);
- else
- for(var o in t) n[o] = "object" == typeof t[o] ? c(t[o]) : t[o];
- return n
- }
- };
- e.cloneObj = c, e.cloneDeep = c
- }, function(t, e, n) {
- "use strict";
- function o(t) {
- var e = s.cookie.match(new RegExp("(?:^|;)\\s*" + t + "=([^;]+)"));
- return e ? e[1] : ""
- }
- function a(t, e, n) {
- n || (n = {});
- var a = new Date;
- return "session" === n.expires || (n.expires && ("number" == typeof n.expires || n.expires.toUTCString) ? ("number" == typeof n.expires ? a.setTime(a.getTime() + 24 * n.expires * 60 * 60 * 1e3) : a = n.expires, e += "; expires=" + a.toUTCString()) : (a.setTime(a.getTime() + 63072e7), e += "; expires=" + a.toUTCString())), e += "; path=" + (n.path ? n.path : "/"), e += "; domain=" + n.domain, s.cookie = t + "=" + e, o(t)
- }
- function r(t, e, n) {
- try {
- if(n || (n = {}), n.domain) a(t, e, n);
- else
- for(var o = c.getDomains(), r = 0; r < o.length;) n.domain = o[r], a(t, e, n) ? r = o.length : r++
- } catch(t) {}
- }
- function i() {
- var t = {};
- return u.each(p, function(e) {
- t[e] = o(e)
- }), t.cnaui = /\btanx\.com$/.test(l) ? o("cnaui") : "", t
- }
- var s = document,
- u = n(13),
- c = n(15),
- l = location.hostname;
- e.getCookie = o, e.setCookie = r;
- var p = ["tracknick", "thw", "cna"];
- e.getData = i, e.getAda = function() {
- return encodeURIComponent(o("_a_d_a") || "")
- }
- }, function(t, e) {
- "use strict";
- e.getDomains = function() {
- var t = [];
- try {
- for(var e = location.hostname, n = e.split("."), o = 2; o <= n.length;) t.push(n.slice(n.length - o).join(".")), o++
- } catch(t) {}
- return t
- }
- }, function(t, e, n) {
- "use strict";
- function o(t, e, n) {
- var o = window.goldlog || {},
- s = o.getMetaInfo("aplus-ifr-pv") + "" == "1";
- return e ? r(t) ? "yt" : "m" : n && !s ? a.isContain(t, "wrating.com") ? "k" : i(t) || "y" : i(t) || "v"
- }
- var a = n(13),
- r = function(t) {
- for(var e = ["youku.com", "soku.com", "tudou.com", "laifeng.com"], n = 0; n < e.length; n++) {
- var o = e[n];
- if(a.isContain(t, o)) return !0
- }
- return !1
- },
- i = function(t) {
- for(var e = [
- ["scmp.com", "sc"],
- ["luxehomes.com.hk", "sc"],
- ["ays.com.hk", "sc"],
- ["cpjobs.com", "sc"],
- ["educationpost.com.hk", "sc"],
- ["cosmopolitan.com.hk", "sc"],
- ["elle.com.hk", "sc"],
- ["harpersbazaar.com.hk", "sc"],
- ["1688.com", "6"],
- ["youku.com", "yt"],
- ["soku.com", "yt"],
- ["tudou.com", "yt"],
- ["laifeng.com", "yt"]
- ], n = 0; n < e.length; n++) {
- var o = e[n];
- if(a.isContain(t, o[0])) return o[1]
- }
- return ""
- };
- e.getBeaconSrc = o, e.initConfig = function() {
- return {
- compose: {},
- etag: {
- egUrl: "//log.mmstat.com/eg.js",
- cna: "",
- tag: "",
- stag: "",
- lstag: "-1",
- lscnastatus: ""
- },
- can_to_sendpv: {},
- userdata: {},
- what_to_sendpv: {
- pvdata: {},
- exparams: {}
- },
- what_to_pvhash: {
- hash: []
- },
- what_to_sendpv_ut: {
- pvdataToUt: {}
- },
- what_to_sendpv_ut2: {
- isSuccess: !1,
- pvdataToUt: {}
- },
- when_to_sendpv: {
- aplusWaiting: ""
- },
- where_to_sendpv: {
- url: "//log.mmstat.com/o.gif",
- urlRule: o
- },
- where_to_sendlog_ut: {
- aplusToUT: {},
- toUTName: "toUT"
- },
- hjlj: {
- what_to_hjlj: {
- logdata: {}
- },
- what_to_hjlj_ut: {
- logdataToUT: {}
- }
- },
- network: {
- connType: "UNKNOWN"
- },
- is_single: !1
- }
- }
- }, function(t, e, n) {
- "use strict";
- function o() {
- return {
- etag: {
- egUrl: "//log.mmstat.com/eg.js",
- cna: a.getCookie("cna"),
- tag: "",
- stag: ""
- },
- compose: {},
- where_to_prepv: {
- url: "//log.mmstat.com/v.gif",
- urlRule: r.getBeaconSrc
- },
- userdata: {},
- what_to_prepv: {
- logdata: {}
- },
- what_to_hjlj_exinfo: {
- EXPARAMS_FLAG: "EXPARAMS",
- exinfo: [],
- exparams_key_names: ["uidaplus", "pc_i", "pu_i"]
- },
- is_single: !1
- }
- }
- var a = n(14),
- r = n(16);
- t.exports = o
- }, function(t, e, n) {
- "use strict";
- e.aplus_init_plugins = [{
- name: "etag",
- enable: !0,
- path: n(19)
- }]
- }, function(t, e, n) {
- "use strict";
- var o = n(14),
- a = n(20),
- r = n(27),
- i = n(23),
- s = n(28);
- t.exports = function() {
- return {
- init: function(t) {
- this.options = t;
- var e = this.options.context.etag || {};
- this.cna = e.cna || o.getCookie("cna"), this.setTag(0), this.setStag(-1), this.setEtag(this.cna || ""), this.requesting = !1
- },
- setTag: function(t) {
- this.tag = t, this.options.context.etag.tag = t
- },
- setStag: function(t) {
- this.stag = t, this.options.context.etag.stag = t
- },
- setEtag: function(t) {
- this.etag = t, this.options.context.etag.cna = t, o.getCookie("cna") !== t && o.setCookie("cna", t)
- },
- getUrl: function() {
- var t = this.options.context.etag || {},
- e = a.filterIntUrl(t.egUrl || "//log.mmstat.com/eg.js");
- try {
- var n = goldlog.getMetaInfo("aplus-rhost-v"),
- o = /[[a-z|0-9\.]+[a-z|0-9]/,
- r = n.match(o);
- r && r[0] && (e = e.replace(o, r[0]))
- } catch(t) {}
- return e
- },
- run: function(t, e) {
- var n = this;
- if(n.cna) return void n.setTag(1);
- var o = null,
- a = this.getUrl();
- if(0 === a.indexOf("//")) {
- var u = i.getProtocal();
- a = u + a
- }
- return n.requesting = !0, r.loadScript(a, function(t) {
- if(t && "error" === t.type && n.setStag(-3), n.requesting) {
- n.requesting = !1;
- var a = s.getGoldlogVal("Etag");
- a && n.setEtag(a);
- var r = s.getGoldlogVal("stag");
- "undefined" != typeof r && n.setStag(r), clearTimeout(o), e()
- }
- }), o = setTimeout(function() {
- n.requesting = !1, n.setStag(-2), e()
- }, 1e3), "pause"
- }
- }
- }
- }, function(t, e, n) {
- "use strict";
- function o(t) {
- t = (t || "").split("#")[0].split("?")[0];
- var e = t.length,
- n = function(t) {
- var e, n = t.length,
- o = 0;
- for(e = 0; e < n; e++) o = 31 * o + t.charCodeAt(e);
- return o
- };
- return e ? n(e + "#" + t.charCodeAt(e - 1)) : -1
- }
- function a(t) {
- for(var e = t.split("&"), n = 0, o = e.length, a = {}; n < o; n++) {
- var r = e[n],
- i = r.indexOf("="),
- s = r.substring(0, i),
- u = r.substring(i + 1);
- a[s] = p.tryToDecodeURIComponent(u)
- }
- return a
- }
- function r(t) {
- if("function" != typeof t) throw new TypeError(t + " is not a function");
- return t
- }
- function i(t) {
- var e, n, o, a = [],
- r = t.length;
- for(o = 0; o < r; o++) e = t[o][0], n = t[o][1], a.push(l.isStartWith(e, v) ? n : e + "=" + encodeURIComponent(n));
- return a.join("&")
- }
- function s(t) {
- var e, n, o, a = {},
- r = t.length;
- for(o = 0; o < r; o++) e = t[o][0], n = t[o][1], a[e] = n;
- return a
- }
- function u(t, e) {
- var n, o, a, r = [];
- for(n in t) t.hasOwnProperty(n) && (o = "" + t[n], a = n + "=" + encodeURIComponent(o), e ? r.push(a) : r.push(l.isStartWith(n, v) ? o : a));
- return r.join("&")
- }
- function c(t, e) {
- var n = t.indexOf("?") == -1 ? "?" : "&",
- o = e ? l.isArray(e) ? i(e) : u(e) : "";
- return o ? t + n + o : t
- }
- var l = n(13),
- p = n(21),
- g = n(23),
- f = parent !== self;
- e.is_in_iframe = f, e.makeCacheNum = l.makeCacheNum, e.isStartWith = l.isStartWith, e.isEndWith = l.isEndWith, e.any = l.any, e.each = l.each, e.assign = l.assign, e.isFunction = l.isFunction, e.isArray = l.isArray, e.isString = l.isString, e.isNumber = l.isNumber, e.isUnDefined = l.isUnDefined, e.isContain = l.isContain, e.sleep = n(24).sleep, e.makeChkSum = o, e.tryToDecodeURIComponent = p.tryToDecodeURIComponent, e.nodeListToArray = p.nodeListToArray, e.parseSemicolonContent = p.parseSemicolonContent, e.param2obj = a;
- var d = n(25),
- h = function(t) {
- return /^(\/\/){0,1}(\w+\.){1,}\w+$/.test(t)
- };
- e.hostValidity = h;
- var m = function(t, e) {
- var n = /^(\/\/){0,1}(\w+\.){1,}\w+\/\w+\.gif$/.test(t),
- o = h(t),
- a = "";
- return n ? a = "isGifPath" : o && (a = "isHostPath"), a || d.logger({
- msg: e + ": " + t + ' is invalid, suggestion: "xxx.mmstat.com"'
- }), a
- },
- _ = function(t) {
- return !/^\/\/gj\.mmstat/.test(t) && goldlog.isInternational() && (t = t.replace(/^\/\/\w+\.mmstat/, "//gj.mmstat")), t
- };
- e.filterIntUrl = _, e.getPvUrl = function(t) {
- t || (t = {});
- var e, n, o = t.metaValue && m(t.metaValue, t.metaName),
- a = "";
- "isGifPath" === o ? (e = /^\/\//.test(t.metaValue) ? "" : "//", a = e + t.metaValue) : "isHostPath" === o && (e = /^\/\//.test(t.metaValue) ? "" : "//", n = /\/$/.test(t.metaValue) ? "" : "/", a = e + t.metaValue + n + t.gifPath);
- var r;
- return a ? r = a : (e = 0 === t.gifPath.indexOf("/") ? t.gifPath : "/" + t.gifPath, r = t.url && t.url.replace(/\/\w+\.gif/, e)), r
- }, e.indexof = n(26).indexof, e.callable = r;
- var v = "::-plain-::";
- e.mkPlainKey = function() {
- return v + Math.random()
- }, e.s_plain_obj = v, e.mkPlainKeyForExparams = function(t) {
- var e = t || v;
- return e + "exparams"
- }, e.rndInt32 = function() {
- return Math.round(2147483647 * Math.random())
- }, e.arr2param = i, e.arr2obj = s, e.obj2param = u, e.makeUrl = c, e.ifAdd = function(t, e) {
- var n, o, a, r, i = e.length;
- for(n = 0; n < i; n++) o = e[n], a = o[0], r = o[1], r && t.push([a, r])
- }, e.isStartWithProtocol = g.isStartWithProtocol, e.param2arr = function(t) {
- for(var e, n = t.split("&"), o = 0, a = n.length, r = []; o < a; o++) e = n[o].split("="), r.push([e.shift(), e.join("=")]);
- return r
- }
- }, function(t, e, n) {
- "use strict";
- function o(t, e) {
- var n = e || "";
- if(t) try {
- n = decodeURIComponent(t)
- } catch(t) {}
- return n
- }
- var a = n(22);
- e.tryToDecodeURIComponent = o, e.parseSemicolonContent = function(t, e, n) {
- e = e || {};
- var r, i, s = t.split(";"),
- u = s.length;
- for(r = 0; r < u; r++) {
- i = s[r].split("=");
- var c = a.trim(i.slice(1).join("="));
- e[a.trim(i[0]) || ""] = n ? c : o(c)
- }
- return e
- }, e.nodeListToArray = function(t) {
- var e, n;
- try {
- return e = [].slice.call(t)
- } catch(a) {
- e = [], n = t.length;
- for(var o = 0; o < n; o++) e.push(t[o]);
- return e
- }
- }, e.nodeListToArray = function(t) {
- var e, n;
- try {
- return e = [].slice.call(t)
- } catch(a) {
- e = [], n = t.length;
- for(var o = 0; o < n; o++) e.push(t[o]);
- return e
- }
- };
- var r = {
- set: function(t, e) {
- try {
- return localStorage.setItem(t, e), !0
- } catch(t) {
- return !1
- }
- },
- get: function(t) {
- return localStorage.getItem(t)
- },
- test: function() {
- var t = "grey_test_key";
- try {
- return localStorage.setItem(t, 1), localStorage.removeItem(t), !0
- } catch(t) {
- return !1
- }
- },
- remove: function(t) {
- localStorage.removeItem(t)
- }
- };
- e.store = r, e.getLsCna = function(t, e) {
- var n = "",
- o = r.get(t);
- if(o) {
- var a = o.split("_") || [];
- n = e ? a.length > 1 && e === a[0] ? a[1] : "" : a.length > 1 ? a[1] : ""
- }
- return decodeURIComponent(n)
- }, e.setLsCna = function(t, e, n) {
- n && r.set && r.test() && r.set(t, e + "_" + encodeURIComponent(n))
- }, e.getUrl = function(t) {
- var e = t || "//log.mmstat.com/eg.js";
- try {
- var n = goldlog.getMetaInfo("aplus-rhost-v"),
- o = /[[a-z|0-9\.]+[a-z|0-9]/,
- a = n.match(o);
- a && a[0] && (e = e.replace(o, a[0]))
- } catch(t) {}
- return e
- }
- }, function(t, e) {
- "use strict";
- function n(t) {
- return "string" == typeof t ? t.replace(/^\s+|\s+$/g, "") : ""
- }
- e.trim = n
- }, function(t, e, n) {
- "use strict";
- var o = n(13),
- a = function() {
- var t = location.protocol;
- return "http:" !== t && "https:" !== t && (t = "https:"), t
- };
- e.getProtocal = a, e.isStartWithProtocol = function(t) {
- for(var e = ["javascript:", "tel:", "sms:", "mailto:", "tmall://", "#"], n = 0, a = e.length; n < a; n++)
- if(o.isStartWith(t, e[n])) return !0;
- return !1
- }
- }, function(t, e) {
- "use strict";
- e.sleep = function(t, e) {
- return setTimeout(function() {
- e()
- }, t)
- }
- }, function(t, e) {
- "use strict";
- var n = function() {
- var t = !1;
- return "boolean" == typeof goldlog.aplusDebug && (t = goldlog.aplusDebug), t
- };
- e.isDebugAplus = n;
- var o = function(t) {
- t || (t = {});
- var e = t.level || "warn";
- window.console && window.console[e] && window.console[e](t.msg)
- };
- e.logger = o
- }, function(t, e) {
- "use strict";
- e.indexof = function(t, e) {
- var n = -1;
- try {
- n = t.indexOf(e)
- } catch(a) {
- for(var o = 0; o < t.length; o++) t[o] === e && (n = o)
- } finally {
- return n
- }
- }
- }, function(t, e, n) {
- "use strict";
- function o(t, e) {
- return t && t.getAttribute ? t.getAttribute(e) || "" : ""
- }
- function a(t, e, n) {
- if(t && t.setAttribute) try {
- t.setAttribute(e, n)
- } catch(t) {}
- }
- function r(t, e) {
- if(t && t.removeAttribute) try {
- t.removeAttribute(e)
- } catch(n) {
- a(t, e, "")
- }
- }
- function i(t, e, n) {
- var o = "script",
- a = g.createElement(o);
- a.type = "text/javascript", a.async = !0;
- var r = "https:" == location.protocol ? e || t : t;
- 0 === r.indexOf("//") && (r = u.getProtocal() + r), a.src = r, n && (a.id = n);
- var i = g.getElementsByTagName(o)[0];
- s = s || g.getElementsByTagName("head")[0], i ? i.parentNode.insertBefore(a, i) : s && s.appendChild(a)
- }
- var s, u = n(23),
- c = n(22),
- l = n(13),
- p = n(25),
- g = document;
- e.tryToGetAttribute = o, e.tryToSetAttribute = a, e.tryToRemoveAttribute = r, e.addScript = i, e.loadScript = function(t, e) {
- function n(t) {
- o.onreadystatechange = o.onload = o.onerror = null, o = null, e(t)
- }
- var o = g.createElement("script");
- if(s = s || g.getElementsByTagName("head")[0], o.async = !0, "onload" in o) o.onload = n;
- else {
- var a = function() {
- /loaded|complete/.test(o.readyState) && n()
- };
- o.onreadystatechange = a, a()
- }
- o.onerror = function(t) {
- n(t)
- }, o.src = t, s.appendChild(o)
- }, e.isTouch = function() {
- return "ontouchend" in document.createElement("div")
- }, e.tryToGetHref = function(t) {
- var e;
- try {
- e = c.trim(t.getAttribute("href", 2))
- } catch(t) {}
- return e || ""
- };
- var f = function() {
- var t = goldlog && goldlog._$ ? goldlog._$ : {},
- e = t.meta_info || {};
- return e["aplus-exparams"] || ""
- };
- e.getExParamsFromMeta = f, e.getExParams = function(t) {
- var e = g.getElementById("beacon-aplus") || g.getElementById("tb-beacon-aplus"),
- n = o(e, "exparams"),
- a = d(n, f(), t) || "";
- return a && a.replace(/&/g, "&").replace(/\buserid=/, "uidaplus=")
- };
- var d = function(t, e, n) {
- var o = "aplus&sidx=aplusSidex",
- a = t || o;
- try {
- if(e) {
- var r = n.param2obj(e),
- i = ["aplus", "cna", "spm-cnt", "spm-url", "spm-pre", "logtype", "pre", "uidaplus", "asid", "sidx", "trid", "gokey"];
- l.each(i, function(t) {
- r.hasOwnProperty(t) && (p.logger({
- msg: "Can not inject keywords: " + t
- }), delete r[t])
- }), delete r[""];
- var s = "";
- if(t) {
- var u = t.match(/aplus&/).index,
- c = u > 0 ? n.param2obj(t.substring(0, u)) : {};
- delete c[""], s = n.obj2param(l.assign(c, r)) + "&" + t.substring(u, t.length)
- } else s = n.obj2param(r) + "&" + o;
- return s
- }
- return a
- } catch(t) {
- return a
- }
- };
- e.mergeExparams = d
- }, function(t, e) {
- "use strict";
- var n = function(t) {
- var e;
- try {
- window.goldlog || (window.goldlog = {}), e = window.goldlog[t]
- } catch(t) {
- e = ""
- } finally {
- return e
- }
- };
- e.getGoldlogVal = n;
- var o = function(t, e) {
- var n = !1;
- try {
- window.goldlog || (window.goldlog = {}), t && (window.goldlog[t] = e, n = !0)
- } catch(t) {
- n = !1
- } finally {
- return n
- }
- };
- e.setGoldlogVal = o, e.getClientInfo = function() {
- return n("_aplus_client") || {}
- }
- }, function(t, e, n) {
- "use strict";
- e.plugins_pv = [{
- name: "etag",
- enable: !0,
- path: n(30)
- }, {
- name: "etag_sync",
- enable: !0,
- path: n(32)
- }, {
- name: "when_to_sendpv",
- enable: !0,
- path: n(33)
- }, {
- name: "where_to_sendlog_ut",
- enable: !0,
- path: n(36)
- }, {
- name: "is_single",
- enable: !0,
- path: n(38)
- }, {
- name: "what_to_pvhash",
- enable: !0,
- path: n(41)
- }, {
- name: "what_to_sendpv",
- enable: !0,
- path: n(42)
- }, {
- name: "what_to_sendpv_userdata",
- enable: !0,
- path: n(46),
- deps: ["what_to_sendpv"]
- }, {
- name: "what_to_sendpv_etag",
- enable: !0,
- path: n(50),
- deps: ["etag", "what_to_sendpv"]
- }, {
- name: "what_to_sendpv_ut",
- enable: !0,
- path: n(51),
- deps: ["where_to_sendlog_ut", "is_single"]
- }, {
- name: "can_to_sendpv",
- enable: !0,
- path: n(52)
- }, {
- name: "where_to_sendpv",
- enable: !0,
- path: n(53),
- deps: ["is_single"]
- }, {
- name: "do_sendpv",
- enable: !0,
- path: n(54),
- deps: ["is_single", "what_to_sendpv", "where_to_sendpv"]
- }, {
- name: "do_sendpv_ut",
- enable: !0,
- path: n(55),
- deps: ["what_to_sendpv_ut", "where_to_sendlog_ut"]
- }, {
- name: "cookiemapping",
- enable: !0,
- path: n(57),
- deps: ["do_sendpv"]
- }, {
- name: "after_pv",
- enable: !0,
- path: n(59)
- }]
- }, function(t, e, n) {
- "use strict";
- var o = n(14),
- a = n(27),
- r = n(21),
- i = n(31),
- s = n(23),
- u = n(28),
- c = n(8);
- t.exports = function() {
- return {
- init: function(t) {
- this.options = t;
- var e = this.options.context.etag || {};
- this.cna = e.cna || o.getCookie("cna"), this.setTag(0), this.setStag(-1), this.setLsTag("-1"), this.setEtag(this.cna || ""), this.requesting = !1, this.today = i.getFormatDate()
- },
- setLsTag: function(t) {
- this.lstag = t, this.options.context.etag.lstag = t
- },
- setTag: function(t) {
- this.tag = t, this.options.context.etag.tag = t
- },
- setStag: function(t) {
- this.stag = t, this.options.context.etag.stag = t
- },
- setEtag: function(t) {
- this.etag = t, this.options.context.etag.cna = t, o.getCookie("cna") !== t && o.setCookie("cna", t)
- },
- setLscnaStatus: function(t) {
- this.options.context.etag.lscnastatus = t
- },
- getUrl: function() {
- var t = this.options.context.etag || {};
- return r.getUrl(t.egUrl || "//log.mmstat.com/eg.js")
- },
- run: function(t, e) {
- var n = this;
- if(n.cna) return void n.setTag(1);
- var o = null,
- i = this.getUrl();
- if(0 === i.indexOf("//")) {
- var l = s.getProtocal();
- i = l + i
- }
- n.requesting = !0;
- var p = function() {
- setTimeout(function() {
- e()
- }, 20), clearTimeout(o)
- };
- return a.loadScript(i, function(t) {
- var e, o;
- if(t && "error" === t.type ? n.setStag(-3) : (e = u.getGoldlogVal("Etag"), e && n.setEtag(e), o = u.getGoldlogVal("stag"), "undefined" != typeof o && n.setStag(o)), n.requesting) {
- if(2 === o || 4 === o) {
- var a = r.getLsCna(c.LS_CNA_KEY);
- a ? (n.setLsTag(1), n.setEtag(a)) : (n.setLsTag(0), r.setLsCna(c.LS_CNA_KEY, n.today, e))
- }
- p()
- }
- }), o = setTimeout(function() {
- n.requesting = !1, n.setStag(-2), e()
- }, 1500), 2e3
- }
- }
- }
- }, function(t, e) {
- "use strict";
- function n(t, e, n) {
- var o = "" + Math.abs(t),
- a = e - o.length,
- r = t >= 0;
- return(r ? n ? "+" : "" : "-") + Math.pow(10, Math.max(0, a)).toString().substr(1) + o
- }
- e.getFormatDate = function(t) {
- var e = new Date;
- try {
- return [e.getFullYear(), n(e.getMonth() + 1, 2, 0), n(e.getDate(), 2, 0)].join(t || "")
- } catch(t) {
- return ""
- }
- }
- }, function(t, e, n) {
- "use strict";
- var o = n(21),
- a = n(27),
- r = n(8),
- i = n(31),
- s = o.store || {};
- t.exports = function() {
- return {
- init: function(t) {
- this.options = t, this.today = i.getFormatDate()
- },
- getUrl: function() {
- var t = this.options.context.etag || {};
- return o.getUrl(t.egUrl || "//log.mmstat.com/eg.js")
- },
- run: function() {
- var t = this;
- if(s.test()) {
- var e = o.getLsCna(r.LS_CNA_KEY, this.today);
- e || setTimeout(function() {
- a.loadScript(t.getUrl(), function(e) {
- e && "error" !== e.type && o.setLsCna(r.LS_CNA_KEY, t.today, goldlog.Etag)
- })
- }, 1e3)
- }
- }
- }
- }
- }, function(t, e, n) {
- "use strict";
- var o = n(28),
- a = n(24),
- r = n(34);
- t.exports = function() {
- return {
- init: function(t) {
- this.options = t
- },
- getMetaInfo: function() {
- var t = o.getGoldlogVal("_$") || {},
- e = t.meta_info || r.getInfo();
- return e
- },
- getAplusWaiting: function() {
- var t = this.getMetaInfo() || {};
- return t["aplus-waiting"]
- },
- run: function(t, e) {
- var n = this.options.config || {},
- o = this.getAplusWaiting();
- if(o && n.is_auto) switch(o = this.getAplusWaiting() + "", this.options.context.when_to_sendpv = {
- aplusWaiting: o
- }, o) {
- case "MAN":
- return "done";
- case "1":
- return this.options.context.when_to_sendpv.isWait = !0, a.sleep(6e3, function() {
- e()
- }), 6e3;
- default:
- var r = 1 * o;
- if(r + "" != "NaN") return this.options.context.when_to_sendpv.isWait = !0, a.sleep(r, function() {
- e()
- }), r
- }
- }
- }
- }
- }, function(t, e, n) {
- "use strict";
- function o(t) {
- var e, n, o, a = t.length,
- r = {};
- for(g._microscope_data = r, e = 0; e < a; e++) n = t[e], "microscope-data" == l.tryToGetAttribute(n, "name") && (o = l.tryToGetAttribute(n, "content"), u.parseSemicolonContent(o, r), g.is_head_has_meta_microscope_data = !0);
- g._microscope_data_params = u.obj2param(r), g.ms_data_page_id = r.pageId, g.ms_data_shop_id = r.shopId, g.ms_data_instance_id = r.siteInstanceId, g.ms_data_siteCategoryId = r.siteCategory, g.ms_prototype_id = r.prototypeId, g.site_instance_id_or_shop_id = g.ms_data_instance_id || g.ms_data_shop_id, g._atp_beacon_data = {}, g._atp_beacon_data_params = ""
- }
- function a(t) {
- var e, n = function() {
- var e;
- return document.querySelector && (e = document.querySelector("meta[name=data-spm]")), c.each(t, function(t) {
- "data-spm" === l.tryToGetAttribute(t, "name") && (e = t)
- }), e
- },
- o = n();
- return o && (e = l.tryToGetAttribute(o, "data-spm-protocol")), e
- }
- function r(t) {
- var e = t.isonepage || "-1",
- n = e.split("|"),
- o = n[0],
- a = n[1] ? n[1] : "";
- t.isonepage_data = {
- isonepage: o,
- urlpagename: a
- }
- }
- function i() {
- var t = p.getMetaTags();
- o(t), c.each(t, function(t) {
- var e = l.tryToGetAttribute(t, "name");
- /^aplus/.test(e) && (g[e] = p.getMetaCnt(e))
- }), c.each(f, function(t) {
- g[t] = p.getMetaCnt(t)
- }), g.spm_protocol = a(t);
- var e, n, i = ["aplus-rate-ahot"],
- s = i.length;
- for(e = 0; e < s; e++) n = i[e], g[n] = parseFloat(g[n]);
- return r(g), d = g || {}, g
- }
- function s() {
- return d || i()
- }
- var u = n(20),
- c = n(13),
- l = n(27),
- p = n(35),
- g = {},
- f = ["ahot-aplus", "isonepage", "spm-id", "data-spm", "microscope-data"],
- d = {};
- e.setMetaInfo = function(t, e) {
- return d || (d = {}), d[t] = e, !0
- }, e.getMetaInfo = function(t) {
- return d || (d = {}), d[t] || ""
- }, e.getInfo = i, e.qGet = s
- }, function(t, e, n) {
- "use strict";
- function o(t) {
- return i = i || document.getElementsByTagName("head")[0], s && !t ? s : i ? s = i.getElementsByTagName("meta") : []
- }
- function a(t) {
- var e, n, a, r = o(),
- i = r.length;
- for(e = 0; e < i; e++) n = r[e], u.tryToGetAttribute(n, "name") === t && (a = u.tryToGetAttribute(n, "content"));
- return a || ""
- }
- function r(t) {
- var e = {
- isonepage: "-1",
- urlpagename: ""
- },
- n = t.qGet();
- if(n && n.hasOwnProperty("isonepage_data")) e.isonepage = n.isonepage_data.isonepage, e.urlpagename = n.isonepage_data.urlpagename;
- else {
- var o = a("isonepage") || "-1",
- r = o.split("|");
- e.isonepage = r[0], e.urlpagename = r[1] ? r[1] : ""
- }
- return e
- }
- var i, s, u = n(27);
- e.getMetaTags = o, e.getMetaCnt = a, e.getOnePageInfo = r
- }, function(t, e, n) {
- "use strict";
- var o = n(37);
- t.exports = function() {
- return {
- init: function(t) {
- this.options = t
- },
- getAplusToUT: function() {
- return {
- toUT2: o.getAplusToUT("toUT2"),
- toUT: o.getAplusToUT("toUT")
- }
- },
- run: function() {
- var t = this.getAplusToUT();
- this.options.context.where_to_sendlog_ut.aplusToUT = t
- }
- }
- }
- }, function(t, e) {
- "use strict";
- var n = navigator.userAgent,
- o = /WindVane/i.test(n);
- e.is_WindVane = o;
- var a = function() {
- var t = goldlog.getMetaInfo("aplus_chnl");
- return !(!t || !t.isAvailable || "function" != typeof t.toUT2 && "function" != typeof t.toUT) && t
- };
- e.isAplusChnl = a, e.getAplusToUT = function(t) {
- var e = {},
- n = a();
- if("object" == typeof n) e.bridgeName = n.bridgeName || "customBridge", e.isAvailable = n.isAvailable, e.toUT2 = n.toUT2 || n.toUT;
- else {
- var r = window.WindVane || {};
- if(o && r && r.isAvailable && "function" == typeof r.call) {
- var i = t || "toUT";
- e = {
- bridgeName: "WindVane",
- isAvailable: !0,
- toUT2: function(t, e, n, o) {
- return r.call("WVTBUserTrack", i, t, e, n, o)
- }
- }
- }
- }
- return e
- }
- }, function(t, e, n) {
- "use strict";
- var o = n(28),
- a = n(39),
- r = n(8);
- t.exports = function() {
- return {
- init: function(t) {
- this.options = t
- },
- isSingle_pv: function() {
- var t = o.getGoldlogVal("_$") || {};
- return !(!t.is_WindVane || !a.isSingleUaVersion())
- },
- isSingle_hjlj: function(t) {
- var e = o.getGoldlogVal("_$") || {};
- return !(!e.is_WindVane || !a.isSingleSendLog(t))
- },
- isSingle_uhjlj: function(t) {
- var e = o.getGoldlogVal("_$") || {};
- return(!t || !/^\/aplus\.99\.(\d)+$/.test(t.logkey)) && !!(e.is_WindVane && t && t.logkey && a.isSingleUaVersion())
- },
- run: function() {
- var t = this.options.context || {},
- e = this.options.config || {},
- n = t.where_to_sendlog_ut.aplusToUT || {},
- o = n.toUT || {},
- a = n.toUT2 || {},
- i = !(!o.isAvailable && !a.isAvailable),
- s = t.userdata || {},
- u = !!t.is_single;
- switch(e.recordType) {
- case r.recordTypes.uhjlj:
- u = this.isSingle_uhjlj(s);
- break;
- case r.recordTypes.hjlj:
- u = this.isSingle_hjlj(s);
- break;
- case r.recordTypes.pv:
- u = this.isSingle_pv(s);
- break;
- default:
- u = this.isSingle_pv(s)
- }
- this.options.context.is_single = i && u
- }
- }
- }
- }, function(t, e, n) {
- "use strict";
- var o = n(40),
- a = function(t) {
- var e = t.logkey.toLowerCase();
- 0 === e.indexOf("/") && (e = e.substr(1));
- var n = t.gmkey.toUpperCase();
- switch(n) {
- case "EXP":
- return "2201";
- case "CLK":
- return "2101";
- case "SLD":
- return "19999";
- case "OTHER":
- default:
- return "19999"
- }
- },
- r = function() {
- var t = !1;
- return t || o.webviewIsAbove({
- version_ios_tb: [5, 11, 7],
- version_ios_tm: [5, 24, 1],
- version_android_tb: [5, 11, 7],
- version_android_tm: [5, 24, 1]
- })
- };
- e.isSingleUaVersion = r, e.isSingleSendLog = function(t) {
- return(!t || !/^\/fsp\.1\.1$/.test(t.logkey)) && !!(t && t.logkey && t.gmkey && r() === !0)
- }, e.getFunctypeValue = function(t) {
- return e.isSingleSendLog(t) ? a(t) : "2101"
- }, e.getFunctypeValue2 = function(t) {
- return a(t)
- }
- }, function(t, e) {
- "use strict";
- var n = function(t) {
- var e = [0, 0, 0];
- try {
- if(t) {
- var n = t[1],
- o = n.split(".");
- if(o.length > 2)
- for(var a = 0; a < o.length;) e[a] = parseInt(o[a]), a++
- }
- } catch(t) {
- e = [0, 0, 0]
- } finally {
- return e
- }
- };
- e.parseVersion = n;
- var o = function(t, e) {
- var n = !1;
- try {
- var o = t[0] > e[0],
- a = t[1] > e[1],
- r = t[2] > e[2],
- i = t[0] === e[0],
- s = t[1] === e[1],
- u = t[2] === e[2];
- n = !!o || (!(!i || !a) || (!!(i && s && r) || !!(i && s && u)))
- } catch(t) {
- n = !1
- } finally {
- return n
- }
- };
- e.isAboveVersion = o, e.webviewIsAbove = function(t, e) {
- var a = !1;
- try {
- e || (e = navigator.userAgent);
- var r = e.match(/AliApp\(TB\/(\d+[._]\d+[._]\d+)/i),
- i = n(r),
- s = e.match(/AliApp\(TM\/(\d+[._]\d+[._]\d+)/i),
- u = n(s),
- c = /iPhone|iPad|iPod|ios/i.test(e),
- l = /android/i.test(e);
- c ? r && i ? a = o(i, t.version_ios_tb) : s && u && (a = o(u, t.version_ios_tm)) : l && (r && i ? a = o(i, t.version_android_tb) : s && u && (a = o(u, t.version_android_tm)))
- } catch(t) {
- a = !1
- }
- return a
- }
- }, function(t, e, n) {
- "use strict";
- var o = n(28);
- t.exports = function() {
- return {
- init: function(t) {
- this.options = t
- },
- run: function() {
- var t = this.options.context.what_to_pvhash || {},
- e = o.getGoldlogVal("_$") || {},
- n = e.meta_info || {},
- a = n["aplus-pvhash"] || "",
- r = [];
- "1" === a && (r = ["_aqx_uri", encodeURIComponent(location.href)]), t.hash = r, this.options.context.what_to_pvhash = t
- }
- }
- }
- }, function(t, e, n) {
- "use strict";
- var o = n(20),
- a = n(13),
- r = n(27),
- i = n(28),
- s = n(14),
- u = n(43),
- c = n(44),
- l = n(45);
- t.exports = function() {
- return a.assign(l, {
- init: function(t) {
- this.options = t, this.cookie_data || (this.cookie_data = s.getData()), this.client_info || (this.client_info = i.getClientInfo() || {});
- var e = location.hash;
- e && 0 === e.indexOf("#") && (e = e.substr(1)), this.loc_hash = e
- },
- getExParams: function() {
- var t = window,
- e = document,
- n = [],
- i = parent !== t.self,
- s = e.getElementById("beacon-aplus") || e.getElementById("tb-beacon-aplus"),
- c = r.tryToGetAttribute(s, "exparams"),
- l = r.mergeExparams(c, r.getExParamsFromMeta(), o) || "";
- l = l.replace(/&/g, "&");
- var p, g, f = ["taobao.com", "tmall.com", "etao.com", "hitao.com", "taohua.com", "juhuasuan.com", "alimama.com"];
- if(i) {
- for(g = f.length, p = 0; p < g; p++)
- if(o.isContain(location.hostname, f[p])) return n.push([o.mkPlainKeyForExparams(), l]), n;
- l = l.replace(/\buserid=\w*&?/, "")
- }
- l = l.replace(/\buserid=/, "uidaplus="), l && n.push([o.mkPlainKeyForExparams(), l]);
- var d = a.makeCacheNum();
- return u.updateKey(n, "cache", d), n
- },
- getExtra: function() {
- var t = [],
- e = i.getGoldlogVal("_$") || {},
- n = e.meta_info || {},
- a = this.cookie_data || {},
- r = this.getClientInfo(!0) || [];
- return o.ifAdd(t, r), o.ifAdd(t, [
- ["thw", a.thw],
- ["bucket_id", c.getBucketId(n)],
- ["urlokey", this.loc_hash],
- ["wm_instanceid", n.ms_data_instance_id]
- ]), t
- }
- })
- }
- }, function(t, e) {
- "use strict";
- function n(t, e, n) {
- r(t, "spm-cnt", function(t) {
- var o = t.split(".");
- return o[0] = goldlog.spm_ab[0], o[1] = goldlog.spm_ab[1], e ? o[1] = o[1].split("/")[0] + "/" + e : o[1] = o[1].split("/")[0], n && (o[4] = n), o.join(".")
- })
- }
- function o(t, e) {
- var n = window.g_SPM && g_SPM._current_spm;
- n && r(t, "spm-url", function() {
- return [n.a, n.b, n.c, n.d].join(".") + (e ? "." + e : "")
- }, "spm-cnt")
- }
- function a(t, e) {
- var n, o, a, r = -1;
- for(n = 0, o = t.length; n < o; n++)
- if(a = t[n], a[0] === e) {
- r = n;
- break
- }
- r >= 0 && t.splice(r, 1)
- }
- function r(t, e, n, o) {
- var a, r, i = t.length,
- s = -1,
- u = "function" == typeof n;
- for(a = 0; a < i; a++) {
- if(r = t[a], r[0] === e) return void(u ? r[1] = n(r[1]) : r[1] = n);
- o && r[0] === o && (s = a)
- }
- o && (u && (n = n()), s > -1 ? t.splice(s, 0, [e, n]) : t.push([e, n]))
- }
- t.exports = {
- updateSPMCnt: n,
- updateSPMUrl: o,
- updateKey: r,
- removeKey: a
- }
- }, function(t, e, n) {
- "use strict";
- function o(t, e) {
- var n, o = 2146271213;
- for(n = 0; n < t.length; n++) o = (o << 5) + o + t.charCodeAt(n);
- return(65535 & o) % e
- }
- function a(t) {
- var e, n = r.getCookie("t");
- return "3" != t.ms_prototype_id && "5" != t.ms_prototype_id || (e = n ? o(n, 20) : ""), e
- }
- var r = n(14);
- e.getBucketId = a
- }, function(t, e, n) {
- "use strict";
- var o = n(20),
- a = n(13),
- r = n(28),
- i = n(37),
- s = n(14),
- u = n(8);
- t.exports = {
- init: function(t) {
- this.options = t, this.cookie_data || (this.cookie_data = s.getData())
- },
- getBasicParams: function() {
- var t = document,
- e = r.getGoldlogVal("_$") || {},
- n = e.spm || {},
- i = e.meta_info || {},
- u = i["aplus-ifr-pv"] + "" == "1",
- c = o.is_in_iframe && !u ? 0 : 1,
- l = [
- ["logtype", c],
- [o.mkPlainKey(), "title=" + escape(t.title)],
- ["pre", e.page_referrer],
- ["cache", a.makeCacheNum()],
- ["scr", screen.width + "x" + screen.height]
- ],
- p = this.cookie_data || {},
- g = this.options.context || {},
- f = g.etag || {},
- d = f.cna || p.cna || s.getCookie("cna");
- d && l.push([o.mkPlainKey(), "cna=" + d]), p.tracknick && l.push([o.mkPlainKey(), "nick=" + p.tracknick]);
- var h = n.spm_url || "";
- if(window.g_SPM && window.g_SPM._current_spm) {
- var m = [];
- for(var _ in g_SPM._current_spm) m.push(g_SPM._current_spm[_]);
- m.length > 0 && (h = m.join("."))
- }
- return o.ifAdd(l, [
- ["wm_pageid", i.ms_data_page_id],
- ["wm_prototypeid", i.ms_prototype_id],
- ["wm_sid", i.ms_data_shop_id],
- ["spm-url", h],
- ["spm-pre", n.spm_pre],
- ["spm-cnt", n.spm_cnt],
- ["cnaui", p.cnaui]
- ]), l
- },
- getExParams: function() {
- return []
- },
- getExtra: function() {
- return []
- },
- getClientInfo: function(t) {
- var e = [],
- n = r.getGoldlogVal("_$") || {},
- a = this.client_info || {},
- s = a.ua_info || {};
- if(t || !i.is_WindVane && !i.isAplusChnl()) {
- for(var c, l = [], p = ["p", "o", "b", "s", "w", "wx", "ism"], g = 0; c = p[g++];) s[c] && l.push([c, s[c]]);
- o.ifAdd(e, l)
- }
- o.ifAdd(e, [
- ["lver", goldlog.lver || u.lver],
- ["jsver", n.script_name || u.script_name]
- ]);
- var f = this.options.config || {},
- d = f.is_auto;
- return d || o.ifAdd(e, [
- ["mansndlog", 1]
- ]), e
- },
- processLodashDollar: function() {
- var t = r.getGoldlogVal("_$") || {};
- t.page_url !== location.href && (t.page_referrer = t.page_url, t.page_url = location.href), r.setGoldlogVal("_$", t)
- },
- getLsParams: function() {
- var t = r.getGoldlogVal("_$") || {},
- e = [];
- return t.lsparams && t.lsparams.spm_id && (e.push(["lsparams", t.lsparams.spm_id]), e.push(["lsparams_pre", t.lsparams.current_url])), e
- },
- run: function() {
- var t = this.getBasicParams() || [],
- e = this.getExParams() || [],
- n = this.getExtra() || [];
- this.processLodashDollar();
- var o = this.getLsParams() || [],
- a = [].concat(t, e, n, o);
- this.options.context.what_to_sendpv.pvdata = a, this.options.context.what_to_sendpv.exparams = e
- }
- }
- }, function(t, e, n) {
- "use strict";
- var o = n(20),
- a = n(28),
- r = n(43),
- i = n(14),
- s = n(47);
- t.exports = function() {
- return {
- init: function(t) {
- this.options = t
- },
- getPageId: function() {
- var t = this.options.config || {},
- e = this.options.context || {},
- n = e.userdata || {};
- return t.page_id || t.pageid || t.pageId || n.page_id
- },
- getUserdata: function() {
- var t = a.getGoldlogVal("_$") || {},
- e = t.spm || {},
- n = this.options.context || {},
- r = n.userdata || {},
- u = this.options.config || {},
- c = [];
- if(u && !u.is_auto) {
- u.gokey && c.push([o.mkPlainKey(), u.gokey]);
- var l = e.data.b;
- if(l) {
- var p = this.getPageId();
- l = p ? l.split("/")[0] + "/" + p : l.split("/")[0], s.setB(l)
- }
- }
- var g = function(t) {
- if("object" == typeof t)
- for(var e in t) "object" != typeof t[e] && "function" != typeof t[e] && c.push([e, t[e]])
- };
- g(goldlog.getMetaInfo("aplus-cpvdata")), g(r);
- var f = i.getCookie("workno") || i.getCookie("emplId");
- f && c.push(["workno", f]);
- var d = i.getAda();
- return d && c.push(["_a_d_a", i.getAda()]), c
- },
- processLodashDollar: function() {
- var t = this.options.config || {},
- e = a.getGoldlogVal("_$") || {};
- t && t.referrer && (e.page_referrer = t.referrer), a.setGoldlogVal("_$", e)
- },
- updatePre: function(t) {
- var e = a.getGoldlogVal("_$") || {};
- return e.page_referrer && r.updateKey(t, "pre", e.page_referrer), t
- },
- run: function() {
- var t = this.options.context.what_to_sendpv.pvdata,
- e = this.getUserdata();
- this.processLodashDollar();
- var n = t,
- o = this.options.context.what_to_pvhash.hash;
- o && o.length > 0 && n.push(o), n = n.concat(e), n = this.updatePre(n);
- var a = this.getPageId();
- a && r.updateSPMCnt(n, a), this.options.context.what_to_sendpv.pvdata = n, this.options.context.userdata = e
- }
- }
- }
- }, function(t, e, n) {
- "use strict";
- function o() {
- if(!s.data.a || !s.data.b) {
- var t = r._SPM_a,
- e = r._SPM_b;
- if(t && e) return t = t.replace(/^{(\w+\/)}$/g, "$1"), e = e.replace(/^{(\w+\/)}$/g, "$1"), s.is_wh_in_page = !0, void c.setAB(t, e);
- var n = goldlog._$.meta_info;
- t = n["data-spm"] || n["spm-id"] || "0";
- var o = t.split(".");
- o.length > 1 && (t = o[0], e = o[1]), c.setA(t), e && c.setB(e);
- var a = i.getElementsByTagName("body");
- a = a && a.length ? a[0] : null, a && (e = l.tryToGetAttribute(a, "data-spm"), e ? c.setB(e) : 1 === o.length && c.setAB("0", "0"))
- }
- }
- function a() {
- var t = s.data.a,
- e = s.data.b;
- t && e && (goldlog.spm_ab = [t, e])
- }
- var r = window,
- i = document,
- s = {},
- u = {};
- s.data = u;
- var c = {},
- l = n(27),
- p = n(48),
- g = location.href,
- f = n(49).getRefer(),
- d = n(8);
- c.setA = function(t) {
- s.data.a = t, a()
- }, c.setB = function(t) {
- s.data.b = t, a()
- }, c.setAB = function(t, e) {
- s.data.a = t, s.data.b = e, a()
- };
- var h = p.getSPMFromUrl,
- m = function() {
- var t = d.utilPvid.makePVId();
- return d.mustSpmE ? t || goldlog.pvid || "" : t || ""
- },
- _ = function(t, e) {
- var n = t.goldlog || window.goldlog || {},
- a = n.meta_info || {};
- s.meta_protocol = a.spm_protocol;
- var r, i = n.spm_ab || [],
- u = i[0] || "0",
- c = i[1] || "0";
- "0" === u && "0" === c && (o(), u = s.data.a || "0", c = s.data.b || "0"), r = [s.data.a, s.data.b].join("."), s.spm_cnt = (r || "0.0") + ".0.0";
- var l = t.send_pv_count > 0 ? m() : n.pvid;
- l && (s.spm_cnt += "." + l), n._$.spm = s, "function" == typeof e && e(l)
- };
- c.spaInit = function(t, e, n, o) {
- var a = "function" == typeof o ? o : function() {},
- r = s.spm_url;
- s.spm_pre = h(f), s.spm_url = h(location.href);
- var i = window.g_SPM || {},
- u = d.utilPvid.getPvId() || "",
- c = t._$ || {},
- l = c.send_pv_count;
- _({
- goldlog: t,
- meta_info: e,
- send_pv_count: l
- }, function(t) {
- s.spm_cnt = s.data.a + "." + s.data.b + ".0.0" + (t ? "." + t : "");
- var e = i._current_spm || {},
- o = n.join(".");
- e && e.a && "0" !== e.a && e.b && "0" !== e.b && (s.spm_url = [e.a, e.b, e.c, e.d, e.e].join("."), s.spm_pre = r), "0.0" !== o && l > 0 && (s.spm_url = o + ".0.0" + (u ? "." + u : ""), s.spm_pre = r), a()
- })
- }, c.init = function(t, e, n) {
- s.spm_url = h(g), s.spm_pre = h(f), _({
- goldlog: t,
- meta_info: e
- }, function() {
- "function" == typeof n && n()
- })
- }, c.resetSpmCntPvid = function() {
- var t = goldlog.spm_ab;
- if(t && 2 === t.length) {
- var e = t.join(".") + ".0.0",
- n = m();
- n && (e = e + "." + n), s.spm_cnt = e, s.spm_url = e, goldlog._$.spm = s
- }
- }, t.exports = c
- }, function(t, e) {
- "use strict";
- function n(t, e) {
- if(!t || !e) return "";
- var n, o = "";
- try {
- var a = new RegExp(t + "=([^&|#|?|/]+)");
- if("spm" === t || "scm" === t) {
- var r = new RegExp("\\?.*" + t + "=([\\w\\.\\-\\*/]+)"),
- i = e.match(a),
- s = e.match(r),
- u = i && 2 === i.length ? i[1] : "",
- c = s && 2 === s.length ? s[1] : "";
- o = u > c ? u : c, o = decodeURIComponent(o)
- } else n = e.match(a), o = n && 2 === n.length ? n[1] : ""
- } catch(t) {} finally {
- return o
- }
- }
- e.getParamFromUrl = n, e.getSPMFromUrl = function(t) {
- return n("spm", t)
- }
- }, function(t, e, n) {
- "use strict";
- var o = null,
- a = n(7).nameStorage,
- r = n(9);
- e.getRefer = function() {
- if(null !== o) return o;
- var t = r.KEY || {},
- e = t.NAME_STORAGE || {};
- return o = document.referrer || a.getItem(e.REFERRER) || ""
- }
- }, function(t, e, n) {
- "use strict";
- var o = n(43);
- t.exports = function() {
- return {
- init: function(t) {
- this.options = t
- },
- updateBasicParams: function() {
- var t = this.options.context.what_to_sendpv.pvdata || [],
- e = this.options.context.etag || {};
- return e.cna && (o.updateKey(t, "cna", e.cna), this.options.context.what_to_sendpv.pvdata = t), t
- },
- addTagParams: function() {
- var t = this.options.context.what_to_sendpv.pvdata || [],
- e = this.options.context.etag || {},
- n = [];
- (e.tag || 0 === e.tag) && n.push(["tag", e.tag]), (e.stag || 0 === e.stag) && n.push(["stag", e.stag]), (e.lstag || 0 === e.lstag) && n.push(["lstag", e.lstag]), n.length > 0 && (this.options.context.what_to_sendpv.pvdata = t.concat(n))
- },
- run: function() {
- this.updateBasicParams(), this.addTagParams()
- }
- }
- }
- }, function(t, e, n) {
- "use strict";
- function o(t) {
- var e, n, o, a, i = [],
- s = {};
- for(e = t.length - 1; e >= 0; e--) n = t[e], o = n[0], o && o.indexOf(r.s_plain_obj) == -1 && s.hasOwnProperty(o) || (a = n[1], ("aplus" == o || a) && (i.unshift([o, a]), s[o] = 1));
- return i
- }
- function a(t) {
- var e, n, o, a, s = [],
- u = {
- logtype: !0,
- cache: !0,
- scr: !0,
- "spm-cnt": !0
- };
- for(e = t.length - 1; e >= 0; e--)
- if(n = t[e], o = n[0], a = n[1], !(i.isStartWith(o, r.s_plain_obj) && !i.isStartWith(o, r.mkPlainKeyForExparams()) || u[o]))
- if(i.isStartWith(o, r.mkPlainKeyForExparams())) {
- var c = r.param2arr(a);
- if("object" == typeof c && c.length > 0)
- for(var l = c.length - 1; l >= 0; l--) {
- var p = c[l];
- p && p[1] && s.unshift([p[0], p[1]])
- }
- } else s.unshift([o, a]);
- return s
- }
- var r = n(20),
- i = n(13),
- s = n(28),
- u = n(35),
- c = n(34),
- l = n(8),
- p = n(14);
- t.exports = function() {
- return {
- init: function(t) {
- this.options = t
- },
- getToUtData: function(t, e) {
- var n, i = s.getGoldlogVal("_$") || {},
- g = i.spm || {},
- f = a(o(t)),
- d = {};
- try {
- var h = r.arr2obj(f);
- h._toUT = 1, h._bridgeName = e.bridgeName || "", n = JSON.stringify(h)
- } catch(t) {
- n = '{"_toUT":1}'
- }
- var m = u.getOnePageInfo(c);
- return d.functype = "2001", d.urlpagename = m.urlpagename, d.url = location.href, d.spmcnt = g.spm_cnt || "", d.spmpre = g.spm_pre || "", d.lzsid = "", d.cna = p.getCookie("cna"), d.extendargs = n, d.isonepage = m.isonepage, d.version = l.toUtVersion, d.lver = goldlog.lver || l.lver, d.jsver = l.script_name, d
- },
- run: function() {
- var t = this.options.context || {},
- e = t.what_to_sendpv || {},
- n = e.pvdata || [],
- o = t.what_to_sendpv_ut || {},
- a = t.where_to_sendlog_ut || {},
- r = a.aplusToUT || {},
- i = r.toUT || {};
- i && i.isAvailable && "function" == typeof i.toUT2 && (o.pvdataToUt = this.getToUtData(n, i), this.options.context.what_to_sendpv_ut = o)
- }
- }
- }
- }, function(t, e, n) {
- "use strict";
- var o = n(28);
- t.exports = function() {
- return {
- init: function(t) {
- this.options = t
- },
- run: function() {
- var t = o.getGoldlogVal("_$") || {},
- e = t.send_pv_count || 0,
- n = this.options.config || {};
- return n.is_auto && e > 0 ? "done" : (t.send_pv_count = ++e, void o.setGoldlogVal("_$", t))
- }
- }
- }
- }, function(t, e, n) {
- "use strict";
- var o = n(20),
- a = n(28),
- r = n(34);
- t.exports = function() {
- return {
- init: function(t) {
- this.options = t
- },
- getMetaInfo: function() {
- var t = a.getGoldlogVal("_$") || {},
- e = t.meta_info || r.getInfo();
- return e
- },
- getAplusMetaByKey: function(t) {
- var e = this.getMetaInfo() || {};
- return e[t]
- },
- getGifPath: function(t, e) {
- var n, r = a.getGoldlogVal("_$") || {};
- if("function" == typeof t) n = t(location.hostname, r.is_terminal, o.is_in_iframe) + ".gif";
- else if(!n && e) {
- var i = e.match(/\/\w+\.gif/);
- i && i.length > 0 && (n = i[0])
- }
- return n || (n = r.is_terminal ? "m.gif" : "v.gif"), n
- },
- run: function() {
- var t = !!this.options.context.is_single;
- if(!t) {
- var e = this.getAplusMetaByKey("aplus-rhost-v"),
- n = this.options.context.where_to_sendpv || {},
- a = n.url || "",
- r = this.getGifPath(n.urlRule, a),
- i = o.getPvUrl({
- metaName: "aplus-rhost-v",
- metaValue: e,
- gifPath: r,
- url: o.filterIntUrl(a)
- });
- n.url = i, this.options.context.where_to_sendpv = n
- }
- }
- }
- }
- }, function(t, e, n) {
- "use strict";
- var o = n(28),
- a = n(20);
- t.exports = function() {
- return {
- init: function(t) {
- this.options = t
- },
- run: function() {
- var t = this.options.context || {},
- e = !!t.is_single;
- if(!e) {
- var n = t.what_to_sendpv || {},
- r = t.where_to_sendpv || {},
- i = n.pvdata || [],
- s = goldlog.send(r.url, a.arr2obj(i));
- o.setGoldlogVal("req", s)
- }
- }
- }
- }
- }, function(t, e, n) {
- "use strict";
- var o = n(56);
- t.exports = function() {
- return {
- init: function(t) {
- this.options = t
- },
- run: function(t, e) {
- var n = this,
- a = this.options.context || {},
- r = a.what_to_sendpv_ut || {},
- i = a.where_to_sendlog_ut || {},
- s = r.pvdataToUt || {},
- u = i.aplusToUT || {},
- c = u.toUT;
- if(c && "function" == typeof c.toUT2 && c.isAvailable) try {
- c.toUT2(s, function() {
- u.toutflag = "toUT", n.options.context.what_to_sendpv_ut.isSuccess = !0, e()
- }, function(t) {
- o.do_tracker_jserror({
- message: "do_sendpv_ut error",
- error: JSON.stringify(t),
- filename: "do_sendpv_ut"
- }), e()
- }, 5e3)
- } catch(t) {
- e()
- } finally {
- return "pause"
- }
- }
- }
- }
- }, function(t, e, n) {
- "use strict";
- var o = n(25),
- a = function(t, e, n) {
- try {
- var a = window.goldlog_queue || (window.goldlog_queue = []);
- a.push({
- action: ["goldlog", "_aplus_cplugin_m", e].join("."),
- arguments: [t, n]
- })
- } catch(t) {
- o.logger({
- msg: t
- })
- }
- };
- e.do_tracker_jserror = function(t, e) {
- a(t, "do_tracker_jserror", e)
- }, e.do_tracker_obsolete_inter = function(t, e) {
- a(t, "do_tracker_obsolete_inter", e)
- }, e.wrap = function(t) {
- if("function" == typeof t) try {
- t()
- } catch(t) {
- o.logger({
- msg: t.message || t
- })
- } finally {}
- }
- }, function(t, e, n) {
- "use strict";
- var o = n(20),
- a = n(28),
- r = n(58);
- t.exports = function() {
- return {
- init: function(t) {
- this.options = t
- },
- run: function() {
- var t = a.getGoldlogVal("_$") || {},
- e = t.spm || {},
- n = e.data || {};
- if(1 === goldlog._$.send_pv_count) {
- var i = n.a,
- s = i + "." + n.b;
- o.is_in_iframe || goldlog._$.is_terminal || "a21bo.7724922" != s && "2013" != i && "a220o" != i || r.create("//cookiemapping.wrating.com/link.html")
- }
- }
- }
- }
- }, function(t, e) {
- "use strict";
- var n = document,
- o = {};
- o.create = function(t, e) {
- var o = n.createElement("iframe");
- o.style.width = "1px", o.style.height = "1px", o.style.position = "absolute", o.style.display = "none", o.src = t, e && (o.name = e);
- var a = n.getElementsByTagName("body")[0];
- return a.appendChild(o), o
- }, t.exports = o
- }, function(t, e, n) {
- "use strict";
- var o = n(5),
- a = n(28);
- t.exports = function() {
- return {
- init: function(t) {
- this.options = t
- },
- run: function() {
- var t = goldlog._$ || {},
- e = this.options.context || {};
- a.setGoldlogVal("pv_context", e);
- var n = goldlog.spm_ab || [],
- r = n.join("."),
- i = t.send_pv_count,
- s = {
- cna: e.etag.cna,
- count: i,
- spmab_pre: goldlog.spmab_pre
- };
- o.doPubMsg(["sendPV", "complete", r, s]), o.doCachePubs(["sendPV", "complete", r, s])
- }
- }
- }
- }, function(t, e) {
- "use strict";
- e.plugins_prepv = []
- }, function(t, e, n) {
- "use strict";
- function o() {
- var t = i.getGoldlogVal("_$") || {},
- e = "//gm.mmstat.com/";
- return t.is_terminal && (e = "//wgo.mmstat.com/"), {
- where_to_hjlj: {
- url: e,
- ac_atpanel: "//ac.mmstat.com/",
- tblogUrl: "//log.mmstat.com/"
- }
- }
- }
- function a() {
- return r.assign(new s, new o)
- }
- var r = n(13),
- i = n(28),
- s = n(62);
- t.exports = a
- }, function(t, e, n) {
- "use strict";
- function o() {
- return {
- compose: {},
- basic_params: {
- cna: a.getCookie("cna")
- },
- where_to_hjlj: {
- url: "//gm.mmstat.com/",
- ac_atpanel: "//ac.mmstat.com/",
- tblogUrl: "//log.mmstat.com/"
- },
- userdata: {},
- what_to_hjlj: {
- logdata: {}
- },
- what_to_pvhash: {
- hash: []
- },
- what_to_hjlj_exinfo: {
- EXPARAMS_FLAG: "EXPARAMS",
- exinfo: [],
- exparams_key_names: ["uidaplus", "pc_i", "pu_i"]
- },
- what_to_hjlj_ut: {
- logdataToUT: {}
- },
- what_to_hjlj_ut2: {
- isSuccess: !1,
- logdataToUT: {}
- },
- where_to_sendlog_ut: {
- aplusToUT: {},
- toUTName: "toUT"
- },
- network: {
- connType: "UNKNOWN"
- },
- is_single: !1
- }
- }
- var a = n(14);
- t.exports = o
- }, function(t, e, n) {
- "use strict";
- e.plugins_hjlj = [{
- name: "where_to_sendlog_ut",
- enable: !0,
- path: n(36)
- }, {
- name: "is_single",
- enable: !0,
- path: n(38)
- }, {
- name: "what_to_hjlj_exinfo",
- enable: !0,
- path: n(64)
- }, {
- name: "what_to_pvhash",
- enable: !0,
- path: n(41)
- }, {
- name: "what_to_hjlj",
- enable: !0,
- path: n(65),
- deps: ["what_to_hjlj_exinfo", "what_to_pvhash"]
- }, {
- name: "what_to_hjlj_ut",
- enable: !0,
- path: n(66),
- deps: ["is_single", "what_to_hjlj_exinfo"]
- }, {
- name: "where_to_hjlj",
- enable: !0,
- path: n(67),
- deps: ["is_single", "what_to_hjlj"]
- }, {
- name: "do_sendhjlj",
- enable: !0,
- path: n(68),
- deps: ["is_single", "what_to_hjlj", "where_to_hjlj"]
- }, {
- name: "do_sendhjlj_ut",
- enable: !0,
- path: n(69),
- deps: ["what_to_hjlj", "what_to_hjlj_ut", "where_to_sendlog_ut"]
- }]
- }, function(t, e, n) {
- "use strict";
- var o = n(20),
- a = n(27),
- r = n(28),
- i = n(28),
- s = n(26),
- u = n(14);
- t.exports = function() {
- return {
- init: function(t) {
- this.options = t
- },
- getCookieUserInfo: function() {
- var t = [],
- e = u.getCookie("workno") || u.getCookie("emplId");
- e && t.push("workno=" + e);
- var n = u.getAda();
- return n && t.push("_a_d_a=" + u.getAda()), t
- },
- filterExinfo: function(t) {
- var e = "";
- try {
- t && ("string" == typeof t ? e = t.replace(/&/g, "&").replace(/\buserid=/, "uidaplus=").replace(/&aplus&/, "&") : "object" == typeof t && (e = o.obj2param(t, !0)))
- } catch(t) {
- e = t.message ? t.message : ""
- }
- return e
- },
- getExparamsFlag: function() {
- var t = this.options.context || {},
- e = t.what_to_hjlj_exinfo || {};
- return e.EXPARAMS_FLAG || "EXPARAMS"
- },
- getCustomExParams: function(t) {
- var e = "";
- return t !== this.getExparamsFlag() && (e = this.filterExinfo(t) || ""), e ? e.split("&") : []
- },
- getBeaconExparams: function(t, e) {
- var n = [],
- r = a.getExParams(o) || "";
- r = r.replace(/&aplus&/, "&");
- for(var i = o.param2arr(r) || [], u = function(e) {
- return s.indexof(t, e) > -1
- }, c = 0; c < i.length; c++) {
- var l = i[c],
- p = l[0] || "",
- g = l[1] || "";
- p && g && (e === this.getExparamsFlag() || u(p)) && n.push(p + "=" + g)
- }
- return n
- },
- getExinfo: function(t) {
- var e = this.options.context || {},
- n = e.what_to_hjlj_exinfo || {},
- o = n.exparams_key_names || [],
- a = this.getBeaconExparams(o, t);
- return a
- },
- getExData: function(t) {
- var e = [];
- if("object" == typeof t)
- for(var n in t) {
- var o = t[n];
- n && o && "object" != typeof o && "function" != typeof o && e.push(n + "=" + o)
- }
- return e
- },
- doConcatArr: function(t, e) {
- return e && e.length > 0 && (t = t.concat(e)), t
- },
- run: function() {
- try {
- var t = this.options.context.what_to_hjlj_exinfo || {},
- e = r.getGoldlogVal("_$") || {},
- n = e.meta_info || {},
- o = n["aplus-exinfo"] || "",
- a = n["aplus-exdata"] || "",
- s = [];
- s = this.doConcatArr(s, t.exinfo || []), s = this.doConcatArr(s, this.getExinfo(o)), s = this.doConcatArr(s, this.getCookieUserInfo()), s = this.doConcatArr(s, this.getCustomExParams(o)), s = this.doConcatArr(s, this.getExData(a)), t.exinfo = s.join("&"), this.options.context.what_to_hjlj_exinfo = t
- } catch(t) {
- i.logger({
- msg: t ? t.message : ""
- })
- }
- }
- }
- }
- }, function(t, e, n) {
- "use strict";
- var o = n(27),
- a = n(20),
- r = n(13);
- t.exports = function() {
- return {
- init: function(t) {
- this.options = t
- },
- getParams: function() {
- var t = this.options.context || {},
- e = t.userdata || {},
- n = t.basic_params || {},
- i = t.what_to_hjlj_exinfo || {},
- s = i.exinfo || "";
- e.gokey && s && 0 !== s.indexOf("&") && (s = "&" + s);
- var u = n.cna,
- c = e.gmkey,
- l = e.gokey + s,
- p = t.what_to_pvhash || {},
- g = p.hash || [];
- g.length && (l += "&" + g.join("="));
- var f = {
- cache: r.makeCacheNum(),
- gmkey: c,
- gokey: l,
- cna: u
- };
- e["spm-cnt"] && (f["spm-cnt"] = e["spm-cnt"]), e["spm-pre"] && (f["spm-pre"] = e["spm-pre"]);
- try {
- var d = o.getExParams(a),
- h = a.param2obj(d).uidaplus;
- h && (f._gr_uid_ = h)
- } catch(t) {}
- return f
- },
- run: function() {
- this.options.context.what_to_hjlj.logdata = this.getParams()
- }
- }
- }
- }, function(t, e, n) {
- "use strict";
- var o = n(39),
- a = n(14),
- r = n(28),
- i = n(8);
- t.exports = function() {
- return {
- init: function(t) {
- this.options = t
- },
- getToUtData: function(t, e) {
- var n = r.getGoldlogVal("_$") || {},
- s = n.spm || {},
- u = this.options.context || {},
- c = u.userdata || {},
- l = u.what_to_hjlj_exinfo || {},
- p = l.exinfo || "";
- c.gokey && p && 0 !== p.indexOf("&") && (p = "&" + p);
- var g = c.gokey + p,
- f = {
- gmkey: c.gmkey,
- gokey: g,
- lver: i.lver,
- jsver: i.script_name,
- version: i.toUtVersion,
- spm_cnt: s.spm_cnt || "",
- spm_url: s.spm_url || "",
- spm_pre: s.spm_pre || ""
- };
- t && (f._is_g2u_ = 1), f._bridgeName = e.bridgeName || "", f._toUT = 1;
- try {
- f = JSON.stringify(f), "{}" == f && (f = "")
- } catch(t) {
- f = ""
- }
- var d = n.meta_info || {},
- h = d.isonepage_data || {},
- m = {};
- return m.functype = o.getFunctypeValue({
- logkey: c.logkey,
- gmkey: c.gmkey,
- spm_ab: r.getGoldlogVal("spm_ab")
- }), m.spmcnt = s.spm_cnt || "", m.spmurl = s.spm_url || "", m.spmpre = s.spm_pre || "", m.logkey = c.logkey, m.logkeyargs = f, m.urlpagename = h.urlpagename, m.url = location.href, m.cna = a.getCookie("cna") || "", m.extendargs = "", m.isonepage = h.isonepage, m
- },
- run: function() {
- var t = this.options.context || {},
- e = !!t.is_single,
- n = t.what_to_hjlj_ut || {},
- o = t.where_to_sendlog_ut || {},
- a = o.aplusToUT || {},
- r = a.toUT || {};
- n.logdataToUT = this.getToUtData(e, r), this.options.context.what_to_hjlj_ut = n
- }
- }
- }
- }, function(t, e, n) {
- "use strict";
- var o = n(20),
- a = n(13),
- r = n(28),
- i = n(25),
- s = n(34);
- t.exports = function() {
- return {
- init: function(t) {
- this.options = t
- },
- getMetaInfo: function() {
- var t = r.getGoldlogVal("_$") || {},
- e = t.meta_info || s.getInfo();
- return e
- },
- getAplusMetaByKey: function(t) {
- var e = this.getMetaInfo() || {};
- return e[t]
- },
- cramUrl: function(t) {
- var e = r.getGoldlogVal("_$") || {},
- n = e.spm || {},
- o = this.options.context.where_to_hjlj || {},
- i = o.ac_atpanel,
- s = o.tblogUrl,
- u = this.options.context.what_to_hjlj || {},
- c = this.options.context.userdata || {},
- l = !0,
- p = c.logkey;
- if(!p) return {
- url: t,
- logkey_available: !1
- };
- if("ac" == p) t = i + "1.gif";
- else if(a.isStartWith(p, "ac-")) t = i + p.substr(3);
- else if(a.isStartWith(p, "/")) {
- t += p.substr(1);
- var g = u.logdata || {};
- g["spm-cnt"] = n.spm_cnt, g.logtype = 2;
- try {
- u.logdata = g, this.options.context.what_to_hjlj = u
- } catch(t) {}
- } else a.isEndWith(p, ".gif") ? t = s + p : l = !1;
- return {
- url: t,
- logkey_available: l
- }
- },
- can_to_sendhjlj: function(t) {
- var e = this.options.context || {},
- n = e.logger || function() {},
- o = this.options.context.userdata || {};
- return !!t.logkey_available || (n({
- msg: "logkey: " + o.logkey + " is not legal!"
- }), !1)
- },
- run: function() {
- var t = !!this.options.context.is_single;
- if(!t) {
- var e, n, a = o.filterIntUrl(this.options.context.where_to_hjlj.url),
- r = this.getAplusMetaByKey("aplus-rhost-g"),
- s = r && o.hostValidity(r);
- s && (e = /^\/\//.test(r) ? "" : "//", n = /\/$/.test(r) ? "" : "/", a = e + r + n), r && !s && i.logger({
- msg: "aplus-rhost-g: " + r + ' is invalid, suggestion: "xxx.mmstat.com"'
- });
- var u = this.cramUrl(a);
- return this.can_to_sendhjlj(u) ? void(this.options.context.where_to_hjlj.url = u.url) : "done"
- }
- }
- }
- }
- }, function(t, e, n) {
- "use strict";
- var o = n(28);
- t.exports = function() {
- return {
- init: function(t) {
- this.options = t
- },
- run: function() {
- var t = this.options.context || {},
- e = this.options.config || {},
- n = !!t.is_single;
- if(!n) {
- var a = t.logger || {},
- r = t.what_to_hjlj || {},
- i = t.where_to_hjlj || {},
- s = r.logdata || {},
- u = i.url || "";
- u || "function" != typeof a || a({
- msg: "warning: where_to_hjlj.url is null, goldlog.record failed!"
- });
- var c = goldlog.send(i.url, s, e.method || "GET");
- o.setGoldlogVal("req", c)
- }
- }
- }
- }
- }, function(t, e) {
- "use strict";
- t.exports = function() {
- return {
- init: function(t) {
- this.options = t
- },
- run: function(t, e) {
- var n = this,
- o = this.options.context || {},
- a = o.what_to_hjlj_ut2.isSuccess,
- r = o.logger || function() {},
- i = !!o.is_single,
- s = o.where_to_sendlog_ut || {},
- u = o.what_to_hjlj_ut || {},
- c = u.logdataToUT || {},
- l = s.aplusToUT || {},
- p = l.toUT;
- if(!a && p && "function" == typeof p.toUT2 && p.isAvailable) try {
- p.toUT2(c, function() {
- l.toutflag = "toUT", n.options.context.what_to_hjlj_ut.isSuccess = !0, e()
- }, function() {
- e()
- }, 5e3)
- } catch(t) {
- i && r({
- msg: "warning: singleSend toUTName = " + s.toUTName + " errorMsg:" + t.message
- })
- } finally {
- return "pause"
- }
- }
- }
- }
- }, function(t, e, n) {
- "use strict";
- function o() {
- var t, e, n = i.KEY || {},
- o = n.NAME_STORAGE || {};
- if(!c && u) {
- var a = location.href,
- l = u && (a.indexOf("login.taobao.com") >= 0 || a.indexOf("login.tmall.com") >= 0),
- p = s.getRefer();
- l && p ? (t = p, e = r.getItem(o.REFERRER_PV_ID)) : (t = a, e = goldlog.pvid), r.setItem(o.REFERRER, t), r.setItem(o.REFERRER_PV_ID, e)
- }
- }
- var a = n(71),
- r = n(7).nameStorage,
- i = n(8),
- s = n(49),
- u = "https:" == location.protocol,
- c = parent !== self;
- e.run = function() {
- a.on(window, "beforeunload", function() {
- o()
- })
- }
- }, function(t, e) {
- "use strict";
- function n(t, e) {
- var n = goldlog._$ || {},
- o = n.meta_info || {},
- a = o.aplus_ctap || {};
- if(a && "function" == typeof a.on) a.on(t, e);
- else {
- var r = "ontouchend" in document.createElement("div"),
- s = r ? "touchstart" : "mousedown";
- i(t, s, e)
- }
- }
- function o(t) {
- try {
- u.documentElement.doScroll("left")
- } catch(e) {
- return void setTimeout(function() {
- o(t)
- }, 1)
- }
- t()
- }
- function a(t) {
- var e = 0,
- n = function() {
- 0 === e && t(), e++
- };
- "complete" === u.readyState && n();
- var a;
- if(u.addEventListener) a = function() {
- u.removeEventListener("DOMContentLoaded", a, !1), n()
- }, u.addEventListener("DOMContentLoaded", a, !1), window.addEventListener("load", n, !1);
- else if(u.attachEvent) {
- a = function() {
- "complete" === u.readyState && (u.detachEvent("onreadystatechange", a), n())
- }, u.attachEvent("onreadystatechange", a), window.attachEvent("onload", n);
- var r = !1;
- try {
- r = null === window.frameElement
- } catch(t) {}
- u.documentElement.doScroll && r && o(n)
- }
- }
- function r(t) {
- "complete" === u.readyState ? t() : i(s, "load", t)
- }
- function i() {
- var t = arguments;
- if(2 === t.length) "DOMReady" === t[0] && a(t[1]), "onload" === t[0] && r(t[1]);
- else if(3 === t.length) {
- var e = t[0],
- o = t[1],
- i = t[2];
- "tap" === o ? n(e, i) : e[g]((c ? "on" : "") + o, function(t) {
- t = t || s.event;
- var e = t.target || t.srcElement;
- "function" == typeof i && i(t, e)
- }, !1)
- }
- }
- var s = window,
- u = document,
- c = !!u.attachEvent,
- l = "attachEvent",
- p = "addEventListener",
- g = c ? l : p;
- e.DOMReady = a, e.onload = r, e.on = i
- }, function(t, e, n) {
- "use strict";
- function o() {
- var t, e = "_ap",
- n = r[e] = r[e] || [];
- n.push = t = function() {
- var t = "0.0";
- window.goldlog && window.goldlog.spm_ab && (t = window.goldlog.spm_ab.join(".")), f.do_tracker_obsolete_inter({
- ratio: d ? 1 : .01,
- page: location.hostname + location.pathname,
- spm_ab: t,
- interface_name: "win._ap",
- interface_params: JSON.stringify(arguments)
- });
- for(var e, o, a = 0, r = arguments.length; a < r; a++) e = arguments[a], s.isString(e) ? goldlog.send(l.hjlj() + e) : s.isArray(e) && "push" != (o = e[0]) && (n[o] = n[o] || []).push(e.slice(1))
- };
- for(var o; o = n.shift();) t(o)
- }
- function a() {
- var t = (new Date).getTime(),
- e = Math.floor(t / 72e5),
- n = i.getElementById("aplus-sufei"),
- o = goldlog._$ || {},
- a = goldlog.getCdnPath(),
- r = a + "/alilog/aplus_plugin_xwj/index.js?t=" + e,
- s = a + "/alilog/oneplus/entry.js?t=" + e,
- l = a + "/alilog/stat/a.js?t=" + e,
- p = a + "/secdev/entry/index.js?t=" + e,
- g = a + "/alilog/mlog/wp_beacon.js?t=" + e,
- f = o.meta_info,
- d = function() {
- u.addScript(l), u.addScript(g), u.addScript(r), u.addScript(s)
- },
- h = function() {
- Math.random() < .01 && u.addScript(l), f.ms_data_instance_id && f.ms_prototype_id && f.ms_prototype_id.match(/^[124]$/) && f.ms_data_shop_id && u.addScript(g);
- var t = f["aplus-rate-ahot"];
- (Math.random() < t || f["ahot-aplus"]) && u.addScript(r), u.addScript(s)
- },
- m = f["aplus-xplug"];
- c.onload(function() {
- try {
- switch(m) {
- case "NONE":
- break;
- case "ALL":
- d();
- break;
- default:
- h()
- }
- } catch(t) {}
- }), "NONE" !== m && setTimeout(function() {
- n && "script" == n.tagName.toLowerCase() || u.addScript(p, "", "aplus-sufei")
- }, 10)
- }
- var r = window,
- i = document,
- s = n(13),
- u = n(27),
- c = n(71),
- l = n(73),
- p = n(25),
- g = n(74),
- f = n(56),
- d = p.isDebugAplus();
- e.run = function() {
- o(), a()
- }, e.init_watchGoldlogQueue = g.init_watchGoldlogQueue
- }, function(t, e, n) {
- "use strict";
- var o = n(23);
- e.hjlj = function() {
- var t = window.goldlog || (window.goldlog = {}),
- e = t._$ || {},
- n = e.script_name,
- a = e.meta_info || {},
- r = a["aplus-rhost-g"],
- i = "//gm.mmstat.com/";
- return(e.is_terminal || "aplus_wap" === n) && (i = "//wgo.mmstat.com/"), "aplus_int" === n && (i = "//gj.mmstat.com/"), r && (i = "//" + r + "/"), o.getProtocal() + i
- }
- }, function(t, e, n) {
- "use strict";
- var o = window,
- a = n(13),
- r = n(73),
- i = n(25),
- s = n(4),
- u = n(75),
- c = n(56),
- l = i.isDebugAplus();
- e.init_aplusQueue = function() {
- var t, e = "_ap",
- n = o[e] = o[e] || [];
- n.push = t = function() {
- var t = "0.0";
- window.goldlog && window.goldlog.spm_ab && (t = window.goldlog.spm_ab.join(".")), c.do_tracker_obsolete_inter({
- ratio: l ? 1 : .01,
- page: location.hostname + location.pathname,
- spm_ab: t,
- interface_name: "win._ap",
- interface_params: JSON.stringify(arguments)
- });
- for(var e, o, i = 0, s = arguments.length; i < s; i++) e = arguments[i], a.isString(e) ? goldlog.send(r.hjlj() + e) : a.isArray(e) && "push" != (o = e[0]) && (n[o] = n[o] || []).push(e.slice(1))
- };
- for(var i; i = n.shift();) t(i)
- };
- var p = "goldlog_queue",
- g = function(t) {
- try {
- if(t && t.action && t.arguments && a.isArray(t.arguments)) {
- var e = t.action.split("."),
- n = o,
- r = o;
- if(3 === e.length) n = o[e[0]][e[1]], r = n[e[2]];
- else
- for(; e.length;)
- if(r = n = n[e.shift()], !n) return;
- "function" == typeof r && r.apply(n, t.arguments)
- }
- } catch(t) {}
- },
- f = function(t) {
- function e() {
- var t = o[p];
- if(t && a.isArray(t) && t.length) {
- o[p] && a.isArray(o[p]) || (o[p] = []);
- for(var e = {}; e = t.shift();) e && e.action && e.arguments && a.isArray(e.arguments) && g(e)
- }
- }
- try {
- e()
- } catch(t) {} finally {
- "function" == typeof t && t()
- }
- };
- e.processGoldlogQueue = f;
- var d = s.extend({
- push: function(t) {
- this.length++, g(t)
- }
- }),
- h = function() {
- o[p] = d.create({
- length: 0
- })
- },
- m = function(t) {
- for(var e = 0, n = 0; n < t.length; n++) t[n] || e++;
- return e === t.length
- };
- e.init_watchGoldlogQueue = function() {
- u.init_loadAplusPlugin();
- try {
- var t = o[p] || [];
- !t || 0 === t.length || m(t || []) ? h() : f(function() {
- h()
- })
- } catch(t) {}
- }
- }, function(t, e, n) {
- "use strict";
- var o = n(27),
- a = n(35),
- r = n(10),
- i = function(t, e) {
- var n = a.getMetaCnt(t);
- return !(!n && !e)
- },
- s = function() {
- var t = goldlog.getCdnPath();
- return {
- aplus_ae_path: t + "/alilog/s/" + r.lver + "/plugin/aplus_ae.js",
- aplus_ac_path: t + "/alilog/s/" + r.lver + "/plugin/aplus_ac.js"
- }
- },
- u = function(t, e) {
- var n = s(),
- a = i(t, e),
- r = {
- "aplus-auto-exp": n.aplus_ae_path,
- "aplus-auto-clk": n.aplus_ac_path
- };
- a && r[t] && o.addScript(r[t])
- };
- e.init_loadAplusPlugin = function() {
- u("aplus-auto-exp"), u("aplus-auto-clk"), goldlog.aplus_pubsub.subscribe("setMetaInfo", function(t, e) {
- "aplus-auto-exp" !== t || goldlog._aplus_auto_exp || u(t, e), "aplus-auto-clk" !== t || goldlog._aplus_ac || u(t, e)
- })
- }
- }, function(t, e) {
- "use strict";
- function n(t, e) {
- return t.indexOf(e) > -1
- }
- function o(t, e) {
- for(var o = 0, a = t.length; o < a; o++)
- if(n(e, t[o])) return !0;
- return !1
- }
- var a = location.host,
- r = ["xiaobai.com", "admin.taobao.org", "aliloan.com", "mybank.cn"],
- i = ["tmc.admin.taobao.org", "tmall.admin.taobao.org"];
- e.is_exception = o(r, a) && !o(i, a)
- }, function(t, e, n) {
- "use strict";
- function o() {
- var t, e, n, o, a = u.getElementsByTagName("meta");
- for(t = 0, e = a.length; t < e; t++)
- if(n = a[t], o = n.getAttribute("name"), "data-spm" === o || "spm-id" === o) return n
- }
- function a() {
- var t = u.createElement("meta");
- t.setAttribute("name", "data-spm");
- var e = u.getElementsByTagName("head")[0];
- return e && e.insertBefore(t, e.firstChild), t
- }
- function r() {
- var t = o();
- t || (t = a()), t.setAttribute("content", goldlog.spm_ab[0] || "");
- var e = u.getElementsByTagName("body")[0];
- e && e.setAttribute("data-spm", goldlog.spm_ab[1] || "")
- }
- function i() {
- var t, e, n, o = u.getElementsByTagName("*");
- for(t = 0, e = o.length; t < e; t++) n = o[t], n.getAttribute("data-spm-max-idx") && n.setAttribute("data-spm-max-idx", ""), n.getAttribute("data-spm-anchor-id") && n.setAttribute("data-spm-anchor-id", "")
- }
- var s = window,
- u = document,
- c = n(4),
- l = n(20),
- p = n(71),
- g = n(25),
- f = n(5),
- d = n(13),
- h = n(28),
- m = n(23),
- _ = n(37),
- v = n(47),
- b = n(34),
- y = b.getInfo(),
- w = n(8),
- x = n(56),
- j = n(78),
- T = n(14),
- P = n(81),
- S = g.isDebugAplus(),
- A = [],
- k = [],
- E = [],
- C = [],
- U = function(t, e) {
- var n = new Image,
- o = "_img_" + Math.random(),
- a = l.makeUrl(t, e);
- s[o] = n;
- var r = function() {
- if(s[o]) try {
- delete s[o]
- } catch(t) {
- s[o] = void 0
- }
- };
- return n.onload = function() {
- r()
- }, n.onerror = function() {
- r()
- }, setTimeout(function() {
- r()
- }, 1e3), n.src = a, n = null, a
- },
- I = function(t, e) {
- if(navigator && navigator.sendBeacon) {
- for(var n in e) "cna" !== n && (e[n] = encodeURIComponent(e[n]));
- navigator.sendBeacon(t, JSON.stringify(e))
- } else U(t, e);
- return t
- };
- e.run = c.extend({
- getCdnPath: function() {
- var t = u.getElementById("beacon-aplus") || u.getElementById("tb-beacon-aplus"),
- e = "//g.alicdn.com",
- n = ["//assets.alicdn.com/g", "//g-assets.daily.taobao.net"];
- if(t)
- for(var o = 0; o < n.length; o++) {
- var a = new RegExp(n[o]);
- if(a.test(t.src)) {
- e = n[o];
- break
- }
- }
- return e
- },
- isInternational: function() {
- this.cdnPath || (this.cdnPath = this.getCdnPath());
- var t = "//assets.alicdn.com/g" === this.cdnPath || "//laz-g-cdn.alicdn.com" === this.cdnPath;
- return t || "int" === this.getMetaInfo("aplus-env")
- },
- getCookie: function(t) {
- return T.getCookie(t)
- },
- getParam: function(t) {
- var e = s.WindVane || {},
- n = _.isAplusChnl(),
- o = "";
- n && "object" == typeof n && (o = n.bridgeName || "customBridge");
- var a = e.getParam ? "WindVane" : o,
- r = e && "function" == typeof e.getParam ? e.getParam(t) : "",
- i = goldlog.spm_ab ? goldlog.spm_ab.join(".") : "0.0",
- u = "sid=" + t + "@valueIsEmpty=" + !r;
- return a && (u += "_bridgeName=" + a), x.do_tracker_obsolete_inter({
- ratio: S ? 1 : .01,
- page: location.hostname + location.pathname,
- spm_ab: i,
- interface_name: "goldlog.getParam",
- interface_params: u
- }), r
- },
- beforeSendPV: function(t) {
- A.push(t)
- },
- afterSendPV: function(t) {
- k.push(t)
- },
- send: function(t, e, n) {
- var o;
- if(0 === t.indexOf("//")) {
- var a = m.getProtocal();
- t = a + t
- }
- return o = "POST" === n && navigator.sendBeacon ? I(t, e) : U(t, e)
- },
- launch: function(t, e) {
- var n;
- try {
- e = d.assign(e, t), n = goldlog._$._sendPV(e, t);
- var o = goldlog.spm_ab ? goldlog.spm_ab.join(".") : "0.0";
- x.do_tracker_obsolete_inter({
- page: location.hostname + location.pathname,
- spm_ab: o,
- interface_name: "goldlog.launch",
- interface_params: "userdata = " + JSON.stringify(t) + ", config = " + JSON.stringify(e)
- })
- } catch(t) {} finally {
- return g.logger({
- msg: "warning: This interface is deprecated, please use goldlog.sendPV instead! API: http://log.alibaba-inc.com/log/info.htm?type=2277&id=31"
- }), n
- }
- },
- _$: {
- _sendPV: function(t, e) {
- if(t = t || {}, d.any(A, function(e) {
- return e(goldlog, t) === !1
- })) return !1;
- var o = n(83).SendPV,
- a = new o;
- return "undefined" == typeof t.recordType && (t.recordType = w.recordTypes.pv), a.run(t, e, {
- fn_after_pv: k
- }), !0
- },
- _sendPseudo: function(t, e) {
- t || (t = {});
- var o = n(84).SendPrePV,
- a = new o;
- return "undefined" == typeof t.recordType && (t.recordType = w.recordTypes.prepv), a.run(t, e, {}, function() {
- f.doPubMsg(["sendPrePV", "complete"])
- }), !0
- }
- },
- sendPV: function(t, e) {
- return e = e || {}, goldlog._$._sendPV(t, e)
- },
- beforeRecord: function(t) {
- E.push(t)
- },
- afterRecord: function(t) {
- C.push(t)
- },
- record: function(t, e, n, o, a) {
- if(!d.any(E, function(t) {
- return t(goldlog) === !1
- })) return j.run({
- recordType: w.recordTypes.hjlj,
- method: "POST" === o ? "POST" : "GET"
- }, {
- logkey: t,
- gmkey: e,
- gokey: n
- }, {
- fn_after_record: C
- }, function() {
- "function" == typeof a && a()
- }), !0
- },
- recordUdata: function(t, e, n, o, a) {
- var r = h.getGoldlogVal("_$") || {},
- i = r.spm || {};
- j.run({
- ignore_chksum: !0,
- method: "POST" === o ? "POST" : "GET",
- recordType: w.recordTypes.uhjlj
- }, {
- logkey: t,
- gmkey: e,
- gokey: n,
- "spm-cnt": i.spm_cnt,
- "spm-pre": i.spm_pre
- }, {}, function() {
- d.isFunction(a) && a()
- })
- },
- setPageSPM: function(t, e, n) {
- var o = "function" == typeof n ? n : function() {};
- goldlog.spm_ab = goldlog.spm_ab || [];
- var a = d.cloneObj(goldlog.spm_ab);
- t && (goldlog.spm_ab[0] = "" + t, goldlog._$.spm.data.a = "" + t), e && (goldlog.spm_ab[1] = "" + e, goldlog._$.spm.data.b = "" + e), v.spaInit(goldlog, y, a);
- var s = a.join(".");
- goldlog.spmab_pre = s;
- var u = goldlog.spm_ab.join(".");
- f.doPubMsg(["setPageSPM", {
- spmab_pre: s,
- spmab: u
- }]), f.doCachePubs(["setPageSPM", {
- spmab_pre: s,
- spmab: u
- }]), r(), i(), o()
- },
- setMetaInfo: function(t, e) {
- if(b.setMetaInfo(t, e)) {
- var n = h.getGoldlogVal("_$") || {};
- n.meta_info = b.qGet();
- var o = h.setGoldlogVal("_$", n),
- a = P.isDisablePvid() + "";
- return "aplus-disable-pvid" === t && a !== e + "" && v.resetSpmCntPvid(), f.doPubMsg(["setMetaInfo", t, e]), f.doCachePubs(["setMetaInfo", t, e]), o
- }
- },
- appendMetaInfo: function(t, e) {
- if(t && e) {
- var n, o, a, r = b.getMetaInfo(t);
- if(r)
- if("object" != typeof r) try {
- r = JSON.parse(r), o = !0
- } catch(t) {} else o = !0;
- a = o && r.constructor === Array;
- var i = e;
- if("object" != typeof e) try {
- i = JSON.parse(e)
- } catch(t) {}
- o && i.constructor === Object ? n = d.assign(r, i) : a && i.constructor === Array && (n = r.concat(i)), goldlog.setMetaInfo(t, n ? n : e)
- }
- },
- getMetaInfo: function(t) {
- return b.getMetaInfo(t)
- },
- on: p.on,
- cloneDeep: d.cloneDeep,
- getPvId: P.getPvId
- })
- }, function(t, e, n) {
- "use strict";
- var o = n(13),
- a = n(28),
- r = n(5),
- i = n(25),
- s = n(79),
- u = n(80),
- c = n(8);
- e.run = function(t, e, n, l) {
- var p = new u;
- p.init({
- middleware: [],
- config: t,
- plugins: c.plugins_hjlj
- });
- var g = p.run(),
- f = new c.context_hjlj;
- f.userdata = e, f.logger = i.logger;
- var d = {
- context: f,
- pubsub: a.getGoldlogVal("aplus_pubsub"),
- pubsubType: "hjlj"
- },
- h = new s;
- h.create(d), h.wrap(g, function() {
- d.context.status = "complete", r.doPubMsg(["mw_change_hjlj", d.context]), n && n.fn_after_record && o.each(n.fn_after_record, function(t) {
- t(window.goldlog)
- }), "function" == typeof l && l()
- })()
- }
- }, function(t, e, n) {
- "use strict";
- function o() {}
- var a = n(26),
- r = n(24),
- i = n(25),
- s = n(56),
- u = n(14);
- o.prototype.create = function(t) {
- for(var e in t) "undefined" == typeof this[e] && (this[e] = t[e]);
- return this
- }, o.prototype.pubsubInfo = function(t) {
- try {
- t && t.pubsub && t.pubsub.publish("mw_change_" + t.pubsubType, t.context)
- } catch(t) {}
- }, o.prototype.calledList = [], o.prototype.setCalledList = function(t) {
- a.indexof(this.calledList, t) === -1 && this.calledList.push(t)
- }, o.prototype.resetCalledList = function() {
- this.calledList = []
- }, o.prototype.wrap = function(t, e) {
- var n = this,
- o = this.context || {},
- c = o.compose || {},
- l = c.maxTimeout || 1e4;
- return function(o) {
- var c, p = t.length,
- g = 0,
- f = 0,
- d = function() {
- if(n.pubsubInfo(n), g === p) return o = "done", n.resetCalledList(), "function" == typeof e && e.call(n, o), void clearTimeout(c);
- if(a.indexof(n.calledList, g) === -1) {
- if(n.setCalledList(g), !t[g] || "function" != typeof t[g][0]) return;
- try {
- o = t[g][0].call(n, o, function() {
- g++, f = 1, clearTimeout(c), d(g)
- })
- } catch(e) {
- s.do_tracker_jserror({
- message: e ? e.message : "compose middleware error",
- error: encodeURIComponent(e.stack),
- filename: t[g][1]
- })
- }
- }
- var h = "number" == typeof o;
- if("pause" === o || h) {
- f = 0;
- var m = h ? o : l,
- _ = t[g] ? t[g][1] : "";
- c = r.sleep(m, function() {
- if(0 === f) {
- var t = "jump the middleware about " + _ + ", because waiting timeout maxTimeout = " + m + "ms!";
- i.logger({
- msg: t
- }), goldlog_queue.push({
- action: "goldlog._aplus_cplugin_m.do_tracker_browser_support",
- arguments: [{
- msg: t,
- spmab: goldlog.spm_ab,
- page: location.href,
- etag: n.context ? JSON.stringify(n.context.etag) : "",
- cna: document.cookie ? u.getCookie("cna") : ""
- }]
- }), o = null, g++, d(g)
- }
- })
- } else "done" === o ? (g = p, d(g)) : (g++, d(g))
- };
- return n.calledList && n.calledList.length > 0 && n.resetCalledList(), d(g)
- }
- }, t.exports = o
- }, function(t, e, n) {
- "use strict";
- var o = n(26);
- t.exports = function() {
- return {
- init: function(t) {
- this.opts = t, t && "object" == typeof t.middleware && t.middleware.length > 0 ? this.middleware = t.middleware : this.middleware = [], this.plugins_name = []
- },
- pubsubInfo: function(t, e) {
- try {
- var n = t.pubsub;
- n && n.publish("plugins_change_" + t.pubsubType, e)
- } catch(t) {}
- },
- checkPluginLoader: function(t, e) {
- var n = !0;
- if("object" == typeof e.enable && "function" == typeof e.enable.isEnable ? n = e.enable.isEnable(e.name) : "boolean" == typeof e.enable && (n = !!e.enable), !n) return !1;
- if(n && e.deps && e.deps.length > 0)
- for(var a = 0; a < e.deps.length; a++)
- if(o.indexof(this.plugins_name, e.deps[a]) === -1) return !1;
- return !0
- },
- run: function(t) {
- t || (t = 0);
- var e = this,
- n = this.middleware,
- o = this.opts || {},
- a = o.plugins;
- if(a && "object" == typeof a && a.length > 0) {
- var r = a[t];
- if(this.checkPluginLoader(a, r) && (this.plugins_name.push(r.name), n.push([function(t, n) {
- e.pubsubInfo(this, r);
- var a = new r.path;
- return a.init({
- context: this.context,
- config: o.config
- }), a.run(t, n)
- }, r.name])), t++, a[t]) return this.run(t)
- } else window.console && console.log("aplus plugins " + JSON.stringify(a) + " must be object of array!");
- return n
- }
- }
- }
- }, function(t, e, n) {
- "use strict";
- function o() {
- var t = "true" === l.disablePvid;
- try {
- var e = goldlog.getMetaInfo("aplus-disable-pvid") + "";
- "true" === e ? t = !0 : "false" === e && (t = !1)
- } catch(t) {}
- return t
- }
- function a(t) {
- function e(t) {
- var e = "0123456789abcdefhijklmnopqrstuvwxyzABCDEFHIJKLMNOPQRSTUVWXYZ",
- n = "0123456789abcdefghijkmnopqrstuvwxyzABCDEFGHIJKMNOPQRSTUVWXYZ";
- return 1 == t ? e.substr(Math.floor(60 * Math.random()), 1) : 2 == t ? n.substr(Math.floor(60 * Math.random()), 1) : "0"
- }
- for(var n, o = "", a = "0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ", r = !1; o.length < t;) n = a.substr(Math.floor(62 * Math.random()), 1), !r && o.length <= 2 && ("g" == n.toLowerCase() || "l" == n.toLowerCase()) && (0 === o.length && "g" == n.toLowerCase() ? Math.random() < .5 && (n = e(1), r = !0) : 1 == o.length && "l" == n.toLowerCase() && "g" == o.charAt(0).toLowerCase() && (n = e(2), r = !0)), o += n;
- return o
- }
- function r(t, e, n) {
- return t ? u.hash(encodeURIComponent(t)).substr(0, e) : n
- }
- function i() {
- var t = a(8),
- e = t.substr(0, 4),
- n = t.substr(0, 6);
- return [r(location.href, 4, e), r(document.title, 4, e), n].join("")
- }
- function s() {
- var t = goldlog.pvid;
- return goldlog.pvid = i(), c.doPubMsg(["pvidChange", {
- pre_pvid: t,
- pvid: goldlog.pvid
- }]), c.doCachePubs(["pvidChange", {
- pre_pvid: t,
- pvid: goldlog.pvid
- }]), o() ? "" : goldlog.pvid
- }
- var u = n(82),
- c = n(5),
- l = n(8);
- e.isDisablePvid = o, e.makePVId = s, e.getPvId = function() {
- return o() ? "" : goldlog.pvid
- }
- }, function(t, e) {
- "use strict";
- var n = 1315423911;
- e.hash = function(t, e) {
- var o, a, r = e || n;
- for(o = t.length - 1; o >= 0; o--) a = t.charCodeAt(o), r ^= (r << 5) + a + (r >> 2);
- var i = (2147483647 & r).toString(16);
- return i
- }
- }, function(t, e, n) {
- "use strict";
- var o = n(13),
- a = n(28),
- r = n(5),
- i = n(25),
- s = n(79),
- u = n(80),
- c = n(8),
- l = function() {};
- l.prototype.run = function(t, e, n) {
- var l = new u;
- l.init({
- middleware: [],
- config: t,
- plugins: c.plugins_pv
- });
- var p = l.run(),
- g = new c.context;
- g.userdata = e, g.logger = i.logger;
- var f = {
- context: g,
- pubsub: a.getGoldlogVal("aplus_pubsub"),
- pubsubType: "pv"
- },
- d = new s;
- d.create(f), d.wrap(p, function() {
- f.context.status = "complete", r.doPubMsg(["mw_change_pv", f.context]), n && n.fn_after_record && o.each(n.fn_after_pv, function(e) {
- e(window.goldlog, t)
- })
- })()
- }, e.SendPV = l
- }, function(t, e, n) {
- "use strict";
- var o = n(13),
- a = n(28),
- r = n(5),
- i = n(25),
- s = n(79),
- u = n(80),
- c = n(8),
- l = function() {};
- l.prototype.run = function(t, e, n, l) {
- var p = new u;
- p.init({
- middleware: [],
- config: t,
- plugins: c.plugins_prepv
- });
- var g = p.run(),
- f = new c.context_prepv;
- f.userdata = e, f.logger = i.logger;
- var d = {
- context: f,
- pubsub: a.getGoldlogVal("aplus_pubsub"),
- pubsubType: "prepv"
- },
- h = new s;
- h.create(d), h.wrap(g, function() {
- d.context.status = "complete", r.doPubMsg(["mw_change_prepv", d.context]), n && n.fn_after_record && o.each(n.fn_after_pv, function(e) {
- e(window.goldlog, t)
- }), a.setGoldlogVal("prepv_context", f), "function" == typeof l && l()
- })()
- }, e.SendPrePV = l
- }, function(t, e, n) {
- "use strict";
- var o = n(37),
- a = n(8);
- e.init = function() {
- var t = n(8),
- e = goldlog._$,
- r = navigator.userAgent;
- r.match(/AliApp\(([A-Z\-]+)\/([\d\.]+)\)/i) && (e.is_ali_app = !0), t.utilPvid.makePVId();
- var i = n(47);
- e.spm = i, e.is_WindVane = o.is_WindVane;
- var s = e.meta_info;
- e.page_url = location.href, e.page_referrer = n(49).getRefer(), i.init(goldlog, s, function() {
- t.initLoad.init_watchGoldlogQueue();
- var e = n(8).spmException,
- o = e.is_exception;
- o || n(86)
- }), goldlog.beforeSendPV(function(t, e) {
- if(e.is_auto && "1" === s["aplus-manual-pv"]) return !1
- }), goldlog.afterSendPV(function() {
- window.g_SPM && (g_SPM._current_spm = "")
- }), a.is_auto_pv + "" == "true" && goldlog.sendPV({
- is_auto: !0
- }), t.initLoad.run(), t.beforeUnload.run()
- }
- }, function(t, e, n) {
- "use strict";
- ! function() {
- var t, e = n(13),
- o = n(28),
- a = n(87),
- r = function() {
- t = !0;
- var n = window.g_SPM || {};
- e.isFunction(n.getParam) || e.isFunction(n.spm) || a.run()
- },
- i = window.goldlog || (window.goldlog = {});
- i.aplus_pubsub && "function" == typeof i.aplus_pubsub.publish && i.aplus_pubsub.subscribe("goldlogReady", function(e) {
- "complete" !== e || t || r()
- });
- var s = 0,
- u = function() {
- if(!t) {
- var e = o.getGoldlogVal("_$") || {};
- "complete" === e.status ? r() : s < 50 && (++s, setTimeout(function() {
- u()
- }, 200))
- }
- };
- u()
- }()
- }, function(t, e, n) {
- "use strict";
- var o = n(20),
- a = n(26),
- r = n(21),
- i = n(13),
- s = n(27),
- u = n(71),
- c = n(28),
- l = n(25),
- p = n(23);
- e.run = function() {
- function t(t) {
- var e = bt(t, lt),
- n = r.parseSemicolonContent(e) || {};
- return n
- }
- function e() {
- var t = J.spm.data;
- return [t.a, t.b].join(".")
- }
- function n(t, e) {
- var n, o, a, r, i, s, u, c, l, p = [];
- for(n = vt(t.getElementsByTagName("a")), o = vt(t.getElementsByTagName("area")), r = n.concat(o), u = 0, c = r.length; u < c; u++) {
- for(s = !1, i = a = r[u];
- (i = i.parentNode) && i != t;)
- if(bt(i, st)) {
- s = !0;
- break
- }
- s || (l = bt(a, pt), e || "t" == l ? e && "t" == l && p.push(a) : p.push(a))
- }
- return p
- }
- function g(o, a, r, u) {
- var c, l, p, g, f, d, h, m, _, v, b, w, j, P, S, k, E, C, U;
- if(a = a || o.getAttribute(st) || "", a && (c = n(o, u), 0 !== c.length)) {
- if(p = a.split("."), E = xt(a, "110") && 3 == p.length, E && (C = p[2], p[2] = "w" + (C || "0"), a = p.join(".")), jt(j = e()) && j.match(/^[\w\-\*]+(\.[\w\-\*\/]+)?$/))
- if(i.isContain(a, ".")) {
- if(!xt(a, j)) {
- for(g = j.split("."), p = a.split("."), S = 0, P = g.length; S < P; S++) p[S] = g[S];
- a = p.join(".")
- }
- } else i.isContain(j, ".") || (j += ".0"), a = j + "." + a;
- if(a.match && a.match(/^[\w\-\*]+\.[\w\-\*\/]+\.[\w\-\*\/]+$/)) {
- var I = u ? ft : gt;
- for(U = parseInt(bt(o, I)) || 0, k = 0, f = U, P = c.length; k < P; k++)
- if(l = c[k], d = s.tryToGetHref(l), h = s.tryToGetAttribute(l, lt), u || d || h)
- if(E && l.setAttribute(ht, C), m = l.getAttribute(mt), m && A(m)) y(l, m, r);
- else {
- v = T(l.parentNode), v.a_spm_ab ? (w = v.a_spm_ab, b = v.ab_idx) : (w = void 0, f++, b = f);
- var M = t(l) || {},
- V = M.locaid || "";
- V ? _ = V : (_ = x(l) || b, u && (_ = "at" + ((i.isNumber(_) ? 1e3 : "") + _))), m = w ? a + "-" + w + "." + _ : a + "." + _, y(l, m, r)
- }
- o.setAttribute(I, f)
- }
- }
- }
- function f(t) {
- for(var e = ["mclick.simba.taobao.com", "click.simba.taobao.com", "click.tanx.com", "click.mz.simba.taobao.com", "click.tz.simba.taobao.com", "redirect.simba.taobao.com", "rdstat.tanx.com", "stat.simba.taobao.com", "s.click.taobao.com"], n = 0; n < e.length; n++)
- if(t.indexOf(e[n]) != -1) return !0;
- return !1
- }
- function d(t) {
- return t ? !!t.match(/^[^\?]*\balipay\.(?:com|net)\b/i) : q
- }
- function h(t) {
- return t ? !!t.match(/^[^\?]*\balipay\.(?:com|net)\/.*\?.*\bsign=.*/i) : q
- }
- function m(t) {
- for(var e;
- (t = t.parentNode) && t.tagName != nt;)
- if(e = bt(t, ut)) return e;
- return ""
- }
- function _(t, e) {
- if(t && /&?\bspm=[^&#]*/.test(t) && (t = t.replace(/&?\bspm=[^&#]*/g, "").replace(/&{2,}/g, "&").replace(/\?&/, "?").replace(/\?$/, "")), !e) return t;
- var n, o, a, r, s, u, c, l = "&";
- if(t.indexOf("#") != -1 && (a = t.split("#"), t = a.shift(), o = a.join("#")), r = t.split("?"), s = r.length - 1, a = r[0].split("//"), a = a[a.length - 1].split("/"), u = a.length > 1 ? a.pop() : "", s > 0 && (n = r.pop(), t = r.join("?")), n && s > 1 && n.indexOf("&") == -1 && n.indexOf("%") != -1 && (l = "%26"), t = t + "?spm=" + dt + e + (n ? l + n : "") + (o ? "#" + o : ""), c = i.isContain(u, ".") ? u.split(".").pop().toLowerCase() : "") {
- if({
- png: 1,
- jpg: 1,
- jpeg: 1,
- gif: 1,
- bmp: 1,
- swf: 1
- }.hasOwnProperty(c)) return 0;
- !n && s <= 1 && (o || {
- htm: 1,
- html: 1,
- php: 1,
- aspx: 1
- }.hasOwnProperty(c) || (t += "&file=" + u))
- }
- return t
- }
- function v(t) {
- return t && Y.split("#")[0] == t.split("#")[0]
- }
- function b(t) {
- var e = s.tryToGetHref(t),
- n = m(t),
- o = bt(t, ut),
- a = "i" === (o || n || it);
- if(!e || f(e)) return !0;
- var r = v(e) || p.isStartWithProtocol(e.toLowerCase()) || d(e) || h(e);
- return !(a || !xt(e, "#") && !r) || a
- }
- function y(t, n, a) {
- if(!/^0\.0\.?/.test(n)) {
- var r = s.tryToGetHref(t),
- i = e(),
- u = b(t);
- if(u) {
- var c = o.param2obj(r);
- if(c.spm && c.spm.split)
- for(var l = c.spm.split("."), p = n.split("."), g = 0; g < 3 && p[g] === l[g]; g++) 2 === g && l[3] && (n = c.spm)
- }
- t.setAttribute(mt, n), Q = goldlog.getPvId(), Q && (n += "." + Q), (Q || i && i != Z) && (u || a || (r = _(r, n)) && w(t, r))
- }
- }
- function w(t, e) {
- var n, o = t.innerHTML;
- o && o.indexOf("<") == -1 && (n = W.createElement("b"), n.style.display = "none", t.appendChild(n)), t.href = e, n && t.removeChild(n)
- }
- function x(t) {
- var e, n = J.spm.data;
- return "0" == n.a && "0" == n.b ? e = "0" : (e = bt(t, st), e && e.match(/^d\w+$/) || (e = "")), e
- }
- function j(t) {
- for(var e, n, o = t; t && t.tagName != et && t.tagName != nt && t.getAttribute;) {
- if(n = t.getAttribute(st)) {
- e = n, o = t;
- break
- }
- if(!(t = t.parentNode)) break
- }
- return e && !/^[\w\-\.\/]+$/.test(e) && (e = "0"), {
- spm_c: e,
- el: o
- }
- }
- function T(t) {
- for(var e, n = {}, o = ""; t && t.tagName != et && t.tagName != nt;) {
- if(!o && (o = bt(t, _t))) {
- e = parseInt(bt(t, "data-spm-ab-max-idx")) || 0, n.a_spm_ab = o, n.ab_idx = ++e, t.setAttribute("data-spm-ab-max-idx", e);
- break
- }
- if(bt(t, st)) break;
- t = t.parentNode
- }
- return n
- }
- function P(t) {
- var e;
- return t && (e = t.match(/&?\bspm=([^&#]*)/)) ? e[1] : ""
- }
- function S(t, n) {
- var o = goldlog.getMetaInfo("aplus-getspmcd") || function() {},
- a = e(),
- r = s.tryToGetHref(t),
- i = P(r),
- u = null,
- c = a && 2 == a.split(".").length;
- if(c) {
- var l = o(t, null, a);
- return u = l && "0" !== l.spm_c ? [a, l.spm_c, l.spm_d] : [a, 0, x(t) || 0], void y(t, u.join("."), n)
- }
- r && i && (r = r.replace(/&?\bspm=[^&#]*/g, "").replace(/&{2,}/g, "&").replace(/\?&/, "?").replace(/\?$/, "").replace(/\?#/, "#"), w(t, r))
- }
- function A(t) {
- var n = e(),
- o = t.split(".");
- return o[0] + "." + o[1] == n
- }
- function k(t, e) {
- ot && M();
- var n, o, a = bt(t, mt);
- if(a && A(a)) y(t, a, e);
- else {
- if(n = j(t.parentNode), o = n.spm_c, !o) return void S(t, e);
- tt && (o = "0"), g(n.el, o, e), g(n.el, o, e, !0)
- }
- }
- function E(t) {
- if(t && 1 == t.nodeType) {
- wt(t, gt), wt(t, ft);
- var e, n = vt(t.getElementsByTagName("a")),
- o = vt(t.getElementsByTagName("area")),
- a = n.concat(o),
- r = a.length;
- for(e = 0; e < r; e++) wt(a[e], mt)
- }
- }
- function C(n) {
- var o = bt(n, mt);
- if(!o) {
- var a = e(),
- r = n.parentNode;
- if(!r) return "";
- var i = t(n) || {},
- s = i.locaid || "",
- u = n.getAttribute(st) || s,
- c = j(r),
- l = c.spm_c || 0;
- l && l.indexOf(".") != -1 && (l = l.split("."), l = l[l.length - 1]), o = Pt(a + "." + l, u)
- }
- return o
- }
- function U(t) {
- var e, n = t.tagName;
- "A" != n && "AREA" != n ? e = C(t) : (k(t, K), e = bt(t, mt)), e || (e = "0.0.0.0");
- var o = goldlog.getPvId();
- return 4 === e.split(".").length && o && (e += "." + o), "A" != n && "AREA" != n && yt(t, mt, e), e = e.split("."), {
- a: e[0],
- b: e[1],
- c: e[2],
- d: e[3],
- e: e[4]
- }
- }
- function I(t, e) {
- if(e || (e = W), W.evaluate) return e.evaluate(t, W, null, 9, null).singleNodeValue;
- for(var n, o = t.split("/"); !n && o.length > 0;) n = o.shift();
- var a, r = /^.+?\[@id="(.+?)"]$/i,
- i = /^(.+?)\[(\d+)]$/i;
- return(a = n.match(r)) ? e = e.getElementById(a[1]) : (a = n.match(i)) && (e = e.getElementsByTagName(a[1])[parseInt(a[2]) - 1]), e ? 0 === o.length ? e : I(o.join("/"), e) : null
- }
- function M() {
- var t, e, n, o = {};
- for(t in at) at.hasOwnProperty(t) && (e = I(t), e && (o[t] = 1, n = at[t], yt(e, st, ("A" == e.tagName ? n.spmd : n.spmc) || "")));
- for(t in o) o.hasOwnProperty(t) && delete at[t]
- }
- function V() {
- if(!rt && D.spmData) {
- rt = K;
- var t, e, n, o, a = D.spmData.data;
- if(a && Tt(a)) {
- for(t = 0, e = a.length; t < e; t++) n = a[t], o = n.xpath, o = o.replace(/^id\("(.+?)"\)(.*)/g, '//*[@id="$1"]$2'), at[o] = {
- spmc: n.spmc,
- spmd: n.spmd
- };
- M()
- }
- }
- }
- function N() {
- var t, e, n, o, a = W.getElementsByTagName("iframe"),
- r = a.length;
- for(e = 0; e < r; e++) t = a[e], !t.src && (n = bt(t, ct)) && (o = U(t), o ? (o = [o.a, o.b, o.c, o.d, o.e].join("."), t.src = _(n, o)) : t.src = n)
- }
- function O() {
- function t() {
- e++, e > 10 && (n = 3e3), N(), setTimeout(t, n)
- }
- var e = 0,
- n = 500;
- t()
- }
- function G(t, e, n) {
- var o = r.parseSemicolonContent(e, {}, !0),
- s = o.gostr || "",
- u = o.locaid || "",
- c = o.gmkey || "",
- p = o.gokey || "",
- g = U(t),
- f = [g.a, g.b, g.c, u].join("."),
- d = s + "." + f;
- 0 !== d.indexOf("/") && (d = "/" + d);
- var h = [],
- m = ["gostr", "locaid", "gmkey", "gokey", "spm-cnt", "cna"];
- for(var _ in o) o.hasOwnProperty(_) && a.indexof(m, _) === -1 && h.push(_ + "=" + o[_]);
- h.push("_g_et=" + n), h.push("autosend=1"), p && h.length > 0 && (p += "&"), p += h.length > 0 ? h.join("&") : "", goldlog && i.isFunction(goldlog.recordUdata) ? goldlog.recordUdata(d, c, p, "GET", function() {}) : l.logger({
- msg: "goldlog.recordUdata is not function!"
- }), yt(t, mt, f)
- }
- function L(t, n) {
- var o = n;
- D.g_SPM && (g_SPM._current_spm = U(n));
- for(var a; n && n.tagName != et;) {
- a = bt(n, lt); {
- if(a) {
- G(n, a, "mousedown" === t.type ? t.button : "tap");
- break
- }
- n = n.parentNode
- }
- }
- if(!a) {
- var r = e(),
- i = goldlog.getMetaInfo("aplus-getspmcd") || function() {};
- i(o, t, r)
- }
- }
- function R(t, e) {
- for(var n, o = (new Date).getTime(); e && (n = e.tagName);) {
- if("A" == n || "AREA" == n) {
- k(e, q);
- var a = window.g_SPM || (window.g_SPM = {}),
- r = a._current_spm = U(e),
- i = [];
- try {
- i = [r.a, r.b, r.c, r.d];
- var s = r.e || goldlog.pvid || "";
- s && i.push(s), $(e, o, i.join("."))
- } catch(t) {}
- break
- }
- if(n == nt || n == et) break;
- e = e.parentNode
- }
- }
- function $(t, e, n) {
- var o = t.getAttribute("href");
- i.isStartWith(o, "//") && (o = location.protocol + o);
- var a = {
- id: goldlog.pvid + "_" + e,
- timestamp: e,
- target_expression_type: "href",
- target_expression: o,
- spm_id: n,
- log_id: goldlog.pvid,
- current_url: location.href,
- current_referrer: goldlog._$.page_referrer,
- tracking_param: ""
- },
- r = function(t) {
- t && "complete" === t.status && "function" == typeof t.setLsParams && t.setLsParams(a)
- };
- goldlog.aplus_pubsub.subscribeOnce("_aplus_cplugin_lsparams", r)
- }
- function B(t, e) {
- var n = U(t),
- o = n.a + "." + n.b + "." + n.c + "." + n.d;
- return e && (o += "." + n.e), o
- }
- var D = window,
- W = document,
- F = location,
- K = !0,
- q = !1,
- J = c.getGoldlogVal("_$") || {},
- H = J.meta_info,
- Y = F.href,
- z = J.is_terminal || /WindVane/i.test(navigator.userAgent),
- X = s.isTouch() || "1" === H["aplus-touch"];
- D.g_SPM || (D.g_SPM = {}), D.g_SPM.spm_d_for_ad = {};
- var Q, Z = "0.0",
- tt = !1,
- et = "HTML",
- nt = "BODY",
- ot = q,
- at = {},
- rt = q,
- it = H.spm_protocol,
- st = "data-spm",
- ut = "data-spm-protocol",
- ct = "data-spm-src",
- lt = "data-spm-click",
- pt = "data-auto-spmd",
- gt = "data-spm-max-idx",
- ft = "data-auto-spmd-max-idx",
- dt = "",
- ht = "data-spm-wangpu-module-id",
- mt = "data-spm-anchor-id",
- _t = "data-spm-ab",
- vt = r.nodeListToArray,
- bt = s.tryToGetAttribute,
- yt = s.tryToSetAttribute,
- wt = s.tryToRemoveAttribute,
- xt = i.isStartWith,
- jt = i.isString,
- Tt = i.isArray,
- Pt = function(t, e) {
- if(t && e) return t + ".i" + e;
- var n = D.g_SPM || (D.g_SPM = {}),
- o = n.spm_d_for_ad || {};
- return "number" == typeof o[t] ? o[t]++ : o[t] = 0, n.spm_d_for_ad = o, t + ".i" + o[t]
- };
- u.DOMReady(function() {
- V()
- }), z || O(), X ? u.on(W, "tap", L) : u.on(W, "mousedown", L), X ? u.on(W, "tap", R) : (u.on(W, "mousedown", R), u.on(W, "keydown", R)), D.g_SPM = {
- resetModule: E,
- anchorBeacon: k,
- getParam: U,
- spm: B
- }
- }
- }]); /*! 2017-10-31 20:46:31 v0.2.4 */
- ! function(o) {
- function n(i) {
- if(t[i]) return t[i].exports;
- var e = t[i] = {
- exports: {},
- id: i,
- loaded: !1
- };
- return o[i].call(e.exports, e, e.exports, n), e.loaded = !0, e.exports
- }
- var t = {};
- return n.m = o, n.c = t, n.p = "", n(0)
- }([function(o, n, t) {
- "use strict";
- ! function() {
- var o = window.goldlog || (window.goldlog = {});
- if(!o._aplus_plugin_aol) {
- o._aplus_plugin_aol = {
- status: "complete"
- };
- var n = t(1),
- i = window.goldlog_queue || (window.goldlog_queue = []);
- i.push({
- action: "goldlog.aplus_pubsub.subscribeOnce",
- arguments: ["goldlogReady", function(o) {
- "complete" === o && n.run()
- }]
- })
- }
- }()
- }, function(o, n, t) {
- "use strict";
- var i = t(2),
- e = t(3);
- n.run = function() {
- var o, n = function() {
- !o && i.bingo() && (o = "1", e.init())
- },
- t = (location.hostname + location.pathname).match(/^www.taobao.com\/$/);
- "1" === goldlog.getMetaInfo("aplus-aol") || t ? n() : goldlog.aplus_pubsub.subscribe("setMetaInfo", function(o, i) {
- ("aplus-aol" === o && "1" === i || t) && n()
- })
- }
- }, function(o, n) {
- "use strict";
- function t(o, n) {
- return o + Math.floor(Math.random() * (n - o + 1))
- }
- var i = 13,
- e = 1;
- n.bingo = function() {
- var o = t(1, i);
- return o === e
- }
- }, function(o, n) {
- "use strict";
- var t, i = document,
- e = window,
- u = !1,
- l = function() {
- var o = goldlog.getMetaInfo("aplus-aol-ext") || "";
- return "function" == typeof o && (o = o()), o
- },
- a = function(o) {
- var n = l() || "",
- t = goldlog.spm_ab ? goldlog.spm_ab.join(".") : "";
- goldlog.send(o, {
- sk: t + (n ? "." + n : ""),
- cna: goldlog.getCookie("cna"),
- t: (new Date).getTime()
- }, "POST")
- },
- c = function() {
- a("//ol.mmstat.com/aol.r.i")
- },
- g = function() {
- a("//ol.mmstat.com/aol.r.o")
- },
- s = function() {
- t = setTimeout(function() {
- u && c(), s()
- }, 5e3)
- },
- r = function() {
- clearTimeout(t), g(), c(), s()
- },
- d = function() {
- var o = function() {
- u = !1, g()
- };
- goldlog.on(e, "beforeunload", function() {
- o()
- }), i.addEventListener && i.addEventListener("WV.Event.APP.Background", function(n) {
- o()
- }, !1), "hidden" in i && goldlog.on(e, "visibilitychange", function() {
- "hidden" === i.visibilityState && o()
- }), goldlog.on(e, "blur", function() {
- o()
- })
- },
- f = function() {
- var o = e.goldlog_queue || (e.goldlog_queue = []);
- o.push({
- action: "goldlog.aplus_pubsub.subscribe",
- arguments: ["setPageSPM", function(o) {
- r()
- }]
- })
- },
- p = function() {
- var o = function() {
- u = !0, c()
- };
- i.addEventListener && i.addEventListener("WV.Event.APP.Active", function(n) {
- o()
- }, !1), "hidden" in i && goldlog.on(e, "visibilitychange", function() {
- "visible" === i.visibilityState && o()
- }), goldlog.on(e, "focus", function() {
- o()
- })
- };
- n.init = function() {
- c(), u = !0, s(), d(), f(), p()
- }
- }]); /*! 2018-02-06 20:38:34 v8.2.1 */
- ! function(t) {
- function e(n) {
- if(r[n]) return r[n].exports;
- var a = r[n] = {
- exports: {},
- id: n,
- loaded: !1
- };
- return t[n].call(a.exports, a, a.exports, e), a.loaded = !0, a.exports
- }
- var r = {};
- return e.m = t, e.c = r, e.p = "", e(0)
- }([function(t, e) {
- "use strict";
- ! function() {
- function t(t, e, r) {
- t[w]((b ? "on" : "") + e, function(t) {
- t = t || f.event;
- var e = t.target || t.srcElement;
- r(t, e)
- }, !1)
- }
- function e() {
- return /&?\bspm=[^&#]*/.test(location.href) ? location.href.match(/&?\bspm=[^&#]*/gi)[0].split("=")[1] : ""
- }
- function r(t, e) {
- if(t && /&?\bspm=[^&#]*/.test(t) && (t = t.replace(/&?\bspm=[^&#]*/g, "").replace(/&{2,}/g, "&").replace(/\?&/, "?").replace(/\?$/, "")), !e) return t;
- var r, n, a, i, o, c, p, f = "&";
- if(t.indexOf("#") != -1 && (a = t.split("#"), t = a.shift(), n = a.join("#")), i = t.split("?"), o = i.length - 1, a = i[0].split("//"), a = a[a.length - 1].split("/"), c = a.length > 1 ? a.pop() : "", o > 0 && (r = i.pop(), t = i.join("?")), r && o > 1 && r.indexOf("&") == -1 && r.indexOf("%") != -1 && (f = "%26"), t = t + "?spm=" + e + (r ? f + r : "") + (n ? "#" + n : ""), p = c.indexOf(".") > -1 ? c.split(".").pop().toLowerCase() : "") {
- if({
- png: 1,
- jpg: 1,
- jpeg: 1,
- gif: 1,
- bmp: 1,
- swf: 1
- }.hasOwnProperty(p)) return 0;
- !r && o <= 1 && (n || {
- htm: 1,
- html: 1,
- php: 1
- }.hasOwnProperty(p) || (t += "&file=" + c))
- }
- return t
- }
- function n(t) {
- function e(t) {
- return t = t.replace(/refpos[=(%3D)]\w*/gi, c).replace(i, "%3D" + n + "%26" + a.replace("=", "%3D")).replace(o, n), a.length > 0 && (t += "&" + a), t
- }
- var r = window.location.href,
- n = r.match(/mm_\d{0,24}_\d{0,24}_\d{0,24}/i),
- a = r.match(/[&\?](pvid=[^&]*)/i),
- i = new RegExp("%3Dmm_\\d+_\\d+_\\d+", "ig"),
- o = new RegExp("mm_\\d+_\\d+_\\d+", "ig");
- a = a && a[1] ? a[1] : "";
- var c = r.match(/(refpos=(\d{0,24}_\d{0,24}_\d{0,24})?(,[a-z]+)?)(,[a-z]+)?/i);
- return c = c && c[0] ? c[0] : "", n ? (n = n[0], e(t)) : t
- }
- function a(e) {
- var r = f.KISSY;
- r ? r.ready(e) : f.jQuery ? jQuery(m).ready(e) : "complete" === m.readyState ? e() : t(f, "load", e)
- }
- function i(t, e) {
- return t && t.getAttribute ? t.getAttribute(e) || "" : ""
- }
- function o(t) {
- if(t) {
- var e, r = h.length;
- for(e = 0; e < r; e++)
- if(t.indexOf(h[e]) > -1) return !0;
- return !1
- }
- }
- function c(t, e) {
- if(t && /&?\bspm=[^&#]*/.test(t) && (t = t.replace(/&?\bspm=[^&#]*/g, "").replace(/&{2,}/g, "&").replace(/\?&/, "?").replace(/\?$/, "")), !e) return t;
- var r, n, a, i, o, c, p, f = "&";
- if(t.indexOf("#") != -1 && (a = t.split("#"), t = a.shift(), n = a.join("#")), i = t.split("?"), o = i.length - 1, a = i[0].split("//"), a = a[a.length - 1].split("/"), c = a.length > 1 ? a.pop() : "", o > 0 && (r = i.pop(), t = i.join("?")), r && o > 1 && r.indexOf("&") == -1 && r.indexOf("%") != -1 && (f = "%26"), t = t + "?spm=" + e + (r ? f + r : "") + (n ? "#" + n : ""), p = c.indexOf(".") > -1 ? c.split(".").pop().toLowerCase() : "") {
- if({
- png: 1,
- jpg: 1,
- jpeg: 1,
- gif: 1,
- bmp: 1,
- swf: 1
- }.hasOwnProperty(p)) return 0;
- !r && o <= 1 && (n || {
- htm: 1,
- html: 1,
- php: 1
- }.hasOwnProperty(p) || (t += "&__file=" + c))
- }
- return t
- }
- function p(t) {
- if(o(t.href)) {
- var r = i(t, g);
- if(!r) {
- if(!d) return;
- var n = d(t),
- a = [n.a, n.b, n.c, n.d].join(".");
- n.e && (n += "." + n.e), u && (a = [n.a || "0", n.b || "0", n.c || "0", n.d || "0"].join("."), a = (e() || "0.0.0.0.0") + "_" + a), t.href = c(t.href, a), t.setAttribute(g, a)
- }
- }
- }
- var f = window,
- m = document,
- s = f._alimm_spmact_on_;
- if("undefined" == typeof s && (s = 1), 1 == s && (s = 1), 0 == s && (s = 0), s) {
- var l = function() {
- return {
- a: 0,
- b: 0,
- c: 0,
- d: 0,
- e: 0
- }
- },
- d = f.g_SPM && f.g_SPM.getParam ? f.g_SPM.getParam : l,
- u = !0;
- try {
- u = self.location != top.location
- } catch(t) {}
- var g = "data-spm-act-id",
- h = ["mclick.simba.taobao.com", "click.simba.taobao.com", "click.tanx.com", "click.mz.simba.taobao.com", "click.tz.simba.taobao.com", "redirect.simba.taobao.com", "rdstat.tanx.com", "stat.simba.taobao.com", "s.click.taobao.com"],
- b = !!m.attachEvent,
- v = "attachEvent",
- _ = "addEventListener",
- w = b ? v : _;
- t(m, "mousedown", function(t, e) {
- for(var r, n = 0; e && (r = e.tagName) && n < 5;) {
- if("A" == r || "AREA" == r) {
- p(e);
- break
- }
- if("BODY" == r || "HTML" == r) break;
- e = e.parentNode, n++
- }
- }), a(function() {
- for(var t, a, o = document.getElementsByTagName("iframe"), c = 0; c < o.length; c++) {
- t = i(o[c], "mmsrc"), a = i(o[c], "mmworked");
- var p = d(o[c]),
- f = [p.a || "0", p.b || "0", p.c || "0", p.d || "0", p.e || "0"].join(".");
- t && !a ? (u && (f = [p.a || "0", p.b || "0", p.c || "0", p.d || "0"].join("."), f = e() + "_" + f), o[c].src = r(n(t), f), o[c].setAttribute("mmworked", "mmworked")) : o[c].setAttribute(g, f)
- }
- })
- }
- }()
- }]);
- </script>
- </body>
- </html>
|