(self.webpackChunk_client_app_store=self.webpackChunk_client_app_store||[]).push([[8113],{18113:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.inject=void 0;var i=n(46126),r=n(40270),o=n(66659),a=n(4138),u=n(74725),s=n(29583),c=n(36376),l=n(18550),f=n(85991);function d(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.vidGrayReg,n=e.runInDev;if(!f.win||!(0,a.isWxwork)()||!n&&(0,o.isDev)())return!1;if(f.win.WeixinJSBridge)return(0,l.log)("has injected"),(0,l.report)([{type:"logkvAuto",key:"not_inject"},{type:"logkvAuto",key:"not_inject|has_injected"}]),!1;var r=(0,a.getAppPlatform)(),d=r&&c.InjectHandlers[r];return!!(d&&h()&&(0,s.isCanInject)(r)&&(0,u.noOverrideWeixinJsBridgePrecheck)(r)&&(0,i.d2vidgray)(t))&&((0,l.log)("start inject"),d())}function h(){var e,t,n=null===(t=null===(e=navigator.userAgent)||void 0===e?void 0:e.match(/wxwork\/(\d+\.\d+(\.\d+)?)/i))||void 0===t?void 0:t[1];return!!(n&&(0,r.versionCompare)(n,"4.1.0")>0)||((0,l.log)("not_inject: app version old, ".concat(n)),(0,l.report)([{type:"logkvAuto",key:"not_inject"},{type:"logkvAuto",key:"not_inject|app_version_old"}]),!1)}t.inject=d},36376:function(e,t,n){"use strict";var i=n(30011),r=i(n(34934)),o=i(n(37487)),a=i(n(20480));Object.defineProperty(t,"__esModule",{value:!0}),t.InjectHandlers=void 0;var u=n(4138),s=n(35701),c=n(29583),l=n(18550),f=n(85991),d=n(74725),h="window.webkit.messageHandlers.weixinDispatchMessage.postMessage";function g(){f.win&&(f.win.__d2InjectedWeixinJSBridge__=!0)}function _(e,t){return p.apply(this,arguments)}function p(){return(p=(0,o.default)(r.default.mark(function e(t,n){var i;return r.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return(0,d.noOverrideWeixinJsBridge)(t,n),(i=document.createEvent("Events")).initEvent("D2InjectedWeixinJSBridgeReady"),document.dispatchEvent(i),e.next=6,(0,c.checkInjectStatus)(t);case 6:case"end":return e.stop()}},e)}))).apply(this,arguments)}function v(e,t){var n=[],i=window,r=e.split(".").every(function(e){return i=i[e],n.push(e),!!i});if(!r){var o="window object not existed: ".concat(n.join("."));(0,l.log)(o),(0,l.report)([{type:"logkvAuto",key:"not_inject"},{type:"logkvAuto",key:"not_inject|win_obj_undefined|".concat(t)},{type:"log",msg:o}])}return r}t.InjectHandlers=(0,a.default)({},u.Platform.iOS,function(){var e=u.Platform.iOS;return!!v(h,e)&&(g(),(0,s.WeixinJSBridgeInject)(),_(e),!0)})},29583:function(e,t,n){"use strict";var i=n(30011),r=i(n(34934)),o=i(n(37487));Object.defineProperty(t,"__esModule",{value:!0}),t.checkInjectStatus=t.isCanInject=void 0;var a=n(49650),u=n(18550),s=n(93260),c=n(85991);function l(e){return(0,s.checkFilaCount)(e,!0)}function f(e){return d.apply(this,arguments)}function d(){return(d=(0,o.default)(r.default.mark(function e(t){return r.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(null===c.win||void 0===c.win?void 0:c.win.WeixinJSBridge){e.next=2;break}return e.abrupt("return");case 2:return e.prev=2,e.next=5,(0,a.log)("[WeixinJSBridgeInject] check jsapi avaible succ");case 5:(0,s.removeFailCount)(),e.next=13;break;case 8:throw e.prev=8,e.t0=e.catch(2),(0,s.setFailCount)(t,e.t0),(0,u.report)([{type:"logkvAuto",key:"inject|check_fail|".concat(t)}]),e.t0;case 13:(0,u.report)([{type:"logkvAuto",key:"inject|suc"},{type:"logkvAuto",key:"inject|suc|".concat(t)}]),(0,u.log)("[WeixinJSBridgeInject] inject succ");case 15:case"end":return e.stop()}},e,null,[[2,8]])}))).apply(this,arguments)}t.isCanInject=l,t.checkInjectStatus=f},93260:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.removeFailCount=t.setFailCount=t.checkFilaCount=void 0;var i=n(66659),r=n(18550),o=1,a="__WeixinJSBridgeInject_fail_count__";function u(){var e=localStorage.getItem(a);return e&&+e||0}function s(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return!(u()>=o)||(t&&((0,r.report)([{type:"logkvAuto",key:"not_inject"},{type:"logkvAuto",key:"not_inject|ignore_inject|".concat(e)}]),(0,r.log)("inject fail: ignore inject")),!!(0,i.isInDocker)())}function c(e,t){var n=u()+1,i="check jsapi avaible fail, fail count: ".concat(n);return(0,r.log)(i,t),(0,r.report)([{type:"logkvAuto",key:"inject|set_fail_count|".concat(e,"|").concat(Math.min(n,o))},{type:"log",msg:i}]),localStorage.setItem(a,"".concat(n)),n}function l(){localStorage.getItem(a)&&localStorage.removeItem(a)}t.checkFilaCount=s,t.setFailCount=c,t.removeFailCount=l},74725:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.noOverrideWeixinJsBridge=t.noOverrideWeixinJsBridgePrecheck=void 0;var i=n(93260),r=n(18550),o=n(85991);function a(e){return window.Proxy?!!Object.defineProperty||((0,r.log)("ignore override check: no Object.defineProperty"),(0,r.report)([{type:"logkvAuto",key:"no_override|defineproperty"},{type:"logkvAuto",key:"no_override|defineproperty|".concat(e)}]),!1):((0,r.log)("ignore override check: no Proxy"),(0,r.report)([{type:"logkvAuto",key:"no_override|noproxy"},{type:"logkvAuto",key:"no_override|noproxy|".concat(e)}]),!1)}function u(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.proxyKeyWhitelist;if(o.win){var a=o.win.WeixinJSBridge;if(!a){(0,r.log)("ignore override check: no WeixinJSBridge");return}o.win.D2InjectedWeixinJSBridge||(o.win.D2InjectedWeixinJSBridge={});var u=o.win.D2InjectedWeixinJSBridge;u.setedObject=a,u.extendedKeys||(u.extendedKeys={});var c=u.setedObject=o.win.WeixinJSBridge=new Proxy(a,{get:function(t,n){var o,a=t[n],l=u.extendedKeys[n],f=u.setedObject!==c?null===(o=u.setedObject)||void 0===o?void 0:o[n]:void 0;if(!(n in t)&&(l||f)){var d="use new ".concat(s(n));return(0,r.log)(d),(0,r.report)([{type:"logkvAuto",key:"override|use_new_key"},{type:"log",msg:d}]),(0,i.setFailCount)(e),l||f}return(l&&l!==a||f&&f!==a)&&(0,r.debug)("use old ".concat(s(n))),a},set:function(e,t,i){return u.extendedKeys[t]=i,n&&-1!==n.indexOf(t)?e[t]=i:("invoke"===t&&(0,r.report)([{type:"logkvAuto",key:"override|ignore_set|jsbridge_key"}]),(0,r.log)("ignore set ".concat(s(t)))),!0}});Object.defineProperty(window,"WeixinJSBridge",{get:function(){return c!==u.setedObject&&(0,r.debug)("use old WeixinJSBridge"),c},set:function(e){u.setedObject=e,(0,r.report)([{type:"logkvAuto",key:"override|ignore_set|win_jsbridge"}]),(0,r.log)("ignore set window.WeixinJSBridge")},enumerable:!0})}}function s(e){return"WeixinJSBridge.".concat("string"==typeof e?e:"[symbol]")}t.noOverrideWeixinJsBridgePrecheck=a,t.noOverrideWeixinJsBridge=u},18550:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.report=t.debug=t.warn=t.log=void 0;var i,r=n(4138),o=n(27097),a=n(49898);function u(e){return(0,a.mngReport)(e.map(function(e){var t;return"logkvAuto"===e.type?"st:logkvauto_report=".concat(JSON.stringify({kv:55396,key:e.key,value:null!==(t=e.value)&&void 0!==t?t:1})):"st:c_log=[WeixinJSBridgeInject] ".concat(e.msg,", platform: ").concat((0,r.getAppPlatform)(),", ua: ").concat(navigator.userAgent,", url: ").concat(location.href)}))}i=(0,o.getLogs)("WeixinJSBridgeInject"),t.log=i.log,t.warn=i.warn,t.debug=i.debug,t.report=u},85991:function(e,t,n){"use strict";var i=n(30011)(n(42481));Object.defineProperty(t,"__esModule",{value:!0}),t.win=void 0,t.win=("undefined"==typeof window?"undefined":(0,i.default)(window))==="object"?window:void 0},35701:function(__unused_webpack_module,exports){function _instanceof(e,t){return null!=t&&"undefined"!=typeof Symbol&&t[Symbol.hasInstance]?!!t[Symbol.hasInstance](e):e instanceof t}var _typeof=function(e){return e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e};exports.WeixinJSBridgeInject=function WeixinJSBridgeInject(){!function(){var JSON,_sendMessage=function(e){_sendMessageQueue.push(e);var t=_fetchQueue();window.webkit.messageHandlers.weixinDispatchMessage.postMessage(t)},_checkRegisterEvent=function(){var e=JSON.stringify(Object.keys(_event_hook_map_for3rd)),t={};return t[_MSG_QUEUE]=e,t[_SHA_KEY]="",JSON.stringify(t)},_fetchQueue=function(){if(__WeixinJSBridge._fetchQueue!==_fetchQueueIdentifier)return"";var e=JSON.stringify(_sendMessageQueue);_sendMessageQueue=[];var t=[];t[0]=e,t[1]=_xxyy;var n=t.join(""),i="";"yes"===_isUseMd5&&(i=CryptoJS.SHA1(n).toString());var r={};return r[_MSG_QUEUE]=e,r[_SHA_KEY]=i,JSON.stringify(r)},_handleMessageFromWeixin=function(e){if(__WeixinJSBridge._handleMessageFromWeixin!==_handleMessageIdentifier)return"{}";var t,n=e[_JSON_MESSAGE],i=e[_SHA_KEY],r=[];r[0]=JSON.stringify(n),r[1]=_xxyy;var o=r.join(""),a="";if("yes"===_isUseMd5&&(a=CryptoJS.SHA1(o).toString())!==i)return"{}";switch(n[_MESSAGE_TYPE]){case"checkRegister":return _checkRegisterEvent();case"callback":if("string"==typeof n[_CALLBACK_ID]&&"function"==typeof _callback_map[n[_CALLBACK_ID]])return t=_callback_map[n[_CALLBACK_ID]](n.__params),delete _callback_map[n[_CALLBACK_ID]],JSON.stringify(t);return JSON.stringify({__err_code:"cb404"});case"event":if("object"==typeof n[_RUN_ON_3RD_APIS]&&(_runOn3rdApiList=n[_RUN_ON_3RD_APIS]),_context_val=n[_CONTEXT_KEY],"string"==typeof n[_EVENT_ID]){if("function"==typeof _event_hook_map_for3rd[n[_EVENT_ID]]&&_isIn3rdApiList(n[_EVENT_ID]))return t=_event_hook_map_for3rd[n[_EVENT_ID]](n.__params),JSON.stringify(t);if("function"==typeof _event_hook_map[n[_EVENT_ID]])return t=_event_hook_map[n[_EVENT_ID]](n.__params),JSON.stringify(t)}return JSON.stringify({__err_code:"ev404"})}return"{}"},_isIn3rdApiList=function(e){return _runOn3rdApiList.some(function(t){return t===e})},_env=function(e){return __WeixinJSBridge.env!==_envIdentifier?"":_session_data[e]},_log=function(e){if(__WeixinJSBridge.log===_logIdentifier){for(var t,n=[],i=0;i<arguments.length;i++)n.push(arguments[i]);var r=n.shift();try{t=vsprintf(r,n)}catch(o){t=e}_call("log",{msg:t})}},_call=function(e,t,n){if(__WeixinJSBridge.call===_callIdentifier&&e&&"string"==typeof e){"object"!=typeof t&&(t={});var i=(_callback_count++).toString();"function"==typeof n&&(_callback_map[i]=n);var r=[];r[0]=_context_val,r[1]=_xxyy;var o=r.join(""),a="";"yes"===_isUseMd5&&(a=CryptoJS.SHA1(o).toString()),t[_CONTEXT_KEY]=a;var u={func:e,params:t};u[_MESSAGE_TYPE]="call",u[_CALLBACK_ID]=i,_sendMessage(JSON.stringify(u))}},_on=function(e,t){e&&"string"==typeof e&&"function"==typeof t&&(_event_hook_map[e]=t)},_onfor3rd=function(e,t){__WeixinJSBridge.on===_onfor3rdIdentifier&&e&&"string"==typeof e&&"function"==typeof t&&(_event_hook_map_for3rd[e]=t)},_emit=function(e,t){"function"==typeof _event_hook_map_for3rd[e]&&_isIn3rdApiList(e)?_event_hook_map_for3rd[e](t):"function"==typeof _event_hook_map[e]&&_event_hook_map[e](t)},_hasOnHandler=function(e){return"function"==typeof _event_hook_map[e]},_loadedImageByUrl=function(e,t){var n=new Image,i=!1;n.onload=function(){i||(i=!0,t(n))},n.src=e,setTimeout(function(){i||(i=!0,t(n))},1e3)},_getImageDataAsBase64=function(e,t){var n=function(n){var i=/^data:image\/(png|jpg|jpeg|tiff|gif|bmp);base64,/i,r="";if(n.src.match(i))r=n.src;else{var o=document.createElement("canvas");o.width=n.width,o.height=n.height,o.getContext("2d").drawImage(n,0,0);var a="jpg",u=n.src.match(/\.(png|jpg|jpeg|tiff|gif|bmp)$/i);u&&(a=u[1].toLowerCase());try{r=o.toDataURL("image/"+a)}catch(s){_log(s.message)}}t(r.replace(i,""),n,e)};_loadedImageByUrl(e.src,n)},_enable_old_UrlStyleImagePreviews=function(){var e="weixin://viewimage/";_WXJS('a[href^="weixin://viewimage/"]').on("click",function(t){var n,i="";i=(n="string"==typeof t.target.href&&0===t.target.href.search(e)?t.target:_WXJS(t.target).parents('a[href^="weixin://viewimage/"]')[0]).href.substr(e.length);for(var r=_WXJS('a[href^="weixin://viewimage/"]'),o=[],a=0;a<r.length;a++)o.push(r[a].href.substr(e.length));_call("imagePreview",{urls:o,current:i}),t.preventDefault()})},_enable_old_ReaderShareUrls=function(){_WXJS('a[href^="weixin://readershare/"]').on("click",function(e){e.preventDefault(),_emit("menu:share:weibo",_session_data.shareWeiboData||{})}),_WXJS('a[href^="weixin://readertimeline/"]').on("click",function(e){e.preventDefault(),_emit("menu:share:timeline",_session_data.shareTimelineData||{})})},_enable_mediaPlayChangeNotify=function(){var e=_WXJS("audio");e.on("play",function(){_call("audioStateChanged",{state:"play"})}),e.on("ended",function(){_call("audioStateChanged",{state:"ended"})}),e.on("pause",function(){_call("audioStateChanged",{state:"pause"})});var t=_WXJS("video");t.on("play",function(){_call("videoStateChanged",{state:"play"})}),t.on("ended",function(){_call("videoStateChanged",{state:"ended"})}),t.on("pause",function(){_call("videoStateChanged",{state:"pause"})})},_disableImageSelection=function(){for(var e=_WXJS("img"),t=0;t<e.length;t++)_WXJS(e[t])._wxjs_old_touch_callout=_WXJS(e[t]).css("-webkit-touch-callout"),_WXJS(e[t])._wxjs_old_user_select=_WXJS(e[t]).css("-webkit-user-select");_WXJS("img").css({"-webkit-touch-callout":"none","-webkit-user-select":"none"})},_restoreImageSelection=function(){for(var e=_WXJS("img"),t=0;t<e.length;t++)void 0!==_WXJS(e[t])._wxjs_old_touch_callout&&_WXJS(e[t]).css({"-webkit-touch-callout":_WXJS(e[t])._wxjs_old_touch_callout,"-webkit-user-select":_WXJS(e[t])._wxjs_old_user_select})},_disableAlertView=function(){window.__wxjs_sys_alert=window.alert,window.alert=null,window.__wxjs_sys_prompt=window.prompt,window.prompt=null},_restoreAlertView=function(){window.alert=window.__wxjs_sys_alert,window.prompt=window.__wxjs_sys_prompt,delete window.__wxjs_sys_alert,delete window.__wxjs_sys_prompt},_setDefaultEventHandlers=function(){_on("menu:setfont",function(e){if("function"==typeof changefont){var t,n=parseInt(e.fontSize);changefont(n);return}if(!e.isFirstAutoSet||"2"!==e.fontSize&&"100"!==e.fontScale){var i=_env("system");if(!("string"==typeof i&&i.indexOf("iPhone OS")>=0&&4>=Number(i.substr(i.indexOf(".")-1,1)))){var n=parseInt(e.fontScale);if(n>=50&&n<=500)t=e.fontScale+"%";else switch(e.fontSize){case"1":t="80%";break;case"2":t="100%";break;case"3":t="120%";break;case"4":t="140%";break;default:return}document.getElementsByTagName("body")[0].style.webkitTextSizeAdjust=t}}});var e=function(e){var t,n=!1,i=function(t){n||(n=!0,e(t))},r=_WXJS("img");if(0==r.length)return i();for(var o={},a=[],u=0;u<r.length;u++){var s=r[u];"none"!=_WXJS(s).css("display")&&"hidden"!=_WXJS(s).css("visibility")&&(o[s.src]||(o[s.src]=1,a.push(s)))}for(var c=[],u=0;u<a.length&&u<100;u++){t=a[u];var l=new Image;l.onload=function(){this.isLoaded=!0;for(var e=0,t=0;t<c.length;t++){var n=c[t];if(!n.isLoaded)break;if(e++,n.width>290&&n.height>290){i(n);break}}e==c.length&&i()},l.src=t.src,c.push(l)}setTimeout(function(){for(var e=0;e<c.length;e++){var t=c[e];if(t.isLoaded&&t.width>290&&t.height>290){i(t);return}}i()},1e3)};_on("menu:share:timeline",function(t){if(_log("share timeline"),"string"==typeof t.title)_call("shareTimeline",n=t);else{var n;n={link:document.documentURI||_session_data.init_url,desc:document.documentURI||_session_data.init_url,title:document.title},e(function(e){e&&(n.img_url=e.src,n.img_width=e.width,n.img_height=e.height),_call("shareTimeline",n)})}}),_on("menu:share:qq",function(t){if(_log("share QQ"),"string"==typeof t.title)_call("shareQQ",n=t);else{var n;n={link:document.documentURI||_session_data.init_url,desc:document.documentURI||_session_data.init_url,title:document.title},e(function(e){e&&(n.img_url=e.src,n.img_width=e.width,n.img_height=e.height),_call("shareQQ",n)})}}),_on("menu:share:weiboApp",function(t){if(_log("share Weibo App"),"string"==typeof t.title)_call("shareWeiboApp",n=t);else{var n;n={link:document.documentURI||_session_data.init_url,desc:document.documentURI||_session_data.init_url,title:document.title},e(function(e){e&&(n.img_url=e.src,n.img_width=e.width,n.img_height=e.height),_call("shareWeiboApp",n)})}});var t=function(t){var n;_log("share weibo"),n="string"==typeof t.content?t:{content:document.title,type:"link",title:document.title,link:document.documentURI||_session_data.short_url||_session_data.init_url},e(function(e){e&&(n.img_url=e.src),_call("shareWeibo",n)})};function n(e,t){for(var n=document.elementFromPoint(e,t),i=n;i&&"IMG"!=i.tagName;)i=i.parentNode;if(!i){var r=function(e,t){var n;for(n in e.childNodes){if(t(n))return n;r(n,t)}return null};i=r(n,function(e){return e&&"IMG"==e.tagName})}return i&&"IMG"==i.tagName?i:null}_on("menu:share:weibo",t),_on("menu:share:QZone",function(t){if(_log("share QZone"),"string"==typeof t.title)_call("shareQZone",n=t);else{var n;n={link:document.documentURI||_session_data.init_url,desc:document.documentURI||_session_data.init_url,title:document.title},e(function(e){e&&(n.img_url=e.src,n.img_width=e.width,n.img_height=e.height),_call("shareQZone",n)})}}),_on("general:share",function(e){_log("general share");var n=function(t,n){if("weibo"===e.shareTo&&_call("shareWeibo",t,function(e){"share_weibo:ok"===e.err_msg?e.err_msg="general_share:ok":"share_weibo:cancel"===e.err_msg?e.err_msg="general_share:cancel":e.err_msg="general_share:fail",n(e)}),"friend"===e.shareTo||"favorite"===e.shareTo||"connector"===e.shareTo){t.img_width=0,t.img_height=0;var i=function(e){"send_app_msg:confirm"===e.err_msg?e.err_msg="general_share:ok":"send_app_msg:cancel"===e.err_msg?e.err_msg="general_share:cancel":e.err_msg="general_share:fail",n(e)};t.img_url?_loadedImageByUrl(t.img_url,function(e){t.img_width=e.width,t.img_height=e.height,_call("sendAppMessage",t,i)}):_call("sendAppMessage",t,i)}if("timeline"===e.shareTo){var i=function(e){"share_timeline:ok"===e.err_msg?e.err_msg="general_share:ok":"share_timeline:cancel"===e.err_msg?e.err_msg="general_share:cancel":e.err_msg="general_share:fail",n(e)};t.img_width=0,t.img_height=0,t.img_url?_loadedImageByUrl(t.img_url,function(e){t.img_width=e.width,t.img_height=e.height,_call("shareTimeline",t,i)}):_call("shareTimeline",t,i)}if("QQ"===e.shareTo){var i=function(e){"share_qq:ok"===e.err_msg?e.err_msg="general_share:ok":"share_qq:cancel"===e.err_msg?e.err_msg="general_share:cancel":e.err_msg="general_share:fail",n(e)};t.img_width=0,t.img_height=0,t.img_url?_loadedImageByUrl(t.img_url,function(e){t.img_width=e.width,t.img_height=e.height,_call("shareQQ",t,i)}):_call("shareQQ",t,i)}if("weiboApp"===e.shareTo){var i=function(e){"share_weiboApp:ok"===e.err_msg?e.err_msg="general_share:ok":"share_weiboApp:cancel"===e.err_msg?e.err_msg="general_share:cancel":e.err_msg="general_share:fail",n(e)};t.img_width=0,t.img_height=0,t.img_url?_loadedImageByUrl(t.img_url,function(e){t.img_width=e.width,t.img_height=e.height,_call("shareWeiboApp",t,i)}):_call("shareWeiboApp",t,i)}if("QZone"===e.shareTo){var i=function(e){"share_QZone:ok"===e.err_msg?e.err_msg="general_share:ok":"share_QZone:cancel"===e.err_msg?e.err_msg="general_share:cancel":e.err_msg="general_share:fail",n(e)};t.img_width=0,t.img_height=0,t.img_url?_loadedImageByUrl(t.img_url,function(e){t.img_width=e.width,t.img_height=e.height,_call("shareQZone",t,i)}):_call("shareQZone",t,i)}},i=function(t){_log("general share failed. fallback to original share"+e.shareTo),"weibo"===e.shareTo&&_emit("menu:share:weibo",e),("friend"===e.shareTo||"favorite"===e.shareTo||"connector"===e.shareTo)&&_emit("menu:share:appmessage",e),"timeline"===e.shareTo&&_emit("menu:share:timeline",e)},r=_event_hook_map_for3rd["menu:general:share"];if("function"==typeof r&&_isIn3rdApiList("menu:general:share"))e.generalShare=n,r(e);else{if("weibo"===e.shareTo&&_event_hook_map["menu:share:weibo"]!=t){_emit("menu:share:weibo",e);return}if("friend"===e.shareTo||"favorite"===e.shareTo||"connector"===e.shareTo){_emit("menu:share:appmessage",e);return}if("timeline"===e.shareTo){_emit("menu:share:timeline",e);return}if("QQ"==e.shareTo){_emit("menu:share:qq",e);return}if("weiboApp"==e.shareTo){_emit("menu:share:weiboApp",e);return}if("QZone"==e.shareTo){_emit("menu:share:QZone",e);return}var o={$:_WXJS,fail:i,success:n};_log("try default share handler"),_emit("__internal:get_share_object",o)}}),_on("menu:share:appmessage",function(t){if(_log("share appmessage"),"string"==typeof t.title)_call("sendAppMessage",n=t);else{var n;n={link:document.documentURI||_session_data.init_url,desc:document.documentURI||_session_data.init_url,title:document.title},e(function(e){e&&(n.img_url=e.src,n.img_width=e.width,n.img_height=e.height),_call("sendAppMessage",n)})}}),_on("menu:share:email",function(e){var t;_log("share email"),"string"==typeof e.title?_call("sendEmail",t=e):_call("sendEmail",t={content:document.documentURI||_session_data.init_url,title:document.title})}),_on("menu:share:facebook",function(t){if(_log("share facebook"),"string"==typeof t.title)_call("shareFB",n=t);else{var n;n={link:document.documentURI||_session_data.init_url,desc:document.documentURI||_session_data.init_url,title:document.title},e(function(e){e&&(n.img_url=e.src,n.img_width=e.width,n.img_height=e.height),_call("shareFB",n)})}}),_on("ui:longpress",function(e){_log("longpress at ("+e.x+","+e.y+","+e.webViewWidth+","+e.webViewHeight+")");var t=document.documentElement.clientWidth/e.webViewWidth,i=n(e.x*t,e.y*t);if(!i){_log("cannot find image at ("+e.x+","+e.y+")");return}_getImageDataAsBase64(i,function(n,i,r){_call("saveImage",{base64DataString:n,url:i.src,elementWidth:r.width/t,elementHeight:r.height/t,elementTop:r.getBoundingClientRect().top/t,elementLeft:r.getBoundingClientRect().left/t,pointX:e.x,pointY:e.y})})}),_on("sys:init",function(e){_session_data=e;var t=document.createEvent("Events");t.initEvent("WeixinJSBridgeReady"),document.dispatchEvent(t)}),_on("sys:bridged",function(e){"1"===_env("webview_type")&&_emit("menu:setfont",{fontSize:_env("init_font_size"),isFirstAutoSet:1});try{_enable_old_UrlStyleImagePreviews(),_enable_old_ReaderShareUrls(),_enable_mediaPlayChangeNotify()}catch(t){_log("error %s",t)}}),_on("onHistoryBack",function(e){_call("historyBack")})},_test_start=function(){_emit("sys:init",{}),_emit("sys:bridged",{})};!function(e){String.prototype.trim===e&&(String.prototype.trim=function(){return this.replace(/^\s+/,"").replace(/\s+$/,"")}),Array.prototype.reduce===e&&(Array.prototype.reduce=function(t){if(void 0===this||this===null)throw TypeError();var n,i=Object(this),r=i.length>>>0,o=0;if("function"!=typeof t||0==r&&1==arguments.length)throw TypeError();if(arguments.length>=2)n=arguments[1];else for(;;){if(o in i){n=i[o++];break}if(++o>=r)throw TypeError()}for(;o<r;)o in i&&(n=t.call(e,n,i[o],o,i)),o++;return n})}();var _WXJS=function(){var e,t,n,i,r,o,a=function(e){return"[object Function]"==R.call(e)},u=function(e){return _instanceof(e,Object)},s=function(t){var n,i;if("[object Object]"!==R.call(t)||!(i=a(t.constructor)&&t.constructor.prototype)||!hasOwnProperty.call(i,"isPrototypeOf"))return!1;for(n in t);return n===e||hasOwnProperty.call(t,n)},c=function(e){return _instanceof(e,Array)},l=function(e){return"number"==typeof e.length},f=function(t){return t.filter(function(t){return t!==e&&null!==t})},d=function(e){return e.length>0?[].concat.apply([],e):e},h=function(e){return e.replace(/::/g,"/").replace(/([A-Z]+)([A-Z][a-z])/g,"$1_$2").replace(/([a-z\d])([A-Z])/g,"$1_$2").replace(/_/g,"-").toLowerCase()},g=function(e){return e in x?x[e]:x[e]=RegExp("(^|\\s)"+e+"(\\s|$)")},_=function(e,t){return"number"!=typeof t||A[h(e)]?t:t+"px"},p=function(e){var t,n;return C[e]||(t=k.createElement(e),k.body.appendChild(t),n=S(t,"").getPropertyValue("display"),t.parentNode.removeChild(t),"none"==n&&(n="block"),C[e]=n),C[e]},v=function(t,i){return i===e?n(t):n(t).filter(i)},m=function(e,t,n,i){return a(t)?t.call(e,n,i):t},y=function(e,t,i){var r=e%2?t:t.parentNode;r?r.insertBefore(i,e?1==e?r.firstChild:2==e?t:null:t.nextSibling):n(i).remove()},w=[],b=w.slice,k=window.document,C={},x={},S=k.defaultView.getComputedStyle,A={"column-count":1,columns:1,"font-weight":1,"line-height":1,opacity:1,"z-index":1,zoom:1},O=/^\s*<(\w+|!)[^>]*>/,D=[1,3,8,9,11],I=["after","prepend","before","append"],P=k.createElement("table"),j=k.createElement("tr"),E={tr:k.createElement("tbody"),tbody:P,thead:P,tfoot:P,td:j,th:j,"*":k.createElement("div")},M=/complete|loaded|interactive/,T=/^\.([\w-]+)$/,B=/^#([\w-]+)$/,W=/^[\w-]+$/,R={}.toString,N={},L=k.createElement("div");function U(e,t){for(var n in t(e),e.childNodes)U(e.childNodes[n],t)}return N.matches=function(e,t){if(!e||1!==e.nodeType)return!1;var n=e.webkitMatchesSelector||e.mozMatchesSelector||e.oMatchesSelector||e.matchesSelector;if(n)return n.call(e,t);var i,r=e.parentNode,o=!r;return o&&(r=L).appendChild(e),i=~N.qsa(r,t).indexOf(e),o&&L.removeChild(e),i},r=function(e){return e.replace(/-+(.)?/g,function(e,t){return t?t.toUpperCase():""})},o=function(e){return e.filter(function(t,n){return e.indexOf(t)==n})},N.fragment=function(t,i){i===e&&(i=O.test(t)&&RegExp.$1),i in E||(i="*");var r=E[i];return r.innerHTML=""+t,n.each(b.call(r.childNodes),function(){r.removeChild(this)})},N.Z=function(e,t){return(e=e||[]).__proto__=arguments.callee.prototype,e.selector=t||"",e},N.isZ=function(e){return _instanceof(e,N.Z)},N.init=function(t,i){var r;if(!t)return N.Z();if(a(t))return n(k).ready(t);if(N.isZ(t))return t;if(c(t))r=f(t);else if(s(t))r=[n.extend({},t)],t=null;else if(D.indexOf(t.nodeType)>=0||t===window)r=[t],t=null;else if(O.test(t))r=N.fragment(t.trim(),RegExp.$1),t=null;else{if(i!==e)return n(i).find(t);r=N.qsa(k,t)}return N.Z(r,t)},(n=function(e,t){return N.init(e,t)}).extend=function(n){return b.call(arguments,1).forEach(function(i){for(t in i)i[t]!==e&&(n[t]=i[t])}),n},N.qsa=function(e,t){var n;return e===k&&B.test(t)?(n=e.getElementById(RegExp.$1))?[n]:w:1!==e.nodeType&&9!==e.nodeType?w:b.call(T.test(t)?e.getElementsByClassName(RegExp.$1):W.test(t)?e.getElementsByTagName(t):e.querySelectorAll(t))},n.isFunction=a,n.isObject=u,n.isArray=c,n.isPlainObject=s,n.inArray=function(e,t,n){return w.indexOf.call(t,e,n)},n.trim=function(e){return e.trim()},n.uuid=0,n.map=function(e,t){var n,i,r,o=[];if(l(e))for(i=0;i<e.length;i++)null!=(n=t(e[i],i))&&o.push(n);else for(r in e)null!=(n=t(e[r],r))&&o.push(n);return d(o)},n.each=function(e,t){var n,i;if(l(e))for(n=0;n<e.length&&!1!==t.call(e[n],n,e[n]);n++);else for(i in e)if(!1===t.call(e[i],i,e[i]))break;return e},n.fn={forEach:w.forEach,reduce:w.reduce,push:w.push,indexOf:w.indexOf,concat:w.concat,map:function(e){return n.map(this,function(t,n){return e.call(t,n,t)})},slice:function(){return n(b.apply(this,arguments))},ready:function(e){return M.test(k.readyState)?e(n):k.addEventListener("DOMContentLoaded",function(){e(n)},!1),this},get:function(t){return t===e?b.call(this):this[t]},toArray:function(){return this.get()},size:function(){return this.length},remove:function(){return this.each(function(){null!=this.parentNode&&this.parentNode.removeChild(this)})},each:function(e){return this.forEach(function(t,n){e.call(t,n,t)}),this},filter:function(e){return n([].filter.call(this,function(t){return N.matches(t,e)}))},add:function(e,t){return n(o(this.concat(n(e,t))))},is:function(e){return this.length>0&&N.matches(this[0],e)},not:function(t){var i=[];if(a(t)&&t.call!==e)this.each(function(e){t.call(this,e)||i.push(this)});else{var r="string"==typeof t?this.filter(t):l(t)&&a(t.item)?b.call(t):n(t);this.forEach(function(e){0>r.indexOf(e)&&i.push(e)})}return n(i)},eq:function(e){return -1===e?this.slice(e):this.slice(e,+e+1)},first:function(){var e=this[0];return e&&!u(e)?e:n(e)},last:function(){var e=this[this.length-1];return e&&!u(e)?e:n(e)},find:function(e){var t;return t=1==this.length?N.qsa(this[0],e):this.map(function(){return N.qsa(this,e)}),n(t)},closest:function(e,t){for(var i=this[0];i&&!N.matches(i,e);)i=i!==t&&i!==k&&i.parentNode;return n(i)},parents:function(e){for(var t=[],i=this;i.length>0;)i=n.map(i,function(e){if((e=e.parentNode)&&e!==k&&0>t.indexOf(e))return t.push(e),e});return v(t,e)},parent:function(e){return v(o(this.pluck("parentNode")),e)},children:function(e){return v(this.map(function(){return b.call(this.children)}),e)},siblings:function(e){return v(this.map(function(e,t){return b.call(t.parentNode.children).filter(function(e){return e!==t})}),e)},empty:function(){return this.each(function(){this.innerHTML=""})},pluck:function(e){return this.map(function(){return this[e]})},show:function(){return this.each(function(){"none"==this.style.display&&(this.style.display=null),"none"==S(this,"").getPropertyValue("display")&&(this.style.display=p(this.nodeName))})},replaceWith:function(e){return this.before(e).remove()},wrap:function(e){return this.each(function(){n(this).wrapAll(n(e)[0].cloneNode(!1))})},wrapAll:function(e){return this[0]&&(n(this[0]).before(e=n(e)),e.append(this)),this},unwrap:function(){return this.parent().each(function(){n(this).replaceWith(n(this).children())}),this},clone:function(){return n(this.map(function(){return this.cloneNode(!0)}))},hide:function(){return this.css("display","none")},toggle:function(t){return(t===e?"none"==this.css("display"):t)?this.show():this.hide()},prev:function(){return n(this.pluck("previousElementSibling"))},next:function(){return n(this.pluck("nextElementSibling"))},html:function(t){return t===e?this.length>0?this[0].innerHTML:null:this.each(function(e){var i=this.innerHTML;n(this).empty().append(m(this,t,e,i))})},text:function(t){return t===e?this.length>0?this[0].textContent:null:this.each(function(){this.textContent=t})},attr:function(n,i){var r;return"string"==typeof n&&i===e?0==this.length||1!==this[0].nodeType?e:"value"==n&&"INPUT"==this[0].nodeName?this.val():!(r=this[0].getAttribute(n))&&n in this[0]?this[0][n]:r:this.each(function(e){if(1===this.nodeType){if(u(n))for(t in n)this.setAttribute(t,n[t]);else this.setAttribute(n,m(this,i,e,this.getAttribute(n)))}})},removeAttr:function(e){return this.each(function(){1===this.nodeType&&this.removeAttribute(e)})},prop:function(t,n){return n===e?this[0]?this[0][t]:e:this.each(function(e){this[t]=m(this,n,e,this[t])})},data:function(t,n){var i=this.attr("data-"+h(t),n);return null!==i?i:e},val:function(t){return t===e?this.length>0?this[0].value:e:this.each(function(e){this.value=m(this,t,e,this.value)})},offset:function(){if(0==this.length)return null;var e=this[0].getBoundingClientRect();return{left:e.left+window.pageXOffset,top:e.top+window.pageYOffset,width:e.width,height:e.height}},css:function(n,i){if(i===e&&"string"==typeof n)return 0==this.length?e:this[0].style[r(n)]||S(this[0],"").getPropertyValue(n);var o="";for(t in n)"string"==typeof n[t]&&""==n[t]?this.each(function(){this.style.removeProperty(h(t))}):o+=h(t)+":"+_(t,n[t])+";";return"string"==typeof n&&(""==i?this.each(function(){this.style.removeProperty(h(n))}):o=h(n)+":"+_(n,i)),this.each(function(){this.style.cssText+=";"+o})},index:function(e){return e?this.indexOf(n(e)[0]):this.parent().children().indexOf(this[0])},hasClass:function(e){return!(this.length<1)&&g(e).test(this[0].className)},addClass:function(e){return this.each(function(t){i=[];var r=this.className;m(this,e,t,r).split(/\s+/g).forEach(function(e){n(this).hasClass(e)||i.push(e)},this),i.length&&(this.className+=(r?" ":"")+i.join(" "))})},removeClass:function(t){return this.each(function(n){if(t===e)return this.className="";m(this,t,n,i=this.className).split(/\s+/g).forEach(function(e){i=i.replace(g(e)," ")}),this.className=i.trim()})},toggleClass:function(t,i){return this.each(function(r){var o=m(this,t,r,this.className);(i===e?!n(this).hasClass(o):i)?n(this).addClass(o):n(this).removeClass(o)})}},["width","height"].forEach(function(t){n.fn[t]=function(i){var r,o=t.replace(/./,function(e){return e[0].toUpperCase()});return i===e?this[0]==window?window["inner"+o]:this[0]==k?k.documentElement["offset"+o]:(r=this.offset())&&r[t]:this.each(function(e){var r=n(this);r.css(t,m(this,i,e,r[t]()))})}}),I.forEach(function(e,t){n.fn[e]=function(){var e=n.map(arguments,function(e){return u(e)?e:N.fragment(e)});if(e.length<1)return this;var i=this.length,r=i>1,o=t<2;return this.each(function(n,a){for(var u=0;u<e.length;u++){var s=e[o?e.length-u-1:u];U(s,function(e){null==e.nodeName||"SCRIPT"!==e.nodeName.toUpperCase()||e.type&&"text/javascript"!==e.type||window.eval.call(window,e.innerHTML)}),r&&n<i-1&&(s=s.cloneNode(!0)),y(t,a,s)}})},n.fn[t%2?e+"To":"insert"+(t?"Before":"After")]=function(t){return n(t)[e](this),this}}),N.Z.prototype=n.fn,N.camelize=r,N.uniq=o,n._WXJS=N,n}();window._WXJS=_WXJS,function(e){var t=function(e){return e._zid||(e._zid=f++)},n=function(e,n,o,a){if((n=i(n)).ns)var u=r(n.ns);return(l[t(e)]||[]).filter(function(e){return e&&(!n.e||e.e==n.e)&&(!n.ns||u.test(e.ns))&&(!o||t(e.fn)===t(o))&&(!a||e.sel==a)})},i=function(e){var t=(""+e).split(".");return{e:t[0],ns:t.slice(1).sort().join(" ")}},r=function(e){return RegExp("(?:^| )"+e.replace(" "," .* ?")+"(?: |$)")},o=function(t,n,i){e.isObject(t)?e.each(t,i):t.split(/\s/).forEach(function(e){i(e,n)})},a=function(n,r,a,u,s,c){c=!!c;var f=t(n),d=l[f]||(l[f]=[]);o(r,a,function(t,r){var o=s&&s(r,t),a=o||r,l=function(e){var t=a.apply(n,[e].concat(e.data));return!1===t&&e.preventDefault(),t},f=e.extend(i(t),{fn:r,proxy:l,sel:u,del:o,i:d.length});d.push(f),n.addEventListener(f.e,l,c)})},u=function(e,i,r,a){var u=t(e);o(i||"",r,function(t,i){n(e,t,i,a).forEach(function(t){delete l[u][t.i],e.removeEventListener(t.e,t.proxy,!1)})})},s=function(t){var n=e.extend({originalEvent:t},t);return e.each(_,function(e,i){n[e]=function(){return this[i]=h,t[e].apply(t,arguments)},n[i]=g}),n},c=function(e){if(!("defaultPrevented"in e)){e.defaultPrevented=!1;var t=e.preventDefault;e.preventDefault=function(){this.defaultPrevented=!0,t.call(this)}}};e._WXJS.qsa;var l={},f=1,d={};d.click=d.mousedown=d.mouseup=d.mousemove="MouseEvents",e.event={add:a,remove:u},e.proxy=function(n,i){if(e.isFunction(n)){var r=function(){return n.apply(i,arguments)};return r._zid=t(n),r}if("string"==typeof i)return e.proxy(n[i],n);throw TypeError("expected function")},e.fn.bind=function(e,t){return this.each(function(){a(this,e,t)})},e.fn.unbind=function(e,t){return this.each(function(){u(this,e,t)})},e.fn.one=function(e,t){return this.each(function(n,i){a(this,e,t,null,function(e,t){return function(){var n=e.apply(i,arguments);return u(i,t,e),n}})})};var h=function(){return!0},g=function(){return!1},_={preventDefault:"isDefaultPrevented",stopImmediatePropagation:"isImmediatePropagationStopped",stopPropagation:"isPropagationStopped"};e.fn.delegate=function(t,n,i){var r=!1;return("blur"==n||"focus"==n)&&(e.iswebkit?n="blur"==n?"focusout":"focus"==n?"focusin":n:r=!0),this.each(function(o,u){a(u,n,i,t,function(n){return function(i){var r,o=e(i.target).closest(t,u).get(0);if(o)return r=e.extend(s(i),{currentTarget:o,liveFired:u}),n.apply(o,[r].concat([].slice.call(arguments,1)))}},r)})},e.fn.undelegate=function(e,t,n){return this.each(function(){u(this,t,n,e)})},e.fn.live=function(t,n){return e(document.body).delegate(this.selector,t,n),this},e.fn.die=function(t,n){return e(document.body).undelegate(this.selector,t,n),this},e.fn.on=function(t,n,i){return void 0==n||e.isFunction(n)?this.bind(t,n):this.delegate(n,t,i)},e.fn.off=function(t,n,i){return void 0==n||e.isFunction(n)?this.unbind(t,n):this.undelegate(n,t,i)},e.fn.trigger=function(t,n){return"string"==typeof t&&(t=e.Event(t)),c(t),t.data=n,this.each(function(){"dispatchEvent"in this&&this.dispatchEvent(t)})},e.fn.triggerHandler=function(t,i){var r,o;return this.each(function(a,u){(r=s("string"==typeof t?e.Event(t):t)).data=i,r.target=u,e.each(n(u,t.type||t),function(e,t){if(o=t.proxy(r),r.isImmediatePropagationStopped())return!1})}),o},"focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout change select keydown keypress keyup error".split(" ").forEach(function(t){e.fn[t]=function(e){return this.bind(t,e)}}),["focus","blur"].forEach(function(t){e.fn[t]=function(e){if(e)this.bind(t,e);else if(this.length)try{this.get(0)[t]()}catch(n){}return this}}),e.Event=function(e,t){var n=document.createEvent(d[e]||"Events"),i=!0;if(t)for(var r in t)"bubbles"==r?i=!!t[r]:n[r]=t[r];return n.initEvent(e,i,!0,null,null,null,null,null,null,null,null,null,null,null,null),n}}(_WXJS),function(e){var t=function(e){var t=this.os={},n=this.browser={},i=e.match(/WebKit\/([\d.]+)/),r=e.match(/(Android)\s+([\d.]+)/),o=e.match(/(iPad).*OS\s([\d_]+)/),a=!o&&e.match(/(iPhone\sOS)\s([\d_]+)/),u=e.match(/(webOS|hpwOS)[\s\/]([\d.]+)/),s=u&&e.match(/TouchPad/),c=e.match(/Kindle\/([\d.]+)/),l=e.match(/Silk\/([\d._]+)/),f=e.match(/(BlackBerry).*Version\/([\d.]+)/);(n.webkit=!!i)&&(n.version=i[1]),r&&(t.android=!0,t.version=r[2]),a&&(t.ios=t.iphone=!0,t.version=a[2].replace(/_/g,".")),o&&(t.ios=t.ipad=!0,t.version=o[2].replace(/_/g,".")),u&&(t.webos=!0,t.version=u[2]),s&&(t.touchpad=!0),f&&(t.blackberry=!0,t.version=f[2]),c&&(t.kindle=!0,t.version=c[1]),l&&(n.silk=!0,n.version=l[1]),!l&&t.android&&e.match(/Kindle Fire/)&&(n.silk=!0)};t.call(e,navigator.userAgent),e.__detect=t}(_WXJS);var sprintf=function(){var e=function(e){return Object.prototype.toString.call(e).slice(8,-1).toLowerCase()},t=function(e,t){for(var n=[];t>0;n[--t]=e);return n.join("")},n=function(){return n.cache.hasOwnProperty(arguments[0])||(n.cache[arguments[0]]=n.parse(arguments[0])),n.format.call(null,n.cache[arguments[0]],arguments)};return n.format=function(n,i){var r,o,a,u,s,c,l,f=1,d=n.length,h="",g=[];for(o=0;o<d;o++)if("string"===(h=e(n[o])))g.push(n[o]);else if("array"===h){if((u=n[o])[2])for(a=0,r=i[f];a<u[2].length;a++){if(!r.hasOwnProperty(u[2][a]))throw sprintf('[sprintf] property "%s" does not exist',u[2][a]);r=r[u[2][a]]}else r=u[1]?i[u[1]]:i[f++];if(/[^s]/.test(u[8])&&"number"!=e(r))throw sprintf("[sprintf] expecting number but found %s",e(r));switch(u[8]){case"b":r=r.toString(2);break;case"c":r=String.fromCharCode(r);break;case"d":r=parseInt(r,10);break;case"e":r=u[7]?r.toExponential(u[7]):r.toExponential();break;case"f":r=u[7]?parseFloat(r).toFixed(u[7]):parseFloat(r);break;case"o":r=r.toString(8);break;case"s":r=(r=String(r))&&u[7]?r.substring(0,u[7]):r;break;case"u":r=Math.abs(r);break;case"x":r=r.toString(16);break;case"X":r=r.toString(16).toUpperCase()}r=/[def]/.test(u[8])&&u[3]&&r>=0?"+"+r:r,c=u[4]?"0"==u[4]?"0":u[4].charAt(1):" ",l=u[6]-String(r).length,s=u[6]?t(c,l):"",g.push(u[5]?r+s:s+r)}return g.join("")},n.cache={},n.parse=function(e){for(var t=e,n=[],i=[],r=0;t;){if(null!==(n=/^[^\x25]+/.exec(t)))i.push(n[0]);else if(null!==(n=/^\x25{2}/.exec(t)))i.push("%");else if(null!==(n=/^\x25(?:([1-9]\d*)\$|\(([^\)]+)\))?(\+)?(0|'[^$])?(-)?(\d+)?(?:\.(\d+))?([b-fosuxX])/.exec(t))){if(n[2]){r|=1;var o=[],a=n[2],u=[];if(null!==(u=/^([a-z_][a-z_\d]*)/i.exec(a)))for(o.push(u[1]);""!==(a=a.substring(u[0].length));)if(null!==(u=/^\.([a-z_][a-z_\d]*)/i.exec(a)))o.push(u[1]);else if(null!==(u=/^\[(\d+)\]/.exec(a)))o.push(u[1]);else throw"[sprintf] huh?";else throw"[sprintf] huh?";n[2]=o}else r|=2;if(3===r)throw"[sprintf] mixing positional and named placeholders is not (yet) supported";i.push(n)}else throw"[sprintf] huh?";t=t.substring(n[0].length)}return i},n}(),vsprintf=function(e,t){return t.unshift(e),sprintf.apply(null,t)},UTF8={encode:function(e){e=e.replace(/\r\n/g,"\n");for(var t="",n=0;n<e.length;n++){var i=e.charCodeAt(n);i<128?t+=String.fromCharCode(i):i>127&&i<2048?t+=String.fromCharCode(i>>6|192)+String.fromCharCode(63&i|128):t+=String.fromCharCode(i>>12|224)+String.fromCharCode(i>>6&63|128)+String.fromCharCode(63&i|128)}return t},decode:function(e){for(var t="",n=0,i=c1=c2=0;n<e.length;)(i=e.charCodeAt(n))<128?(t+=String.fromCharCode(i),n++):i>191&&i<224?(t+=String.fromCharCode((31&i)<<6|63&(c2=e.charCodeAt(n+1))),n+=2):(c2=e.charCodeAt(n+1),c3=e.charCodeAt(n+2),t+=String.fromCharCode((15&i)<<12|(63&c2)<<6|63&c3),n+=3);return t}},HEX={encode:function(e){for(var t,n="",i=e.length,r=0;r<i;){for(t=e.charCodeAt(r++).toString(16);t.length<2;)t="0"+t;n+=t}return n.toUpperCase()},decode:function(e){for(var t,n="",i=e.length;i>=0;)t=i-2,n=String.fromCharCode("0x"+e.substring(t,i))+n,i=t;return n}};JSON||(JSON={}),function(){"use strict";var f=function(e){return e<10?"0"+e:e},quote=function(e){return escapable.lastIndex=0,escapable.test(e)?'"'+e.replace(escapable,function(e){var t=meta[e];return"string"==typeof t?t:"\\u"+("0000"+e.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+e+'"'};"function"!=typeof Date.prototype.toJSON&&(Date.prototype.toJSON=function(e){return isFinite(this.valueOf())?this.getUTCFullYear()+"-"+f(this.getUTCMonth()+1)+"-"+f(this.getUTCDate())+"T"+f(this.getUTCHours())+":"+f(this.getUTCMinutes())+":"+f(this.getUTCSeconds())+"Z":null},String.prototype.toJSON=Number.prototype.toJSON=Boolean.prototype.toJSON=function(e){return this.valueOf()});var gap,indent,rep,cx=/[\u0000\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,escapable=/[\\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,meta={"\b":"\\b","	":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"};function str(e,t){var n,i,r,o,a,u=gap,s=t[e];switch("function"==typeof rep&&(s=rep.call(t,e,s)),void 0===s?"undefined":_typeof(s)){case"string":return quote(s);case"number":return isFinite(s)?String(s):"null";case"boolean":case"null":return String(s);case"object":if(!s)return"null";if(gap+=indent,a=[],"[object Array]"===Object.prototype.toString.apply(s)){for(n=0,o=s.length;n<o;n+=1)a[n]=str(n,s)||"null";return r=0===a.length?"[]":gap?"[\n"+gap+a.join(",\n"+gap)+"\n"+u+"]":"["+a.join(",")+"]",gap=u,r}if(rep&&"object"==typeof rep)for(n=0,o=rep.length;n<o;n+=1)"string"==typeof rep[n]&&(r=str(i=rep[n],s))&&a.push(quote(i)+(gap?": ":":")+r);else for(i in s)Object.prototype.hasOwnProperty.call(s,i)&&(r=str(i,s))&&a.push(quote(i)+(gap?": ":":")+r);return r=0===a.length?"{}":gap?"{\n"+gap+a.join(",\n"+gap)+"\n"+u+"}":"{"+a.join(",")+"}",gap=u,r}}"function"!=typeof JSON.stringify&&(JSON.stringify=function(e,t,n){var i;if(gap="",indent="","number"==typeof n)for(i=0;i<n;i+=1)indent+=" ";else"string"==typeof n&&(indent=n);if(rep=t,t&&"function"!=typeof t&&("object"!=typeof t||"number"!=typeof t.length))throw Error("JSON.stringify");return str("",{"":e})}),"function"!=typeof JSON.parse&&(JSON.parse=function(text,reviver){var j;function walk(e,t){var n,i,r=e[t];if(r&&"object"==typeof r)for(n in r)Object.prototype.hasOwnProperty.call(r,n)&&(void 0!==(i=walk(r,n))?r[n]=i:delete r[n]);return reviver.call(e,t,r)}if(text=String(text),cx.lastIndex=0,cx.test(text)&&(text=text.replace(cx,function(e){return"\\u"+("0000"+e.charCodeAt(0).toString(16)).slice(-4)})),/^[\],:{}\s]*$/.test(text.replace(/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,"@").replace(/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,"]").replace(/(?:^|:|,)(?:\s*\[)+/g,"")))return j=eval("("+text+")"),"function"==typeof reviver?walk({"":j},""):j;throw SyntaxError("JSON.parse")})}();var CryptoJS=CryptoJS||function(e,t){var n={},i=n.lib={},r=function(){},o=i.Base={extend:function(e){r.prototype=this;var t=new r;return e&&t.mixIn(e),t.hasOwnProperty("init")||(t.init=function(){t.$super.init.apply(this,arguments)}),t.init.prototype=t,t.$super=this,t},create:function(){var e=this.extend();return e.init.apply(e,arguments),e},init:function(){},mixIn:function(e){for(var t in e)e.hasOwnProperty(t)&&(this[t]=e[t]);e.hasOwnProperty("toString")&&(this.toString=e.toString)},clone:function(){return this.init.prototype.extend(this)}},a=i.WordArray=o.extend({init:function(e,t){e=this.words=e||[],this.sigBytes=void 0!=t?t:4*e.length},toString:function(e){return(e||s).stringify(this)},concat:function(e){var t=this.words,n=e.words,i=this.sigBytes;if(e=e.sigBytes,this.clamp(),i%4)for(var r=0;r<e;r++)t[i+r>>>2]|=(n[r>>>2]>>>24-8*(r%4)&255)<<24-8*((i+r)%4);else if(65535<n.length)for(r=0;r<e;r+=4)t[i+r>>>2]=n[r>>>2];else t.push.apply(t,n);return this.sigBytes+=e,this},clamp:function(){var t=this.words,n=this.sigBytes;t[n>>>2]&=4294967295<<32-8*(n%4),t.length=e.ceil(n/4)},clone:function(){var e=o.clone.call(this);return e.words=this.words.slice(0),e},random:function(t){for(var n=[],i=0;i<t;i+=4)n.push(4294967296*e.random()|0);return new a.init(n,t)}}),u=n.enc={},s=u.Hex={stringify:function(e){var t=e.words;e=e.sigBytes;for(var n=[],i=0;i<e;i++){var r=t[i>>>2]>>>24-8*(i%4)&255;n.push((r>>>4).toString(16)),n.push((15&r).toString(16))}return n.join("")},parse:function(e){for(var t=e.length,n=[],i=0;i<t;i+=2)n[i>>>3]|=parseInt(e.substr(i,2),16)<<24-4*(i%8);return new a.init(n,t/2)}},c=u.Latin1={stringify:function(e){var t=e.words;e=e.sigBytes;for(var n=[],i=0;i<e;i++)n.push(String.fromCharCode(t[i>>>2]>>>24-8*(i%4)&255));return n.join("")},parse:function(e){for(var t=e.length,n=[],i=0;i<t;i++)n[i>>>2]|=(255&e.charCodeAt(i))<<24-8*(i%4);return new a.init(n,t)}},l=u.Utf8={stringify:function(e){try{return decodeURIComponent(escape(c.stringify(e)))}catch(t){throw Error("Malformed UTF-8 data")}},parse:function(e){return c.parse(unescape(encodeURIComponent(e)))}},f=i.BufferedBlockAlgorithm=o.extend({reset:function(){this._data=new a.init,this._nDataBytes=0},_append:function(e){"string"==typeof e&&(e=l.parse(e)),this._data.concat(e),this._nDataBytes+=e.sigBytes},_process:function(t){var n=this._data,i=n.words,r=n.sigBytes,o=this.blockSize,u=r/(4*o),u=t?e.ceil(u):e.max((0|u)-this._minBufferSize,0);if(t=u*o,r=e.min(4*t,r),t){for(var s=0;s<t;s+=o)this._doProcessBlock(i,s);s=i.splice(0,t),n.sigBytes-=r}return new a.init(s,r)},clone:function(){var e=o.clone.call(this);return e._data=this._data.clone(),e},_minBufferSize:0});i.Hasher=f.extend({cfg:o.extend(),init:function(e){this.cfg=this.cfg.extend(e),this.reset()},reset:function(){f.reset.call(this),this._doReset()},update:function(e){return this._append(e),this._process(),this},finalize:function(e){return e&&this._append(e),this._doFinalize()},blockSize:16,_createHelper:function(e){return function(t,n){return new e.init(n).finalize(t)}},_createHmacHelper:function(e){return function(t,n){return new d.HMAC.init(e,n).finalize(t)}}});var d=n.algo={};return n}(Math);!function(){var e=CryptoJS,t=e.lib,n=t.WordArray,i=t.Hasher,r=[],t=e.algo.SHA1=i.extend({_doReset:function(){this._hash=new n.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(e,t){for(var n=this._hash.words,i=n[0],o=n[1],a=n[2],u=n[3],s=n[4],c=0;80>c;c++){if(16>c)r[c]=0|e[t+c];else{var l=r[c-3]^r[c-8]^r[c-14]^r[c-16];r[c]=l<<1|l>>>31}l=(i<<5|i>>>27)+s+r[c],l=20>c?l+((o&a|~o&u)+1518500249):40>c?l+((o^a^u)+1859775393):60>c?l+((o&a|o&u|a&u)-1894007588):l+((o^a^u)-899497514),s=u,u=a,a=o<<30|o>>>2,o=i,i=l}n[0]=n[0]+i|0,n[1]=n[1]+o|0,n[2]=n[2]+a|0,n[3]=n[3]+u|0,n[4]=n[4]+s|0},_doFinalize:function(){var e=this._data,t=e.words,n=8*this._nDataBytes,i=8*e.sigBytes;return t[i>>>5]|=128<<24-i%32,t[(i+64>>>9<<4)+14]=Math.floor(n/4294967296),t[(i+64>>>9<<4)+15]=n,e.sigBytes=4*t.length,this._process(),this._hash},clone:function(){var e=i.clone.call(this);return e._hash=this._hash.clone(),e}});e.SHA1=i._createHelper(t),e.HmacSHA1=i._createHmacHelper(t)}();var _sendMessageQueue=[],_callback_count=1e3,_callback_map={},_event_hook_map={},_session_data={},_MESSAGE_TYPE="__msg_type",_CALLBACK_ID="__callback_id",_EVENT_ID="__event_id",_QUEUE_HAS_MESSAGE_URL="weixin://dispatch_message/",_runOn3rdApiList=[],_event_hook_map_for3rd={},_RUN_ON_3RD_APIS="__runOn3rd_apis",_xxyy="xx_yy",_JSON_MESSAGE="__json_message",_MSG_QUEUE="__msg_queue",_CONTEXT_KEY="__context_key",_context_val="",_isUseMd5="isUseMd5_check",_SHA_KEY="__sha_key",_handleMessageIdentifier=_handleMessageFromWeixin,_fetchQueueIdentifier=_fetchQueue,_logIdentifier=_log,_envIdentifier=_env,_onfor3rdIdentifier=_onfor3rd,_callIdentifier=_call,__WeixinJSBridge={invoke:_call,call:_call,on:_onfor3rd,env:_env,log:_log,_fetchQueue:_fetchQueue,_handleMessageFromWeixin:_handleMessageFromWeixin};window.WeixinJSBridge?_WXJS.extend(window.WeixinJSBridge,__WeixinJSBridge):window.WeixinJSBridge=__WeixinJSBridge,_setDefaultEventHandlers(),_WXJS.JSON=JSON,_WXJS.disableImageSelection=_disableImageSelection,_WXJS.restoreImageSelection=_restoreImageSelection,_WXJS.disableAlertView=_disableAlertView,_WXJS.restoreAlertView=_restoreAlertView}()}},49650:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.log=void 0;var i=n(30169);function r(e){return(0,i.invoke)("wwapp.log",{data:{message:JSON.stringify(e)}})}t.log=r},30169:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isRunnedInApp=t.EventHandlers=t.getSDKEvent=t.registerSDKEvent=t.clearAllSDKEvent=t.invoke=t.ReadyEventFrom=t.ready=void 0;var i=n(27769);Object.defineProperty(t,"ready",{enumerable:!0,get:function(){return i.ready}}),Object.defineProperty(t,"ReadyEventFrom",{enumerable:!0,get:function(){return i.ReadyEventFrom}});var r=n(88412);Object.defineProperty(t,"invoke",{enumerable:!0,get:function(){return r.invoke}});var o=n(48351);Object.defineProperty(t,"clearAllSDKEvent",{enumerable:!0,get:function(){return o.clearAllSDKEvent}}),Object.defineProperty(t,"registerSDKEvent",{enumerable:!0,get:function(){return o.registerSDKEvent}}),Object.defineProperty(t,"getSDKEvent",{enumerable:!0,get:function(){return o.getSDKEvent}});var a=n(46053);Object.defineProperty(t,"EventHandlers",{enumerable:!0,get:function(){return a.EventHandlers}});var u=n(26016);Object.defineProperty(t,"isRunnedInApp",{enumerable:!0,get:function(){return u.isRunnedInApp}})},72096:function(e,t,n){"use strict";var i=n(30011),r=i(n(42715)),o=i(n(28518));Object.defineProperty(t,"__esModule",{value:!0}),t.EmitWrap=t.EventHandler=void 0;var a=n(59443),u=n(4138),s=n(71818),c=n(27769),l=n(26016),f=n(81717),d=function(){function e(t){(0,r.default)(this,e),this.name=t,this.event=new a.Emit,this.outevent=new h(this.event,this,t),this.bindHandler=this.realBindHandler.bind(this)}return(0,o.default)(e,[{key:"clear",value:function(){this.registerHandler=void 0,this.event.off()}},{key:"bind",value:function(e){return g(this.name,this.bindHandler),(null==e?void 0:e.transform)&&(this.transform=e.transform),this.outevent}},{key:"setCallback",value:function(e){var t,n;(0,s.logkv)(["oncall|bind|total|succ","oncall|bind|total|succ|".concat((0,u.getAppname)(),"|").concat((0,u.getAppPlatform)()),"oncall|bind|succ|".concat(null===(n=null===(t=this.name)||void 0===t?void 0:t.toLowerCase)||void 0===n?void 0:n.call(t))]),this.registerHandler=e}},{key:"emit",value:function(e){var t,n=this;return setTimeout(function(){return n.event.emit(e)},0),null===(t=this.registerHandler)||void 0===t?void 0:t.call(this,e)}},{key:"listenerCount",value:function(){return this.outevent.listenerCount()+(this.registerHandler?1:0)}},{key:"realBindHandler",value:function(e){var t,n,i="function"==typeof this.transform?this.transform(e):e;return(0,s.logkv)(["oncall|total|succ","oncall|total|succ|".concat((0,u.getAppname)(),"|").concat((0,u.getAppPlatform)()),"oncall|succ|".concat(null===(n=null===(t=this.name)||void 0===t?void 0:t.toLowerCase)||void 0===n?void 0:n.call(t))]),(0,l.setRunnedInAppStatus)(l.RunnedInAppStatus.RunEnd),this.emit(i)}}]),e}();t.EventHandler=d;var h=function(){function e(t,n,i){(0,r.default)(this,e),this.event=t,this.eventHandler=n,this.name=i}return(0,o.default)(e,[{key:"on",value:function(e){return this.preBind(),this.event.on(e)}},{key:"once",value:function(e){return this.preBind(),this.event.once(e)}},{key:"off",value:function(e){return this.event.off(e)}},{key:"listenerCount",value:function(){return this.event.listenerCount()}},{key:"preBind",value:function(){var e,t;this.eventHandler.bind(),(0,s.logkv)(["oncall|bind|total|succ","oncall|bind|total|succ|".concat((0,u.getAppname)(),"|").concat((0,u.getAppPlatform)()),"oncall|bind|succ|".concat(null===(t=null===(e=this.name)||void 0===e?void 0:e.toLowerCase)||void 0===t?void 0:t.call(e))])}}]),e}();function g(e,t){void 0!==(null===f.win||void 0===f.win?void 0:f.win.WeixinJSBridge)?f.win.WeixinJSBridge.on(e,t):(0,c.ready)(function(){null===f.win||void 0===f.win||f.win.WeixinJSBridge.on(e,t)})}t.EmitWrap=h},46053:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.EventHandlers=void 0;var i=n(71818),r=n(81717),o=1;t.EventHandlers=function(){var e={};if(r.win){var t=r.win.__WeixinJSBridgeSDKEventHandlers__;t?t.version===o?e=t.data||{}:(console.error("WeixinJSBridgeSDKEventHandlers conflict: ".concat(t.version," => ").concat(o)),(0,i.logkv)("oncall|init|fail|ver_conflict")):r.win.__WeixinJSBridgeSDKEventHandlers__={version:o,data:e}}return e}()},88412:function(e,t,n){"use strict";var i=n(30011),r=i(n(34934)),o=i(n(37487));Object.defineProperty(t,"__esModule",{value:!0}),t.invoke=void 0;var a=n(4138),u=n(71818),s=n(81717),c=n(27769),l=n(26016);function f(e){d("wwapp.log",{data:{message:JSON.stringify(e)}},function(){})}function d(e,t,n){void 0!==(null===s.win||void 0===s.win?void 0:s.win.WeixinJSBridge)?s.win.WeixinJSBridge.invoke(e,t.data,n):(0,c.ready)(function(){null===s.win||void 0===s.win||s.win.WeixinJSBridge.invoke(e,t.data,n)})}function h(e){var t="JSAPI|".concat(e);console.log(t),f(t)}function g(e){return _.apply(this,arguments)}function _(){return(_=(0,o.default)(r.default.mark(function e(t){var n,i=arguments;return r.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return n=i.length>1&&void 0!==i[1]?i[1]:{},h("Options, name: ".concat(t,", options: ").concat(JSON.stringify(n))),(0,l.setRunnedInAppStatus)(l.RunnedInAppStatus.RunStart),e.abrupt("return",new Promise(function(e,i){d(t,n,function(r){if(h("Response, name: ".concat(t,", resp:").concat(JSON.stringify(r))),r.err_msg){var o,s,c,f,d,g=r.err_msg,_=g.indexOf(":"),p=g.substring(_+1),v=!1;switch(p){case"ok":v=!0,null===(o=n.success)||void 0===o||o.call(n,r);break;case"cancel":case"fail_cancel":v=!0,null===(s=n.cancel)||void 0===s||s.call(n,r);break;default:p.indexOf("fail_")>-1&&(r.err_msg=p.split("fail_")[1]),v=!1,null===(c=n.fail)||void 0===c||c.call(n,r)}null===(f=n.complete)||void 0===f||f.call(n,r),v?e(r):i(r),(0,u.logkv)(["invoke|total|".concat(v?"succ":"fail"),"invoke|total|".concat(v?"succ":"fail","|").concat((0,a.getAppname)(),"|").concat((0,a.getAppPlatform)()),"invoke|".concat(v?"succ":"fail","|").concat(null===(d=null==t?void 0:t.toLowerCase)||void 0===d?void 0:d.call(t))]),v||(0,u.clog)("invoke err: ".concat(JSON.stringify(r),", name: ").concat(t,", option: ").concat(JSON.stringify(n))),(0,l.setRunnedInAppStatus)(l.RunnedInAppStatus.RunEnd)}})}));case 4:case"end":return e.stop()}},e)}))).apply(this,arguments)}t.invoke=g},27769:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ready=t.ReadyEventFrom=void 0;var i,r=n(4138),o=n(71818),a=n(81717),u=n(26016);function s(e){if(!a.win)throw Error("Not in browser");var t=new Promise(function(e){var t=function(t){return function(){var a=+new Date;if(1===(n+=1))e(t);else{(0,o.logkv)("ready|more|times|".concat(t,"|").concat((0,r.getAppname)(),"|").concat((0,r.getAppPlatform)(),"|").concat(n>5?"gt5":n),1,{notAll:!0});var l="ready trigger more:".concat(c," => ").concat(t,", count:").concat(n,", used: ").concat(a-s,"ms");(0,o.clog)(l),console.log("JSAPI|".concat(l))}s=a,c=t,(t===i.APP||t===i.VAR)&&(0,u.setRunnedInAppStatus)(u.RunnedInAppStatus.SDKReady)}},n=0,s=0,c="";if(void 0!==(null===a.win||void 0===a.win?void 0:a.win.WeixinJSBridge))t(i.VAR)();else{var l=document;l.addEventListener?(l.addEventListener("WeixinJSBridgeReady",t(i.APP),!1),l.addEventListener("D2InjectedWeixinJSBridgeReady",t(i.D2INJECT),!1)):l.attachEvent&&(l.attachEvent("WeixinJSBridgeReady",t(i.APP)),l.attachEvent("onWeixinJSBridgeReady",t(i.APP)),l.attachEvent("D2InjectedWeixinJSBridgeReady",t(i.D2INJECT)),l.attachEvent("onD2InjectedWeixinJSBridgeReady",t(i.D2INJECT)))}});return e&&t.then(function(t){return e(null,t)}),t}!function(e){e.VAR="var",e.APP="app",e.D2INJECT="d2inject"}(i||(t.ReadyEventFrom=i={})),t.ready=s},48351:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.clearAllSDKEvent=t.getSDKEvent=t.registerSDKEvent=void 0;var i=n(46053),r=n(72096);function o(e,t,n){a(e,n),i.EventHandlers[e].setCallback(t)}function a(e,t){var n=i.EventHandlers[e];return n||(n=new r.EventHandler(e),i.EventHandlers[e]=n),n.bind(t)}function u(){Object.values(i.EventHandlers).forEach(function(e){return e.clear()})}t.registerSDKEvent=o,t.getSDKEvent=a,t.clearAllSDKEvent=u},26016:function(e,t,n){"use strict";var i,r,o=n(30011),a=o(n(34934)),u=o(n(37487));function s(){return c.apply(this,arguments)}function c(){return(c=(0,u.default)(a.default.mark(function e(){var t,n,o=arguments;return a.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(t=o.length>0&&void 0!==o[0]?o[0]:500,r){e.next=3;break}return e.abrupt("return",!1);case 3:if(!(r.status===i.RunStart&&t)){e.next=9;break}if(!((n=t-(Date.now()-r.firstRunTime))<=0)){e.next=7;break}return e.abrupt("return",!1);case 7:return e.next=9,f(n);case 9:if(r.status!==i.SDKReady){e.next=11;break}return e.abrupt("return",!0);case 11:if(r.status!==i.RunEnd){e.next=13;break}return e.abrupt("return",!0);case 13:return e.abrupt("return",!1);case 14:case"end":return e.stop()}},e)}))).apply(this,arguments)}function l(e){r?r.status<e&&(r.status=e):r={status:e,firstRunTime:Date.now()}}function f(e){return new Promise(function(t){return setTimeout(t,e)})}Object.defineProperty(t,"__esModule",{value:!0}),t.setRunnedInAppStatus=t.isRunnedInApp=t.RunnedInAppStatus=void 0,function(e){e[e.RunStart=1]="RunStart",e[e.SDKReady=2]="SDKReady",e[e.RunEnd=3]="RunEnd"}(i||(t.RunnedInAppStatus=i={})),t.isRunnedInApp=s,t.setRunnedInAppStatus=l},81717:function(e,t,n){"use strict";var i=n(30011)(n(42481));Object.defineProperty(t,"__esModule",{value:!0}),t.win=void 0,t.win=("undefined"==typeof window?"undefined":(0,i.default)(window))==="object"?window:void 0},71818:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.clog=t.logkv=void 0;var i=n(49898),r=n(4138),o=n(63663);function a(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{notAll:!1},r=n.notAll,a=[];return(Array.isArray(e)?e:[e]).forEach(function(e){var n="st:logkvauto_report=".concat(JSON.stringify({kv:55409,key:e,value:t})),i="st:logkvauto_report=".concat(JSON.stringify({kv:55409,key:"".concat(e,"|d2"),value:t}));r?(null===o.win||void 0===o.win?void 0:o.win.__d2InjectedWeixinJSBridge__)?a.push(i):a.push(n):(a.push(n),(null===o.win||void 0===o.win?void 0:o.win.__d2InjectedWeixinJSBridge__)&&a.push(i))}),(0,i.mngReport)(a)}function u(e){var t=(0,r.getAppPlatform)(),n=(0,r.getAppname)();return(0,i.mngReport)("st:c_log=[jsapi] ".concat((null===o.win||void 0===o.win?void 0:o.win.__d2InjectedWeixinJSBridge__)?"[d2] ":"").concat(e," platform: ").concat(n,"|").concat(t," url: ").concat(location.href))}t.logkv=a,t.clog=u},63663:function(e,t,n){"use strict";var i=n(30011)(n(42481));Object.defineProperty(t,"__esModule",{value:!0}),t.win=void 0,t.win=("undefined"==typeof window?"undefined":(0,i.default)(window))==="object"?window:void 0},4138:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isWxworkMNG=t.getAppname=t.getAppPlatform=t.getWechatVersionInfo=t.getWxworkVersion=t.isDarkMode=t.isUICompareideTool=t.isBaiduMobileApp=t.isLiteApp=t.isWwlocal=t.isWindows=t.isMac=t.isIOS=t.isMailApp=t.isIpad=t.isIphone=t.isAndroidPadAffiliated=t.isAndroid=t.isWxwork=t.isWechat=t.isMobile=t.Appname=t.Platform=void 0;var i,r=n(12230),o=n(12230);function a(){return i||(i=new r.UserAgentInfo(navigator.userAgent)),i}function u(){return a().isMobile()}function s(){return a().isWechat()}function c(){return a().isWxwork()}function l(){return a().isAndroid()}function f(){return a().isAndroidPadAffiliated()}function d(){return a().isIphone()}function h(){return a().isIpad()}function g(){return a().isMailApp()}function _(){return a().isIOS()}function p(){return a().isMac()}function v(){return a().isWindows()}function m(){return a().isWwlocal()}function y(){return a().isLiteApp()}function w(){return a().isBaiduMobileApp()}function b(){return a().isUICompareideTool()}function k(){return!(v()&&c())&&(window.matchMedia?window.matchMedia("(prefers-color-scheme: dark)").matches:navigator.userAgent.includes("ColorScheme/Dark"))}function C(){return a().getWxworkVersion()}function x(){return a().getWechatVersionInfo()}function S(){return a().getAppPlatform()}function A(){return a().getAppname()}function O(){return"work.weixin.qq.com"===location.host&&"/wework_admin/frame"===location.pathname}Object.defineProperty(t,"Platform",{enumerable:!0,get:function(){return o.Platform}}),Object.defineProperty(t,"Appname",{enumerable:!0,get:function(){return o.Appname}}),t.isMobile=u,t.isWechat=s,t.isWxwork=c,t.isAndroid=l,t.isAndroidPadAffiliated=f,t.isIphone=d,t.isIpad=h,t.isMailApp=g,t.isIOS=_,t.isMac=p,t.isWindows=v,t.isWwlocal=m,t.isLiteApp=y,t.isBaiduMobileApp=w,t.isUICompareideTool=b,t.isDarkMode=k,t.getWxworkVersion=C,t.getWechatVersionInfo=x,t.getAppPlatform=S,t.getAppname=A,t.isWxworkMNG=O},94550:function(e,t,n){"use strict";var i=Object.create?function(e,t,n,i){void 0===i&&(i=n);var r=Object.getOwnPropertyDescriptor(t,n);(!r||("get"in r?!t.__esModule:r.writable||r.configurable))&&(r={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,i,r)}:function(e,t,n,i){void 0===i&&(i=n),e[i]=t[n]},r=function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||i(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),r(n(20667),t),r(n(7185),t),r(n(61534),t)},61534:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},20667:function(e,t){"use strict";var n,i;Object.defineProperty(t,"__esModule",{value:!0}),t.COMMON_COOKIE_EXTNAME=t.WebSessionCookiePrefix=t.H5CommonOptions=t.AutoPrefixCommonOptions=t.MngCommonOptions=t.CookieType=t.DOMAIN_AUTO_PREFIX=void 0,t.DOMAIN_AUTO_PREFIX="autoprefix",function(e){e.NECESSARY="necessary",e.FUNCTIONS="functions",e.ANALYTICS="analytics"}(n||(t.CookieType=n={})),t.MngCommonOptions={domain:"work.weixin.qq.com",httpOnly:!0,path:"/"},t.AutoPrefixCommonOptions=Object.assign(Object.assign({},t.MngCommonOptions),{domain:t.DOMAIN_AUTO_PREFIX}),t.H5CommonOptions=Object.assign(Object.assign({},t.MngCommonOptions),{sameSite:"strict",secure:!0}),function(e){e.WWRTX="wwrtx.",e.WWKFH="wwkfh.",e.WWAPIDOC="wwapidoc."}(i||(t.WebSessionCookiePrefix=i={})),t.COMMON_COOKIE_EXTNAME="nor."},7185:function(e,t,n){"use strict";var i=n(30011)(n(58254));function r(e){if(0===e.length)return[];if(1===e.length)return e[0];var t=(0,i.default)(e),n=t[0],o=r(t.slice(1)),a=[];return n.forEach(function(e){o.forEach(function(t){a.push("".concat(e).concat(t))})}),a}function o(e){for(var t=arguments.length,n=Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];return r(n).reduce(function(t,n){return t[n]=e,t},{})}function a(e,t,n){return o(e,t,n)}function u(e,t){return e.map(function(e){return"".concat(t).concat(e)})}function s(e,t){return e.map(function(e){return"".concat(e).concat(t)})}Object.defineProperty(t,"__esModule",{value:!0}),t.addCookieArrConfExtname=t.addCookieArrConfPrename=t.preCookieMap2=void 0,t.preCookieMap2=a,t.addCookieArrConfPrename=u,t.addCookieArrConfExtname=s},12967:function(e,t,n){"use strict";var i,r=n(30011)(n(20480));Object.defineProperty(t,"__esModule",{value:!0}),t.DevProxyCookiesConfInType=t.DevProxyCookiesConf=void 0;var o=n(94550),a={free_go_id:{httpOnly:!0,maxAge:2592e6,path:"/"},free_go_proxy:{maxAge:2592e6,path:"/"},wwdev_getappvid:{maxAge:31536e6,path:"/"},"wwproxylogin.vid":{path:"/"}};t.DevProxyCookiesConf=(i={},(0,r.default)(i,o.CookieType.NECESSARY,a),(0,r.default)(i,o.CookieType.FUNCTIONS,{}),(0,r.default)(i,o.CookieType.ANALYTICS,{}),i),t.DevProxyCookiesConfInType=t.DevProxyCookiesConf},99872:function(e,t,n){"use strict";var i,r=n(30011)(n(20480));Object.defineProperty(t,"__esModule",{value:!0}),t.LoginMngCookiesConfInType=t.LoginMngCookiesConf=void 0;var o=n(94550),a=["sid","vid","vst","gst","oast","vst2","gst2","oast2"],u=Object.assign(Object.assign(Object.assign({},(0,o.preCookieMap2)(o.AutoPrefixCommonOptions,[o.WebSessionCookiePrefix.WWKFH].concat(),[].concat(a))),(0,o.preCookieMap2)(o.MngCommonOptions,[o.WebSessionCookiePrefix.WWRTX,o.WebSessionCookiePrefix.WWAPIDOC].concat(),[].concat(a))),{"wwrtx.tsid":o.MngCommonOptions}),s={"wwrtx.group.sid":o.MngCommonOptions,"wwrtx.group.vid":o.MngCommonOptions,"wwrtx.group.vst":o.MngCommonOptions};t.LoginMngCookiesConf=(i={},(0,r.default)(i,o.CookieType.NECESSARY,Object.assign(Object.assign({},u),s)),(0,r.default)(i,o.CookieType.FUNCTIONS,{"wwrtx.logined":o.MngCommonOptions}),(0,r.default)(i,o.CookieType.ANALYTICS,{}),i),t.LoginMngCookiesConfInType=t.LoginMngCookiesConf},44390:function(e,t,n){"use strict";var i,r=n(30011)(n(20480));Object.defineProperty(t,"__esModule",{value:!0}),t.SvrCookiesConfInType=t.SvrCookiesConf=void 0;var o=n(94550),a=864e5,u={"wwrtx.d2st":Object.assign(Object.assign({},o.MngCommonOptions),{httpOnly:!1,domain:o.DOMAIN_AUTO_PREFIX}),ww_rtype:{httpOnly:!0,path:"/"},"wwrtx.i18n_lan":{domain:o.DOMAIN_AUTO_PREFIX,maxAge:30*a,path:"/"},"wwrtx.i18n_lan_custom":{domain:o.DOMAIN_AUTO_PREFIX,maxAge:30*a,path:"/"},ww_lang:{domain:o.DOMAIN_AUTO_PREFIX,maxAge:30*a,path:"/",encode:function(e){return encodeURIComponent(e).replace(/%2C/g,",")}},ww_lang_user:{domain:o.DOMAIN_AUTO_PREFIX,maxAge:30*a,path:"/"},"wwrtx.cs_ind":Object.assign(Object.assign({},o.AutoPrefixCommonOptions),{maxAge:30*a,httpOnly:!1})};t.SvrCookiesConf=(i={},(0,r.default)(i,o.CookieType.NECESSARY,u),(0,r.default)(i,o.CookieType.FUNCTIONS,{}),(0,r.default)(i,o.CookieType.ANALYTICS,{}),i),t.SvrCookiesConfInType=t.SvrCookiesConf},97868:function(e,t,n){"use strict";var i,r=n(30011)(n(20480));Object.defineProperty(t,"__esModule",{value:!0}),t.WWAppCookiesConfInType=t.WWAppCookiesConf=void 0;var o=n(94550),a={"wwapp.vid":o.AutoPrefixCommonOptions,"wwapp.cst":o.AutoPrefixCommonOptions,"wwapp.deviceid":o.AutoPrefixCommonOptions,"wwapp.cgi.vid":o.AutoPrefixCommonOptions,"wwapp.cgi.cst":o.AutoPrefixCommonOptions,"wwapp.cgi.deviceid":o.AutoPrefixCommonOptions,"wwapp.exchange_stat.vid":o.AutoPrefixCommonOptions,"wwapp.exchange_stat.cst":o.AutoPrefixCommonOptions,"wwapp.exchange_stat.deviceid":o.AutoPrefixCommonOptions};t.WWAppCookiesConf=(i={},(0,r.default)(i,o.CookieType.NECESSARY,a),(0,r.default)(i,o.CookieType.FUNCTIONS,{}),(0,r.default)(i,o.CookieType.ANALYTICS,{}),i),t.WWAppCookiesConfInType=t.WWAppCookiesConf},93569:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getAutoPrefixDomain=void 0;var n=["work.weixin.qq.com"];function i(e){var t;return n.some(function(n){if(e.endsWith(n))return t=n,!0}),t||(t=e),t}t.getAutoPrefixDomain=i},17013:function(e,t,n){"use strict";var i=n(30011)(n(36384));Object.defineProperty(t,"__esModule",{value:!0}),t.getCgiPrefix=void 0;var r={"work.weixin.qq.com":{default:"/wework_admin/",urlpath:{nl:"/nl/",ca:"/nl/",oamng:"/oamng/",webapp:"/webapp/",apph5:"/apph5/",live:"/live/",meeting:"/meeting/",mall:"/business/",business:"/business/",txmeeting:"/txmeeting/",servicer:"/servicer/",kf:"/kf/"}},"app.work.weixin.qq.com":{default:"/wework_admin/",urlpath:{}},"open.work.weixin.qq.com":{default:"/wwopen/",urlpath:{wwopenmsg:"/wwopenmsg/",developer:"/developer/"}},"kf.weixin.qq.com":{default:"/kf/",urlpath:{}}};function o(e){var t="".concat(e,"/").match(/^https?:\/\/([^/]+)\/([^/?]*)/);if(t){var n=(0,i.default)(t,3),o=n[1],a=n[2],u=r[o];if(u)return u.urlpath[a]||u.default}}t.getCgiPrefix=o},27097:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getLogs=t.warn=t.error=t.log=t.debug=void 0;var i=n(66659),r=!1;t.debug=s("debug",function(){return(0,i.isDev)()||(0,i.isInDocker)()}),t.log=s("log"),t.error=s("error"),t.warn=s("warn");var o={debug:t.debug,log:t.log,error:t.error,warn:t.warn},a=Object.keys(o);function u(e){var t="[".concat(e,"]"),n="".concat(t," ");return a.reduce(function(e,i){var r=i,a=o[r];return e[r]=function(){for(var e=arguments.length,i=Array(e),r=0;r<e;r++)i[r]=arguments[r];return"string"==typeof i[0]?(i[0]="".concat(n).concat(i[0]),a.apply(void 0,i)):a.apply(void 0,[t].concat(i))},e},{})}function s(e,t){return"function"!=typeof console[e]?function(){}:function(){if((!t||!1!==t())&&!r){r=!0;for(var n=arguments.length,i=Array(n),o=0;o<n;o++)i[o]=arguments[o];return r=!1,console[e].apply(console,i)}}}t.getLogs=u},20721:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.genClearCookie=t.genSetCookie=void 0;var i=n(94550),r=n(93569),o=n(12760);function a(e,t){var n,o,a,u=(null===(n=t[i.CookieType.NECESSARY])||void 0===n?void 0:n[e])||(null===(o=t[i.CookieType.FUNCTIONS])||void 0===o?void 0:o[e])||(null===(a=t[i.CookieType.ANALYTICS])||void 0===a?void 0:a[e]);return(null==u?void 0:u.domain)===i.DOMAIN_AUTO_PREFIX?Object.assign(Object.assign({},u),{domain:(0,r.getAutoPrefixDomain)(location.hostname)}):u}function u(e){return function(t,n){return(0,o.setCookie)(t,n,a(t,e))}}function s(e){return function(t){return(0,o.clearCookie)(t,a(t,e))}}t.genSetCookie=u,t.genClearCookie=s},8818:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.genClearCookie=t.genSetCookie=t.clearCookie=t.setCookie=t.getCookie=void 0;var i=n(12760);Object.defineProperty(t,"getCookie",{enumerable:!0,get:function(){return i.getCookie}}),Object.defineProperty(t,"setCookie",{enumerable:!0,get:function(){return i.setCookie}}),Object.defineProperty(t,"clearCookie",{enumerable:!0,get:function(){return i.clearCookie}});var r=n(20721);Object.defineProperty(t,"genSetCookie",{enumerable:!0,get:function(){return r.genSetCookie}}),Object.defineProperty(t,"genClearCookie",{enumerable:!0,get:function(){return r.genClearCookie}})},12760:function(e,t,n){"use strict";var i=n(30011)(n(42481));function r(e){if(("undefined"==typeof document?"undefined":(0,i.default)(document))==="object"){var t=document.cookie.match("\\b".concat(e,"=([^;]*)"));return t?decodeURIComponent(t[1]):void 0}}function o(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.maxAge,o=n.expires,a=n.path,u=n.domain,s=n.secure,c=n.sameSite,l=n.encode;if(e&&("undefined"==typeof document?"undefined":(0,i.default)(document))==="object"){var f=["".concat(encodeURIComponent(e),"=").concat((l||encodeURIComponent)(t))];if("number"==typeof r){var d=new Date;d.setTime(d.getTime()+r),f.push("Expires=".concat(d.toUTCString()))}else if("number"==typeof o){var h=new Date(+o);f.push("Expires=".concat(h.toUTCString()))}f.push("Path=".concat(a||"/")),u&&f.push("Domain=".concat(u)),s&&f.push("Secure"),c&&f.push("SameSite=".concat(c)),document.cookie=f.join("; ")}}function a(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return o(e,"",Object.assign(Object.assign({},t),{maxAge:-1}))}Object.defineProperty(t,"__esModule",{value:!0}),t.clearCookie=t.setCookie=t.getCookie=void 0,t.getCookie=r,t.setCookie=o,t.clearCookie=a},56943:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.clearCookie=t.setCookie=t.getCookie=void 0;var i=n(8818),r=n(12967);t.getCookie=i.getCookie,t.setCookie=(0,i.genSetCookie)(r.DevProxyCookiesConfInType),t.clearCookie=(0,i.genClearCookie)(r.DevProxyCookiesConfInType)},28756:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.clearCookie=t.setCookie=t.getCookie=void 0;var i=n(8818),r=n(99872);t.getCookie=i.getCookie,t.setCookie=(0,i.genSetCookie)(r.LoginMngCookiesConfInType),t.clearCookie=(0,i.genClearCookie)(r.LoginMngCookiesConfInType)},86698:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.clearCookie=t.setCookie=t.getCookie=void 0;var i=n(8818),r=n(44390);t.getCookie=i.getCookie,t.setCookie=(0,i.genSetCookie)(r.SvrCookiesConfInType),t.clearCookie=(0,i.genClearCookie)(r.SvrCookiesConfInType)},8560:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.clearCookie=t.setCookie=t.getCookie=void 0;var i=n(8818),r=n(97868);t.getCookie=i.getCookie,t.setCookie=(0,i.genSetCookie)(r.WWAppCookiesConfInType),t.clearCookie=(0,i.genClearCookie)(r.WWAppCookiesConfInType)},24978:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.checkD2ckid=t.VIDCheckStatus=void 0;var i,r=n(64406),o=n(31172);function a(){if(null===o.win||void 0===o.win?void 0:o.win.settings){var e=(0,r.getVidFromWindow)(),t=(0,r.getVidFromCookie)();return e&&t?e===t?i.SUCCESS:i.NOT_EQUEUE:e||t?e?i.NO_COOKIE_VID:i.NO_SETTINGS_VID:i.NO_ALL_VIDS}return i.NO_SETTINGS}!function(e){e[e.NO_SETTINGS=1]="NO_SETTINGS",e[e.NO_SETTINGS_VID=2]="NO_SETTINGS_VID",e[e.NO_COOKIE_VID=3]="NO_COOKIE_VID",e[e.NO_ALL_VIDS=4]="NO_ALL_VIDS",e[e.NOT_EQUEUE=8]="NOT_EQUEUE",e[e.SUCCESS=9]="SUCCESS"}(i||(t.VIDCheckStatus=i={})),t.checkD2ckid=a},1974:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.appendEnvValsForUri=t.getEnvVals=t.VIDCheckStatus=void 0;var i=n(55710),r=n(61949),o=n(7709),a=n(66659),u=n(24978),s=n(24978);function c(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.random,n=e.d2ckid,i=e.d2ckiderr,s={d2st:(0,r.getD2ST)(),_viewkey:(0,o.getViewKey)()};if(location.hash&&(s._ref_hash=location.hash.substring(1)),!1!==t&&(s._r="".concat(+new Date,"_").concat(100*Math.random()|0)),!1!==n){var c=(0,u.checkD2ckid)();if(i&&c===u.VIDCheckStatus.NOT_EQUEUE)throw Error("d2ckiderr");s._d2ckid="".concat(c)}var l=0|((0,a.isInOfflinePkg)()?1:0)|((0,a.isInPreload)()?2:0);l&&(s._viewtype="".concat(l));var f=(0,a.getGitCommitid)();return f&&(s._cmtid=f),s}function l(e,t){return(0,i.replaceUriParams)(e,c(t))}Object.defineProperty(t,"VIDCheckStatus",{enumerable:!0,get:function(){return s.VIDCheckStatus}}),t.getEnvVals=c,t.appendEnvValsForUri=l},31172:function(e,t,n){"use strict";var i=n(30011)(n(42481));Object.defineProperty(t,"__esModule",{value:!0}),t.win=void 0,t.win=("undefined"==typeof window?"undefined":(0,i.default)(window))==="object"?window:void 0},49898:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Report=t.mngBeacon=t.mngReport=t.beacon=t.report=void 0;var i=n(17013),r=n(71598),o=n(82306),a="https://report.rtxapp.com/cgi-bin/mng/report",u=l(),s=new r.Report(u),c=a===u?s:new r.Report(a);function l(){var e=o.win?o.win.__LQ_REPORT_URL__:a;if(!e){var t=(0,i.getCgiPrefix)(location.href);e=t?"".concat(t,"report"):a}return e}t.report=s.report.bind(s),t.beacon=s.beacon.bind(s),t.mngReport=c.report.bind(c),t.mngBeacon=c.beacon.bind(c),t.Report=r.Report},65698:function(e,t,n){"use strict";var i=n(30011),r=i(n(42715)),o=i(n(28518));Object.defineProperty(t,"__esModule",{value:!0}),t.PromieDelay=void 0;var a=function(){function e(t,n){var i=this;(0,r.default)(this,e),this.promise=new Promise(function(e){i.resolve=e,i.delay=window.setTimeout(e,n||1e3)}).then(function(){return i.resolve=void 0,i.delay=void 0,t()})}return(0,o.default)(e,[{key:"nowait",value:function(){return this.resolve&&this.resolve(),this.delay&&window.clearTimeout(this.delay),this.promise}}]),e}();t.PromieDelay=a},71598:function(e,t,n){"use strict";var i=n(30011),r=i(n(34934)),o=i(n(37487)),a=i(n(26209)),u=i(n(42481)),s=i(n(42715)),c=i(n(28518));Object.defineProperty(t,"__esModule",{value:!0}),t.Report=void 0;var l=n(65698),f=n(1974),d=function(){function e(t){var n=this;(0,s.default)(this,e),this.reportDelay=null,this.queue=[],this.reportUrl=t,("undefined"==typeof window?"undefined":(0,u.default)(window))==="object"&&window.addEventListener&&window.addEventListener("unload",function(){n.queue.length&&n.beacon()})}return(0,c.default)(e,[{key:"report",value:function(e){var t,n=this,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=i.delay;return(Array.isArray(e)?e.length&&(t=this.queue).push.apply(t,(0,a.default)(e)):this.queue.push(e),this.queue.length>20||!1===r)?this.fetchReport():(this.reportDelay||(this.reportDelay=new l.PromieDelay(function(){return n.fetchReport()},1e3)),this.reportDelay.promise)}},{key:"beacon",value:function(e){if(navigator.sendBeacon){if(e){if(Array.isArray(e)){var t;e.length&&(t=this.queue).push.apply(t,(0,a.default)(e))}else this.queue.push(e)}if(this.queue.length>0&&navigator.sendBeacon("".concat((0,f.appendEnvValsForUri)(this.reportUrl),"&").concat(h(this.queue))))return this.queue.length=0,!0}return!1}},{key:"fetchReport",value:function(){var e=function(){return t.apply(this,arguments)},t=(0,o.default)(r.default.mark(function e(){var t,n;return r.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,1;case 2:if(this.reportDelay&&(this.reportDelay.nowait(),this.reportDelay=null),this.queue.length){e.next=5;break}return e.abrupt("return");case 5:return t=h(this.queue),this.queue.length=0,(n=new Image(1,1)).src=[(0,f.appendEnvValsForUri)(this.reportUrl),"&type=img","&".concat(t)].join(""),e.next=11,new Promise(function(e){var t=!1,i=function(){t||(t=!0,n.onload=null,n.onerror=null,e(void 0))};n.onload=i,n.onerror=i,setTimeout(i,200)});case 11:case"end":return e.stop()}},e,this)}));return e}()}]),e}();function h(e){return e.map(function(e){return"q=".concat(encodeURIComponent(e))}).join("&")}t.Report=d},82306:function(e,t,n){"use strict";var i=n(30011)(n(42481));Object.defineProperty(t,"__esModule",{value:!0}),t.win=void 0,t.win=("undefined"==typeof window?"undefined":(0,i.default)(window))==="object"?window:void 0},66659:function(e,t,n){"use strict";var i=n(30011)(n(42481));Object.defineProperty(t,"__esModule",{value:!0}),t.getGitCommitid=t.isInPreload=t.isPreloadPage=t.isInOfflinePkg=t.isOnline=t.isDev=t.isInFinalDocker=t.isInDocker=void 0;var r=n(56943),o=n(2274);function a(){return!!(0,r.getCookie)("free_go_proxy")}function u(){return"WW_FinalDocker"===(0,r.getCookie)("free_go_proxy")}function s(){var e,t,n;return!!o.win&&!o.win.RES_CDN&&((null===(e=o.win.settings)||void 0===e?void 0:e.NODE_ENV)==="development"||(null===(n=null===(t=o.win.process)||void 0===t?void 0:t.env)||void 0===n?void 0:n.NODE_ENV)==="development")}function c(){return!a()&&!s()}function l(){return!!o.win&&!!o.win.ww_offlinePkg}function f(){return!!o.win&&o.win.location.href.includes("ispreload=1")}function d(){return!!o.win&&(!!o.win.ww_preload_ginvoked_all||o.win.location.href.includes("ginvoke=1"))}function h(){var e,t=("undefined"==typeof process?"undefined":(0,i.default)(process))==="object"&&process&&process.env?"883a0ee9bd2f284879811fc02b35330446357b7b":void 0;return null===(e=null==t?void 0:t.slice)||void 0===e?void 0:e.call(t,0,8)}t.isInDocker=a,t.isInFinalDocker=u,t.isDev=s,t.isOnline=c,t.isInOfflinePkg=l,t.isPreloadPage=f,t.isInPreload=d,t.getGitCommitid=h},2274:function(e,t,n){"use strict";var i=n(30011)(n(42481));Object.defineProperty(t,"__esModule",{value:!0}),t.win=void 0,t.win=("undefined"==typeof window?"undefined":(0,i.default)(window))==="object"?window:void 0},46126:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.d2vidgray=void 0;var i=n(66659),r=n(64406);function o(e){if(e&&!(0,i.isInDocker)()){var t=(0,r.getVidFromWindow)()||(0,r.getVidFromCookie)();if(!t||!e.test(t))return!1}return!0}t.d2vidgray=o},61949:function(e,t,n){"use strict";var i=n(30011)(n(42481));Object.defineProperty(t,"__esModule",{value:!0}),t.getD2ST=void 0;var r=n(86698),o=function(){if(("undefined"==typeof window?"undefined":(0,i.default)(window))!=="object")return"";var e,t=(0,r.getCookie)("wwrtx.d2st");return t&&(0,r.clearCookie)("wwrtx.d2st"),decodeURIComponent((null===(e=location.href.match(/(?:\?|&)d2st=([^&]+)/))||void 0===e?void 0:e[1])||"")||t||""}();function a(){return o}t.getD2ST=a},64406:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getVidFromWindow=t.getVidFromCookie=void 0;var i=n(56943),r=n(8560),o=n(28756),a=n(4138),u=n(66659),s=n(68758),c=n(70279);function l(){if(c.win){if((0,a.isWxwork)())!(t=(0,r.getCookie)("wwapp.vid")||(0,r.getCookie)("wwapp.cgi.vid")||(0,r.getCookie)("wwapp.exchange_stat.vid"))&&(0,u.isDev)()&&(t=(0,i.getCookie)("wwproxylogin.vid")||(0,o.getCookie)("wwrtx.vid"));else if((0,a.isWxworkMNG)()){var e,t,n=!!(null===(e=c.win.settings)||void 0===e?void 0:e.target_groupid);t=(0,o.getCookie)(n?"wwrtx.group.vid":"wwrtx.vid")}if(t&&(0,s.isVidFull)(t))return t}}function f(){if(c.win){var e,t=null===(e=c.win.settings)||void 0===e?void 0:e.vid;if(t&&(0,s.isVidFull)(t))return t}}t.getVidFromCookie=l,t.getVidFromWindow=f},70279:function(e,t,n){"use strict";var i=n(30011)(n(42481));Object.defineProperty(t,"__esModule",{value:!0}),t.win=void 0,t.win=("undefined"==typeof window?"undefined":(0,i.default)(window))==="object"?window:void 0},7709:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getViewKey=void 0;var i=n(13623),r=i.win?i.win.__viewkey__:"nowin",o=0;if(!r&&i.win){var a=+(localStorage.getItem("__viewkey__")||0)+1;r="".concat(Date.now()%1e5,"-").concat(1e5*Math.random()|0,"-").concat(a%1e3),i.win.__viewkey__=r;try{localStorage.setItem("__viewkey__","".concat(a)),i.win.addEventListener("hashchange",function(){o+=1}),i.win.addEventListener("popstate",function(){o+=1})}catch(u){}}function s(){return r?"".concat(r,"-").concat(o):""}t.getViewKey=s},13623:function(e,t,n){"use strict";var i=n(30011)(n(42481));Object.defineProperty(t,"__esModule",{value:!0}),t.win=void 0,t.win=("undefined"==typeof window?"undefined":(0,i.default)(window))==="object"?window:void 0},55710:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getUriParams=t.replaceUriParams=t.removeUriParams=void 0;var i=n(26102);Object.defineProperty(t,"removeUriParams",{enumerable:!0,get:function(){return i.removeUriParams}}),Object.defineProperty(t,"replaceUriParams",{enumerable:!0,get:function(){return i.replaceUriParams}});var r=n(95047);Object.defineProperty(t,"getUriParams",{enumerable:!0,get:function(){return r.getUriParams}})},95047:function(e,t,n){"use strict";var i=n(30011)(n(36384));function r(e){var t=s(e,"#"),n=(0,i.default)(t,2),r=n[0],a=n[1],u=s(r,"?"),c=(0,i.default)(u,2);return{path:c[0],params:o(c[1]),hash:a}}function o(e){var t={};return e&&e.split("&").forEach(function(e){var n=s(e,"="),r=(0,i.default)(n,2),o=r[0],a=r[1];o&&(t[o]=a?decodeURIComponent(a):a||"")}),t}function a(e){var t=s(e,"#"),n=(0,i.default)(t,2),r=n[0],o=n[1],a=s(r,"?"),c=(0,i.default)(a,2);return{path:c[0],params:u(c[1]),hash:o}}function u(e){var t={};return e&&e.split("&").forEach(function(e){var n=s(e,"="),r=(0,i.default)(n,2),o=r[0],a=r[1];if(o){var u=t[o]||(t[o]=[]);u.push(a?decodeURIComponent(a):a||"")}}),t}function s(e,t){var n=e.split(t);return n.length<3?n:[n[0],e.substring(n[0].length+1)]}Object.defineProperty(t,"__esModule",{value:!0}),t.getUriParamsInArray=t.getUriParams=void 0,t.getUriParams=r,t.getUriParamsInArray=a},12991:function(e,t){"use strict";function n(e){var t=e.path,n=e.params,r=e.hash,o=i(n);return"".concat(t).concat(o?"?".concat(o):"").concat(r?"#".concat(r):"")}function i(e){return Object.keys(e).map(function(t){var n=e[t];if(null!=n)return Array.isArray(n)?n.map(function(e){return"".concat(t,"=").concat(encodeURIComponent(e))}).join("&"):"".concat(t,"=").concat(encodeURIComponent(n))}).filter(Boolean).join("&")}Object.defineProperty(t,"__esModule",{value:!0}),t.stringifyUriParams=void 0,t.stringifyUriParams=n},26102:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.removeUriParams=t.replaceUriParams=void 0;var i=n(95047),r=n(12991);function o(e,t){var n=Object.keys(t);if(!n.length)return e;var o=(0,i.getUriParamsInArray)(e),a=o.path,u=o.params,s=o.hash;return n.forEach(function(e){var n=t[e];!1===n?e in u&&delete u[e]:u[e]=[n]}),(0,r.stringifyUriParams)({path:a,params:u,hash:s})}function a(e,t){if(!t.length)return e;var n=(0,i.getUriParamsInArray)(e),o=n.path,a=n.params,u=n.hash;return t.forEach(function(e){e in a&&delete a[e]}),(0,r.stringifyUriParams)({path:o,params:a,hash:u})}t.replaceUriParams=o,t.removeUriParams=a},12230:function(e,t,n){"use strict";var i,r,o=n(30011),a=o(n(42715)),u=o(n(28518));Object.defineProperty(t,"__esModule",{value:!0}),t.UserAgentInfo=t.Appname=t.Platform=void 0,function(e){e.Windows="win",e.Mac="mac",e.Android="android",e.iOS="ios"}(i||(t.Platform=i={})),function(e){e.Wechat="wechat",e.Wxwork="wxwork"}(r||(t.Appname=r={}));var s=function(){function e(t){(0,a.default)(this,e),this.userAgentLow=t.toLowerCase()}return(0,u.default)(e,[{key:"isMobile",value:function(){if(void 0===this.isMobileData){var e=this.userAgentLow;this.isMobileData=/iphone|ipad|ipod|android/.test(e)&&e.includes("mobile")}return this.isMobileData}},{key:"isWechat",value:function(){return void 0===this.isWechatData&&(this.isWechatData=this.userAgentLow.includes("micromessenger")&&!this.isWxwork()),this.isWechatData}},{key:"isWxwork",value:function(){return void 0===this.isWxworkData&&(this.isWxworkData=this.userAgentLow.includes("wxwork")),this.isWxworkData}},{key:"isAndroid",value:function(){return void 0===this.isAndroidData&&(this.isAndroidData=/\bandroid/.test(this.userAgentLow)),this.isAndroidData}},{key:"isAndroidPadAffiliated",value:function(){return void 0===this.isAndroidPadAffiliatedData&&(this.isAndroidPadAffiliatedData=this.isAndroid()&&this.userAgentLow.includes("wwandroidpad")),this.isAndroidPadAffiliatedData}},{key:"isIphone",value:function(){return void 0===this.isIphoneData&&(this.isIphoneData=/\biphone/.test(this.userAgentLow)),this.isIphoneData}},{key:"isIpad",value:function(){return void 0===this.isIpadData&&(this.isIpadData=/\bipad/.test(this.userAgentLow)),this.isIpadData}},{key:"isMailApp",value:function(){return void 0===this.isMailAppData&&(this.isMailAppData=this.userAgentLow.includes("mailapp")),this.isMailAppData}},{key:"isIOS",value:function(){return this.isIphone()||this.isIpad()}},{key:"isMac",value:function(){return void 0===this.isMacData&&(this.isMacData=!this.isMobile()&&!this.isIOS()&&this.userAgentLow.includes("mac os x")),this.isMacData}},{key:"isWindows",value:function(){return void 0===this.isWindowsData&&(this.isWindowsData=!this.isMobile()&&this.userAgentLow.includes("windows nt")),this.isWindowsData}},{key:"isWwlocal",value:function(){return void 0===this.isWwlocalData&&(this.isWwlocalData=this.userAgentLow.includes("wwlocal")&&this.isWxwork()),this.isWwlocalData}},{key:"isLiteApp",value:function(){return void 0===this.isLiteAppData&&(this.isLiteAppData=this.userAgentLow.includes(" liteapp/")),this.isLiteAppData}},{key:"isBaiduMobileApp",value:function(){return void 0===this.isBaiduMobileAppData&&(this.isBaiduMobileAppData=this.isMobile()&&this.userAgentLow.includes("baiduboxapp")),this.isBaiduMobileAppData}},{key:"isUICompareideTool",value:function(){return void 0===this.isUICompareideToolData&&(this.isUICompareideToolData=this.userAgentLow.includes("uicompareide")),this.isUICompareideToolData}},{key:"isDarkMode",value:function(){return void 0===this.isDarkModeData&&(this.isDarkModeData=this.userAgentLow.includes("colorscheme/dark"),this.isDarkModeData&&this.isWindows()&&this.isWxwork()&&(this.isDarkModeData=!1)),this.isDarkModeData}},{key:"getWxworkVersion",value:function(){if(void 0===this.wxworkVersionData){var e=this.userAgentLow.match(/wxwork\/(\d+\.\d+(\.\d+)?)/i);this.wxworkVersionData=(null==e?void 0:e[1])||""}return this.wxworkVersionData}},{key:"getWechatVersionInfo",value:function(){if(!this.wechatVersionData){if(this.isMac()){var e=this.userAgentLow.match(/macwechat\/(\d+(?:\.\d+)+)\((0x\w+)\)/);e&&(this.wechatVersionData={platform:i.Mac,version:e[1],number:parseInt(e[2],16)})}else if(this.isWindows()){var t=this.userAgentLow.match(/windowswechat\((0x\w+)\)/);t&&(this.wechatVersionData={platform:i.Windows,version:void 0,number:parseInt(t[1],16)})}else{var n=this.userAgentLow.match(/micromessenger\/(\d+(?:\.\d+)+)\((0x\w+)\)/);n&&(this.wechatVersionData={platform:this.isAndroid()?i.Android:i.iOS,version:n[1],number:parseInt(n[2],16)})}}return this.wechatVersionData}},{key:"getAppPlatform",value:function(){return this.isAndroid()?i.Android:this.isIOS()?i.iOS:this.isWindows()?i.Windows:this.isMac()?i.Mac:void 0}},{key:"getAppname",value:function(){return this.isWechat()?r.Wechat:this.isWxwork()?r.Wxwork:void 0}}]),e}();t.UserAgentInfo=s},40270:function(e,t){"use strict";function n(e,t){if(e===t)return 0;for(var n=e.split("."),i=t.split("."),r=0;n[r]&&i[r];){if(+n[r]==+i[r]){r+=1;continue}return+n[r]>+i[r]?1:-1}return n[r]?1:i[r]?-1:0}function i(e,t){return e===t?0:e&&t?e>t?1:-1:e?1:-1}Object.defineProperty(t,"__esModule",{value:!0}),t.numCompare=t.versionCompare=void 0,t.versionCompare=n,t.numCompare=i},68758:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.isLocalVidUser=t.isWeixinXidUser=t.isVidUser=t.isCorpidFull=t.isVidFull=t.isWeiXinRoomId=t.isLocalVid=t.isXid=t.isGid=t.isCorpid=t.isVid=t.isTeamCorpid=void 0;var r=i(n(90001)),o=r.default.BigInt(48);function a(e){return(0,t.isVid)(e)||(0,t.isLocalVid)(e)}function u(e){return(0,t.isCorpid)(e)||(0,t.isTeamCorpid)(e)}function s(e){return function(t){return!!+t&&r.default.equal(r.default.signedRightShift(r.default.BigInt(t),o),e)}}t.isTeamCorpid=s(r.default.BigInt(2)),t.isVid=s(r.default.BigInt(6)),t.isCorpid=s(r.default.BigInt(7)),t.isGid=s(r.default.BigInt(8)),t.isXid=s(r.default.BigInt(28)),t.isLocalVid=s(r.default.BigInt(37)),t.isWeiXinRoomId=s(r.default.BigInt(38)),t.isVidFull=a,t.isCorpidFull=u,t.isVidUser=t.isVid,t.isWeixinXidUser=t.isXid,t.isLocalVidUser=t.isLocalVid},59443:function(e,t){"use strict";function n(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=Array(t);n<t;n++)i[n]=e[n];return i}function i(e){if(Array.isArray(e))return n(e)}function r(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}function o(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function a(e,t,n){return t&&o(e.prototype,t),n&&o(e,n),e}function u(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function s(){throw TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function c(e){return i(e)||u(e)||l(e)||s()}function l(e,t){if(e){if("string"==typeof e)return n(e,t);var i=Object.prototype.toString.call(e).slice(8,-1);if("Object"===i&&e.constructor&&(i=e.constructor.name),"Map"===i||"Set"===i)return Array.from(i);if("Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i))return n(e,t)}}Object.defineProperty(t,"__esModule",{value:!0}),t.Emit=void 0;var f=function(){function e(){r(this,e),this.events=[],this.onceEvents=[]}return a(e,[{key:"on",value:function(e){this.events.push(e)}},{key:"off",value:function(e){if(e){var t=this.events.indexOf(e);-1!==t&&this.events.splice(t,1)}else this.events.length=0}},{key:"once",value:function(e){this.events.push(e),this.onceEvents.push(e)}},{key:"emit",value:function(e){var t=this;c(this.events).forEach(function(n){-1!==t.events.indexOf(n)&&n(e)}),this.onceEvents.length&&(this.events.length?this.events=d(this.events,this.onceEvents):this.onceEvents.length=0)}},{key:"listenerCount",value:function(){return this.events.length+this.onceEvents.length}}]),e}();t.Emit=f;var d="undefined"==typeof Set?function(e,t){return e.filter(function(e){return -1===t.indexOf(e)})}:function(e,t){var n=new Set(t);return e.filter(function(e){return!n.has(e)})}},90001:function(e){function t(e,t){return null!=t&&"undefined"!=typeof Symbol&&t[Symbol.hasInstance]?!!t[Symbol.hasInstance](e):e instanceof t}!function(t,n){e.exports=n()}(0,function(){"use strict";var e=function(e,n){if(!t(e,n))throw TypeError("Cannot call a class as a function")},n=function(e,t){for(var n,i=0;i<t.length;i++)(n=t[i]).enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)},i=function(e,t,i){return t&&n(e.prototype,t),i&&n(e,i),Object.defineProperty(e,"prototype",{writable:!1}),e},r=function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&b(e,t)},o=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}},a=function(e){return -1!==Function.toString.call(e).indexOf("[native code]")},u=function(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e},s=function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw TypeError("Derived constructors may only return object or undefined");return u(e)},c=function(e){var t=o();return function(){var n,i=w(e);if(t){var r=w(this).constructor;n=Reflect.construct(i,arguments,r)}else n=i.apply(this,arguments);return s(this,n)}},l=function(e,t){return f(e)||d(e,t)||h(e,t)||_()},f=function(e){if(Array.isArray(e))return e},d=function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var i,r,o=[],a=!0,u=!1;try{for(n=n.call(e);!(a=(i=n.next()).done)&&(o.push(i.value),!(t&&o.length===t));a=!0);}catch(s){u=!0,r=s}finally{try{a||null==n.return||n.return()}finally{if(u)throw r}}return o}},h=function(e,t){if(e){if("string"==typeof e)return g(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?g(e,t):void 0}},g=function(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=Array(t);n<t;n++)i[n]=e[n];return i},_=function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")},p=function(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=h(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var i=0,r=function(){};return{s:r,n:function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(e){throw e},f:r}}throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,u=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){u=!0,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(u)throw o}}}},v=Math.imul,m=Math.clz32;function y(e){return(y="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function w(e){return(w=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function b(e,t){return(b=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function k(){return(k=o()?Reflect.construct:function(e,t,n){var i=[null];i.push.apply(i,t);var r=new(Function.bind.apply(e,i));return n&&b(r,n.prototype),r}).apply(null,arguments)}function C(e){var t="function"==typeof Map?new Map:void 0;return(C=function(e){function n(){return k(e,arguments,w(this).constructor)}if(null===e||!a(e))return e;if("function"!=typeof e)throw TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,n)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),b(n,e)})(e)}var x=function(t){var n=Math.abs,o=Math.max,a=Math.floor;function s(t,n){var i;if(e(this,s),(i=f.call(this,t)).sign=n,Object.setPrototypeOf(u(i),s.prototype),t>s.__kMaxLength)throw RangeError("Maximum BigInt size exceeded");return i}r(s,t);var f=c(s);return i(s,[{key:"toDebugString",value:function(){var e,t=["BigInt["],n=p(this);try{for(n.s();!(e=n.n()).done;){var i=e.value;t.push((i?(i>>>0).toString(16):i)+", ")}}catch(r){n.e(r)}finally{n.f()}return t.push("]"),t.join("")}},{key:"toString",value:function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:10;if(2>e||36<e)throw RangeError("toString() radix argument must be between 2 and 36");return 0===this.length?"0":0==(e&e-1)?s.__toStringBasePowerOfTwo(this,e):s.__toStringGeneric(this,e,!1)}},{key:"valueOf",value:function(){throw Error("Convert JSBI instances to native numbers using `toNumber`.")}},{key:"__copy",value:function(){for(var e=new s(this.length,this.sign),t=0;t<this.length;t++)e[t]=this[t];return e}},{key:"__trim",value:function(){for(var e=this.length,t=this[e-1];0===t;)t=this[--e-1],this.pop();return 0===e&&(this.sign=!1),this}},{key:"__initializeDigits",value:function(){for(var e=0;e<this.length;e++)this[e]=0}},{key:"__clzmsd",value:function(){return s.__clz30(this.__digit(this.length-1))}},{key:"__inplaceMultiplyAdd",value:function(e,t,n){n>this.length&&(n=this.length);for(var i=32767&e,r=e>>>15,o=0,a=t,u=0;u<n;u++){var c=this.__digit(u),l=32767&c,f=c>>>15,d=s.__imul(l,i),h=s.__imul(l,r),g=s.__imul(f,i),_=s.__imul(f,r),p=a+d+o;o=p>>>30,p&=1073741823,p+=((32767&h)<<15)+((32767&g)<<15),o+=p>>>30,a=_+(h>>>15)+(g>>>15),this.__setDigit(u,1073741823&p)}if(0!==o||0!==a)throw Error("implementation bug")}},{key:"__inplaceAdd",value:function(e,t,n){for(var i,r=0,o=0;o<n;o++)r=(i=this.__halfDigit(t+o)+e.__halfDigit(o)+r)>>>15,this.__setHalfDigit(t+o,32767&i);return r}},{key:"__inplaceSub",value:function(e,t,n){var i=0;if(1&t){t>>=1;for(var r=this.__digit(t),o=32767&r,a=0;a<n-1>>>1;a++){var u=e.__digit(a),s=(r>>>15)-(32767&u)-i;i=1&s>>>15,this.__setDigit(t+a,(32767&s)<<15|32767&o),i=1&(o=(32767&(r=this.__digit(t+a+1)))-(u>>>15)-i)>>>15}var c=e.__digit(a),l=(r>>>15)-(32767&c)-i;if(i=1&l>>>15,this.__setDigit(t+a,(32767&l)<<15|32767&o),t+a+1>=this.length)throw RangeError("out of bounds");0==(1&n)&&(i=1&(o=(32767&(r=this.__digit(t+a+1)))-(c>>>15)-i)>>>15,this.__setDigit(t+e.length,1073709056&r|32767&o))}else{t>>=1;for(var f=0;f<e.length-1;f++){var d=this.__digit(t+f),h=e.__digit(f),g=(32767&d)-(32767&h)-i,_=(d>>>15)-(h>>>15)-(i=1&g>>>15);i=1&_>>>15,this.__setDigit(t+f,(32767&_)<<15|32767&g)}var p=this.__digit(t+f),v=e.__digit(f),m=(32767&p)-(32767&v)-i;i=1&m>>>15;var y=0;0==(1&n)&&(i=1&(y=(p>>>15)-(v>>>15)-i)>>>15),this.__setDigit(t+f,(32767&y)<<15|32767&m)}return i}},{key:"__inplaceRightShift",value:function(e){if(0!==e){for(var t,n=this.__digit(0)>>>e,i=this.length-1,r=0;r<i;r++)t=this.__digit(r+1),this.__setDigit(r,1073741823&t<<30-e|n),n=t>>>e;this.__setDigit(i,n)}}},{key:"__digit",value:function(e){return this[e]}},{key:"__unsignedDigit",value:function(e){return this[e]>>>0}},{key:"__setDigit",value:function(e,t){this[e]=0|t}},{key:"__setDigitGrow",value:function(e,t){this[e]=0|t}},{key:"__halfDigitLength",value:function(){var e=this.length;return 32767>=this.__unsignedDigit(e-1)?2*e-1:2*e}},{key:"__halfDigit",value:function(e){return 32767&this[e>>>1]>>>15*(1&e)}},{key:"__setHalfDigit",value:function(e,t){var n=e>>>1,i=this.__digit(n),r=1&e?32767&i|t<<15:1073709056&i|32767&t;this.__setDigit(n,r)}}],[{key:"BigInt",value:function(e){var t=Number.isFinite;if("number"==typeof e){if(0===e)return s.__zero();if(s.__isOneDigitInt(e))return 0>e?s.__oneDigit(-e,!0):s.__oneDigit(e,!1);if(!t(e)||a(e)!==e)throw RangeError("The number "+e+" cannot be converted to BigInt because it is not an integer");return s.__fromDouble(e)}if("string"==typeof e){var n=s.__fromString(e);if(null===n)throw SyntaxError("Cannot convert "+e+" to a BigInt");return n}if("boolean"==typeof e)return!0===e?s.__oneDigit(1,!1):s.__zero();if("object"===y(e)){if(e.constructor===s)return e;var i=s.__toPrimitive(e);return s.BigInt(i)}throw TypeError("Cannot convert "+e+" to a BigInt")}},{key:"toNumber",value:function(e){var t=e.length;if(0===t)return 0;if(1===t){var n=e.__unsignedDigit(0);return e.sign?-n:n}var i=e.__digit(t-1),r=s.__clz30(i),o=30*t-r;if(1024<o)return e.sign?-1/0:1/0;var a=o-1,u=i,c=t-1,l=r+3,f=32===l?0:u<<l;f>>>=12;var d=l-12,h=12<=l?0:u<<20+l,g=20+l;for(0<d&&0<c&&(c--,f|=(u=e.__digit(c))>>>30-d,h=u<<d+2,g=d+2);0<g&&0<c;)c--,u=e.__digit(c),h|=30<=g?u<<g-30:u>>>30-g,g-=30;var _=s.__decideRounding(e,g,c,u);if((1===_||0===_&&1==(1&h))&&0==(h=h+1>>>0)&&0!=++f>>>20&&(f=0,1023<++a))return e.sign?-1/0:1/0;var p=e.sign?-2147483648:0;return a=a+1023<<20,s.__kBitConversionInts[1]=p|a|f,s.__kBitConversionInts[0]=h,s.__kBitConversionDouble[0]}},{key:"unaryMinus",value:function(e){if(0===e.length)return e;var t=e.__copy();return t.sign=!e.sign,t}},{key:"bitwiseNot",value:function(e){return e.sign?s.__absoluteSubOne(e).__trim():s.__absoluteAddOne(e,!0)}},{key:"exponentiate",value:function(e,t){if(t.sign)throw RangeError("Exponent must be positive");if(0===t.length)return s.__oneDigit(1,!1);if(0===e.length)return e;if(1===e.length&&1===e.__digit(0))return e.sign&&0==(1&t.__digit(0))?s.unaryMinus(e):e;if(1<t.length)throw RangeError("BigInt too big");var n=t.__unsignedDigit(0);if(1===n)return e;if(n>=s.__kMaxLengthBits)throw RangeError("BigInt too big");if(1===e.length&&2===e.__digit(0)){var i=1+(0|n/30),r=e.sign&&0!=(1&n),o=new s(i,r);o.__initializeDigits();var a=1<<n%30;return o.__setDigit(i-1,a),o}var u=null,c=e;for(0!=(1&n)&&(u=e),n>>=1;0!==n;n>>=1)c=s.multiply(c,c),0!=(1&n)&&(u=null===u?c:s.multiply(u,c));return u}},{key:"multiply",value:function(e,t){if(0===e.length)return e;if(0===t.length)return t;var n=e.length+t.length;30<=e.__clzmsd()+t.__clzmsd()&&n--;var i=new s(n,e.sign!==t.sign);i.__initializeDigits();for(var r=0;r<e.length;r++)s.__multiplyAccumulate(t,e.__digit(r),i,r);return i.__trim()}},{key:"divide",value:function(e,t){if(0===t.length)throw RangeError("Division by zero");if(0>s.__absoluteCompare(e,t))return s.__zero();var n,i=e.sign!==t.sign,r=t.__unsignedDigit(0);if(1===t.length&&32767>=r){if(1===r)return i===e.sign?e:s.unaryMinus(e);n=s.__absoluteDivSmall(e,r,null)}else n=s.__absoluteDivLarge(e,t,!0,!1);return n.sign=i,n.__trim()}},{key:"remainder",value:function(e,t){if(0===t.length)throw RangeError("Division by zero");if(0>s.__absoluteCompare(e,t))return e;var n=t.__unsignedDigit(0);if(1===t.length&&32767>=n){if(1===n)return s.__zero();var i=s.__absoluteModSmall(e,n);return 0===i?s.__zero():s.__oneDigit(i,e.sign)}var r=s.__absoluteDivLarge(e,t,!1,!0);return r.sign=e.sign,r.__trim()}},{key:"add",value:function(e,t){var n=e.sign;return n===t.sign?s.__absoluteAdd(e,t,n):0<=s.__absoluteCompare(e,t)?s.__absoluteSub(e,t,n):s.__absoluteSub(t,e,!n)}},{key:"subtract",value:function(e,t){var n=e.sign;return n===t.sign?0<=s.__absoluteCompare(e,t)?s.__absoluteSub(e,t,n):s.__absoluteSub(t,e,!n):s.__absoluteAdd(e,t,n)}},{key:"leftShift",value:function(e,t){return 0===t.length||0===e.length?e:t.sign?s.__rightShiftByAbsolute(e,t):s.__leftShiftByAbsolute(e,t)}},{key:"signedRightShift",value:function(e,t){return 0===t.length||0===e.length?e:t.sign?s.__leftShiftByAbsolute(e,t):s.__rightShiftByAbsolute(e,t)}},{key:"unsignedRightShift",value:function(){throw TypeError("BigInts have no unsigned right shift; use >> instead")}},{key:"lessThan",value:function(e,t){return 0>s.__compareToBigInt(e,t)}},{key:"lessThanOrEqual",value:function(e,t){return 0>=s.__compareToBigInt(e,t)}},{key:"greaterThan",value:function(e,t){return 0<s.__compareToBigInt(e,t)}},{key:"greaterThanOrEqual",value:function(e,t){return 0<=s.__compareToBigInt(e,t)}},{key:"equal",value:function(e,t){if(e.sign!==t.sign||e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(e.__digit(n)!==t.__digit(n))return!1;return!0}},{key:"notEqual",value:function(e,t){return!s.equal(e,t)}},{key:"bitwiseAnd",value:function(e,t){if(!e.sign&&!t.sign)return s.__absoluteAnd(e,t).__trim();if(e.sign&&t.sign){var n=o(e.length,t.length)+1,i=s.__absoluteSubOne(e,n),r=s.__absoluteSubOne(t);return i=s.__absoluteOr(i,r,i),s.__absoluteAddOne(i,!0,i).__trim()}if(e.sign){var a=[t,e];e=a[0],t=a[1]}return s.__absoluteAndNot(e,s.__absoluteSubOne(t)).__trim()}},{key:"bitwiseXor",value:function(e,t){if(!e.sign&&!t.sign)return s.__absoluteXor(e,t).__trim();if(e.sign&&t.sign){var n=o(e.length,t.length),i=s.__absoluteSubOne(e,n),r=s.__absoluteSubOne(t);return s.__absoluteXor(i,r,i).__trim()}var a=o(e.length,t.length)+1;if(e.sign){var u=[t,e];e=u[0],t=u[1]}var c=s.__absoluteSubOne(t,a);return c=s.__absoluteXor(c,e,c),s.__absoluteAddOne(c,!0,c).__trim()}},{key:"bitwiseOr",value:function(e,t){var n=o(e.length,t.length);if(!e.sign&&!t.sign)return s.__absoluteOr(e,t).__trim();if(e.sign&&t.sign){var i=s.__absoluteSubOne(e,n),r=s.__absoluteSubOne(t);return i=s.__absoluteAnd(i,r,i),s.__absoluteAddOne(i,!0,i).__trim()}if(e.sign){var a=[t,e];e=a[0],t=a[1]}var u=s.__absoluteSubOne(t,n);return u=s.__absoluteAndNot(u,e,u),s.__absoluteAddOne(u,!0,u).__trim()}},{key:"asIntN",value:function(e,t){if(0===t.length)return t;if(0>(e=a(e)))throw RangeError("Invalid value: not (convertible to) a safe integer");if(0===e)return s.__zero();if(e>=s.__kMaxLengthBits)return t;var n=0|(e+29)/30;if(t.length<n)return t;var i=t.__unsignedDigit(n-1),r=1<<(e-1)%30;if(t.length===n&&i<r)return t;if((i&r)!==r)return s.__truncateToNBits(e,t);if(!t.sign)return s.__truncateAndSubFromPowerOfTwo(e,t,!0);if(0==(i&r-1)){for(var o=n-2;0<=o;o--)if(0!==t.__digit(o))return s.__truncateAndSubFromPowerOfTwo(e,t,!1);return t.length===n&&i===r?t:s.__truncateToNBits(e,t)}return s.__truncateAndSubFromPowerOfTwo(e,t,!1)}},{key:"asUintN",value:function(e,t){if(0===t.length)return t;if(0>(e=a(e)))throw RangeError("Invalid value: not (convertible to) a safe integer");if(0===e)return s.__zero();if(t.sign){if(e>s.__kMaxLengthBits)throw RangeError("BigInt too big");return s.__truncateAndSubFromPowerOfTwo(e,t,!1)}if(e>=s.__kMaxLengthBits)return t;var n=0|(e+29)/30;if(t.length<n)return t;var i=e%30;return t.length==n&&(0===i||0==t.__digit(n-1)>>>i)?t:s.__truncateToNBits(e,t)}},{key:"ADD",value:function(e,t){if(e=s.__toPrimitive(e),t=s.__toPrimitive(t),"string"==typeof e)return"string"!=typeof t&&(t=t.toString()),e+t;if("string"==typeof t)return e.toString()+t;if(e=s.__toNumeric(e),t=s.__toNumeric(t),s.__isBigInt(e)&&s.__isBigInt(t))return s.add(e,t);if("number"==typeof e&&"number"==typeof t)return e+t;throw TypeError("Cannot mix BigInt and other types, use explicit conversions")}},{key:"LT",value:function(e,t){return s.__compare(e,t,0)}},{key:"LE",value:function(e,t){return s.__compare(e,t,1)}},{key:"GT",value:function(e,t){return s.__compare(e,t,2)}},{key:"GE",value:function(e,t){return s.__compare(e,t,3)}},{key:"EQ",value:function(e,t){for(;;){if(s.__isBigInt(e))return s.__isBigInt(t)?s.equal(e,t):s.EQ(t,e);if("number"==typeof e){if(s.__isBigInt(t))return s.__equalToNumber(t,e);if("object"!==y(t))return e==t;t=s.__toPrimitive(t)}else if("string"==typeof e){if(s.__isBigInt(t))return null!==(e=s.__fromString(e))&&s.equal(e,t);if("object"!==y(t))return e==t;t=s.__toPrimitive(t)}else if("boolean"==typeof e){if(s.__isBigInt(t))return s.__equalToNumber(t,+e);if("object"!==y(t))return e==t;t=s.__toPrimitive(t)}else if("symbol"===y(e)){if(s.__isBigInt(t))return!1;if("object"!==y(t))return e==t;t=s.__toPrimitive(t)}else{if("object"!==y(e)||"object"===y(t)&&t.constructor!==s)return e==t;e=s.__toPrimitive(e)}}}},{key:"NE",value:function(e,t){return!s.EQ(e,t)}},{key:"DataViewGetBigInt64",value:function(e,t){var n=!!(2<arguments.length&&void 0!==arguments[2])&&arguments[2];return s.asIntN(64,s.DataViewGetBigUint64(e,t,n))}},{key:"DataViewGetBigUint64",value:function(e,t){var n=!!(2<arguments.length&&void 0!==arguments[2])&&arguments[2],i=l(n?[4,0]:[0,4],2),r=i[0],o=i[1],a=e.getUint32(t+r,n),u=e.getUint32(t+o,n),c=new s(3,!1);return c.__setDigit(0,1073741823&u),c.__setDigit(1,(268435455&a)<<2|u>>>30),c.__setDigit(2,a>>>28),c.__trim()}},{key:"DataViewSetBigInt64",value:function(e,t,n){var i=!!(3<arguments.length&&void 0!==arguments[3])&&arguments[3];s.DataViewSetBigUint64(e,t,n,i)}},{key:"DataViewSetBigUint64",value:function(e,t,n){var i=!!(3<arguments.length&&void 0!==arguments[3])&&arguments[3];n=s.asUintN(64,n);var r=0,o=0;if(0<n.length&&(o=n.__digit(0),1<n.length)){var a=n.__digit(1);o|=a<<30,r=a>>>2,2<n.length&&(r|=n.__digit(2)<<28)}var u=l(i?[4,0]:[0,4],2),c=u[0],f=u[1];e.setUint32(t+c,r,i),e.setUint32(t+f,o,i)}},{key:"__zero",value:function(){return new s(0,!1)}},{key:"__oneDigit",value:function(e,t){var n=new s(1,t);return n.__setDigit(0,e),n}},{key:"__decideRounding",value:function(e,t,n,i){if(0<t)return -1;if(0>t)r=-t-1;else{if(0===n)return -1;n--,i=e.__digit(n),r=29}var r,o=1<<r;if(0==(i&o))return -1;if(0!=(i&(o-=1)))return 1;for(;0<n;)if(n--,0!==e.__digit(n))return 1;return 0}},{key:"__fromDouble",value:function(e){s.__kBitConversionDouble[0]=e;var t,n=(2047&s.__kBitConversionInts[1]>>>20)-1023,i=(0|n/30)+1,r=new s(i,0>e),o=1048575&s.__kBitConversionInts[1]|1048576,a=s.__kBitConversionInts[0],u=20,c=n%30,l=0;if(c<20){var f=u-c;l=f+32,t=o>>>f,o=o<<32-f|a>>>f,a<<=32-f}else if(c===u)l=32,t=o,o=a,a=0;else{var d=c-u;l=32-d,t=o<<d|a>>>32-d,o=a<<d,a=0}r.__setDigit(i-1,t);for(var h=i-2;0<=h;h--)0<l?(l-=30,t=o>>>2,o=o<<30|a>>>2,a<<=30):t=0,r.__setDigit(h,t);return r.__trim()}},{key:"__isWhitespace",value:function(e){return!!(13>=e&&9<=e)||(159>=e?32==e:131071>=e?160==e||5760==e:196607>=e?10>=(e&=131071)||40==e||41==e||47==e||95==e||4096==e:65279==e)}},{key:"__fromString",value:function(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:0,n=0,i=e.length,r=0;if(0===i)return s.__zero();for(var o=e.charCodeAt(r);s.__isWhitespace(o);){if(++r===i)return s.__zero();o=e.charCodeAt(r)}if(43===o){if(++r===i)return null;o=e.charCodeAt(r),n=1}else if(45===o){if(++r===i)return null;o=e.charCodeAt(r),n=-1}if(0===t){if(t=10,48===o){if(++r===i)return s.__zero();if(88===(o=e.charCodeAt(r))||120===o){if(t=16,++r===i)return null;o=e.charCodeAt(r)}else if(79===o||111===o){if(t=8,++r===i)return null;o=e.charCodeAt(r)}else if(66===o||98===o){if(t=2,++r===i)return null;o=e.charCodeAt(r)}}}else if(16===t&&48===o){if(++r===i)return s.__zero();if(88===(o=e.charCodeAt(r))||120===o){if(++r===i)return null;o=e.charCodeAt(r)}}if(0!==n&&10!==t)return null;for(;48===o;){if(++r===i)return s.__zero();o=e.charCodeAt(r)}var a=i-r,u=s.__kMaxBitsPerChar[t],c=s.__kBitsPerCharTableMultiplier-1;if(a>1073741824/u)return null;var l=u*a+c>>>s.__kBitsPerCharTableShift,f=new s(0|(l+29)/30,!1),d=10>t?t:10,h=10<t?t-10:0;if(0==(t&t-1)){u>>=s.__kBitsPerCharTableShift;var g=[],_=[],p=!1;do{for(var v,m=0,y=0;;){if(v=void 0,o-48>>>0<d)v=o-48;else if((32|o)-97>>>0<h)v=(32|o)-87;else{p=!0;break}if(y+=u,m=m<<u|v,++r===i){p=!0;break}if(o=e.charCodeAt(r),30<y+u)break}g.push(m),_.push(y)}while(!p);s.__fillFromParts(f,g,_)}else{f.__initializeDigits();var w=!1,b=0;do{for(var k,C=0,x=1;;){if(k=void 0,o-48>>>0<d)k=o-48;else if((32|o)-97>>>0<h)k=(32|o)-87;else{w=!0;break}var S=x*t;if(1073741823<S)break;if(x=S,C=C*t+k,b++,++r===i){w=!0;break}o=e.charCodeAt(r)}var A=0|(u*b+(c=30*s.__kBitsPerCharTableMultiplier-1)>>>s.__kBitsPerCharTableShift)/30;f.__inplaceMultiplyAdd(x,C,A)}while(!w)}if(r!==i){if(!s.__isWhitespace(o))return null;for(r++;r<i;r++)if(o=e.charCodeAt(r),!s.__isWhitespace(o))return null}return f.sign=-1===n,f.__trim()}},{key:"__fillFromParts",value:function(e,t,n){for(var i=0,r=0,o=0,a=t.length-1;0<=a;a--){var u=t[a],s=n[a];r|=u<<o,30===(o+=s)?(e.__setDigit(i++,r),o=0,r=0):30<o&&(e.__setDigit(i++,1073741823&r),o-=30,r=u>>>s-o)}if(0!==r){if(i>=e.length)throw Error("implementation bug");e.__setDigit(i++,r)}for(;i<e.length;i++)e.__setDigit(i,0)}},{key:"__toStringBasePowerOfTwo",value:function(e,t){var n=e.length,i=t-1,r=i=(15&(i=(51&(i=(85&i>>>1)+(85&i))>>>2)+(51&i))>>>4)+(15&i),o=t-1,a=e.__digit(n-1),u=0|(30*n-s.__clz30(a)+r-1)/r;if(e.sign&&u++,268435456<u)throw Error("string too long");for(var c=Array(u),l=u-1,f=0,d=0,h=0;h<n-1;h++){var g=e.__digit(h),_=(f|g<<d)&o;c[l--]=s.__kConversionChars[_];var p=r-d;for(f=g>>>p,d=30-p;d>=r;)c[l--]=s.__kConversionChars[f&o],f>>>=r,d-=r}var v=(f|a<<d)&o;for(c[l--]=s.__kConversionChars[v],f=a>>>r-d;0!==f;)c[l--]=s.__kConversionChars[f&o],f>>>=r;if(e.sign&&(c[l--]="-"),-1!==l)throw Error("implementation bug");return c.join("")}},{key:"__toStringGeneric",value:function(e,t,n){var i=e.length;if(0===i)return"";if(1===i){var r=e.__unsignedDigit(0).toString(t);return!1===n&&e.sign&&(r="-"+r),r}var o=30*i-s.__clz30(e.__digit(i-1)),a=s.__kMaxBitsPerChar[t]-1,u=o*s.__kBitsPerCharTableMultiplier;u+=a-1;var c,l,f=(u=0|u/a)+1>>1,d=s.exponentiate(s.__oneDigit(t,!1),s.__oneDigit(f,!1)),h=d.__unsignedDigit(0);if(1===d.length&&32767>=h){(c=new s(e.length,!1)).__initializeDigits();for(var g,_=0,p=2*e.length-1;0<=p;p--)g=_<<15|e.__halfDigit(p),c.__setHalfDigit(p,0|g/h),_=0|g%h;l=_.toString(t)}else{var v=s.__absoluteDivLarge(e,d,!0,!0);c=v.quotient;var m=v.remainder.__trim();l=s.__toStringGeneric(m,t,!0)}c.__trim();for(var y=s.__toStringGeneric(c,t,!0);l.length<f;)l="0"+l;return!1===n&&e.sign&&(y="-"+y),y+l}},{key:"__unequalSign",value:function(e){return e?-1:1}},{key:"__absoluteGreater",value:function(e){return e?-1:1}},{key:"__absoluteLess",value:function(e){return e?1:-1}},{key:"__compareToBigInt",value:function(e,t){var n=e.sign;if(n!==t.sign)return s.__unequalSign(n);var i=s.__absoluteCompare(e,t);return 0<i?s.__absoluteGreater(n):0>i?s.__absoluteLess(n):0}},{key:"__compareToNumber",value:function(e,t){if(s.__isOneDigitInt(t)){var i=e.sign,r=0>t;if(i!==r)return s.__unequalSign(i);if(0===e.length){if(r)throw Error("implementation bug");return 0===t?0:-1}if(1<e.length)return s.__absoluteGreater(i);var o=n(t),a=e.__unsignedDigit(0);return a>o?s.__absoluteGreater(i):a<o?s.__absoluteLess(i):0}return s.__compareToDouble(e,t)}},{key:"__compareToDouble",value:function(e,t){if(t!=t)return t;if(t===1/0)return -1;if(t===-1/0)return 1;var n=e.sign;if(n!==0>t)return s.__unequalSign(n);if(0===t)throw Error("implementation bug: should be handled elsewhere");if(0===e.length)return -1;s.__kBitConversionDouble[0]=t;var i=2047&s.__kBitConversionInts[1]>>>20;if(2047==i)throw Error("implementation bug: handled elsewhere");var r=i-1023;if(0>r)return s.__absoluteGreater(n);var o=e.length,a=e.__digit(o-1),u=s.__clz30(a),c=30*o-u,l=r+1;if(c<l)return s.__absoluteLess(n);if(c>l)return s.__absoluteGreater(n);var f=1048576|1048575&s.__kBitConversionInts[1],d=s.__kBitConversionInts[0],h=20,g=29-u;if(g!==(0|(c-1)%30))throw Error("implementation bug");var _,p=0;if(g<h){var v=h-g;p=v+32,_=f>>>v,f=f<<32-v|d>>>v,d<<=32-v}else if(g===h)p=32,_=f,f=d,d=0;else{var m=g-h;p=32-m,_=f<<m|d>>>32-m,f=d<<m,d=0}if((a>>>=0)>(_>>>=0))return s.__absoluteGreater(n);if(a<_)return s.__absoluteLess(n);for(var y=o-2;0<=y;y--){0<p?(p-=30,_=f>>>2,f=f<<30|d>>>2,d<<=30):_=0;var w=e.__unsignedDigit(y);if(w>_)return s.__absoluteGreater(n);if(w<_)return s.__absoluteLess(n)}if(0!==f||0!==d){if(0===p)throw Error("implementation bug");return s.__absoluteLess(n)}return 0}},{key:"__equalToNumber",value:function(e,t){return s.__isOneDigitInt(t)?0===t?0===e.length:1===e.length&&e.sign===0>t&&e.__unsignedDigit(0)===n(t):0===s.__compareToDouble(e,t)}},{key:"__comparisonResultToBool",value:function(e,t){return 0===t?0>e:1===t?0>=e:2===t?0<e:3===t?0<=e:void 0}},{key:"__compare",value:function(e,t,n){if(e=s.__toPrimitive(e),t=s.__toPrimitive(t),"string"==typeof e&&"string"==typeof t)switch(n){case 0:return e<t;case 1:return e<=t;case 2:return e>t;case 3:return e>=t}if(s.__isBigInt(e)&&"string"==typeof t)return null!==(t=s.__fromString(t))&&s.__comparisonResultToBool(s.__compareToBigInt(e,t),n);if("string"==typeof e&&s.__isBigInt(t))return null!==(e=s.__fromString(e))&&s.__comparisonResultToBool(s.__compareToBigInt(e,t),n);if(e=s.__toNumeric(e),t=s.__toNumeric(t),s.__isBigInt(e)){if(s.__isBigInt(t))return s.__comparisonResultToBool(s.__compareToBigInt(e,t),n);if("number"!=typeof t)throw Error("implementation bug");return s.__comparisonResultToBool(s.__compareToNumber(e,t),n)}if("number"!=typeof e)throw Error("implementation bug");if(s.__isBigInt(t))return s.__comparisonResultToBool(s.__compareToNumber(t,e),2^n);if("number"!=typeof t)throw Error("implementation bug");return 0===n?e<t:1===n?e<=t:2===n?e>t:3===n?e>=t:void 0}},{key:"__absoluteAdd",value:function(e,t,n){if(e.length<t.length)return s.__absoluteAdd(t,e,n);if(0===e.length)return e;if(0===t.length)return e.sign===n?e:s.unaryMinus(e);var i=e.length;(0===e.__clzmsd()||t.length===e.length&&0===t.__clzmsd())&&i++;for(var r,o=new s(i,n),a=0,u=0;u<t.length;u++)a=(r=e.__digit(u)+t.__digit(u)+a)>>>30,o.__setDigit(u,1073741823&r);for(;u<e.length;u++){var c=e.__digit(u)+a;a=c>>>30,o.__setDigit(u,1073741823&c)}return u<o.length&&o.__setDigit(u,a),o.__trim()}},{key:"__absoluteSub",value:function(e,t,n){if(0===e.length)return e;if(0===t.length)return e.sign===n?e:s.unaryMinus(e);for(var i,r=new s(e.length,n),o=0,a=0;a<t.length;a++)o=1&(i=e.__digit(a)-t.__digit(a)-o)>>>30,r.__setDigit(a,1073741823&i);for(;a<e.length;a++){var u=e.__digit(a)-o;o=1&u>>>30,r.__setDigit(a,1073741823&u)}return r.__trim()}},{key:"__absoluteAddOne",value:function(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null,i=e.length;null===n?n=new s(i,t):n.sign=t;for(var r,o=1,a=0;a<i;a++)o=(r=e.__digit(a)+o)>>>30,n.__setDigit(a,1073741823&r);return 0!==o&&n.__setDigitGrow(i,1),n}},{key:"__absoluteSubOne",value:function(e,t){var n=e.length;t=t||n;for(var i,r=new s(t,!1),o=1,a=0;a<n;a++)o=1&(i=e.__digit(a)-o)>>>30,r.__setDigit(a,1073741823&i);if(0!==o)throw Error("implementation bug");for(var u=n;u<t;u++)r.__setDigit(u,0);return r}},{key:"__absoluteAnd",value:function(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null,i=e.length,r=t.length,o=r;if(i<r){o=i;var a=e,u=i;e=t,i=r,t=a,r=u}var c=o;null===n?n=new s(c,!1):c=n.length;for(var l=0;l<o;l++)n.__setDigit(l,e.__digit(l)&t.__digit(l));for(;l<c;l++)n.__setDigit(l,0);return n}},{key:"__absoluteAndNot",value:function(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null,i=e.length,r=t.length,o=r;i<r&&(o=i);var a=i;null===n?n=new s(a,!1):a=n.length;for(var u=0;u<o;u++)n.__setDigit(u,e.__digit(u)&~t.__digit(u));for(;u<i;u++)n.__setDigit(u,e.__digit(u));for(;u<a;u++)n.__setDigit(u,0);return n}},{key:"__absoluteOr",value:function(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null,i=e.length,r=t.length,o=r;if(i<r){o=i;var a=e,u=i;e=t,i=r,t=a,r=u}var c=i;null===n?n=new s(c,!1):c=n.length;for(var l=0;l<o;l++)n.__setDigit(l,e.__digit(l)|t.__digit(l));for(;l<i;l++)n.__setDigit(l,e.__digit(l));for(;l<c;l++)n.__setDigit(l,0);return n}},{key:"__absoluteXor",value:function(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null,i=e.length,r=t.length,o=r;if(i<r){o=i;var a=e,u=i;e=t,i=r,t=a,r=u}var c=i;null===n?n=new s(c,!1):c=n.length;for(var l=0;l<o;l++)n.__setDigit(l,e.__digit(l)^t.__digit(l));for(;l<i;l++)n.__setDigit(l,e.__digit(l));for(;l<c;l++)n.__setDigit(l,0);return n}},{key:"__absoluteCompare",value:function(e,t){var n=e.length-t.length;if(0!=n)return n;for(var i=e.length-1;0<=i&&e.__digit(i)===t.__digit(i);)i--;return 0>i?0:e.__unsignedDigit(i)>t.__unsignedDigit(i)?1:-1}},{key:"__multiplyAccumulate",value:function(e,t,n,i){if(0!==t){for(var r=32767&t,o=t>>>15,a=0,u=0,c=0;c<e.length;c++,i++){var l=n.__digit(i),f=e.__digit(c),d=32767&f,h=f>>>15,g=s.__imul(d,r),_=s.__imul(d,o),p=s.__imul(h,r),v=s.__imul(h,o);l+=u+g+a,a=l>>>30,l&=1073741823,l+=((32767&_)<<15)+((32767&p)<<15),a+=l>>>30,u=v+(_>>>15)+(p>>>15),n.__setDigit(i,1073741823&l)}for(;0!==a||0!==u;i++){var m=n.__digit(i);m+=a+u,u=0,a=m>>>30,n.__setDigit(i,1073741823&m)}}}},{key:"__internalMultiplyAdd",value:function(e,t,n,i,r){for(var o=n,a=0,u=0;u<i;u++){var c=e.__digit(u),l=s.__imul(32767&c,t),f=s.__imul(c>>>15,t),d=l+((32767&f)<<15)+a+o;o=d>>>30,a=f>>>15,r.__setDigit(u,1073741823&d)}if(r.length>i)for(r.__setDigit(i++,o+a);i<r.length;)r.__setDigit(i++,0);else if(0!==o+a)throw Error("implementation bug")}},{key:"__absoluteDivSmall",value:function(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;null===n&&(n=new s(e.length,!1));for(var i=0,r=2*e.length-1;0<=r;r-=2){var o=(i<<15|e.__halfDigit(r))>>>0,a=0|o/t,u=0|(o=((i=0|o%t)<<15|e.__halfDigit(r-1))>>>0)/t;i=0|o%t,n.__setDigit(r>>>1,a<<15|u)}return n}},{key:"__absoluteModSmall",value:function(e,t){for(var n=0,i=2*e.length-1;0<=i;i--)n=0|((n<<15|e.__halfDigit(i))>>>0)%t;return n}},{key:"__absoluteDivLarge",value:function(e,t,n,i){var r=t.__halfDigitLength(),o=t.length,a=e.__halfDigitLength()-r,u=null;n&&(u=new s(a+2>>>1,!1)).__initializeDigits();var c=new s(r+2>>>1,!1);c.__initializeDigits();var l=s.__clz15(t.__halfDigit(r-1));0<l&&(t=s.__specialLeftShift(t,l,0));for(var f=s.__specialLeftShift(e,l,1),d=t.__halfDigit(r-1),h=0,g=a;0<=g;g--){var _=32767,p=f.__halfDigit(g+r);if(p!==d){var v=(p<<15|f.__halfDigit(g+r-1))>>>0;_=0|v/d;for(var m=0|v%d,y=t.__halfDigit(r-2),w=f.__halfDigit(g+r-2);s.__imul(_,y)>>>0>(m<<16|w)>>>0&&(_--,!(32767<(m+=d))););}s.__internalMultiplyAdd(t,_,0,o,c);var b=f.__inplaceSub(c,g,r+1);0!==b&&(b=f.__inplaceAdd(t,g,r),f.__setHalfDigit(g+r,32767&f.__halfDigit(g+r)+b),_--),n&&(1&g?h=_<<15:u.__setDigit(g>>>1,h|_))}if(i)return f.__inplaceRightShift(l),n?{quotient:u,remainder:f}:f;if(n)return u;throw Error("unreachable")}},{key:"__clz15",value:function(e){return s.__clz30(e)-15}},{key:"__specialLeftShift",value:function(e,t,n){var i=e.length,r=new s(i+n,!1);if(0===t){for(var o=0;o<i;o++)r.__setDigit(o,e.__digit(o));return 0<n&&r.__setDigit(i,0),r}for(var a,u=0,c=0;c<i;c++)a=e.__digit(c),r.__setDigit(c,1073741823&a<<t|u),u=a>>>30-t;return 0<n&&r.__setDigit(i,u),r}},{key:"__leftShiftByAbsolute",value:function(e,t){var n=s.__toShiftAmount(t);if(0>n)throw RangeError("BigInt too big");var i=0|n/30,r=n%30,o=e.length,a=0!==r&&0!=e.__digit(o-1)>>>30-r,u=o+i+(a?1:0),c=new s(u,e.sign);if(0===r){for(var l=0;l<i;l++)c.__setDigit(l,0);for(;l<u;l++)c.__setDigit(l,e.__digit(l-i))}else{for(var f=0,d=0;d<i;d++)c.__setDigit(d,0);for(var h,g=0;g<o;g++)h=e.__digit(g),c.__setDigit(g+i,1073741823&h<<r|f),f=h>>>30-r;if(a)c.__setDigit(o+i,f);else if(0!==f)throw Error("implementation bug")}return c.__trim()}},{key:"__rightShiftByAbsolute",value:function(e,t){var n=e.length,i=e.sign,r=s.__toShiftAmount(t);if(0>r)return s.__rightShiftByMaximum(i);var o=0|r/30,a=r%30,u=n-o;if(0>=u)return s.__rightShiftByMaximum(i);var c=!1;if(i){if(0!=(e.__digit(o)&(1<<a)-1))c=!0;else for(var l=0;l<o;l++)if(0!==e.__digit(l)){c=!0;break}}c&&0===a&&0==~e.__digit(n-1)&&u++;var f=new s(u,i);if(0===a){f.__setDigit(u-1,0);for(var d=o;d<n;d++)f.__setDigit(d-o,e.__digit(d))}else{for(var h,g=e.__digit(o)>>>a,_=n-o-1,p=0;p<_;p++)h=e.__digit(p+o+1),f.__setDigit(p,1073741823&h<<30-a|g),g=h>>>a;f.__setDigit(_,g)}return c&&(f=s.__absoluteAddOne(f,!0,f)),f.__trim()}},{key:"__rightShiftByMaximum",value:function(e){return e?s.__oneDigit(1,!0):s.__zero()}},{key:"__toShiftAmount",value:function(e){if(1<e.length)return -1;var t=e.__unsignedDigit(0);return t>s.__kMaxLengthBits?-1:t}},{key:"__toPrimitive",value:function(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:"default";if("object"!==y(e)||e.constructor===s)return e;if("undefined"!=typeof Symbol&&"symbol"===y(Symbol.toPrimitive)){var n=e[Symbol.toPrimitive];if(n){var i=n(t);if("object"!==y(i))return i;throw TypeError("Cannot convert object to primitive value")}}var r=e.valueOf;if(r){var o=r.call(e);if("object"!==y(o))return o}var a=e.toString;if(a){var u=a.call(e);if("object"!==y(u))return u}throw TypeError("Cannot convert object to primitive value")}},{key:"__toNumeric",value:function(e){return s.__isBigInt(e)?e:+e}},{key:"__isBigInt",value:function(e){return"object"===y(e)&&null!==e&&e.constructor===s}},{key:"__truncateToNBits",value:function(e,t){for(var n=0|(e+29)/30,i=new s(n,t.sign),r=n-1,o=0;o<r;o++)i.__setDigit(o,t.__digit(o));var a=t.__digit(r);if(0!=e%30){var u=32-e%30;a=a<<u>>>u}return i.__setDigit(r,a),i.__trim()}},{key:"__truncateAndSubFromPowerOfTwo",value:function(e,t,n){for(var i,r=Math.min,o=0|(e+29)/30,a=new s(o,n),u=0,c=o-1,l=0,f=r(c,t.length);u<f;u++)l=1&(i=0-t.__digit(u)-l)>>>30,a.__setDigit(u,1073741823&i);for(;u<c;u++)a.__setDigit(u,0|1073741823&-l);var d,h=c<t.length?t.__digit(c):0,g=e%30;if(0===g)d=0-h-l&1073741823;else{var _=32-g;h=h<<_>>>_;var p=1<<32-_;d=p-h-l&p-1}return a.__setDigit(c,d),a.__trim()}},{key:"__digitPow",value:function(e,t){for(var n=1;0<t;)1&t&&(n*=e),t>>>=1,e*=e;return n}},{key:"__isOneDigitInt",value:function(e){return(1073741823&e)===e}}]),s}(C(Array));return x.__kMaxLength=33554432,x.__kMaxLengthBits=x.__kMaxLength<<5,x.__kMaxBitsPerChar=[0,0,32,51,64,75,83,90,96,102,107,111,115,119,122,126,128,131,134,136,139,141,143,145,147,149,151,153,154,156,158,159,160,162,163,165,166],x.__kBitsPerCharTableShift=5,x.__kBitsPerCharTableMultiplier=1<<x.__kBitsPerCharTableShift,x.__kConversionChars=["0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z"],x.__kBitConversionBuffer=new ArrayBuffer(8),x.__kBitConversionDouble=new Float64Array(x.__kBitConversionBuffer),x.__kBitConversionInts=new Int32Array(x.__kBitConversionBuffer),x.__clz30=m?function(e){return m(e)-2}:function(e){var t=Math.LN2,n=Math.log;return 0===e?30:0|29-(0|n(e>>>0)/t)},x.__imul=v||function(e,t){return 0|e*t},x})},25815:function(e){function t(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=Array(t);n<t;n++)i[n]=e[n];return i}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},28649:function(e){function t(e){if(Array.isArray(e))return e}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},30167:function(e,t,n){var i=n(25815);function r(e){if(Array.isArray(e))return i(e)}e.exports=r,e.exports.__esModule=!0,e.exports.default=e.exports},37487:function(e){function t(e,t,n,i,r,o,a){try{var u=e[o](a),s=u.value}catch(c){n(c);return}u.done?t(s):Promise.resolve(s).then(i,r)}function n(e){return function(){var n=this,i=arguments;return new Promise(function(r,o){var a=e.apply(n,i);function u(e){t(a,r,o,u,s,"next",e)}function s(e){t(a,r,o,u,s,"throw",e)}u(void 0)})}}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports},42715:function(e){function t(e,t){return null!=t&&"undefined"!=typeof Symbol&&t[Symbol.hasInstance]?!!t[Symbol.hasInstance](e):e instanceof t}function n(e,n){if(!t(e,n))throw TypeError("Cannot call a class as a function")}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports},28518:function(e,t,n){var i=n(87308);function r(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,i(r.key),r)}}function o(e,t,n){return t&&r(e.prototype,t),n&&r(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}e.exports=o,e.exports.__esModule=!0,e.exports.default=e.exports},20480:function(e,t,n){var i=n(87308);function r(e,t,n){return(t=i(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}e.exports=r,e.exports.__esModule=!0,e.exports.default=e.exports},30011:function(e){function t(e){return e&&e.__esModule?e:{default:e}}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},4813:function(e){function t(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},43037:function(e){function t(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var i,r,o,a,u=[],s=!0,c=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(i=o.call(n)).done)&&(u.push(i.value),u.length!==t);s=!0);}catch(l){c=!0,r=l}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw r}}return u}}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},39735:function(e){function t(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},68644:function(e){function t(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},22889:function(e,t,n){function i(e,t){return null!=t&&"undefined"!=typeof Symbol&&t[Symbol.hasInstance]?!!t[Symbol.hasInstance](e):e instanceof t}var r=n(42481).default;function o(){"use strict";/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */var t=function(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]},n=function(e,t,n,r){var o=Object.create((t&&i(t.prototype,u)?t:u).prototype);return b(o,"_invoke",{value:d(e,n,new _(r||[]))}),o},a=function(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(i){return{type:"throw",arg:i}}},u=function(){},s=function(){},c=function(){},l=function(e){["next","throw","return"].forEach(function(n){t(e,n,function(e){return this._invoke(n,e)})})},f=function(e,t){var n;function i(n,o,u,s){var c=a(e[n],e,o);if("throw"!==c.type){var l=c.arg,f=l.value;return f&&"object"==r(f)&&w.call(f,"__await")?t.resolve(f.__await).then(function(e){i("next",e,u,s)},function(e){i("throw",e,u,s)}):t.resolve(f).then(function(e){l.value=e,u(l)},function(e){return i("throw",e,u,s)})}s(c.arg)}b(this,"_invoke",{value:function(e,r){function o(){return new t(function(t,n){i(e,r,t,n)})}return n=n?n.then(o,o):o()}})},d=function(e,t,n){var i=O;return function(r,o){if(i===I)throw Error("Generator is already running");if(i===P){if("throw"===r)throw o;return{value:v,done:!0}}for(n.method=r,n.arg=o;;){var u=n.delegate;if(u){var s=W(u,n);if(s){if(s===j)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(i===O)throw i=P,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);i=I;var c=a(e,t,n);if("normal"===c.type){if(i=n.done?P:D,c.arg===j)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(i=P,n.method="throw",n.arg=c.arg)}}},h=function(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)},g=function(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t},_=function(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(h,this),this.reset(!0)},p=function(e){if(e||""===e){var t=e[C];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,i=function t(){for(;++n<e.length;)if(w.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=v,t.done=!0,t};return i.next=i}}throw TypeError(r(e)+" is not iterable")};e.exports=o=function(){return m},e.exports.__esModule=!0,e.exports.default=e.exports;var v,m={},y=Object.prototype,w=y.hasOwnProperty,b=Object.defineProperty||function(e,t,n){e[t]=n.value},k="function"==typeof Symbol?Symbol:{},C=k.iterator||"@@iterator",x=k.asyncIterator||"@@asyncIterator",S=k.toStringTag||"@@toStringTag";try{t({},"")}catch(A){t=function(e,t,n){return e[t]=n}}m.wrap=n;var O="suspendedStart",D="suspendedYield",I="executing",P="completed",j={},E={};t(E,C,function(){return this});var M=Object.getPrototypeOf,T=M&&M(M(p([])));T&&T!==y&&w.call(T,C)&&(E=T);var B=c.prototype=u.prototype=Object.create(E);function W(e,t){var n=t.method,i=e.iterator[n];if(i===v)return t.delegate=null,"throw"===n&&e.iterator.return&&(t.method="return",t.arg=v,W(e,t),"throw"===t.method)||"return"!==n&&(t.method="throw",t.arg=TypeError("The iterator does not provide a '"+n+"' method")),j;var r=a(i,e.iterator,t.arg);if("throw"===r.type)return t.method="throw",t.arg=r.arg,t.delegate=null,j;var o=r.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=v),t.delegate=null,j):o:(t.method="throw",t.arg=TypeError("iterator result is not an object"),t.delegate=null,j)}return s.prototype=c,b(B,"constructor",{value:c,configurable:!0}),b(c,"constructor",{value:s,configurable:!0}),s.displayName=t(c,S,"GeneratorFunction"),m.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===s||"GeneratorFunction"===(t.displayName||t.name))},m.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,t(e,S,"GeneratorFunction")),e.prototype=Object.create(B),e},m.awrap=function(e){return{__await:e}},l(f.prototype),t(f.prototype,x,function(){return this}),m.AsyncIterator=f,m.async=function(e,t,i,r,o){void 0===o&&(o=Promise);var a=new f(n(e,t,i,r),o);return m.isGeneratorFunction(t)?a:a.next().then(function(e){return e.done?e.value:a.next()})},l(B),t(B,S,"Generator"),t(B,C,function(){return this}),t(B,"toString",function(){return"[object Generator]"}),m.keys=function(e){var t=Object(e),n=[];for(var i in t)n.push(i);return n.reverse(),function e(){for(;n.length;){var i=n.pop();if(i in t)return e.value=i,e.done=!1,e}return e.done=!0,e}},m.values=p,_.prototype={constructor:_,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=v,this.done=!1,this.delegate=null,this.method="next",this.arg=v,this.tryEntries.forEach(g),!e)for(var t in this)"t"===t.charAt(0)&&w.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=v)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){var t=function(t,i){return o.type="throw",o.arg=e,n.next=t,i&&(n.method="next",n.arg=v),!!i};if(this.done)throw e;for(var n=this,i=this.tryEntries.length-1;i>=0;--i){var r=this.tryEntries[i],o=r.completion;if("root"===r.tryLoc)return t("end");if(r.tryLoc<=this.prev){var a=w.call(r,"catchLoc"),u=w.call(r,"finallyLoc");if(a&&u){if(this.prev<r.catchLoc)return t(r.catchLoc,!0);if(this.prev<r.finallyLoc)return t(r.finallyLoc)}else if(a){if(this.prev<r.catchLoc)return t(r.catchLoc,!0)}else{if(!u)throw Error("try statement without catch or finally");if(this.prev<r.finallyLoc)return t(r.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&w.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var r=i;break}}r&&("break"===e||"continue"===e)&&r.tryLoc<=t&&t<=r.finallyLoc&&(r=null);var o=r?r.completion:{};return o.type=e,o.arg=t,r?(this.method="next",this.next=r.finallyLoc,j):this.complete(o)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),j},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),g(n),j}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var i=n.completion;if("throw"===i.type){var r=i.arg;g(n)}return r}}throw Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:p(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=v),j}},m}e.exports=o,e.exports.__esModule=!0,e.exports.default=e.exports},36384:function(e,t,n){var i=n(28649),r=n(43037),o=n(11562),a=n(39735);function u(e,t){return i(e)||r(e,t)||o(e,t)||a()}e.exports=u,e.exports.__esModule=!0,e.exports.default=e.exports},58254:function(e,t,n){var i=n(28649),r=n(4813),o=n(11562),a=n(39735);function u(e){return i(e)||r(e)||o(e)||a()}e.exports=u,e.exports.__esModule=!0,e.exports.default=e.exports},26209:function(e,t,n){var i=n(30167),r=n(4813),o=n(11562),a=n(68644);function u(e){return i(e)||r(e)||o(e)||a()}e.exports=u,e.exports.__esModule=!0,e.exports.default=e.exports},43568:function(e,t,n){var i=n(42481).default;function r(e,t){if("object"!=i(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=i(r))return r;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}e.exports=r,e.exports.__esModule=!0,e.exports.default=e.exports},87308:function(e,t,n){var i=n(42481).default,r=n(43568);function o(e){var t=r(e,"string");return"symbol"==i(t)?t:String(t)}e.exports=o,e.exports.__esModule=!0,e.exports.default=e.exports},42481:function(e){function t(n){return e.exports=t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.__esModule=!0,e.exports.default=e.exports,t(n)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},11562:function(e,t,n){var i=n(25815);function r(e,t){if(e){if("string"==typeof e)return i(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return i(e,t)}}e.exports=r,e.exports.__esModule=!0,e.exports.default=e.exports},34934:function(e,t,n){var i=n(22889)();e.exports=i;try{regeneratorRuntime=i}catch(r){"object"==typeof globalThis?globalThis.regeneratorRuntime=i:Function("r","regeneratorRuntime = r")(i)}}}]);