This is still quite ugly and only meant to get things going for now, as a proof of concept. It is usable though, and quite fast. Signed-off-by: Yonah <contrib@gensokyo.uk>
19 lines
223 KiB
JavaScript
19 lines
223 KiB
JavaScript
/*! hg-web-sdk@2.10.11 Copyright (C) 2017 - 2025 Hypergryph Co.,Ltd. All Rights Reserved. Published at 2025-09-12 11:52:40 */
|
||
(self.webpackChunk_hg_hg_web_sdk=self.webpackChunk_hg_hg_web_sdk||[]).push([[129],{9412:function(t,e,n){!function(t){"use strict";function e(t,e,n,r){if("a"===n&&!r)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof e?t!==e||!r:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?r:"a"===n?r.call(t):r?r.value:e.get(t)}function r(t,e,n,r,i){if("m"===r)throw new TypeError("Private method is not writable");if("a"===r&&!i)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof e?t!==e||!i:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===r?i.call(t,n):i?i.value=n:e.set(t,n),n}function i(t){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i(t)}var o="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==n.g?n.g:"undefined"!=typeof self?self:{},a={};!function(t,e){!function(n,r){var o="1.0.34",a="",s="?",u="function",c="undefined",l="object",d="string",h="major",f="model",p="name",v="type",g="vendor",m="version",b="architecture",_="console",w="mobile",y="tablet",k="smarttv",S="wearable",E="embedded",x=350,A="Amazon",T="Apple",O="ASUS",C="BlackBerry",I="Browser",G="Chrome",P="Firefox",R="Google",j="Huawei",L="LG",N="Microsoft",z="Motorola",D="Opera",U="Samsung",J="Sharp",B="Sony",q="Xiaomi",H="Zebra",M="Facebook",Z="Chromium OS",F="Mac OS",K=function(t,e){var n={};for(var r in t)e[r]&&e[r].length%2==0?n[r]=e[r].concat(t[r]):n[r]=t[r];return n},V=function(t){for(var e={},n=0;n<t.length;n++)e[t[n].toUpperCase()]=t[n];return e},W=function(t,e){return i(t)===d&&-1!==X(e).indexOf(X(t))},X=function(t){return t.toLowerCase()},Q=function(t){return i(t)===d?t.replace(/[^\d\.]/g,a).split(".")[0]:r},$=function(t,e){if(i(t)===d)return t=t.replace(/^\s\s*/,a),i(e)===c?t:t.substring(0,x)},Y=function(t,e){for(var n,o,a,s,c,d,h=0;h<e.length&&!c;){var f=e[h],p=e[h+1];for(n=o=0;n<f.length&&!c&&f[n];)if(c=f[n++].exec(t))for(a=0;a<p.length;a++)d=c[++o],i(s=p[a])===l&&s.length>0?2===s.length?i(s[1])==u?this[s[0]]=s[1].call(this,d):this[s[0]]=s[1]:3===s.length?i(s[1])!==u||s[1].exec&&s[1].test?this[s[0]]=d?d.replace(s[1],s[2]):r:this[s[0]]=d?s[1].call(this,d,s[2]):r:4===s.length&&(this[s[0]]=d?s[3].call(this,d.replace(s[1],s[2])):r):this[s]=d||r;h+=2}},tt=function(t,e){for(var n in e)if(i(e[n])===l&&e[n].length>0){for(var o=0;o<e[n].length;o++)if(W(e[n][o],t))return n===s?r:n}else if(W(e[n],t))return n===s?r:n;return t},et={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"},nt={browser:[[/\b(?:crmo|crios)\/([\w\.]+)/i],[m,[p,"Chrome"]],[/edg(?:e|ios|a)?\/([\w\.]+)/i],[m,[p,"Edge"]],[/(opera mini)\/([-\w\.]+)/i,/(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i,/(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i],[p,m],[/opios[\/ ]+([\w\.]+)/i],[m,[p,D+" Mini"]],[/\bopr\/([\w\.]+)/i],[m,[p,D]],[/(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,/(weibo)__([\d\.]+)/i],[p,m],[/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i],[m,[p,"UC"+I]],[/microm.+\bqbcore\/([\w\.]+)/i,/\bqbcore\/([\w\.]+).+microm/i],[m,[p,"WeChat(Win) Desktop"]],[/micromessenger\/([\w\.]+)/i],[m,[p,"WeChat"]],[/konqueror\/([\w\.]+)/i],[m,[p,"Konqueror"]],[/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i],[m,[p,"IE"]],[/yabrowser\/([\w\.]+)/i],[m,[p,"Yandex"]],[/(avast|avg)\/([\w\.]+)/i],[[p,/(.+)/,"$1 Secure "+I],m],[/\bfocus\/([\w\.]+)/i],[m,[p,P+" Focus"]],[/\bopt\/([\w\.]+)/i],[m,[p,D+" Touch"]],[/coc_coc\w+\/([\w\.]+)/i],[m,[p,"Coc Coc"]],[/dolfin\/([\w\.]+)/i],[m,[p,"Dolphin"]],[/coast\/([\w\.]+)/i],[m,[p,D+" Coast"]],[/miuibrowser\/([\w\.]+)/i],[m,[p,"MIUI "+I]],[/fxios\/([-\w\.]+)/i],[m,[p,P]],[/\bqihu|(qi?ho?o?|360)browser/i],[[p,"360 "+I]],[/(oculus|samsung|sailfish|huawei)browser\/([\w\.]+)/i],[[p,/(.+)/,"$1 "+I],m],[/(comodo_dragon)\/([\w\.]+)/i],[[p,/_/g," "],m],[/(electron)\/([\w\.]+) safari/i,/(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i,/m?(qqbrowser|baiduboxapp|2345Explorer)[\/ ]?([\w\.]+)/i],[p,m],[/(metasr)[\/ ]?([\w\.]+)/i,/(lbbrowser)/i,/\[(linkedin)app\]/i],[p],[/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i],[[p,M],m],[/(kakao(?:talk|story))[\/ ]([\w\.]+)/i,/(naver)\(.*?(\d+\.[\w\.]+).*\)/i,/safari (line)\/([\w\.]+)/i,/\b(line)\/([\w\.]+)\/iab/i,/(chromium|instagram)[\/ ]([-\w\.]+)/i],[p,m],[/\bgsa\/([\w\.]+) .*safari\//i],[m,[p,"GSA"]],[/headlesschrome(?:\/([\w\.]+)| )/i],[m,[p,G+" Headless"]],[/ wv\).+(chrome)\/([\w\.]+)/i],[[p,G+" WebView"],m],[/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i],[m,[p,"Android "+I]],[/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i],[p,m],[/version\/([\w\.\,]+) .*mobile\/\w+ (safari)/i],[m,[p,"Mobile Safari"]],[/version\/([\w(\.|\,)]+) .*(mobile ?safari|safari)/i],[m,p],[/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i],[p,[m,tt,{"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],[p,m],[/(navigator|netscape\d?)\/([-\w\.]+)/i],[[p,"Netscape"],m],[/mobile vr; rv:([\w\.]+)\).+firefox/i],[m,[p,P+" 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],[p,m],[/(cobalt)\/([\w\.]+)/i],[p,[m,/master.|lts./,""]]],cpu:[[/(?:(amd|x(?:(?:86|64)[-_])?|wow|win)64)[;\)]/i],[[b,"amd64"]],[/(ia32(?=;))/i],[[b,X]],[/((?:i[346]|x)86)[;\)]/i],[[b,"ia32"]],[/\b(aarch64|arm(v?8e?l?|_?64))\b/i],[[b,"arm64"]],[/\b(arm(?:v[67])?ht?n?[fl]p?)\b/i],[[b,"armhf"]],[/windows (ce|mobile); ppc;/i],[[b,"arm"]],[/((?:ppc|powerpc)(?:64)?)(?: mac|;|\))/i],[[b,/ower/,a,X]],[/(sun4\w)[;\)]/i],[[b,"sparc"]],[/((?:avr32|ia64(?=;))|68k(?=\))|\barm(?=v(?:[1-7]|[5-7]1)l?|;|eabi)|(?=atmel )avr|(?:irix|mips|sparc)(?:64)?\b|pa-risc)/i],[[b,X]]],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],[f,[g,U],[v,y]],[/\b((?:s[cgp]h|gt|sm)-\w+|sc[g-]?[\d]+a?|galaxy nexus)/i,/samsung[- ]([-\w]+)/i,/sec-(sgh\w+)/i],[f,[g,U],[v,w]],[/\((ip(?:hone|od)[\w ]*);/i],[f,[g,T],[v,w]],[/\((ipad);[-\w\),; ]+apple/i,/applecoremedia\/[\w\.]+ \((ipad)/i,/\b(ipad)\d\d?,\d\d?[;\]].+ios/i],[f,[g,T],[v,y]],[/(macintosh);/i],[f,[g,T]],[/\b(sh-?[altvz]?\d\d[a-ekm]?)/i],[f,[g,J],[v,w]],[/\b((?:ag[rs][23]?|bah2?|sht?|btv)-a?[lw]\d{2})\b(?!.+d\/s)/i],[f,[g,j],[v,y]],[/(?:huawei|honor)([-\w ]+)[;\)]/i,/\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i],[f,[g,j],[v,w]],[/\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],[[f,/_/g," "],[g,q],[v,w]],[/\b(mi[-_ ]?(?:pad)(?:[\w_ ]+))(?: bui|\))/i],[[f,/_/g," "],[g,q],[v,y]],[/; (\w+) bui.+ oppo/i,/\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i],[f,[g,"OPPO"],[v,w]],[/vivo (\w+)(?: bui|\))/i,/\b(v[12]\d{3}\w?[at])(?: bui|;)/i],[f,[g,"Vivo"],[v,w]],[/\b(rmx[12]\d{3})(?: bui|;|\))/i],[f,[g,"Realme"],[v,w]],[/\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],[f,[g,z],[v,w]],[/\b(mz60\d|xoom[2 ]{0,2}) build\//i],[f,[g,z],[v,y]],[/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],[f,[g,L],[v,y]],[/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i,/\blg[-e;\/ ]+((?!browser|netcast|android tv)\w+)/i,/\blg-?([\d\w]+) bui/i],[f,[g,L],[v,w]],[/(ideatab[-\w ]+)/i,/lenovo ?(s[56]000[-\w]+|tab(?:[\w ]+)|yt[-\d\w]{6}|tb[-\d\w]{6})/i],[f,[g,"Lenovo"],[v,y]],[/(?:maemo|nokia).*(n900|lumia \d+)/i,/nokia[-_ ]?([-\w\.]*)/i],[[f,/_/g," "],[g,"Nokia"],[v,w]],[/(pixel c)\b/i],[f,[g,R],[v,y]],[/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i],[f,[g,R],[v,w]],[/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],[f,[g,B],[v,w]],[/sony tablet [ps]/i,/\b(?:sony)?sgp\w+(?: bui|\))/i],[[f,"Xperia Tablet"],[g,B],[v,y]],[/ (kb2005|in20[12]5|be20[12][59])\b/i,/(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i],[f,[g,"OnePlus"],[v,w]],[/(alexa)webm/i,/(kf[a-z]{2}wi)( bui|\))/i,/(kf[a-z]+)( bui|\)).+silk\//i],[f,[g,A],[v,y]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i],[[f,/(.+)/g,"Fire Phone $1"],[g,A],[v,w]],[/(playbook);[-\w\),; ]+(rim)/i],[f,g,[v,y]],[/\b((?:bb[a-f]|st[hv])100-\d)/i,/\(bb10; (\w+)/i],[f,[g,C],[v,w]],[/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i],[f,[g,O],[v,y]],[/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i],[f,[g,O],[v,w]],[/(nexus 9)/i],[f,[g,"HTC"],[v,y]],[/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i,/(zte)[- ]([\w ]+?)(?: bui|\/|\))/i,/(alcatel|geeksphone|nexian|panasonic(?!(?:;|\.))|sony(?!-bra))[-_ ]?([-\w]*)/i],[g,[f,/_/g," "],[v,w]],[/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i],[f,[g,"Acer"],[v,y]],[/droid.+; (m[1-5] note) bui/i,/\bmz-([-\w]{2,})/i],[f,[g,"Meizu"],[v,w]],[/(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],[g,f,[v,w]],[/(kobo)\s(ereader|touch)/i,/(archos) (gamepad2?)/i,/(hp).+(touchpad(?!.+tablet)|tablet)/i,/(kindle)\/([\w\.]+)/i,/(nook)[\w ]+build\/(\w+)/i,/(dell) (strea[kpr\d ]*[\dko])/i,/(le[- ]+pan)[- ]+(\w{1,9}) bui/i,/(trinity)[- ]*(t\d{3}) bui/i,/(gigaset)[- ]+(q\w{1,9}) bui/i,/(vodafone) ([\w ]+)(?:\)| bui)/i],[g,f,[v,y]],[/(surface duo)/i],[f,[g,N],[v,y]],[/droid [\d\.]+; (fp\du?)(?: b|\))/i],[f,[g,"Fairphone"],[v,w]],[/(u304aa)/i],[f,[g,"AT&T"],[v,w]],[/\bsie-(\w*)/i],[f,[g,"Siemens"],[v,w]],[/\b(rct\w+) b/i],[f,[g,"RCA"],[v,y]],[/\b(venue[\d ]{2,7}) b/i],[f,[g,"Dell"],[v,y]],[/\b(q(?:mv|ta)\w+) b/i],[f,[g,"Verizon"],[v,y]],[/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i],[f,[g,"Barnes & Noble"],[v,y]],[/\b(tm\d{3}\w+) b/i],[f,[g,"NuVision"],[v,y]],[/\b(k88) b/i],[f,[g,"ZTE"],[v,y]],[/\b(nx\d{3}j) b/i],[f,[g,"ZTE"],[v,w]],[/\b(gen\d{3}) b.+49h/i],[f,[g,"Swiss"],[v,w]],[/\b(zur\d{3}) b/i],[f,[g,"Swiss"],[v,y]],[/\b((zeki)?tb.*\b) b/i],[f,[g,"Zeki"],[v,y]],[/\b([yr]\d{2}) b/i,/\b(dragon[- ]+touch |dt)(\w{5}) b/i],[[g,"Dragon Touch"],f,[v,y]],[/\b(ns-?\w{0,9}) b/i],[f,[g,"Insignia"],[v,y]],[/\b((nxa|next)-?\w{0,9}) b/i],[f,[g,"NextBook"],[v,y]],[/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i],[[g,"Voice"],f,[v,w]],[/\b(lvtel\-)?(v1[12]) b/i],[[g,"LvTel"],f,[v,w]],[/\b(ph-1) /i],[f,[g,"Essential"],[v,w]],[/\b(v(100md|700na|7011|917g).*\b) b/i],[f,[g,"Envizen"],[v,y]],[/\b(trio[-\w\. ]+) b/i],[f,[g,"MachSpeed"],[v,y]],[/\btu_(1491) b/i],[f,[g,"Rotor"],[v,y]],[/(shield[\w ]+) b/i],[f,[g,"Nvidia"],[v,y]],[/(sprint) (\w+)/i],[g,f,[v,w]],[/(kin\.[onetw]{3})/i],[[f,/\./g," "],[g,N],[v,w]],[/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[f,[g,H],[v,y]],[/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],[f,[g,H],[v,w]],[/smart-tv.+(samsung)/i],[g,[v,k]],[/hbbtv.+maple;(\d+)/i],[[f,/^/,"SmartTV"],[g,U],[v,k]],[/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i],[[g,L],[v,k]],[/(apple) ?tv/i],[g,[f,T+" TV"],[v,k]],[/crkey/i],[[f,G+"cast"],[g,R],[v,k]],[/droid.+aft(\w)( bui|\))/i],[f,[g,A],[v,k]],[/\(dtv[\);].+(aquos)/i,/(aquos-tv[\w ]+)\)/i],[f,[g,J],[v,k]],[/(bravia[\w ]+)( bui|\))/i],[f,[g,B],[v,k]],[/(mitv-\w{5}) bui/i],[f,[g,q],[v,k]],[/Hbbtv.*(technisat) (.*);/i],[g,f,[v,k]],[/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i,/hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i],[[g,$],[f,$],[v,k]],[/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i],[[v,k]],[/(ouya)/i,/(nintendo) ([wids3utch]+)/i],[g,f,[v,_]],[/droid.+; (shield) bui/i],[f,[g,"Nvidia"],[v,_]],[/(playstation [345portablevi]+)/i],[f,[g,B],[v,_]],[/\b(xbox(?: one)?(?!; xbox))[\); ]/i],[f,[g,N],[v,_]],[/((pebble))app/i],[g,f,[v,S]],[/(watch)(?: ?os[,\/]|\d,\d\/)[\d\.]+/i],[f,[g,T],[v,S]],[/droid.+; (glass) \d/i],[f,[g,R],[v,S]],[/droid.+; (wt63?0{2,3})\)/i],[f,[g,H],[v,S]],[/(quest( 2| pro)?)/i],[f,[g,M],[v,S]],[/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i],[g,[v,E]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+? mobile safari/i],[f,[v,w]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i],[f,[v,y]],[/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i],[[v,y]],[/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i],[[v,w]],[/(android[-\w\. ]{0,9});.+buil/i],[f,[g,"Generic"]]],engine:[[/windows.+ edge\/([\w\.]+)/i],[m,[p,"EdgeHTML"]],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[m,[p,"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],[p,m],[/rv\:([\w\.]{1,9})\b.+(gecko)/i],[m,p]],os:[[/microsoft (windows) (vista|xp)/i],[p,m],[/(windows) nt 6\.2; (arm)/i,/(windows (?:phone(?: os)?|mobile))[\/ ]?([\d\.\w ]*)/i,/(windows)[\/ ]?([ntce\d\. ]+\w)(?!.+xbox)/i],[p,[m,tt,et]],[/(win(?=3|9|n)|win 9x )([nt\d\.]+)/i],[[p,"Windows"],[m,tt,et]],[/ip[honead]{2,4}\b(?:.*os ([\w]+) like mac|; opera)/i,/cfnetwork\/.+darwin/i],[[m,/_/g,"."],[p,"iOS"]],[/(mac os x) ?([\w\. ]*)/i,/(macintosh|mac_powerpc\b)(?!.+haiku)/i],[[p,F],[m,/_/g,"."]],[/droid ([\w\.]+)\b.+(android[- ]x86|harmonyos)/i],[m,p],[/(android|webos|qnx|bada|rim tablet os|maemo|meego|sailfish)[-\/ ]?([\w\.]*)/i,/(blackberry)\w*\/([\w\.]*)/i,/(tizen|kaios)[\/ ]([\w\.]+)/i,/\((series40);/i],[p,m],[/\(bb(10);/i],[m,[p,C]],[/(?:symbian ?os|symbos|s60(?=;)|series60)[-\/ ]?([\w\.]*)/i],[m,[p,"Symbian"]],[/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i],[m,[p,P+" OS"]],[/web0s;.+rt(tv)/i,/\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i],[m,[p,"webOS"]],[/watch(?: ?os[,\/]|\d,\d\/)([\d\.]+)/i],[m,[p,"watchOS"]],[/crkey\/([\d\.]+)/i],[m,[p,G+"cast"]],[/(cros) [\w]+(?:\)| ([\w\.]+)\b)/i],[[p,Z],m],[/panasonic;(viera)/i,/(netrange)mmh/i,/(nettv)\/(\d+\.[\w\.]+)/i,/(nintendo|playstation) ([wids345portablevuch]+)/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],[p,m],[/(sunos) ?([\w\.\d]*)/i],[[p,"Solaris"],m],[/((?:open)?solaris)[-\/ ]?([\w\.]*)/i,/(aix) ((\d)(?=\.|\)| )[\w\.])*/i,/\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux)/i,/(unix) ?([\w\.]*)/i],[p,m]]},rt=function t(e,o){if(i(e)===l&&(o=e,e=r),!(this instanceof t))return new t(e,o).getResult();var s=i(n)!==c&&n.navigator?n.navigator:r,_=e||(s&&s.userAgent?s.userAgent:a),k=s&&s.userAgentData?s.userAgentData:r,S=o?K(nt,o):nt;return this.getBrowser=function(){var t={};return t[p]=r,t[m]=r,Y.call(t,_,S.browser),t[h]=Q(t[m]),s&&s.brave&&i(s.brave.isBrave)==u&&(t[p]="Brave"),t},this.getCPU=function(){var t={};return t[b]=r,Y.call(t,_,S.cpu),t},this.getDevice=function(){var t={};return t[g]=r,t[f]=r,t[v]=r,Y.call(t,_,S.device),!t[v]&&k&&k.mobile&&(t[v]=w),"Macintosh"==t[f]&&s&&i(s.standalone)!==c&&s.maxTouchPoints&&s.maxTouchPoints>2&&(t[f]="iPad",t[v]=y),t},this.getEngine=function(){var t={};return t[p]=r,t[m]=r,Y.call(t,_,S.engine),t},this.getOS=function(){var t={};return t[p]=r,t[m]=r,Y.call(t,_,S.os),!t[p]&&k&&"Unknown"!=k.platform&&(t[p]=k.platform.replace(/chrome os/i,Z).replace(/macos/i,F)),t},this.getResult=function(){return{ua:this.getUA(),browser:this.getBrowser(),engine:this.getEngine(),os:this.getOS(),device:this.getDevice(),cpu:this.getCPU()}},this.getUA=function(){return _},this.setUA=function(t){return _=i(t)===d&&t.length>x?$(t,x):t,this},this.setUA(_),this};rt.VERSION=o,rt.BROWSER=V([p,m,h]),rt.CPU=V([b]),rt.DEVICE=V([f,g,v,_,w,k,y,S,E]),rt.ENGINE=rt.OS=V([p,m]),t.exports&&(e=t.exports=rt),e.UAParser=rt;var it=i(n)!==c&&(n.jQuery||n.Zepto);if(it&&!it.ua){var ot=new rt;it.ua=ot.getResult(),it.ua.get=function(){return ot.getUA()},it.ua.set=function(t){ot.setUA(t);var e=ot.getResult();for(var n in e)it.ua[n]=e[n]}}}("object"===("undefined"==typeof window?"undefined":i(window))?window:o)}({get exports(){return a},set exports(t){a=t}},a);var s=a;const u=function(t){return t=null!=t?t:navigator.userAgent,new s(t).getResult()},c=function(t){var e;t&&""!==t||(t=location.href);try{const n=new URL(t),{hash:r,host:i,hostname:o,href:a,origin:s,pathname:u,port:c,protocol:l,search:d,searchParams:h}=n;return{hashname:(null!==(e=n.hash.match(/#([^?]+)/))&&void 0!==e?e:[])[1],hash:r,host:i,hostname:o,href:a,origin:s,pathname:u,port:c,protocol:l,search:d,searchParams:h}}catch(e){return console.log("非法的URL路径",t),{}}},l=function(t,e=!1){const{search:n,hash:r}=c(t),i=e?r:n,o={};return null==i||i.replace(/[?&]+([^=&]+)=([^&#]*)/gi,(function(t,e,n){try{o[e]=decodeURIComponent(n)}catch(t){o[e]=n,console.warn(`URL参数解码失败: ${n}`)}return t})),o},d=function(t){const e=c(t),n=l(t),r=l(t,!0);return Object.assign({params:n,hashParams:r},e)};function h(){if(crypto&&crypto.randomUUID)return crypto.randomUUID().replace(/-/g,"");const t=crypto&&crypto.getRandomValues?()=>crypto.getRandomValues(new Uint8Array(1))[0]:()=>16*Math.random();return([1e7]+1e3+4e3+8e3+1e11).replace(/[018]/g,(e=>(e^(15&t())>>e/4).toString(16)))}function f(){var t;return null!==(t=localStorage.getItem("#eventLogDeviceId"))&&void 0!==t?t:""}function p(t){localStorage.setItem("#eventLogDeviceId",t)}const v="EventLog",g="JSLog",m="HGInsight",b="_instance";function _(t){return t&&t.Math==Math?t:void 0}function w(){return"object"==typeof globalThis&&_(globalThis)||"object"==typeof window&&_(window)||"object"==typeof self&&_(self)||"object"==typeof n.g&&_(n.g)||function(){return this}()||{}}function y(t,e){var n,r,i;const o=w();return null!==(n=o[m])&&void 0!==n||(o[m]={}),null!==(r=(i=o[m])[t])&&void 0!==r||(i[t]={}),o[m][t]}function k(t){return y(b)[t]}function S(t="web"){return"web"===t}class E{static keyName(t){return E.isString(t)&&!!t&&E.keyNameRegex.test(t)}static presetKeyName(t){if(!E.isString(t))return!1;const e=["#sdid_c","#sdk_type","#sdk_vn","#sdk_vc","#app_id","#ts_c","#seq","#ts_s","#name","#user_id","#character_id","#server_id"].includes(t);return!!t&&E.presetKeyNameRegex.test(t)&&!e}static keySize(t,e){return!e&&(e=128),E.isString(t)&&!!t&&t.length<=e}static params(t){if("object"!=typeof t)return!1;if(Array.isArray(t))return!1;for(const e in t)if(!E.keyName(e))return!1;return E.dataSize(t)}static presetParams(t){if("object"!=typeof t)return!1;if(Array.isArray(t))return!1;for(const e in t)if(!E.presetKeyName(e))return!1;return!0}static initOptions(t){const{appId:e,env:n,regionTag:r,enableRealTimeSend:i,routeChange:o,sdkType:a,enableAdTrack:s}=null!=t?t:{};if(!E.keySize(e))return console.error("初始化失败: appId 无效,必须是不超过128字符的字符串"),!1;if(!(void 0===n||E.isString(n)&&/^(dev|staging|prod)$/.test(n)))return console.error('初始化失败: env 必须是 "dev"、"staging" 或 "prod"'),!1;if(!E.isString(r)||!/^(cn|sg)$/.test(r))return console.error('初始化失败: regionTag 必须是 "cn" 或 "sg"'),!1;if(!E.isUndefined(i)&&!E.isBoolean(i))return console.error("初始化失败: enableRealTimeSend 必须是布尔值"),!1;if(S(a)){if(!(void 0===o||E.isString(o)&&["default","history","hash"].includes(o)))return console.error('初始化失败: routeChange 必须是 "default"、"history" 或 "hash"'),!1;if(!E.isUndefined(s)&&!E.isBoolean(s))return console.error("初始化失败: enableAdTrack 必须是布尔值"),!1}return!0}static isString(t){return"string"==typeof t}static isBoolean(t){return"boolean"==typeof t}static isUndefined(t){return void 0===t}static isNull(t){return null===t}static dataSize(t,e){e||(e=128);try{const n=JSON.stringify(t);return new Blob([n]).size<=1024*e}catch(t){return!1}}}E.keyNameRegex=/^(?!#)/,E.presetKeyNameRegex=/^#/;var x="undefined"!=typeof globalThis&&globalThis||"undefined"!=typeof self&&self||void 0!==x&&x,A={searchParams:"URLSearchParams"in x,iterable:"Symbol"in x&&"iterator"in Symbol,blob:"FileReader"in x&&"Blob"in x&&function(){try{return new Blob,!0}catch(t){return!1}}(),formData:"FormData"in x,arrayBuffer:"ArrayBuffer"in x};function T(t){return t&&DataView.prototype.isPrototypeOf(t)}if(A.arrayBuffer)var O=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],C=ArrayBuffer.isView||function(t){return t&&O.indexOf(Object.prototype.toString.call(t))>-1};function I(t){if("string"!=typeof t&&(t=String(t)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(t)||""===t)throw new TypeError('Invalid character in header field name: "'+t+'"');return t.toLowerCase()}function G(t){return"string"!=typeof t&&(t=String(t)),t}function P(t){var e={next:function(){var e=t.shift();return{done:void 0===e,value:e}}};return A.iterable&&(e[Symbol.iterator]=function(){return e}),e}function R(t){this.map={},t instanceof R?t.forEach((function(t,e){this.append(e,t)}),this):Array.isArray(t)?t.forEach((function(t){this.append(t[0],t[1])}),this):t&&Object.getOwnPropertyNames(t).forEach((function(e){this.append(e,t[e])}),this)}function j(t){if(t.bodyUsed)return Promise.reject(new TypeError("Already read"));t.bodyUsed=!0}function L(t){return new Promise((function(e,n){t.onload=function(){e(t.result)},t.onerror=function(){n(t.error)}}))}function N(t){var e=new FileReader,n=L(e);return e.readAsArrayBuffer(t),n}function z(t){var e=new FileReader,n=L(e);return e.readAsText(t),n}function D(t){for(var e=new Uint8Array(t),n=new Array(e.length),r=0;r<e.length;r++)n[r]=String.fromCharCode(e[r]);return n.join("")}function U(t){if(t.slice)return t.slice(0);var e=new Uint8Array(t.byteLength);return e.set(new Uint8Array(t)),e.buffer}function J(){return this.bodyUsed=!1,this._initBody=function(t){this.bodyUsed=this.bodyUsed,this._bodyInit=t,t?"string"==typeof t?this._bodyText=t:A.blob&&Blob.prototype.isPrototypeOf(t)?this._bodyBlob=t:A.formData&&FormData.prototype.isPrototypeOf(t)?this._bodyFormData=t:A.searchParams&&URLSearchParams.prototype.isPrototypeOf(t)?this._bodyText=t.toString():A.arrayBuffer&&A.blob&&T(t)?(this._bodyArrayBuffer=U(t.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):A.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(t)||C(t))?this._bodyArrayBuffer=U(t):this._bodyText=t=Object.prototype.toString.call(t):this._bodyText="",this.headers.get("content-type")||("string"==typeof t?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):A.searchParams&&URLSearchParams.prototype.isPrototypeOf(t)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},A.blob&&(this.blob=function(){var t=j(this);if(t)return t;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){if(this._bodyArrayBuffer){var t=j(this);return t||(ArrayBuffer.isView(this._bodyArrayBuffer)?Promise.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset,this._bodyArrayBuffer.byteOffset+this._bodyArrayBuffer.byteLength)):Promise.resolve(this._bodyArrayBuffer))}return this.blob().then(N)}),this.text=function(){var t=j(this);if(t)return t;if(this._bodyBlob)return z(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(D(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},A.formData&&(this.formData=function(){return this.text().then(M)}),this.json=function(){return this.text().then(JSON.parse)},this}R.prototype.append=function(t,e){t=I(t),e=G(e);var n=this.map[t];this.map[t]=n?n+", "+e:e},R.prototype.delete=function(t){delete this.map[I(t)]},R.prototype.get=function(t){return t=I(t),this.has(t)?this.map[t]:null},R.prototype.has=function(t){return this.map.hasOwnProperty(I(t))},R.prototype.set=function(t,e){this.map[I(t)]=G(e)},R.prototype.forEach=function(t,e){for(var n in this.map)this.map.hasOwnProperty(n)&&t.call(e,this.map[n],n,this)},R.prototype.keys=function(){var t=[];return this.forEach((function(e,n){t.push(n)})),P(t)},R.prototype.values=function(){var t=[];return this.forEach((function(e){t.push(e)})),P(t)},R.prototype.entries=function(){var t=[];return this.forEach((function(e,n){t.push([n,e])})),P(t)},A.iterable&&(R.prototype[Symbol.iterator]=R.prototype.entries);var B=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function q(t){var e=t.toUpperCase();return B.indexOf(e)>-1?e:t}function H(t,e){if(!(this instanceof H))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');var n=(e=e||{}).body;if(t instanceof H){if(t.bodyUsed)throw new TypeError("Already read");this.url=t.url,this.credentials=t.credentials,e.headers||(this.headers=new R(t.headers)),this.method=t.method,this.mode=t.mode,this.signal=t.signal,n||null==t._bodyInit||(n=t._bodyInit,t.bodyUsed=!0)}else this.url=String(t);if(this.credentials=e.credentials||this.credentials||"same-origin",!e.headers&&this.headers||(this.headers=new R(e.headers)),this.method=q(e.method||this.method||"GET"),this.mode=e.mode||this.mode||null,this.signal=e.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&n)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(n),!("GET"!==this.method&&"HEAD"!==this.method||"no-store"!==e.cache&&"no-cache"!==e.cache)){var r=/([?&])_=[^&]*/;if(r.test(this.url))this.url=this.url.replace(r,"$1_="+(new Date).getTime());else{var i=/\?/;this.url+=(i.test(this.url)?"&":"?")+"_="+(new Date).getTime()}}}function M(t){var e=new FormData;return t.trim().split("&").forEach((function(t){if(t){var n=t.split("="),r=n.shift().replace(/\+/g," "),i=n.join("=").replace(/\+/g," ");e.append(decodeURIComponent(r),decodeURIComponent(i))}})),e}function Z(t){var e=new R;return t.replace(/\r?\n[\t ]+/g," ").split("\r").map((function(t){return 0===t.indexOf("\n")?t.substr(1,t.length):t})).forEach((function(t){var n=t.split(":"),r=n.shift().trim();if(r){var i=n.join(":").trim();e.append(r,i)}})),e}function F(t,e){if(!(this instanceof F))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');e||(e={}),this.type="default",this.status=void 0===e.status?200:e.status,this.ok=this.status>=200&&this.status<300,this.statusText=void 0===e.statusText?"":""+e.statusText,this.headers=new R(e.headers),this.url=e.url||"",this._initBody(t)}H.prototype.clone=function(){return new H(this,{body:this._bodyInit})},J.call(H.prototype),J.call(F.prototype),F.prototype.clone=function(){return new F(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new R(this.headers),url:this.url})},F.error=function(){var t=new F(null,{status:0,statusText:""});return t.type="error",t};var K=[301,302,303,307,308];F.redirect=function(t,e){if(-1===K.indexOf(e))throw new RangeError("Invalid status code");return new F(null,{status:e,headers:{location:t}})};var V,W=x.DOMException;try{new W}catch(sn){(W=function(t,e){this.message=t,this.name=e;var n=Error(t);this.stack=n.stack}).prototype=Object.create(Error.prototype),W.prototype.constructor=W}function X(t,e){return new Promise((function(n,r){var o=new H(t,e);if(o.signal&&o.signal.aborted)return r(new W("Aborted","AbortError"));var a=new XMLHttpRequest;function s(){a.abort()}function u(t){try{return""===t&&x.location.href?x.location.href:t}catch(e){return t}}a.onload=function(){var t={status:a.status,statusText:a.statusText,headers:Z(a.getAllResponseHeaders()||"")};t.url="responseURL"in a?a.responseURL:t.headers.get("X-Request-URL");var e="response"in a?a.response:a.responseText;setTimeout((function(){n(new F(e,t))}),0)},a.onerror=function(){setTimeout((function(){r(new TypeError("Network request failed"))}),0)},a.ontimeout=function(){setTimeout((function(){r(new TypeError("Network request failed"))}),0)},a.onabort=function(){setTimeout((function(){r(new W("Aborted","AbortError"))}),0)},a.open(o.method,u(o.url),!0),"include"===o.credentials?a.withCredentials=!0:"omit"===o.credentials&&(a.withCredentials=!1),"responseType"in a&&(A.blob?a.responseType="blob":A.arrayBuffer&&o.headers.get("Content-Type")&&-1!==o.headers.get("Content-Type").indexOf("application/octet-stream")&&(a.responseType="arraybuffer")),!e||"object"!==i(e.headers)||e.headers instanceof R?o.headers.forEach((function(t,e){a.setRequestHeader(e,t)})):Object.getOwnPropertyNames(e.headers).forEach((function(t){a.setRequestHeader(t,G(e.headers[t]))})),o.signal&&(o.signal.addEventListener("abort",s),a.onreadystatechange=function(){4===a.readyState&&o.signal.removeEventListener("abort",s)}),a.send(void 0===o._bodyInit?null:o._bodyInit)}))}X.polyfill=!0,x.fetch||(x.fetch=X,x.Headers=R,x.Request=H,x.Response=F);class Q{static get(t){return this.store[t]}static set(t,e){this.store[t]=e}}Q.store={},function(t){t.WEB="web",t.JS="js"}(V||(V={}));
|
||
/*! pako 2.1.0 https://github.com/nodeca/pako @license (MIT AND Zlib) */
|
||
var $=4,Y=0,tt=1,et=2;function nt(t){for(var e=t.length;--e>=0;)t[e]=0}var rt=0,it=1,ot=2,at=3,st=258,ut=29,ct=256,lt=ct+1+ut,dt=30,ht=19,ft=2*lt+1,pt=15,vt=16,gt=7,mt=256,bt=16,_t=17,wt=18,yt=new Uint8Array([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0]),kt=new Uint8Array([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13]),St=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7]),Et=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),xt=512,At=new Array(2*(lt+2));nt(At);var Tt=new Array(2*dt);nt(Tt);var Ot=new Array(xt);nt(Ot);var Ct=new Array(st-at+1);nt(Ct);var It=new Array(ut);nt(It);var Gt,Pt,Rt,jt=new Array(dt);function Lt(t,e,n,r,i){this.static_tree=t,this.extra_bits=e,this.extra_base=n,this.elems=r,this.max_length=i,this.has_stree=t&&t.length}function Nt(t,e){this.dyn_tree=t,this.max_code=0,this.stat_desc=e}nt(jt);var zt=function(t){return t<256?Ot[t]:Ot[256+(t>>>7)]},Dt=function(t,e){t.pending_buf[t.pending++]=255&e,t.pending_buf[t.pending++]=e>>>8&255},Ut=function(t,e,n){t.bi_valid>vt-n?(t.bi_buf|=e<<t.bi_valid&65535,Dt(t,t.bi_buf),t.bi_buf=e>>vt-t.bi_valid,t.bi_valid+=n-vt):(t.bi_buf|=e<<t.bi_valid&65535,t.bi_valid+=n)},Jt=function(t,e,n){Ut(t,n[2*e],n[2*e+1])},Bt=function(t,e){var n=0;do{n|=1&t,t>>>=1,n<<=1}while(--e>0);return n>>>1},qt=function(t){16===t.bi_valid?(Dt(t,t.bi_buf),t.bi_buf=0,t.bi_valid=0):t.bi_valid>=8&&(t.pending_buf[t.pending++]=255&t.bi_buf,t.bi_buf>>=8,t.bi_valid-=8)},Ht=function(t,e){var n,r,i,o,a,s,u=e.dyn_tree,c=e.max_code,l=e.stat_desc.static_tree,d=e.stat_desc.has_stree,h=e.stat_desc.extra_bits,f=e.stat_desc.extra_base,p=e.stat_desc.max_length,v=0;for(o=0;o<=pt;o++)t.bl_count[o]=0;for(u[2*t.heap[t.heap_max]+1]=0,n=t.heap_max+1;n<ft;n++)(o=u[2*u[2*(r=t.heap[n])+1]+1]+1)>p&&(o=p,v++),u[2*r+1]=o,r>c||(t.bl_count[o]++,a=0,r>=f&&(a=h[r-f]),s=u[2*r],t.opt_len+=s*(o+a),d&&(t.static_len+=s*(l[2*r+1]+a)));if(0!==v){do{for(o=p-1;0===t.bl_count[o];)o--;t.bl_count[o]--,t.bl_count[o+1]+=2,t.bl_count[p]--,v-=2}while(v>0);for(o=p;0!==o;o--)for(r=t.bl_count[o];0!==r;)(i=t.heap[--n])>c||(u[2*i+1]!==o&&(t.opt_len+=(o-u[2*i+1])*u[2*i],u[2*i+1]=o),r--)}},Mt=function(t,e,n){var r,i,o=new Array(pt+1),a=0;for(r=1;r<=pt;r++)a=a+n[r-1]<<1,o[r]=a;for(i=0;i<=e;i++){var s=t[2*i+1];0!==s&&(t[2*i]=Bt(o[s]++,s))}},Zt=function(){var t,e,n,r,i,o=new Array(pt+1);for(n=0,r=0;r<ut-1;r++)for(It[r]=n,t=0;t<1<<yt[r];t++)Ct[n++]=r;for(Ct[n-1]=r,i=0,r=0;r<16;r++)for(jt[r]=i,t=0;t<1<<kt[r];t++)Ot[i++]=r;for(i>>=7;r<dt;r++)for(jt[r]=i<<7,t=0;t<1<<kt[r]-7;t++)Ot[256+i++]=r;for(e=0;e<=pt;e++)o[e]=0;for(t=0;t<=143;)At[2*t+1]=8,t++,o[8]++;for(;t<=255;)At[2*t+1]=9,t++,o[9]++;for(;t<=279;)At[2*t+1]=7,t++,o[7]++;for(;t<=287;)At[2*t+1]=8,t++,o[8]++;for(Mt(At,lt+1,o),t=0;t<dt;t++)Tt[2*t+1]=5,Tt[2*t]=Bt(t,5);Gt=new Lt(At,yt,ct+1,lt,pt),Pt=new Lt(Tt,kt,0,dt,pt),Rt=new Lt(new Array(0),St,0,ht,gt)},Ft=function(t){var e;for(e=0;e<lt;e++)t.dyn_ltree[2*e]=0;for(e=0;e<dt;e++)t.dyn_dtree[2*e]=0;for(e=0;e<ht;e++)t.bl_tree[2*e]=0;t.dyn_ltree[2*mt]=1,t.opt_len=t.static_len=0,t.sym_next=t.matches=0},Kt=function(t){t.bi_valid>8?Dt(t,t.bi_buf):t.bi_valid>0&&(t.pending_buf[t.pending++]=t.bi_buf),t.bi_buf=0,t.bi_valid=0},Vt=function(t,e,n,r){var i=2*e,o=2*n;return t[i]<t[o]||t[i]===t[o]&&r[e]<=r[n]},Wt=function(t,e,n){for(var r=t.heap[n],i=n<<1;i<=t.heap_len&&(i<t.heap_len&&Vt(e,t.heap[i+1],t.heap[i],t.depth)&&i++,!Vt(e,r,t.heap[i],t.depth));)t.heap[n]=t.heap[i],n=i,i<<=1;t.heap[n]=r},Xt=function(t,e,n){var r,i,o,a,s=0;if(0!==t.sym_next)do{r=255&t.pending_buf[t.sym_buf+s++],r+=(255&t.pending_buf[t.sym_buf+s++])<<8,i=t.pending_buf[t.sym_buf+s++],0===r?Jt(t,i,e):(o=Ct[i],Jt(t,o+ct+1,e),0!==(a=yt[o])&&(i-=It[o],Ut(t,i,a)),r--,o=zt(r),Jt(t,o,n),0!==(a=kt[o])&&(r-=jt[o],Ut(t,r,a)))}while(s<t.sym_next);Jt(t,mt,e)},Qt=function(t,e){var n,r,i,o=e.dyn_tree,a=e.stat_desc.static_tree,s=e.stat_desc.has_stree,u=e.stat_desc.elems,c=-1;for(t.heap_len=0,t.heap_max=ft,n=0;n<u;n++)0!==o[2*n]?(t.heap[++t.heap_len]=c=n,t.depth[n]=0):o[2*n+1]=0;for(;t.heap_len<2;)o[2*(i=t.heap[++t.heap_len]=c<2?++c:0)]=1,t.depth[i]=0,t.opt_len--,s&&(t.static_len-=a[2*i+1]);for(e.max_code=c,n=t.heap_len>>1;n>=1;n--)Wt(t,o,n);i=u;do{n=t.heap[1],t.heap[1]=t.heap[t.heap_len--],Wt(t,o,1),r=t.heap[1],t.heap[--t.heap_max]=n,t.heap[--t.heap_max]=r,o[2*i]=o[2*n]+o[2*r],t.depth[i]=(t.depth[n]>=t.depth[r]?t.depth[n]:t.depth[r])+1,o[2*n+1]=o[2*r+1]=i,t.heap[1]=i++,Wt(t,o,1)}while(t.heap_len>=2);t.heap[--t.heap_max]=t.heap[1],Ht(t,e),Mt(o,c,t.bl_count)},$t=function(t,e,n){var r,i,o=-1,a=e[1],s=0,u=7,c=4;for(0===a&&(u=138,c=3),e[2*(n+1)+1]=65535,r=0;r<=n;r++)i=a,a=e[2*(r+1)+1],++s<u&&i===a||(s<c?t.bl_tree[2*i]+=s:0!==i?(i!==o&&t.bl_tree[2*i]++,t.bl_tree[2*bt]++):s<=10?t.bl_tree[2*_t]++:t.bl_tree[2*wt]++,s=0,o=i,0===a?(u=138,c=3):i===a?(u=6,c=3):(u=7,c=4))},Yt=function(t,e,n){var r,i,o=-1,a=e[1],s=0,u=7,c=4;for(0===a&&(u=138,c=3),r=0;r<=n;r++)if(i=a,a=e[2*(r+1)+1],!(++s<u&&i===a)){if(s<c)do{Jt(t,i,t.bl_tree)}while(0!=--s);else 0!==i?(i!==o&&(Jt(t,i,t.bl_tree),s--),Jt(t,bt,t.bl_tree),Ut(t,s-3,2)):s<=10?(Jt(t,_t,t.bl_tree),Ut(t,s-3,3)):(Jt(t,wt,t.bl_tree),Ut(t,s-11,7));s=0,o=i,0===a?(u=138,c=3):i===a?(u=6,c=3):(u=7,c=4)}},te=function(t){var e;for($t(t,t.dyn_ltree,t.l_desc.max_code),$t(t,t.dyn_dtree,t.d_desc.max_code),Qt(t,t.bl_desc),e=ht-1;e>=3&&0===t.bl_tree[2*Et[e]+1];e--);return t.opt_len+=3*(e+1)+5+5+4,e},ee=function(t,e,n,r){var i;for(Ut(t,e-257,5),Ut(t,n-1,5),Ut(t,r-4,4),i=0;i<r;i++)Ut(t,t.bl_tree[2*Et[i]+1],3);Yt(t,t.dyn_ltree,e-1),Yt(t,t.dyn_dtree,n-1)},ne=function(t){var e,n=4093624447;for(e=0;e<=31;e++,n>>>=1)if(1&n&&0!==t.dyn_ltree[2*e])return Y;if(0!==t.dyn_ltree[18]||0!==t.dyn_ltree[20]||0!==t.dyn_ltree[26])return tt;for(e=32;e<ct;e++)if(0!==t.dyn_ltree[2*e])return tt;return Y},re=!1,ie=function(t,e,n,r){Ut(t,(rt<<1)+(r?1:0),3),Kt(t),Dt(t,n),Dt(t,~n),n&&t.pending_buf.set(t.window.subarray(e,e+n),t.pending),t.pending+=n},oe=function(t,e,n,r){var i,o,a=0;t.level>0?(t.strm.data_type===et&&(t.strm.data_type=ne(t)),Qt(t,t.l_desc),Qt(t,t.d_desc),a=te(t),i=t.opt_len+3+7>>>3,(o=t.static_len+3+7>>>3)<=i&&(i=o)):i=o=n+5,n+4<=i&&-1!==e?ie(t,e,n,r):t.strategy===$||o===i?(Ut(t,(it<<1)+(r?1:0),3),Xt(t,At,Tt)):(Ut(t,(ot<<1)+(r?1:0),3),ee(t,t.l_desc.max_code+1,t.d_desc.max_code+1,a+1),Xt(t,t.dyn_ltree,t.dyn_dtree)),Ft(t),r&&Kt(t)},ae={_tr_init:function(t){re||(Zt(),re=!0),t.l_desc=new Nt(t.dyn_ltree,Gt),t.d_desc=new Nt(t.dyn_dtree,Pt),t.bl_desc=new Nt(t.bl_tree,Rt),t.bi_buf=0,t.bi_valid=0,Ft(t)},_tr_stored_block:ie,_tr_flush_block:oe,_tr_tally:function(t,e,n){return t.pending_buf[t.sym_buf+t.sym_next++]=e,t.pending_buf[t.sym_buf+t.sym_next++]=e>>8,t.pending_buf[t.sym_buf+t.sym_next++]=n,0===e?t.dyn_ltree[2*n]++:(t.matches++,e--,t.dyn_ltree[2*(Ct[n]+ct+1)]++,t.dyn_dtree[2*zt(e)]++),t.sym_next===t.sym_end},_tr_align:function(t){Ut(t,it<<1,3),Jt(t,mt,At),qt(t)}},se=function(t,e,n,r){for(var i=65535&t|0,o=t>>>16&65535|0,a=0;0!==n;){n-=a=n>2e3?2e3:n;do{o=o+(i=i+e[r++]|0)|0}while(--a);i%=65521,o%=65521}return i|o<<16|0},ue=new Uint32Array(function(){for(var t,e=[],n=0;n<256;n++){t=n;for(var r=0;r<8;r++)t=1&t?3988292384^t>>>1:t>>>1;e[n]=t}return e}()),ce=function(t,e,n,r){var i=ue,o=r+n;t^=-1;for(var a=r;a<o;a++)t=t>>>8^i[255&(t^e[a])];return-1^t},le={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"},de={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_MEM_ERROR:-4,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8},he=ae._tr_init,fe=ae._tr_stored_block,pe=ae._tr_flush_block,ve=ae._tr_tally,ge=ae._tr_align,me=de.Z_NO_FLUSH,be=de.Z_PARTIAL_FLUSH,_e=de.Z_FULL_FLUSH,we=de.Z_FINISH,ye=de.Z_BLOCK,ke=de.Z_OK,Se=de.Z_STREAM_END,Ee=de.Z_STREAM_ERROR,xe=de.Z_DATA_ERROR,Ae=de.Z_BUF_ERROR,Te=de.Z_DEFAULT_COMPRESSION,Oe=de.Z_FILTERED,Ce=de.Z_HUFFMAN_ONLY,Ie=de.Z_RLE,Ge=de.Z_FIXED,Pe=de.Z_DEFAULT_STRATEGY,Re=de.Z_UNKNOWN,je=de.Z_DEFLATED,Le=9,Ne=15,ze=8,De=286,Ue=30,Je=19,Be=2*De+1,qe=15,He=3,Me=258,Ze=Me+He+1,Fe=32,Ke=42,Ve=57,We=69,Xe=73,Qe=91,$e=103,Ye=113,tn=666,en=1,nn=2,rn=3,on=4,an=3,sn=function(t,e){return t.msg=le[e],e},un=function(t){return 2*t-(t>4?9:0)},cn=function(t){for(var e=t.length;--e>=0;)t[e]=0},ln=function(t){var e,n,r,i=t.w_size;r=e=t.hash_size;do{n=t.head[--r],t.head[r]=n>=i?n-i:0}while(--e);r=e=i;do{n=t.prev[--r],t.prev[r]=n>=i?n-i:0}while(--e)},dn=function(t,e,n){return(e<<t.hash_shift^n)&t.hash_mask},hn=function(t){var e=t.state,n=e.pending;n>t.avail_out&&(n=t.avail_out),0!==n&&(t.output.set(e.pending_buf.subarray(e.pending_out,e.pending_out+n),t.next_out),t.next_out+=n,e.pending_out+=n,t.total_out+=n,t.avail_out-=n,e.pending-=n,0===e.pending&&(e.pending_out=0))},fn=function(t,e){pe(t,t.block_start>=0?t.block_start:-1,t.strstart-t.block_start,e),t.block_start=t.strstart,hn(t.strm)},pn=function(t,e){t.pending_buf[t.pending++]=e},vn=function(t,e){t.pending_buf[t.pending++]=e>>>8&255,t.pending_buf[t.pending++]=255&e},gn=function(t,e,n,r){var i=t.avail_in;return i>r&&(i=r),0===i?0:(t.avail_in-=i,e.set(t.input.subarray(t.next_in,t.next_in+i),n),1===t.state.wrap?t.adler=se(t.adler,e,i,n):2===t.state.wrap&&(t.adler=ce(t.adler,e,i,n)),t.next_in+=i,t.total_in+=i,i)},mn=function(t,e){var n,r,i=t.max_chain_length,o=t.strstart,a=t.prev_length,s=t.nice_match,u=t.strstart>t.w_size-Ze?t.strstart-(t.w_size-Ze):0,c=t.window,l=t.w_mask,d=t.prev,h=t.strstart+Me,f=c[o+a-1],p=c[o+a];t.prev_length>=t.good_match&&(i>>=2),s>t.lookahead&&(s=t.lookahead);do{if(c[(n=e)+a]===p&&c[n+a-1]===f&&c[n]===c[o]&&c[++n]===c[o+1]){o+=2,n++;do{}while(c[++o]===c[++n]&&c[++o]===c[++n]&&c[++o]===c[++n]&&c[++o]===c[++n]&&c[++o]===c[++n]&&c[++o]===c[++n]&&c[++o]===c[++n]&&c[++o]===c[++n]&&o<h);if(r=Me-(h-o),o=h-Me,r>a){if(t.match_start=e,a=r,r>=s)break;f=c[o+a-1],p=c[o+a]}}}while((e=d[e&l])>u&&0!=--i);return a<=t.lookahead?a:t.lookahead},bn=function(t){var e,n,r,i=t.w_size;do{if(n=t.window_size-t.lookahead-t.strstart,t.strstart>=i+(i-Ze)&&(t.window.set(t.window.subarray(i,i+i-n),0),t.match_start-=i,t.strstart-=i,t.block_start-=i,t.insert>t.strstart&&(t.insert=t.strstart),ln(t),n+=i),0===t.strm.avail_in)break;if(e=gn(t.strm,t.window,t.strstart+t.lookahead,n),t.lookahead+=e,t.lookahead+t.insert>=He)for(r=t.strstart-t.insert,t.ins_h=t.window[r],t.ins_h=dn(t,t.ins_h,t.window[r+1]);t.insert&&(t.ins_h=dn(t,t.ins_h,t.window[r+He-1]),t.prev[r&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=r,r++,t.insert--,!(t.lookahead+t.insert<He)););}while(t.lookahead<Ze&&0!==t.strm.avail_in)},_n=function(t,e){var n,r,i,o=t.pending_buf_size-5>t.w_size?t.w_size:t.pending_buf_size-5,a=0,s=t.strm.avail_in;do{if(n=65535,i=t.bi_valid+42>>3,t.strm.avail_out<i)break;if(i=t.strm.avail_out-i,n>(r=t.strstart-t.block_start)+t.strm.avail_in&&(n=r+t.strm.avail_in),n>i&&(n=i),n<o&&(0===n&&e!==we||e===me||n!==r+t.strm.avail_in))break;a=e===we&&n===r+t.strm.avail_in?1:0,fe(t,0,0,a),t.pending_buf[t.pending-4]=n,t.pending_buf[t.pending-3]=n>>8,t.pending_buf[t.pending-2]=~n,t.pending_buf[t.pending-1]=~n>>8,hn(t.strm),r&&(r>n&&(r=n),t.strm.output.set(t.window.subarray(t.block_start,t.block_start+r),t.strm.next_out),t.strm.next_out+=r,t.strm.avail_out-=r,t.strm.total_out+=r,t.block_start+=r,n-=r),n&&(gn(t.strm,t.strm.output,t.strm.next_out,n),t.strm.next_out+=n,t.strm.avail_out-=n,t.strm.total_out+=n)}while(0===a);return(s-=t.strm.avail_in)&&(s>=t.w_size?(t.matches=2,t.window.set(t.strm.input.subarray(t.strm.next_in-t.w_size,t.strm.next_in),0),t.strstart=t.w_size,t.insert=t.strstart):(t.window_size-t.strstart<=s&&(t.strstart-=t.w_size,t.window.set(t.window.subarray(t.w_size,t.w_size+t.strstart),0),t.matches<2&&t.matches++,t.insert>t.strstart&&(t.insert=t.strstart)),t.window.set(t.strm.input.subarray(t.strm.next_in-s,t.strm.next_in),t.strstart),t.strstart+=s,t.insert+=s>t.w_size-t.insert?t.w_size-t.insert:s),t.block_start=t.strstart),t.high_water<t.strstart&&(t.high_water=t.strstart),a?on:e!==me&&e!==we&&0===t.strm.avail_in&&t.strstart===t.block_start?nn:(i=t.window_size-t.strstart,t.strm.avail_in>i&&t.block_start>=t.w_size&&(t.block_start-=t.w_size,t.strstart-=t.w_size,t.window.set(t.window.subarray(t.w_size,t.w_size+t.strstart),0),t.matches<2&&t.matches++,i+=t.w_size,t.insert>t.strstart&&(t.insert=t.strstart)),i>t.strm.avail_in&&(i=t.strm.avail_in),i&&(gn(t.strm,t.window,t.strstart,i),t.strstart+=i,t.insert+=i>t.w_size-t.insert?t.w_size-t.insert:i),t.high_water<t.strstart&&(t.high_water=t.strstart),i=t.bi_valid+42>>3,o=(i=t.pending_buf_size-i>65535?65535:t.pending_buf_size-i)>t.w_size?t.w_size:i,((r=t.strstart-t.block_start)>=o||(r||e===we)&&e!==me&&0===t.strm.avail_in&&r<=i)&&(n=r>i?i:r,a=e===we&&0===t.strm.avail_in&&n===r?1:0,fe(t,t.block_start,n,a),t.block_start+=n,hn(t.strm)),a?rn:en)},wn=function(t,e){for(var n,r;;){if(t.lookahead<Ze){if(bn(t),t.lookahead<Ze&&e===me)return en;if(0===t.lookahead)break}if(n=0,t.lookahead>=He&&(t.ins_h=dn(t,t.ins_h,t.window[t.strstart+He-1]),n=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),0!==n&&t.strstart-n<=t.w_size-Ze&&(t.match_length=mn(t,n)),t.match_length>=He)if(r=ve(t,t.strstart-t.match_start,t.match_length-He),t.lookahead-=t.match_length,t.match_length<=t.max_lazy_match&&t.lookahead>=He){t.match_length--;do{t.strstart++,t.ins_h=dn(t,t.ins_h,t.window[t.strstart+He-1]),n=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart}while(0!=--t.match_length);t.strstart++}else t.strstart+=t.match_length,t.match_length=0,t.ins_h=t.window[t.strstart],t.ins_h=dn(t,t.ins_h,t.window[t.strstart+1]);else r=ve(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++;if(r&&(fn(t,!1),0===t.strm.avail_out))return en}return t.insert=t.strstart<He-1?t.strstart:He-1,e===we?(fn(t,!0),0===t.strm.avail_out?rn:on):t.sym_next&&(fn(t,!1),0===t.strm.avail_out)?en:nn},yn=function(t,e){for(var n,r,i;;){if(t.lookahead<Ze){if(bn(t),t.lookahead<Ze&&e===me)return en;if(0===t.lookahead)break}if(n=0,t.lookahead>=He&&(t.ins_h=dn(t,t.ins_h,t.window[t.strstart+He-1]),n=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),t.prev_length=t.match_length,t.prev_match=t.match_start,t.match_length=He-1,0!==n&&t.prev_length<t.max_lazy_match&&t.strstart-n<=t.w_size-Ze&&(t.match_length=mn(t,n),t.match_length<=5&&(t.strategy===Oe||t.match_length===He&&t.strstart-t.match_start>4096)&&(t.match_length=He-1)),t.prev_length>=He&&t.match_length<=t.prev_length){i=t.strstart+t.lookahead-He,r=ve(t,t.strstart-1-t.prev_match,t.prev_length-He),t.lookahead-=t.prev_length-1,t.prev_length-=2;do{++t.strstart<=i&&(t.ins_h=dn(t,t.ins_h,t.window[t.strstart+He-1]),n=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart)}while(0!=--t.prev_length);if(t.match_available=0,t.match_length=He-1,t.strstart++,r&&(fn(t,!1),0===t.strm.avail_out))return en}else if(t.match_available){if((r=ve(t,0,t.window[t.strstart-1]))&&fn(t,!1),t.strstart++,t.lookahead--,0===t.strm.avail_out)return en}else t.match_available=1,t.strstart++,t.lookahead--}return t.match_available&&(r=ve(t,0,t.window[t.strstart-1]),t.match_available=0),t.insert=t.strstart<He-1?t.strstart:He-1,e===we?(fn(t,!0),0===t.strm.avail_out?rn:on):t.sym_next&&(fn(t,!1),0===t.strm.avail_out)?en:nn},kn=function(t,e){for(var n,r,i,o,a=t.window;;){if(t.lookahead<=Me){if(bn(t),t.lookahead<=Me&&e===me)return en;if(0===t.lookahead)break}if(t.match_length=0,t.lookahead>=He&&t.strstart>0&&(r=a[i=t.strstart-1])===a[++i]&&r===a[++i]&&r===a[++i]){o=t.strstart+Me;do{}while(r===a[++i]&&r===a[++i]&&r===a[++i]&&r===a[++i]&&r===a[++i]&&r===a[++i]&&r===a[++i]&&r===a[++i]&&i<o);t.match_length=Me-(o-i),t.match_length>t.lookahead&&(t.match_length=t.lookahead)}if(t.match_length>=He?(n=ve(t,1,t.match_length-He),t.lookahead-=t.match_length,t.strstart+=t.match_length,t.match_length=0):(n=ve(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++),n&&(fn(t,!1),0===t.strm.avail_out))return en}return t.insert=0,e===we?(fn(t,!0),0===t.strm.avail_out?rn:on):t.sym_next&&(fn(t,!1),0===t.strm.avail_out)?en:nn},Sn=function(t,e){for(var n;;){if(0===t.lookahead&&(bn(t),0===t.lookahead)){if(e===me)return en;break}if(t.match_length=0,n=ve(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++,n&&(fn(t,!1),0===t.strm.avail_out))return en}return t.insert=0,e===we?(fn(t,!0),0===t.strm.avail_out?rn:on):t.sym_next&&(fn(t,!1),0===t.strm.avail_out)?en:nn};function En(t,e,n,r,i){this.good_length=t,this.max_lazy=e,this.nice_length=n,this.max_chain=r,this.func=i}var xn=[new En(0,0,0,0,_n),new En(4,4,8,4,wn),new En(4,5,16,8,wn),new En(4,6,32,32,wn),new En(4,4,16,16,yn),new En(8,16,32,32,yn),new En(8,16,128,128,yn),new En(8,32,128,256,yn),new En(32,128,258,1024,yn),new En(32,258,258,4096,yn)],An=function(t){t.window_size=2*t.w_size,cn(t.head),t.max_lazy_match=xn[t.level].max_lazy,t.good_match=xn[t.level].good_length,t.nice_match=xn[t.level].nice_length,t.max_chain_length=xn[t.level].max_chain,t.strstart=0,t.block_start=0,t.lookahead=0,t.insert=0,t.match_length=t.prev_length=He-1,t.match_available=0,t.ins_h=0};function Tn(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=je,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new Uint16Array(2*Be),this.dyn_dtree=new Uint16Array(2*(2*Ue+1)),this.bl_tree=new Uint16Array(2*(2*Je+1)),cn(this.dyn_ltree),cn(this.dyn_dtree),cn(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new Uint16Array(qe+1),this.heap=new Uint16Array(2*De+1),cn(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new Uint16Array(2*De+1),cn(this.depth),this.sym_buf=0,this.lit_bufsize=0,this.sym_next=0,this.sym_end=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}var On=function(t){if(!t)return 1;var e=t.state;return!e||e.strm!==t||e.status!==Ke&&e.status!==Ve&&e.status!==We&&e.status!==Xe&&e.status!==Qe&&e.status!==$e&&e.status!==Ye&&e.status!==tn?1:0},Cn=function(t){if(On(t))return sn(t,Ee);t.total_in=t.total_out=0,t.data_type=Re;var e=t.state;return e.pending=0,e.pending_out=0,e.wrap<0&&(e.wrap=-e.wrap),e.status=2===e.wrap?Ve:e.wrap?Ke:Ye,t.adler=2===e.wrap?0:1,e.last_flush=-2,he(e),ke},In=function(t){var e=Cn(t);return e===ke&&An(t.state),e},Gn=function(t,e,n,r,i,o){if(!t)return Ee;var a=1;if(e===Te&&(e=6),r<0?(a=0,r=-r):r>15&&(a=2,r-=16),i<1||i>Le||n!==je||r<8||r>15||e<0||e>9||o<0||o>Ge||8===r&&1!==a)return sn(t,Ee);8===r&&(r=9);var s=new Tn;return t.state=s,s.strm=t,s.status=Ke,s.wrap=a,s.gzhead=null,s.w_bits=r,s.w_size=1<<s.w_bits,s.w_mask=s.w_size-1,s.hash_bits=i+7,s.hash_size=1<<s.hash_bits,s.hash_mask=s.hash_size-1,s.hash_shift=~~((s.hash_bits+He-1)/He),s.window=new Uint8Array(2*s.w_size),s.head=new Uint16Array(s.hash_size),s.prev=new Uint16Array(s.w_size),s.lit_bufsize=1<<i+6,s.pending_buf_size=4*s.lit_bufsize,s.pending_buf=new Uint8Array(s.pending_buf_size),s.sym_buf=s.lit_bufsize,s.sym_end=3*(s.lit_bufsize-1),s.level=e,s.strategy=o,s.method=n,In(t)},Pn={deflateInit:function(t,e){return Gn(t,e,je,Ne,ze,Pe)},deflateInit2:Gn,deflateReset:In,deflateResetKeep:Cn,deflateSetHeader:function(t,e){return On(t)||2!==t.state.wrap?Ee:(t.state.gzhead=e,ke)},deflate:function(t,e){if(On(t)||e>ye||e<0)return t?sn(t,Ee):Ee;var n=t.state;if(!t.output||0!==t.avail_in&&!t.input||n.status===tn&&e!==we)return sn(t,0===t.avail_out?Ae:Ee);var r=n.last_flush;if(n.last_flush=e,0!==n.pending){if(hn(t),0===t.avail_out)return n.last_flush=-1,ke}else if(0===t.avail_in&&un(e)<=un(r)&&e!==we)return sn(t,Ae);if(n.status===tn&&0!==t.avail_in)return sn(t,Ae);if(n.status===Ke&&0===n.wrap&&(n.status=Ye),n.status===Ke){var i=je+(n.w_bits-8<<4)<<8;if(i|=(n.strategy>=Ce||n.level<2?0:n.level<6?1:6===n.level?2:3)<<6,0!==n.strstart&&(i|=Fe),vn(n,i+=31-i%31),0!==n.strstart&&(vn(n,t.adler>>>16),vn(n,65535&t.adler)),t.adler=1,n.status=Ye,hn(t),0!==n.pending)return n.last_flush=-1,ke}if(n.status===Ve)if(t.adler=0,pn(n,31),pn(n,139),pn(n,8),n.gzhead)pn(n,(n.gzhead.text?1:0)+(n.gzhead.hcrc?2:0)+(n.gzhead.extra?4:0)+(n.gzhead.name?8:0)+(n.gzhead.comment?16:0)),pn(n,255&n.gzhead.time),pn(n,n.gzhead.time>>8&255),pn(n,n.gzhead.time>>16&255),pn(n,n.gzhead.time>>24&255),pn(n,9===n.level?2:n.strategy>=Ce||n.level<2?4:0),pn(n,255&n.gzhead.os),n.gzhead.extra&&n.gzhead.extra.length&&(pn(n,255&n.gzhead.extra.length),pn(n,n.gzhead.extra.length>>8&255)),n.gzhead.hcrc&&(t.adler=ce(t.adler,n.pending_buf,n.pending,0)),n.gzindex=0,n.status=We;else if(pn(n,0),pn(n,0),pn(n,0),pn(n,0),pn(n,0),pn(n,9===n.level?2:n.strategy>=Ce||n.level<2?4:0),pn(n,an),n.status=Ye,hn(t),0!==n.pending)return n.last_flush=-1,ke;if(n.status===We){if(n.gzhead.extra){for(var o=n.pending,a=(65535&n.gzhead.extra.length)-n.gzindex;n.pending+a>n.pending_buf_size;){var s=n.pending_buf_size-n.pending;if(n.pending_buf.set(n.gzhead.extra.subarray(n.gzindex,n.gzindex+s),n.pending),n.pending=n.pending_buf_size,n.gzhead.hcrc&&n.pending>o&&(t.adler=ce(t.adler,n.pending_buf,n.pending-o,o)),n.gzindex+=s,hn(t),0!==n.pending)return n.last_flush=-1,ke;o=0,a-=s}var u=new Uint8Array(n.gzhead.extra);n.pending_buf.set(u.subarray(n.gzindex,n.gzindex+a),n.pending),n.pending+=a,n.gzhead.hcrc&&n.pending>o&&(t.adler=ce(t.adler,n.pending_buf,n.pending-o,o)),n.gzindex=0}n.status=Xe}if(n.status===Xe){if(n.gzhead.name){var c,l=n.pending;do{if(n.pending===n.pending_buf_size){if(n.gzhead.hcrc&&n.pending>l&&(t.adler=ce(t.adler,n.pending_buf,n.pending-l,l)),hn(t),0!==n.pending)return n.last_flush=-1,ke;l=0}c=n.gzindex<n.gzhead.name.length?255&n.gzhead.name.charCodeAt(n.gzindex++):0,pn(n,c)}while(0!==c);n.gzhead.hcrc&&n.pending>l&&(t.adler=ce(t.adler,n.pending_buf,n.pending-l,l)),n.gzindex=0}n.status=Qe}if(n.status===Qe){if(n.gzhead.comment){var d,h=n.pending;do{if(n.pending===n.pending_buf_size){if(n.gzhead.hcrc&&n.pending>h&&(t.adler=ce(t.adler,n.pending_buf,n.pending-h,h)),hn(t),0!==n.pending)return n.last_flush=-1,ke;h=0}d=n.gzindex<n.gzhead.comment.length?255&n.gzhead.comment.charCodeAt(n.gzindex++):0,pn(n,d)}while(0!==d);n.gzhead.hcrc&&n.pending>h&&(t.adler=ce(t.adler,n.pending_buf,n.pending-h,h))}n.status=$e}if(n.status===$e){if(n.gzhead.hcrc){if(n.pending+2>n.pending_buf_size&&(hn(t),0!==n.pending))return n.last_flush=-1,ke;pn(n,255&t.adler),pn(n,t.adler>>8&255),t.adler=0}if(n.status=Ye,hn(t),0!==n.pending)return n.last_flush=-1,ke}if(0!==t.avail_in||0!==n.lookahead||e!==me&&n.status!==tn){var f=0===n.level?_n(n,e):n.strategy===Ce?Sn(n,e):n.strategy===Ie?kn(n,e):xn[n.level].func(n,e);if(f!==rn&&f!==on||(n.status=tn),f===en||f===rn)return 0===t.avail_out&&(n.last_flush=-1),ke;if(f===nn&&(e===be?ge(n):e!==ye&&(fe(n,0,0,!1),e===_e&&(cn(n.head),0===n.lookahead&&(n.strstart=0,n.block_start=0,n.insert=0))),hn(t),0===t.avail_out))return n.last_flush=-1,ke}return e!==we?ke:n.wrap<=0?Se:(2===n.wrap?(pn(n,255&t.adler),pn(n,t.adler>>8&255),pn(n,t.adler>>16&255),pn(n,t.adler>>24&255),pn(n,255&t.total_in),pn(n,t.total_in>>8&255),pn(n,t.total_in>>16&255),pn(n,t.total_in>>24&255)):(vn(n,t.adler>>>16),vn(n,65535&t.adler)),hn(t),n.wrap>0&&(n.wrap=-n.wrap),0!==n.pending?ke:Se)},deflateEnd:function(t){if(On(t))return Ee;var e=t.state.status;return t.state=null,e===Ye?sn(t,xe):ke},deflateSetDictionary:function(t,e){var n=e.length;if(On(t))return Ee;var r=t.state,i=r.wrap;if(2===i||1===i&&r.status!==Ke||r.lookahead)return Ee;if(1===i&&(t.adler=se(t.adler,e,n,0)),r.wrap=0,n>=r.w_size){0===i&&(cn(r.head),r.strstart=0,r.block_start=0,r.insert=0);var o=new Uint8Array(r.w_size);o.set(e.subarray(n-r.w_size,n),0),e=o,n=r.w_size}var a=t.avail_in,s=t.next_in,u=t.input;for(t.avail_in=n,t.next_in=0,t.input=e,bn(r);r.lookahead>=He;){var c=r.strstart,l=r.lookahead-(He-1);do{r.ins_h=dn(r,r.ins_h,r.window[c+He-1]),r.prev[c&r.w_mask]=r.head[r.ins_h],r.head[r.ins_h]=c,c++}while(--l);r.strstart=c,r.lookahead=He-1,bn(r)}return r.strstart+=r.lookahead,r.block_start=r.strstart,r.insert=r.lookahead,r.lookahead=0,r.match_length=r.prev_length=He-1,r.match_available=0,t.next_in=s,t.input=u,t.avail_in=a,r.wrap=i,ke},deflateInfo:"pako deflate (from Nodeca project)"},Rn=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},jn=function(t){for(var e=Array.prototype.slice.call(arguments,1);e.length;){var n=e.shift();if(n){if("object"!==i(n))throw new TypeError(n+"must be non-object");for(var r in n)Rn(n,r)&&(t[r]=n[r])}}return t},Ln={assign:jn,flattenChunks:function(t){for(var e=0,n=0,r=t.length;n<r;n++)e+=t[n].length;for(var i=new Uint8Array(e),o=0,a=0,s=t.length;o<s;o++){var u=t[o];i.set(u,a),a+=u.length}return i}},Nn=!0;try{String.fromCharCode.apply(null,new Uint8Array(1))}catch(t){Nn=!1}for(var zn=new Uint8Array(256),Dn=0;Dn<256;Dn++)zn[Dn]=Dn>=252?6:Dn>=248?5:Dn>=240?4:Dn>=224?3:Dn>=192?2:1;zn[254]=zn[254]=1;var Un=function(t,e){if(e<65534&&t.subarray&&Nn)return String.fromCharCode.apply(null,t.length===e?t:t.subarray(0,e));for(var n="",r=0;r<e;r++)n+=String.fromCharCode(t[r]);return n},Jn={string2buf:function(t){if("function"==typeof TextEncoder&&TextEncoder.prototype.encode)return(new TextEncoder).encode(t);var e,n,r,i,o,a=t.length,s=0;for(i=0;i<a;i++)55296==(64512&(n=t.charCodeAt(i)))&&i+1<a&&56320==(64512&(r=t.charCodeAt(i+1)))&&(n=65536+(n-55296<<10)+(r-56320),i++),s+=n<128?1:n<2048?2:n<65536?3:4;for(e=new Uint8Array(s),o=0,i=0;o<s;i++)55296==(64512&(n=t.charCodeAt(i)))&&i+1<a&&56320==(64512&(r=t.charCodeAt(i+1)))&&(n=65536+(n-55296<<10)+(r-56320),i++),n<128?e[o++]=n:n<2048?(e[o++]=192|n>>>6,e[o++]=128|63&n):n<65536?(e[o++]=224|n>>>12,e[o++]=128|n>>>6&63,e[o++]=128|63&n):(e[o++]=240|n>>>18,e[o++]=128|n>>>12&63,e[o++]=128|n>>>6&63,e[o++]=128|63&n);return e},buf2string:function(t,e){var n,r,i=e||t.length;if("function"==typeof TextDecoder&&TextDecoder.prototype.decode)return(new TextDecoder).decode(t.subarray(0,e));var o=new Array(2*i);for(r=0,n=0;n<i;){var a=t[n++];if(a<128)o[r++]=a;else{var s=zn[a];if(s>4)o[r++]=65533,n+=s-1;else{for(a&=2===s?31:3===s?15:7;s>1&&n<i;)a=a<<6|63&t[n++],s--;s>1?o[r++]=65533:a<65536?o[r++]=a:(a-=65536,o[r++]=55296|a>>10&1023,o[r++]=56320|1023&a)}}}return Un(o,r)},utf8border:function(t,e){(e=e||t.length)>t.length&&(e=t.length);for(var n=e-1;n>=0&&128==(192&t[n]);)n--;return n<0||0===n?e:n+zn[t[n]]>e?n:e}};function Bn(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}var qn=Bn,Hn=Object.prototype.toString,Mn=de.Z_NO_FLUSH,Zn=de.Z_SYNC_FLUSH,Fn=de.Z_FULL_FLUSH,Kn=de.Z_FINISH,Vn=de.Z_OK,Wn=de.Z_STREAM_END,Xn=de.Z_DEFAULT_COMPRESSION,Qn=de.Z_DEFAULT_STRATEGY,$n=de.Z_DEFLATED;function Yn(t){this.options=Ln.assign({level:Xn,method:$n,chunkSize:16384,windowBits:15,memLevel:8,strategy:Qn},t||{});var e=this.options;e.raw&&e.windowBits>0?e.windowBits=-e.windowBits:e.gzip&&e.windowBits>0&&e.windowBits<16&&(e.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new qn,this.strm.avail_out=0;var n=Pn.deflateInit2(this.strm,e.level,e.method,e.windowBits,e.memLevel,e.strategy);if(n!==Vn)throw new Error(le[n]);if(e.header&&Pn.deflateSetHeader(this.strm,e.header),e.dictionary){var r;if(r="string"==typeof e.dictionary?Jn.string2buf(e.dictionary):"[object ArrayBuffer]"===Hn.call(e.dictionary)?new Uint8Array(e.dictionary):e.dictionary,(n=Pn.deflateSetDictionary(this.strm,r))!==Vn)throw new Error(le[n]);this._dict_set=!0}}function tr(t,e){var n=new Yn(e);if(n.push(t,!0),n.err)throw n.msg||le[n.err];return n.result}function er(t,e){return(e=e||{}).raw=!0,tr(t,e)}function nr(t,e){return(e=e||{}).gzip=!0,tr(t,e)}Yn.prototype.push=function(t,e){var n,r,i=this.strm,o=this.options.chunkSize;if(this.ended)return!1;for(r=e===~~e?e:!0===e?Kn:Mn,"string"==typeof t?i.input=Jn.string2buf(t):"[object ArrayBuffer]"===Hn.call(t)?i.input=new Uint8Array(t):i.input=t,i.next_in=0,i.avail_in=i.input.length;;)if(0===i.avail_out&&(i.output=new Uint8Array(o),i.next_out=0,i.avail_out=o),(r===Zn||r===Fn)&&i.avail_out<=6)this.onData(i.output.subarray(0,i.next_out)),i.avail_out=0;else{if((n=Pn.deflate(i,r))===Wn)return i.next_out>0&&this.onData(i.output.subarray(0,i.next_out)),n=Pn.deflateEnd(this.strm),this.onEnd(n),this.ended=!0,n===Vn;if(0!==i.avail_out){if(r>0&&i.next_out>0)this.onData(i.output.subarray(0,i.next_out)),i.avail_out=0;else if(0===i.avail_in)break}else this.onData(i.output)}return!0},Yn.prototype.onData=function(t){this.chunks.push(t)},Yn.prototype.onEnd=function(t){t===Vn&&(this.result=Ln.flattenChunks(this.chunks)),this.chunks=[],this.err=t,this.msg=this.strm.msg};var rr={Deflate:Yn,deflate:tr,deflateRaw:er,gzip:nr,constants:de},ir=16209,or=16191,ar=function(t,e){var n,r,i,o,a,s,u,c,l,d,h,f,p,v,g,m,b,_,w,y,k,S,E,x,A=t.state;n=t.next_in,E=t.input,r=n+(t.avail_in-5),i=t.next_out,x=t.output,o=i-(e-t.avail_out),a=i+(t.avail_out-257),s=A.dmax,u=A.wsize,c=A.whave,l=A.wnext,d=A.window,h=A.hold,f=A.bits,p=A.lencode,v=A.distcode,g=(1<<A.lenbits)-1,m=(1<<A.distbits)-1;t:do{f<15&&(h+=E[n++]<<f,f+=8,h+=E[n++]<<f,f+=8),b=p[h&g];e:for(;;){if(h>>>=_=b>>>24,f-=_,0==(_=b>>>16&255))x[i++]=65535&b;else{if(!(16&_)){if(0==(64&_)){b=p[(65535&b)+(h&(1<<_)-1)];continue e}if(32&_){A.mode=or;break t}t.msg="invalid literal/length code",A.mode=ir;break t}w=65535&b,(_&=15)&&(f<_&&(h+=E[n++]<<f,f+=8),w+=h&(1<<_)-1,h>>>=_,f-=_),f<15&&(h+=E[n++]<<f,f+=8,h+=E[n++]<<f,f+=8),b=v[h&m];n:for(;;){if(h>>>=_=b>>>24,f-=_,!(16&(_=b>>>16&255))){if(0==(64&_)){b=v[(65535&b)+(h&(1<<_)-1)];continue n}t.msg="invalid distance code",A.mode=ir;break t}if(y=65535&b,f<(_&=15)&&(h+=E[n++]<<f,(f+=8)<_&&(h+=E[n++]<<f,f+=8)),(y+=h&(1<<_)-1)>s){t.msg="invalid distance too far back",A.mode=ir;break t}if(h>>>=_,f-=_,y>(_=i-o)){if((_=y-_)>c&&A.sane){t.msg="invalid distance too far back",A.mode=ir;break t}if(k=0,S=d,0===l){if(k+=u-_,_<w){w-=_;do{x[i++]=d[k++]}while(--_);k=i-y,S=x}}else if(l<_){if(k+=u+l-_,(_-=l)<w){w-=_;do{x[i++]=d[k++]}while(--_);if(k=0,l<w){w-=_=l;do{x[i++]=d[k++]}while(--_);k=i-y,S=x}}}else if(k+=l-_,_<w){w-=_;do{x[i++]=d[k++]}while(--_);k=i-y,S=x}for(;w>2;)x[i++]=S[k++],x[i++]=S[k++],x[i++]=S[k++],w-=3;w&&(x[i++]=S[k++],w>1&&(x[i++]=S[k++]))}else{k=i-y;do{x[i++]=x[k++],x[i++]=x[k++],x[i++]=x[k++],w-=3}while(w>2);w&&(x[i++]=x[k++],w>1&&(x[i++]=x[k++]))}break}}break}}while(n<r&&i<a);n-=w=f>>3,h&=(1<<(f-=w<<3))-1,t.next_in=n,t.next_out=i,t.avail_in=n<r?r-n+5:5-(n-r),t.avail_out=i<a?a-i+257:257-(i-a),A.hold=h,A.bits=f},sr=15,ur=852,cr=592,lr=0,dr=1,hr=2,fr=new Uint16Array([3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0]),pr=new Uint8Array([16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78]),vr=new Uint16Array([1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0]),gr=new Uint8Array([16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64]),mr=function(t,e,n,r,i,o,a,s){var u,c,l,d,h,f,p,v,g,m=s.bits,b=0,_=0,w=0,y=0,k=0,S=0,E=0,x=0,A=0,T=0,O=null,C=new Uint16Array(sr+1),I=new Uint16Array(sr+1),G=null;for(b=0;b<=sr;b++)C[b]=0;for(_=0;_<r;_++)C[e[n+_]]++;for(k=m,y=sr;y>=1&&0===C[y];y--);if(k>y&&(k=y),0===y)return i[o++]=20971520,i[o++]=20971520,s.bits=1,0;for(w=1;w<y&&0===C[w];w++);for(k<w&&(k=w),x=1,b=1;b<=sr;b++)if(x<<=1,(x-=C[b])<0)return-1;if(x>0&&(t===lr||1!==y))return-1;for(I[1]=0,b=1;b<sr;b++)I[b+1]=I[b]+C[b];for(_=0;_<r;_++)0!==e[n+_]&&(a[I[e[n+_]]++]=_);if(t===lr?(O=G=a,f=20):t===dr?(O=fr,G=pr,f=257):(O=vr,G=gr,f=0),T=0,_=0,b=w,h=o,S=k,E=0,l=-1,d=(A=1<<k)-1,t===dr&&A>ur||t===hr&&A>cr)return 1;for(;;){p=b-E,a[_]+1<f?(v=0,g=a[_]):a[_]>=f?(v=G[a[_]-f],g=O[a[_]-f]):(v=96,g=0),u=1<<b-E,w=c=1<<S;do{i[h+(T>>E)+(c-=u)]=p<<24|v<<16|g|0}while(0!==c);for(u=1<<b-1;T&u;)u>>=1;if(0!==u?(T&=u-1,T+=u):T=0,_++,0==--C[b]){if(b===y)break;b=e[n+a[_]]}if(b>k&&(T&d)!==l){for(0===E&&(E=k),h+=w,x=1<<(S=b-E);S+E<y&&!((x-=C[S+E])<=0);)S++,x<<=1;if(A+=1<<S,t===dr&&A>ur||t===hr&&A>cr)return 1;i[l=T&d]=k<<24|S<<16|h-o|0}}return 0!==T&&(i[h+T]=b-E<<24|64<<16|0),s.bits=k,0},br=0,_r=1,wr=2,yr=de.Z_FINISH,kr=de.Z_BLOCK,Sr=de.Z_TREES,Er=de.Z_OK,xr=de.Z_STREAM_END,Ar=de.Z_NEED_DICT,Tr=de.Z_STREAM_ERROR,Or=de.Z_DATA_ERROR,Cr=de.Z_MEM_ERROR,Ir=de.Z_BUF_ERROR,Gr=de.Z_DEFLATED,Pr=16180,Rr=16181,jr=16182,Lr=16183,Nr=16184,zr=16185,Dr=16186,Ur=16187,Jr=16188,Br=16189,qr=16190,Hr=16191,Mr=16192,Zr=16193,Fr=16194,Kr=16195,Vr=16196,Wr=16197,Xr=16198,Qr=16199,$r=16200,Yr=16201,ti=16202,ei=16203,ni=16204,ri=16205,ii=16206,oi=16207,ai=16208,si=16209,ui=16210,ci=16211,li=852,di=592,hi=15,fi=function(t){return(t>>>24&255)+(t>>>8&65280)+((65280&t)<<8)+((255&t)<<24)};function pi(){this.strm=null,this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new Uint16Array(320),this.work=new Uint16Array(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}var vi,gi,mi=function(t){if(!t)return 1;var e=t.state;return!e||e.strm!==t||e.mode<Pr||e.mode>ci?1:0},bi=function(t){if(mi(t))return Tr;var e=t.state;return t.total_in=t.total_out=e.total=0,t.msg="",e.wrap&&(t.adler=1&e.wrap),e.mode=Pr,e.last=0,e.havedict=0,e.flags=-1,e.dmax=32768,e.head=null,e.hold=0,e.bits=0,e.lencode=e.lendyn=new Int32Array(li),e.distcode=e.distdyn=new Int32Array(di),e.sane=1,e.back=-1,Er},_i=function(t){if(mi(t))return Tr;var e=t.state;return e.wsize=0,e.whave=0,e.wnext=0,bi(t)},wi=function(t,e){var n;if(mi(t))return Tr;var r=t.state;return e<0?(n=0,e=-e):(n=5+(e>>4),e<48&&(e&=15)),e&&(e<8||e>15)?Tr:(null!==r.window&&r.wbits!==e&&(r.window=null),r.wrap=n,r.wbits=e,_i(t))},yi=function(t,e){if(!t)return Tr;var n=new pi;t.state=n,n.strm=t,n.window=null,n.mode=Pr;var r=wi(t,e);return r!==Er&&(t.state=null),r},ki=!0,Si=function(t){if(ki){vi=new Int32Array(512),gi=new Int32Array(32);for(var e=0;e<144;)t.lens[e++]=8;for(;e<256;)t.lens[e++]=9;for(;e<280;)t.lens[e++]=7;for(;e<288;)t.lens[e++]=8;for(mr(_r,t.lens,0,288,vi,0,t.work,{bits:9}),e=0;e<32;)t.lens[e++]=5;mr(wr,t.lens,0,32,gi,0,t.work,{bits:5}),ki=!1}t.lencode=vi,t.lenbits=9,t.distcode=gi,t.distbits=5},Ei=function(t,e,n,r){var i,o=t.state;return null===o.window&&(o.wsize=1<<o.wbits,o.wnext=0,o.whave=0,o.window=new Uint8Array(o.wsize)),r>=o.wsize?(o.window.set(e.subarray(n-o.wsize,n),0),o.wnext=0,o.whave=o.wsize):((i=o.wsize-o.wnext)>r&&(i=r),o.window.set(e.subarray(n-r,n-r+i),o.wnext),(r-=i)?(o.window.set(e.subarray(n-r,n),0),o.wnext=r,o.whave=o.wsize):(o.wnext+=i,o.wnext===o.wsize&&(o.wnext=0),o.whave<o.wsize&&(o.whave+=i))),0},xi={inflateReset:_i,inflateReset2:wi,inflateResetKeep:bi,inflateInit:function(t){return yi(t,hi)},inflateInit2:yi,inflate:function(t,e){var n,r,i,o,a,s,u,c,l,d,h,f,p,v,g,m,b,_,w,y,k,S,E,x,A=0,T=new Uint8Array(4),O=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]);if(mi(t)||!t.output||!t.input&&0!==t.avail_in)return Tr;(n=t.state).mode===Hr&&(n.mode=Mr),a=t.next_out,i=t.output,u=t.avail_out,o=t.next_in,r=t.input,s=t.avail_in,c=n.hold,l=n.bits,d=s,h=u,S=Er;t:for(;;)switch(n.mode){case Pr:if(0===n.wrap){n.mode=Mr;break}for(;l<16;){if(0===s)break t;s--,c+=r[o++]<<l,l+=8}if(2&n.wrap&&35615===c){0===n.wbits&&(n.wbits=15),n.check=0,T[0]=255&c,T[1]=c>>>8&255,n.check=ce(n.check,T,2,0),c=0,l=0,n.mode=Rr;break}if(n.head&&(n.head.done=!1),!(1&n.wrap)||(((255&c)<<8)+(c>>8))%31){t.msg="incorrect header check",n.mode=si;break}if((15&c)!==Gr){t.msg="unknown compression method",n.mode=si;break}if(l-=4,k=8+(15&(c>>>=4)),0===n.wbits&&(n.wbits=k),k>15||k>n.wbits){t.msg="invalid window size",n.mode=si;break}n.dmax=1<<n.wbits,n.flags=0,t.adler=n.check=1,n.mode=512&c?Br:Hr,c=0,l=0;break;case Rr:for(;l<16;){if(0===s)break t;s--,c+=r[o++]<<l,l+=8}if(n.flags=c,(255&n.flags)!==Gr){t.msg="unknown compression method",n.mode=si;break}if(57344&n.flags){t.msg="unknown header flags set",n.mode=si;break}n.head&&(n.head.text=c>>8&1),512&n.flags&&4&n.wrap&&(T[0]=255&c,T[1]=c>>>8&255,n.check=ce(n.check,T,2,0)),c=0,l=0,n.mode=jr;case jr:for(;l<32;){if(0===s)break t;s--,c+=r[o++]<<l,l+=8}n.head&&(n.head.time=c),512&n.flags&&4&n.wrap&&(T[0]=255&c,T[1]=c>>>8&255,T[2]=c>>>16&255,T[3]=c>>>24&255,n.check=ce(n.check,T,4,0)),c=0,l=0,n.mode=Lr;case Lr:for(;l<16;){if(0===s)break t;s--,c+=r[o++]<<l,l+=8}n.head&&(n.head.xflags=255&c,n.head.os=c>>8),512&n.flags&&4&n.wrap&&(T[0]=255&c,T[1]=c>>>8&255,n.check=ce(n.check,T,2,0)),c=0,l=0,n.mode=Nr;case Nr:if(1024&n.flags){for(;l<16;){if(0===s)break t;s--,c+=r[o++]<<l,l+=8}n.length=c,n.head&&(n.head.extra_len=c),512&n.flags&&4&n.wrap&&(T[0]=255&c,T[1]=c>>>8&255,n.check=ce(n.check,T,2,0)),c=0,l=0}else n.head&&(n.head.extra=null);n.mode=zr;case zr:if(1024&n.flags&&((f=n.length)>s&&(f=s),f&&(n.head&&(k=n.head.extra_len-n.length,n.head.extra||(n.head.extra=new Uint8Array(n.head.extra_len)),n.head.extra.set(r.subarray(o,o+f),k)),512&n.flags&&4&n.wrap&&(n.check=ce(n.check,r,f,o)),s-=f,o+=f,n.length-=f),n.length))break t;n.length=0,n.mode=Dr;case Dr:if(2048&n.flags){if(0===s)break t;f=0;do{k=r[o+f++],n.head&&k&&n.length<65536&&(n.head.name+=String.fromCharCode(k))}while(k&&f<s);if(512&n.flags&&4&n.wrap&&(n.check=ce(n.check,r,f,o)),s-=f,o+=f,k)break t}else n.head&&(n.head.name=null);n.length=0,n.mode=Ur;case Ur:if(4096&n.flags){if(0===s)break t;f=0;do{k=r[o+f++],n.head&&k&&n.length<65536&&(n.head.comment+=String.fromCharCode(k))}while(k&&f<s);if(512&n.flags&&4&n.wrap&&(n.check=ce(n.check,r,f,o)),s-=f,o+=f,k)break t}else n.head&&(n.head.comment=null);n.mode=Jr;case Jr:if(512&n.flags){for(;l<16;){if(0===s)break t;s--,c+=r[o++]<<l,l+=8}if(4&n.wrap&&c!==(65535&n.check)){t.msg="header crc mismatch",n.mode=si;break}c=0,l=0}n.head&&(n.head.hcrc=n.flags>>9&1,n.head.done=!0),t.adler=n.check=0,n.mode=Hr;break;case Br:for(;l<32;){if(0===s)break t;s--,c+=r[o++]<<l,l+=8}t.adler=n.check=fi(c),c=0,l=0,n.mode=qr;case qr:if(0===n.havedict)return t.next_out=a,t.avail_out=u,t.next_in=o,t.avail_in=s,n.hold=c,n.bits=l,Ar;t.adler=n.check=1,n.mode=Hr;case Hr:if(e===kr||e===Sr)break t;case Mr:if(n.last){c>>>=7&l,l-=7&l,n.mode=ii;break}for(;l<3;){if(0===s)break t;s--,c+=r[o++]<<l,l+=8}switch(n.last=1&c,l-=1,3&(c>>>=1)){case 0:n.mode=Zr;break;case 1:if(Si(n),n.mode=Qr,e===Sr){c>>>=2,l-=2;break t}break;case 2:n.mode=Vr;break;case 3:t.msg="invalid block type",n.mode=si}c>>>=2,l-=2;break;case Zr:for(c>>>=7&l,l-=7&l;l<32;){if(0===s)break t;s--,c+=r[o++]<<l,l+=8}if((65535&c)!=(c>>>16^65535)){t.msg="invalid stored block lengths",n.mode=si;break}if(n.length=65535&c,c=0,l=0,n.mode=Fr,e===Sr)break t;case Fr:n.mode=Kr;case Kr:if(f=n.length){if(f>s&&(f=s),f>u&&(f=u),0===f)break t;i.set(r.subarray(o,o+f),a),s-=f,o+=f,u-=f,a+=f,n.length-=f;break}n.mode=Hr;break;case Vr:for(;l<14;){if(0===s)break t;s--,c+=r[o++]<<l,l+=8}if(n.nlen=257+(31&c),c>>>=5,l-=5,n.ndist=1+(31&c),c>>>=5,l-=5,n.ncode=4+(15&c),c>>>=4,l-=4,n.nlen>286||n.ndist>30){t.msg="too many length or distance symbols",n.mode=si;break}n.have=0,n.mode=Wr;case Wr:for(;n.have<n.ncode;){for(;l<3;){if(0===s)break t;s--,c+=r[o++]<<l,l+=8}n.lens[O[n.have++]]=7&c,c>>>=3,l-=3}for(;n.have<19;)n.lens[O[n.have++]]=0;if(n.lencode=n.lendyn,n.lenbits=7,E={bits:n.lenbits},S=mr(br,n.lens,0,19,n.lencode,0,n.work,E),n.lenbits=E.bits,S){t.msg="invalid code lengths set",n.mode=si;break}n.have=0,n.mode=Xr;case Xr:for(;n.have<n.nlen+n.ndist;){for(;m=(A=n.lencode[c&(1<<n.lenbits)-1])>>>16&255,b=65535&A,!((g=A>>>24)<=l);){if(0===s)break t;s--,c+=r[o++]<<l,l+=8}if(b<16)c>>>=g,l-=g,n.lens[n.have++]=b;else{if(16===b){for(x=g+2;l<x;){if(0===s)break t;s--,c+=r[o++]<<l,l+=8}if(c>>>=g,l-=g,0===n.have){t.msg="invalid bit length repeat",n.mode=si;break}k=n.lens[n.have-1],f=3+(3&c),c>>>=2,l-=2}else if(17===b){for(x=g+3;l<x;){if(0===s)break t;s--,c+=r[o++]<<l,l+=8}l-=g,k=0,f=3+(7&(c>>>=g)),c>>>=3,l-=3}else{for(x=g+7;l<x;){if(0===s)break t;s--,c+=r[o++]<<l,l+=8}l-=g,k=0,f=11+(127&(c>>>=g)),c>>>=7,l-=7}if(n.have+f>n.nlen+n.ndist){t.msg="invalid bit length repeat",n.mode=si;break}for(;f--;)n.lens[n.have++]=k}}if(n.mode===si)break;if(0===n.lens[256]){t.msg="invalid code -- missing end-of-block",n.mode=si;break}if(n.lenbits=9,E={bits:n.lenbits},S=mr(_r,n.lens,0,n.nlen,n.lencode,0,n.work,E),n.lenbits=E.bits,S){t.msg="invalid literal/lengths set",n.mode=si;break}if(n.distbits=6,n.distcode=n.distdyn,E={bits:n.distbits},S=mr(wr,n.lens,n.nlen,n.ndist,n.distcode,0,n.work,E),n.distbits=E.bits,S){t.msg="invalid distances set",n.mode=si;break}if(n.mode=Qr,e===Sr)break t;case Qr:n.mode=$r;case $r:if(s>=6&&u>=258){t.next_out=a,t.avail_out=u,t.next_in=o,t.avail_in=s,n.hold=c,n.bits=l,ar(t,h),a=t.next_out,i=t.output,u=t.avail_out,o=t.next_in,r=t.input,s=t.avail_in,c=n.hold,l=n.bits,n.mode===Hr&&(n.back=-1);break}for(n.back=0;m=(A=n.lencode[c&(1<<n.lenbits)-1])>>>16&255,b=65535&A,!((g=A>>>24)<=l);){if(0===s)break t;s--,c+=r[o++]<<l,l+=8}if(m&&0==(240&m)){for(_=g,w=m,y=b;m=(A=n.lencode[y+((c&(1<<_+w)-1)>>_)])>>>16&255,b=65535&A,!(_+(g=A>>>24)<=l);){if(0===s)break t;s--,c+=r[o++]<<l,l+=8}c>>>=_,l-=_,n.back+=_}if(c>>>=g,l-=g,n.back+=g,n.length=b,0===m){n.mode=ri;break}if(32&m){n.back=-1,n.mode=Hr;break}if(64&m){t.msg="invalid literal/length code",n.mode=si;break}n.extra=15&m,n.mode=Yr;case Yr:if(n.extra){for(x=n.extra;l<x;){if(0===s)break t;s--,c+=r[o++]<<l,l+=8}n.length+=c&(1<<n.extra)-1,c>>>=n.extra,l-=n.extra,n.back+=n.extra}n.was=n.length,n.mode=ti;case ti:for(;m=(A=n.distcode[c&(1<<n.distbits)-1])>>>16&255,b=65535&A,!((g=A>>>24)<=l);){if(0===s)break t;s--,c+=r[o++]<<l,l+=8}if(0==(240&m)){for(_=g,w=m,y=b;m=(A=n.distcode[y+((c&(1<<_+w)-1)>>_)])>>>16&255,b=65535&A,!(_+(g=A>>>24)<=l);){if(0===s)break t;s--,c+=r[o++]<<l,l+=8}c>>>=_,l-=_,n.back+=_}if(c>>>=g,l-=g,n.back+=g,64&m){t.msg="invalid distance code",n.mode=si;break}n.offset=b,n.extra=15&m,n.mode=ei;case ei:if(n.extra){for(x=n.extra;l<x;){if(0===s)break t;s--,c+=r[o++]<<l,l+=8}n.offset+=c&(1<<n.extra)-1,c>>>=n.extra,l-=n.extra,n.back+=n.extra}if(n.offset>n.dmax){t.msg="invalid distance too far back",n.mode=si;break}n.mode=ni;case ni:if(0===u)break t;if(f=h-u,n.offset>f){if((f=n.offset-f)>n.whave&&n.sane){t.msg="invalid distance too far back",n.mode=si;break}f>n.wnext?(f-=n.wnext,p=n.wsize-f):p=n.wnext-f,f>n.length&&(f=n.length),v=n.window}else v=i,p=a-n.offset,f=n.length;f>u&&(f=u),u-=f,n.length-=f;do{i[a++]=v[p++]}while(--f);0===n.length&&(n.mode=$r);break;case ri:if(0===u)break t;i[a++]=n.length,u--,n.mode=$r;break;case ii:if(n.wrap){for(;l<32;){if(0===s)break t;s--,c|=r[o++]<<l,l+=8}if(h-=u,t.total_out+=h,n.total+=h,4&n.wrap&&h&&(t.adler=n.check=n.flags?ce(n.check,i,h,a-h):se(n.check,i,h,a-h)),h=u,4&n.wrap&&(n.flags?c:fi(c))!==n.check){t.msg="incorrect data check",n.mode=si;break}c=0,l=0}n.mode=oi;case oi:if(n.wrap&&n.flags){for(;l<32;){if(0===s)break t;s--,c+=r[o++]<<l,l+=8}if(4&n.wrap&&c!==(4294967295&n.total)){t.msg="incorrect length check",n.mode=si;break}c=0,l=0}n.mode=ai;case ai:S=xr;break t;case si:S=Or;break t;case ui:return Cr;default:return Tr}return t.next_out=a,t.avail_out=u,t.next_in=o,t.avail_in=s,n.hold=c,n.bits=l,(n.wsize||h!==t.avail_out&&n.mode<si&&(n.mode<ii||e!==yr))&&Ei(t,t.output,t.next_out,h-t.avail_out),d-=t.avail_in,h-=t.avail_out,t.total_in+=d,t.total_out+=h,n.total+=h,4&n.wrap&&h&&(t.adler=n.check=n.flags?ce(n.check,i,h,t.next_out-h):se(n.check,i,h,t.next_out-h)),t.data_type=n.bits+(n.last?64:0)+(n.mode===Hr?128:0)+(n.mode===Qr||n.mode===Fr?256:0),(0===d&&0===h||e===yr)&&S===Er&&(S=Ir),S},inflateEnd:function(t){if(mi(t))return Tr;var e=t.state;return e.window&&(e.window=null),t.state=null,Er},inflateGetHeader:function(t,e){if(mi(t))return Tr;var n=t.state;return 0==(2&n.wrap)?Tr:(n.head=e,e.done=!1,Er)},inflateSetDictionary:function(t,e){var n,r=e.length;return mi(t)||0!==(n=t.state).wrap&&n.mode!==qr?Tr:n.mode===qr&&se(1,e,r,0)!==n.check?Or:Ei(t,e,r,r)?(n.mode=ui,Cr):(n.havedict=1,Er)},inflateInfo:"pako inflate (from Nodeca project)"};function Ai(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}var Ti=Ai,Oi=Object.prototype.toString,Ci=de.Z_NO_FLUSH,Ii=de.Z_FINISH,Gi=de.Z_OK,Pi=de.Z_STREAM_END,Ri=de.Z_NEED_DICT,ji=de.Z_STREAM_ERROR,Li=de.Z_DATA_ERROR,Ni=de.Z_MEM_ERROR;function zi(t){this.options=Ln.assign({chunkSize:65536,windowBits:15,to:""},t||{});var e=this.options;e.raw&&e.windowBits>=0&&e.windowBits<16&&(e.windowBits=-e.windowBits,0===e.windowBits&&(e.windowBits=-15)),!(e.windowBits>=0&&e.windowBits<16)||t&&t.windowBits||(e.windowBits+=32),e.windowBits>15&&e.windowBits<48&&0==(15&e.windowBits)&&(e.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new qn,this.strm.avail_out=0;var n=xi.inflateInit2(this.strm,e.windowBits);if(n!==Gi)throw new Error(le[n]);if(this.header=new Ti,xi.inflateGetHeader(this.strm,this.header),e.dictionary&&("string"==typeof e.dictionary?e.dictionary=Jn.string2buf(e.dictionary):"[object ArrayBuffer]"===Oi.call(e.dictionary)&&(e.dictionary=new Uint8Array(e.dictionary)),e.raw&&(n=xi.inflateSetDictionary(this.strm,e.dictionary))!==Gi))throw new Error(le[n])}function Di(t,e){var n=new zi(e);if(n.push(t),n.err)throw n.msg||le[n.err];return n.result}function Ui(t,e){return(e=e||{}).raw=!0,Di(t,e)}zi.prototype.push=function(t,e){var n,r,i,o=this.strm,a=this.options.chunkSize,s=this.options.dictionary;if(this.ended)return!1;for(r=e===~~e?e:!0===e?Ii:Ci,"[object ArrayBuffer]"===Oi.call(t)?o.input=new Uint8Array(t):o.input=t,o.next_in=0,o.avail_in=o.input.length;;){for(0===o.avail_out&&(o.output=new Uint8Array(a),o.next_out=0,o.avail_out=a),(n=xi.inflate(o,r))===Ri&&s&&((n=xi.inflateSetDictionary(o,s))===Gi?n=xi.inflate(o,r):n===Li&&(n=Ri));o.avail_in>0&&n===Pi&&o.state.wrap>0&&0!==t[o.next_in];)xi.inflateReset(o),n=xi.inflate(o,r);switch(n){case ji:case Li:case Ri:case Ni:return this.onEnd(n),this.ended=!0,!1}if(i=o.avail_out,o.next_out&&(0===o.avail_out||n===Pi))if("string"===this.options.to){var u=Jn.utf8border(o.output,o.next_out),c=o.next_out-u,l=Jn.buf2string(o.output,u);o.next_out=c,o.avail_out=a-c,c&&o.output.set(o.output.subarray(u,u+c),0),this.onData(l)}else this.onData(o.output.length===o.next_out?o.output:o.output.subarray(0,o.next_out));if(n!==Gi||0!==i){if(n===Pi)return n=xi.inflateEnd(this.strm),this.onEnd(n),this.ended=!0,!0;if(0===o.avail_in)break}}return!0},zi.prototype.onData=function(t){this.chunks.push(t)},zi.prototype.onEnd=function(t){t===Gi&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=Ln.flattenChunks(this.chunks)),this.chunks=[],this.err=t,this.msg=this.strm.msg};var Ji,Bi,qi,Hi,Mi,Zi,Fi,Ki,Vi,Wi,Xi,Qi,$i,Yi,to,eo,no,ro,io,oo,ao,so={Inflate:zi,inflate:Di,inflateRaw:Ui,ungzip:Di,constants:de},uo=rr.Deflate,co=rr.deflate,lo=rr.deflateRaw,ho=rr.gzip,fo=so.Inflate,po=so.inflate,vo=so.inflateRaw,go=so.ungzip,mo={Deflate:uo,deflate:co,deflateRaw:lo,gzip:ho,Inflate:fo,inflate:po,inflateRaw:vo,ungzip:go,constants:de};class bo{constructor(t,e,n,i=V.WEB){Ji.add(this),Bi.set(this,void 0),qi.set(this,void 0),Hi.set(this,void 0),Mi.set(this,void 0),Zi.set(this,void 0),Fi.set(this,void 0),Ki.set(this,void 0),Vi.set(this,void 0),Wi.set(this,void 0),Xi.set(this,1e4),Qi.set(this,void 0),r(this,Bi,[],"f"),r(this,Hi,t,"f"),r(this,qi,e,"f"),r(this,Mi,!1,"f"),r(this,Zi,!1,"f"),r(this,Ki,void 0,"f"),r(this,Vi,!0,"f"),r(this,Wi,!1,"f"),r(this,Fi,!1,"f"),r(this,Xi,null!=n?n:1e4,"f"),r(this,Qi,i,"f")}send(t){const n=t;return Reflect.deleteProperty(n,"#sdk_type"),Reflect.deleteProperty(n,"#ts_s"),!(!E.dataSize(n,128)||(e(this,Bi,"f").push(n),e(this,qi,"f")&&e(this,Ji,"m",no).call(this),e(this,Vi,"f")&&(r(this,Vi,!1,"f"),e(this,Ji,"m",no).call(this)),e(this,Wi,"f")&&e(this,Ji,"m",no).call(this),e(this,Bi,"f").length>bo.maxCacheSize&&e(this,Bi,"f").shift(),e(this,Ji,"m",to).call(this),!e(this,Zi,"f")&&!e(this,Fi,"f")&&e(this,Bi,"f").length>=bo.maxDataSize&&(e(this,Ji,"m",no).call(this),0)))}flush(){r(this,Mi,!0,"f"),e(this,Fi,"f")||e(this,Ji,"m",no).call(this)}}Bi=new WeakMap,qi=new WeakMap,Hi=new WeakMap,Mi=new WeakMap,Zi=new WeakMap,Fi=new WeakMap,Ki=new WeakMap,Vi=new WeakMap,Wi=new WeakMap,Xi=new WeakMap,Qi=new WeakMap,Ji=new WeakSet,$i=function(t){return mo.gzip(t)},Yi=function(){clearTimeout(e(this,Ki,"f")),r(this,Wi,!1,"f"),r(this,Ki,void 0,"f")},to=function(){e(this,Ki,"f")||r(this,Ki,setTimeout((()=>{e(this,Ji,"m",Yi).call(this),r(this,Wi,!0,"f"),e(this,Ji,"m",no).call(this)}),e(this,Xi,"f")),"f")},eo=async function(){const t=e(this,Bi,"f").slice(0,bo.maxReportNum),n={"#ts_s":Date.now(),"#sdk_type":e(this,Qi,"f")===V.WEB?"Web JS":"JavaScript",data:t};return[await e(this,Ji,"m",$i).call(this,JSON.stringify(n)),t.length]},no=async function t(n=0){var i,o;if(e(this,Zi,"f"))return;if(!(null===(i=e(this,Bi,"f"))||void 0===i?void 0:i.length))return void r(this,Mi,!1,"f");r(this,Zi,!0,"f"),e(this,Ji,"m",Yi).call(this);const a=[1,4,9,16,25,36,49,64,81,100],[s,u]=await e(this,Ji,"m",eo).call(this),c=null!==(o=a[n])&&void 0!==o?o:a.at(-1);return e(this,Ji,"m",ro).call(this,s).then((()=>{var n;e(this,Bi,"f").splice(0,u),r(this,Zi,!1,"f"),r(this,Fi,!1,"f"),(e(this,Mi,"f")||(null===(n=e(this,Bi,"f"))||void 0===n?void 0:n.length)>=bo.maxDataSize||e(this,qi,"f"))&&e(this,Ji,"m",t).call(this),e(this,Ji,"m",Yi).call(this),e(this,Ji,"m",to).call(this)})).catch((()=>{e(this,Ji,"m",Yi).call(this),r(this,Fi,!0,"f"),r(this,Ki,setTimeout((()=>{e(this,Ji,"m",Yi).call(this),e(this,Ji,"m",t).call(this,n+1)}),1e3*c),"f"),r(this,Zi,!1,"f")}))},ro=async function(t){return E.dataSize(t,63),fetch(`${e(this,Hi,"f")}/batch_event`,{method:"POST",mode:"cors",cache:"no-cache",credentials:"omit",keepalive:!1,headers:{"Content-Type":"application/json","Content-Encoding":"gzip"},redirect:"follow",referrerPolicy:"same-origin",body:t})},bo.maxCacheSize=1e3,bo.maxReportNum=100,bo.maxDataSize=50;class _o{constructor(t){var e;this._hookListener={},this._argSize=null!==(e=null==t?void 0:t.length)&&void 0!==e?e:0}call(t){const e=Object.values(this._hookListener).flat();for(const t of e)t(null)}tap(t,e){var n,r,i;(null===(n=this._hookListener)||void 0===n?void 0:n[t])?null===(i=null===(r=this._hookListener)||void 0===r?void 0:r[t])||void 0===i||i.push(e):this._hookListener[t]=[e]}size(t){var e,n,r;return null!==(r=null===(n=null===(e=this._hookListener)||void 0===e?void 0:e[t])||void 0===n?void 0:n.length)&&void 0!==r?r:0}}class wo{constructor(){this.hook={init:new _o(["arg1"]),pageShow:new _o(["arg1"]),hashChange:new _o(["arg1"]),pushState:new _o(["arg1"]),replaceState:new _o(["arg1"]),changeState:new _o(["arg1"]),pageHide:new _o(["arg1"]),exception:new _o(["arg1"]),scopeChange:new _o(["arg1"]),beforeTrace:new _o(["arg1"])},this._initHook()}_initHook(){this._pageShow(),this._hashChange(),this._pageHide(),this._changeState()}_pageShow(){addEventListener("pageshow",(()=>{this.hook.pageShow.call({})}))}_changeState(){function t(t){const e=history[t];return(...n)=>{const r=new Event(t);return dispatchEvent(r),e.apply(history,n)}}const e=()=>{setTimeout((()=>{this.hook.changeState.call({})}),0)};history.pushState=t("pushState"),history.replaceState=t("replaceState"),addEventListener("pushState",e),addEventListener("replaceState",e)}_hashChange(){addEventListener("hashchange",(()=>{this.hook.hashChange.call({})}))}_pageHide(t){addEventListener("pagehide",(()=>{this.hook.pageHide.call({})}))}exception(){this.hook.exception.call({})}scopeChange(){this.hook.scopeChange.call({})}beforeTrace(){this.hook.beforeTrace.call({})}}class yo{constructor(t,n){io.add(this),this._options=t,this._trace=n,this._scope=n.getScope(),this._hook=(new wo).hook,this._seq=1;const r=new bo(e(this,io,"m",ao).call(this),!!(null==t?void 0:t.enableRealTimeSend),null==t?void 0:t.sendTime,null==t?void 0:t.sdkType);this._report=r}setPresetProperties(t){var e;return!!t&&!!E.presetParams(t)&&(null===(e=this._scope)||void 0===e||e.setPreset(t),!0)}setGlobalProperties(t){var e,n;return!!t&&!!E.params(t)&&(null===(n=null===(e=this._scope)||void 0===e?void 0:e.setGlobal)||void 0===n||n.call(e,this._options.appId,t),!0)}unsetGlobalProperties(t){var e,n,r;return!(!t||!Array.isArray(t))&&null!==(r=null===(n=null===(e=this._scope)||void 0===e?void 0:e.unsetGlobal)||void 0===n?void 0:n.call(e,this._options.appId,t))&&void 0!==r&&r}clearGlobalProperties(){var t,e;null===(e=null===(t=this._scope)||void 0===t?void 0:t.clearGlobal)||void 0===e||e.call(t,this._options.appId)}event(t,n,r=!1){return!(!t||"string"!=typeof t||!r&&/^#/.test(t))&&e(this,io,"m",oo).call(this,t,Object.assign({},n))}rmNull(t){const e={};for(const n in t)Object.is(t[n],null)||(e[n]=t[n]);return e}setUser(t){var e,n,r;return!!E.keySize(t)&&(null!==(r=null===(n=null===(e=this._scope)||void 0===e?void 0:e.setUser)||void 0===n?void 0:n.call(e,t))&&void 0!==r&&r)}unsetUser(){var t,e;null===(e=null===(t=this._scope)||void 0===t?void 0:t.unsetUser)||void 0===e||e.call(t)}userLoginEvent(t,e){var n,r,i;if(!E.keySize(t)||!E.params(null!=e?e:{}))return!1;const o=null!==(i=null===(r=null===(n=this._scope)||void 0===n?void 0:n.setUser)||void 0===r?void 0:r.call(n,t))&&void 0!==i&&i;return o&&this.event("#user_login",Object.assign({},e),!0),o}setCharacter(t,e){var n,r,i;return!(!E.keySize(t)||!E.keySize(e))&&(null!==(i=null===(r=null===(n=this._scope)||void 0===n?void 0:n.setCharacter)||void 0===r?void 0:r.call(n,t,e))&&void 0!==i&&i)}unsetCharacter(){var t,e;null===(e=null===(t=this._scope)||void 0===t?void 0:t.unsetCharacter)||void 0===e||e.call(t)}characterLoginEvent(t,e,n){var r,i,o;if(!E.keySize(t)||!E.keySize(e)||!E.params(null!=n?n:{}))return!1;const a=null!==(o=null===(i=null===(r=this._scope)||void 0===r?void 0:r.setCharacter)||void 0===i?void 0:i.call(r,t,e))&&void 0!==o&&o;return a&&this.event("#character_login",Object.assign({},n),!0),a}flush(){var t;null===(t=this._report)||void 0===t||t.flush()}}io=new WeakSet,oo=function(t,e){var n;if(!E.params(null!=e?e:{}))return!1;let r=null===(n=this._scope)||void 0===n?void 0:n.getInnerScope(this._options.appId);return r=Object.assign({},r,e,{"#name":t,"#app_id":this._options.appId,"#seq":this._seq++,"#ts_c":Date.now()}),E.dataSize(r)?(r=this.rmNull(r),this._report.send(r)):(console.log("data oversize!"),!0)},ao=function(){var t;return{"dev-cn":"https://event-log-api-data-lake-dev-cn.hypergryph.net","staging-cn":"https://event-log-api-data-lake-staging-cn.hypergryph.net","prod-cn":"https://event-log-api-data-lake-prod-cn.hypergryph.com","dev-sg":"https://event-log-api-data-platform-data-lake-dev.gryphline.net","staging-sg":"https://event-log-api-data-platform-data-lake-staging.gryphline.net","prod-sg":"https://event-log-api-data-platform-data-lake-prod.gryphline.com"}[`${null!==(t=this._options.env)&&void 0!==t?t:"prod"}-${this._options.regionTag}`]};class ko{constructor(){this._user=this.getUser(),this._sdk=this.initSDK(),this._log={},this._global={},this._preset={}}getUser(){const t=h();return{"#sdid_c":null!=t?t:""}}initSDK(){return{"#sdk_type":"JavaScript","#sdk_vn":"3.2.1","#sdk_vc":"1"}}getInnerScope(t,...e){const n=this.getGlobal(t),r=this.getCommonScope(),i=this._preset;return Object.assign(Object.assign(Object.assign({},i),r),n)}getCommonScope(){return Object.assign(Object.assign(Object.assign({},this._user),this._sdk),this._log)}getCommonProperty(t){var e;return null===(e=this.getCommonScope())||void 0===e?void 0:e[t]}getGlobal(t){return Q.get(t)}setGlobal(t,e){const n=this.getGlobal(t),r=Object.assign({},n,e);Q.set(t,r)}unsetGlobal(t,e){const n=this.getGlobal(t),r=this._delProperty(n,e);return r&&Q.set(t,n),r}clearGlobal(t){const e={};Q.set(t,e)}setUser(t){return this._user["#user_id"]=t,this._delProperty(this._user,["#character_id","#server_id"])}unsetUser(){return this._delProperty(this._user,["#user_id","#character_id","#server_id"])}setCharacter(t,e){return this._user["#character_id"]=t,this._user["#server_id"]=e,!0}unsetCharacter(){return this._delProperty(this._user,["#character_id","#server_id"])}setPreset(t){return this._preset=t,!0}getPreset(){return this._preset}static _clone(t){const e=new ko;return t&&(e._user=Object.assign({},t._user),e._sdk=Object.assign({},t._sdk),e._log=Object.assign({},t._log),e._global=Object.assign({},t._global)),e}_delProperty(t,e){try{const n=Array.isArray(e)?e:[e];for(const e of n)Reflect.deleteProperty(t,e);return!0}catch(t){return console.log("属性删除失败,请提供正确的参数"),!1}}}var So=function(t,e){return t?e.reduce((function(e,n){return Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]),e}),{}):{}};const Eo=["hg_source","hg_media","hg_partner","hg_link_campaign","hg_link_ad","hg_link_adset","hg_keyword_id","hg_keyword"];function xo(t){return[...t].reduce(((t,[e,n])=>(t[e]=n,t)),{})}function Ao(t){return xo(Object.entries(t).map((([t,e])=>[Eo.includes(t)?t.replace("hg_","#"):t,e])))}function To(t){return xo(Object.entries(t).filter((([t])=>!Eo.includes(t))))}function Oo(){const t=d(location.href),{params:e}=t,n=xo(Object.entries(So(e,Eo)).filter((([t,e])=>null!=e&&""!==e)));return Object.assign({},n)}class Co extends ko{constructor(){super(),this._page={},this._pv={},this._url=this.getURL(),this._ua=this.getUA()}initSDK(){return{"#sdk_type":"Web JS","#sdk_vn":"3.2.1","#sdk_vc":"1"}}getUser(){const t=h();let e=f();return!e&&t&&(e=t,p(e)),{"#sdid_c":null!=t?t:"","#sdid_s":null!=e?e:""}}getUA(){var t,e,n,r,i;const o=null!==(t=null===navigator||void 0===navigator?void 0:navigator.userAgent)&&void 0!==t?t:"",a=u(o);return{"#ua":o,"#os":null!==(e=a.os.name)&&void 0!==e?e:"","#os_ver":null!==(n=a.os.version)&&void 0!==n?n:"","#browser":null!==(r=a.browser.name)&&void 0!==r?r:"","#browser_ver":null!==(i=a.browser.version)&&void 0!==i?i:""}}getURL(){var t;const e=location.href,n=document.referrer,{pathname:r,hash:i}=c(e),{host:o}=c(n);return{"#url":e,"#url_path":null!==(t=i?r+i:r)&&void 0!==t?t:"","#referrer":n,"#referrer_host":null!=o?o:"","#title":document.title}}getInnerScope(t,e,n){var r;const{enableAdTrack:i}=n,o=this.getGlobal(t,i,i),a=this.getCommonScope(),s=this._preset,u=Object.assign(Object.assign(Object.assign({},s),a),o),c=null!==(r=this._page[e])&&void 0!==r?r:{};return Object.assign(Object.assign({},u),c)}getCommonScope(){const t=super.getCommonScope();return Object.assign(Object.assign(Object.assign({},t),this.getURL()),this._ua)}setPage(t,e){var n;const r=null!==(n=this._page[t])&&void 0!==n?n:{};this._page[t]=Object.assign({},r,e)}static _clone(t){const e=new Co;return t&&(e._user=Object.assign({},t._user),e._ua=Object.assign({},t._ua),e._url=Object.assign({},t._url),e._sdk=Object.assign({},t._sdk),e._page=Object.assign({},t._page),e._log=Object.assign({},t._log),e._global=Object.assign({},t._global)),e}getGlobal(t,e=!1,n=!0){var r;try{const i=null!==(r=localStorage.getItem(t))&&void 0!==r?r:"{}";return e?n?Ao(JSON.parse(i)):JSON.parse(i):To(JSON.parse(i))}catch(t){return{}}}setGlobal(t,e){const n=this.getGlobal(t,!0,!1),r=Object.assign({},n,e);localStorage.setItem(t,JSON.stringify(r))}unsetGlobal(t,e){const n=this.getGlobal(t,!0,!1),r=this._delProperty(n,e);return r&&localStorage.setItem(t,JSON.stringify(n)),r}clearGlobal(t){const e=this.getGlobal(t,!0,!1),n=Object.keys(e).reduce(((t,n)=>(Eo.some((t=>n.startsWith(t)))&&(t[n]=e[n]),t)),{});localStorage.setItem(t,JSON.stringify(n))}}class Io{constructor(t=V.WEB,e){this._stack=[{}];const n=(S(t)?Co:ko)._clone();this._sdkType=t,this.getStackTop().scope=n,e&&this.bindClient(e)}bindClient(t){this.getStackTop().client=t}withScope(t){const e=this.pushScope();try{t(e)}finally{this.popScope()}}_withClient(t){const{scope:e,client:n}=this.getStackTop();n&&t(n,e)}popScope(){return!(this.getStack().length<=1||!this.getStack().pop())}pushScope(){const t=(S(this._sdkType)?Co:ko)._clone(this.getScope());return this.getStack().push({client:this.getClient(),scope:t}),t}getScope(){return this.getStackTop().scope}getClient(){return this.getStackTop().client}getStack(){return this._stack}getStackTop(){return this._stack[this._stack.length-1]}}var Go,Po,Ro;class jo extends yo{constructor(t,e){if(super(t,e),Go.add(this),this._options=t,this._scope=e.getScope(),this._options.enableAdTrack){const t=Oo();E.params(t)&&Object.keys(t).length>0&&(this.unsetGlobalProperties(Eo),this.setGlobalProperties(Oo()))}}setPresetProperties(){return console.warn("setPresetProperties is not supported in web client"),!1}setPageProperties(t){var n,r;if(!t)return!1;const i=e(this,Go,"m",Po).call(this);return!("string"!=typeof i||!E.params(t)||(null===(r=null===(n=this._scope)||void 0===n?void 0:n.setPage)||void 0===r||r.call(n,i,t),0))}getAdTrackParams(){var t,e;const n=null!==(e=null===(t=this._scope)||void 0===t?void 0:t.getGlobal(this._options.appId,!0,!1))&&void 0!==e?e:{},r=Eo.reduce(((t,e)=>(e in n&&(t[e]=n[e]),t)),{});return JSON.stringify(r)}pageViewEvent(t){return!!E.params(null!=t?t:{})&&(this.event("#page_view",Object.assign({},t),!0),!0)}autoPageViewEvent(){var t,e,n,r,i,o,a,s,u,c,l,d,h;const f=()=>{this.event("#page_view",{},!0)},p=()=>{this.event("#page_view",{},!0)};return"history"===this._options.routeChange&&(null===(r=null===(n=null===(e=null===(t=this._hook)||void 0===t?void 0:t.changeState)||void 0===e?void 0:e.size)||void 0===n?void 0:n.call(e,"pageView"))||void 0===r||!r)&&(null===(a=null===(o=null===(i=this._hook)||void 0===i?void 0:i.changeState)||void 0===o?void 0:o.tap)||void 0===a||a.call(o,"pageView",f)),"hash"===this._options.routeChange&&(null===(c=null===(u=null===(s=this._hook)||void 0===s?void 0:s.hashChange)||void 0===u?void 0:u.size("pageView"))||void 0===c||!c)&&(null===(h=null===(d=null===(l=this._hook)||void 0===l?void 0:l.hashChange)||void 0===d?void 0:d.tap)||void 0===h||h.call(d,"pageView",p)),!0}event(t,n,r=!1){return!(!t||"string"!=typeof t||!r&&/^#/.test(t))&&e(this,Go,"m",Ro).call(this,t,Object.assign({},n))}}Go=new WeakSet,Po=function(){var t,e,n,r;const i="hash"===this._options.routeChange,o=null!==(e=null===(t=c())||void 0===t?void 0:t.pathname)&&void 0!==e?e:"",a=null!==(r=null===(n=c())||void 0===n?void 0:n.hash)&&void 0!==r?r:"";return i?`${o}${a}`:`${o}`},Ro=function(t,n){var r,i;const o=e(this,Go,"m",Po).call(this);if(!E.params(null!=n?n:{}))return!1;let a=null!==(i=null===(r=this._scope)||void 0===r?void 0:r.getInnerScope(this._options.appId,o,this._options))&&void 0!==i?i:{};return a=Object.assign({},a,n,{"#name":t,"#app_id":this._options.appId,"#seq":this._seq++,"#ts_c":Date.now()}),E.dataSize(a)?(a=this.rmNull(a),this._report.send(a),!0):(console.log("data oversize!"),!0)};const Lo={};Lo[v]=new Proxy({},{get(){console.log("请先创建实例")}}),Lo[g]=new Proxy({},{get(){console.log("请先创建实例")}});const No=function(t){const e=Object.assign(Object.assign({enableAdTrack:!0},t),{sdkType:V.WEB});if(!E.initOptions(e))return!1;const n=Uo(e.sdkType),r=new jo(e,n);return n.bindClient(r),Lo[v]=n.getClient(),Lo[v]},zo=function(t){const e=Object.assign(Object.assign({},t),{sdkType:V.JS});if(!E.initOptions(e))return!1;const n=Uo(e.sdkType),r=new yo(e,n);return n.bindClient(r),Lo[g]=n.getClient(),Lo[g]},Do=function(t,e){var n;const r=Jo(t,null!==(n=null==e?void 0:e.sdkType)&&void 0!==n?n:V.WEB),i={},o=Object.assign(i,null!=e?e:{}),a=S(null==e?void 0:e.sdkType)?new jo(o,r):new yo(o,r);r.bindClient(a)},Uo=function(t){return Bo("master",(()=>new Io(t)))},Jo=function(t,e){return Bo(t,(()=>new Io(e)))};function Bo(t,e){let n=k(t);return n||(n=e())}var qo={initWebJS:No,initJavaScript:zo,initInstance:Do};t.default=qo,t.initInstance=Do,t.initJavaScript=zo,t.initWebJS=No,Object.defineProperty(t,"__esModule",{value:!0})}(e)},4457:function(t){var e;e=function(){return function(t){var e={};function n(r){if(e[r])return e[r].exports;var i=e[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=t,n.c=e,n.i=function(t){return t},n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{configurable:!1,enumerable:!0,get:r})},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=2)}([function(t,e,n){"use strict";var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};t.exports={type:function(t){return Object.prototype.toString.call(t).slice(8,-1).toLowerCase()},isObject:function(t,e){return e?"object"===this.type(t):t&&"object"===(void 0===t?"undefined":r(t))},isFormData:function(t){return"undefined"!=typeof FormData&&t instanceof FormData},trim:function(t){return t.replace(/(^\s*)|(\s*$)/g,"")},encode:function(t){return encodeURIComponent(t).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")},formatParams:function(t){var e="",n=!0,r=this;return this.isObject(t)?(function t(i,o){var a=r.encode,s=r.type(i);if("array"==s)i.forEach((function(e,n){r.isObject(e)||(n=""),t(e,o+"%5B"+n+"%5D")}));else if("object"==s)for(var u in i)t(i[u],o?o+"%5B"+a(u)+"%5D":a(u));else n||(e+="&"),n=!1,e+=o+"="+a(i)}(t,""),e):t},merge:function(t,e){for(var n in e)t.hasOwnProperty(n)?this.isObject(e[n],1)&&this.isObject(t[n],1)&&this.merge(t[n],e[n]):t[n]=e[n];return t}}},,function(t,e,n){var r=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),i=n(0),o="undefined"!=typeof document,a=function(){function t(e){function n(t){var e=void 0,n=void 0;function r(){t.p=e=n=null}i.merge(t,{lock:function(){e||(t.p=new Promise((function(t,r){e=t,n=r})))},unlock:function(){e&&(e(),r())},clear:function(){n&&(n("cancel"),r())}})}!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.engine=e||XMLHttpRequest,this.default=this;var r=this.interceptors={response:{use:function(t,e){this.handler=t,this.onerror=e}},request:{use:function(t){this.handler=t}}},o=r.request;n(r.response),n(o),this.config={method:"GET",baseURL:"",headers:{},timeout:0,params:{},parseJson:!0,withCredentials:!1}}return r(t,[{key:"request",value:function(t,e,n){var r=this,a=new this.engine,s="Content-Type",u=s.toLowerCase(),c=this.interceptors,l=c.request,d=c.response,h=l.handler,f=new Promise((function(c,f){function p(t){return t&&t.then&&t.catch}function v(t,e){t?t.then((function(){e()})):e()}i.isObject(t)&&(t=(n=t).url),(n=n||{}).headers=n.headers||{},v(l.p,(function(){i.merge(n,JSON.parse(JSON.stringify(r.config)));var g=n.headers;g[s]=g[s]||g[u]||"",delete g[u],n.body=e||n.body,t=i.trim(t||""),n.method=n.method.toUpperCase(),n.url=t;var m=n;h&&(m=h.call(l,n,Promise)||n),p(m)||(m=Promise.resolve(m)),m.then((function(r){r===n?function(n){e=n.body,t=i.trim(n.url);var r=i.trim(n.baseURL||"");if(t||!o||r||(t=location.href),0!==t.indexOf("http")){var l="/"===t[0];if(!r&&o){var h=location.pathname.split("/");h.pop(),r=location.protocol+"//"+location.host+(l?"":h.join("/"))}if("/"!==r[r.length-1]&&(r+="/"),t=r+(l?t.substr(1):t),o){var g=document.createElement("a");g.href=t,t=g.href}}var m=i.trim(n.responseType||""),b=-1!==["GET","HEAD","DELETE","OPTION"].indexOf(n.method),_=i.type(e),w=n.params||{};b&&"object"===_&&(w=i.merge(e,w));var y=[];(w=i.formatParams(w))&&y.push(w),b&&e&&"string"===_&&y.push(e),y.length>0&&(t+=(-1===t.indexOf("?")?"?":"&")+y.join("&")),a.open(n.method,t);try{a.withCredentials=!!n.withCredentials,a.timeout=n.timeout||0,"stream"!==m&&(a.responseType=m)}catch(t){}var k=n.headers[s]||n.headers[u],S="application/x-www-form-urlencoded";for(var E in i.trim((k||"").toLowerCase())===S?e=i.formatParams(e):i.isFormData(e)||-1===["object","array"].indexOf(i.type(e))||(S="application/json;charset=utf-8",e=JSON.stringify(e)),k||b||(n.headers[s]=S),n.headers)if(E===s&&i.isFormData(e))delete n.headers[E];else try{a.setRequestHeader(E,n.headers[E])}catch(t){}function x(t,e,r){v(d.p,(function(){if(t){r&&(e.request=n);var i=t.call(d,e,Promise);e=void 0===i?e:i}p(e)||(e=Promise[0===r?"resolve":"reject"](e)),e.then((function(t){c(t)})).catch((function(t){f(t)}))}))}function A(t){t.engine=a,x(d.onerror,t,-1)}function T(t,e){this.message=t,this.status=e}a.onload=function(){try{var t=a.response||a.responseText;t&&n.parseJson&&-1!==(a.getResponseHeader(s)||"").indexOf("json")&&!i.isObject(t)&&(t=JSON.parse(t));var e=a.responseHeaders;if(!e){e={};var r=(a.getAllResponseHeaders()||"").split("\r\n");r.pop(),r.forEach((function(t){if(t){var n=t.split(":")[0];e[n]=a.getResponseHeader(n)}}))}var o=a.status,u=a.statusText,c={data:t,headers:e,status:o,statusText:u};if(i.merge(c,a._response),o>=200&&o<300||304===o)c.engine=a,c.request=n,x(d.handler,c,0);else{var l=new T(u,o);l.response=c,A(l)}}catch(l){A(new T(l.msg,a.status))}},a.onerror=function(t){A(new T(t.msg||"Network Error",0))},a.ontimeout=function(){A(new T("timeout [ "+a.timeout+"ms ]",1))},a._options=n,setTimeout((function(){a.send(b?null:e)}),0)}(r):c(r)}),(function(t){f(t)}))}))}));return f.engine=a,f}},{key:"all",value:function(t){return Promise.all(t)}},{key:"spread",value:function(t){return function(e){return t.apply(null,e)}}}]),t}();a.default=a,["get","post","put","patch","head","delete"].forEach((function(t){a.prototype[t]=function(e,n,r){return this.request(e,n,i.merge({method:t},r))}})),["lock","unlock","clear"].forEach((function(t){a.prototype[t]=function(){this.interceptors.request[t]()}})),t.exports=a}])},t.exports=e()},4954:function(t,e,n){var r=new(n(4457));t.exports=r},7091:function(t){"use strict";t.exports=function(t,e){return e||(e={}),t?(t=String(t.__esModule?t.default:t),e.hash&&(t+=e.hash),e.maybeNeedQuotes&&/[\t\n\f\r "'=<>`]/.test(t)?'"'.concat(t,'"'):t):t}},76:function(t){function e(t){return t=window.localStorage?localStorage.getItem(t)||sessionStorage.getItem(t):(t=document.cookie.match(new RegExp("(?:^|;\\s)"+t+"=(.*?)(?:;\\s|$)")))?t[1]:""}function n(t,e,n){if(window.localStorage)try{n?localStorage.setItem(t,e):sessionStorage.setItem(t,e)}catch(t){}else document.cookie=t+"="+e+";path=/;domain="+function(){var t=window.location.host,e={"com.cn":1,"js.cn":1,"net.cn":1,"gov.cn":1,"com.hk":1,"co.nz":1},n=t.split(".");return 2<n.length&&(t=(e[n.slice(-2).join(".")]?n.slice(-3):n.slice(-2)).join(".")),t}()+(n?";expires="+n:"")}function r(t,e){var n,r={};if(void 0===e)var i=window.location,o=i.host,a=i.pathname,s=i.search.substr(1),u=i.hash;else o=(i=e.match(/\w+:\/\/((?:[\w-]+\.)+\w+)(?::\d+)?(\/[^\?\\"'\|:<>]*)?(?:\?([^'"\\<>#]*))?(?:#(\w+))?/i)||[])[1],a=i[2],s=i[3],u=i[4];return void 0!==u&&(u=u.replace(/"|'|<|>/gi,"M")),s&&function(){for(var t=s.split("&"),e=0,n=t.length;e<n;e++)if(-1!=t[e].indexOf("=")){var i=t[e].indexOf("="),o=t[e].slice(0,i);i=t[e].slice(i+1),r[o]=i}}(),s=function(){if(void 0===s)return s;for(var e=s.split("&"),n=[],r=0,i=e.length;r<i;r++)if(-1!=e[r].indexOf("=")){var o=e[r].indexOf("="),a=e[r].slice(0,o);o=e[r].slice(o+1),t.ignoreParams&&-1!=t.ignoreParams.indexOf(a)||n.push(a+"="+o)}return n.join("&")}(),u&&function(){for(var t=0==u.indexOf("#")?u.substr(1).split("&"):u.split("&"),e=0,r=t.length;e<r;e++)if(-1!=t[e].indexOf("=")){var i=t[e].indexOf("="),o=t[e].slice(0,i);if(i=t[e].slice(i+1),"adtag"===o.toLowerCase()){n=i;break}}}(),{host:o,path:a,search:s,hash:u,param:r,adtag:n}}function i(t){var i=r(t),a={dm:i.host,pvi:"",si:"",url:i.path,arg:encodeURIComponent(i.search||"").substr(0,512),ty:0};return a.pvi=function(){if(t.userReport){var r=e("pgv_uid");r&&r==t.user.user_id||(a.ty=1,n("pgv_uid",t.user.user_id,"Sun, 18 Jan 2038 00:00:00 GMT;")),r=t.user.user_id}else(r=e("pgv_pvi"))||(a.ty=1,n("pgv_pvi",r=o(),"Sun, 18 Jan 2038 00:00:00 GMT;"));return r}(),a.si=function(){var t=e("pgv_si");return t||n("pgv_si",t=o("s")),t}(),a.url=function(){var e=i.path;return t.senseQuery&&(e+=i.search?"?"+encodeURIComponent(i.search||"").substr(0,512):""),t.senseHash&&(e+=i.hash?encodeURIComponent(i.hash):""),e}(),a}function o(t){for(var e=[0,1,2,3,4,5,6,7,8,9],n=10;1<n;n--){var r=Math.floor(10*Math.random()),i=e[r];e[r]=e[n-1],e[n-1]=i}for(n=r=0;5>n;n++)r=10*r+e[n];return(t||"")+(r+"")+ +new Date}function a(t){return{r2:t.sid}}function s(t){var e={};if(t){var n,r=[];for(n in t)t.hasOwnProperty(n)&&r.push(encodeURIComponent(n)+"="+encodeURIComponent(t[n]));t=r.join(";"),e.ext=t}return e}function u(t){var e=r(t,document.referrer);return t=r(t),{rdm:e.host,rurl:e.path,rarg:encodeURIComponent(e.search||"").substr(0,512),adt:t.param.ADTAG||t.param.adtag||t.param.CKTAG||t.param.cktag||t.param.PTAG||t.param.ptag||t.adtag}}function c(){try{var t=navigator,e=screen||{width:"",height:"",colorDepth:""},n={scr:e.width+"x"+e.height,scl:e.colorDepth+"-bit",lg:(t.language||t.userLanguage).toLowerCase(),tz:(new Date).getTimezoneOffset()/60}}catch(t){return{}}return n}t.exports={conf:{},version:"2.0.15",init:function(t){var e={sid:0,cid:0,autoReport:0,senseHash:0,senseQuery:0,userReport:0,performanceMonitor:0,ignoreParams:[]};if(t)for(var n in t)t.hasOwnProperty(n)&&e.hasOwnProperty(n)&&(e[n]=t[n]);this.conf=e,this.conf.autoReport&&this.pgv()},pgv:function(){var t=this.conf,e=[],n=this.version;if(t.sid)if(!t.userReport||t.user&&t.user.user_id&&!parseInt(t.user.user_id,10)!==conf.user.user_id){for(var r=0,o=[i(t),u(t),a(t),c(),s({version:n}),{random:+new Date}],l=o.length;r<l;r++)for(var d in o[r])o[r].hasOwnProperty(d)&&e.push(d+"="+(void 0===o[r][d]?"":o[r][d]));var h=function(t){t=("https:"==document.location.protocol?"https://pingtas.qq.com/webview":"http://pingtcss.qq.com")+"/pingd?"+t.join("&").toLowerCase();var e=new Image;e.onload=e.onerror=e.onabort=function(){e=e.onload=e.onerror=e.onabort=null},e.src=t};h(e),t.performanceMonitor&&(e=function(){for(var e=function(){if(window.performance){var t=window.performance.timing,e={value:t.domainLookupEnd-t.domainLookupStart},n={value:t.connectEnd-t.connectStart},r={value:t.responseStart-(t.requestStart||t.responseStart+1)},i=t.responseEnd-t.responseStart;t.domContentLoadedEventStart?0>i&&(i=0):i=-1,t={domainLookupTime:e,connectTime:n,requestTime:r,resourcesLoadedTime:{value:i},domParsingTime:{value:t.domContentLoadedEventStart?t.domInteractive-t.domLoading:-1},domContentLoadedTime:{value:t.domContentLoadedEventStart?t.domContentLoadedEventStart-t.fetchStart:-1}}}else t="";return t}(),r=[],o=[],a=0,u=[i(t),{r2:t.cid},c(),{random:+new Date}],l=u.length;a<l;a++)for(var d in u[a])u[a].hasOwnProperty(d)&&o.push(d+"="+(void 0===u[a][d]?"":u[a][d]));for(d in e)e.hasOwnProperty(d)&&("domContentLoadedTime"==d?o.push("r3="+e[d].value):r.push(e[d].value));e=s({pfm:r.join("_"),version:n}),o.push("ext="+e.ext),h(o)},void 0!==window.performance&&void 0!==window.performance.timing&&0!=window.performance.timing.loadEventEnd?e():window.attachEvent?window.attachEvent("onload",e):window.addEventListener&&window.addEventListener("load",e,!1))}else console.log("MTA H5分析错误提示:您选择了用户统计uv,请设置业务的user_id,需为int类型");else console.log("MTA H5分析错误提示:您没有设置sid")},clickStat:function(t,e){var n=this.conf,r=[],o=i(n),l=a(n);if(n.cid){o.dm="taclick",o.url=t,l.r2=n.cid,l.r5=function(t){t=void 0===t?{}:t;var e,n=[];for(e in t)t.hasOwnProperty(e)&&n.push(e+"="+encodeURIComponent(t[e]));return n.join(";")}(e);var d=0;for(o=(n=[o,u(n),l,c(),s({version:this.version}),{random:+new Date}]).length;d<o;d++)for(var h in n[d])n[d].hasOwnProperty(h)&&r.push(h+"="+(void 0===n[d][h]?"":n[d][h]));r=("https:"==document.location.protocol?"https://pingtas.qq.com/webview":"http://pingtcss.qq.com")+"/pingd?"+r.join("&");var f=new Image;f.onload=f.onerror=f.onabort=function(){f=f.onload=f.onerror=f.onabort=null},f.src=r}else console.log("MTA H5分析错误提示:您没有设置cid,请到管理台开通自定义事件并更新统计代码")},clickShare:function(t){var e=this.conf,n=r(e),o=void 0===(n=n.param.CKTAG||n.param.ckatg)?[]:n.split(".");if(e.cid){n=[];var l=i(e),d=a(e);for(l.dm="taclick_share",l.url="mtah5-share-"+t,d.r2=e.cid,d.r5=function(t,e){var n=[];return 2===t.length&&"mtah5_share"==t[0]&&n.push(t[0]+"="+t[1]),n.join(";")}(o),t=0,l=(e=[l,u(e),d,c(),s({version:this.version}),{random:+new Date}]).length;t<l;t++)for(var h in e[t])e[t].hasOwnProperty(h)&&n.push(h+"="+(void 0===e[t][h]?"":e[t][h]));h=("https:"==document.location.protocol?"https://pingtas.qq.com/webview":"http://pingtcss.qq.com")+"/pingd?"+n.join("&");var f=new Image;f.onload=f.onerror=f.onabort=function(){f=f.onload=f.onerror=f.onabort=null},f.src=h}else console.log("MTA H5分析错误提示:您没有设置cid,请到管理台开通自定义事件并更新统计代码")}}},7902:function(t,e,n){"use strict";n.d(e,{h:function(){return s}});var r=n(8491),i=n(3441),o=function(){function t(t,e){var n=this;void 0===e&&(e=""),this.host=t,this.prefix=e,this.getHost=function(){return n.host+n.prefix}}return t.prototype.setHost=function(t){return t&&(this.host=t),this},t}(),a=new o(r.Q6),s={apiServer:new o(r.QQ),accountServer:a,hgServer:a,u8Server:new o(r.DX),roleServer:new o(r.Fl),userServer:new o(r.eT,"/api/sdk"),bindingServer:new o(i.n.host)}},1721:function(t,e,n){"use strict";n.d(e,{P:function(){return o},q:function(){return i}});var r=n(655),i=function(t){function e(e,n,r){var i=t.call(this,n)||this;return i.code=e,i._type="SDK_ERROR",r&&(i.stack=r.stack),i}return(0,r.ZT)(e,t),e.is=function(t){return t instanceof Error&&"SDK_ERROR"===t._type},e.isSafe=function(t){return this.is(t)&&!!t._safe},e.prototype.toString=function(){return"[HG-WEB-SDK] Error (".concat(this.module?"(".concat(this.module,")"):"",")[").concat(this.code,"]: ").concat(this.message," \n").concat(this.stack)},e}(Error),o=function(t){function e(e,n,r){void 0===r&&(r="");var i=t.call(this,n,r)||this;return i.module=e,i}return(0,r.ZT)(e,t),e.create=function(t,n){var r=new e(t,n.code,n.msg);return r.data=n.data,r.detail=n.detail,r},e}(i)},536:function(t,e,n){"use strict";n.d(e,{R:function(){return o},o:function(){return i}});var r=n(655),i=function(t){function e(e,n){var r=t.call(this,n)||this;return r.statusCode=e,r._type="SDK_HTTP_ERROR",r}return(0,r.ZT)(e,t),e.is=function(t){return t instanceof Error&&"SDK_HTTP_ERROR"===t._type},e.prototype.toString=function(){return"[HG-WEB-SDK] Http Error (".concat(this.statusCode,") ").concat(this.message,": \n").concat(this.stack)},e}(Error);function o(t,e){return void 0===t&&(t=0),new i(t,e||function(t){switch(t){case 0:return"连接失败,请检查网络设置";case 400:return"请求失败,参数错误";case 401:return"请求失败,未授权";case 403:return"请求失败,禁止操作";case 404:return"请求失败,无效的请求地址";case 408:return"请求超时";case 500:return"请求失败,服务器错误";case 503:return"请求失败,服务当前不可用";case 504:return"请求失败,网关错误";default:return"请求错误"}}(t))}},8230:function(t,e,n){"use strict";n.d(e,{KU:function(){return s}});var r=n(655),i=n(4954),o=n.n(i),a=n(536),s=function(){function t(t){this.onResponse=function(t){return t},this.host=t.host||"",this.timeout=t.timeout||1e4,this.onResponse=t.onResponse||this.onResponse,this.onError=t.onError||this.onError}return t.prototype.request=function(t,e){var n;return(0,r.mG)(this,void 0,void 0,(function(){var i,s,u,c,l,d,h;return(0,r.Jh)(this,(function(f){switch(f.label){case 0:s=(i=e||{}).data,u=(0,r._T)(i,["data"]),f.label=1;case 1:return f.trys.push([1,3,,4]),[4,o().request(t,s,{baseURL:"string"==typeof this.host?this.host:this.host(),method:u.method||"GET",headers:u.headers,timeout:null!==(n=u.timeout)&&void 0!==n?n:this.timeout,withCredentials:!0,responseType:"json"})];case 2:return c=f.sent(),[2,this.onResponse(c.data,{client:this,url:t,option:e})];case 3:if(l=f.sent(),d=l,l.engine)switch((h=l).status){case 0:d=(0,a.R)(0);break;case 1:d=(0,a.R)(408);break;default:d=(0,a.R)(h.status)}if(this.onError)return[2,this.onError(d)];throw d;case 4:return[2]}}))}))},t.prototype.get=function(t,e){return(0,r.mG)(this,void 0,void 0,(function(){return(0,r.Jh)(this,(function(n){return[2,this.request(t,{method:"GET",data:e})]}))}))},t.prototype.post=function(t,e){return(0,r.mG)(this,void 0,void 0,(function(){return(0,r.Jh)(this,(function(n){return[2,this.request(t,{method:"POST",data:e})]}))}))},t}()},3661:function(t,e,n){"use strict";n.d(e,{U2:function(){return u},kD:function(){return c},o2:function(){return l}});var r=n(655),i=n(8230),o=n(536),a=n(7902),s=new i.KU({host:a.h.apiServer.getHost,timeout:1e4,onError:function(t){if(o.o.is(t)&&401===t.statusCode)return{code:-1,msg:"",data:{}};throw t}});function u(t){return(0,r.mG)(this,void 0,void 0,(function(){var e,n,i;return(0,r.Jh)(this,(function(r){switch(r.label){case 0:return[4,s.get("/account/info/".concat(t||""))];case 1:return e=r.sent(),n=e.code,i=e.data,e.msg,0!==n?[2,null]:[2,i.content]}}))}))}function c(t){return(0,r.mG)(this,void 0,void 0,(function(){var e,n,i;return(0,r.Jh)(this,(function(r){switch(r.label){case 0:return[4,s.post("/account/session/code_generate",{token:t})];case 1:return e=r.sent(),n=e.code,i=e.data,0!==n?[2,null]:[2,i.code]}}))}))}function l(t){return(0,r.mG)(this,void 0,void 0,(function(){var e,n,i;return(0,r.Jh)(this,(function(r){switch(r.label){case 0:return[4,s.post("/account/session/code_consume",{code:t})];case 1:return e=r.sent(),n=e.code,i=e.data,0!==n?[2,null]:[2,i.token]}}))}))}},1157:function(t,e,n){"use strict";n.d(e,{k0:function(){return a},lJ:function(){return u},K7:function(){return s}});var r=n(655),i=function(t){var e=0;if(0===t.length)return e;for(var n=0;n<t.length;n++){e=(e<<5)-e+t.charCodeAt(n),e|=0}return e.toString(16)};function o(t){return"session"===t?sessionStorage:localStorage}function a(t,e){var n=o((null==e?void 0:e.persist)?"local":"session"),r=(null==e?void 0:e.identifier)?"".concat(t,":").concat(e.identifier):t;n.removeItem(r)}function s(t,e,n){var r=o((null==n?void 0:n.persist)?"local":"session"),a=(null==n?void 0:n.identifier)?"".concat(t,":").concat(n.identifier):t,s=Math.floor(+new Date/1e3),u=[e,(null==n?void 0:n.verifier)&&i(n.verifier)||"",(null==n?void 0:n.ttl)?s+n.ttl:""].join(":");r.setItem(a,u)}function u(t,e){return(0,r.mG)(this,void 0,void 0,(function(){var n,a,s,u,c,l,d,h,f,p,v,g;return(0,r.Jh)(this,(function(m){switch(m.label){case 0:if(n=o((null==e?void 0:e.persist)?"local":"session"),a=(null==e?void 0:e.identifier)?"".concat(t,":").concat(e.identifier):t,s=n.getItem(a),u=Math.floor(+new Date/1e3),s){c=s.split(":");try{if(c.length>0&&c.length<=3){if(l=(0,r.CR)(c,3),d=l[0],h=l[1],f=l[2],(null==e?void 0:e.ttl)&&f){if((p=Number.parseInt(f))-u<0)throw new Error("stored value expired");if(Math.abs(p-u)>e.ttl)throw new Error("stored ttl not valid")}if((null==e?void 0:e.verifier)&&e.verifier!==h&&i(e.verifier)!==h)throw new Error("stored verifier miss match");return[2,d]}}catch(t){console.warn("[HG-WEB-SDK] Session cache failed, ",t.message)}}return(null==e?void 0:e.fetch)?[4,e.fetch()]:[3,2];case 1:if(v=m.sent())return g=[v,e.verifier&&i(e.verifier),e.ttl?u+e.ttl:""].join(":"),n.setItem(a,g),[2,v];m.label=2;case 2:return n.removeItem(a),[2,null]}}))}))}},6897:function(t,e,n){"use strict";n.d(e,{B:function(){return i}});var r=n(655);function i(t){return(0,r.mG)(this,void 0,void 0,(function(){return(0,r.Jh)(this,(function(e){switch(e.label){case 0:return e.trys.push([0,2,,3]),[4,n.e(852).then(n.bind(n,4754))];case 1:return e.sent(),[3,3];case 2:return e.sent(),[2,null];case 3:return n.e(121).then(n.bind(n,9121)),[2,new Promise((function(e){window.initGeetest({gt:t.gt,challenge:t.challenge,offline:!t.success,new_captcha:!!t.new_captcha,product:"bind"},(function(t){t.onReady((function(){t.verify()})),t.onSuccess((function(){var n=t.getValidate();n&&(e(n),t.destroy())})),t.onError((function(n){var r=n.error_code;n.msg;"error_01"!==r&&(e(null),t.destroy())})),t.onClose((function(){e(null),t.destroy()}))}))}))]}}))}))}},1995:function(t,e,n){"use strict";n.d(e,{ZT:function(){return i},s2:function(){return u},tI:function(){return o},z5:function(){return a}});var r=n(655),i=function(){};function o(t){return!!t&&("object"==typeof t||"function"==typeof t)&&"function"==typeof t.then}function a(t,e){return(0,r.mG)(this,void 0,void 0,(function(){return(0,r.Jh)(this,(function(n){switch(n.label){case 0:return[4,Promise.all([t(),s(e)])];case 1:return[2,n.sent()[0]]}}))}))}var s=function(t){return(0,r.mG)(void 0,void 0,void 0,(function(){return(0,r.Jh)(this,(function(e){return[2,new Promise((function(e){setTimeout(e,t)}))]}))}))};function u(t){return!t}},8837:function(t,e,n){"use strict";n.d(e,{bI:function(){return o},tg:function(){return a}});var r,i=n(8491);!function(t){t.GAME="GAME",t.APP="APP",t.SERVICE="SERVICE"}(r||(r={}));var o={arknights:{key:"arknights",name:"明日方舟",type:r.GAME,hgAppCode:i.SG.hgAppCodeMap.arknights,bindingAppCode:"arknights"},endfield:{key:"endfield",name:"明日方舟:终末地",type:r.GAME,hgAppCode:i.SG.hgAppCodeMap.endfield,bindingAppCode:""},exastris:{key:"exastris",name:"来自星尘",type:r.GAME,hgAppCode:i.SG.hgAppCodeMap.exastris,bindingAppCode:"exa"},popucom:{key:"popucom",name:"泡姆泡姆",type:r.GAME,hgAppCode:"",bindingAppCode:"popucom"},skland:{key:"skland",name:"森空岛",type:r.APP,hgAppCode:"",bindingAppCode:""},binding:{key:"binding",name:"游戏角色",type:r.SERVICE,hgAppCode:"be36d44aa36bfb5b",bindingAppCode:""}};function a(t){var e;return(null===(e=o[t])||void 0===e?void 0:e.hgAppCode)||""}},8491:function(t,e,n){"use strict";n.d(e,{BJ:function(){return d},D1:function(){return c},DX:function(){return o},Fl:function(){return s},G2:function(){return f},GV:function(){return v},HX:function(){return h},Q6:function(){return i},QQ:function(){return a},SG:function(){return r},eT:function(){return u},gn:function(){return l},jX:function(){return p}});var r={hg:{HOST:"https://as.hypergryph.com"},u8:{HOST:"https://u8.hypergryph.com"},u8_ak:{appId:1},hgAppCodeMap:{arknights:"",endfield:"",exastris:"",popucom:""}},i=r.hg.HOST,o=r.u8.HOST,a="https://web-api.hypergryph.com",s="https://binding-api-account-prod.hypergryph.com",u="https://ak.hypergryph.com/user",c="HG_OAUTH_TOKEN",l="APP_CURRENT_ROLE",d="APP_ROLE_TOKEN",h="APP_ROLE_U8_TOKEN",f="hg-sdk-ui-container",p="HG_SDK_INPUT_VIEW",v={OFFICIAL:1,BILIBILI:2}},9016:function(t,e,n){"use strict";n.d(e,{J2:function(){return c},NI:function(){return s},r:function(){return u}});var r=n(1721),i=n(4024),o=n(8837),a={ak:{key:"ak",name:"明日方舟",app:"arknights",u8AppId:1},exa:{key:"exa",name:"来自星尘",app:"exastris"},ef:{key:"ef",name:"明日方舟:终末地",app:"endfield"},popucom:{key:"popucom",name:"泡姆泡姆",app:"popucom"}};function s(t){var e=a[t];if(!e)throw new r.q("GAME_NOT_FOUND",(0,i.Z)("未找到对应的游戏"));return e}function u(t){return s(t).app}function c(t){return o.bI[u(t)]}},4603:function(t,e,n){"use strict";n.d(e,{k_:function(){return d},ej:function(){return p},VX:function(){return h}});var r=n(655),i=n(4954),o=n.n(i);function a(t){return(0,r.mG)(this,void 0,void 0,(function(){return(0,r.Jh)(this,(function(e){switch(e.label){case 0:return e.trys.push([0,2,,3]),[4,n.e(623).then(n.bind(n,8623))];case 1:return e.sent(),[3,3];case 2:return e.sent(),[2,null];case 3:return n.e(987).then(n.bind(n,987)),[2,new Promise((function(e){window.initGeetest({gt:t.gt,challenge:t.challenge,offline:!t.success,new_captcha:!!t.new_captcha,product:"bind"},(function(t){t.onReady((function(){t.verify()})),t.onSuccess((function(){var n=t.getValidate();n&&(e(n),t.destroy())})),t.onError((function(n){var r=n.error_code;n.msg;"error_01"!==r&&(e(null),t.destroy())})),t.onClose((function(){e(null),t.destroy()}))}))}))]}}))}))}var s=n(7348),u=n(1764),c=n(9923),l=n(7902),d={OK:0,REQUIRE_CAPTCHA:1,INVALID_TOKEN:3,INVALID_CAPTCHA:4,INVALID_SMS_CODE:5,INVALID_REQUEST:6,GUEST_ACCESS_DENIED:8,ACCOUNT_DELETING:9,ACCOUNT_BANNED:10,OPEN_ID_NOT_EXIST:101,OPEN_ID_DELETING:102},h={NOT_START:100,NOT_CONFIRM:101,EXPIRED:102};function f(t,e,n){return(0,r.mG)(this,void 0,void 0,(function(){var i,u,c,h,p;return(0,r.Jh)(this,(function(v){switch(v.label){case 0:i="".concat(l.h.accountServer.getHost()).concat(t),v.label=1;case 1:return v.trys.push([1,6,,7]),[4,o().request(i,n,{timeout:1e4,method:e,withCredentials:!0,responseType:"json"})];case 2:return(u=v.sent()).data.status===d.OK?[2,u.data]:u.data.status===d.REQUIRE_CAPTCHA&&u.data.data.captcha?(u.data.msg="",[4,a(u.data.data.captcha)]):[3,5];case 3:return(c=v.sent())?[4,f(t,e,(0,r.pi)((0,r.pi)({},n),{captcha:c}))]:[3,5];case 4:return[2,v.sent()];case 5:throw new s.w(u);case 6:if(h=v.sent(),(p=h).type===s.w.type)throw p;if(p.status&&p.response)throw p.status,new s.w({status:p.status,data:p.response.data});throw p;case 7:return[2]}}))}))}var p={general:{sendSMS:function(t,e){return(0,r.mG)(this,void 0,void 0,(function(){return(0,r.Jh)(this,(function(n){return[2,(0,s.j)((function(){return f("/general/v1/send_phone_code","POST",{phone:t,type:e})}))]}))}))},sendEmailCode:function(t){return(0,r.mG)(this,void 0,void 0,(function(){return(0,r.Jh)(this,(function(e){return[2,(0,s.j)((function(){return f("/general/v1/send_email_code","POST",{email:t})}))]}))}))},genLoginScanUrl:function(t){return(0,r.mG)(this,void 0,void 0,(function(){return(0,r.Jh)(this,(function(e){return[2,(0,s.j)((function(){return f("/general/v1/gen_scan/login","POST",{appCode:t})}))]}))}))},getScanStatus:function(t){return(0,r.mG)(this,void 0,void 0,(function(){return(0,r.Jh)(this,(function(e){return[2,(0,s.j)((function(){return f("/general/v1/scan_status","GET",{scanId:t})}))]}))}))}},auth:{register:function(t,e,n){return(0,r.mG)(this,void 0,void 0,(function(){return(0,r.Jh)(this,(function(r){return[2,(0,s.j)((function(){return f("/user/auth/v1/register_by_phone_code","POST",{phone:t,password:e,code:n})}))]}))}))},loginByPhoneCode:function(t,e){return(0,r.mG)(this,void 0,void 0,(function(){return(0,r.Jh)(this,(function(n){return[2,(0,s.j)((function(){return f("/user/auth/v1/token_by_phone_code","POST",{phone:t,code:e})}))]}))}))},tokenByPhoneCode:function(t,e){return(0,r.mG)(this,void 0,void 0,(function(){return(0,r.Jh)(this,(function(n){return[2,(0,s.j)((function(){return f("/user/auth/v2/token_by_phone_code","POST",{phone:t,code:e})}))]}))}))},loginByPhonePassword:function(t,e){return(0,r.mG)(this,void 0,void 0,(function(){return(0,r.Jh)(this,(function(n){return[2,(0,s.j)((function(){return f("/user/auth/v1/token_by_phone_password","POST",{phone:t,password:e})}))]}))}))},loginByEmail:function(t,e){return(0,r.mG)(this,void 0,void 0,(function(){return(0,r.Jh)(this,(function(t){return[2,(0,s.j)((function(){throw new s.w({status:400,data:{status:-1,msg:"已不支持邮箱密码登录,请您切换其他方式登录"}})}))]}))}))},tokenByScanCode:function(t){return(0,r.mG)(this,void 0,void 0,(function(){return(0,r.Jh)(this,(function(e){return[2,(0,s.j)((function(){return f("/user/auth/v1/token_by_scan_code","POST",{scanCode:t})}))]}))}))}},user:{getToken:function(){return(0,r.mG)(this,void 0,void 0,(function(){return(0,r.Jh)(this,(function(t){return[2,(0,s.j)((function(){return f("/user/info/v1/token_by_cookie","GET",{})}))]}))}))},logout:function(t){var e;return(0,r.mG)(this,void 0,void 0,(function(){return(0,r.Jh)(this,(function(t){return u.x.clear(),null===(e=c.t.instance)||void 0===e||e.unsetUser(),[2,{result:!0,status:0,msg:""}]}))}))},sendSMS:function(t,e){return(0,r.mG)(this,void 0,void 0,(function(){return(0,r.Jh)(this,(function(n){return[2,(0,s.j)((function(){return f("/user/info/v1/send_phone_code","POST",(0,r.pi)((0,r.pi)({},e?{token:e}:{}),{type:t}))}))]}))}))},getInfo:function(t){var e,n;return(0,r.mG)(this,void 0,void 0,(function(){var i;return(0,r.Jh)(this,(function(o){switch(o.label){case 0:return[4,(0,s.j)((function(){return f("/user/info/v1/basic","GET",(0,r.pi)({},t?{token:t}:{}))}))];case 1:return(i=o.sent()).result&&(null===(e=i.data)||void 0===e?void 0:e.hgId)&&u.x.getCache()!==i.data.hgId&&(u.x.saveCache(i.data.hgId),null===(n=c.t.instance)||void 0===n||n.userLoginEvent(i.data.hgId,{})),[2,i]}}))}))},grant:function(t,e,n){return void 0===e&&(e=1),(0,r.mG)(this,void 0,void 0,(function(){return(0,r.Jh)(this,(function(i){return[2,(0,s.j)((function(){return f("/user/oauth2/v2/grant","POST",(0,r.pi)((0,r.pi)({},n?{token:n}:{}),{appCode:t,type:e}))}))]}))}))},grantInfo:function(t,e){return(0,r.mG)(this,void 0,void 0,(function(){return(0,r.Jh)(this,(function(n){return[2,(0,s.j)((function(){return f("/user/oauth2/v1/grant_info","GET",(0,r.pi)((0,r.pi)({},e?{token:e}:{}),{appCode:t}))}))]}))}))},cancelUnbindGrant:function(t,e){return(0,r.mG)(this,void 0,void 0,(function(){return(0,r.Jh)(this,(function(n){return[2,(0,s.j)((function(){return f("/user/oauth2/v1/cancel_unbind_grant","POST",(0,r.pi)((0,r.pi)({},e?{token:e}:{}),{appCode:t}))}))]}))}))},couldChangePhone:function(t){return(0,r.mG)(this,void 0,void 0,(function(){return(0,r.Jh)(this,(function(e){return[2,(0,s.j)((function(){return f("/user/info/v1/can_change_phone","POST",(0,r.pi)({},t?{token:t}:{}))}))]}))}))},changePhone:function(t,e,n,i){return(0,r.mG)(this,void 0,void 0,(function(){return(0,r.Jh)(this,(function(o){return[2,(0,s.j)((function(){return f("/user/info/v1/change_phone","POST",(0,r.pi)((0,r.pi)({},i?{token:i}:{}),{phoneCode:n,newPhone:t,newPhoneCode:e}))}))]}))}))},changePassword:function(t,e,n){return(0,r.mG)(this,void 0,void 0,(function(){return(0,r.Jh)(this,(function(i){return[2,(0,s.j)((function(){return f("/user/info/v1/change_password","POST",(0,r.pi)((0,r.pi)({},n?{token:n}:{}),{phoneCode:e,newPassword:t}))}))]}))}))},bindEmail:function(t,e,n,i){return(0,r.mG)(this,void 0,void 0,(function(){return(0,r.Jh)(this,(function(o){return[2,(0,s.j)((function(){return f("/user/info/v1/bind_email","POST",(0,r.pi)((0,r.pi)({},i?{token:i}:{}),{phoneCode:n,email:t,emailCode:e}))}))]}))}))},updateAgreement:function(t){return(0,r.mG)(this,void 0,void 0,(function(){return(0,r.Jh)(this,(function(e){return[2,(0,s.j)((function(){return f("/user/info/v1/update_agreement","POST",(0,r.pi)({},t?{token:t}:{}))}))]}))}))},resetOtherToken:function(t){return(0,r.mG)(this,void 0,void 0,(function(){return(0,r.Jh)(this,(function(e){return[2,(0,s.j)((function(){return f("/user/info/v1/reset_other_token","POST",(0,r.pi)({},t?{token:t}:{}))}))]}))}))},queryOrder:function(t){return(0,r.mG)(this,void 0,void 0,(function(){return(0,r.Jh)(this,(function(e){return[2,(0,s.j)((function(){return f("/user/pay/v1/query_order","GET",(0,r.pi)({},t?{token:t}:{}))}))]}))}))}}}},7348:function(t,e,n){"use strict";n.d(e,{j:function(){return o},w:function(){return i}});var r=n(655),i=function(t){function e(n){var r=n.status,i=void 0===r?200:r,o=n.data,a=t.call(this,o.msg||o.message)||this;return a.type=e.type,a.status=i,a.data=o,a}return(0,r.ZT)(e,t),e.type="accountError",e}(Error);function o(t){var e,n,i,o,a;return(0,r.mG)(this,void 0,void 0,(function(){var s,u,c;return(0,r.Jh)(this,(function(l){switch(l.label){case 0:return l.trys.push([0,2,,3]),[4,t()];case 1:return s=l.sent(),[2,(0,r.pi)((0,r.pi)({},s),{result:!0})];case 2:return u=l.sent(),c=u,[2,(0,r.pi)((0,r.pi)({},(null==c?void 0:c.data)||{}),{statusCode:c.status,msg:null!==(o=null!==(n=null===(e=null==c?void 0:c.data)||void 0===e?void 0:e.msg)&&void 0!==n?n:null===(i=null==c?void 0:c.data)||void 0===i?void 0:i.message)&&void 0!==o?o:"网络异常",type:void 0,msgType:null===(a=null==c?void 0:c.data)||void 0===a?void 0:a.type,result:!1})];case 3:return[2]}}))}))}},6433:function(t,e,n){"use strict";n.d(e,{q:function(){return l}});var r=n(655),i=n(4954),o=n.n(i),a=function(t){function e(n){var r=n.status,i=void 0===r?200:r,o=n.data,a=t.call(this,(null==o?void 0:o.msg)||(null==o?void 0:o.message))||this;return a.type=e.type,a.status=i,a.data=o,a}return(0,r.ZT)(e,t),e.type="accountInfoError",e}(Error);function s(t){var e,n;return(0,r.mG)(this,void 0,void 0,(function(){var i,o,a;return(0,r.Jh)(this,(function(s){switch(s.label){case 0:return s.trys.push([0,2,,3]),[4,t()];case 1:return i=s.sent(),[2,(0,r.pi)((0,r.pi)({},i),{result:!0})];case 2:return o=s.sent(),a=o,[2,(0,r.pi)((0,r.pi)({},(null==a?void 0:a.data)||{}),{statusCode:a.status,msg:(null===(e=null==a?void 0:a.data)||void 0===e?void 0:e.message)||(null===(n=null==a?void 0:a.data)||void 0===n?void 0:n.msg)||"网络异常",result:!1})];case 3:return[2]}}))}))}var u=n(7902);function c(t,e,n){return void 0===e&&(e=null),void 0===n&&(n="GET"),(0,r.mG)(this,void 0,void 0,(function(){var i,s,c;return(0,r.Jh)(this,(function(r){switch(r.label){case 0:return r.trys.push([0,2,,3]),[4,o().request(t,e,{timeout:1e4,baseURL:u.h.apiServer.getHost(),method:n,withCredentials:!0,responseType:"json"})];case 1:if(0===(i=r.sent()).data.code)return[2,i.data];throw new a(i);case 2:if(s=r.sent(),(c=s).type===a.type)throw c;if(c.status&&c.response)throw new a({status:c.status,data:c.response.data});throw c;case 3:return[2]}}))}))}var l={get:function(t){return(0,r.mG)(void 0,void 0,void 0,(function(){return(0,r.Jh)(this,(function(e){return[2,s((function(){return c("/account/info/".concat(t||""))}))]}))}))},set:function(t,e){return(0,r.mG)(void 0,void 0,void 0,(function(){return(0,r.Jh)(this,(function(n){return[2,s((function(){return c("/account/info/".concat(e||""),t,"POST")}))]}))}))},clear:function(t){return(0,r.mG)(void 0,void 0,void 0,(function(){return(0,r.Jh)(this,(function(e){return[2,s((function(){return c("/account/info/".concat(t||""),null,"DELETE")}))]}))}))}}},5478:function(t,e,n){"use strict";n.d(e,{L:function(){return r}});var r={arknights:{"age-tip":n(6592),title:n(2673)},common:{"anti-fraud":n(563),policy:n(5652),report:n(9609)},favicon:n(6418),hypergryph:{copyright:n(6048),favicon:n(6758),icon:n(7452),logo:n(3051)},MONTAGNE:{copyright:n(2558)},NOUS_WAVE:{copyrightC:n(8537),copyrightC_oversea:n(8391)},MOUNTEN:{copyright:n(4732)},MONSTER_SIREN:{copyright:n(3122)},TERRA_HISTORICUS:{copyright:n(3025)}}},9054:function(t,e,n){"use strict";n.d(e,{I:function(){return r}});var r={REGISTER:0,LOGIN:1,LOGIN_OR_REGISTER:2,DELETE_ACCOUNT:3,DELETE_GAME_ACCOUNT:4,DELETE_BBS_ACCOUNT:5,VALIDATE:100,CHANGE_PHONE:101,RESET_PASSWORD:102,OLD_CHANGE_PHONE:103}},9129:function(t,e,n){"use strict";n.r(e),n.d(e,{HG_SDK:function(){return Dn}});var r={};n.r(r),n.d(r,{authByAccount:function(){return It},authByChannelCode:function(){return Gt},getRoleInfo:function(){return Pt},grant:function(){return Rt}});var i={};n.r(i),n.d(i,{getActiveRole:function(){return Dt},getActiveRoleV2:function(){return Ut}});var o={};n.r(o),n.d(o,{getDefaultAddress:function(){return qt}});var a={};n.r(a),n.d(a,{isSDKError:function(){return Mt},isSafeSDKError:function(){return Zt}});var s=n(655),u=n(5478),c=n(7902),l=n(4954),d=n.n(l),h=n(2914);var f=function(){function t(){this.channels={qq:{initialized:!1,update:function(t){var e=[{id:"hg-web-sdk-share-title",itemProp:"name",property:"og:title",content:t.title},{id:"hg-web-sdk-share-url",itemProp:"link",property:"og:url",content:t.link},{id:"hg-web-sdk-share-img",itemProp:"image",property:"og:image",content:t.image},{id:"hg-web-sdk-share-desc",itemProp:"description",property:"og:description",content:t.description,name:"description"}],n=(0,s.ev)([],(0,s.CR)(document.head.querySelectorAll("meta")),!1).pop();e.forEach((function(t){var e=t.id,r=t.itemProp,i=t.property,o=t.content,a=t.name,s=document.getElementById(e);s||((s=document.createElement("meta")).id=e,n?n.after?n.after(s):document.head.appendChild(s):document.head.insertBefore(s,document.head.firstChild)),s.setAttribute("itemProp",r||""),s.setAttribute("property",i||""),s.setAttribute("content",o||""),s.setAttribute("name",a||""),n=s}))}},wx:{initialized:!1,init:function(t){var e=this;if(/MicroMessenger/i.test(navigator.userAgent)){var n=window.location.href,r=document.createElement("script");r.src="//res2.wx.qq.com/open/js/jweixin-1.6.0.js",r.onload=function(){window.requestAnimationFrame((function(){d().get("".concat(c.h.apiServer.getHost(),"/wechat/register"),{url:n}).then((function(n){var r=n.data,i=r.data,o=r.code,a=t.title,u=t.description,c=t.link,l=t.image;0===o&&(wx.config((0,s.pi)({jsApiList:["updateAppMessageShareData","updateTimelineShareData"]},i)),wx.ready((function(){wx.updateAppMessageShareData({title:a,desc:u,link:c,imgUrl:l}),wx.updateTimelineShareData({title:a,link:c,imgUrl:l}),e.initialized=!0})))})).catch(h.ZT)}))},(0,h.GH)(r)}},update:function(t){var e;if(this.initialized){var n=t.title,r=t.description,i=t.link,o=t.image;wx.updateAppMessageShareData({title:n,desc:r,link:i,imgUrl:o}),wx.updateTimelineShareData({title:n,link:i,imgUrl:o})}else null===(e=this.init)||void 0===e||e.call(this,t)}}}}return Object.defineProperty(t,"instance",{get:function(){return this._instance||(this._instance=new t),this._instance},enumerable:!1,configurable:!0}),t.setShareInfo=function(t){var e=this,n=t.title,r=t.description,i=t.image,o=void 0===i?"":i,a=t.link,s=void 0===a?function(){var t=window.location,e=t.origin,n=t.pathname;return"".concat(e).concat(n)}():a,u=t.channels,c=void 0===u?["wx","qq"]:u;"string"==typeof c?this.instance.channels[c].update({title:n,description:r,image:o,link:s}):c.forEach((function(t){e.instance.channels[t].update({title:n,description:r,image:o,link:s})}))},t}(),p=function(){},v=n(76),g=n.n(v),m=function(t){function e(e){var n=t.call(this)||this;return n.eventEnable=!1,g().init({sid:(null==e?void 0:e.sid)||"500671152",cid:null==e?void 0:e.cid}),n.eventEnable=!!(null==e?void 0:e.cid),(null==e?void 0:e.auto)&&g().pgv(),n}return(0,s.ZT)(e,t),e.prototype.event=function(t,e){this.eventEnable?g().clickStat(t,e):console.debug("MTA: 未设置cid,未启用自定义事件")},e.prototype.share=function(t){this.eventEnable?g().clickShare(t):console.debug("MTA: 未设置cid,未启用自定义事件")},e}(p),b=function(t){function e(e){var n=t.call(this)||this,r=(null==e?void 0:e.AppID)||"UA-104548031-3";window.dataLayer=window.dataLayer||[],n.dataLayer=window.dataLayer,window.gtag=n.gtag.bind(n),n.gtag("js",new Date),n.gtag("config",r);var i=document.createElement("script");return i.setAttribute("async","true"),i.setAttribute("src","https://www.googletagmanager.com/gtag/js?id=".concat(r)),(0,h.GH)(i),n}return(0,s.ZT)(e,t),e.prototype.gtag=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];this.dataLayer.push(arguments)},e.prototype.event=function(t,e){this.gtag("event",t,e)},e.prototype.share=function(t){this.gtag("event","share",t)},e}(p),_=b,w=function(t){function e(e){var n=t.call(this)||this;return n.analyticsInstances=[],e.mta&&n.analyticsInstances.push(new m("boolean"==typeof e.mta?void 0:e.mta)),e.gTag&&n.analyticsInstances.push(new _("boolean"==typeof e.gTag?void 0:e.gTag)),n}return(0,s.ZT)(e,t),e.create=function(t){return this._instance?(console.warn("[HG-WEB-SDK] Analytics instance already created."),this._instance):(this._instance=new e(t),this._instance)},Object.defineProperty(e,"instance",{get:function(){return this._instance},enumerable:!1,configurable:!0}),e.prototype.event=function(t,e){this.analyticsInstances.forEach((function(n){n.event(t,e)}))},e.prototype.share=function(t){this.analyticsInstances.forEach((function(e){e.share(t)}))},e}(p),y=function(t){return w.create(t)};y.get=function(){return w.instance};var k=y,S=n(635),E=n(8491),x=n(9923),A=n(4603),T=0,O=1,C=2,I=3,G=4,P=function(t,e){return void 0===e&&(e=h.ZT),(0,s.mG)(void 0,void 0,void 0,(function(){return(0,s.Jh)(this,(function(r){switch(r.label){case 0:return[4,n.e(787).then(n.bind(n,5787))];case 1:return(0,r.sent().showLoginDialog)({oauth:t.oauth,envApp:t.envApp,onSuccess:function(t){e(T,{hgInfo:t.hgInfo,oauthInfo:t.oauthInfo}),x.t.event("user_login")},onCancel:function(){e(C)}}),[2]}}))}))},R="HYPERGRYPH_LOGIN_DIALOG",j=function(){function t(){var t=this;this.container=null,this.initialized=!1,this.loginCallbacks=[],this.show=function(){P({},(function(e,n){0===e&&t.logged()}))},this.logged=function(){var e,n;try{for(var r=(0,s.XA)(t.loginCallbacks),i=r.next();!i.done;i=r.next()){(0,i.value)()}}catch(t){e={error:t}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(e)throw e.error}}t.hide()},this.hide=function(){}}return t.prototype.init=function(t){var e;return void 0===t&&(t={}),this.initialized||(t.container?this.container=t.container:(this.container=document.createElement("div"),this.container.id=R,this.container.classList.add(E.jX),this.container.style.position="absolute",this.container.style.zIndex=(null===(e=t.zIndex)||void 0===e?void 0:e.toString())||"999")),this},t.prototype.initAsync=function(t){return void 0===t&&(t={}),(0,s.mG)(this,void 0,void 0,(function(){var e=this;return(0,s.Jh)(this,(function(n){return[2,new Promise((function(n){var r;e.initialized||(t.container?e.container=t.container:(e.container=document.createElement("div"),e.container.id=R,e.container.style.position="absolute",e.container.style.zIndex=(null===(r=t.zIndex)||void 0===r?void 0:r.toString())||"999"),e.initialized=!0),n()}))]}))}))},t.prototype.onLogin=function(t){return this.loginCallbacks.indexOf(t)<0&&this.loginCallbacks.push(t),this},t.prototype.offLogin=function(t){var e=this.loginCallbacks.indexOf(t);return e>=0&&this.loginCallbacks.splice(e,1),this},t}(),L=new j,N=n(7091),z=n.n(N),D=new URL(n(7452),n.b),U='<div class="hg-logout-dialog"> <div class="hg-logout-dialog-mask"></div> <div class="hg-logout-dialog-layer"> <div class="hg-logout-dialog-layer-title"> <img src="'+z()(D)+'" alt="HG_LOGO"/> <div class="title-content">HYPERGRYPH<br/>ACCOUNT.</div> </div> <div class="hg-logout-dialog-layer-body"> <div class="hg-logout-info"> 您确认要登出现在的账号吗? </div> <div class="hg-logout-dialog-layer-footer"> <button class="hg-logout-dialog-btn size-lg submit" type="submit"> 确认 </button> <button class="hg-logout-dialog-btn size-lg cancel" type="button"> 取消 </button> </div> </div> </div> </div>',J=function(){function t(){var t=this;this.container=null,this.initialized=!1,this.onSubmit=function(){return(0,s.mG)(t,void 0,void 0,(function(){return(0,s.Jh)(this,(function(t){switch(t.label){case 0:return[4,M.logout()];case 1:return t.sent(),this.logged(),[2]}}))}))},this.logoutCallbacks=[],this.show=function(){var e,n;null===(n=null===(e=t.container)||void 0===e?void 0:e.firstElementChild)||void 0===n||n.setAttribute("active","true")},this.logged=function(){var e,n;try{for(var r=(0,s.XA)(t.logoutCallbacks),i=r.next();!i.done;i=r.next()){(0,i.value)()}}catch(t){e={error:t}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(e)throw e.error}}t.hide()},this.hide=function(){var e,n;null===(n=null===(e=t.container)||void 0===e?void 0:e.firstElementChild)||void 0===n||n.setAttribute("active","false")}}return t.prototype.init=function(t){var e;return void 0===t&&(t={}),n.e(616).then(n.bind(n,9616)),this.container=document.createElement("div"),this.container.id="HYPERGRYPH_LOGOUT_DIALOG",this.container.style.position="absolute",this.container.style.zIndex=(null===(e=t.zIndex)||void 0===e?void 0:e.toString())||"999",this.container.innerHTML=U,document.body.appendChild(this.container),this.initEvent(),this.initialized=!0,this},t.prototype.initEvent=function(){var t,e,n,r,i,o;this.initialized||(null===(e=null===(t=this.container)||void 0===t?void 0:t.querySelector(".submit"))||void 0===e||e.addEventListener("click",this.onSubmit),null===(r=null===(n=this.container)||void 0===n?void 0:n.querySelector(".cancel"))||void 0===r||r.addEventListener("click",this.hide),null===(o=null===(i=this.container)||void 0===i?void 0:i.querySelector(".hg-logout-dialog-mask"))||void 0===o||o.addEventListener("click",this.hide))},t.prototype.onLogout=function(t){this.logoutCallbacks.indexOf(t)<0&&this.logoutCallbacks.push(t)},t.prototype.offLogout=function(t){var e=this.logoutCallbacks.indexOf(t);e>=0&&this.logoutCallbacks.splice(e,1)},t}(),B=new J,q="hg_token",H=function(){return(0,s.mG)(void 0,void 0,void 0,(function(){var t,e;return(0,s.Jh)(this,(function(n){switch(n.label){case 0:if(t=new URL(window.location.href),!(e=t.searchParams.get(q)))return[3,4];t.searchParams.delete(q),window.history.replaceState({},"",t),n.label=1;case 1:return n.trys.push([1,3,,4]),[4,(0,S.Fr)(e)];case 2:return n.sent(),[3,4];case 3:return n.sent(),[3,4];case 4:return[2]}}))}))},M={register:S.z2,loginByPassword:S.D_,loginByCode:S.KA,tokenByCode:S.HD,tokenByScanCode:S.d4,logout:S.kS,getUserInfo:S.bG,grant:S.Bk,grantInfo:S.Fw,cancelUnbindGrant:S.CS,saveToken:S.Fr,getToken:S.LP,checkRemoteToken:S.J9,clearToken:S.qz,sendSMS:S.X,couldChangePhone:S.BX,changePhone:S.OW,changePassword:S.Cp,bindEmail:S.I8,resetOtherToken:S.AW,queryOrder:S.fn,updateAgreement:S.xk,loginDialog:L,logoutDialog:B,UI:{login:P,checkSession:function(t,e){return void 0===e&&(e=h.ZT),(0,s.mG)(void 0,void 0,void 0,(function(){var r,i,o,a,u,c,l,d,h;return(0,s.Jh)(this,(function(f){switch(f.label){case 0:return r=function(){return(0,s.mG)(void 0,void 0,void 0,(function(){var e,n,r,i,o,a;return(0,s.Jh)(this,(function(s){switch(s.label){case 0:return t.oauth?[4,(0,S.Fw)(t.oauth.appCode)]:[2,{status:T}];case 1:return e=s.sent(),n=e.result,r=e.data,i=e.status,o=e.type,a=e.statusCode,n&&r?[2,{status:T,info:{openId:r.uid}}]:"apiServer"===o&&401===a?[2,{status:I}]:i===A.k_.INVALID_TOKEN||i===A.k_.OPEN_ID_DELETING?[2,{status:G}]:[2,{status:O}]}}))}))},[4,(0,S.bG)()];case 1:return i=f.sent(),o=i.result,a=i.data,u=i.status,c=i.type,l=i.statusCode,o&&a?(null===(h=a.updatedAgreement)||void 0===h?void 0:h.length)?[4,n.e(694).then(n.bind(n,4694))]:[3,3]:[3,6];case 2:return(0,f.sent().showProtocolsUpdateDialog)({protocols:a.updatedAgreement,onConfirm:function(){return(0,s.mG)(void 0,void 0,void 0,(function(){var t;return(0,s.Jh)(this,(function(n){switch(n.label){case 0:return[4,r()];case 1:return t=n.sent(),e(t.status,{hgInfo:a,oauthInfo:t.info}),[2]}}))}))},onCancel:function(){return(0,s.mG)(void 0,void 0,void 0,(function(){return(0,s.Jh)(this,(function(t){return e(C),[2]}))}))}}),[3,5];case 3:return[4,r()];case 4:d=f.sent(),e(d.status,{hgInfo:a,oauthInfo:d.info}),f.label=5;case 5:return[3,7];case 6:"apiServer"===c&&401===l?e(I):u===A.k_.INVALID_TOKEN||u===A.k_.GUEST_ACCESS_DENIED||u===A.k_.ACCOUNT_BANNED||u===A.k_.ACCOUNT_DELETING?e(G):e(O),f.label=7;case 7:return[2]}}))}))},inheritSession:function(t,e){return void 0===e&&(e=h.ZT),(0,s.mG)(void 0,void 0,void 0,(function(){return(0,s.Jh)(this,(function(r){switch(r.label){case 0:return[4,n.e(881).then(n.bind(n,1881))];case 1:return(0,r.sent().doInheritSession)({oauth:t.oauth,onSuccess:function(t){e(T,{hgInfo:t.hgInfo,oauthInfo:t.oauthInfo})},onError:function(){e(O)},onCancel:function(){e(C)}}),[2]}}))}))}}},Z=n(9655),F=function(){function t(t,e){var n=e.html,r=e.slot,i=e.copyrightImage;this.container=t,n&&this.updateHtml(n),r&&this.setSlot(r),i&&this.setCopyrightImage(i)}return t.prototype.setSlot=function(t){this.slot=t;var e=this.container.querySelector(".footer-slot");return e&&(void 0===t?e.innerHTML="":"string"==typeof t?e.innerHTML=t:e.appendChild(t)),this},t.prototype.setCopyrightImage=function(t){this.copyrightImage=t;var e=this.container.querySelector("img#copyright-image");return e&&(e.src=t),this},t.prototype.updateHtml=function(t){return this.container.innerHTML=t,this.slot&&this.setSlot(this.slot),this.copyrightImage&&this.setCopyrightImage(this.copyrightImage),this},t}(),K=function(t,e,n){if(void 0===n&&(n={}),"string"==typeof e){var r=document.querySelector(e);if(!r)throw new Error("container not found");e=r}var i=n.slot,o=n.copyrightImage;return new F(e,{html:t.html,slot:i,copyrightImage:o})};function V(){return(0,s.mG)(this,void 0,void 0,(function(){return(0,s.Jh)(this,(function(t){return[2,{result:!0,data:{product:"AK",nameCN:"明日方舟",nameEN:"Arknights",version:"2.6.41",updatedAt:"2025/09/04",developer:"上海鹰角网络科技有限公司"}}]}))}))}var W={appId:1},X=n(7348),Q={OK:0,ACCOUNT_BANNED:1,SERVER_MAINTENANCE:2,INVALID_TOKEN:3,INVALID_REQUEST:4,ACCESS_DENIED:5,REQUIRE_CAPTCHA:6,CAPTCHA_FAILED:7,INVALID_CODE:8,PLAYER_DEACTIVATING:10,PLAYER_NOT_EXIST:101};function $(t,e,n){return(0,s.mG)(this,void 0,void 0,(function(){var r,i,o,a;return(0,s.Jh)(this,(function(s){switch(s.label){case 0:r="".concat(c.h.u8Server.getHost()).concat(t),s.label=1;case 1:return s.trys.push([1,3,,4]),[4,d().request(r,n,{timeout:1e4,method:e,withCredentials:!0,responseType:"json"})];case 2:if((i=s.sent()).data.status===Q.OK)return[2,i.data];throw new X.w(i);case 3:if(o=s.sent(),(a=o)instanceof X.w)throw a;if(a.status&&a.response)throw a.status,new X.w({status:a.status,data:a.response.data});throw a;case 4:return[2]}}))}))}var Y=function(t){var e=t.appId;return{getToken:function(t,n){return(0,s.mG)(this,void 0,void 0,(function(){return(0,s.Jh)(this,(function(r){return[2,(0,X.j)((function(){return $("/u8/user/auth/v1/token_by_channel_token","POST",{appId:e,channelMasterId:t,channelToken:n})}))]}))}))},getInfo:function(t){var n=t.u8Token,r=t.channelMasterId,i=t.channelToken;return(0,s.mG)(this,void 0,void 0,(function(){var t;return(0,s.Jh)(this,(function(o){return t=n?{token:n}:{appId:e,channelMasterId:r,channelToken:i},[2,(0,X.j)((function(){return $("/u8/user/info/v1/basic","POST",t)}))]}))}))},queryOrder:function(t){var n=t.u8Token,r=t.channelMasterId,i=t.channelToken;return(0,s.mG)(this,void 0,void 0,(function(){var t;return(0,s.Jh)(this,(function(o){return t=n?{token:n}:{appId:e,channelMasterId:r,channelToken:i},[2,(0,X.j)((function(){return $("/u8/pay/v1/recent","POST",t)}))]}))}))}}}(W),tt=n(6433),et={official:1,bilibili:2};function nt(t,e){return(0,s.mG)(this,void 0,void 0,(function(){return(0,s.Jh)(this,(function(n){return[2,Y.getToken(t,e)]}))}))}var rt={CHANNEL_MAP:et,getTokenByHgCode:function(t,e){return void 0===e&&(e=2),(0,s.mG)(this,void 0,void 0,(function(){return(0,s.Jh)(this,(function(n){return[2,nt(et.official,{type:e,code:t})]}))}))},getTokenByBilibiliCode:function(t){return(0,s.mG)(this,void 0,void 0,(function(){return(0,s.Jh)(this,(function(e){return[2,nt(et.bilibili,{type:1,code:t})]}))}))},getPlayerInfo:function(t,e){var n;return void 0===e&&(e=et.official),(0,s.mG)(this,void 0,void 0,(function(){var r,i,o;return(0,s.Jh)(this,(function(a){switch(a.label){case 0:return t?[2,Y.getInfo({channelMasterId:e,channelToken:t})]:[4,M.getToken()];case 1:return r=a.sent(),i=null===(n=r.data)||void 0===n?void 0:n.token,r.result&&i?[4,Y.getInfo({channelMasterId:et.official,channelToken:{token:i}})]:[3,3];case 2:return(o=a.sent()).result||o.status!==Q.INVALID_TOKEN||M.clearToken(),[2,o];case 3:return[2,(0,s.pi)((0,s.pi)({},r),{data:void 0})]}}))}))},getPlayerInfoByToken:function(t){return(0,s.mG)(this,void 0,void 0,(function(){return(0,s.Jh)(this,(function(e){return[2,Y.getInfo({u8Token:t})]}))}))},insertFooter:function(t,e){return(0,s.mG)(void 0,void 0,void 0,(function(){var r,i,o,a,u,c;return(0,s.Jh)(this,(function(s){switch(s.label){case 0:return[4,n.e(664).then(n.bind(n,5664))];case 1:return r=s.sent().tpl.html,i=K({html:r},t,e),[4,V()];case 2:return(o=s.sent()).result&&(a=i.container.querySelector(".footer-claim-info.version"),u=i.container.querySelector(".footer-claim-info.developer"),c=i.container.querySelector(".footer-claim-info.update"),u&&(u.innerHTML=o.data.developer),a&&(a.innerHTML=o.data.version),c&&(c.innerHTML=o.data.updatedAt)),[2,i]}}))}))},getVersionMeta:V,queryOrder:function(t){var e;return(0,s.mG)(this,void 0,void 0,(function(){var n,r,i;return(0,s.Jh)(this,(function(o){switch(o.label){case 0:return t?[2,Y.queryOrder({channelMasterId:et.official,channelToken:t})]:[4,M.getToken()];case 1:return n=o.sent(),r=null===(e=n.data)||void 0===e?void 0:e.token,n.result&&r?[4,Y.queryOrder({channelMasterId:et.official,channelToken:{token:r}})]:[3,3];case 2:return(i=o.sent()).result||i.status!==Q.INVALID_TOKEN||M.clearToken(),[2,i];case 3:return[2,(0,s.pi)((0,s.pi)({},n),{data:void 0})]}}))}))},getAccountChannel:function(){return(0,s.mG)(void 0,void 0,void 0,(function(){var t,e;return(0,s.Jh)(this,(function(n){switch(n.label){case 0:return[4,tt.q.get("ak")];case 1:return(t=n.sent()).result&&(null===(e=t.data)||void 0===e?void 0:e.content)?[2,(0,s.pi)((0,s.pi)({},t),{data:{channelId:parseInt(t.data.content)}})]:[2,(0,s.pi)((0,s.pi)({},t),{data:void 0})]}}))}))},saveAccountChannel:function(t){return tt.q.set({content:String(t)},"ak")},clearAccountChannel:function(){return tt.q.clear("ak")},getBilibiliToken:function(){return(0,s.mG)(void 0,void 0,void 0,(function(){var t,e;return(0,s.Jh)(this,(function(n){switch(n.label){case 0:return[4,tt.q.get("ak-b")];case 1:return(t=n.sent()).result&&(null===(e=t.data)||void 0===e?void 0:e.content)?[2,(0,s.pi)((0,s.pi)({},t),{data:{token:t.data.content}})]:[2,(0,s.pi)((0,s.pi)({},t),{data:void 0})]}}))}))},saveBilibiliToken:function(t){return tt.q.set({content:t},"ak-b")},clearBilibiliToken:function(){return tt.q.clear("ak-b")}},it={insertFooter:function(t,e){return(0,s.mG)(void 0,void 0,void 0,(function(){var r;return(0,s.Jh)(this,(function(i){switch(i.label){case 0:return[4,n.e(533).then(n.bind(n,9533))];case 1:return r=i.sent().tpl.html,[2,K({html:r},t,e)]}}))}))}},ot={"zh-cn":function(){return n.e(28).then(n.bind(n,1028))},ja:function(){return n.e(590).then(n.bind(n,7590))},en:function(){return n.e(590).then(n.bind(n,7590))}},at={insertFooter:function(t,e){return(0,s.mG)(void 0,void 0,void 0,(function(){var r,i,o;return(0,s.Jh)(this,(function(a){switch(a.label){case 0:if("string"==typeof t){if(!(r=document.querySelector(t)))throw new Error("container not found");t=r}return i=(e||{}).lang,[4,(ot[void 0===i?"zh-cn":i]||ot["zh-cn"])()];case 1:return o=a.sent().default,n.e(93).then(n.bind(n,7093)),K({html:o},t),[2]}}))}))}},st=JSON.parse('{"ICP":"沪ICP备17022476号-1","NCL":"沪网文〔2022〕0241-018号","PSR":"沪公网安备 31010402005145号","href_PSR":"http://www.beian.gov.cn/portal/registerSystemInfo?recordcode=31010402005145","copyright":"Copyright ©2017 - 2025 Hypergryph Co.,Ltd. All Rights Reserved.","copyright_CN":"Copyright ©2017 - 2025 上海鹰角网络科技有限公司","address":"上海市嘉定区南翔镇银翔路799号昌辉大厦504-1室","telephone":"021-64399377","CS_QQ":"","antiFraud":"亲爱的市民朋友,上海警方反诈劝阻电话“962110”系专门针对避免您财产被骗受损而设,请您一旦收到来电,立即接听。","healthTips":["抵制不良游戏","拒绝盗版游戏","注意自我保护","谨防受骗上当","适度游戏益脑","沉迷游戏伤身","合理安排时间","享受健康生活"],"arknights":{"ageTips":["本网络游戏适合年满12周岁以上的用户使用","为了您的健康,请合理控制游戏时间"],"approval":"国新出审〔2019〕49号","ISBN":"ISBN 978-7-498-05646-7"},"exa":{"approval":"国新出审〔2023〕2031号","ISBN":"ISBN 978-7-498-12813-3"}}');var ut={sendEmailCode:function(t){return(0,s.mG)(this,void 0,void 0,(function(){return(0,s.Jh)(this,(function(e){return[2,A.ej.general.sendEmailCode(t)]}))}))}},ct=n(132),lt=n(9016),dt=n(1721),ht=n(4024),ft=n(3837),pt=n(8230),vt=n(536),gt=n(6897);function mt(t){return dt.P.create("u8",(0,s.pi)({msg:t.msg||bt[t.code]},t))}var bt={TOKEN_EXPIRED:(0,ht.Z)("登录状态已失效"),CAPTCHA_VALIDATE_FAILED:(0,ht.Z)("人机验证失败"),INTERVENING:(0,ht.Z)("账号暂时无法使用"),ROLE_CANCELLING:(0,ht.Z)("您的游戏账号在注销冷静期中"),ROLE_BANNED:(0,ht.Z)("游戏账号封禁中"),NO_ROLE:(0,ht.Z)("游戏账号不存在"),DEFAULT:(0,ht.Z)("未处理异常")},_t=0,wt=1,yt=6,kt=7,St=9,Et=10,xt=101,At=new pt.KU({host:c.h.u8Server.getHost,timeout:1e4,onResponse:function(t,e){return(0,s.mG)(void 0,void 0,void 0,(function(){var n,r,i;return(0,s.Jh)(this,(function(o){switch(o.label){case 0:return t.status===_t?[2,t.data]:t.status!==yt?[3,3]:(n=t.data.captcha,[4,(0,gt.B)(n)]);case 1:return(r=o.sent())?[4,e.client.request(e.url,(0,s.pi)((0,s.pi)({},e.option),{data:(0,s.pi)((0,s.pi)({},null===(i=e.option)||void 0===i?void 0:i.data),{captcha:r})}))]:[3,3];case 2:if((t=o.sent()).status===_t)return[2,t.data];o.label=3;case 3:switch(t.status){case wt:throw mt({code:"ROLE_BANNED",data:{startTs:t.data.banStartTs,endTs:t.data.banEndTs},msg:t.msg});case kt:throw mt({code:"CAPTCHA_VALIDATE_FAILED",msg:t.msg});case St:throw mt({code:"INTERVENING",msg:t.msg});case Et:throw mt({code:"ROLE_CANCELLING",msg:t.msg,data:{requestTs:t.data.delete_request_ts,commitTs:t.data.delete_commit_ts}});case xt:throw mt({code:"NO_ROLE",msg:t.msg})}throw mt({code:"DEFAULT",msg:t.msg,data:t.data,detail:t})}}))}))},onError:function(t){return(0,s.mG)(void 0,void 0,void 0,(function(){return(0,s.Jh)(this,(function(e){if(vt.o.is(t))throw 401===t.statusCode?mt({code:"TOKEN_EXPIRED"}):new dt.q("REQUEST_ERROR",t.message);throw t}))}))}});function Tt(t,e,n){return(0,s.mG)(this,void 0,void 0,(function(){return(0,s.Jh)(this,(function(r){switch(r.label){case 0:return[4,At.post("/u8/user/auth/v2/token_by_channel_token",{appId:t,channelMasterId:e,channelToken:n})];case 1:return[2,r.sent().token]}}))}))}function Ot(t){return(0,s.mG)(this,void 0,void 0,(function(){return(0,s.Jh)(this,(function(e){switch(e.label){case 0:return[4,At.post("/u8/user/auth/v2/grant",{token:t,type:1})];case 1:return[2,e.sent()]}}))}))}function Ct(t){return(0,s.mG)(this,void 0,void 0,(function(){return(0,s.Jh)(this,(function(e){switch(e.label){case 0:return[4,At.get("/u8/user/info/v2/basic",{token:t})];case 1:return[2,e.sent()]}}))}))}function It(t){return(0,s.mG)(this,void 0,void 0,(function(){var e,n,r;return(0,s.Jh)(this,(function(i){switch(i.label){case 0:if(e=(0,lt.NI)(t),void 0===(n=e.u8AppId))throw new dt.q("GAME_CANT_BE_AUTH",(0,ht.Z)("当前游戏无法登录"));return[4,ft.TG()];case 1:return r=i.sent(),[4,Tt(n,E.GV.OFFICIAL,{type:0,token:r})];case 2:return[2,i.sent()]}}))}))}function Gt(t,e,n){return(0,s.mG)(this,void 0,void 0,(function(){var r,i;return(0,s.Jh)(this,(function(o){switch(o.label){case 0:if(r=(0,lt.NI)(t),void 0===(i=r.u8AppId))throw new dt.q("GAME_CANT_BE_AUTH",(0,ht.Z)("当前游戏无法登录"));return[4,Tt(i,e,{type:1,code:n})];case 1:return[2,o.sent()]}}))}))}function Pt(t){return(0,s.mG)(this,void 0,void 0,(function(){return(0,s.Jh)(this,(function(e){return[2,Ct(t)]}))}))}function Rt(t){return(0,s.mG)(this,void 0,void 0,(function(){return(0,s.Jh)(this,(function(e){return[2,Ot(t)]}))}))}var jt={API:r},Lt=n(1995);function Nt(t,e){return(0,s.mG)(this,void 0,void 0,(function(){var n,r,i;return(0,s.Jh)(this,(function(o){switch(o.label){case 0:return o.trys.push([0,4,,5]),r=t(),(0,Lt.tI)(r)?[4,r]:[3,2];case 1:return n=o.sent(),[3,3];case 2:n=r,o.label=3;case 3:return[3,5];case 4:throw i=o.sent(),null==e||e(i,null),i;case 5:return null==e||e(null,n),[2,n]}}))}))}var zt=n(3946);function Dt(t,e){return Nt((function(){return zt.Ke((0,lt.r)(t))}),e)}function Ut(t,e){return Nt((function(){return zt.W0((0,lt.r)(t))}),e)}var Jt={UI:{showSelectDialog:function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];n.e(374).then(n.bind(n,4367)).then((function(e){e.showSelectDialog.apply(e,(0,s.ev)([],(0,s.CR)(t),!1))}))}},API:i},Bt=n(5956);function qt(t){var e=void 0===t?{}:t,n=e.availableRegions;return Nt((function(){return Bt.oX(n)}),e.callback)}var Ht={UI:{showSelectDialog:function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];n.e(389).then(n.bind(n,5323)).then((function(e){e.showSelectDialog.apply(e,(0,s.ev)([],(0,s.CR)(t),!1))}))}},API:o},Mt=dt.q.is.bind(dt.q),Zt=dt.q.isSafe.bind(dt.q),Ft=n(7918),Kt=n(7226);var Vt,Wt=function(t){if(!(0,Kt.Z)(t))return!1;var e=(0,Ft.Z)(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e},Xt=n(8003),Qt=Xt.Z["__core-js_shared__"],$t=(Vt=/[^.]+$/.exec(Qt&&Qt.keys&&Qt.keys.IE_PROTO||""))?"Symbol(src)_1."+Vt:"";var Yt=function(t){return!!$t&&$t in t},te=Function.prototype.toString;var ee=function(t){if(null!=t){try{return te.call(t)}catch(t){}try{return t+""}catch(t){}}return""},ne=/^\[object .+?Constructor\]$/,re=Function.prototype,ie=Object.prototype,oe=re.toString,ae=ie.hasOwnProperty,se=RegExp("^"+oe.call(ae).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");var ue=function(t){return!(!(0,Kt.Z)(t)||Yt(t))&&(Wt(t)?se:ne).test(ee(t))};var ce=function(t,e){return null==t?void 0:t[e]};var le=function(t,e){var n=ce(t,e);return ue(n)?n:void 0},de=le(Object,"create");var he=function(){this.__data__=de?de(null):{},this.size=0};var fe=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e},pe=Object.prototype.hasOwnProperty;var ve=function(t){var e=this.__data__;if(de){var n=e[t];return"__lodash_hash_undefined__"===n?void 0:n}return pe.call(e,t)?e[t]:void 0},ge=Object.prototype.hasOwnProperty;var me=function(t){var e=this.__data__;return de?void 0!==e[t]:ge.call(e,t)};var be=function(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=de&&void 0===e?"__lodash_hash_undefined__":e,this};function _e(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}_e.prototype.clear=he,_e.prototype.delete=fe,_e.prototype.get=ve,_e.prototype.has=me,_e.prototype.set=be;var we=_e;var ye=function(){this.__data__=[],this.size=0};var ke=function(t,e){return t===e||t!=t&&e!=e};var Se=function(t,e){for(var n=t.length;n--;)if(ke(t[n][0],e))return n;return-1},Ee=Array.prototype.splice;var xe=function(t){var e=this.__data__,n=Se(e,t);return!(n<0)&&(n==e.length-1?e.pop():Ee.call(e,n,1),--this.size,!0)};var Ae=function(t){var e=this.__data__,n=Se(e,t);return n<0?void 0:e[n][1]};var Te=function(t){return Se(this.__data__,t)>-1};var Oe=function(t,e){var n=this.__data__,r=Se(n,t);return r<0?(++this.size,n.push([t,e])):n[r][1]=e,this};function Ce(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}Ce.prototype.clear=ye,Ce.prototype.delete=xe,Ce.prototype.get=Ae,Ce.prototype.has=Te,Ce.prototype.set=Oe;var Ie=Ce,Ge=le(Xt.Z,"Map");var Pe=function(){this.size=0,this.__data__={hash:new we,map:new(Ge||Ie),string:new we}};var Re=function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t};var je=function(t,e){var n=t.__data__;return Re(e)?n["string"==typeof e?"string":"hash"]:n.map};var Le=function(t){var e=je(this,t).delete(t);return this.size-=e?1:0,e};var Ne=function(t){return je(this,t).get(t)};var ze=function(t){return je(this,t).has(t)};var De=function(t,e){var n=je(this,t),r=n.size;return n.set(t,e),this.size+=n.size==r?0:1,this};function Ue(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}Ue.prototype.clear=Pe,Ue.prototype.delete=Le,Ue.prototype.get=Ne,Ue.prototype.has=ze,Ue.prototype.set=De;var Je=Ue;var Be=function(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this};var qe=function(t){return this.__data__.has(t)};function He(t){var e=-1,n=null==t?0:t.length;for(this.__data__=new Je;++e<n;)this.add(t[e])}He.prototype.add=He.prototype.push=Be,He.prototype.has=qe;var Me=He;var Ze=function(t,e,n,r){for(var i=t.length,o=n+(r?1:-1);r?o--:++o<i;)if(e(t[o],o,t))return o;return-1};var Fe=function(t){return t!=t};var Ke=function(t,e,n){for(var r=n-1,i=t.length;++r<i;)if(t[r]===e)return r;return-1};var Ve=function(t,e,n){return e==e?Ke(t,e,n):Ze(t,Fe,n)};var We=function(t,e){return!!(null==t?0:t.length)&&Ve(t,e,0)>-1};var Xe=function(t,e,n){for(var r=-1,i=null==t?0:t.length;++r<i;)if(n(e,t[r]))return!0;return!1};var Qe=function(t,e){return t.has(e)},$e=le(Xt.Z,"Set");var Ye=function(){};var tn=function(t){var e=-1,n=Array(t.size);return t.forEach((function(t){n[++e]=t})),n},en=$e&&1/tn(new $e([,-0]))[1]==1/0?function(t){return new $e(t)}:Ye;var nn=function(t,e,n){var r=-1,i=We,o=t.length,a=!0,s=[],u=s;if(n)a=!1,i=Xe;else if(o>=200){var c=e?null:en(t);if(c)return tn(c);a=!1,i=Qe,u=new Me}else u=e?[]:s;t:for(;++r<o;){var l=t[r],d=e?e(l):l;if(l=n||0!==l?l:0,a&&d==d){for(var h=u.length;h--;)if(u[h]===d)continue t;e&&u.push(d),s.push(l)}else i(u,d,n)||(u!==s&&u.push(d),s.push(l))}return s};var rn=function(t){return t&&t.length?nn(t):[]},on=n(3441),an=function(t){function e(n){var r=n.status,i=void 0===r?200:r,o=n.data,a=t.call(this,(null==o?void 0:o.msg)||(null==o?void 0:o.message))||this;return a.type=e.type,a.status=i,a.data=o,a}return(0,s.ZT)(e,t),e.type="bindingServerError",e}(Error);function sn(t){var e,n;return(0,s.mG)(this,void 0,void 0,(function(){var r,i,o;return(0,s.Jh)(this,(function(a){switch(a.label){case 0:return a.trys.push([0,2,,3]),[4,t()];case 1:return r=a.sent(),[2,(0,s.pi)((0,s.pi)({},r),{result:!0})];case 2:return i=a.sent(),o=i,[2,(0,s.pi)((0,s.pi)({},(null==o?void 0:o.data)||{}),{statusCode:o.status,msg:(null===(e=null==o?void 0:o.data)||void 0===e?void 0:e.message)||(null===(n=null==o?void 0:o.data)||void 0===n?void 0:n.msg)||"网络异常",result:!1})];case 3:return[2]}}))}))}var un=0;function cn(t,e,n){return(0,s.mG)(this,void 0,void 0,(function(){var r,i,o,a;return(0,s.Jh)(this,(function(s){switch(s.label){case 0:r="".concat(c.h.bindingServer.getHost()).concat(t),s.label=1;case 1:return s.trys.push([1,3,,4]),[4,d().request(r,n,{timeout:1e4,method:e,withCredentials:!0,responseType:"json"})];case 2:if((i=s.sent()).data.status===un)return[2,i.data];throw new an(i);case 3:if(o=s.sent(),(a=o).type===an.type)throw a;if(a.status&&a.response)throw new an({status:a.status,data:a.response.data});throw a;case 4:return[2]}}))}))}var ln=function(t){var e=t.token,n=t.appCode;return sn((function(){return cn("/account/reservation/v1/query","GET",{token:e,appCode:n})}))},dn=function(t){var e=t.token,n=t.appCode,r=t.source,i=t.platform;return sn((function(){return cn("/account/reservation/v1/apply","POST",{token:e,appCode:n,source:r,platform:i})}))},hn={HG:1,SKLAND:2},fn=function(){return(0,s.mG)(void 0,void 0,void 0,(function(){var t,e,n,r;return(0,s.Jh)(this,(function(i){switch(i.label){case 0:return[4,M.getToken()];case 1:return(t=i.sent()).result&&(null===(n=t.data)||void 0===n?void 0:n.token)?[4,M.grant(on.n.appCode)]:[2,(0,s.pi)((0,s.pi)({},t),{data:void 0})];case 2:return(e=i.sent()).result&&(null===(r=e.data)||void 0===r?void 0:r.token)?[2,e]:[2,(0,s.pi)((0,s.pi)({},e),{data:void 0})]}}))}))},pn={doReservation:function(t,e){return(0,s.mG)(void 0,void 0,void 0,(function(){var n,r;return(0,s.Jh)(this,(function(i){switch(i.label){case 0:return[4,fn()];case 1:return n=i.sent(),(null===(r=n.data)||void 0===r?void 0:r.token)?[2,dn({token:n.data.token,appCode:t,platform:rn(e.platform),source:hn[e.source]})]:[2,(0,s.pi)((0,s.pi)({},n),{data:void 0})]}}))}))},checkReservation:function(t){return(0,s.mG)(void 0,void 0,void 0,(function(){var e,n;return(0,s.Jh)(this,(function(r){switch(r.label){case 0:return[4,fn()];case 1:return e=r.sent(),(null===(n=e.data)||void 0===n?void 0:n.token)?[2,ln({token:e.data.token,appCode:t})]:[2,(0,s.pi)((0,s.pi)({},e),{data:void 0})]}}))}))}},vn=n(3661),gn="x_session_code",mn=function(){return(0,s.mG)(void 0,void 0,void 0,(function(){var t,e,n;return(0,s.Jh)(this,(function(r){switch(r.label){case 0:if(t=new URL(window.location.href),!(e=t.searchParams.get(gn)))return[3,6];t.searchParams.delete(gn),window.history.replaceState({},"",t),r.label=1;case 1:return r.trys.push([1,5,,6]),[4,(0,vn.o2)(e)];case 2:return(n=r.sent())?[4,M.saveToken(n)]:[3,4];case 3:r.sent(),r.label=4;case 4:return[3,6];case 5:return r.sent(),[3,6];case 6:return[2]}}))}))},bn=function(t){return(0,s.mG)(void 0,void 0,void 0,(function(){var e,n,r;return(0,s.Jh)(this,(function(i){switch(i.label){case 0:if(e=new URL(t),![/(^|.+\.)hypergryph\.com$/,/(^|.+\.)hypergryph\.net$/,/(^|.+\.)skland\.com$/].some((function(t){return t.test(e.host)})))return[3,7];i.label=1;case 1:return i.trys.push([1,5,,6]),[4,ct.Z.API.getToken()];case 2:return(n=i.sent())?[4,(0,vn.kD)(n)]:[3,4];case 3:(r=i.sent())&&(e.search?e.search+="&".concat(gn,"=").concat(encodeURIComponent(r)):e.search="?".concat(gn,"=").concat(encodeURIComponent(r))),i.label=4;case 4:return[3,6];case 5:return i.sent(),[3,6];case 6:return[2,e.href];case 7:return[2,t]}}))}))},_n={open:function(t,e){return void 0===e&&(e="_blank"),(0,s.mG)(this,void 0,void 0,(function(){var n,r,i,o;return(0,s.Jh)(this,(function(a){switch(a.label){case 0:return n=new URL(t),[/(^|.+\.)hypergryph\.com$/,/(^|.+\.)hypergryph\.net$/,/(^|.+\.)skland\.com$/].some((function(t){return t.test(n.host)}))?(r=null,"_blank"!==e?[3,2]:[4,window.open("about:blank",e)]):[3,4];case 1:(r=a.sent())&&r!==window&&r.document&&(r.document.write('<div style="position: fixed; width: 100%; height: 100%; background-color: #000000; color: #fff; display: flex; justify-content: center; align-items: center;"><span class="loader" style="font-size: 24px;">LOADING...</span></div>'),r.document.body.style.margin="0",(i=r.document.createElement("style")).innerHTML="\n .loader {\n font-weight: bold;\n font-family: sans-serif;\n animation: l1 0.2s linear infinite alternate;\n }\n @keyframes l1 {to{opacity: 0}}",r.document.head.append(i)),a.label=2;case 2:return[4,bn(t)];case 3:return o=a.sent(),r&&r!==window?r.location.replace(o):window.location.assign(o),[3,5];case 4:window.open(t,e),a.label=5;case 5:return[2]}}))}))},utils:{getUrlWithSessionCode:bn}};function wn(t,e){var n=new URL(t);return Object.entries(e).forEach((function(t){var e=(0,s.CR)(t,2),r=e[0],i=e[1];n.searchParams.set(r,i)})),n.toString()}var yn=!navigator.userAgent.match(/(phone|pad|pod|iPhone|iPod|ios|iPad|Android|Mobile|BlackBerry|IEMobile|MQQBrowser|JUC|Fennec|wOSBrowser|BrowserNG|WebOS|Symbian|Windows Phone)/i);function kn(t){var e={title:t.title,text:t.title,url:t.url};return"function"==typeof navigator.share&&"function"==typeof navigator.canShare&&navigator.canShare(e)}var Sn=function(){function t(t,e){var r=this;this.shareToWeibo=function(){return(0,s.mG)(r,void 0,void 0,(function(){var t;return(0,s.Jh)(this,(function(e){return t="https://service.weibo.com/share/share.php?url=".concat(encodeURIComponent(this.url),"&title=").concat(encodeURIComponent(this.title),"&pic=").concat(encodeURIComponent(this.image),"&searchPic=false"),this.openWindow(t),[2,!0]}))}))},this.shareToQQ=function(){return(0,s.mG)(r,void 0,void 0,(function(){var t;return(0,s.Jh)(this,(function(e){return t="https://connect.qq.com/widget/shareqq/index.html?url=".concat(encodeURIComponent(this.url),"&title=").concat(encodeURIComponent(this.title),"&pics=").concat(encodeURIComponent(this.image),"&summary=").concat(encodeURIComponent(this.description)),this.openWindow(t),[2,!0]}))}))},this.shareToQZone=function(){return(0,s.mG)(r,void 0,void 0,(function(){var t;return(0,s.Jh)(this,(function(e){return t="https://sns.qzone.qq.com/cgi-bin/qzshare/cgi_qzshare_onekey?url=".concat(encodeURIComponent(this.url),"&title=").concat(encodeURIComponent(this.title),"&pics=").concat(encodeURIComponent(this.image),"&summary=").concat(encodeURIComponent(this.description)),this.openWindow(t),[2,!0]}))}))},this.shareLinkInSkland=function(){return(0,s.mG)(r,void 0,void 0,(function(){var t;return(0,s.Jh)(this,(function(e){switch(e.label){case 0:return[4,n.e(306).then(n.bind(n,2306))];case 1:return!1===(t=e.sent()).checkInSklandApp()?[2,!1]:[4,t.default.shareLink({link:this.url,title:this.title,description:this.description,thumbUrl:this.image})];case 2:return e.sent(),[2,!0]}}))}))},this.copyLink=function(){return(0,s.mG)(r,void 0,void 0,(function(){var t,e;return(0,s.Jh)(this,(function(n){switch(n.label){case 0:return t=this.url,(null===(e=this.options)||void 0===e?void 0:e.copyTitle)&&(t="【".concat(this.title,"】 ").concat(this.url)),[4,this.copyToClipboard(t)];case 1:return[2,n.sent()]}}))}))},this.shareWithSystem=function(){return(0,s.mG)(r,void 0,void 0,(function(){var t,e;return(0,s.Jh)(this,(function(n){switch(n.label){case 0:if(t={title:this.title,text:this.title,url:this.url},!kn(this))return[2,!1];n.label=1;case 1:return n.trys.push([1,3,,4]),[4,navigator.share(t)];case 2:return n.sent(),[2,!0];case 3:return e=n.sent(),console.error(e),[2,!1];case 4:return[2]}}))}))},this.url=t.url||location.href,this.title=t.title||document.title,this.description=t.desc||"",this.image=t.imgUrl||"",this.options=e,this.shareBy=t.shareBy;var i={share_type:"link"};void 0!==this.shareBy&&(i.share_by=this.shareBy.toString()),this.url=wn(this.url,i)}return t.prototype.share=function(t){return(0,s.mG)(this,void 0,void 0,(function(){var e;return(0,s.Jh)(this,(function(n){switch(n.label){case 0:return(e={weibo:this.shareToWeibo,qq:this.shareToQQ,qzone:this.shareToQZone,copy:this.copyLink,system:this.shareWithSystem,"link-in-skland":this.shareLinkInSkland})[t]?[4,e[t].call(this)]:[3,2];case 1:return[2,n.sent()];case 2:return console.error("Unsupported platform: ".concat(t)),[2,!1]}}))}))},t.prototype.openWindow=function(t){window.open(t,"newWindow","width=600,height=400,left=0,top=0")},t.prototype.copyToClipboard=function(t){return(0,s.mG)(this,void 0,void 0,(function(){var e;return(0,s.Jh)(this,(function(n){switch(n.label){case 0:if(!navigator.clipboard||!window.isSecureContext)return[3,5];n.label=1;case 1:return n.trys.push([1,3,,4]),[4,navigator.clipboard.writeText(t)];case 2:return n.sent(),[2,!0];case 3:return e=n.sent(),console.error("Failed to copy: ",e),[2,this.fallbackCopyToClipboard(t)];case 4:return[3,6];case 5:return[2,this.fallbackCopyToClipboard(t)];case 6:return[2]}}))}))},t.prototype.fallbackCopyToClipboard=function(t){var e=document.createElement("textarea");e.value=t,e.style.position="fixed",document.body.appendChild(e),e.focus(),e.select();try{return document.execCommand("copy"),document.body.removeChild(e),!0}catch(t){return console.error("Failed to copy text: ",t),document.body.removeChild(e),!1}},t}(),En={generateQRCode:function(t){var e=t.url,r=t.shareBy,i=t.options;return(0,s.mG)(this,void 0,void 0,(function(){var t,o,a,u,c,l;return(0,s.Jh)(this,(function(d){switch(d.label){case 0:return d.trys.push([0,3,,4]),[4,n.e(592).then(n.t.bind(n,2592,19))];case 1:return t=d.sent(),o={share_type:"qrcode"},void 0!==r&&(o.share_by=r.toString()),a=wn(e,o),u={width:256,margin:1,color:{dark:"#000000",light:"#ffffff"}},c=(0,s.pi)((0,s.pi)({},u),i),[4,t.toDataURL(a,c)];case 2:return[2,d.sent()];case 3:return l=d.sent(),console.error("Failed to generate QR code",l),[2,""];case 4:return[2]}}))}))}},xn=function(){function t(t){this.params=t}return t.prototype.skland=function(){return(0,s.mG)(this,void 0,void 0,(function(){return(0,s.Jh)(this,(function(t){return[2,[{key:"link-in-skland",icon:n(7317),title:"分享"}]]}))}))},t.prototype.pc=function(){return[{key:"weibo",icon:n(8185),title:"微博"},{key:"qq",icon:n(3491),title:"QQ"},{key:"qzone",icon:n(7376),title:"QQ空间"},{key:"copy",icon:n(6290),title:"复制链接"}]},t.prototype.mobile=function(){return kn(this.params)?[{key:"system",icon:n(7317),title:"系统分享"},{key:"copy",icon:n(6290),title:"复制链接"}]:[{key:"copy",icon:n(6290),title:"复制链接"}]},t.prototype.getChannels=function(){return(0,s.mG)(this,void 0,void 0,(function(){var t;return(0,s.Jh)(this,(function(e){switch(e.label){case 0:return[4,n.e(306).then(n.bind(n,2306))];case 1:return t=e.sent().checkInSklandApp,t()?[2,this.skland()]:yn?[2,this.pc()]:[2,this.mobile()]}}))}))},t}(),An=function(){function t(){this.utils=En}return t.prototype.setGlobalConfig=function(t,e){this.params=t,this.options=(0,s.pi)((0,s.pi)({},this.options),e)},t.prototype.shareSiteTo=function(t,e,n){var r;return(0,s.mG)(this,void 0,void 0,(function(){var i,o;return(0,s.Jh)(this,(function(a){switch(a.label){case 0:if(!(i={params:e||this.params,options:n||this.options}).params)throw new Error("share params not set, you should set global config params by setGlobalConfig or provide params to function");return[4,new Sn(i.params,i.options).share(t)];case 1:return(o=a.sent())&&x.t.event("social_media_share",{channel:"copy"===t?"copy_url":t,target:(null===(r=i.options)||void 0===r?void 0:r.target)||"main_site"}),[2,o]}}))}))},t.prototype.canShareSystem=function(t){var e=t||this.params;if(!e)throw new Error("Share parameters are required. Please use setGlobalConfig to set default params or provide params to this function");return kn(e)},t.prototype.getAvailableChannels=function(t){return(0,s.mG)(this,void 0,void 0,(function(){var e;return(0,s.Jh)(this,(function(n){if(!(e=(null==t?void 0:t.params)||this.params))throw new Error("Share parameters are required. Please use setGlobalConfig to set default params or provide params to this function");return[2,new xn(e).getChannels()]}))}))},t}(),Tn=new An,On=n(6096),Cn={insertFooter:function(t,e){return(0,s.mG)(void 0,void 0,void 0,(function(){var r;return(0,s.Jh)(this,(function(i){switch(i.label){case 0:return[4,n.e(576).then(n.bind(n,5576))];case 1:return r=i.sent().tpl.html,[2,K({html:r},t,e)]}}))}))}},In={host:"https://core-api-survey-prod.hypergryph.com",appCode:"cf5fa52d9dd9511d"},Gn=function(t){function e(n){var r=n.statusCode,i=void 0===r?200:r,o=n.resBody,a=void 0===o?{}:o,s=t.call(this,a.msg||a.message||"network error")||this;return s.type=e.type,s.statusCode=i,s.resBody=a,s}return(0,s.ZT)(e,t),e.type="webSurveyServerError",e}(Error),Pn=function(t){return(null==t?void 0:t.type)===Gn.type};function Rn(t){return(0,s.mG)(this,void 0,void 0,(function(){var e,n,r;return(0,s.Jh)(this,(function(i){switch(i.label){case 0:return i.trys.push([0,2,,3]),[4,t()];case 1:return e=i.sent(),[2,(0,s.pi)((0,s.pi)({},e),{result:!0})];case 2:return n=i.sent(),Pn(r=n)?[2,(0,s.pi)((0,s.pi)({},(null==r?void 0:r.resBody)||{}),{statusCode:r.statusCode,result:!1})]:(console.warn(r),[2,{result:!1,msg:(null==r?void 0:r.message)||"network error"}]);case 3:return[2]}}))}))}var jn,Ln,Nn=function(t){var e=t.token,n=t.surveyId;return(0,s.mG)(void 0,void 0,void 0,(function(){return(0,s.Jh)(this,(function(t){return[2,Rn((function(){return function(t,e,n){return void 0===e&&(e=null),void 0===n&&(n="GET"),(0,s.mG)(this,void 0,void 0,(function(){var r,i,o;return(0,s.Jh)(this,(function(a){switch(a.label){case 0:return a.trys.push([0,2,,3]),[4,d().request(t,e,{baseURL:In.host,method:n,withCredentials:!1,responseType:"json",timeout:1e4})];case 1:if(0===(r=a.sent()).data.code)return[2,r.data];throw new Gn({resBody:r.data});case 2:if(i=a.sent(),Pn(o=i))throw o;if(o.status&&o.response)throw new Gn({statusCode:o.status,resBody:o.response.data});throw o;case 3:return[2]}}))}))}("/client/v1/survey/answer_status",{token:e,hashId:n},"GET")}))]}))}))},zn={checkAnswerStatus:function(t){return(0,s.mG)(void 0,void 0,void 0,(function(){var e,n,r;return(0,s.Jh)(this,(function(i){switch(i.label){case 0:return[4,(0,s.mG)(void 0,void 0,void 0,(function(){var t,e;return(0,s.Jh)(this,(function(n){switch(n.label){case 0:return[4,M.grant(In.appCode,1)];case 1:return(t=n.sent()).result&&(null===(e=t.data)||void 0===e?void 0:e.token)?[2,t]:[2,(0,s.pi)((0,s.pi)({},t),{data:void 0})]}}))}))];case 1:return e=i.sent(),(null===(r=e.data)||void 0===r?void 0:r.token)?[4,Nn({token:e.data.token,surveyId:t})]:[2,(0,s.pi)((0,s.pi)({},e),{data:void 0})];case 2:return n=i.sent(),[2,(0,s.pi)((0,s.pi)({},n),{result:n.result||2===n.code,data:{answered:2===n.code}})]}}))}))}},Dn={assets:u.L,Share:f,Analytics:k,User:M,SMS:Z.y,Email:ut,AK:rt,HG:it,EXA:at,POPUCOM:Cn,Reservation:pn,meta:st,hostConfig:c.h,RES_STATUS:{HG:A.k_,U8:Q},SDK_TYPE:"HG",Host:c.h,host:c.h,Account:ct.Z,account:ct.Z,U8:jt,u8:jt,Role:Jt,role:Jt,Address:Ht,address:Ht,navigation:_n,socialShare:Tn,survey:zn,ETL:x.t,Utils:a};location&&location.host&&/(^|\.)skland.com$/.test(location.host)&&c.h.apiServer.setHost("https://web-api.skland.com");var Un=window._HG_WEB_SDK_INIT_OPTIONS;Un&&(Un.etl&&(0,x.U)(Un.etl),Un.host&&Un.host.apiServer&&c.h.apiServer.setHost(Un.host.apiServer));for((0,s.mG)(void 0,void 0,void 0,(function(){var t,e,n,r,i,o,a;return(0,s.Jh)(this,(function(u){t=[H,mn],e=0,n=function(){++e>=t.length&&(0,On.F)()};try{for(r=(0,s.XA)(t),i=r.next();!i.done;i=r.next())(0,i.value)().then(n,n)}catch(t){o={error:t}}finally{try{i&&!i.done&&(a=r.return)&&a.call(r)}finally{if(o)throw o.error}}return[2]}))})),window.HG_SDK=Dn;null===(jn=window._HG_SDK_CALLBACK_QUEUE)||void 0===jn?void 0:jn.length;)null===(Ln=window._HG_SDK_CALLBACK_QUEUE.shift())||void 0===Ln||Ln();delete window._HG_SDK_CALLBACK_QUEUE},3441:function(t,e,n){"use strict";n.d(e,{n:function(){return r}});var r={host:"https://binding-api-account-prod.hypergryph.com",appCode:"be36d44aa36bfb5b"}},9655:function(t,e,n){"use strict";n.d(e,{y:function(){return s}});var r=n(655),i=n(9054),o=n(4603);function a(t,e){return(0,r.mG)(this,void 0,void 0,(function(){return(0,r.Jh)(this,(function(n){return[2,o.ej.general.sendSMS(t,e)]}))}))}var s={types:i.I,sendSms:a,getLoginSms:function(t){return(0,r.mG)(this,void 0,void 0,(function(){return(0,r.Jh)(this,(function(e){return[2,a(t,i.I.LOGIN)]}))}))}}},635:function(t,e,n){"use strict";n.d(e,{I8:function(){return G},CS:function(){return T},Cp:function(){return I},OW:function(){return C},J9:function(){return _},qz:function(){return w},BX:function(){return O},LP:function(){return b},bG:function(){return S},Bk:function(){return x},Fw:function(){return A},KA:function(){return v},D_:function(){return p},kS:function(){return y},fn:function(){return R},z2:function(){return f},AW:function(){return P},Fr:function(){return h},X:function(){return k},HD:function(){return g},d4:function(){return m},xk:function(){return j}});var r=n(655),i=n(6433),o=n(4603),a=n(1764),s=function(t){var e=[],n={running:!1,toRun:null};return function(){for(var i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];return(0,r.mG)(void 0,void 0,void 0,(function(){return(0,r.Jh)(this,(function(o){return[2,new Promise((function(o,a){var s,u;s=function(){return t.apply(void 0,(0,r.ev)([],(0,r.CR)(i),!1))},u=function(t,e){t?a(t):o(e)},(0,r.mG)(void 0,void 0,void 0,(function(){var t,i,o,a,c,l;return(0,r.Jh)(this,(function(d){switch(d.label){case 0:if(e.push([s,u]),n.running)return[2];n.running=!0,n.toRun=e.shift()||null,d.label=1;case 1:if(!n.toRun)return[3,6];t=(0,r.CR)(n.toRun,2),i=t[0],o=t[1],d.label=2;case 2:return d.trys.push([2,4,,5]),a=o,c=[null],[4,i()];case 3:return a.apply(void 0,c.concat([d.sent()])),[3,5];case 4:return l=d.sent(),o(l),[3,5];case 5:return n.toRun=e.shift()||null,[3,1];case 6:return n.running=!1,[2]}}))}))}))]}))}))}},u={isSKLand:/skland/i},c=n(3837),l=n(6096),d=new a.C(-1),h=function(t){return(0,r.mG)(this,void 0,void 0,(function(){return(0,r.Jh)(this,(function(e){return c.ZH(),d.clear(),[2,i.q.set({content:t},"hg")]}))}))};function f(t,e,n){var i;return(0,r.mG)(this,void 0,void 0,(function(){var a,s;return(0,r.Jh)(this,(function(u){switch(u.label){case 0:return[4,o.ej.auth.register(t,e,n)];case 1:return(a=u.sent()).result&&(null===(i=a.data)||void 0===i?void 0:i.token)?[4,h(a.data.token)]:[3,3];case 2:return s=u.sent(),[2,(0,r.pi)((0,r.pi)({},s),{data:a.data})];case 3:return[2,a]}}))}))}function p(t,e){var n;return(0,r.mG)(this,void 0,void 0,(function(){var i,a;return(0,r.Jh)(this,(function(s){switch(s.label){case 0:return[4,o.ej.auth.loginByPhonePassword(t,e)];case 1:return(i=s.sent()).result&&(null===(n=i.data)||void 0===n?void 0:n.token)?[4,h(i.data.token)]:[3,3];case 2:return a=s.sent(),[2,(0,r.pi)((0,r.pi)({},a),{data:i.data})];case 3:return[2,i]}}))}))}function v(t,e){var n;return(0,r.mG)(this,void 0,void 0,(function(){var i,a;return(0,r.Jh)(this,(function(s){switch(s.label){case 0:return[4,o.ej.auth.loginByPhoneCode(t,e)];case 1:return(i=s.sent()).result&&(null===(n=i.data)||void 0===n?void 0:n.token)?[4,h(i.data.token)]:[3,3];case 2:return a=s.sent(),[2,(0,r.pi)((0,r.pi)({},a),{data:i.data})];case 3:return[2,i]}}))}))}function g(t,e){var n;return(0,r.mG)(this,void 0,void 0,(function(){var i,a;return(0,r.Jh)(this,(function(s){switch(s.label){case 0:return[4,o.ej.auth.tokenByPhoneCode(t,e)];case 1:return(i=s.sent()).result&&(null===(n=i.data)||void 0===n?void 0:n.token)?[4,h(i.data.token)]:[3,3];case 2:return a=s.sent(),[2,(0,r.pi)((0,r.pi)({},a),{data:i.data})];case 3:return[2,i]}}))}))}function m(t){var e;return(0,r.mG)(this,void 0,void 0,(function(){var n,i;return(0,r.Jh)(this,(function(a){switch(a.label){case 0:return[4,o.ej.auth.tokenByScanCode(t)];case 1:return(n=a.sent()).result&&(null===(e=n.data)||void 0===e?void 0:e.token)?[4,h(n.data.token)]:[3,3];case 2:return i=a.sent(),[2,(0,r.pi)((0,r.pi)({},i),{data:n.data})];case 3:return[2,n]}}))}))}var b=s((function(){var t;return(0,r.mG)(this,void 0,void 0,(function(){var e,n;return(0,r.Jh)(this,(function(o){switch(o.label){case 0:return[4,(0,l.f)()];case 1:return o.sent(),(e=d.getCache())?[2,{result:!0,data:{token:e}}]:[4,i.q.get("hg")];case 2:return(n=o.sent()).result&&(null===(t=n.data)||void 0===t?void 0:t.content)?(d.saveCache(n.data.content),[2,(0,r.pi)((0,r.pi)({},n),{data:{token:n.data.content}})]):[2,(0,r.pi)((0,r.pi)({},n),{type:"apiServer",data:void 0})]}}))}))})),_=function(){return(0,r.mG)(void 0,void 0,void 0,(function(){var t,e,n,o;return(0,r.Jh)(this,(function(r){switch(r.label){case 0:return(t=d.getCache())?[4,i.q.get("hg")]:[2,{result:!0,data:{status:1}}];case 1:return e=r.sent(),n=null===(o=e.data)||void 0===o?void 0:o.content,e.result&&n?t!==n?[2,{result:!0,data:{status:3}}]:[2,{result:!0,data:{status:0}}]:[2,{result:!0,data:{status:2}}]}}))}))};function w(){return(0,r.mG)(this,void 0,void 0,(function(){return(0,r.Jh)(this,(function(t){return c.ZH(),d.clear(),[2,i.q.clear("hg")]}))}))}function y(t){var e,n;return(0,r.mG)(this,void 0,void 0,(function(){var i,a,s,c;return(0,r.Jh)(this,(function(l){switch(l.label){case 0:return i=navigator&&navigator.userAgent&&u.isSKLand.test(navigator.userAgent),t?i?[2,{result:!0,status:0,code:0,data:null}]:[2,o.ej.user.logout(t)]:[4,b()];case 1:return(a=l.sent()).result&&(null===(e=a.data)||void 0===e?void 0:e.token)?i?[2,w()]:[4,o.ej.user.logout(null===(n=a.data)||void 0===n?void 0:n.token)]:[3,4];case 2:return s=l.sent(),[4,w()];case 3:return c=l.sent(),[2,{result:s.result&&c.result}];case 4:return[2,(0,r.pi)((0,r.pi)({},a),{data:void 0})]}}))}))}function k(t,e){var n,i;return(0,r.mG)(this,void 0,void 0,(function(){var a,s;return(0,r.Jh)(this,(function(u){switch(u.label){case 0:return e?[2,o.ej.user.sendSMS(t,e)]:[4,b()];case 1:return(a=u.sent()).result&&(null===(n=a.data)||void 0===n?void 0:n.token)?[4,o.ej.user.sendSMS(t,null===(i=a.data)||void 0===i?void 0:i.token)]:[3,3];case 2:return(s=u.sent()).result||s.status!==o.k_.INVALID_TOKEN||w(),[2,s];case 3:return[2,(0,r.pi)((0,r.pi)({},a),{data:void 0})]}}))}))}function S(t){var e,n;return(0,r.mG)(this,void 0,void 0,(function(){var i,a;return(0,r.Jh)(this,(function(s){switch(s.label){case 0:return t?[2,o.ej.user.getInfo(t)]:[4,b()];case 1:return(i=s.sent()).result&&(null===(e=i.data)||void 0===e?void 0:e.token)?[4,o.ej.user.getInfo(null===(n=i.data)||void 0===n?void 0:n.token)]:[3,3];case 2:return(a=s.sent()).result||a.status!==o.k_.INVALID_TOKEN||w(),[2,a];case 3:return[2,(0,r.pi)((0,r.pi)({},i),{data:void 0})]}}))}))}var E=new a.C,x=s((function(t,e,n){var i,a;return void 0===e&&(e=1),(0,r.mG)(this,void 0,void 0,(function(){var s,u,c,l,d;return(0,r.Jh)(this,(function(h){switch(h.label){case 0:return n?[2,o.ej.user.grant(t,e,n)]:[4,b()];case 1:return s=h.sent(),n=null===(i=s.data)||void 0===i?void 0:i.token,s.result&&n?(u="".concat(n,":").concat(t,":").concat(e),(c=null===(a=null==E?void 0:E.getCache())||void 0===a?void 0:a[u])?[2,c]:[4,o.ej.user.grant(t,e,n)]):[3,3];case 2:return(l=h.sent()).result||l.status!==o.k_.INVALID_TOKEN||w(),E.saveCache(((d={})[u]=l,d)),[2,l];case 3:return[2,(0,r.pi)((0,r.pi)({},s),{data:void 0})]}}))}))}));function A(t,e){var n,i;return(0,r.mG)(this,void 0,void 0,(function(){var a,s;return(0,r.Jh)(this,(function(u){switch(u.label){case 0:return e?[2,o.ej.user.grantInfo(t,e)]:[4,b()];case 1:return(a=u.sent()).result&&(null===(n=a.data)||void 0===n?void 0:n.token)?[4,o.ej.user.grantInfo(t,null===(i=a.data)||void 0===i?void 0:i.token)]:[3,3];case 2:return(s=u.sent()).result||s.status!==o.k_.INVALID_TOKEN||w(),[2,s];case 3:return[2,(0,r.pi)((0,r.pi)({},a),{data:void 0})]}}))}))}function T(t,e){var n,i;return(0,r.mG)(this,void 0,void 0,(function(){var a,s;return(0,r.Jh)(this,(function(u){switch(u.label){case 0:return e?[2,o.ej.user.cancelUnbindGrant(t,e)]:[4,b()];case 1:return(a=u.sent()).result&&(null===(n=a.data)||void 0===n?void 0:n.token)?[4,o.ej.user.cancelUnbindGrant(t,null===(i=a.data)||void 0===i?void 0:i.token)]:[3,3];case 2:return(s=u.sent()).result||s.status!==o.k_.INVALID_TOKEN||w(),[2,s];case 3:return[2,(0,r.pi)((0,r.pi)({},a),{data:void 0})]}}))}))}function O(t){var e,n;return(0,r.mG)(this,void 0,void 0,(function(){var i,a;return(0,r.Jh)(this,(function(s){switch(s.label){case 0:return t?[2,o.ej.user.couldChangePhone(t)]:[4,b()];case 1:return(i=s.sent()).result&&(null===(e=i.data)||void 0===e?void 0:e.token)?[4,o.ej.user.couldChangePhone(null===(n=i.data)||void 0===n?void 0:n.token)]:[3,3];case 2:return(a=s.sent()).result||a.status!==o.k_.INVALID_TOKEN||w(),[2,a];case 3:return[2,(0,r.pi)((0,r.pi)({},i),{data:void 0})]}}))}))}function C(t,e,n,i){var a,s;return(0,r.mG)(this,void 0,void 0,(function(){var u,c;return(0,r.Jh)(this,(function(l){switch(l.label){case 0:return i?[2,o.ej.user.changePhone(t,e,n,i)]:[4,b()];case 1:return(u=l.sent()).result&&(null===(a=u.data)||void 0===a?void 0:a.token)?[4,o.ej.user.changePhone(t,e,n,null===(s=u.data)||void 0===s?void 0:s.token)]:[3,3];case 2:return(c=l.sent()).result||c.status!==o.k_.INVALID_TOKEN||w(),[2,c];case 3:return[2,(0,r.pi)((0,r.pi)({},u),{data:void 0})]}}))}))}function I(t,e,n){var i,a;return(0,r.mG)(this,void 0,void 0,(function(){var s,u;return(0,r.Jh)(this,(function(c){switch(c.label){case 0:return n?[2,o.ej.user.changePassword(t,e,n)]:[4,b()];case 1:return(s=c.sent()).result&&(null===(i=s.data)||void 0===i?void 0:i.token)?[4,o.ej.user.changePassword(t,e,null===(a=s.data)||void 0===a?void 0:a.token)]:[3,3];case 2:return(u=c.sent()).result||u.status!==o.k_.INVALID_TOKEN||w(),[2,u];case 3:return[2,(0,r.pi)((0,r.pi)({},s),{data:void 0})]}}))}))}function G(t,e,n,i){var a,s;return(0,r.mG)(this,void 0,void 0,(function(){var u,c;return(0,r.Jh)(this,(function(l){switch(l.label){case 0:return i?[2,o.ej.user.bindEmail(t,e,n,i)]:[4,b()];case 1:return(u=l.sent()).result&&(null===(a=u.data)||void 0===a?void 0:a.token)?[4,o.ej.user.bindEmail(t,e,n,null===(s=u.data)||void 0===s?void 0:s.token)]:[3,3];case 2:return(c=l.sent()).result||c.status!==o.k_.INVALID_TOKEN||w(),[2,c];case 3:return[2,(0,r.pi)((0,r.pi)({},u),{data:void 0})]}}))}))}function P(t){var e,n;return(0,r.mG)(this,void 0,void 0,(function(){var i,a;return(0,r.Jh)(this,(function(s){switch(s.label){case 0:return t?[2,o.ej.user.resetOtherToken(t)]:[4,b()];case 1:return(i=s.sent()).result&&(null===(e=i.data)||void 0===e?void 0:e.token)?[4,o.ej.user.resetOtherToken(null===(n=i.data)||void 0===n?void 0:n.token)]:[3,3];case 2:return(a=s.sent()).result||a.status!==o.k_.INVALID_TOKEN||w(),[2,a];case 3:return[2,(0,r.pi)((0,r.pi)({},i),{data:void 0})]}}))}))}function R(t){var e,n;return(0,r.mG)(this,void 0,void 0,(function(){var i,a;return(0,r.Jh)(this,(function(s){switch(s.label){case 0:return t?[2,o.ej.user.queryOrder(t)]:[4,b()];case 1:return(i=s.sent()).result&&(null===(e=i.data)||void 0===e?void 0:e.token)?[4,o.ej.user.queryOrder(null===(n=i.data)||void 0===n?void 0:n.token)]:[3,3];case 2:return(a=s.sent()).result||a.status!==o.k_.INVALID_TOKEN||w(),[2,a];case 3:return[2,(0,r.pi)((0,r.pi)({},i),{data:void 0})]}}))}))}function j(t){var e,n;return(0,r.mG)(this,void 0,void 0,(function(){var i,a;return(0,r.Jh)(this,(function(s){switch(s.label){case 0:return t?[2,o.ej.user.updateAgreement(t)]:[4,b()];case 1:return(i=s.sent()).result&&(null===(e=i.data)||void 0===e?void 0:e.token)?[4,o.ej.user.updateAgreement(null===(n=i.data)||void 0===n?void 0:n.token)]:[3,3];case 2:return(a=s.sent()).result||a.status!==o.k_.INVALID_TOKEN||w(),[2,a];case 3:return[2,(0,r.pi)((0,r.pi)({},i),{data:void 0})]}}))}))}},6096:function(t,e,n){"use strict";n.d(e,{F:function(){return s},f:function(){return a}});var r=n(655),i=!1,o=[],a=function(){return(0,r.mG)(void 0,void 0,void 0,(function(){return(0,r.Jh)(this,(function(t){return i?[2]:[2,new Promise((function(t){o.push((function(){return t()}))}))]}))}))},s=function(){var t;if(!i)for(i=!0;o.length;)null===(t=o.shift())||void 0===t||t()}},1764:function(t,e,n){"use strict";n.d(e,{C:function(){return r},x:function(){return i}});var r=function(){function t(t){void 0===t&&(t=1e3),this.cacheTime=t,this.value=null,this.updatedAt=0}return t.prototype.clear=function(){this.value=null},t.prototype.getCache=function(){return this.cacheTime<0?this.value||null:Date.now()-this.updatedAt<this.cacheTime&&this.value||null},t.prototype.saveCache=function(t){return t&&(this.value=t,this.updatedAt=Date.now()),this},t}(),i=new r(-1)},2914:function(t,e,n){"use strict";n.d(e,{GH:function(){return o},ZT:function(){return i},dh:function(){return a},gK:function(){return s}});var r=n(655),i=function(){};function o(t){var e,n=document.querySelectorAll("script")[0];n?null===(e=n.parentNode)||void 0===e||e.insertBefore(t,n):document.head.appendChild(t)}var a=function(){for(var t,e,n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];var o="";try{for(var a=(0,r.XA)(n),s=a.next();!s.done;s=a.next()){var u=s.value;u&&(o+=u+" ")}}catch(e){t={error:e}}finally{try{s&&!s.done&&(e=a.return)&&e.call(a)}finally{if(t)throw t.error}}return o.trim()},s="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mNkYAAAAAYAAjCB0C8AAAAASUVORK5CYII="},4024:function(t,e,n){"use strict";function r(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];return t}n.d(e,{Z:function(){return r}})},9923:function(t,e,n){"use strict";n.d(e,{U:function(){return s},t:function(){return a}});n(1501);var r=n(9412),i={initialized:!1},o={appId:"tw1pons1ra4r49pdrz2xmrij",regionTag:"cn",enableAdTrack:!0,routeChange:"history"},a={instance:null,event:function(t,e){if(void 0===e&&(e={}),a.instance)try{a.instance.event(t,e)}catch(t){console.warn(t)}else console.warn("ETL instance not exists.")}},s=function(t){var e,n,s,u,c,l,d,h,f=t.domain,p=t.sub_domain,v=t.third_domain,g=t.config,m=void 0===g?{}:g,b=t.pageProperties,_=void 0===b?{}:b,w=t.initialPV,y=void 0===w||w,k=t.autoPV,S=void 0===k||k;if(!i.initialized){i.initialized=!0;var E=Object.assign({},o,m);E.appId||console.warn("[@hg/hg-web-sdk] ETL appId not specified.");var x=(0,r.initWebJS)(E);if("boolean"==typeof x)return;a.instance=x,null===(n=(e=a.instance).setPageProperties)||void 0===n||n.call(e,{domain:f,sub_domain:p,third_domain:v}),null===(u=(s=a.instance).setPageProperties)||void 0===u||u.call(s,_),S&&(null===(l=(c=a.instance).autoPageViewEvent)||void 0===l||l.call(c)),y&&(null===(h=(d=a.instance).pageViewEvent)||void 0===h||h.call(d,{}))}}},2320:function(t,e,n){"use strict";n.d(e,{e:function(){return a}});var r=n(655),i=n(4024),o=n(1721);function a(t){return o.P.create("account",(0,r.pi)({msg:t.msg||s[t.code]},t))}var s={NO_LOGIN:(0,i.Z)("未登录"),LOGIN_EXPIRED:(0,i.Z)("登录状态已失效"),ACCOUNT_NOT_EXIST:(0,i.Z)("账号不存在"),LOGIN_FAILED:(0,i.Z)("登录失败"),CAPTCHA_VALIDATE_FAILED:(0,i.Z)("人机验证失败"),SMS_VALIDATE_FAILED:(0,i.Z)("手机验证码错误"),ACCOUNT_CANCELLING:(0,i.Z)("您的鹰角通行证账号在注销冷静期中"),ACCOUNT_BANNED:(0,i.Z)("通行证账号封禁中"),DEFAULT:(0,i.Z)("未处理异常")}},3837:function(t,e,n){"use strict";n.d(e,{ZH:function(){return h},LP:function(){return l},TG:function(){return d}});var r=n(655),i=n(3661),o=function(){function t(t){this.duration=1e3,this.running=!1,this.caching=!1,this.resolvers=[],this.rejecters=[],this.duration=(null==t?void 0:t.duration)||this.duration}return t.prototype.run=function(t){return(0,r.mG)(this,void 0,void 0,(function(){var e,n,i=this;return(0,r.Jh)(this,(function(r){switch(r.label){case 0:if(this.caching)return[2,this.value];if(this.running)return[2,new Promise((function(t,e){i.resolvers.push(t),i.rejecters.push(e)}))];this.running=!0,r.label=1;case 1:return r.trys.push([1,3,,4]),[4,t()];case 2:return e=r.sent(),this.resolvers.forEach((function(t){return t(e)})),this.cache(e),this.clearRunning(),[2,e];case 3:throw n=r.sent(),this.rejecters.forEach((function(t){return t(n)})),this.clearRunning(),n;case 4:return[2]}}))}))},t.prototype.cache=function(t){var e=this;this.value=t,this.caching=!0,setTimeout((function(){e.caching=!1}),this.duration)},t.prototype.clearRunning=function(){this.running=!1,this.rejecters.splice(0,this.rejecters.length),this.resolvers.splice(0,this.resolvers.length)},t}(),a=n(6096),s=n(2320),u=new o,c=null;function l(){return(0,r.mG)(this,void 0,void 0,(function(){var t=this;return(0,r.Jh)(this,(function(e){switch(e.label){case 0:return[4,(0,a.f)()];case 1:return e.sent(),null===c?[2,u.run((function(){return(0,r.mG)(t,void 0,void 0,(function(){var t;return(0,r.Jh)(this,(function(e){switch(e.label){case 0:return[4,(0,i.U2)("hg")];case 1:return(t=e.sent())&&(c=t),[2,t]}}))}))}))]:[2,c]}}))}))}function d(){return(0,r.mG)(this,void 0,void 0,(function(){var t;return(0,r.Jh)(this,(function(e){switch(e.label){case 0:return[4,l()];case 1:if(!(t=e.sent()))throw(0,s.e)({code:"NO_LOGIN"});return[2,t]}}))}))}function h(){c=null}},132:function(t,e,n){"use strict";n.d(e,{Z:function(){return O}});var r={};n.r(r),n.d(r,{getInfo:function(){return S},getToken:function(){return a.LP},grantApp:function(){return T},requireToken:function(){return a.TG}});var i,o=n(655),a=n(3837),s=n(1721),u=n(8230),c=n(536),l=n(7902),d=n(6897),h=n(2320);!function(t){t[t.CLIENT=0]="CLIENT",t[t.OTHER=1]="OTHER"}(i||(i={}));var f=n(9923),p=n(1764),v=0,g=1,m=4,b=5,_=9,w=10,y=new u.KU({host:l.h.accountServer.getHost,timeout:5e3,onResponse:function(t,e){return(0,o.mG)(void 0,void 0,void 0,(function(){var n,r,i;return(0,o.Jh)(this,(function(a){switch(a.label){case 0:return t.status===v?[2,t.data]:t.status!==g?[3,3]:(n=t.data.captcha,[4,(0,d.B)(n)]);case 1:return(r=a.sent())?[4,e.client.request(e.url,(0,o.pi)((0,o.pi)({},e.option),{data:(0,o.pi)((0,o.pi)({},null===(i=e.option)||void 0===i?void 0:i.data),{captcha:r})}))]:[3,3];case 2:if((t=a.sent()).status===v)return[2,t.data];a.label=3;case 3:switch(t.status){case m:throw(0,h.e)({code:"CAPTCHA_VALIDATE_FAILED",msg:t.msg});case b:throw(0,h.e)({code:"SMS_VALIDATE_FAILED",msg:t.msg});case w:throw(0,h.e)({code:"ACCOUNT_BANNED",msg:t.msg});case _:throw(0,h.e)({code:"ACCOUNT_CANCELLING",msg:t.msg,data:{requestTs:t.data.delete_request_ts,commitTs:t.data.delete_commit_ts}})}throw(0,h.e)({code:"DEFAULT",msg:t.msg,data:t.data,detail:t})}}))}))},onError:function(t){return(0,o.mG)(void 0,void 0,void 0,(function(){return(0,o.Jh)(this,(function(e){if(c.o.is(t))throw 401===t.statusCode?(0,h.e)({code:"LOGIN_EXPIRED"}):new s.q("REQUEST_ERROR",t.message);throw t}))}))}});function k(t){var e;return(0,o.mG)(this,void 0,void 0,(function(){var n;return(0,o.Jh)(this,(function(r){switch(r.label){case 0:return[4,y.get("/user/info/v1/basic",{token:t})];case 1:return(n=r.sent()).hgId&&p.x.getCache()!==n.hgId&&(p.x.saveCache(n.hgId),null===(e=f.t.instance)||void 0===e||e.userLoginEvent(n.hgId,{})),[2,n]}}))}))}function S(){return(0,o.mG)(this,void 0,void 0,(function(){return(0,o.Jh)(this,(function(t){switch(t.label){case 0:return[4,(0,a.TG)()];case 1:return[2,k(t.sent())]}}))}))}var E=n(1157),x=n(8491),A=n(8837);function T(t){return(0,o.mG)(this,void 0,void 0,(function(){var e,n;return(0,o.Jh)(this,(function(r){switch(r.label){case 0:return[4,(0,a.TG)()];case 1:return e=r.sent(),n=(0,A.tg)(t),[4,(0,E.lJ)(x.D1,{identifier:n,verifier:e,fetch:function(){return function(t,e){return(0,o.mG)(this,void 0,void 0,(function(){return(0,o.Jh)(this,(function(n){switch(n.label){case 0:return[4,y.post("/user/oauth2/v2/grant",{token:t,appCode:e,type:i.OTHER})];case 1:return[2,n.sent().token]}}))}))}(e,n)}})];case 2:return[2,r.sent()]}}))}))}var O={meta:{subjectName:"鹰角网络通行证"},API:r}},5956:function(t,e,n){"use strict";n.d(e,{tj:function(){return g},bf:function(){return p},Ns:function(){return f},y$:function(){return k},_N:function(){return x},mZ:function(){return y},vz:function(){return _},oX:function(){return w},XJ:function(){return v},_K:function(){return E},y3:function(){return S}});var r=n(655),i=n(132),o=n(357);function a(t){return(0,r.mG)(this,void 0,void 0,(function(){return(0,r.Jh)(this,(function(e){switch(e.label){case 0:return[4,o.L.get("/account/address/v1/city",{pid:t})];case 1:return[2,e.sent().data]}}))}))}function s(t){return(0,r.mG)(this,void 0,void 0,(function(){return(0,r.Jh)(this,(function(e){switch(e.label){case 0:return[4,o.L.get("/account/address/v1/query",{token:t})];case 1:return[2,e.sent()]}}))}))}function u(t,e){return(0,r.mG)(this,void 0,void 0,(function(){return(0,r.Jh)(this,(function(n){switch(n.label){case 0:return[4,o.L.post("/account/address/v1/add",(0,r.pi)({token:t},e))];case 1:return[2,n.sent().id]}}))}))}function c(t,e,n){return(0,r.mG)(this,void 0,void 0,(function(){return(0,r.Jh)(this,(function(i){switch(i.label){case 0:return[4,o.L.post("/account/address/v1/update",(0,r.pi)({token:t,id:e},n))];case 1:return i.sent(),[2,!0]}}))}))}function l(t,e){return(0,r.mG)(this,void 0,void 0,(function(){return(0,r.Jh)(this,(function(n){switch(n.label){case 0:return[4,o.L.post("/account/address/v1/set_default",{token:t,id:e})];case 1:return n.sent(),[2,!0]}}))}))}function d(t,e){return(0,r.mG)(this,void 0,void 0,(function(){return(0,r.Jh)(this,(function(n){switch(n.label){case 0:return[4,o.L.post("/account/address/v1/delete",{token:t,id:e})];case 1:return n.sent(),[2,!0]}}))}))}var h=function(t){return null==t},f={CHN:{id:0,name:"中国内地(大陆)"},CHN_SP:{id:1,name:"港澳台地区"},OVERSEA:{id:2,name:"海外"}},p=["CHN","CHN_SP","OVERSEA"].map((function(t){return f[t]})),v=function(t){return p.find((function(e){return e.id===t}))||null},g=[{value:"+86",label:"+86",optionLabel:"中国大陆 +86"},{value:"+852",label:"+852",optionLabel:"中国香港 +852"},{value:"+853",label:"+853",optionLabel:"中国澳门 +853"},{value:"+886",label:"+886",optionLabel:"中国台湾 +886"}];function m(){return(0,r.mG)(this,void 0,void 0,(function(){return(0,r.Jh)(this,(function(t){switch(t.label){case 0:return[4,i.Z.API.grantApp("binding")];case 1:return[2,t.sent()]}}))}))}var b={};function _(t){return(0,r.mG)(this,void 0,void 0,(function(){var e;return(0,r.Jh)(this,(function(n){switch(n.label){case 0:return h(t)?[2,p]:b[t]?[2,b[t]]:[4,a(t)];case 1:return e=n.sent(),b[t]=e,[2,e]}}))}))}function w(t){return void 0===t&&(t=["CHN"]),(0,r.mG)(this,void 0,void 0,(function(){var e,n;return(0,r.Jh)(this,(function(r){switch(r.label){case 0:return[4,m()];case 1:return[4,s(r.sent())];case 2:return 0===(e=r.sent().address).length?[2,null]:(n=e.find((function(t){return!!t.isDefault}))||null)&&t.map((function(t){return f[t].id})).indexOf(n.region)>=0?[2,n]:[2,null]}}))}))}function y(){return(0,r.mG)(this,void 0,void 0,(function(){return(0,r.Jh)(this,(function(t){switch(t.label){case 0:return[4,m()];case 1:return[4,s(t.sent())];case 2:return[2,t.sent()]}}))}))}function k(t){return(0,r.mG)(this,void 0,void 0,(function(){return(0,r.Jh)(this,(function(e){switch(e.label){case 0:return[4,m()];case 1:return[4,u(e.sent(),t)];case 2:return[2,e.sent()]}}))}))}function S(t,e){return(0,r.mG)(this,void 0,void 0,(function(){return(0,r.Jh)(this,(function(n){switch(n.label){case 0:return[4,m()];case 1:return[4,c(n.sent(),t,e)];case 2:return n.sent(),[2]}}))}))}function E(t){return(0,r.mG)(this,void 0,void 0,(function(){return(0,r.Jh)(this,(function(e){switch(e.label){case 0:return[4,m()];case 1:return[4,l(e.sent(),t)];case 2:return e.sent(),[2]}}))}))}function x(t){return(0,r.mG)(this,void 0,void 0,(function(){return(0,r.Jh)(this,(function(e){switch(e.label){case 0:return[4,m()];case 1:return[4,d(e.sent(),t)];case 2:return e.sent(),[2]}}))}))}},3946:function(t,e,n){"use strict";n.d(e,{Ke:function(){return p},W0:function(){return g},JV:function(){return b},oM:function(){return v},Mb:function(){return m}});var r=n(655),i=n(1157),o=n(8491),a=n(132),s=n(4024),u=n(357),c=n(4365);function l(t,e){return(0,r.mG)(this,void 0,void 0,(function(){var n,i;return(0,r.Jh)(this,(function(r){switch(r.label){case 0:return[4,u.L.get("/account/binding/v1/binding_list",{token:t,appCode:e})];case 1:if(0===(n=r.sent()).list.length)return[2,[]];if(!(i=n.list.find((function(t){return t.appCode===e}))))throw(0,c.t)({code:"DEFAULT",msg:(0,s.Z)("角色数据不匹配")});return[2,i.bindingList]}}))}))}function d(){return(0,r.mG)(this,void 0,void 0,(function(){return(0,r.Jh)(this,(function(t){switch(t.label){case 0:return[4,a.Z.API.grantApp("binding")];case 1:return[2,t.sent()]}}))}))}function h(t){return(0,r.mG)(this,void 0,void 0,(function(){var e;return(0,r.Jh)(this,(function(n){switch(n.label){case 0:return[4,d()];case 1:return e=n.sent(),[4,(0,i.lJ)(o.BJ,{identifier:t,verifier:e,fetch:function(){return function(t,e){return(0,r.mG)(this,void 0,void 0,(function(){return(0,r.Jh)(this,(function(n){switch(n.label){case 0:return[4,u.L.post("/account/binding/v1/token_by_uid",{token:t,uid:e})];case 1:return[2,n.sent().token]}}))}))}(e,t)}})];case 2:return[2,n.sent()]}}))}))}function f(t){return(0,r.mG)(this,void 0,void 0,(function(){var e;return(0,r.Jh)(this,(function(n){switch(n.label){case 0:return[4,d()];case 1:return e=n.sent(),[4,(0,i.lJ)(o.HX,{identifier:t,verifier:e,fetch:function(){return function(t,e){return(0,r.mG)(this,void 0,void 0,(function(){return(0,r.Jh)(this,(function(n){switch(n.label){case 0:return[4,u.L.post("/account/binding/v1/u8_token_by_uid",{token:t,uid:e})];case 1:return[2,n.sent().token]}}))}))}(e,t)}})];case 2:return[2,n.sent()]}}))}))}function p(t){return(0,r.mG)(this,void 0,void 0,(function(){var e,n,a,s,u,c,h,f,p;return(0,r.Jh)(this,(function(g){switch(g.label){case 0:return[4,d()];case 1:return[4,l(g.sent(),t)];case 2:return 0===(e=g.sent()).length?[2,null]:[4,(0,i.lJ)(o.gn,{persist:!0,identifier:t})];case 3:if((n=g.sent())&&((a=e.find((function(t){return t.uid===n})))||(0,i.k0)(o.gn,{persist:!0,identifier:t})),!a){try{for(s=(0,r.XA)(e),u=s.next();!u.done;u=s.next()){if((c=u.value).isDefault){a=c;break}c.isOfficial&&(a=c)}}catch(t){f={error:t}}finally{try{u&&!u.done&&(p=s.return)&&p.call(s)}finally{if(f)throw f.error}}a||(a=e[0])}return[4,v(t,a.uid)];case 4:return h=g.sent(),[2,a?{role:a,token:h}:null]}}))}))}function v(t,e){return(0,r.mG)(this,void 0,void 0,(function(){var n;return(0,r.Jh)(this,(function(r){switch(r.label){case 0:return[4,h(e)];case 1:return n=r.sent(),(0,i.K7)(o.gn,e,{persist:!0,identifier:t}),[2,n]}}))}))}function g(t){return(0,r.mG)(this,void 0,void 0,(function(){var e,n,a,s,u,c,h,f,p;return(0,r.Jh)(this,(function(v){switch(v.label){case 0:return[4,d()];case 1:return[4,l(v.sent(),t)];case 2:return 0===(e=v.sent()).length?[2,null]:[4,(0,i.lJ)(o.gn,{persist:!0,identifier:t})];case 3:if((n=v.sent())&&((a=e.find((function(t){return t.uid===n})))||(0,i.k0)(o.gn,{persist:!0,identifier:t})),!a){try{for(s=(0,r.XA)(e),u=s.next();!u.done;u=s.next()){if((c=u.value).isDefault){a=c;break}c.isOfficial&&(a=c)}}catch(t){f={error:t}}finally{try{u&&!u.done&&(p=s.return)&&p.call(s)}finally{if(f)throw f.error}}a||(a=e[0])}return[4,m(t,a.uid)];case 4:return h=v.sent(),[2,a?{role:a,token:h}:null]}}))}))}function m(t,e){return(0,r.mG)(this,void 0,void 0,(function(){var n;return(0,r.Jh)(this,(function(r){switch(r.label){case 0:return[4,f(e)];case 1:return n=r.sent(),(0,i.K7)(o.gn,e,{persist:!0,identifier:t}),[2,n]}}))}))}function b(t){return(0,r.mG)(this,void 0,void 0,(function(){return(0,r.Jh)(this,(function(e){switch(e.label){case 0:return[4,d()];case 1:return[4,l(e.sent(),t)];case 2:return[2,e.sent()]}}))}))}},357:function(t,e,n){"use strict";n.d(e,{L:function(){return c}});var r=n(655),i=n(7902),o=n(1721),a=n(8230),s=n(536),u=n(4365),c=new a.KU({host:i.h.bindingServer.getHost(),timeout:1e4,onResponse:function(t){if(0===t.status)return t.data;throw(0,u.t)({code:"DEFAULT",msg:t.msg,data:t.data,detail:t})},onError:function(t){return(0,r.mG)(void 0,void 0,void 0,(function(){return(0,r.Jh)(this,(function(e){if(s.o.is(t))throw new o.q("REQUEST_ERROR",t.message);throw t}))}))}})},4365:function(t,e,n){"use strict";n.d(e,{t:function(){return a}});var r=n(655),i=n(4024),o=n(1721);function a(t){return o.P.create("bindingServer",(0,r.pi)({msg:t.msg||s[t.code]},t))}var s={DEFAULT:(0,i.Z)("未处理异常")}},655:function(t,e,n){"use strict";n.d(e,{CR:function(){return l},Jh:function(){return u},XA:function(){return c},ZT:function(){return i},_T:function(){return a},ev:function(){return d},mG:function(){return s},pi:function(){return o}});
|
||
/*! *****************************************************************************
|
||
Copyright (c) Microsoft Corporation.
|
||
|
||
Permission to use, copy, modify, and/or distribute this software for any
|
||
purpose with or without fee is hereby granted.
|
||
|
||
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
||
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
||
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
||
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
||
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
||
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
||
PERFORMANCE OF THIS SOFTWARE.
|
||
***************************************************************************** */
|
||
var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},r(t,e)};function i(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}var o=function(){return o=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},o.apply(this,arguments)};function a(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]])}return n}function s(t,e,n,r){return new(n||(n=Promise))((function(i,o){function a(t){try{u(r.next(t))}catch(t){o(t)}}function s(t){try{u(r.throw(t))}catch(t){o(t)}}function u(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,s)}u((r=r.apply(t,e||[])).next())}))}function u(t,e){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=a.trys,(i=i.length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=e.call(t,a)}catch(t){o=[6,t],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}}Object.create;function c(t){var e="function"==typeof Symbol&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function l(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,i,o=n.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(t){i={error:t}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a}function d(t,e,n){if(n||2===arguments.length)for(var r,i=0,o=e.length;i<o;i++)!r&&i in e||(r||(r=Array.prototype.slice.call(e,0,i)),r[i]=e[i]);return t.concat(r||Array.prototype.slice.call(e))}Object.create},6592:function(t,e,n){"use strict";t.exports=n.p+"assets/age-tip.d3f95bcd751e47d767d6.png"},2673:function(t,e,n){"use strict";t.exports=n.p+"assets/title.f6520729281d9edac80f.png"},563:function(t,e,n){"use strict";t.exports=n.p+"assets/anti-fraud.b04767f0bd0747af1db9.jpg"},5652:function(t,e,n){"use strict";t.exports=n.p+"assets/policy.2c053d4c81fc2b352043.png"},9609:function(t,e,n){"use strict";t.exports=n.p+"assets/report.83391bf7a0f2ed53708b.png"},6418:function(t,e,n){"use strict";t.exports=n.p+"assets/favicon.98a40473bb90d3d9c3eb.ico"},6048:function(t,e,n){"use strict";t.exports=n.p+"assets/copyright.db1b9e24ce6627cad56d.png"},6758:function(t,e,n){"use strict";t.exports=n.p+"assets/favicon.98a40473bb90d3d9c3eb.ico"},7452:function(t,e,n){"use strict";t.exports=n.p+"assets/icon.e6666cd11b2a7b982b6d.png"},3051:function(t,e,n){"use strict";t.exports=n.p+"assets/logo.76b3b2e7ccc47405bfe9.png"},3122:function(t,e,n){"use strict";t.exports=n.p+"assets/copyright.34c739e28f189ed9d13a.png"},2558:function(t,e,n){"use strict";t.exports=n.p+"assets/copyright.738cc8f5e5180e9a20aa.png"},4732:function(t,e,n){"use strict";t.exports=n.p+"assets/copyright.534cad1bad936a31ec6c.png"},8537:function(t,e,n){"use strict";t.exports=n.p+"assets/copyright_c.f52c8b067e2adcea4ace.png"},8391:function(t,e,n){"use strict";t.exports=n.p+"assets/copyright_c_oversea.f724e68cddeedec689f8.png"},3025:function(t,e,n){"use strict";t.exports=n.p+"assets/copyright.54f797f5ac3a48765165.png"},6290:function(t,e,n){"use strict";t.exports=n.p+"assets/copy.15f85e8ef7e8f0fc0c99.svg"},3491:function(t,e,n){"use strict";t.exports=n.p+"assets/qq.75cd6afa66a9161f557d.svg"},7376:function(t,e,n){"use strict";t.exports=n.p+"assets/qzone.23d57ba17dd878a447f3.svg"},7317:function(t,e,n){"use strict";t.exports=n.p+"assets/system.c68527cf6c667a6aeb14.svg"},8185:function(t,e,n){"use strict";t.exports=n.p+"assets/weibo.a5dfc59f5e120e89f74e.svg"},1501:function(t,e,n){"use strict";var r=n(2719);t.exports=r},9798:function(t,e,n){"use strict";n(2795),n(3383);var r=n(8749);t.exports=r("Array","flat")},509:function(t,e,n){"use strict";var r=n(9985),i=n(3691),o=TypeError;t.exports=function(t){if(r(t))return t;throw new o(i(t)+" is not a function")}},7370:function(t,e,n){"use strict";var r=n(4201),i=n(5391),o=n(2560).f,a=r("unscopables"),s=Array.prototype;void 0===s[a]&&o(s,a,{configurable:!0,value:i(null)}),t.exports=function(t){s[a][t]=!0}},5027:function(t,e,n){"use strict";var r=n(8999),i=String,o=TypeError;t.exports=function(t){if(r(t))return t;throw new o(i(t)+" is not an object")}},4328:function(t,e,n){"use strict";var r=n(5290),i=n(7578),o=n(6310),a=function(t){return function(e,n,a){var s=r(e),u=o(s);if(0===u)return!t&&-1;var c,l=i(a,u);if(t&&n!=n){for(;u>l;)if((c=s[l++])!=c)return!0}else for(;u>l;l++)if((t||l in s)&&s[l]===n)return t||l||0;return!t&&-1}};t.exports={includes:a(!0),indexOf:a(!1)}},5271:function(t,e,n){"use strict";var r=n(2297),i=n(9429),o=n(8999),a=n(4201)("species"),s=Array;t.exports=function(t){var e;return r(t)&&(e=t.constructor,(i(e)&&(e===s||r(e.prototype))||o(e)&&null===(e=e[a]))&&(e=void 0)),void 0===e?s:e}},7120:function(t,e,n){"use strict";var r=n(5271);t.exports=function(t,e){return new(r(t))(0===e?0:e)}},6648:function(t,e,n){"use strict";var r=n(8844),i=r({}.toString),o=r("".slice);t.exports=function(t){return o(i(t),8,-1)}},926:function(t,e,n){"use strict";var r=n(3043),i=n(9985),o=n(6648),a=n(4201)("toStringTag"),s=Object,u="Arguments"===o(function(){return arguments}());t.exports=r?o:function(t){var e,n,r;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=function(t,e){try{return t[e]}catch(t){}}(e=s(t),a))?n:u?o(e):"Object"===(r=o(e))&&i(e.callee)?"Arguments":r}},8758:function(t,e,n){"use strict";var r=n(6812),i=n(9152),o=n(2474),a=n(2560);t.exports=function(t,e,n){for(var s=i(e),u=a.f,c=o.f,l=0;l<s.length;l++){var d=s[l];r(t,d)||n&&r(n,d)||u(t,d,c(e,d))}}},5773:function(t,e,n){"use strict";var r=n(7697),i=n(2560),o=n(5684);t.exports=r?function(t,e,n){return i.f(t,e,o(1,n))}:function(t,e,n){return t[e]=n,t}},5684:function(t){"use strict";t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},1880:function(t,e,n){"use strict";var r=n(9985),i=n(2560),o=n(8702),a=n(5014);t.exports=function(t,e,n,s){s||(s={});var u=s.enumerable,c=void 0!==s.name?s.name:e;if(r(n)&&o(n,c,s),s.global)u?t[e]=n:a(e,n);else{try{s.unsafe?t[e]&&(u=!0):delete t[e]}catch(t){}u?t[e]=n:i.f(t,e,{value:n,enumerable:!1,configurable:!s.nonConfigurable,writable:!s.nonWritable})}return t}},5014:function(t,e,n){"use strict";var r=n(9037),i=Object.defineProperty;t.exports=function(t,e){try{i(r,t,{value:e,configurable:!0,writable:!0})}catch(n){r[t]=e}return e}},7697:function(t,e,n){"use strict";var r=n(3689);t.exports=!r((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]}))},6420:function(t,e,n){"use strict";var r=n(9037),i=n(8999),o=r.document,a=i(o)&&i(o.createElement);t.exports=function(t){return a?o.createElement(t):{}}},5565:function(t){"use strict";var e=TypeError;t.exports=function(t){if(t>9007199254740991)throw e("Maximum allowed index exceeded");return t}},71:function(t){"use strict";t.exports="undefined"!=typeof navigator&&String(navigator.userAgent)||""},3615:function(t,e,n){"use strict";var r,i,o=n(9037),a=n(71),s=o.process,u=o.Deno,c=s&&s.versions||u&&u.version,l=c&&c.v8;l&&(i=(r=l.split("."))[0]>0&&r[0]<4?1:+(r[0]+r[1])),!i&&a&&(!(r=a.match(/Edge\/(\d+)/))||r[1]>=74)&&(r=a.match(/Chrome\/(\d+)/))&&(i=+r[1]),t.exports=i},8749:function(t,e,n){"use strict";var r=n(9037),i=n(8844);t.exports=function(t,e){return i(r[t].prototype[e])}},2739:function(t){"use strict";t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},9989:function(t,e,n){"use strict";var r=n(9037),i=n(2474).f,o=n(5773),a=n(1880),s=n(5014),u=n(8758),c=n(5266);t.exports=function(t,e){var n,l,d,h,f,p=t.target,v=t.global,g=t.stat;if(n=v?r:g?r[p]||s(p,{}):r[p]&&r[p].prototype)for(l in e){if(h=e[l],d=t.dontCallGetSet?(f=i(n,l))&&f.value:n[l],!c(v?l:p+(g?".":"#")+l,t.forced)&&void 0!==d){if(typeof h==typeof d)continue;u(h,d)}(t.sham||d&&d.sham)&&o(h,"sham",!0),a(n,l,h,t)}}},3689:function(t){"use strict";t.exports=function(t){try{return!!t()}catch(t){return!0}}},7809:function(t,e,n){"use strict";var r=n(2297),i=n(6310),o=n(5565),a=n(4071),s=function(t,e,n,u,c,l,d,h){for(var f,p,v=c,g=0,m=!!d&&a(d,h);g<u;)g in n&&(f=m?m(n[g],g,e):n[g],l>0&&r(f)?(p=i(f),v=s(t,e,f,p,v,l-1)-1):(o(v+1),t[v]=f),v++),g++;return v};t.exports=s},4071:function(t,e,n){"use strict";var r=n(6576),i=n(509),o=n(7215),a=r(r.bind);t.exports=function(t,e){return i(t),void 0===e?t:o?a(t,e):function(){return t.apply(e,arguments)}}},7215:function(t,e,n){"use strict";var r=n(3689);t.exports=!r((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")}))},2615:function(t,e,n){"use strict";var r=n(7215),i=Function.prototype.call;t.exports=r?i.bind(i):function(){return i.apply(i,arguments)}},1236:function(t,e,n){"use strict";var r=n(7697),i=n(6812),o=Function.prototype,a=r&&Object.getOwnPropertyDescriptor,s=i(o,"name"),u=s&&"something"===function(){}.name,c=s&&(!r||r&&a(o,"name").configurable);t.exports={EXISTS:s,PROPER:u,CONFIGURABLE:c}},6576:function(t,e,n){"use strict";var r=n(6648),i=n(8844);t.exports=function(t){if("Function"===r(t))return i(t)}},8844:function(t,e,n){"use strict";var r=n(7215),i=Function.prototype,o=i.call,a=r&&i.bind.bind(o,o);t.exports=r?a:function(t){return function(){return o.apply(t,arguments)}}},6058:function(t,e,n){"use strict";var r=n(9037),i=n(9985);t.exports=function(t,e){return arguments.length<2?(n=r[t],i(n)?n:void 0):r[t]&&r[t][e];var n}},4849:function(t,e,n){"use strict";var r=n(509),i=n(981);t.exports=function(t,e){var n=t[e];return i(n)?void 0:r(n)}},9037:function(t,e,n){"use strict";var r=function(t){return t&&t.Math===Math&&t};t.exports=r("object"==typeof globalThis&&globalThis)||r("object"==typeof window&&window)||r("object"==typeof self&&self)||r("object"==typeof n.g&&n.g)||r("object"==typeof this&&this)||function(){return this}()||Function("return this")()},6812:function(t,e,n){"use strict";var r=n(8844),i=n(690),o=r({}.hasOwnProperty);t.exports=Object.hasOwn||function(t,e){return o(i(t),e)}},7248:function(t){"use strict";t.exports={}},2688:function(t,e,n){"use strict";var r=n(6058);t.exports=r("document","documentElement")},8506:function(t,e,n){"use strict";var r=n(7697),i=n(3689),o=n(6420);t.exports=!r&&!i((function(){return 7!==Object.defineProperty(o("div"),"a",{get:function(){return 7}}).a}))},4413:function(t,e,n){"use strict";var r=n(8844),i=n(3689),o=n(6648),a=Object,s=r("".split);t.exports=i((function(){return!a("z").propertyIsEnumerable(0)}))?function(t){return"String"===o(t)?s(t,""):a(t)}:a},6738:function(t,e,n){"use strict";var r=n(8844),i=n(9985),o=n(4091),a=r(Function.toString);i(o.inspectSource)||(o.inspectSource=function(t){return a(t)}),t.exports=o.inspectSource},618:function(t,e,n){"use strict";var r,i,o,a=n(9834),s=n(9037),u=n(8999),c=n(5773),l=n(6812),d=n(4091),h=n(2713),f=n(7248),p="Object already initialized",v=s.TypeError,g=s.WeakMap;if(a||d.state){var m=d.state||(d.state=new g);m.get=m.get,m.has=m.has,m.set=m.set,r=function(t,e){if(m.has(t))throw new v(p);return e.facade=t,m.set(t,e),e},i=function(t){return m.get(t)||{}},o=function(t){return m.has(t)}}else{var b=h("state");f[b]=!0,r=function(t,e){if(l(t,b))throw new v(p);return e.facade=t,c(t,b,e),e},i=function(t){return l(t,b)?t[b]:{}},o=function(t){return l(t,b)}}t.exports={set:r,get:i,has:o,enforce:function(t){return o(t)?i(t):r(t,{})},getterFor:function(t){return function(e){var n;if(!u(e)||(n=i(e)).type!==t)throw new v("Incompatible receiver, "+t+" required");return n}}}},2297:function(t,e,n){"use strict";var r=n(6648);t.exports=Array.isArray||function(t){return"Array"===r(t)}},9985:function(t){"use strict";var e="object"==typeof document&&document.all;t.exports=void 0===e&&void 0!==e?function(t){return"function"==typeof t||t===e}:function(t){return"function"==typeof t}},9429:function(t,e,n){"use strict";var r=n(8844),i=n(3689),o=n(9985),a=n(926),s=n(6058),u=n(6738),c=function(){},l=s("Reflect","construct"),d=/^\s*(?:class|function)\b/,h=r(d.exec),f=!d.test(c),p=function(t){if(!o(t))return!1;try{return l(c,[],t),!0}catch(t){return!1}},v=function(t){if(!o(t))return!1;switch(a(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return f||!!h(d,u(t))}catch(t){return!0}};v.sham=!0,t.exports=!l||i((function(){var t;return p(p.call)||!p(Object)||!p((function(){t=!0}))||t}))?v:p},5266:function(t,e,n){"use strict";var r=n(3689),i=n(9985),o=/#|\.prototype\./,a=function(t,e){var n=u[s(t)];return n===l||n!==c&&(i(e)?r(e):!!e)},s=a.normalize=function(t){return String(t).replace(o,".").toLowerCase()},u=a.data={},c=a.NATIVE="N",l=a.POLYFILL="P";t.exports=a},981:function(t){"use strict";t.exports=function(t){return null==t}},8999:function(t,e,n){"use strict";var r=n(9985);t.exports=function(t){return"object"==typeof t?null!==t:r(t)}},3931:function(t){"use strict";t.exports=!1},734:function(t,e,n){"use strict";var r=n(6058),i=n(9985),o=n(3622),a=n(9525),s=Object;t.exports=a?function(t){return"symbol"==typeof t}:function(t){var e=r("Symbol");return i(e)&&o(e.prototype,s(t))}},6310:function(t,e,n){"use strict";var r=n(3126);t.exports=function(t){return r(t.length)}},8702:function(t,e,n){"use strict";var r=n(8844),i=n(3689),o=n(9985),a=n(6812),s=n(7697),u=n(1236).CONFIGURABLE,c=n(6738),l=n(618),d=l.enforce,h=l.get,f=String,p=Object.defineProperty,v=r("".slice),g=r("".replace),m=r([].join),b=s&&!i((function(){return 8!==p((function(){}),"length",{value:8}).length})),_=String(String).split("String"),w=t.exports=function(t,e,n){"Symbol("===v(f(e),0,7)&&(e="["+g(f(e),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),n&&n.getter&&(e="get "+e),n&&n.setter&&(e="set "+e),(!a(t,"name")||u&&t.name!==e)&&(s?p(t,"name",{value:e,configurable:!0}):t.name=e),b&&n&&a(n,"arity")&&t.length!==n.arity&&p(t,"length",{value:n.arity});try{n&&a(n,"constructor")&&n.constructor?s&&p(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0)}catch(t){}var r=d(t);return a(r,"source")||(r.source=m(_,"string"==typeof e?e:"")),t};Function.prototype.toString=w((function(){return o(this)&&h(this).source||c(this)}),"toString")},8828:function(t){"use strict";var e=Math.ceil,n=Math.floor;t.exports=Math.trunc||function(t){var r=+t;return(r>0?n:e)(r)}},5391:function(t,e,n){"use strict";var r,i=n(5027),o=n(8920),a=n(2739),s=n(7248),u=n(2688),c=n(6420),l=n(2713),d="prototype",h="script",f=l("IE_PROTO"),p=function(){},v=function(t){return"<"+h+">"+t+"</"+h+">"},g=function(t){t.write(v("")),t.close();var e=t.parentWindow.Object;return t=null,e},m=function(){try{r=new ActiveXObject("htmlfile")}catch(t){}var t,e,n;m="undefined"!=typeof document?document.domain&&r?g(r):(e=c("iframe"),n="java"+h+":",e.style.display="none",u.appendChild(e),e.src=String(n),(t=e.contentWindow.document).open(),t.write(v("document.F=Object")),t.close(),t.F):g(r);for(var i=a.length;i--;)delete m[d][a[i]];return m()};s[f]=!0,t.exports=Object.create||function(t,e){var n;return null!==t?(p[d]=i(t),n=new p,p[d]=null,n[f]=t):n=m(),void 0===e?n:o.f(n,e)}},8920:function(t,e,n){"use strict";var r=n(7697),i=n(5648),o=n(2560),a=n(5027),s=n(5290),u=n(300);e.f=r&&!i?Object.defineProperties:function(t,e){a(t);for(var n,r=s(e),i=u(e),c=i.length,l=0;c>l;)o.f(t,n=i[l++],r[n]);return t}},2560:function(t,e,n){"use strict";var r=n(7697),i=n(8506),o=n(5648),a=n(5027),s=n(8360),u=TypeError,c=Object.defineProperty,l=Object.getOwnPropertyDescriptor,d="enumerable",h="configurable",f="writable";e.f=r?o?function(t,e,n){if(a(t),e=s(e),a(n),"function"==typeof t&&"prototype"===e&&"value"in n&&f in n&&!n[f]){var r=l(t,e);r&&r[f]&&(t[e]=n.value,n={configurable:h in n?n[h]:r[h],enumerable:d in n?n[d]:r[d],writable:!1})}return c(t,e,n)}:c:function(t,e,n){if(a(t),e=s(e),a(n),i)try{return c(t,e,n)}catch(t){}if("get"in n||"set"in n)throw new u("Accessors not supported");return"value"in n&&(t[e]=n.value),t}},2474:function(t,e,n){"use strict";var r=n(7697),i=n(2615),o=n(9556),a=n(5684),s=n(5290),u=n(8360),c=n(6812),l=n(8506),d=Object.getOwnPropertyDescriptor;e.f=r?d:function(t,e){if(t=s(t),e=u(e),l)try{return d(t,e)}catch(t){}if(c(t,e))return a(!i(o.f,t,e),t[e])}},2741:function(t,e,n){"use strict";var r=n(4948),i=n(2739).concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return r(t,i)}},7518:function(t,e){"use strict";e.f=Object.getOwnPropertySymbols},3622:function(t,e,n){"use strict";var r=n(8844);t.exports=r({}.isPrototypeOf)},4948:function(t,e,n){"use strict";var r=n(8844),i=n(6812),o=n(5290),a=n(4328).indexOf,s=n(7248),u=r([].push);t.exports=function(t,e){var n,r=o(t),c=0,l=[];for(n in r)!i(s,n)&&i(r,n)&&u(l,n);for(;e.length>c;)i(r,n=e[c++])&&(~a(l,n)||u(l,n));return l}},300:function(t,e,n){"use strict";var r=n(4948),i=n(2739);t.exports=Object.keys||function(t){return r(t,i)}},9556:function(t,e){"use strict";var n={}.propertyIsEnumerable,r=Object.getOwnPropertyDescriptor,i=r&&!n.call({1:2},1);e.f=i?function(t){var e=r(this,t);return!!e&&e.enumerable}:n},5899:function(t,e,n){"use strict";var r=n(2615),i=n(9985),o=n(8999),a=TypeError;t.exports=function(t,e){var n,s;if("string"===e&&i(n=t.toString)&&!o(s=r(n,t)))return s;if(i(n=t.valueOf)&&!o(s=r(n,t)))return s;if("string"!==e&&i(n=t.toString)&&!o(s=r(n,t)))return s;throw new a("Can't convert object to primitive value")}},9152:function(t,e,n){"use strict";var r=n(6058),i=n(8844),o=n(2741),a=n(7518),s=n(5027),u=i([].concat);t.exports=r("Reflect","ownKeys")||function(t){var e=o.f(s(t)),n=a.f;return n?u(e,n(t)):e}},4684:function(t,e,n){"use strict";var r=n(981),i=TypeError;t.exports=function(t){if(r(t))throw new i("Can't call method on "+t);return t}},2713:function(t,e,n){"use strict";var r=n(3430),i=n(4630),o=r("keys");t.exports=function(t){return o[t]||(o[t]=i(t))}},4091:function(t,e,n){"use strict";var r=n(3931),i=n(9037),o=n(5014),a="__core-js_shared__",s=t.exports=i[a]||o(a,{});(s.versions||(s.versions=[])).push({version:"3.36.1",mode:r?"pure":"global",copyright:"© 2014-2024 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.36.1/LICENSE",source:"https://github.com/zloirock/core-js"})},3430:function(t,e,n){"use strict";var r=n(4091);t.exports=function(t,e){return r[t]||(r[t]=e||{})}},146:function(t,e,n){"use strict";var r=n(3615),i=n(3689),o=n(9037).String;t.exports=!!Object.getOwnPropertySymbols&&!i((function(){var t=Symbol("symbol detection");return!o(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&r&&r<41}))},7578:function(t,e,n){"use strict";var r=n(8700),i=Math.max,o=Math.min;t.exports=function(t,e){var n=r(t);return n<0?i(n+e,0):o(n,e)}},5290:function(t,e,n){"use strict";var r=n(4413),i=n(4684);t.exports=function(t){return r(i(t))}},8700:function(t,e,n){"use strict";var r=n(8828);t.exports=function(t){var e=+t;return e!=e||0===e?0:r(e)}},3126:function(t,e,n){"use strict";var r=n(8700),i=Math.min;t.exports=function(t){var e=r(t);return e>0?i(e,9007199254740991):0}},690:function(t,e,n){"use strict";var r=n(4684),i=Object;t.exports=function(t){return i(r(t))}},8732:function(t,e,n){"use strict";var r=n(2615),i=n(8999),o=n(734),a=n(4849),s=n(5899),u=n(4201),c=TypeError,l=u("toPrimitive");t.exports=function(t,e){if(!i(t)||o(t))return t;var n,u=a(t,l);if(u){if(void 0===e&&(e="default"),n=r(u,t,e),!i(n)||o(n))return n;throw new c("Can't convert object to primitive value")}return void 0===e&&(e="number"),s(t,e)}},8360:function(t,e,n){"use strict";var r=n(8732),i=n(734);t.exports=function(t){var e=r(t,"string");return i(e)?e:e+""}},3043:function(t,e,n){"use strict";var r={};r[n(4201)("toStringTag")]="z",t.exports="[object z]"===String(r)},3691:function(t){"use strict";var e=String;t.exports=function(t){try{return e(t)}catch(t){return"Object"}}},4630:function(t,e,n){"use strict";var r=n(8844),i=0,o=Math.random(),a=r(1..toString);t.exports=function(t){return"Symbol("+(void 0===t?"":t)+")_"+a(++i+o,36)}},9525:function(t,e,n){"use strict";var r=n(146);t.exports=r&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},5648:function(t,e,n){"use strict";var r=n(7697),i=n(3689);t.exports=r&&i((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))},9834:function(t,e,n){"use strict";var r=n(9037),i=n(9985),o=r.WeakMap;t.exports=i(o)&&/native code/.test(String(o))},4201:function(t,e,n){"use strict";var r=n(9037),i=n(3430),o=n(6812),a=n(4630),s=n(146),u=n(9525),c=r.Symbol,l=i("wks"),d=u?c.for||c:c&&c.withoutSetter||a;t.exports=function(t){return o(l,t)||(l[t]=s&&o(c,t)?c[t]:d("Symbol."+t)),l[t]}},2795:function(t,e,n){"use strict";var r=n(9989),i=n(7809),o=n(690),a=n(6310),s=n(8700),u=n(7120);r({target:"Array",proto:!0},{flat:function(){var t=arguments.length?arguments[0]:void 0,e=o(this),n=a(e),r=u(e,0);return r.length=i(r,e,e,n,0,void 0===t?1:s(t)),r}})},3383:function(t,e,n){"use strict";n(7370)("flat")},2719:function(t,e,n){"use strict";var r=n(9798);t.exports=r},7918:function(t,e,n){"use strict";n.d(e,{Z:function(){return h}});var r=n(8003).Z.Symbol,i=Object.prototype,o=i.hasOwnProperty,a=i.toString,s=r?r.toStringTag:void 0;var u=function(t){var e=o.call(t,s),n=t[s];try{t[s]=void 0;var r=!0}catch(t){}var i=a.call(t);return r&&(e?t[s]=n:delete t[s]),i},c=Object.prototype.toString;var l=function(t){return c.call(t)},d=r?r.toStringTag:void 0;var h=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":d&&d in Object(t)?u(t):l(t)}},8003:function(t,e,n){"use strict";n.d(e,{Z:function(){return o}});var r="object"==typeof global&&global&&global.Object===Object&&global,i="object"==typeof self&&self&&self.Object===Object&&self,o=r||i||Function("return this")()},7226:function(t,e){"use strict";e.Z=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}}}]); |