(()=>{"use strict";var e,t="",i="function",n="undefined",r="object",o="string",a="major",s="model",c="name",u="type",d="vendor",l="version",p="architecture",f="console",h="mobile",m="tablet",v="smarttv",g="wearable",w="embedded",b="user-agent",y="brands",_="fullVersionList",E="platform",T="platformVersion",C="bitness",I="sec-ch-ua",k=I+"-full-version-list",S=I+"-arch",x=I+"-bitness",O=I+"-mobile",P=I+"-model",N=I+"-platform",L=N+"-version",A=["brands","fullVersionList",h,s,"platform","platformVersion",p,"bitness"],U="browser",D="cpu",R="device",H="engine",j="os",K="result",M="Amazon",q="Apple",V="ASUS",B="BlackBerry",F="Google",G="Huawei",Y="LG",X="Microsoft",z="Motorola",W="Samsung",J="Sharp",$="Sony",Z="Xiaomi",Q="Zebra",ee="Mobile ",te=" Browser",ie="Chrome",ne="Firefox",re="Opera",oe="Facebook",ae="Windows",se=void 0,ce=void 0,ue=function(e){for(var t in e){var i=e[t];typeof i==r&&2==i.length?this[i[0]]=i[1]:this[i]=void 0}return this},de=function(e){for(var t={},i=0;i<e.length;i++)t[e[i].toUpperCase()]=e[i];return t},le=function(e,t){if(typeof e===r&&e.length>0){for(var i in e)if(he(e[i])==he(t))return!0;return!1}return typeof e===o&&-1!==he(t).indexOf(he(e))},pe=function(e){for(var t in e)return/^(browser|cpu|device|engine|os)$/.test(t)},fe=function(e){if(e){for(var t=[],i=ve(/\\?\"/g,e).split(", "),n=0;n<i.length;n++){var r=i[n].split(";v=");t[n]={brand:r[0],version:r[1]}}return t}},he=function(e){return typeof e===o?e.toLowerCase():e},me=function(e){return typeof e===o?ve(/[^\d\.]/g,e).split(".")[0]:void 0},ve=function(e,i){return i.replace(e,t)},ge=function(e){return typeof e===o?ve(/\"/g,e):e},we=function(e,t){if(typeof e===o)return e=ve(/^\s\s*/,e),typeof t===n?e:e.substring(0,350)},be=function(e,t){if(e&&t)for(var n,o,a,s,c,u,d=0;d<t.length&&!c;){var l=t[d],p=t[d+1];for(n=o=0;n<l.length&&!c&&l[n];)if(c=l[n++].exec(e))for(a=0;a<p.length;a++)u=c[++o],typeof(s=p[a])===r&&s.length>0?2===s.length?typeof s[1]==i?this[s[0]]=s[1].call(this,u):this[s[0]]=s[1]:3===s.length?typeof s[1]!==i||s[1].exec&&s[1].test?this[s[0]]=u?u.replace(s[1],s[2]):void 0:this[s[0]]=u?s[1].call(this,u,s[2]):void 0:4===s.length&&(this[s[0]]=u?s[3].call(this,u.replace(s[1],s[2])):void 0):this[s]=u||void 0;d+=2}},ye=function(e,t){for(var i in t)if(typeof t[i]===r&&t[i].length>0){for(var n=0;n<t[i].length;n++)if(le(t[i][n],e))return"?"===i?void 0:i}else if(le(t[i],e))return"?"===i?void 0:i;return e},_e={ME:"4.90","NT 3.11":"NT3.51","NT 4.0":"NT4.0",2e3:"NT 5.0",XP:["NT 5.1","NT 5.2"],Vista:"NT 6.0",7:"NT 6.1",8:"NT 6.2",8.1:"NT 6.3",10:["NT 6.4","NT 10.0"],RT:"ARM"},Ee={browser:[[/\b(?:crmo|crios)\/([\w\.]+)/i],[l,[c,ee+"Chrome"]],[/edg(?:e|ios|a)?\/([\w\.]+)/i],[l,[c,"Edge"]],[/(opera mini)\/([-\w\.]+)/i,/(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i,/(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i],[c,l],[/opios[\/ ]+([\w\.]+)/i],[l,[c,re+" Mini"]],[/\bopr\/([\w\.]+)/i],[l,[c,re]],[/(kindle)\/([\w\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer)[\/ ]?([\w\.]*)/i,/(avant |iemobile|slim)(?:browser)?[\/ ]?([\w\.]*)/i,/(ba?idubrowser)[\/ ]?([\w\.]+)/i,/(?:ms|\()(ie) ([\w\.]+)/i,/(flock|rockmelt|midori|epiphany|silk|skyfire|ovibrowser|bolt|iron|vivaldi|iridium|phantomjs|bowser|quark|qupzilla|falkon|rekonq|puffin|brave|whale(?!.+naver)|qqbrowserlite|qq|duckduckgo)\/([-\w\.]+)/i,/(heytap|ovi)browser\/([\d\.]+)/i,/(weibo)__([\d\.]+)/i],[c,l],[/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i],[l,[c,"UCBrowser"]],[/microm.+\bqbcore\/([\w\.]+)/i,/\bqbcore\/([\w\.]+).+microm/i],[l,[c,"WeChat(Win) Desktop"]],[/micromessenger\/([\w\.]+)/i],[l,[c,"WeChat"]],[/konqueror\/([\w\.]+)/i],[l,[c,"Konqueror"]],[/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i],[l,[c,"IE"]],[/ya(?:search)?browser\/([\w\.]+)/i],[l,[c,"Yandex"]],[/(avast|avg)\/([\w\.]+)/i],[[c,/(.+)/,"$1 Secure"+te],l],[/\bfocus\/([\w\.]+)/i],[l,[c,ne+" Focus"]],[/\bopt\/([\w\.]+)/i],[l,[c,re+" Touch"]],[/coc_coc\w+\/([\w\.]+)/i],[l,[c,"Coc Coc"]],[/dolfin\/([\w\.]+)/i],[l,[c,"Dolphin"]],[/coast\/([\w\.]+)/i],[l,[c,re+" Coast"]],[/miuibrowser\/([\w\.]+)/i],[l,[c,"MIUI"+te]],[/fxios\/([\w\.-]+)/i],[l,[c,ee+"Firefox"]],[/\bqihu|(qi?ho?o?|360)browser/i],[[c,"360"+te]],[/(oculus|samsung|sailfish|huawei)browser\/([\w\.]+)/i],[[c,/(.+)/,"$1"+te],l],[/(comodo_dragon)\/([\w\.]+)/i],[[c,/_/g," "],l],[/(electron)\/([\w\.]+) safari/i,/(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i,/m?(qqbrowser|baiduboxapp|2345Explorer)[\/ ]?([\w\.]+)/i],[c,l],[/(metasr)[\/ ]?([\w\.]+)/i,/(lbbrowser)/i,/\[(linkedin)app\]/i],[c],[/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i],[[c,oe],l],[/(kakao(?:talk|story))[\/ ]([\w\.]+)/i,/(naver)\(.*?(\d+\.[\w\.]+).*\)/i,/safari (line)\/([\w\.]+)/i,/\b(line)\/([\w\.]+)\/iab/i,/(chromium|instagram)[\/ ]([-\w\.]+)/i],[c,l],[/\bgsa\/([\w\.]+) .*safari\//i],[l,[c,"GSA"]],[/musical_ly(?:.+app_?version\/|_)([\w\.]+)/i],[l,[c,"TikTok"]],[/headlesschrome(?:\/([\w\.]+)| )/i],[l,[c,ie+" Headless"]],[/ wv\).+(chrome)\/([\w\.]+)/i],[[c,ie+" WebView"],l],[/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i],[l,[c,"Android"+te]],[/chrome\/([\w\.]+) mobile/i],[l,[c,ee+"Chrome"]],[/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i],[c,l],[/version\/([\w\.\,]+) .*mobile(?:\/\w+ | ?)safari/i],[l,[c,ee+"Safari"]],[/iphone .*mobile(?:\/\w+ | ?)safari/i],[[c,ee+"Safari"]],[/version\/([\w\.\,]+) .*(safari)/i],[l,c],[/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i],[c,[l,ye,{"1.0":"/8",1.2:"/1",1.3:"/3","2.0":"/412","2.0.2":"/416","2.0.3":"/417","2.0.4":"/419","?":"/"}]],[/(webkit|khtml)\/([\w\.]+)/i],[c,l],[/(?:mobile|tablet);.*(firefox)\/([\w\.-]+)/i],[[c,ee+"Firefox"],l],[/(navigator|netscape\d?)\/([-\w\.]+)/i],[[c,"Netscape"],l],[/mobile vr; rv:([\w\.]+)\).+firefox/i],[l,[c,ne+" Reality"]],[/ekiohf.+(flow)\/([\w\.]+)/i,/(swiftfox)/i,/(icedragon|iceweasel|camino|chimera|fennec|maemo browser|minimo|conkeror|klar)[\/ ]?([\w\.\+]+)/i,/(seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\/([-\w\.]+)$/i,/(firefox)\/([\w\.]+)/i,/(mozilla)\/([\w\.]+) .+rv\:.+gecko\/\d+/i,/(polaris|lynx|dillo|icab|doris|amaya|w3m|netsurf|sleipnir|obigo|mosaic|(?:go|ice|up)[\. ]?browser)[-\/ ]?v?([\w\.]+)/i,/(links) \(([\w\.]+)/i,/panasonic;(viera)/i],[c,l],[/(cobalt)\/([\w\.]+)/i],[c,[l,/[^\d\.]+./,t]]],cpu:[[/\b(?:(amd|x|x86[-_]?|wow|win)64)\b/i],[[p,"amd64"]],[/(ia32(?=;))/i,/((?:i[346]|x)86)[;\)]/i],[[p,"ia32"]],[/\b(aarch64|arm(v?8e?l?|_?64))\b/i],[[p,"arm64"]],[/\b(arm(?:v[67])?ht?n?[fl]p?)\b/i],[[p,"armhf"]],[/windows (ce|mobile); ppc;/i],[[p,"arm"]],[/((?:ppc|powerpc)(?:64)?)(?: mac|;|\))/i],[[p,/ower/,t,he]],[/(sun4\w)[;\)]/i],[[p,"sparc"]],[/((?:avr32|ia64(?=;))|68k(?=\))|\barm(?=v(?:[1-7]|[5-7]1)l?|;|eabi)|(?=atmel )avr|(?:irix|mips|sparc)(?:64)?\b|pa-risc)/i],[[p,he]]],device:[[/\b(sch-i[89]0\d|shw-m380s|sm-[ptx]\w{2,4}|gt-[pn]\d{2,4}|sgh-t8[56]9|nexus 10)/i],[s,[d,W],[u,m]],[/\b((?:s[cgp]h|gt|sm)-\w+|sc[g-]?[\d]+a?|galaxy nexus)/i,/samsung[- ]([-\w]+)/i,/sec-(sgh\w+)/i],[s,[d,W],[u,h]],[/(?:\/|\()(ip(?:hone|od)[\w, ]*)(?:\/|;)/i],[s,[d,q],[u,h]],[/\((ipad);[-\w\),; ]+apple/i,/applecoremedia\/[\w\.]+ \((ipad)/i,/\b(ipad)\d\d?,\d\d?[;\]].+ios/i],[s,[d,q],[u,m]],[/(macintosh);/i],[s,[d,q]],[/\b(sh-?[altvz]?\d\d[a-ekm]?)/i],[s,[d,J],[u,h]],[/\b((?:ag[rs][23]?|bah2?|sht?|btv)-a?[lw]\d{2})\b(?!.+d\/s)/i],[s,[d,G],[u,m]],[/(?:huawei|honor)([-\w ]+)[;\)]/i,/\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i],[s,[d,G],[u,h]],[/\b(poco[\w ]+)(?: bui|\))/i,/\b; (\w+) build\/hm\1/i,/\b(hm[-_ ]?note?[_ ]?(?:\d\w)?) bui/i,/\b(redmi[\-_ ]?(?:note|k)?[\w_ ]+)(?: bui|\))/i,/\b(mi[-_ ]?(?:a\d|one|one[_ ]plus|note lte|max|cc)?[_ ]?(?:\d?\w?)[_ ]?(?:plus|se|lite)?)(?: bui|\))/i],[[s,/_/g," "],[d,Z],[u,h]],[/\b(mi[-_ ]?(?:pad)(?:[\w_ ]+))(?: bui|\))/i],[[s,/_/g," "],[d,Z],[u,m]],[/; (\w+) bui.+ oppo/i,/\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i],[s,[d,"OPPO"],[u,h]],[/vivo (\w+)(?: bui|\))/i,/\b(v[12]\d{3}\w?[at])(?: bui|;)/i],[s,[d,"Vivo"],[u,h]],[/\b(rmx[12]\d{3})(?: bui|;|\))/i],[s,[d,"Realme"],[u,h]],[/\b(milestone|droid(?:[2-4x]| (?:bionic|x2|pro|razr))?:?( 4g)?)\b[\w ]+build\//i,/\bmot(?:orola)?[- ](\w*)/i,/((?:moto[\w\(\) ]+|xt\d{3,4}|nexus 6)(?= bui|\)))/i],[s,[d,z],[u,h]],[/\b(mz60\d|xoom[2 ]{0,2}) build\//i],[s,[d,z],[u,m]],[/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],[s,[d,Y],[u,m]],[/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i,/\blg[-e;\/ ]+((?!browser|netcast|android tv)\w+)/i,/\blg-?([\d\w]+) bui/i],[s,[d,Y],[u,h]],[/(ideatab[-\w ]+)/i,/lenovo ?(s[56]000[-\w]+|tab(?:[\w ]+)|yt[-\d\w]{6}|tb[-\d\w]{6})/i],[s,[d,"Lenovo"],[u,m]],[/(?:maemo|nokia).*(n900|lumia \d+)/i,/nokia[-_ ]?([-\w\.]*)/i],[[s,/_/g," "],[d,"Nokia"],[u,h]],[/(pixel c)\b/i],[s,[d,F],[u,m]],[/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i],[s,[d,F],[u,h]],[/droid.+ (a?\d[0-2]{2}so|[c-g]\d{4}|so[-gl]\w+|xq-a\w[4-7][12])(?= bui|\).+chrome\/(?![1-6]{0,1}\d\.))/i],[s,[d,$],[u,h]],[/sony tablet [ps]/i,/\b(?:sony)?sgp\w+(?: bui|\))/i],[[s,"Xperia Tablet"],[d,$],[u,m]],[/ (kb2005|in20[12]5|be20[12][59])\b/i,/(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i],[s,[d,"OnePlus"],[u,h]],[/(alexa)webm/i,/(kf[a-z]{2}wi|aeo[c-r]{2})( bui|\))/i,/(kf[a-z]+)( bui|\)).+silk\//i],[s,[d,M],[u,m]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i],[[s,/(.+)/g,"Fire Phone $1"],[d,M],[u,h]],[/(playbook);[-\w\),; ]+(rim)/i],[s,d,[u,m]],[/\b((?:bb[a-f]|st[hv])100-\d)/i,/\(bb10; (\w+)/i],[s,[d,B],[u,h]],[/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i],[s,[d,V],[u,m]],[/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i],[s,[d,V],[u,h]],[/(nexus 9)/i],[s,[d,"HTC"],[u,m]],[/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i,/(zte)[- ]([\w ]+?)(?: bui|\/|\))/i,/(alcatel|geeksphone|nexian|panasonic(?!(?:;|\.))|sony(?!-bra))[-_ ]?([-\w]*)/i],[d,[s,/_/g," "],[u,h]],[/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i],[s,[d,"Acer"],[u,m]],[/droid.+; (m[1-5] note) bui/i,/\bmz-([-\w]{2,})/i],[s,[d,"Meizu"],[u,h]],[/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus|dell|meizu|motorola|polytron)[-_ ]?([-\w]*)/i,/(hp) ([\w ]+\w)/i,/(asus)-?(\w+)/i,/(microsoft); (lumia[\w ]+)/i,/(lenovo)[-_ ]?([-\w]+)/i,/(jolla)/i,/(oppo) ?([\w ]+) bui/i],[d,s,[u,h]],[/(kobo)\s(ereader|touch)/i,/(archos) (gamepad2?)/i,/(hp).+(touchpad(?!.+tablet)|tablet)/i,/(kindle)\/([\w\.]+)/i],[d,s,[u,m]],[/(surface duo)/i],[s,[d,X],[u,m]],[/droid [\d\.]+; (fp\du?)(?: b|\))/i],[s,[d,"Fairphone"],[u,h]],[/(shield[\w ]+) b/i],[s,[d,"Nvidia"],[u,m]],[/(sprint) (\w+)/i],[d,s,[u,h]],[/(kin\.[onetw]{3})/i],[[s,/\./g," "],[d,X],[u,h]],[/droid.+; ([c6]+|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[s,[d,Q],[u,m]],[/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],[s,[d,Q],[u,h]],[/smart-tv.+(samsung)/i],[d,[u,v]],[/hbbtv.+maple;(\d+)/i],[[s,/^/,"SmartTV"],[d,W],[u,v]],[/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i],[[d,Y],[u,v]],[/(apple) ?tv/i],[d,[s,q+" TV"],[u,v]],[/crkey/i],[[s,ie+"cast"],[d,F],[u,v]],[/droid.+aft(\w)( bui|\))/i],[s,[d,M],[u,v]],[/\(dtv[\);].+(aquos)/i,/(aquos-tv[\w ]+)\)/i],[s,[d,J],[u,v]],[/(bravia[\w ]+)( bui|\))/i],[s,[d,$],[u,v]],[/(mitv-\w{5}) bui/i],[s,[d,Z],[u,v]],[/Hbbtv.*(technisat) (.*);/i],[d,s,[u,v]],[/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i,/hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i],[[d,we],[s,we],[u,v]],[/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i],[[u,v]],[/(ouya)/i,/(nintendo) (\w+)/i],[d,s,[u,f]],[/droid.+; (shield) bui/i],[s,[d,"Nvidia"],[u,f]],[/(playstation \w+)/i],[s,[d,$],[u,f]],[/\b(xbox(?: one)?(?!; xbox))[\); ]/i],[s,[d,X],[u,f]],[/((pebble))app/i],[d,s,[u,g]],[/(watch)(?: ?os[,\/]|\d,\d\/)[\d\.]+/i],[s,[d,q],[u,g]],[/droid.+; (glass) \d/i],[s,[d,F],[u,g]],[/droid.+; (wt63?0{2,3})\)/i],[s,[d,Q],[u,g]],[/(quest( 2| pro)?)/i],[s,[d,oe],[u,g]],[/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i],[d,[u,w]],[/(aeobc)\b/i],[s,[d,M],[u,w]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+? mobile safari/i],[s,[u,h]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i],[s,[u,m]],[/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i],[[u,m]],[/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i],[[u,h]],[/(android[-\w\. ]{0,9});.+buil/i],[s,[d,"Generic"]]],engine:[[/windows.+ edge\/([\w\.]+)/i],[l,[c,"EdgeHTML"]],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[l,[c,"Blink"]],[/(presto)\/([\w\.]+)/i,/(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna)\/([\w\.]+)/i,/ekioh(flow)\/([\w\.]+)/i,/(khtml|tasman|links)[\/ ]\(?([\w\.]+)/i,/(icab)[\/ ]([23]\.[\d\.]+)/i,/\b(libweb)/i],[c,l],[/rv\:([\w\.]{1,9})\b.+(gecko)/i],[l,c]],os:[[/microsoft (windows) (vista|xp)/i],[c,l],[/(windows) nt 6\.2; (arm)/i,/(windows (?:phone(?: os)?|mobile))[\/ ]?([\d\.\w ]*)/i,/(windows)[\/ ]?([ntce\d\. ]+\w)(?!.+xbox)/i],[c,[l,ye,_e]],[/(win(?=3|9|n)|win 9x )([nt\d\.]+)/i],[[c,ae],[l,ye,_e]],[/ip[honead]{2,4}\b(?:.*os ([\w]+) like mac|; opera)/i,/ios;fbsv\/([\d\.]+)/i,/cfnetwork\/.+darwin/i],[[l,/_/g,"."],[c,"iOS"]],[/(mac os x) ?([\w\. ]*)/i,/(macintosh|mac_powerpc\b)(?!.+haiku)/i],[[c,"macOS"],[l,/_/g,"."]],[/droid ([\w\.]+)\b.+(android[- ]x86|harmonyos)/i],[l,c],[/(android|webos|qnx|bada|rim tablet os|maemo|meego|sailfish)[-\/ ]?([\w\.]*)/i,/(blackberry)\w*\/([\w\.]*)/i,/(tizen|kaios)[\/ ]([\w\.]+)/i,/\((series40);/i],[c,l],[/\(bb(10);/i],[l,[c,B]],[/(?:symbian ?os|symbos|s60(?=;)|series60)[-\/ ]?([\w\.]*)/i],[l,[c,"Symbian"]],[/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i],[l,[c,ne+" OS"]],[/web0s;.+rt(tv)/i,/\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i],[l,[c,"webOS"]],[/watch(?: ?os[,\/]|\d,\d\/)([\d\.]+)/i],[l,[c,"watchOS"]],[/crkey\/([\d\.]+)/i],[l,[c,ie+"cast"]],[/(cros) [\w]+(?:\)| ([\w\.]+)\b)/i],[[c,"Chrome OS"],l],[/panasonic;(viera)/i,/(netrange)mmh/i,/(nettv)\/(\d+\.[\w\.]+)/i,/(nintendo|playstation) (\w+)/i,/(xbox); +xbox ([^\);]+)/i,/\b(joli|palm)\b ?(?:os)?\/?([\w\.]*)/i,/(mint)[\/\(\) ]?(\w*)/i,/(mageia|vectorlinux)[; ]/i,/([kxln]?ubuntu|debian|suse|opensuse|gentoo|arch(?= linux)|slackware|fedora|mandriva|centos|pclinuxos|red ?hat|zenwalk|linpus|raspbian|plan 9|minix|risc os|contiki|deepin|manjaro|elementary os|sabayon|linspire)(?: gnu\/linux)?(?: enterprise)?(?:[- ]linux)?(?:-gnu)?[-\/ ]?(?!chrom|package)([-\w\.]*)/i,/(hurd|linux) ?([\w\.]*)/i,/(gnu) ?([\w\.]*)/i,/\b([-frentopcghs]{0,5}bsd|dragonfly)[\/ ]?(?!amd|[ix346]{1,2}86)([\w\.]*)/i,/(haiku) (\w+)/i],[c,l],[/(sunos) ?([\w\.\d]*)/i],[[c,"Solaris"],l],[/((?:open)?solaris)[-\/ ]?([\w\.]*)/i,/(aix) ((\d)(?=\.|\)| )[\w\.])*/i,/\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux|serenityos)/i,/(unix) ?([\w\.]*)/i],[c,l]]},Te=(ue.call((e={init:{},isIgnore:{},isIgnoreRgx:{},toString:{}}).init,[[U,[c,l,a]],[D,[p]],[R,[u,s,d]],[H,[c,l]],[j,[c,l]]]),ue.call(e.isIgnore,[[U,[l,a]],[H,[l]],[j,[l]]]),ue.call(e.isIgnoreRgx,[[U,/ ?browser$/i],[j,/ ?os$/i]]),ue.call(e.toString,[[U,[c,l]],[D,[p]],[R,[d,s]],[H,[c,l]],[j,[c,l]]]),e),Ce=function(e,i,r,o){var a=Te.init[e],s=Te.isIgnore[e]||0,c=Te.isIgnoreRgx[e]||0,u=Te.toString[e]||0;function d(){ue.call(this,a)}return d.prototype.withClientHints=function(){return ce?ce.getHighEntropyValues(A).then((function(t){var n=new Ie(t,!1);return new ke(e,i,r,n).parseCH().get()})):new ke(e,i,r,o).parseCH().get()},e!=K&&(d.prototype.is=function(e){var t=!1;for(var i in this)if(this.hasOwnProperty(i)&&!le(s,i)&&he(c?ve(c,this[i]):this[i])==he(c?ve(c,e):e)){if(t=!0,e!=n)break}else if(e==n&&t){t=!t;break}return t},d.prototype.toString=function(){var e=t;for(var i in u)typeof this[u[i]]!==n&&(e+=(e?" ":t)+this[u[i]]);return e||n}),ce||(d.prototype.then=function(e){return e(this),this}),new d};function Ie(e,t){if(e=e||{},ue.call(this,A),t)ue.call(this,[[y,fe(e[I])],[_,fe(e[k])],[y,fe(e[I])],[h,/\?1/.test(e[O])],[s,ge(e[P])],[E,ge(e[N])],[T,ge(e[L])],[p,ge(e[S])],[C,ge(e[x])]]);else for(var i in e)this.hasOwnProperty(i)&&typeof e[i]!==n&&(this[i]=e[i]);return this}function ke(e,t,i,n){switch(ue.call(this,[["itemType",e],["ua",t],["uaCH",n],["rgxMap",i],["data",Ce(e,t,i,n)]]),this.parse(),this.itemType){case U:se,this.set(a,me(this.get(l)));break;case R:!this.get(u)&&ce&&ce[h]&&this.set(u,h),this.get(s);break;case j:!this.get(c)&&ce&&ce[E]&&"Unknown"!=ce[E]&&this.set(c,ce[E]);break;case K:var r=function(e){return new ke(e,t,i[e],n).get()};this.set("ua",t).set(U,r(U)).set(D,r(D)).set(R,r(R)).set(H,r(H)).set(j,r(j)).get()}return this}function Se(e,i,n){if(typeof e===r?(pe(e)?(typeof i===r&&(n=i),i=e):(n=e,i=void 0),e=void 0):typeof e!==o||pe(i)||(n=i,i=void 0),!(this instanceof Se))return new Se(e,i,n).getResult();var a=e||(n&&n[b]?n[b]:t),s=new Ie(n,!0),c=i?function(e,t){var i={};for(var n in e)i[n]=t[n]&&t[n].length%2==0?t[n].concat(e[n]):e[n];return i}(Ee,i):Ee,u=function(e){return function(){return new ke(e,a,e==K?c:c[e],s).get()}};return ue.call(this,[["getBrowser",u(U)],["getCPU",u(D)],["getDevice",u(R)],["getEngine",u(H)],["getOS",u(j)],["getResult",u(K)],["getUA",function(){return a}],["setUA",function(e){return a=typeof e===o&&e.length>350?we(e,350):e,this}]]).setUA(a),this}ke.prototype.get=function(e){return e?this.data.hasOwnProperty(e)?this.data[e]:void 0:this.data},ke.prototype.parse=function(){return this.itemType!=K&&be.call(this.data,this.ua,this.rgxMap),this},ke.prototype.parseCH=function(){var e=this.ua,t=this.uaCH,i=this.rgxMap;switch(this.itemType){case U:var n=t[_]||t[y];if(n)for(var r in n){var o=n[r].brand,d=n[r].version;/not.a.brand/i.test(o)&&!/chromi/i.test(this.get(c))||this.set(c,ve(F+" ",o)).set(l,d).set(a,me(d))}break;case D:var f=t[p];f&&(f&&"64"==t[C]&&(f+="64"),be.call(this.data,f+";",i));break;case R:t[h]&&this.set(u,h),t[s]&&this.set(s,t[s]);break;case j:var m=t[E];if(m){var v=t[T];m==ae&&(v=parseInt(me(v),10)>=13?"11":"10"),this.set(c,m).set(l,v)}break;case K:var g=function(n){return new ke(n,e,i[n],t).parseCH().get()};this.set("ua",e).set(U,g(U)).set(D,g(D)).set(R,g(R)).set(H,g(H)).set(j,g(j))}return this},ke.prototype.set=function(e,t){return this.data[e]=t,this},Se.VERSION="2.0.0-alpha.1",Se.BROWSER=de([c,l,a]),Se.CPU=de([p]),Se.DEVICE=de([s,d,u,f,h,v,m,g,w]),Se.ENGINE=Se.OS=de([c,l]);var xe,Oe,Pe,Ne,Le,Ae=-1,Ue=function(e){addEventListener("pageshow",(function(t){t.persisted&&(Ae=t.timeStamp,e(t))}),!0)},De=function(){return window.performance&&performance.getEntriesByType&&performance.getEntriesByType("navigation")[0]},Re=function(){var e=De();return e&&e.activationStart||0},He=function(e,t){var i=De(),n="navigate";return Ae>=0?n="back-forward-cache":i&&(document.prerendering||Re()>0?n="prerender":document.wasDiscarded?n="restore":i.type&&(n=i.type.replace(/_/g,"-"))),{name:e,value:void 0===t?-1:t,rating:"good",delta:0,entries:[],id:"v3-".concat(Date.now(),"-").concat(Math.floor(8999999999999*Math.random())+1e12),navigationType:n}},je=function(e,t,i){try{if(PerformanceObserver.supportedEntryTypes.includes(e)){var n=new PerformanceObserver((function(e){Promise.resolve().then((function(){t(e.getEntries())}))}));return n.observe(Object.assign({type:e,buffered:!0},i||{})),n}}catch(e){}},Ke=function(e,t,i,n){var r,o;return function(a){t.value>=0&&(a||n)&&((o=t.value-(r||0))||void 0===r)&&(r=t.value,t.delta=o,t.rating=function(e,t){return e>t[1]?"poor":e>t[0]?"needs-improvement":"good"}(t.value,i),e(t))}},Me=function(e){requestAnimationFrame((function(){return requestAnimationFrame((function(){return e()}))}))},qe=function(e){var t=function(t){"pagehide"!==t.type&&"hidden"!==document.visibilityState||e(t)};addEventListener("visibilitychange",t,!0),addEventListener("pagehide",t,!0)},Ve=function(e){var t=!1;return function(i){t||(e(i),t=!0)}},Be=-1,Fe=function(){return"hidden"!==document.visibilityState||document.prerendering?1/0:0},Ge=function(e){"hidden"===document.visibilityState&&Be>-1&&(Be="visibilitychange"===e.type?e.timeStamp:0,Xe())},Ye=function(){addEventListener("visibilitychange",Ge,!0),addEventListener("prerenderingchange",Ge,!0)},Xe=function(){removeEventListener("visibilitychange",Ge,!0),removeEventListener("prerenderingchange",Ge,!0)},ze=function(){return Be<0&&(Be=Fe(),Ye(),Ue((function(){setTimeout((function(){Be=Fe(),Ye()}),0)}))),{get firstHiddenTime(){return Be}}},We=function(e){document.prerendering?addEventListener("prerenderingchange",(function(){return e()}),!0):e()},Je=[1800,3e3],$e=function(e,t){t=t||{},We((function(){var i,n=ze(),r=He("FCP"),o=je("paint",(function(e){e.forEach((function(e){"first-contentful-paint"===e.name&&(o.disconnect(),e.startTime<n.firstHiddenTime&&(r.value=Math.max(e.startTime-Re(),0),r.entries.push(e),i(!0)))}))}));o&&(i=Ke(e,r,Je,t.reportAllChanges),Ue((function(n){r=He("FCP"),i=Ke(e,r,Je,t.reportAllChanges),Me((function(){r.value=performance.now()-n.timeStamp,i(!0)}))})))}))},Ze=[.1,.25],Qe={passive:!0,capture:!0},et=new Date,tt=function(e,t){xe||(xe=t,Oe=e,Pe=new Date,rt(removeEventListener),it())},it=function(){if(Oe>=0&&Oe<Pe-et){var e={entryType:"first-input",name:xe.type,target:xe.target,cancelable:xe.cancelable,startTime:xe.timeStamp,processingStart:xe.timeStamp+Oe};Ne.forEach((function(t){t(e)})),Ne=[]}},nt=function(e){if(e.cancelable){var t=(e.timeStamp>1e12?new Date:performance.now())-e.timeStamp;"pointerdown"==e.type?function(e,t){var i=function(){tt(e,t),r()},n=function(){r()},r=function(){removeEventListener("pointerup",i,Qe),removeEventListener("pointercancel",n,Qe)};addEventListener("pointerup",i,Qe),addEventListener("pointercancel",n,Qe)}(t,e):tt(t,e)}},rt=function(e){["mousedown","keydown","touchstart","pointerdown"].forEach((function(t){return e(t,nt,Qe)}))},ot=[100,300],at=0,st=1/0,ct=0,ut=function(e){e.forEach((function(e){e.interactionId&&(st=Math.min(st,e.interactionId),ct=Math.max(ct,e.interactionId),at=ct?(ct-st)/7+1:0)}))},dt=function(){return Le?at:performance.interactionCount||0},lt=function(){"interactionCount"in performance||Le||(Le=je("event",ut,{type:"event",buffered:!0,durationThreshold:0}))},pt=[200,500],ft=0,ht=function(){return dt()-ft},mt=[],vt={},gt=function(e){var t=mt[mt.length-1],i=vt[e.interactionId];if(i||mt.length<10||e.duration>t.latency){if(i)i.entries.push(e),i.latency=Math.max(i.latency,e.duration);else{var n={id:e.interactionId,latency:e.duration,entries:[e]};vt[n.id]=n,mt.push(n)}mt.sort((function(e,t){return t.latency-e.latency})),mt.splice(10).forEach((function(e){delete vt[e.id]}))}},wt=[2500,4e3],bt={};const yt={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};let _t;const Et=new Uint8Array(16);function Tt(){if(!_t&&(_t="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!_t))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return _t(Et)}const Ct=[];for(let e=0;e<256;++e)Ct.push((e+256).toString(16).slice(1));function It(e,t=0){return Ct[e[t+0]]+Ct[e[t+1]]+Ct[e[t+2]]+Ct[e[t+3]]+"-"+Ct[e[t+4]]+Ct[e[t+5]]+"-"+Ct[e[t+6]]+Ct[e[t+7]]+"-"+Ct[e[t+8]]+Ct[e[t+9]]+"-"+Ct[e[t+10]]+Ct[e[t+11]]+Ct[e[t+12]]+Ct[e[t+13]]+Ct[e[t+14]]+Ct[e[t+15]]}const kt=function(e,t,i){if(yt.randomUUID&&!t&&!e)return yt.randomUUID();const n=(e=e||{}).random||(e.rng||Tt)();if(n[6]=15&n[6]|64,n[8]=63&n[8]|128,t){i=i||0;for(let e=0;e<16;++e)t[i+e]=n[e];return t}return It(n)};function St(e,t){if(!e&&!t)return!0;var i=(new Date).getTime(),n="string"==typeof e?new Date(e):e,r="string"==typeof t?new Date(t):t;return e&&!t?i>=n:(!e&&t||i>=n)&&i<r}function xt(e){if(e instanceof Object){var t={};for(var i in e){var n=Ot(i),r=e[i];t[n]=r}return t}return e}function Ot(e){return e?e.slice(0,1).toLowerCase()+e.slice(1).replace(/([A-Z])/g,"_$1").toLowerCase():""}function Pt(){return kt()}function Nt(e){if(e.length>32){var t=e.split("-");return t.slice(0,4).join("")+"-"+t[t.length-1]}}function Lt(e){return["",null,void 0,"null","undefined",NaN,"NaN"].includes(e)}function At(e){return Math.ceil(Number(e)/1e3)}function Ut(e){var t=new RegExp("(^|&)"+e+"=([^&]*)(&|$)"),i=window.location.search.slice(1).match(t);return null!=i?decodeURIComponent(i[2]):""}function Dt(e){for(var t=document.cookie.split(";"),i=0;i<t.length;i++){var n=t[i].split("=");if(n[0].trim()===e)return decodeURIComponent(n[1])}return""}function Rt(e,t,i){void 0===i&&(i=288e5);var n=e+"="+encodeURIComponent(t);if(i>0){var r=new Date,o=i;r.setTime(r.getTime()+o),n+="; expires="+r.toUTCString()}n+="; path=/",document.cookie=n}function Ht(e){var t=localStorage.getItem(e);return t?JSON.parse(t):""}function jt(e,t){localStorage.setItem(e,JSON.stringify(t))}function Kt(e,t){var i={};for(var n in e)t(n,e[n])&&(i[n]=e[n]);return i}var Mt,qt={isInTime:St,humpToLine:Ot,getUUid:Pt,isInvalidVal:Lt,millisecondToSecond:At,getQueryString:Ut,getCookie:Dt,setCookie:Rt,getUrlParams:function(){var e=window.location.search.substring(1)||"",t={};if(e){var i=e.split("&");i.length&&i.forEach((function(e){var i=e.split("="),n=i[0],r=i[1];t[n]=r}))}return t},getLocalStorage:Ht,setLocalStorage:jt,getSessionStorage:function(e){var t=sessionStorage.getItem(e);return t?JSON.parse(t):""},setSessionStorage:function(e,t){sessionStorage.setItem(e,JSON.stringify(t))},filterObject:Kt},Vt=function(e,t){var i={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(i[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(n=Object.getOwnPropertySymbols(e);r<n.length;r++)t.indexOf(n[r])<0&&Object.prototype.propertyIsEnumerable.call(e,n[r])&&(i[n[r]]=e[n[r]])}return i},Bt=function(e,t,i){if(i||2===arguments.length)for(var n,r=0,o=t.length;r<o;r++)!n&&r in t||(n||(n=Array.prototype.slice.call(t,0,r)),n[r]=t[r]);return e.concat(n||Array.prototype.slice.call(t))},Ft=function(){function e(e){this.sentryConfig={sampleRate:.1,src:"",ignoreErrors:["The index is not in the allowed range","Can't find variable: al_onAdViewRendered","Can't find variable: al_onPoststitialDismiss",/jquery/i,"Script error","top.GLOBALS","originalCreateNotification","abort, always, complete, done, error","Object captured as promise rejection with keys: abort, always, complete, done, error","Non-Error promise rejection captured with keys: abort, always, complete, done, error","canvas.contentDocument","MyApp_RemoveAllHighlights","Can't find variable: ZiteReader","jigsaw is not defined","ComboSearch is not defined","atomicFindClose","setItem","请求失败","getItem","fb_xd_fragment","bmi_SafeAddOnload","EBCallBackMessageReceived","conduitPage"],denyUrls:["http://loading.retry.widdit.com/","https://www.google-analytics.com/","http://tt.epicplay.com",/browser\.sentry-cdn\.com/i,/analytics\.tiktok\.com/i,/jquery/i,/https\:\/\/www\.google-analytics\.com/,/graph\.facebook\.com/i,/connect\.facebook\.net/i,/connect\.facebook\.net\/en_US\/all\.js/i,/eatdifferent\.com\.woopra-ns\.com/i,/static\.woopra\.com\/js\/woopra\.js/i,/extensions\//i,/^chrome:\/\//i,/^chrome-extension:\/\//i,/127\.0\.0\.1:4001\/isrunning/i,/webappstoolbarba\.texthelp\.com\//i,/metrics\.itunes\.apple\.com\.edgesuite\.net\//i]},this.allowLevel=["error","fatal"],this.ignoreErrorsType=["UnhandledRejection","SecurityError"];var t=e.allowLevel,i=e.ignoreErrorsType,n=Vt(e,["allowLevel","ignoreErrorsType"]);this.allowLevel=t||this.allowLevel,this.ignoreErrorsType=i||this.ignoreErrorsType,this.initSentryConfig(n)}return e.prototype.initSentryConfig=function(e){var t=e.ignoreErrors,i=e.denyUrls;t&&(e.ignoreErrors=Bt(Bt([],t,!0),this.sentryConfig.ignoreErrors,!0)),i&&(this.sentryConfig.denyUrls=Bt(Bt([],i,!0),this.sentryConfig.denyUrls,!0)),this.sentryConfig=Object.assign(this.sentryConfig,e)},e.prototype.sentryBeforeSend=function(e,t){if(this.allowLevel.includes(e.level)){var i=e.exception.values[0].type;return"Timeout"===t.originalException||this.ignoreErrorsType.includes(i)?null:e}return null},e.prototype.initSentryHead=function(e){var t=this.sentryConfig,i=t.startTime,n=t.endTime;if(this.sentryConfig.src&&St(i,n)){var r=document.createElement("script");r.crossOrigin="anonymous",r.src=this.sentryConfig.src;var o=this.sentryConfig,a=(o.src,Vt(o,["src"]));a.beforeSend||(a.beforeSend=this.sentryBeforeSend.bind(this)),e.appendChild(r),r.addEventListener("load",(function(){window.Sentry&&window.Sentry.onLoad((function(){window.Sentry.init(a)}))}))}},e}(),Gt=function(){function e(e){this.CLIENT_TAG_KEY="",this.CACHE_KEY="_efe_ab_test_id",this.abtName="",this.CACHE_KEY_COOKIE_EXPIRE=5184e6,this.CLIENT_TAG_KEY=e.clientTagKey}return e.prototype.init=function(){var e=this;!window.abTestConfigs&&(window.abTestConfigs=[]),this.abTestConfigs=window.abTestConfigs.filter((function(t){var i=t.ruleList;try{return i.every((function(t){var i=t.key,n=(t.operate,t.values,t.category),r=window.location.href;return"webPage"===n?e.checkWebPage(t,r):"urlParams"===i?e.checkUrlParams(t):"cookieParams"===i?e.checkCookie(t):"windowParams"===i?e.checkWindowParams(t):"localParams"===i?e.checkLocalParams(t):"user"===n?e.checkUser(t):void 0}))}catch(e){throw new Error("abtest check rule error")}})),this.redirect(),this.setWebPage()},e.prototype.redirect=function(){var e=this,t=this.abTestConfigs.find((function(e){return"redirect"===e.variantsConfig.type})),i=t?t.variantsConfig:null,n=function(t){var i=t.redirectUrl,n=t.name;if(e.setAbTestName(n),window.location.origin+window.location.pathname!==i){var r=window.location.search,o="";o=r&&i.includes("?")?"".concat(i).concat(r?"&"+r.replace("?",""):""):"".concat(i).concat(r||""),window.location.href=o}};if(i&&i.list.length>1){var r=this.checkCacheUpdate(i);if(r)n(r);else{var o=this.randomVariant(i.list);this.abTestKey().set(o.id+"_"+i.version),n(o)}}},e.prototype.setWebPage=function(){var e=this.abTestConfigs.find((function(e){return"abTest"===e.variantsConfig.type})),t=e?e.variantsConfig:null,i=t?t.list:[],n=null==t?void 0:t.version;if(t&&i.length>1){var r=this.checkCacheUpdate(t)||this.randomVariant(i),o=r.jsCode,a=r.cssCode,s=r.id,c=r.name,u=document.getElementsByTagName("head")[0],d=document.createElement("style"),l=document.createElement("script");d.innerHTML=a,l.innerHTML=o,u.appendChild(d),u.appendChild(l),this.setAbTestName(c),this.abTestKey().set(s+"_"+n)}},e.prototype.abTestKey=function(){var e=this;return{get:function(){return Dt(e.CACHE_KEY)},set:function(t){Rt(e.CACHE_KEY,t,e.CACHE_KEY_COOKIE_EXPIRE)}}},e.prototype.setAbTestName=function(e){this.abtName=e},e.prototype.randomVariant=function(e){var t=[],i=0;e.forEach((function(e){var n=Number(e.weights);i+=n,t.push(n)}));var n=Math.random()*i;return e[t.findIndex((function(e){if((n-=e)<=0)return!0}))]},e.prototype.checkWebPage=function(e,t){var i=this,n=e.key,r=e.operate,o=e.values,a=(e.category,"url"===n?decodeURIComponent(t):new URL(t).host);return["in","!in"].includes(r)?this.checkIncludesOperate(a,o,r):o.every((function(e){return i.doOperate(a,decodeURIComponent(e),r)}))},e.prototype.checkCookie=function(e){var t=this,i=e.values,n=this.formParamsValues(i);return!n.length||n.every((function(e){var i=e.key,n=e.op,r=e.val,o=Dt(i);if(["in","!in"].includes(n)){var a=r.split(";");return t.checkIncludesOperate(o,a,n)}return t.doOperate(o,r,n)}))},e.prototype.checkWindowParams=function(e){var t=this;if(!window)return!1;var i=e.values;return!i||!i.length||this.formParamsValues(i).every((function(e){var i=e.key,n=e.op,r=e.val,o=window[i];if(["in","!in"].includes(n)){var a=r.split(";");return t.checkIncludesOperate(o,a,n)}return t.doOperate("".concat(o),r,n)}))},e.prototype.checkUrlParams=function(e){var t=this,i=(e.key,e.values),n=this.formParamsValues(i);return!n.length||n.every((function(e){var i=e.key,n=e.op,r=e.val,o=Ut(i);if(["in","!in"].includes(n)){var a=r.split(";");return t.checkIncludesOperate(o,a,n)}return t.doOperate(o,r,n)}))},e.prototype.checkUser=function(e){var t=e.values,i=e.key,n=e.operate;if("userType"===i&&t&&t.length){var r=t[0],o=Dt(this.CLIENT_TAG_KEY)||"new";return this.doOperate(o,r,n)}return!0},e.prototype.checkLocalParams=function(e){var t=this,i=e.values,n=this.formParamsValues(i);return!n.length||n.every((function(e){var i=e.key,n=e.op,r=e.val,o=localStorage.getItem(i);if(["in","!in"].includes(n)){var a=r.split(";");return t.checkIncludesOperate(o,a,n)}return t.doOperate(o,r,n)}))},e.prototype.checkCacheUpdate=function(e){var t=this.abTestKey().get(),i=e.version;if(t){var n=t.split("_"),r=n[0],o=n[1],a=e.list.find((function(e){return e.id===r}));return a&&Number(i)===Number(o)?a:null}return null},e.prototype.doOperate=function(e,t,i){var n={"=":function(){return e===t},"!=":function(){return e!==t},">":function(){return e>t},">=":function(){return e>=t},"<":function(){return e<t},"<=":function(){return e<=t},"!match":function(){return!e.includes(t)},match:function(){return e.includes(t)},reg:function(){return new RegExp(t).test(e)}};return!!n[i]&&n[i]()},e.prototype.checkIncludesOperate=function(e,t,i){var n=this;return"in"===i?t.some((function(t){return n.doOperate(e,decodeURIComponent(t),"=")})):"in"!==i?t.every((function(t){return n.doOperate(e,decodeURIComponent(t),"!=")})):void 0},e.prototype.formParamsValues=function(e){return e.map((function(e){var t=e.split(" ");return{key:t[0],op:t[1],val:t[2]}}))},e}(),Yt=function(){return Yt=Object.assign||function(e){for(var t,i=1,n=arguments.length;i<n;i++)for(var r in t=arguments[i])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},Yt.apply(this,arguments)},Xt=function(){function e(){this.gaTrackId="",this.gameCode="",this.activitycode="",this.tbName="web_user_action",this.userInfo={userid:"",phone:""},this.device="",this.version="3.1.3",this.clientTag="",this.heartBeatUrl="https://apm.efun.com/apm/heartbeat",this.abtName="origin",this.efePreFix="_efe_",this.webTitle="",this.CLIENT_ID_COOKIE_EXPIRE=5184e6,this.SESSION_ID_EXPIRE=18e5,this.SESSION_ID_KEY="",this.CLIENT_ID_KEY="",this.CLIENT_TAG_KEY="",this.PV_COUNT_KEY="",this.isInsertGtagJs=!0,this.gtmElementOptions={options:{},list:[]},this.vitalSet={},this.isHeartBeat=!0,this.isSendGA=!0,this.openAbTest=!1,this.startTime=(new Date).getTime(),this.otherFields={int_value:null,double_value:null,string_value:""}}return e.prototype.init=function(e){this.initConfig(e),this.initHtmlHead(),this.bindEvent();var t="efun_analytics_device_id";this.device=Ht(e.clientIdKey||t),(!this.device||this.device.length<32)&&(this.device=Pt(),jt(t,this.device)),this.initVitalsCallback(),this.sendPageViewEvent(),this.resetClientIdExpire()},e.prototype.initConfig=function(e){var t=e.gaId,i=e.gameCode,n=e.activityCode,r=e.abtName,o=e.sessionTimes,a=e.activityTimes,s=e.gtmElementOptions,c=e.isInsertGtagJs,u=e.sentryConfig,d=e.isSendGa,l=e.openAbTest,p=e.webTitle;if(!t||!i||!n)throw new Error("gaId and gameCode and activityCode is required");var f=i+"_"+n;this.SESSION_ID_KEY=this.efePreFix+"sid_"+f,this.CLIENT_ID_KEY=this.efePreFix+"cid_"+f,this.CLIENT_TAG_KEY=this.efePreFix+"tag_"+f,this.PV_COUNT_KEY=this.efePreFix+"pv_"+f,this.openAbTest=Lt(l)?this.openAbTest:l,this.webTitle=p;var h=new Gt({clientTagKey:this.CLIENT_TAG_KEY});this.openAbTest&&h.init(),this.gaTrackId=t,this.activitycode=n,this.gameCode=i,this.isSendGA=!!Lt(d)||d,this.isInsertGtagJs=!!Lt(c)||c,this.abtName=r||h.abtName||this.abtName,this.SESSION_ID_EXPIRE=Lt(o)?this.SESSION_ID_EXPIRE:o,this.CLIENT_ID_COOKIE_EXPIRE=a||this.CLIENT_ID_COOKIE_EXPIRE,this.gtmElementOptions=Object.assign(this.gtmElementOptions,s),this.clientTag=this.initClientTag(),Lt(u)||"object"!=typeof u||(this.sentryInstance=new Ft(u))},e.prototype.initHtmlHead=function(){var e=document.getElementsByTagName("head")[0];this.initGaHead(e),this.sentryInstance&&this.sentryInstance.initSentryHead(e)},e.prototype.initGaHead=function(e){if(this.isInsertGtagJs){var t=document.createElement("script"),i=document.createElement("script");i.async=!0,t.async=!0,t.src="https://www.googletagmanager.com/gtag/js?id="+this.gaTrackId,i.src="https://www.google-analytics.com/analytics.js",e.appendChild(t)}var n=document.createElement("script");n.innerHTML="\n        window.dataLayer = window.dataLayer || []\n        function gtag() {\n            dataLayer.push(arguments)\n        }\n        gtag('js', new Date())\n        gtag('config', '".concat(this.gaTrackId,"')\n    "),e.appendChild(n)},e.prototype.initClientTag=function(){var e=Dt(this.CLIENT_ID_KEY),t=Dt(this.CLIENT_TAG_KEY);return e&&"new"!==t?"old":!e||e&&"new"===t?"new":"old"},e.prototype.bindEvent=function(){var e=this;window.addEventListener("load",(function(){e.initGTMVisibleElement(e.gtmElementOptions),e.sendPerformanceEvent()}));var t=!0;document.addEventListener("visibilitychange",(function(){"hidden"===document.visibilityState&&t&&(e.sendPerformanceEvent(),t=!1)})),window.addEventListener("beforeunload",(function(t){var i={stop_time:e.getPerformanceTime("stop")},n=e.getHeartBeatData("页面跳出","页面跳出","",{event_type:"auto"},i);e.heartbeat([n])}))},e.prototype.initGTMVisibleElement=function(e){if(e&&e.list&&e.list.length){var t=e.list,i=Object.assign({root:null,rootMargin:"0px",threshold:[.5,.75,1]},e.options),n=this;n.observer=new IntersectionObserver((function(e){e.forEach((function(e){var t=e.isIntersecting,i=e.target;if(t){n.observer.unobserve(i);var r=i.trackerInfo,o=r.action,a=r.type,s=r.label,c=[n.getHeartBeatData(a,o,s,{event_type:"view"})];n.heartbeat(c)}}))}),i),t.forEach((function(e){var t=e.action,i=e.type,r=e.label,o=e.selector,a=document.querySelector(o);a&&(a.trackerInfo={action:t,type:i,label:r},n.observer.observe(a))}))}},e.prototype.initVitalsCallback=function(){!function(e,t){t=t||{},We((function(){var i,n=ze(),r=He("LCP"),o=function(e){var t=e[e.length-1];t&&t.startTime<n.firstHiddenTime&&(r.value=Math.max(t.startTime-Re(),0),r.entries=[t],i())},a=je("largest-contentful-paint",o);if(a){i=Ke(e,r,wt,t.reportAllChanges);var s=Ve((function(){bt[r.id]||(o(a.takeRecords()),a.disconnect(),bt[r.id]=!0,i(!0))}));["keydown","click"].forEach((function(e){addEventListener(e,(function(){return setTimeout(s,0)}),!0)})),qe(s),Ue((function(n){r=He("LCP"),i=Ke(e,r,wt,t.reportAllChanges),Me((function(){r.value=performance.now()-n.timeStamp,bt[r.id]=!0,i(!0)}))}))}}))}(t,{reportAllChanges:!0}),$e(t),function(e,t){t=t||{},$e(Ve((function(){var i,n=He("CLS",0),r=0,o=[],a=function(e){e.forEach((function(e){if(!e.hadRecentInput){var t=o[0],i=o[o.length-1];r&&e.startTime-i.startTime<1e3&&e.startTime-t.startTime<5e3?(r+=e.value,o.push(e)):(r=e.value,o=[e])}})),r>n.value&&(n.value=r,n.entries=o,i())},s=je("layout-shift",a);s&&(i=Ke(e,n,Ze,t.reportAllChanges),qe((function(){a(s.takeRecords()),i(!0)})),Ue((function(){r=0,n=He("CLS",0),i=Ke(e,n,Ze,t.reportAllChanges),Me((function(){return i()}))})),setTimeout(i,0))})))}(t),function(e,t){t=t||{},We((function(){var i,n=ze(),r=He("FID"),o=function(e){e.startTime<n.firstHiddenTime&&(r.value=e.processingStart-e.startTime,r.entries.push(e),i(!0))},a=function(e){e.forEach(o)},s=je("first-input",a);i=Ke(e,r,ot,t.reportAllChanges),s&&qe(Ve((function(){a(s.takeRecords()),s.disconnect()}))),s&&Ue((function(){var n;r=He("FID"),i=Ke(e,r,ot,t.reportAllChanges),Ne=[],Oe=-1,xe=null,rt(addEventListener),n=o,Ne.push(n),it()}))}))}(t),function(e,t){t=t||{},We((function(){var i;lt();var n,r=He("INP"),o=function(e){e.forEach((function(e){e.interactionId&&gt(e),"first-input"===e.entryType&&!mt.some((function(t){return t.entries.some((function(t){return e.duration===t.duration&&e.startTime===t.startTime}))}))&&gt(e)}));var t,i=(t=Math.min(mt.length-1,Math.floor(ht()/50)),mt[t]);i&&i.latency!==r.value&&(r.value=i.latency,r.entries=i.entries,n())},a=je("event",o,{durationThreshold:null!==(i=t.durationThreshold)&&void 0!==i?i:40});n=Ke(e,r,pt,t.reportAllChanges),a&&("interactionId"in PerformanceEventTiming.prototype&&a.observe({type:"first-input",buffered:!0}),qe((function(){o(a.takeRecords()),r.value<0&&ht()>0&&(r.value=0,r.entries=[]),n(!0)})),Ue((function(){mt=[],ft=dt(),r=He("INP"),n=Ke(e,r,pt,t.reportAllChanges)})))}))}(t);var e=this;function t(t){var i=t.name,n=t.id,r=t.delta;e.vitalSet[n]={name:i.toLowerCase(),delta:"CLS"!==i?Math.round(r):Math.round(100*r)/100},["FID"].includes(i)&&e.sendPerformanceEvent()}},e.prototype.resetClientIdExpire=function(e){var t=this.CLIENT_ID_KEY,i=Dt(t),n=i||this.device||Pt();i||Rt(this.CLIENT_TAG_KEY,"new",this.CLIENT_ID_COOKIE_EXPIRE),Rt(t,n,e||this.CLIENT_ID_COOKIE_EXPIRE)},e.prototype.resetSessionIdExpire=function(){var e="",t=this.isTwentyFour(),i=this.isAdvChange();if(t||i)e=Pt(),this.setPvCountInSession(0);else{var n=Dt(this.SESSION_ID_KEY);n||this.tagOldClient(),e=n||Pt()}return Rt(this.SESSION_ID_KEY,e,this.SESSION_ID_EXPIRE),e},e.prototype.tagOldClient=function(){var e=Dt(this.CLIENT_TAG_KEY);e&&"new"===e&&Rt(this.CLIENT_TAG_KEY,"old",this.CLIENT_ID_COOKIE_EXPIRE)},e.prototype.sendPageViewEvent=function(){var e=[this.getHeartBeatData("pageView","pageView","",{event_type:"auto"})],t=this.getPvCountInSession();this.setPvCountInSession(t+1),1===t&&e.push(this.getHeartBeatData("连续刷新页面","连续刷新页面","",{event_type:"action"})),this.heartbeat(e)},e.prototype.sendPerformanceEvent=function(){var e=Kt(this.getPerformanceTime("all"),(function(e,t){return"stop_time"!==e}));for(var t in this.vitalSet){var i=this.vitalSet[t],n=i.name,r=i.delta;e["".concat(n,"_").concat("cls"!==n?"time":"score")]=r}var o=this.getHeartBeatData("性能监控","性能监控","",{event_type:"auto"},e);this.heartbeat([o])},e.prototype.sendTrackEvent=function(e,t,i,n){void 0===t&&(t="点击");var r=[];this.isSendGA&&r.push(this.sendToGoogleAnalytics(e,t,i));var o=[this.getHeartBeatData(e,t,i,{event_type:"action"})];r.push(this.heartbeat(o).then((function(e){return Yt(Yt({},e),{sendData:o})}))),Promise.all(r).then((function(e){n&&n(e)})).catch((function(e){n&&n(e)}))},e.prototype.sendToGoogleAnalytics=function(e,t,i){return new Promise((function(n,r){var o=window.gtag;o&&o("event",t,{event_category:e,event_label:i||t,event_callback:function(e){n(e)}})}))},e.prototype.gaCallback=function(e){e&&"function"!=typeof e?location.href=e:e&&e()},e.prototype.getHeartBeatData=function(e,t,i,n,r){void 0===n&&(n={}),void 0===r&&(r={});var o=this.getBaseTags(t),a=Yt(Yt(Yt({},o),{action_category:e,label:i||t}),n),s=this.getBaseFields(),c=Yt(Yt({},s),r),u=xt(a),d=Kt(xt(c),(function(e,t){return!Lt(t)}));return d.url||(d.url=window.location.href),d.session_id||(d.session_id=this.resetSessionIdExpire()),{tb:this.tbName,logtime:At((new Date).getTime()),msgid:Nt(Pt()),tags:u,fields:d}},e.prototype.getPerformanceTime=function(e){var t=window.performance;if(!t)throw new Error("performance not supported");return t.getEntries?this.getTimesByNavigationTiming(e):t.timing?this.getTimesByTiming(e):void 0},e.prototype.getTimesByNavigationTiming=function(e){var t=performance.getEntries()[0],i=0,n={white:function(){i=t.responseEnd-t.requestStart},load:function(){i=t.loadEventStart-t.startTime},stop:function(){i=performance.now()},redirect:function(){i=t.redirectEnd-t.redirectStart},dns:function(){i=t.domainLookupEnd-t.domainLookupStart},tcp:function(){i=t.connectEnd-t.connectStart},request:function(){i=t.responseStart-t.requestStart},response:function(){i=t.responseEnd-t.responseStart},ttfb:function(){i=t.responseStart},fcp:function(){i=0},lcp:function(){i=0},fid:function(){i=0},inp:function(){i=0},cls:function(){i=0}};if("all"===e){var r={};for(var o in n){n[o](),r["cls"!==o?"".concat(o,"_time"):"cls_score"]=Math.round(i)}return r}return n[e](),Math.round(i)},e.prototype.getTimesByTiming=function(e){var t=performance.timing,i=0,n={white:function(){i=t.responseEnd-t.requestStart},load:function(){i=t.loadEventStart-t.navigationStart},stop:function(){i=performance.now()},redirect:function(){i=t.redirectEnd-t.redirectStart},dns:function(){i=t.domainLookupEnd-t.domainLookupStart},tcp:function(){i=t.connectEnd-t.connectStart},request:function(){i=t.responseStart-t.requestStart},response:function(){i=t.responseEnd-t.responseStart},ttfb:function(){i=t.responseStart-t.navigationStart},fcp:function(){i=0},lcp:function(){i=0},fid:function(){i=0},inp:function(){i=0},cls:function(){i=0}};if("all"===e){var r={};for(var o in n){r["cls"!==o?"".concat(o,"_time"):"cls_score"]=n[o]()}return r}return n[e](),Math.ceil(i)},e.prototype.getBaseTags=function(e){var t=document.querySelector("head title"),i=t?t.innerHTML:"",n=this.getAdvertInfo(),r=this.getUserAgentInfo();return Yt(Yt({page_id:this.gaTrackId,gamecode:this.gameCode,action:e||"点击",activitycode:this.activitycode,web_title:this.webTitle||i,event_type:"",abt_name:this.abtName||"",client_tag:this.getClientTag()},n),r)},e.prototype.getBaseFields=function(){var e=this.getUserInfo(),t=e.userid,i=e.phone,n={url:window.location.href,client_id:this.device,phone:this.userInfo.phone||i,session_id:this.resetSessionIdExpire(),userid:this.userInfo.userid||t};if(this.otherFields){var r=this.otherFields,o=r.int_value,a=r.double_value,s=r.string_value;Object.assign(n,{int_value:o,double_value:a,string_value:s})}return n},e.prototype.getUserInfo=function(){return{timestamp:Dt("timestamp")||Dt("loginTimestamp")||"",userid:Dt("userId")||Dt("efunUserid")||"",phone:Dt("phone")||""}},e.prototype.getAdvertInfo=function(){return{advertiser:Ut("utm_source")||"organic",asset_id:Ut("asset_id")||"",campaign_name:Ut("campaign_name")||"",adgroup_name:Ut("adgroup_name")||"",ad_name:Ut("ad_name")||"",custom:Ut("utm_campaign")||""}},e.prototype.getUserAgentInfo=function(){var e=new Se(window.navigator.userAgent).getResult(),t=e.os,i=e.device,n=e.browser,r=e.engine,o=t.name.split(" ").join("").toLocaleLowerCase(),a=/\b(ios|macos)\b/.test(o)?"ios":"android",s=i.model?i.model+"#"+i.vendor+"#"+i.type:"pc";return s.includes("undefined")&&(s=s.replace(/undefined/i,"(not set)")),{browser:n.name+"#"+n.version,device_model:s,browser_engine:r.name+"#"+r.version,os:t.name+"#"+t.version,plat:a}},e.prototype.getClientTag=function(){return this.clientTag},e.prototype.setActivityTimes=function(e){this.CLIENT_ID_COOKIE_EXPIRE=Lt(e)?e:this.CLIENT_ID_COOKIE_EXPIRE,this.resetClientIdExpire()},e.prototype.setUserPhone=function(e){"string"==typeof e?this.userInfo.phone=e.trim():"number"==typeof e&&(this.userInfo.phone=e.toString())},e.prototype.setUserInfo=function(e){var t=e.phone,i=e.userid;this.setUserPhone(t),this.userInfo.userid=i},e.prototype.setOtherFields=function(e){var t=e.int_value,i=e.double_value,n=e.string_value;this.otherFields.int_value=t,this.otherFields.double_value=i,this.otherFields.string_value=n},e.prototype.setPvCountInSession=function(e){Rt(this.PV_COUNT_KEY,e,this.SESSION_ID_EXPIRE)},e.prototype.getPvCountInSession=function(){return Number(Dt(this.PV_COUNT_KEY)||0)},e.prototype.isTwentyFour=function(){var e=new Date,t="".concat(e.getMonth()+1,"-").concat(e.getDate()),i=Ht("".concat(this.efePreFix,"prev_daily"));return!(!Lt(i)&&i==t)&&(jt("".concat(this.efePreFix,"prev_daily"),t),!0)},e.prototype.isAdvChange=function(){var e=!1,t={utm_source:Ut("utm_source"),utm_medium:Ut("utm_medium"),utm_campaign:Ut("utm_campaign"),utm_term:Ut("utm_term"),utm_content:Ut("utm_content")},i={utm_source:Ht("".concat(this.gameCode,"_").concat(this.activitycode,"_utm_source"))||"",utm_medium:Ht("".concat(this.gameCode,"_").concat(this.activitycode,"_utm_medium"))||"",utm_campaign:Ht("".concat(this.gameCode,"_").concat(this.activitycode,"_utm_campaign"))||"",utm_term:Ht("".concat(this.gameCode,"_").concat(this.activitycode,"_utm_term"))||"",utm_content:Ht("".concat(this.gameCode,"_").concat(this.activitycode,"_utm_content"))||""};for(var n in t)t[n]!==i[n]&&(e=!0,jt("".concat(this.gameCode,"_").concat(this.activitycode,"_").concat(n),t[n]));return e},e.prototype.heartbeat=function(e){var t=this;if(!this.isHeartBeat||!e.length)return Promise.resolve("bind send");if(!this.gameCode||!this.activitycode)throw new Error("gaId and gameCode and activityCode is required");return new Promise((function(i,n){e instanceof Array&&function(e){var t,i=e.url,n=(e.method||"get").toLocaleLowerCase(),r=0!=e.async,o=e.data,a=e.heads;return window.XMLHttpRequest?t=new XMLHttpRequest:window.ActiveObject&&(t=new ActiveXobject("Microsoft.XMLHTTP")),e.timeout&&e.timeout>0&&(t.timeout=e.timeout),new Promise((function(e,s){t.ontimeout=function(){return s&&s("请求超时")},t.onreadystatechange=function(){if(4==t.readyState)if((n=t.status)>=200&&n<300||304==n){var i=JSON.parse(t.responseText);i.error||e&&e(i)}else s&&s("请求失败");var n},t.onerror=function(e){return s&&s(e)};var c=[];if("get"===n){var u=void 0;if(o instanceof Object){for(var d in o)c.push(d+"="+o[d]);u=c.join("&")}var l=i.indexOf("?");-1===l?i+="?":l!==i.length-1&&(i+="&"),i+=u}if(t.open(n,i,r),"get"===n)t.send(null);else{if(a instanceof Object)for(var d in a)t.setRequestHeader(d,a[d]);t.send(JSON.stringify(o))}}))}({url:t.heartBeatUrl,method:"post",heads:{"content-type":"application/json",game:t.gameCode,device:t.device},data:{version:t.version,datas:e}}).then((function(e){i(e)})).catch((function(e){n(e)}))}))},e}();Xt.prototype.Utils=qt,Mt=new Xt,window.tracker=Mt,window.sendTrackEvent=function(e,t,i,n){void 0===t&&(t="点击"),Mt.sendTrackEvent(e,t,i,n)}})();