twikoo 1.7.19 → 1.7.21

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,2 +1,2 @@
1
1
  /*! For license information please see twikoo.nocss.js.LICENSE.txt */
2
- var e,t;e=this,t=function(){return function(){var e={1553:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(3040);Object.keys(r).forEach(function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===r[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return r[e]}}))});var o=n(3132);Object.keys(o).forEach(function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===o[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return o[e]}}))})},3040:function(e,t){"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.StorageType=t.AbstractStorage=t.AbstractSDKRequest=void 0,function(e){e.local="local",e.none="none",e.session="session"}(n||(t.StorageType=n={})),t.AbstractSDKRequest=function(){},t.AbstractStorage=function(){}},3132:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.formatUrl=function(e,t,n){void 0===n&&(n={});var r=/\?/.test(t),o="";for(var i in n)""===o?!r&&(t+="?"):o+="&",o+=i+"="+encodeURIComponent(n[i]);return/^http(s)?\:\/\//.test(t+=o)?t:""+e+t}},7355:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=t.WxRequest=t.WxMpWebSocket=void 0,t.parseQueryString=m,t.wxMpStorage=void 0;var r,o=n(1553),i=n(5232),s=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},r(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),a=function(){return a=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},a.apply(this,arguments)},c=function(e,t,n,r){return new(n||(n=Promise))(function(o,i){function s(e){try{c(r.next(e))}catch(t){i(t)}}function a(e){try{c(r["throw"](e))}catch(t){i(t)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(s,a)}c((r=r.apply(e,t||[])).next())})},l=function(e,t){var n,r,o,i,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:a(0),"throw":a(1),"return":a(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function a(i){return function(a){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;s;)try{if(n=1,r&&(o=2&i[0]?r["return"]:i[0]?r["throw"]||((o=r["return"])&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return s.label++,{value:i[1],done:!1};case 5:s.label++,r=i[1],i=[0];continue;case 7:i=s.ops.pop(),s.trys.pop();continue;default:if(!((o=(o=s.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){s=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){s.label=i[1];break}if(6===i[0]&&s.label<o[1]){s.label=o[1],o=i;break}if(o&&s.label<o[2]){s.label=o[2],s.ops.push(i);break}o[2]&&s.ops.pop(),s.trys.pop();continue}i=t.call(e,s)}catch(a){i=[6,a],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,a])}}},u=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n},d="Error when aborting requestTask",h=t.WxRequest=function(e){function t(t){void 0===t&&(t={});var n=e.call(this)||this,r=t.timeout,o=t.timeoutMsg,i=t.restrictedMethods;return n._timeout=r||0,n._timeoutMsg=o||"请求超时",n._restrictedMethods=i||["get","post","upload","download"],n}return s(t,e),t.prototype.post=function(e){var t=this;return new Promise(function(n,r){var i=e.url,s=e.data,a=e.headers,c=wx.request({url:(0,o.formatUrl)("https:",i),data:s,timeout:t._timeout,method:"POST",header:a,success:function(e){e.statusCode>=200&&e.statusCode<300?n({statusCode:e.statusCode,status:e.statusCode,data:e.data}):r(e)},fail:function(e){r(e)},complete:function(e){if(e&&e.errMsg&&t._timeout&&-1!==t._restrictedMethods.indexOf("post")&&"request:fail timeout"===e.errMsg){console.warn(t._timeoutMsg);try{c.abort()}catch(n){}}}})})},t.prototype.get=function(e){var t=this;return new Promise(function(n,r){var i=e.url,s=e.body,a=e.headers,c=(0,o.formatUrl)("https:",i),l=wx.request({url:c,data:s,timeout:t._timeout,method:"GET",header:a,success:function(e){e.statusCode>=200&&e.statusCode<300?n({statusCode:e.statusCode,status:e.statusCode,data:e.data}):r(e)},fail:function(e){r(e)},complete:function(e){if(e&&e.errMsg&&t._timeout&&-1!==t._restrictedMethods.indexOf("get")&&e.errMsg.includes("timeout")){console.warn(t._timeoutMsg);try{l.abort()}catch(n){console.warn(d,n)}}}})})},t.prototype.upload=function(e){var t=this,n=this;return new Promise(function(r){return c(t,void 0,void 0,function(){var t,o,i,s,c,u;return l(this,function(l){return t=e.url,o=e.file,i=e.data,s=e.headers,c=e.onUploadProgress,u=wx.uploadFile({url:t,filePath:o,name:"file",formData:a({},i),header:s,timeout:this._timeout,success:function(e){var t={statusCode:e.statusCode,data:e.data||{}};200===e.statusCode&&i.success_action_status&&(t.statusCode=parseInt(i.success_action_status,10)),r(t)},fail:function(e){r(e)},complete:function(e){if(e&&e.errMsg&&n._timeout&&-1!==n._restrictedMethods.indexOf("upload")&&"request:fail timeout"===e.errMsg){console.warn(n._timeoutMsg);try{u.abort()}catch(t){}}}}),c&&u.onProgressUpdate(function(e){c(e)}),[2]})})})},t.prototype.download=function(e){var t=this,n=this;return new Promise(function(r,i){var s=e.url,a=e.headers,c=wx.downloadFile({url:(0,o.formatUrl)("https:",s),header:a,timeout:t._timeout,success:function(e){200===e.statusCode&&e.tempFilePath?r({statusCode:200,tempFilePath:e.tempFilePath}):r(e)},fail:function(e){i(e)},complete:function(e){if(e&&e.errMsg&&n._timeout&&-1!==n._restrictedMethods.indexOf("download")&&"request:fail timeout"===e.errMsg){console.warn(n._timeoutMsg);try{c.abort()}catch(t){}}}})})},t.prototype.fetch=function(e){var t=e.url,n=e.body,r=e.enableAbort,s=e.headers,a=e.method,c=e.stream,l=void 0!==c&&c,u=e.signal,h=e.timeout,p=this,f=null!=h?h:this._timeout,m=null,g=new i.ReadableStream({start:function(e){m=e},cancel:function(){m=null}});return new Promise(function(e,i){l&&e({data:g});var c=wx.request({url:(0,o.formatUrl)("https:",t),data:n,timeout:f,method:a.toUpperCase(),header:s,success:function(t){null==m||m.close(),!l&&e(t)},fail:function(e){if(null==m||m.close(),i(e),l)throw e},complete:function(e){if(e&&e.errMsg&&f&&-1!==p._restrictedMethods.indexOf("post")&&r&&"request:fail timeout"===e.errMsg){console.warn(p._timeoutMsg);try{c.abort()}catch(t){console.warn(d,t)}}},enableChunked:l});if(c.onChunkReceived(function(e){null==m||m.enqueue(new Uint8Array(e.data))}),u){var h=function(){try{c.abort()}catch(e){console.warn(d,e)}};u.aborted?h():u.addEventListener("abort",function(){return h()})}})},t.prototype.patch=function(e){var t=e.method,n=e.headers,r=JSON.parse(JSON.stringify(n||{}));return"PATCH"===t.toUpperCase()&&(r["X-HTTP-Method-Override"]="PATCH",t="POST"),this.post(a(a({},e),{method:t,headers:r}))},t}(o.AbstractSDKRequest),p=t.wxMpStorage={setItem:function(e,t){wx.setStorageSync(e,t)},getItem:function(e){return wx.getStorageSync(e)},removeItem:function(e){wx.removeStorageSync(e)},clear:function(){wx.clearStorageSync()}},f=t.WxMpWebSocket=function(e,t){void 0===t&&(t={});var n=wx.connectSocket(a({url:e},t));return{set onopen(e){n.onOpen(e)},set onmessage(e){n.onMessage(e)},set onclose(e){n.onClose(e)},set onerror(e){n.onError(e)},send:function(e){return n.send({data:e})},close:function(e,t){return n.close({code:e,reason:t})},get readyState(){return n.readyState},CONNECTING:0,OPEN:1,CLOSING:2,CLOSED:3}};function m(e){var t={},n=e.replace(/^[?#]/,"");return n?(n.split("&").forEach(function(e){var n=e.split("="),r=n[0],o=n[1];r=decodeURIComponent(r),o=decodeURIComponent(o),r&&(t[r]?Array.isArray(t[r])?t[r].push(o):t[r]=[t[r],o]:t[r]=o)}),t):t}var g={genAdapter:function(e){return{root:{globalThis:{}},reqClass:h,wsClass:f,captchaOptions:{openURIWithCallback:function(t){var n=e.EventBus,r={},o=t;console.log("openURIWithCallback",t);var i=t.match(/^(data:.*?)(\?[^#\s]*)?$/);if(i){o=i[1],console.log("openURIWithCallback url",o);var s=i[2];s&&(r=m(s))}console.log("openURIWithCallback queryObj",r);var c=r.token,l=u(r,["token"]);return/^data:/.test(o)&&!c?Promise.reject({error:"invalid_argument",error_description:"invalie captcha data: "+t}):c?new Promise(function(e){console.log("wait for captcha..."),n.$emit("CAPTCHA_DATA_CHANGE",a(a({},l),{token:c,url:o})),n.$once("RESOLVE_CAPTCHA_DATA",function(t){e(t)})}):Promise.reject({error:"unimplemented",error_description:"need to impl captcha data"})}},localStorage:p,primaryStorage:o.StorageType.local,getAppSign:function(){var e=wx.getAccountInfoSync();return"undefined"!=typeof App||"undefined"!=typeof getApp||wx.onAppHide||wx.offAppHide||wx.onAppShow||wx.offAppShow?e&&e.miniProgram?e.miniProgram.appId:"":e&&e.plugin?e.plugin.appId:""}}},isMatch:function(){if("undefined"==typeof wx)return!1;if("undefined"==typeof Page)return!1;if(!wx.getSystemInfoSync)return!1;if(!wx.getStorageSync)return!1;if(!wx.setStorageSync)return!1;if(!wx.connectSocket)return!1;if(!wx.request)return!1;try{if(!wx.getSystemInfoSync())return!1;if("qq"===wx.getSystemInfoSync().AppPlatform)return!1}catch(e){return!1}return!0},runtime:"wx_mp"};t["default"]=g},1016:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.OAUTH2_LOGINTYPE_PREFIX=t.LOGINTYPE=t.DATA_VERSION=void 0,t.getBaseEndPoint=function(e){var t=m(e,"CLOUD_API"),n=t.protocol,r=t.baseUrl;return"".concat(n).concat(r).match(/(http(s)?:)?\/\/([^/?#]*)/)[0]},t.getEndPointInfo=m,t.getSdkName=function(){return c},t.getSdkVersion=function(){return a},t.setEndPointInfo=f,t.setGatewayEndPointWithEnv=function(e,t){f({endPointKey:"GATEWAY",env:e,baseUrl:"//".concat(e,".api.tcloudbasegateway.com/v1"),protocol:t})},t.setRegionLevelEndpoint=function(e,t,n){var r=t?"//".concat(e,".").concat(t,".tcb-api.tencentcloudapi.com/web"):"//".concat(e,".ap-shanghai.tcb-api.tencentcloudapi.com/web");f({env:e,region:t,baseUrl:r,protocol:n,endPointKey:"CLOUD_API"})},t.setSdkName=function(e){c=e,i(e)},t.setSdkVersion=function(e){a=e};var r=n(9174),o=function(){return o=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},o.apply(this,arguments)},i=r.constants.setSdkName,s=r.constants.setProtocol,a="",c="@cloudbase/js-sdk";t.DATA_VERSION="2020-01-10";var l,u=[],d=["env","endPointKey","region"],h="https:";function p(e){return u.find(function(t){return d.filter(function(t){return null!=e[t]}).every(function(n){return t[n]===e[n]})})}function f(e){var t,n,r=p(e);r?(null!=e.baseUrl&&(r.baseUrl=e.baseUrl),null!=e.protocol&&(r.protocol=e.protocol)):u.push(o(o({},e),{protocol:null!==(t=e.protocol)&&void 0!==t?t:h})),"CLOUD_API"===e.endPointKey&&s(null!==(n=e.protocol)&&void 0!==n?n:h)}function m(e,t,n){return p({env:e,endPointKey:t,region:n})}!function(e){e.NULL="NULL",e.ANONYMOUS="ANONYMOUS",e.WECHAT="WECHAT",e.WECHAT_PUBLIC="WECHAT-PUBLIC",e.WECHAT_OPEN="WECHAT-OPEN",e.CUSTOM="CUSTOM",e.EMAIL="EMAIL",e.USERNAME="USERNAME",e.PHONE="PHONE"}(l||(t.LOGINTYPE=l={})),t.OAUTH2_LOGINTYPE_PREFIX="OAUTH2"},3167:function(e,t,n){"use strict";var r=n(6553)["default"];Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"LANGS",{enumerable:!0,get:function(){return d.LANGS}}),t["default"]=t.cloudbase=void 0,Object.defineProperty(t,"getBaseEndPoint",{enumerable:!0,get:function(){return u.getBaseEndPoint}});var o=n(9174),i=r(n(7355)),s=n(9471),a=n(9163),c=n(6310),l=n(8237),u=n(1016),d=n(8094),h=n(7615),p=function(){return p=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},p.apply(this,arguments)},f=function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},m=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},g=function(e,t,n,r){return new(n||(n=Promise))(function(o,i){function s(e){try{c(r.next(e))}catch(t){i(t)}}function a(e){try{c(r["throw"](e))}catch(t){i(t)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(s,a)}c((r=r.apply(e,t||[])).next())})},_=function(e,t){var n,r,o,i,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:a(0),"throw":a(1),"return":a(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function a(a){return function(c){return function(a){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,a[0]&&(s=0)),s;)try{if(n=1,r&&(o=2&a[0]?r["return"]:a[0]?r["throw"]||((o=r["return"])&&o.call(r),0):r.next)&&!(o=o.call(r,a[1])).done)return o;switch(r=0,o&&(a=[2&a[0],o.value]),a[0]){case 0:case 1:o=a;break;case 4:return s.label++,{value:a[1],done:!1};case 5:s.label++,r=a[1],a=[0];continue;case 7:a=s.ops.pop(),s.trys.pop();continue;default:if(!((o=(o=s.trys).length>0&&o[o.length-1])||6!==a[0]&&2!==a[0])){s=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]<o[3])){s.label=a[1];break}if(6===a[0]&&s.label<o[1]){s.label=o[1],o=a;break}if(o&&s.label<o[2]){s.label=o[2],s.ops.push(a);break}o[2]&&s.ops.pop(),s.trys.pop();continue}a=t.call(e,s)}catch(c){a=[6,c],r=0}finally{n=o=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,c])}}},v=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n},y=o.adapters.useAdapters,b=o.adapters.useDefaultAdapter,w=o.constants.ERRORS,S=o.constants.COMMUNITY_SITE_URL,I=o.utils.printWarn,E=o.helpers.catchErrorsDecorator,k={timeout:15e3,persistence:"local"},C=6e5,T={},A=function(){function e(e){this.cloudbaseConfig=e||this.cloudbaseConfig,this.authInstance=null,this.oauthInstance=null,this.version=(0,u.getSdkVersion)()}return Object.defineProperty(e.prototype,"config",{get:function(){return this.cloudbaseConfig},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"platform",{get:function(){return a.Platform},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"cache",{get:function(){return(0,c.getCacheByEnvId)(this.cloudbaseConfig.env)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"localCache",{get:function(){return(0,c.getLocalCache)(this.cloudbaseConfig.env)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"request",{get:function(){return(0,l.getRequestByEnvId)(this.cloudbaseConfig.env)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"apis",{get:function(){return h.generateApis.call(this)},enumerable:!1,configurable:!0}),e.prototype.init=function(t){var n;if(!t.env)throw new Error(JSON.stringify({code:w.INVALID_PARAMS,msg:"env must not be specified"}));a.Platform.adapter||this.useDefaultAdapter();var r={timeout:t.timeout||5e3,timeoutMsg:"[".concat((0,u.getSdkName)(),"][REQUEST TIMEOUT] request had been abort since didn't finished within").concat(t.timeout/1e3,"s")};this.requestClient=new a.Platform.adapter.reqClass(r),this.cloudbaseConfig=p(p(p({},k),t),{i18n:(0,d.i18nProxy)(a.Platform,t)}),delete this.cloudbaseConfig.lang,this.cloudbaseConfig.timeout=this.formatTimeout(this.cloudbaseConfig.timeout);var o=this.cloudbaseConfig,i=o.env,s=o.persistence,h=o.debug,f=o.timeout,m=o.oauthClient,g=o.i18n;(0,c.initCache)({env:i,persistence:s,debug:h,platformInfo:this.platform}),(0,u.setRegionLevelEndpoint)(i,t.region||""),(0,u.setGatewayEndPointWithEnv)(i);var _=new e(this.cloudbaseConfig);return(0,l.initRequest)({env:i,region:t.region||"",timeout:f,oauthClient:m,_fromApp:_,i18n:g}),_.requestClient=this.requestClient,null===(n=null==this?void 0:this.fire)||void 0===n||n.call(this,"cloudbase_init",_),_},e.prototype.updateConfig=function(e){var t=e.persistence,n=e.debug;this.cloudbaseConfig.persistence=t,this.cloudbaseConfig.debug=n,(0,c.initCache)({env:this.cloudbaseConfig.env,persistence:t,debug:n,platformInfo:this.platform})},e.prototype.updateLang=function(e){var t;e&&e!==(null===(t=this.cloudbaseConfig.i18n)||void 0===t?void 0:t.lang)&&(this.cloudbaseConfig.i18n.lang=e)},e.prototype.registerExtension=function(e){T[e.name]=e},e.prototype.invokeExtension=function(e,t){return g(this,void 0,void 0,function(){var n;return _(this,function(r){switch(r.label){case 0:if(!(n=T[e]))throw new Error(JSON.stringify({code:w.INVALID_PARAMS,msg:"extension:".concat(e," must be registered before invoke")}));return[4,n.invoke(t,this)];case 1:return[2,r.sent()]}})})},e.prototype.useAdapters=function(e,t){var n=y(e,t)||{},r=n.adapter,o=n.runtime;r&&(a.Platform.adapter=r),o&&(a.Platform.runtime=o)},e.prototype.registerHook=function(t){(0,s.registerHook)(e,t)},e.prototype.registerComponent=function(t){(0,s.registerComponent)(e,t)},e.prototype.registerVersion=function(e){(0,u.setSdkVersion)(e),this.version=e},e.prototype.registerSdkName=function(e){(0,u.setSdkName)(e)},e.prototype.registerEndPoint=function(e,t){(0,u.setEndPointInfo)({baseUrl:e,protocol:t,env:this.config.env,endPointKey:"CLOUD_API"})},e.prototype.registerEndPointWithKey=function(e){(0,u.setEndPointInfo)({env:this.config.env,endPointKey:e.key,baseUrl:e.url,protocol:e.protocol})},e.prototype.getEndPointWithKey=function(e){var t=(0,u.getEndPointInfo)(this.config.env,e);return{BASE_URL:t.baseUrl,PROTOCOL:t.protocol}},e.prototype.parseCaptcha=function(e){var t={},n=e.match(/^(data:.*?)(\?[^#\s]*)?$/);if(n){e=n[1];var r=n[2];r&&(t=o.utils.parseQueryString(r))}var i=t.token,s=v(t,["token"]);return/^data:/.test(e)&&!i?{error:"invalid_argument",error_description:"invalid captcha data: ".concat(e)}:i?{state:s.state,token:i,captchaData:e}:{error:"unimplemented",error_description:"need to impl captcha data"}},e.prototype.useDefaultAdapter=function(){var e=b(),t=e.adapter,n=e.runtime;a.Platform.adapter=t,a.Platform.runtime=n},e.prototype.formatTimeout=function(e){switch(!0){case e>C:return I(w.INVALID_PARAMS,"timeout is greater than maximum value[10min]"),C;case e<100:return I(w.INVALID_PARAMS,"timeout is less than maximum value[100ms]"),100;default:return e}},f([E({mode:"sync",title:"Cloudbase 初始化失败",messages:["请确认以下各项:"," 1 - 调用 cloudbase.init() 的语法或参数是否正确"," 2 - 如果是非浏览器环境,是否配置了安全应用来源(https://docs.cloudbase.net/api-reference/webv3/adapter#%E7%AC%AC-2-%E6%AD%A5%E9%85%8D%E7%BD%AE%E5%AE%89%E5%85%A8%E5%BA%94%E7%94%A8%E6%9D%A5%E6%BA%90)","如果问题依然存在,建议到官方问答社区提问或寻找帮助:".concat(S)]}),m("design:type",Function),m("design:paramtypes",[Object]),m("design:returntype",e)],e.prototype,"init",null),f([E({title:"调用扩展能力失败",messages:["请确认以下各项:"," 1 - 调用 invokeExtension() 的语法或参数是否正确"," 2 - 被调用的扩展能力是否已经安装并通过 registerExtension() 注册","如果问题依然存在,建议到官方问答社区提问或寻找帮助:".concat(S)]}),m("design:type",Function),m("design:paramtypes",[String,Object]),m("design:returntype",Promise)],e.prototype,"invokeExtension",null),e}(),O=t.cloudbase=new A;O.useAdapters(i["default"]),t["default"]=O},9163:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Platform=void 0,t.Platform={}},6310:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getCacheByEnvId=function(e){return a[e]},t.getLocalCache=function(e){return c[e]},t.initCache=function(e){var t=e.env,n=e.platformInfo,r={userInfoKey:"".concat(i,"_").concat(t)};a[t]=a[t]||new s(o(o({},e),{keys:r,platformInfo:n})),c[t]=c[t]||new s(o(o({},e),{keys:r,platformInfo:n,persistence:"local"}))};var r=n(9174),o=function(){return o=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},o.apply(this,arguments)},i="user_info",s=r.cache.CloudbaseCache,a={},c={}},7615:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.callApi=a,t.generateApis=function(){var e=this;return new Proxy({},{get:function(t,n){if("string"==typeof n)return l.call(e,n)}})},t.generateCallApis=l;var r=n(2189),o=function(){return o=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},o.apply(this,arguments)},i=function(e,t,n,r){return new(n||(n=Promise))(function(o,i){function s(e){try{c(r.next(e))}catch(t){i(t)}}function a(e){try{c(r["throw"](e))}catch(t){i(t)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(s,a)}c((r=r.apply(e,t||[])).next())})},s=function(e,t){var n,r,o,i,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:a(0),"throw":a(1),"return":a(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function a(a){return function(c){return function(a){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,a[0]&&(s=0)),s;)try{if(n=1,r&&(o=2&a[0]?r["return"]:a[0]?r["throw"]||((o=r["return"])&&o.call(r),0):r.next)&&!(o=o.call(r,a[1])).done)return o;switch(r=0,o&&(a=[2&a[0],o.value]),a[0]){case 0:case 1:o=a;break;case 4:return s.label++,{value:a[1],done:!1};case 5:s.label++,r=a[1],a=[0];continue;case 7:a=s.ops.pop(),s.trys.pop();continue;default:if(!((o=(o=s.trys).length>0&&o[o.length-1])||6!==a[0]&&2!==a[0])){s=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]<o[3])){s.label=a[1];break}if(6===a[0]&&s.label<o[1]){s.label=o[1],o=a;break}if(o&&s.label<o[2]){s.label=o[2],s.ops.push(a);break}o[2]&&s.ops.pop(),s.trys.pop();continue}a=t.call(e,s)}catch(c){a=[6,c],r=0}finally{n=o=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,c])}}};function a(e,t){var n,a,c;return i(this,void 0,void 0,function(){var i,l,u,d,h,p,f,m,g,_,v,y,b,w,S;return s(this,function(s){switch(s.label){case 0:if(l=(i=e||{}).name,u=i.body,d=i.path,h=void 0===d?"":d,p=i.method,f=void 0===p?"POST":p,m=i.headers,g=void 0===m?{}:m,_=i.token,!l)throw new Error(JSON.stringify({code:r.ERRORS.INVALID_PARAMS,msg:"[apis] invalid api name"}));return v=this.getEndPointWithKey("GATEWAY"),y=v.BASE_URL,b=v.PROTOCOL,w="".concat(b).concat(y,"/apis/").concat(l),S=h.startsWith("/")?h:"/".concat(h),[4,this.request.fetch(o({url:"".concat(w).concat(S),method:f||"POST",headers:o({"Content-Type":"application/json; charset=utf-8"},g),body:u,token:(null===(n=null==_?void 0:_.trim)||void 0===n?void 0:n.call(_))||(null===(c=null===(a=g.Authorization)||void 0===a?void 0:a.replace)||void 0===c?void 0:c.call(a,/^Bearer /,""))||""},t))];case 1:return[4,s.sent().data];case 2:return[2,s.sent()]}})})}var c=["GET","POST","PUT","DELETE","HEAD","OPTIONS","PATCH","REQUEST"];function l(e){var t=this;return new Proxy({},{get:function(n,r){if("string"!=typeof r)throw new Error("[apis] method must be string");var l=r.toLocaleUpperCase();if(!c.includes(l))throw new Error("[apis] invalid method: ".concat(r));return function(n,r){return i(t,void 0,void 0,function(){return s(this,function(t){switch(t.label){case 0:return[4,a.call(this,o({name:e,method:("REQUEST"===l?n.method:l)||"POST"},n),r)];case 1:return[2,t.sent()]}})})}}})}},9471:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.registerComponent=function(e,t){var n=t.name,r=t.namespace,c=t.entity,l=t.injectEvents,u=t.IIFE,d=void 0!==u&&u;if(s[n]||r&&e[r])throw new Error(JSON.stringify({code:i.INVALID_OPERATION,msg:"Duplicate component ".concat(n)}));if(d){if(!c||"function"!=typeof c)throw new Error(JSON.stringify({code:i.INVALID_PARAMS,msg:"IIFE component's entity must be a function"}));c.call(e)}if(s[n]=t,r?e.prototype[r]=c:a(e.prototype,c),l){var h=l.bus,p=l.events;if(!h||!p||0===p.length)return;var f=e.prototype.fire||function(){};e.prototype.events||(e.prototype.events={}),(e.prototype.events||{})[n]?e.prototype.events[n].events=o(o([],e.prototype.events[n].events,!0),p,!0):e.prototype.events[n]={bus:h,events:p},e.prototype.fire=function(e,t){f(e,t);for(var n=0,r=Object.keys(this.events);n<r.length;n++){var o=r[n],i=this.events[o],s=i.bus;if(i.events.includes(e)){s.fire(e,t);break}}}}},t.registerHook=function(e,t){var n=t.entity,r=t.target;if(Object.prototype.hasOwnProperty.call(e,r))throw new Error(JSON.stringify({code:i.INVALID_OPERATION,msg:"target:".concat(r," is not exist")}));var s=e.prototype[r];if("function"!=typeof s)throw new Error(JSON.stringify({code:i.INVALID_OPERATION,msg:"target:".concat(r," is not a function which is the only type supports hook")}));e.prototype[r]=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return n.call.apply(n,o([this],e,!1)),s.call.apply(s,o([this],e,!1))}};var r=n(9174),o=function(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))},i=r.constants.ERRORS,s={};function a(e,t){if(!(t instanceof Object))return t;switch(t.constructor){case Date:return new Date(t.getTime());case Object:e===undefined&&(e={});break;case Array:e=[];break;default:return t}for(var n=0,r=Object.keys(t);n<r.length;n++){var o=r[n];Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=a(e[o],t[o]))}return e}},8094:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.t=t.langMap=t.i18nProxy=t.LANG_HEADER_KEY=t.LANGS=void 0;var r,o,i=n(9174);!function(e){e.ZH="zh-CN",e.EN="en-US"}(o||(t.LANGS=o={}));var s=t.LANG_HEADER_KEY="Accept-Language",a=t.langMap=((r={})[o.EN]={"请检查调用方式,或前往云开发 AI+ 首页查看文档":"Please check the calling method or visit the AI+ homepage to view the documentation","AI+ 请求出错,错误码":"AI+ request error, error code","错误信息":"error message","未实现":"not implemented","小程序不支持 wasm 加载":"wasm loading is not supported in mini programs","小程序不支持动态 js 加载":"dynamic js loading is not supported in mini programs","请求超时":"request timeout","缺少 privatelink sdk 地址":"missing privatelink sdk address"},r),c=function(e,t){var n;return(null===(n=a[t])||void 0===n?void 0:n[e])||e};t.t=c,t.i18nProxy=function(e,t){var n,r,a=function(e){return"lang_".concat(e.clientId||e.env)}(t),l=(e.adapter||{}).localStorage,u=t.lang||(null===(n=null==l?void 0:l.getItem)||void 0===n?void 0:n.call(l,a))||o.ZH;return null===(r=null==l?void 0:l.setItem)||void 0===r||r.call(l,a,u),new Proxy({t:function(e){return c(e,u)},LANG_HEADER_KEY:s,lang:u},{get:function(e,t){var n;return"lang"===t&&(null===(n=null==l?void 0:l.getItem)||void 0===n?void 0:n.call(l,a))||e[t]},set:function(e,t,n){var r;return"lang"===t&&n!==e[t]&&(e[t]=n,e.t=function(e){return c(e,n)},null===(r=null==l?void 0:l.setItem)||void 0===r||r.call(l,a,n),i.langEvent.bus.fire(i.langEvent.LANG_CHANGE_EVENT,{i18n:e})),e[t]=n,!0}})}},8237:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CloudbaseRequest=void 0,t.getRequestByEnvId=function(e){return y[e]},t.initRequest=function(e){y[e.env]=new v(a(a({},e),{"throw":!0}))};var r=n(1016),o=n(9174),i=n(6310),s=n(9163),a=function(){return a=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},a.apply(this,arguments)},c=function(e,t,n,r){return new(n||(n=Promise))(function(o,i){function s(e){try{c(r.next(e))}catch(t){i(t)}}function a(e){try{c(r["throw"](e))}catch(t){i(t)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(s,a)}c((r=r.apply(e,t||[])).next())})},l=function(e,t){var n,r,o,i,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:a(0),"throw":a(1),"return":a(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function a(a){return function(c){return function(a){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,a[0]&&(s=0)),s;)try{if(n=1,r&&(o=2&a[0]?r["return"]:a[0]?r["throw"]||((o=r["return"])&&o.call(r),0):r.next)&&!(o=o.call(r,a[1])).done)return o;switch(r=0,o&&(a=[2&a[0],o.value]),a[0]){case 0:case 1:o=a;break;case 4:return s.label++,{value:a[1],done:!1};case 5:s.label++,r=a[1],a=[0];continue;case 7:a=s.ops.pop(),s.trys.pop();continue;default:if(!((o=(o=s.trys).length>0&&o[o.length-1])||6!==a[0]&&2!==a[0])){s=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]<o[3])){s.label=a[1];break}if(6===a[0]&&s.label<o[1]){s.label=o[1],o=a;break}if(o&&s.label<o[2]){s.label=o[2],s.ops.push(a);break}o[2]&&s.ops.pop(),s.trys.pop();continue}a=t.call(e,s)}catch(c){a=[6,c],r=0}finally{n=o=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,c])}}},u=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n},d=o.constants.ERRORS,h=o.utils.genSeqId,p=o.utils.isFormData,f=o.utils.formatUrl,m=["auth.getJwt","auth.logout","auth.signInWithTicket","auth.signInAnonymously","auth.signIn","auth.fetchAccessTokenWithRefreshToken","auth.signUpWithEmailAndPassword","auth.activateEndUserMail","auth.sendPasswordResetEmail","auth.resetPasswordWithToken","auth.isUsernameRegistered"];function g(e,t,n){var r=e[t];e[t]=function(t){var o={},i={};n.forEach(function(n){var r=n.call(e,t),s=r.data,a=r.headers;Object.assign(o,s),Object.assign(i,a)});var s=t.data;return s&&(p(s)?Object.keys(o).forEach(function(e){s.append(e,o[e])}):t.data=a(a({},s),o)),t.headers=a(a({},t.headers||{}),i),r.call(e,t)}}function _(){var e=h();return{data:{seqId:e},headers:{"X-SDK-Version":"@cloudbase/js-sdk/".concat((0,r.getSdkVersion)()),"x-seqid":e}}}var v=t.CloudbaseRequest=function(){function e(e){var t=this;this.throwWhenRequestFail=!1,this.config=e;var n={timeout:this.config.timeout,timeoutMsg:"[@cloudbase/js-sdk] 请求在".concat(this.config.timeout/1e3,"s内未完成,已中断"),restrictedMethods:["post","put"]};this.reqClass=new s.Platform.adapter.reqClass(n),this.throwWhenRequestFail=e["throw"]||!1,this.localCache=(0,i.getLocalCache)(this.config.env),g(this.reqClass,"post",[_]),g(this.reqClass,"upload",[_]),g(this.reqClass,"download",[_]),o.langEvent.bus.on(o.langEvent.LANG_CHANGE_EVENT,function(e){var n;t.config.i18n=(null===(n=e.data)||void 0===n?void 0:n.i18n)||t.config.i18n})}return e.prototype.getDefaultHeaders=function(){var e,t,n;return(e={})[null===(t=this.config.i18n)||void 0===t?void 0:t.LANG_HEADER_KEY]=null===(n=this.config.i18n)||void 0===n?void 0:n.lang,e},e.prototype.post=function(e){return c(this,void 0,void 0,function(){return l(this,function(t){switch(t.label){case 0:return[4,this.reqClass.post(a(a({},e),{headers:a(a({},e.headers),this.getDefaultHeaders())}))];case 1:return[2,t.sent()]}})})},e.prototype.upload=function(e){return c(this,void 0,void 0,function(){return l(this,function(t){switch(t.label){case 0:return[4,this.reqClass.upload(a(a({},e),{headers:a(a({},e.headers),this.getDefaultHeaders())}))];case 1:return[2,t.sent()]}})})},e.prototype.download=function(e){return c(this,void 0,void 0,function(){return l(this,function(t){switch(t.label){case 0:return[4,this.reqClass.download(a(a({},e),{headers:a(a({},e.headers),this.getDefaultHeaders())}))];case 1:return[2,t.sent()]}})})},e.prototype.getBaseEndPoint=function(){return(0,r.getBaseEndPoint)(this.config.env)},e.prototype.getOauthAccessTokenV2=function(e){return c(this,void 0,void 0,function(){var t,n;return l(this,function(r){switch(r.label){case 0:return[4,e.getAccessToken()];case 1:return t=r.sent(),[4,e.getCredentials()];case 2:return n=r.sent(),[2,{accessToken:t,accessTokenExpire:new Date(n.expires_at).getTime()}]}})})},e.prototype.request=function(e,t,n){var o,i;return c(this,void 0,void 0,function(){var s,c,u,d,h,p,g,_,v,y,b,w,S,I,E,k,C,T,A,O;return l(this,function(l){switch(l.label){case 0:if(s="x-tcb-trace_".concat(this.config.env),c="application/x-www-form-urlencoded",u=a({action:e,dataVersion:r.DATA_VERSION,env:this.config.env},t),-1!==m.indexOf(e))return[3,2];if(!(d=this.config._fromApp).oauthInstance)throw new Error("you can't request without auth");return h=d.oauthInstance,p=h.oauth2client,g=u,[4,this.getOauthAccessTokenV2(p)];case 1:g.access_token=l.sent().accessToken,l.label=2;case 2:return"storage.uploadFile"===e?(_=new FormData,Object.keys(_).forEach(function(e){Object.prototype.hasOwnProperty.call(_,e)&&_[e]!==undefined&&_.append(e,u[e])}),c="multipart/form-data"):(c="application/json;charset=UTF-8",_={},Object.keys(u).forEach(function(e){u[e]!==undefined&&(_[e]=u[e])})),v={headers:a({"content-type":c},this.getDefaultHeaders())},(null==n?void 0:n.onUploadProgress)&&(v.onUploadProgress=n.onUploadProgress),this.config.region&&(v.headers["X-TCB-Region"]=this.config.region),(y=this.localCache.getStore(s))&&(v.headers["X-TCB-Trace"]=y),b=(null==n?void 0:n.parse)!==undefined?n.parse:t.parse,w=(null==n?void 0:n.inQuery)!==undefined?n.inQuery:t.inQuery,S=(null==n?void 0:n.search)!==undefined?n.search:t.search,I=a(a({},(null==n?void 0:n.defaultQuery)||{}),{env:this.config.env}),b&&(I.parse=!0),w&&(I=a(a({},w),I)),E=(0,r.getEndPointInfo)(this.config.env,"CLOUD_API"),k=E.baseUrl,C=E.protocol,T=n.pathname?f(C,"".concat(null===(o=(0,r.getBaseEndPoint)(this.config.env))||void 0===o?void 0:o.replace(/^https?:/,""),"/").concat(n.pathname),I):f(C,k,I),S&&(T+=S),[4,this.post(a({url:T,data:_},v))];case 3:if(A=l.sent(),(O=null===(i=A.header)||void 0===i?void 0:i["x-tcb-trace"])&&this.localCache.setStore(s,O),200!==Number(A.status)&&200!==Number(A.statusCode)||!A.data)throw new Error("network request error");return[2,A]}})})},e.prototype.fetch=function(e){var t,n,o,i,s,d,h,p;return c(this,void 0,void 0,function(){var f,m,g,_,v,y,b,w=this;return l(this,function(S){switch(S.label){case 0:f=e.token,m=e.headers,g=void 0===m?{}:m,_=u(e,["token","headers"]),v=function(){return c(w,void 0,void 0,function(){var e,t,n;return l(this,function(r){switch(r.label){case 0:if(null!=f)return[2,f];if(!(e=this.config._fromApp).oauthInstance)throw new Error("you can't request without auth");return t=e.oauthInstance,n=t.oauth2client,[4,this.getOauthAccessTokenV2(n)];case 1:return[2,r.sent().accessToken]}})})},y=function(){return c(w,void 0,void 0,function(){var e,t,n,o,i;return l(this,function(s){switch(s.label){case 0:return t=(e=this.reqClass).fetch,o={},i={"X-SDK-Version":"@cloudbase/js-sdk/".concat((0,r.getSdkVersion)())},n="Bearer ".concat,[4,v()];case 1:return[2,t.apply(e,[a.apply(void 0,[(o.headers=a.apply(void 0,[a.apply(void 0,[(i.Authorization=n.apply("Bearer ",[s.sent()]),i),this.getDefaultHeaders()]),g]),o),_])])]}})})},S.label=1;case 1:return S.trys.push([1,3,,6]),[4,y()];case 2:return[2,S.sent()];case 3:if("ACCESS_TOKEN_EXPIRED"!==(null==(b=S.sent())?void 0:b.code))return[3,5];if("function"!=typeof(null===(i=null===(o=null===(n=null===(t=this.config)||void 0===t?void 0:t._fromApp)||void 0===n?void 0:n.oauthInstance)||void 0===o?void 0:o.authApi)||void 0===i?void 0:i.refreshTokenForce))throw b;return[4,null===(p=null===(h=null===(d=null===(s=this.config)||void 0===s?void 0:s._fromApp)||void 0===d?void 0:d.oauthInstance)||void 0===h?void 0:h.authApi)||void 0===p?void 0:p.refreshTokenForce()];case 4:return S.sent(),[2,y()];case 5:throw b;case 6:return[2]}})})},e.prototype.send=function(e,t,n){return void 0===t&&(t={}),void 0===n&&(n={}),c(this,void 0,void 0,function(){var r;return l(this,function(o){switch(o.label){case 0:return[4,this.request(e,t,a(a({},n),{onUploadProgress:t.onUploadProgress}))];case 1:if((r=o.sent()).data.code&&this.throwWhenRequestFail)throw new Error(JSON.stringify({code:d.OPERATION_FAIL,msg:"[".concat(r.data.code,"] ").concat(r.data.message)}));return[2,r.data]}})})},e}(),y={}},3993:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.useAuthAdapter=void 0;var r=n(8178),o=function(){return o=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},o.apply(this,arguments)},i=function(e,t,n,r){return new(n||(n=Promise))(function(o,i){function s(e){try{c(r.next(e))}catch(t){i(t)}}function a(e){try{c(r["throw"](e))}catch(t){i(t)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(s,a)}c((r=r.apply(e,t||[])).next())})},s=function(e,t){var n,r,o,i,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:a(0),"throw":a(1),"return":a(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function a(a){return function(c){return function(a){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,a[0]&&(s=0)),s;)try{if(n=1,r&&(o=2&a[0]?r["return"]:a[0]?r["throw"]||((o=r["return"])&&o.call(r),0):r.next)&&!(o=o.call(r,a[1])).done)return o;switch(r=0,o&&(a=[2&a[0],o.value]),a[0]){case 0:case 1:o=a;break;case 4:return s.label++,{value:a[1],done:!1};case 5:s.label++,r=a[1],a=[0];continue;case 7:a=s.ops.pop(),s.trys.pop();continue;default:if(!((o=(o=s.trys).length>0&&o[o.length-1])||6!==a[0]&&2!==a[0])){s=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]<o[3])){s.label=a[1];break}if(6===a[0]&&s.label<o[1]){s.label=o[1],o=a;break}if(o&&s.label<o[2]){s.label=o[2],s.ops.push(a);break}o[2]&&s.ops.pop(),s.trys.pop();continue}a=t.call(e,s)}catch(c){a=[6,c],r=0}finally{n=o=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,c])}}},a=function(){function e(e){var t,n;try{this.localStorage=(null==e?void 0:e.localStorage)||((null===(n=null===(t=null==e?void 0:e.adapter)||void 0===t?void 0:t.root)||void 0===n?void 0:n.globalThis)||globalThis).localStorage}catch(r){this.localStorage=(null==e?void 0:e.localStorage)||{}}}return e.prototype.getItem=function(e){return i(this,void 0,void 0,function(){return s(this,function(t){return[2,this.localStorage.getItem(e)]})})},e.prototype.removeItem=function(e){return i(this,void 0,void 0,function(){return s(this,function(t){return this.localStorage.removeItem(e),[2]})})},e.prototype.setItem=function(e,t){return i(this,void 0,void 0,function(){return s(this,function(n){return this.localStorage.setItem(e,t),[2]})})},e.prototype.getItemSync=function(e){return this.localStorage.getItem(e)},e.prototype.setItemSync=function(e,t){this.localStorage.setItem(e,t)},e.prototype.removeItemSync=function(e){this.localStorage.removeItem(e)},e}(),c=/^[^:]+:\/\/[^/]+(\/[^?#]+)/,l=function(e,t){var n,r,o,i,s=null===(n=null==t?void 0:t.headers)||void 0===n?void 0:n["x-request-id"];return e||(e={}),((null==e?void 0:e.code)||(null===(r=null==e?void 0:e.data)||void 0===r?void 0:r.error_code))&&(e={error:e.code||e.data.error,error_description:e.data.error_description||e.message||e.code||e.data.error_code,request_id:e.requestId,error_code:null===(o=e.data)||void 0===o?void 0:o.error_code}),(null==e?void 0:e.request_id)||(e.request_id=e.request_id||s),(null==e?void 0:e.error)?(e.error_uri=(i=null==t?void 0:t.url,c.test(i)?RegExp.$1:i),e):(null==e?void 0:e.data)||{}},u=function(e,t){if(!r.adapterForWxMp.isMatch()||e.storage&&e.baseRequest)return e;var n=o({},e),c={};try{var u=r.adapterForWxMp.genAdapter(),d=u.localStorage,h=u.reqClass;if(d&&(c.storage=new a({localStorage:d,adapter:t})),h){var p=new h({timeout:1e4,restrictedMethods:["get","post","upload","download","request"]});c.request=function(e){return function(t,n){return i(this,void 0,void 0,function(){return s(this,function(r){return[2,new Promise(function(r,i){var s=Object.assign({},n);s.body&&"string"!=typeof s.body&&(s.body=JSON.stringify(s.body));var a=wx.request({url:t,data:s.body,timeout:e._timeout,method:s.method||"GET",header:s.headers,success:function(e){(e=l(e,o(o({},n),{url:t}))).error&&i(e),r(e)},fail:function(e){i({error:"unreachable",error_description:e.message})},complete:function(t){if(t&&t.errMsg&&e._timeout&&-1!==e._restrictedMethods.indexOf("request")&&"request:fail timeout"===t.errMsg){console.warn(e._timeoutMsg);try{a.abort()}catch(n){}}}})})]})})}}(p)}return n.captchaOptions&&(c.baseRequest=c.request,c.request=undefined),o(o({},n),c)}catch(f){console.error("adapter generate fail:",f)}return n};t.useAuthAdapter=function(e){return e.adapter&&"default"!==e.adapter.type?function(e,t){var n=o({},e);try{if(!(null==e?void 0:e.storage)&&(null==t?void 0:t.localStorage)&&(n.storage=new a({localStorage:t.localStorage,adapter:t})),!e.captchaOptions&&(null==t?void 0:t.captchaOptions)&&(n.captchaOptions=t.captchaOptions),!e.baseRequest&&!e.request&&(null==t?void 0:t.reqClass)){var r=new t.reqClass({timeout:1e4,restrictedMethods:["get","post","upload","download","request"]});n.baseRequest=function(e,t){var n;return i(this,void 0,void 0,function(){var i,a,c,u;return s(this,function(s){switch(s.label){case 0:if(i={},a=(null===(n=t.method)||void 0===n?void 0:n.toLocaleLowerCase())||"get","function"!=typeof(c=null==r?void 0:r[a]))throw new Error("invalid 【".concat(a,"】 request method"));s.label=1;case 1:return s.trys.push([1,3,,4]),t.headers["content-type"]&&!t.headers["content-type"].includes("application/json")||"string"==typeof t.body||(t.data=t.data||t.body,t.body=JSON.stringify(t.body)),[4,c(o({url:e},t))];case 2:return i=s.sent(),i=l(i,o(o({},t),{url:e})),[3,4];case 3:throw u=s.sent(),i=u,u;case 4:if(null==i?void 0:i.error)throw i;return[2,i]}})})}}}catch(c){console.error("user adapter generate fail:",c)}return n}(e,e.adapter):u(e,e.adapter)}},2782:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.LoginState=t.Auth=void 0,t.generateAuthInstance=b,t.registerAuth=function(e){try{e.registerComponent(w)}catch(t){console.warn(t)}};var r=n(6491),o=n(3993),i=n(8178),s=function(){return s=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},s.apply(this,arguments)},a=function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},c=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},l=function(e,t,n,r){return new(n||(n=Promise))(function(o,i){function s(e){try{c(r.next(e))}catch(t){i(t)}}function a(e){try{c(r["throw"](e))}catch(t){i(t)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(s,a)}c((r=r.apply(e,t||[])).next())})},u=function(e,t){var n,r,o,i,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:a(0),"throw":a(1),"return":a(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function a(a){return function(c){return function(a){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,a[0]&&(s=0)),s;)try{if(n=1,r&&(o=2&a[0]?r["return"]:a[0]?r["throw"]||((o=r["return"])&&o.call(r),0):r.next)&&!(o=o.call(r,a[1])).done)return o;switch(r=0,o&&(a=[2&a[0],o.value]),a[0]){case 0:case 1:o=a;break;case 4:return s.label++,{value:a[1],done:!1};case 5:s.label++,r=a[1],a=[0];continue;case 7:a=s.ops.pop(),s.trys.pop();continue;default:if(!((o=(o=s.trys).length>0&&o[o.length-1])||6!==a[0]&&2!==a[0])){s=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]<o[3])){s.label=a[1];break}if(6===a[0]&&s.label<o[1]){s.label=o[1],o=a;break}if(o&&s.label<o[2]){s.label=o[2],s.ops.push(a);break}o[2]&&s.ops.pop(),s.trys.pop();continue}a=t.call(e,s)}catch(c){a=[6,c],r=0}finally{n=o=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,c])}}},d="sign_out",h="sign_in",p="credentials_error",f="loginStateChanged",m=new i.CloudbaseEventEmitter,g=function(e){m.fire(f,s(s({},e),{eventType:p}))},_=function(){function e(e){var t=e.cache,n=e.oauthInstance;this.cache=t,this.oauthInstance=n,this.setUserInfo()}return e.prototype.checkLocalInfo=function(){return l(this,void 0,void 0,function(){return u(this,function(e){return this.uid=this.getLocalUserInfo("uid"),this.gender=this.getLocalUserInfo("gender"),this.picture=this.getLocalUserInfo("picture"),this.email=this.getLocalUserInfo("email"),this.emailVerified=this.getLocalUserInfo("email_verified"),this.phoneNumber=this.getLocalUserInfo("phone_number"),this.username=this.getLocalUserInfo("username"),this.name=this.getLocalUserInfo("name"),this.birthdate=this.getLocalUserInfo("birthdate"),this.zoneinfo=this.getLocalUserInfo("zoneinfo"),this.locale=this.getLocalUserInfo("locale"),this.sub=this.getLocalUserInfo("sub"),this.createdFrom=this.getLocalUserInfo("created_from"),this.providers=this.getLocalUserInfo("providers"),[2]})})},e.prototype.checkLocalInfoAsync=function(){return l(this,void 0,void 0,function(){var e,t,n,r;return u(this,function(o){switch(o.label){case 0:return e=this,[4,this.getLocalUserInfoAsync("uid")];case 1:return e.uid=o.sent(),t=this,[4,this.getLocalUserInfoAsync("gender")];case 2:return t.gender=o.sent(),this.picture=this.getLocalUserInfo("picture"),n=this,[4,this.getLocalUserInfoAsync("email")];case 3:return n.email=o.sent(),this.emailVerified=this.getLocalUserInfo("email_verified"),this.phoneNumber=this.getLocalUserInfo("phone_number"),r=this,[4,this.getLocalUserInfoAsync("username")];case 4:return r.username=o.sent(),this.name=this.getLocalUserInfo("name"),this.birthdate=this.getLocalUserInfo("birthdate"),this.zoneinfo=this.getLocalUserInfo("zoneinfo"),this.locale=this.getLocalUserInfo("locale"),this.sub=this.getLocalUserInfo("sub"),this.createdFrom=this.getLocalUserInfo("created_from"),this.providers=this.getLocalUserInfo("providers"),[2]}})})},e.prototype.update=function(e){return l(this,void 0,void 0,function(){var t;return u(this,function(n){switch(n.label){case 0:return[4,this.oauthInstance.authApi.setUserProfile(s({},e))];case 1:return t=n.sent(),this.setLocalUserInfo(t),[2]}})})},e.prototype.updateUserBasicInfo=function(e){return l(this,void 0,void 0,function(){return u(this,function(t){switch(t.label){case 0:return[4,this.oauthInstance.authApi.updateUserBasicInfo(s({},e))];case 1:return t.sent(),this.setLocalUserInfo({username:e.username}),[2]}})})},e.prototype.updatePassword=function(e,t){return this.oauthInstance.authApi.updatePasswordByOld({old_password:t,new_password:e})},e.prototype.updateUsername=function(e){return"string"!=typeof e&&(0,i.throwError)(i.ERRORS.INVALID_PARAMS,"username must be a string"),this.update({username:e})},e.prototype.refresh=function(e){return l(this,void 0,void 0,function(){var t;return u(this,function(n){switch(n.label){case 0:return[4,this.oauthInstance.authApi.getUserInfo(e)];case 1:return t=n.sent(),this.setLocalUserInfo(t),[2,t]}})})},e.prototype.getLocalUserInfo=function(e){var t=this.cache.keys.userInfoKey;return this.cache.getStore(t)[e]},e.prototype.getLocalUserInfoAsync=function(e){return l(this,void 0,void 0,function(){var t;return u(this,function(n){switch(n.label){case 0:return t=this.cache.keys.userInfoKey,[4,this.cache.getStoreAsync(t)];case 1:return[2,n.sent()[e]]}})})},e.prototype.setUserInfo=function(){var e=this,t=this.cache.keys.userInfoKey,n=this.cache.getStore(t);["uid","email","name","gender","picture","email_verified","phone_number","birthdate","zoneinfo","locale","sub","created_from","providers","username"].forEach(function(t){e[t]=n[t]})},e.prototype.setLocalUserInfo=function(e){var t=this.cache.keys.userInfoKey;this.cache.setStore(t,e),this.setUserInfo()},a([(0,i.catchErrorsDecorator)({title:"更新用户信息失败",messages:["请确认以下各项:"," 1 - 调用 User.update() 的语法或参数是否正确"," 2 - 用户信息中是否包含非法值","如果问题依然存在,建议到官方问答社区提问或寻找帮助:".concat(i.COMMUNITY_SITE_URL)]}),c("design:type",Function),c("design:paramtypes",[Object]),c("design:returntype",Promise)],e.prototype,"update",null),a([(0,i.catchErrorsDecorator)({title:"更新密码失败",messages:["请确认以下各项:"," 1 - 调用 User.updatePassword() 的语法或参数是否正确"," 3 - 新密码中是否包含非法字符","如果问题依然存在,建议到官方问答社区提问或寻找帮助:".concat(i.COMMUNITY_SITE_URL)]}),c("design:type",Function),c("design:paramtypes",[String,String]),c("design:returntype",void 0)],e.prototype,"updatePassword",null),a([(0,i.catchErrorsDecorator)({title:"更新用户名失败",messages:["请确认以下各项:"," 1 - 调用 User.updateUsername() 的语法或参数是否正确"," 2 - 当前环境是否开通了用户名密码登录","如果问题依然存在,建议到官方问答社区提问或寻找帮助:".concat(i.COMMUNITY_SITE_URL)]}),c("design:type",Function),c("design:paramtypes",[String]),c("design:returntype",void 0)],e.prototype,"updateUsername",null),a([(0,i.catchErrorsDecorator)({title:"刷新本地用户信息失败",messages:["请确认以下各项:"," 1 - 调用 User.refresh() 的语法或参数是否正确","如果问题依然存在,建议到官方问答社区提问或寻找帮助:".concat(i.COMMUNITY_SITE_URL)]}),c("design:type",Function),c("design:paramtypes",[Object]),c("design:returntype",Promise)],e.prototype,"refresh",null),e}(),v=t.LoginState=function(){function e(e){var t=e.envId,n=e.cache,r=e.oauthInstance;t||(0,i.throwError)(i.ERRORS.INVALID_PARAMS,"envId is not defined"),this.cache=n,this.oauthInstance=r,this.user=new _({cache:this.cache,oauthInstance:r})}return e.prototype.checkLocalState=function(){var e;this.oauthLoginState=null===(e=this.oauthInstance)||void 0===e?void 0:e.authApi.hasLoginStateSync(),this.user.checkLocalInfo()},e.prototype.checkLocalStateAsync=function(){var e;return l(this,void 0,void 0,function(){return u(this,function(t){switch(t.label){case 0:return[4,null===(e=this.oauthInstance)||void 0===e?void 0:e.authApi.getLoginState()];case 1:return t.sent(),[4,this.user.checkLocalInfoAsync()];case 2:return t.sent(),[2]}})})},e}(),y=t.Auth=function(){function e(e){this.config=e,this.cache=e.cache,this.oauthInstance=e.oauthInstance,e.publishable_key&&this.createLoginState()}return e.prototype.bindPhoneNumber=function(e){return l(this,void 0,void 0,function(){return u(this,function(t){return[2,this.oauthInstance.authApi.editContact(e)]})})},e.prototype.unbindProvider=function(e){return l(this,void 0,void 0,function(){return u(this,function(t){return[2,this.oauthInstance.authApi.unbindProvider(e)]})})},e.prototype.bindEmail=function(e){return this.oauthInstance.authApi.editContact(e)},e.prototype.verify=function(e){return l(this,void 0,void 0,function(){return u(this,function(t){return[2,this.oauthInstance.authApi.verify(e)]})})},e.prototype.getVerification=function(e,t){return l(this,void 0,void 0,function(){return u(this,function(n){return[2,this.oauthInstance.authApi.getVerification(e,t)]})})},Object.defineProperty(e.prototype,"currentUser",{get:function(){if("async"!==this.cache.mode){var e=this.hasLoginState();return e&&e.user||null}(0,i.printWarn)(i.ERRORS.INVALID_OPERATION,"current platform's storage is asynchronous, please use getCurrentUser insteed")},enumerable:!1,configurable:!0}),e.prototype.getCurrentUser=function(){return l(this,void 0,void 0,function(){var e;return u(this,function(t){switch(t.label){case 0:return[4,this.getLoginState()];case 1:return(e=t.sent())?[4,e.user.checkLocalInfoAsync()]:[3,3];case 2:return t.sent(),[2,e.user||null];case 3:return[2,null]}})})},e.prototype.signInAnonymously=function(e){return void 0===e&&(e={}),l(this,void 0,void 0,function(){return u(this,function(t){switch(t.label){case 0:return[4,this.oauthInstance.authApi.signInAnonymously(e)];case 1:return t.sent(),[2,this.createLoginState()]}})})},e.prototype.signInAnonymouslyInWx=function(e){var t=(void 0===e?{}:e).useWxCloud;return l(this,void 0,void 0,function(){var e,n,r=this;return u(this,function(o){switch(o.label){case 0:if(!i.adapterForWxMp.isMatch())throw Error("wx api undefined");return e=wx.getAccountInfoSync().miniProgram,n=function(n){return l(r,void 0,void 0,function(){var r,o;return u(this,function(i){switch(i.label){case 0:r=undefined,o=undefined,i.label=1;case 1:return i.trys.push([1,4,,5]),[4,this.oauthInstance.authApi.grantProviderToken({provider_id:null==e?void 0:e.appId,provider_code:n,provider_params:{provider_code_type:"open_id",appid:null==e?void 0:e.appId}},t)];case 2:if((null==(r=i.sent())?void 0:r.error_code)||!r.provider_token)throw r;return[4,this.oauthInstance.authApi.signInAnonymously({provider_token:r.provider_token},t)];case 3:if(null==(o=i.sent())?void 0:o.error_code)throw o;return[3,5];case 4:throw i.sent();case 5:return[2]}})})},[4,new Promise(function(e,t){wx.login({success:function(o){return l(r,void 0,void 0,function(){var r;return u(this,function(i){switch(i.label){case 0:return i.trys.push([0,2,,3]),[4,n(o.code)];case 1:return i.sent(),e(!0),[3,3];case 2:return r=i.sent(),t(r),[3,3];case 3:return[2]}})})},fail:function(e){var n=new Error(null==e?void 0:e.errMsg);n.code=null==e?void 0:e.errno,t(n)}})})];case 1:return o.sent(),[2,this.createLoginState(undefined,{asyncRefreshUser:!0})]}})})},e.prototype.bindOpenId=function(){return l(this,void 0,void 0,function(){var e,t,n=this;return u(this,function(r){switch(r.label){case 0:if(!i.adapterForWxMp.isMatch())throw Error("wx api undefined");return e=wx.getAccountInfoSync().miniProgram,t=function(t){return l(n,void 0,void 0,function(){var n;return u(this,function(r){switch(r.label){case 0:n=undefined,r.label=1;case 1:return r.trys.push([1,4,,5]),[4,this.oauthInstance.authApi.grantProviderToken({provider_id:null==e?void 0:e.appId,provider_code:t,provider_params:{provider_code_type:"open_id",appid:null==e?void 0:e.appId}})];case 2:if((null==(n=r.sent())?void 0:n.error_code)||!n.provider_token)throw n;return[4,this.oauthInstance.authApi.bindWithProvider({provider_token:n.provider_token})];case 3:return r.sent(),[3,5];case 4:throw r.sent();case 5:return[2]}})})},[4,new Promise(function(e,r){wx.login({success:function(o){return l(n,void 0,void 0,function(){var n;return u(this,function(i){switch(i.label){case 0:return i.trys.push([0,2,,3]),[4,t(o.code)];case 1:return i.sent(),e(!0),[3,3];case 2:return n=i.sent(),r(n),[3,3];case 3:return[2]}})})},fail:function(e){var t=new Error(null==e?void 0:e.errMsg);t.code=null==e?void 0:e.errno,r(t)}})})];case 1:return r.sent(),[2]}})})},e.prototype.signInWithOpenId=function(e){var t=(void 0===e?{}:e).useWxCloud,n=void 0===t||t;return l(this,void 0,void 0,function(){var e,t,r=this;return u(this,function(o){switch(o.label){case 0:if(!i.adapterForWxMp.isMatch())throw Error("wx api undefined");return e=wx.getAccountInfoSync().miniProgram,t=function(t){return l(r,void 0,void 0,function(){var r,o;return u(this,function(i){switch(i.label){case 0:r=undefined,o=undefined,i.label=1;case 1:return i.trys.push([1,4,,5]),[4,this.oauthInstance.authApi.grantProviderToken({provider_id:null==e?void 0:e.appId,provider_code:t,provider_params:{provider_code_type:"open_id",appid:null==e?void 0:e.appId}},n)];case 2:if((null==(r=i.sent())?void 0:r.error_code)||!r.provider_token)throw r;return[4,this.oauthInstance.authApi.signInWithProvider({provider_token:r.provider_token},n)];case 3:if(null==(o=i.sent())?void 0:o.error_code)throw o;return[3,5];case 4:throw i.sent();case 5:return[4,this.oauthInstance.oauth2client.setCredentials(o)];case 6:return i.sent(),[2]}})})},[4,new Promise(function(e,n){wx.login({success:function(o){return l(r,void 0,void 0,function(){var r;return u(this,function(i){switch(i.label){case 0:return i.trys.push([0,2,,3]),[4,t(o.code)];case 1:return i.sent(),e(!0),[3,3];case 2:return r=i.sent(),n(r),[3,3];case 3:return[2]}})})},fail:function(e){var t=new Error(null==e?void 0:e.errMsg);t.code=null==e?void 0:e.errno,n(t)}})})];case 1:return o.sent(),[2,this.createLoginState()]}})})},e.prototype.signInWithUnionId=function(){return l(this,void 0,void 0,function(){var e=this;return u(this,function(t){switch(t.label){case 0:if(!i.adapterForWxMp.isMatch())throw Error("wx api undefined");t.label=1;case 1:return t.trys.push([1,3,,4]),[4,new Promise(function(t,n){var r=wx.getAccountInfoSync().miniProgram;wx.login({success:function(o){return l(e,void 0,void 0,function(){var e,i,s,a,c;return u(this,function(l){switch(l.label){case 0:e=null==r?void 0:r.appId,l.label=1;case 1:return l.trys.push([1,4,,5]),[4,this.oauthInstance.authApi.grantProviderToken({provider_code:o.code,provider_id:e,provider_params:{provider_code_type:"union_id",appid:null==r?void 0:r.appId}})];case 2:return i=l.sent(),(s=i.provider_token)?[4,this.oauthInstance.authApi.signInWithProvider({provider_id:e,provider_token:s})]:(n(i),[2]);case 3:return(null==(a=l.sent())?void 0:a.error_code)?(n(a),[2]):(t(!0),[3,5]);case 4:return c=l.sent(),n(c),[3,5];case 5:return[2]}})})},fail:function(e){var t=new Error(null==e?void 0:e.errMsg);t.code=null==e?void 0:e.errno,n(t)}})})];case 2:return t.sent(),[3,4];case 3:throw t.sent();case 4:return[2,this.createLoginState()]}})})},e.prototype.signInWithPhoneAuth=function(e){var t=e.phoneCode,n=void 0===t?"":t;return l(this,void 0,void 0,function(){var e,t,r,o,s;return u(this,function(a){switch(a.label){case 0:if(!i.adapterForWxMp.isMatch())throw Error("wx api undefined");return e=wx.getAccountInfoSync().miniProgram,t={provider_params:{provider_code_type:"phone"},provider_id:e.appId},[4,wx.login()];case 1:r=a.sent().code,t.provider_code=r,a.label=2;case 2:return a.trys.push([2,6,,7]),[4,this.oauthInstance.authApi.grantProviderToken(t)];case 3:if((o=a.sent()).error_code)throw o;return[4,this.oauthInstance.authApi.patchProviderToken({provider_token:o.provider_token,provider_id:e.appId,provider_params:{code:n,provider_code_type:"phone"}})];case 4:if((o=a.sent()).error_code)throw o;return[4,this.oauthInstance.authApi.signInWithProvider({provider_token:o.provider_token})];case 5:if(null==(s=a.sent())?void 0:s.error_code)throw s;return[3,7];case 6:throw a.sent();case 7:return[2,this.createLoginState()]}})})},e.prototype.signInWithSms=function(e){var t=e.verificationInfo,n=void 0===t?{verification_id:"",is_user:!1}:t,r=e.verificationCode,o=void 0===r?"":r,i=e.phoneNum,s=void 0===i?"":i,a=e.bindInfo,c=void 0===a?undefined:a;return l(this,void 0,void 0,function(){return u(this,function(e){try{return[2,this.signInWithUsername({verificationInfo:n,verificationCode:o,bindInfo:c,username:s,loginType:"sms"})]}catch(t){throw t}})})},e.prototype.signInWithEmail=function(e){var t=e.verificationInfo,n=void 0===t?{verification_id:"",is_user:!1}:t,r=e.verificationCode,o=void 0===r?"":r,i=e.bindInfo,s=void 0===i?undefined:i,a=e.email,c=void 0===a?"":a;return l(this,void 0,void 0,function(){return u(this,function(e){try{return[2,this.signInWithUsername({verificationInfo:n,verificationCode:o,bindInfo:s,username:c,loginType:"email"})]}catch(t){throw t}})})},e.prototype.setCustomSignFunc=function(e){this.oauthInstance.authApi.setCustomSignFunc(e)},e.prototype.signInWithCustomTicket=function(){return l(this,void 0,void 0,function(){return u(this,function(e){switch(e.label){case 0:return[4,this.oauthInstance.authApi.signInWithCustomTicket()];case 1:return e.sent(),[2,this.createLoginState()]}})})},e.prototype.signIn=function(e){return l(this,void 0,void 0,function(){return u(this,function(t){switch(t.label){case 0:return[4,this.oauthInstance.authApi.signIn(e)];case 1:return t.sent(),[2,this.createLoginState(e)]}})})},e.prototype.signUp=function(e){return l(this,void 0,void 0,function(){return u(this,function(t){switch(t.label){case 0:return[4,this.oauthInstance.authApi.signUp(e)];case 1:return t.sent(),[2,this.createLoginState()]}})})},e.prototype.setPassword=function(e){return l(this,void 0,void 0,function(){return u(this,function(t){return[2,this.oauthInstance.authApi.setPassword(e)]})})},e.prototype.isUsernameRegistered=function(e){return l(this,void 0,void 0,function(){return u(this,function(t){switch(t.label){case 0:return"string"!=typeof e&&(0,i.throwError)(i.ERRORS.INVALID_PARAMS,"username must be a string"),[4,this.oauthInstance.authApi.checkIfUserExist({username:e})];case 1:return[2,t.sent().exist]}})})},e.prototype.signOut=function(e){return l(this,void 0,void 0,function(){var t,n;return u(this,function(r){switch(r.label){case 0:return t=this.cache.keys.userInfoKey,[4,this.oauthInstance.authApi.signOut(e)];case 1:return n=r.sent(),[4,this.cache.removeStoreAsync(t)];case 2:return r.sent(),m.fire(f,{eventType:d}),[2,n]}})})},e.prototype.hasLoginState=function(){var e;if("async"!==this.cache.mode)return(null===(e=this.oauthInstance)||void 0===e?void 0:e.authApi.hasLoginStateSync())?new v({envId:this.config.env,cache:this.cache,oauthInstance:this.oauthInstance}):null;(0,i.printWarn)(i.ERRORS.INVALID_OPERATION,"current platform's storage is asynchronous, please use getLoginState insteed")},e.prototype.getLoginState=function(){return l(this,void 0,void 0,function(){var e;return u(this,function(t){switch(t.label){case 0:e=null,t.label=1;case 1:return t.trys.push([1,3,,4]),[4,this.oauthInstance.authApi.getLoginState()];case 2:return e=t.sent(),[3,4];case 3:return t.sent(),[2,null];case 4:return e?[2,new v({envId:this.config.env,cache:this.cache,oauthInstance:this.oauthInstance})]:[2,null]}})})},e.prototype.getUserInfo=function(e){return l(this,void 0,void 0,function(){return u(this,function(t){return[2,this.oauthInstance.authApi.getUserInfo(e)]})})},e.prototype.getWedaUserInfo=function(){return l(this,void 0,void 0,function(){return u(this,function(e){return[2,this.oauthInstance.authApi.getWedaUserInfo()]})})},e.prototype.updateUserBasicInfo=function(e){return l(this,void 0,void 0,function(){var t;return u(this,function(n){switch(n.label){case 0:return[4,this.getLoginState()];case 1:return(t=n.sent())?[4,t.user.updateUserBasicInfo(e)]:[3,3];case 2:n.sent(),n.label=3;case 3:return[2]}})})},e.prototype.getAuthHeader=function(){return console.error("Auth.getAuthHeader API 已废弃"),{}},e.prototype.bindWithProvider=function(e){return l(this,void 0,void 0,function(){return u(this,function(t){return[2,this.oauthInstance.authApi.bindWithProvider(e)]})})},e.prototype.queryUser=function(e){return l(this,void 0,void 0,function(){return u(this,function(t){return[2,this.oauthInstance.authApi.queryUserProfile(e)]})})},e.prototype.getAccessToken=function(){return l(this,void 0,void 0,function(){return u(this,function(e){switch(e.label){case 0:return[4,this.oauthInstance.oauth2client.getAccessToken()];case 1:return[2,{accessToken:e.sent(),env:this.config.env}]}})})},e.prototype.grantProviderToken=function(e){return l(this,void 0,void 0,function(){return u(this,function(t){return[2,this.oauthInstance.authApi.grantProviderToken(e)]})})},e.prototype.patchProviderToken=function(e){return l(this,void 0,void 0,function(){return u(this,function(t){return[2,this.oauthInstance.authApi.patchProviderToken(e)]})})},e.prototype.signInWithProvider=function(e){return l(this,void 0,void 0,function(){return u(this,function(t){switch(t.label){case 0:return[4,this.oauthInstance.authApi.signInWithProvider(e)];case 1:return t.sent(),[2,this.createLoginState(e)]}})})},e.prototype.signInWithWechat=function(e){return void 0===e&&(e={}),l(this,void 0,void 0,function(){return u(this,function(t){switch(t.label){case 0:return[4,this.oauthInstance.authApi.signInWithWechat(e)];case 1:return t.sent(),[2,this.createLoginState(e)]}})})},e.prototype.grantToken=function(e){return l(this,void 0,void 0,function(){return u(this,function(t){switch(t.label){case 0:return[4,this.oauthInstance.authApi.grantToken(e)];case 1:return t.sent(),[2,this.createLoginState()]}})})},e.prototype.genProviderRedirectUri=function(e){return l(this,void 0,void 0,function(){return u(this,function(t){return[2,this.oauthInstance.authApi.genProviderRedirectUri(e)]})})},e.prototype.resetPassword=function(e){return l(this,void 0,void 0,function(){return u(this,function(t){return[2,this.oauthInstance.authApi.resetPassword(e)]})})},e.prototype.deviceAuthorize=function(e){return l(this,void 0,void 0,function(){return u(this,function(t){return[2,this.oauthInstance.authApi.deviceAuthorize(e)]})})},e.prototype.sudo=function(e){return l(this,void 0,void 0,function(){return u(this,function(t){return[2,this.oauthInstance.authApi.sudo(e)]})})},e.prototype.deleteMe=function(e){return l(this,void 0,void 0,function(){return u(this,function(t){return[2,this.oauthInstance.authApi.deleteMe(e)]})})},e.prototype.getProviders=function(){return l(this,void 0,void 0,function(){return u(this,function(e){return[2,this.oauthInstance.authApi.getProviders()]})})},e.prototype.loginScope=function(){return l(this,void 0,void 0,function(){return u(this,function(e){return[2,this.oauthInstance.authApi.loginScope()]})})},e.prototype.loginGroups=function(){return l(this,void 0,void 0,function(){return u(this,function(e){return[2,this.oauthInstance.authApi.loginGroups()]})})},e.prototype.onLoginStateChanged=function(e){return l(this,void 0,void 0,function(){var t,n=this;return u(this,function(r){switch(r.label){case 0:return m.on(f,function(t){return l(n,void 0,void 0,function(){var n,r,o;return u(this,function(i){switch(i.label){case 0:return(null===(o=null==t?void 0:t.data)||void 0===o?void 0:o.eventType)===p?[3,2]:[4,this.getLoginState()];case 1:return r=i.sent(),[3,3];case 2:r={},i.label=3;case 3:return n=r,e.call(this,s(s({},t),n)),[2]}})})}),[4,this.getLoginState()];case 1:return t=r.sent(),e.call(this,t),[2]}})})},e.prototype.refreshTokenForce=function(e){return l(this,void 0,void 0,function(){return u(this,function(t){return[2,this.oauthInstance.authApi.refreshTokenForce(e)]})})},e.prototype.getCredentials=function(){return l(this,void 0,void 0,function(){return u(this,function(e){return[2,this.oauthInstance.authApi.getCredentials()]})})},e.prototype.setCredentials=function(e){return l(this,void 0,void 0,function(){return u(this,function(t){switch(t.label){case 0:return[4,this.oauthInstance.oauth2client.setCredentials(e)];case 1:return t.sent(),[2]}})})},e.prototype.getProviderSubType=function(){return l(this,void 0,void 0,function(){return u(this,function(e){return[2,this.oauthInstance.authApi.getProviderSubType()]})})},e.prototype.createCaptchaData=function(e){return l(this,void 0,void 0,function(){return u(this,function(t){return[2,this.oauthInstance.authApi.createCaptchaData(e)]})})},e.prototype.verifyCaptchaData=function(e){return l(this,void 0,void 0,function(){return u(this,function(t){return[2,this.oauthInstance.authApi.verifyCaptchaData(e)]})})},e.prototype.getMiniProgramQrCode=function(e){return l(this,void 0,void 0,function(){return u(this,function(t){return[2,this.oauthInstance.authApi.getMiniProgramCode(e)]})})},e.prototype.getMiniProgramQrCodeStatus=function(e){return l(this,void 0,void 0,function(){return u(this,function(t){return[2,this.oauthInstance.authApi.getMiniProgramQrCodeStatus(e)]})})},e.prototype.modifyPassword=function(e){return l(this,void 0,void 0,function(){return u(this,function(t){return[2,this.oauthInstance.authApi.modifyPassword(e)]})})},e.prototype.modifyPasswordWithoutLogin=function(e){return l(this,void 0,void 0,function(){return u(this,function(t){return[2,this.oauthInstance.authApi.modifyPasswordWithoutLogin(e)]})})},e.prototype.getUserBehaviorLog=function(e){return l(this,void 0,void 0,function(){return u(this,function(t){return[2,this.oauthInstance.authApi.getUserBehaviorLog(e)]})})},e.prototype.toDefaultLoginPage=function(e){return void 0===e&&(e={}),l(this,void 0,void 0,function(){var t,n,r,o;return u(this,function(s){return t=e.config_version||"env",i.adapterForWxMp.isMatch()?wx.navigateTo({url:"/packages/$wd_system/pages/login/index"}):(n=e.redirect_uri||window.location.href,r=new URL(n),o="".concat(r.origin,"/__auth/?app_id=").concat(e.app_id||"","&env_id=").concat(this.config.env,"&client_id=").concat(this.config.clientId,"&config_version=").concat(t,"&redirect_uri=").concat(encodeURIComponent(n)),window.location.href=o),[2]})})},e.prototype.createLoginState=function(e,t){return l(this,void 0,void 0,function(){var n;return u(this,function(r){switch(r.label){case 0:return[4,(n=new v({envId:this.config.env,cache:this.cache,oauthInstance:this.oauthInstance})).checkLocalStateAsync()];case 1:return r.sent(),(null==t?void 0:t.asyncRefreshUser)?(n.user.refresh(e),[3,4]):[3,2];case 2:return[4,n.user.refresh(e)];case 3:r.sent(),r.label=4;case 4:return m.fire(f,{eventType:h}),[2,n]}})})},e.prototype.signInWithUsername=function(e){var t=e.verificationInfo,n=void 0===t?{verification_id:"",is_user:!1}:t,r=e.verificationCode,o=void 0===r?"":r,i=e.username,a=void 0===i?"":i,c=e.bindInfo,d=void 0===c?undefined:c,h=e.loginType,p=void 0===h?"":h;return l(this,void 0,void 0,function(){var e,t,r,i,c,l,h;return u(this,function(u){switch(u.label){case 0:return u.trys.push([0,8,,9]),[4,this.oauthInstance.authApi.verify({verification_id:n.verification_id,verification_code:o})];case 1:if(null==(e=u.sent())?void 0:e.error_code)throw e;return t=e.verification_token,r="+86 ".concat(a),i={phone_number:r},"email"===p&&(i={email:r=a}),n.is_user?[4,this.oauthInstance.authApi.signIn({username:r,verification_token:t})]:[3,5];case 2:if(null==(c=u.sent())?void 0:c.error_code)throw c;return d?[4,this.oauthInstance.authApi.bindWithProvider({provider_token:null==d?void 0:d.providerToken})]:[3,4];case 3:if(null==(l=u.sent())?void 0:l.error_code)throw l;u.label=4;case 4:return[3,7];case 5:return[4,this.oauthInstance.authApi.signUp(s(s({},i),{verification_token:t,provider_token:null==d?void 0:d.providerId}))];case 6:if(null==(h=u.sent())?void 0:h.error_code)throw h;u.label=7;case 7:return[2,this.createLoginState()];case 8:throw u.sent();case 9:return[2]}})})},a([(0,i.catchErrorsDecorator)({title:"绑定手机号失败",messages:["请确认以下各项:"," 1 - 调用 auth().bindPhoneNumber() 的语法或参数是否正确"," 2 - 当前环境是否开通了短信验证码登录","如果问题依然存在,建议到官方问答社区提问或寻找帮助:".concat(i.COMMUNITY_SITE_URL)]}),c("design:type",Function),c("design:paramtypes",[Object]),c("design:returntype",Promise)],e.prototype,"bindPhoneNumber",null),a([(0,i.catchErrorsDecorator)({title:"解除三方绑定失败",messages:["请确认以下各项:"," 1 - 调用 auth().unbindProvider() 的语法或参数是否正确"," 2 - 当前账户是否已经与此登录方式解绑","如果问题依然存在,建议到官方问答社区提问或寻找帮助:".concat(i.COMMUNITY_SITE_URL)]}),c("design:type",Function),c("design:paramtypes",[Object]),c("design:returntype",Promise)],e.prototype,"unbindProvider",null),a([(0,i.catchErrorsDecorator)({title:"绑定邮箱地址失败",messages:["请确认以下各项:"," 1 - 调用 auth().bindEmail() 的语法或参数是否正确"," 2 - 当前环境是否开通了邮箱密码登录","如果问题依然存在,建议到官方问答社区提问或寻找帮助:".concat(i.COMMUNITY_SITE_URL)]}),c("design:type",Function),c("design:paramtypes",[Object]),c("design:returntype",void 0)],e.prototype,"bindEmail",null),a([(0,i.catchErrorsDecorator)({title:"验证码验证失败",messages:["请确认以下各项:"," 1 - 调用 auth().verify() 的语法或参数是否正确"," 2 - 当前环境是否开通了手机验证码/邮箱登录","如果问题依然存在,建议到官方问答社区提问或寻找帮助:".concat(i.COMMUNITY_SITE_URL)]}),c("design:type",Function),c("design:paramtypes",[Object]),c("design:returntype",Promise)],e.prototype,"verify",null),a([(0,i.catchErrorsDecorator)({title:"获取验证码失败",messages:["请确认以下各项:"," 1 - 调用 auth().getVerification() 的语法或参数是否正确"," 2 - 当前环境是否开通了手机验证码/邮箱登录","如果问题依然存在,建议到官方问答社区提问或寻找帮助:".concat(i.COMMUNITY_SITE_URL)]}),c("design:type",Function),c("design:paramtypes",[Object,Object]),c("design:returntype",Promise)],e.prototype,"getVerification",null),a([(0,i.catchErrorsDecorator)({title:"获取用户信息失败",messages:["请确认以下各项:"," 1 - 调用 auth().getCurrentUser() 的语法或参数是否正确","如果问题依然存在,建议到官方问答社区提问或寻找帮助:".concat(i.COMMUNITY_SITE_URL)]}),c("design:type",Function),c("design:paramtypes",[]),c("design:returntype",Promise)],e.prototype,"getCurrentUser",null),a([(0,i.catchErrorsDecorator)({title:"匿名登录失败",messages:["请确认以下各项:"," 1 - 当前环境是否开启了匿名登录"," 2 - 调用 auth().signInAnonymously() 的语法或参数是否正确","如果问题依然存在,建议到官方问答社区提问或寻找帮助:".concat(i.COMMUNITY_SITE_URL)]}),c("design:type",Function),c("design:paramtypes",[Object]),c("design:returntype",Promise)],e.prototype,"signInAnonymously",null),a([(0,i.catchErrorsDecorator)({title:"小程序匿名登录失败",messages:["请确认以下各项:"," 1 - 当前环境是否开启了匿名登录"," 2 - 调用 auth().signInAnonymouslyInWx() 的语法或参数是否正确","如果问题依然存在,建议到官方问答社区提问或寻找帮助:".concat(i.COMMUNITY_SITE_URL)]}),c("design:type",Function),c("design:paramtypes",[Object]),c("design:returntype",Promise)],e.prototype,"signInAnonymouslyInWx",null),a([(0,i.catchErrorsDecorator)({title:"小程序绑定OpenID失败",messages:["请确认以下各项:"," 1 - 当前环境是否开启了小程序openId静默登录"," 2 - 调用 auth().bindOpenId() 的语法或参数是否正确","如果问题依然存在,建议到官方问答社区提问或寻找帮助:".concat(i.COMMUNITY_SITE_URL)]}),c("design:type",Function),c("design:paramtypes",[]),c("design:returntype",Promise)],e.prototype,"bindOpenId",null),a([(0,i.catchErrorsDecorator)({title:"小程序openId静默登录失败",messages:["请确认以下各项:"," 1 - 当前环境是否开启了小程序openId静默登录"," 2 - 调用 auth().signInWithOpenId() 的语法或参数是否正确","如果问题依然存在,建议到官方问答社区提问或寻找帮助:".concat(i.COMMUNITY_SITE_URL)]}),c("design:type",Function),c("design:paramtypes",[Object]),c("design:returntype",Promise)],e.prototype,"signInWithOpenId",null),a([(0,i.catchErrorsDecorator)({title:"小程序unionId静默登录失败",messages:["请确认以下各项:"," 1 - 当前环境是否开启了小程序unionId静默登录"," 2 - 调用 auth().signInWithUnionId() 的语法或参数是否正确","如果问题依然存在,建议到官方问答社区提问或寻找帮助:".concat(i.COMMUNITY_SITE_URL)]}),c("design:type",Function),c("design:paramtypes",[]),c("design:returntype",Promise)],e.prototype,"signInWithUnionId",null),a([(0,i.catchErrorsDecorator)({title:"小程序手机号授权登录失败",messages:["请确认以下各项:"," 1 - 当前环境是否开启了小程序手机号授权登录"," 2 - 调用 auth().signInWithPhoneAuth() 的语法或参数是否正确","如果问题依然存在,建议到官方问答社区提问或寻找帮助:".concat(i.COMMUNITY_SITE_URL)]}),c("design:type",Function),c("design:paramtypes",[Object]),c("design:returntype",Promise)],e.prototype,"signInWithPhoneAuth",null),a([(0,i.catchErrorsDecorator)({title:"短信验证码登陆",messages:["请确认以下各项:"," 1 - 当前环境是否开启了小程序短信验证码登陆"," 2 - 调用 auth().signInWithSms() 的语法或参数是否正确","如果问题依然存在,建议到官方问答社区提问或寻找帮助:".concat(i.COMMUNITY_SITE_URL)]}),c("design:type",Function),c("design:paramtypes",[Object]),c("design:returntype",Promise)],e.prototype,"signInWithSms",null),a([(0,i.catchErrorsDecorator)({title:"邮箱验证码登陆",messages:["请确认以下各项:"," 1 - 当前环境是否开启了邮箱登陆"," 2 - 调用 auth().signInWithEmail() 的语法或参数是否正确","如果问题依然存在,建议到官方问答社区提问或寻找帮助:".concat(i.COMMUNITY_SITE_URL)]}),c("design:type",Function),c("design:paramtypes",[Object]),c("design:returntype",Promise)],e.prototype,"signInWithEmail",null),a([(0,i.catchErrorsDecorator)({title:"自定义登录失败",messages:["请确认以下各项:"," 1 - 当前环境是否开启了自定义登录"," 2 - 调用 auth().signInWithCustomTicket() 的语法或参数是否正确"," 3 - ticket 是否归属于当前环境"," 4 - 创建 ticket 的自定义登录私钥是否过期","如果问题依然存在,建议到官方问答社区提问或寻找帮助:".concat(i.COMMUNITY_SITE_URL)]}),c("design:type",Function),c("design:paramtypes",[]),c("design:returntype",Promise)],e.prototype,"signInWithCustomTicket",null),a([(0,i.catchErrorsDecorator)({title:"注册失败",messages:["请确认以下各项:"," 1 - 当前环境是否开启了指定登录方式"," 2 - 调用 auth().signUp() 的语法或参数是否正确","如果问题依然存在,建议到官方问答社区提问或寻找帮助:".concat(i.COMMUNITY_SITE_URL)]}),c("design:type",Function),c("design:paramtypes",[Object]),c("design:returntype",Promise)],e.prototype,"signUp",null),a([(0,i.catchErrorsDecorator)({title:"获取用户是否被占用失败",messages:["请确认以下各项:"," 1 - 调用 auth().isUsernameRegistered() 的语法或参数是否正确","如果问题依然存在,建议到官方问答社区提问或寻找帮助:".concat(i.COMMUNITY_SITE_URL)]}),c("design:type",Function),c("design:paramtypes",[String]),c("design:returntype",Promise)],e.prototype,"isUsernameRegistered",null),a([(0,i.catchErrorsDecorator)({title:"用户登出失败",messages:["请确认以下各项:"," 1 - 调用 auth().signOut() 的语法或参数是否正确"," 2 - 当前用户是否为匿名登录(匿名登录不支持signOut)","如果问题依然存在,建议到官方问答社区提问或寻找帮助:".concat(i.COMMUNITY_SITE_URL)]}),c("design:type",Function),c("design:paramtypes",[Object]),c("design:returntype",Promise)],e.prototype,"signOut",null),a([(0,i.catchErrorsDecorator)({title:"获取本地登录态失败",messages:["请确认以下各项:"," 1 - 调用 auth().getLoginState() 的语法或参数是否正确","如果问题依然存在,建议到官方问答社区提问或寻找帮助:".concat(i.COMMUNITY_SITE_URL)]}),c("design:type",Function),c("design:paramtypes",[]),c("design:returntype",Promise)],e.prototype,"getLoginState",null),a([(0,i.catchErrorsDecorator)({title:"获取用户信息失败",messages:["请确认以下各项:"," 1 - 是否已登录"," 2 - 调用 auth().getUserInfo() 的语法或参数是否正确","如果问题依然存在,建议到官方问答社区提问或寻找帮助:".concat(i.COMMUNITY_SITE_URL)]}),c("design:type",Function),c("design:paramtypes",[Object]),c("design:returntype",Promise)],e.prototype,"getUserInfo",null),a([(0,i.catchErrorsDecorator)({title:"获取微搭插件用户信息失败",messages:["请确认以下各项:"," 1 - 是否已登录"," 2 - 调用 auth().getWedaUserInfo() 的语法或参数是否正确","如果问题依然存在,建议到官方问答社区提问或寻找帮助:".concat(i.COMMUNITY_SITE_URL)]}),c("design:type",Function),c("design:paramtypes",[]),c("design:returntype",Promise)],e.prototype,"getWedaUserInfo",null),a([(0,i.catchErrorsDecorator)({title:"绑定第三方登录方式失败",messages:["请确认以下各项:"," 1 - 调用 auth().bindWithProvider() 的语法或参数是否正确"," 2 - 此账户是否已经绑定此第三方","如果问题依然存在,建议到官方问答社区提问或寻找帮助:".concat(i.COMMUNITY_SITE_URL)]}),c("design:type",Function),c("design:paramtypes",[Object]),c("design:returntype",Promise)],e.prototype,"bindWithProvider",null),a([(0,i.catchErrorsDecorator)({title:"获取身份源类型",messages:["请确认以下各项:"," 1 - 调用 auth().getProviderSubType() 的语法或参数是否正确","如果问题依然存在,建议到官方问答社区提问或寻找帮助:".concat(i.COMMUNITY_SITE_URL)]}),c("design:type",Function),c("design:paramtypes",[]),c("design:returntype",Promise)],e.prototype,"getProviderSubType",null),e}();function b(e,t){var n=e.region,a=void 0===n?"ap-shanghai":n,c=e.i18n,l=e.publishable_key,u=(null==t?void 0:t.platform)||(0,i.useDefaultAdapter)(),d=u.runtime,h=u.adapter,p=t||{},f=p.env,m=p.clientId,_=p.debug,v=p.cache,b=p.app,w=(t||{}).apiOrigin;w||(w="https://".concat(f,".").concat(a,".tcb-api.tencentcloudapi.com"));var S={env:f,clientId:m,i18n:c,publishable_key:l},I=new r.CloudbaseOAuth((0,o.useAuthAdapter)(s(s({},S),{apiOrigin:w,apiPath:(null==e?void 0:e.apiPath)||r.AUTH_API_PREFIX,storage:null==e?void 0:e.storage,baseRequest:null==e?void 0:e.baseRequest,request:null==e?void 0:e.request,anonymousSignInFunc:null==e?void 0:e.anonymousSignInFunc,captchaOptions:null==e?void 0:e.captchaOptions,wxCloud:null==e?void 0:e.wxCloud,adapter:h,onCredentialsError:g,headers:e.headers||{}})));return{authInstance:new y(s(s({},S),{region:a,persistence:e.persistence,debug:_,cache:v||new i.CloudbaseCache({persistence:e.persistence,keys:{userInfoKey:"user_info_".concat(f)},platformInfo:u}),runtime:d||"web",_fromApp:b,oauthInstance:I})),oauthInstance:I}}var w={name:"auth",namespace:"auth",entity:function(e){if(void 0===e&&(e={region:"",persistence:"local",apiPath:r.AUTH_API_PREFIX}),this.authInstance)return(0,i.printWarn)(i.ERRORS.INVALID_OPERATION,"every cloudbase instance should has only one auth object"),this.authInstance;var t=this.platform.adapter,n=e.persistence||t.primaryStorage;n&&n!==this.config.persistence&&this.updateConfig({persistence:n});var o=b(s(s({wxCloud:this.config.wxCloud,storage:this.config.storage},e),{persistence:this.config.persistence,i18n:this.config.i18n,publishable_key:this.config.publishable_key}),{env:this.config.env,clientId:this.config.clientId,apiOrigin:this.request.getBaseEndPoint(),platform:this.platform,cache:this.cache,app:this,debug:this.config.debug}),a=o.authInstance,c=o.oauthInstance;return this.oauthInstance=c,this.authInstance=a,this.authInstance}};try{cloudbase.registerComponent(w)}catch(S){}},8178:function(e,t,n){"use strict";var r=n(6553)["default"];Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"COMMUNITY_SITE_URL",{enumerable:!0,get:function(){return i.COMMUNITY_SITE_URL}}),Object.defineProperty(t,"CloudbaseCache",{enumerable:!0,get:function(){return c.CloudbaseCache}}),Object.defineProperty(t,"CloudbaseEventEmitter",{enumerable:!0,get:function(){return a.CloudbaseEventEmitter}}),Object.defineProperty(t,"ERRORS",{enumerable:!0,get:function(){return i.ERRORS}}),Object.defineProperty(t,"adapterForWxMp",{enumerable:!0,get:function(){return l["default"]}}),Object.defineProperty(t,"catchErrorsDecorator",{enumerable:!0,get:function(){return s.catchErrorsDecorator}}),Object.defineProperty(t,"printWarn",{enumerable:!0,get:function(){return o.printWarn}}),Object.defineProperty(t,"throwError",{enumerable:!0,get:function(){return o.throwError}}),Object.defineProperty(t,"useDefaultAdapter",{enumerable:!0,get:function(){return u.useDefaultAdapter}});var o=n(5046),i=n(2189),s=n(5641),a=n(8847),c=n(5546),l=r(n(266)),u=n(6972)},266:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.wxMpStorage=t["default"]=t.WxRequest=t.WxMpWebSocket=void 0;var r,o=n(1553),i=n(5232),s=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},r(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),a=function(){return a=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},a.apply(this,arguments)},c=function(e,t,n,r){return new(n||(n=Promise))(function(o,i){function s(e){try{c(r.next(e))}catch(t){i(t)}}function a(e){try{c(r["throw"](e))}catch(t){i(t)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(s,a)}c((r=r.apply(e,t||[])).next())})},l=function(e,t){var n,r,o,i,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:a(0),"throw":a(1),"return":a(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function a(i){return function(a){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;s;)try{if(n=1,r&&(o=2&i[0]?r["return"]:i[0]?r["throw"]||((o=r["return"])&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return s.label++,{value:i[1],done:!1};case 5:s.label++,r=i[1],i=[0];continue;case 7:i=s.ops.pop(),s.trys.pop();continue;default:if(!((o=(o=s.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){s=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){s.label=i[1];break}if(6===i[0]&&s.label<o[1]){s.label=o[1],o=i;break}if(o&&s.label<o[2]){s.label=o[2],s.ops.push(i);break}o[2]&&s.ops.pop(),s.trys.pop();continue}i=t.call(e,s)}catch(a){i=[6,a],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,a])}}},u="Error when aborting requestTask",d=t.WxRequest=function(e){function t(t){void 0===t&&(t={});var n=e.call(this)||this,r=t.timeout,o=t.timeoutMsg,i=t.restrictedMethods;return n._timeout=r||0,n._timeoutMsg=o||"请求超时",n._restrictedMethods=i||["get","post","upload","download"],n}return s(t,e),t.prototype.post=function(e){var t=this;return new Promise(function(n,r){var i=e.url,s=e.data,a=e.headers,c=wx.request({url:(0,o.formatUrl)("https:",i),data:s,timeout:t._timeout,method:"POST",header:a,success:function(e){n(e)},fail:function(e){r(e)},complete:function(e){if(e&&e.errMsg&&t._timeout&&-1!==t._restrictedMethods.indexOf("post")&&"request:fail timeout"===e.errMsg){console.warn(t._timeoutMsg);try{c.abort()}catch(n){}}}})})},t.prototype.upload=function(e){var t=this,n=this;return new Promise(function(r){return c(t,void 0,void 0,function(){var t,o,i,s,c,u;return l(this,function(l){return t=e.url,o=e.file,i=e.data,s=e.headers,c=e.onUploadProgress,u=wx.uploadFile({url:t,filePath:o,name:"file",formData:a({},i),header:s,timeout:this._timeout,success:function(e){var t={statusCode:e.statusCode,data:e.data||{}};200===e.statusCode&&i.success_action_status&&(t.statusCode=parseInt(i.success_action_status,10)),r(t)},fail:function(e){r(e)},complete:function(e){if(e&&e.errMsg&&n._timeout&&-1!==n._restrictedMethods.indexOf("upload")&&"request:fail timeout"===e.errMsg){console.warn(n._timeoutMsg);try{u.abort()}catch(t){}}}}),c&&u.onProgressUpdate(function(e){c(e)}),[2]})})})},t.prototype.download=function(e){var t=this,n=this;return new Promise(function(r,i){var s=e.url,a=e.headers,c=wx.downloadFile({url:(0,o.formatUrl)("https:",s),header:a,timeout:t._timeout,success:function(e){200===e.statusCode&&e.tempFilePath?r({statusCode:200,tempFilePath:e.tempFilePath}):r(e)},fail:function(e){i(e)},complete:function(e){if(e&&e.errMsg&&n._timeout&&-1!==n._restrictedMethods.indexOf("download")&&"request:fail timeout"===e.errMsg){console.warn(n._timeoutMsg);try{c.abort()}catch(t){}}}})})},t.prototype.fetch=function(e){var t=e.url,n=e.body,r=e.enableAbort,s=e.headers,a=e.method,c=e.stream,l=void 0!==c&&c,d=e.signal,h=e.timeout,p=this,f=null!=h?h:this._timeout,m=null,g=new i.ReadableStream({start:function(e){m=e},cancel:function(){m=null}});return new Promise(function(e,i){l&&e({data:g});var c=wx.request({url:(0,o.formatUrl)("https:",t),data:n,timeout:f,method:a.toUpperCase(),header:s,success:function(t){var n;null===(n=m)||void 0===n||n.close(),!l&&e(t)},fail:function(e){var t;if(null===(t=m)||void 0===t||t.close(),i(e),l)throw e},complete:function(e){if(e&&e.errMsg&&f&&-1!==p._restrictedMethods.indexOf("post")&&r&&"request:fail timeout"===e.errMsg){console.warn(p._timeoutMsg);try{c.abort()}catch(t){console.warn(u,t)}}},enableChunked:l});if(c.onChunkReceived(function(e){var t;null===(t=m)||void 0===t||t.enqueue(new Uint8Array(e.data))}),d){var h=function(){try{c.abort()}catch(e){console.warn(u,e)}};d.aborted?h():d.addEventListener("abort",function(){return h()})}})},t}(o.AbstractSDKRequest),h=t.wxMpStorage={setItem:function(e,t){wx.setStorageSync(e,t)},getItem:function(e){return wx.getStorageSync(e)},removeItem:function(e){wx.removeStorageSync(e)},clear:function(){wx.clearStorageSync()}},p=t.WxMpWebSocket=function(e,t){void 0===t&&(t={});var n=wx.connectSocket(a({url:e},t));return{set onopen(e){n.onOpen(e)},set onmessage(e){n.onMessage(e)},set onclose(e){n.onClose(e)},set onerror(e){n.onError(e)},send:function(e){return n.send({data:e})},close:function(e,t){return n.close({code:e,reason:t})},get readyState(){return n.readyState},CONNECTING:0,OPEN:1,CLOSING:2,CLOSED:3}},f={genAdapter:function(){return{root:{},reqClass:d,wsClass:p,localStorage:h,primaryStorage:o.StorageType.local,getAppSign:function(){var e=wx.getAccountInfoSync();return"undefined"!=typeof App||"undefined"!=typeof getApp||wx.onAppHide||wx.offAppHide||wx.onAppShow||wx.offAppShow?e&&e.miniProgram?e.miniProgram.appId:"":e&&e.plugin?e.plugin.appId:""}}},isMatch:function(){if("undefined"==typeof wx)return!1;if("undefined"==typeof Page)return!1;if(!wx.getSystemInfoSync)return!1;if(!wx.getStorageSync)return!1;if(!wx.setStorageSync)return!1;if(!wx.connectSocket)return!1;if(!wx.request)return!1;try{if(!wx.getSystemInfoSync())return!1;if("qq"===wx.getSystemInfoSync().AppPlatform)return!1}catch(e){return!1}return!0},runtime:"wx_mp"};t["default"]=f},8750:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.registerCloudrun=function(e){try{e.registerComponent(d)}catch(t){console.warn(t)}},t.requestContainer=l;var r=n(9174),o=function(){return o=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},o.apply(this,arguments)},i=function(e,t,n,r){return new(n||(n=Promise))(function(o,i){function s(e){try{c(r.next(e))}catch(t){i(t)}}function a(e){try{c(r["throw"](e))}catch(t){i(t)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(s,a)}c((r=r.apply(e,t||[])).next())})},s=function(e,t){var n,r,o,i,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:a(0),"throw":a(1),"return":a(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function a(a){return function(c){return function(a){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,a[0]&&(s=0)),s;)try{if(n=1,r&&(o=2&a[0]?r["return"]:a[0]?r["throw"]||((o=r["return"])&&o.call(r),0):r.next)&&!(o=o.call(r,a[1])).done)return o;switch(r=0,o&&(a=[2&a[0],o.value]),a[0]){case 0:case 1:o=a;break;case 4:return s.label++,{value:a[1],done:!1};case 5:s.label++,r=a[1],a=[0];continue;case 7:a=s.ops.pop(),s.trys.pop();continue;default:if(!((o=(o=s.trys).length>0&&o[o.length-1])||6!==a[0]&&2!==a[0])){s=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]<o[3])){s.label=a[1];break}if(6===a[0]&&s.label<o[1]){s.label=o[1],o=a;break}if(o&&s.label<o[2]){s.label=o[2],s.ops.push(a);break}o[2]&&s.ops.pop(),s.trys.pop();continue}a=t.call(e,s)}catch(c){a=[6,c],r=0}finally{n=o=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,c])}}},a=r.constants.ERRORS,c="cloudrun";function l(e){return i(this,void 0,void 0,function(){var t,n,r,o,i,a,c,l,u;return s(this,function(s){switch(s.label){case 0:return t=e.name,n=e.data,r=e.path,o=void 0===r?"":r,i=e.method,a=e.header,c=void 0===a?{}:a,l="https://".concat(this.config.env,".api.tcloudbasegateway.com/v1/cloudrun/").concat(t),u=o.startsWith("/")?o:"/".concat(o),[4,this.request.fetch({method:i||"POST",headers:Object.assign({},{"Content-Type":"application/json; charset=utf-8"},c),body:n,url:"".concat(l).concat(u)})];case 1:return[4,s.sent().data];case 2:return[2,s.sent()]}})})}var u=new(function(){function e(){}return e.prototype.callContainer=function(e){return i(this,void 0,void 0,function(){var t,n,r;return s(this,function(i){switch(i.label){case 0:if(t=e.name,n=e.data,!t)throw new Error(JSON.stringify({code:a.INVALID_PARAMS,msg:"[".concat(c,".callContainer] invalid name")}));try{r=n?JSON.stringify(n):""}catch(s){throw new Error(JSON.stringify({code:a.INVALID_PARAMS,msg:"[".concat(c,".callContainer] invalid data")}))}return[4,l.call(this,o(o({},e),{data:r}))];case 1:return[2,i.sent()]}})})},e}()),d={name:c,entity:{callContainer:u.callContainer}};try{cloudbase.registerComponent(d)}catch(h){}},7553:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.registerFunctions=function(e){try{e.registerComponent(_)}catch(t){console.warn(t)}};var r=n(9174),o=n(8750),i=function(){return i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},i.apply(this,arguments)},s=function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},a=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},c=function(e,t,n,r){return new(n||(n=Promise))(function(o,i){function s(e){try{c(r.next(e))}catch(t){i(t)}}function a(e){try{c(r["throw"](e))}catch(t){i(t)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(s,a)}c((r=r.apply(e,t||[])).next())})},l=function(e,t){var n,r,o,i,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:a(0),"throw":a(1),"return":a(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function a(a){return function(c){return function(a){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,a[0]&&(s=0)),s;)try{if(n=1,r&&(o=2&a[0]?r["return"]:a[0]?r["throw"]||((o=r["return"])&&o.call(r),0):r.next)&&!(o=o.call(r,a[1])).done)return o;switch(r=0,o&&(a=[2&a[0],o.value]),a[0]){case 0:case 1:o=a;break;case 4:return s.label++,{value:a[1],done:!1};case 5:s.label++,r=a[1],a=[0];continue;case 7:a=s.ops.pop(),s.trys.pop();continue;default:if(!((o=(o=s.trys).length>0&&o[o.length-1])||6!==a[0]&&2!==a[0])){s=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]<o[3])){s.label=a[1];break}if(6===a[0]&&s.label<o[1]){s.label=o[1],o=a;break}if(o&&s.label<o[2]){s.label=o[2],s.ops.push(a);break}o[2]&&s.ops.pop(),s.trys.pop();continue}a=t.call(e,s)}catch(c){a=[6,c],r=0}finally{n=o=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,c])}}},u=r.constants.getSdkName,d=r.constants.ERRORS,h=r.constants.COMMUNITY_SITE_URL,p=r.utils.execCallback,f=r.helpers.catchErrorsDecorator,m="functions",g=new(function(){function e(){}return e.prototype.callFunction=function(e,t){var n,s;return c(this,void 0,void 0,function(){var a,c,h,f,g,_,v,y,b,w,S,I,E,k,C,T,A,O,P;return l(this,function(l){switch(l.label){case 0:if(a=e.name,c=e.data,h=e.query,f=e.parse,g=e.search,_=e.type,v=e.path,y=void 0===v?"":v,b=e.method,w=e.header,S=void 0===w?{}:w,!a)throw new Error(JSON.stringify({code:d.INVALID_PARAMS,msg:"[".concat(m,".callFunction] invalid function name")}));try{I=c?JSON.stringify(c):""}catch(M){throw new Error(JSON.stringify({code:d.INVALID_PARAMS,msg:"[".concat(m,".callFunction] invalid data")}))}return"cloudrun"!==_?[3,2]:(E=r.utils.generateRequestId(),[4,o.requestContainer.call(this,{name:a,data:I,path:y,method:b,header:i(i({},S),{"X-Request-Id":E})})]);case 1:return[2,{result:O=l.sent(),requestId:E}];case 2:k="functions.invokeFunction",C={inQuery:h,parse:f,search:g,function_name:a,request_data:I},T=this.request,l.label=3;case 3:return l.trys.push([3,5,,6]),[4,T.send(k,C,{defaultQuery:(null===(n=null==c?void 0:c.params)||void 0===n?void 0:n.action)?{action:null===(s=null==c?void 0:c.params)||void 0===s?void 0:s.action}:{}})];case 4:if((A=l.sent()).code)return[2,p(t,null,A)];if(O=A.data.response_data,f)return[2,p(t,null,{result:O,requestId:A.requestId})];try{return O=JSON.parse(A.data.response_data),[2,p(t,null,{result:O,requestId:A.requestId})]}catch(M){p(t,new Error("[".concat(u(),"][").concat(d.INVALID_PARAMS,"][").concat(m,".callFunction] response data must be json")))}return[3,6];case 5:return P=l.sent(),p(t,P),[3,6];case 6:return[2]}})})},s([f({customInfo:{className:"Cloudbase",methodName:"callFunction"},title:"函数调用失败",messages:["请确认以下各项:"," 1 - 调用 callFunction() 的语法或参数是否正确"," 2 - 当前环境下是否存在此函数"," 3 - 函数安全规则是否限制了当前登录状态访问","如果问题依然存在,建议到官方问答社区提问或寻找帮助:".concat(h)]}),a("design:type",Function),a("design:paramtypes",[Object,Function]),a("design:returntype",Promise)],e.prototype,"callFunction",null),e}()),_={name:m,entity:{callFunction:g.callFunction}};try{cloudbase.registerComponent(_)}catch(v){}},2199:function(e,t,n){"use strict";var r=n(6553)["default"];Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=void 0;var o=r(n(3167)),i=r(n(2622));o["default"].registerVersion(i["default"].version);try{window.cloudbase=o["default"]}catch(s){}t["default"]=o["default"]},364:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.registerAuth=void 0;var r=n(2782);t.registerAuth=r.registerAuth},8789:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.registerFunctions=void 0;var r=n(7553);t.registerFunctions=r.registerFunctions},7245:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.registerStorage=void 0;var r=n(9105);t.registerStorage=r.registerStorage},5753:function(e,t,n){"use strict";var r=n(6553)["default"];Object.defineProperty(t,"__esModule",{value:!0}),t.Auth=void 0;var o=n(9556),i=n(7210),s=n(2488),a=n(7861),c=r(n(9206));function l(e,t){const r=()=>{try{return n(1188)}catch(e){return}};try{if((t?.root?.globalThis||globalThis).IS_MP_BUILD)return;if(!process.env.IS_MP_BUILD&&e)return r()}catch(o){if(e)return r()}}class u{static parseParamsToSearch(e){return Object.keys(e).forEach(t=>{e[t]||delete e[t]}),new c["default"](e).toString()}constructor(e){let{request:t}=e,n=e.credentialsClient;if(!n){const t={apiOrigin:e.apiOrigin,apiPath:e.apiPath,clientId:e.clientId,storage:e.storage,env:e.env,baseRequest:e.baseRequest,anonymousSignInFunc:e.anonymousSignInFunc,wxCloud:e.wxCloud,onCredentialsError:e.onCredentialsError,headers:e.headers||{},i18n:e.i18n,publishable_key:e.publishable_key};n=new i.OAuth2Client(t)}if(!t){const r=n.request.bind(n),o=new s.Captcha({clientId:e.clientId,request:r,storage:e.storage,adapter:e.adapter,...e.captchaOptions});t=o.request.bind(o)}this.config={env:e.env,apiOrigin:e.apiOrigin,apiPath:e.apiPath,clientId:e.clientId,request:t,credentialsClient:n,storage:e.storage||i.defaultStorage,adapter:e.adapter}}getParamsByVersion(e,t){const n=(0,a.deepClone)(e),r={v2:o.ApiUrlsV2}[n?.version]?.[t]||o.ApiUrls[t];return n&&delete n.version,{params:n,url:r}}async signIn(e){const t=e.version||"v1",n=this.getParamsByVersion(e,"AUTH_SIGN_IN_URL");n.params.query&&delete n.params.query;const r=await this.getEncryptParams(n.params),o=await this.config.request(n.url,{method:"POST",body:r});return await this.config.credentialsClient.setCredentials({...o,version:t}),Promise.resolve(o)}async signInAnonymously(e={},t=!1){const n=await this.config.request(o.ApiUrls.AUTH_SIGN_IN_ANONYMOUSLY_URL,{method:"POST",body:e,useWxCloud:t});return await this.config.credentialsClient.setCredentials(n),Promise.resolve(n)}async signUp(e){const t=await this.config.request(o.ApiUrls.AUTH_SIGN_UP_URL,{method:"POST",body:e});return await this.config.credentialsClient.setCredentials(t),Promise.resolve(t)}async signOut(e){let t={};if(e){try{t=await this.config.request(o.ApiUrls.AUTH_SIGNOUT_URL,{method:"POST",withCredentials:!0,body:e})}catch(i){i.error!==o.ErrorType.UNAUTHENTICATED&&console.log("sign_out_error",i)}return await this.config.credentialsClient.setCredentials(),t}const n=await this.config.credentialsClient.getAccessToken(),r=await this.config.request(o.ApiUrls.AUTH_REVOKE_URL,{method:"POST",body:{token:n}});return await this.config.credentialsClient.setCredentials(),Promise.resolve(r)}async revokeAllDevices(){await this.config.request(o.ApiUrls.AUTH_REVOKE_ALL_URL,{method:"DELETE",withCredentials:!0})}async revokeDevice(e){await this.config.request(o.ApiUrls.AUTHORIZED_DEVICES_DELETE_URL+e.device_id,{method:"DELETE",withCredentials:!0})}async getVerification(e,t){let n=!1;return("CUR_USER"===e.target||await this.hasLoginState())&&(n=!0),this.config.request(o.ApiUrls.VERIFICATION_URL,{method:"POST",body:e,withCaptcha:t?.withCaptcha||!1,withCredentials:n})}async verify(e){const t=this.getParamsByVersion(e,"VERIFY_URL"),n=await this.config.request(t.url,{method:"POST",body:t.params});return"v2"===e?.version&&await this.config.credentialsClient.setCredentials({...n,version:"v2"}),n}async genProviderRedirectUri(e){const{provider_redirect_uri:t,other_params:n={},...r}=e;t&&!r.redirect_uri&&(r.redirect_uri=t);let i=`${o.ApiUrls.PROVIDER_URI_URL}?${u.parseParamsToSearch(r)}`;return Object.keys(n).forEach(e=>{const t=n[e];("sign_out_uri"!==e||t?.length>0)&&(i+=`&other_params[${e}]=${encodeURIComponent(t)}`)}),this.config.request(i,{method:"GET"})}async grantProviderToken(e,t=!1){return this.config.request(o.ApiUrls.PROVIDER_TOKEN_URL,{method:"POST",body:e,useWxCloud:t})}async patchProviderToken(e){return this.config.request(o.ApiUrls.PROVIDER_TOKEN_URL,{method:"PATCH",body:e})}async signInWithProvider(e,t=!1){const n=this.getParamsByVersion(e,"AUTH_SIGN_IN_WITH_PROVIDER_URL"),r=await this.config.request(n.url,{method:"POST",body:n.params,useWxCloud:t});return await this.config.credentialsClient.setCredentials({...r,version:e?.version||"v1"}),Promise.resolve(r)}async signInCustom(e){const t=await this.config.request(o.ApiUrls.AUTH_SIGN_IN_CUSTOM,{method:"POST",body:e});return await this.config.credentialsClient.setCredentials(t),Promise.resolve(t)}async signInWithWechat(e={}){const t=await this.config.request(o.ApiUrls.AUTH_SIGN_IN_WITH_WECHAT_URL,{method:"POST",body:e});return await this.config.credentialsClient.setCredentials(t),Promise.resolve(t)}async bindWithProvider(e){return this.config.request(o.ApiUrls.PROVIDER_BIND_URL,{method:"POST",body:e,withCredentials:!0})}async getUserProfile(e){return this.getUserInfo(e)}async getUserInfo(e={}){const t=this.getParamsByVersion(e,"USER_ME_URL");if(t.params?.query){const e=new c["default"](t.params.query);t.url+=`?${e.toString()}`}const n=await this.config.request(t.url,{method:"GET",withCredentials:!0});return n.sub&&(n.uid=n.sub),n}async getWedaUserInfo(){return await this.config.request(o.ApiUrls.WEDA_USER_URL,{method:"GET",withCredentials:!0})}async deleteMe(e){const t=this.getParamsByVersion(e,"USER_ME_URL"),n=`${t.url}?${u.parseParamsToSearch(t.params)}`;return this.config.request(n,{method:"DELETE",withCredentials:!0})}async hasLoginState(){try{return await this.config.credentialsClient.getAccessToken(),!0}catch(e){return!1}}hasLoginStateSync(){return this.config.credentialsClient.getCredentialsSync()}async getLoginState(){return this.config.credentialsClient.getCredentialsAsync()}async transByProvider(e){return this.config.request(o.ApiUrls.USER_TRANS_BY_PROVIDER_URL,{method:"PATCH",body:e,withCredentials:!0})}async grantToken(e){const t=this.getParamsByVersion(e,"AUTH_TOKEN_URL");return this.config.request(t.url,{method:"POST",body:t.params})}async getProviders(){return this.config.request(o.ApiUrls.PROVIDER_LIST,{method:"GET",withCredentials:!0})}async unbindProvider(e){return this.config.request(`${o.ApiUrls.PROVIDER_UNBIND_URL}/${e.provider_id}`,{method:"DELETE",withCredentials:!0})}async checkPassword(e){return this.config.request(`${o.ApiUrls.CHECK_PWD_URL}`,{method:"POST",withCredentials:!0,body:e})}async editContact(e){return this.config.request(`${o.ApiUrls.BIND_CONTACT_URL}`,{method:"PATCH",withCredentials:!0,body:e})}async setPassword(e){return this.config.request(`${o.ApiUrls.AUTH_SET_PASSWORD}`,{method:"PATCH",withCredentials:!0,body:e})}async updatePasswordByOld(e){const t=await this.sudo({password:e.old_password});return this.setPassword({sudo_token:t.sudo_token,new_password:e.new_password})}async sudo(e){return this.config.request(`${o.ApiUrls.SUDO_URL}`,{method:"POST",withCredentials:!0,body:e})}async sendVerificationCodeToCurrentUser(e){return e.target="CUR_USER",this.config.request(o.ApiUrls.VERIFICATION_URL,{method:"POST",body:e,withCredentials:!0,withCaptcha:!0})}async changeBoundProvider(e){return this.config.request(`${o.ApiUrls.PROVIDER_LIST}/${e.provider_id}/trans`,{method:"POST",body:{provider_trans_token:e.trans_token},withCredentials:!0})}async setUserProfile(e){return this.config.request(o.ApiUrls.USER_PRIFILE_URL,{method:"PATCH",body:e,withCredentials:!0})}async updateUserBasicInfo(e){return this.config.request(o.ApiUrls.USER_BASIC_EDIT_URL,{method:"POST",withCredentials:!0,body:e})}async queryUserProfile(e){const t=new c["default"](e);return this.config.request(`${o.ApiUrls.USER_QUERY_URL}?${t.toString()}`,{method:"GET",withCredentials:!0})}setCustomSignFunc(e){this.getCustomSignTicketFn=e}async signInWithCustomTicket(){const e=this.getCustomSignTicketFn;if(!e)return Promise.reject({error:"failed_precondition",error_description:"please use setCustomSignFunc to set custom sign function"});const t=await e();return this.signInCustom({provider_id:"custom",ticket:t})}async resetPassword(e){return this.config.request(o.ApiUrls.AUTH_RESET_PASSWORD,{method:"POST",body:e})}async authorize(e){return this.config.request(o.ApiUrls.AUTHORIZE_URL,{method:"POST",withCredentials:!0,body:e})}async authorizeDevice(e){return this.config.request(o.ApiUrls.AUTHORIZE_DEVICE_URL,{method:"POST",withCredentials:!0,body:e})}async deviceAuthorize(e){return this.config.request(o.ApiUrls.AUTH_GET_DEVICE_CODE,{method:"POST",body:e,withCredentials:!0})}async authorizeInfo(e){const t=`${o.ApiUrls.AUTHORIZE_INFO_URL}?${u.parseParamsToSearch(e)}`;let n=!0,r=!1;return await this.hasLoginState()&&(r=!0,n=!1),this.config.request(t,{method:"GET",withBasicAuth:n,withCredentials:r})}async checkUsername(e){return this.config.request(o.ApiUrls.CHECK_USERNAME,{method:"GET",body:e,withCredentials:!0})}async checkIfUserExist(e){const t=new c["default"](e);return this.config.request(`${o.ApiUrls.CHECK_IF_USER_EXIST}?${t.toString()}`,{method:"GET"})}async loginScope(){return this.config.credentialsClient.getScope()}async loginGroups(){return this.config.credentialsClient.getGroups()}async refreshTokenForce(e){const t=await this.config.credentialsClient.getCredentials();return await this.config.credentialsClient.refreshToken({...t,version:e?.version||"v1"})}async getCredentials(){return this.config.credentialsClient.getCredentials()}async getPublicKey(){return this.config.request(o.ApiUrlsV2.AUTH_PUBLIC_KEY,{method:"POST",body:{}})}async getEncryptParams(e){const{isEncrypt:t}=e;delete e.isEncrypt;const n=(0,a.deepClone)(e),r=l(t,this.config.adapter);if(!r)return e;let o="",i="";try{const e=await this.getPublicKey();if(o=e.public_key,i=e.public_key_thumbprint,!o||!i)throw e}catch(s){throw s}return{params:r.getEncryptInfo({publicKey:o,payload:n}),public_key_thumbprint:i}}async getProviderSubType(){return this.config.request(o.ApiUrls.GET_PROVIDER_TYPE,{method:"POST",body:{provider_id:"weda"}})}async verifyCaptchaData({token:e,key:t}){return this.config.request(o.ApiUrls.VERIFY_CAPTCHA_DATA_URL,{method:"POST",body:{token:e,key:t},withCredentials:!1})}async createCaptchaData({state:e,redirect_uri:t=undefined}){return this.config.request(o.ApiUrls.CAPTCHA_DATA_URL,{method:"POST",body:{state:e,redirect_uri:t},withCredentials:!1})}async getMiniProgramCode(e){return this.config.request(o.ApiUrls.GET_MINIPROGRAM_QRCODE,{method:"POST",body:e})}async getMiniProgramQrCodeStatus(e){return this.config.request(o.ApiUrls.GET_MINIPROGRAM_QRCODE_STATUS,{method:"POST",body:e})}async getUserBehaviorLog(e){const t=`${o.ApiUrls.GET_USER_BEHAVIOR_LOG}?${{LOGIN:"query[action]=USER_LOGIN",MODIFY:"ne_query[action]=USER_LOGIN"}[e.type]}&limit=${e.limit}${e.page_token?`&page_token=${e.page_token}`:""}`;return this.config.request(t,{method:"GET",withCredentials:!0})}async modifyPassword(e){let t="",n="";const r=l(!0,this.config.adapter);if(!r)throw new Error("do not support encrypt, a encrypt util required.");try{const e=await this.getPublicKey();if(t=e.public_key,n=e.public_key_thumbprint,!t||!n)throw e}catch(a){throw a}const i=e.password?r.getEncryptInfo({publicKey:t,payload:e.password}):"",s=r.getEncryptInfo({publicKey:t,payload:e.new_password});return this.config.request(o.ApiUrls.USER_BASIC_EDIT_URL,{method:"POST",withCredentials:!0,body:{user_id:e.user_id,encrypt_password:i,encrypt_new_password:s,public_key_thumbprint:n}})}async modifyPasswordWithoutLogin(e){let t="",n="";const r=l(!0,this.config.adapter);if(!r)throw new Error("do not support encrypt, a encrypt util required.");try{const e=await this.getPublicKey();if(t=e.public_key,n=e.public_key_thumbprint,!t||!n)throw e}catch(a){throw a}const i=e.password?r.getEncryptInfo({publicKey:t,payload:e.password}):"",s=r.getEncryptInfo({publicKey:t,payload:e.new_password});return this.config.request(o.ApiUrlsV2.AUTH_RESET_PASSWORD,{method:"POST",body:{username:e.username,password:i,new_password:s,public_key_thumbprint:n}})}}t.Auth=u},9556:function(e,t){"use strict";var n,r,o,i;Object.defineProperty(t,"__esModule",{value:!0}),t.VerificationUsages=t.ErrorType=t.ApiUrlsV2=t.ApiUrls=t.AUTH_API_PREFIX=void 0,t.AUTH_API_PREFIX="/auth",function(e){e.AUTH_SIGN_UP_URL="/v1/signup",e.AUTH_TOKEN_URL="/v1/token",e.AUTH_REVOKE_URL="/v1/revoke",e.WEDA_USER_URL="/v1/plugin/weda/userinfo",e.AUTH_RESET_PASSWORD="/v1/reset",e.AUTH_GET_DEVICE_CODE="/v1/device/code",e.CHECK_USERNAME="/v1/checkUsername",e.CHECK_IF_USER_EXIST="/v1/checkIfUserExist",e.GET_PROVIDER_TYPE="/v1/mgr/provider/providerSubType",e.AUTH_SIGN_IN_URL="/v1/signin",e.AUTH_SIGN_IN_ANONYMOUSLY_URL="/v1/signin/anonymously",e.AUTH_SIGN_IN_WITH_PROVIDER_URL="/v1/signin/with/provider",e.AUTH_SIGN_IN_WITH_WECHAT_URL="/v1/signin/wechat/noauth",e.AUTH_SIGN_IN_CUSTOM="/v1/signin/custom",e.PROVIDER_TOKEN_URL="/v1/provider/token",e.PROVIDER_URI_URL="/v1/provider/uri",e.USER_ME_URL="/v1/user/me",e.AUTH_SIGNOUT_URL="/v1/user/signout",e.USER_QUERY_URL="/v1/user/query",e.USER_PRIFILE_URL="/v1/user/profile",e.USER_BASIC_EDIT_URL="/v1/user/basic/edit",e.USER_TRANS_BY_PROVIDER_URL="/v1/user/trans/by/provider",e.PROVIDER_LIST="/v1/user/provider",e.PROVIDER_BIND_URL="/v1/user/provider/bind",e.PROVIDER_UNBIND_URL="/v1/user/provider",e.CHECK_PWD_URL="/v1/user/sudo",e.SUDO_URL="/v1/user/sudo",e.BIND_CONTACT_URL="/v1/user/contact",e.AUTH_SET_PASSWORD="/v1/user/password",e.AUTHORIZE_DEVICE_URL="/v1/user/device/authorize",e.AUTHORIZE_URL="/v1/user/authorize",e.AUTHORIZE_INFO_URL="/v1/user/authorize/info",e.AUTHORIZED_DEVICES_DELETE_URL="/v1/user/authorized/devices/",e.AUTH_REVOKE_ALL_URL="/v1/user/revoke/all",e.GET_USER_BEHAVIOR_LOG="/v1/user/security/history",e.VERIFICATION_URL="/v1/verification",e.VERIFY_URL="/v1/verification/verify",e.CAPTCHA_DATA_URL="/v1/captcha/data",e.VERIFY_CAPTCHA_DATA_URL="/v1/captcha/data/verify",e.GET_CAPTCHA_URL="/v1/captcha/init",e.GET_MINIPROGRAM_QRCODE="/v1/qrcode/generate",e.GET_MINIPROGRAM_QRCODE_STATUS="/v1/qrcode/get/status"}(n||(t.ApiUrls=n={})),function(e){e.AUTH_SIGN_IN_URL="/v2/signin/username",e.AUTH_TOKEN_URL="/v2/token",e.USER_ME_URL="/v2/user/me",e.VERIFY_URL="/v2/signin/verificationcode",e.AUTH_SIGN_IN_WITH_PROVIDER_URL="/v2/signin/with/provider",e.AUTH_PUBLIC_KEY="/v2/signin/publichkey",e.AUTH_RESET_PASSWORD="/v2/signin/password/update"}(r||(t.ApiUrlsV2=r={})),function(e){e.REGISTER="REGISTER",e.SIGN_IN="SIGN_IN",e.PASSWORD_RESET="PASSWORD_RESET",e.EMAIL_ADDRESS_CHANGE="EMAIL_ADDRESS_CHANGE",e.PHONE_NUMBER_CHANGE="PHONE_NUMBER_CHANGE"}(o||(t.VerificationUsages=o={})),function(e){e.UNREACHABLE="unreachable",e.LOCAL="local",e.CANCELLED="cancelled",e.UNKNOWN="unknown",e.UNAUTHENTICATED="unauthenticated",e.RESOURCE_EXHAUSTED="resource_exhausted",e.FAILED_PRECONDITION="failed_precondition",e.INVALID_ARGUMENT="invalid_argument",e.DEADLINE_EXCEEDED="deadline_exceeded",e.NOT_FOUND="not_found",e.ALREADY_EXISTS="already_exists",e.PERMISSION_DENIED="permission_denied",e.ABORTED="aborted",e.OUT_OF_RANGE="out_of_range",e.UNIMPLEMENTED="unimplemented",e.INTERNAL="internal",e.UNAVAILABLE="unavailable",e.DATA_LOSS="data_loss",e.INVALID_PASSWORD="invalid_password",e.PASSWORD_NOT_SET="password_not_set",e.INVALID_STATUS="invalid_status",e.USER_PENDING="user_pending",e.USER_BLOCKED="user_blocked",e.INVALID_VERIFICATION_CODE="invalid_verification_code",e.TWO_FACTOR_REQUIRED="two_factor_required",e.INVALID_TWO_FACTOR="invalid_two_factor",e.INVALID_TWO_FACTOR_RECOVERY="invalid_two_factor_recovery",e.UNDER_REVIEW="under_review",e.INVALID_REQUEST="invalid_request",e.UNAUTHORIZED_CLIENT="unauthorized_client",e.ACCESS_DENIED="access_denied",e.UNSUPPORTED_RESPONSE_TYPE="unsupported_response_type",e.INVALID_SCOPE="invalid_scope",e.INVALID_GRANT="invalid_grant",e.SERVER_ERROR="server_error",e.TEMPORARILY_UNAVAILABLE="temporarily_unavailable",e.INTERACTION_REQUIRED="interaction_required",e.LOGIN_REQUIRED="login_required",e.ACCOUNT_SELECTION_REQUIRED="account_selection_required",e.CONSENT_REQUIRED="consent_required",e.INVALID_REQUEST_URI="invalid_request_uri",e.INVALID_REQUEST_OBJECT="invalid_request_object",e.REQUEST_NOT_SUPPORTED="request_not_supported",e.REQUEST_URI_NOT_SUPPORTED="request_uri_not_supported",e.REGISTRATION_NOT_SUPPORTED="registration_not_supported",e.CAPTCHA_REQUIRED="captcha_required",e.CAPTCHA_INVALID="captcha_invalid"}(i||(t.ErrorType=i={}))},5250:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},2488:function(e,t,n){"use strict";var r=n(6553)["default"];Object.defineProperty(t,"__esModule",{value:!0}),t.Captcha=void 0;var o=n(9556),i=n(7210),s=n(6312),a=r(n(9206));t.Captcha=class{constructor(e){e.openURIWithCallback||(e.openURIWithCallback=this.getDefaultOpenURIWithCallback()),e.storage||(e.storage=i.defaultStorage),this.config=e,this.tokenSectionName=`captcha_${e.clientId}`}isMatch(){return this.config?.adapter?.isMatch?.()||(0,s.isMp)()}async request(e,t){t||(t={}),t.method||(t.method="GET");const n=`${t.method}:${e}`;let r,i=e;t.withCaptcha&&(i=await this.appendCaptchaTokenToURL(e,n,!1));try{r=await this.config.request(i,t)}catch(s){return s.error===o.ErrorType.CAPTCHA_REQUIRED||s.error===o.ErrorType.CAPTCHA_INVALID?(e=await this.appendCaptchaTokenToURL(e,n,s.error===o.ErrorType.CAPTCHA_INVALID),this.config.request(e,t)):Promise.reject(s)}return r}getDefaultOpenURIWithCallback(){if(!this.isMatch()&&!(0,s.isInMpWebView)()&&(window.location.search.indexOf("__captcha")>0&&(document.body.style.display="none"),null===document.getElementById("captcha_panel_wrap"))){const e=document.createElement("div");e.style.cssText="background-color: rgba(0, 0, 0, 0.7);position: fixed;left: 0px;right: 0px;top: 0px;bottom: 0px;padding: 9vw 0 0 0;display: none;z-index:100;",e.setAttribute("id","captcha_panel_wrap"),setTimeout(()=>{document.body.appendChild(e)},0)}return this.defaultOpenURIWithCallback}async defaultOpenURIWithCallback(e,t){const{width:n="355px",height:r="355px"}=t||{};if(e.match(/^(data:.*)$/))return Promise.reject({error:o.ErrorType.UNIMPLEMENTED,error_description:"need to impl captcha data"});const i=document.getElementById("captcha_panel_wrap"),s=document.createElement("iframe");return i.innerHTML="",s.setAttribute("src",e),s.setAttribute("id","review-panel-iframe"),s.style.cssText=`min-width:${n};display:block;height:${r};margin:0 auto;background-color: rgb(255, 255, 255);border: none;`,i.appendChild(s),i.style.display="block",new Promise((e,t)=>{s.onload=function(){try{const n=window.location,r=s.contentWindow.location;if(r.host+r.pathname===n.host+n.pathname){i.style.display="none";const n=new a["default"](r.search),o=n.get("captcha_token");return o?e({captcha_token:o,expires_in:Number(n.get("expires_in"))}):t({error:n.get("error"),error_description:n.get("error_description")})}i.style.display="block"}catch(n){i.style.display="block"}}})}async getCaptchaToken(e,t){if(!e){const e=await this.findCaptchaToken();if(e)return e}let n;if(this.isMatch()||(0,s.isInMpWebView)()){const e=await this.config.request(o.ApiUrls.CAPTCHA_DATA_URL,{method:"POST",body:{state:t,redirect_uri:""},withCredentials:!1});n={url:`${e.data}?state=${encodeURIComponent(t)}&token=${encodeURIComponent(e.token)}`}}else{const e=`${window.location.origin+window.location.pathname}?__captcha=on`;if(n=await this.config.request(o.ApiUrls.GET_CAPTCHA_URL,{method:"POST",body:{client_id:this.config.clientId,redirect_uri:e,state:t},withCredentials:!1}),n.captcha_token){const e={captcha_token:n.captcha_token,expires_in:n.expires_in};return this.saveCaptchaToken(e),n.captcha_token}}const r=await this.config.openURIWithCallback(n.url);return this.saveCaptchaToken(r),r.captcha_token}async appendCaptchaTokenToURL(e,t,n){const r=await this.getCaptchaToken(n,t);return e.indexOf("?")>0?e+=`&captcha_token=${r}`:e+=`?captcha_token=${r}`,e}async saveCaptchaToken(e){e.expires_at=new Date(Date.now()+1e3*(e.expires_in-10));const t=JSON.stringify(e);await this.config.storage.setItem(this.tokenSectionName,t)}async findCaptchaToken(){const e=await this.config.storage.getItem(this.tokenSectionName);if(e!==undefined&&null!==e)try{const t=JSON.parse(e);return t?.expires_at&&(t.expires_at=new Date(t.expires_at)),t.expires_at<new Date?null:t.captcha_token}catch(t){return await this.config.storage.removeItem(this.tokenSectionName),null}return null}}},6491:function(e,t,n){"use strict";var r=n(580)["default"];Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"AUTH_API_PREFIX",{enumerable:!0,get:function(){return s.AUTH_API_PREFIX}}),Object.defineProperty(t,"Auth",{enumerable:!0,get:function(){return i.Auth}}),t.authModels=t.CloudbaseOAuth=void 0;var o=n(7210),i=n(5753),s=n(9556),a=r(n(5250));t.authModels=a,t.CloudbaseOAuth=class{constructor(e){const{apiOrigin:t,apiPath:n=s.AUTH_API_PREFIX,clientId:r,env:a,storage:c,request:l,baseRequest:u,anonymousSignInFunc:d,wxCloud:h,adapter:p,onCredentialsError:f,headers:m,i18n:g,publishable_key:_}=e;this.oauth2client=new o.OAuth2Client({apiOrigin:t,apiPath:n,clientId:r,env:a,storage:c,baseRequest:u||l,anonymousSignInFunc:d,wxCloud:h,onCredentialsError:f,headers:m||{},i18n:g,publishable_key:_}),this.authApi=new i.Auth({credentialsClient:this.oauth2client,...e,request:l?this.oauth2client.request.bind(this.oauth2client):undefined,adapter:p})}}},694:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"ErrorType",{enumerable:!0,get:function(){return o.ErrorType}}),t.Syntax=void 0;var r,o=n(9556);!function(e){e.CLIENT_ID="client_id",e.CLIENT_SECRET="client_secret",e.RESPONSE_TYPE="response_type",e.SCOPE="scope",e.STATE="state",e.REDIRECT_URI="redirect_uri",e.ERROR="error",e.ERROR_DESCRIPTION="error_description",e.ERROR_URI="error_uri",e.GRANT_TYPE="grant_type",e.CODE="code",e.ACCESS_TOKEN="access_token",e.TOKEN_TYPE="token_type",e.EXPIRES_IN="expires_in",e.USERNAME="username",e.PASSWORD="password",e.REFRESH_TOKEN="refresh_token"}(r||(t.Syntax=r={}))},7210:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.defaultStorage=t.defaultRequest=t.OAuth2Client=void 0,t.generateRequestId=m,t.toResponseError=void 0;var r=n(694),o=n(9556),i=n(1234),s=n(7861),a=n(3236),c=n(194),l=n(1287),u=n(9174);const d="x-request-id",h="x-device-id",p="device_id",f=async function(e,t){let n=null,o=null;try{const r=Object.assign({},t);r.method||(r.method="GET"),r.body&&"string"!=typeof r.body&&(r.body=JSON.stringify(r.body));const i=await fetch(e,r),s=await i.json();s?.error?(o=s,o.error_uri=new URL(e).pathname):n=s}catch(i){o={error:r.ErrorType.UNREACHABLE,error_description:i.message,error_uri:new URL(e).pathname}}if(o)throw o;return n};function m(){return(0,i.uuidv4)()}t.defaultRequest=f,t.toResponseError=(e,t)=>{let n;const o=t||{};if(e instanceof Error)n={error:o.error||r.ErrorType.LOCAL,error_description:o.error_description||e.message,error_uri:o.error_uri,details:o.details||e.stack};else{const t=e||{};n={error:o.error||t.error||r.ErrorType.LOCAL,error_description:o.error_description||t.error_description,error_uri:o.error_uri||t.error_uri,details:o.details||t.details}}return n};const g=t.defaultStorage=new class{constructor(e){this._env=e?.env||""}async getItem(e){return window.localStorage.getItem(`${e}${this._env}`)}async removeItem(e){window.localStorage.removeItem(`${e}${this._env}`)}async setItem(e,t){window.localStorage.setItem(`${e}${this._env}`,t)}getItemSync(e){return window.localStorage.getItem(`${e}${this._env}`)}removeItemSync(e){window.localStorage.removeItem(`${e}${this._env}`)}setItemSync(e,t){window.localStorage.setItem(`${e}${this._env}`,t)}};function _(e){let t=!0;return e?.expires_at&&e?.access_token&&(t=e.expires_at<new Date),t}class v{constructor(e){this.credentials=null,this.singlePromise=null,this.tokenSectionName=e.tokenSectionName,this.storage=e.storage,this.clientId=e.clientId,this.singlePromise=new a.SinglePromise({clientId:this.clientId}),this.credentials=e.credentials||null,this.credentials&&this.setCredentials(this.credentials)}getStorageCredentialsSync(){let e=null;const t=this.storage.getItemSync(this.tokenSectionName);if(t!==undefined&&null!==t)try{e=JSON.parse(t),e?.expires_at&&(e.expires_at=new Date(e.expires_at))}catch(n){this.storage.removeItem(this.tokenSectionName),e=null}return e}async setCredentials(e){if(e?.expires_in){if(e?.expires_at||(e.expires_at=new Date(Date.now()+1e3*(e.expires_in-30))),this.storage){const t=JSON.stringify(e);await this.storage.setItem(this.tokenSectionName,t)}this.credentials=e}else this.storage&&await this.storage.removeItem(this.tokenSectionName),this.credentials=null}async getCredentials(){return this.singlePromise.run("getCredentials",async()=>(_(this.credentials)&&(this.credentials=await this.getStorageCredentials()),this.credentials))}async getStorageCredentials(){return this.singlePromise.run("_getStorageCredentials",async()=>{let e=null;const t=await this.storage.getItem(this.tokenSectionName);if(t!==undefined&&null!==t)try{e=JSON.parse(t),e?.expires_at&&(e.expires_at=new Date(e.expires_at))}catch(n){await this.storage.removeItem(this.tokenSectionName),e=null}return e})}}class y{constructor(e){this.singlePromise=null,e.clientSecret||(e.clientSecret=""),!e.clientId&&e.env&&(e.clientId=e.env),this.apiOrigin=e.apiOrigin,this.apiPath=e.apiPath||o.AUTH_API_PREFIX,this.clientId=e.clientId,this.i18n=e.i18n,this.publishable_key=e.publishable_key,this.singlePromise=new a.SinglePromise({clientId:this.clientId}),this.retry=this.formatRetry(e.retry,y.defaultRetry),e.baseRequest?this.baseRequest=e.baseRequest:this.baseRequest=f,this.tokenInURL=e.tokenInURL,this.headers=e.headers,this.storage=e.storage||g,this.localCredentials=new v({tokenSectionName:`credentials_${e.clientId}`,storage:this.storage,clientId:e.clientId,credentials:this.publishable_key?{access_token:this.publishable_key,token_type:"Bearer",scope:"publishable_key",expires_at:new Date(+new Date+ +new Date),expires_in:+new Date+ +new Date}:null}),this.clientSecret=e.clientSecret,e.clientId&&(this.basicAuth=`Basic ${(0,c.weBtoa)(`${e.clientId}:${this.clientSecret}`)}`),this.wxCloud=e.wxCloud;try{(0,l.isMatch)()&&this.wxCloud===undefined&&e.env&&(wx.cloud.init({env:e.env}),this.wxCloud=wx.cloud)}catch(t){}this.refreshTokenFunc=e.refreshTokenFunc||this.defaultRefreshTokenFunc,this.anonymousSignInFunc=e.anonymousSignInFunc,this.onCredentialsError=e.onCredentialsError,u.langEvent.bus.on(u.langEvent.LANG_CHANGE_EVENT,e=>{this.i18n=e.data?.i18n||this.i18n})}setCredentials(e){return this.localCredentials.setCredentials(e)}async getAccessToken(){const e=await this.getCredentials();if(e?.access_token)return Promise.resolve(e.access_token);const t={error:r.ErrorType.UNAUTHENTICATED};return Promise.reject(t)}async request(e,t){t||(t={});const n=this.formatRetry(t.retry,this.retry);if(t.headers={...t.headers,[this.i18n?.LANG_HEADER_KEY]:this.i18n?.lang},this.headers&&(t.headers={...this.headers,...t.headers}),t.headers[d]||(t.headers[d]=m()),!t.headers[h]){const e=await this.getDeviceId();t.headers[h]=e}if(t?.withBasicAuth&&this.basicAuth&&(t.headers.Authorization=this.basicAuth),t?.withCredentials){const n=await this.getCredentials();n&&(this.tokenInURL?(e.indexOf("?")<0&&(e+="?"),e+=`access_token=${n.access_token}`):t.headers.Authorization=`${n.token_type} ${n.access_token}`)}else this.clientId&&e.indexOf("client_id")<0&&(e+=e.indexOf("?")<0?"?":"&",e+=`client_id=${this.clientId}`);e.startsWith("/")&&(e=`${this.apiOrigin}${this.apiPath}${e}`);let o=null;const i=n+1;for(let a=0;a<i;a++){try{o=t.useWxCloud?await this.wxCloudCallFunction(e,t):await this.baseRequest(e,t);break}catch(s){if(t.withCredentials&&s&&s.error===r.ErrorType.UNAUTHENTICATED)return await this.setCredentials(null),Promise.reject(s);if(a===n||!s||"unreachable"!==s.error)return Promise.reject(s)}await this.sleep(y.retryInterval)}return o}async wxCloudCallFunction(e,t){let n=null,o=null;try{let r="";try{r=await wx.getRendererUserAgent()}catch(i){}const{result:a}=await this.wxCloud.callFunction({name:"httpOverCallFunction",data:{url:e,method:t.method,headers:{origin:"https://servicewechat.com","User-Agent":r,...t.headers},body:t.body}});a?.body?.error_code?(o=a?.body,o.error_uri=(0,s.getPathName)(e)):n=a?.body}catch(i){o={error:r.ErrorType.UNREACHABLE,error_description:i.message,error_uri:(0,s.getPathName)(e)}}if(o)throw o;return n}async getCredentials(){let e=await this.localCredentials.getCredentials();if(!e){const e="credentials not found";return this.onCredentialsError?.({msg:e}),this.unAuthenticatedError(e)}if(_(e))if(e.refresh_token)try{e=await this.refreshToken(e)}catch(t){if("anonymous"!==e.scope)return this.onCredentialsError?.({msg:t.error_description}),Promise.reject(t);e=await this.anonymousLogin(e)}else{if("anonymous"!==e.scope){const e="no refresh token found in credentials";return this.onCredentialsError?.({msg:e}),this.unAuthenticatedError(e)}e=await this.anonymousLogin(e)}return e}getCredentialsSync(){return this.localCredentials.getStorageCredentialsSync()}getCredentialsAsync(){return this.getCredentials()}async getScope(){const e=await this.localCredentials.getCredentials();if(!e){const e="credentials not found";return this.onCredentialsError?.({msg:e}),this.unAuthenticatedError(e)}return e.scope}async getGroups(){const e=await this.localCredentials.getCredentials();if(!e){const e="credentials not found";return this.onCredentialsError?.({msg:e}),this.unAuthenticatedError(e)}return e.groups}async refreshToken(e){return this.singlePromise.run("_refreshToken",async()=>{if(!e||!e.refresh_token){const e="no refresh token found in credentials";return this.onCredentialsError?.({msg:e}),this.unAuthenticatedError(e)}try{const t=await this.refreshTokenFunc(e.refresh_token,e);return await this.localCredentials.setCredentials(t),t}catch(t){if(t.error===r.ErrorType.INVALID_GRANT){await this.localCredentials.setCredentials(null);const e=t.error_description;return this.onCredentialsError?.({msg:e}),this.unAuthenticatedError(e)}return this.onCredentialsError?.({msg:t.error_description}),Promise.reject(t)}})}async anonymousLogin(e){return this.singlePromise.run("_anonymousLogin",async()=>{if(this.anonymousSignInFunc){const t=await this.anonymousSignInFunc(e);e=t||await this.localCredentials.getCredentials()}else e=await this.anonymousSignIn(e);return e})}checkRetry(e){let t=null;if(("number"!=typeof e||e<y.minRetry||e>y.maxRetry)&&(t={error:r.ErrorType.UNREACHABLE,error_description:"wrong options param: retry"}),t)throw t;return e}formatRetry(e,t){return void 0===e?t:this.checkRetry(e)}async sleep(e){return new Promise(t=>{setTimeout(()=>{t()},e)})}async anonymousSignIn(e){return this.singlePromise.run("_anonymous",async()=>{if(!e||"anonymous"!==e.scope)return this.unAuthenticatedError("no anonymous in credentials");try{const e=await this.request(o.ApiUrls.AUTH_SIGN_IN_ANONYMOUSLY_URL,{method:"POST",withBasicAuth:!0,body:{}});return await this.localCredentials.setCredentials(e),e}catch(t){return t.error===r.ErrorType.INVALID_GRANT?(await this.localCredentials.setCredentials(null),this.unAuthenticatedError(t.error_description)):Promise.reject(t)}})}async defaultRefreshTokenFunc(e,t){if(e===undefined||""===e){const e="refresh token not found";return this.onCredentialsError?.({msg:e}),this.unAuthenticatedError(e)}let n=o.ApiUrls.AUTH_TOKEN_URL;return"v2"===t?.version&&(n=o.ApiUrlsV2.AUTH_TOKEN_URL),{...await this.request(n,{method:"POST",body:{client_id:this.clientId,client_secret:this.clientSecret,grant_type:"refresh_token",refresh_token:e}}),version:t?.version||"v1"}}async getDeviceId(){if(this.deviceID)return this.deviceID;let e=await this.storage.getItem(p);return"string"==typeof e&&e.length>=16&&e.length<=48||(e=(0,i.uuidv4)(),await this.storage.setItem(p,e)),this.deviceID=e,e}unAuthenticatedError(e){const t={error:r.ErrorType.UNAUTHENTICATED,error_description:e};return Promise.reject(t)}}t.OAuth2Client=y,y.defaultRetry=2,y.minRetry=0,y.maxRetry=5,y.retryInterval=1e3},194:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.base64_url_decode=i,t.weAtob=void 0,t.weBtoa=function(e){let t,r,o,i;e=String(e);let s="",a=0;const c=e.length%3;for(;a<e.length;){if((r=e.charCodeAt(a++))>255||(o=e.charCodeAt(a++))>255||(i=e.charCodeAt(a++))>255)throw new TypeError("Failed to execute 'btoa' on 'Window': The string to be encoded contains characters outside of the Latin1 range.");t=r<<16|o<<8|i,s+=n.charAt(t>>18&63)+n.charAt(t>>12&63)+n.charAt(t>>6&63)+n.charAt(63&t)}return c?s.slice(0,c-3)+"===".substring(c):s},t.weappJwtDecode=function(e,t){if("string"!=typeof e)throw new Error("Invalid token specified");const n=!0===(t=t||{}).header?0:1;try{return JSON.parse(i(e.split(".")[n]))}catch(r){throw new Error(`Invalid token specified: ${r}`?r.message:"")}};const n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",r=/^(?:[A-Za-z\d+/]{4})*?(?:[A-Za-z\d+/]{2}(?:==)?|[A-Za-z\d+/]{3}=?)?$/,o=function(e){if(e=String(e).replace(/[\t\n\f\r ]+/g,""),!r.test(e))throw new TypeError("Failed to execute 'atob' on 'Window': The string to be decoded is not correctly encoded.");let t;e+="==".slice(2-(3&e.length));let o,i,s="",a=0;for(;a<e.length;)t=n.indexOf(e.charAt(a++))<<18|n.indexOf(e.charAt(a++))<<12|(o=n.indexOf(e.charAt(a++)))<<6|(i=n.indexOf(e.charAt(a++))),s+=64===o?String.fromCharCode(t>>16&255):64===i?String.fromCharCode(t>>16&255,t>>8&255):String.fromCharCode(t>>16&255,t>>8&255,255&t);return s};function i(e){let t=e.replace(/-/g,"+").replace(/_/g,"/");switch(t.length%4){case 0:break;case 2:t+="==";break;case 3:t+="=";break;default:throw new Error("Illegal base64url string!")}try{return function(e){return decodeURIComponent(o(e).replace(/(.)/g,e=>{let t=e.charCodeAt(0).toString(16).toUpperCase();return t.length<2&&(t=`0${t}`),`%${t}`}))}(t)}catch(n){return o(t)}}t.weAtob=o},1287:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isMatch=function(){if("undefined"==typeof wx)return!1;if("undefined"==typeof Page)return!1;if(!wx.getSystemInfoSync)return!1;if(!wx.getStorageSync)return!1;if(!wx.setStorageSync)return!1;if(!wx.connectSocket)return!1;if(!wx.request)return!1;try{if(!wx.getSystemInfoSync())return!1;if("qq"===wx.getSystemInfoSync().AppPlatform)return!1}catch(e){return!1}return!0}},1188:function(e,t,n){"use strict";var r=n(6553)["default"];Object.defineProperty(t,"__esModule",{value:!0}),t.getEncryptInfo=void 0;var o=r(n(5225)),i=n(7861);t.getEncryptInfo=({publicKey:e="",payload:t={}}={})=>{if(!e)return"";try{const n=(0,i.deepClone)(t),r=new o["default"];return r.setPublicKey(e),r.encryptLong("object"==typeof n?JSON.stringify(n):n)}catch(n){console.error("encrypt error:",n)}return""}},5225:function(e,t){"use strict";let n;if(Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=void 0,!globalThis.IS_MP_BUILD){const T="undefined"!=typeof globalThis?globalThis.navigator:window.globalThis;function A(e){return"0123456789abcdefghijklmnopqrstuvwxyz".charAt(e)}function O(e,t){return e&t}function P(e,t){return e|t}function M(e,t){return e^t}function N(e,t){return e&~t}function x(e){if(0==e)return-1;var t=0;return 65535&e||(e>>=16,t+=16),255&e||(e>>=8,t+=8),15&e||(e>>=4,t+=4),3&e||(e>>=2,t+=2),1&e||++t,t}function R(e){for(var t=0;0!=e;)e&=e-1,++t;return t}var r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";function L(e){var t,n,o="";for(t=0;t+3<=e.length;t+=3)n=parseInt(e.substring(t,t+3),16),o+=r.charAt(n>>6)+r.charAt(63&n);for(t+1==e.length?(n=parseInt(e.substring(t,t+1),16),o+=r.charAt(n<<2)):t+2==e.length&&(n=parseInt(e.substring(t,t+2),16),o+=r.charAt(n>>2)+r.charAt((3&n)<<4));(3&o.length)>0;)o+="=";return o}function D(e){var t,n="",o=0,i=0;for(t=0;t<e.length&&"="!=e.charAt(t);++t){var s=r.indexOf(e.charAt(t));s<0||(0==o?(n+=A(s>>2),i=3&s,o=1):1==o?(n+=A(i<<2|s>>4),i=15&s,o=2):2==o?(n+=A(i),n+=A(s>>2),i=3&s,o=3):(n+=A(i<<2|s>>4),n+=A(15&s),o=0))}return 1==o&&(n+=A(i<<2)),n}var o,i,s={decode:function(e){var t;if(o===undefined){var n="0123456789ABCDEF",r=" \f\n\r\t \u2028\u2029";for(o={},t=0;t<16;++t)o[n.charAt(t)]=t;for(n=n.toLowerCase(),t=10;t<16;++t)o[n.charAt(t)]=t;for(t=0;t<8;++t)o[r.charAt(t)]=-1}var i=[],s=0,a=0;for(t=0;t<e.length;++t){var c=e.charAt(t);if("="==c)break;if(-1!=(c=o[c])){if(c===undefined)throw new Error("Illegal character at offset "+t);s|=c,++a>=2?(i[i.length]=s,s=0,a=0):s<<=4}}if(a)throw new Error("Hex encoding incomplete: 4 bits missing");return i}},a={decode:function(e){var t;if(i===undefined){var n="= \f\n\r\t \u2028\u2029";for(i=Object.create(null),t=0;t<64;++t)i["ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(t)]=t;for(t=0;t<9;++t)i[n.charAt(t)]=-1}var r=[],o=0,s=0;for(t=0;t<e.length;++t){var a=e.charAt(t);if("="==a)break;if(-1!=(a=i[a])){if(a===undefined)throw new Error("Illegal character at offset "+t);o|=a,++s>=4?(r[r.length]=o>>16,r[r.length]=o>>8&255,r[r.length]=255&o,o=0,s=0):o<<=6}}switch(s){case 1:throw new Error("Base64 encoding incomplete: at least 2 bits missing");case 2:r[r.length]=o>>10;break;case 3:r[r.length]=o>>16,r[r.length]=o>>8&255}return r},re:/-----BEGIN [^-]+-----([A-Za-z0-9+\/=\s]+)-----END [^-]+-----|begin-base64[^\n]+\n([A-Za-z0-9+\/=\s]+)====/,unarmor:function(e){var t=a.re.exec(e);if(t)if(t[1])e=t[1];else{if(!t[2])throw new Error("RegExp out of sync");e=t[2]}return a.decode(e)}},c=1e13;class ${constructor(e){this.buf=[+e||0]}mulAdd(e,t){var n,r,o=this.buf,i=o.length;for(n=0;n<i;++n)(r=o[n]*e+t)<c?t=0:r-=(t=0|r/c)*c,o[n]=r;t>0&&(o[n]=t)}sub(e){var t,n,r=this.buf,o=r.length;for(t=0;t<o;++t)(n=r[t]-e)<0?(n+=c,e=1):e=0,r[t]=n;for(;0===r[r.length-1];)r.pop()}toString(e){if(10!=(e||10))throw new Error("only base 10 is supported");for(var t=this.buf,n=t[t.length-1].toString(),r=t.length-2;r>=0;--r)n+=(c+t[r]).toString().substring(1);return n}valueOf(){for(var e=this.buf,t=0,n=e.length-1;n>=0;--n)t=t*c+e[n];return t}simplify(){var e=this.buf;return 1==e.length?e[0]:this}}var l,u=/^(\d\d)(0[1-9]|1[0-2])(0[1-9]|[12]\d|3[01])([01]\d|2[0-3])(?:([0-5]\d)(?:([0-5]\d)(?:[.,](\d{1,3}))?)?)?(Z|[-+](?:[0]\d|1[0-2])([0-5]\d)?)?$/,d=/^(\d\d\d\d)(0[1-9]|1[0-2])(0[1-9]|[12]\d|3[01])([01]\d|2[0-3])(?:([0-5]\d)(?:([0-5]\d)(?:[.,](\d{1,3}))?)?)?(Z|[-+](?:[0]\d|1[0-2])([0-5]\d)?)?$/;function U(e,t){return e.length>t&&(e=e.substring(0,t)+"…"),e}class j{constructor(e,t){this.hexDigits="0123456789ABCDEF",e instanceof j?(this.enc=e.enc,this.pos=e.pos):(this.enc=e,this.pos=t)}get(e){if(e===undefined&&(e=this.pos++),e>=this.enc.length)throw new Error("Requesting byte offset "+e+" on a stream of length "+this.enc.length);return"string"==typeof this.enc?this.enc.charCodeAt(e):this.enc[e]}hexByte(e){return this.hexDigits.charAt(e>>4&15)+this.hexDigits.charAt(15&e)}hexDump(e,t,n){for(var r="",o=e;o<t;++o)if(r+=this.hexByte(this.get(o)),!0!==n)switch(15&o){case 7:r+=" ";break;case 15:r+="\n";break;default:r+=" "}return r}isASCII(e,t){for(var n=e;n<t;++n){var r=this.get(n);if(r<32||r>176)return!1}return!0}parseStringISO(e,t){for(var n="",r=e;r<t;++r)n+=String.fromCharCode(this.get(r));return n}parseStringUTF(e,t){for(var n="",r=e;r<t;){var o=this.get(r++);n+=o<128?String.fromCharCode(o):o>191&&o<224?String.fromCharCode((31&o)<<6|63&this.get(r++)):String.fromCharCode((15&o)<<12|(63&this.get(r++))<<6|63&this.get(r++))}return n}parseStringBMP(e,t){for(var n,r,o="",i=e;i<t;)n=this.get(i++),r=this.get(i++),o+=String.fromCharCode(n<<8|r);return o}parseTime(e,t,n){var r=this.parseStringISO(e,t),o=(n?u:d).exec(r);return o?(n&&(o[1]=+o[1],o[1]+=+o[1]<70?2e3:1900),r=o[1]+"-"+o[2]+"-"+o[3]+" "+o[4],o[5]&&(r+=":"+o[5],o[6]&&(r+=":"+o[6],o[7]&&(r+="."+o[7]))),o[8]&&(r+=" UTC","Z"!=o[8]&&(r+=o[8],o[9]&&(r+=":"+o[9]))),r):"Unrecognized time: "+r}parseInteger(e,t){for(var n,r=this.get(e),o=r>127,i=o?255:0,s="";r==i&&++e<t;)r=this.get(e);if(0===(n=t-e))return o?-1:0;if(n>4){for(s=r,n<<=3;!(128&(+s^i));)s=+s<<1,--n;s="("+n+" bit)\n"}o&&(r-=256);for(var a=new $(r),c=e+1;c<t;++c)a.mulAdd(256,this.get(c));return s+a.toString()}parseBitString(e,t,n){for(var r=this.get(e),o="("+((t-e-1<<3)-r)+" bit)\n",i="",s=e+1;s<t;++s){for(var a=this.get(s),c=s==t-1?r:0,l=7;l>=c;--l)i+=a>>l&1?"1":"0";if(i.length>n)return o+U(i,n)}return o+i}parseOctetString(e,t,n){if(this.isASCII(e,t))return U(this.parseStringISO(e,t),n);var r=t-e,o="("+r+" byte)\n";r>(n/=2)&&(t=e+n);for(var i=e;i<t;++i)o+=this.hexByte(this.get(i));return r>n&&(o+="…"),o}parseOID(e,t,n){for(var r="",o=new $,i=0,s=e;s<t;++s){var a=this.get(s);if(o.mulAdd(128,127&a),i+=7,!(128&a)){if(""===r)if((o=o.simplify())instanceof $)o.sub(80),r="2."+o.toString();else{var c=o<80?o<40?0:1:2;r=c+"."+(o-40*c)}else r+="."+o.toString();if(r.length>n)return U(r,n);o=new $,i=0}}return i>0&&(r+=".incomplete"),r}}class F{constructor(e,t,n,r,o){if(!(r instanceof G))throw new Error("Invalid tag value.");this.stream=e,this.header=t,this.length=n,this.tag=r,this.sub=o}typeName(){switch(this.tag.tagClass){case 0:switch(this.tag.tagNumber){case 0:return"EOC";case 1:return"BOOLEAN";case 2:return"INTEGER";case 3:return"BIT_STRING";case 4:return"OCTET_STRING";case 5:return"NULL";case 6:return"OBJECT_IDENTIFIER";case 7:return"ObjectDescriptor";case 8:return"EXTERNAL";case 9:return"REAL";case 10:return"ENUMERATED";case 11:return"EMBEDDED_PDV";case 12:return"UTF8String";case 16:return"SEQUENCE";case 17:return"SET";case 18:return"NumericString";case 19:return"PrintableString";case 20:return"TeletexString";case 21:return"VideotexString";case 22:return"IA5String";case 23:return"UTCTime";case 24:return"GeneralizedTime";case 25:return"GraphicString";case 26:return"VisibleString";case 27:return"GeneralString";case 28:return"UniversalString";case 30:return"BMPString"}return"Universal_"+this.tag.tagNumber.toString();case 1:return"Application_"+this.tag.tagNumber.toString();case 2:return"["+this.tag.tagNumber.toString()+"]";case 3:return"Private_"+this.tag.tagNumber.toString()}}content(e){if(this.tag===undefined)return null;e===undefined&&(e=Infinity);var t=this.posContent(),n=Math.abs(this.length);if(!this.tag.isUniversal())return null!==this.sub?"("+this.sub.length+" elem)":this.stream.parseOctetString(t,t+n,e);switch(this.tag.tagNumber){case 1:return 0===this.stream.get(t)?"false":"true";case 2:return this.stream.parseInteger(t,t+n);case 3:return this.sub?"("+this.sub.length+" elem)":this.stream.parseBitString(t,t+n,e);case 4:return this.sub?"("+this.sub.length+" elem)":this.stream.parseOctetString(t,t+n,e);case 6:return this.stream.parseOID(t,t+n,e);case 16:case 17:return null!==this.sub?"("+this.sub.length+" elem)":"(no elem)";case 12:return U(this.stream.parseStringUTF(t,t+n),e);case 18:case 19:case 20:case 21:case 22:case 26:return U(this.stream.parseStringISO(t,t+n),e);case 30:return U(this.stream.parseStringBMP(t,t+n),e);case 23:case 24:return this.stream.parseTime(t,t+n,23==this.tag.tagNumber)}return null}toString(){return this.typeName()+"@"+this.stream.pos+"[header:"+this.header+",length:"+this.length+",sub:"+(null===this.sub?"null":this.sub.length)+"]"}toPrettyString(e){e===undefined&&(e="");var t=e+this.typeName()+" @"+this.stream.pos;if(this.length>=0&&(t+="+"),t+=this.length,this.tag.tagConstructed?t+=" (constructed)":!this.tag.isUniversal()||3!=this.tag.tagNumber&&4!=this.tag.tagNumber||null===this.sub||(t+=" (encapsulates)"),t+="\n",null!==this.sub){e+=" ";for(var n=0,r=this.sub.length;n<r;++n)t+=this.sub[n].toPrettyString(e)}return t}posStart(){return this.stream.pos}posContent(){return this.stream.pos+this.header}posEnd(){return this.stream.pos+this.header+Math.abs(this.length)}toHexString(){return this.stream.hexDump(this.posStart(),this.posEnd(),!0)}static decodeLength(e){var t=e.get(),n=127&t;if(n==t)return n;if(n>6)throw new Error("Length over 48 bits not supported at position "+(e.pos-1));if(0===n)return null;t=0;for(var r=0;r<n;++r)t=256*t+e.get();return t}getHexStringValue(){var e=this.toHexString(),t=2*this.header,n=2*this.length;return e.substr(t,n)}static decode(e){var t;t=e instanceof j?e:new j(e,0);var n=new j(t),r=new G(t),o=F.decodeLength(t),i=t.pos,s=i-n.pos,a=null,c=function(){var e=[];if(null!==o){for(var n=i+o;t.pos<n;)e[e.length]=F.decode(t);if(t.pos!=n)throw new Error("Content size is not correct for container starting at offset "+i)}else try{for(;;){var r=F.decode(t);if(r.tag.isEOC())break;e[e.length]=r}o=i-t.pos}catch(s){throw new Error("Exception while decoding undefined length content: "+s)}return e};if(r.tagConstructed)a=c();else if(r.isUniversal()&&(3==r.tagNumber||4==r.tagNumber))try{if(3==r.tagNumber&&0!=t.get())throw new Error("BIT STRINGs with unused bits cannot encapsulate.");a=c();for(var l=0;l<a.length;++l)if(a[l].tag.isEOC())throw new Error("EOC is not supposed to be actual content.")}catch(u){a=null}if(null===a){if(null===o)throw new Error("We can't skip over an invalid tag with undefined length at offset "+i);t.pos=i+Math.abs(o)}return new F(n,s,o,r,a)}}class G{constructor(e){var t=e.get();if(this.tagClass=t>>6,this.tagConstructed=!!(32&t),this.tagNumber=31&t,31==this.tagNumber){var n=new $;do{t=e.get(),n.mulAdd(128,127&t)}while(128&t);this.tagNumber=n.simplify()}}isUniversal(){return 0===this.tagClass}isEOC(){return 0===this.tagClass&&0===this.tagNumber}}var h=[2,3,5,7,11,13,17,19,23,29,31,37,41,43,47,53,59,61,67,71,73,79,83,89,97,101,103,107,109,113,127,131,137,139,149,151,157,163,167,173,179,181,191,193,197,199,211,223,227,229,233,239,241,251,257,263,269,271,277,281,283,293,307,311,313,317,331,337,347,349,353,359,367,373,379,383,389,397,401,409,419,421,431,433,439,443,449,457,461,463,467,479,487,491,499,503,509,521,523,541,547,557,563,569,571,577,587,593,599,601,607,613,617,619,631,641,643,647,653,659,661,673,677,683,691,701,709,719,727,733,739,743,751,757,761,769,773,787,797,809,811,821,823,827,829,839,853,857,859,863,877,881,883,887,907,911,919,929,937,941,947,953,967,971,977,983,991,997],p=(1<<26)/h[h.length-1];class q{constructor(e,t,n){null!=e&&("number"==typeof e?this.fromNumber(e,t,n):null==t&&"string"!=typeof e?this.fromString(e,256):this.fromString(e,t))}toString(e){if(this.s<0)return"-"+this.negate().toString(e);var t;if(16==e)t=4;else if(8==e)t=3;else if(2==e)t=1;else if(32==e)t=5;else{if(4!=e)return this.toRadix(e);t=2}var n,r=(1<<t)-1,o=!1,i="",s=this.t,a=this.DB-s*this.DB%t;if(s-- >0)for(a<this.DB&&(n=this[s]>>a)>0&&(o=!0,i=A(n));s>=0;)a<t?(n=(this[s]&(1<<a)-1)<<t-a,n|=this[--s]>>(a+=this.DB-t)):(n=this[s]>>(a-=t)&r,a<=0&&(a+=this.DB,--s)),n>0&&(o=!0),o&&(i+=A(n));return o?i:"0"}negate(){var e=B();return q.ZERO.subTo(this,e),e}abs(){return this.s<0?this.negate():this}compareTo(e){var t=this.s-e.s;if(0!=t)return t;var n=this.t;if(0!=(t=n-e.t))return this.s<0?-t:t;for(;--n>=0;)if(0!=(t=this[n]-e[n]))return t;return 0}bitLength(){return this.t<=0?0:this.DB*(this.t-1)+X(this[this.t-1]^this.s&this.DM)}mod(e){var t=B();return this.abs().divRemTo(e,null,t),this.s<0&&t.compareTo(q.ZERO)>0&&e.subTo(t,t),t}modPowInt(e,t){var n;return n=e<256||t.isEven()?new m(t):new g(t),this.exp(e,n)}clone(){var e=B();return this.copyTo(e),e}intValue(){if(this.s<0){if(1==this.t)return this[0]-this.DV;if(0==this.t)return-1}else{if(1==this.t)return this[0];if(0==this.t)return 0}return(this[1]&(1<<32-this.DB)-1)<<this.DB|this[0]}byteValue(){return 0==this.t?this.s:this[0]<<24>>24}shortValue(){return 0==this.t?this.s:this[0]<<16>>16}signum(){return this.s<0?-1:this.t<=0||1==this.t&&this[0]<=0?0:1}toByteArray(){var e=this.t,t=[];t[0]=this.s;var n,r=this.DB-e*this.DB%8,o=0;if(e-- >0)for(r<this.DB&&(n=this[e]>>r)!=(this.s&this.DM)>>r&&(t[o++]=n|this.s<<this.DB-r);e>=0;)r<8?(n=(this[e]&(1<<r)-1)<<8-r,n|=this[--e]>>(r+=this.DB-8)):(n=this[e]>>(r-=8)&255,r<=0&&(r+=this.DB,--e)),128&n&&(n|=-256),0==o&&(128&this.s)!=(128&n)&&++o,(o>0||n!=this.s)&&(t[o++]=n);return t}equals(e){return 0==this.compareTo(e)}min(e){return this.compareTo(e)<0?this:e}max(e){return this.compareTo(e)>0?this:e}and(e){var t=B();return this.bitwiseTo(e,O,t),t}or(e){var t=B();return this.bitwiseTo(e,P,t),t}xor(e){var t=B();return this.bitwiseTo(e,M,t),t}andNot(e){var t=B();return this.bitwiseTo(e,N,t),t}not(){for(var e=B(),t=0;t<this.t;++t)e[t]=this.DM&~this[t];return e.t=this.t,e.s=~this.s,e}shiftLeft(e){var t=B();return e<0?this.rShiftTo(-e,t):this.lShiftTo(e,t),t}shiftRight(e){var t=B();return e<0?this.lShiftTo(-e,t):this.rShiftTo(e,t),t}getLowestSetBit(){for(var e=0;e<this.t;++e)if(0!=this[e])return e*this.DB+x(this[e]);return this.s<0?this.t*this.DB:-1}bitCount(){for(var e=0,t=this.s&this.DM,n=0;n<this.t;++n)e+=R(this[n]^t);return e}testBit(e){var t=Math.floor(e/this.DB);return t>=this.t?0!=this.s:!!(this[t]&1<<e%this.DB)}setBit(e){return this.changeBit(e,P)}clearBit(e){return this.changeBit(e,N)}flipBit(e){return this.changeBit(e,M)}add(e){var t=B();return this.addTo(e,t),t}subtract(e){var t=B();return this.subTo(e,t),t}multiply(e){var t=B();return this.multiplyTo(e,t),t}divide(e){var t=B();return this.divRemTo(e,t,null),t}remainder(e){var t=B();return this.divRemTo(e,null,t),t}divideAndRemainder(e){var t=B(),n=B();return this.divRemTo(e,t,n),[t,n]}modPow(e,t){var n,r,o=e.bitLength(),i=Q(1);if(o<=0)return i;n=o<18?1:o<48?3:o<144?4:o<768?5:6,r=o<8?new m(t):t.isEven()?new _(t):new g(t);var s=[],a=3,c=n-1,l=(1<<n)-1;if(s[1]=r.convert(this),n>1){var u=B();for(r.sqrTo(s[1],u);a<=l;)s[a]=B(),r.mulTo(u,s[a-2],s[a]),a+=2}var d,h,p=e.t-1,f=!0,v=B();for(o=X(e[p])-1;p>=0;){for(o>=c?d=e[p]>>o-c&l:(d=(e[p]&(1<<o+1)-1)<<c-o,p>0&&(d|=e[p-1]>>this.DB+o-c)),a=n;!(1&d);)d>>=1,--a;if((o-=a)<0&&(o+=this.DB,--p),f)s[d].copyTo(i),f=!1;else{for(;a>1;)r.sqrTo(i,v),r.sqrTo(v,i),a-=2;a>0?r.sqrTo(i,v):(h=i,i=v,v=h),r.mulTo(v,s[d],i)}for(;p>=0&&!(e[p]&1<<o);)r.sqrTo(i,v),h=i,i=v,v=h,--o<0&&(o=this.DB-1,--p)}return r.revert(i)}modInverse(e){var t=e.isEven();if(this.isEven()&&t||0==e.signum())return q.ZERO;for(var n=e.clone(),r=this.clone(),o=Q(1),i=Q(0),s=Q(0),a=Q(1);0!=n.signum();){for(;n.isEven();)n.rShiftTo(1,n),t?(o.isEven()&&i.isEven()||(o.addTo(this,o),i.subTo(e,i)),o.rShiftTo(1,o)):i.isEven()||i.subTo(e,i),i.rShiftTo(1,i);for(;r.isEven();)r.rShiftTo(1,r),t?(s.isEven()&&a.isEven()||(s.addTo(this,s),a.subTo(e,a)),s.rShiftTo(1,s)):a.isEven()||a.subTo(e,a),a.rShiftTo(1,a);n.compareTo(r)>=0?(n.subTo(r,n),t&&o.subTo(s,o),i.subTo(a,i)):(r.subTo(n,r),t&&s.subTo(o,s),a.subTo(i,a))}return 0!=r.compareTo(q.ONE)?q.ZERO:a.compareTo(e)>=0?a.subtract(e):a.signum()<0?(a.addTo(e,a),a.signum()<0?a.add(e):a):a}pow(e){return this.exp(e,new f)}gcd(e){var t=this.s<0?this.negate():this.clone(),n=e.s<0?e.negate():e.clone();if(t.compareTo(n)<0){var r=t;t=n,n=r}var o=t.getLowestSetBit(),i=n.getLowestSetBit();if(i<0)return t;for(o<i&&(i=o),i>0&&(t.rShiftTo(i,t),n.rShiftTo(i,n));t.signum()>0;)(o=t.getLowestSetBit())>0&&t.rShiftTo(o,t),(o=n.getLowestSetBit())>0&&n.rShiftTo(o,n),t.compareTo(n)>=0?(t.subTo(n,t),t.rShiftTo(1,t)):(n.subTo(t,n),n.rShiftTo(1,n));return i>0&&n.lShiftTo(i,n),n}isProbablePrime(e){var t,n=this.abs();if(1==n.t&&n[0]<=h[h.length-1]){for(t=0;t<h.length;++t)if(n[0]==h[t])return!0;return!1}if(n.isEven())return!1;for(t=1;t<h.length;){for(var r=h[t],o=t+1;o<h.length&&r<p;)r*=h[o++];for(r=n.modInt(r);t<o;)if(r%h[t++]==0)return!1}return n.millerRabin(e)}copyTo(e){for(var t=this.t-1;t>=0;--t)e[t]=this[t];e.t=this.t,e.s=this.s}fromInt(e){this.t=1,this.s=e<0?-1:0,e>0?this[0]=e:e<-1?this[0]=e+this.DV:this.t=0}fromString(e,t){var n;if(16==t)n=4;else if(8==t)n=3;else if(256==t)n=8;else if(2==t)n=1;else if(32==t)n=5;else{if(4!=t)return void this.fromRadix(e,t);n=2}this.t=0,this.s=0;for(var r=e.length,o=!1,i=0;--r>=0;){var s=8==n?255&+e[r]:K(e,r);s<0?"-"==e.charAt(r)&&(o=!0):(o=!1,0==i?this[this.t++]=s:i+n>this.DB?(this[this.t-1]|=(s&(1<<this.DB-i)-1)<<i,this[this.t++]=s>>this.DB-i):this[this.t-1]|=s<<i,(i+=n)>=this.DB&&(i-=this.DB))}8==n&&128&+e[0]&&(this.s=-1,i>0&&(this[this.t-1]|=(1<<this.DB-i)-1<<i)),this.clamp(),o&&q.ZERO.subTo(this,this)}clamp(){for(var e=this.s&this.DM;this.t>0&&this[this.t-1]==e;)--this.t}dlShiftTo(e,t){var n;for(n=this.t-1;n>=0;--n)t[n+e]=this[n];for(n=e-1;n>=0;--n)t[n]=0;t.t=this.t+e,t.s=this.s}drShiftTo(e,t){for(var n=e;n<this.t;++n)t[n-e]=this[n];t.t=Math.max(this.t-e,0),t.s=this.s}lShiftTo(e,t){for(var n=e%this.DB,r=this.DB-n,o=(1<<r)-1,i=Math.floor(e/this.DB),s=this.s<<n&this.DM,a=this.t-1;a>=0;--a)t[a+i+1]=this[a]>>r|s,s=(this[a]&o)<<n;for(a=i-1;a>=0;--a)t[a]=0;t[i]=s,t.t=this.t+i+1,t.s=this.s,t.clamp()}rShiftTo(e,t){t.s=this.s;var n=Math.floor(e/this.DB);if(n>=this.t)t.t=0;else{var r=e%this.DB,o=this.DB-r,i=(1<<r)-1;t[0]=this[n]>>r;for(var s=n+1;s<this.t;++s)t[s-n-1]|=(this[s]&i)<<o,t[s-n]=this[s]>>r;r>0&&(t[this.t-n-1]|=(this.s&i)<<o),t.t=this.t-n,t.clamp()}}subTo(e,t){for(var n=0,r=0,o=Math.min(e.t,this.t);n<o;)r+=this[n]-e[n],t[n++]=r&this.DM,r>>=this.DB;if(e.t<this.t){for(r-=e.s;n<this.t;)r+=this[n],t[n++]=r&this.DM,r>>=this.DB;r+=this.s}else{for(r+=this.s;n<e.t;)r-=e[n],t[n++]=r&this.DM,r>>=this.DB;r-=e.s}t.s=r<0?-1:0,r<-1?t[n++]=this.DV+r:r>0&&(t[n++]=r),t.t=n,t.clamp()}multiplyTo(e,t){var n=this.abs(),r=e.abs(),o=n.t;for(t.t=o+r.t;--o>=0;)t[o]=0;for(o=0;o<r.t;++o)t[o+n.t]=n.am(0,r[o],t,o,0,n.t);t.s=0,t.clamp(),this.s!=e.s&&q.ZERO.subTo(t,t)}squareTo(e){for(var t=this.abs(),n=e.t=2*t.t;--n>=0;)e[n]=0;for(n=0;n<t.t-1;++n){var r=t.am(n,t[n],e,2*n,0,1);(e[n+t.t]+=t.am(n+1,2*t[n],e,2*n+1,r,t.t-n-1))>=t.DV&&(e[n+t.t]-=t.DV,e[n+t.t+1]=1)}e.t>0&&(e[e.t-1]+=t.am(n,t[n],e,2*n,0,1)),e.s=0,e.clamp()}divRemTo(e,t,n){var r=e.abs();if(!(r.t<=0)){var o=this.abs();if(o.t<r.t)return null!=t&&t.fromInt(0),void(null!=n&&this.copyTo(n));null==n&&(n=B());var i=B(),s=this.s,a=e.s,c=this.DB-X(r[r.t-1]);c>0?(r.lShiftTo(c,i),o.lShiftTo(c,n)):(r.copyTo(i),o.copyTo(n));var l=i.t,u=i[l-1];if(0!=u){var d=u*(1<<this.F1)+(l>1?i[l-2]>>this.F2:0),h=this.FV/d,p=(1<<this.F1)/d,f=1<<this.F2,m=n.t,g=m-l,_=null==t?B():t;for(i.dlShiftTo(g,_),n.compareTo(_)>=0&&(n[n.t++]=1,n.subTo(_,n)),q.ONE.dlShiftTo(l,_),_.subTo(i,i);i.t<l;)i[i.t++]=0;for(;--g>=0;){var v=n[--m]==u?this.DM:Math.floor(n[m]*h+(n[m-1]+f)*p);if((n[m]+=i.am(0,v,n,g,0,l))<v)for(i.dlShiftTo(g,_),n.subTo(_,n);n[m]<--v;)n.subTo(_,n)}null!=t&&(n.drShiftTo(l,t),s!=a&&q.ZERO.subTo(t,t)),n.t=l,n.clamp(),c>0&&n.rShiftTo(c,n),s<0&&q.ZERO.subTo(n,n)}}}invDigit(){if(this.t<1)return 0;var e=this[0];if(!(1&e))return 0;var t=3&e;return(t=(t=(t=(t=t*(2-(15&e)*t)&15)*(2-(255&e)*t)&255)*(2-((65535&e)*t&65535))&65535)*(2-e*t%this.DV)%this.DV)>0?this.DV-t:-t}isEven(){return 0==(this.t>0?1&this[0]:this.s)}exp(e,t){if(e>4294967295||e<1)return q.ONE;var n=B(),r=B(),o=t.convert(this),i=X(e)-1;for(o.copyTo(n);--i>=0;)if(t.sqrTo(n,r),(e&1<<i)>0)t.mulTo(r,o,n);else{var s=n;n=r,r=s}return t.revert(n)}chunkSize(e){return Math.floor(Math.LN2*this.DB/Math.log(e))}toRadix(e){if(null==e&&(e=10),0==this.signum()||e<2||e>36)return"0";var t=this.chunkSize(e),n=Math.pow(e,t),r=Q(n),o=B(),i=B(),s="";for(this.divRemTo(r,o,i);o.signum()>0;)s=(n+i.intValue()).toString(e).substr(1)+s,o.divRemTo(r,o,i);return i.intValue().toString(e)+s}fromRadix(e,t){this.fromInt(0),null==t&&(t=10);for(var n=this.chunkSize(t),r=Math.pow(t,n),o=!1,i=0,s=0,a=0;a<e.length;++a){var c=K(e,a);c<0?"-"==e.charAt(a)&&0==this.signum()&&(o=!0):(s=t*s+c,++i>=n&&(this.dMultiply(r),this.dAddOffset(s,0),i=0,s=0))}i>0&&(this.dMultiply(Math.pow(t,i)),this.dAddOffset(s,0)),o&&q.ZERO.subTo(this,this)}fromNumber(e,t,n){if("number"==typeof t)if(e<2)this.fromInt(1);else for(this.fromNumber(e,n),this.testBit(e-1)||this.bitwiseTo(q.ONE.shiftLeft(e-1),P,this),this.isEven()&&this.dAddOffset(1,0);!this.isProbablePrime(t);)this.dAddOffset(2,0),this.bitLength()>e&&this.subTo(q.ONE.shiftLeft(e-1),this);else{var r=[],o=7&e;r.length=1+(e>>3),t.nextBytes(r),o>0?r[0]&=(1<<o)-1:r[0]=0,this.fromString(r,256)}}bitwiseTo(e,t,n){var r,o,i=Math.min(e.t,this.t);for(r=0;r<i;++r)n[r]=t(this[r],e[r]);if(e.t<this.t){for(o=e.s&this.DM,r=i;r<this.t;++r)n[r]=t(this[r],o);n.t=this.t}else{for(o=this.s&this.DM,r=i;r<e.t;++r)n[r]=t(o,e[r]);n.t=e.t}n.s=t(this.s,e.s),n.clamp()}changeBit(e,t){var n=q.ONE.shiftLeft(e);return this.bitwiseTo(n,t,n),n}addTo(e,t){for(var n=0,r=0,o=Math.min(e.t,this.t);n<o;)r+=this[n]+e[n],t[n++]=r&this.DM,r>>=this.DB;if(e.t<this.t){for(r+=e.s;n<this.t;)r+=this[n],t[n++]=r&this.DM,r>>=this.DB;r+=this.s}else{for(r+=this.s;n<e.t;)r+=e[n],t[n++]=r&this.DM,r>>=this.DB;r+=e.s}t.s=r<0?-1:0,r>0?t[n++]=r:r<-1&&(t[n++]=this.DV+r),t.t=n,t.clamp()}dMultiply(e){this[this.t]=this.am(0,e-1,this,0,0,this.t),++this.t,this.clamp()}dAddOffset(e,t){if(0!=e){for(;this.t<=t;)this[this.t++]=0;for(this[t]+=e;this[t]>=this.DV;)this[t]-=this.DV,++t>=this.t&&(this[this.t++]=0),++this[t]}}multiplyLowerTo(e,t,n){var r=Math.min(this.t+e.t,t);for(n.s=0,n.t=r;r>0;)n[--r]=0;for(var o=n.t-this.t;r<o;++r)n[r+this.t]=this.am(0,e[r],n,r,0,this.t);for(o=Math.min(e.t,t);r<o;++r)this.am(0,e[r],n,r,0,t-r);n.clamp()}multiplyUpperTo(e,t,n){--t;var r=n.t=this.t+e.t-t;for(n.s=0;--r>=0;)n[r]=0;for(r=Math.max(t-this.t,0);r<e.t;++r)n[this.t+r-t]=this.am(t-r,e[r],n,0,0,this.t+r-t);n.clamp(),n.drShiftTo(1,n)}modInt(e){if(e<=0)return 0;var t=this.DV%e,n=this.s<0?e-1:0;if(this.t>0)if(0==t)n=this[0]%e;else for(var r=this.t-1;r>=0;--r)n=(t*n+this[r])%e;return n}millerRabin(e){var t=this.subtract(q.ONE),n=t.getLowestSetBit();if(n<=0)return!1;var r=t.shiftRight(n);(e=e+1>>1)>h.length&&(e=h.length);for(var o=B(),i=0;i<e;++i){o.fromInt(h[Math.floor(Math.random()*h.length)]);var s=o.modPow(r,this);if(0!=s.compareTo(q.ONE)&&0!=s.compareTo(t)){for(var a=1;a++<n&&0!=s.compareTo(t);)if(0==(s=s.modPowInt(2,this)).compareTo(q.ONE))return!1;if(0!=s.compareTo(t))return!1}}return!0}square(){var e=B();return this.squareTo(e),e}gcda(e,t){var n=this.s<0?this.negate():this.clone(),r=e.s<0?e.negate():e.clone();if(n.compareTo(r)<0){var o=n;n=r,r=o}var i=n.getLowestSetBit(),s=r.getLowestSetBit();if(s<0)t(n);else{i<s&&(s=i),s>0&&(n.rShiftTo(s,n),r.rShiftTo(s,r));var a=()=>{(i=n.getLowestSetBit())>0&&n.rShiftTo(i,n),(i=r.getLowestSetBit())>0&&r.rShiftTo(i,r),n.compareTo(r)>=0?(n.subTo(r,n),n.rShiftTo(1,n)):(r.subTo(n,r),r.rShiftTo(1,r)),n.signum()>0?setTimeout(a,0):(s>0&&r.lShiftTo(s,r),setTimeout(function(){t(r)},0))};setTimeout(a,10)}}fromNumberAsync(e,t,n,r){if("number"==typeof t)if(e<2)this.fromInt(1);else{this.fromNumber(e,n),this.testBit(e-1)||this.bitwiseTo(q.ONE.shiftLeft(e-1),P,this),this.isEven()&&this.dAddOffset(1,0);var o=this,i=function(){o.dAddOffset(2,0),o.bitLength()>e&&o.subTo(q.ONE.shiftLeft(e-1),o),o.isProbablePrime(t)?setTimeout(function(){r()},0):setTimeout(i,0)};setTimeout(i,0)}else{var s=[],a=7&e;s.length=1+(e>>3),t.nextBytes(s),a>0?s[0]&=(1<<a)-1:s[0]=0,this.fromString(s,256)}}}var f=function(){function e(){}return e.prototype.convert=function(e){return e},e.prototype.revert=function(e){return e},e.prototype.mulTo=function(e,t,n){e.multiplyTo(t,n)},e.prototype.sqrTo=function(e,t){e.squareTo(t)},e}(),m=function(){function e(e){this.m=e}return e.prototype.convert=function(e){return e.s<0||e.compareTo(this.m)>=0?e.mod(this.m):e},e.prototype.revert=function(e){return e},e.prototype.reduce=function(e){e.divRemTo(this.m,null,e)},e.prototype.mulTo=function(e,t,n){e.multiplyTo(t,n),this.reduce(n)},e.prototype.sqrTo=function(e,t){e.squareTo(t),this.reduce(t)},e}(),g=function(){function e(e){this.m=e,this.mp=e.invDigit(),this.mpl=32767&this.mp,this.mph=this.mp>>15,this.um=(1<<e.DB-15)-1,this.mt2=2*e.t}return e.prototype.convert=function(e){var t=B();return e.abs().dlShiftTo(this.m.t,t),t.divRemTo(this.m,null,t),e.s<0&&t.compareTo(q.ZERO)>0&&this.m.subTo(t,t),t},e.prototype.revert=function(e){var t=B();return e.copyTo(t),this.reduce(t),t},e.prototype.reduce=function(e){for(;e.t<=this.mt2;)e[e.t++]=0;for(var t=0;t<this.m.t;++t){var n=32767&e[t],r=n*this.mpl+((n*this.mph+(e[t]>>15)*this.mpl&this.um)<<15)&e.DM;for(e[n=t+this.m.t]+=this.m.am(0,r,e,t,0,this.m.t);e[n]>=e.DV;)e[n]-=e.DV,e[++n]++}e.clamp(),e.drShiftTo(this.m.t,e),e.compareTo(this.m)>=0&&e.subTo(this.m,e)},e.prototype.mulTo=function(e,t,n){e.multiplyTo(t,n),this.reduce(n)},e.prototype.sqrTo=function(e,t){e.squareTo(t),this.reduce(t)},e}(),_=function(){function e(e){this.m=e,this.r2=B(),this.q3=B(),q.ONE.dlShiftTo(2*e.t,this.r2),this.mu=this.r2.divide(e)}return e.prototype.convert=function(e){if(e.s<0||e.t>2*this.m.t)return e.mod(this.m);if(e.compareTo(this.m)<0)return e;var t=B();return e.copyTo(t),this.reduce(t),t},e.prototype.revert=function(e){return e},e.prototype.reduce=function(e){for(e.drShiftTo(this.m.t-1,this.r2),e.t>this.m.t+1&&(e.t=this.m.t+1,e.clamp()),this.mu.multiplyUpperTo(this.r2,this.m.t+1,this.q3),this.m.multiplyLowerTo(this.q3,this.m.t+1,this.r2);e.compareTo(this.r2)<0;)e.dAddOffset(1,this.m.t+1);for(e.subTo(this.r2,e);e.compareTo(this.m)>=0;)e.subTo(this.m,e)},e.prototype.mulTo=function(e,t,n){e.multiplyTo(t,n),this.reduce(n)},e.prototype.sqrTo=function(e,t){e.squareTo(t),this.reduce(t)},e}();function B(){return new q(null)}function H(e,t){return new q(e,t)}function z(e,t,n,r,o,i){for(;--i>=0;){var s=t*this[e++]+n[r]+o;o=Math.floor(s/67108864),n[r++]=67108863&s}return o}function V(e,t,n,r,o,i){for(var s=32767&t,a=t>>15;--i>=0;){var c=32767&this[e],l=this[e++]>>15,u=a*c+l*s;o=((c=s*c+((32767&u)<<15)+n[r]+(1073741823&o))>>>30)+(u>>>15)+a*l+(o>>>30),n[r++]=1073741823&c}return o}function W(e,t,n,r,o,i){for(var s=16383&t,a=t>>14;--i>=0;){var c=16383&this[e],l=this[e++]>>14,u=a*c+l*s;o=((c=s*c+((16383&u)<<14)+n[r]+o)>>28)+(u>>14)+a*l,n[r++]=268435455&c}return o}void 0!==T&&"Microsoft Internet Explorer"==T?.appName?(q.prototype.am=V,l=30):"Netscape"!=T?.appName?(q.prototype.am=z,l=26):(q.prototype.am=W,l=28),q.prototype.DB=l,q.prototype.DM=(1<<l)-1,q.prototype.DV=1<<l,q.prototype.FV=Math.pow(2,52),q.prototype.F1=52-l,q.prototype.F2=2*l-52;var v,y,b=[];for(v="0".charCodeAt(0),y=0;y<=9;++y)b[v++]=y;for(v="a".charCodeAt(0),y=10;y<36;++y)b[v++]=y;for(v="A".charCodeAt(0),y=10;y<36;++y)b[v++]=y;function K(e,t){var n=b[e.charCodeAt(t)];return null==n?-1:n}function Q(e){var t=B();return t.fromInt(e),t}function X(e){var t,n=1;return 0!=(t=e>>>16)&&(e=t,n+=16),0!=(t=e>>8)&&(e=t,n+=8),0!=(t=e>>4)&&(e=t,n+=4),0!=(t=e>>2)&&(e=t,n+=2),0!=(t=e>>1)&&(e=t,n+=1),n}q.ZERO=Q(0),q.ONE=Q(1);class Y{constructor(){this.i=0,this.j=0,this.S=[]}init(e){var t,n,r;for(t=0;t<256;++t)this.S[t]=t;for(n=0,t=0;t<256;++t)n=n+this.S[t]+e[t%e.length]&255,r=this.S[t],this.S[t]=this.S[n],this.S[n]=r;this.i=0,this.j=0}next(){var e;return this.i=this.i+1&255,this.j=this.j+this.S[this.i]&255,e=this.S[this.i],this.S[this.i]=this.S[this.j],this.S[this.j]=e,this.S[e+this.S[this.i]&255]}}var w,S,I=null;if(null==I){I=[],S=0;var E=void 0;if(window?.crypto&&window?.crypto.getRandomValues){var k=new Uint32Array(256);for(window?.crypto.getRandomValues(k),E=0;E<k.length;++E)I[S++]=255&k[E]}var C=function(e){if(this.count=this.count||0,this.count>=256||S>=256)window?.removeEventListener?window?.removeEventListener("mousemove",C,!1):window?.detachEvent&&window?.detachEvent("onmousemove",C);else try{var t=e.x+e.y;I[S++]=255&t,this.count+=1}catch(n){}};window?.addEventListener?window?.addEventListener("mousemove",C,!1):window?.attachEvent&&window?.attachEvent("onmousemove",C)}function J(){if(null==w){for(w=new Y;S<256;){var e=Math.floor(65536*Math.random());I[S++]=255&e}for(w.init(I),S=0;S<I.length;++S)I[S]=0;S=0}return w.next()}class Z{constructor(){}nextBytes(e){for(var t=0;t<e.length;++t)e[t]=J()}}function ee(e,t){if(t<e.length+11)return console.error("Message too long for RSA"),null;for(var n=[],r=e.length-1;r>=0&&t>0;){var o=e.charCodeAt(r--);o<128?n[--t]=o:o>127&&o<2048?(n[--t]=63&o|128,n[--t]=o>>6|192):(n[--t]=63&o|128,n[--t]=o>>6&63|128,n[--t]=o>>12|224)}n[--t]=0;for(var i=new Z,s=[];t>2;){for(s[0]=0;0==s[0];)i.nextBytes(s);n[--t]=s[0]}return n[--t]=2,n[--t]=0,new q(n)}class te{constructor(){this.n=null,this.e=0,this.d=null,this.p=null,this.q=null,this.dmp1=null,this.dmq1=null,this.coeff=null}doPublic(e){return e.modPowInt(this.e,this.n)}doPrivate(e){if(null==this.p||null==this.q)return e.modPow(this.d,this.n);for(var t=e.mod(this.p).modPow(this.dmp1,this.p),n=e.mod(this.q).modPow(this.dmq1,this.q);t.compareTo(n)<0;)t=t.add(this.p);return t.subtract(n).multiply(this.coeff).mod(this.p).multiply(this.q).add(n)}setPublic(e,t){null!=e&&null!=t&&e.length>0&&t.length>0?(this.n=H(e,16),this.e=parseInt(t,16)):console.error("Invalid RSA public key")}encrypt(e){var t=ee(e,this.n.bitLength()+7>>3);if(null==t)return null;var n=this.doPublic(t);if(null==n)return null;var r=n.toString(16);return 1&r.length?"0"+r:r}encryptLong(e){var t=this,n=(this.n.bitLength()+7>>3)-11;try{var r="";return e.length>n?(e.match(/.{1,117}/g).forEach(function(e){var n=t.encrypt(e);r+=n}),L(r)):L(this.encrypt(e))}catch(o){return!1}}decryptLong(e){var t=this,n=this.n.bitLength()+7>>3;e=D(e);try{if(e.length>n){var r="";return e.match(/.{1,256}/g).forEach(function(e){var n=t.decrypt(e);r+=n}),r}return this.decrypt(e)}catch(o){return!1}}setPrivate(e,t,n){null!=e&&null!=t&&e.length>0&&t.length>0?(this.n=H(e,16),this.e=parseInt(t,16),this.d=H(n,16)):console.error("Invalid RSA private key")}setPrivateEx(e,t,n,r,o,i,s,a){null!=e&&null!=t&&e.length>0&&t.length>0?(this.n=H(e,16),this.e=parseInt(t,16),this.d=H(n,16),this.p=H(r,16),this.q=H(o,16),this.dmp1=H(i,16),this.dmq1=H(s,16),this.coeff=H(a,16)):console.error("Invalid RSA private key")}generate(e,t){var n=new Z,r=e>>1;this.e=parseInt(t,16);for(var o=new q(t,16);;){for(;this.p=new q(e-r,1,n),0!=this.p.subtract(q.ONE).gcd(o).compareTo(q.ONE)||!this.p.isProbablePrime(10););for(;this.q=new q(r,1,n),0!=this.q.subtract(q.ONE).gcd(o).compareTo(q.ONE)||!this.q.isProbablePrime(10););if(this.p.compareTo(this.q)<=0){var i=this.p;this.p=this.q,this.q=i}var s=this.p.subtract(q.ONE),a=this.q.subtract(q.ONE),c=s.multiply(a);if(0==c.gcd(o).compareTo(q.ONE)){this.n=this.p.multiply(this.q),this.d=o.modInverse(c),this.dmp1=this.d.mod(s),this.dmq1=this.d.mod(a),this.coeff=this.q.modInverse(this.p);break}}}decrypt(e){var t=H(e,16),n=this.doPrivate(t);return null==n?null:ne(n,this.n.bitLength()+7>>3)}generateAsync(e,t,n){var r=new Z,o=e>>1;this.e=parseInt(t,16);var i=new q(t,16),s=this,a=()=>{var t=()=>{if(s.p.compareTo(s.q)<=0){var e=s.p;s.p=s.q,s.q=e}var t=s.p.subtract(q.ONE),r=s.q.subtract(q.ONE),o=t.multiply(r);0==o.gcd(i).compareTo(q.ONE)?(s.n=s.p.multiply(s.q),s.d=i.modInverse(o),s.dmp1=s.d.mod(t),s.dmq1=s.d.mod(r),s.coeff=s.q.modInverse(s.p),setTimeout(function(){n()},0)):setTimeout(a,0)},c=()=>{s.q=B(),s.q.fromNumberAsync(o,1,r,function(){s.q.subtract(q.ONE).gcda(i,function(e){0==e.compareTo(q.ONE)&&s.q.isProbablePrime(10)?setTimeout(t,0):setTimeout(c,0)})})},l=()=>{s.p=B(),s.p.fromNumberAsync(e-o,1,r,function(){s.p.subtract(q.ONE).gcda(i,function(e){0==e.compareTo(q.ONE)&&s.p.isProbablePrime(10)?setTimeout(c,0):setTimeout(l,0)})})};setTimeout(l,0)};setTimeout(a,0)}}function ne(e,t){for(var n=e.toByteArray(),r=0;r<n.length&&0==n[r];)++r;if(n.length-r!=t-1||2!=n[r])return null;for(++r;0!=n[r];)if(++r>=n.length)return null;for(var o="";++r<n.length;){var i=255&n[r];i<128?o+=String.fromCharCode(i):i>191&&i<224?(o+=String.fromCharCode((31&i)<<6|63&n[r+1]),++r):(o+=String.fromCharCode((15&i)<<12|(63&n[r+1])<<6|63&n[r+2]),r+=2)}return o}class re extends te{constructor(e=""){super(),e&&("string"==typeof e?this.parseKey(e):(this.hasPrivateKeyProperty(e)||this.hasPublicKeyProperty(e))&&this.parsePropertiesFrom(e))}parseKey(e){try{var t=0,n=0,r=/^\s*(?:[0-9A-Fa-f][0-9A-Fa-f]\s*)+$/.test(e)?s.decode(e):a.unarmor(e),o=F.decode(r);if(3===o.sub.length&&(o=o.sub[2].sub[0]),9===o.sub.length){t=o.sub[1].getHexStringValue(),this.n=H(t,16),n=o.sub[2].getHexStringValue(),this.e=parseInt(n,16);var i=o.sub[3].getHexStringValue();this.d=H(i,16);var c=o.sub[4].getHexStringValue();this.p=H(c,16);var l=o.sub[5].getHexStringValue();this.q=H(l,16);var u=o.sub[6].getHexStringValue();this.dmp1=H(u,16);var d=o.sub[7].getHexStringValue();this.dmq1=H(d,16);var h=o.sub[8].getHexStringValue();this.coeff=H(h,16)}else{if(2!==o.sub.length)return!1;var p=o.sub[1].sub[0];t=p.sub[0].getHexStringValue(),this.n=H(t,16),n=p.sub[1].getHexStringValue(),this.e=parseInt(n,16)}return!0}catch(f){return!1}}hasPublicKeyProperty(e){return(e=e||{}).hasOwnProperty("n")&&e.hasOwnProperty("e")}hasPrivateKeyProperty(e){return(e=e||{}).hasOwnProperty("n")&&e.hasOwnProperty("e")&&e.hasOwnProperty("d")&&e.hasOwnProperty("p")&&e.hasOwnProperty("q")&&e.hasOwnProperty("dmp1")&&e.hasOwnProperty("dmq1")&&e.hasOwnProperty("coeff")}parsePropertiesFrom(e){this.n=e.n,this.e=e.e,e.hasOwnProperty("d")&&(this.d=e.d,this.p=e.p,this.q=e.q,this.dmp1=e.dmp1,this.dmq1=e.dmq1,this.coeff=e.coeff)}}n=function(e){e=e||{},this.default_key_size=parseInt(e.default_key_size,10)||1024,this.default_public_exponent=e.default_public_exponent||"010001",this.log=e.log||!1,this.key=null},n.prototype.setKey=function(e){this.log&&this.key&&console.warn("A key was already set, overriding existing."),this.key=new re(e)},n.prototype.setPrivateKey=function(e){this.setKey(e)},n.prototype.setPublicKey=function(e){this.setKey(e)},n.prototype.decrypt=function(e){try{return this.getKey().decrypt(D(e))}catch(t){return!1}},n.prototype.encrypt=function(e){try{return L(this.getKey().encrypt(e))}catch(t){return!1}},n.prototype.encryptLong=function(e){try{for(var t=this.getKey().encryptLong(e)||"",n=this.getKey().decryptLong(t)||"",r=0,o=/null$/g;o.test(n)&&(r++,t=this.getKey().encryptLong(e)||"",n=this.getKey().decryptLong(t)||"",!(r>10)););return t}catch(i){return!1}},n.prototype.getKey=function(e){if(!this.key){if(this.key=new re,e&&"[object Function]"==={}.toString.call(e))return void this.key.generateAsync(this.default_key_size,this.default_public_exponent,e);this.key.generate(this.default_key_size,this.default_public_exponent)}return this.key},n.version="3.1.4"}t["default"]=n},3236:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SinglePromise=void 0;let n=new Map;t.SinglePromise=class{constructor(e){this.clientId=e?.clientId||"",n=n||new Map}async run(e,t){e=`${this.clientId}_${e}`;let r=n.get(e);return r||(r=new Promise((r,o)=>{(async()=>{try{await this.runIdlePromise();const e=t();r(await e)}catch(i){o(i)}finally{n["delete"](e)}})()}),n.set(e,r)),r}runIdlePromise(){return Promise.resolve()}}},7861:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getPathName=t.deepClone=void 0;const n=e=>{const t=t=>{for(const r in e)e.hasOwnProperty(r)&&(t[r]=n(e[r]));return t},r=null===e||e===undefined?"NullOrUndefined":Object.prototype.toString.call(e).slice(8,-1);if(["Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Uint16Array","Int32Array","Uint32Array","Float32Array","Float64Array","BigInt64Array","BigUint64Array"].includes(r))return e.slice();switch(r){case"Object":return t(Object.create(Object.getPrototypeOf(e)));case"Array":return t([]);case"Date":return new Date(e.valueOf());case"RegExp":return new RegExp(e.source,(e.global?"g":"")+(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.sticky?"y":"")+(e.unicode?"u":""));default:return e}};t.deepClone=n,t.getPathName=e=>{const t=e.match(/^(?:http(s)?:\/\/[^\/]+)?(\/[^\?#]*)/);return t&&t[2]||""}},6312:function(e,t){"use strict";function n(){if("undefined"==typeof globalThis)return!1;const{wx:e}=globalThis;if(void 0===e)return!1;if(globalThis.Page===undefined)return!1;if(!e.getSystemInfoSync)return!1;if(!e.getStorageSync)return!1;if(!e.setStorageSync)return!1;if(!e.connectSocket)return!1;if(!e.request)return!1;try{if(!e.getSystemInfoSync())return!1;if("qq"===e.getSystemInfoSync().AppPlatform)return!1}catch(t){return!1}return!0}Object.defineProperty(t,"__esModule",{value:!0}),t.isInMpWebView=function(){return r},t.isMp=n;let r=!1;function o(){r=r||typeof window!==undefined&&"miniprogram"===window.__wxjs_environment}try{n()||(r=r||!!navigator.userAgent.match(/miniprogram/i)||"miniprogram"===window.__wxjs_environment,window&&window.WeixinJSBridge&&window.WeixinJSBridge.invoke?o():"undefined"!=typeof document&&document.addEventListener("WeixinJSBridgeReady",o,!1))}catch(i){}},9206:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=void 0,t["default"]=class{constructor(e){if(this.params={},"string"==typeof e)this.parse(e);else if(e&&"object"==typeof e)for(const t in e)Object.prototype.hasOwnProperty.call(e,t)&&this.append(t,e[t])}parse(e){e.split("&").forEach(e=>{const[t,n]=e.split("=").map(decodeURIComponent);this.append(t,n)})}append(e,t){this.params[e]?this.params[e]=this.params[e].concat([t]):this.params[e]=[t]}get(e){return this.params[e]?this.params[e][0]:null}getAll(e){return this.params[e]||[]}"delete"(e){delete this.params[e]}has(e){return Object.prototype.hasOwnProperty.call(this.params,e)}set(e,t){this.params[e]=[t]}toString(){const e=[];for(const t in this.params)Object.prototype.hasOwnProperty.call(this.params,t)&&this.params[t].forEach(n=>{e.push(`${encodeURIComponent(t)}=${encodeURIComponent(n)}`)});return e.join("&")}}},1234:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.uuidv4=function(){return"xxxxxxxxxxxx4xxxyxxxxxxxxxxxxxxx".replace(/[xy]/g,e=>{const t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)})}},9105:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.registerStorage=function(e){try{e.registerComponent(b)}catch(t){console.warn(t)}};var r,o=n(9174),i=function(){return i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},i.apply(this,arguments)},s=function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},a=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},c=function(e,t,n,r){return new(n||(n=Promise))(function(o,i){function s(e){try{c(r.next(e))}catch(t){i(t)}}function a(e){try{c(r["throw"](e))}catch(t){i(t)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(s,a)}c((r=r.apply(e,t||[])).next())})},l=function(e,t){var n,r,o,i,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:a(0),"throw":a(1),"return":a(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function a(a){return function(c){return function(a){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,a[0]&&(s=0)),s;)try{if(n=1,r&&(o=2&a[0]?r["return"]:a[0]?r["throw"]||((o=r["return"])&&o.call(r),0):r.next)&&!(o=o.call(r,a[1])).done)return o;switch(r=0,o&&(a=[2&a[0],o.value]),a[0]){case 0:case 1:o=a;break;case 4:return s.label++,{value:a[1],done:!1};case 5:s.label++,r=a[1],a=[0];continue;case 7:a=s.ops.pop(),s.trys.pop();continue;default:if(!((o=(o=s.trys).length>0&&o[o.length-1])||6!==a[0]&&2!==a[0])){s=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]<o[3])){s.label=a[1];break}if(6===a[0]&&s.label<o[1]){s.label=o[1],o=a;break}if(o&&s.label<o[2]){s.label=o[2],s.ops.push(a);break}o[2]&&s.ops.pop(),s.trys.pop();continue}a=t.call(e,s)}catch(c){a=[6,c],r=0}finally{n=o=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,c])}}};!function(e){e.put="put",e.post="post"}(r||(r={}));var u=o.constants.getSdkName,d=o.constants.ERRORS,h=o.constants.COMMUNITY_SITE_URL,p=o.utils.isArray,f=o.utils.isString,m=o.utils.isPalinObject,g=o.utils.execCallback,_=o.helpers.catchErrorsDecorator,v="storage",y=new(function(){function e(){}return e.prototype.uploadFile=function(e,t){return c(this,void 0,void 0,function(){var n,o,s,a,c,h,p,m,_,y,b,w,S,I,E,k,C,T,A,O,P,M,N,x,R;return l(this,function(l){switch(l.label){case 0:if(n=e.cloudPath,o=e.filePath,s=e.onUploadProgress,a=e.method,c=void 0===a?"put":a,h=e.headers,p=void 0===h?{}:h,!f(n)||!o)throw new Error(JSON.stringify({code:d.INVALID_PARAMS,msg:"[".concat(v,".uploadFile] invalid params")}));return m={put:r.put,post:r.post}[c.toLocaleLowerCase()]||r.put,_=this.request,y={path:n,method:m},m===r.put&&(y.headers=p),[4,_.send("storage.getUploadMetadata",y)];case 1:return b=l.sent(),w=b.data,S=w.url,I=w.authorization,E=w.token,k=w.fileId,C=w.cosFileId,T=w.download_url,A=b.requestId,P=i(i({},O={url:S,file:o,name:n,onUploadProgress:s}),{method:r.put,headers:i(i({},p),{authorization:I,"x-cos-meta-fileid":C,"x-cos-security-token":E})}),M=i(i({},O),{method:r.post,data:{key:n,signature:I,"x-cos-meta-fileid":C,success_action_status:"201","x-cos-security-token":E}}),(R={})[r.put]={params:P,isSuccess:function(e){return e>=200&&e<300}},R[r.post]={params:M,isSuccess:function(e){return 201===e}},N=R,[4,_.upload(N[m].params)];case 2:return x=l.sent(),N[m].isSuccess(x.statusCode)?[2,g(t,null,{fileID:k,download_url:T,requestId:A})]:[2,g(t,new Error("[".concat(u(),"][").concat(d.OPERATION_FAIL,"][").concat(v,"]:").concat(x.data)))]}})})},e.prototype.getUploadMetadata=function(e,t){return c(this,void 0,void 0,function(){var n,r,o,i,s;return l(this,function(a){switch(a.label){case 0:if(n=e.cloudPath,!f(n))throw new Error(JSON.stringify({code:d.INVALID_PARAMS,msg:"[".concat(v,".getUploadMetadata] invalid cloudPath")}));r=this.request,o="storage.getUploadMetadata",a.label=1;case 1:return a.trys.push([1,3,,4]),[4,r.send(o,{path:n})];case 2:return i=a.sent(),[2,g(t,null,i)];case 3:return s=a.sent(),[2,g(t,s)];case 4:return[2]}})})},e.prototype.deleteFile=function(e,t){return c(this,void 0,void 0,function(){var n,r,o,i,s,a;return l(this,function(c){switch(c.label){case 0:if(!(n=e.fileList)||!p(n)||0===n.length)throw new Error(JSON.stringify({code:d.INVALID_PARAMS,msg:"[".concat(v,".deleteFile] fileList must not be empty")}));for(r=0,o=n;r<o.length;r++)if(!(i=o[r])||!f(i))throw new Error(JSON.stringify({code:d.INVALID_PARAMS,msg:"[".concat(v,".deleteFile] fileID must be string")}));return[4,this.request.send("storage.batchDeleteFile",{fileid_list:n})];case 1:return(s=c.sent()).code?[2,g(t,null,s)]:(a={fileList:s.data.delete_list,requestId:s.requestId},[2,g(t,null,a)])}})})},e.prototype.getTempFileURL=function(e,t){return c(this,void 0,void 0,function(){var n,r,o,i,s,a;return l(this,function(c){switch(c.label){case 0:if(!(n=e.fileList)||!p(n)||0===n.length)throw new Error(JSON.stringify({code:d.INVALID_PARAMS,msg:"[".concat(v,".getTempFileURL] fileList must not be empty")}));for(r=[],o=0,i=n;o<i.length;o++)if(s=i[o],m(s)){if(!Object.prototype.hasOwnProperty.call(s,"fileID")||!Object.prototype.hasOwnProperty.call(s,"maxAge"))throw new Error(JSON.stringify({code:d.INVALID_PARAMS,msg:"[".concat(v,".getTempFileURL] file info must include fileID and maxAge")}));r.push({fileid:s.fileID,max_age:s.maxAge})}else{if(!f(s))throw new Error(JSON.stringify({code:d.INVALID_PARAMS,msg:"[".concat(v,".getTempFileURL] invalid fileList")}));r.push({fileid:s})}return[4,this.request.send("storage.batchGetDownloadUrl",{file_list:r})];case 1:return(a=c.sent()).code?[2,g(t,null,a)]:[2,g(t,null,{fileList:a.data.download_list,requestId:a.requestId})]}})})},e.prototype.downloadFile=function(e,t){return c(this,void 0,void 0,function(){var n,r,o,i,s,a;return l(this,function(c){switch(c.label){case 0:if(n=e.fileID,!f(n))throw new Error(JSON.stringify({code:d.INVALID_PARAMS,msg:"[".concat(v,".getTempFileURL] fileID must be string")}));return[4,this.getTempFileURL.call(this,{fileList:[{fileID:n,maxAge:600}]})];case 1:return r=c.sent(),"SUCCESS"!==(o=r.fileList[0]).code?[2,g(t,o)]:(i=this.request,s=encodeURI(o.download_url),[4,i.download({url:s})]);case 2:return a=c.sent(),[2,g(t,null,a)]}})})},s([_({customInfo:{className:"Cloudbase",methodName:"uploadFile"},title:"上传文件失败",messages:["请确认以下各项:"," 1 - 调用 uploadFile() 的语法或参数是否正确"," 2 - 当前域名是否在安全域名列表中:https://console.cloud.tencent.com/tcb/env/safety"," 3 - 云存储安全规则是否限制了当前登录状态访问","如果问题依然存在,建议到官方问答社区提问或寻找帮助:".concat(h)]}),a("design:type",Function),a("design:paramtypes",[Object,Function]),a("design:returntype",Promise)],e.prototype,"uploadFile",null),s([_({customInfo:{className:"Cloudbase",methodName:"getUploadMetadata"},title:"获取上传元信息失败",messages:["请确认以下各项:"," 1 - 调用 getUploadMetadata() 的语法或参数是否正确"," 2 - 当前域名是否在安全域名列表中:https://console.cloud.tencent.com/tcb/env/safety"," 3 - 云存储安全规则是否限制了当前登录状态访问","如果问题依然存在,建议到官方问答社区提问或寻找帮助:".concat(h)]}),a("design:type",Function),a("design:paramtypes",[Object,Function]),a("design:returntype",Promise)],e.prototype,"getUploadMetadata",null),s([_({customInfo:{className:"Cloudbase",methodName:"deleteFile"},title:"删除文件失败",messages:["请确认以下各项:"," 1 - 调用 deleteFile() 的语法或参数是否正确"," 2 - 当前域名是否在安全域名列表中:https://console.cloud.tencent.com/tcb/env/safety"," 3 - 云存储安全规则是否限制了当前登录状态访问","如果问题依然存在,建议到官方问答社区提问或寻找帮助:".concat(h)]}),a("design:type",Function),a("design:paramtypes",[Object,Function]),a("design:returntype",Promise)],e.prototype,"deleteFile",null),s([_({customInfo:{className:"Cloudbase",methodName:"getTempFileURL"},title:"获取文件下载链接",messages:["请确认以下各项:"," 1 - 调用 getTempFileURL() 的语法或参数是否正确"," 2 - 当前域名是否在安全域名列表中:https://console.cloud.tencent.com/tcb/env/safety"," 3 - 云存储安全规则是否限制了当前登录状态访问","如果问题依然存在,建议到官方问答社区提问或寻找帮助:".concat(h)]}),a("design:type",Function),a("design:paramtypes",[Object,Function]),a("design:returntype",Promise)],e.prototype,"getTempFileURL",null),s([_({customInfo:{className:"Cloudbase",methodName:"downloadFile"},title:"下载文件失败",messages:["请确认以下各项:"," 1 - 调用 downloadFile() 的语法或参数是否正确"," 2 - 当前域名是否在安全域名列表中:https://console.cloud.tencent.com/tcb/env/safety"," 3 - 云存储安全规则是否限制了当前登录状态访问","如果问题依然存在,建议到官方问答社区提问或寻找帮助:".concat(h)]}),a("design:type",Function),a("design:paramtypes",[Object,Function]),a("design:returntype",Promise)],e.prototype,"downloadFile",null),e}()),b={name:v,entity:{uploadFile:y.uploadFile,deleteFile:y.deleteFile,getTempFileURL:y.getTempFileURL,downloadFile:y.downloadFile,getUploadMetadata:y.getUploadMetadata}};try{cloudbase.registerComponent(b)}catch(w){}},6972:function(e,t,n){"use strict";var r=function(){return r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},r.apply(this,arguments)},o=Object.create?function(e,t,n,r){r===undefined&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){r===undefined&&(r=n),e[r]=t[n]},i=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e["default"]=t},s=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&o(t,e,n);return i(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.useDefaultAdapter=t.useAdapters=t.RUNTIME=void 0;var a,c=s(n(8465)),l=n(5046);!function(e){e.WEB="web",e.WX_MP="wx_mp"}(a=t.RUNTIME||(t.RUNTIME={})),t.useAdapters=function(e,t){for(var n=0,o=(0,l.isArray)(e)?e:[e];n<o.length;n++){var i=o[n],s=i.isMatch,a=i.genAdapter,c=i.runtime;if(s())return{adapter:r({isMatch:s},a(t)),runtime:c}}},t.useDefaultAdapter=function(){return{adapter:c.genAdapter(),runtime:a.WEB}}},8465:function(e,t,n){"use strict";var r,o=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=function(){return i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},i.apply(this,arguments)},s=function(e,t,n,r){return new(n||(n=Promise))(function(o,i){function s(e){try{c(r.next(e))}catch(t){i(t)}}function a(e){try{c(r["throw"](e))}catch(t){i(t)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(s,a)}c((r=r.apply(e,t||[])).next())})},a=function(e,t){var n,r,o,i,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:a(0),"throw":a(1),"return":a(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function a(a){return function(c){return function(a){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,a[0]&&(s=0)),s;)try{if(n=1,r&&(o=2&a[0]?r["return"]:a[0]?r["throw"]||((o=r["return"])&&o.call(r),0):r.next)&&!(o=o.call(r,a[1])).done)return o;switch(r=0,o&&(a=[2&a[0],o.value]),a[0]){case 0:case 1:o=a;break;case 4:return s.label++,{value:a[1],done:!1};case 5:s.label++,r=a[1],a=[0];continue;case 7:a=s.ops.pop(),s.trys.pop();continue;default:if(!((o=(o=s.trys).length>0&&o[o.length-1])||6!==a[0]&&2!==a[0])){s=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]<o[3])){s.label=a[1];break}if(6===a[0]&&s.label<o[1]){s.label=o[1],o=a;break}if(o&&s.label<o[2]){s.label=o[2],s.ops.push(a);break}o[2]&&s.ops.pop(),s.trys.pop();continue}a=t.call(e,s)}catch(c){a=[6,c],r=0}finally{n=o=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,c])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.WebRequest=t.genAdapter=void 0;var c=n(1553),l=n(5046),u=n(6316),d=function(e){function t(t){var n=e.call(this)||this,r=t.timeout,o=t.timeoutMsg,i=t.restrictedMethods;return n.timeout=r||0,n.timeoutMsg=o||"请求超时",n.restrictedMethods=i||["get","post","upload","download"],n}return o(t,e),t.prototype.get=function(e){return this.request(i(i({},e),{method:"get"}),this.restrictedMethods.includes("get"))},t.prototype.post=function(e){return this.request(i(i({},e),{method:"post"}),this.restrictedMethods.includes("post"))},t.prototype.put=function(e){return this.request(i(i({},e),{method:"put"}))},t.prototype.upload=function(e){var t=e.data,n=e.file,r=e.name,o=e.method,s=e.headers,a=void 0===s?{}:s,c={post:"post",put:"put"}[null==o?void 0:o.toLowerCase()]||"put",l=new FormData;return"post"===c?(Object.keys(t).forEach(function(e){l.append(e,t[e])}),l.append("key",r),l.append("file",n),this.request(i(i({},e),{data:l,method:c}),this.restrictedMethods.includes("upload"))):this.request(i(i({},e),{method:"put",headers:a,body:n}),this.restrictedMethods.includes("upload"))},t.prototype.download=function(e){return s(this,void 0,void 0,function(){var t,n,r,o;return a(this,function(s){switch(s.label){case 0:return s.trys.push([0,2,,3]),[4,this.get(i(i({},e),{headers:{},responseType:"blob"}))];case 1:return t=s.sent().data,n=window.URL.createObjectURL(new Blob([t])),r=decodeURIComponent(new URL(e.url).pathname.split("/").pop()||""),(o=document.createElement("a")).href=n,o.setAttribute("download",r),o.style.display="none",document.body.appendChild(o),o.click(),window.URL.revokeObjectURL(n),document.body.removeChild(o),[3,3];case 2:return s.sent(),[3,3];case 3:return[2,new Promise(function(t){t({statusCode:200,tempFilePath:e.url})})]}})})},t.prototype.fetch=function(e){var t;return s(this,void 0,void 0,function(){var n,r,o,c,l,u,d,h,p,f,m,g=this;return a(this,function(_){switch(_.label){case 0:return n=new AbortController,r=e.url,o=e.enableAbort,c=void 0!==o&&o,l=e.stream,u=void 0!==l&&l,d=e.signal,h=e.timeout,p=null!=h?h:this.timeout,d&&(d.aborted&&n.abort(),d.addEventListener("abort",function(){return n.abort()})),f=null,c&&p&&(f=setTimeout(function(){console.warn(g.timeoutMsg),n.abort(new Error(g.timeoutMsg))},p)),[4,fetch(r,i(i({},e),{signal:n.signal})).then(function(e){return s(g,void 0,void 0,function(){var t,n,r;return a(this,function(o){switch(o.label){case 0:return clearTimeout(f),e.ok?(t=e,[3,3]):[3,1];case 1:return r=(n=Promise).reject,[4,e.json()];case 2:t=r.apply(n,[o.sent()]),o.label=3;case 3:return[2,t]}})})})["catch"](function(e){return clearTimeout(f),Promise.reject(e)})];case 1:return m=_.sent(),[2,{data:u?m.body:(null===(t=m.headers.get("content-type"))||void 0===t?void 0:t.includes("application/json"))?m.json():m.text(),statusCode:m.status,header:m.headers}]}})})},t.prototype.request=function(e,t){var n=this;void 0===t&&(t=!1);var r=String(e.method).toLowerCase()||"get";return new Promise(function(o){var i,s,a=e.url,c=e.headers,d=void 0===c?{}:c,h=e.data,p=e.responseType,f=e.withCredentials,m=e.body,g=e.onUploadProgress,_=(0,l.formatUrl)((0,u.getProtocol)(),a,"get"===r?h:{}),v=new XMLHttpRequest;v.open(r,_),p&&(v.responseType=p),Object.keys(d).forEach(function(e){v.setRequestHeader(e,d[e])}),g&&v.upload.addEventListener("progress",g),v.onreadystatechange=function(){var e={};if(4===v.readyState){var t=v.getAllResponseHeaders().trim().split(/[\r\n]+/),n={};t.forEach(function(e){var t=e.split(": "),r=t.shift().toLowerCase(),o=t.join(": ");n[r]=o}),e.header=n,e.statusCode=v.status;try{e.data="blob"===p?v.response:JSON.parse(v.responseText)}catch(r){e.data="blob"===p?v.response:v.responseText}clearTimeout(i),o(e)}},t&&n.timeout&&(i=setTimeout(function(){console.warn(n.timeoutMsg),v.abort()},n.timeout)),s=(0,l.isFormData)(h)?h:"application/x-www-form-urlencoded"===d["content-type"]?(0,l.toQueryString)(h):m||(h?JSON.stringify(h):undefined),f&&(v.withCredentials=!0),v.send(s)})},t}(c.AbstractSDKRequest);t.WebRequest=d,t.genAdapter=function(){return{type:"default",root:window,reqClass:d,wsClass:WebSocket,localStorage:localStorage}}},6316:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.COMMUNITY_SITE_URL=t.IS_DEBUG_MODE=t.getProtocol=t.setProtocol=t.getSdkName=t.setSdkName=void 0;var n="@cloudbase/js-sdk";t.setSdkName=function(e){n=e},t.getSdkName=function(){return n};var r="https:";t.setProtocol=function(e){r=e},t.getProtocol=function(){return r},t.IS_DEBUG_MODE=!1,t.COMMUNITY_SITE_URL="https://support.qq.com/products/148793"},1586:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ERRORS=void 0,t.ERRORS={INVALID_PARAMS:"INVALID_PARAMS",INVALID_SYNTAX:"INVALID_SYNTAX",INVALID_OPERATION:"INVALID_OPERATION",OPERATION_FAIL:"OPERATION_FAIL",NETWORK_ERROR:"NETWORK_ERROR",UNKOWN_ERROR:"UNKOWN_ERROR"}},2189:function(e,t,n){"use strict";var r=Object.create?function(e,t,n,r){r===undefined&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){r===undefined&&(r=n),e[r]=t[n]},o=function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),t.OATUH_LOGINTYPE=void 0,o(n(6316),t),o(n(1586),t),t.OATUH_LOGINTYPE="constants"},7379:function(e,t,n){"use strict";var r=function(e,t,n,r){return new(n||(n=Promise))(function(o,i){function s(e){try{c(r.next(e))}catch(t){i(t)}}function a(e){try{c(r["throw"](e))}catch(t){i(t)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(s,a)}c((r=r.apply(e,t||[])).next())})},o=function(e,t){var n,r,o,i,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:a(0),"throw":a(1),"return":a(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function a(a){return function(c){return function(a){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,a[0]&&(s=0)),s;)try{if(n=1,r&&(o=2&a[0]?r["return"]:a[0]?r["throw"]||((o=r["return"])&&o.call(r),0):r.next)&&!(o=o.call(r,a[1])).done)return o;switch(r=0,o&&(a=[2&a[0],o.value]),a[0]){case 0:case 1:o=a;break;case 4:return s.label++,{value:a[1],done:!1};case 5:s.label++,r=a[1],a=[0];continue;case 7:a=s.ops.pop(),s.trys.pop();continue;default:if(!((o=(o=s.trys).length>0&&o[o.length-1])||6!==a[0]&&2!==a[0])){s=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]<o[3])){s.label=a[1];break}if(6===a[0]&&s.label<o[1]){s.label=o[1],o=a;break}if(o&&s.label<o[2]){s.label=o[2],s.ops.push(a);break}o[2]&&s.ops.pop(),s.trys.pop();continue}a=t.call(e,s)}catch(c){a=[6,c],r=0}finally{n=o=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,c])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.catchErrorsDecorator=void 0;var i=n(5046),s=n(2189),a=!1;"undefined"!=typeof navigator&&navigator.userAgent&&(a=-1!==navigator.userAgent.indexOf("Firefox"));var c=a?/(\.js\/)?__decorate(\$\d+)?<@.*\d$/:/(\/\w+\.js\.)?__decorate(\$\d+)?\s*\(.*\)$/,l=/https?:\/\/.+:\d*\/.*\.js:\d+:\d+/;function u(e){var t=e.err,n=e.className,r=e.methodName,o=e.sourceLink;if(!o)return null;var i,s=t.stack.split("\n"),c=a?/^catchErrorsDecorator\/<\/descriptor.value@.*\d$/:new RegExp("".concat(n,"\\.descriptor.value\\s*\\[as\\s").concat(r,"\\]\\s*\\(.*\\)$")),u=a?/^catchErrorsDecorator\/<\/descriptor.value/:new RegExp("".concat(n,"\\.descriptor.value\\s*\\[as\\s").concat(r,"\\]")),d=s.findIndex(function(e){return c.test(e)});if(-1!==d){var h=s.filter(function(e,t){return t>d});h.unshift(s[d].replace(u,"".concat(n,".").concat(r)).replace(l,o)),(i=new Error).stack="".concat(a?"@debugger":"Error","\n").concat(h.join("\n"))}return i}t.catchErrorsDecorator=function(e){var t=e.mode,n=void 0===t?"async":t,a=e.customInfo,d=void 0===a?{}:a,h=e.title,p=e.messages,f=void 0===p?[]:p;return function(e,t,a){if(s.IS_DEBUG_MODE){var p=d.className||e.constructor.name,m=d.methodName||t,g=a.value,_=function(e){var t="",n=e.stack.split("\n"),r=n.findIndex(function(e){return c.test(e)});if(-1!==r){var o=l.exec(n[r+1]||"");t=o?o[0]:""}return t}(new Error);a.value="sync"===n?function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=u({err:new Error,className:p,methodName:m,sourceLink:_});try{return g.apply(this,e)}catch(d){var r=d,o=d.message,s=d.error,a=d.error_description,c={title:h||"".concat(p,".").concat(m," failed"),content:[{type:"error",body:d}]};if(o&&/^\{.*\}$/.test(o)){var l=JSON.parse(o);c.subtitle=o,l.code&&(n?(n.code=l.code,n.msg=l.msg):(d.code=l.code,d.message=l.msg),r=n||d,c.content=f.map(function(e){return{type:"info",body:e}}))}throw s&&a&&(c.subtitle=a,n?(n.code=s,n.msg=a):(d.code=s,d.message=a),r=n||d,c.content=f.map(function(e){return{type:"info",body:e}})),(0,i.printGroupLog)(c),r}}:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return r(this,void 0,void 0,function(){var t,n,r,s,a,c,l,d;return o(this,function(o){switch(o.label){case 0:t=u({err:new Error,className:p,methodName:m,sourceLink:_}),o.label=1;case 1:return o.trys.push([1,3,,4]),[4,g.apply(this,e)];case 2:return[2,o.sent()];case 3:throw n=o.sent(),r=n,s=n.message,a=n.error,c=n.error_description,l={title:h||"".concat(p,".").concat(m," failed"),content:[{type:"error",body:n}]},s&&/^\{.*\}$/.test(s)&&(d=JSON.parse(s),l.subtitle=d,d.code&&(t?(t.code=d.code,t.message=d.msg):(n.code=d.code,n.message=d.msg),r=t||n,l.content=f.map(function(e){return{type:"info",body:e}}))),a&&c&&(l.subtitle=c,t?(t.code=a,t.msg=c):(n.code=a,n.message=c),r=t||n,l.content=f.map(function(e){return{type:"info",body:e}})),(0,i.printGroupLog)(l),r;case 4:return[2]}})})}}}}},5641:function(e,t,n){"use strict";var r=Object.create?function(e,t,n,r){r===undefined&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){r===undefined&&(r=n),e[r]=t[n]},o=function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(7379),t)},5546:function(e,t,n){"use strict";var r,o=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=function(e,t,n,r){return new(n||(n=Promise))(function(o,i){function s(e){try{c(r.next(e))}catch(t){i(t)}}function a(e){try{c(r["throw"](e))}catch(t){i(t)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(s,a)}c((r=r.apply(e,t||[])).next())})},s=function(e,t){var n,r,o,i,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:a(0),"throw":a(1),"return":a(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function a(a){return function(c){return function(a){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,a[0]&&(s=0)),s;)try{if(n=1,r&&(o=2&a[0]?r["return"]:a[0]?r["throw"]||((o=r["return"])&&o.call(r),0):r.next)&&!(o=o.call(r,a[1])).done)return o;switch(r=0,o&&(a=[2&a[0],o.value]),a[0]){case 0:case 1:o=a;break;case 4:return s.label++,{value:a[1],done:!1};case 5:s.label++,r=a[1],a=[0];continue;case 7:a=s.ops.pop(),s.trys.pop();continue;default:if(!((o=(o=s.trys).length>0&&o[o.length-1])||6!==a[0]&&2!==a[0])){s=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]<o[3])){s.label=a[1];break}if(6===a[0]&&s.label<o[1]){s.label=o[1],o=a;break}if(o&&s.label<o[2]){s.label=o[2],s.ops.push(a);break}o[2]&&s.ops.pop(),s.trys.pop();continue}a=t.call(e,s)}catch(c){a=[6,c],r=0}finally{n=o=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,c])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.CloudbaseCache=void 0;var a=n(1553),c=n(5046),l=n(2189),u=function(e){function t(t){var n=e.call(this)||this;return n.root=t,t.tcbCacheObject||(t.tcbCacheObject={}),n}return o(t,e),t.prototype.setItem=function(e,t){this.root.tcbCacheObject[e]=t},t.prototype.getItem=function(e){return this.root.tcbCacheObject[e]},t.prototype.removeItem=function(e){delete this.root.tcbCacheObject[e]},t.prototype.clear=function(){delete this.root.tcbCacheObject},t}(a.AbstractStorage),d=function(){function e(e){this.keys={};var t=e.persistence,n=e.platformInfo,r=void 0===n?{}:n,o=e.keys,i=void 0===o?{}:o;this.platformInfo=r,this.storage||(this.persistenceTag=this.platformInfo.adapter.primaryStorage||t,this.storage=function(e,t){switch(e){case"local":default:return t.localStorage?t.localStorage:((0,c.printWarn)(l.ERRORS.INVALID_PARAMS,"localStorage is not supported on current platform"),new u(t.root));case"none":return new u(t.root)}}(this.persistenceTag,this.platformInfo.adapter),this.keys=i)}return Object.defineProperty(e.prototype,"mode",{get:function(){return this.storage.mode||"sync"},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"persistence",{get:function(){return this.persistenceTag},enumerable:!1,configurable:!0}),e.prototype.setStore=function(e,t,n){if("async"!==this.mode){if(this.storage)try{var r={version:n||"localCachev1",content:t};this.storage.setItem(e,JSON.stringify(r))}catch(o){throw new Error(JSON.stringify({code:l.ERRORS.OPERATION_FAIL,msg:"[".concat((0,l.getSdkName)(),"][").concat(l.ERRORS.OPERATION_FAIL,"]setStore failed"),info:o}))}}else(0,c.printWarn)(l.ERRORS.INVALID_OPERATION,"current platform's storage is asynchronous, please use setStoreAsync insteed")},e.prototype.setStoreAsync=function(e,t,n){return i(this,void 0,void 0,function(){var r;return s(this,function(o){switch(o.label){case 0:if(!this.storage)return[2];o.label=1;case 1:return o.trys.push([1,3,,4]),r={version:n||"localCachev1",content:t},[4,this.storage.setItem(e,JSON.stringify(r))];case 2:return o.sent(),[3,4];case 3:return o.sent(),[2];case 4:return[2]}})})},e.prototype.getStore=function(e,t){var n;if("async"!==this.mode){try{if("undefined"!=typeof process&&(null===(n=process.env)||void 0===n?void 0:n.tcb_token))return process.env.tcb_token;if(!this.storage)return""}catch(o){return""}t=t||"localCachev1";var r=this.storage.getItem(e);return r&&r.indexOf(t)>=0?JSON.parse(r).content:""}(0,c.printWarn)(l.ERRORS.INVALID_OPERATION,"current platform's storage is asynchronous, please use getStoreAsync insteed")},e.prototype.getStoreAsync=function(e,t){var n;return i(this,void 0,void 0,function(){var r;return s(this,function(o){switch(o.label){case 0:try{if("undefined"!=typeof process&&(null===(n=process.env)||void 0===n?void 0:n.tcb_token))return[2,process.env.tcb_token];if(!this.storage)return[2,""]}catch(i){return[2,""]}return t=t||"localCachev1",[4,this.storage.getItem(e)];case 1:return(r=o.sent())&&r.indexOf(t)>=0?[2,JSON.parse(r).content]:[2,""]}})})},e.prototype.removeStore=function(e){"async"!==this.mode?this.storage.removeItem(e):(0,c.printWarn)(l.ERRORS.INVALID_OPERATION,"current platform's storage is asynchronous, please use removeStoreAsync insteed")},e.prototype.removeStoreAsync=function(e){return i(this,void 0,void 0,function(){return s(this,function(t){switch(t.label){case 0:return[4,this.storage.removeItem(e)];case 1:return t.sent(),[2]}})})},e}();t.CloudbaseCache=d},8847:function(e,t,n){"use strict";var r,o=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=function(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))};Object.defineProperty(t,"__esModule",{value:!0}),t.removeEventListener=t.activateEvent=t.addEventListener=t.CloudbaseEventEmitter=t.IErrorEvent=t.CloudbaseEvent=void 0;var s=n(5046),a=function(e,t){this.data=t||null,this.name=e};t.CloudbaseEvent=a;var c=function(e){function t(t,n){var r=e.call(this,"error",{error:t,data:n})||this;return r.error=t,r}return o(t,e),t}(a);t.IErrorEvent=c;var l=function(){function e(){this.listeners={}}return e.prototype.on=function(e,t){return function(e,t,n){n[e]=n[e]||[],n[e].push(t)}(e,t,this.listeners),this},e.prototype.off=function(e,t){return function(e,t,n){if(null==n?void 0:n[e]){var r=n[e].indexOf(t);-1!==r&&n[e].splice(r,1)}}(e,t,this.listeners),this},e.prototype.fire=function(e,t){if((0,s.isInstanceOf)(e,c))return console.error(e.error),this;var n=(0,s.isString)(e)?new a(e,t||{}):e,r=n.name;if(this.listens(r)){n.target=this;for(var o=0,l=this.listeners[r]?i([],this.listeners[r],!0):[];o<l.length;o++)l[o].call(this,n)}return this},e.prototype.listens=function(e){return this.listeners[e]&&this.listeners[e].length>0},e}();t.CloudbaseEventEmitter=l;var u=new l;t.addEventListener=function(e,t){u.on(e,t)},t.activateEvent=function(e,t){void 0===t&&(t={}),u.fire(e,t)},t.removeEventListener=function(e,t){u.off(e,t)}},5046:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.parseQueryString=t.transformPhone=t.sleep=t.printGroupLog=t.throwError=t.printInfo=t.printError=t.printWarn=t.execCallback=t.createPromiseCallback=t.removeParam=t.getHash=t.getQuery=t.toQueryString=t.formatUrl=t.generateRequestId=t.genSeqId=t.isFormData=t.isInstanceOf=t.isNull=t.isPalinObject=t.isUndefined=t.isString=t.isArray=void 0;var r=n(2189);t.isArray=function(e){return"[object Array]"===Object.prototype.toString.call(e)},t.isString=function(e){return"string"==typeof e},t.isUndefined=function(e){return void 0===e},t.isPalinObject=function(e){return"[object Object]"===Object.prototype.toString.call(e)},t.isNull=function(e){return"[object Null]"===Object.prototype.toString.call(e)},t.isInstanceOf=function(e,t){return e instanceof t},t.isFormData=function(e){return"[object FormData]"===Object.prototype.toString.call(e)},t.genSeqId=function(){return Math.random().toString(16).slice(2)},t.generateRequestId=function(){var e=(new Date).getTime(),t=(null===Date||void 0===Date?void 0:Date.now)&&1e3*Date.now()||0;return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(n){var r=16*Math.random();return e>0?(r=(e+r)%16|0,e=Math.floor(e/16)):(r=(t+r)%16|0,t=Math.floor(t/16)),("x"===n?r:7&r|8).toString(16)})},t.formatUrl=function(e,t,n){void 0===n&&(n={});var r=/\?/.test(t),o="";return Object.keys(n).forEach(function(e){""===o?!r&&(t+="?"):o+="&",o+="".concat(e,"=").concat(encodeURIComponent(n[e]))}),/^http(s)?:\/\//.test(t+=o)?t:"".concat(e).concat(t)},t.toQueryString=function(e){void 0===e&&(e={});var t=[];return Object.keys(e).forEach(function(n){t.push("".concat(n,"=").concat(encodeURIComponent(e[n])))}),t.join("&")},t.getQuery=function(e,t){if("undefined"==typeof window)return!1;var n=t||window.location.search,r=new RegExp("(^|&)".concat(e,"=([^&]*)(&|$)")),o=n.substr(n.indexOf("?")+1).match(r);return null!==o&&o!==undefined?o[2]:""},t.getHash=function(e){if("undefined"==typeof window)return"";var t=window.location.hash.match(new RegExp("[#?&/]".concat(e,"=([^&#]*)")));return t?t[1]:""},t.removeParam=function(e,t){var n=t.split("?")[0],r=[],o=-1!==t.indexOf("?")?t.split("?")[1]:"";if(""!==o){for(var i=(r=o.split("&")).length-1;i>=0;i-=1)r[i].split("=")[0]===e&&r.splice(i,1);n="".concat(n,"?").concat(r.join("&"))}return n},t.createPromiseCallback=function(){var e;if(!Promise){(e=function(){}).promise={};var t=function(){throw new Error('Your Node runtime does support ES6 Promises. Set "global.Promise" to your preferred implementation of promises.')};return Object.defineProperty(e.promise,"then",{get:t}),Object.defineProperty(e.promise,"catch",{get:t}),e}var n=new Promise(function(t,n){e=function(e,r){return e?n(e):t(r)}});return e.promise=n,e},t.execCallback=function(e,t,n){if(void 0===n&&(n=null),e&&"function"==typeof e)return e(t,n);if(t)throw t;return n},t.printWarn=function(e,t){console.warn("[".concat((0,r.getSdkName)(),"][").concat(e,"]:").concat(t))},t.printError=function(e,t){console.error({code:e,msg:"[".concat((0,r.getSdkName)(),"][").concat(e,"]:").concat(t)})},t.printInfo=function(e,t){console.log("[".concat((0,r.getSdkName)(),"][").concat(e,"]:").concat(t))},t.throwError=function(e,t){throw new Error(JSON.stringify({code:e,msg:"[".concat((0,r.getSdkName)(),"][").concat(e,"]:").concat(t)}))},t.printGroupLog=function(e){var t,n=e.title,r=e.subtitle,o=void 0===r?"":r,i=e.content,s=void 0===i?[]:i,a=e.printTrace,c=void 0!==a&&a,l=e.collapsed;void 0!==l&&l?(console.groupCollapsed||console.error)(n,o):(console.group||console.error)(n,o);for(var u=0,d=s;u<d.length;u++){var h=d[u],p=h.type,f=h.body;switch(p){case"info":console.log(f);break;case"warn":console.warn(f);break;case"error":console.error(f)}}c&&(console.trace||console.log)("stack trace:"),null===(t=console.groupEnd)||void 0===t||t.call(console)},t.sleep=function(e){return void 0===e&&(e=0),new Promise(function(t){return setTimeout(t,e)})},t.transformPhone=function(e){return"+86".concat(e)},t.parseQueryString=function(e){e=e.replace(/^\?/,"");var t={};return e.split("&").forEach(function(e){var n=e.split("="),r=n[0],o=n[1];r=decodeURIComponent(r),o=decodeURIComponent(o),r&&(t[r]?Array.isArray(t[r])?t[r].push(o):t[r]=[t[r],o]:t[r]=o)}),t}},4043:function(e,t,n){"use strict";var r=n(580)["default"];Object.defineProperty(t,"__esModule",{value:!0}),t.RUNTIME=void 0,t.useAdapters=function(e,t){for(var n=(0,s.isArray)(e)?e:[e],r=0,o=n;r<o.length;r++){var i=o[r],c=i.isMatch,l=i.genAdapter,u=i.runtime;if(c())return{adapter:a({isMatch:c},l(t)),runtime:u}}},t.useDefaultAdapter=function(){return{adapter:i.genAdapter(),runtime:o.WEB}};var o,i=r(n(3002)),s=n(2019),a=function(){return a=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},a.apply(this,arguments)};!function(e){e.WEB="web",e.WX_MP="wx_mp"}(o||(t.RUNTIME=o={}))},3002:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.WebRequest=void 0,t.genAdapter=function(){return{type:"default",root:window,reqClass:d,wsClass:WebSocket,localStorage:localStorage}};var r,o=n(1553),i=n(2019),s=n(2691),a=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),c=function(){return c=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},c.apply(this,arguments)},l=function(e,t,n,r){return new(n||(n=Promise))(function(o,i){function s(e){try{c(r.next(e))}catch(t){i(t)}}function a(e){try{c(r["throw"](e))}catch(t){i(t)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(s,a)}c((r=r.apply(e,t||[])).next())})},u=function(e,t){var n,r,o,i,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:a(0),"throw":a(1),"return":a(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function a(a){return function(c){return function(a){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,a[0]&&(s=0)),s;)try{if(n=1,r&&(o=2&a[0]?r["return"]:a[0]?r["throw"]||((o=r["return"])&&o.call(r),0):r.next)&&!(o=o.call(r,a[1])).done)return o;switch(r=0,o&&(a=[2&a[0],o.value]),a[0]){case 0:case 1:o=a;break;case 4:return s.label++,{value:a[1],done:!1};case 5:s.label++,r=a[1],a=[0];continue;case 7:a=s.ops.pop(),s.trys.pop();continue;default:if(!((o=(o=s.trys).length>0&&o[o.length-1])||6!==a[0]&&2!==a[0])){s=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]<o[3])){s.label=a[1];break}if(6===a[0]&&s.label<o[1]){s.label=o[1],o=a;break}if(o&&s.label<o[2]){s.label=o[2],s.ops.push(a);break}o[2]&&s.ops.pop(),s.trys.pop();continue}a=t.call(e,s)}catch(c){a=[6,c],r=0}finally{n=o=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,c])}}},d=t.WebRequest=function(e){function t(t){var n=e.call(this)||this,r=t.timeout,o=t.timeoutMsg,i=t.restrictedMethods;return n.timeout=r||0,n.timeoutMsg=o||"请求超时",n.restrictedMethods=i||["get","post","upload","download"],n}return a(t,e),t.prototype.get=function(e){return this.request(c(c({},e),{method:"get"}),this.restrictedMethods.includes("get"))},t.prototype.post=function(e){return this.request(c(c({},e),{method:"post"}),this.restrictedMethods.includes("post"))},t.prototype.put=function(e){return this.request(c(c({},e),{method:"put"}))},t.prototype.upload=function(e){var t=e.data,n=e.file,r=e.name,o=e.method,i=e.headers,s=void 0===i?{}:i,a={post:"post",put:"put"}[null==o?void 0:o.toLowerCase()]||"put",l=new FormData;return"post"===a?(Object.keys(t).forEach(function(e){l.append(e,t[e])}),l.append("key",r),l.append("file",n),this.request(c(c({},e),{data:l,method:a}),this.restrictedMethods.includes("upload"))):this.request(c(c({},e),{method:"put",headers:s,body:n}),this.restrictedMethods.includes("upload"))},t.prototype.download=function(e){return l(this,void 0,void 0,function(){var t,n,r,o;return u(this,function(i){switch(i.label){case 0:return i.trys.push([0,2,,3]),[4,this.get(c(c({},e),{headers:{},responseType:"blob"}))];case 1:return t=i.sent().data,n=window.URL.createObjectURL(new Blob([t])),r=decodeURIComponent(new URL(e.url).pathname.split("/").pop()||""),(o=document.createElement("a")).href=n,o.setAttribute("download",r),o.style.display="none",document.body.appendChild(o),o.click(),window.URL.revokeObjectURL(n),document.body.removeChild(o),[3,3];case 2:return i.sent(),[3,3];case 3:return[2,new Promise(function(t){t({statusCode:200,tempFilePath:e.url})})]}})})},t.prototype.fetch=function(e){var t;return l(this,void 0,void 0,function(){var n,r,o,i,s,a,d,h,p,f,m,g=this;return u(this,function(_){switch(_.label){case 0:return n=new AbortController,r=e.url,o=e.enableAbort,i=void 0!==o&&o,s=e.stream,a=void 0!==s&&s,d=e.signal,h=e.timeout,p=null!=h?h:this.timeout,d&&(d.aborted&&n.abort(),d.addEventListener("abort",function(){return n.abort()})),f=null,i&&p&&(f=setTimeout(function(){console.warn(g.timeoutMsg),n.abort(new Error(g.timeoutMsg))},p)),[4,fetch(r,c(c({},e),{signal:n.signal})).then(function(e){return l(g,void 0,void 0,function(){var t,n,r;return u(this,function(o){switch(o.label){case 0:return clearTimeout(f),e.ok?(t=e,[3,3]):[3,1];case 1:return r=(n=Promise).reject,[4,e.json()];case 2:t=r.apply(n,[o.sent()]),o.label=3;case 3:return[2,t]}})})})["catch"](function(e){return clearTimeout(f),Promise.reject(e)})];case 1:return m=_.sent(),[2,{data:a?m.body:(null===(t=m.headers.get("content-type"))||void 0===t?void 0:t.includes("application/json"))?m.json():m.text(),statusCode:m.status,header:m.headers}]}})})},t.prototype.request=function(e,t){var n=this;void 0===t&&(t=!1);var r=String(e.method).toLowerCase()||"get";return new Promise(function(o){var a,c,l=e.url,u=e.headers,d=void 0===u?{}:u,h=e.data,p=e.responseType,f=e.withCredentials,m=e.body,g=e.onUploadProgress,_=(0,i.formatUrl)((0,s.getProtocol)(),l,"get"===r?h:{}),v=new XMLHttpRequest;v.open(r,_),p&&(v.responseType=p),Object.keys(d).forEach(function(e){v.setRequestHeader(e,d[e])}),g&&v.upload.addEventListener("progress",g),v.onreadystatechange=function(){var e={};if(4===v.readyState){var t=v.getAllResponseHeaders().trim().split(/[\r\n]+/),n={};t.forEach(function(e){var t=e.split(": "),r=t.shift().toLowerCase(),o=t.join(": ");n[r]=o}),e.header=n,e.statusCode=v.status;try{e.data="blob"===p?v.response:JSON.parse(v.responseText)}catch(r){e.data="blob"===p?v.response:v.responseText}clearTimeout(a),o(e)}},t&&n.timeout&&(a=setTimeout(function(){console.warn(n.timeoutMsg),v.abort()},n.timeout)),c=(0,i.isFormData)(h)?h:"application/x-www-form-urlencoded"===d["content-type"]?(0,i.toQueryString)(h):m||(h?JSON.stringify(h):undefined),f&&(v.withCredentials=!0),v.send(c)})},t}(o.AbstractSDKRequest)},2691:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.IS_DEBUG_MODE=t.COMMUNITY_SITE_URL=void 0,t.getProtocol=function(){return r},t.getSdkName=function(){return n},t.setProtocol=function(e){r=e},t.setSdkName=function(e){n=e};var n="@cloudbase/js-sdk",r="https:";t.IS_DEBUG_MODE=!1,t.COMMUNITY_SITE_URL="https://support.qq.com/products/148793"},929:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ERRORS=void 0,t.ERRORS={INVALID_PARAMS:"INVALID_PARAMS",INVALID_SYNTAX:"INVALID_SYNTAX",INVALID_OPERATION:"INVALID_OPERATION",OPERATION_FAIL:"OPERATION_FAIL",NETWORK_ERROR:"NETWORK_ERROR",UNKOWN_ERROR:"UNKOWN_ERROR"}},528:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r={OATUH_LOGINTYPE:!0};t.OATUH_LOGINTYPE=void 0;var o=n(2691);Object.keys(o).forEach(function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(r,e)||e in t&&t[e]===o[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return o[e]}}))});var i=n(929);Object.keys(i).forEach(function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(r,e)||e in t&&t[e]===i[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return i[e]}}))}),t.OATUH_LOGINTYPE="constants"},2572:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.catchErrorsDecorator=function(e){var t=e.mode,n=void 0===t?"async":t,a=e.customInfo,d=void 0===a?{}:a,h=e.title,p=e.messages,f=void 0===p?[]:p;return function(e,t,a){if(o.IS_DEBUG_MODE){var p=d.className||e.constructor.name,m=d.methodName||t,g=a.value,_=function(e){var t="",n=e.stack.split("\n"),r=n.findIndex(function(e){return c.test(e)});if(-1!==r){var o=l.exec(n[r+1]||"");t=o?o[0]:""}return t}(new Error);a.value="sync"===n?function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=u({err:new Error,className:p,methodName:m,sourceLink:_});try{return g.apply(this,e)}catch(d){var o=d,i=d.message,s=d.error,a=d.error_description,c={title:h||"".concat(p,".").concat(m," failed"),content:[{type:"error",body:d}]};if(i&&/^\{.*\}$/.test(i)){var l=JSON.parse(i);c.subtitle=i,l.code&&(n?(n.code=l.code,n.msg=l.msg):(d.code=l.code,d.message=l.msg),o=n||d,c.content=f.map(function(e){return{type:"info",body:e}}))}throw s&&a&&(c.subtitle=a,n?(n.code=s,n.msg=a):(d.code=s,d.message=a),o=n||d,c.content=f.map(function(e){return{type:"info",body:e}})),(0,r.printGroupLog)(c),o}}:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return i(this,void 0,void 0,function(){var t,n,o,i,a,c,l,d;return s(this,function(s){switch(s.label){case 0:t=u({err:new Error,className:p,methodName:m,sourceLink:_}),s.label=1;case 1:return s.trys.push([1,3,,4]),[4,g.apply(this,e)];case 2:return[2,s.sent()];case 3:throw n=s.sent(),o=n,i=n.message,a=n.error,c=n.error_description,l={title:h||"".concat(p,".").concat(m," failed"),content:[{type:"error",body:n}]},i&&/^\{.*\}$/.test(i)&&(d=JSON.parse(i),l.subtitle=d,d.code&&(t?(t.code=d.code,t.message=d.msg):(n.code=d.code,n.message=d.msg),o=t||n,l.content=f.map(function(e){return{type:"info",body:e}}))),a&&c&&(l.subtitle=c,t?(t.code=a,t.msg=c):(n.code=a,n.message=c),o=t||n,l.content=f.map(function(e){return{type:"info",body:e}})),(0,r.printGroupLog)(l),o;case 4:return[2]}})})}}}};var r=n(2019),o=n(528),i=function(e,t,n,r){return new(n||(n=Promise))(function(o,i){function s(e){try{c(r.next(e))}catch(t){i(t)}}function a(e){try{c(r["throw"](e))}catch(t){i(t)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(s,a)}c((r=r.apply(e,t||[])).next())})},s=function(e,t){var n,r,o,i,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:a(0),"throw":a(1),"return":a(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function a(a){return function(c){return function(a){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,a[0]&&(s=0)),s;)try{if(n=1,r&&(o=2&a[0]?r["return"]:a[0]?r["throw"]||((o=r["return"])&&o.call(r),0):r.next)&&!(o=o.call(r,a[1])).done)return o;switch(r=0,o&&(a=[2&a[0],o.value]),a[0]){case 0:case 1:o=a;break;case 4:return s.label++,{value:a[1],done:!1};case 5:s.label++,r=a[1],a=[0];continue;case 7:a=s.ops.pop(),s.trys.pop();continue;default:if(!((o=(o=s.trys).length>0&&o[o.length-1])||6!==a[0]&&2!==a[0])){s=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]<o[3])){s.label=a[1];break}if(6===a[0]&&s.label<o[1]){s.label=o[1],o=a;break}if(o&&s.label<o[2]){s.label=o[2],s.ops.push(a);break}o[2]&&s.ops.pop(),s.trys.pop();continue}a=t.call(e,s)}catch(c){a=[6,c],r=0}finally{n=o=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,c])}}},a=!1;"undefined"!=typeof navigator&&navigator.userAgent&&(a=-1!==navigator.userAgent.indexOf("Firefox"));var c=a?/(\.js\/)?__decorate(\$\d+)?<@.*\d$/:/(\/\w+\.js\.)?__decorate(\$\d+)?\s*\(.*\)$/,l=/https?:\/\/.+:\d*\/.*\.js:\d+:\d+/;function u(e){var t=e.err,n=e.className,r=e.methodName,o=e.sourceLink;if(!o)return null;var i,s=t.stack.split("\n"),c=a?/^catchErrorsDecorator\/<\/descriptor.value@.*\d$/:new RegExp("".concat(n,"\\.descriptor.value\\s*\\[as\\s").concat(r,"\\]\\s*\\(.*\\)$")),u=a?/^catchErrorsDecorator\/<\/descriptor.value/:new RegExp("".concat(n,"\\.descriptor.value\\s*\\[as\\s").concat(r,"\\]")),d=s.findIndex(function(e){return c.test(e)});if(-1!==d){var h=s.filter(function(e,t){return t>d});h.unshift(s[d].replace(u,"".concat(n,".").concat(r)).replace(l,o)),(i=new Error).stack="".concat(a?"@debugger":"Error","\n").concat(h.join("\n"))}return i}},3824:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(2572);Object.keys(r).forEach(function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===r[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return r[e]}}))})},9174:function(e,t,n){"use strict";var r=n(6553)["default"],o=n(580)["default"];Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"AbortController",{enumerable:!0,get:function(){return h["default"]}}),t.utils=t.langEvent=t.jwt=t.helpers=t.events=t.constants=t.cache=t.adapters=void 0;var i=o(n(528));t.constants=i;var s=o(n(4043));t.adapters=s;var a=o(n(3237));t.cache=a;var c=o(n(826));t.events=c;var l=o(n(6075));t.langEvent=l;var u=o(n(2019));t.utils=u;var d=o(n(3824));t.helpers=d;var h=r(n(2405)),p=r(n(560));t.jwt={decode:p["default"]}},2405:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=void 0;var n=function(){function e(){var e=this;this.listeners=[],this.signal={aborted:!1,addEventListener:function(t,n){"abort"===t&&e.listeners.push(n)}}}return e.prototype.abort=function(){this.signal.aborted||(this.signal.aborted=!0,this.listeners.forEach(function(e){return e()}))},e}();t["default"]=n},3237:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CloudbaseCache=void 0;var r,o=n(1553),i=n(2019),s=n(528),a=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),c=function(e,t,n,r){return new(n||(n=Promise))(function(o,i){function s(e){try{c(r.next(e))}catch(t){i(t)}}function a(e){try{c(r["throw"](e))}catch(t){i(t)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(s,a)}c((r=r.apply(e,t||[])).next())})},l=function(e,t){var n,r,o,i,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:a(0),"throw":a(1),"return":a(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function a(a){return function(c){return function(a){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,a[0]&&(s=0)),s;)try{if(n=1,r&&(o=2&a[0]?r["return"]:a[0]?r["throw"]||((o=r["return"])&&o.call(r),0):r.next)&&!(o=o.call(r,a[1])).done)return o;switch(r=0,o&&(a=[2&a[0],o.value]),a[0]){case 0:case 1:o=a;break;case 4:return s.label++,{value:a[1],done:!1};case 5:s.label++,r=a[1],a=[0];continue;case 7:a=s.ops.pop(),s.trys.pop();continue;default:if(!((o=(o=s.trys).length>0&&o[o.length-1])||6!==a[0]&&2!==a[0])){s=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]<o[3])){s.label=a[1];break}if(6===a[0]&&s.label<o[1]){s.label=o[1],o=a;break}if(o&&s.label<o[2]){s.label=o[2],s.ops.push(a);break}o[2]&&s.ops.pop(),s.trys.pop();continue}a=t.call(e,s)}catch(c){a=[6,c],r=0}finally{n=o=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,c])}}},u=function(e){function t(t){var n=e.call(this)||this;return n.root=t,t.tcbCacheObject||(t.tcbCacheObject={}),n}return a(t,e),t.prototype.setItem=function(e,t){this.root.tcbCacheObject[e]=t},t.prototype.getItem=function(e){return this.root.tcbCacheObject[e]},t.prototype.removeItem=function(e){delete this.root.tcbCacheObject[e]},t.prototype.clear=function(){delete this.root.tcbCacheObject},t}(o.AbstractStorage);t.CloudbaseCache=function(){function e(e){this.keys={};var t=e.persistence,n=e.platformInfo,r=void 0===n?{}:n,o=e.keys,a=void 0===o?{}:o;this.platformInfo=r,this.storage||(this.persistenceTag=this.platformInfo.adapter.primaryStorage||t,this.storage=function(e,t){switch(e){case"local":default:return t.localStorage?t.localStorage:((0,i.printWarn)(s.ERRORS.INVALID_PARAMS,"localStorage is not supported on current platform"),new u(t.root));case"none":return new u(t.root)}}(this.persistenceTag,this.platformInfo.adapter),this.keys=a)}return Object.defineProperty(e.prototype,"mode",{get:function(){return this.storage.mode||"sync"},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"persistence",{get:function(){return this.persistenceTag},enumerable:!1,configurable:!0}),e.prototype.setStore=function(e,t,n){if("async"!==this.mode){if(this.storage)try{var r={version:n||"localCachev1",content:t};this.storage.setItem(e,JSON.stringify(r))}catch(o){throw new Error(JSON.stringify({code:s.ERRORS.OPERATION_FAIL,msg:"[".concat((0,s.getSdkName)(),"][").concat(s.ERRORS.OPERATION_FAIL,"]setStore failed"),info:o}))}}else(0,i.printWarn)(s.ERRORS.INVALID_OPERATION,"current platform's storage is asynchronous, please use setStoreAsync insteed")},e.prototype.setStoreAsync=function(e,t,n){return c(this,void 0,void 0,function(){var r;return l(this,function(o){switch(o.label){case 0:if(!this.storage)return[2];o.label=1;case 1:return o.trys.push([1,3,,4]),r={version:n||"localCachev1",content:t},[4,this.storage.setItem(e,JSON.stringify(r))];case 2:return o.sent(),[3,4];case 3:return o.sent(),[2];case 4:return[2]}})})},e.prototype.getStore=function(e,t){var n;if("async"!==this.mode){try{if("undefined"!=typeof process&&(null===(n=process.env)||void 0===n?void 0:n.tcb_token))return process.env.tcb_token;if(!this.storage)return""}catch(o){return""}t=t||"localCachev1";var r=this.storage.getItem(e);return r&&r.indexOf(t)>=0?JSON.parse(r).content:""}(0,i.printWarn)(s.ERRORS.INVALID_OPERATION,"current platform's storage is asynchronous, please use getStoreAsync insteed")},e.prototype.getStoreAsync=function(e,t){var n;return c(this,void 0,void 0,function(){var r;return l(this,function(o){switch(o.label){case 0:try{if("undefined"!=typeof process&&(null===(n=process.env)||void 0===n?void 0:n.tcb_token))return[2,process.env.tcb_token];if(!this.storage)return[2,""]}catch(i){return[2,""]}return t=t||"localCachev1",[4,this.storage.getItem(e)];case 1:return(r=o.sent())&&r.indexOf(t)>=0?[2,JSON.parse(r).content]:[2,""]}})})},e.prototype.removeStore=function(e){"async"!==this.mode?this.storage.removeItem(e):(0,i.printWarn)(s.ERRORS.INVALID_OPERATION,"current platform's storage is asynchronous, please use removeStoreAsync insteed")},e.prototype.removeStoreAsync=function(e){return c(this,void 0,void 0,function(){return l(this,function(t){switch(t.label){case 0:return[4,this.storage.removeItem(e)];case 1:return t.sent(),[2]}})})},e}()},826:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.IErrorEvent=t.CloudbaseEventEmitter=t.CloudbaseEvent=void 0,t.activateEvent=function(e,t){void 0===t&&(t={}),l.fire(e,t)},t.addEventListener=function(e,t){l.on(e,t)},t.removeEventListener=function(e,t){l.off(e,t)};var r,o=n(2019),i=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),s=function(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))},a=t.CloudbaseEvent=function(e,t){this.data=t||null,this.name=e},c=t.IErrorEvent=function(e){function t(t,n){var r=e.call(this,"error",{error:t,data:n})||this;return r.error=t,r}return i(t,e),t}(a),l=new(t.CloudbaseEventEmitter=function(){function e(){this.listeners={}}return e.prototype.on=function(e,t){return function(e,t,n){n[e]=n[e]||[],n[e].push(t)}(e,t,this.listeners),this},e.prototype.off=function(e,t){return function(e,t,n){if(null==n?void 0:n[e]){var r=n[e].indexOf(t);-1!==r&&n[e].splice(r,1)}}(e,t,this.listeners),this},e.prototype.fire=function(e,t){if((0,o.isInstanceOf)(e,c))return console.error(e.error),this;var n=(0,o.isString)(e)?new a(e,t||{}):e,r=n.name;if(this.listens(r)){n.target=this;for(var i=0,l=this.listeners[r]?s([],this.listeners[r],!0):[];i<l.length;i++)l[i].call(this,n)}return this},e.prototype.listens=function(e){return this.listeners[e]&&this.listeners[e].length>0},e}())},6075:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.bus=t.LANG_CHANGE_EVENT=void 0;var r=n(826);t.bus=new r.CloudbaseEventEmitter,t.LANG_CHANGE_EVENT="lang_change"},2019:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createPromiseCallback=function(){var e;if(!Promise){(e=function(){}).promise={};var t=function(){throw new Error('Your Node runtime does support ES6 Promises. Set "global.Promise" to your preferred implementation of promises.')};return Object.defineProperty(e.promise,"then",{get:t}),Object.defineProperty(e.promise,"catch",{get:t}),e}var n=new Promise(function(t,n){e=function(e,r){return e?n(e):t(r)}});return e.promise=n,e},t.execCallback=function(e,t,n){if(void 0===n&&(n=null),e&&"function"==typeof e)return e(t,n);if(t)throw t;return n},t.formatUrl=function(e,t,n){void 0===n&&(n={});var r=/\?/.test(t),o="";return Object.keys(n).forEach(function(e){""===o?!r&&(t+="?"):o+="&",o+="".concat(e,"=").concat(encodeURIComponent(n[e]))}),/^http(s)?:\/\//.test(t+=o)?t:"".concat(e).concat(t)},t.genSeqId=function(){return Math.random().toString(16).slice(2)},t.generateRequestId=function(){var e=(new Date).getTime(),t=(null===Date||void 0===Date?void 0:Date.now)&&1e3*Date.now()||0;return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(n){var r=16*Math.random();return e>0?(r=(e+r)%16|0,e=Math.floor(e/16)):(r=(t+r)%16|0,t=Math.floor(t/16)),("x"===n?r:7&r|8).toString(16)})},t.getHash=void 0,t.getQuery=function(e,t){if("undefined"==typeof window)return!1;var n=t||window.location.search,r=new RegExp("(^|&)".concat(e,"=([^&]*)(&|$)")),o=n.substr(n.indexOf("?")+1).match(r);return null!==o&&o!==undefined?o[2]:""},t.isArray=function(e){return"[object Array]"===Object.prototype.toString.call(e)},t.isFormData=function(e){return"[object FormData]"===Object.prototype.toString.call(e)},t.isInstanceOf=function(e,t){return e instanceof t},t.isNull=function(e){return"[object Null]"===Object.prototype.toString.call(e)},t.isPalinObject=function(e){return"[object Object]"===Object.prototype.toString.call(e)},t.isString=function(e){return"string"==typeof e},t.isUndefined=function(e){return void 0===e},t.parseQueryString=void 0,t.printError=function(e,t){console.error({code:e,msg:"[".concat((0,r.getSdkName)(),"][").concat(e,"]:").concat(t)})},t.printGroupLog=function(e){var t,n=e.title,r=e.subtitle,o=void 0===r?"":r,i=e.content,s=void 0===i?[]:i,a=e.printTrace,c=void 0!==a&&a,l=e.collapsed;void 0!==l&&l?(console.groupCollapsed||console.error)(n,o):(console.group||console.error)(n,o);for(var u=0,d=s;u<d.length;u++){var h=d[u],p=h.type,f=h.body;switch(p){case"info":console.log(f);break;case"warn":console.warn(f);break;case"error":console.error(f)}}c&&(console.trace||console.log)("stack trace:"),null===(t=console.groupEnd)||void 0===t||t.call(console)},t.printInfo=function(e,t){console.log("[".concat((0,r.getSdkName)(),"][").concat(e,"]:").concat(t))},t.printWarn=function(e,t){console.warn("[".concat((0,r.getSdkName)(),"][").concat(e,"]:").concat(t))},t.removeParam=function(e,t){var n=t.split("?")[0],r=[],o=-1!==t.indexOf("?")?t.split("?")[1]:"";if(""!==o){for(var i=(r=o.split("&")).length-1;i>=0;i-=1)r[i].split("=")[0]===e&&r.splice(i,1);n="".concat(n,"?").concat(r.join("&"))}return n},t.sleep=void 0,t.throwError=function(e,t){throw new Error(JSON.stringify({code:e,msg:"[".concat((0,r.getSdkName)(),"][").concat(e,"]:").concat(t)}))},t.toQueryString=function(e){void 0===e&&(e={});var t=[];return Object.keys(e).forEach(function(n){t.push("".concat(n,"=").concat(encodeURIComponent(e[n])))}),t.join("&")},t.transformPhone=function(e){return"+86".concat(e)};var r=n(528);t.getHash=function(e){if("undefined"==typeof window)return"";var t=window.location.hash.match(new RegExp("[#?&/]".concat(e,"=([^&#]*)")));return t?t[1]:""},t.sleep=function(e){return void 0===e&&(e=0),new Promise(function(t){return setTimeout(t,e)})},t.parseQueryString=function(e){e=e.replace(/^\?/,"");var t={};return e.split("&").forEach(function(e){var n=e.split("="),r=n[0],o=n[1];r=decodeURIComponent(r),o=decodeURIComponent(o),r&&(t[r]?Array.isArray(t[r])?t[r].push(o):t[r]=[t[r],o]:t[r]=o)}),t}},8093:function(e,t,n){"use strict";var r;!function(){function o(e,t){var n=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(n>>16)<<16|65535&n}function i(e,t,n,r,i,s){return o((a=o(o(t,e),o(r,s)))<<(c=i)|a>>>32-c,n);var a,c}function s(e,t,n,r,o,s,a){return i(t&n|~t&r,e,t,o,s,a)}function a(e,t,n,r,o,s,a){return i(t&r|n&~r,e,t,o,s,a)}function c(e,t,n,r,o,s,a){return i(t^n^r,e,t,o,s,a)}function l(e,t,n,r,o,s,a){return i(n^(t|~r),e,t,o,s,a)}function u(e,t){var n,r,i,u,d;e[t>>5]|=128<<t%32,e[14+(t+64>>>9<<4)]=t;var h=1732584193,p=-271733879,f=-1732584194,m=271733878;for(n=0;n<e.length;n+=16)r=h,i=p,u=f,d=m,h=s(h,p,f,m,e[n],7,-680876936),m=s(m,h,p,f,e[n+1],12,-389564586),f=s(f,m,h,p,e[n+2],17,606105819),p=s(p,f,m,h,e[n+3],22,-1044525330),h=s(h,p,f,m,e[n+4],7,-176418897),m=s(m,h,p,f,e[n+5],12,1200080426),f=s(f,m,h,p,e[n+6],17,-1473231341),p=s(p,f,m,h,e[n+7],22,-45705983),h=s(h,p,f,m,e[n+8],7,1770035416),m=s(m,h,p,f,e[n+9],12,-1958414417),f=s(f,m,h,p,e[n+10],17,-42063),p=s(p,f,m,h,e[n+11],22,-1990404162),h=s(h,p,f,m,e[n+12],7,1804603682),m=s(m,h,p,f,e[n+13],12,-40341101),f=s(f,m,h,p,e[n+14],17,-1502002290),h=a(h,p=s(p,f,m,h,e[n+15],22,1236535329),f,m,e[n+1],5,-165796510),m=a(m,h,p,f,e[n+6],9,-1069501632),f=a(f,m,h,p,e[n+11],14,643717713),p=a(p,f,m,h,e[n],20,-373897302),h=a(h,p,f,m,e[n+5],5,-701558691),m=a(m,h,p,f,e[n+10],9,38016083),f=a(f,m,h,p,e[n+15],14,-660478335),p=a(p,f,m,h,e[n+4],20,-405537848),h=a(h,p,f,m,e[n+9],5,568446438),m=a(m,h,p,f,e[n+14],9,-1019803690),f=a(f,m,h,p,e[n+3],14,-187363961),p=a(p,f,m,h,e[n+8],20,1163531501),h=a(h,p,f,m,e[n+13],5,-1444681467),m=a(m,h,p,f,e[n+2],9,-51403784),f=a(f,m,h,p,e[n+7],14,1735328473),h=c(h,p=a(p,f,m,h,e[n+12],20,-1926607734),f,m,e[n+5],4,-378558),m=c(m,h,p,f,e[n+8],11,-2022574463),f=c(f,m,h,p,e[n+11],16,1839030562),p=c(p,f,m,h,e[n+14],23,-35309556),h=c(h,p,f,m,e[n+1],4,-1530992060),m=c(m,h,p,f,e[n+4],11,1272893353),f=c(f,m,h,p,e[n+7],16,-155497632),p=c(p,f,m,h,e[n+10],23,-1094730640),h=c(h,p,f,m,e[n+13],4,681279174),m=c(m,h,p,f,e[n],11,-358537222),f=c(f,m,h,p,e[n+3],16,-722521979),p=c(p,f,m,h,e[n+6],23,76029189),h=c(h,p,f,m,e[n+9],4,-640364487),m=c(m,h,p,f,e[n+12],11,-421815835),f=c(f,m,h,p,e[n+15],16,530742520),h=l(h,p=c(p,f,m,h,e[n+2],23,-995338651),f,m,e[n],6,-198630844),m=l(m,h,p,f,e[n+7],10,1126891415),f=l(f,m,h,p,e[n+14],15,-1416354905),p=l(p,f,m,h,e[n+5],21,-57434055),h=l(h,p,f,m,e[n+12],6,1700485571),m=l(m,h,p,f,e[n+3],10,-1894986606),f=l(f,m,h,p,e[n+10],15,-1051523),p=l(p,f,m,h,e[n+1],21,-2054922799),h=l(h,p,f,m,e[n+8],6,1873313359),m=l(m,h,p,f,e[n+15],10,-30611744),f=l(f,m,h,p,e[n+6],15,-1560198380),p=l(p,f,m,h,e[n+13],21,1309151649),h=l(h,p,f,m,e[n+4],6,-145523070),m=l(m,h,p,f,e[n+11],10,-1120210379),f=l(f,m,h,p,e[n+2],15,718787259),p=l(p,f,m,h,e[n+9],21,-343485551),h=o(h,r),p=o(p,i),f=o(f,u),m=o(m,d);return[h,p,f,m]}function d(e){var t,n="",r=32*e.length;for(t=0;t<r;t+=8)n+=String.fromCharCode(e[t>>5]>>>t%32&255);return n}function h(e){var t,n=[];for(n[(e.length>>2)-1]=undefined,t=0;t<n.length;t+=1)n[t]=0;var r=8*e.length;for(t=0;t<r;t+=8)n[t>>5]|=(255&e.charCodeAt(t/8))<<t%32;return n}function p(e){var t,n,r="0123456789abcdef",o="";for(n=0;n<e.length;n+=1)t=e.charCodeAt(n),o+=r.charAt(t>>>4&15)+r.charAt(15&t);return o}function f(e){return unescape(encodeURIComponent(e))}function m(e){return function(e){return d(u(h(e),8*e.length))}(f(e))}function g(e,t){return function(e,t){var n,r,o=h(e),i=[],s=[];for(i[15]=s[15]=undefined,o.length>16&&(o=u(o,8*e.length)),n=0;n<16;n+=1)i[n]=909522486^o[n],s[n]=1549556828^o[n];return r=u(i.concat(h(t)),512+8*t.length),d(u(s.concat(r),640))}(f(e),f(t))}function _(e,t,n){return t?n?g(t,e):p(g(t,e)):n?m(e):p(m(e))}(r=function(){return _}.call(t,n,t,e))===undefined||(e.exports=r)}()},9379:function(e){"use strict";e.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="/dist/",n(n.s=96)}({0:function(e,t,n){function r(e,t,n,r,o,i,s,a){var c,l="function"==typeof e?e.options:e;if(t&&(l.render=t,l.staticRenderFns=n,l._compiled=!0),r&&(l.functional=!0),i&&(l._scopeId="data-v-"+i),s?(c=function(e){(e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),o&&o.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(s)},l._ssrRegister=c):o&&(c=a?function(){o.call(this,this.$root.$options.shadowRoot)}:o),c)if(l.functional){l._injectStyles=c;var u=l.render;l.render=function(e,t){return c.call(t),u(e,t)}}else{var d=l.beforeCreate;l.beforeCreate=d?[].concat(d,c):[c]}return{exports:e,options:l}}n.d(t,"a",function(){return r})},96:function(e,t,n){n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("button",{staticClass:"el-button","class":[e.type?"el-button--"+e.type:"",e.buttonSize?"el-button--"+e.buttonSize:"",{"is-disabled":e.buttonDisabled,"is-loading":e.loading,"is-plain":e.plain,"is-round":e.round,"is-circle":e.circle}],attrs:{disabled:e.buttonDisabled||e.loading,autofocus:e.autofocus,type:e.nativeType},on:{click:e.handleClick}},[e.loading?n("i",{staticClass:"el-icon-loading"}):e._e(),e.icon&&!e.loading?n("i",{"class":e.icon}):e._e(),e.$slots["default"]?n("span",[e._t("default")],2):e._e()])};r._withStripped=!0;var o={name:"ElButton",inject:{elForm:{"default":""},elFormItem:{"default":""}},props:{type:{type:String,"default":"default"},size:String,icon:{type:String,"default":""},nativeType:{type:String,"default":"button"},loading:Boolean,disabled:Boolean,plain:Boolean,autofocus:Boolean,round:Boolean,circle:Boolean},computed:{_elFormItemSize:function(){return(this.elFormItem||{}).elFormItemSize},buttonSize:function(){return this.size||this._elFormItemSize||(this.$ELEMENT||{}).size},buttonDisabled:function(){return this.$options.propsData.hasOwnProperty("disabled")?this.disabled:(this.elForm||{}).disabled}},methods:{handleClick:function(e){this.$emit("click",e)}}},i=n(0),s=Object(i.a)(o,r,[],!1,null,null,null);s.options.__file="packages/button/src/button.vue";var a=s.exports;a.install=function(e){e.component(a.name,a)},t["default"]=a}})},9675:function(e,t,n){"use strict";e.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="/dist/",n(n.s=75)}({0:function(e,t,n){function r(e,t,n,r,o,i,s,a){var c,l="function"==typeof e?e.options:e;if(t&&(l.render=t,l.staticRenderFns=n,l._compiled=!0),r&&(l.functional=!0),i&&(l._scopeId="data-v-"+i),s?(c=function(e){(e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),o&&o.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(s)},l._ssrRegister=c):o&&(c=a?function(){o.call(this,this.$root.$options.shadowRoot)}:o),c)if(l.functional){l._injectStyles=c;var u=l.render;l.render=function(e,t){return c.call(t),u(e,t)}}else{var d=l.beforeCreate;l.beforeCreate=d?[].concat(d,c):[c]}return{exports:e,options:l}}n.d(t,"a",function(){return r})},11:function(e,t){e.exports=n(4840)},21:function(e,t){e.exports=n(5088)},4:function(e,t){e.exports=n(2952)},75:function(e,t,n){n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{"class":["textarea"===e.type?"el-textarea":"el-input",e.inputSize?"el-input--"+e.inputSize:"",{"is-disabled":e.inputDisabled,"is-exceed":e.inputExceed,"el-input-group":e.$slots.prepend||e.$slots.append,"el-input-group--append":e.$slots.append,"el-input-group--prepend":e.$slots.prepend,"el-input--prefix":e.$slots.prefix||e.prefixIcon,"el-input--suffix":e.$slots.suffix||e.suffixIcon||e.clearable||e.showPassword}],on:{mouseenter:function(t){e.hovering=!0},mouseleave:function(t){e.hovering=!1}}},["textarea"!==e.type?[e.$slots.prepend?n("div",{staticClass:"el-input-group__prepend"},[e._t("prepend")],2):e._e(),"textarea"!==e.type?n("input",e._b({ref:"input",staticClass:"el-input__inner",attrs:{tabindex:e.tabindex,type:e.showPassword?e.passwordVisible?"text":"password":e.type,disabled:e.inputDisabled,readonly:e.readonly,autocomplete:e.autoComplete||e.autocomplete,"aria-label":e.label},on:{compositionstart:e.handleCompositionStart,compositionupdate:e.handleCompositionUpdate,compositionend:e.handleCompositionEnd,input:e.handleInput,focus:e.handleFocus,blur:e.handleBlur,change:e.handleChange}},"input",e.$attrs,!1)):e._e(),e.$slots.prefix||e.prefixIcon?n("span",{staticClass:"el-input__prefix"},[e._t("prefix"),e.prefixIcon?n("i",{staticClass:"el-input__icon","class":e.prefixIcon}):e._e()],2):e._e(),e.getSuffixVisible()?n("span",{staticClass:"el-input__suffix"},[n("span",{staticClass:"el-input__suffix-inner"},[e.showClear&&e.showPwdVisible&&e.isWordLimitVisible?e._e():[e._t("suffix"),e.suffixIcon?n("i",{staticClass:"el-input__icon","class":e.suffixIcon}):e._e()],e.showClear?n("i",{staticClass:"el-input__icon el-icon-circle-close el-input__clear",on:{mousedown:function(e){e.preventDefault()},click:e.clear}}):e._e(),e.showPwdVisible?n("i",{staticClass:"el-input__icon el-icon-view el-input__clear",on:{click:e.handlePasswordVisible}}):e._e(),e.isWordLimitVisible?n("span",{staticClass:"el-input__count"},[n("span",{staticClass:"el-input__count-inner"},[e._v("\n "+e._s(e.textLength)+"/"+e._s(e.upperLimit)+"\n ")])]):e._e()],2),e.validateState?n("i",{staticClass:"el-input__icon","class":["el-input__validateIcon",e.validateIcon]}):e._e()]):e._e(),e.$slots.append?n("div",{staticClass:"el-input-group__append"},[e._t("append")],2):e._e()]:n("textarea",e._b({ref:"textarea",staticClass:"el-textarea__inner",style:e.textareaStyle,attrs:{tabindex:e.tabindex,disabled:e.inputDisabled,readonly:e.readonly,autocomplete:e.autoComplete||e.autocomplete,"aria-label":e.label},on:{compositionstart:e.handleCompositionStart,compositionupdate:e.handleCompositionUpdate,compositionend:e.handleCompositionEnd,input:e.handleInput,focus:e.handleFocus,blur:e.handleBlur,change:e.handleChange}},"textarea",e.$attrs,!1)),e.isWordLimitVisible&&"textarea"===e.type?n("span",{staticClass:"el-input__count"},[e._v(e._s(e.textLength)+"/"+e._s(e.upperLimit))]):e._e()],2)};r._withStripped=!0;var o=n(4),i=n.n(o),s=n(11),a=n.n(s),c=void 0,l=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing"];function u(e){var t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:1,n=arguments.length>2&&arguments[2]!==undefined?arguments[2]:null;c||(c=document.createElement("textarea"),document.body.appendChild(c));var r=function(e){var t=window.getComputedStyle(e),n=t.getPropertyValue("box-sizing"),r=parseFloat(t.getPropertyValue("padding-bottom"))+parseFloat(t.getPropertyValue("padding-top")),o=parseFloat(t.getPropertyValue("border-bottom-width"))+parseFloat(t.getPropertyValue("border-top-width"));return{contextStyle:l.map(function(e){return e+":"+t.getPropertyValue(e)}).join(";"),paddingSize:r,borderSize:o,boxSizing:n}}(e),o=r.paddingSize,i=r.borderSize,s=r.boxSizing,a=r.contextStyle;c.setAttribute("style",a+";\n height:0 !important;\n visibility:hidden !important;\n overflow:hidden !important;\n position:absolute !important;\n z-index:-1000 !important;\n top:0 !important;\n right:0 !important\n"),c.value=e.value||e.placeholder||"";var u=c.scrollHeight,d={};"border-box"===s?u+=i:"content-box"===s&&(u-=o),c.value="";var h=c.scrollHeight-o;if(null!==t){var p=h*t;"border-box"===s&&(p=p+o+i),u=Math.max(p,u),d.minHeight=p+"px"}if(null!==n){var f=h*n;"border-box"===s&&(f=f+o+i),u=Math.min(f,u)}return d.height=u+"px",c.parentNode&&c.parentNode.removeChild(c),c=null,d}var d=n(9),h=n.n(d),p=n(21),f={name:"ElInput",componentName:"ElInput",mixins:[i.a,a.a],inheritAttrs:!1,inject:{elForm:{"default":""},elFormItem:{"default":""}},data:function(){return{textareaCalcStyle:{},hovering:!1,focused:!1,isComposing:!1,passwordVisible:!1}},props:{value:[String,Number],size:String,resize:String,form:String,disabled:Boolean,readonly:Boolean,type:{type:String,"default":"text"},autosize:{type:[Boolean,Object],"default":!1},autocomplete:{type:String,"default":"off"},autoComplete:{type:String,validator:function(e){return!0}},validateEvent:{type:Boolean,"default":!0},suffixIcon:String,prefixIcon:String,label:String,clearable:{type:Boolean,"default":!1},showPassword:{type:Boolean,"default":!1},showWordLimit:{type:Boolean,"default":!1},tabindex:String},computed:{_elFormItemSize:function(){return(this.elFormItem||{}).elFormItemSize},validateState:function(){return this.elFormItem?this.elFormItem.validateState:""},needStatusIcon:function(){return!!this.elForm&&this.elForm.statusIcon},validateIcon:function(){return{validating:"el-icon-loading",success:"el-icon-circle-check",error:"el-icon-circle-close"}[this.validateState]},textareaStyle:function(){return h()({},this.textareaCalcStyle,{resize:this.resize})},inputSize:function(){return this.size||this._elFormItemSize||(this.$ELEMENT||{}).size},inputDisabled:function(){return this.disabled||(this.elForm||{}).disabled},nativeInputValue:function(){return null===this.value||this.value===undefined?"":String(this.value)},showClear:function(){return this.clearable&&!this.inputDisabled&&!this.readonly&&this.nativeInputValue&&(this.focused||this.hovering)},showPwdVisible:function(){return this.showPassword&&!this.inputDisabled&&!this.readonly&&(!!this.nativeInputValue||this.focused)},isWordLimitVisible:function(){return this.showWordLimit&&this.$attrs.maxlength&&("text"===this.type||"textarea"===this.type)&&!this.inputDisabled&&!this.readonly&&!this.showPassword},upperLimit:function(){return this.$attrs.maxlength},textLength:function(){return"number"==typeof this.value?String(this.value).length:(this.value||"").length},inputExceed:function(){return this.isWordLimitVisible&&this.textLength>this.upperLimit}},watch:{value:function(e){this.$nextTick(this.resizeTextarea),this.validateEvent&&this.dispatch("ElFormItem","el.form.change",[e])},nativeInputValue:function(){this.setNativeInputValue()},type:function(){var e=this;this.$nextTick(function(){e.setNativeInputValue(),e.resizeTextarea(),e.updateIconOffset()})}},methods:{focus:function(){this.getInput().focus()},blur:function(){this.getInput().blur()},getMigratingConfig:function(){return{props:{icon:"icon is removed, use suffix-icon / prefix-icon instead.","on-icon-click":"on-icon-click is removed."},events:{click:"click is removed."}}},handleBlur:function(e){this.focused=!1,this.$emit("blur",e),this.validateEvent&&this.dispatch("ElFormItem","el.form.blur",[this.value])},select:function(){this.getInput().select()},resizeTextarea:function(){if(!this.$isServer){var e=this.autosize;if("textarea"===this.type)if(e){var t=e.minRows,n=e.maxRows;this.textareaCalcStyle=u(this.$refs.textarea,t,n)}else this.textareaCalcStyle={minHeight:u(this.$refs.textarea).minHeight}}},setNativeInputValue:function(){var e=this.getInput();e&&e.value!==this.nativeInputValue&&(e.value=this.nativeInputValue)},handleFocus:function(e){this.focused=!0,this.$emit("focus",e)},handleCompositionStart:function(e){this.$emit("compositionstart",e),this.isComposing=!0},handleCompositionUpdate:function(e){this.$emit("compositionupdate",e);var t=e.target.value,n=t[t.length-1]||"";this.isComposing=!Object(p.isKorean)(n)},handleCompositionEnd:function(e){this.$emit("compositionend",e),this.isComposing&&(this.isComposing=!1,this.handleInput(e))},handleInput:function(e){this.isComposing||e.target.value!==this.nativeInputValue&&(this.$emit("input",e.target.value),this.$nextTick(this.setNativeInputValue))},handleChange:function(e){this.$emit("change",e.target.value)},calcIconOffset:function(e){var t=[].slice.call(this.$el.querySelectorAll(".el-input__"+e)||[]);if(t.length){for(var n=null,r=0;r<t.length;r++)if(t[r].parentNode===this.$el){n=t[r];break}if(n){var o={suffix:"append",prefix:"prepend"}[e];this.$slots[o]?n.style.transform="translateX("+("suffix"===e?"-":"")+this.$el.querySelector(".el-input-group__"+o).offsetWidth+"px)":n.removeAttribute("style")}}},updateIconOffset:function(){this.calcIconOffset("prefix"),this.calcIconOffset("suffix")},clear:function(){this.$emit("input",""),this.$emit("change",""),this.$emit("clear")},handlePasswordVisible:function(){var e=this;this.passwordVisible=!this.passwordVisible,this.$nextTick(function(){e.focus()})},getInput:function(){return this.$refs.input||this.$refs.textarea},getSuffixVisible:function(){return this.$slots.suffix||this.suffixIcon||this.showClear||this.showPassword||this.isWordLimitVisible||this.validateState&&this.needStatusIcon}},created:function(){this.$on("inputSelect",this.select)},mounted:function(){this.setNativeInputValue(),this.resizeTextarea(),this.updateIconOffset()},updated:function(){this.$nextTick(this.updateIconOffset)}},m=f,g=n(0),_=Object(g.a)(m,r,[],!1,null,null,null);_.options.__file="packages/input/src/input.vue";var v=_.exports;v.install=function(e){e.component(v.name,v)},t["default"]=v},9:function(e,t){e.exports=n(9)}})},2499:function(e,t,n){"use strict";e.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="/dist/",n(n.s=73)}({0:function(e,t,n){function r(e,t,n,r,o,i,s,a){var c,l="function"==typeof e?e.options:e;if(t&&(l.render=t,l.staticRenderFns=n,l._compiled=!0),r&&(l.functional=!0),i&&(l._scopeId="data-v-"+i),s?(c=function(e){(e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),o&&o.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(s)},l._ssrRegister=c):o&&(c=a?function(){o.call(this,this.$root.$options.shadowRoot)}:o),c)if(l.functional){l._injectStyles=c;var u=l.render;l.render=function(e,t){return c.call(t),u(e,t)}}else{var d=l.beforeCreate;l.beforeCreate=d?[].concat(d,c):[c]}return{exports:e,options:l}}n.d(t,"a",function(){return r})},13:function(e,t){e.exports=n(2336)},2:function(e,t){e.exports=n(1861)},42:function(e,t){e.exports=n(4185)},7:function(e,t){e.exports=n(1058)},73:function(e,t,n){n.r(t);var r=n(7),o=n.n(r),i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("transition",{attrs:{name:"el-loading-fade"},on:{"after-leave":e.handleAfterLeave}},[n("div",{directives:[{name:"show",rawName:"v-show",value:e.visible,expression:"visible"}],staticClass:"el-loading-mask","class":[e.customClass,{"is-fullscreen":e.fullscreen}],style:{backgroundColor:e.background||""}},[n("div",{staticClass:"el-loading-spinner"},[e.spinner?n("i",{"class":e.spinner}):n("svg",{staticClass:"circular",attrs:{viewBox:"25 25 50 50"}},[n("circle",{staticClass:"path",attrs:{cx:"50",cy:"50",r:"20",fill:"none"}})]),e.text?n("p",{staticClass:"el-loading-text"},[e._v(e._s(e.text))]):e._e()])])])};i._withStripped=!0;var s={data:function(){return{text:null,spinner:null,background:null,fullscreen:!0,visible:!1,customClass:""}},methods:{handleAfterLeave:function(){this.$emit("after-leave")},setText:function(e){this.text=e}}},a=n(0),c=Object(a.a)(s,i,[],!1,null,null,null);c.options.__file="packages/loading/src/loading.vue";var l=c.exports,u=n(2),d=n(13),h=n(42),p=n.n(h),f=o.a.extend(l),m={install:function(e){if(!e.prototype.$isServer){var t=function(t,r){r.value?e.nextTick(function(){r.modifiers.fullscreen?(t.originalPosition=Object(u.getStyle)(document.body,"position"),t.originalOverflow=Object(u.getStyle)(document.body,"overflow"),t.maskStyle.zIndex=d.PopupManager.nextZIndex(),Object(u.addClass)(t.mask,"is-fullscreen"),n(document.body,t,r)):(Object(u.removeClass)(t.mask,"is-fullscreen"),r.modifiers.body?(t.originalPosition=Object(u.getStyle)(document.body,"position"),["top","left"].forEach(function(e){var n="top"===e?"scrollTop":"scrollLeft";t.maskStyle[e]=t.getBoundingClientRect()[e]+document.body[n]+document.documentElement[n]-parseInt(Object(u.getStyle)(document.body,"margin-"+e),10)+"px"}),["height","width"].forEach(function(e){t.maskStyle[e]=t.getBoundingClientRect()[e]+"px"}),n(document.body,t,r)):(t.originalPosition=Object(u.getStyle)(t,"position"),n(t,t,r)))}):(p()(t.instance,function(e){if(t.instance.hiding){t.domVisible=!1;var n=r.modifiers.fullscreen||r.modifiers.body?document.body:t;Object(u.removeClass)(n,"el-loading-parent--relative"),Object(u.removeClass)(n,"el-loading-parent--hidden"),t.instance.hiding=!1}},300,!0),t.instance.visible=!1,t.instance.hiding=!0)},n=function(t,n,r){n.domVisible||"none"===Object(u.getStyle)(n,"display")||"hidden"===Object(u.getStyle)(n,"visibility")?n.domVisible&&!0===n.instance.hiding&&(n.instance.visible=!0,n.instance.hiding=!1):(Object.keys(n.maskStyle).forEach(function(e){n.mask.style[e]=n.maskStyle[e]}),"absolute"!==n.originalPosition&&"fixed"!==n.originalPosition&&"sticky"!==n.originalPosition&&Object(u.addClass)(t,"el-loading-parent--relative"),r.modifiers.fullscreen&&r.modifiers.lock&&Object(u.addClass)(t,"el-loading-parent--hidden"),n.domVisible=!0,t.appendChild(n.mask),e.nextTick(function(){n.instance.hiding?n.instance.$emit("after-leave"):n.instance.visible=!0}),n.domInserted=!0)};e.directive("loading",{bind:function(e,n,r){var o=e.getAttribute("element-loading-text"),i=e.getAttribute("element-loading-spinner"),s=e.getAttribute("element-loading-background"),a=e.getAttribute("element-loading-custom-class"),c=r.context,l=new f({el:document.createElement("div"),data:{text:c&&c[o]||o,spinner:c&&c[i]||i,background:c&&c[s]||s,customClass:c&&c[a]||a,fullscreen:!!n.modifiers.fullscreen}});e.instance=l,e.mask=l.$el,e.maskStyle={},n.value&&t(e,n)},update:function(e,n){e.instance.setText(e.getAttribute("element-loading-text")),n.oldValue!==n.value&&t(e,n)},unbind:function(e,n){e.domInserted&&(e.mask&&e.mask.parentNode&&e.mask.parentNode.removeChild(e.mask),t(e,{value:!1,modifiers:n.modifiers})),e.instance&&e.instance.$destroy()}})}}},g=m,_=n(9),v=n.n(_),y=o.a.extend(l),b={text:null,fullscreen:!0,body:!1,lock:!1,customClass:""},w=void 0;y.prototype.originalPosition="",y.prototype.originalOverflow="",y.prototype.close=function(){var e=this;this.fullscreen&&(w=undefined),p()(this,function(t){var n=e.fullscreen||e.body?document.body:e.target;Object(u.removeClass)(n,"el-loading-parent--relative"),Object(u.removeClass)(n,"el-loading-parent--hidden"),e.$el&&e.$el.parentNode&&e.$el.parentNode.removeChild(e.$el),e.$destroy()},300),this.visible=!1};var S=function(){var e=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{};if(!o.a.prototype.$isServer){if("string"==typeof(e=v()({},b,e)).target&&(e.target=document.querySelector(e.target)),e.target=e.target||document.body,e.target!==document.body?e.fullscreen=!1:e.body=!0,e.fullscreen&&w)return w;var t=e.body?document.body:e.target,n=new y({el:document.createElement("div"),data:e});return function(e,t,n){var r={};e.fullscreen?(n.originalPosition=Object(u.getStyle)(document.body,"position"),n.originalOverflow=Object(u.getStyle)(document.body,"overflow"),r.zIndex=d.PopupManager.nextZIndex()):e.body?(n.originalPosition=Object(u.getStyle)(document.body,"position"),["top","left"].forEach(function(t){var n="top"===t?"scrollTop":"scrollLeft";r[t]=e.target.getBoundingClientRect()[t]+document.body[n]+document.documentElement[n]+"px"}),["height","width"].forEach(function(t){r[t]=e.target.getBoundingClientRect()[t]+"px"})):n.originalPosition=Object(u.getStyle)(t,"position"),Object.keys(r).forEach(function(e){n.$el.style[e]=r[e]})}(e,t,n),"absolute"!==n.originalPosition&&"fixed"!==n.originalPosition&&"sticky"!==n.originalPosition&&Object(u.addClass)(t,"el-loading-parent--relative"),e.fullscreen&&e.lock&&Object(u.addClass)(t,"el-loading-parent--hidden"),t.appendChild(n.$el),o.a.nextTick(function(){n.visible=!0}),e.fullscreen&&(w=n),n}};t["default"]={install:function(e){e.use(g),e.prototype.$loading=S},directive:g,service:S}},9:function(e,t){e.exports=n(9)}})},2952:function(e,t){"use strict";function n(e,t,r){this.$children.forEach(function(o){o.$options.componentName===e?o.$emit.apply(o,[t].concat(r)):n.apply(o,[e,t].concat([r]))})}t.__esModule=!0,t["default"]={methods:{dispatch:function(e,t,n){for(var r=this.$parent||this.$root,o=r.$options.componentName;r&&(!o||o!==e);)(r=r.$parent)&&(o=r.$options.componentName);r&&r.$emit.apply(r,[t].concat(n))},broadcast:function(e,t,r){n.call(this,e,t,r)}}}},4840:function(e,t,n){"use strict";t.__esModule=!0,n(4669),t["default"]={mounted:function(){},methods:{getMigratingConfig:function(){return{props:{},events:{}}}}}},4185:function(e,t){"use strict";t.__esModule=!0,t["default"]=function(e,t){var n=arguments.length>2&&arguments[2]!==undefined?arguments[2]:300,r=arguments.length>3&&arguments[3]!==undefined&&arguments[3];if(!e||!t)throw new Error("instance & callback is required");var o=!1,i=function(){o||(o=!0,t&&t.apply(null,arguments))};r?e.$once("after-leave",i):e.$on("after-leave",i),setTimeout(function(){i()},n+100)}},1861:function(e,t,n){"use strict";t.__esModule=!0,t.isInContainer=t.getScrollContainer=t.isScroll=t.getStyle=t.once=t.off=t.on=undefined;var r="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};t.hasClass=f,t.addClass=function(e,t){if(e){for(var n=e.className,r=(t||"").split(" "),o=0,i=r.length;o<i;o++){var s=r[o];s&&(e.classList?e.classList.add(s):f(e,s)||(n+=" "+s))}e.classList||e.setAttribute("class",n)}},t.removeClass=function(e,t){if(e&&t){for(var n=t.split(" "),r=" "+e.className+" ",o=0,i=n.length;o<i;o++){var s=n[o];s&&(e.classList?e.classList.remove(s):f(e,s)&&(r=r.replace(" "+s+" "," ")))}e.classList||e.setAttribute("class",u(r))}},t.setStyle=function _(e,t,n){if(e&&t)if("object"===(void 0===t?"undefined":r(t)))for(var o in t)t.hasOwnProperty(o)&&_(e,o,t[o]);else"opacity"===(t=d(t))&&l<9?e.style.filter=isNaN(n)?"":"alpha(opacity="+100*n+")":e.style[t]=n};var o,i=n(1058),s=((o=i)&&o.__esModule?o:{"default":o})["default"].prototype.$isServer,a=/([\:\-\_]+(.))/g,c=/^moz([A-Z])/,l=s?0:Number(document.documentMode),u=function(e){return(e||"").replace(/^[\s\uFEFF]+|[\s\uFEFF]+$/g,"")},d=function(e){return e.replace(a,function(e,t,n,r){return r?n.toUpperCase():n}).replace(c,"Moz$1")},h=t.on=!s&&document.addEventListener?function(e,t,n){e&&t&&n&&e.addEventListener(t,n,!1)}:function(e,t,n){e&&t&&n&&e.attachEvent("on"+t,n)},p=t.off=!s&&document.removeEventListener?function(e,t,n){e&&t&&e.removeEventListener(t,n,!1)}:function(e,t,n){e&&t&&e.detachEvent("on"+t,n)};function f(e,t){if(!e||!t)return!1;if(-1!==t.indexOf(" "))throw new Error("className should not contain space.");return e.classList?e.classList.contains(t):(" "+e.className+" ").indexOf(" "+t+" ")>-1}t.once=function(e,t,n){h(e,t,function r(){n&&n.apply(this,arguments),p(e,t,r)})};var m=t.getStyle=l<9?function(e,t){if(!s){if(!e||!t)return null;"float"===(t=d(t))&&(t="styleFloat");try{if("opacity"===t)try{return e.filters.item("alpha").opacity/100}catch(n){return 1}return e.style[t]||e.currentStyle?e.currentStyle[t]:null}catch(n){return e.style[t]}}}:function(e,t){if(!s){if(!e||!t)return null;"float"===(t=d(t))&&(t="cssFloat");try{var n=document.defaultView.getComputedStyle(e,"");return e.style[t]||n?n[t]:null}catch(r){return e.style[t]}}},g=t.isScroll=function(e,t){if(!s){var n=null!==t&&t!==undefined;return m(e,n?t?"overflow-y":"overflow-x":"overflow").match(/(scroll|auto|overlay)/)}};t.getScrollContainer=function(e,t){if(!s){for(var n=e;n;){if([window,document,document.documentElement].includes(n))return window;if(g(n,t))return n;n=n.parentNode}return n}},t.isInContainer=function(e,t){if(s||!e||!t)return!1;var n=e.getBoundingClientRect(),r=void 0;return r=[window,document,document.documentElement,null,undefined].includes(t)?{top:0,right:window.innerWidth,bottom:window.innerHeight,left:0}:t.getBoundingClientRect(),n.top<r.bottom&&n.bottom>r.top&&n.right>r.left&&n.left<r.right}},9:function(e,t){"use strict";t.__esModule=!0,t["default"]=function(e){for(var t=1,n=arguments.length;t<n;t++){var r=arguments[t]||{};for(var o in r)if(r.hasOwnProperty(o)){var i=r[o];i!==undefined&&(e[o]=i)}}return e}},2336:function(e,t,n){"use strict";t.__esModule=!0,t.PopupManager=undefined;var r=c(n(1058)),o=c(n(9)),i=c(n(1820)),s=c(n(4698)),a=n(1861);function c(e){return e&&e.__esModule?e:{"default":e}}var l=1,u=void 0;t["default"]={props:{visible:{type:Boolean,"default":!1},openDelay:{},closeDelay:{},zIndex:{},modal:{type:Boolean,"default":!1},modalFade:{type:Boolean,"default":!0},modalClass:{},modalAppendToBody:{type:Boolean,"default":!1},lockScroll:{type:Boolean,"default":!0},closeOnPressEscape:{type:Boolean,"default":!1},closeOnClickModal:{type:Boolean,"default":!1}},beforeMount:function(){this._popupId="popup-"+l++,i["default"].register(this._popupId,this)},beforeDestroy:function(){i["default"].deregister(this._popupId),i["default"].closeModal(this._popupId),this.restoreBodyStyle()},data:function(){return{opened:!1,bodyPaddingRight:null,computedBodyPaddingRight:0,withoutHiddenClass:!0,rendered:!1}},watch:{visible:function(e){var t=this;if(e){if(this._opening)return;this.rendered?this.open():(this.rendered=!0,r["default"].nextTick(function(){t.open()}))}else this.close()}},methods:{open:function(e){var t=this;this.rendered||(this.rendered=!0);var n=(0,o["default"])({},this.$props||this,e);this._closeTimer&&(clearTimeout(this._closeTimer),this._closeTimer=null),clearTimeout(this._openTimer);var r=Number(n.openDelay);r>0?this._openTimer=setTimeout(function(){t._openTimer=null,t.doOpen(n)},r):this.doOpen(n)},doOpen:function(e){if(!this.$isServer&&(!this.willOpen||this.willOpen())&&!this.opened){this._opening=!0;var t=this.$el,n=e.modal,r=e.zIndex;if(r&&(i["default"].zIndex=r),n&&(this._closing&&(i["default"].closeModal(this._popupId),this._closing=!1),i["default"].openModal(this._popupId,i["default"].nextZIndex(),this.modalAppendToBody?undefined:t,e.modalClass,e.modalFade),e.lockScroll)){this.withoutHiddenClass=!(0,a.hasClass)(document.body,"el-popup-parent--hidden"),this.withoutHiddenClass&&(this.bodyPaddingRight=document.body.style.paddingRight,this.computedBodyPaddingRight=parseInt((0,a.getStyle)(document.body,"paddingRight"),10)),u=(0,s["default"])();var o=document.documentElement.clientHeight<document.body.scrollHeight,c=(0,a.getStyle)(document.body,"overflowY");u>0&&(o||"scroll"===c)&&this.withoutHiddenClass&&(document.body.style.paddingRight=this.computedBodyPaddingRight+u+"px"),(0,a.addClass)(document.body,"el-popup-parent--hidden")}"static"===getComputedStyle(t).position&&(t.style.position="absolute"),t.style.zIndex=i["default"].nextZIndex(),this.opened=!0,this.onOpen&&this.onOpen(),this.doAfterOpen()}},doAfterOpen:function(){this._opening=!1},close:function(){var e=this;if(!this.willClose||this.willClose()){null!==this._openTimer&&(clearTimeout(this._openTimer),this._openTimer=null),clearTimeout(this._closeTimer);var t=Number(this.closeDelay);t>0?this._closeTimer=setTimeout(function(){e._closeTimer=null,e.doClose()},t):this.doClose()}},doClose:function(){this._closing=!0,this.onClose&&this.onClose(),this.lockScroll&&setTimeout(this.restoreBodyStyle,200),this.opened=!1,this.doAfterClose()},doAfterClose:function(){i["default"].closeModal(this._popupId),this._closing=!1},restoreBodyStyle:function(){this.modal&&this.withoutHiddenClass&&(document.body.style.paddingRight=this.bodyPaddingRight,(0,a.removeClass)(document.body,"el-popup-parent--hidden")),this.withoutHiddenClass=!0}}},t.PopupManager=i["default"]},1820:function(e,t,n){"use strict";t.__esModule=!0;var r,o=n(1058),i=(r=o)&&r.__esModule?r:{"default":r},s=n(1861),a=!1,c=!1,l=void 0,u=function(){if(!i["default"].prototype.$isServer){var e=h.modalDom;return e?a=!0:(a=!1,e=document.createElement("div"),h.modalDom=e,e.addEventListener("touchmove",function(e){e.preventDefault(),e.stopPropagation()}),e.addEventListener("click",function(){h.doOnModalClick&&h.doOnModalClick()})),e}},d={},h={modalFade:!0,getInstance:function(e){return d[e]},register:function(e,t){e&&t&&(d[e]=t)},deregister:function(e){e&&(d[e]=null,delete d[e])},nextZIndex:function(){return h.zIndex++},modalStack:[],doOnModalClick:function(){var e=h.modalStack[h.modalStack.length-1];if(e){var t=h.getInstance(e.id);t&&t.closeOnClickModal&&t.close()}},openModal:function(e,t,n,r,o){if(!i["default"].prototype.$isServer&&e&&t!==undefined){this.modalFade=o;for(var c=this.modalStack,l=0,d=c.length;l<d;l++)if(c[l].id===e)return;var h=u();(0,s.addClass)(h,"v-modal"),this.modalFade&&!a&&(0,s.addClass)(h,"v-modal-enter"),r&&r.trim().split(/\s+/).forEach(function(e){return(0,s.addClass)(h,e)}),setTimeout(function(){(0,s.removeClass)(h,"v-modal-enter")},200),n&&n.parentNode&&11!==n.parentNode.nodeType?n.parentNode.appendChild(h):document.body.appendChild(h),t&&(h.style.zIndex=t),h.tabIndex=0,h.style.display="",this.modalStack.push({id:e,zIndex:t,modalClass:r})}},closeModal:function(e){var t=this.modalStack,n=u();if(t.length>0){var r=t[t.length-1];if(r.id===e)r.modalClass&&r.modalClass.trim().split(/\s+/).forEach(function(e){return(0,s.removeClass)(n,e)}),t.pop(),t.length>0&&(n.style.zIndex=t[t.length-1].zIndex);else for(var o=t.length-1;o>=0;o--)if(t[o].id===e){t.splice(o,1);break}}0===t.length&&(this.modalFade&&(0,s.addClass)(n,"v-modal-leave"),setTimeout(function(){0===t.length&&(n.parentNode&&n.parentNode.removeChild(n),n.style.display="none",h.modalDom=undefined),(0,s.removeClass)(n,"v-modal-leave")},200))}};Object.defineProperty(h,"zIndex",{configurable:!0,get:function(){return c||(l=l||(i["default"].prototype.$ELEMENT||{}).zIndex||2e3,c=!0),l},set:function(e){l=e}}),i["default"].prototype.$isServer||window.addEventListener("keydown",function(e){if(27===e.keyCode){var t=function(){if(!i["default"].prototype.$isServer&&h.modalStack.length>0){var e=h.modalStack[h.modalStack.length-1];if(!e)return;return h.getInstance(e.id)}}();t&&t.closeOnPressEscape&&(t.handleClose?t.handleClose():t.handleAction?t.handleAction("cancel"):t.close())}}),t["default"]=h},4698:function(e,t,n){"use strict";t.__esModule=!0,t["default"]=function(){if(i["default"].prototype.$isServer)return 0;if(s!==undefined)return s;var e=document.createElement("div");e.className="el-scrollbar__wrap",e.style.visibility="hidden",e.style.width="100px",e.style.position="absolute",e.style.top="-9999px",document.body.appendChild(e);var t=e.offsetWidth;e.style.overflow="scroll";var n=document.createElement("div");n.style.width="100%",e.appendChild(n);var r=n.offsetWidth;return e.parentNode.removeChild(e),s=t-r};var r,o=n(1058),i=(r=o)&&r.__esModule?r:{"default":r},s=void 0},5088:function(e,t){"use strict";t.__esModule=!0,t.isDef=function(e){return e!==undefined&&null!==e},t.isKorean=function(e){return/([(\uAC00-\uD7AF)|(\u3130-\u318F)])+/gi.test(e)}},5892:function(e,t,n){"use strict";t.__esModule=!0,t.isDefined=t.isUndefined=t.isFunction=undefined;var r="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};t.isString=function(e){return"[object String]"===Object.prototype.toString.call(e)},t.isObject=function(e){return"[object Object]"===Object.prototype.toString.call(e)},t.isHtmlElement=function(e){return e&&e.nodeType===Node.ELEMENT_NODE};var o,i=n(1058),s=(o=i)&&o.__esModule?o:{"default":o},a=function(e){return e&&"[object Function]"==={}.toString.call(e)};"object"===("undefined"==typeof Int8Array?"undefined":r(Int8Array))||!s["default"].prototype.$isServer&&"function"==typeof document.childNodes||(t.isFunction=a=function(e){return"function"==typeof e||!1}),t.isFunction=a,t.isUndefined=function(e){return void 0===e},t.isDefined=function(e){return e!==undefined&&null!==e}},4669:function(e,t,n){"use strict";t.__esModule=!0,t.isMac=t.isEmpty=t.isEqual=t.arrayEquals=t.looseEqual=t.capitalize=t.kebabCase=t.autoprefixer=t.isFirefox=t.isEdge=t.isIE=t.coerceTruthyValueToArray=t.arrayFind=t.arrayFindIndex=t.escapeRegexpString=t.valueEquals=t.generateId=t.getValueByPath=undefined;var r="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};t.noop=function(){},t.hasOwn=function(e,t){return c.call(e,t)},t.toObject=function(e){for(var t={},n=0;n<e.length;n++)e[n]&&l(t,e[n]);return t},t.getPropByPath=function(e,t,n){for(var r=e,o=(t=(t=t.replace(/\[(\w+)\]/g,".$1")).replace(/^\./,"")).split("."),i=0,s=o.length;i<s-1&&(r||n);++i){var a=o[i];if(!(a in r)){if(n)throw new Error("please transfer a valid prop path to form item!");break}r=r[a]}return{o:r,k:o[i],v:r?r[o[i]]:null}},t.rafThrottle=function(e){var t=!1;return function(){for(var n=this,r=arguments.length,o=Array(r),i=0;i<r;i++)o[i]=arguments[i];t||(t=!0,window.requestAnimationFrame(function(r){e.apply(n,o),t=!1}))}},t.objToArray=function(e){return Array.isArray(e)?e:p(e)?[]:[e]};var o,i=n(1058),s=(o=i)&&o.__esModule?o:{"default":o},a=n(5892),c=Object.prototype.hasOwnProperty;function l(e,t){for(var n in t)e[n]=t[n];return e}t.getValueByPath=function(e,t){for(var n=(t=t||"").split("."),r=e,o=null,i=0,s=n.length;i<s;i++){var a=n[i];if(!r)break;if(i===s-1){o=r[a];break}r=r[a]}return o},t.generateId=function(){return Math.floor(1e4*Math.random())},t.valueEquals=function(e,t){if(e===t)return!0;if(!(e instanceof Array))return!1;if(!(t instanceof Array))return!1;if(e.length!==t.length)return!1;for(var n=0;n!==e.length;++n)if(e[n]!==t[n])return!1;return!0},t.escapeRegexpString=function(){var e=arguments.length>0&&arguments[0]!==undefined?arguments[0]:"";return String(e).replace(/[|\\{}()[\]^$+*?.]/g,"\\$&")};var u=t.arrayFindIndex=function(e,t){for(var n=0;n!==e.length;++n)if(t(e[n]))return n;return-1},d=(t.arrayFind=function(e,t){var n=u(e,t);return-1!==n?e[n]:undefined},t.coerceTruthyValueToArray=function(e){return Array.isArray(e)?e:e?[e]:[]},t.isIE=function(){return!s["default"].prototype.$isServer&&!isNaN(Number(document.documentMode))},t.isEdge=function(){return!s["default"].prototype.$isServer&&navigator.userAgent.indexOf("Edge")>-1},t.isFirefox=function(){return!s["default"].prototype.$isServer&&!!window.navigator.userAgent.match(/firefox/i)},t.autoprefixer=function(e){if("object"!==(void 0===e?"undefined":r(e)))return e;var t=["ms-","webkit-"];return["transform","transition","animation"].forEach(function(n){var r=e[n];n&&r&&t.forEach(function(t){e[t+n]=r})}),e},t.kebabCase=function(e){var t=/([^-])([A-Z])/g;return e.replace(t,"$1-$2").replace(t,"$1-$2").toLowerCase()},t.capitalize=function(e){return(0,a.isString)(e)?e.charAt(0).toUpperCase()+e.slice(1):e},t.looseEqual=function(e,t){var n=(0,a.isObject)(e),r=(0,a.isObject)(t);return n&&r?JSON.stringify(e)===JSON.stringify(t):!n&&!r&&String(e)===String(t)}),h=t.arrayEquals=function(e,t){if(t=t||[],(e=e||[]).length!==t.length)return!1;for(var n=0;n<e.length;n++)if(!d(e[n],t[n]))return!1;return!0},p=(t.isEqual=function(e,t){return Array.isArray(e)&&Array.isArray(t)?h(e,t):d(e,t)},t.isEmpty=function(e){if(null==e)return!0;if("boolean"==typeof e)return!1;if("number"==typeof e)return!e;if(e instanceof Error)return""===e.message;switch(Object.prototype.toString.call(e)){case"[object String]":case"[object Array]":return!e.length;case"[object File]":case"[object Map]":case"[object Set]":return!e.size;case"[object Object]":return!Object.keys(e).length}return!1});t.isMac=function(){return!s["default"].prototype.$isServer&&/macintosh|mac os x/i.test(navigator.userAgent)}},6041:function(e,t,n){"use strict";var r=n(6553)["default"];Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=void 0;var o=r(n(1058)),i=n(5916);const s=[],a="@@clickoutsideContext";let c,l=0;function u(e,t,n){return function(r={},o={}){!(n&&n.context&&r.target&&o.target)||e.contains(r.target)||e.contains(o.target)||e===r.target||n.context.popperElm&&(n.context.popperElm.contains(r.target)||n.context.popperElm.contains(o.target))||(t.expression&&e[a].methodName&&n.context[e[a].methodName]?n.context[e[a].methodName]():e[a].bindingFn&&e[a].bindingFn())}}!o["default"].prototype.$isServer&&(0,i.on)(document,"mousedown",e=>c=e),!o["default"].prototype.$isServer&&(0,i.on)(document,"mouseup",e=>{s.forEach(t=>t[a].documentHandler(e,c))}),t["default"]={bind(e,t,n){s.push(e);const r=l++;e[a]={id:r,documentHandler:u(e,t,n),methodName:t.expression,bindingFn:t.value}},update(e,t,n){e[a].documentHandler=u(e,t,n),e[a].methodName=t.expression,e[a].bindingFn=t.value},unbind(e){let t=s.length;for(let n=0;n<t;n++)if(s[n][a].id===e[a].id){s.splice(n,1);break}delete e[a]}}},5916:function(e,t,n){"use strict";var r=n(6553)["default"];Object.defineProperty(t,"__esModule",{value:!0}),t.addClass=function(e,t){if(e){for(var n=e.className,r=(t||"").split(" "),o=0,i=r.length;o<i;o++){var s=r[o];s&&(e.classList?e.classList.add(s):h(e,s)||(n+=" "+s))}e.classList||e.setAttribute("class",n)}},t.getStyle=t.getScrollContainer=void 0,t.hasClass=h,t.once=t.on=t.off=t.isScroll=t.isInContainer=void 0,t.removeClass=function(e,t){if(e&&t){for(var n=t.split(" "),r=" "+e.className+" ",o=0,i=n.length;o<i;o++){var s=n[o];s&&(e.classList?e.classList.remove(s):h(e,s)&&(r=r.replace(" "+s+" "," ")))}e.classList||e.setAttribute("class",c(r))}},t.setStyle=function m(e,t,n){if(e&&t)if("object"==typeof t)for(var r in t)t.hasOwnProperty(r)&&m(e,r,t[r]);else"opacity"===(t=l(t))&&a<9?e.style.filter=isNaN(n)?"":"alpha(opacity="+100*n+")":e.style[t]=n};const o=r(n(1058))["default"].prototype.$isServer,i=/([\:\-\_]+(.))/g,s=/^moz([A-Z])/,a=o?0:Number(document.documentMode),c=function(e){return(e||"").replace(/^[\s\uFEFF]+|[\s\uFEFF]+$/g,"")},l=function(e){return e.replace(i,function(e,t,n,r){return r?n.toUpperCase():n}).replace(s,"Moz$1")},u=t.on=!o&&document.addEventListener?function(e,t,n){e&&t&&n&&e.addEventListener(t,n,!1)}:function(e,t,n){e&&t&&n&&e.attachEvent("on"+t,n)},d=t.off=!o&&document.removeEventListener?function(e,t,n){e&&t&&e.removeEventListener(t,n,!1)}:function(e,t,n){e&&t&&e.detachEvent("on"+t,n)};function h(e,t){if(!e||!t)return!1;if(-1!==t.indexOf(" "))throw new Error("className should not contain space.");return e.classList?e.classList.contains(t):(" "+e.className+" ").indexOf(" "+t+" ")>-1}t.once=function(e,t,n){var r=function(){n&&n.apply(this,arguments),d(e,t,r)};u(e,t,r)};const p=t.getStyle=a<9?function(e,t){if(!o){if(!e||!t)return null;"float"===(t=l(t))&&(t="styleFloat");try{if("opacity"===t)try{return e.filters.item("alpha").opacity/100}catch(n){return 1}return e.style[t]||e.currentStyle?e.currentStyle[t]:null}catch(n){return e.style[t]}}}:function(e,t){if(!o){if(!e||!t)return null;"float"===(t=l(t))&&(t="cssFloat");try{var n=document.defaultView.getComputedStyle(e,"");return e.style[t]||n?n[t]:null}catch(r){return e.style[t]}}},f=(e,t)=>{if(o)return;const n=null!==t&&t!==undefined;return p(e,n?t?"overflow-y":"overflow-x":"overflow").match(/(scroll|auto|overlay)/)};t.isScroll=f,t.getScrollContainer=(e,t)=>{if(o)return;let n=e;for(;n;){if([window,document,document.documentElement].includes(n))return window;if(f(n,t))return n;n=n.parentNode}return n},t.isInContainer=(e,t)=>{if(o||!e||!t)return!1;const n=e.getBoundingClientRect();let r;return r=[window,document,document.documentElement,null,undefined].includes(t)?{top:0,right:window.innerWidth,bottom:window.innerHeight,left:0}:t.getBoundingClientRect(),n.top<r.bottom&&n.bottom>r.top&&n.right>r.left&&n.left<r.right}},560:function(e,t){"use strict";function n(e){this.message=e}Object.defineProperty(t,"__esModule",{value:!0}),t.InvalidTokenError=i,t["default"]=void 0,n.prototype=new Error,n.prototype.name="InvalidCharacterError";var r="undefined"!=typeof window&&window.atob&&window.atob.bind(window)||function(e){var t=String(e).replace(/=+$/,"");if(t.length%4==1)throw new n("'atob' failed: The string to be decoded is not correctly encoded.");for(var r,o,i=0,s=0,a="";o=t.charAt(s++);~o&&(r=i%4?64*r+o:o,i++%4)?a+=String.fromCharCode(255&r>>(-2*i&6)):0)o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(o);return a};function o(e){var t=e.replace(/-/g,"+").replace(/_/g,"/");switch(t.length%4){case 0:break;case 2:t+="==";break;case 3:t+="=";break;default:throw"Illegal base64url string!"}try{return function(e){return decodeURIComponent(r(e).replace(/(.)/g,function(e,t){var n=t.charCodeAt(0).toString(16).toUpperCase();return n.length<2&&(n="0"+n),"%"+n}))}(t)}catch(e){return r(t)}}function i(e){this.message=e}i.prototype=new Error,i.prototype.name="InvalidTokenError",t["default"]=function(e,t){if("string"!=typeof e)throw new i("Invalid token specified");var n=!0===(t=t||{}).header?0:1;try{return JSON.parse(o(e.split(".")[n]))}catch(e){throw new i("Invalid token specified: "+e.message)}}},9670:function(){"use strict";!function(){if("undefined"!=typeof Prism&&"undefined"!=typeof document){var e={javascript:"clike",actionscript:"javascript",apex:["clike","sql"],arduino:"cpp",aspnet:["markup","csharp"],birb:"clike",bison:"c",c:"clike",csharp:"clike",cpp:"c",cfscript:"clike",chaiscript:["clike","cpp"],cilkc:"c",cilkcpp:"cpp",coffeescript:"javascript",crystal:"ruby","css-extras":"css",d:"clike",dart:"clike",django:"markup-templating",ejs:["javascript","markup-templating"],etlua:["lua","markup-templating"],erb:["ruby","markup-templating"],fsharp:"clike","firestore-security-rules":"clike",flow:"javascript",ftl:"markup-templating",gml:"clike",glsl:"c",go:"clike",gradle:"clike",groovy:"clike",haml:"ruby",handlebars:"markup-templating",haxe:"clike",hlsl:"c",idris:"haskell",java:"clike",javadoc:["markup","java","javadoclike"],jolie:"clike",jsdoc:["javascript","javadoclike","typescript"],"js-extras":"javascript",json5:"json",jsonp:"json","js-templates":"javascript",kotlin:"clike",latte:["clike","markup-templating","php"],less:"css",lilypond:"scheme",liquid:"markup-templating",markdown:"markup","markup-templating":"markup",mongodb:"javascript",n4js:"javascript",objectivec:"c",opencl:"c",parser:"markup",php:"markup-templating",phpdoc:["php","javadoclike"],"php-extras":"php",plsql:"sql",processing:"clike",protobuf:"clike",pug:["markup","javascript"],purebasic:"clike",purescript:"haskell",qsharp:"clike",qml:"javascript",qore:"clike",racket:"scheme",cshtml:["markup","csharp"],jsx:["markup","javascript"],tsx:["jsx","typescript"],reason:"clike",ruby:"clike",sass:"css",scss:"css",scala:"java","shell-session":"bash",smarty:"markup-templating",solidity:"clike",soy:"markup-templating",sparql:"turtle",sqf:"clike",squirrel:"clike",stata:["mata","java","python"],"t4-cs":["t4-templating","csharp"],"t4-vb":["t4-templating","vbnet"],tap:"yaml",tt2:["clike","markup-templating"],textile:"markup",twig:"markup-templating",typescript:"javascript",v:"clike",vala:"clike",vbnet:"basic",velocity:"markup",wiki:"markup",xeora:"markup","xml-doc":"markup",xquery:"markup"},t={html:"markup",xml:"markup",svg:"markup",mathml:"markup",ssml:"markup",atom:"markup",rss:"markup",js:"javascript",g4:"antlr4",ino:"arduino","arm-asm":"armasm",art:"arturo",adoc:"asciidoc",avs:"avisynth",avdl:"avro-idl",gawk:"awk",sh:"bash",shell:"bash",shortcode:"bbcode",rbnf:"bnf",oscript:"bsl",cs:"csharp",dotnet:"csharp",cfc:"cfscript","cilk-c":"cilkc","cilk-cpp":"cilkcpp",cilk:"cilkcpp",coffee:"coffeescript",conc:"concurnas",jinja2:"django","dns-zone":"dns-zone-file",dockerfile:"docker",gv:"dot",eta:"ejs",xlsx:"excel-formula",xls:"excel-formula",gamemakerlanguage:"gml",po:"gettext",gni:"gn",ld:"linker-script","go-mod":"go-module",hbs:"handlebars",mustache:"handlebars",hs:"haskell",idr:"idris",gitignore:"ignore",hgignore:"ignore",npmignore:"ignore",webmanifest:"json",kt:"kotlin",kts:"kotlin",kum:"kumir",tex:"latex",context:"latex",ly:"lilypond",emacs:"lisp",elisp:"lisp","emacs-lisp":"lisp",md:"markdown",moon:"moonscript",n4jsd:"n4js",nani:"naniscript",objc:"objectivec",qasm:"openqasm",objectpascal:"pascal",px:"pcaxis",pcode:"peoplecode",plantuml:"plant-uml",pq:"powerquery",mscript:"powerquery",pbfasm:"purebasic",purs:"purescript",py:"python",qs:"qsharp",rkt:"racket",razor:"cshtml",rpy:"renpy",res:"rescript",robot:"robotframework",rb:"ruby","sh-session":"shell-session",shellsession:"shell-session",smlnj:"sml",sol:"solidity",sln:"solution-file",rq:"sparql",sclang:"supercollider",t4:"t4-cs",trickle:"tremor",troy:"tremor",trig:"turtle",ts:"typescript",tsconfig:"typoscript",uscript:"unrealscript",uc:"unrealscript",url:"uri",vb:"visual-basic",vba:"visual-basic",webidl:"web-idl",mathematica:"wolfram",nb:"wolfram",wl:"wolfram",xeoracube:"xeora",yml:"yaml"},n={},r="components/",o=Prism.util.currentScript();if(o){var i=/\bplugins\/autoloader\/prism-autoloader\.(?:min\.)?js(?:\?[^\r\n/]*)?$/i,s=/(^|\/)[\w-]+\.(?:min\.)?js(?:\?[^\r\n/]*)?$/i,a=o.getAttribute("data-autoloader-path");if(null!=a)r=a.trim().replace(/\/?$/,"/");else{var c=o.src;i.test(c)?r=c.replace(i,"components/"):s.test(c)&&(r=c.replace(s,"$1components/"))}}var l=Prism.plugins.autoloader={languages_path:r,use_minified:!0,loadLanguages:d};Prism.hooks.add("complete",function(e){var t=e.element,n=e.language;if(t&&n&&"none"!==n){var r=function(e){var t=(e.getAttribute("data-dependencies")||"").trim();if(!t){var n=e.parentElement;n&&"pre"===n.tagName.toLowerCase()&&(t=(n.getAttribute("data-dependencies")||"").trim())}return t?t.split(/\s*,\s*/g):[]}(t);/^diff-./i.test(n)?(r.push("diff"),r.push(n.substr(5))):r.push(n),r.every(u)||d(r,function(){Prism.highlightElement(t)})}})}function u(e){if(e.indexOf("!")>=0)return!1;if((e=t[e]||e)in Prism.languages)return!0;var r=n[e];return r&&!r.error&&!1===r.loading}function d(r,o,i){"string"==typeof r&&(r=[r]);var s=r.length,a=0,c=!1;function p(){c||++a===s&&o&&o(r)}0!==s?r.forEach(function(r){!function(r,o,i){var s=r.indexOf("!")>=0;function a(){var e=n[r];e||(e=n[r]={callbacks:[]}),e.callbacks.push({success:o,error:i}),!s&&u(r)?h(r,"success"):!s&&e.error?h(r,"error"):!s&&e.loading||(e.loading=!0,e.error=!1,function(e,t,n){var r=document.createElement("script");r.src=e,r.async=!0,r.onload=function(){document.body.removeChild(r),t&&t()},r.onerror=function(){document.body.removeChild(r),n&&n()},document.body.appendChild(r)}(function(e){return l.languages_path+"prism-"+e+(l.use_minified?".min":"")+".js"}(r),function(){e.loading=!1,h(r,"success")},function(){e.loading=!1,e.error=!0,h(r,"error")}))}r=r.replace("!","");var c=e[r=t[r]||r];c&&c.length?d(c,a,i):a()}(r,p,function(){c||(c=!0,i&&i(r))})}):o&&setTimeout(o,0)}function h(e,t){if(n[e]){for(var r=n[e].callbacks,o=0,i=r.length;o<i;o++){var s=r[o][t];s&&setTimeout(s,0)}r.length=0}}}()},9092:function(){"use strict";!function(){function e(e,n){e.addEventListener("click",function(){!function(e){navigator.clipboard?navigator.clipboard.writeText(e.getText()).then(e.success,function(){t(e)}):t(e)}(n)})}function t(e){var t=document.createElement("textarea");t.value=e.getText(),t.style.top="0",t.style.left="0",t.style.position="fixed",document.body.appendChild(t),t.focus(),t.select();try{var n=document.execCommand("copy");setTimeout(function(){n?e.success():e.error()},1)}catch(r){setTimeout(function(){e.error(r)},1)}document.body.removeChild(t)}"undefined"!=typeof Prism&&"undefined"!=typeof document&&(Prism.plugins.toolbar?Prism.plugins.toolbar.registerButton("copy-to-clipboard",function(t){var n=t.element,r=function(e){var t={copy:"Copy","copy-error":"Press Ctrl+C to copy","copy-success":"Copied!","copy-timeout":5e3};for(var n in t){for(var r="data-prismjs-"+n,o=e;o&&!o.hasAttribute(r);)o=o.parentElement;o&&(t[n]=o.getAttribute(r))}return t}(n),o=document.createElement("button");o.className="copy-to-clipboard-button",o.setAttribute("type","button");var i=document.createElement("span");return o.appendChild(i),a("copy"),e(o,{getText:function(){return n.textContent},success:function(){a("copy-success"),s()},error:function(){a("copy-error"),setTimeout(function(){!function(e){window.getSelection().selectAllChildren(e)}(n)},1),s()}}),o;function s(){setTimeout(function(){a("copy")},r["copy-timeout"])}function a(e){i.textContent=r[e],o.setAttribute("data-copy-state",e)}}):console.warn("Copy to Clipboard plugin loaded before Toolbar plugin."))}()},3020:function(){"use strict";!function(){if("undefined"!=typeof Prism&&"undefined"!=typeof document)if(Prism.plugins.toolbar){var e={none:"Plain text",plain:"Plain text",plaintext:"Plain text",text:"Plain text",txt:"Plain text",html:"HTML",xml:"XML",svg:"SVG",mathml:"MathML",ssml:"SSML",rss:"RSS",css:"CSS",clike:"C-like",js:"JavaScript",abap:"ABAP",abnf:"ABNF",al:"AL",antlr4:"ANTLR4",g4:"ANTLR4",apacheconf:"Apache Configuration",apl:"APL",aql:"AQL",ino:"Arduino",arff:"ARFF",armasm:"ARM Assembly","arm-asm":"ARM Assembly",art:"Arturo",asciidoc:"AsciiDoc",adoc:"AsciiDoc",aspnet:"ASP.NET (C#)",asm6502:"6502 Assembly",asmatmel:"Atmel AVR Assembly",autohotkey:"AutoHotkey",autoit:"AutoIt",avisynth:"AviSynth",avs:"AviSynth","avro-idl":"Avro IDL",avdl:"Avro IDL",awk:"AWK",gawk:"GAWK",sh:"Shell",basic:"BASIC",bbcode:"BBcode",bbj:"BBj",bnf:"BNF",rbnf:"RBNF",bqn:"BQN",bsl:"BSL (1C:Enterprise)",oscript:"OneScript",csharp:"C#",cs:"C#",dotnet:"C#",cpp:"C++",cfscript:"CFScript",cfc:"CFScript",cil:"CIL",cilkc:"Cilk/C","cilk-c":"Cilk/C",cilkcpp:"Cilk/C++","cilk-cpp":"Cilk/C++",cilk:"Cilk/C++",cmake:"CMake",cobol:"COBOL",coffee:"CoffeeScript",conc:"Concurnas",csp:"Content-Security-Policy","css-extras":"CSS Extras",csv:"CSV",cue:"CUE",dataweave:"DataWeave",dax:"DAX",django:"Django/Jinja2",jinja2:"Django/Jinja2","dns-zone-file":"DNS zone file","dns-zone":"DNS zone file",dockerfile:"Docker",dot:"DOT (Graphviz)",gv:"DOT (Graphviz)",ebnf:"EBNF",editorconfig:"EditorConfig",ejs:"EJS",etlua:"Embedded Lua templating",erb:"ERB","excel-formula":"Excel Formula",xlsx:"Excel Formula",xls:"Excel Formula",fsharp:"F#","firestore-security-rules":"Firestore security rules",ftl:"FreeMarker Template Language",gml:"GameMaker Language",gamemakerlanguage:"GameMaker Language",gap:"GAP (CAS)",gcode:"G-code",gdscript:"GDScript",gedcom:"GEDCOM",gettext:"gettext",po:"gettext",glsl:"GLSL",gn:"GN",gni:"GN","linker-script":"GNU Linker Script",ld:"GNU Linker Script","go-module":"Go module","go-mod":"Go module",graphql:"GraphQL",hbs:"Handlebars",hs:"Haskell",hcl:"HCL",hlsl:"HLSL",http:"HTTP",hpkp:"HTTP Public-Key-Pins",hsts:"HTTP Strict-Transport-Security",ichigojam:"IchigoJam","icu-message-format":"ICU Message Format",idr:"Idris",ignore:".ignore",gitignore:".gitignore",hgignore:".hgignore",npmignore:".npmignore",inform7:"Inform 7",javadoc:"JavaDoc",javadoclike:"JavaDoc-like",javastacktrace:"Java stack trace",jq:"JQ",jsdoc:"JSDoc","js-extras":"JS Extras",json:"JSON",webmanifest:"Web App Manifest",json5:"JSON5",jsonp:"JSONP",jsstacktrace:"JS stack trace","js-templates":"JS Templates",keepalived:"Keepalived Configure",kts:"Kotlin Script",kt:"Kotlin",kumir:"KuMir (КуМир)",kum:"KuMir (КуМир)",latex:"LaTeX",tex:"TeX",context:"ConTeXt",lilypond:"LilyPond",ly:"LilyPond",emacs:"Lisp",elisp:"Lisp","emacs-lisp":"Lisp",llvm:"LLVM IR",log:"Log file",lolcode:"LOLCODE",magma:"Magma (CAS)",md:"Markdown","markup-templating":"Markup templating",matlab:"MATLAB",maxscript:"MAXScript",mel:"MEL",metafont:"METAFONT",mongodb:"MongoDB",moon:"MoonScript",n1ql:"N1QL",n4js:"N4JS",n4jsd:"N4JS","nand2tetris-hdl":"Nand To Tetris HDL",naniscript:"Naninovel Script",nani:"Naninovel Script",nasm:"NASM",neon:"NEON",nginx:"nginx",nsis:"NSIS",objectivec:"Objective-C",objc:"Objective-C",ocaml:"OCaml",opencl:"OpenCL",openqasm:"OpenQasm",qasm:"OpenQasm",parigp:"PARI/GP",objectpascal:"Object Pascal",psl:"PATROL Scripting Language",pcaxis:"PC-Axis",px:"PC-Axis",peoplecode:"PeopleCode",pcode:"PeopleCode",php:"PHP",phpdoc:"PHPDoc","php-extras":"PHP Extras","plant-uml":"PlantUML",plantuml:"PlantUML",plsql:"PL/SQL",powerquery:"PowerQuery",pq:"PowerQuery",mscript:"PowerQuery",powershell:"PowerShell",promql:"PromQL",properties:".properties",protobuf:"Protocol Buffers",purebasic:"PureBasic",pbfasm:"PureBasic",purs:"PureScript",py:"Python",qsharp:"Q#",qs:"Q#",q:"Q (kdb+ database)",qml:"QML",rkt:"Racket",cshtml:"Razor C#",razor:"Razor C#",jsx:"React JSX",tsx:"React TSX",renpy:"Ren'py",rpy:"Ren'py",res:"ReScript",rest:"reST (reStructuredText)",robotframework:"Robot Framework",robot:"Robot Framework",rb:"Ruby",sas:"SAS",sass:"Sass (Sass)",scss:"Sass (SCSS)","shell-session":"Shell session","sh-session":"Shell session",shellsession:"Shell session",sml:"SML",smlnj:"SML/NJ",solidity:"Solidity (Ethereum)",sol:"Solidity (Ethereum)","solution-file":"Solution file",sln:"Solution file",soy:"Soy (Closure Template)",sparql:"SPARQL",rq:"SPARQL","splunk-spl":"Splunk SPL",sqf:"SQF: Status Quo Function (Arma 3)",sql:"SQL",stata:"Stata Ado",iecst:"Structured Text (IEC 61131-3)",supercollider:"SuperCollider",sclang:"SuperCollider",systemd:"Systemd configuration file","t4-templating":"T4 templating","t4-cs":"T4 Text Templates (C#)",t4:"T4 Text Templates (C#)","t4-vb":"T4 Text Templates (VB)",tap:"TAP",tt2:"Template Toolkit 2",toml:"TOML",trickle:"trickle",troy:"troy",trig:"TriG",ts:"TypeScript",tsconfig:"TSConfig",uscript:"UnrealScript",uc:"UnrealScript",uorazor:"UO Razor Script",uri:"URI",url:"URL",vbnet:"VB.Net",vhdl:"VHDL",vim:"vim","visual-basic":"Visual Basic",vba:"VBA",vb:"Visual Basic",wasm:"WebAssembly","web-idl":"Web IDL",webidl:"Web IDL",wgsl:"WGSL",wiki:"Wiki markup",wolfram:"Wolfram language",nb:"Mathematica Notebook",wl:"Wolfram language",xeoracube:"XeoraCube","xml-doc":"XML doc (.net)",xojo:"Xojo (REALbasic)",xquery:"XQuery",yaml:"YAML",yml:"YAML",yang:"YANG"};Prism.plugins.toolbar.registerButton("show-language",function(t){var n=t.element.parentNode;if(n&&/pre/i.test(n.nodeName)){var r,o=n.getAttribute("data-language")||e[t.language]||((r=t.language)?(r.substring(0,1).toUpperCase()+r.substring(1)).replace(/s(?=cript)/,"S"):r);if(o){var i=document.createElement("span");return i.textContent=o,i}}})}else console.warn("Show Languages plugin loaded before Toolbar plugin.")}()},5900:function(){"use strict";!function(){if("undefined"!=typeof Prism&&"undefined"!=typeof document){var e=[],t={},n=function(){};Prism.plugins.toolbar={};var r=Prism.plugins.toolbar.registerButton=function(n,r){var o;o="function"==typeof r?r:function(e){var t;return"function"==typeof r.onClick?((t=document.createElement("button")).type="button",t.addEventListener("click",function(){r.onClick.call(this,e)})):"string"==typeof r.url?(t=document.createElement("a")).href=r.url:t=document.createElement("span"),r.className&&t.classList.add(r.className),t.textContent=r.text,t},n in t?console.warn('There is a button with the key "'+n+'" registered already.'):e.push(t[n]=o)},o=Prism.plugins.toolbar.hook=function(r){var o=r.element.parentNode;if(o&&/pre/i.test(o.nodeName)&&!o.parentNode.classList.contains("code-toolbar")){var i=document.createElement("div");i.classList.add("code-toolbar"),o.parentNode.insertBefore(i,o),i.appendChild(o);var s=document.createElement("div");s.classList.add("toolbar");var a=e,c=function(e){for(;e;){var t=e.getAttribute("data-toolbar-order");if(null!=t)return(t=t.trim()).length?t.split(/\s*,\s*/g):[];e=e.parentElement}}(r.element);c&&(a=c.map(function(e){return t[e]||n})),a.forEach(function(e){var t=e(r);if(t){var n=document.createElement("div");n.classList.add("toolbar-item"),n.appendChild(t),s.appendChild(n)}}),i.appendChild(s)}};r("label",function(e){var t=e.element.parentNode;if(t&&/pre/i.test(t.nodeName)&&t.hasAttribute("data-label")){var n,r,o=t.getAttribute("data-label");try{r=document.querySelector("template#"+o)}catch(i){}return r?n=r.content:(t.hasAttribute("data-url")?(n=document.createElement("a")).href=t.getAttribute("data-url"):n=document.createElement("span"),n.textContent=o),n}}),Prism.hooks.add("complete",o)}}()},6665:function(e,t,n){"use strict";var r=function(e){var t=/(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i,n=0,r={},o={manual:e.Prism&&e.Prism.manual,disableWorkerMessageHandler:e.Prism&&e.Prism.disableWorkerMessageHandler,util:{encode:function f(e){return e instanceof i?new i(e.type,f(e.content),e.alias):Array.isArray(e)?e.map(f):e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/\u00a0/g," ")},type:function(e){return Object.prototype.toString.call(e).slice(8,-1)},objId:function(e){return e.__id||Object.defineProperty(e,"__id",{value:++n}),e.__id},clone:function m(e,t){var n,r;switch(t=t||{},o.util.type(e)){case"Object":if(r=o.util.objId(e),t[r])return t[r];for(var i in n={},t[r]=n,e)e.hasOwnProperty(i)&&(n[i]=m(e[i],t));return n;case"Array":return r=o.util.objId(e),t[r]?t[r]:(n=[],t[r]=n,e.forEach(function(e,r){n[r]=m(e,t)}),n);default:return e}},getLanguage:function(e){for(;e;){var n=t.exec(e.className);if(n)return n[1].toLowerCase();e=e.parentElement}return"none"},setLanguage:function(e,n){e.className=e.className.replace(RegExp(t,"gi"),""),e.classList.add("language-"+n)},currentScript:function(){if("undefined"==typeof document)return null;if(document.currentScript&&"SCRIPT"===document.currentScript.tagName)return document.currentScript;try{throw new Error}catch(r){var e=(/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec(r.stack)||[])[1];if(e){var t=document.getElementsByTagName("script");for(var n in t)if(t[n].src==e)return t[n]}return null}},isActive:function(e,t,n){for(var r="no-"+t;e;){var o=e.classList;if(o.contains(t))return!0;if(o.contains(r))return!1;e=e.parentElement}return!!n}},languages:{plain:r,plaintext:r,text:r,txt:r,extend:function(e,t){var n=o.util.clone(o.languages[e]);for(var r in t)n[r]=t[r];return n},insertBefore:function(e,t,n,r){var i=(r=r||o.languages)[e],s={};for(var a in i)if(i.hasOwnProperty(a)){if(a==t)for(var c in n)n.hasOwnProperty(c)&&(s[c]=n[c]);n.hasOwnProperty(a)||(s[a]=i[a])}var l=r[e];return r[e]=s,o.languages.DFS(o.languages,function(t,n){n===l&&t!=e&&(this[t]=s)}),s},DFS:function g(e,t,n,r){r=r||{};var i=o.util.objId;for(var s in e)if(e.hasOwnProperty(s)){t.call(e,s,e[s],n||s);var a=e[s],c=o.util.type(a);"Object"!==c||r[i(a)]?"Array"!==c||r[i(a)]||(r[i(a)]=!0,g(a,t,s,r)):(r[i(a)]=!0,g(a,t,null,r))}}},plugins:{},highlightAll:function(e,t){o.highlightAllUnder(document,e,t)},highlightAllUnder:function(e,t,n){var r={callback:n,container:e,selector:'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'};o.hooks.run("before-highlightall",r),r.elements=Array.prototype.slice.apply(r.container.querySelectorAll(r.selector)),o.hooks.run("before-all-elements-highlight",r);for(var i,s=0;i=r.elements[s++];)o.highlightElement(i,!0===t,r.callback)},highlightElement:function(t,n,r){var i=o.util.getLanguage(t),s=o.languages[i];o.util.setLanguage(t,i);var a=t.parentElement;a&&"pre"===a.nodeName.toLowerCase()&&o.util.setLanguage(a,i);var c={element:t,language:i,grammar:s,code:t.textContent};function l(e){c.highlightedCode=e,o.hooks.run("before-insert",c),c.element.innerHTML=c.highlightedCode,o.hooks.run("after-highlight",c),o.hooks.run("complete",c),r&&r.call(c.element)}if(o.hooks.run("before-sanity-check",c),(a=c.element.parentElement)&&"pre"===a.nodeName.toLowerCase()&&!a.hasAttribute("tabindex")&&a.setAttribute("tabindex","0"),!c.code)return o.hooks.run("complete",c),void(r&&r.call(c.element));if(o.hooks.run("before-highlight",c),c.grammar)if(n&&e.Worker){var u=new Worker(o.filename);u.onmessage=function(e){l(e.data)},u.postMessage(JSON.stringify({language:c.language,code:c.code,immediateClose:!0}))}else l(o.highlight(c.code,c.grammar,c.language));else l(o.util.encode(c.code))},highlight:function(e,t,n){var r={code:e,grammar:t,language:n};if(o.hooks.run("before-tokenize",r),!r.grammar)throw new Error('The language "'+r.language+'" has no grammar.');return r.tokens=o.tokenize(r.code,r.grammar),o.hooks.run("after-tokenize",r),i.stringify(o.util.encode(r.tokens),r.language)},tokenize:function(e,t){var n=t.rest;if(n){for(var r in n)t[r]=n[r];delete t.rest}var o=new c;return l(o,o.head,e),a(e,o,t,o.head,0),function(e){for(var t=[],n=e.head.next;n!==e.tail;)t.push(n.value),n=n.next;return t}(o)},hooks:{all:{},add:function(e,t){var n=o.hooks.all;n[e]=n[e]||[],n[e].push(t)},run:function(e,t){var n=o.hooks.all[e];if(n&&n.length)for(var r,i=0;r=n[i++];)r(t)}},Token:i};function i(e,t,n,r){this.type=e,this.content=t,this.alias=n,this.length=0|(r||"").length}function s(e,t,n,r){e.lastIndex=t;var o=e.exec(n);if(o&&r&&o[1]){var i=o[1].length;o.index+=i,o[0]=o[0].slice(i)}return o}function a(e,t,n,r,c,d){for(var h in n)if(n.hasOwnProperty(h)&&n[h]){var p=n[h];p=Array.isArray(p)?p:[p];for(var f=0;f<p.length;++f){if(d&&d.cause==h+","+f)return;var m=p[f],g=m.inside,_=!!m.lookbehind,v=!!m.greedy,y=m.alias;if(v&&!m.pattern.global){var b=m.pattern.toString().match(/[imsuy]*$/)[0];m.pattern=RegExp(m.pattern.source,b+"g")}for(var w=m.pattern||m,S=r.next,I=c;S!==t.tail&&!(d&&I>=d.reach);I+=S.value.length,S=S.next){var E=S.value;if(t.length>e.length)return;if(!(E instanceof i)){var k,C=1;if(v){if(!(k=s(w,I,e,_))||k.index>=e.length)break;var T=k.index,A=k.index+k[0].length,O=I;for(O+=S.value.length;T>=O;)O+=(S=S.next).value.length;if(I=O-=S.value.length,S.value instanceof i)continue;for(var P=S;P!==t.tail&&(O<A||"string"==typeof P.value);P=P.next)C++,O+=P.value.length;C--,E=e.slice(I,O),k.index-=I}else if(!(k=s(w,0,E,_)))continue;T=k.index;var M=k[0],N=E.slice(0,T),x=E.slice(T+M.length),R=I+E.length;d&&R>d.reach&&(d.reach=R);var L=S.prev;if(N&&(L=l(t,L,N),I+=N.length),u(t,L,C),S=l(t,L,new i(h,g?o.tokenize(M,g):M,y,M)),x&&l(t,S,x),C>1){var D={cause:h+","+f,reach:R};a(e,t,n,S.prev,I,D),d&&D.reach>d.reach&&(d.reach=D.reach)}}}}}}function c(){var e={value:null,prev:null,next:null},t={value:null,prev:e,next:null};e.next=t,this.head=e,this.tail=t,this.length=0}function l(e,t,n){var r=t.next,o={value:n,prev:t,next:r};return t.next=o,r.prev=o,e.length++,o}function u(e,t,n){for(var r=t.next,o=0;o<n&&r!==e.tail;o++)r=r.next;t.next=r,r.prev=t,e.length-=o}if(e.Prism=o,i.stringify=function _(e,t){if("string"==typeof e)return e;if(Array.isArray(e)){var n="";return e.forEach(function(e){n+=_(e,t)}),n}var r={type:e.type,content:_(e.content,t),tag:"span",classes:["token",e.type],attributes:{},language:t},i=e.alias;i&&(Array.isArray(i)?Array.prototype.push.apply(r.classes,i):r.classes.push(i)),o.hooks.run("wrap",r);var s="";for(var a in r.attributes)s+=" "+a+'="'+(r.attributes[a]||"").replace(/"/g,"&quot;")+'"';return"<"+r.tag+' class="'+r.classes.join(" ")+'"'+s+">"+r.content+"</"+r.tag+">"},!e.document)return e.addEventListener?(o.disableWorkerMessageHandler||e.addEventListener("message",function(t){var n=JSON.parse(t.data),r=n.language,i=n.code,s=n.immediateClose;e.postMessage(o.highlight(i,o.languages[r],r)),s&&e.close()},!1),o):o;var d=o.util.currentScript();function h(){o.manual||o.highlightAll()}if(d&&(o.filename=d.src,d.hasAttribute("data-manual")&&(o.manual=!0)),!o.manual){var p=document.readyState;"loading"===p||"interactive"===p&&d&&d.defer?document.addEventListener("DOMContentLoaded",h):window.requestAnimationFrame?window.requestAnimationFrame(h):window.setTimeout(h,16)}return o}("undefined"!=typeof window?window:"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope?self:{});e.exports&&(e.exports=r),"undefined"!=typeof n.g&&(n.g.Prism=r),r.languages.markup={comment:{pattern:/<!--(?:(?!<!--)[\s\S])*?-->/,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^<!|>$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},{pattern:/^(\s*)["']|["']$/,lookbehind:!0}]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},r.languages.markup.tag.inside["attr-value"].inside.entity=r.languages.markup.entity,r.languages.markup.doctype.inside["internal-subset"].inside=r.languages.markup,r.hooks.add("wrap",function(e){"entity"===e.type&&(e.attributes.title=e.content.replace(/&amp;/,"&"))}),Object.defineProperty(r.languages.markup.tag,"addInlined",{value:function(e,t){var n={};n["language-"+t]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:r.languages[t]},n.cdata=/^<!\[CDATA\[|\]\]>$/i;var o={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:n}};o["language-"+t]={pattern:/[\s\S]+/,inside:r.languages[t]};var i={};i[e]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,function(){return e}),"i"),lookbehind:!0,greedy:!0,inside:o},r.languages.insertBefore("markup","cdata",i)}}),Object.defineProperty(r.languages.markup.tag,"addAttribute",{value:function(e,t){r.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+e+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[t,"language-"+t],inside:r.languages[t]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),r.languages.html=r.languages.markup,r.languages.mathml=r.languages.markup,r.languages.svg=r.languages.markup,r.languages.xml=r.languages.extend("markup",{}),r.languages.ssml=r.languages.xml,r.languages.atom=r.languages.xml,r.languages.rss=r.languages.xml,function(e){var t=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;e.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:RegExp("@[\\w-](?:"+/[^;{\s"']|\s+(?!\s)/.source+"|"+t.source+")*?"+/(?:;|(?=\s*\{))/.source),inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+t.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{"function":/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+t.source+"$"),alias:"url"}}},selector:{pattern:RegExp("(^|[{}\\s])[^{}\\s](?:[^{};\"'\\s]|\\s+(?![\\s{])|"+t.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:t,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,"function":{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},e.languages.css.atrule.inside.rest=e.languages.css;var n=e.languages.markup;n&&(n.tag.addInlined("style","css"),n.tag.addAttribute("style","css"))}(r),r.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|trait)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:break|catch|continue|do|else|finally|for|function|if|in|instanceof|new|null|return|throw|try|while)\b/,boolean:/\b(?:false|true)\b/,"function":/\b\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/},r.languages.javascript=r.languages.extend("clike",{"class-name":[r.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],"function":/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:{pattern:RegExp(/(^|[^\w$])/.source+"(?:"+/NaN|Infinity/.source+"|"+/0[bB][01]+(?:_[01]+)*n?/.source+"|"+/0[oO][0-7]+(?:_[0-7]+)*n?/.source+"|"+/0[xX][\dA-Fa-f]+(?:_[\dA-Fa-f]+)*n?/.source+"|"+/\d+(?:_\d+)*n/.source+"|"+/(?:\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[Ee][+-]?\d+(?:_\d+)*)?/.source+")"+/(?![\w$])/.source),lookbehind:!0},operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),r.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/,r.languages.insertBefore("javascript","keyword",{regex:{pattern:RegExp(/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)/.source+/\//.source+"(?:"+/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}/.source+"|"+/(?:\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.)*\])*\])*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}v[dgimyus]{0,7}/.source+")"+/(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/.source),lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:r.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:r.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:r.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:r.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:r.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),r.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:r.languages.javascript}},string:/[\s\S]+/}},"string-property":{pattern:/((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,lookbehind:!0,greedy:!0,alias:"property"}}),r.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}}),r.languages.markup&&(r.languages.markup.tag.addInlined("script","javascript"),r.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript")),r.languages.js=r.languages.javascript,function(){if(void 0!==r&&"undefined"!=typeof document){Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector);var e={js:"javascript",py:"python",rb:"ruby",ps1:"powershell",psm1:"powershell",sh:"bash",bat:"batch",h:"c",tex:"latex"},t="data-src-status",n="loading",o="loaded",i="pre[data-src]:not(["+t+'="'+o+'"]):not(['+t+'="'+n+'"])';r.hooks.add("before-highlightall",function(e){e.selector+=", "+i}),r.hooks.add("before-sanity-check",function(s){var a=s.element;if(a.matches(i)){s.code="",a.setAttribute(t,n);var c=a.appendChild(document.createElement("CODE"));c.textContent="Loading…";var l=a.getAttribute("data-src"),u=s.language;if("none"===u){var d=(/\.(\w+)$/.exec(l)||[,"none"])[1];u=e[d]||d}r.util.setLanguage(c,u),r.util.setLanguage(a,u);var h=r.plugins.autoloader;h&&h.loadLanguages(u),function(e,t,n){var r=new XMLHttpRequest;r.open("GET",e,!0),r.onreadystatechange=function(){4==r.readyState&&(r.status<400&&r.responseText?t(r.responseText):r.status>=400?n("✖ Error "+r.status+" while fetching file: "+r.statusText):n("✖ Error: File does not exist or is empty"))},r.send(null)}(l,function(e){a.setAttribute(t,o);var n=function(e){var t=/^\s*(\d+)\s*(?:(,)\s*(?:(\d+)\s*)?)?$/.exec(e||"");if(t){var n=Number(t[1]),r=t[2],o=t[3];return r?o?[n,Number(o)]:[n,undefined]:[n,n]}return undefined}(a.getAttribute("data-range"));if(n){var i=e.split(/\r\n?|\n/g),s=n[0],l=null==n[1]?i.length:n[1];s<0&&(s+=i.length),s=Math.max(0,Math.min(s-1,i.length)),l<0&&(l+=i.length),l=Math.max(0,Math.min(l,i.length)),e=i.slice(s,l).join("\n"),a.hasAttribute("data-start")||a.setAttribute("data-start",String(s+1))}c.textContent=e,r.highlightElement(c)},function(e){a.setAttribute(t,"failed"),c.textContent=e})}}),r.plugins.fileHighlight={highlight:function(e){for(var t,n=(e||document).querySelectorAll(i),o=0;t=n[o++];)r.highlightElement(t)}};var s=!1;r.fileHighlight=function(){s||(console.warn("Prism.fileHighlight is deprecated. Use `Prism.plugins.fileHighlight.highlight` instead."),s=!0),r.plugins.fileHighlight.highlight.apply(this,arguments)}}}()},7650:function(e,t,n){"use strict";var r=n(6553)["default"];Object.defineProperty(t,"B",{value:!0}),t.A=void 0;var o=r(n(2956)),i=r(n(2497)),s=r(n(943));t.A={components:{TkComments:o["default"],TkFooter:i["default"],TkAdmin:s["default"]},data(){return{showAdmin:!1,showAdminEntry:!1}},methods:{onShowAdminEntry(e){this.showAdminEntry=e}}}},489:function(e,t,n){"use strict";var r=n(6553)["default"];Object.defineProperty(t,"B",{value:!0}),t.A=void 0;var o=r(n(3491)),i=r(n(6370)),s=r(n(6359)),a=r(n(5910)),c=r(n(6412)),l=r(n(9801)),u=r(n(7136)),d=r(n(5545));t.A={data(){return{iconComment:o["default"],iconCommentSolid:i["default"],iconLike:s["default"],iconLikeSolid:a["default"],iconDislike:c["default"],iconDislikeSolid:l["default"],iconDelete:u["default"],iconDeleteSolid:d["default"]}},props:{liked:Boolean,disliked:Boolean,likeCount:Number,dislikeCount:Number,repliesCount:Number,showDislike:Boolean,showDelete:Boolean},computed:{likeCountStr(){return this.likeCount>0?`${this.likeCount}`:""},dislikeCountStr(){return this.dislikeCount>0?`${this.dislikeCount}`:""},repliesCountStr(){return this.repliesCount>0?`${this.repliesCount}`:""}},methods:{onLike(){this.$emit("like")},onDislike(){this.$emit("dislike")},onReply(){this.$emit("reply")},onDelete(){this.$emit("delete")}}}},3034:function(e,t,n){"use strict";var r=n(6553)["default"];Object.defineProperty(t,"B",{value:!0}),t.A=void 0;var o=r(n(8093)),i=r(n(7602)),s=r(n(2348)),a=r(n(3668)),c=r(n(9320)),l=n(2509),u=r(n(9671));t.A={components:{TkAdminComment:i["default"],TkAdminConfig:s["default"],TkAdminImport:a["default"],TkAdminExport:c["default"]},props:{show:Boolean},data(){return{iconClose:u["default"],loading:!0,version:"",needUpdate:!1,isLogin:!1,isSetPassword:!0,isSetCredentials:!1,credentials:"",password:"",passwordConfirm:"",loginErrorMessage:"",activeTabName:"comment"}},computed:{canRegist(){return!this.isSetPassword&&!!this.password&&this.password===this.passwordConfirm&&(this.isSetCredentials||this.credentials)}},methods:{t:l.t,async onLogin(){if(!this.password)return void(this.loginErrorMessage=(0,l.t)("ADMIN_PASSWORD_REQUIRED"));this.loading=!0,this.loginErrorMessage="";const e=(0,o["default"])(this.password),t=await(0,l.call)(this.$tcb,"LOGIN",{password:e});if(t.result.message)this.loginErrorMessage=t.result.message;else if(t.result.ticket)try{await this.$tcb.auth.customAuthProvider().signIn(t.result.ticket),l.logger.log("登录成功"),this.password="",this.checkAuth()}catch(n){l.logger.error("登录失败",n)}else 0===t.result.code&&(l.logger.log("登录成功"),localStorage.setItem("twikoo-access-token",e),this.password="",this.checkAuth());this.loading=!1},async onLogout(e){e.preventDefault(),this.loading=!0,this.$tcb?(await this.$tcb.auth.signOut(),await this.$tcb.auth.anonymousAuthProvider().signIn()):localStorage.removeItem("twikoo-access-token"),this.isLogin=!1,this.loading=!1},async onRegist(){this.loading=!0;const e=(0,o["default"])(this.password),t=await(0,l.call)(this.$tcb,"SET_PASSWORD",{password:e,credentials:this.credentials});t.result.code?(this.loginErrorMessage=(0,l.t)("ADMIN_REGIST_FAILED"),t.result.message&&(this.loginErrorMessage+=","+t.result.message),l.logger.warn("Twikoo 注册失败",t)):(this.passwordMd5="",this.isSetPassword=!0,this.onLogin()),this.loading=!1},async onShow(){this.loading=!0,await this.checkAuth(),this.isLogin||(await this.checkIfPasswordSet(),this.focusPassword()),this.loading=!1},focusPassword(){setTimeout(()=>{this.$refs.focusme&&this.$refs.focusme.focus()},500)},async checkAuth(){if(this.$tcb){const e=await this.$tcb.auth.getCurrenUser();this.isLogin="CUSTOM"===e.loginType}else{const e=await(0,l.call)(this.$tcb,"GET_CONFIG");e&&e.result&&e.result.config&&(this.isLogin=e.result.config.IS_ADMIN)}},async checkIfPasswordSet(){try{const e=await(0,l.call)(this.$tcb,"GET_PASSWORD_STATUS");this.version=e.result.version,this.isSetPassword=e.result.status,this.isSetCredentials=!this.$tcb}catch(e){throw this.needUpdate=!0,this.loading=!1,e}},onClose(){this.$emit("close")}},watch:{show(e){e&&this.onShow()}}}},7167:function(e,t,n){"use strict";var r=n(6553)["default"];Object.defineProperty(t,"B",{value:!0}),t.A=void 0;var o=n(8897),i=n(2509),s=n(3115),a=r(n(1645)),c=r(n(7350)),l=r(n(9671));t.A={components:{TkAvatar:a["default"],TkPagination:c["default"]},data(){return{loading:!0,comments:[],serverConfig:{},serverVersion:this.$twikoo.serverConfig.VERSION,clientVersion:s.version,count:0,pageSize:5,currentPage:1,filter:{keyword:"",type:""},securityAlert:null,iconClose:l["default"]}},methods:{t:i.t,displayCreated(e){return(0,i.timeago)(e.created)},convertLink(e){return(0,i.convertLink)(e)},async getComments(){this.loading=!0;const e=await(0,i.call)(this.$tcb,"COMMENT_GET_FOR_ADMIN",{per:this.pageSize,page:this.currentPage,keyword:this.filter.keyword,type:this.filter.type});e.result&&!e.result.code&&(this.count=e.result.count,this.comments=e.result.data),this.$nextTick(()=>{(0,i.renderLinks)(this.$refs.comments),(0,i.renderMath)(this.$refs["comment-list"],this.$twikoo.katex),this.highlightCode()}),this.loading=!1},async getConfig(){const e=await(0,i.call)(this.$tcb,"GET_CONFIG_FOR_ADMIN");e.result&&!e.result.code&&(this.serverConfig=e.result.config,this.checkConfig())},checkConfig(){this.serverConfig.HIGHLIGHT||(this.serverConfig.HIGHLIGHT="true");let e={};const t=localStorage.getItem("twikoo");t&&(e=JSON.parse(t)),["nick","mail","avatar"].forEach(t=>{e[t]?this.serverConfig[t]=e[t]:this.serverConfig[t]=""}),!e.nick&&this.serverConfig.BLOGGER_NICK&&(e.nick=this.serverConfig.BLOGGER_NICK),!e.mail&&this.serverConfig.BLOGGER_EMAIL&&(e.mail=this.serverConfig.BLOGGER_EMAIL),!e.link&&this.serverConfig.SITE_URL&&(e.link=this.serverConfig.SITE_URL),localStorage.setItem("twikoo",JSON.stringify(e)),o.app.$emit("initMeta")},onPageSizeChange(e){this.pageSize=e,this.getComments()},switchPage(e){this.currentPage=e,this.getComments()},handleView(e){const t=`${e.url}#${e._id}`;try{if(new URL(t).hostname!==window.location.hostname)return void(this.securityAlert={commentId:e._id,message:(0,i.t)("ADMIN_COMMENT_SECURITY_ALERT"),url:t});window.open(t)}catch(n){try{new URL(t,window.location.origin),window.open(t)}catch(r){this.securityAlert={commentId:e._id,message:(0,i.t)("ADMIN_COMMENT_PARSE_ERROR"),url:e.url}}}},async handleDelete(e){confirm((0,i.t)("ADMIN_COMMENT_DELETE_CONFIRM"))&&(this.loading=!0,await(0,i.call)(this.$tcb,"COMMENT_DELETE_FOR_ADMIN",{id:e._id}),await this.getComments(),this.loading=!1)},handleSpam(e,t){this.setComment(e,{isSpam:t})},handleTop(e,t){this.setComment(e,{top:t})},async setComment(e,t){this.loading=!0,await(0,i.call)(this.$tcb,"COMMENT_SET_FOR_ADMIN",{id:e._id,set:t}),await this.getComments(),this.loading=!1},highlightCode(){"true"===this.serverConfig.HIGHLIGHT&&(0,i.renderCode)(this.$refs["comment-list"],this.serverConfig.HIGHLIGHT_THEME,this.serverConfig.HIGHLIGHT_PLUGIN)}},async mounted(){await Promise.all([this.getConfig(),this.getComments()]),this.highlightCode()}}},6432:function(e,t,n){"use strict";Object.defineProperty(t,"B",{value:!0}),t.A=void 0;var r=n(2509),o=n(3115),i=n(8897);t.A={data(){return{loading:!0,settings:[{name:(0,r.t)("ADMIN_CONFIG_CATEGORY_COMMON"),items:[{key:"SITE_NAME",desc:(0,r.t)("ADMIN_CONFIG_ITEM_SITE_NAME"),ph:`${(0,r.t)("ADMIN_CONFIG_EXAMPLE")}虹墨空间站`,value:""},{key:"SITE_URL",desc:(0,r.t)("ADMIN_CONFIG_ITEM_SITE_URL"),ph:`${(0,r.t)("ADMIN_CONFIG_EXAMPLE")}https://www.imaegoo.com`,value:""},{key:"CORS_ALLOW_ORIGIN",desc:(0,r.t)("ADMIN_CONFIG_ITEM_CORS_ALLOW_ORIGIN"),ph:`${(0,r.t)("ADMIN_CONFIG_EXAMPLE")}https://www.imaegoo.com`,value:""},{key:"BLOGGER_NICK",desc:(0,r.t)("ADMIN_CONFIG_ITEM_BLOGGER_NICK"),ph:`${(0,r.t)("ADMIN_CONFIG_EXAMPLE")}iMaeGoo`,value:""},{key:"BLOGGER_EMAIL",desc:(0,r.t)("ADMIN_CONFIG_ITEM_BLOGGER_EMAIL"),ph:`${(0,r.t)("ADMIN_CONFIG_EXAMPLE")}12345@qq.com`,value:""},{key:"COMMENT_PAGE_SIZE",desc:(0,r.t)("ADMIN_CONFIG_ITEM_COMMENT_PAGE_SIZE"),ph:`${(0,r.t)("ADMIN_CONFIG_EXAMPLE")}8`,value:""},{key:"MASTER_TAG",desc:(0,r.t)("ADMIN_CONFIG_ITEM_MASTER_TAG"),ph:`${(0,r.t)("ADMIN_CONFIG_EXAMPLE")}站长`,value:""},{key:"COMMENT_BG_IMG",desc:(0,r.t)("ADMIN_CONFIG_ITEM_COMMENT_BG_IMG"),ph:"",value:""},{key:"GRAVATAR_CDN",desc:(0,r.t)("ADMIN_CONFIG_ITEM_GRAVATAR_CDN"),ph:`${(0,r.t)("ADMIN_CONFIG_EXAMPLE")}sdn.geekzu.org`,value:""},{key:"DEFAULT_GRAVATAR",desc:(0,r.t)("ADMIN_CONFIG_ITEM_DEFAULT_GRAVATAR"),ph:`${(0,r.t)("ADMIN_CONFIG_EXAMPLE")}mp`,value:""},{key:"COMMENT_PLACEHOLDER",desc:(0,r.t)("ADMIN_CONFIG_ITEM_COMMENT_PLACEHOLDER"),ph:`${(0,r.t)("ADMIN_CONFIG_EXAMPLE")}`,value:""},{key:"SHOW_ORDER",desc:(0,r.t)("ADMIN_CONFIG_ITEM_SHOW_ORDER"),ph:`${(0,r.t)("ADMIN_CONFIG_EXAMPLE")}true`,value:""},{key:"SHOW_DISLIKE",desc:(0,r.t)("ADMIN_CONFIG_ITEM_SHOW_DISLIKE"),ph:`${(0,r.t)("ADMIN_CONFIG_EXAMPLE")}true`,value:""},{key:"DISPLAYED_FIELDS",desc:(0,r.t)("ADMIN_CONFIG_ITEM_DISPLAYED_FIELDS"),ph:`${(0,r.t)("ADMIN_CONFIG_EXAMPLE")}nick,mail,link`,value:""},{key:"REQUIRED_FIELDS",desc:(0,r.t)("ADMIN_CONFIG_ITEM_REQUIRED_FIELDS"),ph:`${(0,r.t)("ADMIN_CONFIG_EXAMPLE")}nick,mail,link`,value:""},{key:"HIDE_ADMIN_CRYPT",desc:(0,r.t)("ADMIN_CONFIG_ITEM_HIDE_ADMIN_CRYPT"),ph:`${(0,r.t)("ADMIN_CONFIG_EXAMPLE")}admin`,value:""},{key:"QQ_API_KEY",desc:(0,r.t)("ADMIN_CONFIG_ITEM_QQ_API_KEY"),ph:`${(0,r.t)("ADMIN_CONFIG_EXAMPLE")}your_api_key`,value:""}]},{name:(0,r.t)("ADMIN_CONFIG_CATEGORY_PLUGIN"),items:[{key:"IMAGE_CDN",desc:(0,r.t)("ADMIN_CONFIG_ITEM_IMAGE_CDN"),options:[{value:"",label:(0,r.t)("ADMIN_CONFIG_IMAGE_CDN_NONE")},{value:"qcloud",label:"qcloud"},{value:"7bu",label:"7bu (https://7bu.top)"},{value:"see",label:"see (https://s.ee)"},{value:"lskypro",label:"lskypro"},{value:"piclist",label:"piclist"},{value:"easyimage",label:"easyimage"},{value:"chevereto",label:"chevereto"},{value:"s3",label:"S3 / R2 / MinIO"}],value:""},{key:"IMAGE_CDN_URL",desc:(0,r.t)("ADMIN_CONFIG_ITEM_IMAGE_CDN_URL"),ph:`${(0,r.t)("ADMIN_CONFIG_EXAMPLE")}https://piclist.example.com`,value:"",showIf:e=>["lskypro","piclist","easyimage"].includes(e("IMAGE_CDN"))},{key:"IMAGE_CDN_TOKEN",desc:(0,r.t)("ADMIN_CONFIG_ITEM_IMAGE_CDN_TOKEN"),ph:`${(0,r.t)("ADMIN_CONFIG_EXAMPLE")}example`,value:"",showIf:e=>e("IMAGE_CDN")&&"s3"!==e("IMAGE_CDN")},{key:"S3_REGION",desc:(0,r.t)("ADMIN_CONFIG_ITEM_S3_REGION"),ph:`${(0,r.t)("ADMIN_CONFIG_EXAMPLE")}us-east-1`,value:"",showIf:e=>"s3"===e("IMAGE_CDN")},{key:"S3_BUCKET",desc:(0,r.t)("ADMIN_CONFIG_ITEM_S3_BUCKET"),ph:`${(0,r.t)("ADMIN_CONFIG_EXAMPLE")}my-bucket`,value:"",showIf:e=>"s3"===e("IMAGE_CDN")},{key:"S3_ACCESS_KEY_ID",desc:(0,r.t)("ADMIN_CONFIG_ITEM_S3_ACCESS_KEY_ID"),ph:`${(0,r.t)("ADMIN_CONFIG_EXAMPLE")}AKIAIOSFODNN7EXAMPLE`,value:"",showIf:e=>"s3"===e("IMAGE_CDN")},{key:"S3_SECRET_ACCESS_KEY",desc:(0,r.t)("ADMIN_CONFIG_ITEM_S3_SECRET_ACCESS_KEY"),ph:`${(0,r.t)("ADMIN_CONFIG_EXAMPLE")}wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY`,value:"",secret:!0,showIf:e=>"s3"===e("IMAGE_CDN")},{key:"S3_ENDPOINT",desc:(0,r.t)("ADMIN_CONFIG_ITEM_S3_ENDPOINT"),ph:`${(0,r.t)("ADMIN_CONFIG_EXAMPLE")}https://xxx.r2.cloudflarestorage.com`,value:"",showIf:e=>"s3"===e("IMAGE_CDN")},{key:"S3_FORCE_PATH_STYLE",desc:(0,r.t)("ADMIN_CONFIG_ITEM_S3_FORCE_PATH_STYLE"),ph:`${(0,r.t)("ADMIN_CONFIG_EXAMPLE")}true`,value:"",showIf:e=>"s3"===e("IMAGE_CDN")},{key:"S3_CDN_URL",desc:(0,r.t)("ADMIN_CONFIG_ITEM_S3_CDN_URL"),ph:`${(0,r.t)("ADMIN_CONFIG_EXAMPLE")}https://cdn.example.com`,value:"",showIf:e=>"s3"===e("IMAGE_CDN")},{key:"S3_PATH_PREFIX",desc:(0,r.t)("ADMIN_CONFIG_ITEM_S3_PATH_PREFIX"),ph:`${(0,r.t)("ADMIN_CONFIG_EXAMPLE")}images/twikoo`,value:"",showIf:e=>"s3"===e("IMAGE_CDN")},{key:"NSFW_API_URL",desc:(0,r.t)("ADMIN_CONFIG_ITEM_NSFW_API_URL"),ph:`${(0,r.t)("ADMIN_CONFIG_EXAMPLE")}https://nsfw.example.com`,value:""},{key:"NSFW_THRESHOLD",desc:(0,r.t)("ADMIN_CONFIG_ITEM_NSFW_THRESHOLD"),ph:`${(0,r.t)("ADMIN_CONFIG_EXAMPLE")}0.5`,value:""},{key:"SHOW_EMOTION",desc:(0,r.t)("ADMIN_CONFIG_ITEM_SHOW_EMOTION"),ph:`${(0,r.t)("ADMIN_CONFIG_EXAMPLE")}false`,value:""},{key:"EMOTION_CDN",desc:(0,r.t)("ADMIN_CONFIG_ITEM_EMOTION_CDN"),ph:"",value:""},{key:"HIGHLIGHT",desc:(0,r.t)("ADMIN_CONFIG_ITEM_HIGHLIGHT"),ph:`${(0,r.t)("ADMIN_CONFIG_EXAMPLE")}false`,value:""},{key:"HIGHLIGHT_THEME",desc:(0,r.t)("ADMIN_CONFIG_ITEM_HIGHLIGHT_THEME"),ph:`${(0,r.t)("ADMIN_CONFIG_EXAMPLE")}tomorrow`,value:""},{key:"HIGHLIGHT_PLUGIN",desc:(0,r.t)("ADMIN_CONFIG_ITEM_HIGHLIGHT_PLUGIN"),ph:`${(0,r.t)("ADMIN_CONFIG_EXAMPLE")}showLanguage`,value:""},{key:"LIGHTBOX",desc:(0,r.t)("ADMIN_CONFIG_ITEM_LIGHTBOX"),ph:`${(0,r.t)("ADMIN_CONFIG_EXAMPLE")}true`,value:""}]},{name:(0,r.t)("ADMIN_CONFIG_CATEGORY_PRIVACY"),items:[{key:"SHOW_UA",desc:(0,r.t)("ADMIN_CONFIG_ITEM_SHOW_UA"),ph:`${(0,r.t)("ADMIN_CONFIG_EXAMPLE")}false`,value:""},{key:"SHOW_REGION",desc:(0,r.t)("ADMIN_CONFIG_ITEM_SHOW_REGION"),ph:`${(0,r.t)("ADMIN_CONFIG_EXAMPLE")}true`,value:""}]},{name:(0,r.t)("ADMIN_CONFIG_CATEGORY_SPAM"),items:[{key:"AKISMET_KEY",desc:(0,r.t)("ADMIN_CONFIG_ITEM_AKISMET_KEY"),ph:`${(0,r.t)("ADMIN_CONFIG_EXAMPLE")}8651783edxxx`,value:""},{key:"QCLOUD_SECRET_ID",desc:(0,r.t)("ADMIN_CONFIG_ITEM_QCLOUD_SECRET_ID"),ph:`${(0,r.t)("ADMIN_CONFIG_EXAMPLE")}AKI******************************IHw`,value:""},{key:"QCLOUD_SECRET_KEY",desc:(0,r.t)("ADMIN_CONFIG_ITEM_QCLOUD_SECRET_KEY"),ph:`${(0,r.t)("ADMIN_CONFIG_EXAMPLE")}Xrk**************************3D7`,value:"",secret:!0},{key:"QCLOUD_CMS_BIZTYPE",desc:(0,r.t)("ADMIN_CONFIG_ITEM_QCLOUD_CMS_BIZTYPE"),ph:`${(0,r.t)("ADMIN_CONFIG_EXAMPLE")}1787728329856520192`,value:""},{key:"LIMIT_PER_MINUTE",desc:(0,r.t)("ADMIN_CONFIG_ITEM_LIMIT_PER_MINUTE"),ph:`${(0,r.t)("ADMIN_CONFIG_EXAMPLE")}5`,value:""},{key:"LIMIT_PER_MINUTE_ALL",desc:(0,r.t)("ADMIN_CONFIG_ITEM_LIMIT_PER_MINUTE_ALL"),ph:`${(0,r.t)("ADMIN_CONFIG_EXAMPLE")}5`,value:""},{key:"LIMIT_LENGTH",desc:(0,r.t)("ADMIN_CONFIG_ITEM_LIMIT_LENGTH"),ph:`${(0,r.t)("ADMIN_CONFIG_EXAMPLE")}100`,value:""},{key:"FORBIDDEN_WORDS",desc:(0,r.t)("ADMIN_CONFIG_ITEM_FORBIDDEN_WORDS"),ph:`${(0,r.t)("ADMIN_CONFIG_EXAMPLE")}快递,空包`,value:""},{key:"BLOCKED_WORDS",desc:(0,r.t)("ADMIN_CONFIG_ITEM_BLOCKED_WORDS"),ph:`${(0,r.t)("ADMIN_CONFIG_EXAMPLE")}快递,空包`,value:""},{key:"NOTIFY_SPAM",desc:(0,r.t)("ADMIN_CONFIG_ITEM_NOTIFY_SPAM"),ph:`${(0,r.t)("ADMIN_CONFIG_EXAMPLE")}false`,value:""},{key:"LLM_API_KEY",desc:(0,r.t)("ADMIN_CONFIG_ITEM_LLM_API_KEY"),ph:"sk-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",value:"",secret:!0},{key:"LLM_API_ENDPOINT",desc:(0,r.t)("ADMIN_CONFIG_ITEM_LLM_API_ENDPOINT"),ph:"https://api.deepseek.com",value:""},{key:"LLM_MODEL",desc:(0,r.t)("ADMIN_CONFIG_ITEM_LLM_MODEL"),ph:"deepseek-v4-pro",value:""},{key:"LLM_SPAM_PROMPT",desc:(0,r.t)("ADMIN_CONFIG_ITEM_LLM_SPAM_PROMPT"),ph:"",value:"",type:"textarea"},{key:"LLM_MAX_RETRIES",desc:(0,r.t)("ADMIN_CONFIG_ITEM_LLM_MAX_RETRIES"),ph:"3",value:""}]},{name:(0,r.t)("ADMIN_CONFIG_CATEGORY_CAPTCHA"),items:[{key:"CAPTCHA_PROVIDER",desc:(0,r.t)("ADMIN_CONFIG_ITEM_CAPTCHA_PROVIDER"),options:[{value:"",label:(0,r.t)("ADMIN_CONFIG_CAPTCHA_NONE")},{value:"Turnstile",label:(0,r.t)("ADMIN_CONFIG_CAPTCHA_TURNSTILE")},{value:"Geetest",label:(0,r.t)("ADMIN_CONFIG_CAPTCHA_GEETEST")},{value:"Cap",label:(0,r.t)("ADMIN_CONFIG_CAPTCHA_CAP")}],value:""},{key:"TURNSTILE_SITE_KEY",desc:(0,r.t)("ADMIN_CONFIG_ITEM_TURNSTILE_SITE_KEY"),ph:`${(0,r.t)("ADMIN_CONFIG_EXAMPLE")}0x4AAAAAAAPLTtpBr_T12345`,value:"",showIf:e=>"Turnstile"===e("CAPTCHA_PROVIDER")},{key:"TURNSTILE_SECRET_KEY",desc:(0,r.t)("ADMIN_CONFIG_ITEM_TURNSTILE_SECRET_KEY"),ph:`${(0,r.t)("ADMIN_CONFIG_EXAMPLE")}0x4AAAAAAAPLTmBm6gHmOnOqC1iwmU12345`,value:"",secret:!0,showIf:e=>"Turnstile"===e("CAPTCHA_PROVIDER")},{key:"GEETEST_CAPTCHA_ID",desc:(0,r.t)("ADMIN_CONFIG_ITEM_GEETEST_CAPTCHA_ID"),ph:`${(0,r.t)("ADMIN_CONFIG_EXAMPLE")}your_captcha_id`,value:"",showIf:e=>"Geetest"===e("CAPTCHA_PROVIDER")},{key:"GEETEST_CAPTCHA_KEY",desc:(0,r.t)("ADMIN_CONFIG_ITEM_GEETEST_CAPTCHA_KEY"),ph:`${(0,r.t)("ADMIN_CONFIG_EXAMPLE")}your_captcha_key`,value:"",secret:!0,showIf:e=>"Geetest"===e("CAPTCHA_PROVIDER")},{key:"CAP_API_ENDPOINT",desc:(0,r.t)("ADMIN_CONFIG_ITEM_CAP_API_ENDPOINT"),ph:`${(0,r.t)("ADMIN_CONFIG_EXAMPLE")}https://cap.example.com/d9256640cb53/(留空=内嵌,无需外部服务)`,value:"",showIf:e=>"Cap"===e("CAPTCHA_PROVIDER")},{key:"CAP_SECRET_KEY",desc:(0,r.t)("ADMIN_CONFIG_ITEM_CAP_SECRET_KEY"),ph:`${(0,r.t)("ADMIN_CONFIG_EXAMPLE")}仅外部 Cap 需要;内嵌模式可留空`,value:"",secret:!0,showIf:e=>"Cap"===e("CAPTCHA_PROVIDER")}]},{name:(0,r.t)("ADMIN_CONFIG_CATEGORY_IM"),items:[{key:"PUSHOO_CHANNEL",desc:(0,r.t)("ADMIN_CONFIG_ITEM_PUSHOO_CHANNEL"),ph:`${(0,r.t)("ADMIN_CONFIG_EXAMPLE")}pushdeer`,value:""},{key:"PUSHOO_TOKEN",desc:(0,r.t)("ADMIN_CONFIG_ITEM_PUSHOO_TOKEN"),ph:`${(0,r.t)("ADMIN_CONFIG_EXAMPLE")}PDU431TfFHZICvR6lJrFBswSRN1cJ*****zzFvR`,value:""},{key:"SC_MAIL_NOTIFY",desc:(0,r.t)("ADMIN_CONFIG_ITEM_SC_MAIL_NOTIFY"),ph:`${(0,r.t)("ADMIN_CONFIG_EXAMPLE")}true`,value:""}]},{name:(0,r.t)("ADMIN_CONFIG_CATEGORY_MAIL"),items:[{key:"SENDER_EMAIL",desc:(0,r.t)("ADMIN_CONFIG_ITEM_SENDER_EMAIL"),ph:`${(0,r.t)("ADMIN_CONFIG_EXAMPLE")}blog@imaegoo.com`,value:""},{key:"SENDER_NAME",desc:(0,r.t)("ADMIN_CONFIG_ITEM_SENDER_NAME"),ph:`${(0,r.t)("ADMIN_CONFIG_EXAMPLE")}虹墨空间站评论提醒`,value:""},{key:"SMTP_SERVICE",desc:(0,r.t)("ADMIN_CONFIG_ITEM_SMTP_SERVICE"),ph:`${(0,r.t)("ADMIN_CONFIG_EXAMPLE")}QQ`,value:""},{key:"SMTP_HOST",desc:(0,r.t)("ADMIN_CONFIG_ITEM_SMTP_HOST"),ph:`${(0,r.t)("ADMIN_CONFIG_EXAMPLE")}smtp.qq.com`,value:""},{key:"SMTP_PORT",desc:(0,r.t)("ADMIN_CONFIG_ITEM_SMTP_PORT"),ph:`${(0,r.t)("ADMIN_CONFIG_EXAMPLE")}465`,value:""},{key:"SMTP_SECURE",desc:(0,r.t)("ADMIN_CONFIG_ITEM_SMTP_SECURE"),ph:`${(0,r.t)("ADMIN_CONFIG_EXAMPLE")}true`,value:""},{key:"SMTP_USER",desc:(0,r.t)("ADMIN_CONFIG_ITEM_SMTP_USER"),ph:`${(0,r.t)("ADMIN_CONFIG_EXAMPLE")}blog@imaegoo.com`,value:""},{key:"SMTP_PASS",desc:(0,r.t)("ADMIN_CONFIG_ITEM_SMTP_PASS"),ph:`${(0,r.t)("ADMIN_CONFIG_EXAMPLE")}password`,value:"",secret:!0},{key:"MAIL_SUBJECT",desc:(0,r.t)("ADMIN_CONFIG_ITEM_MAIL_SUBJECT"),ph:`${(0,r.t)("ADMIN_CONFIG_EXAMPLE")}您在虹墨空间站上的评论收到了回复`,value:""},{key:"MAIL_TEMPLATE",desc:(0,r.t)("ADMIN_CONFIG_ITEM_MAIL_TEMPLATE"),ph:"",value:"",type:"textarea"},{key:"MAIL_SUBJECT_ADMIN",desc:(0,r.t)("ADMIN_CONFIG_ITEM_MAIL_SUBJECT_ADMIN"),ph:`${(0,r.t)("ADMIN_CONFIG_EXAMPLE")}虹墨空间站上有新评论了`,value:""},{key:"MAIL_TEMPLATE_ADMIN",desc:(0,r.t)("ADMIN_CONFIG_ITEM_MAIL_TEMPLATE_ADMIN"),ph:"",value:"",type:"textarea"}]}],serverConfig:{},serverVersion:this.$twikoo.serverConfig.VERSION,clientVersion:o.version,message:"",emailTestAddress:"",emailTestResult:""}},methods:{t:r.t,async readConfig(){this.loading=!0;const e=await(0,r.call)(this.$tcb,"GET_CONFIG_FOR_ADMIN");e.result&&!e.result.code&&(this.serverConfig=e.result.config,"undefined"==typeof this.serverConfig.CAPTCHA_PROVIDER&&(this.serverConfig.TURNSTILE_SITE_KEY?this.serverConfig.CAPTCHA_PROVIDER="Turnstile":this.serverConfig.GEETEST_CAPTCHA_ID&&(this.serverConfig.CAPTCHA_PROVIDER="Geetest")),"undefined"==typeof this.serverConfig.IMAGE_CDN&&(this.serverConfig.SHOW_IMAGE,this.serverConfig.IMAGE_CDN=""),this.resetConfig()),this.loading=!1},resetConfig(){for(const e of this.settings)for(const t of e.items)this.serverConfig[t.key]!==undefined?t.value=this.serverConfig[t.key]:t.value=""},showSetting(e){return"function"!=typeof e.showIf||e.showIf(e=>{for(const t of this.settings){const n=t.items.find(t=>t.key===e);if(n)return n.value}return null})},async saveConfig(){this.loading=!0,this.message="正在保存";const e={};for(const t of this.settings)for(const n of t.items)this.serverConfig[n.key]!==n.value&&(e[n.key]=n.value);e.IMAGE_CDN!==undefined&&(e.SHOW_IMAGE=e.IMAGE_CDN?"true":"false"),r.logger.log("保存配置",e),await(0,r.call)(this.$tcb,"SET_CONFIG",{config:e}),await this.readConfig(),i.app.$emit("configUpdated"),this.message="保存成功",this.loading=!1},async testEmail(){this.loading=!0;const e=await(0,r.call)(this.$tcb,"EMAIL_TEST",{mail:this.emailTestAddress});r.logger.log("邮件测试",e),this.emailTestResult=JSON.stringify(e),this.loading=!1}},mounted(){this.readConfig()}}},4984:function(e,t,n){"use strict";Object.defineProperty(t,"B",{value:!0}),t.A=void 0;var r=n(2509);t.A={data(){return{loading:!1}},methods:{t:r.t,async doExport(e){this.loading=!0;try{const t=await(0,r.call)(this.$tcb,"COMMENT_EXPORT_FOR_ADMIN",{collection:e});t.result.data&&this.downloadJson(`twikoo-${e}.json`,t.result.data)}finally{this.loading=!1}},downloadJson(e,t){const n=t instanceof Object?JSON.stringify(t,null,2):t,r=window.URL||window.webkitURL||window,o=new Blob([n]),i=document.createElementNS("http://www.w3.org/1999/xhtml","a");i.href=r.createObjectURL(o),i.download=e,i.click()}}}},8253:function(e,t,n){"use strict";Object.defineProperty(t,"B",{value:!0}),t.A=void 0;var r=n(2509);t.A={data(){return{loading:!1,source:"",logText:"",warnText:{valine:(0,r.t)("ADMIN_IMPORT_TIP_VALINE"),disqus:(0,r.t)("ADMIN_IMPORT_TIP_DISQUS"),artalk:(0,r.t)("ADMIN_IMPORT_TIP_ARTALK"),artalk2:"",twikoo:""}}},methods:{t:r.t,async uploadFile(){if(!this.source)return void this.log((0,r.t)("ADMIN_IMPORT_SOURCE_REQUIRED"));const e=this.$refs.inputFile.files[0];if(e){this.log((0,r.t)("ADMIN_IMPORT_START")),this.loading=!0;try{if(this.$tcb){const t=await this.$tcb.app.uploadFile({cloudPath:`import/${Date.now()}`,filePath:e,onUploadProgress:e=>{const t=Math.round(100*e.loaded/e.total);this.log(`${(0,r.t)("ADMIN_IMPORT_UPLOADING")}${t}%`)}});this.log(`${(0,r.t)("ADMIN_IMPORT_UPLOADED")}${t.fileID}`),await this.importFile(t.fileID)}else await this.importFileToVercel(e)}catch(t){console.error(t),this.log(t.message)}this.loading=!1}else this.log((0,r.t)("ADMIN_IMPORT_FILE_REQUIRED"))},async importFile(e){this.log(`${(0,r.t)("ADMIN_IMPORT_IMPORTING")}${this.source}`);const t=await(0,r.call)(this.$tcb,"COMMENT_IMPORT_FOR_ADMIN",{fileId:e,source:this.source});this.logText+=t.result.log,this.log(`${(0,r.t)("ADMIN_IMPORT_IMPORTED")}${this.source}`)},async importFileToVercel(e){this.log(`${(0,r.t)("ADMIN_IMPORT_IMPORTING")}${this.source}`);const t=await(0,r.call)(this.$tcb,"COMMENT_IMPORT_FOR_ADMIN",{file:await(0,r.readAsText)(e),source:this.source});this.logText+=t.result.log,this.log(`${(0,r.t)("ADMIN_IMPORT_IMPORTED")}${this.source}`)},log(e){this.logText+=`${(new Date).toLocaleString()} ${e}\n`,this.$nextTick(this.scrollLogToBottom)},scrollLogToBottom(){if(this.$refs.logTextArea){const e=this.$refs.logTextArea.$refs.textarea;e.scrollTop=e.scrollHeight}}}}},4636:function(e,t,n){"use strict";var r=n(6553)["default"];Object.defineProperty(t,"B",{value:!0}),t.A=void 0;var o=r(n(8093)),i=n(2570),s=n(2509),a=r(n(9587));t.A={props:{config:Object,avatar:String,nick:String,mail:String,mailMd5:String,link:String},data(){return{iconUser:a["default"]}},computed:{gravatarCdn(){return this.config&&this.config.GRAVATAR_CDN?this.config.GRAVATAR_CDN:"weavatar.com"},defaultGravatar(){return this.config&&this.config.DEFAULT_GRAVATAR?this.config.DEFAULT_GRAVATAR:`initials&name=${this.nick}`},avatarInner(){if(this.avatar)return this.avatar;if(this.mailMd5)return`https://${this.gravatarCdn}/avatar/${this.mailMd5}?d=${this.defaultGravatar}`;if(this.mail&&(0,s.isQQ)(this.mail))return(0,s.getQQAvatar)(this.mail);if(this.mail){const e="cravatar.cn"===this.gravatarCdn?o["default"]:i.sha256;return`https://${this.gravatarCdn}/avatar/${e((0,s.normalizeMail)(this.mail))}?d=${this.defaultGravatar}`}return""}},methods:{onClick(){this.$emit("click"),this.link&&(window.open((0,s.convertLink)(this.link),"_blank").opener=null)}}}},7336:function(e,t,n){"use strict";var r=n(6553)["default"];Object.defineProperty(t,"B",{value:!0}),t.A=void 0;var o=n(2509),i=r(n(8011)),s=r(n(1645)),a=r(n(8273)),c=r(n(2531)),l=r(n(9396)),u=r(n(6937)),d=r(n(8974)),h=r(n(7397)),p=r(n(58)),f=r(n(824)),m=r(n(740)),g=r(n(3793)),_=r(n(7051)),v=r(n(9039)),y=r(n(3982));const b={win:c["default"],mac:l["default"],ipad:l["default"],iphone:l["default"],ios:l["default"],android:u["default"],ubuntu:h["default"],linux:d["default"]},w={edge:_["default"],chrome:p["default"],firefox:f["default"],safari:m["default"],explorer:g["default"],ie:g["default"]};t.A={name:"tk-comment",components:{TkAction:i["default"],TkAvatar:s["default"],TkSubmit:a["default"]},data(){return{pid:"",like:0,liked:!1,disliked:!1,ups:0,downs:0,likeLoading:!1,isExpanded:!1,hasExpand:!1,isContentExpanded:!1,hasContentExpand:!1,isLogin:!1}},props:{comment:Object,replyId:String,replying:Boolean,config:Object},computed:{displayCreated(){return(0,o.timeago)(this.comment.created)},jsonTimestamp(){return new Date(this.comment.created).toJSON()},localeTime(){return new Date(this.comment.created).toLocaleString()},iconOs(){return this.getIconBy(this.comment.os,b)},iconBrowser(){return this.getIconBy(this.comment.browser,w)},iconLocation:()=>y["default"],showExpand(){return this.hasExpand&&!this.isExpanded},showCollapse(){return this.hasExpand&&this.isExpanded},showContentExpand(){return this.hasContentExpand&&!this.isContentExpanded},showContentCollapse(){return this.hasContentExpand&&this.isContentExpanded},convertedLink(){return(0,o.convertLink)(this.comment.link)}},methods:{t:o.t,getIconBy(e,t){const n=e.toLowerCase();for(const r in t)if(-1!==n.indexOf(r))return t[r];return v["default"]},showExpandIfNeed(){this.comment.replies&&this.comment.replies.length>0&&this.$refs["tk-replies"]&&(this.hasExpand=this.$refs["tk-replies"].scrollHeight>236)},showContentExpandIfNeed(){this.hasContentExpand=this.hasContentExpand||this.$refs["tk-content"].scrollHeight>500},showContentExpandIfNeedAfterImagesLoaded(){this.$refs["tk-content"].querySelectorAll("img").forEach(e=>{e.onload=this.showContentExpandIfNeed})},scrollToComment(){-1!==window.location.hash.indexOf(this.comment.id)&&(this.$refs["tk-comment"].scrollIntoView({behavior:"smooth"}),this.$emit("expand"))},scrollToPid(e){const t=document.getElementById(e);t&&t.scrollIntoView({behavior:"smooth",block:"center"})},async onLike(){this.likeLoading||(this.likeLoading=!0,await(0,o.call)(this.$tcb,"COMMENT_LIKE",{id:this.comment.id,type:"up"}),this.liked?this.ups--:(this.ups++,this.disliked&&this.downs--),this.liked=!this.liked,this.disliked=!1,this.likeLoading=!1)},async onDislike(){this.likeLoading||(this.likeLoading=!0,await(0,o.call)(this.$tcb,"COMMENT_LIKE",{id:this.comment.id,type:"down"}),this.disliked?this.downs--:(this.downs++,this.liked&&this.ups--),this.disliked=!this.disliked,this.liked=!1,this.likeLoading=!1)},onReply(e){this.pid=e,this.$emit("reply",this.comment.id)},async onDelete(){if(!confirm((0,o.t)("COMMENT_DELETE_CONFIRM")))return;const{result:e}=await(0,o.call)(this.$tcb,"COMMENT_DELETE_FOR_USER",{id:this.comment.id});e.code?alert(e.message):this.$emit("load")},onReplyReply(e){this.pid=e,e?this.$emit("reply",this.comment.id):this.$emit("reply","")},onCancel(){this.pid="",this.$emit("reply","")},onLoad(){this.pid="",this.$emit("reply",""),this.$emit("load"),this.onExpand()},onRefreshed(){this.$emit("refreshed"),this.$nextTick(()=>{this.comment.replies&&this.comment.replies.length>0&&this.$refs["tk-replies"]&&this.$refs["tk-replies"].lastElementChild.scrollIntoView({behavior:"smooth",block:"center"})})},onExpand(){this.isExpanded=!0},onCollapse(){this.isExpanded=!1},onContentExpand(){this.isContentExpanded=!0},onContentCollapse(){this.isContentExpanded=!1},async checkAuth(){if(this.$tcb){const e=await this.$tcb.auth.getCurrenUser();this.isLogin="CUSTOM"===e.loginType}else this.isLogin=this.$twikoo.serverConfig&&this.$twikoo.serverConfig.IS_ADMIN},handleSpam(e){this.setComment({isSpam:e})},handleTop(e){this.setComment({top:e})},popupLightbox(e){if("true"!==this.$twikoo.serverConfig.LIGHTBOX)return;const{target:t}=e;if("IMG"===t.tagName&&!t.classList.contains("tk-owo-emotion")){const e=document.createElement("div");e.className="tk-lightbox";const n=document.createElement("img");n.className="tk-lightbox-image",n.src=t.src,e.appendChild(n),e.addEventListener("click",()=>{document.body.removeChild(e)}),document.body.appendChild(e)}},async setComment(e){this.loading=!0,await(0,o.call)(this.$tcb,"COMMENT_SET_FOR_ADMIN",{id:this.comment.id,set:e}),this.loading=!1,Object.assign(this.comment,e)}},mounted(){this.$nextTick(this.showContentExpandIfNeed),this.$nextTick(this.showContentExpandIfNeedAfterImagesLoaded),this.$nextTick(this.showExpandIfNeed),this.$nextTick(this.scrollToComment),this.$nextTick(()=>{(0,o.renderLinks)(this.$refs.comment),(0,o.renderMath)(this.$refs.comment,this.$twikoo.katex)}),this.checkAuth()},watch:{"comment.like":{handler:function(e){this.like=this.comment.like},immediate:!0},"comment.ups":{handler:function(e){this.ups=this.comment.ups,this.liked=this.comment.liked},immediate:!0},"comment.downs":{handler:function(e){this.downs=this.comment.downs,this.disliked=this.comment.disliked},immediate:!0},"config.HIGHLIGHT":{handler:function(e){"true"===e&&this.$nextTick(()=>{(0,o.renderCode)(this.$refs.comment,this.config.HIGHLIGHT_THEME,this.config.HIGHLIGHT_PLUGIN)})},immediate:!0}}}},4233:function(e,t,n){"use strict";var r=n(6553)["default"];Object.defineProperty(t,"B",{value:!0}),t.A=void 0;var o=r(n(504)),i=r(n(9966)),s=r(n(495)),a=r(n(1058)),c=n(2509),l=n(8897),u=r(n(9502)),d=r(n(8273));t.A={components:{TkSubmit:d["default"],TkComment:u["default"]},props:{showAdminEntry:Boolean},data(){return{loading:!0,loadingMore:!1,errorMessage:"",config:{},comments:[],showExpand:!0,count:0,replyId:"",loadedPages:1,currentSort:"newest",searchInput:"",searchKeyword:"",showSearch:!1,requestVersion:0,iconSetting:o["default"],iconRefresh:i["default"],iconSearch:s["default"]}},methods:{t:c.t,async initConfig(){const e=await(0,c.call)(this.$tcb,"GET_CONFIG");e&&e.result&&e.result.config&&(this.config=e.result.config,a["default"].prototype.$twikoo.serverConfig=e.result.config)},async initComments(){const e=++this.requestVersion;this.loading=!0,this.errorMessage="";const t={url:(0,c.getUrl)(this.$twikoo.path),sort:this.currentSort,keyword:this.searchKeyword};this.searchKeyword&&(t.page=1),await this.getComments(t),e===this.requestVersion&&(this.loading=!1)},resetComments(){this.comments=[],this.loadedPages=1},search(){const e=this.searchInput.trim();this.searchInput=e,this.searchKeyword!==e&&(this.searchKeyword=e,this.resetComments(),this.initComments())},clearSearch(){this.searchKeyword&&(this.searchKeyword="",this.resetComments(),this.initComments())},toggleSearch(){this.showSearch=!this.showSearch,this.showSearch&&this.$nextTick(()=>this.$refs.searchInputRef&&this.$refs.searchInputRef.focus())},refresh(){this.resetComments(),this.initComments()},async refreshPreservingState(){const e=++this.requestVersion;this.loading=!0,this.errorMessage="";try{const e=(0,c.getUrl)(this.$twikoo.path),t=this.loadedPages,n={url:e,sort:this.currentSort,keyword:this.searchKeyword};if(this.searchKeyword&&(n.page=1),!(await this.getComments(n)))return;for(let r=2;r<=t&&await this.loadNextPage(e,r);r++);}finally{e===this.requestVersion&&(this.loading=!1)}e===this.requestVersion&&this.$emit("refreshed")},setSort(e){this.currentSort!==e&&(this.currentSort=e,this.resetComments(),this.initComments())},async onExpand(){if(!this.loadingMore){this.loadingMore=!0,this.loadedPages++;try{const e=(0,c.getUrl)(this.$twikoo.path);await this.loadNextPage(e,this.loadedPages)}finally{this.loadingMore=!1}}},getOldestCreated(){let e=Infinity;for(const t of this.comments)!t.top&&t.created<e&&(e=t.created);return e===Infinity?undefined:e},async loadNextPage(e,t=this.loadedPages){if(this.searchKeyword)return this.getComments({url:e,page:t,sort:this.currentSort,keyword:this.searchKeyword});const n=this.getOldestCreated();return n!==undefined&&this.getComments({url:e,before:n,sort:this.currentSort,keyword:this.searchKeyword})},onCommentLoaded(){"function"==typeof this.$twikoo.onCommentLoaded&&this.$twikoo.onCommentLoaded()},async getComments(e){const t=this.requestVersion;try{const n=await(0,c.call)(this.$tcb,"COMMENT_GET",e);if(t!==this.requestVersion)return!1;if(n&&n.result&&n.result.message)return this.errorMessage=n.result.message,!1;if(n&&n.result&&n.result.data)return this.comments=e.before||e.page>1?this.comments.concat(n.result.data):n.result.data,this.showExpand=n.result.more,this.count=n.result.count||this.comments.length||0,this.$nextTick(this.onCommentLoaded),!0}catch(n){t===this.requestVersion&&(this.errorMessage=n.message)}return!1},onReply(e){this.replyId=e},openAdmin(){this.$emit("admin")}},mounted(){this.initConfig(),this.initComments(),l.app.$on("configUpdated",this.initConfig)}}},2950:function(e,t,n){"use strict";Object.defineProperty(t,"B",{value:!0}),t.A=void 0;var r=n(3115);t.A={data(){return{version:r.version}}}},254:function(e,t,n){"use strict";Object.defineProperty(t,"B",{value:!0}),t.A=void 0;var r=n(8897),o=n(2509),i=n(9533);const s=/^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/;t.A={props:{nick:String,mail:String,link:String,config:Object},data(){return{metaInputs:[{key:"nick",locale:(0,o.t)("META_INPUT_NICK"),name:"nick",type:"text"},{key:"mail",locale:(0,o.t)("META_INPUT_MAIL"),name:"mail",type:"email"},{key:"link",locale:(0,o.t)("META_INPUT_LINK"),name:"link",type:"text"}],metaData:{nick:"",mail:"",link:""}}},computed:{displayedFields(){const e=this.config.DISPLAYED_FIELDS;return{nick:!e||-1!==e.indexOf("nick"),mail:!e||-1!==e.indexOf("mail"),link:!e||-1!==e.indexOf("link")}},displayedInputs(){return this.metaInputs.filter(e=>!!this.displayedFields[e.key])},requiredFields(){const e=this.config.REQUIRED_FIELDS;return{nick:!e||-1!==e.indexOf("nick"),mail:!e||-1!==e.indexOf("mail"),link:!!e&&-1!==e.indexOf("link")}}},methods:{t:o.t,initMeta(){const e=localStorage.getItem("twikoo");if(e){const t=JSON.parse(e);this.metaData.nick=t.nick,this.metaData.mail=t.mail,this.metaData.link=t.link}this.updateMeta()},updateMeta(){localStorage.setItem("twikoo",JSON.stringify(this.metaData)),this.$emit("update",{meta:this.metaData,valid:this.checkValid()})},checkValid(){const e=s.test(this.metaData.mail);return(this.metaData.nick||!this.requiredFields.nick)&&(e||!this.requiredFields.mail)&&(this.metaData.link||!this.requiredFields.link)},checkQQ(){if((0,o.isQQ)(this.metaData.nick)){const e=this.metaData.nick.replace(/@qq.com/gi,""),t=`${e}@qq.com`;this.metaData.mail=t,this.getQQNick(e)}},clearNickIfFromQQInput(){(0,o.isQQ)(this.metaData.nick)&&(this.metaData.nick="",this.updateMeta())},async getQQNick(e){try{const{result:t}=await(0,i.call)(null,"GET_QQ_NICK",{qq:e});t&&t.nick?(this.metaData.nick=t.nick,this.updateMeta()):this.clearNickIfFromQQInput()}catch(t){console.warn("获取 QQ 昵称失败:",t),this.clearNickIfFromQQInput()}},checkAdminCrypt(){const e=this.$root.$children[0],t=!this.config.HIDE_ADMIN_CRYPT||this.config.HIDE_ADMIN_CRYPT===this.metaData.nick;e.onShowAdminEntry(t)},onMetaChange(){this.checkQQ(),this.updateMeta(),this.checkAdminCrypt()}},watch:{nick(e){this.metaData.nick=e},mail(e){this.metaData.mail=e},link(e){this.metaData.link=e},requiredFields:{handler(e,t){this.$emit("update",{meta:this.metaData,valid:this.checkValid()})},deep:!0},"config.VERSION"(){this.checkAdminCrypt()}},mounted(){r.app.$on("initMeta",this.initMeta),this.initMeta()}}},2103:function(e,t,n){"use strict";Object.defineProperty(t,"B",{value:!0}),t.A=void 0;var r=n(2509);t.A={props:{pageSize:{type:Number,"default":10},total:{type:Number,"default":0}},data(){return{currentPage:1,userInput:0,userPageSize:0,pagers:[]}},computed:{pageCount(){return Math.ceil(this.total/this.pageSize)}},methods:{t:r.t,generatePager(){const e=[];for(let t=1;t<=this.pageCount;t++)Math.abs(this.currentPage-t)<3||1===t||t===this.pageCount?e.push({title:`${t}`,page:t}):Math.abs(this.currentPage-t)<4&&e.push({title:"...",page:t});this.pagers=e},currentChange(e){this.currentPage=parseInt(e),this.currentPage>this.pageCount&&(this.currentPage=this.pageCount),this.userInput=0,this.$emit("current-change",this.currentPage),this.generatePager()},pageSizeChamge(e){this.userPageSize=0,this.$emit("page-size-change",parseInt(e))},handleInput(e){this.userInput=parseInt(e)},handleInputPageSize(e){this.userPageSize=parseInt(e)}},watch:{total:{handler(){this.generatePager()},immediate:!0},pageSize:{handler(){this.generatePager()}}}}},3543:function(e,t,n){"use strict";var r=n(6553)["default"];Object.defineProperty(t,"B",{value:!0}),t.A=void 0;var o=r(n(1423)),i=r(n(5171)),s=r(n(6639)),a=r(n(6041)),c=r(n(1464)),l=n(2509),u=r(n(1645)),d=r(n(5878));const h=["apng","bmp","gif","jpeg","jpg","png","svg","tif","tiff","webp"];t.A={components:{TkAvatar:u["default"],TkMetaInput:d["default"]},directives:{Clickoutside:a["default"]},props:{replyId:String,pid:String,config:Object},data(){return{isSending:!1,isPreviewing:!1,isMetaValid:!1,errorMessage:"",owo:null,comment:"",commentHtml:"",nick:"",mail:"",link:"",turnstileLoad:null,geeTestLoad:null,geeTestCaptchaObj:null,capLoad:null,iconMarkdown:o["default"],iconEmotion:s["default"],iconImage:i["default"]}},computed:{captchaProvider(){return"undefined"!=typeof this.config.CAPTCHA_PROVIDER?this.config.CAPTCHA_PROVIDER:this.config.TURNSTILE_SITE_KEY?"Turnstile":this.config.GEETEST_CAPTCHA_ID?"Geetest":this.config.CAP_API_ENDPOINT||this.config.CAP_BUILTIN?"Cap":""},showImage(){return!!this.config.IMAGE_CDN},canSend(){return!this.isSending&&!!this.isMetaValid&&!!this.comment.trim()},textarea(){return this.$refs.textarea?this.$refs.textarea.$refs.textarea:null},commentPlaceholder(){let e=this.$twikoo.placeholder||this.config.COMMENT_PLACEHOLDER||"";return e=e.replace(/<br>/g,"\n"),e},maxLength(){let e=parseInt(this.config.LIMIT_LENGTH);return Number.isNaN(e)&&(e=500),e>0?e:null}},methods:{t:l.t,initDraft(){const e=localStorage.getItem("twikoo-draft");!this.comment&&e&&(this.comment=e)},saveDraft(){localStorage.setItem("twikoo-draft",this.comment)},async initOwo(){if("true"===this.config.SHOW_EMOTION){const e=await(0,l.initOwoEmotions)(this.config.EMOTION_CDN||"https://owo.imaegoo.com/owo.json");this.owo=new c["default"]({logo:s["default"],container:this.$refs.owo,target:this.textarea,odata:e,position:"down",maxHeight:"250px"}),l.marked.setOptions({odata:(0,l.initMarkedOwo)(e)})}},initTurnstile(){"Turnstile"===this.captchaProvider&&this.config.TURNSTILE_SITE_KEY&&(window.turnstile?this.turnstileLoad=Promise.resolve():this.turnstileLoad=new Promise((e,t)=>{const n=document.createElement("script");n.src="https://challenges.cloudflare.com/turnstile/v0/api.js?render=explicit",n.onload=e,n.onerror=t,this.$refs["turnstile-container"].appendChild(n)}))},getTurnstileToken(){return new Promise((e,t)=>{this.turnstileLoad.then(()=>{const n=window.turnstile.render(this.$refs.turnstile,{sitekey:this.config.TURNSTILE_SITE_KEY,callback:t=>{e(t),setTimeout(()=>{window.turnstile.remove(n)},1e3)},"error-callback":t,"expired-callback":()=>{t(new Error("验证码已过期,请重试"))},"timeout-callback":()=>{t(new Error("验证码超时,请重试"))}})})})},initGeeTest(){"Geetest"===this.captchaProvider&&this.config.GEETEST_CAPTCHA_ID&&(window.initGeetest4?this.geeTestLoad=Promise.resolve():this.geeTestLoad=new Promise((e,t)=>{const n=document.createElement("script");n.src="https://static.geetest.com/v4/gt4.js",n.onload=e,n.onerror=t,this.$refs["geetest-container"].appendChild(n)}))},getGeeTestToken(){return new Promise((e,t)=>{this.geeTestLoad.then(()=>{window.initGeetest4({captchaId:this.config.GEETEST_CAPTCHA_ID,product:"bind",language:"zho"},n=>{this.geeTestCaptchaObj=n,n.onReady(()=>{n.showCaptcha()}).onSuccess(()=>{const t=n.getValidate();e({geeTestLotNumber:t.lot_number,geeTestCaptchaOutput:t.captcha_output,geeTestPassToken:t.pass_token,geeTestGenTime:t.gen_time})}).onError(e=>{t(e)}).onClose(()=>{t(new Error("验证已取消"))})})})})},initCap(){"Cap"===this.captchaProvider&&(this.config.CAP_API_ENDPOINT||this.config.CAP_BUILTIN)&&(this.config.CAP_BUILTIN&&(window.CAP_CUSTOM_FETCH=async(e,t={})=>{const n=String(e),r=t.body?JSON.parse(t.body):{};try{if(n.includes("challenge")){const e=await(0,l.call)(this.$tcb,"CAP_CHALLENGE"),t=e.result||e;return t.code&&0!==t.code?{ok:!1,json:async()=>({error:t.message||"challenge_failed"})}:{ok:!0,json:async()=>({challenge:t.challenge,token:t.token,expires:t.expires})}}if(n.includes("redeem")){const e=await(0,l.call)(this.$tcb,"CAP_REDEEM",r),t=e.result||e;return t.code&&0!==t.code&&!0!==t.success?{ok:!0,json:async()=>({success:!1,error:t.message||t.error||"redeem_failed"})}:{ok:!0,json:async()=>({success:t.success,token:t.token,expires:t.expires,message:t.message,error:t.error||t.message})}}return{ok:!1,json:async()=>({error:"unknown_cap_path"})}}catch(o){return{ok:!1,json:async()=>({error:o.message||"cap_fetch_failed"})}}}),window.Cap||customElements.get("cap-widget")?this.capLoad=Promise.resolve():this.capLoad=new Promise((e,t)=>{const n=document.createElement("script");n.src="https://cdn.jsdmirror.com/npm/@cap.js/widget",n.onload=e,n.onerror=t,this.$refs["cap-container"].appendChild(n)}))},getCapToken(){return new Promise((e,t)=>{this.capLoad.then(()=>{const n=document.createElement("cap-widget");n.setAttribute("id","cap-widget");const r=this.config.CAP_BUILTIN?"/":this.config.CAP_API_ENDPOINT;n.setAttribute("data-cap-api-endpoint",r),this.$refs["cap-container"].appendChild(n);const o=()=>{n&&n.parentNode&&n.parentNode.removeChild(n)};n.solve().then(n=>{o(),n.success?e(n.token):t(new Error("Cap验证失败"))})["catch"](e=>{o(),t(e)})})["catch"](t)})},onMetaUpdate(e){this.nick=e.meta.nick,this.mail=e.meta.mail,this.link=e.meta.link,this.isMetaValid=e.valid},cancel(){this.$emit("cancel")},onCommentInput(){this.saveDraft(),this.updatePreview()},preview(){this.isPreviewing=!this.isPreviewing,this.updatePreview()},updatePreview(){this.isPreviewing&&(this.commentHtml=(0,l.marked)(this.comment),this.$nextTick(()=>{(0,l.renderLinks)(this.$refs["comment-preview"]),(0,l.renderMath)(this.$refs["comment-preview"],this.$twikoo.katex),"true"===this.config.HIGHLIGHT&&(0,l.renderCode)(this.$refs["comment-preview"],this.config.HIGHLIGHT_THEME,this.config.HIGHLIGHT_PLUGIN)}))},async send(){this.isSending=!0;try{if(this.comment.match(new RegExp(`!\\[${(0,l.t)("IMAGE_UPLOAD_PLACEHOLDER")}.+\\]\\(\\)`)))throw new Error((0,l.t)("IMAGE_UPLOAD_PLEASE_WAIT"));const e={nick:this.nick,mail:this.mail,link:this.link,ua:await(0,l.getUserAgent)(),url:(0,l.getUrl)(this.$twikoo.path),href:(0,l.getHref)(this.$twikoo.href),comment:(0,l.marked)(this.comment),pid:this.pid?this.pid:this.replyId,rid:this.replyId};if("Turnstile"===this.captchaProvider&&this.config.TURNSTILE_SITE_KEY&&(e.turnstileToken=await this.getTurnstileToken()),"Geetest"===this.captchaProvider&&this.config.GEETEST_CAPTCHA_ID){const t=await this.getGeeTestToken();e.geeTestLotNumber=t.geeTestLotNumber,e.geeTestCaptchaOutput=t.geeTestCaptchaOutput,e.geeTestPassToken=t.geeTestPassToken,e.geeTestGenTime=t.geeTestGenTime}"Cap"===this.captchaProvider&&(this.config.CAP_API_ENDPOINT||this.config.CAP_BUILTIN)&&(e.capToken=await this.getCapToken());const t=await(0,l.call)(this.$tcb,"COMMENT_SUBMIT",e);if(!(t&&t.result&&t.result.id))throw new Error(t.result.message);this.comment="",this.errorMessage="",this.$emit("load"),this.saveDraft()}catch(e){l.logger.error("评论失败",e),this.errorMessage=`${(0,l.t)("COMMENT_FAILED")}: ${e&&e.message}`}finally{this.isSending=!1}},addEventListener(){this.textarea&&this.textarea.addEventListener("paste",this.onPaste)},onBgImgChange(){this.config.COMMENT_BG_IMG&&this.textarea&&(this.textarea.style["background-image"]=`url("${this.config.COMMENT_BG_IMG}")`)},onEnterKeyUp(e){(e.ctrlKey||e.metaKey)&&this.canSend&&(this.send(),e.preventDefault())},closeOwo(){this.owo&&this.owo.container.classList.contains("OwO-open")&&this.owo.toggle()},openSelectImage(){this.$refs.inputFile.click()},onSelectImage(){const e=this.$refs.inputFile.files[0];this.parseAndUploadPhoto(e)},onPaste(e){if(!e.clipboardData)return;let t;e.clipboardData.files[0]?t=e.clipboardData.files[0]:e.clipboardData.items[0]&&e.clipboardData.items[0].getAsFile()&&(t=e.clipboardData.items[0].getAsFile()),this.parseAndUploadPhoto(t)},async parseAndUploadPhoto(e){if(!e||!this.showImage)return;const t=e.name.split("."),n=t.length>1?t.pop():"";if(-1===h.indexOf(n.toLowerCase()))return;const r=this.getUserId(),o=`${Date.now()}-${r}`,i=t.join("."),s="image/gif"===e.type,a=s?i:i+".webp",c=s?n:"webp";this.paste(this.getImagePlaceholder(o,c));const u=this.config.IMAGE_CDN,d=await this.compressImage(e);!this.$tcb||u&&"qcloud"!==u?u?this.uploadPhotoToThirdParty(o,a,c,d):this.uploadFailed(o,c,(0,l.t)("IMAGE_UPLOAD_FAILED_NO_CONF")):this.uploadPhotoToQcloud(o,a,c,d)},getUserId(){return this.$tcb?this.$tcb.auth.currentUser.uid:localStorage.getItem("twikoo-access-token")},async compressImage(e){return"image/gif"===e.type?e:new Promise(t=>{const n=new FileReader;n.onload=n=>{const r=new Image;r.onload=()=>{const n=document.createElement("canvas");let o=r.width,i=r.height;const s=1920;(o>s||i>s)&&(o>i?(i=i*s/o,o=s):(o=o*s/i,i=s)),n.width=o,n.height=i,n.getContext("2d").drawImage(r,0,0,o,i);const a="image/webp",c=e.name.replace(/\.[^.]+$/,".webp");n.toBlob(e=>{t(new File([e],c,{type:a}))},a,.85)},r.src=n.target.result},n.readAsDataURL(e)})},async uploadPhotoToQcloud(e,t,n,r){try{const o=await this.$tcb.app.uploadFile({cloudPath:`tk-img/${e}.${n}`,filePath:r});if(o.fileID){const r=(await this.$tcb.app.getTempFileURL({fileList:[o.fileID]})).fileList[0].tempFileURL;this.uploadCompleted(e,t,n,r)}}catch(o){console.error(o),this.uploadFailed(e,n,o.message)}},async uploadPhotoToThirdParty(e,t,n,r){try{const{result:o}=await(0,l.call)(this.$tcb,"UPLOAD_IMAGE",{fileName:t,photo:await(0,l.blobToDataURL)(r)});o.data?this.uploadCompleted(e,t,n,o.data.url):1041===o.code?this.uploadFailed(e,n,(0,l.t)("IMAGE_UPLOAD_NSFW")):(console.error(o),this.uploadFailed(e,n,o.err))}catch(o){console.error(o),this.uploadFailed(e,n,o.message)}},uploadCompleted(e,t,n,r){t=t.replace(/[[\]]/g,"_"),this.comment=this.comment.replace(this.getImagePlaceholder(e,n),`![${t}](${r})`),this.$refs.inputFile.value=""},uploadFailed(e,t,n){this.comment=this.comment.replace(this.getImagePlaceholder(e,t),`_${(0,l.t)("IMAGE_UPLOAD_FAILED")}: ${n}_`),this.$refs.inputFile.value=""},paste(e){if(document.selection)document.selection.createRange().text=e;else if(this.textarea.selectionStart||0===this.textarea.selectionStart){const t=this.textarea.selectionStart,n=this.textarea.selectionEnd;this.comment=this.comment.substring(0,t)+e+this.comment.substring(n,this.comment.length),this.textarea.selectionStart=t+e.length,this.textarea.selectionEnd=t+e.length}else this.comment+=e},getImagePlaceholder(e,t){return`![${(0,l.t)("IMAGE_UPLOAD_PLACEHOLDER")} ${e}.${t}]()`}},mounted(){this.pid&&this.$refs["tk-submit"].scrollIntoView({behavior:"instant",block:"center"}),this.initDraft(),this.initOwo(),this.addEventListener(),this.onBgImgChange(),this.initTurnstile(),this.initGeeTest(),this.initCap()},watch:{"config.SHOW_EMOTION":function(){this.initOwo()},"config.COMMENT_BG_IMG":function(){this.onBgImgChange()},"config.TURNSTILE_SITE_KEY":function(){this.initTurnstile()},"config.GEETEST_CAPTCHA_ID":function(){this.initGeeTest()},"config.CAP_API_ENDPOINT":function(){this.initCap()},captchaProvider:function(){this.initTurnstile(),this.initGeeTest(),this.initCap()}}}},1058:function(e,t,n){"use strict";e.exports=n(9003)},9003:function(e,t,n){"use strict";const r=Object.freeze({}),o=Array.isArray;function i(e){return null==e}function s(e){return null!=e}function a(e){return!0===e}function c(e){return"string"==typeof e||"number"==typeof e||"symbol"==typeof e||"boolean"==typeof e}function l(e){return"function"==typeof e}function u(e){return null!==e&&"object"==typeof e}const d=Object.prototype.toString;function h(e){return"[object Object]"===d.call(e)}function p(e){const t=parseFloat(String(e));return t>=0&&Math.floor(t)===t&&isFinite(e)}function f(e){return s(e)&&"function"==typeof e.then&&"function"==typeof e["catch"]}function m(e){return null==e?"":Array.isArray(e)||h(e)&&e.toString===d?JSON.stringify(e,g,2):String(e)}function g(e,t){return t&&t.__v_isRef?t.value:t}function _(e){const t=parseFloat(e);return isNaN(t)?e:t}function v(e,t){const n=Object.create(null),r=e.split(",");for(let o=0;o<r.length;o++)n[r[o]]=!0;return t?e=>n[e.toLowerCase()]:e=>n[e]}const y=v("key,ref,slot,slot-scope,is");function b(e,t){const n=e.length;if(n){if(t===e[n-1])return void(e.length=n-1);const r=e.indexOf(t);if(r>-1)return e.splice(r,1)}}const w=Object.prototype.hasOwnProperty;function S(e,t){return w.call(e,t)}function I(e){const t=Object.create(null);return function(n){return t[n]||(t[n]=e(n))}}const E=/-(\w)/g,k=I(e=>e.replace(E,(e,t)=>t?t.toUpperCase():"")),C=I(e=>e.charAt(0).toUpperCase()+e.slice(1)),T=/\B([A-Z])/g,A=I(e=>e.replace(T,"-$1").toLowerCase()),O=Function.prototype.bind?function(e,t){return e.bind(t)}:function(e,t){function n(n){const r=arguments.length;return r?r>1?e.apply(t,arguments):e.call(t,n):e.call(t)}return n._length=e.length,n};function P(e,t){t=t||0;let n=e.length-t;const r=new Array(n);for(;n--;)r[n]=e[n+t];return r}function M(e,t){for(const n in t)e[n]=t[n];return e}function N(e){const t={};for(let n=0;n<e.length;n++)e[n]&&M(t,e[n]);return t}function x(e,t,n){}const R=(e,t,n)=>!1,L=e=>e;function D(e,t){if(e===t)return!0;const n=u(e),r=u(t);if(!n||!r)return!n&&!r&&String(e)===String(t);try{const n=Array.isArray(e),r=Array.isArray(t);if(n&&r)return e.length===t.length&&e.every((e,n)=>D(e,t[n]));if(e instanceof Date&&t instanceof Date)return e.getTime()===t.getTime();if(n||r)return!1;{const n=Object.keys(e),r=Object.keys(t);return n.length===r.length&&n.every(n=>D(e[n],t[n]))}}catch(e){return!1}}function $(e,t){for(let n=0;n<e.length;n++)if(D(e[n],t))return n;return-1}function U(e){let t=!1;return function(){t||(t=!0,e.apply(this,arguments))}}function j(e,t){return e===t?0===e&&1/e!=1/t:e==e||t==t}const F="data-server-rendered",G=["component","directive","filter"],q=["beforeCreate","created","beforeMount","mounted","beforeUpdate","updated","beforeDestroy","destroyed","activated","deactivated","errorCaptured","serverPrefetch","renderTracked","renderTriggered"];var B={optionMergeStrategies:Object.create(null),silent:!1,productionTip:!1,devtools:!1,performance:!1,errorHandler:null,warnHandler:null,ignoredElements:[],keyCodes:Object.create(null),isReservedTag:R,isReservedAttr:R,isUnknownElement:R,getTagNamespace:x,parsePlatformTagName:L,mustUseProp:R,async:!0,_lifecycleHooks:q};function H(e){const t=(e+"").charCodeAt(0);return 36===t||95===t}function z(e,t,n,r){Object.defineProperty(e,t,{value:n,enumerable:!!r,writable:!0,configurable:!0})}const V=new RegExp(`[^${/a-zA-Z\u00B7\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u037D\u037F-\u1FFF\u200C-\u200D\u203F-\u2040\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD/.source}.$_\\d]`),W="__proto__"in{},K="undefined"!=typeof window,Q=K&&window.navigator.userAgent.toLowerCase(),X=Q&&/msie|trident/.test(Q),Y=Q&&Q.indexOf("msie 9.0")>0,J=Q&&Q.indexOf("edge/")>0;Q&&Q.indexOf("android");const Z=Q&&/iphone|ipad|ipod|ios/.test(Q);Q&&/chrome\/\d+/.test(Q),Q&&/phantomjs/.test(Q);const ee=Q&&Q.match(/firefox\/(\d+)/),te={}.watch;let ne,re=!1;if(K)try{const e={};Object.defineProperty(e,"passive",{get(){re=!0}}),window.addEventListener("test-passive",null,e)}catch(r){}const oe=()=>(void 0===ne&&(ne=!K&&"undefined"!=typeof n.g&&n.g.process&&"server"===n.g.process.env.VUE_ENV),ne),ie=K&&window.__VUE_DEVTOOLS_GLOBAL_HOOK__;function se(e){return"function"==typeof e&&/native code/.test(e.toString())}const ae="undefined"!=typeof Symbol&&se(Symbol)&&"undefined"!=typeof Reflect&&se(Reflect.ownKeys);let ce;ce="undefined"!=typeof Set&&se(Set)?Set:class{constructor(){this.set=Object.create(null)}has(e){return!0===this.set[e]}add(e){this.set[e]=!0}clear(){this.set=Object.create(null)}};let le=null;function ue(e=null){e||le&&le._scope.off(),le=e,e&&e._scope.on()}class de{constructor(e,t,n,r,o,i,s,a){this.tag=e,this.data=t,this.children=n,this.text=r,this.elm=o,this.ns=void 0,this.context=i,this.fnContext=void 0,this.fnOptions=void 0,this.fnScopeId=void 0,this.key=t&&t.key,this.componentOptions=s,this.componentInstance=void 0,this.parent=void 0,this.raw=!1,this.isStatic=!1,this.isRootInsert=!0,this.isComment=!1,this.isCloned=!1,this.isOnce=!1,this.asyncFactory=a,this.asyncMeta=void 0,this.isAsyncPlaceholder=!1}get child(){return this.componentInstance}}const he=(e="")=>{const t=new de;return t.text=e,t.isComment=!0,t};function pe(e){return new de(void 0,void 0,void 0,String(e))}function fe(e){const t=new de(e.tag,e.data,e.children&&e.children.slice(),e.text,e.elm,e.context,e.componentOptions,e.asyncFactory);return t.ns=e.ns,t.isStatic=e.isStatic,t.key=e.key,t.isComment=e.isComment,t.fnContext=e.fnContext,t.fnOptions=e.fnOptions,t.fnScopeId=e.fnScopeId,t.asyncMeta=e.asyncMeta,t.isCloned=!0,t}let me=0;const ge=[];class _e{constructor(){this._pending=!1,this.id=me++,this.subs=[]}addSub(e){this.subs.push(e)}removeSub(e){this.subs[this.subs.indexOf(e)]=null,this._pending||(this._pending=!0,ge.push(this))}depend(e){_e.target&&_e.target.addDep(this)}notify(e){const t=this.subs.filter(e=>e);for(let n=0,r=t.length;n<r;n++)t[n].update()}}_e.target=null;const ve=[];function ye(e){ve.push(e),_e.target=e}function be(){ve.pop(),_e.target=ve[ve.length-1]}const we=Array.prototype,Se=Object.create(we);["push","pop","shift","unshift","splice","sort","reverse"].forEach(function(e){const t=we[e];z(Se,e,function(...n){const r=t.apply(this,n),o=this.__ob__;let i;switch(e){case"push":case"unshift":i=n;break;case"splice":i=n.slice(2)}return i&&o.observeArray(i),o.dep.notify(),r})});const Ie=Object.getOwnPropertyNames(Se),Ee={};let ke=!0;function Ce(e){ke=e}const Te={notify:x,depend:x,addSub:x,removeSub:x};class Ae{constructor(e,t=!1,n=!1){if(this.value=e,this.shallow=t,this.mock=n,this.dep=n?Te:new _e,this.vmCount=0,z(e,"__ob__",this),o(e)){if(!n)if(W)e.__proto__=Se;else for(let t=0,n=Ie.length;t<n;t++){const n=Ie[t];z(e,n,Se[n])}t||this.observeArray(e)}else{const r=Object.keys(e);for(let o=0;o<r.length;o++)Pe(e,r[o],Ee,void 0,t,n)}}observeArray(e){for(let t=0,n=e.length;t<n;t++)Oe(e[t],!1,this.mock)}}function Oe(e,t,n){return e&&S(e,"__ob__")&&e.__ob__ instanceof Ae?e.__ob__:!ke||!n&&oe()||!o(e)&&!h(e)||!Object.isExtensible(e)||e.__v_skip||Fe(e)||e instanceof de?void 0:new Ae(e,t,n)}function Pe(e,t,n,r,i,s,a=!1){const c=new _e,l=Object.getOwnPropertyDescriptor(e,t);if(l&&!1===l.configurable)return;const u=l&&l.get,d=l&&l.set;u&&!d||n!==Ee&&2!==arguments.length||(n=e[t]);let h=i?n&&n.__ob__:Oe(n,!1,s);return Object.defineProperty(e,t,{enumerable:!0,configurable:!0,get:function(){const t=u?u.call(e):n;return _e.target&&(c.depend(),h&&(h.dep.depend(),o(t)&&xe(t))),Fe(t)&&!i?t.value:t},set:function(t){const r=u?u.call(e):n;if(j(r,t)){if(d)d.call(e,t);else{if(u)return;if(!i&&Fe(r)&&!Fe(t))return void(r.value=t);n=t}h=i?t&&t.__ob__:Oe(t,!1,s),c.notify()}}}),c}function Me(e,t,n){if(Ue(e))return;const r=e.__ob__;return o(e)&&p(t)?(e.length=Math.max(e.length,t),e.splice(t,1,n),r&&!r.shallow&&r.mock&&Oe(n,!1,!0),n):t in e&&!(t in Object.prototype)?(e[t]=n,n):e._isVue||r&&r.vmCount?n:r?(Pe(r.value,t,n,void 0,r.shallow,r.mock),r.dep.notify(),n):(e[t]=n,n)}function Ne(e,t){if(o(e)&&p(t))return void e.splice(t,1);const n=e.__ob__;e._isVue||n&&n.vmCount||Ue(e)||S(e,t)&&(delete e[t],n&&n.dep.notify())}function xe(e){for(let t,n=0,r=e.length;n<r;n++)t=e[n],t&&t.__ob__&&t.__ob__.dep.depend(),o(t)&&xe(t)}function Re(e){return Le(e,!0),z(e,"__v_isShallow",!0),e}function Le(e,t){Ue(e)||Oe(e,t,oe())}function De(e){return Ue(e)?De(e.__v_raw):!(!e||!e.__ob__)}function $e(e){return!(!e||!e.__v_isShallow)}function Ue(e){return!(!e||!e.__v_isReadonly)}const je="__v_isRef";function Fe(e){return!(!e||!0!==e.__v_isRef)}function Ge(e,t){if(Fe(e))return e;const n={};return z(n,je,!0),z(n,"__v_isShallow",t),z(n,"dep",Pe(n,"value",e,null,t,oe())),n}function qe(e,t,n){Object.defineProperty(e,n,{enumerable:!0,configurable:!0,get:()=>{const e=t[n];if(Fe(e))return e.value;{const t=e&&e.__ob__;return t&&t.dep.depend(),e}},set:e=>{const r=t[n];Fe(r)&&!Fe(e)?r.value=e:t[n]=e}})}function Be(e,t,n){const r=e[t];if(Fe(r))return r;const o={get value(){const r=e[t];return void 0===r?n:r},set value(n){e[t]=n}};return z(o,je,!0),o}function He(e){return ze(e,!1)}function ze(e,t){if(!h(e))return e;if(Ue(e))return e;const n=t?"__v_rawToShallowReadonly":"__v_rawToReadonly",r=e[n];if(r)return r;const o=Object.create(Object.getPrototypeOf(e));z(e,n,o),z(o,"__v_isReadonly",!0),z(o,"__v_raw",e),Fe(e)&&z(o,je,!0),(t||$e(e))&&z(o,"__v_isShallow",!0);const i=Object.keys(e);for(let s=0;s<i.length;s++)Ve(o,e,i[s],t);return o}function Ve(e,t,n,r){Object.defineProperty(e,n,{enumerable:!0,configurable:!0,get(){const e=t[n];return r||!h(e)?e:He(e)},set(){}})}const We="watcher",Ke=`${We} callback`,Qe=`${We} getter`,Xe=`${We} cleanup`;function Ye(e,t){return Ze(e,null,{flush:"post"})}const Je={};function Ze(e,t,{immediate:n,deep:i,flush:s="pre",onTrack:a,onTrigger:c}=r){const u=le,d=(e,t,n=null)=>{const r=Ht(e,null,n,u,t);return i&&r&&r.__ob__&&r.__ob__.dep.depend(),r};let h,p,f=!1,m=!1;if(Fe(e)?(h=()=>e.value,f=$e(e)):De(e)?(h=()=>(e.__ob__.dep.depend(),e),i=!0):o(e)?(m=!0,f=e.some(e=>De(e)||$e(e)),h=()=>e.map(e=>Fe(e)?e.value:De(e)?(e.__ob__.dep.depend(),gn(e)):l(e)?d(e,Qe):void 0)):h=l(e)?t?()=>d(e,Qe):()=>{if(!u||!u._isDestroyed)return p&&p(),d(e,We,[g])}:x,t&&i){const e=h;h=()=>gn(e())}let g=e=>{p=_.onStop=()=>{d(e,Xe)}};if(oe())return g=x,t?n&&d(t,Ke,[h(),m?[]:void 0,g]):h(),x;const _=new bn(le,h,x,{lazy:!0});_.noRecurse=!t;let v=m?[]:Je;return _.run=()=>{if(_.active)if(t){const e=_.get();(i||f||(m?e.some((e,t)=>j(e,v[t])):j(e,v)))&&(p&&p(),d(t,Ke,[e,v===Je?void 0:v,g]),v=e)}else _.get()},"sync"===s?_.update=_.run:"post"===s?(_.post=!0,_.update=()=>Gn(_)):_.update=()=>{if(u&&u===le&&!u._isMounted){const e=u._preWatchers||(u._preWatchers=[]);e.indexOf(_)<0&&e.push(_)}else Gn(_)},t?n?_.run():v=_.get():"post"===s&&u?u.$once("hook:mounted",()=>_.get()):_.get(),()=>{_.teardown()}}let et;class tt{constructor(e=!1){this.detached=e,this.active=!0,this.effects=[],this.cleanups=[],this.parent=et,!e&&et&&(this.index=(et.scopes||(et.scopes=[])).push(this)-1)}run(e){if(this.active){const t=et;try{return et=this,e()}finally{et=t}}}on(){et=this}off(){et=this.parent}stop(e){if(this.active){let t,n;for(t=0,n=this.effects.length;t<n;t++)this.effects[t].teardown();for(t=0,n=this.cleanups.length;t<n;t++)this.cleanups[t]();if(this.scopes)for(t=0,n=this.scopes.length;t<n;t++)this.scopes[t].stop(!0);if(!this.detached&&this.parent&&!e){const e=this.parent.scopes.pop();e&&e!==this&&(this.parent.scopes[this.index]=e,e.index=this.index)}this.parent=void 0,this.active=!1}}}function nt(){return et}function rt(e){const t=e._provided,n=e.$parent&&e.$parent._provided;return n===t?e._provided=Object.create(n):t}const ot=I(e=>{const t="&"===e.charAt(0),n="~"===(e=t?e.slice(1):e).charAt(0),r="!"===(e=n?e.slice(1):e).charAt(0);return{name:e=r?e.slice(1):e,once:n,capture:r,passive:t}});function it(e,t){function n(){const e=n.fns;if(!o(e))return Ht(e,null,arguments,t,"v-on handler");{const n=e.slice();for(let e=0;e<n.length;e++)Ht(n[e],null,arguments,t,"v-on handler")}}return n.fns=e,n}function st(e,t,n,r,o,s){let c,l,u,d;for(c in e)l=e[c],u=t[c],d=ot(c),i(l)||(i(u)?(i(l.fns)&&(l=e[c]=it(l,s)),a(d.once)&&(l=e[c]=o(d.name,l,d.capture)),n(d.name,l,d.capture,d.passive,d.params)):l!==u&&(u.fns=l,e[c]=u));for(c in t)i(e[c])&&(d=ot(c),r(d.name,t[c],d.capture))}function at(e,t,n){let r;e instanceof de&&(e=e.data.hook||(e.data.hook={}));const o=e[t];function c(){n.apply(this,arguments),b(r.fns,c)}i(o)?r=it([c]):s(o.fns)&&a(o.merged)?(r=o,r.fns.push(c)):r=it([o,c]),r.merged=!0,e[t]=r}function ct(e,t,n,r,o){if(s(t)){if(S(t,n))return e[n]=t[n],o||delete t[n],!0;if(S(t,r))return e[n]=t[r],o||delete t[r],!0}return!1}function lt(e){return c(e)?[pe(e)]:o(e)?dt(e):void 0}function ut(e){return s(e)&&s(e.text)&&!1===e.isComment}function dt(e,t){const n=[];let r,l,u,d;for(r=0;r<e.length;r++)l=e[r],i(l)||"boolean"==typeof l||(u=n.length-1,d=n[u],o(l)?l.length>0&&(l=dt(l,`${t||""}_${r}`),ut(l[0])&&ut(d)&&(n[u]=pe(d.text+l[0].text),l.shift()),n.push.apply(n,l)):c(l)?ut(d)?n[u]=pe(d.text+l):""!==l&&n.push(pe(l)):ut(l)&&ut(d)?n[u]=pe(d.text+l.text):(a(e._isVList)&&s(l.tag)&&i(l.key)&&s(t)&&(l.key=`__vlist${t}_${r}__`),n.push(l)));return n}function ht(e,t){let n,r,i,a,c=null;if(o(e)||"string"==typeof e)for(c=new Array(e.length),n=0,r=e.length;n<r;n++)c[n]=t(e[n],n);else if("number"==typeof e)for(c=new Array(e),n=0;n<e;n++)c[n]=t(n+1,n);else if(u(e))if(ae&&e[Symbol.iterator]){c=[];const n=e[Symbol.iterator]();let r=n.next();for(;!r.done;)c.push(t(r.value,c.length)),r=n.next()}else for(i=Object.keys(e),c=new Array(i.length),n=0,r=i.length;n<r;n++)a=i[n],c[n]=t(e[a],a,n);return s(c)||(c=[]),c._isVList=!0,c}function pt(e,t,n,r){const o=this.$scopedSlots[e];let i;o?(n=n||{},r&&(n=M(M({},r),n)),i=o(n)||(l(t)?t():t)):i=this.$slots[e]||(l(t)?t():t);const s=n&&n.slot;return s?this.$createElement("template",{slot:s},i):i}function ft(e){return ir(this.$options,"filters",e)||L}function mt(e,t){return o(e)?-1===e.indexOf(t):e!==t}function gt(e,t,n,r,o){const i=B.keyCodes[t]||n;return o&&r&&!B.keyCodes[t]?mt(o,r):i?mt(i,e):r?A(r)!==t:void 0===e}function _t(e,t,n,r,i){if(n&&u(n)){let s;o(n)&&(n=N(n));for(const o in n){if("class"===o||"style"===o||y(o))s=e;else{const n=e.attrs&&e.attrs.type;s=r||B.mustUseProp(t,n,o)?e.domProps||(e.domProps={}):e.attrs||(e.attrs={})}const a=k(o),c=A(o);a in s||c in s||(s[o]=n[o],!i)||((e.on||(e.on={}))[`update:${o}`]=function(e){n[o]=e})}}return e}function vt(e,t){const n=this._staticTrees||(this._staticTrees=[]);let r=n[e];return r&&!t||(r=n[e]=this.$options.staticRenderFns[e].call(this._renderProxy,this._c,this),bt(r,`__static__${e}`,!1)),r}function yt(e,t,n){return bt(e,`__once__${t}${n?`_${n}`:""}`,!0),e}function bt(e,t,n){if(o(e))for(let r=0;r<e.length;r++)e[r]&&"string"!=typeof e[r]&&wt(e[r],`${t}_${r}`,n);else wt(e,t,n)}function wt(e,t,n){e.isStatic=!0,e.key=t,e.isOnce=n}function St(e,t){if(t&&h(t)){const n=e.on=e.on?M({},e.on):{};for(const e in t){const r=n[e],o=t[e];n[e]=r?[].concat(r,o):o}}return e}function It(e,t,n,r){t=t||{$stable:!n};for(let i=0;i<e.length;i++){const r=e[i];o(r)?It(r,t,n):r&&(r.proxy&&(r.fn.proxy=!0),t[r.key]=r.fn)}return r&&(t.$key=r),t}function Et(e,t){for(let n=0;n<t.length;n+=2){const r=t[n];"string"==typeof r&&r&&(e[t[n]]=t[n+1])}return e}function kt(e,t){return"string"==typeof e?t+e:e}function Ct(e){e._o=yt,e._n=_,e._s=m,e._l=ht,e._t=pt,e._q=D,e._i=$,e._m=vt,e._f=ft,e._k=gt,e._b=_t,e._v=pe,e._e=he,e._u=It,e._g=St,e._d=Et,e._p=kt}function Tt(e,t){if(!e||!e.length)return{};const n={};for(let r=0,o=e.length;r<o;r++){const o=e[r],i=o.data;if(i&&i.attrs&&i.attrs.slot&&delete i.attrs.slot,o.context!==t&&o.fnContext!==t||!i||null==i.slot)(n["default"]||(n["default"]=[])).push(o);else{const e=i.slot,t=n[e]||(n[e]=[]);"template"===o.tag?t.push.apply(t,o.children||[]):t.push(o)}}for(const r in n)n[r].every(At)&&delete n[r];return n}function At(e){return e.isComment&&!e.asyncFactory||" "===e.text}function Ot(e){return e.isComment&&e.asyncFactory}function Pt(e,t,n,o){let i;const s=Object.keys(n).length>0,a=t?!!t.$stable:!s,c=t&&t.$key;if(t){if(t._normalized)return t._normalized;if(a&&o&&o!==r&&c===o.$key&&!s&&!o.$hasNormal)return o;i={};for(const r in t)t[r]&&"$"!==r[0]&&(i[r]=Mt(e,n,r,t[r]))}else i={};for(const r in n)r in i||(i[r]=Nt(n,r));return t&&Object.isExtensible(t)&&(t._normalized=i),z(i,"$stable",a),z(i,"$key",c),z(i,"$hasNormal",s),i}function Mt(e,t,n,r){const i=function(){const t=le;ue(e);let n=arguments.length?r.apply(null,arguments):r({});n=n&&"object"==typeof n&&!o(n)?[n]:lt(n);const i=n&&n[0];return ue(t),n&&(!i||1===n.length&&i.isComment&&!Ot(i))?void 0:n};return r.proxy&&Object.defineProperty(t,n,{get:i,enumerable:!0,configurable:!0}),i}function Nt(e,t){return()=>e[t]}function xt(e){return{get attrs(){if(!e._attrsProxy){const t=e._attrsProxy={};z(t,"_v_attr_proxy",!0),Rt(t,e.$attrs,r,e,"$attrs")}return e._attrsProxy},get listeners(){return e._listenersProxy||Rt(e._listenersProxy={},e.$listeners,r,e,"$listeners"),e._listenersProxy},get slots(){return function(e){return e._slotsProxy||Dt(e._slotsProxy={},e.$scopedSlots),e._slotsProxy}(e)},emit:O(e.$emit,e),expose(t){t&&Object.keys(t).forEach(n=>qe(e,t,n))}}}function Rt(e,t,n,r,o){let i=!1;for(const s in t)s in e?t[s]!==n[s]&&(i=!0):(i=!0,Lt(e,s,r,o));for(const s in e)s in t||(i=!0,delete e[s]);return i}function Lt(e,t,n,r){Object.defineProperty(e,t,{enumerable:!0,configurable:!0,get:()=>n[r][t]})}function Dt(e,t){for(const n in t)e[n]=t[n];for(const n in e)n in t||delete e[n]}function $t(){const e=le;return e._setupContext||(e._setupContext=xt(e))}let Ut=null;function jt(e,t){return(e.__esModule||ae&&"Module"===e[Symbol.toStringTag])&&(e=e["default"]),u(e)?t.extend(e):e}function Ft(e){if(o(e))for(let t=0;t<e.length;t++){const n=e[t];if(s(n)&&(s(n.componentOptions)||Ot(n)))return n}}function Gt(e,t,n,r,i,d){return(o(n)||c(n))&&(i=r,r=n,n=void 0),a(d)&&(i=2),function(e,t,n,r,i){if(s(n)&&s(n.__ob__))return he();if(s(n)&&s(n.is)&&(t=n.is),!t)return he();let a,c;if(o(r)&&l(r[0])&&((n=n||{}).scopedSlots={"default":r[0]},r.length=0),2===i?r=lt(r):1===i&&(r=function(e){for(let t=0;t<e.length;t++)if(o(e[t]))return Array.prototype.concat.apply([],e);return e}(r)),"string"==typeof t){let o;c=e.$vnode&&e.$vnode.ns||B.getTagNamespace(t),a=B.isReservedTag(t)?new de(B.parsePlatformTagName(t),n,r,void 0,void 0,e):n&&n.pre||!s(o=ir(e.$options,"components",t))?new de(t,n,r,void 0,void 0,e):Qn(o,n,e,r,t)}else a=Qn(t,n,e,r);return o(a)?a:s(a)?(s(c)&&qt(a,c),s(n)&&function(e){u(e.style)&&gn(e.style),u(e["class"])&&gn(e["class"])}(n),a):he()}(e,t,n,r,i)}function qt(e,t,n){if(e.ns=t,"foreignObject"===e.tag&&(t=void 0,n=!0),s(e.children))for(let r=0,o=e.children.length;r<o;r++){const o=e.children[r];s(o.tag)&&(i(o.ns)||a(n)&&"svg"!==o.tag)&&qt(o,t,n)}}function Bt(e,t,n){ye();try{if(t){let r=t;for(;r=r.$parent;){const o=r.$options.errorCaptured;if(o)for(let i=0;i<o.length;i++)try{if(!1===o[i].call(r,e,t,n))return}catch(e){zt(e,r,"errorCaptured hook")}}}zt(e,t,n)}finally{be()}}function Ht(e,t,n,r,o){let i;try{i=n?e.apply(t,n):e.call(t),i&&!i._isVue&&f(i)&&!i._handled&&(i["catch"](e=>Bt(e,r,o+" (Promise/async)")),i._handled=!0)}catch(e){Bt(e,r,o)}return i}function zt(e,t,n){if(B.errorHandler)try{return B.errorHandler.call(null,e,t,n)}catch(t){t!==e&&Vt(t)}Vt(e)}function Vt(e,t,n){if(!K||"undefined"==typeof console)throw e;console.error(e)}let Wt=!1;const Kt=[];let Qt,Xt=!1;function Yt(){Xt=!1;const e=Kt.slice(0);Kt.length=0;for(let t=0;t<e.length;t++)e[t]()}if("undefined"!=typeof Promise&&se(Promise)){const e=Promise.resolve();Qt=()=>{e.then(Yt),Z&&setTimeout(x)},Wt=!0}else if(X||"undefined"==typeof MutationObserver||!se(MutationObserver)&&"[object MutationObserverConstructor]"!==MutationObserver.toString())Qt="undefined"!=typeof setImmediate&&se(setImmediate)?()=>{setImmediate(Yt)}:()=>{setTimeout(Yt,0)};else{let e=1;const t=new MutationObserver(Yt),n=document.createTextNode(String(e));t.observe(n,{characterData:!0}),Qt=()=>{e=(e+1)%2,n.data=String(e)},Wt=!0}function Jt(e,t){let n;if(Kt.push(()=>{if(e)try{e.call(t)}catch(e){Bt(e,t,"nextTick")}else n&&n(t)}),Xt||(Xt=!0,Qt()),!e&&"undefined"!=typeof Promise)return new Promise(e=>{n=e})}function Zt(e){return(t,n=le)=>{if(n)return function(e,t,n){const r=e.$options;r[t]=tr(r[t],n)}(n,e,t)}}const en=Zt("beforeMount"),tn=Zt("mounted"),nn=Zt("beforeUpdate"),rn=Zt("updated"),on=Zt("beforeDestroy"),sn=Zt("destroyed"),an=Zt("activated"),cn=Zt("deactivated"),ln=Zt("serverPrefetch"),un=Zt("renderTracked"),dn=Zt("renderTriggered"),hn=Zt("errorCaptured"),pn="2.7.16";var fn=Object.freeze({__proto__:null,version:pn,defineComponent:function(e){return e},ref:function(e){return Ge(e,!1)},shallowRef:function(e){return Ge(e,!0)},isRef:Fe,toRef:Be,toRefs:function(e){const t=o(e)?new Array(e.length):{};for(const n in e)t[n]=Be(e,n);return t},unref:function(e){return Fe(e)?e.value:e},proxyRefs:function(e){if(De(e))return e;const t={},n=Object.keys(e);for(let r=0;r<n.length;r++)qe(t,e,n[r]);return t},customRef:function(e){const t=new _e,{get:n,set:r}=e(()=>{t.depend()},()=>{t.notify()}),o={get value(){return n()},set value(e){r(e)}};return z(o,je,!0),o},triggerRef:function(e){e.dep&&e.dep.notify()},reactive:function(e){return Le(e,!1),e},isReactive:De,isReadonly:Ue,isShallow:$e,isProxy:function(e){return De(e)||Ue(e)},shallowReactive:Re,markRaw:function(e){return Object.isExtensible(e)&&z(e,"__v_skip",!0),e},toRaw:function Li(e){const t=e&&e.__v_raw;return t?Li(t):e},readonly:He,shallowReadonly:function(e){return ze(e,!0)},computed:function(e,t){let n,r;const o=l(e);o?(n=e,r=x):(n=e.get,r=e.set);const i=oe()?null:new bn(le,n,x,{lazy:!0}),s={effect:i,get value(){return i?(i.dirty&&i.evaluate(),_e.target&&i.depend(),i.value):n()},set value(e){r(e)}};return z(s,je,!0),z(s,"__v_isReadonly",o),s},watch:function(e,t,n){return Ze(e,t,n)},watchEffect:function(e,t){return Ze(e,null,t)},watchPostEffect:Ye,watchSyncEffect:function(e,t){return Ze(e,null,{flush:"sync"})},EffectScope:tt,effectScope:function(e){return new tt(e)},onScopeDispose:function(e){et&&et.cleanups.push(e)},getCurrentScope:nt,provide:function(e,t){le&&(rt(le)[e]=t)},inject:function(e,t,n=!1){const r=le;if(r){const o=r.$parent&&r.$parent._provided;if(o&&e in o)return o[e];if(arguments.length>1)return n&&l(t)?t.call(r):t}},h:function(e,t,n){return Gt(le,e,t,n,2,!0)},getCurrentInstance:function(){return le&&{proxy:le}},useSlots:function(){return $t().slots},useAttrs:function(){return $t().attrs},useListeners:function(){return $t().listeners},mergeDefaults:function(e,t){const n=o(e)?e.reduce((e,t)=>(e[t]={},e),{}):e;for(const r in t){const e=n[r];e?o(e)||l(e)?n[r]={type:e,"default":t[r]}:e["default"]=t[r]:null===e&&(n[r]={"default":t[r]})}return n},nextTick:Jt,set:Me,del:Ne,useCssModule:function(e="$style"){return le&&le[e]||r},useCssVars:function(e){if(!K)return;const t=le;t&&Ye(()=>{const n=t.$el,r=e(t,t._setupProxy);if(n&&1===n.nodeType){const e=n.style;for(const t in r)e.setProperty(`--${t}`,r[t])}})},defineAsyncComponent:function(e){l(e)&&(e={loader:e});const{loader:t,loadingComponent:n,errorComponent:r,delay:o=200,timeout:i,suspensible:s=!1,onError:a}=e;let c=null,u=0;const d=()=>{let e;return c||(e=c=t()["catch"](e=>{if(e=e instanceof Error?e:new Error(String(e)),a)return new Promise((t,n)=>{a(e,()=>t((u++,c=null,d())),()=>n(e),u+1)});throw e}).then(t=>e!==c&&c?c:(t&&(t.__esModule||"Module"===t[Symbol.toStringTag])&&(t=t["default"]),t)))};return()=>({component:d(),delay:o,timeout:i,error:r,loading:n})},onBeforeMount:en,onMounted:tn,onBeforeUpdate:nn,onUpdated:rn,onBeforeUnmount:on,onUnmounted:sn,onActivated:an,onDeactivated:cn,onServerPrefetch:ln,onRenderTracked:un,onRenderTriggered:dn,onErrorCaptured:function(e,t=le){hn(e,t)}});const mn=new ce;function gn(e){return _n(e,mn),mn.clear(),e}function _n(e,t){let n,r;const i=o(e);if(!(!i&&!u(e)||e.__v_skip||Object.isFrozen(e)||e instanceof de)){if(e.__ob__){const n=e.__ob__.dep.id;if(t.has(n))return;t.add(n)}if(i)for(n=e.length;n--;)_n(e[n],t);else if(Fe(e))_n(e.value,t);else for(r=Object.keys(e),n=r.length;n--;)_n(e[r[n]],t)}}let vn,yn=0;class bn{constructor(e,t,n,r,o){!function(e,t=et){t&&t.active&&t.effects.push(e)}(this,et&&!et._vm?et:e?e._scope:void 0),(this.vm=e)&&o&&(e._watcher=this),r?(this.deep=!!r.deep,this.user=!!r.user,this.lazy=!!r.lazy,this.sync=!!r.sync,this.before=r.before):this.deep=this.user=this.lazy=this.sync=!1,this.cb=n,this.id=++yn,this.active=!0,this.post=!1,this.dirty=this.lazy,this.deps=[],this.newDeps=[],this.depIds=new ce,this.newDepIds=new ce,this.expression="",l(t)?this.getter=t:(this.getter=function(e){if(V.test(e))return;const t=e.split(".");return function(e){for(let n=0;n<t.length;n++){if(!e)return;e=e[t[n]]}return e}}(t),this.getter||(this.getter=x)),this.value=this.lazy?void 0:this.get()}get(){let e;ye(this);const t=this.vm;try{e=this.getter.call(t,t)}catch(e){if(!this.user)throw e;Bt(e,t,`getter for watcher "${this.expression}"`)}finally{this.deep&&gn(e),be(),this.cleanupDeps()}return e}addDep(e){const t=e.id;this.newDepIds.has(t)||(this.newDepIds.add(t),this.newDeps.push(e),this.depIds.has(t)||e.addSub(this))}cleanupDeps(){let e=this.deps.length;for(;e--;){const t=this.deps[e];this.newDepIds.has(t.id)||t.removeSub(this)}let t=this.depIds;this.depIds=this.newDepIds,this.newDepIds=t,this.newDepIds.clear(),t=this.deps,this.deps=this.newDeps,this.newDeps=t,this.newDeps.length=0}update(){this.lazy?this.dirty=!0:this.sync?this.run():Gn(this)}run(){if(this.active){const e=this.get();if(e!==this.value||u(e)||this.deep){const t=this.value;if(this.value=e,this.user){const n=`callback for watcher "${this.expression}"`;Ht(this.cb,this.vm,[e,t],this.vm,n)}else this.cb.call(this.vm,e,t)}}}evaluate(){this.value=this.get(),this.dirty=!1}depend(){let e=this.deps.length;for(;e--;)this.deps[e].depend()}teardown(){if(this.vm&&!this.vm._isBeingDestroyed&&b(this.vm._scope.effects,this),this.active){let e=this.deps.length;for(;e--;)this.deps[e].removeSub(this);this.active=!1,this.onStop&&this.onStop()}}}function wn(e,t){vn.$on(e,t)}function Sn(e,t){vn.$off(e,t)}function In(e,t){const n=vn;return function r(){null!==t.apply(null,arguments)&&n.$off(e,r)}}function En(e,t,n){vn=e,st(t,n||{},wn,Sn,In,e),vn=void 0}let kn=null;function Cn(e){const t=kn;return kn=e,()=>{kn=t}}function Tn(e){for(;e&&(e=e.$parent);)if(e._inactive)return!0;return!1}function An(e,t){if(t){if(e._directInactive=!1,Tn(e))return}else if(e._directInactive)return;if(e._inactive||null===e._inactive){e._inactive=!1;for(let t=0;t<e.$children.length;t++)An(e.$children[t]);Pn(e,"activated")}}function On(e,t){if(!(t&&(e._directInactive=!0,Tn(e))||e._inactive)){e._inactive=!0;for(let t=0;t<e.$children.length;t++)On(e.$children[t]);Pn(e,"deactivated")}}function Pn(e,t,n,r=!0){ye();const o=le,i=nt();r&&ue(e);const s=e.$options[t],a=`${t} hook`;if(s)for(let c=0,l=s.length;c<l;c++)Ht(s[c],e,n||null,e,a);e._hasHookEvent&&e.$emit("hook:"+t),r&&(ue(o),i&&i.on()),be()}const Mn=[],Nn=[];let xn={},Rn=!1,Ln=!1,Dn=0,$n=0,Un=Date.now;if(K&&!X){const e=window.performance;e&&"function"==typeof e.now&&Un()>document.createEvent("Event").timeStamp&&(Un=()=>e.now())}const jn=(e,t)=>{if(e.post){if(!t.post)return 1}else if(t.post)return-1;return e.id-t.id};function Fn(){let e,t;for($n=Un(),Ln=!0,Mn.sort(jn),Dn=0;Dn<Mn.length;Dn++)e=Mn[Dn],e.before&&e.before(),t=e.id,xn[t]=null,e.run();const n=Nn.slice(),r=Mn.slice();Dn=Mn.length=Nn.length=0,xn={},Rn=Ln=!1,function(e){for(let t=0;t<e.length;t++)e[t]._inactive=!0,An(e[t],!0)}(n),function(e){let t=e.length;for(;t--;){const n=e[t],r=n.vm;r&&r._watcher===n&&r._isMounted&&!r._isDestroyed&&Pn(r,"updated")}}(r),(()=>{for(let e=0;e<ge.length;e++){const t=ge[e];t.subs=t.subs.filter(e=>e),t._pending=!1}ge.length=0})(),ie&&B.devtools&&ie.emit("flush")}function Gn(e){const t=e.id;if(null==xn[t]&&(e!==_e.target||!e.noRecurse)){if(xn[t]=!0,Ln){let t=Mn.length-1;for(;t>Dn&&Mn[t].id>e.id;)t--;Mn.splice(t+1,0,e)}else Mn.push(e);Rn||(Rn=!0,Jt(Fn))}}function qn(e,t){if(e){const n=Object.create(null),r=ae?Reflect.ownKeys(e):Object.keys(e);for(let o=0;o<r.length;o++){const i=r[o];if("__ob__"===i)continue;const s=e[i].from;if(s in t._provided)n[i]=t._provided[s];else if("default"in e[i]){const r=e[i]["default"];n[i]=l(r)?r.call(t):r}}return n}}function Bn(e,t,n,i,s){const c=s.options;let l;S(i,"_uid")?(l=Object.create(i),l._original=i):(l=i,i=i._original);const u=a(c._compiled),d=!u;this.data=e,this.props=t,this.children=n,this.parent=i,this.listeners=e.on||r,this.injections=qn(c.inject,i),this.slots=()=>(this.$slots||Pt(i,e.scopedSlots,this.$slots=Tt(n,i)),this.$slots),Object.defineProperty(this,"scopedSlots",{enumerable:!0,get(){return Pt(i,e.scopedSlots,this.slots())}}),u&&(this.$options=c,this.$slots=this.slots(),this.$scopedSlots=Pt(i,e.scopedSlots,this.$slots)),c._scopeId?this._c=(e,t,n,r)=>{const s=Gt(l,e,t,n,r,d);return s&&!o(s)&&(s.fnScopeId=c._scopeId,s.fnContext=i),s}:this._c=(e,t,n,r)=>Gt(l,e,t,n,r,d)}function Hn(e,t,n,r,o){const i=fe(e);return i.fnContext=n,i.fnOptions=r,t.slot&&((i.data||(i.data={})).slot=t.slot),i}function zn(e,t){for(const n in t)e[k(n)]=t[n]}function Vn(e){return e.name||e.__name||e._componentTag}Ct(Bn.prototype);const Wn={init(e,t){if(e.componentInstance&&!e.componentInstance._isDestroyed&&e.data.keepAlive){const t=e;Wn.prepatch(t,t)}else(e.componentInstance=function(e,t){const n={_isComponent:!0,_parentVnode:e,parent:t},r=e.data.inlineTemplate;return s(r)&&(n.render=r.render,n.staticRenderFns=r.staticRenderFns),new e.componentOptions.Ctor(n)}(e,kn)).$mount(t?e.elm:void 0,t)},prepatch(e,t){const n=t.componentOptions;!function(e,t,n,o,i){const s=o.data.scopedSlots,a=e.$scopedSlots,c=!!(s&&!s.$stable||a!==r&&!a.$stable||s&&e.$scopedSlots.$key!==s.$key||!s&&e.$scopedSlots.$key);let l=!!(i||e.$options._renderChildren||c);const u=e.$vnode;e.$options._parentVnode=o,e.$vnode=o,e._vnode&&(e._vnode.parent=o),e.$options._renderChildren=i;const d=o.data.attrs||r;e._attrsProxy&&Rt(e._attrsProxy,d,u.data&&u.data.attrs||r,e,"$attrs")&&(l=!0),e.$attrs=d,n=n||r;const h=e.$options._parentListeners;if(e._listenersProxy&&Rt(e._listenersProxy,n,h||r,e,"$listeners"),e.$listeners=e.$options._parentListeners=n,En(e,n,h),t&&e.$options.props){Ce(!1);const n=e._props,r=e.$options._propKeys||[];for(let o=0;o<r.length;o++){const i=r[o],s=e.$options.props;n[i]=sr(i,s,t,e)}Ce(!0),e.$options.propsData=t}l&&(e.$slots=Tt(i,o.context),e.$forceUpdate())}(t.componentInstance=e.componentInstance,n.propsData,n.listeners,t,n.children)},insert(e){const{context:t,componentInstance:n}=e;var r;n._isMounted||(n._isMounted=!0,Pn(n,"mounted")),e.data.keepAlive&&(t._isMounted?((r=n)._inactive=!1,Nn.push(r)):An(n,!0))},destroy(e){const{componentInstance:t}=e;t._isDestroyed||(e.data.keepAlive?On(t,!0):t.$destroy())}},Kn=Object.keys(Wn);function Qn(e,t,n,c,l){if(i(e))return;const d=n.$options._base;if(u(e)&&(e=d.extend(e)),"function"!=typeof e)return;let h;if(i(e.cid)&&(h=e,e=function(e,t){if(a(e.error)&&s(e.errorComp))return e.errorComp;if(s(e.resolved))return e.resolved;const n=Ut;if(n&&s(e.owners)&&-1===e.owners.indexOf(n)&&e.owners.push(n),a(e.loading)&&s(e.loadingComp))return e.loadingComp;if(n&&!s(e.owners)){const r=e.owners=[n];let o=!0,a=null,c=null;n.$on("hook:destroyed",()=>b(r,n));const l=e=>{for(let t=0,n=r.length;t<n;t++)r[t].$forceUpdate();e&&(r.length=0,null!==a&&(clearTimeout(a),a=null),null!==c&&(clearTimeout(c),c=null))},d=U(n=>{e.resolved=jt(n,t),o?r.length=0:l(!0)}),h=U(t=>{s(e.errorComp)&&(e.error=!0,l(!0))}),p=e(d,h);return u(p)&&(f(p)?i(e.resolved)&&p.then(d,h):f(p.component)&&(p.component.then(d,h),s(p.error)&&(e.errorComp=jt(p.error,t)),s(p.loading)&&(e.loadingComp=jt(p.loading,t),0===p.delay?e.loading=!0:a=setTimeout(()=>{a=null,i(e.resolved)&&i(e.error)&&(e.loading=!0,l(!1))},p.delay||200)),s(p.timeout)&&(c=setTimeout(()=>{c=null,i(e.resolved)&&h(null)},p.timeout)))),o=!1,e.loading?e.loadingComp:e.resolved}}(h,d),void 0===e))return function(e,t,n,r,o){const i=he();return i.asyncFactory=e,i.asyncMeta={data:t,context:n,children:r,tag:o},i}(h,t,n,c,l);t=t||{},br(e),s(t.model)&&function(e,t){const n=e.model&&e.model.prop||"value",r=e.model&&e.model.event||"input";(t.attrs||(t.attrs={}))[n]=t.model.value;const i=t.on||(t.on={}),a=i[r],c=t.model.callback;s(a)?(o(a)?-1===a.indexOf(c):a!==c)&&(i[r]=[c].concat(a)):i[r]=c}(e.options,t);const p=function(e,t){const n=t.options.props;if(i(n))return;const r={},{attrs:o,props:a}=e;if(s(o)||s(a))for(const i in n){const e=A(i);ct(r,a,i,e,!0)||ct(r,o,i,e,!1)}return r}(t,e);if(a(e.options.functional))return function(e,t,n,i,a){const c=e.options,l={},u=c.props;if(s(u))for(const o in u)l[o]=sr(o,u,t||r);else s(n.attrs)&&zn(l,n.attrs),s(n.props)&&zn(l,n.props);const d=new Bn(n,l,a,i,e),h=c.render.call(null,d._c,d);if(h instanceof de)return Hn(h,n,d.parent,c);if(o(h)){const e=lt(h)||[],t=new Array(e.length);for(let r=0;r<e.length;r++)t[r]=Hn(e[r],n,d.parent,c);return t}}(e,p,t,n,c);const m=t.on;if(t.on=t.nativeOn,a(e.options.abstract)){const e=t.slot;t={},e&&(t.slot=e)}!function(e){const t=e.hook||(e.hook={});for(let n=0;n<Kn.length;n++){const e=Kn[n],r=t[e],o=Wn[e];r===o||r&&r._merged||(t[e]=r?Xn(o,r):o)}}(t);const g=Vn(e.options)||l;return new de(`vue-component-${e.cid}${g?`-${g}`:""}`,t,void 0,void 0,void 0,n,{Ctor:e,propsData:p,listeners:m,tag:l,children:c},h)}function Xn(e,t){const n=(n,r)=>{e(n,r),t(n,r)};return n._merged=!0,n}let Yn=x;const Jn=B.optionMergeStrategies;function Zn(e,t,n=!0){if(!t)return e;let r,o,i;const s=ae?Reflect.ownKeys(t):Object.keys(t);for(let a=0;a<s.length;a++)r=s[a],"__ob__"!==r&&(o=e[r],i=t[r],n&&S(e,r)?o!==i&&h(o)&&h(i)&&Zn(o,i):Me(e,r,i));return e}function er(e,t,n){return n?function(){const r=l(t)?t.call(n,n):t,o=l(e)?e.call(n,n):e;return r?Zn(r,o):o}:t?e?function(){return Zn(l(t)?t.call(this,this):t,l(e)?e.call(this,this):e)}:t:e}function tr(e,t){const n=t?e?e.concat(t):o(t)?t:[t]:e;return n?function(e){const t=[];for(let n=0;n<e.length;n++)-1===t.indexOf(e[n])&&t.push(e[n]);return t}(n):n}function nr(e,t,n,r){const o=Object.create(e||null);return t?M(o,t):o}Jn.data=function(e,t,n){return n?er(e,t,n):t&&"function"!=typeof t?e:er(e,t)},q.forEach(e=>{Jn[e]=tr}),G.forEach(function(e){Jn[e+"s"]=nr}),Jn.watch=function(e,t,n,r){if(e===te&&(e=void 0),t===te&&(t=void 0),!t)return Object.create(e||null);if(!e)return t;const i={};M(i,e);for(const s in t){let e=i[s];const n=t[s];e&&!o(e)&&(e=[e]),i[s]=e?e.concat(n):o(n)?n:[n]}return i},Jn.props=Jn.methods=Jn.inject=Jn.computed=function(e,t,n,r){if(!e)return t;const o=Object.create(null);return M(o,e),t&&M(o,t),o},Jn.provide=function(e,t){return e?function(){const n=Object.create(null);return Zn(n,l(e)?e.call(this):e),t&&Zn(n,l(t)?t.call(this):t,!1),n}:t};const rr=function(e,t){return void 0===t?e:t};function or(e,t,n){if(l(t)&&(t=t.options),function(e){const t=e.props;if(!t)return;const n={};let r,i,s;if(o(t))for(r=t.length;r--;)i=t[r],"string"==typeof i&&(s=k(i),n[s]={type:null});else if(h(t))for(const o in t)i=t[o],s=k(o),n[s]=h(i)?i:{type:i};e.props=n}(t),function(e){const t=e.inject;if(!t)return;const n=e.inject={};if(o(t))for(let r=0;r<t.length;r++)n[t[r]]={from:t[r]};else if(h(t))for(const r in t){const e=t[r];n[r]=h(e)?M({from:r},e):{from:e}}}(t),function(e){const t=e.directives;if(t)for(const n in t){const e=t[n];l(e)&&(t[n]={bind:e,update:e})}}(t),!t._base&&(t["extends"]&&(e=or(e,t["extends"],n)),t.mixins))for(let o=0,a=t.mixins.length;o<a;o++)e=or(e,t.mixins[o],n);const r={};let i;for(i in e)s(i);for(i in t)S(e,i)||s(i);function s(o){const i=Jn[o]||rr;r[o]=i(e[o],t[o],n,o)}return r}function ir(e,t,n,r){if("string"!=typeof n)return;const o=e[t];if(S(o,n))return o[n];const i=k(n);if(S(o,i))return o[i];const s=C(i);return S(o,s)?o[s]:o[n]||o[i]||o[s]}function sr(e,t,n,r){const o=t[e],i=!S(n,e);let s=n[e];const a=ur(Boolean,o.type);if(a>-1)if(i&&!S(o,"default"))s=!1;else if(""===s||s===A(e)){const e=ur(String,o.type);(e<0||a<e)&&(s=!0)}if(void 0===s){s=function(e,t,n){if(!S(t,"default"))return;const r=t["default"];return e&&e.$options.propsData&&void 0===e.$options.propsData[n]&&void 0!==e._props[n]?e._props[n]:l(r)&&"Function"!==cr(t.type)?r.call(e):r}(r,o,e);const t=ke;Ce(!0),Oe(s),Ce(t)}return s}const ar=/^\s*function (\w+)/;function cr(e){const t=e&&e.toString().match(ar);return t?t[1]:""}function lr(e,t){return cr(e)===cr(t)}function ur(e,t){if(!o(t))return lr(t,e)?0:-1;for(let n=0,r=t.length;n<r;n++)if(lr(t[n],e))return n;return-1}const dr={enumerable:!0,configurable:!0,get:x,set:x};function hr(e,t,n){dr.get=function(){return this[t][n]},dr.set=function(e){this[t][n]=e},Object.defineProperty(e,n,dr)}function pr(e){const t=e.$options;if(t.props&&function(e,t){const n=e.$options.propsData||{},r=e._props=Re({}),o=e.$options._propKeys=[];!e.$parent||Ce(!1);for(const i in t)o.push(i),Pe(r,i,sr(i,t,n,e),void 0,!0),i in e||hr(e,"_props",i);Ce(!0)}(e,t.props),function(e){const t=e.$options,n=t.setup;if(n){const r=e._setupContext=xt(e);ue(e),ye();const o=Ht(n,null,[e._props||Re({}),r],e,"setup");if(be(),ue(),l(o))t.render=o;else if(u(o))if(e._setupState=o,o.__sfc){const t=e._setupProxy={};for(const e in o)"__sfc"!==e&&qe(t,o,e)}else for(const t in o)H(t)||qe(e,o,t)}}(e),t.methods&&function(e,t){e.$options.props;for(const n in t)e[n]="function"!=typeof t[n]?x:O(t[n],e)}(e,t.methods),t.data)!function(e){let t=e.$options.data;t=e._data=l(t)?function(e,t){ye();try{return e.call(t,t)}catch(e){return Bt(e,t,"data()"),{}}finally{be()}}(t,e):t||{},h(t)||(t={});const n=Object.keys(t),r=e.$options.props;e.$options.methods;let o=n.length;for(;o--;){const t=n[o];r&&S(r,t)||H(t)||hr(e,"_data",t)}const i=Oe(t);i&&i.vmCount++}(e);else{const t=Oe(e._data={});t&&t.vmCount++}t.computed&&function(e,t){const n=e._computedWatchers=Object.create(null),r=oe();for(const o in t){const i=t[o],s=l(i)?i:i.get;r||(n[o]=new bn(e,s||x,x,fr)),o in e||mr(e,o,i)}}(e,t.computed),t.watch&&t.watch!==te&&function(e,t){for(const n in t){const r=t[n];if(o(r))for(let t=0;t<r.length;t++)vr(e,n,r[t]);else vr(e,n,r)}}(e,t.watch)}const fr={lazy:!0};function mr(e,t,n){const r=!oe();l(n)?(dr.get=r?gr(t):_r(n),dr.set=x):(dr.get=n.get?r&&!1!==n.cache?gr(t):_r(n.get):x,dr.set=n.set||x),Object.defineProperty(e,t,dr)}function gr(e){return function(){const t=this._computedWatchers&&this._computedWatchers[e];if(t)return t.dirty&&t.evaluate(),_e.target&&t.depend(),t.value}}function _r(e){return function(){return e.call(this,this)}}function vr(e,t,n,r){return h(n)&&(r=n,n=n.handler),"string"==typeof n&&(n=e[n]),e.$watch(t,n,r)}let yr=0;function br(e){let t=e.options;if(e["super"]){const n=br(e["super"]);if(n!==e.superOptions){e.superOptions=n;const r=function(e){let t;const n=e.options,r=e.sealedOptions;for(const o in n)n[o]!==r[o]&&(t||(t={}),t[o]=n[o]);return t}(e);r&&M(e.extendOptions,r),t=e.options=or(n,e.extendOptions),t.name&&(t.components[t.name]=e)}}return t}function wr(e){this._init(e)}function Sr(e){return e&&(Vn(e.Ctor.options)||e.tag)}function Ir(e,t){return o(e)?e.indexOf(t)>-1:"string"==typeof e?e.split(",").indexOf(t)>-1:(n=e,"[object RegExp]"===d.call(n)&&e.test(t));var n}function Er(e,t){const{cache:n,keys:r,_vnode:o,$vnode:i}=e;for(const s in n){const e=n[s];if(e){const i=e.name;i&&!t(i)&&kr(n,s,r,o)}}i.componentOptions.children=void 0}function kr(e,t,n,r){const o=e[t];!o||r&&o.tag===r.tag||o.componentInstance.$destroy(),e[t]=null,b(n,t)}!function(e){e.prototype._init=function(e){const t=this;t._uid=yr++,t._isVue=!0,t.__v_skip=!0,t._scope=new tt(!0),t._scope.parent=void 0,t._scope._vm=!0,e&&e._isComponent?function(e,t){const n=e.$options=Object.create(e.constructor.options),r=t._parentVnode;n.parent=t.parent,n._parentVnode=r;const o=r.componentOptions;n.propsData=o.propsData,n._parentListeners=o.listeners,n._renderChildren=o.children,n._componentTag=o.tag,t.render&&(n.render=t.render,n.staticRenderFns=t.staticRenderFns)}(t,e):t.$options=or(br(t.constructor),e||{},t),t._renderProxy=t,t._self=t,function(e){const t=e.$options;let n=t.parent;if(n&&!t.abstract){for(;n.$options.abstract&&n.$parent;)n=n.$parent;n.$children.push(e)}e.$parent=n,e.$root=n?n.$root:e,e.$children=[],e.$refs={},e._provided=n?n._provided:Object.create(null),e._watcher=null,e._inactive=null,e._directInactive=!1,e._isMounted=!1,e._isDestroyed=!1,e._isBeingDestroyed=!1}(t),function(e){e._events=Object.create(null),e._hasHookEvent=!1;const t=e.$options._parentListeners;t&&En(e,t)}(t),function(e){e._vnode=null,e._staticTrees=null;const t=e.$options,n=e.$vnode=t._parentVnode,o=n&&n.context;e.$slots=Tt(t._renderChildren,o),e.$scopedSlots=n?Pt(e.$parent,n.data.scopedSlots,e.$slots):r,e._c=(t,n,r,o)=>Gt(e,t,n,r,o,!1),e.$createElement=(t,n,r,o)=>Gt(e,t,n,r,o,!0);const i=n&&n.data;Pe(e,"$attrs",i&&i.attrs||r,null,!0),Pe(e,"$listeners",t._parentListeners||r,null,!0)}(t),Pn(t,"beforeCreate",void 0,!1),function(e){const t=qn(e.$options.inject,e);t&&(Ce(!1),Object.keys(t).forEach(n=>{Pe(e,n,t[n])}),Ce(!0))}(t),pr(t),function(e){const t=e.$options.provide;if(t){const n=l(t)?t.call(e):t;if(!u(n))return;const r=rt(e),o=ae?Reflect.ownKeys(n):Object.keys(n);for(let e=0;e<o.length;e++){const t=o[e];Object.defineProperty(r,t,Object.getOwnPropertyDescriptor(n,t))}}}(t),Pn(t,"created"),t.$options.el&&t.$mount(t.$options.el)}}(wr),function(e){Object.defineProperty(e.prototype,"$data",{get:function(){return this._data}}),Object.defineProperty(e.prototype,"$props",{get:function(){return this._props}}),e.prototype.$set=Me,e.prototype.$delete=Ne,e.prototype.$watch=function(e,t,n){const r=this;if(h(t))return vr(r,e,t,n);(n=n||{}).user=!0;const o=new bn(r,e,t,n);if(n.immediate){const e=`callback for immediate watcher "${o.expression}"`;ye(),Ht(t,r,[o.value],r,e),be()}return function(){o.teardown()}}}(wr),function(e){const t=/^hook:/;e.prototype.$on=function(e,n){const r=this;if(o(e))for(let t=0,o=e.length;t<o;t++)r.$on(e[t],n);else(r._events[e]||(r._events[e]=[])).push(n),t.test(e)&&(r._hasHookEvent=!0);return r},e.prototype.$once=function(e,t){const n=this;function r(){n.$off(e,r),t.apply(n,arguments)}return r.fn=t,n.$on(e,r),n},e.prototype.$off=function(e,t){const n=this;if(!arguments.length)return n._events=Object.create(null),n;if(o(e)){for(let r=0,o=e.length;r<o;r++)n.$off(e[r],t);return n}const r=n._events[e];if(!r)return n;if(!t)return n._events[e]=null,n;let i,s=r.length;for(;s--;)if(i=r[s],i===t||i.fn===t){r.splice(s,1);break}return n},e.prototype.$emit=function(e){const t=this;let n=t._events[e];if(n){n=n.length>1?P(n):n;const r=P(arguments,1),o=`event handler for "${e}"`;for(let e=0,i=n.length;e<i;e++)Ht(n[e],t,r,t,o)}return t}}(wr),function(e){e.prototype._update=function(e,t){const n=this,r=n.$el,o=n._vnode,i=Cn(n);n._vnode=e,n.$el=o?n.__patch__(o,e):n.__patch__(n.$el,e,t,!1),i(),r&&(r.__vue__=null),n.$el&&(n.$el.__vue__=n);let s=n;for(;s&&s.$vnode&&s.$parent&&s.$vnode===s.$parent._vnode;)s.$parent.$el=s.$el,s=s.$parent},e.prototype.$forceUpdate=function(){this._watcher&&this._watcher.update()},e.prototype.$destroy=function(){const e=this;if(e._isBeingDestroyed)return;Pn(e,"beforeDestroy"),e._isBeingDestroyed=!0;const t=e.$parent;!t||t._isBeingDestroyed||e.$options.abstract||b(t.$children,e),e._scope.stop(),e._data.__ob__&&e._data.__ob__.vmCount--,e._isDestroyed=!0,e.__patch__(e._vnode,null),Pn(e,"destroyed"),e.$off(),e.$el&&(e.$el.__vue__=null),e.$vnode&&(e.$vnode.parent=null)}}(wr),function(e){Ct(e.prototype),e.prototype.$nextTick=function(e){return Jt(e,this)},e.prototype._render=function(){const e=this,{render:t,_parentVnode:n}=e.$options;n&&e._isMounted&&(e.$scopedSlots=Pt(e.$parent,n.data.scopedSlots,e.$slots,e.$scopedSlots),e._slotsProxy&&Dt(e._slotsProxy,e.$scopedSlots)),e.$vnode=n;const r=le,i=Ut;let s;try{ue(e),Ut=e,s=t.call(e._renderProxy,e.$createElement)}catch(o){Bt(o,e,"render"),s=e._vnode}finally{Ut=i,ue(r)}return o(s)&&1===s.length&&(s=s[0]),s instanceof de||(s=he()),s.parent=n,s}}(wr);const Cr=[String,RegExp,Array];var Tr={KeepAlive:{name:"keep-alive",abstract:!0,props:{include:Cr,exclude:Cr,max:[String,Number]},methods:{cacheVNode(){const{cache:e,keys:t,vnodeToCache:n,keyToCache:r}=this;if(n){const{tag:o,componentInstance:i,componentOptions:s}=n;e[r]={name:Sr(s),tag:o,componentInstance:i},t.push(r),this.max&&t.length>parseInt(this.max)&&kr(e,t[0],t,this._vnode),this.vnodeToCache=null}}},created(){this.cache=Object.create(null),this.keys=[]},destroyed(){for(const e in this.cache)kr(this.cache,e,this.keys)},mounted(){this.cacheVNode(),this.$watch("include",e=>{Er(this,t=>Ir(e,t))}),this.$watch("exclude",e=>{Er(this,t=>!Ir(e,t))})},updated(){this.cacheVNode()},render(){const e=this.$slots["default"],t=Ft(e),n=t&&t.componentOptions;if(n){const e=Sr(n),{include:r,exclude:o}=this;if(r&&(!e||!Ir(r,e))||o&&e&&Ir(o,e))return t;const{cache:i,keys:s}=this,a=null==t.key?n.Ctor.cid+(n.tag?`::${n.tag}`:""):t.key;i[a]?(t.componentInstance=i[a].componentInstance,b(s,a),s.push(a)):(this.vnodeToCache=t,this.keyToCache=a),t.data.keepAlive=!0}return t||e&&e[0]}}};!function(e){const t={get:()=>B};Object.defineProperty(e,"config",t),e.util={warn:Yn,extend:M,mergeOptions:or,defineReactive:Pe},e.set=Me,e["delete"]=Ne,e.nextTick=Jt,e.observable=e=>(Oe(e),e),e.options=Object.create(null),G.forEach(t=>{e.options[t+"s"]=Object.create(null)}),e.options._base=e,M(e.options.components,Tr),function(e){e.use=function(e){const t=this._installedPlugins||(this._installedPlugins=[]);if(t.indexOf(e)>-1)return this;const n=P(arguments,1);return n.unshift(this),l(e.install)?e.install.apply(e,n):l(e)&&e.apply(null,n),t.push(e),this}}(e),function(e){e.mixin=function(e){return this.options=or(this.options,e),this}}(e),function(e){e.cid=0;let t=1;e.extend=function(e){e=e||{};const n=this,r=n.cid,o=e._Ctor||(e._Ctor={});if(o[r])return o[r];const i=Vn(e)||Vn(n.options),s=function(e){this._init(e)};return(s.prototype=Object.create(n.prototype)).constructor=s,s.cid=t++,s.options=or(n.options,e),s["super"]=n,s.options.props&&function(e){const t=e.options.props;for(const n in t)hr(e.prototype,"_props",n)}(s),s.options.computed&&function(e){const t=e.options.computed;for(const n in t)mr(e.prototype,n,t[n])}(s),s.extend=n.extend,s.mixin=n.mixin,s.use=n.use,G.forEach(function(e){s[e]=n[e]}),i&&(s.options.components[i]=s),s.superOptions=n.options,s.extendOptions=e,s.sealedOptions=M({},s.options),o[r]=s,s}}(e),function(e){G.forEach(t=>{e[t]=function(e,n){return n?("component"===t&&h(n)&&(n.name=n.name||e,n=this.options._base.extend(n)),"directive"===t&&l(n)&&(n={bind:n,update:n}),this.options[t+"s"][e]=n,n):this.options[t+"s"][e]}})}(e)}(wr),Object.defineProperty(wr.prototype,"$isServer",{get:oe}),Object.defineProperty(wr.prototype,"$ssrContext",{get(){return this.$vnode&&this.$vnode.ssrContext}}),Object.defineProperty(wr,"FunctionalRenderContext",{value:Bn}),wr.version=pn;const Ar=v("style,class"),Or=v("input,textarea,option,select,progress"),Pr=v("contenteditable,draggable,spellcheck"),Mr=v("events,caret,typing,plaintext-only"),Nr=v("allowfullscreen,async,autofocus,autoplay,checked,compact,controls,declare,default,defaultchecked,defaultmuted,defaultselected,defer,disabled,enabled,formnovalidate,hidden,indeterminate,inert,ismap,itemscope,loop,multiple,muted,nohref,noresize,noshade,novalidate,nowrap,open,pauseonexit,readonly,required,reversed,scoped,seamless,selected,sortable,truespeed,typemustmatch,visible"),xr="http://www.w3.org/1999/xlink",Rr=e=>":"===e.charAt(5)&&"xlink"===e.slice(0,5),Lr=e=>Rr(e)?e.slice(6,e.length):"",Dr=e=>null==e||!1===e;function $r(e,t){return{staticClass:Ur(e.staticClass,t.staticClass),"class":s(e["class"])?[e["class"],t["class"]]:t["class"]}}function Ur(e,t){return e?t?e+" "+t:e:t||""}function jr(e){return Array.isArray(e)?function(e){let t,n="";for(let r=0,o=e.length;r<o;r++)s(t=jr(e[r]))&&""!==t&&(n&&(n+=" "),n+=t);return n}(e):u(e)?function(e){let t="";for(const n in e)e[n]&&(t&&(t+=" "),t+=n);return t}(e):"string"==typeof e?e:""}const Fr={svg:"http://www.w3.org/2000/svg",math:"http://www.w3.org/1998/Math/MathML"},Gr=v("html,body,base,head,link,meta,style,title,address,article,aside,footer,header,h1,h2,h3,h4,h5,h6,hgroup,nav,section,div,dd,dl,dt,figcaption,figure,picture,hr,img,li,main,ol,p,pre,ul,a,b,abbr,bdi,bdo,br,cite,code,data,dfn,em,i,kbd,mark,q,rp,rt,rtc,ruby,s,samp,small,span,strong,sub,sup,time,u,var,wbr,area,audio,map,track,video,embed,object,param,source,canvas,script,noscript,del,ins,caption,col,colgroup,table,thead,tbody,td,th,tr,button,datalist,fieldset,form,input,label,legend,meter,optgroup,option,output,progress,select,textarea,details,dialog,menu,menuitem,summary,content,element,shadow,template,blockquote,iframe,tfoot"),qr=v("svg,animate,circle,clippath,cursor,defs,desc,ellipse,filter,font-face,foreignobject,g,glyph,image,line,marker,mask,missing-glyph,path,pattern,polygon,polyline,rect,switch,symbol,text,textpath,tspan,use,view",!0),Br=e=>Gr(e)||qr(e),Hr=Object.create(null),zr=v("text,number,password,search,email,tel,url");var Vr=Object.freeze({__proto__:null,createElement:function(e,t){const n=document.createElement(e);return"select"!==e||t.data&&t.data.attrs&&void 0!==t.data.attrs.multiple&&n.setAttribute("multiple","multiple"),n},createElementNS:function(e,t){return document.createElementNS(Fr[e],t)},createTextNode:function(e){return document.createTextNode(e)},createComment:function(e){return document.createComment(e)},insertBefore:function(e,t,n){e.insertBefore(t,n)},removeChild:function(e,t){e.removeChild(t)},appendChild:function(e,t){e.appendChild(t)},parentNode:function(e){return e.parentNode},nextSibling:function(e){return e.nextSibling},tagName:function(e){return e.tagName},setTextContent:function(e,t){e.textContent=t},setStyleScope:function(e,t){e.setAttribute(t,"")}}),Wr={create(e,t){Kr(t)},update(e,t){e.data.ref!==t.data.ref&&(Kr(e,!0),Kr(t))},destroy(e){Kr(e,!0)}};function Kr(e,t){const n=e.data.ref;if(!s(n))return;const r=e.context,i=e.componentInstance||e.elm,a=t?null:i,c=t?void 0:i;if(l(n))return void Ht(n,r,[a],r,"template ref function");const u=e.data.refInFor,d="string"==typeof n||"number"==typeof n,h=Fe(n),p=r.$refs;if(d||h)if(u){const e=d?p[n]:n.value;t?o(e)&&b(e,i):o(e)?e.includes(i)||e.push(i):d?(p[n]=[i],Qr(r,n,p[n])):n.value=[i]}else if(d){if(t&&p[n]!==i)return;p[n]=c,Qr(r,n,a)}else if(h){if(t&&n.value!==i)return;n.value=a}}function Qr({_setupState:e},t,n){e&&S(e,t)&&(Fe(e[t])?e[t].value=n:e[t]=n)}const Xr=new de("",{},[]),Yr=["create","activate","update","remove","destroy"];function Jr(e,t){return e.key===t.key&&e.asyncFactory===t.asyncFactory&&(e.tag===t.tag&&e.isComment===t.isComment&&s(e.data)===s(t.data)&&function(e,t){if("input"!==e.tag)return!0;let n;const r=s(n=e.data)&&s(n=n.attrs)&&n.type,o=s(n=t.data)&&s(n=n.attrs)&&n.type;return r===o||zr(r)&&zr(o)}(e,t)||a(e.isAsyncPlaceholder)&&i(t.asyncFactory.error))}function Zr(e,t,n){let r,o;const i={};for(r=t;r<=n;++r)o=e[r].key,s(o)&&(i[o]=r);return i}var eo={create:to,update:to,destroy:function(e){to(e,Xr)}};function to(e,t){(e.data.directives||t.data.directives)&&function(e,t){const n=e===Xr,r=t===Xr,o=ro(e.data.directives,e.context),i=ro(t.data.directives,t.context),s=[],a=[];let c,l,u;for(c in i)l=o[c],u=i[c],l?(u.oldValue=l.value,u.oldArg=l.arg,io(u,"update",t,e),u.def&&u.def.componentUpdated&&a.push(u)):(io(u,"bind",t,e),u.def&&u.def.inserted&&s.push(u));if(s.length){const r=()=>{for(let n=0;n<s.length;n++)io(s[n],"inserted",t,e)};n?at(t,"insert",r):r()}if(a.length&&at(t,"postpatch",()=>{for(let n=0;n<a.length;n++)io(a[n],"componentUpdated",t,e)}),!n)for(c in o)i[c]||io(o[c],"unbind",e,e,r)}(e,t)}const no=Object.create(null);function ro(e,t){const n=Object.create(null);if(!e)return n;let r,o;for(r=0;r<e.length;r++){if(o=e[r],o.modifiers||(o.modifiers=no),n[oo(o)]=o,t._setupState&&t._setupState.__sfc){const e=o.def||ir(t,"_setupState","v-"+o.name);o.def="function"==typeof e?{bind:e,update:e}:e}o.def=o.def||ir(t.$options,"directives",o.name)}return n}function oo(e){return e.rawName||`${e.name}.${Object.keys(e.modifiers||{}).join(".")}`}function io(e,t,n,r,o){const i=e.def&&e.def[t];if(i)try{i(n.elm,e,n,r,o)}catch(r){Bt(r,n.context,`directive ${e.name} ${t} hook`)}}var so=[Wr,eo];function ao(e,t){const n=t.componentOptions;if(s(n)&&!1===n.Ctor.options.inheritAttrs)return;if(i(e.data.attrs)&&i(t.data.attrs))return;let r,o,c;const l=t.elm,u=e.data.attrs||{};let d=t.data.attrs||{};for(r in(s(d.__ob__)||a(d._v_attr_proxy))&&(d=t.data.attrs=M({},d)),d)o=d[r],c=u[r],c!==o&&co(l,r,o,t.data.pre);for(r in(X||J)&&d.value!==u.value&&co(l,"value",d.value),u)i(d[r])&&(Rr(r)?l.removeAttributeNS(xr,Lr(r)):Pr(r)||l.removeAttribute(r))}function co(e,t,n,r){r||e.tagName.indexOf("-")>-1?lo(e,t,n):Nr(t)?Dr(n)?e.removeAttribute(t):(n="allowfullscreen"===t&&"EMBED"===e.tagName?"true":t,e.setAttribute(t,n)):Pr(t)?e.setAttribute(t,((e,t)=>Dr(t)||"false"===t?"false":"contenteditable"===e&&Mr(t)?t:"true")(t,n)):Rr(t)?Dr(n)?e.removeAttributeNS(xr,Lr(t)):e.setAttributeNS(xr,t,n):lo(e,t,n)}function lo(e,t,n){if(Dr(n))e.removeAttribute(t);else{if(X&&!Y&&"TEXTAREA"===e.tagName&&"placeholder"===t&&""!==n&&!e.__ieph){const t=n=>{n.stopImmediatePropagation(),e.removeEventListener("input",t)};e.addEventListener("input",t),e.__ieph=!0}e.setAttribute(t,n)}}var uo={create:ao,update:ao};function ho(e,t){const n=t.elm,r=t.data,o=e.data;if(i(r.staticClass)&&i(r["class"])&&(i(o)||i(o.staticClass)&&i(o["class"])))return;let a=function(e){let t=e.data,n=e,r=e;for(;s(r.componentInstance);)r=r.componentInstance._vnode,r&&r.data&&(t=$r(r.data,t));for(;s(n=n.parent);)n&&n.data&&(t=$r(t,n.data));return function(e,t){return s(e)||s(t)?Ur(e,jr(t)):""}(t.staticClass,t["class"])}(t);const c=n._transitionClasses;s(c)&&(a=Ur(a,jr(c))),a!==n._prevClass&&(n.setAttribute("class",a),n._prevClass=a)}var po={create:ho,update:ho};const fo="__r",mo="__c";let go;function _o(e,t,n){const r=go;return function o(){null!==t.apply(null,arguments)&&bo(e,o,n,r)}}const vo=Wt&&!(ee&&Number(ee[1])<=53);function yo(e,t,n,r){if(vo){const e=$n,n=t;t=n._wrapper=function(t){if(t.target===t.currentTarget||t.timeStamp>=e||t.timeStamp<=0||t.target.ownerDocument!==document)return n.apply(this,arguments)}}go.addEventListener(e,t,re?{capture:n,passive:r}:n)}function bo(e,t,n,r){(r||go).removeEventListener(e,t._wrapper||t,n)}function wo(e,t){if(i(e.data.on)&&i(t.data.on))return;const n=t.data.on||{},r=e.data.on||{};go=t.elm||e.elm,function(e){if(s(e[fo])){const t=X?"change":"input";e[t]=[].concat(e[fo],e[t]||[]),delete e[fo]}s(e[mo])&&(e.change=[].concat(e[mo],e.change||[]),delete e[mo])}(n),st(n,r,yo,bo,_o,t.context),go=void 0}var So={create:wo,update:wo,destroy:e=>wo(e,Xr)};let Io;function Eo(e,t){if(i(e.data.domProps)&&i(t.data.domProps))return;let n,r;const o=t.elm,c=e.data.domProps||{};let l=t.data.domProps||{};for(n in(s(l.__ob__)||a(l._v_attr_proxy))&&(l=t.data.domProps=M({},l)),c)n in l||(o[n]="");for(n in l){if(r=l[n],"textContent"===n||"innerHTML"===n){if(t.children&&(t.children.length=0),r===c[n])continue;1===o.childNodes.length&&o.removeChild(o.childNodes[0])}if("value"===n&&"PROGRESS"!==o.tagName){o._value=r;const e=i(r)?"":String(r);ko(o,e)&&(o.value=e)}else if("innerHTML"===n&&qr(o.tagName)&&i(o.innerHTML)){Io=Io||document.createElement("div"),Io.innerHTML=`<svg>${r}</svg>`;const e=Io.firstChild;for(;o.firstChild;)o.removeChild(o.firstChild);for(;e.firstChild;)o.appendChild(e.firstChild)}else if(r!==c[n])try{o[n]=r}catch(e){}}}function ko(e,t){return!e.composing&&("OPTION"===e.tagName||function(e,t){let n=!0;try{n=document.activeElement!==e}catch(e){}return n&&e.value!==t}(e,t)||function(e,t){const n=e.value,r=e._vModifiers;if(s(r)){if(r.number)return _(n)!==_(t);if(r.trim)return n.trim()!==t.trim()}return n!==t}(e,t))}var Co={create:Eo,update:Eo};const To=I(function(e){const t={},n=/:(.+)/;return e.split(/;(?![^(]*\))/g).forEach(function(e){if(e){const r=e.split(n);r.length>1&&(t[r[0].trim()]=r[1].trim())}}),t});function Ao(e){const t=Oo(e.style);return e.staticStyle?M(e.staticStyle,t):t}function Oo(e){return Array.isArray(e)?N(e):"string"==typeof e?To(e):e}const Po=/^--/,Mo=/\s*!important$/,No=(e,t,n)=>{if(Po.test(t))e.style.setProperty(t,n);else if(Mo.test(n))e.style.setProperty(A(t),n.replace(Mo,""),"important");else{const r=Lo(t);if(Array.isArray(n))for(let t=0,o=n.length;t<o;t++)e.style[r]=n[t];else e.style[r]=n}},xo=["Webkit","Moz","ms"];let Ro;const Lo=I(function(e){if(Ro=Ro||document.createElement("div").style,"filter"!==(e=k(e))&&e in Ro)return e;const t=e.charAt(0).toUpperCase()+e.slice(1);for(let n=0;n<xo.length;n++){const e=xo[n]+t;if(e in Ro)return e}});function Do(e,t){const n=t.data,r=e.data;if(i(n.staticStyle)&&i(n.style)&&i(r.staticStyle)&&i(r.style))return;let o,a;const c=t.elm,l=r.staticStyle,u=r.normalizedStyle||r.style||{},d=l||u,h=Oo(t.data.style)||{};t.data.normalizedStyle=s(h.__ob__)?M({},h):h;const p=function(e){const t={};let n;{let r=e;for(;r.componentInstance;)r=r.componentInstance._vnode,r&&r.data&&(n=Ao(r.data))&&M(t,n)}(n=Ao(e.data))&&M(t,n);let r=e;for(;r=r.parent;)r.data&&(n=Ao(r.data))&&M(t,n);return t}(t);for(a in d)i(p[a])&&No(c,a,"");for(a in p)o=p[a],No(c,a,null==o?"":o)}var $o={create:Do,update:Do};const Uo=/\s+/;function jo(e,t){if(t&&(t=t.trim()))if(e.classList)t.indexOf(" ")>-1?t.split(Uo).forEach(t=>e.classList.add(t)):e.classList.add(t);else{const n=` ${e.getAttribute("class")||""} `;n.indexOf(" "+t+" ")<0&&e.setAttribute("class",(n+t).trim())}}function Fo(e,t){if(t&&(t=t.trim()))if(e.classList)t.indexOf(" ")>-1?t.split(Uo).forEach(t=>e.classList.remove(t)):e.classList.remove(t),e.classList.length||e.removeAttribute("class");else{let n=` ${e.getAttribute("class")||""} `;const r=" "+t+" ";for(;n.indexOf(r)>=0;)n=n.replace(r," ");n=n.trim(),n?e.setAttribute("class",n):e.removeAttribute("class")}}function Go(e){if(e){if("object"==typeof e){const t={};return!1!==e.css&&M(t,qo(e.name||"v")),M(t,e),t}return"string"==typeof e?qo(e):void 0}}const qo=I(e=>({enterClass:`${e}-enter`,enterToClass:`${e}-enter-to`,enterActiveClass:`${e}-enter-active`,leaveClass:`${e}-leave`,leaveToClass:`${e}-leave-to`,leaveActiveClass:`${e}-leave-active`})),Bo=K&&!Y,Ho="transition",zo="animation";let Vo="transition",Wo="transitionend",Ko="animation",Qo="animationend";Bo&&(void 0===window.ontransitionend&&void 0!==window.onwebkittransitionend&&(Vo="WebkitTransition",Wo="webkitTransitionEnd"),void 0===window.onanimationend&&void 0!==window.onwebkitanimationend&&(Ko="WebkitAnimation",Qo="webkitAnimationEnd"));const Xo=K?window.requestAnimationFrame?window.requestAnimationFrame.bind(window):setTimeout:e=>e();function Yo(e){Xo(()=>{Xo(e)})}function Jo(e,t){const n=e._transitionClasses||(e._transitionClasses=[]);n.indexOf(t)<0&&(n.push(t),jo(e,t))}function Zo(e,t){e._transitionClasses&&b(e._transitionClasses,t),Fo(e,t)}function ei(e,t,n){const{type:r,timeout:o,propCount:i}=ni(e,t);if(!r)return n();const s=r===Ho?Wo:Qo;let a=0;const c=()=>{e.removeEventListener(s,l),n()},l=t=>{t.target===e&&++a>=i&&c()};setTimeout(()=>{a<i&&c()},o+1),e.addEventListener(s,l)}const ti=/\b(transform|all)(,|$)/;function ni(e,t){const n=window.getComputedStyle(e),r=(n[Vo+"Delay"]||"").split(", "),o=(n[Vo+"Duration"]||"").split(", "),i=ri(r,o),s=(n[Ko+"Delay"]||"").split(", "),a=(n[Ko+"Duration"]||"").split(", "),c=ri(s,a);let l,u=0,d=0;return t===Ho?i>0&&(l=Ho,u=i,d=o.length):t===zo?c>0&&(l=zo,u=c,d=a.length):(u=Math.max(i,c),l=u>0?i>c?Ho:zo:null,d=l?l===Ho?o.length:a.length:0),{type:l,timeout:u,propCount:d,hasTransform:l===Ho&&ti.test(n[Vo+"Property"])}}function ri(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max.apply(null,t.map((t,n)=>oi(t)+oi(e[n])))}function oi(e){return 1e3*Number(e.slice(0,-1).replace(",","."))}function ii(e,t){const n=e.elm;s(n._leaveCb)&&(n._leaveCb.cancelled=!0,n._leaveCb());const r=Go(e.data.transition);if(i(r))return;if(s(n._enterCb)||1!==n.nodeType)return;const{css:o,type:a,enterClass:c,enterToClass:d,enterActiveClass:h,appearClass:p,appearToClass:f,appearActiveClass:m,beforeEnter:g,enter:v,afterEnter:y,enterCancelled:b,beforeAppear:w,appear:S,afterAppear:I,appearCancelled:E,duration:k}=r;let C=kn,T=kn.$vnode;for(;T&&T.parent;)C=T.context,T=T.parent;const A=!C._isMounted||!e.isRootInsert;if(A&&!S&&""!==S)return;const O=A&&p?p:c,P=A&&m?m:h,M=A&&f?f:d,N=A&&w||g,x=A&&l(S)?S:v,R=A&&I||y,L=A&&E||b,D=_(u(k)?k.enter:k),$=!1!==o&&!Y,j=ci(x),F=n._enterCb=U(()=>{$&&(Zo(n,M),Zo(n,P)),F.cancelled?($&&Zo(n,O),L&&L(n)):R&&R(n),n._enterCb=null});e.data.show||at(e,"insert",()=>{const t=n.parentNode,r=t&&t._pending&&t._pending[e.key];r&&r.tag===e.tag&&r.elm._leaveCb&&r.elm._leaveCb(),x&&x(n,F)}),N&&N(n),$&&(Jo(n,O),Jo(n,P),Yo(()=>{Zo(n,O),F.cancelled||(Jo(n,M),j||(ai(D)?setTimeout(F,D):ei(n,a,F)))})),e.data.show&&(t&&t(),x&&x(n,F)),$||j||F()}function si(e,t){const n=e.elm;s(n._enterCb)&&(n._enterCb.cancelled=!0,n._enterCb());const r=Go(e.data.transition);if(i(r)||1!==n.nodeType)return t();if(s(n._leaveCb))return;const{css:o,type:a,leaveClass:c,leaveToClass:l,leaveActiveClass:d,beforeLeave:h,leave:p,afterLeave:f,leaveCancelled:m,delayLeave:g,duration:v}=r,y=!1!==o&&!Y,b=ci(p),w=_(u(v)?v.leave:v),S=n._leaveCb=U(()=>{n.parentNode&&n.parentNode._pending&&(n.parentNode._pending[e.key]=null),y&&(Zo(n,l),Zo(n,d)),S.cancelled?(y&&Zo(n,c),m&&m(n)):(t(),f&&f(n)),n._leaveCb=null});function I(){S.cancelled||(!e.data.show&&n.parentNode&&((n.parentNode._pending||(n.parentNode._pending={}))[e.key]=e),h&&h(n),y&&(Jo(n,c),Jo(n,d),Yo(()=>{Zo(n,c),S.cancelled||(Jo(n,l),b||(ai(w)?setTimeout(S,w):ei(n,a,S)))})),p&&p(n,S),y||b||S())}g?g(I):I()}function ai(e){return"number"==typeof e&&!isNaN(e)}function ci(e){if(i(e))return!1;const t=e.fns;return s(t)?ci(Array.isArray(t)?t[0]:t):(e._length||e.length)>1}function li(e,t){!0!==t.data.show&&ii(t)}const ui=function(e){let t,n;const r={},{modules:l,nodeOps:u}=e;for(t=0;t<Yr.length;++t)for(r[Yr[t]]=[],n=0;n<l.length;++n)s(l[n][Yr[t]])&&r[Yr[t]].push(l[n][Yr[t]]);function d(e){const t=u.parentNode(e);s(t)&&u.removeChild(t,e)}function h(e,t,n,o,i,c,l){if(s(e.elm)&&s(c)&&(e=c[l]=fe(e)),e.isRootInsert=!i,function(e,t,n,o){let i=e.data;if(s(i)){const c=s(e.componentInstance)&&i.keepAlive;if(s(i=i.hook)&&s(i=i.init)&&i(e,!1),s(e.componentInstance))return p(e,t),f(n,e.elm,o),a(c)&&function(e,t,n,o){let i,a=e;for(;a.componentInstance;)if(a=a.componentInstance._vnode,s(i=a.data)&&s(i=i.transition)){for(i=0;i<r.activate.length;++i)r.activate[i](Xr,a);t.push(a);break}f(n,e.elm,o)}(e,t,n,o),!0}}(e,t,n,o))return;const d=e.data,h=e.children,g=e.tag;s(g)?(e.elm=e.ns?u.createElementNS(e.ns,g):u.createElement(g,e),y(e),m(e,h,t),s(d)&&_(e,t),f(n,e.elm,o)):a(e.isComment)?(e.elm=u.createComment(e.text),f(n,e.elm,o)):(e.elm=u.createTextNode(e.text),f(n,e.elm,o))}function p(e,t){s(e.data.pendingInsert)&&(t.push.apply(t,e.data.pendingInsert),e.data.pendingInsert=null),e.elm=e.componentInstance.$el,g(e)?(_(e,t),y(e)):(Kr(e),t.push(e))}function f(e,t,n){s(e)&&(s(n)?u.parentNode(n)===e&&u.insertBefore(e,t,n):u.appendChild(e,t))}function m(e,t,n){if(o(t))for(let r=0;r<t.length;++r)h(t[r],n,e.elm,null,!0,t,r);else c(e.text)&&u.appendChild(e.elm,u.createTextNode(String(e.text)))}function g(e){for(;e.componentInstance;)e=e.componentInstance._vnode;return s(e.tag)}function _(e,n){for(let t=0;t<r.create.length;++t)r.create[t](Xr,e);t=e.data.hook,s(t)&&(s(t.create)&&t.create(Xr,e),s(t.insert)&&n.push(e))}function y(e){let t;if(s(t=e.fnScopeId))u.setStyleScope(e.elm,t);else{let n=e;for(;n;)s(t=n.context)&&s(t=t.$options._scopeId)&&u.setStyleScope(e.elm,t),n=n.parent}s(t=kn)&&t!==e.context&&t!==e.fnContext&&s(t=t.$options._scopeId)&&u.setStyleScope(e.elm,t)}function b(e,t,n,r,o,i){for(;r<=o;++r)h(n[r],i,e,t,!1,n,r)}function w(e){let t,n;const o=e.data;if(s(o))for(s(t=o.hook)&&s(t=t.destroy)&&t(e),t=0;t<r.destroy.length;++t)r.destroy[t](e);if(s(t=e.children))for(n=0;n<e.children.length;++n)w(e.children[n])}function S(e,t,n){for(;t<=n;++t){const n=e[t];s(n)&&(s(n.tag)?(I(n),w(n)):d(n.elm))}}function I(e,t){if(s(t)||s(e.data)){let n;const o=r.remove.length+1;for(s(t)?t.listeners+=o:t=function(e,t){function n(){0==--n.listeners&&d(e)}return n.listeners=t,n}(e.elm,o),s(n=e.componentInstance)&&s(n=n._vnode)&&s(n.data)&&I(n,t),n=0;n<r.remove.length;++n)r.remove[n](e,t);s(n=e.data.hook)&&s(n=n.remove)?n(e,t):t()}else d(e.elm)}function E(e,t,n,r){for(let o=n;o<r;o++){const n=t[o];if(s(n)&&Jr(e,n))return o}}function k(e,t,n,o,c,l){if(e===t)return;s(t.elm)&&s(o)&&(t=o[c]=fe(t));const d=t.elm=e.elm;if(a(e.isAsyncPlaceholder))return void(s(t.asyncFactory.resolved)?A(e.elm,t,n):t.isAsyncPlaceholder=!0);if(a(t.isStatic)&&a(e.isStatic)&&t.key===e.key&&(a(t.isCloned)||a(t.isOnce)))return void(t.componentInstance=e.componentInstance);let p;const f=t.data;s(f)&&s(p=f.hook)&&s(p=p.prepatch)&&p(e,t);const m=e.children,_=t.children;if(s(f)&&g(t)){for(p=0;p<r.update.length;++p)r.update[p](e,t);s(p=f.hook)&&s(p=p.update)&&p(e,t)}i(t.text)?s(m)&&s(_)?m!==_&&function(e,t,n,r,o){let a,c,l,d,p=0,f=0,m=t.length-1,g=t[0],_=t[m],v=n.length-1,y=n[0],w=n[v];const I=!o;for(;p<=m&&f<=v;)i(g)?g=t[++p]:i(_)?_=t[--m]:Jr(g,y)?(k(g,y,r,n,f),g=t[++p],y=n[++f]):Jr(_,w)?(k(_,w,r,n,v),_=t[--m],w=n[--v]):Jr(g,w)?(k(g,w,r,n,v),I&&u.insertBefore(e,g.elm,u.nextSibling(_.elm)),g=t[++p],w=n[--v]):Jr(_,y)?(k(_,y,r,n,f),I&&u.insertBefore(e,_.elm,g.elm),_=t[--m],y=n[++f]):(i(a)&&(a=Zr(t,p,m)),c=s(y.key)?a[y.key]:E(y,t,p,m),i(c)?h(y,r,e,g.elm,!1,n,f):(l=t[c],Jr(l,y)?(k(l,y,r,n,f),t[c]=void 0,I&&u.insertBefore(e,l.elm,g.elm)):h(y,r,e,g.elm,!1,n,f)),y=n[++f]);p>m?(d=i(n[v+1])?null:n[v+1].elm,b(e,d,n,f,v,r)):f>v&&S(t,p,m)}(d,m,_,n,l):s(_)?(s(e.text)&&u.setTextContent(d,""),b(d,null,_,0,_.length-1,n)):s(m)?S(m,0,m.length-1):s(e.text)&&u.setTextContent(d,""):e.text!==t.text&&u.setTextContent(d,t.text),s(f)&&s(p=f.hook)&&s(p=p.postpatch)&&p(e,t)}function C(e,t,n){if(a(n)&&s(e.parent))e.parent.data.pendingInsert=t;else for(let r=0;r<t.length;++r)t[r].data.hook.insert(t[r])}const T=v("attrs,class,staticClass,staticStyle,key");function A(e,t,n,r){let o;const{tag:i,data:c,children:l}=t;if(r=r||c&&c.pre,t.elm=e,a(t.isComment)&&s(t.asyncFactory))return t.isAsyncPlaceholder=!0,!0;if(s(c)&&(s(o=c.hook)&&s(o=o.init)&&o(t,!0),s(o=t.componentInstance)))return p(t,n),!0;if(s(i)){if(s(l))if(e.hasChildNodes())if(s(o=c)&&s(o=o.domProps)&&s(o=o.innerHTML)){if(o!==e.innerHTML)return!1}else{let t=!0,o=e.firstChild;for(let e=0;e<l.length;e++){if(!o||!A(o,l[e],n,r)){t=!1;break}o=o.nextSibling}if(!t||o)return!1}else m(t,l,n);if(s(c)){let e=!1;for(const r in c)if(!T(r)){e=!0,_(t,n);break}!e&&c["class"]&&gn(c["class"])}}else e.data!==t.text&&(e.data=t.text);return!0}return function(e,t,n,o){if(i(t))return void(s(e)&&w(e));let c=!1;const l=[];if(i(e))c=!0,h(t,l);else{const i=s(e.nodeType);if(!i&&Jr(e,t))k(e,t,l,null,null,o);else{if(i){if(1===e.nodeType&&e.hasAttribute(F)&&(e.removeAttribute(F),n=!0),a(n)&&A(e,t,l))return C(t,l,!0),e;d=e,e=new de(u.tagName(d).toLowerCase(),{},[],void 0,d)}const o=e.elm,c=u.parentNode(o);if(h(t,l,o._leaveCb?null:c,u.nextSibling(o)),s(t.parent)){let e=t.parent;const n=g(t);for(;e;){for(let t=0;t<r.destroy.length;++t)r.destroy[t](e);if(e.elm=t.elm,n){for(let n=0;n<r.create.length;++n)r.create[n](Xr,e);const t=e.data.hook.insert;if(t.merged){const e=t.fns.slice(1);for(let t=0;t<e.length;t++)e[t]()}}else Kr(e);e=e.parent}}s(c)?S([e],0,0):s(e.tag)&&w(e)}}var d;return C(t,l,c),t.elm}}({nodeOps:Vr,modules:[uo,po,So,Co,$o,K?{create:li,activate:li,remove(e,t){!0!==e.data.show?si(e,t):t()}}:{}].concat(so)});Y&&document.addEventListener("selectionchange",()=>{const e=document.activeElement;e&&e.vmodel&&vi(e,"input")});const di={inserted(e,t,n,r){"select"===n.tag?(r.elm&&!r.elm._vOptions?at(n,"postpatch",()=>{di.componentUpdated(e,t,n)}):hi(e,t,n.context),e._vOptions=[].map.call(e.options,mi)):("textarea"===n.tag||zr(e.type))&&(e._vModifiers=t.modifiers,t.modifiers.lazy||(e.addEventListener("compositionstart",gi),e.addEventListener("compositionend",_i),e.addEventListener("change",_i),Y&&(e.vmodel=!0)))},componentUpdated(e,t,n){if("select"===n.tag){hi(e,t,n.context);const r=e._vOptions,o=e._vOptions=[].map.call(e.options,mi);o.some((e,t)=>!D(e,r[t]))&&(e.multiple?t.value.some(e=>fi(e,o)):t.value!==t.oldValue&&fi(t.value,o))&&vi(e,"change")}}};function hi(e,t,n){pi(e,t),(X||J)&&setTimeout(()=>{pi(e,t)},0)}function pi(e,t,n){const r=t.value,o=e.multiple;if(o&&!Array.isArray(r))return;let i,s;for(let a=0,c=e.options.length;a<c;a++)if(s=e.options[a],o)i=$(r,mi(s))>-1,s.selected!==i&&(s.selected=i);else if(D(mi(s),r))return void(e.selectedIndex!==a&&(e.selectedIndex=a));o||(e.selectedIndex=-1)}function fi(e,t){return t.every(t=>!D(t,e))}function mi(e){return"_value"in e?e._value:e.value}function gi(e){e.target.composing=!0}function _i(e){e.target.composing&&(e.target.composing=!1,vi(e.target,"input"))}function vi(e,t){const n=document.createEvent("HTMLEvents");n.initEvent(t,!0,!0),e.dispatchEvent(n)}function yi(e){return!e.componentInstance||e.data&&e.data.transition?e:yi(e.componentInstance._vnode)}var bi={bind(e,{value:t},n){const r=(n=yi(n)).data&&n.data.transition,o=e.__vOriginalDisplay="none"===e.style.display?"":e.style.display;t&&r?(n.data.show=!0,ii(n,()=>{e.style.display=o})):e.style.display=t?o:"none"},update(e,{value:t,oldValue:n},r){!t!=!n&&((r=yi(r)).data&&r.data.transition?(r.data.show=!0,t?ii(r,()=>{e.style.display=e.__vOriginalDisplay}):si(r,()=>{e.style.display="none"})):e.style.display=t?e.__vOriginalDisplay:"none")},unbind(e,t,n,r,o){o||(e.style.display=e.__vOriginalDisplay)}},wi={model:di,show:bi};const Si={name:String,appear:Boolean,css:Boolean,mode:String,type:String,enterClass:String,leaveClass:String,enterToClass:String,leaveToClass:String,enterActiveClass:String,leaveActiveClass:String,appearClass:String,appearActiveClass:String,appearToClass:String,duration:[Number,String,Object]};function Ii(e){const t=e&&e.componentOptions;return t&&t.Ctor.options.abstract?Ii(Ft(t.children)):e}function Ei(e){const t={},n=e.$options;for(const o in n.propsData)t[o]=e[o];const r=n._parentListeners;for(const o in r)t[k(o)]=r[o];return t}function ki(e,t){if(/\d-keep-alive$/.test(t.tag))return e("keep-alive",{props:t.componentOptions.propsData})}const Ci=e=>e.tag||Ot(e),Ti=e=>"show"===e.name;var Ai={name:"transition",props:Si,abstract:!0,render(e){let t=this.$slots["default"];if(!t)return;if(t=t.filter(Ci),!t.length)return;const n=this.mode,r=t[0];if(function(e){for(;e=e.parent;)if(e.data.transition)return!0}(this.$vnode))return r;const o=Ii(r);if(!o)return r;if(this._leaving)return ki(e,r);const i=`__transition-${this._uid}-`;o.key=null==o.key?o.isComment?i+"comment":i+o.tag:c(o.key)?0===String(o.key).indexOf(i)?o.key:i+o.key:o.key;const s=(o.data||(o.data={})).transition=Ei(this),a=this._vnode,l=Ii(a);if(o.data.directives&&o.data.directives.some(Ti)&&(o.data.show=!0),l&&l.data&&!function(e,t){return t.key===e.key&&t.tag===e.tag}(o,l)&&!Ot(l)&&(!l.componentInstance||!l.componentInstance._vnode.isComment)){const t=l.data.transition=M({},s);if("out-in"===n)return this._leaving=!0,at(t,"afterLeave",()=>{this._leaving=!1,this.$forceUpdate()}),ki(e,r);if("in-out"===n){if(Ot(o))return a;let e;const n=()=>{e()};at(s,"afterEnter",n),at(s,"enterCancelled",n),at(t,"delayLeave",t=>{e=t})}}return r}};const Oi=M({tag:String,moveClass:String},Si);delete Oi.mode;var Pi={props:Oi,beforeMount(){const e=this._update;this._update=(t,n)=>{const r=Cn(this);this.__patch__(this._vnode,this.kept,!1,!0),this._vnode=this.kept,r(),e.call(this,t,n)}},render(e){const t=this.tag||this.$vnode.data.tag||"span",n=Object.create(null),r=this.prevChildren=this.children,o=this.$slots["default"]||[],i=this.children=[],s=Ei(this);for(let a=0;a<o.length;a++){const e=o[a];e.tag&&null!=e.key&&0!==String(e.key).indexOf("__vlist")&&(i.push(e),n[e.key]=e,(e.data||(e.data={})).transition=s)}if(r){const o=[],i=[];for(let e=0;e<r.length;e++){const t=r[e];t.data.transition=s,t.data.pos=t.elm.getBoundingClientRect(),n[t.key]?o.push(t):i.push(t)}this.kept=e(t,null,o),this.removed=i}return e(t,null,i)},updated(){const e=this.prevChildren,t=this.moveClass||(this.name||"v")+"-move";e.length&&this.hasMove(e[0].elm,t)&&(e.forEach(Mi),e.forEach(Ni),e.forEach(xi),this._reflow=document.body.offsetHeight,e.forEach(e=>{if(e.data.moved){const n=e.elm,r=n.style;Jo(n,t),r.transform=r.WebkitTransform=r.transitionDuration="",n.addEventListener(Wo,n._moveCb=function o(e){e&&e.target!==n||e&&!/transform$/.test(e.propertyName)||(n.removeEventListener(Wo,o),n._moveCb=null,Zo(n,t))})}}))},methods:{hasMove(e,t){if(!Bo)return!1;if(this._hasMove)return this._hasMove;const n=e.cloneNode();e._transitionClasses&&e._transitionClasses.forEach(e=>{Fo(n,e)}),jo(n,t),n.style.display="none",this.$el.appendChild(n);const r=ni(n);return this.$el.removeChild(n),this._hasMove=r.hasTransform}}};function Mi(e){e.elm._moveCb&&e.elm._moveCb(),e.elm._enterCb&&e.elm._enterCb()}function Ni(e){e.data.newPos=e.elm.getBoundingClientRect()}function xi(e){const t=e.data.pos,n=e.data.newPos,r=t.left-n.left,o=t.top-n.top;if(r||o){e.data.moved=!0;const t=e.elm.style;t.transform=t.WebkitTransform=`translate(${r}px,${o}px)`,t.transitionDuration="0s"}}var Ri={Transition:Ai,TransitionGroup:Pi};wr.config.mustUseProp=(e,t,n)=>"value"===n&&Or(e)&&"button"!==t||"selected"===n&&"option"===e||"checked"===n&&"input"===e||"muted"===n&&"video"===e,wr.config.isReservedTag=Br,wr.config.isReservedAttr=Ar,wr.config.getTagNamespace=function(e){return qr(e)?"svg":"math"===e?"math":void 0},wr.config.isUnknownElement=function(e){if(!K)return!0;if(Br(e))return!1;if(e=e.toLowerCase(),null!=Hr[e])return Hr[e];const t=document.createElement(e);return e.indexOf("-")>-1?Hr[e]=t.constructor===window.HTMLUnknownElement||t.constructor===window.HTMLElement:Hr[e]=/HTMLUnknownElement/.test(t.toString())},M(wr.options.directives,wi),M(wr.options.components,Ri),wr.prototype.__patch__=K?ui:x,wr.prototype.$mount=function(e,t){return function(e,t,n){let r;e.$el=t,e.$options.render||(e.$options.render=he),Pn(e,"beforeMount"),r=()=>{e._update(e._render(),n)},new bn(e,r,x,{before(){e._isMounted&&!e._isDestroyed&&Pn(e,"beforeUpdate")}},!0),n=!1;const o=e._preWatchers;if(o)for(let i=0;i<o.length;i++)o[i].run();return null==e.$vnode&&(e._isMounted=!0,Pn(e,"mounted")),e}(this,e=e&&K?function(e){return"string"==typeof e?document.querySelector(e)||document.createElement("div"):e}(e):void 0,t)},K&&setTimeout(()=>{B.devtools&&ie&&ie.emit("init",wr)},0),M(wr,fn),e.exports=wr},5232:function(e,t,n){"use strict";!function(e){function t(){}function r(e){return"object"==typeof e&&null!==e||"function"==typeof e}const o=t;function i(e,t){try{Object.defineProperty(e,"name",{value:t,configurable:!0})}catch(e){}}const s=Promise,a=Promise.resolve.bind(s),c=Promise.prototype.then,l=Promise.reject.bind(s),u=a;function d(e){return new s(e)}function h(e){return d(t=>t(e))}function p(e){return l(e)}function f(e,t,n){return c.call(e,t,n)}function m(e,t,n){f(f(e,t,n),void 0,o)}function g(e,t){m(e,t)}function _(e,t){m(e,void 0,t)}function v(e,t,n){return f(e,t,n)}function y(e){f(e,void 0,o)}let b=e=>{if("function"==typeof queueMicrotask)b=queueMicrotask;else{const e=h(void 0);b=t=>f(e,t)}return b(e)};function w(e,t,n){if("function"!=typeof e)throw new TypeError("Argument is not a function");return Function.prototype.apply.call(e,t,n)}function S(e,t,n){try{return h(w(e,t,n))}catch(e){return p(e)}}class I{constructor(){this._cursor=0,this._size=0,this._front={_elements:[],_next:void 0},this._back=this._front,this._cursor=0,this._size=0}get length(){return this._size}push(e){const t=this._back;let n=t;16383===t._elements.length&&(n={_elements:[],_next:void 0}),t._elements.push(e),n!==t&&(this._back=n,t._next=n),++this._size}shift(){const e=this._front;let t=e;const n=this._cursor;let r=n+1;const o=e._elements,i=o[n];return 16384===r&&(t=e._next,r=0),--this._size,this._cursor=r,e!==t&&(this._front=t),o[n]=void 0,i}forEach(e){let t=this._cursor,n=this._front,r=n._elements;for(;!(t===r.length&&void 0===n._next||t===r.length&&(n=n._next,r=n._elements,t=0,0===r.length));)e(r[t]),++t}peek(){const e=this._front,t=this._cursor;return e._elements[t]}}const E=Symbol("[[AbortSteps]]"),k=Symbol("[[ErrorSteps]]"),C=Symbol("[[CancelSteps]]"),T=Symbol("[[PullSteps]]"),A=Symbol("[[ReleaseSteps]]");function O(e,t){e._ownerReadableStream=t,t._reader=e,"readable"===t._state?x(e):"closed"===t._state?function(e){x(e),D(e)}(e):R(e,t._storedError)}function P(e,t){return qn(e._ownerReadableStream,t)}function M(e){const t=e._ownerReadableStream;"readable"===t._state?L(e,new TypeError("Reader was released and can no longer be used to monitor the stream's closedness")):function(e){R(e,new TypeError("Reader was released and can no longer be used to monitor the stream's closedness"))}(e),t._readableStreamController[A](),t._reader=void 0,e._ownerReadableStream=void 0}function N(e){return new TypeError("Cannot "+e+" a stream using a released reader")}function x(e){e._closedPromise=d((t,n)=>{e._closedPromise_resolve=t,e._closedPromise_reject=n})}function R(e,t){x(e),L(e,t)}function L(e,t){void 0!==e._closedPromise_reject&&(y(e._closedPromise),e._closedPromise_reject(t),e._closedPromise_resolve=void 0,e._closedPromise_reject=void 0)}function D(e){void 0!==e._closedPromise_resolve&&(e._closedPromise_resolve(void 0),e._closedPromise_resolve=void 0,e._closedPromise_reject=void 0)}const $=Number.isFinite||function(e){return"number"==typeof e&&isFinite(e)},U=Math.trunc||function(e){return e<0?Math.ceil(e):Math.floor(e)};function j(e,t){if(void 0!==e&&"object"!=typeof(n=e)&&"function"!=typeof n)throw new TypeError(`${t} is not an object.`);var n}function F(e,t){if("function"!=typeof e)throw new TypeError(`${t} is not a function.`)}function G(e,t){if(!function(e){return"object"==typeof e&&null!==e||"function"==typeof e}(e))throw new TypeError(`${t} is not an object.`)}function q(e,t,n){if(void 0===e)throw new TypeError(`Parameter ${t} is required in '${n}'.`)}function B(e,t,n){if(void 0===e)throw new TypeError(`${t} is required in '${n}'.`)}function H(e){return Number(e)}function z(e){return 0===e?0:e}function V(e,t){const n=Number.MAX_SAFE_INTEGER;let r=Number(e);if(r=z(r),!$(r))throw new TypeError(`${t} is not a finite number`);if(r=function(e){return z(U(e))}(r),r<0||r>n)throw new TypeError(`${t} is outside the accepted range of 0 to ${n}, inclusive`);return $(r)&&0!==r?r:0}function W(e,t){if(!Fn(e))throw new TypeError(`${t} is not a ReadableStream.`)}function K(e){return new Z(e)}function Q(e,t){e._reader._readRequests.push(t)}function X(e,t,n){const r=e._reader._readRequests.shift();n?r._closeSteps():r._chunkSteps(t)}function Y(e){return e._reader._readRequests.length}function J(e){const t=e._reader;return void 0!==t&&!!ee(t)}class Z{constructor(e){if(q(e,1,"ReadableStreamDefaultReader"),W(e,"First parameter"),Gn(e))throw new TypeError("This stream has already been locked for exclusive reading by another reader");O(this,e),this._readRequests=new I}get closed(){return ee(this)?this._closedPromise:p(re("closed"))}cancel(e=void 0){return ee(this)?void 0===this._ownerReadableStream?p(N("cancel")):P(this,e):p(re("cancel"))}read(){if(!ee(this))return p(re("read"));if(void 0===this._ownerReadableStream)return p(N("read from"));let e,t;const n=d((n,r)=>{e=n,t=r});return te(this,{_chunkSteps:t=>e({value:t,done:!1}),_closeSteps:()=>e({value:void 0,done:!0}),_errorSteps:e=>t(e)}),n}releaseLock(){if(!ee(this))throw re("releaseLock");void 0!==this._ownerReadableStream&&function(e){M(e),ne(e,new TypeError("Reader was released"))}(this)}}function ee(e){return!!r(e)&&!!Object.prototype.hasOwnProperty.call(e,"_readRequests")&&e instanceof Z}function te(e,t){const n=e._ownerReadableStream;n._disturbed=!0,"closed"===n._state?t._closeSteps():"errored"===n._state?t._errorSteps(n._storedError):n._readableStreamController[T](t)}function ne(e,t){const n=e._readRequests;e._readRequests=new I,n.forEach(e=>{e._errorSteps(t)})}function re(e){return new TypeError(`ReadableStreamDefaultReader.prototype.${e} can only be used on a ReadableStreamDefaultReader`)}var oe,ie,se;function ae(e){return e.slice()}function ce(e,t,n,r,o){new Uint8Array(e).set(new Uint8Array(n,r,o),t)}Object.defineProperties(Z.prototype,{cancel:{enumerable:!0},read:{enumerable:!0},releaseLock:{enumerable:!0},closed:{enumerable:!0}}),i(Z.prototype.cancel,"cancel"),i(Z.prototype.read,"read"),i(Z.prototype.releaseLock,"releaseLock"),"symbol"==typeof Symbol.toStringTag&&Object.defineProperty(Z.prototype,Symbol.toStringTag,{value:"ReadableStreamDefaultReader",configurable:!0});let le=e=>(le="function"==typeof e.transfer?e=>e.transfer():"function"==typeof structuredClone?e=>structuredClone(e,{transfer:[e]}):e=>e,le(e)),ue=e=>(ue="boolean"==typeof e.detached?e=>e.detached:e=>0===e.byteLength,ue(e));function de(e,t,n){if(e.slice)return e.slice(t,n);const r=n-t,o=new ArrayBuffer(r);return ce(o,0,e,t,r),o}function he(e,t){const n=e[t];if(null!=n){if("function"!=typeof n)throw new TypeError(`${String(t)} is not a function`);return n}}function pe(e){try{const t=e.done,n=e.value;return f(u(n),e=>({done:t,value:e}))}catch(e){return p(e)}}const fe=null!==(se=null!==(oe=Symbol.asyncIterator)&&void 0!==oe?oe:null===(ie=Symbol["for"])||void 0===ie?void 0:ie.call(Symbol,"Symbol.asyncIterator"))&&void 0!==se?se:"@@asyncIterator";function me(e,t="sync",n){if(void 0===n)if("async"===t){if(void 0===(n=he(e,fe)))return function(e){const t={next(){let t;try{t=ge(e)}catch(e){return p(e)}return pe(t)},"return"(t){let n;try{const r=he(e.iterator,"return");if(void 0===r)return h({done:!0,value:t});n=w(r,e.iterator,[t])}catch(e){return p(e)}return r(n)?pe(n):p(new TypeError("The iterator.return() method must return an object"))}};return{iterator:t,nextMethod:t.next,done:!1}}(me(e,"sync",he(e,Symbol.iterator)))}else n=he(e,Symbol.iterator);if(void 0===n)throw new TypeError("The object is not iterable");const o=w(n,e,[]);if(!r(o))throw new TypeError("The iterator method must return an object");return{iterator:o,nextMethod:o.next,done:!1}}function ge(e){const t=w(e.nextMethod,e.iterator,[]);if(!r(t))throw new TypeError("The iterator.next() method must return an object");return t}class _e{constructor(e,t){this._ongoingPromise=void 0,this._isFinished=!1,this._reader=e,this._preventCancel=t}next(){const e=()=>this._nextSteps();return this._ongoingPromise=this._ongoingPromise?v(this._ongoingPromise,e,e):e(),this._ongoingPromise}"return"(e){const t=()=>this._returnSteps(e);return this._ongoingPromise=this._ongoingPromise?v(this._ongoingPromise,t,t):t(),this._ongoingPromise}_nextSteps(){if(this._isFinished)return Promise.resolve({value:void 0,done:!0});const e=this._reader;let t,n;const r=d((e,r)=>{t=e,n=r});return te(e,{_chunkSteps:e=>{this._ongoingPromise=void 0,b(()=>t({value:e,done:!1}))},_closeSteps:()=>{this._ongoingPromise=void 0,this._isFinished=!0,M(e),t({value:void 0,done:!0})},_errorSteps:t=>{this._ongoingPromise=void 0,this._isFinished=!0,M(e),n(t)}}),r}_returnSteps(e){if(this._isFinished)return Promise.resolve({value:e,done:!0});this._isFinished=!0;const t=this._reader;if(!this._preventCancel){const n=P(t,e);return M(t),v(n,()=>({value:e,done:!0}))}return M(t),h({value:e,done:!0})}}const ve={next(){return ye(this)?this._asyncIteratorImpl.next():p(be("next"))},"return"(e){return ye(this)?this._asyncIteratorImpl["return"](e):p(be("return"))},[fe](){return this}};function ye(e){if(!r(e))return!1;if(!Object.prototype.hasOwnProperty.call(e,"_asyncIteratorImpl"))return!1;try{return e._asyncIteratorImpl instanceof _e}catch(e){return!1}}function be(e){return new TypeError(`ReadableStreamAsyncIterator.${e} can only be used on a ReadableSteamAsyncIterator`)}Object.defineProperty(ve,fe,{enumerable:!1});const we=Number.isNaN||function(e){return e!=e};function Se(e){const t=de(e.buffer,e.byteOffset,e.byteOffset+e.byteLength);return new Uint8Array(t)}function Ie(e){const t=e._queue.shift();return e._queueTotalSize-=t.size,e._queueTotalSize<0&&(e._queueTotalSize=0),t.value}function Ee(e,t,n){if("number"!=typeof(r=n)||we(r)||r<0||n===1/0)throw new RangeError("Size must be a finite, non-NaN, non-negative number.");var r;e._queue.push({value:t,size:n}),e._queueTotalSize+=n}function ke(e){e._queue=new I,e._queueTotalSize=0}function Ce(e){return e===DataView}class Te{constructor(){throw new TypeError("Illegal constructor")}get view(){if(!Pe(this))throw rt("view");return this._view}respond(e){if(!Pe(this))throw rt("respond");if(q(e,1,"respond"),e=V(e,"First parameter"),void 0===this._associatedReadableByteStreamController)throw new TypeError("This BYOB request has been invalidated");if(ue(this._view.buffer))throw new TypeError("The BYOB request's buffer has been detached and so cannot be used as a response");et(this._associatedReadableByteStreamController,e)}respondWithNewView(e){if(!Pe(this))throw rt("respondWithNewView");if(q(e,1,"respondWithNewView"),!ArrayBuffer.isView(e))throw new TypeError("You can only respond with array buffer views");if(void 0===this._associatedReadableByteStreamController)throw new TypeError("This BYOB request has been invalidated");if(ue(e.buffer))throw new TypeError("The given view's buffer has been detached and so cannot be used as a response");tt(this._associatedReadableByteStreamController,e)}}Object.defineProperties(Te.prototype,{respond:{enumerable:!0},respondWithNewView:{enumerable:!0},view:{enumerable:!0}}),i(Te.prototype.respond,"respond"),i(Te.prototype.respondWithNewView,"respondWithNewView"),"symbol"==typeof Symbol.toStringTag&&Object.defineProperty(Te.prototype,Symbol.toStringTag,{value:"ReadableStreamBYOBRequest",configurable:!0});class Ae{constructor(){throw new TypeError("Illegal constructor")}get byobRequest(){if(!Oe(this))throw ot("byobRequest");return Je(this)}get desiredSize(){if(!Oe(this))throw ot("desiredSize");return Ze(this)}close(){if(!Oe(this))throw ot("close");if(this._closeRequested)throw new TypeError("The stream has already been closed; do not close it again!");const e=this._controlledReadableByteStream._state;if("readable"!==e)throw new TypeError(`The stream (in ${e} state) is not in the readable state and cannot be closed`);Ke(this)}enqueue(e){if(!Oe(this))throw ot("enqueue");if(q(e,1,"enqueue"),!ArrayBuffer.isView(e))throw new TypeError("chunk must be an array buffer view");if(0===e.byteLength)throw new TypeError("chunk must have non-zero byteLength");if(0===e.buffer.byteLength)throw new TypeError("chunk's buffer must have non-zero byteLength");if(this._closeRequested)throw new TypeError("stream is closed or draining");const t=this._controlledReadableByteStream._state;if("readable"!==t)throw new TypeError(`The stream (in ${t} state) is not in the readable state and cannot be enqueued to`);Qe(this,e)}error(e=void 0){if(!Oe(this))throw ot("error");Xe(this,e)}[C](e){Ne(this),ke(this);const t=this._cancelAlgorithm(e);return We(this),t}[T](e){const t=this._controlledReadableByteStream;if(this._queueTotalSize>0)return void Ye(this,e);const n=this._autoAllocateChunkSize;if(void 0!==n){let r;try{r=new ArrayBuffer(n)}catch(t){return void e._errorSteps(t)}const o={buffer:r,bufferByteLength:n,byteOffset:0,byteLength:n,bytesFilled:0,minimumFill:1,elementSize:1,viewConstructor:Uint8Array,readerType:"default"};this._pendingPullIntos.push(o)}Q(t,e),Me(this)}[A](){if(this._pendingPullIntos.length>0){const e=this._pendingPullIntos.peek();e.readerType="none",this._pendingPullIntos=new I,this._pendingPullIntos.push(e)}}}function Oe(e){return!!r(e)&&!!Object.prototype.hasOwnProperty.call(e,"_controlledReadableByteStream")&&e instanceof Ae}function Pe(e){return!!r(e)&&!!Object.prototype.hasOwnProperty.call(e,"_associatedReadableByteStreamController")&&e instanceof Te}function Me(e){const t=function(e){const t=e._controlledReadableByteStream;return"readable"===t._state&&!e._closeRequested&&!!e._started&&(!!(J(t)&&Y(t)>0)||!!(lt(t)&&ct(t)>0)||Ze(e)>0)}(e);t&&(e._pulling?e._pullAgain=!0:(e._pulling=!0,m(e._pullAlgorithm(),()=>(e._pulling=!1,e._pullAgain&&(e._pullAgain=!1,Me(e)),null),t=>(Xe(e,t),null))))}function Ne(e){qe(e),e._pendingPullIntos=new I}function xe(e,t){let n=!1;"closed"===e._state&&(n=!0);const r=Le(t);"default"===t.readerType?X(e,r,n):function(e,t,n){const r=e._reader._readIntoRequests.shift();n?r._closeSteps(t):r._chunkSteps(t)}(e,r,n)}function Re(e,t){for(let n=0;n<t.length;++n)xe(e,t[n])}function Le(e){const t=e.bytesFilled,n=e.elementSize;return new e.viewConstructor(e.buffer,e.byteOffset,t/n)}function De(e,t,n,r){e._queue.push({buffer:t,byteOffset:n,byteLength:r}),e._queueTotalSize+=r}function $e(e,t,n,r){let o;try{o=de(t,n,n+r)}catch(t){throw Xe(e,t),t}De(e,o,0,r)}function Ue(e,t){t.bytesFilled>0&&$e(e,t.buffer,t.byteOffset,t.bytesFilled),Ve(e)}function je(e,t){const n=Math.min(e._queueTotalSize,t.byteLength-t.bytesFilled),r=t.bytesFilled+n;let o=n,i=!1;const s=r-r%t.elementSize;s>=t.minimumFill&&(o=s-t.bytesFilled,i=!0);const a=e._queue;for(;o>0;){const n=a.peek(),r=Math.min(o,n.byteLength),i=t.byteOffset+t.bytesFilled;ce(t.buffer,i,n.buffer,n.byteOffset,r),n.byteLength===r?a.shift():(n.byteOffset+=r,n.byteLength-=r),e._queueTotalSize-=r,Fe(e,r,t),o-=r}return i}function Fe(e,t,n){n.bytesFilled+=t}function Ge(e){0===e._queueTotalSize&&e._closeRequested?(We(e),Bn(e._controlledReadableByteStream)):Me(e)}function qe(e){null!==e._byobRequest&&(e._byobRequest._associatedReadableByteStreamController=void 0,e._byobRequest._view=null,e._byobRequest=null)}function Be(e){const t=[];for(;e._pendingPullIntos.length>0&&0!==e._queueTotalSize;){const n=e._pendingPullIntos.peek();je(e,n)&&(Ve(e),t.push(n))}return t}function He(e,t,n,r){const o=e._controlledReadableByteStream,i=t.constructor,s=function(e){return Ce(e)?1:e.BYTES_PER_ELEMENT}(i),{byteOffset:a,byteLength:c}=t,l=n*s;let u;try{u=le(t.buffer)}catch(e){return void r._errorSteps(e)}const d={buffer:u,bufferByteLength:u.byteLength,byteOffset:a,byteLength:c,bytesFilled:0,minimumFill:l,elementSize:s,viewConstructor:i,readerType:"byob"};if(e._pendingPullIntos.length>0)return e._pendingPullIntos.push(d),void at(o,r);if("closed"===o._state){const e=new i(d.buffer,d.byteOffset,0);return void r._closeSteps(e)}if(e._queueTotalSize>0){if(je(e,d)){const t=Le(d);return Ge(e),void r._chunkSteps(t)}if(e._closeRequested){const t=new TypeError("Insufficient bytes to fill elements in the given buffer");return Xe(e,t),void r._errorSteps(t)}}e._pendingPullIntos.push(d),at(o,r),Me(e)}function ze(e,t){const n=e._pendingPullIntos.peek();qe(e),"closed"===e._controlledReadableByteStream._state?function(e,t){"none"===t.readerType&&Ve(e);const n=e._controlledReadableByteStream;if(lt(n)){const t=[];for(;t.length<ct(n);)t.push(Ve(e));Re(n,t)}}(e,n):function(e,t,n){if(Fe(0,t,n),"none"===n.readerType){Ue(e,n);const t=Be(e);return void Re(e._controlledReadableByteStream,t)}if(n.bytesFilled<n.minimumFill)return;Ve(e);const r=n.bytesFilled%n.elementSize;if(r>0){const t=n.byteOffset+n.bytesFilled;$e(e,n.buffer,t-r,r)}n.bytesFilled-=r;const o=Be(e);xe(e._controlledReadableByteStream,n),Re(e._controlledReadableByteStream,o)}(e,t,n),Me(e)}function Ve(e){return e._pendingPullIntos.shift()}function We(e){e._pullAlgorithm=void 0,e._cancelAlgorithm=void 0}function Ke(e){const t=e._controlledReadableByteStream;if(!e._closeRequested&&"readable"===t._state)if(e._queueTotalSize>0)e._closeRequested=!0;else{if(e._pendingPullIntos.length>0){const t=e._pendingPullIntos.peek();if(t.bytesFilled%t.elementSize!==0){const t=new TypeError("Insufficient bytes to fill elements in the given buffer");throw Xe(e,t),t}}We(e),Bn(t)}}function Qe(e,t){const n=e._controlledReadableByteStream;if(e._closeRequested||"readable"!==n._state)return;const{buffer:r,byteOffset:o,byteLength:i}=t;if(ue(r))throw new TypeError("chunk's buffer is detached and so cannot be enqueued");const s=le(r);if(e._pendingPullIntos.length>0){const t=e._pendingPullIntos.peek();if(ue(t.buffer))throw new TypeError("The BYOB request's buffer has been detached and so cannot be filled with an enqueued chunk");qe(e),t.buffer=le(t.buffer),"none"===t.readerType&&Ue(e,t)}J(n)?(function(e){const t=e._controlledReadableByteStream._reader;for(;t._readRequests.length>0;){if(0===e._queueTotalSize)return;Ye(e,t._readRequests.shift())}}(e),0===Y(n)?De(e,s,o,i):(e._pendingPullIntos.length>0&&Ve(e),X(n,new Uint8Array(s,o,i),!1))):lt(n)?(De(e,s,o,i),Re(n,Be(e))):De(e,s,o,i),Me(e)}function Xe(e,t){const n=e._controlledReadableByteStream;"readable"===n._state&&(Ne(e),ke(e),We(e),Hn(n,t))}function Ye(e,t){const n=e._queue.shift();e._queueTotalSize-=n.byteLength,Ge(e);const r=new Uint8Array(n.buffer,n.byteOffset,n.byteLength);t._chunkSteps(r)}function Je(e){if(null===e._byobRequest&&e._pendingPullIntos.length>0){const t=e._pendingPullIntos.peek(),n=new Uint8Array(t.buffer,t.byteOffset+t.bytesFilled,t.byteLength-t.bytesFilled),r=Object.create(Te.prototype);!function(e,t,n){e._associatedReadableByteStreamController=t,e._view=n}(r,e,n),e._byobRequest=r}return e._byobRequest}function Ze(e){const t=e._controlledReadableByteStream._state;return"errored"===t?null:"closed"===t?0:e._strategyHWM-e._queueTotalSize}function et(e,t){const n=e._pendingPullIntos.peek();if("closed"===e._controlledReadableByteStream._state){if(0!==t)throw new TypeError("bytesWritten must be 0 when calling respond() on a closed stream")}else{if(0===t)throw new TypeError("bytesWritten must be greater than 0 when calling respond() on a readable stream");if(n.bytesFilled+t>n.byteLength)throw new RangeError("bytesWritten out of range")}n.buffer=le(n.buffer),ze(e,t)}function tt(e,t){const n=e._pendingPullIntos.peek();if("closed"===e._controlledReadableByteStream._state){if(0!==t.byteLength)throw new TypeError("The view's length must be 0 when calling respondWithNewView() on a closed stream")}else if(0===t.byteLength)throw new TypeError("The view's length must be greater than 0 when calling respondWithNewView() on a readable stream");if(n.byteOffset+n.bytesFilled!==t.byteOffset)throw new RangeError("The region specified by view does not match byobRequest");if(n.bufferByteLength!==t.buffer.byteLength)throw new RangeError("The buffer of view has different capacity than byobRequest");if(n.bytesFilled+t.byteLength>n.byteLength)throw new RangeError("The region specified by view is larger than byobRequest");const r=t.byteLength;n.buffer=le(t.buffer),ze(e,r)}function nt(e,t,n,r,o,i,s){t._controlledReadableByteStream=e,t._pullAgain=!1,t._pulling=!1,t._byobRequest=null,t._queue=t._queueTotalSize=void 0,ke(t),t._closeRequested=!1,t._started=!1,t._strategyHWM=i,t._pullAlgorithm=r,t._cancelAlgorithm=o,t._autoAllocateChunkSize=s,t._pendingPullIntos=new I,e._readableStreamController=t,m(h(n()),()=>(t._started=!0,Me(t),null),e=>(Xe(t,e),null))}function rt(e){return new TypeError(`ReadableStreamBYOBRequest.prototype.${e} can only be used on a ReadableStreamBYOBRequest`)}function ot(e){return new TypeError(`ReadableByteStreamController.prototype.${e} can only be used on a ReadableByteStreamController`)}function it(e,t){if("byob"!=(e=`${e}`))throw new TypeError(`${t} '${e}' is not a valid enumeration value for ReadableStreamReaderMode`);return e}function st(e){return new ut(e)}function at(e,t){e._reader._readIntoRequests.push(t)}function ct(e){return e._reader._readIntoRequests.length}function lt(e){const t=e._reader;return void 0!==t&&!!dt(t)}Object.defineProperties(Ae.prototype,{close:{enumerable:!0},enqueue:{enumerable:!0},error:{enumerable:!0},byobRequest:{enumerable:!0},desiredSize:{enumerable:!0}}),i(Ae.prototype.close,"close"),i(Ae.prototype.enqueue,"enqueue"),i(Ae.prototype.error,"error"),"symbol"==typeof Symbol.toStringTag&&Object.defineProperty(Ae.prototype,Symbol.toStringTag,{value:"ReadableByteStreamController",configurable:!0});class ut{constructor(e){if(q(e,1,"ReadableStreamBYOBReader"),W(e,"First parameter"),Gn(e))throw new TypeError("This stream has already been locked for exclusive reading by another reader");if(!Oe(e._readableStreamController))throw new TypeError("Cannot construct a ReadableStreamBYOBReader for a stream not constructed with a byte source");O(this,e),this._readIntoRequests=new I}get closed(){return dt(this)?this._closedPromise:p(ft("closed"))}cancel(e=void 0){return dt(this)?void 0===this._ownerReadableStream?p(N("cancel")):P(this,e):p(ft("cancel"))}read(e,t={}){if(!dt(this))return p(ft("read"));if(!ArrayBuffer.isView(e))return p(new TypeError("view must be an array buffer view"));if(0===e.byteLength)return p(new TypeError("view must have non-zero byteLength"));if(0===e.buffer.byteLength)return p(new TypeError("view's buffer must have non-zero byteLength"));if(ue(e.buffer))return p(new TypeError("view's buffer has been detached"));let n;try{n=function(e,t){var n;return j(e,t),{min:V(null!==(n=null==e?void 0:e.min)&&void 0!==n?n:1,`${t} has member 'min' that`)}}(t,"options")}catch(e){return p(e)}const r=n.min;if(0===r)return p(new TypeError("options.min must be greater than 0"));if(function(e){return Ce(e.constructor)}(e)){if(r>e.byteLength)return p(new RangeError("options.min must be less than or equal to view's byteLength"))}else if(r>e.length)return p(new RangeError("options.min must be less than or equal to view's length"));if(void 0===this._ownerReadableStream)return p(N("read from"));let o,i;const s=d((e,t)=>{o=e,i=t});return ht(this,e,r,{_chunkSteps:e=>o({value:e,done:!1}),_closeSteps:e=>o({value:e,done:!0}),_errorSteps:e=>i(e)}),s}releaseLock(){if(!dt(this))throw ft("releaseLock");void 0!==this._ownerReadableStream&&function(e){M(e),pt(e,new TypeError("Reader was released"))}(this)}}function dt(e){return!!r(e)&&!!Object.prototype.hasOwnProperty.call(e,"_readIntoRequests")&&e instanceof ut}function ht(e,t,n,r){const o=e._ownerReadableStream;o._disturbed=!0,"errored"===o._state?r._errorSteps(o._storedError):He(o._readableStreamController,t,n,r)}function pt(e,t){const n=e._readIntoRequests;e._readIntoRequests=new I,n.forEach(e=>{e._errorSteps(t)})}function ft(e){return new TypeError(`ReadableStreamBYOBReader.prototype.${e} can only be used on a ReadableStreamBYOBReader`)}function mt(e,t){const{highWaterMark:n}=e;if(void 0===n)return t;if(we(n)||n<0)throw new RangeError("Invalid highWaterMark");return n}function gt(e){const{size:t}=e;return t||(()=>1)}function _t(e,t){j(e,t);const n=null==e?void 0:e.highWaterMark,r=null==e?void 0:e.size;return{highWaterMark:void 0===n?void 0:H(n),size:void 0===r?void 0:vt(r,`${t} has member 'size' that`)}}function vt(e,t){return F(e,t),t=>H(e(t))}function yt(e,t,n){return F(e,n),n=>S(e,t,[n])}function bt(e,t,n){return F(e,n),()=>S(e,t,[])}function wt(e,t,n){return F(e,n),n=>w(e,t,[n])}function St(e,t,n){return F(e,n),(n,r)=>S(e,t,[n,r])}function It(e,t){if(!Tt(e))throw new TypeError(`${t} is not a WritableStream.`)}Object.defineProperties(ut.prototype,{cancel:{enumerable:!0},read:{enumerable:!0},releaseLock:{enumerable:!0},closed:{enumerable:!0}}),i(ut.prototype.cancel,"cancel"),i(ut.prototype.read,"read"),i(ut.prototype.releaseLock,"releaseLock"),"symbol"==typeof Symbol.toStringTag&&Object.defineProperty(ut.prototype,Symbol.toStringTag,{value:"ReadableStreamBYOBReader",configurable:!0});class Et{constructor(e={},t={}){void 0===e?e=null:G(e,"First parameter");const n=_t(t,"Second parameter"),r=function(e,t){j(e,t);const n=null==e?void 0:e.abort,r=null==e?void 0:e.close,o=null==e?void 0:e.start,i=null==e?void 0:e.type,s=null==e?void 0:e.write;return{abort:void 0===n?void 0:yt(n,e,`${t} has member 'abort' that`),close:void 0===r?void 0:bt(r,e,`${t} has member 'close' that`),start:void 0===o?void 0:wt(o,e,`${t} has member 'start' that`),write:void 0===s?void 0:St(s,e,`${t} has member 'write' that`),type:i}}(e,"First parameter");if(Ct(this),void 0!==r.type)throw new RangeError("Invalid type is specified");const o=gt(n);!function(e,t,n,r){const o=Object.create(zt.prototype);let i,s,a,c;i=void 0!==t.start?()=>t.start(o):()=>{},s=void 0!==t.write?e=>t.write(e,o):()=>h(void 0),a=void 0!==t.close?()=>t.close():()=>h(void 0),c=void 0!==t.abort?e=>t.abort(e):()=>h(void 0),Wt(e,o,i,s,a,c,n,r)}(this,r,mt(n,1),o)}get locked(){if(!Tt(this))throw en("locked");return At(this)}abort(e=void 0){return Tt(this)?At(this)?p(new TypeError("Cannot abort a stream that already has a writer")):Ot(this,e):p(en("abort"))}close(){return Tt(this)?At(this)?p(new TypeError("Cannot close a stream that already has a writer")):Rt(this)?p(new TypeError("Cannot close an already-closing stream")):Pt(this):p(en("close"))}getWriter(){if(!Tt(this))throw en("getWriter");return kt(this)}}function kt(e){return new $t(e)}function Ct(e){e._state="writable",e._storedError=void 0,e._writer=void 0,e._writableStreamController=void 0,e._writeRequests=new I,e._inFlightWriteRequest=void 0,e._closeRequest=void 0,e._inFlightCloseRequest=void 0,e._pendingAbortRequest=void 0,e._backpressure=!1}function Tt(e){return!!r(e)&&!!Object.prototype.hasOwnProperty.call(e,"_writableStreamController")&&e instanceof Et}function At(e){return void 0!==e._writer}function Ot(e,t){var n;if("closed"===e._state||"errored"===e._state)return h(void 0);e._writableStreamController._abortReason=t,null===(n=e._writableStreamController._abortController)||void 0===n||n.abort(t);const r=e._state;if("closed"===r||"errored"===r)return h(void 0);if(void 0!==e._pendingAbortRequest)return e._pendingAbortRequest._promise;let o=!1;"erroring"===r&&(o=!0,t=void 0);const i=d((n,r)=>{e._pendingAbortRequest={_promise:void 0,_resolve:n,_reject:r,_reason:t,_wasAlreadyErroring:o}});return e._pendingAbortRequest._promise=i,o||Nt(e,t),i}function Pt(e){const t=e._state;if("closed"===t||"errored"===t)return p(new TypeError(`The stream (in ${t} state) is not in the writable state and cannot be closed`));const n=d((t,n)=>{const r={_resolve:t,_reject:n};e._closeRequest=r}),r=e._writer;var o;return void 0!==r&&e._backpressure&&"writable"===t&&pn(r),Ee(o=e._writableStreamController,Ht,0),Xt(o),n}function Mt(e,t){"writable"!==e._state?xt(e):Nt(e,t)}function Nt(e,t){const n=e._writableStreamController;e._state="erroring",e._storedError=t;const r=e._writer;void 0!==r&&Gt(r,t),!function(e){return void 0!==e._inFlightWriteRequest||void 0!==e._inFlightCloseRequest}(e)&&n._started&&xt(e)}function xt(e){e._state="errored",e._writableStreamController[k]();const t=e._storedError;if(e._writeRequests.forEach(e=>{e._reject(t)}),e._writeRequests=new I,void 0===e._pendingAbortRequest)return void Lt(e);const n=e._pendingAbortRequest;if(e._pendingAbortRequest=void 0,n._wasAlreadyErroring)return n._reject(t),void Lt(e);m(e._writableStreamController[E](n._reason),()=>(n._resolve(),Lt(e),null),t=>(n._reject(t),Lt(e),null))}function Rt(e){return void 0!==e._closeRequest||void 0!==e._inFlightCloseRequest}function Lt(e){void 0!==e._closeRequest&&(e._closeRequest._reject(e._storedError),e._closeRequest=void 0);const t=e._writer;void 0!==t&&an(t,e._storedError)}function Dt(e,t){const n=e._writer;void 0!==n&&t!==e._backpressure&&(t?function(e){ln(e)}(n):pn(n)),e._backpressure=t}Object.defineProperties(Et.prototype,{abort:{enumerable:!0},close:{enumerable:!0},getWriter:{enumerable:!0},locked:{enumerable:!0}}),i(Et.prototype.abort,"abort"),i(Et.prototype.close,"close"),i(Et.prototype.getWriter,"getWriter"),"symbol"==typeof Symbol.toStringTag&&Object.defineProperty(Et.prototype,Symbol.toStringTag,{value:"WritableStream",configurable:!0});class $t{constructor(e){if(q(e,1,"WritableStreamDefaultWriter"),It(e,"First parameter"),At(e))throw new TypeError("This stream has already been locked for exclusive writing by another writer");this._ownerWritableStream=e,e._writer=this;const t=e._state;if("writable"===t)!Rt(e)&&e._backpressure?ln(this):dn(this),on(this);else if("erroring"===t)un(this,e._storedError),on(this);else if("closed"===t)dn(this),on(n=this),cn(n);else{const t=e._storedError;un(this,t),sn(this,t)}var n}get closed(){return Ut(this)?this._closedPromise:p(nn("closed"))}get desiredSize(){if(!Ut(this))throw nn("desiredSize");if(void 0===this._ownerWritableStream)throw rn("desiredSize");return function(e){const t=e._ownerWritableStream,n=t._state;return"errored"===n||"erroring"===n?null:"closed"===n?0:Qt(t._writableStreamController)}(this)}get ready(){return Ut(this)?this._readyPromise:p(nn("ready"))}abort(e=void 0){return Ut(this)?void 0===this._ownerWritableStream?p(rn("abort")):function(e,t){return Ot(e._ownerWritableStream,t)}(this,e):p(nn("abort"))}close(){if(!Ut(this))return p(nn("close"));const e=this._ownerWritableStream;return void 0===e?p(rn("close")):Rt(e)?p(new TypeError("Cannot close an already-closing stream")):jt(this)}releaseLock(){if(!Ut(this))throw nn("releaseLock");void 0!==this._ownerWritableStream&&qt(this)}write(e=void 0){return Ut(this)?void 0===this._ownerWritableStream?p(rn("write to")):Bt(this,e):p(nn("write"))}}function Ut(e){return!!r(e)&&!!Object.prototype.hasOwnProperty.call(e,"_ownerWritableStream")&&e instanceof $t}function jt(e){return Pt(e._ownerWritableStream)}function Ft(e,t){"pending"===e._closedPromiseState?an(e,t):function(e,t){sn(e,t)}(e,t)}function Gt(e,t){"pending"===e._readyPromiseState?hn(e,t):function(e,t){un(e,t)}(e,t)}function qt(e){const t=e._ownerWritableStream,n=new TypeError("Writer was released and can no longer be used to monitor the stream's closedness");Gt(e,n),Ft(e,n),t._writer=void 0,e._ownerWritableStream=void 0}function Bt(e,t){const n=e._ownerWritableStream,r=n._writableStreamController,o=function(e,t){if(void 0===e._strategySizeAlgorithm)return 1;try{return e._strategySizeAlgorithm(t)}catch(t){return Yt(e,t),1}}(r,t);if(n!==e._ownerWritableStream)return p(rn("write to"));const i=n._state;if("errored"===i)return p(n._storedError);if(Rt(n)||"closed"===i)return p(new TypeError("The stream is closing or closed and cannot be written to"));if("erroring"===i)return p(n._storedError);const s=function(e){return d((t,n)=>{const r={_resolve:t,_reject:n};e._writeRequests.push(r)})}(n);return function(e,t,n){try{Ee(e,t,n)}catch(t){return void Yt(e,t)}const r=e._controlledWritableStream;Rt(r)||"writable"!==r._state||Dt(r,Jt(e)),Xt(e)}(r,t,o),s}Object.defineProperties($t.prototype,{abort:{enumerable:!0},close:{enumerable:!0},releaseLock:{enumerable:!0},write:{enumerable:!0},closed:{enumerable:!0},desiredSize:{enumerable:!0},ready:{enumerable:!0}}),i($t.prototype.abort,"abort"),i($t.prototype.close,"close"),i($t.prototype.releaseLock,"releaseLock"),i($t.prototype.write,"write"),"symbol"==typeof Symbol.toStringTag&&Object.defineProperty($t.prototype,Symbol.toStringTag,{value:"WritableStreamDefaultWriter",configurable:!0});const Ht={};class zt{constructor(){throw new TypeError("Illegal constructor")}get abortReason(){if(!Vt(this))throw tn("abortReason");return this._abortReason}get signal(){if(!Vt(this))throw tn("signal");if(void 0===this._abortController)throw new TypeError("WritableStreamDefaultController.prototype.signal is not supported");return this._abortController.signal}error(e=void 0){if(!Vt(this))throw tn("error");"writable"===this._controlledWritableStream._state&&Zt(this,e)}[E](e){const t=this._abortAlgorithm(e);return Kt(this),t}[k](){ke(this)}}function Vt(e){return!!r(e)&&!!Object.prototype.hasOwnProperty.call(e,"_controlledWritableStream")&&e instanceof zt}function Wt(e,t,n,r,o,i,s,a){t._controlledWritableStream=e,e._writableStreamController=t,t._queue=void 0,t._queueTotalSize=void 0,ke(t),t._abortReason=void 0,t._abortController=function(){if("function"==typeof AbortController)return new AbortController}(),t._started=!1,t._strategySizeAlgorithm=a,t._strategyHWM=s,t._writeAlgorithm=r,t._closeAlgorithm=o,t._abortAlgorithm=i;const c=Jt(t);Dt(e,c),m(h(n()),()=>(t._started=!0,Xt(t),null),n=>(t._started=!0,Mt(e,n),null))}function Kt(e){e._writeAlgorithm=void 0,e._closeAlgorithm=void 0,e._abortAlgorithm=void 0,e._strategySizeAlgorithm=void 0}function Qt(e){return e._strategyHWM-e._queueTotalSize}function Xt(e){const t=e._controlledWritableStream;if(!e._started)return;if(void 0!==t._inFlightWriteRequest)return;if("erroring"===t._state)return void xt(t);if(0===e._queue.length)return;const n=e._queue.peek().value;n===Ht?function(e){const t=e._controlledWritableStream;(function(e){e._inFlightCloseRequest=e._closeRequest,e._closeRequest=void 0})(t),Ie(e);const n=e._closeAlgorithm();Kt(e),m(n,()=>(function(e){e._inFlightCloseRequest._resolve(void 0),e._inFlightCloseRequest=void 0,"erroring"===e._state&&(e._storedError=void 0,void 0!==e._pendingAbortRequest&&(e._pendingAbortRequest._resolve(),e._pendingAbortRequest=void 0)),e._state="closed";const t=e._writer;void 0!==t&&cn(t)}(t),null),e=>(function(e,t){e._inFlightCloseRequest._reject(t),e._inFlightCloseRequest=void 0,void 0!==e._pendingAbortRequest&&(e._pendingAbortRequest._reject(t),e._pendingAbortRequest=void 0),Mt(e,t)}(t,e),null))}(e):function(e,t){const n=e._controlledWritableStream;!function(e){e._inFlightWriteRequest=e._writeRequests.shift()}(n),m(e._writeAlgorithm(t),()=>{!function(e){e._inFlightWriteRequest._resolve(void 0),e._inFlightWriteRequest=void 0}(n);const t=n._state;if(Ie(e),!Rt(n)&&"writable"===t){const t=Jt(e);Dt(n,t)}return Xt(e),null},t=>("writable"===n._state&&Kt(e),function(e,t){e._inFlightWriteRequest._reject(t),e._inFlightWriteRequest=void 0,Mt(e,t)}(n,t),null))}(e,n)}function Yt(e,t){"writable"===e._controlledWritableStream._state&&Zt(e,t)}function Jt(e){return Qt(e)<=0}function Zt(e,t){const n=e._controlledWritableStream;Kt(e),Nt(n,t)}function en(e){return new TypeError(`WritableStream.prototype.${e} can only be used on a WritableStream`)}function tn(e){return new TypeError(`WritableStreamDefaultController.prototype.${e} can only be used on a WritableStreamDefaultController`)}function nn(e){return new TypeError(`WritableStreamDefaultWriter.prototype.${e} can only be used on a WritableStreamDefaultWriter`)}function rn(e){return new TypeError("Cannot "+e+" a stream using a released writer")}function on(e){e._closedPromise=d((t,n)=>{e._closedPromise_resolve=t,e._closedPromise_reject=n,e._closedPromiseState="pending"})}function sn(e,t){on(e),an(e,t)}function an(e,t){void 0!==e._closedPromise_reject&&(y(e._closedPromise),e._closedPromise_reject(t),e._closedPromise_resolve=void 0,e._closedPromise_reject=void 0,e._closedPromiseState="rejected")}function cn(e){void 0!==e._closedPromise_resolve&&(e._closedPromise_resolve(void 0),e._closedPromise_resolve=void 0,e._closedPromise_reject=void 0,e._closedPromiseState="resolved")}function ln(e){e._readyPromise=d((t,n)=>{e._readyPromise_resolve=t,e._readyPromise_reject=n}),e._readyPromiseState="pending"}function un(e,t){ln(e),hn(e,t)}function dn(e){ln(e),pn(e)}function hn(e,t){void 0!==e._readyPromise_reject&&(y(e._readyPromise),e._readyPromise_reject(t),e._readyPromise_resolve=void 0,e._readyPromise_reject=void 0,e._readyPromiseState="rejected")}function pn(e){void 0!==e._readyPromise_resolve&&(e._readyPromise_resolve(void 0),e._readyPromise_resolve=void 0,e._readyPromise_reject=void 0,e._readyPromiseState="fulfilled")}Object.defineProperties(zt.prototype,{abortReason:{enumerable:!0},signal:{enumerable:!0},error:{enumerable:!0}}),"symbol"==typeof Symbol.toStringTag&&Object.defineProperty(zt.prototype,Symbol.toStringTag,{value:"WritableStreamDefaultController",configurable:!0});const fn="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof n.g?n.g:void 0,mn=function(){const e=null==fn?void 0:fn.DOMException;return function(e){if("function"!=typeof e&&"object"!=typeof e)return!1;if("DOMException"!==e.name)return!1;try{return new e,!0}catch(e){return!1}}(e)?e:void 0}()||function(){const e=function(e,t){this.message=e||"",this.name=t||"Error",Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor)};return i(e,"DOMException"),e.prototype=Object.create(Error.prototype),Object.defineProperty(e.prototype,"constructor",{value:e,writable:!0,configurable:!0}),e}();function gn(e,n,r,o,i,s){const a=K(e),c=kt(n);e._disturbed=!0;let l=!1,u=h(void 0);return d((v,b)=>{let w;if(void 0!==s){if(w=()=>{const t=void 0!==s.reason?s.reason:new mn("Aborted","AbortError"),r=[];o||r.push(()=>"writable"===n._state?Ot(n,t):h(void 0)),i||r.push(()=>"readable"===e._state?qn(e,t):h(void 0)),T(()=>Promise.all(r.map(e=>e())),!0,t)},s.aborted)return void w();s.addEventListener("abort",w)}var S,I,E;if(C(e,a._closedPromise,e=>(o?A(!0,e):T(()=>Ot(n,e),!0,e),null)),C(n,c._closedPromise,t=>(i?A(!0,t):T(()=>qn(e,t),!0,t),null)),S=e,I=a._closedPromise,E=()=>(r?A():T(()=>function(e){const t=e._ownerWritableStream,n=t._state;return Rt(t)||"closed"===n?h(void 0):"errored"===n?p(t._storedError):jt(e)}(c)),null),"closed"===S._state?E():g(I,E),Rt(n)||"closed"===n._state){const t=new TypeError("the destination writable stream closed before all data could be piped to it");i?A(!0,t):T(()=>qn(e,t),!0,t)}function k(){const e=u;return f(u,()=>e!==u?k():void 0)}function C(e,t,n){"errored"===e._state?n(e._storedError):_(t,n)}function T(e,t,r){function o(){return m(e(),()=>O(t,r),e=>O(!0,e)),null}l||(l=!0,"writable"!==n._state||Rt(n)?o():g(k(),o))}function A(e,t){l||(l=!0,"writable"!==n._state||Rt(n)?O(e,t):g(k(),()=>O(e,t)))}function O(e,t){return qt(c),M(a),void 0!==s&&s.removeEventListener("abort",w),e?b(t):v(void 0),null}y(d((e,n)=>{!function r(o){o?e():f(l?h(!0):f(c._readyPromise,()=>d((e,n)=>{te(a,{_chunkSteps:n=>{u=f(Bt(c,n),void 0,t),e(!1)},_closeSteps:()=>e(!0),_errorSteps:n})})),r,n)}(!1)}))})}class _n{constructor(){throw new TypeError("Illegal constructor")}get desiredSize(){if(!vn(this))throw An("desiredSize");return kn(this)}close(){if(!vn(this))throw An("close");if(!Cn(this))throw new TypeError("The stream is not in a state that permits close");Sn(this)}enqueue(e=void 0){if(!vn(this))throw An("enqueue");if(!Cn(this))throw new TypeError("The stream is not in a state that permits enqueue");return In(this,e)}error(e=void 0){if(!vn(this))throw An("error");En(this,e)}[C](e){ke(this);const t=this._cancelAlgorithm(e);return wn(this),t}[T](e){const t=this._controlledReadableStream;if(this._queue.length>0){const n=Ie(this);this._closeRequested&&0===this._queue.length?(wn(this),Bn(t)):yn(this),e._chunkSteps(n)}else Q(t,e),yn(this)}[A](){}}function vn(e){return!!r(e)&&!!Object.prototype.hasOwnProperty.call(e,"_controlledReadableStream")&&e instanceof _n}function yn(e){bn(e)&&(e._pulling?e._pullAgain=!0:(e._pulling=!0,m(e._pullAlgorithm(),()=>(e._pulling=!1,e._pullAgain&&(e._pullAgain=!1,yn(e)),null),t=>(En(e,t),null))))}function bn(e){const t=e._controlledReadableStream;return!!Cn(e)&&!!e._started&&(!!(Gn(t)&&Y(t)>0)||kn(e)>0)}function wn(e){e._pullAlgorithm=void 0,e._cancelAlgorithm=void 0,e._strategySizeAlgorithm=void 0}function Sn(e){if(!Cn(e))return;const t=e._controlledReadableStream;e._closeRequested=!0,0===e._queue.length&&(wn(e),Bn(t))}function In(e,t){if(!Cn(e))return;const n=e._controlledReadableStream;if(Gn(n)&&Y(n)>0)X(n,t,!1);else{let n;try{n=e._strategySizeAlgorithm(t)}catch(t){throw En(e,t),t}try{Ee(e,t,n)}catch(t){throw En(e,t),t}}yn(e)}function En(e,t){const n=e._controlledReadableStream;"readable"===n._state&&(ke(e),wn(e),Hn(n,t))}function kn(e){const t=e._controlledReadableStream._state;return"errored"===t?null:"closed"===t?0:e._strategyHWM-e._queueTotalSize}function Cn(e){const t=e._controlledReadableStream._state;return!e._closeRequested&&"readable"===t}function Tn(e,t,n,r,o,i,s){t._controlledReadableStream=e,t._queue=void 0,t._queueTotalSize=void 0,ke(t),t._started=!1,t._closeRequested=!1,t._pullAgain=!1,t._pulling=!1,t._strategySizeAlgorithm=s,t._strategyHWM=i,t._pullAlgorithm=r,t._cancelAlgorithm=o,e._readableStreamController=t,m(h(n()),()=>(t._started=!0,yn(t),null),e=>(En(t,e),null))}function An(e){return new TypeError(`ReadableStreamDefaultController.prototype.${e} can only be used on a ReadableStreamDefaultController`)}function On(e,t){return Oe(e._readableStreamController)?function(e){let t,n,r,o,i,s=K(e),a=!1,c=!1,l=!1,u=!1,p=!1;const f=d(e=>{i=e});function m(e){_(e._closedPromise,t=>(e!==s||(Xe(r._readableStreamController,t),Xe(o._readableStreamController,t),u&&p||i(void 0)),null))}function g(){dt(s)&&(M(s),s=K(e),m(s)),te(s,{_chunkSteps:t=>{b(()=>{c=!1,l=!1;const n=t;let s=t;if(!u&&!p)try{s=Se(t)}catch(t){return Xe(r._readableStreamController,t),Xe(o._readableStreamController,t),void i(qn(e,t))}u||Qe(r._readableStreamController,n),p||Qe(o._readableStreamController,s),a=!1,c?y():l&&w()})},_closeSteps:()=>{a=!1,u||Ke(r._readableStreamController),p||Ke(o._readableStreamController),r._readableStreamController._pendingPullIntos.length>0&&et(r._readableStreamController,0),o._readableStreamController._pendingPullIntos.length>0&&et(o._readableStreamController,0),u&&p||i(void 0)},_errorSteps:()=>{a=!1}})}function v(t,n){ee(s)&&(M(s),s=st(e),m(s));const d=n?o:r,h=n?r:o;ht(s,t,1,{_chunkSteps:t=>{b(()=>{c=!1,l=!1;const r=n?p:u;if(n?u:p)r||tt(d._readableStreamController,t);else{let n;try{n=Se(t)}catch(t){return Xe(d._readableStreamController,t),Xe(h._readableStreamController,t),void i(qn(e,t))}r||tt(d._readableStreamController,t),Qe(h._readableStreamController,n)}a=!1,c?y():l&&w()})},_closeSteps:e=>{a=!1;const t=n?p:u,r=n?u:p;t||Ke(d._readableStreamController),r||Ke(h._readableStreamController),void 0!==e&&(t||tt(d._readableStreamController,e),!r&&h._readableStreamController._pendingPullIntos.length>0&&et(h._readableStreamController,0)),t&&r||i(void 0)},_errorSteps:()=>{a=!1}})}function y(){if(a)return c=!0,h(void 0);a=!0;const e=Je(r._readableStreamController);return null===e?g():v(e._view,!1),h(void 0)}function w(){if(a)return l=!0,h(void 0);a=!0;const e=Je(o._readableStreamController);return null===e?g():v(e._view,!0),h(void 0)}function S(r){if(u=!0,t=r,p){const r=ae([t,n]),o=qn(e,r);i(o)}return f}function I(r){if(p=!0,n=r,u){const r=ae([t,n]),o=qn(e,r);i(o)}return f}function E(){}return r=Un(E,y,S),o=Un(E,w,I),m(s),[r,o]}(e):function(e){const t=K(e);let n,r,o,i,s,a=!1,c=!1,l=!1,u=!1;const p=d(e=>{s=e});function f(){return a?(c=!0,h(void 0)):(a=!0,te(t,{_chunkSteps:e=>{b(()=>{c=!1;const t=e,n=e;l||In(o._readableStreamController,t),u||In(i._readableStreamController,n),a=!1,c&&f()})},_closeSteps:()=>{a=!1,l||Sn(o._readableStreamController),u||Sn(i._readableStreamController),l&&u||s(void 0)},_errorSteps:()=>{a=!1}}),h(void 0))}function m(t){if(l=!0,n=t,u){const t=ae([n,r]),o=qn(e,t);s(o)}return p}function g(t){if(u=!0,r=t,l){const t=ae([n,r]),o=qn(e,t);s(o)}return p}function v(){}return o=$n(v,f,m),i=$n(v,f,g),_(t._closedPromise,e=>(En(o._readableStreamController,e),En(i._readableStreamController,e),l&&u||s(void 0),null)),[o,i]}(e)}function Pn(e){return r(n=e)&&void 0!==n.getReader?function(e){let n;function o(){let t;try{t=e.read()}catch(e){return p(e)}return v(t,e=>{if(!r(e))throw new TypeError("The promise returned by the reader.read() method must fulfill with an object");if(e.done)Sn(n._readableStreamController);else{const t=e.value;In(n._readableStreamController,t)}})}function i(t){try{return h(e.cancel(t))}catch(e){return p(e)}}return n=$n(t,o,i,0),n}(e.getReader()):function(e){let n;const o=me(e,"async");function i(){let e;try{e=ge(o)}catch(e){return p(e)}return v(h(e),e=>{if(!r(e))throw new TypeError("The promise returned by the iterator.next() method must fulfill with an object");if(e.done)Sn(n._readableStreamController);else{const t=e.value;In(n._readableStreamController,t)}})}function s(e){const t=o.iterator;let n;try{n=he(t,"return")}catch(e){return p(e)}return void 0===n?h(void 0):v(S(n,t,[e]),e=>{if(!r(e))throw new TypeError("The promise returned by the iterator.return() method must fulfill with an object")})}return n=$n(t,i,s,0),n}(e);var n}function Mn(e,t,n){return F(e,n),n=>S(e,t,[n])}function Nn(e,t,n){return F(e,n),n=>S(e,t,[n])}function xn(e,t,n){return F(e,n),n=>w(e,t,[n])}function Rn(e,t){if("bytes"!=(e=`${e}`))throw new TypeError(`${t} '${e}' is not a valid enumeration value for ReadableStreamType`);return e}function Ln(e,t){j(e,t);const n=null==e?void 0:e.preventAbort,r=null==e?void 0:e.preventCancel,o=null==e?void 0:e.preventClose,i=null==e?void 0:e.signal;return void 0!==i&&function(e,t){if(!function(e){if("object"!=typeof e||null===e)return!1;try{return"boolean"==typeof e.aborted}catch(e){return!1}}(e))throw new TypeError(`${t} is not an AbortSignal.`)}(i,`${t} has member 'signal' that`),{preventAbort:Boolean(n),preventCancel:Boolean(r),preventClose:Boolean(o),signal:i}}Object.defineProperties(_n.prototype,{close:{enumerable:!0},enqueue:{enumerable:!0},error:{enumerable:!0},desiredSize:{enumerable:!0}}),i(_n.prototype.close,"close"),i(_n.prototype.enqueue,"enqueue"),i(_n.prototype.error,"error"),"symbol"==typeof Symbol.toStringTag&&Object.defineProperty(_n.prototype,Symbol.toStringTag,{value:"ReadableStreamDefaultController",configurable:!0});class Dn{constructor(e={},t={}){void 0===e?e=null:G(e,"First parameter");const n=_t(t,"Second parameter"),r=function(e,t){j(e,t);const n=e,r=null==n?void 0:n.autoAllocateChunkSize,o=null==n?void 0:n.cancel,i=null==n?void 0:n.pull,s=null==n?void 0:n.start,a=null==n?void 0:n.type;return{autoAllocateChunkSize:void 0===r?void 0:V(r,`${t} has member 'autoAllocateChunkSize' that`),cancel:void 0===o?void 0:Mn(o,n,`${t} has member 'cancel' that`),pull:void 0===i?void 0:Nn(i,n,`${t} has member 'pull' that`),start:void 0===s?void 0:xn(s,n,`${t} has member 'start' that`),type:void 0===a?void 0:Rn(a,`${t} has member 'type' that`)}}(e,"First parameter");if(jn(this),"bytes"===r.type){if(void 0!==n.size)throw new RangeError("The strategy for a byte stream cannot have a size function");!function(e,t,n){const r=Object.create(Ae.prototype);let o,i,s;o=void 0!==t.start?()=>t.start(r):()=>{},i=void 0!==t.pull?()=>t.pull(r):()=>h(void 0),s=void 0!==t.cancel?e=>t.cancel(e):()=>h(void 0);const a=t.autoAllocateChunkSize;if(0===a)throw new TypeError("autoAllocateChunkSize must be greater than 0");nt(e,r,o,i,s,n,a)}(this,r,mt(n,0))}else{const e=gt(n);!function(e,t,n,r){const o=Object.create(_n.prototype);let i,s,a;i=void 0!==t.start?()=>t.start(o):()=>{},s=void 0!==t.pull?()=>t.pull(o):()=>h(void 0),a=void 0!==t.cancel?e=>t.cancel(e):()=>h(void 0),Tn(e,o,i,s,a,n,r)}(this,r,mt(n,1),e)}}get locked(){if(!Fn(this))throw zn("locked");return Gn(this)}cancel(e=void 0){return Fn(this)?Gn(this)?p(new TypeError("Cannot cancel a stream that already has a reader")):qn(this,e):p(zn("cancel"))}getReader(e=void 0){if(!Fn(this))throw zn("getReader");return void 0===function(e,t){j(e,t);const n=null==e?void 0:e.mode;return{mode:void 0===n?void 0:it(n,`${t} has member 'mode' that`)}}(e,"First parameter").mode?K(this):st(this)}pipeThrough(e,t={}){if(!Fn(this))throw zn("pipeThrough");q(e,1,"pipeThrough");const n=function(e,t){j(e,t);const n=null==e?void 0:e.readable;B(n,"readable","ReadableWritablePair"),W(n,`${t} has member 'readable' that`);const r=null==e?void 0:e.writable;return B(r,"writable","ReadableWritablePair"),It(r,`${t} has member 'writable' that`),{readable:n,writable:r}}(e,"First parameter"),r=Ln(t,"Second parameter");if(Gn(this))throw new TypeError("ReadableStream.prototype.pipeThrough cannot be used on a locked ReadableStream");if(At(n.writable))throw new TypeError("ReadableStream.prototype.pipeThrough cannot be used on a locked WritableStream");return y(gn(this,n.writable,r.preventClose,r.preventAbort,r.preventCancel,r.signal)),n.readable}pipeTo(e,t={}){if(!Fn(this))return p(zn("pipeTo"));if(void 0===e)return p("Parameter 1 is required in 'pipeTo'.");if(!Tt(e))return p(new TypeError("ReadableStream.prototype.pipeTo's first argument must be a WritableStream"));let n;try{n=Ln(t,"Second parameter")}catch(e){return p(e)}return Gn(this)?p(new TypeError("ReadableStream.prototype.pipeTo cannot be used on a locked ReadableStream")):At(e)?p(new TypeError("ReadableStream.prototype.pipeTo cannot be used on a locked WritableStream")):gn(this,e,n.preventClose,n.preventAbort,n.preventCancel,n.signal)}tee(){if(!Fn(this))throw zn("tee");return ae(On(this))}values(e=void 0){if(!Fn(this))throw zn("values");return function(e,t){const n=K(e),r=new _e(n,t),o=Object.create(ve);return o._asyncIteratorImpl=r,o}(this,function(e){j(e,"First parameter");const t=null==e?void 0:e.preventCancel;return{preventCancel:Boolean(t)}}(e).preventCancel)}[fe](e){return this.values(e)}static from(e){return Pn(e)}}function $n(e,t,n,r=1,o=()=>1){const i=Object.create(Dn.prototype);return jn(i),Tn(i,Object.create(_n.prototype),e,t,n,r,o),i}function Un(e,t,n){const r=Object.create(Dn.prototype);return jn(r),nt(r,Object.create(Ae.prototype),e,t,n,0,void 0),r}function jn(e){e._state="readable",e._reader=void 0,e._storedError=void 0,e._disturbed=!1}function Fn(e){return!!r(e)&&!!Object.prototype.hasOwnProperty.call(e,"_readableStreamController")&&e instanceof Dn}function Gn(e){return void 0!==e._reader}function qn(e,n){if(e._disturbed=!0,"closed"===e._state)return h(void 0);if("errored"===e._state)return p(e._storedError);Bn(e);const r=e._reader;if(void 0!==r&&dt(r)){const e=r._readIntoRequests;r._readIntoRequests=new I,e.forEach(e=>{e._closeSteps(void 0)})}return v(e._readableStreamController[C](n),t)}function Bn(e){e._state="closed";const t=e._reader;if(void 0!==t&&(D(t),ee(t))){const e=t._readRequests;t._readRequests=new I,e.forEach(e=>{e._closeSteps()})}}function Hn(e,t){e._state="errored",e._storedError=t;const n=e._reader;void 0!==n&&(L(n,t),ee(n)?ne(n,t):pt(n,t))}function zn(e){return new TypeError(`ReadableStream.prototype.${e} can only be used on a ReadableStream`)}function Vn(e,t){j(e,t);const n=null==e?void 0:e.highWaterMark;return B(n,"highWaterMark","QueuingStrategyInit"),{highWaterMark:H(n)}}Object.defineProperties(Dn,{from:{enumerable:!0}}),Object.defineProperties(Dn.prototype,{cancel:{enumerable:!0},getReader:{enumerable:!0},pipeThrough:{enumerable:!0},pipeTo:{enumerable:!0},tee:{enumerable:!0},values:{enumerable:!0},locked:{enumerable:!0}}),i(Dn.from,"from"),i(Dn.prototype.cancel,"cancel"),i(Dn.prototype.getReader,"getReader"),i(Dn.prototype.pipeThrough,"pipeThrough"),i(Dn.prototype.pipeTo,"pipeTo"),i(Dn.prototype.tee,"tee"),i(Dn.prototype.values,"values"),"symbol"==typeof Symbol.toStringTag&&Object.defineProperty(Dn.prototype,Symbol.toStringTag,{value:"ReadableStream",configurable:!0}),Object.defineProperty(Dn.prototype,fe,{value:Dn.prototype.values,writable:!0,configurable:!0});const Wn=e=>e.byteLength;i(Wn,"size");class Kn{constructor(e){q(e,1,"ByteLengthQueuingStrategy"),e=Vn(e,"First parameter"),this._byteLengthQueuingStrategyHighWaterMark=e.highWaterMark}get highWaterMark(){if(!Xn(this))throw Qn("highWaterMark");return this._byteLengthQueuingStrategyHighWaterMark}get size(){if(!Xn(this))throw Qn("size");return Wn}}function Qn(e){return new TypeError(`ByteLengthQueuingStrategy.prototype.${e} can only be used on a ByteLengthQueuingStrategy`)}function Xn(e){return!!r(e)&&!!Object.prototype.hasOwnProperty.call(e,"_byteLengthQueuingStrategyHighWaterMark")&&e instanceof Kn}Object.defineProperties(Kn.prototype,{highWaterMark:{enumerable:!0},size:{enumerable:!0}}),"symbol"==typeof Symbol.toStringTag&&Object.defineProperty(Kn.prototype,Symbol.toStringTag,{value:"ByteLengthQueuingStrategy",configurable:!0});const Yn=()=>1;i(Yn,"size");class Jn{constructor(e){q(e,1,"CountQueuingStrategy"),e=Vn(e,"First parameter"),this._countQueuingStrategyHighWaterMark=e.highWaterMark}get highWaterMark(){if(!er(this))throw Zn("highWaterMark");return this._countQueuingStrategyHighWaterMark}get size(){if(!er(this))throw Zn("size");return Yn}}function Zn(e){return new TypeError(`CountQueuingStrategy.prototype.${e} can only be used on a CountQueuingStrategy`)}function er(e){return!!r(e)&&!!Object.prototype.hasOwnProperty.call(e,"_countQueuingStrategyHighWaterMark")&&e instanceof Jn}function tr(e,t,n){return F(e,n),n=>S(e,t,[n])}function nr(e,t,n){return F(e,n),n=>w(e,t,[n])}function rr(e,t,n){return F(e,n),(n,r)=>S(e,t,[n,r])}function or(e,t,n){return F(e,n),n=>S(e,t,[n])}Object.defineProperties(Jn.prototype,{highWaterMark:{enumerable:!0},size:{enumerable:!0}}),"symbol"==typeof Symbol.toStringTag&&Object.defineProperty(Jn.prototype,Symbol.toStringTag,{value:"CountQueuingStrategy",configurable:!0});class ir{constructor(e={},t={},n={}){void 0===e&&(e=null);const r=_t(t,"Second parameter"),o=_t(n,"Third parameter"),i=function(e,t){j(e,t);const n=null==e?void 0:e.cancel,r=null==e?void 0:e.flush,o=null==e?void 0:e.readableType,i=null==e?void 0:e.start,s=null==e?void 0:e.transform,a=null==e?void 0:e.writableType;return{cancel:void 0===n?void 0:or(n,e,`${t} has member 'cancel' that`),flush:void 0===r?void 0:tr(r,e,`${t} has member 'flush' that`),readableType:o,start:void 0===i?void 0:nr(i,e,`${t} has member 'start' that`),transform:void 0===s?void 0:rr(s,e,`${t} has member 'transform' that`),writableType:a}}(e,"First parameter");if(void 0!==i.readableType)throw new RangeError("Invalid readableType specified");if(void 0!==i.writableType)throw new RangeError("Invalid writableType specified");const s=mt(o,0),a=gt(o),c=mt(r,1),l=gt(r);let u;!function(e,t,n,r,o,i){function s(){return t}function a(t){return function(e,t){const n=e._transformStreamController;return e._backpressure?v(e._backpressureChangePromise,()=>{const r=e._writable;if("erroring"===r._state)throw r._storedError;return mr(n,t)}):mr(n,t)}(e,t)}function c(t){return function(e,t){const n=e._transformStreamController;if(void 0!==n._finishPromise)return n._finishPromise;const r=e._readable;n._finishPromise=d((e,t)=>{n._finishPromise_resolve=e,n._finishPromise_reject=t});const o=n._cancelAlgorithm(t);return pr(n),m(o,()=>("errored"===r._state?vr(n,r._storedError):(En(r._readableStreamController,t),_r(n)),null),e=>(En(r._readableStreamController,e),vr(n,e),null)),n._finishPromise}(e,t)}function l(){return function(e){const t=e._transformStreamController;if(void 0!==t._finishPromise)return t._finishPromise;const n=e._readable;t._finishPromise=d((e,n)=>{t._finishPromise_resolve=e,t._finishPromise_reject=n});const r=t._flushAlgorithm();return pr(t),m(r,()=>("errored"===n._state?vr(t,n._storedError):(Sn(n._readableStreamController),_r(t)),null),e=>(En(n._readableStreamController,e),vr(t,e),null)),t._finishPromise}(e)}function u(){return function(e){return ur(e,!1),e._backpressureChangePromise}(e)}function h(t){return function(e,t){const n=e._transformStreamController;if(void 0!==n._finishPromise)return n._finishPromise;const r=e._writable;n._finishPromise=d((e,t)=>{n._finishPromise_resolve=e,n._finishPromise_reject=t});const o=n._cancelAlgorithm(t);return pr(n),m(o,()=>("errored"===r._state?vr(n,r._storedError):(Yt(r._writableStreamController,t),lr(e),_r(n)),null),t=>(Yt(r._writableStreamController,t),lr(e),vr(n,t),null)),n._finishPromise}(e,t)}e._writable=function(e,t,n,r,o=1,i=()=>1){const s=Object.create(Et.prototype);return Ct(s),Wt(s,Object.create(zt.prototype),e,t,n,r,o,i),s}(s,a,l,c,n,r),e._readable=$n(s,u,h,o,i),e._backpressure=void 0,e._backpressureChangePromise=void 0,e._backpressureChangePromise_resolve=void 0,ur(e,!0),e._transformStreamController=void 0}(this,d(e=>{u=e}),c,l,s,a),function(e,t){const n=Object.create(dr.prototype);let r,o,i;r=void 0!==t.transform?e=>t.transform(e,n):e=>{try{return fr(n,e),h(void 0)}catch(e){return p(e)}},o=void 0!==t.flush?()=>t.flush(n):()=>h(void 0),i=void 0!==t.cancel?e=>t.cancel(e):()=>h(void 0),function(e,t,n,r,o){t._controlledTransformStream=e,e._transformStreamController=t,t._transformAlgorithm=n,t._flushAlgorithm=r,t._cancelAlgorithm=o,t._finishPromise=void 0,t._finishPromise_resolve=void 0,t._finishPromise_reject=void 0}(e,n,r,o,i)}(this,i),void 0!==i.start?u(i.start(this._transformStreamController)):u(void 0)}get readable(){if(!sr(this))throw yr("readable");return this._readable}get writable(){if(!sr(this))throw yr("writable");return this._writable}}function sr(e){return!!r(e)&&!!Object.prototype.hasOwnProperty.call(e,"_transformStreamController")&&e instanceof ir}function ar(e,t){En(e._readable._readableStreamController,t),cr(e,t)}function cr(e,t){pr(e._transformStreamController),Yt(e._writable._writableStreamController,t),lr(e)}function lr(e){e._backpressure&&ur(e,!1)}function ur(e,t){void 0!==e._backpressureChangePromise&&e._backpressureChangePromise_resolve(),e._backpressureChangePromise=d(t=>{e._backpressureChangePromise_resolve=t}),e._backpressure=t}Object.defineProperties(ir.prototype,{readable:{enumerable:!0},writable:{enumerable:!0}}),"symbol"==typeof Symbol.toStringTag&&Object.defineProperty(ir.prototype,Symbol.toStringTag,{value:"TransformStream",configurable:!0});class dr{constructor(){throw new TypeError("Illegal constructor")}get desiredSize(){if(!hr(this))throw gr("desiredSize");return kn(this._controlledTransformStream._readable._readableStreamController)}enqueue(e=void 0){if(!hr(this))throw gr("enqueue");fr(this,e)}error(e=void 0){if(!hr(this))throw gr("error");var t;t=e,ar(this._controlledTransformStream,t)}terminate(){if(!hr(this))throw gr("terminate");!function(e){const t=e._controlledTransformStream;Sn(t._readable._readableStreamController),cr(t,new TypeError("TransformStream terminated"))}(this)}}function hr(e){return!!r(e)&&!!Object.prototype.hasOwnProperty.call(e,"_controlledTransformStream")&&e instanceof dr}function pr(e){e._transformAlgorithm=void 0,e._flushAlgorithm=void 0,e._cancelAlgorithm=void 0}function fr(e,t){const n=e._controlledTransformStream,r=n._readable._readableStreamController;if(!Cn(r))throw new TypeError("Readable side is not in a state that permits enqueue");try{In(r,t)}catch(e){throw cr(n,e),n._readable._storedError}const o=function(e){return!bn(e)}(r);o!==n._backpressure&&ur(n,!0)}function mr(e,t){return v(e._transformAlgorithm(t),void 0,t=>{throw ar(e._controlledTransformStream,t),t})}function gr(e){return new TypeError(`TransformStreamDefaultController.prototype.${e} can only be used on a TransformStreamDefaultController`)}function _r(e){void 0!==e._finishPromise_resolve&&(e._finishPromise_resolve(),e._finishPromise_resolve=void 0,e._finishPromise_reject=void 0)}function vr(e,t){void 0!==e._finishPromise_reject&&(y(e._finishPromise),e._finishPromise_reject(t),e._finishPromise_resolve=void 0,e._finishPromise_reject=void 0)}function yr(e){return new TypeError(`TransformStream.prototype.${e} can only be used on a TransformStream`)}Object.defineProperties(dr.prototype,{enqueue:{enumerable:!0},error:{enumerable:!0},terminate:{enumerable:!0},desiredSize:{enumerable:!0}}),i(dr.prototype.enqueue,"enqueue"),i(dr.prototype.error,"error"),i(dr.prototype.terminate,"terminate"),"symbol"==typeof Symbol.toStringTag&&Object.defineProperty(dr.prototype,Symbol.toStringTag,{value:"TransformStreamDefaultController",configurable:!0}),e.ByteLengthQueuingStrategy=Kn,e.CountQueuingStrategy=Jn,e.ReadableByteStreamController=Ae,e.ReadableStream=Dn,e.ReadableStreamBYOBReader=ut,e.ReadableStreamBYOBRequest=Te,e.ReadableStreamDefaultController=_n,e.ReadableStreamDefaultReader=Z,e.TransformStream=ir,e.TransformStreamDefaultController=dr,e.WritableStream=Et,e.WritableStreamDefaultController=zt,e.WritableStreamDefaultWriter=$t}(t)},9506:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Lexer=void 0;var r=n(5685),o=n(3596),i=n(1319),s=n(5141);function a(e){return e.replace(/---/g,"—").replace(/--/g,"–").replace(/(^|[-\u2014/(\[{"\s])'/g,"$1‘").replace(/'/g,"’").replace(/(^|[-\u2014/(\[{\u2018\s])"/g,"$1“").replace(/"/g,"”").replace(/\.{3}/g,"…")}function c(e){let t,n,r="";const o=e.length;for(t=0;t<o;t++)n=e.charCodeAt(t),Math.random()>.5&&(n="x"+n.toString(16)),r+="&#"+n+";";return r}class l{constructor(e){this.tokens=[],this.tokens.links=Object.create(null),this.options=e||o.defaults,this.options.tokenizer=this.options.tokenizer||new r.Tokenizer,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};const t={block:i.block.normal,inline:i.inline.normal};this.options.pedantic?(t.block=i.block.pedantic,t.inline=i.inline.pedantic):this.options.gfm&&(t.block=i.block.gfm,this.options.breaks?t.inline=i.inline.breaks:t.inline=i.inline.gfm),this.tokenizer.rules=t}static get rules(){return{block:i.block,inline:i.inline}}static lex(e,t){return new l(t).lex(e)}static lexInline(e,t){return new l(t).inlineTokens(e)}lex(e){let t;for(e=e.replace(/\r\n|\r/g,"\n").replace(/\t/g," "),this.blockTokens(e,this.tokens);t=this.inlineQueue.shift();)this.inlineTokens(t.src,t.tokens);return this.tokens}blockTokens(e,t=[]){let n,r,o,i;for(this.options.pedantic&&(e=e.replace(/^ +$/gm,""));e;)if(!(this.options.extensions&&this.options.extensions.block&&this.options.extensions.block.some(r=>!!(n=r.call({lexer:this},e,t))&&(e=e.substring(n.raw.length),t.push(n),!0))))if(n=this.tokenizer.space(e))e=e.substring(n.raw.length),1===n.raw.length&&t.length>0?t[t.length-1].raw+="\n":t.push(n);else if(n=this.tokenizer.code(e))e=e.substring(n.raw.length),r=t[t.length-1],!r||"paragraph"!==r.type&&"text"!==r.type?t.push(n):(r.raw+="\n"+n.raw,r.text+="\n"+n.text,this.inlineQueue[this.inlineQueue.length-1].src=r.text);else if(n=this.tokenizer.fences(e))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.heading(e))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.hr(e))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.blockquote(e))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.list(e))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.html(e))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.def(e))e=e.substring(n.raw.length),r=t[t.length-1],!r||"paragraph"!==r.type&&"text"!==r.type?this.tokens.links[n.tag]||(this.tokens.links[n.tag]={href:n.href,title:n.title}):(r.raw+="\n"+n.raw,r.text+="\n"+n.raw,this.inlineQueue[this.inlineQueue.length-1].src=r.text);else if(n=this.tokenizer.table(e))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.lheading(e))e=e.substring(n.raw.length),t.push(n);else{if(o=e,this.options.extensions&&this.options.extensions.startBlock){let t=Infinity;const n=e.slice(1);let r;this.options.extensions.startBlock.forEach(function(e){r=e.call({lexer:this},n),"number"==typeof r&&r>=0&&(t=Math.min(t,r))}),t<Infinity&&t>=0&&(o=e.substring(0,t+1))}if(this.state.top&&(n=this.tokenizer.paragraph(o)))r=t[t.length-1],i&&"paragraph"===r.type?(r.raw+="\n"+n.raw,r.text+="\n"+n.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=r.text):t.push(n),i=o.length!==e.length,e=e.substring(n.raw.length);else if(n=this.tokenizer.text(e))e=e.substring(n.raw.length),r=t[t.length-1],r&&"text"===r.type?(r.raw+="\n"+n.raw,r.text+="\n"+n.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=r.text):t.push(n);else if(e){const t="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(t);break}throw new Error(t)}}return this.state.top=!0,t}inline(e,t){this.inlineQueue.push({src:e,tokens:t})}inlineTokens(e,t=[]){let n,r,o,i,l,u,d=e;if(this.tokens.links){const e=Object.keys(this.tokens.links);if(e.length>0)for(;null!=(i=this.tokenizer.rules.inline.reflinkSearch.exec(d));)e.includes(i[0].slice(i[0].lastIndexOf("[")+1,-1))&&(d=d.slice(0,i.index)+"["+(0,s.repeatString)("a",i[0].length-2)+"]"+d.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;null!=(i=this.tokenizer.rules.inline.blockSkip.exec(d));)d=d.slice(0,i.index)+"["+(0,s.repeatString)("a",i[0].length-2)+"]"+d.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;null!=(i=this.tokenizer.rules.inline.escapedEmSt.exec(d));)d=d.slice(0,i.index)+"++"+d.slice(this.tokenizer.rules.inline.escapedEmSt.lastIndex);for(;e;)if(l||(u=""),l=!1,n=this.tokenizer.owo(e))e=e.substring(n.raw.length),n.type&&t.push(n);else if(!(this.options.extensions&&this.options.extensions.inline&&this.options.extensions.inline.some(r=>!!(n=r.call({lexer:this},e,t))&&(e=e.substring(n.raw.length),t.push(n),!0))))if(n=this.tokenizer.escape(e))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.tag(e))e=e.substring(n.raw.length),r=t[t.length-1],r&&"text"===n.type&&"text"===r.type?(r.raw+=n.raw,r.text+=n.text):t.push(n);else if(n=this.tokenizer.link(e))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.reflink(e,this.tokens.links))e=e.substring(n.raw.length),r=t[t.length-1],r&&"text"===n.type&&"text"===r.type?(r.raw+=n.raw,r.text+=n.text):t.push(n);else if(n=this.tokenizer.emStrong(e,d,u))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.codespan(e))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.br(e))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.del(e))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.autolink(e,c))e=e.substring(n.raw.length),t.push(n);else if(this.state.inLink||!(n=this.tokenizer.url(e,c))){if(o=e,this.options.extensions&&this.options.extensions.startInline){let t=Infinity;const n=e.slice(1);let r;this.options.extensions.startInline.forEach(function(e){r=e.call({lexer:this},n),"number"==typeof r&&r>=0&&(t=Math.min(t,r))}),t<Infinity&&t>=0&&(o=e.substring(0,t+1))}if(n=this.tokenizer.inlineText(o,a))e=e.substring(n.raw.length),"_"!==n.raw.slice(-1)&&(u=n.raw.slice(-1)),l=!0,r=t[t.length-1],r&&"text"===r.type?(r.raw+=n.raw,r.text+=n.text):t.push(n);else if(e){const t="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(t);break}throw new Error(t)}}else e=e.substring(n.raw.length),t.push(n);return t}}t.Lexer=l},2605:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Parser=void 0;var r=n(5049),o=n(7662),i=n(9839),s=n(3596),a=n(5141);class c{constructor(e){this.options=e||s.defaults,this.options.renderer=this.options.renderer||new r.Renderer,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new o.TextRenderer,this.slugger=new i.Slugger}static parse(e,t){return new c(t).parse(e)}static parseInline(e,t){return new c(t).parseInline(e)}parse(e,t=!0){let n,r,o,i,s,c,l,u,d,h,p,f,m,g,_,v,y,b,w,S="";const I=e.length;for(n=0;n<I;n++)if(h=e[n],this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[h.type]&&(w=this.options.extensions.renderers[h.type].call({parser:this},h),!1!==w||!["space","hr","heading","code","table","blockquote","list","html","paragraph","text"].includes(h.type)))S+=w||"";else switch(h.type){case"space":continue;case"hr":S+=this.renderer.hr();continue;case"heading":S+=this.renderer.heading(this.parseInline(h.tokens),h.depth,(0,a.unescape)(this.parseInline(h.tokens,this.textRenderer)),this.slugger);continue;case"code":S+=this.renderer.code(h.text,h.lang,h.escaped);continue;case"table":for(u="",l="",i=h.header.length,r=0;r<i;r++)l+=this.renderer.tablecell(this.parseInline(h.header[r].tokens),{header:!0,align:h.align[r]});for(u+=this.renderer.tablerow(l),d="",i=h.rows.length,r=0;r<i;r++){for(c=h.rows[r],l="",s=c.length,o=0;o<s;o++)l+=this.renderer.tablecell(this.parseInline(c[o].tokens),{header:!1,align:h.align[o]});d+=this.renderer.tablerow(l)}S+=this.renderer.table(u,d);continue;case"blockquote":d=this.parse(h.tokens),S+=this.renderer.blockquote(d);continue;case"list":for(p=h.ordered,f=h.start,m=h.loose,i=h.items.length,d="",r=0;r<i;r++)_=h.items[r],v=_.checked,y=_.task,g="",_.task&&(b=this.renderer.checkbox(v),m?_.tokens.length>0&&"paragraph"===_.tokens[0].type?(_.tokens[0].text=b+" "+_.tokens[0].text,_.tokens[0].tokens&&_.tokens[0].tokens.length>0&&"text"===_.tokens[0].tokens[0].type&&(_.tokens[0].tokens[0].text=b+" "+_.tokens[0].tokens[0].text)):_.tokens.unshift({type:"text",text:b}):g+=b),g+=this.parse(_.tokens,m),d+=this.renderer.listitem(g,y,v);S+=this.renderer.list(d,p,f);continue;case"html":S+=this.renderer.html(h.text);continue;case"paragraph":S+=this.renderer.paragraph(this.parseInline(h.tokens));continue;case"text":for(d=h.tokens?this.parseInline(h.tokens):h.text;n+1<I&&"text"===e[n+1].type;)h=e[++n],d+="\n"+(h.tokens?this.parseInline(h.tokens):h.text);S+=t?this.renderer.paragraph(d):d;continue;default:{const e='Token with "'+h.type+'" type was not found.';if(this.options.silent)return void console.error(e);throw new Error(e)}}return S}parseInline(e,t){t=t||this.renderer;let n,r,o,i="";const s=e.length;for(n=0;n<s;n++)if(r=e[n],this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[r.type]&&(o=this.options.extensions.renderers[r.type].call({parser:this},r),!1!==o||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(r.type)))i+=o||"";else switch(r.type){case"owo":i+=t.owo(r.text);break;case"escape":case"text":i+=t.text(r.text);break;case"html":i+=t.html(r.text);break;case"link":i+=t.link(r.href,r.title,this.parseInline(r.tokens,t));break;case"image":i+=t.image(r.href,r.title,r.text);break;case"strong":i+=t.strong(this.parseInline(r.tokens,t));break;case"em":i+=t.em(this.parseInline(r.tokens,t));break;case"codespan":i+=t.codespan(r.text);break;case"br":i+=t.br();break;case"del":i+=t.del(this.parseInline(r.tokens,t));break;default:{const e='Token with "'+r.type+'" type was not found.';if(this.options.silent)return void console.error(e);throw new Error(e)}}return i}}t.Parser=c},5049:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Renderer=void 0;var r=n(3596),o=n(5141);t.Renderer=class{constructor(e){this.options=e||r.defaults}owo(e){const t=this.options.odata;return t&&t[e]?'<img class="tk-owo-emotion" src="'+t[e]+'" alt=":'+e+':">':":"+e+":"}code(e,t,n){const r=(t||"").match(/\S*/)[0];if(this.options.highlight){const t=this.options.highlight(e,r);null!=t&&t!==e&&(n=!0,e=t)}return e=e.replace(/\n$/,"")+"\n",r?'<pre><code class="'+this.options.langPrefix+(0,o.escape)(r,!0)+'">'+(n?e:(0,o.escape)(e,!0))+"</code></pre>\n":"<pre><code>"+(n?e:(0,o.escape)(e,!0))+"</code></pre>\n"}blockquote(e){return"<blockquote>\n"+e+"</blockquote>\n"}html(e){return e}heading(e,t,n,r){return this.options.headerIds?"<h"+t+' id="'+this.options.headerPrefix+r.slug(n)+'">'+e+"</h"+t+">\n":"<h"+t+">"+e+"</h"+t+">\n"}hr(){return this.options.xhtml?"<hr/>\n":"<hr>\n"}list(e,t,n){const r=t?"ol":"ul";return"<"+r+(t&&1!==n?' start="'+n+'"':"")+">\n"+e+"</"+r+">\n"}listitem(e){return"<li>"+e+"</li>\n"}checkbox(e){return"<input "+(e?'checked="" ':"")+'disabled="" type="checkbox"'+(this.options.xhtml?" /":"")+"> "}paragraph(e){return"<p>"+e+"</p>\n"}table(e,t){return t&&(t="<tbody>"+t+"</tbody>"),"<table>\n<thead>\n"+e+"</thead>\n"+t+"</table>\n"}tablerow(e){return"<tr>\n"+e+"</tr>\n"}tablecell(e,t){const n=t.header?"th":"td";return(t.align?"<"+n+' align="'+t.align+'">':"<"+n+">")+e+"</"+n+">\n"}strong(e){return"<strong>"+e+"</strong>"}em(e){return"<em>"+e+"</em>"}codespan(e){return"<code>"+e+"</code>"}br(){return this.options.xhtml?"<br/>":"<br>"}del(e){return"<del>"+e+"</del>"}link(e,t,n){if(null===(e=(0,o.cleanUrl)(this.options.sanitize,this.options.baseUrl,e)))return n;let r='<a href="'+(0,o.escape)(e)+'"';return t&&(r+=' title="'+t+'"'),r+=">"+n+"</a>",r}image(e,t,n){if(null===(e=(0,o.cleanUrl)(this.options.sanitize,this.options.baseUrl,e)))return n;let r='<img src="'+e+'" alt="'+n+'"';return t&&(r+=' title="'+t+'"'),r+=this.options.xhtml?"/>":">",r}text(e){return e}}},9839:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Slugger=void 0,t.Slugger=class{constructor(){this.seen={}}serialize(e){return e.toLowerCase().trim().replace(/<[!\/a-z].*?>/gi,"").replace(/[\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&()*+,./:;<=>?@[\]^`{|}~]/g,"").replace(/\s/g,"-")}getNextSafeSlug(e,t){let n=e,r=0;if(this.seen.hasOwnProperty(n)){r=this.seen[e];do{r++,n=e+"-"+r}while(this.seen.hasOwnProperty(n))}return t||(this.seen[e]=r,this.seen[n]=0),n}slug(e,t={}){const n=this.serialize(e);return this.getNextSafeSlug(n,t.dryrun)}}},7662:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TextRenderer=void 0,t.TextRenderer=class{strong(e){return e}em(e){return e}codespan(e){return e}del(e){return e}html(e){return e}text(e){return e}link(e,t,n){return""+n}image(e,t,n){return""+n}br(){return""}}},5685:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Tokenizer=void 0;var r=n(3596),o=n(5141);function i(e,t,n,r){const i=t.href,s=t.title?(0,o.escape)(t.title):null,a=e[1].replace(/\\([\[\]])/g,"$1");if("!"!==e[0].charAt(0)){r.state.inLink=!0;const e={type:"link",raw:n,href:i,title:s,text:a,tokens:r.inlineTokens(a,[])};return r.state.inLink=!1,e}return{type:"image",raw:n,href:i,title:s,text:(0,o.escape)(a)}}t.Tokenizer=class{constructor(e){this.options=e||r.defaults}space(e){const t=this.rules.block.newline.exec(e);if(t&&t[0].length>0)return{type:"space",raw:t[0]}}code(e){const t=this.rules.block.code.exec(e);if(t){const e=t[0].replace(/^ {1,4}/gm,"");return{type:"code",raw:t[0],codeBlockStyle:"indented",text:this.options.pedantic?e:(0,o.rtrim)(e,"\n")}}}fences(e){const t=this.rules.block.fences.exec(e);if(t){const e=t[0],n=function(e,t){const n=e.match(/^(\s+)(?:```)/);if(null===n)return t;const r=n[1];return t.split("\n").map(e=>{const t=e.match(/^\s+/);if(null===t)return e;const[n]=t;return n.length>=r.length?e.slice(r.length):e}).join("\n")}(e,t[3]||"");return{type:"code",raw:e,lang:t[2]?t[2].trim():t[2],text:n}}}heading(e){const t=this.rules.block.heading.exec(e);if(t){let e=t[2].trim();if(/#$/.test(e)){const t=(0,o.rtrim)(e,"#");this.options.pedantic?e=t.trim():t&&!/ $/.test(t)||(e=t.trim())}const n={type:"heading",raw:t[0],depth:t[1].length,text:e,tokens:[]};return this.lexer.inline(n.text,n.tokens),n}}hr(e){const t=this.rules.block.hr.exec(e);if(t)return{type:"hr",raw:t[0]}}blockquote(e){const t=this.rules.block.blockquote.exec(e);if(t){const e=t[0].replace(/^ *> ?/gm,"");return{type:"blockquote",raw:t[0],tokens:this.lexer.blockTokens(e,[]),text:e}}}list(e){let t=this.rules.block.list.exec(e);if(t){let n,r,o,i,s,a,c,l,u,d,h,p,f=t[1].trim();const m=f.length>1,g={type:"list",raw:"",ordered:m,start:m?+f.slice(0,-1):"",loose:!1,items:[]};f=m?`\\d{1,9}\\${f.slice(-1)}`:`\\${f}`,this.options.pedantic&&(f=m?f:"[*+-]");const _=new RegExp(`^( {0,3}${f})((?: [^\\n]*)?(?:\\n|$))`);for(;e&&(p=!1,t=_.exec(e))&&!this.rules.block.hr.test(e);){if(n=t[0],e=e.substring(n.length),l=t[2].split("\n",1)[0],u=e.split("\n",1)[0],this.options.pedantic?(i=2,h=l.trimLeft()):(i=t[2].search(/[^ ]/),i=i>4?1:i,h=l.slice(i),i+=t[1].length),a=!1,!l&&/^ *$/.test(u)&&(n+=u+"\n",e=e.substring(u.length+1),p=!0),!p){const t=new RegExp(`^ {0,${Math.min(3,i-1)}}(?:[*+-]|\\d{1,9}[.)])`);for(;e&&(d=e.split("\n",1)[0],l=d,this.options.pedantic&&(l=l.replace(/^ {1,4}(?=( {4})*[^ ])/g," ")),!t.test(l));){if(l.search(/[^ ]/)>=i||!l.trim())h+="\n"+l.slice(i);else{if(a)break;h+="\n"+l}a||l.trim()||(a=!0),n+=d+"\n",e=e.substring(d.length+1)}}g.loose||(c?g.loose=!0:/\n *\n *$/.test(n)&&(c=!0)),this.options.gfm&&(r=/^\[[ xX]\] /.exec(h),r&&(o="[ ] "!==r[0],h=h.replace(/^\[[ xX]\] +/,""))),g.items.push({type:"list_item",raw:n,task:!!r,checked:o,loose:!1,text:h}),g.raw+=n}g.items[g.items.length-1].raw=n.trimRight(),g.items[g.items.length-1].text=h.trimRight(),g.raw=g.raw.trimRight();const v=g.items.length;for(s=0;s<v;s++){this.lexer.state.top=!1,g.items[s].tokens=this.lexer.blockTokens(g.items[s].text,[]);const e=g.items[s].tokens.filter(e=>"space"===e.type),t=e.every(e=>{const t=e.raw.split("");let n=0;for(const r of t)if("\n"===r&&(n+=1),n>1)return!0;return!1});!g.loose&&e.length&&t&&(g.loose=!0,g.items[s].loose=!0)}return g}}html(e){const t=this.rules.block.html.exec(e);if(t){const e={type:"html",raw:t[0],pre:!this.options.sanitizer&&("pre"===t[1]||"script"===t[1]||"style"===t[1]),text:t[0]};return this.options.sanitize&&(e.type="paragraph",e.text=this.options.sanitizer?this.options.sanitizer(t[0]):(0,o.escape)(t[0]),e.tokens=[],this.lexer.inline(e.text,e.tokens)),e}}def(e){const t=this.rules.block.def.exec(e);if(t)return t[3]&&(t[3]=t[3].substring(1,t[3].length-1)),{type:"def",tag:t[1].toLowerCase().replace(/\s+/g," "),raw:t[0],href:t[2],title:t[3]}}table(e){const t=this.rules.block.table.exec(e);if(t){const e={type:"table",header:(0,o.splitCells)(t[1]).map(e=>({text:e})),align:t[2].replace(/^ *|\| *$/g,"").split(/ *\| */),rows:t[3]&&t[3].trim()?t[3].replace(/\n[ \t]*$/,"").split("\n"):[]};if(e.header.length===e.align.length){e.raw=t[0];let n,r,i,s,a=e.align.length;for(n=0;n<a;n++)/^ *-+: *$/.test(e.align[n])?e.align[n]="right":/^ *:-+: *$/.test(e.align[n])?e.align[n]="center":/^ *:-+ *$/.test(e.align[n])?e.align[n]="left":e.align[n]=null;for(a=e.rows.length,n=0;n<a;n++)e.rows[n]=(0,o.splitCells)(e.rows[n],e.header.length).map(e=>({text:e}));for(a=e.header.length,r=0;r<a;r++)e.header[r].tokens=[],this.lexer.inlineTokens(e.header[r].text,e.header[r].tokens);for(a=e.rows.length,r=0;r<a;r++)for(s=e.rows[r],i=0;i<s.length;i++)s[i].tokens=[],this.lexer.inlineTokens(s[i].text,s[i].tokens);return e}}}lheading(e){const t=this.rules.block.lheading.exec(e);if(t){const e={type:"heading",raw:t[0],depth:"="===t[2].charAt(0)?1:2,text:t[1],tokens:[]};return this.lexer.inline(e.text,e.tokens),e}}paragraph(e){const t=this.rules.block.paragraph.exec(e);if(t){const e={type:"paragraph",raw:t[0],text:"\n"===t[1].charAt(t[1].length-1)?t[1].slice(0,-1):t[1],tokens:[]};return this.lexer.inline(e.text,e.tokens),e}}text(e){const t=this.rules.block.text.exec(e);if(t){const e={type:"text",raw:t[0],text:t[0],tokens:[]};return this.lexer.inline(e.text,e.tokens),e}}escape(e){const t=this.rules.inline.escape.exec(e);if(t)return{type:"escape",raw:t[0],text:(0,o.escape)(t[1])}}tag(e){const t=this.rules.inline.tag.exec(e);if(t)return!this.lexer.state.inLink&&/^<a /i.test(t[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&/^<\/a>/i.test(t[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&/^<(pre|code|kbd|script)(\s|>)/i.test(t[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(t[0])&&(this.lexer.state.inRawBlock=!1),{type:this.options.sanitize?"text":"html",raw:t[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(t[0]):(0,o.escape)(t[0]):t[0]}}link(e){const t=this.rules.inline.link.exec(e);if(t){const e=t[2].trim();if(!this.options.pedantic&&/^</.test(e)){if(!/>$/.test(e))return;const t=(0,o.rtrim)(e.slice(0,-1),"\\");if((e.length-t.length)%2==0)return}else{const e=(0,o.findClosingBracket)(t[2],"()");if(e>-1){const n=(0===t[0].indexOf("!")?5:4)+t[1].length+e;t[2]=t[2].substring(0,e),t[0]=t[0].substring(0,n).trim(),t[3]=""}}let n=t[2],r="";if(this.options.pedantic){const e=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(n);e&&(n=e[1],r=e[3])}else r=t[3]?t[3].slice(1,-1):"";return n=n.trim(),/^</.test(n)&&(n=this.options.pedantic&&!/>$/.test(e)?n.slice(1):n.slice(1,-1)),i(t,{href:n?n.replace(this.rules.inline._escapes,"$1"):n,title:r?r.replace(this.rules.inline._escapes,"$1"):r},t[0],this.lexer)}}reflink(e,t){let n;if((n=this.rules.inline.reflink.exec(e))||(n=this.rules.inline.nolink.exec(e))){let e=(n[2]||n[1]).replace(/\s+/g," ");if(e=t[e.toLowerCase()],!e||!e.href){const e=n[0].charAt(0);return{type:"text",raw:e,text:e}}return i(n,e,n[0],this.lexer)}}emStrong(e,t,n=""){let r=this.rules.inline.emStrong.lDelim.exec(e);if(!r)return;if(r[3]&&n.match(/[\p{L}\p{N}]/u))return;const o=r[1]||r[2]||"";if(!o||o&&(""===n||this.rules.inline.punctuation.exec(n))){const n=r[0].length-1;let o,i,s=n,a=0;const c="*"===r[0][0]?this.rules.inline.emStrong.rDelimAst:this.rules.inline.emStrong.rDelimUnd;for(c.lastIndex=0,t=t.slice(-1*e.length+n);null!=(r=c.exec(t));){if(o=r[1]||r[2]||r[3]||r[4]||r[5]||r[6],!o)continue;if(i=o.length,r[3]||r[4]){s+=i;continue}if((r[5]||r[6])&&n%3&&!((n+i)%3)){a+=i;continue}if(s-=i,s>0)continue;if(i=Math.min(i,i+s+a),Math.min(n,i)%2){const t=e.slice(1,n+r.index+i);return{type:"em",raw:e.slice(0,n+r.index+i+1),text:t,tokens:this.lexer.inlineTokens(t,[])}}const t=e.slice(2,n+r.index+i-1);return{type:"strong",raw:e.slice(0,n+r.index+i+1),text:t,tokens:this.lexer.inlineTokens(t,[])}}}}codespan(e){const t=this.rules.inline.code.exec(e);if(t){let e=t[2].replace(/\n/g," ");const n=/[^ ]/.test(e),r=/^ /.test(e)&&/ $/.test(e);return n&&r&&(e=e.substring(1,e.length-1)),e=(0,o.escape)(e,!0),{type:"codespan",raw:t[0],text:e}}}br(e){const t=this.rules.inline.br.exec(e);if(t)return{type:"br",raw:t[0]}}del(e){const t=this.rules.inline.del.exec(e);if(t)return{type:"del",raw:t[0],text:t[2],tokens:this.lexer.inlineTokens(t[2],[])}}owo(e){const t=this.rules.inline.owo.exec(e);if(t&&t[0].length>1)return{type:"owo",raw:t[0],text:t[1]}}autolink(e,t){const n=this.rules.inline.autolink.exec(e);if(n){let e,r;return"@"===n[2]?(e=(0,o.escape)(this.options.mangle?t(n[1]):n[1]),r="mailto:"+e):(e=(0,o.escape)(n[1]),r=e),{type:"link",raw:n[0],text:e,href:r,tokens:[{type:"text",raw:e,text:e}]}}}url(e,t){let n;if(n=this.rules.inline.url.exec(e)){let e,r;if("@"===n[2])e=(0,o.escape)(this.options.mangle?t(n[0]):n[0]),r="mailto:"+e;else{let t;do{t=n[0],n[0]=this.rules.inline._backpedal.exec(n[0])[0]}while(t!==n[0]);e=(0,o.escape)(n[0]),r="www."===n[1]?"http://"+e:e}return{type:"link",raw:n[0],text:e,href:r,tokens:[{type:"text",raw:e,text:e}]}}}inlineText(e,t){const n=this.rules.inline.text.exec(e);if(n){let e;return e=this.lexer.state.inRawBlock?this.options.sanitize?this.options.sanitizer?this.options.sanitizer(n[0]):(0,o.escape)(n[0]):n[0]:(0,o.escape)(this.options.smartypants?t(n[0]):n[0]),{type:"text",raw:n[0],text:e}}}}},3596:function(e,t){"use strict";function n(){return{baseUrl:null,breaks:!1,extensions:null,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:null,sanitize:!1,sanitizer:null,silent:!1,smartLists:!1,smartypants:!1,tokenizer:null,walkTokens:null,xhtml:!1}}Object.defineProperty(t,"__esModule",{value:!0}),t.changeDefaults=function(e){t.defaults=r=e},t.defaults=void 0,t.getDefaults=n;let r=t.defaults={baseUrl:null,breaks:!1,extensions:null,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:null,sanitize:!1,sanitizer:null,silent:!1,smartLists:!1,smartypants:!1,tokenizer:null,walkTokens:null,xhtml:!1}},5141:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.checkSanitizeDeprecation=function(e){e&&e.sanitize&&!e.silent&&console.warn("marked(): sanitize and sanitizer parameters are deprecated since version 0.7.0, should not be used and will be removed in the future. Read more here: https://marked.js.org/#/USING_ADVANCED.md#options")},t.cleanUrl=function(e,t,n){if(e){let e;try{e=decodeURIComponent(l(n)).replace(d,"").toLowerCase()}catch(r){return null}if(0===e.indexOf("javascript:")||0===e.indexOf("vbscript:")||0===e.indexOf("data:"))return null}t&&!h.test(n)&&(n=_(t,n));try{n=encodeURI(n).replace(/%25/g,"%")}catch(r){return null}return n},t.edit=function(e,t){e=e.source||e,t=t||"";const n={replace:(t,r)=>(r=(r=r.source||r).replace(u,"$1"),e=e.replace(t,r),n),getRegex:()=>new RegExp(e,t)};return n},t.escape=function(e,t){if(t){if(n.test(e))return e.replace(r,a)}else if(o.test(e))return e.replace(i,a);return e},t.findClosingBracket=function(e,t){if(-1===e.indexOf(t[1]))return-1;const n=e.length;let r=0,o=0;for(;o<n;o++)if("\\"===e[o])o++;else if(e[o]===t[0])r++;else if(e[o]===t[1]&&(r--,r<0))return o;return-1},t.merge=function(e){let t,n,r=1;for(;r<arguments.length;r++)for(n in t=arguments[r],t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e},t.noopTest=void 0,t.repeatString=function(e,t){if(t<1)return"";let n="";for(;t>1;)1&t&&(n+=e),t>>=1,e+=e;return n+e},t.resolveUrl=_,t.rtrim=v,t.splitCells=function(e,t){const n=e.replace(/\|/g,(e,t,n)=>{let r=!1,o=t;for(;--o>=0&&"\\"===n[o];)r=!r;return r?"|":" |"}).split(/ \|/);let r=0;if(n[0].trim()||n.shift(),n.length>0&&!n[n.length-1].trim()&&n.pop(),n.length>t)n.splice(t);else for(;n.length<t;)n.push("");for(;r<n.length;r++)n[r]=n[r].trim().replace(/\\\|/g,"|");return n},t.unescape=l;const n=/[&<>"']/,r=/[&<>"']/g,o=/[<>"']|&(?!#?\w+;)/,i=/[<>"']|&(?!#?\w+;)/g,s={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},a=e=>s[e],c=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/gi;function l(e){return e.replace(c,(e,t)=>"colon"===(t=t.toLowerCase())?":":"#"===t.charAt(0)?"x"===t.charAt(1)?String.fromCharCode(parseInt(t.substring(2),16)):String.fromCharCode(+t.substring(1)):"")}const u=/(^|[^\[])\^/g,d=/[^\w:]/g,h=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i,p={},f=/^[^:]+:\/*[^/]*$/,m=/^([^:]+:)[\s\S]*$/,g=/^([^:]+:\/*[^/]*)[\s\S]*$/;function _(e,t){p[" "+e]||(f.test(e)?p[" "+e]=e+"/":p[" "+e]=v(e,"/",!0));const n=-1===(e=p[" "+e]).indexOf(":");return"//"===t.substring(0,2)?n?t:e.replace(m,"$1")+t:"/"===t.charAt(0)?n?t:e.replace(g,"$1")+t:e+t}function v(e,t,n){const r=e.length;if(0===r)return"";let o=0;for(;o<r;){const i=e.charAt(r-o-1);if(i!==t||n){if(i===t||!n)break;o++}else o++}return e.substr(0,r-o)}t.noopTest={exec:function(){}}},5658:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"Lexer",{enumerable:!0,get:function(){return r.Lexer}}),Object.defineProperty(t,"Parser",{enumerable:!0,get:function(){return o.Parser}}),Object.defineProperty(t,"Renderer",{enumerable:!0,get:function(){return s.Renderer}}),Object.defineProperty(t,"Slugger",{enumerable:!0,get:function(){return c.Slugger}}),Object.defineProperty(t,"TextRenderer",{enumerable:!0,get:function(){return a.TextRenderer}}),Object.defineProperty(t,"Tokenizer",{enumerable:!0,get:function(){return i.Tokenizer}}),Object.defineProperty(t,"defaults",{enumerable:!0,get:function(){return u.defaults}}),Object.defineProperty(t,"getDefaults",{enumerable:!0,get:function(){return u.getDefaults}}),t.lexer=void 0,t.marked=d,t.walkTokens=t.use=t.setOptions=t.parser=t.parseInline=t.parse=t.options=void 0;var r=n(9506),o=n(2605),i=n(5685),s=n(5049),a=n(7662),c=n(9839),l=n(5141),u=n(3596);function d(e,t,n){if(null==e)throw new Error("marked(): input parameter is undefined or null");if("string"!=typeof e)throw new Error("marked(): input parameter is of type "+Object.prototype.toString.call(e)+", string expected");if("function"==typeof t&&(n=t,t=null),t=(0,l.merge)({},d.defaults,t||{}),(0,l.checkSanitizeDeprecation)(t),n){const s=t.highlight;let a;try{a=r.Lexer.lex(e,t)}catch(i){return n(i)}const c=function(e){let r;if(!e)try{t.walkTokens&&d.walkTokens(a,t.walkTokens),r=o.Parser.parse(a,t)}catch(i){e=i}return t.highlight=s,e?n(e):n(null,r)};if(!s||s.length<3)return c();if(delete t.highlight,!a.length)return c();let l=0;return d.walkTokens(a,function(e){"code"===e.type&&(l++,setTimeout(()=>{s(e.text,e.lang,function(t,n){if(t)return c(t);null!=n&&n!==e.text&&(e.text=n,e.escaped=!0),l--,0===l&&c()})},0))}),void(0===l&&c())}try{const n=r.Lexer.lex(e,t);return t.walkTokens&&d.walkTokens(n,t.walkTokens),o.Parser.parse(n,t)}catch(i){if(i.message+="\nPlease report this to https://github.com/markedjs/marked.",t.silent)return"<p>An error occurred:</p><pre>"+(0,l.escape)(i.message+"",!0)+"</pre>";throw i}}d.options=d.setOptions=function(e){return(0,l.merge)(d.defaults,e),(0,u.changeDefaults)(d.defaults),d},d.getDefaults=u.getDefaults,d.defaults=u.defaults,d.use=function(...e){const t=(0,l.merge)({},...e),n=d.defaults.extensions||{renderers:{},childTokens:{}};let r;e.forEach(e=>{if(e.extensions&&(r=!0,e.extensions.forEach(e=>{if(!e.name)throw new Error("extension name required");if(e.renderer){const t=n.renderers?n.renderers[e.name]:null;n.renderers[e.name]=t?function(...n){let r=e.renderer.apply(this,n);return!1===r&&(r=t.apply(this,n)),r}:e.renderer}if(e.tokenizer){if(!e.level||"block"!==e.level&&"inline"!==e.level)throw new Error("extension level must be 'block' or 'inline'");n[e.level]?n[e.level].unshift(e.tokenizer):n[e.level]=[e.tokenizer],e.start&&("block"===e.level?n.startBlock?n.startBlock.push(e.start):n.startBlock=[e.start]:"inline"===e.level&&(n.startInline?n.startInline.push(e.start):n.startInline=[e.start]))}e.childTokens&&(n.childTokens[e.name]=e.childTokens)})),e.renderer){const n=d.defaults.renderer||new s.Renderer;for(const t in e.renderer){const r=n[t];n[t]=(...o)=>{let i=e.renderer[t].apply(n,o);return!1===i&&(i=r.apply(n,o)),i}}t.renderer=n}if(e.tokenizer){const n=d.defaults.tokenizer||new i.Tokenizer;for(const t in e.tokenizer){const r=n[t];n[t]=(...o)=>{let i=e.tokenizer[t].apply(n,o);return!1===i&&(i=r.apply(n,o)),i}}t.tokenizer=n}if(e.walkTokens){const n=d.defaults.walkTokens;t.walkTokens=function(t){e.walkTokens.call(this,t),n&&n.call(this,t)}}r&&(t.extensions=n),d.setOptions(t)})},d.walkTokens=function(e,t){for(const n of e)switch(t.call(d,n),n.type){case"table":for(const e of n.header)d.walkTokens(e.tokens,t);for(const e of n.rows)for(const n of e)d.walkTokens(n.tokens,t);break;case"list":d.walkTokens(n.items,t);break;default:d.defaults.extensions&&d.defaults.extensions.childTokens&&d.defaults.extensions.childTokens[n.type]?d.defaults.extensions.childTokens[n.type].forEach(function(e){d.walkTokens(n[e],t)}):n.tokens&&d.walkTokens(n.tokens,t)}},d.parseInline=function(e,t){if(null==e)throw new Error("marked.parseInline(): input parameter is undefined or null");if("string"!=typeof e)throw new Error("marked.parseInline(): input parameter is of type "+Object.prototype.toString.call(e)+", string expected");t=(0,l.merge)({},d.defaults,t||{}),(0,l.checkSanitizeDeprecation)(t);try{const n=r.Lexer.lexInline(e,t);return t.walkTokens&&d.walkTokens(n,t.walkTokens),o.Parser.parseInline(n,t)}catch(n){if(n.message+="\nPlease report this to https://github.com/markedjs/marked.",t.silent)return"<p>An error occurred:</p><pre>"+(0,l.escape)(n.message+"",!0)+"</pre>";throw n}},d.Parser=o.Parser,d.parser=o.Parser.parse,d.Renderer=s.Renderer,d.TextRenderer=a.TextRenderer,d.Lexer=r.Lexer,d.lexer=r.Lexer.lex,d.Tokenizer=i.Tokenizer,d.Slugger=c.Slugger,d.parse=d,t.options=d.options,t.setOptions=d.setOptions,t.use=d.use,t.walkTokens=d.walkTokens,t.parseInline=d.parseInline,t.parse=d,t.parser=o.Parser.parse,t.lexer=r.Lexer.lex},1319:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.inline=t.block=void 0;var r=n(5141);const o=t.block={newline:/^(?: *(?:\n|$))+/,code:/^( {4}[^\n]+(?:\n(?: *(?:\n|$))*)?)+/,fences:/^ {0,3}(`{3,}(?=[^`\n]*\n)|~{3,})([^\n]*)\n(?:|([\s\S]*?)\n)(?: {0,3}\1[~`]* *(?=\n|$)|$)/,hr:/^ {0,3}((?:- *){3,}|(?:_ *){3,}|(?:\* *){3,})(?:\n+|$)/,heading:/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,blockquote:/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/,list:/^( {0,3}bull)( [^\n]+?)?(?:\n|$)/,html:"^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n *)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$))",def:/^ {0,3}\[(label)\]: *(?:\n *)?<?([^\s>]+)>?(?:(?: +(?:\n *)?| *\n *)(title))? *(?:\n+|$)/,table:r.noopTest,lheading:/^([^\n]+)\n {0,3}(=+|-+) *(?:\n+|$)/,_paragraph:/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,text:/^[^\n]+/};o._label=/(?!\s*\])(?:\\.|[^\[\]\\])+/,o._title=/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/,o.def=(0,r.edit)(o.def).replace("label",o._label).replace("title",o._title).getRegex(),o.bullet=/(?:[*+-]|\d{1,9}[.)])/,o.listItemStart=(0,r.edit)(/^( *)(bull) */).replace("bull",o.bullet).getRegex(),o.list=(0,r.edit)(o.list).replace(/bull/g,o.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+o.def.source+")").getRegex(),o._tag="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|section|source|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",o._comment=/<!--(?!-?>)[\s\S]*?(?:-->|$)/,o.html=(0,r.edit)(o.html,"i").replace("comment",o._comment).replace("tag",o._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),o.paragraph=(0,r.edit)(o._paragraph).replace("hr",o.hr).replace("heading"," {0,3}#{1,6} ").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",o._tag).getRegex(),o.blockquote=(0,r.edit)(o.blockquote).replace("paragraph",o.paragraph).getRegex(),o.normal=(0,r.merge)({},o),o.gfm=(0,r.merge)({},o.normal,{table:"^ *([^\\n ].*\\|.*)\\n {0,3}(?:\\| *)?(:?-+:? *(?:\\| *:?-+:? *)*)(?:\\| *)?(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)"}),o.gfm.table=(0,r.edit)(o.gfm.table).replace("hr",o.hr).replace("heading"," {0,3}#{1,6} ").replace("blockquote"," {0,3}>").replace("code"," {4}[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",o._tag).getRegex(),o.gfm.paragraph=(0,r.edit)(o._paragraph).replace("hr",o.hr).replace("heading"," {0,3}#{1,6} ").replace("|lheading","").replace("table",o.gfm.table).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",o._tag).getRegex(),o.pedantic=(0,r.merge)({},o.normal,{html:(0,r.edit)("^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:\"[^\"]*\"|'[^']*'|\\s[^'\"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))").replace("comment",o._comment).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:r.noopTest,paragraph:(0,r.edit)(o.normal._paragraph).replace("hr",o.hr).replace("heading"," *#{1,6} *[^\n]").replace("lheading",o.lheading).replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").getRegex()});const i=t.inline={owo:/^:(\S*):/,escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:r.noopTest,tag:"^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>",link:/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/,reflink:/^!?\[(label)\]\[(ref)\]/,nolink:/^!?\[(ref)\](?:\[\])?/,reflinkSearch:"reflink|nolink(?!\\()",emStrong:{lDelim:/^(?:\*+(?:([punct_])|[^\s*]))|^_+(?:([punct*])|([^\s_]))/,rDelimAst:/^[^_*]*?\_\_[^_*]*?\*[^_*]*?(?=\_\_)|[punct_](\*+)(?=[\s]|$)|[^punct*_\s](\*+)(?=[punct_\s]|$)|[punct_\s](\*+)(?=[^punct*_\s])|[\s](\*+)(?=[punct_])|[punct_](\*+)(?=[punct_])|[^punct*_\s](\*+)(?=[^punct*_\s])/,rDelimUnd:/^[^_*]*?\*\*[^_*]*?\_[^_*]*?(?=\*\*)|[punct*](\_+)(?=[\s]|$)|[^punct*_\s](\_+)(?=[punct*\s]|$)|[punct*\s](\_+)(?=[^punct*_\s])|[\s](\_+)(?=[punct*])|[punct*](\_+)(?=[punct*])/},code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,br:/^( {2,}|\\)\n(?!\s*$)/,del:r.noopTest,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`:*_]|\b_|$)|[^ ](?= {2,}\n)))/,punctuation:/^([\spunctuation])/};i._punctuation="!\"#$%&'()+\\-.,/:;<=>?@\\[\\]`^{|}~",i.punctuation=(0,r.edit)(i.punctuation).replace(/punctuation/g,i._punctuation).getRegex(),i.blockSkip=/\[[^\]]*?\]\([^\)]*?\)|`[^`]*?`|<[^>]*?>/g,i.escapedEmSt=/\\\*|\\_/g,i._comment=(0,r.edit)(o._comment).replace("(?:--\x3e|$)","--\x3e").getRegex(),i.emStrong.lDelim=(0,r.edit)(i.emStrong.lDelim).replace(/punct/g,i._punctuation).getRegex(),i.emStrong.rDelimAst=(0,r.edit)(i.emStrong.rDelimAst,"g").replace(/punct/g,i._punctuation).getRegex(),i.emStrong.rDelimUnd=(0,r.edit)(i.emStrong.rDelimUnd,"g").replace(/punct/g,i._punctuation).getRegex(),i._escapes=/\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/g,i._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/,i._email=/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/,i.autolink=(0,r.edit)(i.autolink).replace("scheme",i._scheme).replace("email",i._email).getRegex(),i._attribute=/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/,i.tag=(0,r.edit)(i.tag).replace("comment",i._comment).replace("attribute",i._attribute).getRegex(),i._label=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,i._href=/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/,i._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/,i.link=(0,r.edit)(i.link).replace("label",i._label).replace("href",i._href).replace("title",i._title).getRegex(),i.reflink=(0,r.edit)(i.reflink).replace("label",i._label).replace("ref",o._label).getRegex(),i.nolink=(0,r.edit)(i.nolink).replace("ref",o._label).getRegex(),i.reflinkSearch=(0,r.edit)(i.reflinkSearch,"g").replace("reflink",i.reflink).replace("nolink",i.nolink).getRegex(),i.normal=(0,r.merge)({},i),i.pedantic=(0,r.merge)({},i.normal,{strong:{start:/^__|\*\*/,middle:/^__(?=\S)([\s\S]*?\S)__(?!_)|^\*\*(?=\S)([\s\S]*?\S)\*\*(?!\*)/,endAst:/\*\*(?!\*)/g,endUnd:/__(?!_)/g},em:{start:/^_|\*/,middle:/^()\*(?=\S)([\s\S]*?\S)\*(?!\*)|^_(?=\S)([\s\S]*?\S)_(?!_)/,endAst:/\*(?!\*)/g,endUnd:/_(?!_)/g},link:(0,r.edit)(/^!?\[(label)\]\((.*?)\)/).replace("label",i._label).getRegex(),reflink:(0,r.edit)(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",i._label).getRegex()}),i.gfm=(0,r.merge)({},i.normal,{escape:(0,r.edit)(i.escape).replace("])","~|])").getRegex(),_extended_email:/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/,url:/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,_backpedal:/(?:[^?!.,:;*_~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])([\s\S]*?[^\s~])\1(?=[^~]|$)/,text:/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`:*~_]|\b_|https?:\/\/|ftp:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/}),i.gfm.url=(0,r.edit)(i.gfm.url,"i").replace("email",i.gfm._extended_email).getRegex(),i.breaks=(0,r.merge)({},i.gfm,{br:(0,r.edit)(i.br).replace("{2,}","*").getRegex(),text:(0,r.edit)(i.gfm.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()})},1464:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=void 0,t["default"]=class{constructor(e){const t={logo:"OwO表情",container:document.getElementsByClassName("OwO")[0],target:document.getElementsByTagName("textarea")[0],position:"down",maxHeight:"250px",odata:{}};for(const n in t)t[n]&&!e[n]&&(e[n]=t[n]);this.container=e.container,this.target=e.target,"up"===e.position&&this.container.classList.add("OwO-up"),this.odata=e.odata,setTimeout(()=>{this.init(e)})}init(e){this.area=e.target,this.packages=Object.keys(this.odata);let t=`<div class="OwO-logo">${e.logo}</div><div class="OwO-body">`;for(let n=0;n<this.packages.length;n++){t+=`<ul class="OwO-items OwO-items-${this.odata[this.packages[n]].type}" style="max-height: ${parseInt(e.maxHeight)-53+"px"};">`;const r=this.odata[this.packages[n]].container;for(let e=0;e<r.length;e++){const n=r[e].icon.replace("<img",'<img loading="lazy"');t+=`<li class="OwO-item" title="${r[e].text}">${n}</li>`}t+="</ul>"}t+='<div class="OwO-bar"><ul class="OwO-packages">';for(let n=0;n<this.packages.length;n++)t+=`<li><span>${this.packages[n]}</span></li>`;t+="</ul></div></div>",this.container.innerHTML=t,this.logo=this.container.getElementsByClassName("OwO-logo")[0],this.logo.addEventListener("click",()=>{this.toggle()}),this.container.getElementsByClassName("OwO-body")[0].addEventListener("click",e=>{let t=null;if(e.target.classList.contains("OwO-item")?t=e.target:e.target.parentNode.classList.contains("OwO-item")&&(t=e.target.parentNode),t){const e=this.area.selectionEnd,n=this.area.value;let r=t.innerHTML;if(-1!==r.indexOf("<img"))if(t.title)r=":"+t.title+": ";else{const e=r.indexOf('src="')+5,n=r.indexOf('"',e);-1!==e&&-1!==n&&(r=`![${t.title||""}](${r.substring(e,n)})`)}this.area.value=n.slice(0,e)+r+n.slice(e),this.area.dispatchEvent(new InputEvent("input")),this.area.focus(),this.toggle()}}),this.packagesEle=this.container.getElementsByClassName("OwO-packages")[0];for(let n=0;n<this.packagesEle.children.length;n++)(e=>{this.packagesEle.children[n].addEventListener("click",()=>{this.tab(e)})})(n);this.tab(0)}toggle(){this.container.classList.contains("OwO-open")?this.container.classList.remove("OwO-open"):this.container.classList.add("OwO-open")}tab(e){const t=this.container.getElementsByClassName("OwO-items-show")[0];t&&t.classList.remove("OwO-items-show"),this.container.getElementsByClassName("OwO-items")[e].classList.add("OwO-items-show");const n=this.container.getElementsByClassName("OwO-package-active")[0];n&&n.classList.remove("OwO-package-active"),this.packagesEle.getElementsByTagName("li")[e].classList.add("OwO-package-active")}}},9533:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isUrl=t.call=void 0;var r=n(8897);const o=e=>/^http(s)?:\/\//.test(e);t.isUrl=o,t.call=async(e,t,n={})=>{const i=e||(r.app?r.app.$tcb:null),s=n.envId||r.app.$twikoo.envId,a=n.funcName||r.app?.$twikoo.funcName||"twikoo";if(!i){if(o(s))return await new Promise((e,r)=>{try{const o=localStorage.getItem("twikoo-access-token"),i=new XMLHttpRequest;i.onreadystatechange=()=>{if(4===i.readyState)if(200===i.status){const t=JSON.parse(i.responseText);t.accessToken&&localStorage.setItem("twikoo-access-token",t.accessToken),e({result:t})}else r(i.status)},i.open("POST",s),i.setRequestHeader("Content-Type","application/json"),i.send(JSON.stringify({event:t,accessToken:o,...n,envId:s}))}catch(o){r(o)}});throw new Error("缺少 envId 配置 - https://twikoo.js.org")}try{return await i.app.callFunction({name:a,data:{event:t,...n}})}catch(c){let e;switch(t){case"COMMENT_LIKE":e="comment-like";break;case"COMMENT_GET":e="comment-get";break;case"COMMENT_SUBMIT":e="comment-submit";break;case"COUNTER_GET":e="counter-get"}if(e)return await i.app.callFunction({name:e,data:n});throw new Error("请升级 Twikoo 云函数版本再试,如果仍无法解决,请删除并重新创建 Twikoo 云函数 - https://twikoo.js.org")}}},5940:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getQQAvatar=function(e){return`https://thirdqq.qlogo.cn/g?b=sdk&nk=${e.replace(/@qq.com/gi,"")}&s=140`},t.isQQ=function(e){return/^[1-9][0-9]{4,10}$/.test(e)||/^[1-9][0-9]{4,10}@qq.com$/i.test(e)},t.normalizeMail=function(e){return String(e).trim().toLowerCase()}},7760:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.initMarkedOwo=function(e){if(e&&Object.values(e)){const t={};return Object.values(e).forEach(e=>{e.container.forEach(e=>{const n=i(e.icon);n&&(t[e.text]=n)})}),t}},t.initOwoEmotions=async function(e){const t={},n=await Promise.all(e.split(",").map(e=>function(e){return new Promise(t=>{const n=new XMLHttpRequest;n.onreadystatechange=()=>{if(4===n.readyState)if(n.status>=200&&n.status<300||304===n.status){const e=function(e){try{return Object.values(e).forEach(e=>{if("image"===e.type)for(const t of e.container)t.text||(t.text=s(i(t.icon)))}),e}catch(t){r.logger.warn("OwO data is bad: ",t)}}(JSON.parse(n.responseText));t(e)}else r.logger.warn("OwO data request was unsuccessful: "+n.status)},n.open("get",e,!0),n.send(null)})}(e.trim())));return Object.assign(t,...n),t};var r=n(2509);const o=document.createElement("template");function i(e){try{return o.innerHTML=e,o.content.childNodes[0].src}catch(t){return""}}function s(e){return e.split("#").shift().split("?").shift().split("/").pop()}},9957:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=void 0;var r=n(8897);let o,i;const s=(e,t)=>{const n=document.getElementById("twikoo");i&&n.contains(i)||!e||"none"===e||(i=document.createElement("link"),i.href="default"===e?`${t}/themes/prism.min.css`:`${t}/themes/prism-${e}.min.css`,i.rel="stylesheet",i.type="text/css",n.appendChild(i))};t["default"]=(e,t,i)=>{const a=r.app&&r.app.$twikoo.prismCdn?r.app.$twikoo.prismCdn:"https://cdn.jsdelivr.net/npm/prismjs@1.28.0";window.Prism=window.Prism||{},window.Prism.manual=!0,o||(o=n(6665),n(9670),o.plugins.autoloader.languages_path=`${a}/components/`,i&&(n(5900),i.split(",").map(e=>e.trim()).forEach(e=>{"showLanguage"===e?n(3020):"copyButton"===e&&n(9092)}))),s(t,a),o.highlightAllUnder(e)}},4168:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=void 0;const n="ADMIN_COMMENT",r="ADMIN_CONFIG_CATEGORY",o="ADMIN_CONFIG_ITEM",i="ADMIN_IMPORT",s=["qmsg","serverchan","pushplus","pushplushxtrip","dingtalk","wecom","bark","gocqhttp","atri","pushdeer","igot","telegram","feishu"].map(e=>`"${e}"`),a=["126","163","1und1","AOL","DebugMail","DynectEmail","FastMail","GandiMail","Gmail","Godaddy","GodaddyAsia","GodaddyEurope","Hotmail","Mail.ru","Maildev","Mailgun","Mailjet","Mailosaur","Mandrill","Naver","OpenMailBox","Outlook365","Postmark","QQ","QQex","SES","SES-EU-WEST-1","SES-US-EAST-1","SES-US-WEST-2","SendCloud","SendGrid","SendPulse","SendinBlue","Sparkpost","Yahoo","Yandex","Zoho","hot.ee","iCloud","mail.ee","qiye.aliyun"].map(e=>`"${e}"`),c=["default","coy","dark","funky","okaidia","solarizedlight","tomorrow","twilight"].map(e=>`"${e}"`),l=["showLanguage","copyButton"].map(e=>`"${e}"`),u=["qcloud","7bu (https://7bu.top)","see (https://s.ee)","lskypro","piclist","easyimage","chevereto","S3 / R2 / MinIO"].map(e=>`"${e}"`),d=["lskypro","piclist","easyimage","s3"].map(e=>`"${e}"`),h=["404","mp","identicon","monsterid","wavatar","retro","robohash","blank"].map(e=>`"${e}"`);t["default"]={ADMIN_CLIENT_VERSION:["前端版本:","前端版本:","前端版本:","Client version: ","Клиент версияси: ","クライアントバージョン:","클라이언트 버전: ","Phiên bản client: ","Versi klien: "],ADMIN_SERVER_VERSION:["云函数版本:","云函數版本:","雲端函式版本:","Server version: ","Сервернинг версияси: ","サーバーサイドバージョン: ","서버 버전: ","Phiên bản cloud function: ","Versi server: "],[n]:["评论管理","評論管理","留言管理","Comment","Изоҳ","コメント管理","댓글 관리","Quản lý bình luận","Manajemen Komentar"],[n+"_DELETE"]:["删除","刪除","移除","Delete","Ўчирмоқ","削除","삭제","Xóa","Hapus"],[n+"_DELETE_CONFIRM"]:["确认删除?","確認刪除?","確認移除?","Confirm deletion?","Ўчириш тасдиқлансинми?","本当に削除しますか?","정말 삭제하시겠습니까?","Xác nhận xóa?","Konfirmasi hapus?"],[n+"_FILTER_ALL"]:["全部","全部","全部","All","Ҳаммаси","全部","전체","Tất cả","Semua"],[n+"_FILTER_VISIBLE"]:["只看可见","只看可見","只看可見","Visible","Кўринадиган","表示中のみ","표시 댓글","Chỉ hiển thị","Hanya Terlihat"],[n+"_FILTER_HIDDEN"]:["只看隐藏","只看隱藏","只看隱藏","Hidden","Яширилган","非表示中のみ","숨김 댓글","Chỉ ẩn","Hanya Tersembunyi"],[n+"_HIDE"]:["隐藏","隱藏","隱藏","Hide","Яширмоқ","非表示","숨기기","Ẩn","Sembunyikan"],[n+"_IS_SPAM_SUFFIX"]:[" (已隐藏)"," (已隱藏)"," (已隱藏)"," (Hidden)"," (Яширилган)"," (非表示)"," (숨김 처리됨)"," (Đã ẩn)"," (Tersembunyi)"],[n+"_SEARCH"]:["搜索","搜索","搜尋","Search","Излаш","検索","검색","Tìm kiếm","Cari"],[n+"_SEARCH_PLACEHOLDER"]:["搜索昵称、邮箱、网址、IP、评论正文、文章地址","搜索暱稱、郵箱、網址、IP、評論正文、文章地址","搜索暱稱、郵件、網址、IP、留言正文、文章路徑","Search by nick, mail, website, IP, comment, or article path","Тахаллус, почта, веб-сайт, ИП, шарҳ ёки мақола йўли бўйича излаш","名前、メールアドレス、ウェブサイトURL、IPアドレス、コメント内容、記事のURLを検索","닉네임, 이메일, 웹사이트, IP, 댓글 내용, 게시글 주소로 검색","Tìm theo tên, email, website, IP, nội dung bình luận hoặc đường dẫn bài viết","Cari berdasarkan nama, email, situs web, IP, isi komentar, atau alamat artikel"],[n+"_SHOW"]:["显示","顯示","顯示","Show","Кўрсатиш","表示","표시","Hiển thị","Tampilkan"],[n+"_TOP"]:["置顶","置頂","置頂","Pin","Қадамоқ","固定する","고정","Ghim lên đầu","Sematkan"],[n+"_UNTOP"]:["取消置顶","取消置頂","取消置頂","Unpin","Қадоқни ечмоқ","固定を解除","고정 해제","Bỏ ghim","Lepas Sematan"],[n+"_VIEW"]:["查看","查看","檢視","View","Кўриниш","閲覧","보기","Xem","Lihat"],[n+"_SECURITY_ALERT"]:["评论链接与本站不同!出于安全考虑,请手动复制以下网址访问:","評論連結與本站不同!出於安全考慮,請手動複製以下網址訪問:","留言連結與本站不同!出於安全考慮,請手動複製以下網址訪問:","The comment link is different from this site! For security reasons, please manually copy the following URL to visit:","Шарҳ ҳаволаси бу сайтдан фарқ қилади! Хавфсизлик сабабларига кўра, илтимос, қуйидаги URL манзилни қўлда нусха олинг:","コメントリンクがこのサイトと異なります!セキュリティ上の理由から、以下のURLを手動でコピーしてアクセスしてください:","댓글 링크가 이 사이트와 다릅니다! 보안상의 이유로, 다음 URL을 수동으로 복사하여 방문하세요:","Liên kết bình luận khác với trang này! Vì lý do bảo mật, hãy sao chép thủ công URL sau để truy cập:","Tautan komentar berbeda dengan situs ini! Demi keamanan, silakan salin manual URL berikut untuk mengunjunginya:"],[n+"_PARSE_ERROR"]:["无法解析评论链接,请仔细检查链接后手动复制以下网址访问:","無法解析評論連結,請仔細檢查連結後手動複製以下網址訪問:","無法解析留言連結,請仔細檢查連結後手動複製以下網址訪問:","Unable to parse comment link. Please check and manually copy the following URL:","Шарҳ ҳаволасини таҳлил қилиб бўлмади. Илтимос, қуйидаги манзилни текширинг ва қўлда нусха олинг:","コメントリンクを解析できません。以下のURLを確認して手動でコピーしてください:","댓글 링크를 파싱할 수 없습니다. 다음 주소를 확인하고 수동으로 복사하세요:","Không thể phân tích liên kết bình luận. Hãy kiểm tra và sao chép thủ công URL sau:","Tidak dapat mengurai tautan komentar. Silakan periksa dan salin manual URL berikut:"],ADMIN_CONFIG:["配置管理","配置管理","設定值管理","Configuration","Конфигурация","設定管理","환경설정","Quản lý cấu hình","Manajemen Konfigurasi"],[r+"_COMMON"]:["通用","通用","一般","General","Умумий","一般","일반","Chung","Umum"],[r+"_IM"]:["即时通知","即時通知","即時通知","Instant notification","Тезкор хабарнома","即時通知","실시간 알림","Thông báo tức thì","Notifikasi Instan"],[r+"_MAIL"]:["邮件通知","郵件通知","郵件通知","Email notification","Электрон почта хабарномаси","メール通知","이메일 알림","Thông báo email","Notifikasi Email"],[r+"_PLUGIN"]:["插件","插件","擴充功能","Plugin","Плагин","プラグイン","플러그인","Plugin","Plugin"],[r+"_PRIVACY"]:["隐私","隱私","隱私權","Privacy","Шахсий қоидалар","プライバシー","개인정보","Quyền riêng tư","Privasi"],[r+"_SPAM"]:["反垃圾","反垃圾","防垃圾","Spam","Спам","スパム対策","스팸 관리","Chống spam","Anti-spam"],[r+"_CAPTCHA"]:["人机验证","人機驗證","人機驗證","CAPTCHA","CAPTCHA","CAPTCHA","CAPTCHA","CAPTCHA","CAPTCHA"],ADMIN_CONFIG_IMAGE_CDN_NONE:["无(不启用图片上传)","無(不啟用圖片上傳)","無(不啟用圖片上傳)","None (disable image upload)","Йўқ (расм юклашни ўчириш)","なし(画像アップロードを無効にする)","없음 (이미지 업로드 비활성화)","Không (tắt tải ảnh)","Tidak Ada (nonaktifkan unggahan gambar)"],ADMIN_CONFIG_CAPTCHA_NONE:["无","無","無","None","Йўқ","なし","없음","Không","Tidak Ada"],ADMIN_CONFIG_CAPTCHA_TURNSTILE:["Cloudflare Turnstile","Cloudflare Turnstile","Cloudflare Turnstile","Cloudflare Turnstile","Cloudflare Turnstile","Cloudflare Turnstile","Cloudflare Turnstile","Cloudflare Turnstile"],ADMIN_CONFIG_CAPTCHA_GEETEST:["极验 Geetest","極驗 Geetest","極驗 Geetest","GeeTest","GeeTest","GeeTest","GeeTest","GeeTest"],ADMIN_CONFIG_CAPTCHA_CAP:["Cap","Cap","Cap","Cap","Cap","Cap","Cap","Cap"],ADMIN_CONFIG_EMAIL_TEST:["邮件通知测试","郵件通知測試","郵件通知測試","Email notification test","Электрон почта хабарномаси тести","メール通知テスト","이메일 알림 테스트","Kiểm tra thông báo email","Tes notifikasi email"],ADMIN_CONFIG_EMAIL_TEST_BTN:["发送测试邮件","發送測試郵件","發送測試郵件","Send test mail","Синов хатини юбориш","テストメールを送信","테스트 메일 발송","Gửi email thử","Kirim email tes"],ADMIN_CONFIG_EMAIL_TEST_HELP:["输入一个邮箱地址,发送测试邮件","輸入一個郵箱位址,發送測試郵件","輸入一個郵箱帳號,發送測試郵件","Input an email address & send test mail","Э-почта манзилини киритинг ва синов хатини юборинг","メールアドレスを入力してテストメールを送信","이메일 주소를 입력하고 테스트 메일을 발송하세요","Nhập địa chỉ email và gửi email thử","Masukkan alamat email dan kirim email tes"],ADMIN_CONFIG_EMAIL_TEST_RESULT:["测试结果:","測試結果:","測試結果:","Test result: ","Тест натижаси: ","テスト結果:","테스트 결과: ","Kết quả kiểm tra: ","Hasil tes: "],ADMIN_CONFIG_EXAMPLE:["示例:","示例:","範例:","Example: ","Намуна: ","例:","예시: ","Ví dụ: ","Contoh: "],[o+"_AKISMET_KEY"]:['Akismet 反垃圾评论,用于垃圾评论检测,设为 "MANUAL_REVIEW" 开启人工审核,留空不使用反垃圾。注册:https://akismet.com','Akismet 反垃圾評論,用於垃圾評論檢測,設為 "MANUAL_REVIEW" 開啟人工審核,留空不使用反垃圾。註冊:https://akismet.com','Akismet 防垃圾留言,用於垃圾留言檢測,設為 "MANUAL_REVIEW" 以開啟人工審核,留空則不使用防垃圾。註冊:https://akismet.com','Akismet spam protection. Set to "MANUAL_REVIEW" to enable manual review. Leave it blank to not use anti-spam. Register Akismet: https://akismet.com','Акисмет спам ҳимояси. Қўлда кўриб чиқишни ёқиш учун "MANUAL_REVIEW" га созланг. Анти-спамдан фойдаланмаслик учун уни бўш қолдиринг. Акисметни рўйхатдан ўтказиш: https://akismet.com','Akismetは、スパムコメントの検出に使用されるアンチスパムサービスです。"MANUAL_REVIEW"に設定することで、手動レビューを有効化します。コメントのスパム対策にAkismetを使用することで、不要なコメントをブロックし、サイトのセキュリティを向上させることができます。 Akismetの詳細情報と登録は、https://akismet.com で提供されています。','Akismet 스팸 방지. 스팸 댓글 감지에 사용합니다. "MANUAL_REVIEW"를 설정하면 수동 검토를 활성화합니다. 비워두면 스팸 수동 검토를 사용하지 않습니다. Akismet 등록: https://akismet.com','Bảo vệ spam Akismet. Đặt thành "MANUAL_REVIEW" để bật kiểm duyệt thủ công. Để trống nếu không dùng chống spam. Đăng ký: https://akismet.com','Perlindungan spam Akismet. Atur ke "MANUAL_REVIEW" untuk mengaktifkan peninjauan manual. Biarkan kosong jika tidak menggunakan anti-spam. Daftar Akismet: https://akismet.com'],[o+"_BLOGGER_NICK"]:["博主的昵称。","博主的昵稱。","站長的暱稱。","Admin nick name.","Админ исми.","管理者の名前。","관리자 닉네임.","Tên hiển thị của quản trị viên.","Nama panggilan admin."],[o+"_BLOGGER_EMAIL"]:["博主的邮箱地址,用于邮件通知、博主标识。","博主的郵箱地址,用於郵件通知、博主標識。","站長的郵箱帳號,用於郵件通知、站長認證。","Admin Email address. Used for Email notification and admin identification.","Админ электрон почта манзили. Электрон почта хабарномаси ва администратор идентификацияси учун фойдаланилади.","管理者のメールアドレス。メール通知と管理者の識別に使用されます。","관리자 이메일 주소. 이메일 알림 및 관리자 식별에 사용됩니다.","Địa chỉ email quản trị viên. Dùng cho thông báo email và nhận diện admin.","Alamat email admin. Digunakan untuk notifikasi email dan identifikasi admin."],[o+"_COMMENT_BG_IMG"]:["评论框自定义背景图片 URL 地址。","評論框自定義背景圖片 URL 地址。","留言區塊自訂背景圖片 URL 網址。","URL for custom background image.","Махсус фон расми учун УРЛ.","コメントボックスのカスタム背景画像のURL。","댓글창 배경 이미지 URL 주소.","URL ảnh nền tùy chỉnh cho khung bình luận.","URL untuk gambar latar belakang kustom."],[o+"_COMMENT_PAGE_SIZE"]:["评论列表分页大小,默认为 8。","評論列表分頁大小,預設為 8。","留言列表分頁大小,預設為 8。","Comment page size. Default: 8.","Изоҳ саҳифаси ўлчами. Стандарт: 8.","コメントリストのページサイズ。デフォルトは8。","한 페이지당 표시 댓글 수. 기본값: 8.","Số bình luận mỗi trang. Mặc định: 8.","Jumlah komentar per halaman. Bawaan: 8."],[o+"_COMMENT_PLACEHOLDER"]:["评论框提示信息,可用<br>换行,默认为空","評論框提示信息,可用<br>換行,預設為空","留言區塊提示資訊,可用<br>換行,預設空白","Comment placeholder. Use <br> to start a newline. Default: empty.","Изоҳ тўлдирувчиси. Янги қаторни бошлаш учун <бр> дан фойдаланинг. Стандарт: бўш.","コメントボックスのヒントメッセージ。<br>で改行。デフォルトは空。","댓글 입력창에 표시될 기본 문구. <br> 태그로 줄바꿈 가능. 기본값: 비어 있음.","Văn bản gợi ý trong khung bình luận. Dùng <br> để xuống dòng. Mặc định: trống.","Placeholder komentar. Gunakan <br> untuk baris baru. Bawaan: kosong."],[o+"_CORS_ALLOW_ORIGIN"]:["CORS 安全域名,注意:如果您不了解什么是 CORS,此项请留空,错误设置会导致无法加载,默认为空,格式为 https://blog.example.com;如需添加多域名请使用,分隔","CORS 安全域名,注意:错误设置会导致无法加載,默認為空,格式为 https://blog.example.com;如需添加多域名請使用,分隔","CORS 安全網域,注意:設定錯誤將會導致載入失敗,預設空白,格式應為 https://blog.example.com;如需添加多域名請使用,分隔","CORS allow origin, note: incorrect settings can cause loading failure. Default: blank, format: https://blog.example.com; If you need to add multiple domain names, please use, separate","Версел СОРС келиб чиқишига рухсат беради, эътибор беринг: нотўғри созламалар юклашда хатоликка олиб келиши мумкин. Стандарт: бўш, формат: https://blog.example.com; Агар сиз бир нечта домен номларини қўшмоқчи бўлсангиз, илтимос, ажратишдан фойдаланинг.","CORS セキュアドメイン。注意:誤った設定は読み込みエラーを引き起こす可能性があります。デフォルトは空、形式は https://blog.example.com です。複数のドメインを追加する場合は、コンマで区切ってください。","댓글 서버 접근 허용 웹사이트 주소. 참고: 등록된 웹사이트만 댓글 시스템과 안전하게 통신합니다. 주소 오류 시 댓글창이 사라질 수 있습니다. 기본값: 비어 있음(보안 취약), 형식: https://blog.example.com; 여러 주소는 쉼표(,)로 구분.","Tên miền cho phép CORS. Lưu ý: cấu hình sai có thể gây lỗi tải. Mặc định: trống. Định dạng: https://blog.example.com; Nhiều tên miền dùng dấu phẩy.","Asal izin CORS, catatan: pengaturan yang salah dapat menyebabkan kegagalan memuat. Bawaan: kosong, format: https://blog.example.com; Jika perlu menambahkan beberapa nama domain, pisahkan dengan koma."],[o+"_DEFAULT_GRAVATAR"]:[`默认的头像显示。默认值(留空)为 "initials",可选:${h.join("、")}`,`預設的頭像顯示。預設值(留空)為 "initials",可選:${h.join("、")}`,`預設的大頭貼照圖示。預設值(留空)為 "initials",選項:${h.join("、")}`,`Avatar placeholder. Default (when empty): "initials". Choose from: ${h.join(", ")}`,`Аватар тўлдирувчиси. Стандарт (агар бўш қолдирилса): «идентификатор». Қуйидагилардан танланг: ${h.join(", ")}`,`デフォルトのプロフィール画像表示。デフォルト(空欄時)は "initials" で、選択肢は:${h.join("、")} です`,`프로필 기본 이미지. 기본값(비워둘 경우): "initials". 사용 가능 스타일: ${h.join(", ")}`,`Ảnh đại diện mặc định. Mặc định (để trống): "initials". : ${h.join(", ")}`,`Tampilan avatar default. Bawaan (bila kosong): "initials". Pilih dari: ${h.join(", ")}`],[o+"_EMOTION_CDN"]:["表情 CDN,英文逗号分隔。默认为:https://owo.imaegoo.com/owo.json","表情 CDN,英文逗號分隔。預設為:https://owo.imaegoo.com/owo.json","表情 CDN 來源,使用英文逗號分隔。預設為:https://owo.imaegoo.com/owo.json","Emoji CDN. Separate by comma. Default: https://owo.imaegoo.com/owo.json","Emoji CDN. Вергул билан ажратинг. Default: https://owo.imaegoo.com/owo.json","顔文字CDN。コンマで区切ってください。デフォルト:https://owo.imaegoo.com/owo.json","이모티콘 데이터 웹 주소. 쉼표(,)로 구분. 기본값: https://owo.imaegoo.com/owo.json","CDN emoji, cách nhau bởi dấu phẩy. Mặc định: https://owo.imaegoo.com/owo.json","CDN Emoji, pisahkan dengan koma. Bawaan: https://owo.imaegoo.com/owo.json"],[o+"_FORBIDDEN_WORDS"]:["违禁词配置,包含违禁词的内容会直接标记为垃圾评论。英文逗号分隔。","違禁詞配置,包含違禁詞的內容會直接標記為垃圾評論。英文逗號分隔。","禁用詞語設定,包含禁用詞語的內容會直接標記為垃圾留言。使用英文逗號分隔。","Configure prohibited words. Comments containing prohibited words will be auto spammed. Separate by comma.","Тақиқланган сўзларни созланг. Тақиқланган сўзларни ўз ичига олган шарҳлар автоматик равишда спамга юборилади. Вергул билан ажратинг.","禁止ワード設定。禁止ワードを含むコンテンツは直ちにスパムコメントとしてマークされます。コンマで区切ってください。","금지어 설정. 금지어 포함 댓글은 스팸으로 숨김 처리 됩니다. 쉼표로 구분.","Cấu hình từ bị cấm. Bình luận chứa từ bị cấm sẽ bị đánh dấu spam. Cách nhau bởi dấu phẩy.","Konfigurasi kata terlarang. Komentar yang mengandung kata terlarang akan otomatis ditandai spam. Pisahkan dengan koma."],[o+"_BLOCKED_WORDS"]:["屏蔽词配置,包含屏蔽词的内容会直接评论失败。英文逗号分隔。","屏蔽词配置,包含屏蔽词的内容会直接评论失败。英文逗号分隔。","屏蔽词配置,包含屏蔽词的内容会直接评论失败。英文逗号分隔。","Configure blocked words. Comments containing blocked words will fail to send. Separate by comma.","Configure blocked words. Comments containing blocked words will fail to send. Separate by comma.","ブロックワード設定。ブロックワードを含むコンテンツは送信に失敗します。コンマで区切ってください。","차단어 설정. 차단어 포함 댓글은 등록에 실패합니다. 쉼표로 구분.","Cấu hình từ bị chặn. Bình luận chứa từ bị chặn sẽ không được gửi. Cách nhau bởi dấu phẩy.","Konfigurasi kata diblokir. Komentar yang mengandung kata diblokir akan gagal dikirim. Pisahkan dengan koma."],[o+"_GRAVATAR_CDN"]:["自定义头像 CDN 地址。如:cn.gravatar.com, weavatar.com, cravatar.cn, sdn.geekzu.org, gravatar.loli.net,默认:weavatar.com","自定義頭像 CDN 地址。如:cn.gravatar.com, weavatar.com, cravatar.cn, sdn.geekzu.org, gravatar.loli.net,預設:weavatar.com","自訂大頭貼照 CDN 來源。如:cn.gravatar.com, weavatar.com, cravatar.cn, sdn.geekzu.org, gravatar.loli.net,預設:weavatar.com","Custom avator CDN. (Examples: gravatar.com) Default: weavatar.com.","Custom avator CDN. (Мисоллар: gravatar.com) Default: weavatar.com.","カスタムプロフィール画像CDNアドレス。例:cn.gravatar.com、weavatar.com、cravatar.cn、sdn.geekzu.org、gravatar.loli.net、デフォルト:weavatar.com","프로필 이미지(아바타) Gravatar 서버 주소. 더 빠르거나 안정적인 서버를 선택할 수 있습니다. (예: gravatar.com) 기본값: weavatar.com.","CDN ảnh đại diện tùy chỉnh. (Ví dụ: gravatar.com) Mặc định: weavatar.com.","Alamat CDN avatar kustom. Contoh: cn.gravatar.com, weavatar.com, cravatar.cn, sdn.geekzu.org, gravatar.loli.net, bawaan: weavatar.com."],[o+"_HIDE_ADMIN_CRYPT"]:["隐藏管理面板入口。可设置一个“暗号”,只有在“昵称”一栏输入相同的“暗号”时,管理面板入口才会显示,留空则不隐藏管理入口","隱藏管理面板入口。可設定一個“暗號”,只有在“暱稱”一欄輸入相同的“暗號”時,管理面板入口才會顯示,留空則不隱藏管理入口","隱藏管理控制台入口。可設定一個“暗號”,只有在「暱稱」一欄輸入相同的「暗號」時,管理控制台入口才會顯示,留白則不隱藏管理入口","Set a cipher to hide the management panel entrance, only when the same cipher is entered in the nickname field the management panel entry will be displayed. Leave it blank to not hide the management entrance.","Бошқарув панелига киришни яшириш учун шифрни ўрнатинг, фақат тахаллус майдонига худди шу шифр киритилганда бошқарув панелидаги ёзув кўрсатилади. Бошқарув киришини яширмаслик учун уни бўш қолдиринг.",'管理パネルのログイン画面を非表示にする。 "パスワード" を設定でき、 "名前" フィールドに同じ "パスワード" を入力した場合のみ、管理パネルのログイン画面が表示されます。空白の場合、管理パネルのログイン画面は非表示にされません。',"환경설정 버튼을 숨깁니다. 암호를 설정하여, 닉네임 입력란에 동일한 암호를 입력해야만 환경설정 버튼이 표시됩니다. 비워두면 버튼을 숨기지 않습니다.",'Đặt mật khẩu bí mật để ẩn nút vào trang quản trị. Chỉ khi nhập đúng mật khẩu vào ô "Tên" mới hiện nút. Để trống để không ẩn.',"Sembunyikan tombol panel manajemen. Atur kata sandi, hanya ketika kata sandi yang sama dimasukkan di kolom nama, tombol akan muncul. Kosongkan untuk tidak menyembunyikan."],[o+"_QQ_API_KEY"]:["QQ昵称API密钥,用于获取QQ昵称。前往 https://api.tqq.me/dashboard/api-keys 获取","QQ暱稱API密鑰,用於獲取QQ暱稱。前往 https://api.tqq.me/dashboard/api-keys 獲取","QQ暱稱API密鑰,用於獲取QQ暱稱。前往 https://api.tqq.me/dashboard/api-keys 獲取","QQ nickname API key for fetching QQ nickname. Get it from https://api.nsuuu.com/admin/key","QQ laqab API kaliti, QQ laqabni olish uchun. https://api.tqq.me/dashboard/api-keys dan oling","QQニックネームAPIキー。QQニックネームの取得に使用します。https://api.tqq.me/dashboard/api-keys で取得","QQ 닉네임 API 키. https://api.tqq.me/dashboard/api-keys 에서 발급","API key lấy biệt danh QQ. Lấy tại https://api.tqq.me/dashboard/api-keys","Kunci API nama panggilan QQ. Dapatkan dari https://api.tqq.me/dashboard/api-keys"],[o+"_HIGHLIGHT"]:["启用代码高亮功能。如果您的主题和代码高亮有冲突,请设为 false。默认:true","啟用代碼高亮功能。如果您的主題和代碼高亮有衝突,請設為 false。預設:true","啟用程式碼醒目顯示功能。如果您的主題和此功能發生衝突,請設定為 false。預設:true","Enable code highlighting. If your theme conflicts with code highlighting, please set it to false. Default: true.","Кодни ажратиб кўрсатишни ёқинг. Агар мавзуингиз кодни ажратиб кўрсатишга зид бўлса, уни «фалсе» га ўрнатинг. Стандарт: рост.","コードハイライト機能を有効にします。テーマとコードハイライトに競合がある場合、falseに設定してください。デフォルト:true","코드 하이라이팅 기능을 활성화합니다. 테마와 코드 하이라이팅이 충돌하면 false로 설정하세요. 기본값: true.","Bật tô sáng code. Nếu theme xung đột, đặt thành false. Mặc định: true.","Aktifkan penyorotan kode. Jika tema Anda bertentangan dengan penyorotan kode, atur ke false. Bawaan: true."],[o+"_HIGHLIGHT_THEME"]:[`代码高亮主题,可选:${c.join("、")},访问 https://prismjs.com 可预览主题效果。如果您的主题和代码高亮有冲突,请设为 none。默认:none`,`代碼高亮主題,可選:${c.join("、")},訪問 https://prismjs.com 可預覽主題效果。如果您的主題和代碼高亮有衝突,請設為 none。預設:none`,`程式碼醒目顯示主題,選項:${c.join("、")},瀏覽 https://prismjs.com 可預覽主題效果。如果您的主題和此功能發生衝突,請設定為 none。預設:none`,`Code highlighting theme. Select from: ${c.join(", ")}. Visit https://prismjs.com for preview. If your theme conflicts with code highlighting, please set it to none. Default: none.`,`Кодни таъкидлаш мавзуси. Қуйидагилардан танланг: ${c.join(", ")}. Олдиндан кўриш учун https://prismjs.com сайтига ташриф буюринг. Агар мавзуингиз кодни ажратиб кўрсатишга зид бўлса, уни «Ҳеч» га ўрнатинг. Стандарт: йўқ.`,`コードハイライトのテーマ。選択肢:${c.join("、")}、テーマの効果をプレビューするには https://prismjs.com を訪問してください。テーマとコードハイライトに競合がある場合、noneに設定してください。デフォルト:none`,`코드 하이라이팅 테마. 사용 가능 테마: ${c.join(", ")}. https://prismjs.com 에서 미리보기를 확인하세요. 테마와 코드 하이라이팅이 충돌하면 none으로 설정하세요. 기본값: none.`,`Theme tô sáng code. Truy cập ${c.join(", ")}. https://prismjs.com để xem trước. Mặc định: none.`,`Tema penyorotan kode. Pilih dari: ${c.join(", ")}. Kunjungi https://prismjs.com untuk pratinjau. Jika tema Anda bertentangan dengan penyorotan kode, atur ke none. Bawaan: none.`],[o+"_HIGHLIGHT_PLUGIN"]:[`代码高亮插件,可选:${l.join("、")},分别表示:展示代码语言、展示代码拷贝按钮。可以同时设置多个选项,如果想要不添加任何代码高亮插件,请设为 none。默认:none。`,`代碼高亮插件,可選:${l.join("、")},分別表示:展示代碼語言、展示代碼拷貝按鈕。可以同時設置多個選項,如果想要不添加任何代碼高亮插件,請設為 none。預設:none。`,`代碼高亮外掛程式,可選:${l.join("、")},分別表示:展示代碼語言、展示代碼拷貝按鈕。 可以同時設置多個選項,如果想要不添加任何代碼高亮外掛程式,請設定為 none。預設:none。`,`Code highlight plug-in, optional: ${l.join(", ")}, respectively: show code language, show code copy button. Multiple options can be set at the same time, if you want to add no code highlighting plug-ins, please set it to none. Default: none. `,`Плагин подсветки кода, опционально: ${l.join(",")}, соответственно: показывать язык кода, показывать кнопку копирования кода. Вы можете установить несколько опций одновременно, если вы хотите не добавлять плагин подсветки кода, установите значение none. по умолчанию: none.`,`コード・ハイライト・プラグイン。オプション: ${l.join(",")}, それぞれ: コード言語の表示、コード・コピー・ボタンの表示。複数のオプションを同時に設定できますが、コード・ハイライト・プラグインを追加したくない場合は、noneに設定してください。`,`코드 하이라이트 추가 기능. 선택 가능: ${l.join(", ")}. (코드 언어 표시, 복사 버튼) 여러 기능을 동시에 설정할 수 있으며, 추가하지 않으려면 none으로 설정하세요. 기본값: none.`,`Plugin tô sáng code. Để không dùng plugin ${l.join(", ")}, đặt thành none. Mặc định: none.`,`Plugin penyorotan kode. Pilihan: ${l.join(", ")}, masing-masing: tampilkan bahasa kode, tampilkan tombol salin kode. Dapat mengatur beberapa opsi sekaligus. Jika tidak ingin plugin penyorotan kode, atur ke none. Bawaan: none.`],[o+"_IMAGE_CDN"]:[`插入图片所使用的图床,目前支持:${u.join("、")}`,`插入圖片所使用的圖床,目前支持:${u.join("、")}`,`插入圖片所使用的圖床,目前支援:${u.join("、")}`,`The image bed for image uploading. Select from: ${u.join(", ")}`,`Расм юклаш учун расм тўшаги. Қуйидагилардан танланг: ${u.join(", ")}`,`画像のアップロードに使用する画像ホスティングサービス。次のうちから選択してください:${u.join("、")}`,`댓글 이미지 업로드 기능에 사용될 호스팅 서비스. 사용 가능 목록: ${u.join(", ")}`,`Dịch vụ lưu trữ ảnh khi tải lên bình luận. ${u.join(", ")}`,`Penyedia hosting gambar untuk unggahan gambar. Pilih dari: ${u.join(", ")}`],[o+"_IMAGE_CDN_URL"]:[`图床的 URL,仅当 IMAGE_CDN 为 ${d.join(" / ")} 时需要填写`,`圖床的 URL,僅當 IMAGE_CDN 為 ${d.join(" / ")} 時需要填寫`,`圖床的 URL,僅當 IMAGE_CDN 為 ${d.join(" / ")} 時需要填寫`,`The URL for the image bed. Required if your IMAGE_CDN is one of these: ${d.join(", ")}`,`IMAGE_CDN томонидан белгиланган расм тўшаги URL. Агар сизнинг IMAGE_CDN шулардан бири бўлса: ${d.join(", ")}`,`IMAGE_CDNで設定した画像ホスティングサービスのURL。IMAGE_CDNが以下のいずれかの場合は入力が必要です:${d.join("、")}`,`이미지 저장소 URL. IMAGE_CDN 설정이 다음 중 하나인 경우 필요합니다: ${d.join(", ")}`,`URL của dịch vụ lưu trữ ảnh. Bắt buộc nếu IMAGE_CDN là một trong các giá trị tùy chỉnh. ${d.join(", ")}`,`URL hosting gambar. Wajib diisi jika IMAGE_CDN Anda adalah salah satu dari: ${d.join(", ")}`],[o+"_IMAGE_CDN_TOKEN"]:["图床 token。qcloud 图床无需设置","图床 token。qcloud 图床无需设置","圖床 token。qcloud 圖床不需設定","The image bed token. Unnessessary for qcloud","Тасвир токен белгиси. Қслоуд учун кераксиз","画像ホスティングトークン。qcloud画像ホスティングを利用する場合は設定の必要はありません","이미지 호스팅 토큰. qcloud은 설정 불필요.","Token dịch vụ lưu trữ ảnh. Không cần thiết cho qcloud.","Token hosting gambar. Tidak diperlukan untuk qcloud."],[o+"_NSFW_API_URL"]:["NSFW 图片检测 API 地址。免费服务:nsfw.qixz.cn,项目:github.com/HG-ha/nsfwpy","NSFW 圖片檢測 API 地址。免費服務:nsfw.qixz.cn,項目:github.com/HG-ha/nsfwpy","NSFW 圖片檢測 API 地址。免費服務:nsfw.qixz.cn,項目:github.com/HG-ha/nsfwpy","NSFW image detection API URL. Free services: nsfw.qixz.cn, project: github.com/HG-ha/nsfwpy","NSFW расмни аниқлаш API URL. Бепул хизматлар: nsfw.qixz.cn, лойиҳа: github.com/HG-ha/nsfwpy","NSFW画像検出API URL。無料サービス:nsfw.qixz.cn、プロジェクト:github.com/HG-ha/nsfwpy","NSFW 이미지 감지 API URL. 무료 서비스: nsfw.qixz.cn, 프로젝트: github.com/HG-ha/nsfwpy","URL API phát hiện ảnh NSFW. Dịch vụ miễn phí: nsfw.qixz.cn, dự án: github.com/HG-ha/nsfwpy","URL API deteksi gambar NSFW. Layanan gratis: nsfw.qixz.cn, proyek: github.com/HG-ha/nsfwpy"],[o+"_NSFW_THRESHOLD"]:["NSFW 检测阈值(0-1),当检测分数高于此值时拒绝上传。默认:0.5","NSFW 檢測閾值(0-1),當檢測分數高於此值時拒絕上傳。預設:0.5","NSFW 檢測閾值(0-1),當檢測分數高於此值時拒絕上傳。預設:0.5","NSFW detection threshold (0-1). Upload will be rejected if score exceeds this value. Default: 0.5","NSFW аниқлаш чегараси (0-1). Баҳо бу қийматдан ошса юклаш рад қилинади. Стандарт: 0.5","NSFW検出しきい値(0-1)。スコアがこの値を超えるとアップロードが拒否されます。デフォルト:0.5","NSFW 감지 임계값 (0-1). 점수가 이 값을 초과하면 업로드가 거부됩니다. 기본값: 0.5","Ngưỡng phát hiện NSFW (0-1). Tải lên bị từ chối nếu điểm vượt ngưỡng. Mặc định: 0.5","Ambang deteksi NSFW (0-1). Unggahan akan ditolak jika skor melebihi nilai ini. Bawaan: 0.5"],[o+"_S3_REGION"]:["S3 存储区域,例如 us-east-1。使用兼容 S3 的服务(如 Cloudflare R2、MinIO)时可填任意值","S3 儲存區域,例如 us-east-1。使用相容 S3 的服務(如 Cloudflare R2、MinIO)時可填任意值","S3 儲存區域,例如 us-east-1。使用相容 S3 的服務(如 Cloudflare R2、MinIO)時可填任意值","S3 region, e.g. us-east-1. Can be any value when using S3-compatible services (e.g. Cloudflare R2, MinIO)","S3 минтақаси, масалан us-east-1. S3 мос хизматлар учун (Cloudflare R2, MinIO) ихтиёрий қийматни киритиш мумкин","S3リージョン(例:us-east-1)。Cloudflare R2やMinIOなどのS3互換サービスを使用する場合は任意の値を入力できます","S3 리전 (예: us-east-1). Cloudflare R2, MinIO 등 S3 호환 서비스 사용 시 임의 값 입력 가능","Vùng S3, ví dụ us-east-1. Có thể nhập giá trị bất kỳ khi dùng dịch vụ tương thích S3 (Cloudflare R2, MinIO)","Region S3, misal us-east-1. Bisa diisi nilai apa saja saat menggunakan layanan yang kompatibel dengan S3 (misal Cloudflare R2, MinIO)"],[o+"_S3_BUCKET"]:["S3 存储桶名称","S3 儲存桶名稱","S3 儲存桶名稱","S3 bucket name","S3 bucket nomi","S3バケット名","S3 버킷 이름","Tên S3 bucket","Nama S3 bucket"],[o+"_S3_ACCESS_KEY_ID"]:["S3 Access Key ID","S3 Access Key ID","S3 Access Key ID","S3 Access Key ID","S3 Access Key ID","S3 Access Key ID","S3 Access Key ID","S3 Access Key ID"],[o+"_S3_SECRET_ACCESS_KEY"]:["S3 Secret Access Key","S3 Secret Access Key","S3 Secret Access Key","S3 Secret Access Key","S3 Secret Access Key","S3 Secret Access Key","S3 Secret Access Key","S3 Secret Access Key"],[o+"_S3_ENDPOINT"]:["S3 自定义 Endpoint,使用 Cloudflare R2、MinIO 等兼容 S3 的服务时填写","S3 自訂 Endpoint,使用 Cloudflare R2、MinIO 等相容 S3 的服務時填寫","S3 自訂 Endpoint,使用 Cloudflare R2、MinIO 等相容 S3 的服務時填寫","S3 custom endpoint. Required when using S3-compatible services like Cloudflare R2 or MinIO","S3 maxsus endpoint. Cloudflare R2 yoki MinIO kabi S3 mos xizmatlardan foydalanishda talab qilinadi","S3カスタムエンドポイント。Cloudflare R2やMinIOなどのS3互換サービスを使用する場合に必要です","S3 커스텀 엔드포인트. Cloudflare R2, MinIO 등 S3 호환 서비스 사용 시 필요","Endpoint S3 tùy chỉnh. Bắt buộc khi dùng Cloudflare R2 hoặc MinIO","Endpoint S3 kustom. Wajib diisi jika menggunakan layanan yang kompatibel dengan S3 seperti Cloudflare R2 atau MinIO"],[o+"_S3_FORCE_PATH_STYLE"]:["设置 S3_ENDPOINT 时,是否将 S3_BUCKET 拼入上传地址路径。默认为 true,适用于 Cloudflare R2、MinIO 等 path-style S3 兼容端点;使用已绑定存储桶的自定义域名时设为 false,例如腾讯云 COS 自定义域名","設定 S3_ENDPOINT 時,是否將 S3_BUCKET 拼入上傳位址路徑。預設為 true,適用於 Cloudflare R2、MinIO 等 path-style S3 相容端點;使用已綁定儲存桶的自訂網域時設為 false,例如騰訊雲 COS 自訂網域","設定 S3_ENDPOINT 時,是否將 S3_BUCKET 加入上傳位址路徑。預設為 true,適用於 Cloudflare R2、MinIO 等 path-style S3 相容端點;使用已綁定儲存桶的自訂網域時設為 false,例如騰訊雲 COS 自訂網域","When S3_ENDPOINT is set, whether to append S3_BUCKET to the upload URL path. Default: true. Use true for Cloudflare R2, MinIO, and other path-style S3-compatible endpoints; set false for bucket-bound custom domains, such as Tencent Cloud COS custom domains.","S3_ENDPOINT sozlanganda S3_BUCKET ni yuklash URL yo'liga qo'shish-qo'shmaslik. Standart: true. Cloudflare R2, MinIO va boshqa path-style S3 mos endpointlar uchun true ishlating; bucketga bog'langan maxsus domenlar, masalan Tencent Cloud COS maxsus domenlari uchun false qiling.","S3_ENDPOINT 設定時、アップロード URL のパスに S3_BUCKET を追加するかどうか。デフォルト: true。Cloudflare R2、MinIO などの path-style S3 互換エンドポイントでは true を使用し、Tencent Cloud COS カスタムドメインなど、バケットに紐づくカスタムドメインでは false に設定します。","S3_ENDPOINT 설정 시 업로드 URL 경로에 S3_BUCKET을 추가할지 여부입니다. 기본값: true. Cloudflare R2, MinIO 등 path-style S3 호환 엔드포인트는 true를 사용하고, Tencent Cloud COS 커스텀 도메인처럼 버킷에 연결된 커스텀 도메인은 false로 설정하세요.","Khi đặt S3_ENDPOINT, xác định có thêm S3_BUCKET vào đường dẫn URL tải lên hay không. Mặc định: true. Dùng true cho Cloudflare R2, MinIO và endpoint tương thích S3 dạng path-style; đặt false cho tên miền tùy chỉnh đã gắn với bucket, ví dụ tên miền tùy chỉnh Tencent Cloud COS.","Saat S3_ENDPOINT diatur, apakah S3_BUCKET akan ditambahkan ke path URL unggahan. Bawaan: true. Gunakan true untuk Cloudflare R2, MinIO, dan endpoint kompatibel S3 path-style; atur false untuk domain kustom yang terikat bucket, misalnya domain kustom Tencent Cloud COS."],[o+"_S3_CDN_URL"]:["S3 图片访问域名(CDN 域名),留空则使用默认 S3/Endpoint URL","S3 圖片存取網域(CDN 網域),留空則使用預設 S3/Endpoint URL","S3 圖片存取網域(CDN 網域),留空則使用預設 S3/Endpoint URL","S3 image access domain (CDN domain). Leave empty to use default S3/Endpoint URL","S3 rasm kirish domeni (CDN domeni). Standart S3/Endpoint URL dan foydalanish uchun bo'sh qoldiring","S3画像アクセスドメイン(CDNドメイン)。空白の場合はデフォルトのS3/Endpoint URLを使用します","S3 이미지 접근 도메인 (CDN 도메인). 비워두면 기본 S3/Endpoint URL 사용","Tên miền CDN cho ảnh S3. Để trống để dùng URL S3/Endpoint mặc định","Domain akses gambar S3 (domain CDN). Kosongkan untuk menggunakan URL S3/Endpoint bawaan"],[o+"_S3_PATH_PREFIX"]:["S3 图片存储路径前缀,例如 images/twikoo,留空则存储在根目录","S3 圖片儲存路徑前綴,例如 images/twikoo,留空則儲存在根目錄","S3 圖片儲存路徑前綴,例如 images/twikoo,留空則儲存在根目錄","S3 image storage path prefix, e.g. images/twikoo. Leave empty to store in root","S3 rasm saqlash yo'l prefiksi, masalan images/twikoo. Ildizda saqlash uchun bo'sh qoldiring","S3画像保存パスプレフィックス(例:images/twikoo)。空白の場合はルートに保存されます","S3 이미지 저장 경로 접두사 (예: images/twikoo). 비워두면 루트에 저장","Tiền tố đường dẫn lưu trữ ảnh S3, ví dụ images/twikoo. Để trống để lưu ở thư mục gốc","Awalan path penyimpanan gambar S3, misal images/twikoo. Kosongkan untuk menyimpan di root"],[o+"_LIGHTBOX"]:["使用简易图片点击放大效果。默认:false","使用簡易圖片點擊放大效果。預設:false","使用簡易圖片點擊放大效果。預設:false","Use simple Lightbox effect. Default: false","Используйте простые эффекты лайтбокса. По умолчанию: false","シンプルな画像拡大機能を使用します。デフォルト:false","라이트박스 효과, 댓글 이미지 클릭 시 확대 효과 사용. 기본값: false","Bật hiệu ứng phóng to ảnh khi click. Mặc định: false","Gunakan efek Lightbox sederhana. Bawaan: false"],[o+"_LIMIT_PER_MINUTE"]:["单个 IP 发言频率限制(条/10分钟),0 为无限制,默认:10","單個 IP 發言頻率限制(條/10分鐘),0 為無限制,預設:10","單個 IP 留言頻率限制(則/10分鐘),0 為無限,預設:10","How many comments can be posted by each IP every 10 minutes, 0 is unlimited, default: 10.","Ҳар бир ИП ҳар 10 дақиқада қанча шарҳ қолдириши мумкин, 0 чексиз, стандарт: 10.","同一IPにおける10分ごとの投稿回数制限。0は無制限、デフォルト:10","IP별 댓글 작성 빈도 제한 (10분당 건수), 0은 무제한. 기본값: 10.","Giới hạn số bình luận mỗi IP trong 10 phút, 0 là không giới hạn. Mặc định: 10.","Batas komentar per IP setiap 10 menit, 0 tidak terbatas, bawaan: 10."],[o+"_LIMIT_PER_MINUTE_ALL"]:["全站发言频率限制(条/10分钟),0 为无限制,默认:10","全站發言頻率限制(條/10分鐘),0 為無限制,預設:10","全站留言頻率限制(則/10分鐘),0 為無限,預設:10","How many comments can be posted by all IPs every 10 minutes, 0 is unlimited, default: 10.","Барча ИП-лар ҳар 10 дақиқада қанча шарҳ қўйиши мумкин, 0 чексиз, стандарт: 10.","全IPにおける10分ごとの投稿回数制限。0は無制限、デフォルト:10","10분당 사이트 전체에 작성 가능한 총 댓글 수 제한. 0은 무제한. 기본값: 10.","Giới hạn tổng số bình luận toàn site trong 10 phút, 0 là không giới hạn. Mặc định: 10.","Batas komentar seluruh situs setiap 10 menit, 0 tidak terbatas, bawaan: 10."],[o+"_LIMIT_LENGTH"]:["评论长度限制,0 为无限制,默认:500","評論長度限制,0 為無限制,預設:500","留言長度限制,0 為無限,預設:500","Comment length limitation, 0 is unlimited, default: 500.","Шарҳ узунлиги чеклови, 0 чексиз, стандарт: 500.","コメント長さの制限。0は無制限、デフォルト:500","댓글 길이 제한. 0은 무제한. 기본값: 500.","Giới hạn độ dài bình luận, 0 là không giới hạn. Mặc định: 500.","Batas panjang komentar, 0 tidak terbatas, bawaan: 500."],[o+"_MAIL_SUBJECT"]:["自定义通知邮件主题,留空则使用默认主题。","自定義通知郵件主題,留空則使用預設主題。","自訂通知郵件主題,留白則使用預設主題。","Custom Email notification subject. Leave it blank to use the default subject.","Махсус электрон почта хабарномаси мавзуси. Стандарт мавзуни ишлатиш учун уни бўш қолдиринг.","カスタム通知メールの件名。空白の場合はデフォルトの件名を使用します。","댓글 알림 이메일 제목 설정. 비워두면 기본 제목을 사용합니다.","Tiêu đề email thông báo tùy chỉnh. Để trống để dùng tiêu đề mặc định.","Subjek notifikasi email kustom. Kosongkan untuk menggunakan subjek bawaan."],[o+"_MAIL_SUBJECT_ADMIN"]:["自定义博主通知邮件主题,留空则使用默认主题。","自定義博主通知郵件主題,留空則使用預設主題。","自訂站長通知郵件主題,留白則使用預設主題。","Custom admin Email notification subject. Leave it blank to use the default subject.","Махсус администратор электрон почта хабарномаси мавзуси. Стандарт мавзуни ишлатиш учун уни бўш қолдиринг.","管理者へのカスタム通知メールの件名。空白の場合はデフォルトの件名を使用します。","관리자에게 발송되는 댓글 알림 이메일 제목 설정. 비워두면 기본 제목을 사용합니다.","Tiêu đề email thông báo cho quản trị viên tùy chỉnh. Để trống để dùng tiêu đề mặc định.","Subjek notifikasi email admin kustom. Kosongkan untuk menggunakan subjek bawaan."],[o+"_MAIL_TEMPLATE"]:["自定义通知邮件模板,留空则使用默认模板。可包含的字段:${SITE_URL}, ${SITE_NAME}, ${PARENT_NICK}, ${PARENT_COMMENT}, ${NICK}, ${COMMENT}, ${POST_URL}, ${IMG}, ${PARENT_IMG}","自定義通知郵件模板,留空則使用預設模板。可包含的字段:${SITE_URL}, ${SITE_NAME}, ${PARENT_NICK}, ${PARENT_COMMENT}, ${NICK}, ${COMMENT}, ${POST_URL}, ${IMG}, ${PARENT_IMG}","自訂通知郵件模板,留白則使用預設模板。可包含的欄位:${SITE_URL}, ${SITE_NAME}, ${PARENT_NICK}, ${PARENT_COMMENT}, ${NICK}, ${COMMENT}, ${POST_URL}, ${IMG}, ${PARENT_IMG}","Custom Email notification template. Leave it blank to use the default template. Fields that can be included: ${SITE_URL}, ${SITE_NAME}, ${NICK}, ${COMMENT}, ${POST_URL}, ${IMG}, ${PARENT_IMG}","Махсус электрон почта хабарномаси шаблони. Стандарт шаблонни ишлатиш учун уни бўш қолдиринг. Қўшилиши мумкин бўлган майдонлар: ${SITE_URL}, ${SITE_NAME}, ${NICK}, ${COMMENT}, ${POST_URL}, ${IMG}, ${PARENT_IMG}","カスタム通知メールテンプレート。空白の場合はデフォルトテンプレートを使用します。使用可能なフィールド:${SITE_URL}、${SITE_NAME}、${PARENT_NICK}、${PARENT_COMMENT}、${NICK}、${COMMENT}、${POST_URL}、${IMG}、${PARENT_IMG}","댓글 알림 이메일 템플릿 설정. 비워두면 기본 템플릿 사용. 다음 변수를 사용하면 해당 값으로 자동 치환됩니다: ${SITE_URL}, ${SITE_NAME}, ${PARENT_NICK}, ${PARENT_COMMENT}, ${NICK}, ${COMMENT}, ${POST_URL}, ${IMG}, ${PARENT_IMG}","Mẫu email thông báo tùy chỉnh. Để trống để dùng mẫu mặc định. : ${SITE_URL}, ${SITE_NAME}, ${PARENT_NICK}, ${PARENT_COMMENT}, ${NICK}, ${COMMENT}, ${POST_URL}, ${IMG}, ${PARENT_IMG}","Template notifikasi email kustom. Kosongkan untuk menggunakan template bawaan. Kolom yang dapat disertakan: ${SITE_URL}, ${SITE_NAME}, ${PARENT_NICK}, ${PARENT_COMMENT}, ${NICK}, ${COMMENT}, ${POST_URL}, ${IMG}, ${PARENT_IMG}"],[o+"_MAIL_TEMPLATE_ADMIN"]:["自定义博主通知邮件模板,留空则使用默认模板。可包含的字段:${SITE_URL}, ${SITE_NAME}, ${NICK}, ${COMMENT}, ${POST_URL}, ${IP}, ${MAIL}, ${IMG}","自定義博主通知郵件模板,留空則使用預設模板。可包含的字段:${SITE_URL}, ${SITE_NAME}, ${NICK}, ${COMMENT}, ${POST_URL}, ${IP}, ${MAIL}, ${IMG}","自訂站長通知郵件模板,留白則使用預設模板。可包含的欄位:${SITE_URL}, ${SITE_NAME}, ${NICK}, ${COMMENT}, ${POST_URL}, ${IP}, ${MAIL}, ${IMG}","Custom admin Email notification template. Leave it blank to use the default template. Fields that can be included: ${SITE_URL}, ${SITE_NAME}, ${NICK}, ${COMMENT}, ${POST_URL}, ${IP}, ${MAIL}, ${IMG}","Махсус администратор электрон почта хабарномаси шаблони. Стандарт шаблонни ишлатиш учун уни бўш қолдиринг. Қўшилиши мумкин бўлган майдонлар: ${SITE_URL}, ${SITE_NAME}, ${NICK}, ${COMMENT}, ${POST_URL}, ${IMG}, ${PARENT_IMG}","管理者へのカスタム通知メールテンプレート。空白の場合はデフォルトテンプレートを使用します。使用可能なフィールド:${SITE_URL}、${SITE_NAME}、${NICK}、${COMMENT}、${POST_URL}、${IP}、${MAIL}、${IMG}","관리자 알림 이메일 템플릿 설정. 비워두면 기본 템플릿 사용. 다음 변수를 사용하면 해당 값으로 자동 치환됩니다: ${SITE_URL}, ${SITE_NAME}, ${NICK}, ${COMMENT}, ${POST_URL}, ${IP}, ${MAIL}, ${IMG}","Mẫu email thông báo cho quản trị viên tùy chỉnh. Để trống để dùng mẫu mặc định. : ${SITE_URL}, ${SITE_NAME}, ${NICK}, ${COMMENT}, ${POST_URL}, ${IP}, ${MAIL}, ${IMG}","Template notifikasi email admin kustom. Kosongkan untuk menggunakan template bawaan. Kolom yang dapat disertakan: ${SITE_URL}, ${SITE_NAME}, ${NICK}, ${COMMENT}, ${POST_URL}, ${IP}, ${MAIL}, ${IMG}"],[o+"_MASTER_TAG"]:["博主标识自定义文字,默认为 “博主”。","博主標識自定義文字,預設為 “博主”。","站長認證自訂文字,預設為「博主」。","Custom admin identifier.","Махсус администратор идентификатори.",'管理者を表すカスタムテキスト。デフォルト:"ブロガー"',"관리자 태그 설정. (닉네임 옆에 표시됨. 예: 관리자)","Văn bản nhãn admin tùy chỉnh.",'Teks kustom identitas admin. Bawaan: "博主".'],[o+"_NOTIFY_SPAM"]:["垃圾评论是否发送通知,默认:true","垃圾評論是否發送通知,默認:true","垃圾留言是否發送通知,預設:true","Notifications for spam comments. Default: true.","Спам шарҳлар учун билдиришномалар. Стандарт: рост.","スパムコメントの通知を送信するかどうか。デフォルト:true","스팸 댓글 알림 발송 여부. 기본값: true.","Có gửi thông báo cho bình luận spam không. Mặc định: true.","Apakah mengirim notifikasi untuk komentar spam. Bawaan: true."],[o+"_CAPTCHA_PROVIDER"]:["人机验证码提供商","人機驗證碼提供商","人機驗證碼提供商","CAPTCHA Provider","CAPTCHA Provider","CAPTCHAプロバイダー","캡차 제공자","Nhà cung cấp CAPTCHA","Penyedia CAPTCHA"],[o+"_TURNSTILE_SITE_KEY"]:["Turnstile 验证码的站点密钥。申请地址: https://dash.cloudflare.com/?to=/:account/turnstile","Turnstile 验证码的站点密钥。申请地址: https://dash.cloudflare.com/?to=/:account/turnstile","Turnstile 验证码的站点密钥。申请地址: https://dash.cloudflare.com/?to=/:account/turnstile","Turnstile CAPTCHA Site Key. Get from: https://dash.cloudflare.com/?to=/:account/turnstile","Turnstile CAPTCHA Site Key. Get from: https://dash.cloudflare.com/?to=/:account/turnstile","Turnstile CAPTCHAのサイトキー。参照: https://dash.cloudflare.com/?to=/:account/turnstile","Turnstile CAPTCHA(스팸봇 방지) 사이트 키. 발급처: https://dash.cloudflare.com/?to=/:account/turnstile","Site Key của Turnstile CAPTCHA. Lấy tại: https://dash.cloudflare.com/?to=/:account/turnstile","Kunci Situs Turnstile CAPTCHA. Dapatkan dari: https://dash.cloudflare.com/?to=/:account/turnstile"],[o+"_TURNSTILE_SECRET_KEY"]:["Turnstile 验证码的密钥","Turnstile 验证码的密钥","Turnstile 验证码的密钥","Turnstile CAPTCHA Secret Key","Turnstile CAPTCHA Secret Key","Turnstile CAPTCHAのシークレットキー","Turnstile CAPTCHA Secret Key","Turnstile CAPTCHA Secret Key","Kunci Rahasia Turnstile CAPTCHA"],[o+"_GEETEST_CAPTCHA_ID"]:["极验验证码的 Captcha ID。申请地址: https://console.geetest.com/sensbot/management","极验验证码的 Captcha ID。申请地址: https://console.geetest.com/sensbot/management","极验验证码的 Captcha ID。申请地址: https://console.geetest.com/sensbot/management","GeeTest CAPTCHA ID. Get from: https://console.geetest.com/sensbot/management","GeeTest CAPTCHA ID. Get from: https://console.geetest.com/sensbot/management","GeeTest CAPTCHA ID. 参照: https://console.geetest.com/sensbot/management","GeeTest CAPTCHA ID. 발급처: https://console.geetest.com/sensbot/management","GeeTest CAPTCHA ID. Lấy tại: https://console.geetest.com/sensbot/management","GeeTest CAPTCHA ID. Dapatkan dari: https://console.geetest.com/sensbot/management"],[o+"_GEETEST_CAPTCHA_KEY"]:["极验验证码的 Captcha Key","极验验证码的 Captcha Key","极验验证码的 Captcha Key","GeeTest CAPTCHA Key","GeeTest CAPTCHA Key","GeeTest CAPTCHA Key","GeeTest CAPTCHA Key","GeeTest CAPTCHA Key","Kunci GeeTest CAPTCHA"],[o+"_CAP_API_ENDPOINT"]:["Cap 验证码 API 端点。留空则使用内嵌 Cap(无需额外部署);外部 Standalone 格式:https://<实例地址>/<site_key>/","Cap 验证码 API 端点。留空则使用内嵌 Cap(无需额外部署);外部 Standalone 格式:https://<实例地址>/<site_key>/","Cap 验证码 API 端点。留空则使用内嵌 Cap(无需额外部署);外部 Standalone 格式:https://<实例地址>/<site_key>/","Cap CAPTCHA API endpoint. Leave empty for built-in Cap (no extra server). External Standalone format: https://<instance_url>/<site_key>/","Cap CAPTCHA API endpoint. Leave empty for built-in Cap (no extra server). External Standalone format: https://<instance_url>/<site_key>/","Cap CAPTCHA API Endpoint。空欄で内蔵 Cap を使用(追加サーバー不要)。外部 Standalone 形式: https://<instance_url>/<site_key>/","Cap CAPTCHA API Endpoint. 비우면 내장 Cap 사용(추가 서버 불필요). 외부 Standalone 형식: https://<instance_url>/<site_key>/","Endpoint API Cap CAPTCHA. Để trống = Cap tích hợp (không cần server ngoài). Standalone ngoài: https://<instance_url>/<site_key>/","Endpoint API Cap CAPTCHA. Kosongkan = Cap bawaan (tanpa server ekstra). Standalone eksternal: https://<instance_url>/<site_key>/"],[o+"_CAP_SECRET_KEY"]:["Cap Secret Key(仅外部 Standalone 需要;内嵌模式可留空)","Cap Secret Key(僅外部 Standalone 需要;內嵌模式可留空)","Cap Secret Key(僅外部 Standalone 需要;內嵌模式可留空)","Cap Secret Key (external Standalone only; leave empty for built-in)","Cap Secret Key (external Standalone only; leave empty for built-in)","Cap Secret Key(外部 Standalone のみ。内蔵時は空欄可)","Cap Secret Key (외부 Standalone 전용; 내장 모드는 비워둠)","Cap Secret Key (chỉ Standalone ngoài; để trống nếu dùng tích hợp)","Cap Secret Key (hanya Standalone eksternal; kosongkan untuk bawaan)"],[o+"_QCLOUD_SECRET_ID"]:["腾讯云 secret id,用于垃圾评论检测。同时设置腾讯云和 Akismet 时,只有腾讯云会生效。注册:https://twikoo.js.org/cms.html","騰訊雲 secret id,用於垃圾評論檢測。同時設定騰訊雲和 Akismet 時,只有騰訊雲會生效。註冊:https://twikoo.js.org/cms.html","騰訊雲 Secret ID,用於垃圾留言檢測。同時設定騰訊雲和 Akismet 時,只有騰訊雲會被啟用。註冊:https://twikoo.js.org/cms.html","Tencent Cloud secret id for spam detection. When Tencent Cloud and Akismet are set at the same time, only Tencent Cloud will take effect. Register: https://twikoo.js.org/cms.html","Спамни аниқлаш учун Тенсент Слоуд махфий идентификатори. Тенсент Слоуд ва Акисмет бир вақтнинг ўзида ўрнатилганда, фақат Тенсент Слоуд кучга киради. Рўйхатдан ўтиш: https://twikoo.js.org/cms.html","Tencent CloudのシークレットID。スパムコメントの検出に使用されます。同時にTencent CloudとAkismetを設定した場合、Tencent Cloudのみが有効になります。登録:https://twikoo.js.org/cms.html","Tencent Cloud secret id (스팸 감지용). Tencent Cloud와 Akismet 동시 설정 시 Tencent Cloud만 적용. 등록: https://twikoo.js.org/cms.html","Tencent Cloud secret id để phát hiện spam. Khi cài cả Tencent Cloud và Akismet, chỉ Tencent Cloud có hiệu lực. Đăng ký: https://twikoo.js.org/cms.html","ID rahasia Tencent Cloud untuk deteksi spam komentar. Jika Tencent Cloud dan Akismet diatur bersamaan, hanya Tencent Cloud yang berlaku. Daftar: https://twikoo.js.org/cms.html"],[o+"_QCLOUD_CMS_BIZTYPE"]:["腾讯云内容安全 Biztype 名称,用于垃圾评论策略。可以自定义垃圾拦截规则","騰訊雲內容安全 Biztype 名稱,用於垃圾評論策略。可以自定義垃圾攔截規則","騰訊雲內容安全 Biztype 名稱,用於垃圾評論策略。可以自定義垃圾攔截規則","Tencent Cloud Content Security Biztype name for spam comment policy. Spam blocking rules can be customized","Tencent Cloud Content Security Biztype име, използвано за спам политика. Може да персонализира правилата за блокиране на спам","Tencent Cloud Content Security Biztype name スパムコメントポリシー。スパムブロックルールはカスタマイズ可能","Tencent Cloud Content Security Biztype 이름 (스팸 댓글 정책용). 스팸 차단 규칙 설정 가능.","Tên Biztype bảo mật nội dung Tencent Cloud dùng cho chính sách spam.","Nama Biztype Keamanan Konten Tencent Cloud untuk kebijakan komentar spam. Aturan pemblokiran spam dapat disesuaikan"],[o+"_QCLOUD_SECRET_KEY"]:["腾讯云 secret key","騰訊雲 secret key","騰訊雲 Secret Key","Tencent Cloud secret key.","Тенсент Клауд махфий калити.","Tencent Cloudのシークレットキー","Tencent Cloud Secret Key.","Tencent Cloud Secret Key.","Kunci rahasia Tencent Cloud."],[o+"_LLM_API_KEY"]:["LLM API Key,用于 AI 垃圾评论检测。仅在未配置腾讯云和 Akismet 时生效。","LLM API Key,用於 AI 垃圾評論檢測。僅在未配置騰訊雲和 Akismet 時生效。","LLM API Key,用於 AI 垃圾留言檢測。僅在未配置騰訊雲和 Akismet 時生效。","LLM API Key, used for AI spam comment detection. Only takes effect when Tencent Cloud and Akismet are not configured.","LLM API kaliti, spamni aniqlash uchun. Faqat Tencent Cloud va Akismet sozlangan bo'lmasa ishlaydi.","LLM APIキー。AIスパムコメント検出に使用されます。Tencent CloudとAkismetが設定されていない場合のみ有効になります。","LLM API 키. AI 스팸 댓글 감지에 사용됩니다. Tencent Cloud 및 Akismet이 설정되지 않은 경우에만 작동합니다.","LLM API Key, dùng để phát hiện spam bằng AI. Chỉ có hiệu lực khi Tencent Cloud và Akismet không được cấu hình.","LLM API Key, digunakan untuk deteksi komentar spam dengan AI. Hanya berlaku jika Tencent Cloud dan Akismet tidak dikonfigurasi."],[o+"_LLM_API_ENDPOINT"]:["LLM API 接口地址,默认:https://api.deepseek.com","LLM API 接口地址,預設:https://api.deepseek.com","LLM API 接口地址,預設:https://api.deepseek.com","LLM API endpoint URL, defaults to https://api.deepseek.com","LLM API endpoint manzili, standart: https://api.deepseek.com","LLM APIエンドポイントURL。デフォルト:https://api.deepseek.com","LLM API 엔드포인트 URL. 기본값: https://api.deepseek.com","Địa chỉ LLM API endpoint, mặc định: https://api.deepseek.com","URL endpoint LLM API, bawaan: https://api.deepseek.com"],[o+"_LLM_MODEL"]:["LLM 模型名称,默认:deepseek-v4-pro","LLM 模型名稱,預設:deepseek-v4-pro","LLM 模型名稱,預設:deepseek-v4-pro","LLM model name, default: deepseek-v4-pro","LLM model nomi, standart: deepseek-v4-pro","LLMモデル名。デフォルト:deepseek-v4-pro","LLM 모델 이름. 기본값: deepseek-v4-pro","Tên mô hình LLM, mặc định: deepseek-v4-pro","Nama model LLM, bawaan: deepseek-v4-pro"],[o+"_LLM_SPAM_PROMPT"]:["LLM 垃圾检测提示词(可选,留空则使用默认提示词)","LLM 垃圾檢測提示詞(可選,留空則使用預設提示詞)","LLM 垃圾檢測提示詞(可選,留白則使用預設提示詞)","LLM spam detection prompt (optional, uses default if left empty)","LLM spam prompt (ixtiyoriy, bo'sh qolsa standart ishlatiladi)","LLMスパム検出プロンプト(オプション。空の場合はデフォルトが使用されます)","LLM 스팸 감지 프롬프트 (옵션, 비워두면 기본값 사용)","Prompt phát hiện spam LLM (tùy chọn, để trống dùng mặc định)","Prompt deteksi spam LLM (opsional, kosongkan untuk menggunakan default)"],[o+"_LLM_MAX_RETRIES"]:["LLM 检测最大重试次数(默认 3 次)","LLM 檢測最大重試次數(預設 3 次)","LLM 檢測最大重試次數(預設 3 次)","LLM detection maximum retries (default 3)","LLM aniqlash uchun maksimal qayta urinishlar soni (standart 3)","LLM検出最大リトライ回数(デフォルト3回)","LLM 감지 최대 재시도 횟수 (기본 3회)","Số lần thử lại tối đa của LLM (mặc định 3)","Maksimal percobaan ulang deteksi LLM (bawaan 3)"],[o+"_PUSHOO_CHANNEL"]:[`即时消息推送平台名称,支持:${s.join("、")} 等`,`即時消息推送平台名称,支持:${s.join("、")} 等`,`即時訊息推送平台名稱,支援:${s.join("、")} 等`,`IM notification push channel. Support: ${s.join(", ")}`,`ИМ билдиришномаси суриш канали. Қўллаб-қувватлаш: ${s.join(", ")}`,`即時メッセージプッシュプラットフォームの名前。${s.join("、")} などに対応しています。`,`실시간 알림을 받을 서비스 설정. 지원: ${s.join(", ")}`,`Kênh gửi thông báo IM tức thì. ${s.join(", ")}`,`Saluran push notifikasi IM. Mendukung: ${s.join(", ")}`],[o+"_PUSHOO_TOKEN"]:["即时消息推送 token。请参考 https://pushoo.js.org 里的详细说明配置","即時消息推送 token。请参考 https://pushoo.js.org 里的详细说明配置","即時訊息推送 Token。請参考 https://pushoo.js.org 裡的詳細說明進行設定","IM notification push token. See https://pushoo.js.org for details","ИМ билдиришномаси пуш токени. Тафсилотлар учун https://pushoo.js.org га қаранг","即時メッセージプッシュトークン。詳細な設定については、https://pushoo.js.org の説明をご覧ください","선택한 실시간 알림 서비스 인증 토큰. 설정 방법은 https://pushoo.js.org 를 참조.","Token gửi thông báo IM. Xem https://pushoo.js.org để biết chi tiết","Token push notifikasi IM. Lihat https://pushoo.js.org untuk detailnya"],[o+"_DISPLAYED_FIELDS"]:["界面上展示的输入框,默认:nick,mail,link","界面上顯示的輸入框,預設:nick,mail,link","界面上顯示的輸入框,預設:nick,mail,link","Input boxes displayed on the interface. Default: nick,mail,link","Поля ввода, отображаемые на интерфейсе, Стандарт: nick,mail,link","画面に表示される入力欄。デフォルト:nick,mail,link","화면에 표시할 정보 입력란. 기본값: nick,mail,link","Các ô nhập liệu hiển thị trên giao diện. Mặc định: nick,mail,link","Kotak input yang ditampilkan di antarmuka. Bawaan: nick,mail,link"],[o+"_REQUIRED_FIELDS"]:["评论必填信息,设为 nick,mail,link 代表全必填,设为 none 代表全选填,默认:nick,mail","評論必填信息,設為 nick,mail,link 代表全必填,設為 none 代表全選填,預設:nick,mail","留言必填資訊,設為 nick,mail,link 代表全必填,設為 none 代表全選填,預設:nick,mail",'Required fields for comments. Set to "nick,mail,link" means all fields are required. Set to "none" means all fields are optional. Default: nick,mail.',"Шарҳлар учун зарур майдонлар. «Ниск,маил,линк» га ўрнатилган бўлса, барча майдонлар талаб қилинади. «Йўқ» га ўрнатилиши барча майдонлар ихтиёрий эканлигини англатади. Стандарт: ник, почта.","コメント必須項目。すべてを必須にする場合は nick,mail,link に設定、すべてを任意にする場合はnoneに設定してください。デフォルト:nick,mail",'댓글 작성 시 필수 입력 정보. "nick,mail,link"는 모두 필수, "none"은 모두 선택 압력. 기본값: nick,mail.','Trường bắt buộc khi bình luận. "nick,mail,link" là tất cả bắt buộc, "none" là tất cả tùy chọn. Mặc định: nick,mail.','Kolom wajib untuk komentar. Atur ke "nick,mail,link" berarti semua wajib, "none" berarti semua opsional. Bawaan: nick,mail.'],[o+"_SC_MAIL_NOTIFY"]:["是否同时通过 IM 和邮件 2 种方式通知博主,默认只通过 IM 通知博主,默认:false","是否同時通過 IM 和郵件 2 種方式通知博主,預設只通過 IM 通知博主,預設:false","是否同時透過 IM 和郵件 2 種方式通知博主,預設只透過 IM 通知博主,預設:false","Whether to notify admin via IM and email at the same time, the default is to notify admin only via IM. Default: false.","Администраторни бир вақтнинг ўзида ИМ ва электрон почта орқали хабардор қилиш керакми, сукут бўйича администраторни фақат ИМ орқали хабардор қилиш керак. Стандарт: нотўғри.","管理者にIMとメールで同時に通知するかどうか。デフォルトはIMのみで通知、デフォルト:false","실시간 알림과 이메일로 동시에 관리자에게 알릴지 여부. 기본값은 실시간 알림만 사용. 기본값: false.","Có thông báo admin qua cả IM lẫn email không. Mặc định chỉ dùng IM. Mặc định: false.","Apakah akan memberitahu admin melalui IM dan email secara bersamaan, bawaan hanya melalui IM. Bawaan: false."],[o+"_SENDER_EMAIL"]:["邮件通知邮箱地址。对于大多数邮箱服务商,SENDER_EMAIL 必须和 SMTP_USER 保持一致,否则无法发送邮件。","郵件通知郵箱地址。對於大多數郵箱服務商,SENDER_EMAIL 必須和 SMTP_USER 保持一致,否則無法發送郵件。","郵件通知郵箱帳號。對於大多數電郵服務提供商,SENDER_EMAIL 必須和 SMTP_USER 保持一致,否則無法傳送郵件。","Email address for Email notification. For most email service providers, SENDER_EMAIL must be consistent with SMTP_USER, otherwise emails cannot be sent.","Электрон почта хабарномаси учун электрон почта манзили. Аксарият электрон почта хизмати провайдерлари учун SENDER_EMAIL билан мос келиши керак, акс ҳолда электрон почта хабарларини юбориб бўлмайди.","メール通知のメールアドレス。 ほとんどのメールボックス・プロバイダでは、SENDER_EMAILはSMTP_USERと同じでなければなりません。","알림 이메일 발신 주소. 대부분의 이메일 서비스 제공자의 경우 SENDER_EMAIL과 SMTP_USER가 일치해야 메일 발송이 가능합니다.","Địa chỉ email gửi thông báo. Với hầu hết nhà cung cấp, SENDER_EMAIL phải giống SMTP_USER.","Alamat email untuk notifikasi email. Untuk sebagian besar penyedia layanan email, SENDER_EMAIL harus sama dengan SMTP_USER, jika tidak email tidak dapat dikirim."],[o+"_SENDER_NAME"]:["邮件通知标题。","郵件通知標題。","郵件通知標題。","The title for Email notification.","Электрон почта хабарномаси сарлавҳаси.","メール通知のタイトル","알림 이메일 발신자 이름.","Tiêu đề thông báo email.","Judul notifikasi email."],[o+"_SHOW_EMOTION"]:["启用插入表情功能,默认为:true","啟用插入表情功能,預設為:true","啟用插入表情功能,預設為:true","Enable emojis. Default: true.","Кулгичларни ёқинг. Стандарт: рост.","顔文字の挿入を有効にするかどうか。デフォルト:true","이모티콘 삽입 기능 활성화. 기본값: true.","Bật chức năng chèn emoji. Mặc định: true.","Aktifkan penyisipan emoji. Bawaan: true"],[o+"_SHOW_IMAGE"]:["启用插入图片功能,默认为:true","啟用插入圖片功能,預設為:true","啟用插入圖片功能,預設為:true","Enable picture uploading. Default: true.","Расм юклашни ёқинг. Стандарт: рост.","画像のアップロードを有効にするかどうか。デフォルト:true","이미지 업로드 기능 활성화. 기본값: true.","Bật chức năng tải ảnh lên. Mặc định: true.","Aktifkan pengunggahan gambar. Bawaan: true"],[o+"_SHOW_ORDER"]:["评论排序下拉框,默认为:true","評論排序下拉框,預設為:true","評論排序下拉框,預設為:true","Show sort dropdown. Default: true.","Изоҳларни тартиблаш очиладиган менюси. Стандарт: рост.","コメントの並べ替えドロップダウンを表示するかどうか。デフォルト:true","댓글 정렬 드롭다운 메뉴 표시 여부. 기본값: true.","Hiển thị dropdown sắp xếp bình luận. Mặc định: true.","Tampilkan dropdown urutan komentar. Bawaan: true"],[o+"_SHOW_DISLIKE"]:["评论点踩按钮,默认为:true","評論點踩按鈕,預設為:true","評論點踩按鈕,預設為:true","Show dislike button. Default: true.","Изоҳларни ёқтирмаслик тугмаси. Стандарт: рост.","「よくないね」ボタンを表示するかどうか。デフォルト:true","댓글 싫어요 버튼 표시 여부. 기본값: true.","Hiển thị nút không thích. Mặc định: true.","Tampilkan tombol tidak suka. Bawaan: true"],[o+"_SHOW_UA"]:["是否显示用户系统和浏览器,默认为:true","是否顯示使用者系統和瀏覽器,預設為:true","是否顯示使用者作業系統和瀏覽器,預設為:true","Show users' OS and browser. Default: true.","Фойдаланувчиларнинг ОС ва браузерини кўрсатиш. Стандарт: рост.","ユーザーのOSとブラウザーの情報を表示するかどうか。デフォルト:true","댓글 작성자의 운영체제 및 브라우저 표시 여부. 기본값: true.","Hiển thị hệ điều hành và trình duyệt người dùng. Mặc định: true.","Tampilkan OS dan peramban pengguna. Bawaan: true"],[o+"_SHOW_REGION"]:["是否显示用户 IP 属地到省,可能不准确,不支持 IPv6,默认为:false","是否顯示使用者 IP 屬地到省,預設為:false","是否顯示使用者 IP 所屬地(精確到省),預設為:false","Show users' IP region (province). Default: false.","Фойдаланувчиларнинг ИП ҳудудини (вилоят) кўрсатиш. Стандарт: нотўғри.","ユーザーIPの所在地(省)を表示するかどうか。正確でない場合があります。IPv6はサポートされていません。デフォルト:false","사용자 IP 지역(도/시 단위) 표시 여부 (부정확할 수 있음, IPv6 미지원). 기본값: false.","Hiển thị vùng IP người dùng (cấp tỉnh). Có thể không chính xác, không hỗ trợ IPv6. Mặc định: false.","Tampilkan wilayah IP pengguna (provinsi). Mungkin tidak akurat, tidak mendukung IPv6. Bawaan: false"],[o+"_SITE_NAME"]:["网站名称","網站名稱","網站名稱","Website name.","Вебсайт номи.","ウェブサイト名","웹사이트 이름.","Tên website.","Nama situs web"],[o+"_SITE_URL"]:["网站地址","網站地址","網站網址","Website URL.","Вебсайт URL.","ウェブサイトのアドレス","웹사이트 주소.","Địa chỉ website.","Alamat situs web"],[o+"_SMTP_HOST"]:["自定义 SMTP 服务器地址。如您已配置 SMTP_SERVICE,此项请留空。","自定義 SMTP 伺服器地址。如您已配置 SMTP_SERVICE,此項請留空。","自訂 SMTP 伺服器位址。如您已設定 SMTP_SERVICE,此項請留白。","Custom SMTP server address. If you have configured SMTP_SERVICE, please leave it empty.","Махсус СМТП сервер манзили. Агар сиз СМТП_СEРВИСE созлаган бўлсангиз, уни бўш қолдиринг.","自定义 SMTP 服务器地址。如您已配置 SMTP_SERVICE,此项请留空。","カスタムSMTPサーバのアドレス。SMTP_SERVICEを設定している場合は空白のままにします。","SMTP 서버 주소. SMTP_SERVICE를 설정한 경우 비워두세요.","Địa chỉ máy chủ SMTP tùy chỉnh. Để trống nếu đã cấu hình SMTP_SERVICE.","Alamat server SMTP kustom. Jika Anda telah mengonfigurasi SMTP_SERVICE, biarkan kosong."],[o+"_SMTP_PASS"]:["邮件通知邮箱密码,QQ、163邮箱请填写授权码。","郵件通知郵箱密碼,QQ、163郵箱請填寫授權碼。","郵件通知郵箱密碼,QQ、163 郵箱請填寫授權碼。","Email notification mailbox password. Enter authorization code for QQ/163 mail.","Электрон почта хабарномаси почта қутиси пароли. ҚҚ/163 почтаси учун авторизация кодини киритинг.","メール通知のメールボックスパスワード。QQ、163メールは認証コードを入力してください","알림 이메일 계정 SMTP용 비밀번호. (QQ, 163 등 대부분 별도의 앱 비밀번호/인증 코드 사용)","Mật khẩu hòm thư gửi thông báo. Với QQ/163 hãy nhập mã ủy quyền.","Kata sandi kotak email notifikasi. Untuk email QQ/163, masukkan kode otorisasi."],[o+"_SMTP_PORT"]:["自定义 SMTP 端口。如您已配置 SMTP_SERVICE,此项请留空。","自定義 SMTP 端口。如您已配置 SMTP_SERVICE,此項請留空。","自訂 SMTP 連接埠。如您已設定 SMTP_SERVICE,此項請留白。","Custom SMTP port. If you have configured SMTP_SERVICE, please leave it empty.","Махсус СМТП порти. Агар сиз СМТП_СEРВИС созлаган бўлсангиз, уни бўш қолдиринг.","カスタムSMTPポート。SMTP_SERVICEを設定している場合は、空白のままにします。","SMTP 포트. SMTP_SERVICE를 설정한 경우 비워두세요.","Cổng SMTP tùy chỉnh. Để trống nếu đã cấu hình SMTP_SERVICE.","Port SMTP kustom. Jika Anda telah mengonfigurasi SMTP_SERVICE, biarkan kosong."],[o+"_SMTP_SECURE"]:["自定义 SMTP 是否使用TLS,请填写 true 或 false。如您已配置 SMTP_SERVICE,此项请留空。","自定義 SMTP 是否使用TLS,請填寫 true 或 false。如您已配置 SMTP_SERVICE,此項請留空。","自訂 SMTP 是否使用 TLS,請填寫 true 或 false。如您已設定 SMTP_SERVICE,此項請留白。",'Custom TLS for SMTP. Enter "true" or "false". If you have configured SMTP_SERVICE, please leave it empty.',"СМТП учун махсус ТЛС. «Тўғри» ёки «нотўғри» ни киритинг. Агар сиз СМТП_СEРВИС созлаган бўлсангиз, уни бўш қолдиринг.","SMTPがTLSを使用するかどうかをカスタマイズします。trueまたはfalseを記入してください。SMTP_SERVICEを設定している場合は、この項目を空白にしてください。","SMTP TLS 사용 여부 (true 또는 false 입력). SMTP_SERVICE를 설정한 경우 비워두세요.",'Sử dụng TLS cho SMTP. Nhập "true" hoặc "false". Để trống nếu đã cấu hình SMTP_SERVICE.','Gunakan TLS untuk SMTP kustom. Masukkan "true" atau "false". Jika Anda telah mengonfigurasi SMTP_SERVICE, biarkan kosong.'],[o+"_SMTP_SERVICE"]:[`邮件通知邮箱服务商。支持:${a.join("、")}`,`郵件通知郵箱服務商。支持:${a.join("、")}`,`郵件通知郵箱服務提供商。支援:${a.join("、")}`,`Email service provider for Email notification. Support: ${a.join(", ")}`,`Электрон почта хабарномаси учун электрон почта хизмати провайдери. Қўллаб-қувватлаш: ${a.join(", ")}`,`メール通知メールボックスサービスプロバイダ。サポート: ${a.join(",")}.`,`알림 발송 이메일 서비스 선택. 지원 목록: ${a.join(", ")}`,`Nhà cung cấp dịch vụ email gửi thông báo. : ${a.join(", ")}`,`Penyedia layanan email untuk notifikasi. Mendukung: ${a.join(", ")}`],[o+"_SMTP_USER"]:["邮件通知邮箱用户名。","郵件通知郵箱用户名。","郵件通知郵箱使用者名稱。","Email notification mailbox username.","Электрон почта хабарномаси почта қутиси фойдаланувчи номи.","メール通知のメールボックスユーザー名。","선택한 이메일 알림 서비스 아이디","Tên đăng nhập hòm thư gửi thông báo.","Nama pengguna kotak email notifikasi."],ADMIN_CONFIG_RESET:["重置","重置","還原","Reset","Ресет","リセット","초기화","Đặt lại","Reset"],ADMIN_CONFIG_SAVE:["保存","保存","儲存","Save","Сақлаш","保存","저장","Lưu","Simpan"],ADMIN_CREDENTIALS:["私钥文件","私鑰文件","私鑰檔案","Private key file","Shaxsiy kalit fayli","秘密鍵ファイル","개인 키 파일","File khóa riêng tư","File kunci pribadi"],ADMIN_CREDENTIALS_FAQ:["如何获得私钥","如何獲得私鑰","如何獲取私鑰","How to get the private key","Shaxsiy kalitni qanday olish mumkin","秘密鍵を取得する方法","개인 키 발급 방법","Cách lấy khóa riêng tư","Cara mendapatkan kunci pribadi"],ADMIN_CREDENTIALS_PLACEHOLDER:["请粘贴私钥文件内容","請貼上私鑰文件內容","請貼上私鑰檔案內容","Please paste the contents of the private key file","Iltimos, shaxsiy kalit faylining mazmunini joylashtiring","秘密鍵ファイルの内容を貼り付けてください","개인 키 파일 내용을 붙여넣으세요","Hãy dán nội dung file khóa riêng tư vào đây","Silakan tempel isi file kunci pribadi"],ADMIN_FORGOT:["忘记密码","忘記密碼","忘記密碼","Forget your password","Парол унутилган","パスワードを忘れた","비밀번호 찾기","Quên mật khẩu","Lupa kata sandi"],ADMIN_EXPORT:["导出","匯出","匯出","Export","Экспорт","エクスポート","내보내기","Xuất dữ liệu","Ekspor"],ADMIN_EXPORT_WARN:["将全部数据导出为 JSON 文件。如果遇到评论较多、导出失败或缺失数据,请连接数据库手动导出","將全部數據匯出為 JSON 檔。如果遇到評論較多、匯出失敗或缺失數據,請連接資料庫手動匯出","將全部數據匯出為 JSON 檔。如果遇到評論較多、匯出失敗或缺失數據,請連接資料庫手動匯出","Export all data as a JSON file. If you encounter export failures or missing data, connect to the database to export manually","Барча маълумотларни ЖСОН файли сифатида экспорт қилинг. Экспорт хатоси ёки этишмаётган маълумотларга дуч келсангиз, қўлда экспорт қилиш учун маълумотлар базасига уланинг","すべてのデータをJSONファイルとしてエクスポートします。コメントが多く、エクスポートに失敗したりデータが欠落している場合は、データベースに手動で接続してエクスポートしてください","모든 데이터를 JSON 파일로 내보냅니다. 댓글이 많아 내보내기 실패 또는 데이터 누락 발생 시, 데이터베이스에 직접 연결하여 수동으로 내보내세요.","Xuất toàn bộ dữ liệu thành file JSON. Nếu gặp lỗi hoặc thiếu dữ liệu, hãy kết nối cơ sở dữ liệu để xuất thủ công","Ekspor semua data sebagai file JSON. Jika ekspor gagal atau data hilang, sambungkan ke basis data untuk ekspor manual"],ADMIN_EXPORT_COMMENT:["导出评论","匯出評論","匯出評論","Export comment","Изохни экспорт килиш","コメントをエクスポート","댓글 내보내기","Xuất bình luận","Ekspor komentar"],ADMIN_EXPORT_COUNTER:["导出访问量","匯出訪問量","匯出訪問量","Export counter","Экспорт сони","ページビューをエクスポート","통계 내보내기","Xuất lượt truy cập","Ekspor penghitung"],[i]:["导入","匯入","匯入","Import","Импорт","インポート","가져오기","Nhập dữ liệu","Impor"],[i+"_FILE_REQUIRED"]:["未选择文件","未選擇文件","未選擇檔案","No file selected","Файлни танланмади","ファイルが選択されていません","파일이 선택되지 않았습니다","Chưa chọn file","Tidak ada file yang dipilih"],[i+"_IMPORTED"]:["完成导入 ","完成匯入 ","完成匯入 ","Imported ","Импорт қилинди ","インポート完了 ","가져오기 완료 ","Đã nhập ","Diimpor "],[i+"_IMPORTING"]:["开始导入 ","開始匯入 ","開始匯入 ","Importing ","Импорт қилинмоқда ","インポートを開始 ","가져오는 중 ","Đang nhập ","Mengimpor "],[i+"_LOG"]:["日志","日誌","日誌","Log","Лог","システムログ","로그","Nhật ký","Log"],[i+"_SELECT"]:["请选择","請選擇","請選擇","Select","Танланг","選択してください","선택하세요","Chọn","Pilih"],[i+"_SELECT_FILE"]:["选择文件","選擇文件","選擇檔案","Select file","Файлни танланг","ファイルを選択","파일 선택","Chọn file","Pilih file"],[i+"_SELECT_SOURCE"]:["选择源系统","選擇源系統","選擇來源系統","Select source","Манба танланг","ソースを選択","가져올 댓글 데이터 선택","Chọn nguồn dữ liệu","Pilih sumber"],[i+"_SOURCE_REQUIRED"]:["未选择源系统","未選擇源系統","未選擇來源系統","No source selected.","Ҳеч қандай манба танланмаган.","ソースが選択されていません","가져올 댓글 데이터가 선택되지 않았습니다.","Chưa chọn nguồn dữ liệu.","Sumber belum dipilih"],[i+"_START"]:["开始导入","開始匯入","開始匯入","Start import","Импортни бошлаш","インポートを開始","가져오기 시작","Bắt đầu nhập","Mulai impor"],[i+"_STARTING"]:["开始导入","開始匯入","開始匯入","Importing","Импорт қилинмоқда","インポート中です","가져오는 중","Đang nhập","Mengimpor"],[i+"_TIP_ARTALK"]:["请上传 JSON 格式的 Artalk 导出文件,文件名通常为 comments.data.json","請上傳 JSON 格式的 Artalk 導出文件,文件名通常為 comments.data.json","請上傳 JSON 格式的 Artalk 匯出檔案,檔名通常為 comments.data.json","Please upload the Artalk export file in JSON format.The file name is usually comments.data.json","Арталк экспорт файлини ЖСОН форматида юкланг. Файл номи одатда comments.data.json бўлади.","JSON形式のArtalkエクスポートファイルをアップロードしてください。ファイル名は通常、comments.data.jsonです。","JSON 형식의 Artalk 내보내기 파일을 업로드하세요. 파일 이름은 보통 comments.data.json 입니다.","Hãy tải lên file xuất Artalk định dạng JSON. Tên file thường là comments.data.json","Silakan unggah file ekspor Artalk dalam format JSON, nama file biasanya comments.data.json"],[i+"_TIP_DISQUS"]:["请上传 XML 格式的 Disqus 导出文件,文件名通常为 [网站名称]-[导出时间]-all.xml","請上傳 XML 格式的 Disqus 導出文件,文件名通常為 [網站名稱]-[導出時間]-all.xml","請上傳 XML 格式的 Disqus 匯出檔案,檔名通常為 [網站名稱]-[匯出時間]-all.xml","Please upload the Disqus export file in XML format. The file name is usually [website name]-[export time]-all.xml","Disqus экспорт файлини ХМЛ форматида юкланг. Файл номи одатда [веб-сайт номи]-[экспорт vaqti]-all.xml","DisqusエクスポートファイルをXML形式でアップロードしてください。ファイル名は通常、[サイト名]-[エクスポート時間]-all.xmlです。","XML 형식의 Disqus 내보내기 파일을 업로드하세요. 파일 이름은 보통 [웹사이트이름]-[내보내기시간]-all.xml 입니다.","Hãy tải lên file xuất Disqus định dạng XML. Tên file thường là [tên-website]-[thời-gian]-all.xml","Silakan unggah file ekspor Disqus dalam format XML, nama file biasanya [nama situs]-[waktu ekspor]-all.xml"],[i+"_TIP_VALINE"]:["请上传 JSON 格式的 Valine 导出文件,文件名通常为 Comment.json","請上傳 JSON 格式的 Valine 導出文件,文件名通常為 Comment.json","請上傳 JSON 格式的 Valine 匯出檔案,檔名通常為 Comment.json","Please upload the Valine export file in JSON format. The file name is usually Comment.json","Илтимос, Валине экспорт файлини ЖСОН форматида юкланг. Файл номи одатда Comment.json","JSON形式のValineエクスポートファイルをアップロードしてください。ファイル名は通常、Comment.jsonです。","JSON 형식의 Valine 내보내기 파일을 업로드하세요. 파일 이름은 보통 Comment.json 입니다.","Hãy tải lên file xuất Valine định dạng JSON. Tên file thường là Comment.json","Silakan unggah file ekspor Valine dalam format JSON, nama file biasanya Comment.json"],[i+"_UPLOADED"]:["上传完成 ","上傳完成 ","上傳完成 ","Uploaded ","Юкланди ","アップロード完了","업로드 완료 ","Đã tải lên ","Diunggah "],[i+"_UPLOADING"]:["已上传 ","已上傳 ","已上傳 ","Uploading ","Юкланмоқда ","アップロード中です","업로드 중 ","Đang tải lên ","Mengunggah "],[i+"_WARN"]:["支持从其他评论系统的备份文件导入评论。\n数据是安全的,导入功能完全在您的云环境进行。\n建议在导入前备份 comment 数据库。","支持從其他評論系統的備份文件匯入評論。\n數據是安全的,匯入功能完全在您的雲環境進行。\n建議在匯入前備份 comment 數據庫。","支援從其他留言系統的備份檔案匯入留言。\n資料是安全的,匯入功能完全在您的雲端環境進行。\n建議在匯入前備份 comment 資料庫。","Import comments from other comment systems.\nThe data is safe, and the import function is performed entirely in your cloud environment.\nPlease backup your comment database before importing.","Бошқа шарҳ тизимларидан шарҳларни импорт қилинг.\nМаълумотлар хавфсиз ва импорт функцияси тўлиқ булутли муҳитда амалга оширилади.\nИмпорт қилишдан олдин шарҳлар маълумотлар базасини захираланг.","他のコメントシステムのバックアップファイルからのインポートに対応。\nデータは安全で、インポート機能はすべてクラウド環境で実行されます。\nインポート前にコメントデータベースをバックアップすることを推奨します。","다른 댓글 시스템의 백업 파일에서 댓글을 가져올 수 있습니다.\n데이터 가져오기는 설정하신 클라우드에서만 안전하게 진행됩니다.\n가져오기 전에 댓글 데이터베이스를 백업하는 것이 좋습니다.","Hỗ trợ nhập bình luận từ file sao lưu hệ thống khác.\nDữ liệu an toàn, chức năng nhập thực hiện hoàn toàn trên môi trường cloud của bạn.\nNên sao lưu cơ sở dữ liệu bình luận trước khi nhập.","Mendukung impor komentar dari file cadangan sistem komentar lain.\nData aman, fungsi impor sepenuhnya dilakukan di lingkungan cloud Anda.\nDisarankan untuk mencadangkan basis data komentar sebelum mengimpor."],ADMIN_LOGIN:["登录","登入","登入","Sign in","Тизимга кириш","ログイン","로그인","Đăng nhập","Masuk"],ADMIN_LOGIN_TITLE:["Twikoo 评论管理","Twikoo 評論管理","Twikoo 留言管理","Twikoo Management Panel","Twikoo Бошқарув Панели","Twikoo コメント管理","Twikoo 관리자 패널","Twikoo Quản lý bình luận","Manajemen Komentar Twikoo"],ADMIN_LOGOUT:["退出登录","退出登入","登出","Sign out","Тизимдан чиқиш","ログアウト","로그아웃","Đăng xuất","Keluar"],ADMIN_NEED_UPDATE:["若要使用评论管理,请更新 Twikoo 云函数","若要使用評論管理,請更新 Twikoo 雲函數","若要使用留言管理功能,請更新 Twikoo 雲端函數","A new version of Twikoo is required for comment management.","Фикрларни бошқариш учун Твикоо нинг янги версияси талаб қилинади.","コメント管理を使用するには、Twikoo クラウド関数を更新してください","새 버전의 댓글 관리를 사용하려면 Twikoo Cloud Function을 업데이트하세요.","Cần cập nhật Twikoo Cloud Function để dùng quản lý bình luận.","Versi baru Twikoo diperlukan untuk manajemen komentar."],ADMIN_PASSWORD:["密码","密碼","密碼","Password","Пароль","パスワード","비밀번호","Mật khẩu","Kata Sandi"],ADMIN_PASSWORD_PLACEHOLDER:["请输入","請輸入","請輸入","Enter your password...","Паролингизни киритинг...","入力してください","비밀번호를 입력하세요...","Nhập mật khẩu...","Masukkan kata sandi..."],ADMIN_PASSWORD_REQUIRED:["请输入密码","請輸入密碼","請輸入密碼","Please enter your password","Илтимос, паролингизни киритинг","パスワードを入力してください","비밀번호를 입력하세요","Vui lòng nhập mật khẩu","Silakan masukkan kata sandi Anda"],ADMIN_REGIST:["注册","註冊","註冊","Register","Рўйхатдан ўтиш","登録","관리자 등록","Đăng ký","Daftar"],ADMIN_REGIST_FAILED:["注册失败","註冊失敗","註冊失敗","Register failed","Рўйхатдан ўтиш амалга ошмади","登録に失敗しました","관리자 등록 실패","Đăng ký thất bại","Pendaftaran gagal"],ADMIN_SET_PASSWORD:["设置密码","設置密碼","設定密碼","Set password","Пароль қўйиш","パスワードの設定","비밀번호 설정","Đặt mật khẩu","Atur kata sandi"],ADMIN_SET_PASSWORD_CONFIRM:["确认密码","確認密碼","確認密碼","Confirm password","Паролни тасдиқланг","パスワードの確認","비밀번호 확인","Xác nhận mật khẩu","Konfirmasi kata sandi"],ADMIN_SET_PASSWORD_CONFIRM_PLACEHOLDER:["确认密码","確認密碼","確認密碼","Confirm password...","Паролни тасдиқлаш...","パスワードの確認","비밀번호 확인...","Xác nhận mật khẩu...","Konfirmasi kata sandi..."],ADMIN_SET_PASSWORD_PLACEHOLDER:["密码","密碼","密碼","Password","Пароль","パスワード","비밀번호","Mật khẩu","Kata sandi"],ADMIN_TITLE:["Twikoo 管理面板","Twikoo 管理面板","Twikoo 管理控制台","Twikoo Management Panel","Twikoo Бошқарув Панели","Twikoo管理パネル","Twikoo 관리 패널","Twikoo Bảng quản trị","Panel Manajemen Twikoo"],COMMENTS_SEARCH:["搜索","搜索","搜尋","Search","Излаш","検索","검색","Tìm kiếm","Cari"],COMMENTS_SEARCH_PLACEHOLDER:["搜索评论","搜索評論","搜尋留言","Search comments","Изоҳларни қидириш","コメントを検索","댓글 검색","Tìm kiếm bình luận","Cari komentar"],COMMENTS_SEARCH_NO_RESULT:["没有找到评论","沒有找到評論","沒有找到留言","No comments found","Изоҳлар топилмади","コメントが見つかりません","댓글을 찾을 수 없습니다","Không tìm thấy bình luận","Tidak ada komentar ditemukan"],COMMENTS_COUNT_SUFFIX:[" 条评论"," 條評論"," 則留言"," comments"," изоҳлар"," 件のコメント","개의 댓글"," bình luận"," komentar"],COMMENTS_SORT_NEWEST:["最新","最新","最新","Newest","Энг янги","最新","최신","Mới nhất","Terbaru"],COMMENTS_SORT_OLDEST:["最早","最早","最早","Oldest","Энг эски","最古","오래됨","Cũ nhất","Terlama"],COMMENTS_SORT_POPULAR:["热门","熱門","熱門","Popular","Машҳур","人気","인기","Phổ biến","Populer"],COMMENTS_EXPAND:["查看更多","查看更多","檢視更多","Load more","Давомини юклаш","もっと見る","더 보기","Xem thêm","Muat lebih banyak"],COMMENTS_NO_COMMENTS:["没有评论","沒有評論","沒有留言","No comment","Изоҳларсиз","コメントはありません","아직 댓글이 없습니다.","Chưa có bình luận","Berikan pendapatmu"],COMMENT_EXPAND:["展开","展開","展開","Read more","Давомини ўқиш","全文を表示","더 보기","Xem thêm","Baca selengkapnya"],COMMENT_COLLAPSE:["收起","收起","閉合","Collapse","Очиш","折りたたむ","접기","Thu gọn","Ciutkan"],COMMENT_MASTER_TAG:["博主","博主","站長","Admin","Модератор","管理者","관리자","Admin","Admin"],COMMENT_REPLIED:["回复","回覆","回覆","Reply","Жавоб бериш","返信","답글","Trả lời","Balas"],COMMENT_DELETE_CONFIRM:["确认删除你的评论?","確認刪除你的評論?","確認刪除你的評論?","Delete your comment?","Izohingizni o'chirasizmi?","あなたのコメントを削除しますか?","댓글을 삭제하시겠습니까?","Xóa bình luận của bạn?","Hapus pendapat Anda?"],COMMENT_REVIEWING_TAG:["审核中","審核中","審核中","Pending","Кутилмоқда","検討中","검토 중","Đang duyệt","Tertunda"],COMMENT_TOP_TAG:["置顶","置頂","置頂","Pinned","Қадоқланган","固定","고정됨","Đã ghim","Disematkan"],COMMENT_FAILED:["评论失败","評論失敗","評論失敗","Comment failed","Фикр билдирилмади","コメント失敗","댓글 등록 실패","Gửi bình luận thất bại","Komentar gagal"],META_INPUT_LINK:["网址","網址","網址","Website","Веб-сайт","ウェブサイト","웹사이트","Website","Situs Web"],META_INPUT_MAIL:["邮箱","郵箱","郵箱","Email","Email","メールアドレス","이메일","Email","Email"],META_INPUT_NICK:["昵称","暱稱","暱稱","Nickname","Исм","名前","닉네임","Tên","Nama Panggilan"],META_INPUT_NOT_REQUIRED:["选填","選填","選填","Optional","Ихтиёрий","任意","선택","Tùy chọn","Opsional"],META_INPUT_REQUIRED:["必填","必填","必填","Required","Мажбурий","必須","필수","Bắt buộc","Wajib"],PAGINATION_COUNT_PREFIX:["共 ","共 ","共 ","","","合計 ","총 ","Tổng ","Total "],PAGINATION_COUNT_SUFFIX:[" 条"," 條"," 條"," entries"," ёзувлар"," 件","개"," mục"," entri"],PAGINATION_GOTO_PREFIX:["前往","前往","前往","Goto page","Саҳифага ўтиш","ページに移動","이동할 페이지: ","Đến trang","Ke halaman"],PAGINATION_GOTO_SUFFIX:["页","頁","頁","","ページ","","","","Halaman"],PAGINATION_PAGESIZE:["条/页","條/頁","則/頁","entries/page","ёзувлар/саҳифа","件/ページ","개/페이지","mục/trang","entri/halaman"],SUBMIT_CANCEL:["取消","取消","取消","Cancel","Бекор қилиш","キャンセル","취소","Hủy","Batal"],SUBMIT_PREVIEW:["预览","預覽","預覽","Preview","Кўриб чиқиш","プレビュー","미리보기","Xem trước","Pratinjau"],SUBMIT_SEND:["发送","發送","傳送","Send","Юбормоқ","送信","등록","Gửi","Kirim"],IMAGE_UPLOAD_PLACEHOLDER:["图片上传中","圖片上傳中","圖片上傳中","Uploading image","Расм юклаш","画像のアップロード中","이미지 업로드 중","Đang tải ảnh lên","Mengunggah gambar"],IMAGE_UPLOAD_FAILED:["图片上传失败","圖片上傳失敗","圖片上傳失敗","IMAGE UPLOAD FAILED","РАСМ ЮКЛАНМАДИ","画像のアップロード失敗","이미지 업로드 실패","TẢI ẢNH THẤT BẠI","UNGGAH GAMBAR GAGAL"],IMAGE_UPLOAD_NSFW:["图片包含不当内容,禁止上传","圖片包含不當內容,禁止上傳","圖片包含不當內容,禁止上傳","Image contains inappropriate content, upload rejected","Расм ноқулай мазмунни ўз ичига олади, юклаш рад қилинди","画像に不適切なコンテンツが含まれているため、アップロードが拒否されました","이미지에 부적절한 콘텐츠가 포함되어 있어 업로드가 거부되었습니다","Ảnh chứa nội dung không phù hợp, tải lên bị từ chối","Gambar mengandung konten tidak pantas, unggahan ditolak"],IMAGE_UPLOAD_FAILED_NO_CONF:["博主未配置图床服务","博主未配置圖床服務","博主未配置圖床服務","The blogger didn't configured any image bed service","Муаллиф ҳеч қандай тасвир хизматини созламаган","管理者が画像配信サービスを設定していません","블로거가 이미지 호스팅 서비스를 설정하지 않았습니다.","Quản trị viên chưa cấu hình dịch vụ lưu trữ ảnh","Admin belum mengatur layanan penyimpanan gambar"],IMAGE_UPLOAD_PLEASE_WAIT:["图片上传中,请稍候再发送","圖片上傳中,請稍候再發送","圖片上傳中,請稍候再傳送","Uploading image, please try again later","Расм юкланмоқда, кейинроқ қайта уриниб кўринг","画像のアップロードが完了するまでお待ちください","이미지 업로드 중입니다. 잠시 후 다시 시도해주세요.","Đang tải ảnh lên, vui lòng chờ rồi thử lại","Gambar sedang diunggah, tunggu sebentar"],SUBMIT_SENDING:["发送中","發送中","正在傳送","Sending","Юбориш","送信中","등록 중","Đang gửi","Mengirim"],TIMEAGO_DAYS:["天前","天前","天前","days ago","кунлар олдин","日前","일 전","ngày trước","hari lalu"],TIMEAGO_HOURS:["小时前","小時前","小時前","hours ago","соатлар олдин","時間前","시간 전","giờ trước","jam lalu"],TIMEAGO_MINUTES:["分钟前","分鐘前","分鐘前","minutes ago","дақиқалар олдин","分前","분 전","phút trước","menit lalu"],TIMEAGO_NOW:["刚刚","剛剛","剛剛","Just now","Ҳозиргина","たった今","방금 전","Vừa xong","Baru saja"],TIMEAGO_SECONDS:["秒前","秒前","秒前","seconds ago","сониялар олдин","秒前","초 전","giây trước","detik lalu"]}},3850:function(e,t,n){"use strict";var r=n(6553)["default"];Object.defineProperty(t,"__esModule",{value:!0}),t.setLanguage=t["default"]=void 0;var o=r(n(4168));const i={zh:0,"zh-cn":0,"zh-hk":1,"zh-tw":2,"en-us":3,"en-gb":3,en:3,uz:4,"uz-uz":4,ja:5,"ja-jp":5,ko:6,"ko-kr":6,vi:7,"vi-VN":7,id:8,"id-id":8};let s="";t.setLanguage=(e={})=>{e.lang&&e.lang.toLowerCase()in i&&(s=e.lang)},t["default"]=(e,t)=>{const n=(t||s||navigator.language).toLowerCase();let r;return r=n&&i[n]?o["default"][e][i[n]]:o["default"][e][i["zh-cn"]],r||""}},2509:function(e,t,n){"use strict";var r=n(6553)["default"],o=n(580)["default"];Object.defineProperty(t,"__esModule",{value:!0}),t.blobToDataURL=void 0,Object.defineProperty(t,"call",{enumerable:!0,get:function(){return l.call}}),t.getHref=t.getFuncVer=t.getCommentsCountApi=t.convertLink=void 0,Object.defineProperty(t,"getQQAvatar",{enumerable:!0,get:function(){return u.getQQAvatar}}),t.getVisitorsCountApi=t.getUserAgent=t.getUrl=t.getRecentCommentsApi=void 0,Object.defineProperty(t,"initMarkedOwo",{enumerable:!0,get:function(){return d.initMarkedOwo}}),Object.defineProperty(t,"initOwoEmotions",{enumerable:!0,get:function(){return d.initOwoEmotions}}),t.isNotSet=void 0,Object.defineProperty(t,"isQQ",{enumerable:!0,get:function(){return u.isQQ}}),Object.defineProperty(t,"isUrl",{enumerable:!0,get:function(){return l.isUrl}}),t.logger=void 0,Object.defineProperty(t,"marked",{enumerable:!0,get:function(){return a["default"]}}),Object.defineProperty(t,"normalizeMail",{enumerable:!0,get:function(){return u.normalizeMail}}),t.readAsText=void 0,Object.defineProperty(t,"renderCode",{enumerable:!0,get:function(){return c["default"]}}),t.renderMath=t.renderLinks=void 0,Object.defineProperty(t,"setLanguage",{enumerable:!0,get:function(){return i.setLanguage}}),Object.defineProperty(t,"t",{enumerable:!0,get:function(){return i["default"]}}),Object.defineProperty(t,"timeago",{enumerable:!0,get:function(){return s["default"]}}),t.updateVisitorsCount=t.timestamp=void 0;var i=o(n(3850)),s=r(n(7831)),a=r(n(7401)),c=r(n(9957)),l=n(9533),u=n(5940),d=n(7760);t.isNotSet=e=>e===undefined||null===e||""===e;const h=t.logger={log:(e,t)=>{console.log(`Twikoo: ${e}`,t)},info:(e,t)=>{console.info(`Twikoo: ${e}`,t)},warn:(e,t)=>{console.warn(`Twikoo: ${e}`,t)},error:(e,t)=>{console.error(`Twikoo: ${e}`,t)}};let p;t.timestamp=(e=new Date)=>e.getTime(),t.convertLink=e=>e?"http"!==e.substring(0,4)?`http://${e}`:e:"",t.getFuncVer=async e=>(p||(p=await(0,l.call)(e,"GET_FUNC_VERSION")),p),t.getCommentsCountApi=async(e,t)=>{if(!(t.urls instanceof Array))throw new Error("urls 参数有误");return 0===t.urls.length?[]:(await(0,l.call)(e,"GET_COMMENTS_COUNT",t)).result.data},t.getRecentCommentsApi=async(e,t)=>{const n=await(0,l.call)(e,"GET_RECENT_COMMENTS",t);for(const r of n.result.data)r.relativeTime=(0,s["default"])(r.created);return n.result.data},t.getUserAgent=async()=>{let e=window.navigator.userAgent;try{const{platform:t}=navigator.userAgentData;if("Windows"===t||"macOS"===t){const{platformVersion:n}=await navigator.userAgentData.getHighEntropyValues(["platformVersion"]),r=parseInt(n.split(".")[0]);if("Windows"===t&&r>=13){const t="11.0";e=e.replace(/Windows NT 10\.0/i,`Windows NT ${t}`)}else if("macOS"===t&&r>=11){const t=n.replace(/\./g,"_");e=e.replace(/Mac OS X 10_[0-9]+_[0-9]+/i,`Mac OS X ${t}`)}}}catch(t){}return e};const f=e=>{let t;if(window.TWIKOO_MAGIC_PATH)t=window.TWIKOO_MAGIC_PATH;else if(e&&"string"==typeof e)switch(e){case"location.pathname":case"window.location.pathname":t=window.location.pathname;break;case"location.href":case"window.location.href":t=window.location.href;break;default:t=e}else t=window.location.pathname;return t};t.getUrl=f;const m=e=>window.TWIKOO_MAGIC_HREF??e??window.location.href;t.getHref=m;const g=new Set(["localhost","127.0.0.1","0.0.0.0","::1"]),_=async(e,t={})=>(await(0,l.call)(e,"COUNTER_GET",{envId:t.envId,funcName:t.funcName,url:f(t.path),href:m(t.href),title:t.title??document.title})).result;t.getVisitorsCountApi=_,t.updateVisitorsCount=async(e,t={})=>{const n=document.getElementById("twikoo_visitors");if(!n||g.has(window.location.hostname))return null;try{const r=await _(e,t);return(r.time||0===r.time)&&(n.innerHTML=r.time),r}catch(r){return h.warn("Failed to update visitors count",r),null}},t.readAsText=e=>new Promise((t,n)=>{const r=new FileReader;r.readAsText(e),r.onloadend=()=>{r.error?n(r.error):t(r.result)}}),t.renderLinks=e=>{let t=[];e instanceof Array?e.forEach(e=>{t.push(...e.getElementsByTagName("a"))}):e instanceof Element&&(t=e.getElementsByTagName("a"));for(const n of t)n.setAttribute("target","_blank"),n.setAttribute("rel","noopener noreferrer nofollow ugc")},t.renderMath=(e,t)=>{"function"==typeof renderMathInElement&&renderMathInElement(e,t||{delimiters:[{left:"$$",right:"$$",display:!0},{left:"$",right:"$",display:!1},{left:"\\(",right:"\\)",display:!1},{left:"\\[",right:"\\]",display:!0}],throwOnError:!1})},t.blobToDataURL=e=>new Promise(t=>{const n=new FileReader;n.onload=e=>{const n=e.target.result;t(n)},n.readAsDataURL(e)})},7401:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=void 0;var r=n(5658);r.marked.setOptions({renderer:new r.marked.Renderer,gfm:!0,tables:!0,breaks:!0,pedantic:!1,smartLists:!0,smartypants:!0}),r.marked.use({tokenizer:{code(){return undefined}}}),t["default"]=r.marked},388:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.install=async function(e,t={}){return i.sdk=e,function(e){const t=[];for(const n of o)n["default"]&&(0,r.isNotSet)(e[n.key])?e[n.key]=n["default"]:n.required&&(0,r.isNotSet)(e[n.key])&&t.push(n.key);if(t.length>0){for(const e of t)r.logger.warn(`${e} is required`);throw new Error("Twikoo: failed to init")}}(t),await async function(e){(function(e){i.app=i.sdk.init({env:e.envId,region:e.region})})(e),await async function(){return new Promise((e,t)=>{i.auth=i.app.auth({persistence:"local"}),i.auth.hasLoginState()?e():i.auth.anonymousAuthProvider().signIn().then(e)["catch"](t)})}()}(t),i},t.tcb=void 0;var r=n(2509);const o=[{key:"envId",required:!0}],i=t.tcb={sdk:null,app:null,auth:null}},7831:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=void 0;var r=n(2509);const o=e=>{const t=i(e.getDate(),2),n=i(e.getMonth()+1,2);return`${i(e.getFullYear(),2)}-${n}-${t}`},i=(e,t)=>{let n=e.toString();for(;n.length<t;)n="0"+n;return n};t["default"]=e=>{if("number"==typeof e&&(e=new Date(e)),e)try{const t=e.getTime(),n=Date.now()-t,i=Math.floor(n/864e5);if(0===i){const e=n%864e5,t=Math.floor(e/36e5);if(0===t){const t=e%36e5,n=Math.floor(t/6e4);if(0===n){const e=t%6e4;return Math.round(e/1e3)+` ${(0,r.t)("TIMEAGO_SECONDS")}`}return n+` ${(0,r.t)("TIMEAGO_MINUTES")}`}return t+` ${(0,r.t)("TIMEAGO_HOURS")}`}return i<0?(0,r.t)("TIMEAGO_NOW"):i<8?i+` ${(0,r.t)("TIMEAGO_DAYS")}`:o(e)}catch(t){r.logger.log("timeAgo 错误",t)}}},3115:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.version=void 0,t.version="1.7.19"},8897:function(e,t,n){"use strict";var r=n(6553)["default"];Object.defineProperty(t,"__esModule",{value:!0}),t.render=t.app=void 0;var o=r(n(1058)),i=r(n(9379)),s=r(n(9675)),a=r(n(2499));n(8911),n(511),n(8759),n(8550);var c=r(n(2616));o["default"].use(i["default"]),o["default"].use(s["default"]),o["default"].use(a["default"]);let l=t.app=null;t.render=(e,n={})=>(o["default"].prototype.$tcb=e,o["default"].prototype.$twikoo=n,t.app=l=new o["default"]({render:e=>e(c["default"])}),l.$mount(n.el||"#twikoo"),l)},8911:function(e,t,n){"use strict";n.r(t)},511:function(e,t,n){"use strict";n.r(t)},8759:function(e,t,n){"use strict";n.r(t)},8550:function(e,t,n){"use strict";n.r(t)},6937:function(e){e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 640 512"><path fill="currentColor" d="M131.2 61.9c5.3-.5 10.6 .6 15.3 3s8.6 6.2 11.3 10.8c17 29.5 34.2 58.9 51.2 88.4 3.5-1.4 7-2.7 10.5-3.9 31.3-10.9 64.2-16.6 97.4-16.9 1 0 2.1 0 3.2 0 38.1 0 76.2 7 111.6 21.1L483 75.7c1.8-3.2 4.3-6 7.2-8.2s6.2-3.9 9.8-4.8c3.1-.8 6.4-1.1 9.6-.8 4.2 .4 8.3 1.7 11.9 3.8 4 2.4 7.3 5.7 9.7 9.7 2 3.4 3.3 7.2 3.8 11.2s.1 8-1.2 11.7c-.6 1.9-1.4 3.7-2.4 5.5l-49.7 85.8c19.5 12.2 37.6 26.5 53.9 42.8 12.3 12.2 23.5 25.4 33.5 39.5 8.2 11.5 15.6 23.6 22.2 36.2 17.5 33.6 28.6 70.5 32.7 108.1l-608 0c4.1-37.7 15.2-74.5 32.7-108.1 14.5-27.9 33.4-53.5 55.7-75.7 16.5-16.4 34.7-30.9 54.5-43.1l-49.5-85.4c-3.7-6.4-4.7-14.1-2.8-21.2 1.9-7.1 6.4-13.1 12.7-16.8 3.6-2.2 7.7-3.5 11.9-3.8zm67.3 215.8c-12.2-8.1-30.1-2.5-40.1 12.5s-8.2 33.8 3.9 41.9 30.1 2.5 40.1-12.5 8.2-33.8-3.9-41.9zm283.6 12.5c-10-15-27.9-20.6-40.1-12.5s-13.9 26.9-3.9 41.9c10 15 27.9 20.6 40.1 12.5s13.9-26.9 3.9-41.9z"></path></svg>'},9396:function(e){e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 384 512"><path fill="currentColor" d="M319.1 268.7c-.2-36.7 16.4-64.4 50-84.8-18.8-26.9-47.2-41.7-84.7-44.6-35.5-2.8-74.3 20.7-88.5 20.7-15 0-49.4-19.7-76.4-19.7-55.8 .9-115.1 44.5-115.1 133.2 0 26.2 4.8 53.3 14.4 81.2 12.8 36.7 59 126.7 107.2 125.2 25.2-.6 43-17.9 75.8-17.9 31.8 0 48.3 17.9 76.4 17.9 48.6-.7 90.4-82.5 102.6-119.3-65.2-30.7-61.7-90-61.7-91.9zM262.5 104.5c27.3-32.4 24.8-61.9 24-72.5-24.1 1.4-52 16.4-67.9 34.9-17.5 19.8-27.8 44.3-25.6 71.9 26.1 2 49.9-11.4 69.5-34.3z"></path></svg>'},58:function(e){e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path fill="currentColor" d="M0 256c0-46.6 12.5-90.4 34.3-128.9L144.1 318.3c21.9 39.2 63.8 65.7 111.9 65.7 14.3 0 27.1-2.3 40.8-6.6L220.5 509.6C95.9 492.3 0 385.3 0 256zm365.1 65.6c12.3-19.2 18.9-42.5 18.9-65.6 0-38.2-16.8-72.5-43.3-96l152.7 0c12 29.6 18.6 62.1 18.6 96 0 141.4-114.6 255.1-256 256L365.1 321.6zM477.8 128L256 128c-62.9 0-113.7 44.1-125.5 102.7L54.2 98.5C101 38.5 174 0 256 0 350.8 0 433.5 51.5 477.8 128zM344 256a88 88 0 1 1 -176 0 88 88 0 1 1 176 0z"></path></svg>'},7051:function(e){e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path fill="currentColor" d="M120.1 37.4c41-25.2 87.6-38.2 134.9-37.4 168 0 257 123.8 257 219.5-.1 32.7-13 63.9-35.9 87.2-22.9 23.2-54 36.5-86.7 37-75.2 0-91.5-23.1-91.5-32 0-3.8 1.2-6.2 4.8-9.4l1-1.2 .4-1.6c10.5-11.5 15.9-26.2 15.9-41.6 0-78.7-82.2-142.7-184-142.7-37.5-.3-74.5 8.9-107.5 26.9 27-57.5 82.7-97.6 91.3-103.8 .8-.6 .3-.8 .3-.8zm15.6 318.1c-1.4 30 4.6 60 16.4 87.2 13.6 26.4 32.7 51 56.5 69.3-59.5-11.5-111.5-43.9-149.4-89.3-38.1-46.4-59.2-104.3-59.2-164.8 0-51.2 62.4-94.4 136-94.4 36.6-.6 72.4 10.9 101.8 32.7l-3.6 1.2c-51.5 17.6-98.5 90.7-98.5 158.1zM469.8 400l-.7 .1c-11.8 18.8-25.9 35.1-42.2 49.5-30.8 28-68.1 45.5-108.8 49.9-18.6 .3-36.8-3.2-53.8-11.4-25.6-10.3-47.1-30-61.6-53-14.4-23.9-21.1-51.7-19-79.6-.6-20.1 5.4-40.3 15-58.2 13.9 33.1 37.5 61.3 67.6 80.8s65.5 29.5 101.4 28.6c31 .3 62.1-6.7 90.2-20.5l1.9-.9c3.9-2.3 7.7-3.9 11.6 0 4.5 4.9 1.8 9.2-1.2 14-.2 .2-.3 .5-.4 .7z"></path></svg>'},824:function(e){e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path fill="currentColor" d="M130.2 127.5l0 0zm351.4 45.4c-10.6-25.5-32.1-53-48.9-61.7 13.7 26.9 21.7 53.9 24.7 74 0 .1 0 .3 .1 .4-27.6-68.8-74.4-96.5-112.6-156.8-15-23.7-10.9-25.2-13.1-24.7l-.1 .1c-46.7 26-75.3 78.4-82.6 122.7-16.6 .9-32.9 5-47.9 12.1-1.4 .6-2.5 1.7-3.1 3s-.9 2.8-.6 4.3c.2 .8 .6 1.6 1.1 2.3s1.2 1.3 1.9 1.7 1.6 .7 2.4 .8 1.7 0 2.5-.3l.5-.2c15.5-7.3 32.4-11.2 49.5-11.3 62.8-.6 97.2 44 107.6 62.3-13-9.2-36.4-18.2-58.8-14.3 87.7 43.9 64.2 194.5-57.4 189.2-59.5-2.6-97.1-51-100.5-90.8 0 0 11.2-41.9 80.6-41.9 7.5 0 28.9-20.9 29.3-27-.1-2-42.5-18.9-59.1-35.2-8.8-8.7-13.1-12.9-16.8-16.1-2-1.7-4.1-3.3-6.3-4.8-5.6-19.5-5.8-40-.7-59.6-25.1 11.4-44.6 29.4-58.7 45.4l-.1 0c-9.7-12.2-9-52.6-8.4-61.1-.1-.5-7.2 3.7-8.2 4.3-8.6 6.1-16.5 12.9-23.8 20.4-16.3 16.6-44.1 50.2-55.5 101.2-4.5 20.4-6.8 44.4-6.8 52.3 0 134.7 109.2 243.9 243.9 243.9 120.6 0 223-87.2 240.4-202.6 11.6-76.7-14.7-131.1-14.7-132z"></path></svg>'},3793:function(e){e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path fill="currentColor" d="M483.1 159.7c10.9-24.6 21.4-60.4 21.4-87.9 0-72.7-79.6-98.4-209.7-38.6-107.6-7.2-211.2 73.7-237.1 186.5 30.9-34.9 78.3-82.3 122-101.2-54.3 48.3-100.6 109.4-135.7 173.2-20.7 37.9-44 99.2-44 145 0 98.6 92.9 86.5 180.3 42 31.4 15.4 66.6 15.6 101.7 15.6 97.1 0 184.2-54.3 216.8-146l-120.8 0c-52.5 88.6-196.8 53-196.8-47.4l328.8 0c6.4-43.6-1.7-95.7-26.9-141.2zM64.6 346.9C82.3 398 118.3 442.7 164.8 470.2 76.1 519.1-8.4 499.3 64.6 346.9zM180.5 238c2-55.2 50.3-94.9 104-94.9 53.4 0 102 39.7 104 94.9l-208 0zM365.1 50.4c21.4-10.3 48.6-22 72.6-22 31.4 0 54.3 21.7 54.3 53.7 0 20-7.4 49-14.6 67.9-26.3-42.3-66-81.6-112.3-99.6z"></path></svg>'},8974:function(e){e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512"><path fill="currentColor" d="M220.9 123.3c1 .5 1.8 1.7 3 1.7 1.1 0 2.8-.4 2.9-1.5 .2-1.4-1.9-2.3-3.2-2.9-1.7-.7-3.9-1-5.5-.1-.4 .2-.8 .7-.6 1.1 .3 1.3 2.3 1.1 3.4 1.7zM199 125c1.2 0 2-1.2 3-1.7 1.1-.6 3.1-.4 3.5-1.6 .2-.4-.2-.9-.6-1.1-1.6-.9-3.8-.6-5.5 .1-1.3 .6-3.4 1.5-3.2 2.9 .1 1 1.8 1.5 2.8 1.4zM420 403.8c-3.6-4-5.3-11.6-7.2-19.7-1.8-8.1-3.9-16.8-10.5-22.4-1.3-1.1-2.6-2.1-4-2.9-1.3-.8-2.7-1.5-4.1-2 9.2-27.3 5.6-54.5-3.7-79.1-11.4-30.1-31.3-56.4-46.5-74.4-17.1-21.5-33.7-41.9-33.4-72 .5-45.9 5.1-131.2-75.8-131.3-102.4-.2-76.8 103.4-77.9 135.2-1.7 23.4-6.4 41.8-22.5 64.7-18.9 22.5-45.5 58.8-58.1 96.7-6 17.9-8.8 36.1-6.2 53.3-6.5 5.8-11.4 14.7-16.6 20.2-4.2 4.3-10.3 5.9-17 8.3s-14 6-18.5 14.5c-2.1 3.9-2.8 8.1-2.8 12.4 0 3.9 .6 7.9 1.2 11.8 1.2 8.1 2.5 15.7 .8 20.8-5.2 14.4-5.9 24.4-2.2 31.7 3.8 7.3 11.4 10.5 20.1 12.3 17.3 3.6 40.8 2.7 59.3 12.5 19.8 10.4 39.9 14.1 55.9 10.4 11.6-2.6 21.1-9.6 25.9-20.2 12.5-.1 26.3-5.4 48.3-6.6 14.9-1.2 33.6 5.3 55.1 4.1 .6 2.3 1.4 4.6 2.5 6.7l0 .1c8.3 16.7 23.8 24.3 40.3 23 16.6-1.3 34.1-11 48.3-27.9 13.6-16.4 36-23.2 50.9-32.2 7.4-4.5 13.4-10.1 13.9-18.3 .4-8.2-4.4-17.3-15.5-29.7zM223.8 87.3c9.8-22.2 34.2-21.8 44-.4 6.5 14.2 3.6 30.9-4.3 40.4-1.6-.8-5.9-2.6-12.6-4.9 1.1-1.2 3.1-2.7 3.9-4.6 4.8-11.8-.2-27-9.1-27.3-7.3-.5-13.9 10.8-11.8 23-4.1-2-9.4-3.5-13-4.4-1-6.9-.3-14.6 2.9-21.8zM183.1 75.8c10.1 0 20.8 14.2 19.1 33.5-3.5 1-7.1 2.5-10.2 4.6 1.2-8.9-3.3-20.1-9.6-19.6-8.4 .7-9.8 21.2-1.8 28.1 1 .8 1.9-.2-5.9 5.5-15.6-14.6-10.5-52.1 8.4-52.1zm-13.6 60.7c6.2-4.6 13.6-10 14.1-10.5 4.7-4.4 13.5-14.2 27.9-14.2 7.1 0 15.6 2.3 25.9 8.9 6.3 4.1 11.3 4.4 22.6 9.3 8.4 3.5 13.7 9.7 10.5 18.2-2.6 7.1-11 14.4-22.7 18.1-11.1 3.6-19.8 16-38.2 14.9-3.9-.2-7-1-9.6-2.1-8-3.5-12.2-10.4-20-15-8.6-4.8-13.2-10.4-14.7-15.3-1.4-4.9 0-9 4.2-12.3zm3.3 334c-2.7 35.1-43.9 34.4-75.3 18-29.9-15.8-68.6-6.5-76.5-21.9-2.4-4.7-2.4-12.7 2.6-26.4l0-.2c2.4-7.6 .6-16-.6-23.9-1.2-7.8-1.8-15 .9-20 3.5-6.7 8.5-9.1 14.8-11.3 10.3-3.7 11.8-3.4 19.6-9.9 5.5-5.7 9.5-12.9 14.3-18 5.1-5.5 10-8.1 17.7-6.9 8.1 1.2 15.1 6.8 21.9 16l19.6 35.6c9.5 19.9 43.1 48.4 41 68.9zm-1.4-25.9c-4.1-6.6-9.6-13.6-14.4-19.6 7.1 0 14.2-2.2 16.7-8.9 2.3-6.2 0-14.9-7.4-24.9-13.5-18.2-38.3-32.5-38.3-32.5-13.5-8.4-21.1-18.7-24.6-29.9s-3-23.3-.3-35.2c5.2-22.9 18.6-45.2 27.2-59.2 2.3-1.7 .8 3.2-8.7 20.8-8.5 16.1-24.4 53.3-2.6 82.4 .6-20.7 5.5-41.8 13.8-61.5 12-27.4 37.3-74.9 39.3-112.7 1.1 .8 4.6 3.2 6.2 4.1 4.6 2.7 8.1 6.7 12.6 10.3 12.4 10 28.5 9.2 42.4 1.2 6.2-3.5 11.2-7.5 15.9-9 9.9-3.1 17.8-8.6 22.3-15 7.7 30.4 25.7 74.3 37.2 95.7 6.1 11.4 18.3 35.5 23.6 64.6 3.3-.1 7 .4 10.9 1.4 13.8-35.7-11.7-74.2-23.3-84.9-4.7-4.6-4.9-6.6-2.6-6.5 12.6 11.2 29.2 33.7 35.2 59 2.8 11.6 3.3 23.7 .4 35.7 16.4 6.8 35.9 17.9 30.7 34.8-2.2-.1-3.2 0-4.2 0 3.2-10.1-3.9-17.6-22.8-26.1-19.6-8.6-36-8.6-38.3 12.5-12.1 4.2-18.3 14.7-21.4 27.3-2.8 11.2-3.6 24.7-4.4 39.9-.5 7.7-3.6 18-6.8 29-32.1 22.9-76.7 32.9-114.3 7.2zm257.4-11.5c-.9 16.8-41.2 19.9-63.2 46.5-13.2 15.7-29.4 24.4-43.6 25.5s-26.5-4.8-33.7-19.3c-4.7-11.1-2.4-23.1 1.1-36.3 3.7-14.2 9.2-28.8 9.9-40.6 .8-15.2 1.7-28.5 4.2-38.7 2.6-10.3 6.6-17.2 13.7-21.1 .3-.2 .7-.3 1-.5 .8 13.2 7.3 26.6 18.8 29.5 12.6 3.3 30.7-7.5 38.4-16.3 9-.3 15.7-.9 22.6 5.1 9.9 8.5 7.1 30.3 17.1 41.6 10.6 11.6 14 19.5 13.7 24.6zM173.4 148.7c2 1.9 4.7 4.5 8 7.1 6.6 5.2 15.8 10.6 27.3 10.6 11.6 0 22.5-5.9 31.8-10.8 4.9-2.6 10.9-7 14.8-10.4s5.9-6.3 3.1-6.6-2.6 2.6-6 5.1c-4.4 3.2-9.7 7.4-13.9 9.8-7.4 4.2-19.5 10.2-29.9 10.2s-18.7-4.8-24.9-9.7c-3.1-2.5-5.7-5-7.7-6.9-1.5-1.4-1.9-4.6-4.3-4.9-1.4-.1-1.8 3.7 1.7 6.5z"></path></svg>'},1423:function(e){e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 640 512"><path fill="currentColor" d="M593.8 59.1l-547.6 0C20.7 59.1 0 79.8 0 105.2L0 406.7c0 25.5 20.7 46.2 46.2 46.2l547.7 0c25.5 0 46.2-20.7 46.1-46.1l0-301.6c0-25.4-20.7-46.1-46.2-46.1zM338.5 360.6l-61.5 0 0-120-61.5 76.9-61.5-76.9 0 120-61.7 0 0-209.2 61.5 0 61.5 76.9 61.5-76.9 61.5 0 0 209.2 .2 0zm135.3 3.1l-92.3-107.7 61.5 0 0-104.6 61.5 0 0 104.6 61.5 0-92.2 107.7z"></path></svg>'},740:function(e){e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path fill="currentColor" d="M274.7 274.7L237.3 237.3 166 346 274.7 274.7zM256 8a248 248 0 1 0 0 496 248 248 0 1 0 0-496zM411.8 182.8l14.8-6.1c1-.4 2-.6 3.1-.6s2.1 .2 3.1 .6 1.8 1 2.6 1.7 1.3 1.6 1.7 2.6 .6 2 .6 3.1-.2 2.1-.6 3.1-1 1.9-1.7 2.6-1.6 1.3-2.6 1.7L418 197.6c-2 .8-4.2 .8-6.1 0s-3.5-2.4-4.3-4.3-.8-4.2 0-6.1 2.4-3.5 4.3-4.3zM314.4 94l6.1-14.8c.8-2 2.4-3.5 4.3-4.3s4.2-.8 6.1 0 3.5 2.4 4.3 4.3 .8 4.2 0 6.1l-6.1 14.8c-.8 2-2.4 3.5-4.3 4.3s-4.2 .8-6.1 0c-1-.4-1.9-1-2.6-1.7s-1.3-1.6-1.7-2.6-.6-2-.6-3.1 .2-2.1 .6-3.1zM256 60c2.1 0 4.2 .8 5.7 2.3S264 65.9 264 68l0 16c0 2.1-.8 4.2-2.3 5.7s-3.5 2.3-5.7 2.3-4.2-.8-5.7-2.3-2.3-3.5-2.3-5.7l0-16c0-2.1 .8-4.2 2.3-5.7S253.9 60 256 60zM181 74.9c1-.4 2-.6 3.1-.6s2.1 .2 3.1 .6 1.9 1 2.6 1.7 1.3 1.6 1.7 2.6L197.6 94c.4 1 .7 2 .7 3.1s-.2 2.1-.6 3.1-1 1.9-1.7 2.6-1.6 1.4-2.6 1.8-2 .6-3.1 .6-2.1-.2-3.1-.6-1.9-1-2.6-1.8-1.3-1.7-1.7-2.7l-6.1-14.8c-.8-2-.8-4.2 0-6.1s2.4-3.5 4.3-4.3zm-63.6 42.5c1.5-1.5 3.5-2.3 5.7-2.3s4.2 .8 5.7 2.3L140 128.7c1.5 1.5 2.3 3.5 2.3 5.6s-.8 4.1-2.3 5.6c-1.5 1.5-3.5 2.3-5.7 2.3s-4.2-.8-5.7-2.3l-11.3-11.3c-1.5-1.5-2.3-3.5-2.3-5.6s.8-4.1 2.3-5.6l0 0zM60 256c0-2.1 .8-4.2 2.3-5.7S65.9 248 68 248l16 0c2.1 0 4.2 .8 5.7 2.3s2.3 3.5 2.3 5.7-.8 4.2-2.3 5.7-3.5 2.3-5.7 2.3l-16 0c-2.1 0-4.2-.8-5.7-2.3S60 258.1 60 256zm40.2 73.2l-14.8 6.1c-1 .4-2 .6-3.1 .6s-2.1-.2-3.1-.6-1.9-1-2.6-1.7-1.3-1.6-1.7-2.6-.6-2-.6-3.1 .2-2.1 .6-3.1 1-1.9 1.7-2.6 1.6-1.3 2.6-1.7L94 314.4c2-.8 4.2-.8 6.1 0s3.5 2.4 4.3 4.3 .8 4.2 0 6.1-2.4 3.5-4.3 4.3zm4.3-136c-.4 1-1 1.9-1.7 2.6s-1.6 1.3-2.6 1.7-2 .6-3.1 .6-2.1-.2-3.1-.6l-14.8-6.1c-2-.8-3.5-2.4-4.3-4.3s-.8-4.2 0-6.1 2.4-3.5 4.3-4.3 4.2-.8 6.1 0l14.8 6.1c2 .8 3.5 2.4 4.3 4.3s.8 4.2 0 6.1l0 0zM197.6 418l-6.1 14.8c-.4 1-1 1.9-1.7 2.6s-1.6 1.3-2.6 1.7-2 .6-3.1 .6-2.1-.2-3.1-.6-1.9-1-2.6-1.7-1.3-1.6-1.7-2.6-.6-2-.6-3.1 .2-2.1 .6-3.1l6.1-14.8c.4-1 1-1.9 1.7-2.7s1.6-1.4 2.6-1.8 2-.6 3.1-.6 2.1 .2 3.1 .6 1.9 1 2.6 1.8 1.3 1.7 1.7 2.6 .6 2 .6 3.1-.2 2.1-.7 3.1zM264 444c0 2.1-.8 4.2-2.3 5.7s-3.5 2.3-5.7 2.3-4.2-.8-5.7-2.3-2.3-3.5-2.3-5.7l0-16c0-2.1 .8-4.2 2.3-5.7s3.5-2.3 5.7-2.3 4.2 .8 5.7 2.3 2.3 3.5 2.3 5.7l0 16zm67-6.9c-1 .4-2 .6-3.1 .6s-2.1-.2-3.1-.6-1.9-1-2.6-1.7-1.3-1.6-1.7-2.6L314.4 418c-.8-2-.8-4.2 0-6.1s2.4-3.5 4.3-4.3 4.2-.8 6.1 0 3.5 2.4 4.3 4.3l6.1 14.8c.8 2 .8 4.2 0 6.1s-2.4 3.5-4.3 4.3zm63.6-42.5c-1.5 1.5-3.5 2.3-5.7 2.3s-4.2-.8-5.7-2.3L372 383.3c-1.5-1.5-2.3-3.5-2.3-5.6s.8-4.1 2.3-5.6 3.5-2.3 5.7-2.3 4.2 .8 5.7 2.3l11.3 11.3c1.5 1.5 2.3 3.5 2.3 5.6s-.8 4.1-2.3 5.6l0 0zM286.2 286.2L110.3 401.7 225.8 225.8 401.7 110.3 286.2 286.2zM437.1 331c-.8 2-2.4 3.5-4.3 4.3s-4.2 .8-6.1 0l-14.8-6.1c-2-.8-3.5-2.4-4.3-4.3s-.8-4.2 0-6.1c.4-1 1-1.9 1.7-2.6s1.6-1.3 2.6-1.7 2-.6 3.1-.6 2.1 .2 3.1 .6l14.8 6.1c2 .8 3.5 2.4 4.3 4.3s.8 4.2 0 6.1zm6.9-67l-16 0c-2.1 0-4.2-.8-5.7-2.3s-2.3-3.5-2.3-5.7 .8-4.2 2.3-5.7 3.5-2.3 5.7-2.3l16 0c2.1 0 4.2 .8 5.7 2.3s2.3 3.5 2.3 5.7-.8 4.2-2.3 5.7-3.5 2.3-5.7 2.3z"></path></svg>'},7397:function(e){e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 576 512"><path fill="currentColor" d="M469.2 75c0-20.1-8-39.3-22.2-53.5s-33.4-22.2-53.5-22.2-39.3 8-53.5 22.2-22.2 33.4-22.2 53.5c0 20.1 8 39.3 22.1 53.5s33.4 22.1 53.5 22.1 39.3-8 53.5-22.1 22.1-33.4 22.1-53.5l.1 0zm-315 165.7a75.6 75.6 0 1 0 -151.2 0 75.6 75.6 0 1 0 151.2 0zM57 346c18.6 46.9 51 87 93 115.1s91.5 42.6 142 41.7c-14.7-18.6-22.9-41.5-23.2-65.2-6.8-.9-13.3-2.1-19.5-3.4-26.8-5.7-51.9-17.3-73.6-34s-39.3-38.1-51.7-62.5c-20.9 9.9-44.5 12.8-67.1 8.2l.1 .1zm395.1 89.8a75.6 75.6 0 1 0 -151.2 0 75.6 75.6 0 1 0 151.2 0zM444 351.6c18.5 14.8 31.6 35.2 37.2 58.2 33.3-41.3 52.6-92.2 54.8-145.2s-12.5-105.4-42.2-149.4c-8.6 21.5-24 39.6-43.8 51.6 15.4 28.6 22.9 60.8 21.9 93.2s-10.7 64-28 91.6l.1 0zM101.1 135.4c12.4 2.7 24.3 7.5 35.1 14.3 16.6-24.2 38.9-44.1 64.8-58S255.8 70.4 285.2 70c.2-5.9 .9-11.9 2-17.7 3.6-16.7 11.1-32.3 21.8-45.5-47.7-3.8-95.4 6-137.6 28.5S94.3 91.7 70.8 133.4c2.7-.2 5.3-.3 8-.3 7.5 0 15 .8 22.4 2.3l-.1 0z"></path></svg>'},2531:function(e){e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512"><path fill="currentColor" d="M0 93.7l183.6-25.3 0 177.4-183.6 0 0-152.1zM0 418.3l183.6 25.3 0-175.2-183.6 0 0 149.9zm203.8 28l244.2 33.7 0-211.6-244.2 0 0 177.9zm0-380.6l0 180.1 244.2 0 0-213.8-244.2 33.7z"></path></svg>'},3491:function(e){e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path fill="currentColor" d="M51.9 384.9C19.3 344.6 0 294.4 0 240 0 107.5 114.6 0 256 0S512 107.5 512 240 397.4 480 256 480c-36.5 0-71.2-7.2-102.6-20L37 509.9c-3.7 1.6-7.5 2.1-11.5 2.1-14.1 0-25.5-11.4-25.5-25.5 0-4.3 1.1-8.5 3.1-12.2l48.8-89.4zm37.3-30.2c12.2 15.1 14.1 36.1 4.8 53.2l-18 33.1 58.5-25.1c11.8-5.1 25.2-5.2 37.1-.3 25.7 10.5 54.2 16.4 84.3 16.4 117.8 0 208-88.8 208-192S373.8 48 256 48 48 136.8 48 240c0 42.8 15.1 82.4 41.2 114.7z"></path></svg>'},5171:function(e){e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512"><path fill="currentColor" d="M64 80c-8.8 0-16 7.2-16 16l0 320c0 8.8 7.2 16 16 16l320 0c8.8 0 16-7.2 16-16l0-320c0-8.8-7.2-16-16-16L64 80zM0 96C0 60.7 28.7 32 64 32l320 0c35.3 0 64 28.7 64 64l0 320c0 35.3-28.7 64-64 64L64 480c-35.3 0-64-28.7-64-64L0 96zm128 32a32 32 0 1 1 0 64 32 32 0 1 1 0-64zm136 72c8.5 0 16.4 4.5 20.7 11.8l80 136c4.4 7.4 4.4 16.6 .1 24.1S352.6 384 344 384l-240 0c-8.9 0-17.2-5-21.3-12.9s-3.5-17.5 1.6-24.8l56-80c4.5-6.4 11.8-10.2 19.7-10.2s15.2 3.8 19.7 10.2l17.2 24.6 46.5-79c4.3-7.3 12.2-11.8 20.7-11.8z"></path></svg>'},6639:function(e){e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path fill="currentColor" d="M464 256a208 208 0 1 0 -416 0 208 208 0 1 0 416 0zM0 256a256 256 0 1 1 512 0 256 256 0 1 1 -512 0zm118.3 58.2c-4.2-13.7 7.1-26.2 21.4-26.2l232.6 0c14.3 0 25.6 12.5 21.4 26.2-18 58.9-72.9 101.8-137.7 101.8S136.3 373.1 118.3 314.2zM144 192a32 32 0 1 1 64 0 32 32 0 1 1 -64 0zm192-32a32 32 0 1 1 0 64 32 32 0 1 1 0-64z"></path></svg>'},6412:function(e){e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path fill="currentColor" d="M360 32l7.4 .4c35 3.6 62.5 32.2 64.4 67.7 17.8 11.8 30.1 31.4 32 53.9l.2 6c0 5.7-.7 11.2-2 16.5 10.2 11.5 16.8 26.3 17.8 42.7l.2 4.8c0 13.2-3.6 25.4-9.8 36 4.9 8.4 8.2 17.9 9.3 28l.4 8c0 37.3-28.3 67.9-64.6 71.6l-7.4 .4-109.7 0 14.1 30 3.1 7.6c12.5 35.7-1.8 75.5-34.2 95l-7.2 3.9c-37.5 17.6-81.7 3.6-102.6-31.2l-.6-.9-2.7-5-.6-1.2-30.1-64c-9.4 17.8-28 29.9-49.5 29.9l-32 0c-30.9 0-56-25.1-56-56L0 152c0-30.9 25.1-56 56-56l32 0c12.4 0 23.9 4.1 33.2 11 13.2-21.4 32-39.4 55-51.6l12.2-6.5 .7-.3 6.6-3.2 .7-.3 7.1-3c16.7-6.6 34.5-9.9 52.6-9.9L360 32zM255.9 80c-12 0-23.9 2.3-35.1 6.6l-4.7 2-5.3 2.6 0 0-12.2 6.5c-29.2 15.5-48.3 44.9-50.7 77.6l-.2 8 0 112.9 .1 4.1c.5 8.2 2.5 16.2 6 23.7l56.8 120.9 2.1 3.8c8.4 13.7 26 19.1 40.8 12.2l2.9-1.6c13-7.8 18.7-23.7 13.7-38l-1.2-3-30.2-64.2c-3.5-7.4-2.9-16.1 1.5-23.1s12-11.1 20.2-11.1l147.5 0 2.4-.1c11.3-1.1 20.3-10.1 21.4-21.4l.1-2.5c0-7.1-3.1-13.5-8.2-18-5.2-4.6-8.2-11.1-8.2-18s3-13.4 8.2-18c4.4-3.9 7.4-9.3 8-15.3l.2-2.7c0-8.4-4.4-15.9-11.2-20.2-10.7-6.9-14.2-20.9-8-32 1.5-2.6 2.5-5.6 2.9-8.6l.2-3.2c0-10.6-6.9-19.6-16.6-22.8-11.7-3.8-18.7-15.9-16-28 .2-.9 .3-1.8 .4-2.6l.2-2.6c0-12.4-9.5-22.6-21.6-23.8L360 80 255.9 80zM56 144c-4.4 0-8 3.6-8 8l0 224c0 4.4 3.6 8 8 8l32 0c4.4 0 8-3.6 8-8l0-224c0-4.4-3.6-8-8-8l-32 0z"></path></svg>'},6359:function(e){e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path fill="currentColor" d="M171.5 38.8C192.3 4 236.5-10 274 7.6l7.2 3.8C316 32.3 330 76.5 312.4 114l0 0-14.1 30 109.7 0 7.4 .4c36.3 3.7 64.6 34.4 64.6 71.6 0 13.2-3.6 25.4-9.8 36 6.1 10.6 9.7 22.8 9.8 36 0 18.3-6.9 34.8-18 47.5 1.3 5.3 2 10.8 2 16.5 0 25.1-12.9 47-32.2 59.9-1.9 35.5-29.4 64.2-64.4 67.7l-7.4 .4-104.1 0c-18 0-35.9-3.4-52.6-9.9l-7.1-3-.7-.3-6.6-3.2-.7-.3-12.2-6.5c-12.3-6.5-23.3-14.7-32.9-24.1-4.1 26.9-27.3 47.4-55.3 47.4l-32 0c-30.9 0-56-25.1-56-56L0 200c0-30.9 25.1-56 56-56l32 0c10.8 0 20.9 3.1 29.5 8.5l50.1-106.5 .6-1.2 2.7-5 .6-.9zM56 192c-4.4 0-8 3.6-8 8l0 224c0 4.4 3.6 8 8 8l32 0c4.4 0 8-3.6 8-8l0-224c0-4.4-3.6-8-8-8l-32 0zM253.6 51c-14.8-6.9-32.3-1.6-40.7 12l-2.2 4-56.8 120.9c-3.5 7.5-5.5 15.5-6 23.7l-.1 4.2 0 112.9 .2 7.9c2.4 32.7 21.4 62.1 50.7 77.7l11.5 6.1 6.3 3.1c12.4 5.6 25.8 8.5 39.4 8.5l104.1 0 2.4-.1c12.1-1.2 21.6-11.5 21.6-23.9l-.2-2.6c-.1-.9-.2-1.7-.4-2.6-2.7-12.1 4.3-24.2 16-28 9.7-3.1 16.6-12.2 16.6-22.8 0-4.3-1.1-8.2-3.1-11.8-6.3-11.1-2.8-25.2 8-32 6.8-4.3 11.2-11.8 11.2-20.2 0-7.1-3.1-13.5-8.2-18-5.2-4.6-8.2-11.1-8.2-18s3-13.4 8.2-18c5.1-4.5 8.2-10.9 8.2-18l-.1-2.4c-1.1-11.3-10.1-20.3-21.4-21.4l-2.4-.1-147.5 0c-8.2 0-15.8-4.2-20.2-11.1-4.4-6.9-5-15.7-1.5-23.1L269 93.6c7-15 1.4-32.7-12.5-41L253.6 51z"></path></svg>'},7136:function(e){e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512"><path fill="currentColor" d="M166.2-16c-13.3 0-25.3 8.3-30 20.8L120 48 24 48C10.7 48 0 58.7 0 72S10.7 96 24 96l400 0c13.3 0 24-10.7 24-24s-10.7-24-24-24l-96 0-16.2-43.2C307.1-7.7 295.2-16 281.8-16L166.2-16zM32 144l0 304c0 35.3 28.7 64 64 64l256 0c35.3 0 64-28.7 64-64l0-304-48 0 0 304c0 8.8-7.2 16-16 16L96 464c-8.8 0-16-7.2-16-16l0-304-48 0zm160 72c0-13.3-10.7-24-24-24s-24 10.7-24 24l0 176c0 13.3 10.7 24 24 24s24-10.7 24-24l0-176zm112 0c0-13.3-10.7-24-24-24s-24 10.7-24 24l0 176c0 13.3 10.7 24 24 24s24-10.7 24-24l0-176z"></path></svg>'},9039:function(e){e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path fill="currentColor" d="M48 224l0 160c0 8.8 7.2 16 16 16l384 0c8.8 0 16-7.2 16-16l0-160-416 0zM0 128C0 92.7 28.7 64 64 64l384 0c35.3 0 64 28.7 64 64l0 256c0 35.3-28.7 64-64 64L64 448c-35.3 0-64-28.7-64-64L0 128z"></path></svg>'},504:function(e){e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path fill="currentColor" d="M195.1 9.5C198.1-5.3 211.2-16 226.4-16l59.8 0c15.2 0 28.3 10.7 31.3 25.5L332 79.5c14.1 6 27.3 13.7 39.3 22.8l67.8-22.5c14.4-4.8 30.2 1.2 37.8 14.4l29.9 51.8c7.6 13.2 4.9 29.8-6.5 39.9L447 233.3c.9 7.4 1.3 15 1.3 22.7s-.5 15.3-1.3 22.7l53.4 47.5c11.4 10.1 14 26.8 6.5 39.9l-29.9 51.8c-7.6 13.1-23.4 19.2-37.8 14.4l-67.8-22.5c-12.1 9.1-25.3 16.7-39.3 22.8l-14.4 69.9c-3.1 14.9-16.2 25.5-31.3 25.5l-59.8 0c-15.2 0-28.3-10.7-31.3-25.5l-14.4-69.9c-14.1-6-27.2-13.7-39.3-22.8L73.5 432.3c-14.4 4.8-30.2-1.2-37.8-14.4L5.8 366.1c-7.6-13.2-4.9-29.8 6.5-39.9l53.4-47.5c-.9-7.4-1.3-15-1.3-22.7s.5-15.3 1.3-22.7L12.3 185.8c-11.4-10.1-14-26.8-6.5-39.9L35.7 94.1c7.6-13.2 23.4-19.2 37.8-14.4l67.8 22.5c12.1-9.1 25.3-16.7 39.3-22.8L195.1 9.5zM256.3 336a80 80 0 1 0 -.6-160 80 80 0 1 0 .6 160z"></path></svg>'},6370:function(e){e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path fill="currentColor" d="M512 240c0 132.5-114.6 240-256 240-37.1 0-72.3-7.4-104.1-20.7L33.5 510.1c-9.4 4-20.2 1.7-27.1-5.8S-2 485.8 2.8 476.8l48.8-92.2C19.2 344.3 0 294.3 0 240 0 107.5 114.6 0 256 0S512 107.5 512 240z"></path></svg>'},3982:function(e){e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path fill="currentColor" d="M477.9 75.5c4.5-11.8 1.7-25.2-7.2-34.1s-22.3-11.8-34.1-7.2l-416 160C7.9 199-.3 211.2 0 224.7s9.1 25.4 21.9 29.6l176.8 58.9 58.9 176.8c4.3 12.8 16.1 21.6 29.6 21.9s25.7-7.9 30.6-20.5l160-416z"></path></svg>'},495:function(e){e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path fill="currentColor" d="M416 208c0 45.9-14.9 88.3-40 122.7L502.6 457.4c12.5 12.5 12.5 32.8 0 45.3s-32.8 12.5-45.3 0L330.7 376C296.3 401.1 253.9 416 208 416 93.1 416 0 322.9 0 208S93.1 0 208 0 416 93.1 416 208zM208 352a144 144 0 1 0 0-288 144 144 0 1 0 0 288z"></path></svg>'},9966:function(e){e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path fill="currentColor" d="M65.9 228.5c13.3-93 93.4-164.5 190.1-164.5 53 0 101 21.5 135.8 56.2 .2 .2 .4 .4 .6 .6l7.6 7.2-47.9 0c-17.7 0-32 14.3-32 32s14.3 32 32 32l128 0c17.7 0 32-14.3 32-32l0-128c0-17.7-14.3-32-32-32s-32 14.3-32 32l0 53.4-11.3-10.7C390.5 28.6 326.5 0 256 0 127 0 20.3 95.4 2.6 219.5 .1 237 12.2 253.2 29.7 255.7s33.7-9.7 36.2-27.1zm443.5 64c2.5-17.5-9.7-33.7-27.1-36.2s-33.7 9.7-36.2 27.1c-13.3 93-93.4 164.5-190.1 164.5-53 0-101-21.5-135.8-56.2-.2-.2-.4-.4-.6-.6l-7.6-7.2 47.9 0c17.7 0 32-14.3 32-32s-14.3-32-32-32L32 320c-8.5 0-16.7 3.4-22.7 9.5S-.1 343.7 0 352.3l1 127c.1 17.7 14.6 31.9 32.3 31.7S65.2 496.4 65 478.7l-.4-51.5 10.7 10.1c46.3 46.1 110.2 74.7 180.7 74.7 129 0 235.7-95.4 253.4-219.5z"></path></svg>'},9801:function(e){e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path fill="currentColor" d="M384 32c26.5 0 48 21.5 48 48 0 6.3-1.3 12.2-3.4 17.7 20.4 5.5 35.4 24.1 35.4 46.3 0 9.1-2.6 17.6-7 24.9 22.2 4.2 39 23.7 39 47.1 0 19.7-11.9 36.6-28.9 44 17 7.4 28.9 24.3 28.9 44 0 26.5-21.5 48-48 48l-160 0 28.2 70.4c2.5 6.3 3.8 13.1 3.8 19.9l0 4.2c0 27.3-22.1 49.4-49.4 49.4-18.7 0-35.8-10.6-44.2-27.3L170.1 356.3c-6.7-13.3-10.1-28-10.1-42.9l0-186.6c0-19.4 8.9-37.8 24-50l12.2-9.7C224.6 44.4 259.8 32 296.1 32L384 32zM80 96c17.7 0 32 14.3 32 32l0 256c0 17.7-14.3 32-32 32l-48 0c-17.7 0-32-14.3-32-32L0 128c0-17.7 14.3-32 32-32l48 0z"></path></svg>'},5910:function(e){e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path fill="currentColor" d="M80 160c17.7 0 32 14.3 32 32l0 256c0 17.7-14.3 32-32 32l-48 0c-17.7 0-32-14.3-32-32L0 192c0-17.7 14.3-32 32-32l48 0zM270.6 16C297.9 16 320 38.1 320 65.4l0 4.2c0 6.8-1.3 13.6-3.8 19.9L288 160 448 160c26.5 0 48 21.5 48 48 0 19.7-11.9 36.6-28.9 44 17 7.4 28.9 24.3 28.9 44 0 23.4-16.8 42.9-39 47.1 4.4 7.3 7 15.8 7 24.9 0 22.2-15 40.8-35.4 46.3 2.2 5.5 3.4 11.5 3.4 17.7 0 26.5-21.5 48-48 48l-87.9 0c-36.3 0-71.6-12.4-99.9-35.1L184 435.2c-15.2-12.1-24-30.5-24-50l0-186.6c0-14.9 3.5-29.6 10.1-42.9L226.3 43.3C234.7 26.6 251.8 16 270.6 16z"></path></svg>'},9671:function(e){e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 384 512"><path fill="currentColor" d="M55.1 73.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L147.2 256 9.9 393.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L192.5 301.3 329.9 438.6c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L237.8 256 375.1 118.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L192.5 210.7 55.1 73.4z"></path></svg>'},5545:function(e){e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512"><path fill="currentColor" d="M136.7 5.9C141.1-7.2 153.3-16 167.1-16l113.9 0c13.8 0 26 8.8 30.4 21.9L320 32 416 32c17.7 0 32 14.3 32 32s-14.3 32-32 32L32 96C14.3 96 0 81.7 0 64S14.3 32 32 32l96 0 8.7-26.1zM32 144l384 0 0 304c0 35.3-28.7 64-64 64L96 512c-35.3 0-64-28.7-64-64l0-304zm88 64c-13.3 0-24 10.7-24 24l0 192c0 13.3 10.7 24 24 24s24-10.7 24-24l0-192c0-13.3-10.7-24-24-24zm104 0c-13.3 0-24 10.7-24 24l0 192c0 13.3 10.7 24 24 24s24-10.7 24-24l0-192c0-13.3-10.7-24-24-24zm104 0c-13.3 0-24 10.7-24 24l0 192c0 13.3 10.7 24 24 24s24-10.7 24-24l0-192c0-13.3-10.7-24-24-24z"></path></svg>'},9587:function(e){e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path fill="currentColor" d="M399 384.2C376.9 345.8 335.4 320 288 320l-64 0c-47.4 0-88.9 25.8-111 64.2 35.2 39.2 86.2 63.8 143 63.8s107.8-24.7 143-63.8zM0 256a256 256 0 1 1 512 0 256 256 0 1 1 -512 0zm256 16a72 72 0 1 0 0-144 72 72 0 1 0 0 144z"></path></svg>'},2616:function(e,t,n){"use strict";n.r(t),n.d(t,{__esModule:function(){return o.B},"default":function(){return s}});var r=n.cjs(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.staticRenderFns=t.render=void 0,t.render=function(){var e=this,t=e._self._c;return t("div",{staticClass:"twikoo",attrs:{id:"twikoo"}},[t("tk-comments",{attrs:{"show-admin-entry":e.showAdminEntry},on:{admin:function(t){e.showAdmin=!0}}}),e._v(" "),t("tk-footer"),e._v(" "),t("tk-admin",{attrs:{show:e.showAdmin},on:{close:function(t){e.showAdmin=!1}}})],1)},t.staticRenderFns=[]}),o=n(7650),i=o.A,s=(0,n(4486).A)(i,r.render,r.staticRenderFns,!1,null,null,null).exports},8011:function(e,t,n){"use strict";n.r(t),n.d(t,{__esModule:function(){return o.B},"default":function(){return s}});var r=n.cjs(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.staticRenderFns=t.render=void 0,t.render=function(){var e=this,t=e._self._c;return t("div",{staticClass:"tk-action"},[e.showDelete?t("button",{staticClass:"tk-action-link",on:{click:e.onDelete}},[t("span",{staticClass:"tk-action-icon",domProps:{innerHTML:e._s(e.iconDelete)}}),e._v(" "),t("span",{staticClass:"tk-action-icon tk-action-icon-solid",domProps:{innerHTML:e._s(e.iconDeleteSolid)}}),e._v(" "),t("span",{staticClass:"tk-action-count"})]):e._e(),e._v(" "),t("button",{staticClass:"tk-action-link","class":{"tk-liked":e.liked},on:{click:e.onLike}},[t("span",{staticClass:"tk-action-icon",domProps:{innerHTML:e._s(e.iconLike)}}),e._v(" "),t("span",{staticClass:"tk-action-icon tk-action-icon-solid",domProps:{innerHTML:e._s(e.iconLikeSolid)}}),e._v(" "),t("span",{staticClass:"tk-action-count"},[e._v(e._s(e.likeCountStr))])]),e._v(" "),e.showDislike?t("button",{staticClass:"tk-action-link","class":{"tk-disliked":e.disliked},on:{click:e.onDislike}},[t("span",{staticClass:"tk-action-icon",domProps:{innerHTML:e._s(e.iconDislike)}}),e._v(" "),t("span",{staticClass:"tk-action-icon tk-action-icon-solid",domProps:{innerHTML:e._s(e.iconDislikeSolid)}}),e._v(" "),t("span",{staticClass:"tk-action-count"},[e._v(e._s(e.dislikeCountStr))])]):e._e(),e._v(" "),t("button",{staticClass:"tk-action-link",on:{click:e.onReply}},[t("span",{staticClass:"tk-action-icon",domProps:{innerHTML:e._s(e.iconComment)}}),e._v(" "),t("span",{staticClass:"tk-action-icon tk-action-icon-solid",domProps:{innerHTML:e._s(e.iconCommentSolid)}}),e._v(" "),t("span",{staticClass:"tk-action-count"},[e._v(e._s(e.repliesCountStr))])])])},t.staticRenderFns=[]}),o=n(489),i=o.A,s=(0,n(4486).A)(i,r.render,r.staticRenderFns,!1,null,null,null).exports},943:function(e,t,n){"use strict";n.r(t),n.d(t,{__esModule:function(){return o.B},"default":function(){return s}});var r=n.cjs(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.staticRenderFns=t.render=void 0,t.render=function(){var e=this,t=e._self._c;return t("div",{staticClass:"tk-admin-container"},[t("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticClass:"tk-admin","class":{__show:e.show}},[t("button",{staticClass:"tk-admin-close",domProps:{innerHTML:e._s(e.iconClose)},on:{click:e.onClose}}),e._v(" "),e.needUpdate?t("div",{staticClass:"tk-login-title"},[t("div",[e._v(e._s(e.t("ADMIN_NEED_UPDATE")))]),e._v(" "),t("a",{attrs:{href:"https://twikoo.js.org/update.html",target:"_blank"}},[e._v("https://twikoo.js.org/update.html")])]):e._e(),e._v(" "),e.needUpdate?e._e():t("div",[!e.isLogin&&e.isSetPassword?t("div",{staticClass:"tk-login"},[t("div",{staticClass:"tk-login-title"},[e._v(e._s(e.t("ADMIN_LOGIN_TITLE")))]),e._v(" "),t("form",[t("input",{attrs:{type:"hidden"}}),e._v(" "),t("el-input",{ref:"focusme",staticClass:"tk-password",attrs:{placeholder:e.t("ADMIN_PASSWORD_PLACEHOLDER"),"show-password":""},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.onLogin.apply(null,arguments)}},model:{value:e.password,callback:function(t){e.password=t},expression:"password"}},[t("template",{slot:"prepend"},[e._v(e._s(e.t("ADMIN_PASSWORD")))]),e._v(" "),t("el-button",{attrs:{slot:"append"},on:{click:e.onLogin},slot:"append"},[e._v(e._s(e.t("ADMIN_LOGIN")))])],2)],1),e._v(" "),e.loginErrorMessage?t("div",{staticClass:"tk-login-msg"},[e._v("\n "+e._s(e.loginErrorMessage)+"\n "),t("a",{attrs:{href:"https://twikoo.js.org/faq.html",rel:"noopener noreferrer",target:"_blank"}},[e._v(e._s(e.t("ADMIN_FORGOT")))])]):e._e()]):e._e(),e._v(" "),e.isLogin||e.isSetPassword?e._e():t("div",{staticClass:"tk-regist"},[t("div",{staticClass:"tk-login-title"},[e._v(e._s(e.t("ADMIN_LOGIN_TITLE")))]),e._v(" "),t("form",[e.isSetCredentials?e._e():t("el-input",{ref:"focusme",staticClass:"tk-password",attrs:{placeholder:e.t("ADMIN_CREDENTIALS_PLACEHOLDER")},model:{value:e.credentials,callback:function(t){e.credentials=t},expression:"credentials"}},[t("template",{slot:"prepend"},[e._v(e._s(e.t("ADMIN_CREDENTIALS")))])],2),e._v(" "),t("el-input",{staticClass:"tk-password",attrs:{placeholder:e.t("ADMIN_SET_PASSWORD_PLACEHOLDER"),"show-password":""},model:{value:e.password,callback:function(t){e.password=t},expression:"password"}},[t("template",{slot:"prepend"},[e._v(e._s(e.t("ADMIN_SET_PASSWORD")))])],2),e._v(" "),t("el-input",{staticClass:"tk-password",attrs:{placeholder:e.t("ADMIN_SET_PASSWORD_CONFIRM_PLACEHOLDER"),"show-password":""},model:{value:e.passwordConfirm,callback:function(t){e.passwordConfirm=t},expression:"passwordConfirm"}},[t("template",{slot:"prepend"},[e._v(e._s(e.t("ADMIN_SET_PASSWORD_CONFIRM")))])],2)],1),e._v(" "),t("el-button",{staticClass:"tk-regist-button",attrs:{disabled:!e.canRegist},on:{click:e.onRegist}},[e._v(e._s(e.t("ADMIN_REGIST")))]),e._v(" "),e.loginErrorMessage?t("div",{staticClass:"tk-login-msg"},[e._v(e._s(e.loginErrorMessage))]):e._e(),e._v(" "),e.isSetCredentials?e._e():t("div",{staticClass:"tk-login-msg"},[t("a",{attrs:{href:"https://twikoo.js.org/faq.html",rel:"noopener noreferrer",target:"_blank"}},[e._v(e._s(e.t("ADMIN_CREDENTIALS_FAQ")))])])],1),e._v(" "),e.isLogin?t("div",{staticClass:"tk-panel"},[t("div",{staticClass:"tk-panel-title"},[t("div",[e._v(e._s(e.t("ADMIN_TITLE")))]),e._v(" "),t("a",{staticClass:"tk-panel-logout",attrs:{href:"#"},on:{click:function(t){return t.preventDefault(),e.onLogout.apply(null,arguments)}}},[e._v(e._s(e.t("ADMIN_LOGOUT")))])]),e._v(" "),t("div",{staticClass:"tk-tabs"},[t("div",{staticClass:"tk-tab","class":{__active:"comment"===e.activeTabName},on:{click:function(t){e.activeTabName="comment"}}},[e._v(e._s(e.t("ADMIN_COMMENT")))]),e._v(" "),t("div",{staticClass:"tk-tab","class":{__active:"config"===e.activeTabName},on:{click:function(t){e.activeTabName="config"}}},[e._v(e._s(e.t("ADMIN_CONFIG")))]),e._v(" "),t("div",{staticClass:"tk-tab","class":{__active:"import"===e.activeTabName},on:{click:function(t){e.activeTabName="import"}}},[e._v(e._s(e.t("ADMIN_IMPORT")))]),e._v(" "),t("div",{staticClass:"tk-tab","class":{__active:"export"===e.activeTabName},on:{click:function(t){e.activeTabName="export"}}},[e._v(e._s(e.t("ADMIN_EXPORT")))])]),e._v(" "),t("tk-admin-comment",{directives:[{name:"show",rawName:"v-show",value:"comment"===e.activeTabName,expression:"activeTabName === 'comment'"}]}),e._v(" "),t("tk-admin-config",{directives:[{name:"show",rawName:"v-show",value:"config"===e.activeTabName,expression:"activeTabName === 'config'"}]}),e._v(" "),t("tk-admin-import",{directives:[{name:"show",rawName:"v-show",value:"import"===e.activeTabName,expression:"activeTabName === 'import'"}]}),e._v(" "),t("tk-admin-export",{directives:[{name:"show",rawName:"v-show",value:"export"===e.activeTabName,expression:"activeTabName === 'export'"}]})],1):e._e()])])])},t.staticRenderFns=[]}),o=n(3034),i=o.A,s=(0,n(4486).A)(i,r.render,r.staticRenderFns,!1,null,null,null).exports},7602:function(e,t,n){"use strict";n.r(t),n.d(t,{__esModule:function(){return o.B},"default":function(){return s}});var r=n.cjs(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.staticRenderFns=t.render=void 0,t.render=function(){var e=this,t=e._self._c;return t("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticClass:"tk-admin-comment"},[e.clientVersion!==e.serverVersion?t("div",{staticClass:"tk-admin-warn"},[t("span",[e._v(e._s(e.t("ADMIN_CLIENT_VERSION"))+e._s(e.clientVersion)+",")]),e._v(" "),t("span",[e._v(e._s(e.t("ADMIN_SERVER_VERSION"))+e._s(e.serverVersion)+",")]),e._v(" "),e._m(0)]):e._e(),e._v(" "),t("div",{staticClass:"tk-admin-comment-filter"},[t("el-input",{staticClass:"tk-admin-comment-filter-keyword",attrs:{size:"small",placeholder:e.t("ADMIN_COMMENT_SEARCH_PLACEHOLDER")},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.getComments.apply(null,arguments)}},model:{value:e.filter.keyword,callback:function(t){e.$set(e.filter,"keyword",t)},expression:"filter.keyword"}}),e._v(" "),t("select",{directives:[{name:"model",rawName:"v-model",value:e.filter.type,expression:"filter.type"}],staticClass:"tk-admin-comment-filter-type",on:{change:function(t){var n=Array.prototype.filter.call(t.target.options,function(e){return e.selected}).map(function(e){return"_value"in e?e._value:e.value});e.$set(e.filter,"type",t.target.multiple?n:n[0])}}},[t("option",{attrs:{value:""}},[e._v(e._s(e.t("ADMIN_COMMENT_FILTER_ALL")))]),e._v(" "),t("option",{attrs:{value:"VISIBLE"}},[e._v(e._s(e.t("ADMIN_COMMENT_FILTER_VISIBLE")))]),e._v(" "),t("option",{attrs:{value:"HIDDEN"}},[e._v(e._s(e.t("ADMIN_COMMENT_FILTER_HIDDEN")))])]),e._v(" "),t("el-button",{attrs:{size:"small",type:"primary"},on:{click:e.getComments}},[e._v(e._s(e.t("ADMIN_COMMENT_SEARCH")))])],1),e._v(" "),t("div",{ref:"comment-list",staticClass:"tk-admin-comment-list"},e._l(e.comments,function(n){return t("div",{key:n._id,staticClass:"tk-admin-comment-item"},[t("div",{staticClass:"tk-admin-comment-meta"},[t("tk-avatar",{attrs:{config:e.serverConfig,avatar:n.avatar,nick:n.nick,mail:n.mail,link:n.link}}),e._v(" "),n.link?e._e():t("span",[e._v(e._s(n.nick)+" ")]),e._v(" "),n.link?t("a",{attrs:{href:e.convertLink(n.link),target:"_blank"}},[e._v(e._s(n.nick)+" ")]):e._e(),e._v(" "),n.mail?t("span",[e._v("("),t("a",{attrs:{href:`mailto:${n.mail}`}},[e._v(e._s(n.mail))]),e._v(") ")]):e._e(),e._v(" "),n.isSpam?t("span",[e._v(e._s(e.t("ADMIN_COMMENT_IS_SPAM_SUFFIX"))+" ")]):e._e(),e._v(" "),t("span",{staticClass:"tk-time"},[e._v(e._s(e.displayCreated(n))+" ")]),e._v(" "),t("span",{attrs:{title:n.ua}},[e._v(e._s(n.ipRegion))])],1),e._v(" "),t("div",{ref:"comments",refInFor:!0,staticClass:"tk-content",domProps:{innerHTML:e._s(n.comment)}}),e._v(" "),e.securityAlert&&e.securityAlert.commentId===n._id?t("div",{staticClass:"tk-admin-warn tk-admin-security-alert"},[t("a",{staticClass:"tk-admin-close",attrs:{href:"#"},domProps:{innerHTML:e._s(e.iconClose)},on:{click:function(t){t.preventDefault(),e.securityAlert=null}}}),e._v(" "),t("div",{staticClass:"tk-admin-security-alert-message"},[e._v(e._s(e.securityAlert.message))]),e._v(" "),e.securityAlert.url?t("div",{staticClass:"tk-admin-security-alert-url"},[t("code",[e._v(e._s(e.securityAlert.url))])]):e._e()]):e._e(),e._v(" "),t("div",{staticClass:"tk-admin-actions"},[t("el-button",{attrs:{size:"mini",type:"text"},on:{click:function(t){return e.handleView(n)}}},[e._v(e._s(e.t("ADMIN_COMMENT_VIEW")))]),e._v(" "),n.isSpam?t("el-button",{attrs:{size:"mini",type:"text"},on:{click:function(t){return e.handleSpam(n,!1)}}},[e._v(e._s(e.t("ADMIN_COMMENT_SHOW")))]):e._e(),e._v(" "),n.isSpam?e._e():t("el-button",{attrs:{size:"mini",type:"text"},on:{click:function(t){return e.handleSpam(n,!0)}}},[e._v(e._s(e.t("ADMIN_COMMENT_HIDE")))]),e._v(" "),!n.rid&&n.top?t("el-button",{attrs:{size:"mini",type:"text"},on:{click:function(t){return e.handleTop(n,!1)}}},[e._v(e._s(e.t("ADMIN_COMMENT_UNTOP")))]):e._e(),e._v(" "),n.rid||n.top?e._e():t("el-button",{attrs:{size:"mini",type:"text"},on:{click:function(t){return e.handleTop(n,!0)}}},[e._v(e._s(e.t("ADMIN_COMMENT_TOP")))]),e._v(" "),t("el-button",{attrs:{size:"mini",type:"text"},on:{click:function(t){return e.handleDelete(n)}}},[e._v(e._s(e.t("ADMIN_COMMENT_DELETE")))])],1)])}),0),e._v(" "),t("tk-pagination",{attrs:{"page-size":e.pageSize,total:e.count},on:{"page-size-change":e.onPageSizeChange,"current-change":e.switchPage}})],1)},t.staticRenderFns=[function(){var e=this,t=e._self._c;return t("span",[e._v("请参考 "),t("a",{attrs:{href:"https://twikoo.js.org/update.html",target:"_blank"}},[e._v("版本更新")]),e._v(" 进行升级")])}]}),o=n(7167),i=o.A,s=(0,n(4486).A)(i,r.render,r.staticRenderFns,!1,null,null,null).exports},2348:function(e,t,n){"use strict";n.r(t),n.d(t,{__esModule:function(){return o.B},"default":function(){return s}});var r=n.cjs(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.staticRenderFns=t.render=void 0,t.render=function(){var e=this,t=e._self._c;return t("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticClass:"tk-admin-config"},[e.clientVersion!==e.serverVersion?t("div",{staticClass:"tk-admin-warn"},[t("span",[e._v(e._s(e.t("ADMIN_CLIENT_VERSION"))+e._s(e.clientVersion)+",")]),e._v(" "),t("span",[e._v(e._s(e.t("ADMIN_SERVER_VERSION"))+e._s(e.serverVersion)+",")]),e._v(" "),e._m(0)]):e._e(),e._v(" "),t("form",{on:{submit:function(t){return t.preventDefault(),e.saveConfig.apply(null,arguments)}}},[t("div",{staticClass:"tk-admin-config-groups"},[e._l(e.settings,function(n){return t("details",{key:n.name,staticClass:"tk-admin-config-group"},[t("summary",{staticClass:"tk-admin-config-group-title"},[e._v(e._s(n.name))]),e._v(" "),e._l(n.items,function(n){return t("div",{directives:[{name:"show",rawName:"v-show",value:e.showSetting(n),expression:"showSetting(setting)"}],key:n.key,staticClass:"tk-admin-config-item"},[t("div",{staticClass:"tk-admin-config-title",attrs:{title:n.key}},[e._v(e._s(n.key))]),e._v(" "),t("div",{staticClass:"tk-admin-config-input"},[n.options?t("select",{directives:[{name:"model",rawName:"v-model",value:n.value,expression:"setting.value"}],staticClass:"tk-admin-config-select",on:{change:function(t){var r=Array.prototype.filter.call(t.target.options,function(e){return e.selected}).map(function(e){return"_value"in e?e._value:e.value});e.$set(n,"value",t.target.multiple?r:r[0])}}},e._l(n.options,function(n){return t("option",{key:n.value,domProps:{value:n.value}},[e._v(e._s(n.label))])}),0):"textarea"===n.type?t("el-input",{attrs:{type:"textarea",rows:5,placeholder:n.ph,size:"small"},model:{value:n.value,callback:function(t){e.$set(n,"value",t)},expression:"setting.value"}}):t("el-input",{attrs:{placeholder:n.ph,size:"small","show-password":n.secret},model:{value:n.value,callback:function(t){e.$set(n,"value",t)},expression:"setting.value"}})],1),e._v(" "),t("div"),e._v(" "),t("div",{staticClass:"tk-admin-config-desc"},[e._v(e._s(n.desc))])])})],2)}),e._v(" "),t("details",{staticClass:"tk-admin-config-group"},[t("summary",{staticClass:"tk-admin-config-group-title"},[e._v(e._s(e.t("ADMIN_CONFIG_EMAIL_TEST")))]),e._v(" "),t("div",{staticClass:"tk-admin-config-email-test"},[t("div",{staticClass:"tk-admin-config-email-test-desc"},[e._v(e._s(e.t("ADMIN_CONFIG_EMAIL_TEST_HELP")))]),e._v(" "),t("div",{staticClass:"tk-admin-config-input"},[t("el-input",{attrs:{size:"small"},model:{value:e.emailTestAddress,callback:function(t){e.emailTestAddress=t},expression:"emailTestAddress"}},[t("el-button",{attrs:{slot:"append",type:"info"},on:{click:e.testEmail},slot:"append"},[e._v(e._s(e.t("ADMIN_CONFIG_EMAIL_TEST_BTN")))])],1)],1),e._v(" "),t("div",{staticClass:"tk-admin-config-email-test-desc"},[e._v(e._s(e.t("ADMIN_CONFIG_EMAIL_TEST_RESULT"))+e._s(e.emailTestResult))])])])],2),e._v(" "),t("div",{staticClass:"tk-admin-config-actions"},[t("el-button",{attrs:{size:"small",type:"primary","native-type":"submit"}},[e._v(e._s(e.t("ADMIN_CONFIG_SAVE")))]),e._v(" "),t("el-button",{attrs:{size:"small",type:"info"},on:{click:e.resetConfig}},[e._v(e._s(e.t("ADMIN_CONFIG_RESET")))])],1)]),e._v(" "),t("div",{staticClass:"tk-admin-config-message"},[e._v(e._s(e.message))])])},t.staticRenderFns=[function(){var e=this,t=e._self._c;return t("span",[e._v("请参考 "),t("a",{attrs:{href:"https://twikoo.js.org/update.html",target:"_blank"}},[e._v("版本更新")]),e._v(" 进行升级")])}]}),o=n(6432),i=o.A,s=(0,n(4486).A)(i,r.render,r.staticRenderFns,!1,null,null,null).exports},9320:function(e,t,n){"use strict";n.r(t),n.d(t,{__esModule:function(){return o.B},"default":function(){return s}});var r=n.cjs(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.staticRenderFns=t.render=void 0,t.render=function(){var e=this,t=e._self._c;return t("div",{staticClass:"tk-admin-export"},[t("div",{staticClass:"tk-admin-warn tk-admin-import-warn"},[t("p",[e._v(e._s(e.t("ADMIN_EXPORT_WARN")))])]),e._v(" "),t("el-button",{attrs:{size:"small",disabled:e.loading},on:{click:function(t){return e.doExport("comment")}}},[e._v(e._s(e.t("ADMIN_EXPORT_COMMENT")))]),e._v(" "),t("el-button",{attrs:{size:"small",disabled:e.loading},on:{click:function(t){return e.doExport("counter")}}},[e._v(e._s(e.t("ADMIN_EXPORT_COUNTER")))])],1)},t.staticRenderFns=[]}),o=n(4984),i=o.A,s=(0,n(4486).A)(i,r.render,r.staticRenderFns,!1,null,null,null).exports},3668:function(e,t,n){"use strict";n.r(t),n.d(t,{__esModule:function(){return o.B},"default":function(){return s}});var r=n.cjs(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.staticRenderFns=t.render=void 0,t.render=function(){var e=this,t=e._self._c;return t("div",{staticClass:"tk-admin-import"},[t("div",{staticClass:"tk-admin-warn tk-admin-import-warn"},[t("p",[e._v(e._s(e.t("ADMIN_IMPORT_WARN")))]),e._v(" "),t("p",[e._v(e._s(e.warnText[e.source]))])]),e._v(" "),t("div",{staticClass:"tk-admin-import-label"},[e._v(e._s(e.t("ADMIN_IMPORT_SELECT_SOURCE")))]),e._v(" "),t("select",{directives:[{name:"model",rawName:"v-model",value:e.source,expression:"source"}],on:{change:function(t){var n=Array.prototype.filter.call(t.target.options,function(e){return e.selected}).map(function(e){return"_value"in e?e._value:e.value});e.source=t.target.multiple?n:n[0]}}},[t("option",{attrs:{disabled:"",value:""}},[e._v(e._s(e.t("ADMIN_IMPORT_SELECT")))]),e._v(" "),t("option",{attrs:{value:"valine"}},[e._v("Valine (JSON)")]),e._v(" "),t("option",{attrs:{value:"disqus"}},[e._v("Disqus (XML)")]),e._v(" "),t("option",{attrs:{value:"artalk"}},[e._v("Artalk v1 (JSON)")]),e._v(" "),t("option",{attrs:{value:"artalk2"}},[e._v("Artalk v2 (Artrans)")]),e._v(" "),t("option",{attrs:{value:"twikoo"}},[e._v("Twikoo (JSON)")])]),e._v(" "),t("div",{staticClass:"tk-admin-import-label"},[e._v(e._s(e.t("ADMIN_IMPORT_SELECT_FILE")))]),e._v(" "),t("input",{ref:"inputFile",attrs:{type:"file",value:""}}),e._v(" "),t("el-button",{attrs:{size:"small",disabled:e.loading},on:{click:e.uploadFile}},[e._v(e._s(e.t("ADMIN_IMPORT_START")))]),e._v(" "),t("el-input",{ref:"logTextArea",attrs:{type:"textarea",rows:10,placeholder:e.t("ADMIN_IMPORT_LOG"),readonly:""},model:{value:e.logText,callback:function(t){e.logText=t},expression:"logText"}})],1)},t.staticRenderFns=[]}),o=n(8253),i=o.A,s=(0,n(4486).A)(i,r.render,r.staticRenderFns,!1,null,null,null).exports},1645:function(e,t,n){"use strict";n.r(t),n.d(t,{__esModule:function(){return o.B},"default":function(){return s}});var r=n.cjs(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.staticRenderFns=t.render=void 0,t.render=function(){var e=this,t=e._self._c;return t("div",{staticClass:"tk-avatar","class":{"tk-clickable":!!e.link,"tk-has-avatar":!!e.avatarInner},on:{click:e.onClick}},[e.avatarInner?e._e():t("div",{staticClass:"tk-avatar-img",domProps:{innerHTML:e._s(e.iconUser)}}),e._v(" "),e.avatarInner?t("img",{staticClass:"tk-avatar-img",attrs:{src:e.avatarInner,alt:""}}):e._e()])},t.staticRenderFns=[]}),o=n(4636),i=o.A,s=(0,n(4486).A)(i,r.render,r.staticRenderFns,!1,null,null,null).exports},9502:function(e,t,n){"use strict";n.r(t),n.d(t,{__esModule:function(){return o.B},"default":function(){return s}});var r=n.cjs(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.staticRenderFns=t.render=void 0,t.render=function(){var e=this,t=e._self._c;return t("div",{ref:"tk-comment",staticClass:"tk-comment","class":{"tk-master":e.comment.master},attrs:{id:e.comment.id}},[t("tk-avatar",{attrs:{config:e.config,nick:e.comment.nick,avatar:e.comment.avatar,"mail-md5":e.comment.mailMd5,link:e.convertedLink}}),e._v(" "),t("div",{staticClass:"tk-main"},[t("div",{staticClass:"tk-row"},[t("div",{staticClass:"tk-meta"},[e.convertedLink?e._e():t("strong",{staticClass:"tk-nick"},[e._v(e._s(e.comment.nick))]),e._v(" "),e.convertedLink?t("a",{staticClass:"tk-nick tk-nick-link",attrs:{href:e.convertedLink,target:"_blank",rel:"noopener noreferrer nofollow ugc"}},[t("strong",[e._v(e._s(e.comment.nick))])]):e._e(),e._v(" "),e.comment.master?t("span",{staticClass:"tk-tag tk-tag-green"},[e._v(e._s(e.config.MASTER_TAG||e.t("COMMENT_MASTER_TAG")))]):e._e(),e._v(" "),e.comment.top?t("span",{staticClass:"tk-tag tk-tag-red"},[e._v(e._s(e.t("COMMENT_TOP_TAG")))]):e._e(),e._v(" "),e.comment.isSpam?t("span",{staticClass:"tk-tag tk-tag-yellow"},[e._v(e._s(e.t("COMMENT_REVIEWING_TAG")))]):e._e(),e._v(" "),t("small",{staticClass:"tk-time"},[t("time",{attrs:{datetime:e.jsonTimestamp,title:e.localeTime}},[e._v(e._s(e.displayCreated))])]),e._v(" "),e.isLogin?t("small",{staticClass:"tk-actions"},[e.comment.isSpam?t("button",{on:{click:function(t){return e.handleSpam(!1)}}},[e._v(e._s(e.t("ADMIN_COMMENT_SHOW")))]):e._e(),e._v(" "),e.comment.isSpam?e._e():t("button",{on:{click:function(t){return e.handleSpam(!0)}}},[e._v(e._s(e.t("ADMIN_COMMENT_HIDE")))]),e._v(" "),!e.comment.rid&&e.comment.top?t("button",{on:{click:function(t){return e.handleTop(!1)}}},[e._v(e._s(e.t("ADMIN_COMMENT_UNTOP")))]):e._e(),e._v(" "),e.comment.rid||e.comment.top?e._e():t("button",{on:{click:function(t){return e.handleTop(!0)}}},[e._v(e._s(e.t("ADMIN_COMMENT_TOP")))])]):e._e()]),e._v(" "),t("tk-action",{attrs:{liked:e.liked,disliked:e.disliked,"like-count":e.ups,"dislike-count":e.downs,"replies-count":e.comment.replies.length,"show-dislike":"false"!==e.config.SHOW_DISLIKE,"show-delete":e.comment.isOwner},on:{like:e.onLike,dislike:e.onDislike,reply:e.onReply,"delete":e.onDelete}})],1),e._v(" "),t("div",{ref:"tk-content",staticClass:"tk-content","class":{"tk-content-expand":e.isContentExpanded||!e.showContentExpand}},[e.comment.pid?t("span",[e._v(e._s(e.t("COMMENT_REPLIED"))+" "),t("a",{staticClass:"tk-ruser",attrs:{href:"#"},on:{click:function(t){return t.preventDefault(),e.scrollToPid(e.comment.pid)}}},[e._v("@"+e._s(e.comment.ruser))]),e._v(" :")]):e._e(),e._v(" "),t("span",{ref:"comment",domProps:{innerHTML:e._s(e.comment.comment)},on:{click:e.popupLightbox}})]),e._v(" "),e.showContentExpand?t("div",{staticClass:"tk-expand-wrap"},[t("div",{staticClass:"tk-expand",on:{click:e.onContentExpand}},[e._v(e._s(e.t("COMMENT_EXPAND")))])]):e._e(),e._v(" "),e.showContentCollapse?t("div",{staticClass:"tk-collapse-wrap"},[t("div",{staticClass:"tk-expand _collapse",on:{click:e.onContentCollapse}},[e._v(e._s(e.t("COMMENT_COLLAPSE")))])]):e._e(),e._v(" "),e.comment.ipRegion||e.comment.os||e.comment.browser?t("div",{staticClass:"tk-extras"},[e.comment.ipRegion?t("div",{staticClass:"tk-extra"},[t("span",{staticClass:"tk-icon __comment",domProps:{innerHTML:e._s(e.iconLocation)}}),e._v(" "),t("span",{staticClass:"tk-extra-text"},[e._v(" "+e._s(e.comment.ipRegion))])]):e._e(),e._v(" "),e.comment.os?t("div",{staticClass:"tk-extra"},[t("span",{staticClass:"tk-icon __comment",domProps:{innerHTML:e._s(e.iconOs)}}),e._v(" "),t("span",{staticClass:"tk-extra-text"},[e._v(" "+e._s(e.comment.os))])]):e._e(),e._v(" "),e.comment.browser?t("div",{staticClass:"tk-extra"},[t("span",{staticClass:"tk-icon __comment",domProps:{innerHTML:e._s(e.iconBrowser)}}),e._v(" "),t("span",{staticClass:"tk-extra-text"},[e._v(" "+e._s(e.comment.browser))])]):e._e()]):e._e(),e._v(" "),e.replying&&!e.pid?t("tk-submit",{attrs:{"reply-id":e.replyId?e.replyId:e.comment.id,pid:e.comment.id,config:e.config},on:{load:e.onLoad,cancel:e.onCancel}}):e._e(),e._v(" "),t("div",{ref:"tk-replies",staticClass:"tk-replies","class":{"tk-replies-expand":e.isExpanded||!e.showExpand||e.replying}},e._l(e.comment.replies,function(n){return t("tk-comment",{key:n.id,attrs:{comment:n,replyId:e.comment.id,replying:e.replying&&e.pid===n.id,config:e.config},on:{expand:e.onExpand,load:e.onLoad,reply:e.onReplyReply,refreshed:e.onRefreshed}})}),1),e._v(" "),e.showExpand&&!e.replying?t("div",{staticClass:"tk-expand-wrap"},[t("div",{staticClass:"tk-expand",on:{click:e.onExpand}},[e._v(e._s(e.t("COMMENT_EXPAND")))])]):e._e(),e._v(" "),e.showCollapse&&!e.replying?t("div",{staticClass:"tk-collapse-wrap"},[t("div",{staticClass:"tk-expand _collapse",on:{click:e.onCollapse}},[e._v(e._s(e.t("COMMENT_COLLAPSE")))])]):e._e()],1)],1)},t.staticRenderFns=[]}),o=n(7336),i=o.A,s=(0,n(4486).A)(i,r.render,r.staticRenderFns,!1,null,null,null).exports},2956:function(e,t,n){"use strict";n.r(t),n.d(t,{__esModule:function(){return o.B},"default":function(){return s}});var r=n.cjs(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.staticRenderFns=t.render=void 0,t.render=function(){var e=this,t=e._self._c;return t("div",{staticClass:"tk-comments"},[t("tk-submit",{attrs:{config:e.config},on:{load:e.initComments}}),e._v(" "),t("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticClass:"tk-comments-container"},[t("div",{staticClass:"tk-comments-title"},[t("span",{staticClass:"tk-comments-count","class":{__hidden:!e.comments.length}},[t("span",[e._v(e._s(e.count))]),e._v(" "),t("span",[e._v(e._s(e.t("COMMENTS_COUNT_SUFFIX")))])]),e._v(" "),t("span",{staticClass:"tk-comments-actions"},[!e.loading&&e.comments.length&&"false"!==e.config.SHOW_ORDER?t("span",{staticClass:"tk-comments-sort"},[t("button",{staticClass:"tk-sort-item","class":{__active:"newest"===e.currentSort},attrs:{type:"button"},on:{click:function(t){return e.setSort("newest")}}},[e._v(e._s(e.t("COMMENTS_SORT_NEWEST")))]),e._v(" "),t("button",{staticClass:"tk-sort-item","class":{__active:"oldest"===e.currentSort},attrs:{type:"button"},on:{click:function(t){return e.setSort("oldest")}}},[e._v(e._s(e.t("COMMENTS_SORT_OLDEST")))]),e._v(" "),t("button",{staticClass:"tk-sort-item","class":{__active:"popular"===e.currentSort},attrs:{type:"button"},on:{click:function(t){return e.setSort("popular")}}},[e._v(e._s(e.t("COMMENTS_SORT_POPULAR")))])]):e._e(),e._v(" "),e.loading||e.loadingMore?e._e():t("span",{staticClass:"tk-icon __comments",domProps:{innerHTML:e._s(e.iconSearch)},on:{click:e.toggleSearch}}),e.loading||e.loadingMore?e._e():t("span",{staticClass:"tk-icon __comments",domProps:{innerHTML:e._s(e.iconRefresh)},on:{click:e.refresh}}),e.showAdminEntry?t("span",{staticClass:"tk-icon __comments",domProps:{innerHTML:e._s(e.iconSetting)},on:{click:e.openAdmin}}):e._e()])]),e._v(" "),t("div",{directives:[{name:"show",rawName:"v-show",value:e.showSearch,expression:"showSearch"}],staticClass:"tk-comments-search"},[t("el-input",{ref:"searchInputRef",attrs:{size:"small",clearable:"",maxlength:"100",placeholder:e.t("COMMENTS_SEARCH_PLACEHOLDER")},on:{clear:e.clearSearch},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.search.apply(null,arguments)}},model:{value:e.searchInput,callback:function(t){e.searchInput=t},expression:"searchInput"}}),e._v(" "),t("el-button",{attrs:{size:"small",type:"primary"},on:{click:e.search}},[e._v(e._s(e.t("COMMENTS_SEARCH")))])],1),e._v(" "),e.loading||e.comments.length?e._e():t("div",{staticClass:"tk-comments-no"},[!e.errorMessage&&e.searchKeyword?t("span",[e._v(e._s(e.t("COMMENTS_SEARCH_NO_RESULT")))]):e._e(),e._v(" "),e.errorMessage||e.searchKeyword?e._e():t("span",[e._v(e._s(e.t("COMMENTS_NO_COMMENTS")))]),e._v(" "),e.errorMessage?t("span",{staticClass:"tk-comments-error"},[e._v(e._s(e.errorMessage))]):e._e()]),e._v(" "),e._l(e.comments,function(n){return t("tk-comment",{key:n.id,attrs:{comment:n,replying:e.replyId===n.id,config:e.config},on:{reply:e.onReply,load:e.refreshPreservingState}})}),e._v(" "),e.showExpand&&!e.loading?t("div",{staticClass:"tk-expand-wrap"},[t("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loadingMore,expression:"loadingMore"}],staticClass:"tk-expand",on:{click:e.onExpand}},[e._v(e._s(e.t("COMMENTS_EXPAND")))])]):e._e()],2)],1)},t.staticRenderFns=[]}),o=n(4233),i=o.A,s=(0,n(4486).A)(i,r.render,r.staticRenderFns,!1,null,null,null).exports},2497:function(e,t,n){"use strict";n.r(t),n.d(t,{__esModule:function(){return o.B},"default":function(){return s}});var r=n.cjs(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.staticRenderFns=t.render=void 0,t.render=function(){var e=this,t=e._self._c;return t("div",{staticClass:"tk-footer"},[e._v("\n Powered by "),t("a",{attrs:{href:"https://twikoo.js.org",target:"_blank"}},[e._v("Twikoo")]),e._v("\n v"+e._s(e.version)+"\n")])},t.staticRenderFns=[]}),o=n(2950),i=o.A,s=(0,n(4486).A)(i,r.render,r.staticRenderFns,!1,null,null,null).exports},5878:function(e,t,n){"use strict";n.r(t),n.d(t,{__esModule:function(){return o.B},"default":function(){return s}});var r=n.cjs(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.staticRenderFns=t.render=void 0,t.render=function(){var e=this,t=e._self._c;return t("div",{staticClass:"tk-meta-input"},e._l(e.displayedInputs,function(n){return t("el-input",{key:n.key,attrs:{name:n.name,type:n.type,placeholder:e.requiredFields[n.key]?e.t("META_INPUT_REQUIRED"):e.t("META_INPUT_NOT_REQUIRED"),size:"small"},on:{change:e.onMetaChange},model:{value:e.metaData[n.key],callback:function(t){e.$set(e.metaData,n.key,t)},expression:"metaData[metaInput.key]"}},[t("template",{slot:"prepend"},[e._v(e._s(n.locale))])],2)}),1)},t.staticRenderFns=[]}),o=n(254),i=o.A,s=(0,n(4486).A)(i,r.render,r.staticRenderFns,!1,null,null,null).exports},7350:function(e,t,n){"use strict";n.r(t),n.d(t,{__esModule:function(){return o.B},"default":function(){return s}});var r=n.cjs(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.staticRenderFns=t.render=void 0,t.render=function(){var e=this,t=e._self._c;return t("div",{staticClass:"tk-pagination"},[e.pageCount?t("div",{staticClass:"tk-pagination-options"},[t("div",[t("span",[e._v(e._s(e.t("PAGINATION_COUNT_PREFIX")))]),e._v(" "),t("span",[e._v(e._s(e.total))]),e._v(" "),t("span",[e._v(e._s(e.t("PAGINATION_COUNT_SUFFIX")))])]),e._v(" "),t("el-input",{attrs:{type:"number",min:"1",max:"100",value:e.userPageSize?e.userPageSize:e.pageSize},on:{input:e.handleInputPageSize,change:e.pageSizeChamge}}),e._v(" "),t("span",[e._v(e._s(e.t("PAGINATION_PAGESIZE")))])],1):e._e(),e._v(" "),t("div",{staticClass:"tk-pagination-pagers"},e._l(e.pagers,function(n){return t("div",{key:n.page,staticClass:"tk-pagination-pager","class":{__current:n.page===e.currentPage},on:{click:function(t){return e.currentChange(n.page)}}},[e._v(e._s(n.title))])}),0),e._v(" "),e.pageCount?t("div",{staticClass:"tk-pagination-options"},[t("span",[e._v(e._s(e.t("PAGINATION_GOTO_PREFIX")))]),e._v(" "),t("el-input",{attrs:{type:"number",min:"1",max:e.pageCount,value:e.userInput?e.userInput:e.currentPage},on:{input:e.handleInput,change:e.currentChange}}),e._v(" "),t("span",[e._v(e._s(e.t("PAGINATION_GOTO_SUFFIX")))])],1):e._e()])},t.staticRenderFns=[]}),o=n(2103),i=o.A,s=(0,n(4486).A)(i,r.render,r.staticRenderFns,!1,null,null,null).exports},8273:function(e,t,n){"use strict";n.r(t),n.d(t,{__esModule:function(){return o.B},"default":function(){return s}});var r=n.cjs(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.staticRenderFns=t.render=void 0,t.render=function(){var e=this,t=e._self._c;return t("div",{ref:"tk-submit",staticClass:"tk-submit tk-fade-in"},[t("div",{staticClass:"tk-row"},[t("tk-avatar",{attrs:{config:e.config,mail:e.mail,nick:e.nick}}),e._v(" "),t("div",{staticClass:"tk-col"},[t("tk-meta-input",{attrs:{nick:e.nick,mail:e.mail,link:e.link,config:e.config},on:{update:e.onMetaUpdate}}),e._v(" "),t("el-input",{ref:"textarea",staticClass:"tk-input",attrs:{type:"textarea","show-word-limit":"",placeholder:e.commentPlaceholder,autosize:{minRows:3},maxlength:e.maxLength},on:{input:e.onCommentInput},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.onEnterKeyUp(t)}},model:{value:e.comment,callback:function(t){e.comment=t},expression:"comment"}})],1)],1),e._v(" "),t("div",{staticClass:"tk-row actions"},[t("div",{staticClass:"tk-row-actions-start"},[t("div",{directives:[{name:"show",rawName:"v-show",value:"true"===e.config.SHOW_EMOTION,expression:"config.SHOW_EMOTION === 'true'"},{name:"clickoutside",rawName:"v-clickoutside",value:e.closeOwo,expression:"closeOwo"}],ref:"owo",staticClass:"tk-submit-action-icon OwO",domProps:{innerHTML:e._s(e.iconEmotion)}}),e._v(" "),t("div",{directives:[{name:"show",rawName:"v-show",value:e.showImage,expression:"showImage"}],staticClass:"tk-submit-action-icon",domProps:{innerHTML:e._s(e.iconImage)},on:{click:e.openSelectImage}}),e._v(" "),t("input",{ref:"inputFile",staticClass:"tk-input-image",attrs:{type:"file",accept:"image/*",value:""},on:{change:e.onSelectImage}}),e._v(" "),t("div",{staticClass:"tk-error-message"},[e._v(e._s(e.errorMessage))])]),e._v(" "),t("a",{staticClass:"tk-submit-action-icon __markdown",attrs:{alt:"Markdown is supported",href:"https://guides.github.com/features/mastering-markdown/",target:"_blank",rel:"noopener noreferrer"},domProps:{innerHTML:e._s(e.iconMarkdown)}}),e._v(" "),e.replyId?t("el-button",{staticClass:"tk-cancel",attrs:{size:"small"},on:{click:e.cancel}},[e._v(e._s(e.t("SUBMIT_CANCEL")))]):e._e(),e._v(" "),t("el-button",{staticClass:"tk-preview",attrs:{size:"small"},on:{click:e.preview}},[e._v(e._s(e.t("SUBMIT_PREVIEW")))]),e._v(" "),t("el-button",{staticClass:"tk-send",attrs:{type:"primary",size:"small",disabled:!e.canSend},on:{click:e.send}},[e._v(e._s(e.isSending?e.t("SUBMIT_SENDING"):e.t("SUBMIT_SEND")))]),e._v(" "),t("div",{directives:[{name:"show",rawName:"v-show",value:"Turnstile"===e.captchaProvider,expression:"captchaProvider === 'Turnstile'"}],ref:"turnstile-container",staticClass:"tk-turnstile-container"},[t("div",{ref:"turnstile",staticClass:"tk-turnstile"})]),e._v(" "),t("div",{directives:[{name:"show",rawName:"v-show",value:"Geetest"===e.captchaProvider,expression:"captchaProvider === 'Geetest'"}],ref:"geetest-container",staticClass:"tk-geetest-container"}),e._v(" "),t("div",{directives:[{name:"show",rawName:"v-show",value:"Cap"===e.captchaProvider,expression:"captchaProvider === 'Cap'"}],ref:"cap-container",staticClass:"tk-cap-container"})],1),e._v(" "),e.isPreviewing?t("div",{ref:"comment-preview",staticClass:"tk-preview-container",domProps:{innerHTML:e._s(e.commentHtml)}}):e._e()])},t.staticRenderFns=[]}),o=n(3543),i=o.A,s=(0,n(4486).A)(i,r.render,r.staticRenderFns,!1,null,null,null).exports},4486:function(e,t,n){"use strict";function r(e,t,n,r,o,i,s,a){var c,l="function"==typeof e?e.options:e;if(t&&(l.render=t,l.staticRenderFns=n,l._compiled=!0),r&&(l.functional=!0),i&&(l._scopeId="data-v-"+i),s?(c=function(e){(e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),o&&o.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(s)},l._ssrRegister=c):o&&(c=a?function(){o.call(this,(l.functional?this.parent:this).$root.$options.shadowRoot)}:o),c)if(l.functional){l._injectStyles=c;var u=l.render;l.render=function(e,t){return c.call(t),u(e,t)}}else{var d=l.beforeCreate;l.beforeCreate=d?[].concat(d,c):[c]}return{exports:e,options:l}}n.d(t,{A:function(){return r}})},6553:function(e){"use strict";e.exports=function(e){return e&&e.__esModule?e:{"default":e}},e.exports.__esModule=!0,e.exports["default"]=e.exports},580:function(e,t,n){"use strict";var r=n(8483)["default"];function o(t,n){if("function"==typeof WeakMap)var i=new WeakMap,s=new WeakMap;return(e.exports=o=function(e,t){if(!t&&e&&e.__esModule)return e;var n,o,a={__proto__:null,"default":e};if(null===e||"object"!=r(e)&&"function"!=typeof e)return a;if(n=t?s:i){if(n.has(e))return n.get(e);n.set(e,a)}for(var c in e)"default"!==c&&{}.hasOwnProperty.call(e,c)&&((o=(n=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,c))&&(o.get||o.set)?n(a,c,o):a[c]=e[c]);return a},e.exports.__esModule=!0,e.exports["default"]=e.exports)(t,n)}e.exports=o,e.exports.__esModule=!0,e.exports["default"]=e.exports},8483:function(e){"use strict";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},2570:function(e){"use strict";var t="undefined"!=typeof ArrayBuffer,n=function(e){if("string"==typeof e)return[e,!0];if(Array.isArray(e))return[e,!1];if(t&&e){if(e.constructor===ArrayBuffer)return[new Uint8Array(e),!1];if(ArrayBuffer.isView(e))return[e,!1]}throw new Error("input is invalid type")},r="0123456789abcdef".split(""),o=[-2147483648,8388608,32768,128],i=[24,16,8,0],s=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],a=["hex","array","digest","arrayBuffer"],c=[],l=function(e,t){return function(n){return new p(t,!0).update(n)[e]()}},u=function(e){var t=l("hex",e);t.create=function(){return new p(e)},t.update=function(e){return t.create().update(e)};for(var n=0;n<a.length;++n){var r=a[n];t[r]=l(r,e)}return t},d=function(e,t){return function(n,r){return new f(n,t,!0).update(r)[e]()}},h=function(e){var t=d("hex",e);t.create=function(t){return new f(t,e)},t.update=function(e,n){return t.create(e).update(n)};for(var n=0;n<a.length;++n){var r=a[n];t[r]=d(r,e)}return t};function p(e,t){t?(c[0]=c[16]=c[1]=c[2]=c[3]=c[4]=c[5]=c[6]=c[7]=c[8]=c[9]=c[10]=c[11]=c[12]=c[13]=c[14]=c[15]=0,this.blocks=c):this.blocks=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],e?(this.h0=3238371032,this.h1=914150663,this.h2=812702999,this.h3=4144912697,this.h4=4290775857,this.h5=1750603025,this.h6=1694076839,this.h7=3204075428):(this.h0=1779033703,this.h1=3144134277,this.h2=1013904242,this.h3=2773480762,this.h4=1359893119,this.h5=2600822924,this.h6=528734635,this.h7=1541459225),this.block=this.start=this.bytes=this.hBytes=0,this.finalized=this.hashed=!1,this.first=!0,this.is224=e}function f(e,t,r){var o,i=n(e);if(e=i[0],i[1]){var s,a=[],c=e.length,l=0;for(o=0;o<c;++o)(s=e.charCodeAt(o))<128?a[l++]=s:s<2048?(a[l++]=192|s>>>6,a[l++]=128|63&s):s<55296||s>=57344?(a[l++]=224|s>>>12,a[l++]=128|s>>>6&63,a[l++]=128|63&s):(s=65536+((1023&s)<<10|1023&e.charCodeAt(++o)),a[l++]=240|s>>>18,a[l++]=128|s>>>12&63,a[l++]=128|s>>>6&63,a[l++]=128|63&s);e=a}e.length>64&&(e=new p(t,!0).update(e).array());var u=[],d=[];for(o=0;o<64;++o){var h=e[o]||0;u[o]=92^h,d[o]=54^h}p.call(this,t,r),this.update(d),this.oKeyPad=u,this.inner=!0,this.sharedMemory=r}p.prototype.update=function(e){if(this.finalized)throw new Error("finalize already called");var t=n(e);e=t[0];for(var r,o,s=t[1],a=0,c=e.length,l=this.blocks;a<c;){if(this.hashed&&(this.hashed=!1,l[0]=this.block,this.block=l[16]=l[1]=l[2]=l[3]=l[4]=l[5]=l[6]=l[7]=l[8]=l[9]=l[10]=l[11]=l[12]=l[13]=l[14]=l[15]=0),s)for(o=this.start;a<c&&o<64;++a)(r=e.charCodeAt(a))<128?l[o>>>2]|=r<<i[3&o++]:r<2048?(l[o>>>2]|=(192|r>>>6)<<i[3&o++],l[o>>>2]|=(128|63&r)<<i[3&o++]):r<55296||r>=57344?(l[o>>>2]|=(224|r>>>12)<<i[3&o++],l[o>>>2]|=(128|r>>>6&63)<<i[3&o++],l[o>>>2]|=(128|63&r)<<i[3&o++]):(r=65536+((1023&r)<<10|1023&e.charCodeAt(++a)),l[o>>>2]|=(240|r>>>18)<<i[3&o++],l[o>>>2]|=(128|r>>>12&63)<<i[3&o++],l[o>>>2]|=(128|r>>>6&63)<<i[3&o++],l[o>>>2]|=(128|63&r)<<i[3&o++]);else for(o=this.start;a<c&&o<64;++a)l[o>>>2]|=e[a]<<i[3&o++];this.lastByteIndex=o,this.bytes+=o-this.start,o>=64?(this.block=l[16],this.start=o-64,this.hash(),this.hashed=!0):this.start=o}return this.bytes>4294967295&&(this.hBytes+=this.bytes/4294967296|0,this.bytes=this.bytes%4294967296),this},p.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var e=this.blocks,t=this.lastByteIndex;e[16]=this.block,e[t>>>2]|=o[3&t],this.block=e[16],t>=56&&(this.hashed||this.hash(),e[0]=this.block,e[16]=e[1]=e[2]=e[3]=e[4]=e[5]=e[6]=e[7]=e[8]=e[9]=e[10]=e[11]=e[12]=e[13]=e[14]=e[15]=0),e[14]=this.hBytes<<3|this.bytes>>>29,e[15]=this.bytes<<3,this.hash()}},p.prototype.hash=function(){var e,t,n,r,o,i,a,c,l,u=this.h0,d=this.h1,h=this.h2,p=this.h3,f=this.h4,m=this.h5,g=this.h6,_=this.h7,v=this.blocks;for(e=16;e<64;++e)t=((o=v[e-15])>>>7|o<<25)^(o>>>18|o<<14)^o>>>3,n=((o=v[e-2])>>>17|o<<15)^(o>>>19|o<<13)^o>>>10,v[e]=v[e-16]+t+v[e-7]+n|0;for(l=d&h,e=0;e<64;e+=4)this.first?(this.is224?(i=300032,_=(o=v[0]-1413257819)-150054599|0,p=o+24177077|0):(i=704751109,_=(o=v[0]-210244248)-1521486534|0,p=o+143694565|0),this.first=!1):(t=(u>>>2|u<<30)^(u>>>13|u<<19)^(u>>>22|u<<10),r=(i=u&d)^u&h^l,_=p+(o=_+(n=(f>>>6|f<<26)^(f>>>11|f<<21)^(f>>>25|f<<7))+(f&m^~f&g)+s[e]+v[e])|0,p=o+(t+r)|0),t=(p>>>2|p<<30)^(p>>>13|p<<19)^(p>>>22|p<<10),r=(a=p&u)^p&d^i,g=h+(o=g+(n=(_>>>6|_<<26)^(_>>>11|_<<21)^(_>>>25|_<<7))+(_&f^~_&m)+s[e+1]+v[e+1])|0,t=((h=o+(t+r)|0)>>>2|h<<30)^(h>>>13|h<<19)^(h>>>22|h<<10),r=(c=h&p)^h&u^a,m=d+(o=m+(n=(g>>>6|g<<26)^(g>>>11|g<<21)^(g>>>25|g<<7))+(g&_^~g&f)+s[e+2]+v[e+2])|0,t=((d=o+(t+r)|0)>>>2|d<<30)^(d>>>13|d<<19)^(d>>>22|d<<10),r=(l=d&h)^d&p^c,f=u+(o=f+(n=(m>>>6|m<<26)^(m>>>11|m<<21)^(m>>>25|m<<7))+(m&g^~m&_)+s[e+3]+v[e+3])|0,u=o+(t+r)|0,this.chromeBugWorkAround=!0;this.h0=this.h0+u|0,this.h1=this.h1+d|0,this.h2=this.h2+h|0,this.h3=this.h3+p|0,this.h4=this.h4+f|0,this.h5=this.h5+m|0,this.h6=this.h6+g|0,this.h7=this.h7+_|0},p.prototype.hex=function(){this.finalize();var e=this.h0,t=this.h1,n=this.h2,o=this.h3,i=this.h4,s=this.h5,a=this.h6,c=this.h7,l=r[e>>>28&15]+r[e>>>24&15]+r[e>>>20&15]+r[e>>>16&15]+r[e>>>12&15]+r[e>>>8&15]+r[e>>>4&15]+r[15&e]+r[t>>>28&15]+r[t>>>24&15]+r[t>>>20&15]+r[t>>>16&15]+r[t>>>12&15]+r[t>>>8&15]+r[t>>>4&15]+r[15&t]+r[n>>>28&15]+r[n>>>24&15]+r[n>>>20&15]+r[n>>>16&15]+r[n>>>12&15]+r[n>>>8&15]+r[n>>>4&15]+r[15&n]+r[o>>>28&15]+r[o>>>24&15]+r[o>>>20&15]+r[o>>>16&15]+r[o>>>12&15]+r[o>>>8&15]+r[o>>>4&15]+r[15&o]+r[i>>>28&15]+r[i>>>24&15]+r[i>>>20&15]+r[i>>>16&15]+r[i>>>12&15]+r[i>>>8&15]+r[i>>>4&15]+r[15&i]+r[s>>>28&15]+r[s>>>24&15]+r[s>>>20&15]+r[s>>>16&15]+r[s>>>12&15]+r[s>>>8&15]+r[s>>>4&15]+r[15&s]+r[a>>>28&15]+r[a>>>24&15]+r[a>>>20&15]+r[a>>>16&15]+r[a>>>12&15]+r[a>>>8&15]+r[a>>>4&15]+r[15&a];return this.is224||(l+=r[c>>>28&15]+r[c>>>24&15]+r[c>>>20&15]+r[c>>>16&15]+r[c>>>12&15]+r[c>>>8&15]+r[c>>>4&15]+r[15&c]),l},p.prototype.toString=p.prototype.hex,p.prototype.digest=function(){this.finalize();var e=this.h0,t=this.h1,n=this.h2,r=this.h3,o=this.h4,i=this.h5,s=this.h6,a=this.h7,c=[e>>>24&255,e>>>16&255,e>>>8&255,255&e,t>>>24&255,t>>>16&255,t>>>8&255,255&t,n>>>24&255,n>>>16&255,n>>>8&255,255&n,r>>>24&255,r>>>16&255,r>>>8&255,255&r,o>>>24&255,o>>>16&255,o>>>8&255,255&o,i>>>24&255,i>>>16&255,i>>>8&255,255&i,s>>>24&255,s>>>16&255,s>>>8&255,255&s];return this.is224||c.push(a>>>24&255,a>>>16&255,a>>>8&255,255&a),c},p.prototype.array=p.prototype.digest,p.prototype.arrayBuffer=function(){this.finalize();var e=new ArrayBuffer(this.is224?28:32),t=new DataView(e);return t.setUint32(0,this.h0),t.setUint32(4,this.h1),t.setUint32(8,this.h2),t.setUint32(12,this.h3),t.setUint32(16,this.h4),t.setUint32(20,this.h5),t.setUint32(24,this.h6),this.is224||t.setUint32(28,this.h7),e},f.prototype=new p,f.prototype.finalize=function(){if(p.prototype.finalize.call(this),this.inner){this.inner=!1;var e=this.array();p.call(this,this.is224,this.sharedMemory),this.update(this.oKeyPad),this.update(e),p.prototype.finalize.call(this)}};var m=u(),g=u(!0);m.sha256=m,m.sha224=g,m.hmac=h(),g.hmac=h(!0),e.exports=m},2622:function(e){"use strict";e.exports=JSON.parse('{"name":"@cloudbase/app","version":"4.0.0","description":"cloudbase javascript sdk core","main":"dist/cjs/index.js","module":"dist/esm/index.js","scripts":{"tsc":"rm -rf dist/ && tsc -p tsconfig.esm.json && tsc -p tsconfig.json","lint":"eslint --fix \\"./src/**/*.ts\\"","build":"npm run lint && npm run tsc && npm run build:mp","build:mp":"webpack --config ./webpack/webpack.miniprogram.js","precommit":"npm run lint"},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"https://github.com/TencentCloudBase/cloudbase-js-sdk"},"keywords":["cloudbase","tcb","javascript","web","sdk","serverless"],"author":"","license":"Apache-2.0","dependencies":{"@cloudbase/adapter-interface":"^0.7.1","@cloudbase/adapter-wx_mp":"^1.2.0","@cloudbase/types":"4.0.0","@cloudbase/utilities":"4.0.0"},"gitHead":"e489e90352537598cac4ce36b64ed3184b0d41b1"}')}},t={};function n(r){var o=t[r];if(o!==undefined)return o.exports;var i=t[r]={exports:{}};return e[r](i,i.exports,n),i.exports}n.d=function(e,t){if(Array.isArray(t))for(var r=0;r<t.length;){var o=t[r++],i=t[r++];n.o(e,o)?0===i&&r++:0===i?Object.defineProperty(e,o,{enumerable:!0,value:t[r++]}):Object.defineProperty(e,o,{enumerable:!0,get:i})}else for(var o in t)n.o(t,o)&&!n.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.cjs=function(e){var t={exports:{}};return e.call(t.exports,t,t.exports),t.exports};var r={};return function(){"use strict";var e=r,t=n(6553)["default"];Object.defineProperty(e,"__esModule",{value:!0}),e["default"]=void 0,e.getCommentsCount=async function(e={}){const t=(0,a.isUrl)(e.envId)?null:await l(e);return await(0,a.getCommentsCountApi)(t,e)},e.getRecentComments=async function(e={}){const t=(0,a.isUrl)(e.envId)?null:await l(e);return await(0,a.getRecentCommentsApi)(t,e)},e.getVisitorsCount=async function(e={}){const t=(0,a.isUrl)(e.envId)?null:await l(e);return await(0,a.getVisitorsCountApi)(t,e)},e.init=u,Object.defineProperty(e,"version",{enumerable:!0,get:function(){return o.version}});var o=n(3115),i=n(388),s=n(8897),a=n(2509),c=t(n(2199));async function l(e){return await(0,i.install)(c["default"],e)}async function u(e={}){const t=(0,a.isUrl)(e.envId)?null:await l(e);(0,a.setLanguage)(e),(0,s.render)(t,e),await(0,a.updateVisitorsCount)(t,e)}n(364),n(8789),n(7245),e["default"]=u}(),r}()},"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.twikoo=t():e.twikoo=t();
2
+ var e,t;e=this,t=function(){return function(){var e={1553:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(3040);Object.keys(r).forEach(function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===r[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return r[e]}}))});var o=n(3132);Object.keys(o).forEach(function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===o[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return o[e]}}))})},3040:function(e,t){"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.StorageType=t.AbstractStorage=t.AbstractSDKRequest=void 0,function(e){e.local="local",e.none="none",e.session="session"}(n||(t.StorageType=n={})),t.AbstractSDKRequest=function(){},t.AbstractStorage=function(){}},3132:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.formatUrl=function(e,t,n){void 0===n&&(n={});var r=/\?/.test(t),o="";for(var i in n)""===o?!r&&(t+="?"):o+="&",o+=i+"="+encodeURIComponent(n[i]);return/^http(s)?\:\/\//.test(t+=o)?t:""+e+t}},7355:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.WxRequest=t.WxMpWebSocket=void 0,t.parseQueryString=m,t.wxMpStorage=void 0;var r,o=n(1553),i=n(5232),s=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},r(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),a=function(){return a=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},a.apply(this,arguments)},c=function(e,t,n,r){return new(n||(n=Promise))(function(o,i){function s(e){try{c(r.next(e))}catch(e){i(e)}}function a(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(s,a)}c((r=r.apply(e,t||[])).next())})},u=function(e,t){var n,r,o,i,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function a(i){return function(a){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;s;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return s.label++,{value:i[1],done:!1};case 5:s.label++,r=i[1],i=[0];continue;case 7:i=s.ops.pop(),s.trys.pop();continue;default:if(!((o=(o=s.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){s=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){s.label=i[1];break}if(6===i[0]&&s.label<o[1]){s.label=o[1],o=i;break}if(o&&s.label<o[2]){s.label=o[2],s.ops.push(i);break}o[2]&&s.ops.pop(),s.trys.pop();continue}i=t.call(e,s)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,a])}}},l=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n},d="Error when aborting requestTask",h=t.WxRequest=function(e){function t(t){void 0===t&&(t={});var n=e.call(this)||this,r=t.timeout,o=t.timeoutMsg,i=t.restrictedMethods;return n._timeout=r||0,n._timeoutMsg=o||"请求超时",n._restrictedMethods=i||["get","post","upload","download"],n}return s(t,e),t.prototype.post=function(e){var t=this;return new Promise(function(n,r){var i=e.url,s=e.data,a=e.headers,c=wx.request({url:(0,o.formatUrl)("https:",i),data:s,timeout:t._timeout,method:"POST",header:a,success:function(e){e.statusCode>=200&&e.statusCode<300?n({statusCode:e.statusCode,status:e.statusCode,data:e.data}):r(e)},fail:function(e){r(e)},complete:function(e){if(e&&e.errMsg&&t._timeout&&-1!==t._restrictedMethods.indexOf("post")&&"request:fail timeout"===e.errMsg){console.warn(t._timeoutMsg);try{c.abort()}catch(e){}}}})})},t.prototype.get=function(e){var t=this;return new Promise(function(n,r){var i=e.url,s=e.body,a=e.headers,c=(0,o.formatUrl)("https:",i),u=wx.request({url:c,data:s,timeout:t._timeout,method:"GET",header:a,success:function(e){e.statusCode>=200&&e.statusCode<300?n({statusCode:e.statusCode,status:e.statusCode,data:e.data}):r(e)},fail:function(e){r(e)},complete:function(e){if(e&&e.errMsg&&t._timeout&&-1!==t._restrictedMethods.indexOf("get")&&e.errMsg.includes("timeout")){console.warn(t._timeoutMsg);try{u.abort()}catch(e){console.warn(d,e)}}}})})},t.prototype.upload=function(e){var t=this,n=this;return new Promise(function(r){return c(t,void 0,void 0,function(){var t,o,i,s,c,l;return u(this,function(u){return t=e.url,o=e.file,i=e.data,s=e.headers,c=e.onUploadProgress,l=wx.uploadFile({url:t,filePath:o,name:"file",formData:a({},i),header:s,timeout:this._timeout,success:function(e){var t={statusCode:e.statusCode,data:e.data||{}};200===e.statusCode&&i.success_action_status&&(t.statusCode=parseInt(i.success_action_status,10)),r(t)},fail:function(e){r(e)},complete:function(e){if(e&&e.errMsg&&n._timeout&&-1!==n._restrictedMethods.indexOf("upload")&&"request:fail timeout"===e.errMsg){console.warn(n._timeoutMsg);try{l.abort()}catch(e){}}}}),c&&l.onProgressUpdate(function(e){c(e)}),[2]})})})},t.prototype.download=function(e){var t=this,n=this;return new Promise(function(r,i){var s=e.url,a=e.headers,c=wx.downloadFile({url:(0,o.formatUrl)("https:",s),header:a,timeout:t._timeout,success:function(e){200===e.statusCode&&e.tempFilePath?r({statusCode:200,tempFilePath:e.tempFilePath}):r(e)},fail:function(e){i(e)},complete:function(e){if(e&&e.errMsg&&n._timeout&&-1!==n._restrictedMethods.indexOf("download")&&"request:fail timeout"===e.errMsg){console.warn(n._timeoutMsg);try{c.abort()}catch(e){}}}})})},t.prototype.fetch=function(e){var t=e.url,n=e.body,r=e.enableAbort,s=e.headers,a=e.method,c=e.stream,u=void 0!==c&&c,l=e.signal,h=e.timeout,p=this,f=null!=h?h:this._timeout,m=null,g=new i.ReadableStream({start:function(e){m=e},cancel:function(){m=null}});return new Promise(function(e,i){u&&e({data:g});var c=wx.request({url:(0,o.formatUrl)("https:",t),data:n,timeout:f,method:a.toUpperCase(),header:s,success:function(t){null==m||m.close(),!u&&e(t)},fail:function(e){if(null==m||m.close(),i(e),u)throw e},complete:function(e){if(e&&e.errMsg&&f&&-1!==p._restrictedMethods.indexOf("post")&&r&&"request:fail timeout"===e.errMsg){console.warn(p._timeoutMsg);try{c.abort()}catch(e){console.warn(d,e)}}},enableChunked:u});if(c.onChunkReceived(function(e){null==m||m.enqueue(new Uint8Array(e.data))}),l){var h=function(){try{c.abort()}catch(e){console.warn(d,e)}};l.aborted?h():l.addEventListener("abort",function(){return h()})}})},t.prototype.patch=function(e){var t=e.method,n=e.headers,r=JSON.parse(JSON.stringify(n||{}));return"PATCH"===t.toUpperCase()&&(r["X-HTTP-Method-Override"]="PATCH",t="POST"),this.post(a(a({},e),{method:t,headers:r}))},t}(o.AbstractSDKRequest),p=t.wxMpStorage={setItem:function(e,t){wx.setStorageSync(e,t)},getItem:function(e){return wx.getStorageSync(e)},removeItem:function(e){wx.removeStorageSync(e)},clear:function(){wx.clearStorageSync()}},f=t.WxMpWebSocket=function(e,t){void 0===t&&(t={});var n=wx.connectSocket(a({url:e},t));return{set onopen(e){n.onOpen(e)},set onmessage(e){n.onMessage(e)},set onclose(e){n.onClose(e)},set onerror(e){n.onError(e)},send:function(e){return n.send({data:e})},close:function(e,t){return n.close({code:e,reason:t})},get readyState(){return n.readyState},CONNECTING:0,OPEN:1,CLOSING:2,CLOSED:3}};function m(e){var t={},n=e.replace(/^[?#]/,"");return n?(n.split("&").forEach(function(e){var n=e.split("="),r=n[0],o=n[1];r=decodeURIComponent(r),o=decodeURIComponent(o),r&&(t[r]?Array.isArray(t[r])?t[r].push(o):t[r]=[t[r],o]:t[r]=o)}),t):t}var g={genAdapter:function(e){return{root:{globalThis:{}},reqClass:h,wsClass:f,captchaOptions:{openURIWithCallback:function(t){var n=e.EventBus,r={},o=t;console.log("openURIWithCallback",t);var i=t.match(/^(data:.*?)(\?[^#\s]*)?$/);if(i){o=i[1],console.log("openURIWithCallback url",o);var s=i[2];s&&(r=m(s))}console.log("openURIWithCallback queryObj",r);var c=r.token,u=l(r,["token"]);return/^data:/.test(o)&&!c?Promise.reject({error:"invalid_argument",error_description:"invalie captcha data: "+t}):c?new Promise(function(e){console.log("wait for captcha..."),n.$emit("CAPTCHA_DATA_CHANGE",a(a({},u),{token:c,url:o})),n.$once("RESOLVE_CAPTCHA_DATA",function(t){e(t)})}):Promise.reject({error:"unimplemented",error_description:"need to impl captcha data"})}},localStorage:p,primaryStorage:o.StorageType.local,getAppSign:function(){var e=wx.getAccountInfoSync();return"undefined"!=typeof App||"undefined"!=typeof getApp||wx.onAppHide||wx.offAppHide||wx.onAppShow||wx.offAppShow?e&&e.miniProgram?e.miniProgram.appId:"":e&&e.plugin?e.plugin.appId:""}}},isMatch:function(){if("undefined"==typeof wx)return!1;if("undefined"==typeof Page)return!1;if(!wx.getSystemInfoSync)return!1;if(!wx.getStorageSync)return!1;if(!wx.setStorageSync)return!1;if(!wx.connectSocket)return!1;if(!wx.request)return!1;try{if(!wx.getSystemInfoSync())return!1;if("qq"===wx.getSystemInfoSync().AppPlatform)return!1}catch(e){return!1}return!0},runtime:"wx_mp"};t.default=g},7814:function(e,t,n){"use strict";var r,o,i;r={922:function(e,t,n){var r=this&&this.__assign||function(){return r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},r.apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.OAUTH2_LOGINTYPE_PREFIX=t.LOGINTYPE=t.getBaseEndPoint=t.setRegionLevelEndpoint=t.setGatewayEndPointWithEnv=t.getEndPointInfo=t.setEndPointInfo=t.DEFAULT_PROTOCOL=t.DATA_VERSION=t.getSdkName=t.setSdkName=t.getSdkVersion=t.setSdkVersion=void 0;var o=n(877),i=o.constants.setSdkName,s=o.constants.setProtocol,a="",c="@cloudbase/js-sdk";t.setSdkVersion=function(e){a=e},t.getSdkVersion=function(){return a},t.setSdkName=function(e){c=e,i(e)},t.getSdkName=function(){return c},t.DATA_VERSION="2020-01-10";var u,l=[],d=["env","endPointKey","region"];function h(e){return l.find(function(t){return d.filter(function(t){return null!=e[t]}).every(function(n){return t[n]===e[n]})})}function p(e){var n,o;e.protocol&&!/:$/.test(e.protocol)&&(e.protocol="".concat(e.protocol,":"));var i=h(e);i?(null!=e.baseUrl&&(i.baseUrl=e.baseUrl),null!=e.protocol&&(i.protocol=e.protocol)):l.push(r(r({},e),{protocol:null!==(n=e.protocol)&&void 0!==n?n:t.DEFAULT_PROTOCOL})),"CLOUD_API"===e.endPointKey&&s(null!==(o=e.protocol)&&void 0!==o?o:t.DEFAULT_PROTOCOL)}function f(e,t,n){return h({env:e,endPointKey:t,region:n})}t.DEFAULT_PROTOCOL="https:",t.setEndPointInfo=p,t.getEndPointInfo=f,t.setGatewayEndPointWithEnv=function(e,t,n){var r="//".concat(e,".api.tcloudbasegateway.com/v1");n&&(r="//".concat(e,".api.intl.tcloudbasegateway.com/v1")),p({endPointKey:"GATEWAY",env:e,baseUrl:r,protocol:t})},t.setRegionLevelEndpoint=function(e,t,n){p({env:e,region:t,baseUrl:"//".concat(e,".").concat(t||"ap-shanghai",".tcb-api.tencentcloudapi.com/web"),protocol:n,endPointKey:"CLOUD_API"})},t.getBaseEndPoint=function(e,t){void 0===t&&(t="CLOUD_API");var n=f(e,t||"CLOUD_API"),r=n.protocol,o=n.baseUrl;return"".concat(r).concat(o).match(/(http(s)?:)?\/\/([^/?#]*)/)[0]},(u=t.LOGINTYPE||(t.LOGINTYPE={})).NULL="NULL",u.ANONYMOUS="ANONYMOUS",u.WECHAT="WECHAT",u.WECHAT_PUBLIC="WECHAT-PUBLIC",u.WECHAT_OPEN="WECHAT-OPEN",u.CUSTOM="CUSTOM",u.EMAIL="EMAIL",u.USERNAME="USERNAME",u.PHONE="PHONE",t.OAUTH2_LOGINTYPE_PREFIX="OAUTH2"},950:function(e,t,n){var r=this&&this.__assign||function(){return r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},r.apply(this,arguments)},o=this&&this.__decorate||function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},i=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},s=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))(function(o,i){function s(e){try{c(r.next(e))}catch(e){i(e)}}function a(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(s,a)}c((r=r.apply(e,t||[])).next())})},a=this&&this.__generator||function(e,t){var n,r,o,i,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function a(a){return function(c){return function(a){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,a[0]&&(s=0)),s;)try{if(n=1,r&&(o=2&a[0]?r.return:a[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,a[1])).done)return o;switch(r=0,o&&(a=[2&a[0],o.value]),a[0]){case 0:case 1:o=a;break;case 4:return s.label++,{value:a[1],done:!1};case 5:s.label++,r=a[1],a=[0];continue;case 7:a=s.ops.pop(),s.trys.pop();continue;default:if(!((o=(o=s.trys).length>0&&o[o.length-1])||6!==a[0]&&2!==a[0])){s=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]<o[3])){s.label=a[1];break}if(6===a[0]&&s.label<o[1]){s.label=o[1],o=a;break}if(o&&s.label<o[2]){s.label=o[2],s.ops.push(a);break}o[2]&&s.ops.pop(),s.trys.pop();continue}a=t.call(e,s)}catch(e){a=[6,e],r=0}finally{n=o=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,c])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.cloudbase=t.LANGS=t.getBaseEndPoint=void 0;var c=n(877),u=n(276),l=n(985),d=n(938),h=n(901),p=n(922),f=n(509),m=n(809),g=n(922);Object.defineProperty(t,"getBaseEndPoint",{enumerable:!0,get:function(){return g.getBaseEndPoint}});var v=n(509);Object.defineProperty(t,"LANGS",{enumerable:!0,get:function(){return v.LANGS}});var _=c.adapters.useAdapters,y=c.adapters.useDefaultAdapter,b=c.constants.ERRORS,w=c.constants.COMMUNITY_SITE_URL,E=c.utils.printWarn,I=c.helpers.catchErrorsDecorator,S={persistence:"local"},A=6e5,O={},T=function(){function e(e){this.cloudbaseConfig=e||this.cloudbaseConfig,this.authInstance=null,this.oauthInstance=null,this.requestInstance=null,this.version=(0,p.getSdkVersion)()}return Object.defineProperty(e.prototype,"config",{get:function(){return this.cloudbaseConfig},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"platform",{get:function(){return l.Platform},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"cache",{get:function(){return(0,d.getCacheByEnvId)(this.cloudbaseConfig.env)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"localCache",{get:function(){return(0,d.getLocalCache)(this.cloudbaseConfig.env)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"request",{get:function(){return this.requestInstance||(0,h.getRequestByEnvId)(this.cloudbaseConfig.env)},enumerable:!1,configurable:!0}),e.prototype.init=function(t){var n,o,i,s,a;if(void 0===t&&(t={env:""}),t.endPointMode=t.endPointMode||"GATEWAY",l.Platform.adapter||this.useDefaultAdapter(),(t=this.dealNodeAdapterConfig(t)).throw=null===(o=null!==(n=t.throw)&&void 0!==n?n:t.throwOnCode)||void 0===o||o,delete t.throwOnCode,!t.env)throw new Error(JSON.stringify({code:b.INVALID_PARAMS,msg:"env must not be specified"}));this.isInitialized(t);var c=this.isNodeEnv()?void 0:15e3,u=t.timeout||c,g={env:t.env,region:t.region,accessKey:t.accessKey,context:t.context,auth:t.auth,timeout:u,timeoutMsg:u?"[".concat((0,p.getSdkName)(),"][REQUEST TIMEOUT] request had been abort since didn't finished within").concat(u/1e3,"s"):void 0};this.requestClient=new l.Platform.adapter.reqClass(g),this.cloudbaseConfig=r(r(r({},S),t),{timeout:u,i18n:(0,f.i18nProxy)(l.Platform,t)}),(0,m.registerThrowConfig)(this.cloudbaseConfig),delete this.cloudbaseConfig.lang,this.cloudbaseConfig.timeout=this.formatTimeout(this.cloudbaseConfig.timeout);var v=this.cloudbaseConfig,_=v.env,y=v.persistence,w=v.debug,E=v.timeout,I=v.oauthClient,A=v.i18n;(0,d.initCache)({env:_,persistence:y,debug:w,platformInfo:this.platform}),(0,p.setRegionLevelEndpoint)(_,t.region||""),(0,p.setGatewayEndPointWithEnv)(_,p.DEFAULT_PROTOCOL,t.intl);var O=new e(this.cloudbaseConfig);return O.requestInstance=(0,h.initRequest)({env:_,region:t.region||"",timeout:E,oauthClient:I,_fromApp:O,i18n:A,endPointMode:t.endPointMode,auth:t.auth,context:t.context,accessKey:t.accessKey,throw:t.throw}),O.requestClient=this.requestClient,null===(i=null==this?void 0:this.fire)||void 0===i||i.call(this,"cloudbase_init",O),this.try2InitAuth(O),(null===(s=l.Platform.adapter)||void 0===s?void 0:s.nodeTool)&&(null===(a=l.Platform.adapter)||void 0===a||a.nodeTool(O,this.cloudbaseConfig)),O},e.prototype.updateConfig=function(e){var t=e.persistence,n=e.debug;this.cloudbaseConfig.persistence=t,this.cloudbaseConfig.debug=n,(0,d.initCache)({env:this.cloudbaseConfig.env,persistence:t,debug:n,platformInfo:this.platform})},e.prototype.setThrowOnCode=function(e){this.cloudbaseConfig.throw=e},e.prototype.updateLang=function(e){var t;e&&e!==(null===(t=this.cloudbaseConfig.i18n)||void 0===t?void 0:t.lang)&&(this.cloudbaseConfig.i18n.lang=e)},e.prototype.registerExtension=function(e){O[e.name]=e},e.prototype.invokeExtension=function(e,t){return s(this,void 0,void 0,function(){var n;return a(this,function(r){switch(r.label){case 0:if(!(n=O[e]))throw new Error(JSON.stringify({code:b.INVALID_PARAMS,msg:"extension:".concat(e," must be registered before invoke")}));return[4,n.invoke(t,this)];case 1:return[2,r.sent()]}})})},e.prototype.useAdapters=function(e,t){var n=_(e,t)||{},r=n.adapter,o=n.runtime;r&&(l.Platform.adapter=r),o&&(l.Platform.runtime=o)},e.prototype.registerHook=function(t){(0,u.registerHook)(e,t)},e.prototype.registerComponent=function(t){(0,u.registerComponent)(e,t)},e.prototype.registerVersion=function(e){(0,p.setSdkVersion)(e),this.version=e},e.prototype.registerSdkName=function(e){(0,p.setSdkName)(e)},e.prototype.isInitialized=function(e){return void 0===e&&(e=this.cloudbaseConfig),"string"==typeof e.env&&["your-env-id","your-envid","your_env_id","xxx-yyy","xxxx-yyy","envId","env-id","your-environment-id","REPLACE_ME"].some(function(t){return e.env.toLowerCase()===t.toLowerCase()})&&E(b.INVALID_PARAMS,'[CloudBase] 检测到环境 ID "'.concat(e.env,'" 可能是占位符,请替换为真实的环境 ID。\n')+" 获取方式:登录腾讯云开发平台 → 环境管理 → 环境设置 → 环境 ID\n 建议通过环境变量配置:process.env.CLOUDBASE_ENV 或 import.meta.env.VITE_CLOUDBASE_ENV"),!!(null==e?void 0:e.env)},e.prototype.registerEndPoint=function(e,t){(0,p.setEndPointInfo)({baseUrl:e,protocol:t,env:this.config.env,endPointKey:"CLOUD_API"})},e.prototype.registerEndPointWithKey=function(e){(0,p.setEndPointInfo)({env:this.config.env,endPointKey:e.key,baseUrl:e.url,protocol:e.protocol})},e.prototype.registerHost=function(e,t){void 0===t&&(t="http");var n=e.replace(/^(https?:)?\/\//,""),r="//".concat(n);(0,p.setEndPointInfo)({baseUrl:"".concat(r,"/web"),protocol:t,env:this.config.env,endPointKey:"CLOUD_API"}),(0,p.setEndPointInfo)({baseUrl:"".concat(r,"/v1"),protocol:t,env:this.config.env,endPointKey:"GATEWAY"})},e.prototype.getEndPointWithKey=function(e){var t=(0,p.getEndPointInfo)(this.config.env,e);return{BASE_URL:t.baseUrl,PROTOCOL:t.protocol}},e.prototype.parseCaptcha=function(e){return c.utils.parseCaptcha(e)},e.prototype.useDefaultAdapter=function(){var e=y.bind(this)(),t=e.adapter,n=e.runtime;l.Platform.adapter=t,l.Platform.runtime=n},e.prototype.isNodeEnv=function(){var e;return"undefined"!=typeof process&&!!(null===(e=l.Platform.adapter)||void 0===e?void 0:e.getSecretInfo)},e.prototype.formatTimeout=function(e){if(null==e)return e;switch(!0){case e>A:return E(b.INVALID_PARAMS,"timeout is greater than maximum value[10min]"),A;case e<100:return E(b.INVALID_PARAMS,"timeout is less than maximum value[100ms]"),100;default:return e}},e.prototype.try2InitAuth=function(e){try{e.auth()}catch(e){console.log("try2InitAuth error:",e)}},e.prototype.dealNodeAdapterConfig=function(e){var t,n,o,i,s;if(this.isNodeEnv()){var a=null===(t=l.Platform.adapter)||void 0===t?void 0:t.getSecretInfo(e);e.env&&"symbol"!=typeof e.env||(e.env=a.env),a.credentials&&(e.auth=r(r({},e.auth),{credentials:a.credentials}));var c=e,u=c.secretId||(null===(n=e.auth)||void 0===n?void 0:n.secretId),d=c.secretKey||(null===(o=e.auth)||void 0===o?void 0:o.secretKey);if(u&&d){var h=c.sessionToken||(null===(i=e.auth)||void 0===i?void 0:i.sessionToken)||"";e.auth=r(r({},e.auth),{secretId:u,secretKey:d,sessionToken:h,secretType:(null===(s=e.auth)||void 0===s?void 0:s.secretType)||(h?"SESSION_SECRET":"SECRET")})}}return e},o([I({mode:"sync",title:"Cloudbase 初始化失败",messages:["请确认以下各项:"," 1 - 调用 cloudbase.init() 的语法或参数是否正确"," 2 - 如果是非浏览器环境,是否配置了安全应用来源(https://docs.cloudbase.net/api-reference/webv3/adapter#%E7%AC%AC-2-%E6%AD%A5%E9%85%8D%E7%BD%AE%E5%AE%89%E5%85%A8%E5%BA%94%E7%94%A8%E6%9D%A5%E6%BA%90)","如果问题依然存在,建议到官方问答社区提问或寻找帮助:".concat(w)]}),i("design:type",Function),i("design:paramtypes",[Object]),i("design:returntype",e)],e.prototype,"init",null),o([I({title:"调用扩展能力失败",messages:["请确认以下各项:"," 1 - 调用 invokeExtension() 的语法或参数是否正确"," 2 - 被调用的扩展能力是否已经安装并通过 registerExtension() 注册","如果问题依然存在,建议到官方问答社区提问或寻找帮助:".concat(w)]}),i("design:type",Function),i("design:paramtypes",[String,Object]),i("design:returntype",Promise)],e.prototype,"invokeExtension",null),e}();t.cloudbase=new T;var C=(0,l.getWxDefaultAdapter)();C&&t.cloudbase.useAdapters(C),t.default=t.cloudbase},985:function(e,t,n){var r=this&&this.__assign||function(){return r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},r.apply(this,arguments)},o=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),s=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&o(t,e,n);return i(t,e),t},a=this&&this.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};Object.defineProperty(t,"__esModule",{value:!0}),t.getWxDefaultAdapter=t.Platform=void 0;var c=s(n(917)),u=n(764);t.Platform={},t.getWxDefaultAdapter=function(){return void 0===c.WxRequest?null:(c.WxRequest.prototype.upload=function(e){var t=this,n=this;return new Promise(function(o){var i=e.url,s=e.file,a=e.data,c=e.headers,u=wx.getFileSystemManager(),l=wx.request({url:i,method:e.method,header:r({"content-type":" "},c),data:u.readFileSync(s),timeout:t._timeout,success:function(e){var t={statusCode:e.statusCode,data:e.data||{}};200===e.statusCode&&(null==a?void 0:a.success_action_status)&&(t.statusCode=parseInt(a.success_action_status,10)),o(t)},fail:function(e){o(e)},complete:function(e){if((null==e?void 0:e.errMsg)&&n._timeout&&-1!==n._restrictedMethods.indexOf("upload")&&"request:fail timeout"===e.errMsg){console.warn(n._timeoutMsg);try{l.abort()}catch(e){}}}})})},c.default.genAdapter=function(e){return{root:{globalThis:{}},reqClass:c.WxRequest,wsClass:c.WxMpWebSocket,captchaOptions:{openURIWithCallback:function(t){var n=e.EventBus,o={},i=t;console.log("openURIWithCallback",t);var s=t.match(/^(data:.*?)(\?[^#\s]*)?$/);if(s){i=s[1],console.log("openURIWithCallback url",i);var u=s[2];u&&(o=(0,c.parseQueryString)(u))}console.log("openURIWithCallback queryObj",o);var l=o.token,d=a(o,["token"]);return/^data:/.test(i)&&!l?Promise.reject({error:"invalid_argument",error_description:"invalie captcha data: ".concat(t)}):l?new Promise(function(e){console.log("wait for captcha..."),n.$emit("CAPTCHA_DATA_CHANGE",r(r({},d),{token:l,url:i})),n.$once("RESOLVE_CAPTCHA_DATA",function(t){e(t)})}):Promise.reject({error:"unimplemented",error_description:"need to impl captcha data"})}},localStorage:c.wxMpStorage,primaryStorage:u.StorageType.local,getAppSign:function(){var e=wx.getAccountInfoSync();return"undefined"!=typeof App||"undefined"!=typeof getApp||wx.onAppHide||wx.offAppHide||wx.onAppShow||wx.offAppShow?e&&e.miniProgram?e.miniProgram.appId:"":e&&e.plugin?e.plugin.appId:""}}},c.default)}},938:function(e,t,n){var r=this&&this.__assign||function(){return r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},r.apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.getLocalCache=t.getCacheByEnvId=t.initCache=void 0;var o=n(877).cache.CloudbaseCache,i={},s={};t.initCache=function(e){var t=e.env,n=e.platformInfo,a={userInfoKey:"".concat("user_info","_").concat(t)};i[t]=i[t]||new o(r(r({},e),{keys:a,platformInfo:n})),s[t]=s[t]||new o(r(r({},e),{keys:a,platformInfo:n,persistence:"local"}))},t.getCacheByEnvId=function(e){return i[e]},t.getLocalCache=function(e){return s[e]}},276:function(e,t,n){var r=this&&this.__spreadArray||function(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))};Object.defineProperty(t,"__esModule",{value:!0}),t.registerHook=t.registerComponent=void 0;var o=n(877).constants.ERRORS,i={};function s(e,t){if(!(t instanceof Object))return t;switch(t.constructor){case Date:return new Date(t.getTime());case Object:void 0===e&&(e={});break;case Array:e=[];break;default:return t}for(var n=0,r=Object.keys(t);n<r.length;n++){var o=r[n];Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=s(e[o],t[o]))}return e}t.registerComponent=function(e,t){var n=t.name,a=t.namespace,c=t.entity,u=t.injectEvents,l=t.IIFE,d=void 0!==l&&l;if(i[n]||a&&e[a])throw new Error(JSON.stringify({code:o.INVALID_OPERATION,msg:"Duplicate component ".concat(n)}));if(d){if(!c||"function"!=typeof c)throw new Error(JSON.stringify({code:o.INVALID_PARAMS,msg:"IIFE component's entity must be a function"}));c.call(e)}if(i[n]=t,a?e.prototype[a]=c:s(e.prototype,c),u){var h=u.bus,p=u.events;if(!h||!p||0===p.length)return;var f=e.prototype.fire||function(){};e.prototype.events||(e.prototype.events={}),(e.prototype.events||{})[n]?e.prototype.events[n].events=r(r([],e.prototype.events[n].events,!0),p,!0):e.prototype.events[n]={bus:h,events:p},e.prototype.fire=function(e,t){f(e,t);for(var n=0,r=Object.keys(this.events);n<r.length;n++){var o=r[n],i=this.events[o],s=i.bus;if(i.events.includes(e)){s.fire(e,t);break}}}}},t.registerHook=function(e,t){var n=t.entity,i=t.target;if(Object.prototype.hasOwnProperty.call(e,i))throw new Error(JSON.stringify({code:o.INVALID_OPERATION,msg:"target:".concat(i," is not exist")}));var s=e.prototype[i];if("function"!=typeof s)throw new Error(JSON.stringify({code:o.INVALID_OPERATION,msg:"target:".concat(i," is not a function which is the only type supports hook")}));e.prototype[i]=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return n.call.apply(n,r([this],e,!1)),s.call.apply(s,r([this],e,!1))}}},509:function(e,t,n){var r;Object.defineProperty(t,"__esModule",{value:!0}),t.i18nProxy=t.t=t.langMap=t.LANG_HEADER_KEY=t.LANGS=void 0;var o,i=n(877);!function(e){e.ZH="zh-CN",e.EN="en-US"}(o=t.LANGS||(t.LANGS={})),t.LANG_HEADER_KEY="Accept-Language",t.langMap=((r={})[o.EN]={"请检查调用方式,或前往云开发 AI+ 首页查看文档":"Please check the calling method or visit the AI+ homepage to view the documentation","AI+ 请求出错,错误码":"AI+ request error, error code","错误信息":"error message","未实现":"not implemented","小程序不支持 wasm 加载":"wasm loading is not supported in mini programs","小程序不支持动态 js 加载":"dynamic js loading is not supported in mini programs","请求超时":"request timeout","缺少 privatelink sdk 地址":"missing privatelink sdk address"},r),t.t=function(e,n){var r;return(null===(r=t.langMap[n])||void 0===r?void 0:r[e])||e},t.i18nProxy=function(e,n){var r,s,a=function(e){return"lang_".concat(e.clientId||e.env)}(n),c=(e.adapter||{}).localStorage,u=n.lang||(null===(r=null==c?void 0:c.getItem)||void 0===r?void 0:r.call(c,a))||o.ZH;return null===(s=null==c?void 0:c.setItem)||void 0===s||s.call(c,a,u),new Proxy({t:function(e){return(0,t.t)(e,u)},LANG_HEADER_KEY:t.LANG_HEADER_KEY,lang:u},{get:function(e,t){var n;return"lang"===t&&(null===(n=null==c?void 0:c.getItem)||void 0===n?void 0:n.call(c,a))||e[t]},set:function(e,n,r){var o;return"lang"===n&&r!==e[n]&&(e[n]=r,e.t=function(e){return(0,t.t)(e,r)},null===(o=null==c?void 0:c.setItem)||void 0===o||o.call(c,a,r),i.langEvent.bus.fire(i.langEvent.LANG_CHANGE_EVENT,{i18n:e})),e[n]=r,!0}})}},901:function(e,t,n){var r=this&&this.__assign||function(){return r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},r.apply(this,arguments)},o=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))(function(o,i){function s(e){try{c(r.next(e))}catch(e){i(e)}}function a(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(s,a)}c((r=r.apply(e,t||[])).next())})},i=this&&this.__generator||function(e,t){var n,r,o,i,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function a(a){return function(c){return function(a){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,a[0]&&(s=0)),s;)try{if(n=1,r&&(o=2&a[0]?r.return:a[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,a[1])).done)return o;switch(r=0,o&&(a=[2&a[0],o.value]),a[0]){case 0:case 1:o=a;break;case 4:return s.label++,{value:a[1],done:!1};case 5:s.label++,r=a[1],a=[0];continue;case 7:a=s.ops.pop(),s.trys.pop();continue;default:if(!((o=(o=s.trys).length>0&&o[o.length-1])||6!==a[0]&&2!==a[0])){s=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]<o[3])){s.label=a[1];break}if(6===a[0]&&s.label<o[1]){s.label=o[1],o=a;break}if(o&&s.label<o[2]){s.label=o[2],s.ops.push(a);break}o[2]&&s.ops.pop(),s.trys.pop();continue}a=t.call(e,s)}catch(e){a=[6,e],r=0}finally{n=o=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,c])}}},s=this&&this.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};Object.defineProperty(t,"__esModule",{value:!0}),t.getRequestByEnvId=t.initRequest=t.CloudbaseRequest=void 0;var a=n(922),c=n(877),u=n(938),l=n(985),d=c.constants.ERRORS,h=c.utils.genSeqId,p=c.utils.isFormData,f=c.utils.formatUrl,m=["auth.getJwt","auth.logout","auth.signInWithTicket","auth.signInAnonymously","auth.signIn","auth.fetchAccessTokenWithRefreshToken","auth.signUpWithEmailAndPassword","auth.activateEndUserMail","auth.sendPasswordResetEmail","auth.resetPasswordWithToken","auth.isUsernameRegistered"];function g(e,t,n){var o=e[t];e[t]=function(t){var i={},s={};n.forEach(function(n){var r=n.call(e,t),o=r.data,a=r.headers;Object.assign(i,o),Object.assign(s,a)});var a=t.data;return a&&(p(a)?Object.keys(i).forEach(function(e){a.append(e,i[e])}):t.data=r(r({},a),i)),t.headers=r(r({},t.headers||{}),s),o.call(e,t)}}function v(){var e=h();return{data:{seqId:e},headers:{"X-SDK-Version":"@cloudbase/js-sdk/".concat((0,a.getSdkVersion)()),"x-seqid":e}}}var _=function(){function e(e){var t=this;this.config=e;var n={env:this.config.env,region:this.config.region,accessKey:this.config.accessKey,context:this.config.context,auth:this.config.auth,timeout:this.config.timeout,timeoutMsg:"[@cloudbase/js-sdk] 请求在".concat(this.config.timeout/1e3,"s内未完成,已中断"),restrictedMethods:["post","put"]};this.reqClass=new l.Platform.adapter.reqClass(n),this.localCache=(0,u.getLocalCache)(this.config.env),"GATEWAY"!==this.config.endPointMode&&(g(this.reqClass,"post",[v]),g(this.reqClass,"upload",[v]),g(this.reqClass,"download",[v])),c.langEvent.bus.on(c.langEvent.LANG_CHANGE_EVENT,function(e){var n;t.config.i18n=(null===(n=e.data)||void 0===n?void 0:n.i18n)||t.config.i18n})}return Object.defineProperty(e.prototype,"throwWhenRequestFail",{get:function(){var e,t,n,r,o=null===(n=null===(t=null===(e=this.config)||void 0===e?void 0:e._fromApp)||void 0===t?void 0:t.config)||void 0===n?void 0:n.throw;return"boolean"==typeof o?o:!1!==(null===(r=this.config)||void 0===r?void 0:r.throw)},enumerable:!1,configurable:!0}),e.prototype.getAccessToken=function(e){return void 0===e&&(e=null),o(this,void 0,void 0,function(){var t,n,r;return i(this,function(o){switch(o.label){case 0:if(null!=e)return[2,e];if(!(t=this.config._fromApp).oauthInstance)throw new Error("you can't request without auth");return n=t.oauthInstance,r=n.oauth2client,[4,this.getOauthAccessTokenV2(r)];case 1:return[2,o.sent().accessToken]}})})},e.prototype.getDefaultHeaders=function(){var e,t,n;return(e={})[null===(t=this.config.i18n)||void 0===t?void 0:t.LANG_HEADER_KEY]=null===(n=this.config.i18n)||void 0===n?void 0:n.lang,e["X-SDK-Version"]="@cloudbase/js-sdk/".concat((0,a.getSdkVersion)()),e},e.prototype.post=function(e,t){return o(this,void 0,Promise,function(){return i(this,function(n){switch(n.label){case 0:return[4,this.reqClass.post(r(r({},e),{headers:r(r({},e.headers),this.getDefaultHeaders()),customReqOpts:t}))];case 1:return[2,n.sent()]}})})},e.prototype.upload=function(e){return o(this,void 0,Promise,function(){return i(this,function(t){switch(t.label){case 0:return[4,this.reqClass.upload(r(r({},e),{headers:r(r({},e.headers),this.getDefaultHeaders())}))];case 1:return[2,t.sent()]}})})},e.prototype.download=function(e){return o(this,void 0,Promise,function(){return i(this,function(t){switch(t.label){case 0:return[4,this.reqClass.download(r(r({},e),{headers:r(r({},e.headers),this.getDefaultHeaders())}))];case 1:return[2,t.sent()]}})})},e.prototype.getBaseEndPoint=function(e){return void 0===e&&(e="CLOUD_API"),(0,a.getBaseEndPoint)(this.config.env,e)},e.prototype.getOauthAccessTokenV2=function(e){return o(this,void 0,Promise,function(){var t,n;return i(this,function(r){switch(r.label){case 0:return[4,e.getAccessToken()];case 1:return t=r.sent(),[4,e.getCredentials()];case 2:return n=r.sent(),[2,{accessToken:t,accessTokenExpire:new Date(n.expires_at).getTime()}]}})})},e.prototype.request=function(e,t,n,s){var c,u;return o(this,void 0,Promise,function(){var o,l,d,h,p,g,v,_,y,b,w,E,I,S,A,O,T,C,k,P,N,R,M;return i(this,function(i){switch(i.label){case 0:if(i.trys.push([0,4,,5]),o="x-tcb-trace_".concat(this.config.env),l="application/x-www-form-urlencoded",d=r({action:e,dataVersion:a.DATA_VERSION,env:this.config.env},t),-1!==m.indexOf(e))return[3,2];if(!(h=this.config._fromApp).oauthInstance)throw new Error("you can't request without auth");return p=h.oauthInstance,g=p.oauth2client,v=d,[4,this.getOauthAccessTokenV2(g)];case 1:v.access_token=i.sent().accessToken,i.label=2;case 2:return"storage.uploadFile"===e?(_=new FormData,Object.keys(_).forEach(function(e){Object.prototype.hasOwnProperty.call(_,e)&&void 0!==_[e]&&_.append(e,d[e])}),l="multipart/form-data"):(l="application/json;charset=UTF-8",_={},Object.keys(d).forEach(function(e){void 0!==d[e]&&(_[e]=d[e])})),y={headers:r(r({"content-type":l},this.getDefaultHeaders()),null==n?void 0:n.headers)},(null==n?void 0:n.onUploadProgress)&&(y.onUploadProgress=n.onUploadProgress),this.config.region&&(y.headers["X-TCB-Region"]=this.config.region),(b=this.localCache.getStore(o))&&(y.headers["X-TCB-Trace"]=b),w=void 0!==(null==n?void 0:n.parse)?n.parse:t.parse,E=void 0!==(null==n?void 0:n.inQuery)?n.inQuery:t.inQuery,I=void 0!==(null==n?void 0:n.search)?n.search:t.search,S=r(r({},(null==n?void 0:n.defaultQuery)||{}),{env:this.config.env}),w&&(S.parse=!0),E&&(S=r(r({},E),S)),A=(null==n?void 0:n.endPointMode)||this.config.endPointMode||"CLOUD_API",O=(0,a.getEndPointInfo)(this.config.env,A),T=O.baseUrl,C=O.protocol,"GATEWAY"===A&&/^((database)\.)|(auth\.wsWebSign)/.test(e)&&(k=(0,a.getEndPointInfo)(this.config.env,"CLOUD_API"),T="".concat(k.baseUrl.match(/\/\/([^/?#]*)/)[0],"/web")),P=void 0,P=n.pathname?f(C,"".concat(null===(c=(0,a.getBaseEndPoint)(this.config.env,A))||void 0===c?void 0:c.replace(/^https?:/,""),"/").concat(n.pathname),S):f(C,T,S),I&&(P+=I),[4,this.post(r({url:P,data:_},y),s)];case 3:if(N=i.sent(),(R=null===(u=N.header)||void 0===u?void 0:u["x-tcb-trace"])&&this.localCache.setStore(o,R),200!==Number(N.status)&&200!==Number(N.statusCode)||!N.data)throw new Error("network request error");return[2,N];case 4:M=i.sent();try{M.requestId=M.requestId||(null==n?void 0:n.headers["x-request-id"])||(null==n?void 0:n.headers["X-Request-Id"])||""}catch(e){}throw M;case 5:return[2]}})})},e.prototype.fetch=function(e){var t,n,c,u,l,d,h,p;return o(this,void 0,Promise,function(){var f,m,g,v,_,y,b,w,E=this;return i(this,function(I){switch(I.label){case 0:f=e.token,m=e.headers,g=void 0===m?{}:m,v=e.withCredentials,_=void 0===v||v,y=s(e,["token","headers","withCredentials"]),b=function(){return o(E,void 0,void 0,function(){var e,t,n,o;return i(this,function(i){switch(i.label){case 0:if(e={},!_)return[3,4];i.label=1;case 1:return i.trys.push([1,3,,4]),[4,this.getAccessToken(f)];case 2:return(t=i.sent())&&(e.Authorization="Bearer ".concat(t)),[3,4];case 3:if(n=i.sent(),"undefined"==typeof process||null==process.versions||null==process.versions.node)throw n;return[3,4];case 4:return o=r({headers:r(r(r({"X-SDK-Version":"@cloudbase/js-sdk/".concat((0,a.getSdkVersion)())},e),this.getDefaultHeaders()),g),withCredentials:_},y),[2,this.reqClass.fetch(o)]}})})},I.label=1;case 1:return I.trys.push([1,3,,6]),[4,b()];case 2:return[2,I.sent()];case 3:w=I.sent();try{w.requestId=w.requestId||g["x-request-id"]||g["X-Request-Id"]||""}catch(e){}if("ACCESS_TOKEN_EXPIRED"!==(null==w?void 0:w.code))return[3,5];if("function"!=typeof(null===(u=null===(c=null===(n=null===(t=this.config)||void 0===t?void 0:t._fromApp)||void 0===n?void 0:n.oauthInstance)||void 0===c?void 0:c.authApi)||void 0===u?void 0:u.refreshTokenForce))throw w;return[4,null===(p=null===(h=null===(d=null===(l=this.config)||void 0===l?void 0:l._fromApp)||void 0===d?void 0:d.oauthInstance)||void 0===h?void 0:h.authApi)||void 0===p?void 0:p.refreshTokenForce()];case 4:return I.sent(),[2,b()];case 5:throw w;case 6:return[2]}})})},e.prototype.send=function(e,t,n,s){return void 0===t&&(t={}),void 0===n&&(n={}),o(this,void 0,Promise,function(){var o;return i(this,function(i){switch(i.label){case 0:return[4,this.request(e,t,r(r({},n),{onUploadProgress:t.onUploadProgress}),s)];case 1:if((o=i.sent()).data.code&&this.throwWhenRequestFail)throw new Error(JSON.stringify({code:d.OPERATION_FAIL,msg:"[".concat(o.data.code,"] ").concat(o.data.message)}));return[2,o.data]}})})},e.prototype.gateWay=function(e,t){var n;return o(this,void 0,void 0,function(){var o,s,u,l,h,p,f,m,g,v,_,y,b,w,E,I,S,A,O;return i(this,function(i){switch(i.label){case 0:if(o=e.url,s=e.name,u=e.data,l=e.path,h=void 0===l?"":l,p=e.method,f=e.header,m=void 0===f?{}:f,!(s&&h||o))throw new Error(JSON.stringify({code:d.INVALID_PARAMS,msg:"[gateWay] invalid function name or path or url"}));try{g=u?JSON.stringify(u):""}catch(e){throw new Error(JSON.stringify({code:d.INVALID_PARAMS,msg:"[gateWay] invalid data"}))}if(v=c.utils.generateRequestId(),_=(0,a.getEndPointInfo)(this.config.env,"GATEWAY"),y=_.baseUrl,b=_.protocol,w="".concat(b).concat(y).concat(o||"/".concat(h,"/").concat(s)),E=["GET","HEAD"].includes(null===(n=null==p?void 0:p.toUpperCase)||void 0===n?void 0:n.call(p)))try{I={};try{I=JSON.parse(u)}catch(e){I=u||{}}w="".concat(w).concat(w.includes("?")?"&":"?").concat(Object.keys(I).map(function(e){return"".concat(e,"=").concat(I[e])}).join("&"))}catch(e){}return[4,this.fetch(r(r({method:p||"POST",headers:r({"Content-Type":"application/json; charset=utf-8","X-Request-Id":v},m)},E?{}:{body:g}),{url:w,customReqOpts:t,shouldThrowOnError:this.throwWhenRequestFail}))];case 1:return S=i.sent(),A=[r({requestId:v},S)],O={},[4,S.data];case 2:return[2,r.apply(void 0,A.concat([(O.data=i.sent(),O)]))]}})})},e}();t.CloudbaseRequest=_;var y={};t.initRequest=function(e){var t=new _(r(r({},e),{throw:e.throw}));return y[e.env]=t,t},t.getRequestByEnvId=function(e){return y[e]}},809:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.setThrowOnCode=t.registerThrowConfig=void 0;var n=new Set;t.registerThrowConfig=function(e){e&&"object"==typeof e&&n.add(e)},t.setThrowOnCode=function(e){n.forEach(function(t){t.throw=e})}},130:function(e,t,n){var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}},o=r(n(950)),i=r(n(30));o.default.registerVersion(i.default.version);try{window.cloudbase=o.default}catch(e){}t.default=o.default,e.exports=o.default},563:function(e,t,n){var r=this&&this.__assign||function(){return r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},r.apply(this,arguments)},o=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),s=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&o(t,e,n);return i(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.useDefaultAdapter=t.useAdapters=t.RUNTIME=void 0;var a,c=s(n(92)),u=n(962);!function(e){e.WEB="web",e.WX_MP="wx_mp"}(a=t.RUNTIME||(t.RUNTIME={})),t.useAdapters=function(e,t){for(var n=0,o=(0,u.isArray)(e)?e:[e];n<o.length;n++){var i=o[n],s=i.isMatch,a=i.genAdapter,c=i.runtime;if(s())return{adapter:r({isMatch:s},a(t)),runtime:c}}},t.useDefaultAdapter=function(){return{adapter:r({},c.genAdapter()),runtime:a.WEB}}},92:function(e,t,n){var r,o=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__assign||function(){return i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},i.apply(this,arguments)},s=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))(function(o,i){function s(e){try{c(r.next(e))}catch(e){i(e)}}function a(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(s,a)}c((r=r.apply(e,t||[])).next())})},a=this&&this.__generator||function(e,t){var n,r,o,i,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function a(a){return function(c){return function(a){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,a[0]&&(s=0)),s;)try{if(n=1,r&&(o=2&a[0]?r.return:a[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,a[1])).done)return o;switch(r=0,o&&(a=[2&a[0],o.value]),a[0]){case 0:case 1:o=a;break;case 4:return s.label++,{value:a[1],done:!1};case 5:s.label++,r=a[1],a=[0];continue;case 7:a=s.ops.pop(),s.trys.pop();continue;default:if(!((o=(o=s.trys).length>0&&o[o.length-1])||6!==a[0]&&2!==a[0])){s=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]<o[3])){s.label=a[1];break}if(6===a[0]&&s.label<o[1]){s.label=o[1],o=a;break}if(o&&s.label<o[2]){s.label=o[2],s.ops.push(a);break}o[2]&&s.ops.pop(),s.trys.pop();continue}a=t.call(e,s)}catch(e){a=[6,e],r=0}finally{n=o=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,c])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.WebRequest=t.genAdapter=void 0;var c=n(764),u=n(962),l=n(464),d=function(e){function t(t){var n=e.call(this)||this,r=t.timeout,o=t.timeoutMsg,i=t.restrictedMethods;return n.timeout=r||0,n.timeoutMsg=o||"请求超时",n.restrictedMethods=i||["get","post","upload","download"],n}return o(t,e),t.prototype.get=function(e){return this.request(i(i({},e),{method:"get"}),this.restrictedMethods.includes("get"))},t.prototype.post=function(e){return this.request(i(i({},e),{method:"post"}),this.restrictedMethods.includes("post"))},t.prototype.put=function(e){return this.request(i(i({},e),{method:"put"}))},t.prototype.upload=function(e){var t=e.data,n=e.file,r=e.name,o=e.method,s=e.headers,a=void 0===s?{}:s,c={post:"post",put:"put"}[null==o?void 0:o.toLowerCase()]||"put",u=new FormData;return"post"===c?(Object.keys(t).forEach(function(e){u.append(e,t[e])}),u.append("key",r),u.append("file",n),this.request(i(i({},e),{data:u,method:c}),this.restrictedMethods.includes("upload"))):this.request(i(i({},e),{method:"put",headers:a,body:n}),this.restrictedMethods.includes("upload"))},t.prototype.download=function(e){return s(this,void 0,Promise,function(){var t,n,r,o;return a(this,function(s){switch(s.label){case 0:return s.trys.push([0,2,,3]),[4,this.get(i(i({},e),{headers:{},responseType:"blob"}))];case 1:return t=s.sent().data,n=window.URL.createObjectURL(new Blob([t])),r=decodeURIComponent(new URL(e.url).pathname.split("/").pop()||""),(o=document.createElement("a")).href=n,o.setAttribute("download",r),o.style.display="none",document.body.appendChild(o),o.click(),window.URL.revokeObjectURL(n),document.body.removeChild(o),[3,3];case 2:return s.sent(),[3,3];case 3:return[2,new Promise(function(t){t({statusCode:200,tempFilePath:e.url})})]}})})},t.prototype.fetch=function(e){var t;return s(this,void 0,Promise,function(){var n,r,o,c,u,l,d,h,p,f,m,g,v,_=this;return a(this,function(y){switch(y.label){case 0:return n=new AbortController,r=e.url,o=e.enableAbort,c=void 0!==o&&o,u=e.stream,l=void 0!==u&&u,d=e.signal,h=e.timeout,p=e.shouldThrowOnError,f=void 0===p||p,m=null!=h?h:this.timeout,d&&(d.aborted&&n.abort(),d.addEventListener("abort",function(){return n.abort()})),g=null,c&&m&&(g=setTimeout(function(){console.warn(_.timeoutMsg),n.abort(new Error(_.timeoutMsg))},m)),[4,fetch(r,i(i({},e),{signal:n.signal})).then(function(e){return s(_,void 0,void 0,function(){var t,n,r;return a(this,function(o){switch(o.label){case 0:return clearTimeout(g),f?e.ok?(t=e,[3,3]):[3,1]:[3,4];case 1:return r=(n=Promise).reject,[4,e.json()];case 2:t=r.apply(n,[o.sent()]),o.label=3;case 3:return[2,t];case 4:return[2,e]}})})}).catch(function(e){return clearTimeout(g),Promise.reject(e)})];case 1:return v=y.sent(),[2,{data:l?v.body:(null===(t=v.headers.get("content-type"))||void 0===t?void 0:t.includes("application/json"))?v.json():v.text(),statusCode:v.status,header:v.headers,response:v}]}})})},t.prototype.request=function(e,t){var n=this;void 0===t&&(t=!1);var r=String(e.method).toLowerCase()||"get";return new Promise(function(o){var i=e.url,s=e.headers,a=void 0===s?{}:s,c=e.data,d=e.responseType,h=e.withCredentials,p=e.body,f=e.onUploadProgress,m=(0,u.formatUrl)((0,l.getProtocol)(),i,"get"===r?c:{}),g=new XMLHttpRequest;g.open(r,m),d&&(g.responseType=d);var v,_,y=e.signal;y&&(y.aborted?g.abort():y.addEventListener("abort",function(){return g.abort()},{once:!0})),Object.keys(a).forEach(function(e){g.setRequestHeader(e,a[e])}),f&&g.upload.addEventListener("progress",f),g.onreadystatechange=function(){var e={};if(4===g.readyState){var t=g.getAllResponseHeaders().trim().split(/[\r\n]+/),n={};t.forEach(function(e){var t=e.split(": "),r=t.shift().toLowerCase(),o=t.join(": ");n[r]=o}),e.header=n,e.statusCode=g.status;try{e.data="blob"===d?g.response:JSON.parse(g.responseText)}catch(t){e.data="blob"===d?g.response:g.responseText}clearTimeout(v),o(e)}},t&&n.timeout&&(v=setTimeout(function(){console.warn(n.timeoutMsg),g.abort()},n.timeout)),_=(0,u.isFormData)(c)?c:"application/x-www-form-urlencoded"===a["content-type"]?(0,u.toQueryString)(c):p||(c?JSON.stringify(c):void 0),h&&(g.withCredentials=!0),g.send(_)})},t}(c.AbstractSDKRequest);t.WebRequest=d,t.genAdapter=function(){return{type:"default",root:window,reqClass:d,wsClass:WebSocket,localStorage:localStorage}}},464:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.COMMUNITY_SITE_URL=t.IS_DEBUG_MODE=t.getProtocol=t.setProtocol=t.getSdkName=t.setSdkName=void 0;var n="@cloudbase/js-sdk";t.setSdkName=function(e){n=e},t.getSdkName=function(){return n};var r="https:";t.setProtocol=function(e){r=e},t.getProtocol=function(){return r},t.IS_DEBUG_MODE=!1,t.COMMUNITY_SITE_URL="https://support.qq.com/products/148793"},519:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.ERRORS=void 0,t.ERRORS={INVALID_PARAMS:"INVALID_PARAMS",INVALID_SYNTAX:"INVALID_SYNTAX",INVALID_OPERATION:"INVALID_OPERATION",OPERATION_FAIL:"OPERATION_FAIL",NETWORK_ERROR:"NETWORK_ERROR",UNKOWN_ERROR:"UNKOWN_ERROR"}},778:function(e,t,n){var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),t.OATUH_LOGINTYPE=void 0,o(n(464),t),o(n(519),t),t.OATUH_LOGINTYPE="constants"},517:function(e,t,n){var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))(function(o,i){function s(e){try{c(r.next(e))}catch(e){i(e)}}function a(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(s,a)}c((r=r.apply(e,t||[])).next())})},o=this&&this.__generator||function(e,t){var n,r,o,i,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function a(a){return function(c){return function(a){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,a[0]&&(s=0)),s;)try{if(n=1,r&&(o=2&a[0]?r.return:a[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,a[1])).done)return o;switch(r=0,o&&(a=[2&a[0],o.value]),a[0]){case 0:case 1:o=a;break;case 4:return s.label++,{value:a[1],done:!1};case 5:s.label++,r=a[1],a=[0];continue;case 7:a=s.ops.pop(),s.trys.pop();continue;default:if(!((o=(o=s.trys).length>0&&o[o.length-1])||6!==a[0]&&2!==a[0])){s=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]<o[3])){s.label=a[1];break}if(6===a[0]&&s.label<o[1]){s.label=o[1],o=a;break}if(o&&s.label<o[2]){s.label=o[2],s.ops.push(a);break}o[2]&&s.ops.pop(),s.trys.pop();continue}a=t.call(e,s)}catch(e){a=[6,e],r=0}finally{n=o=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,c])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.catchErrorsDecorator=void 0;var i=n(962),s=n(778),a=!1;"undefined"!=typeof navigator&&navigator.userAgent&&(a=-1!==navigator.userAgent.indexOf("Firefox"));var c=a?/(\.js\/)?__decorate(\$\d+)?<@.*\d$/:/(\/\w+\.js\.)?__decorate(\$\d+)?\s*\(.*\)$/,u=/https?:\/\/.+:\d*\/.*\.js:\d+:\d+/;function l(e){var t=e.err,n=e.className,r=e.methodName,o=e.sourceLink;if(!o)return null;var i,s=t.stack.split("\n"),c=a?/^catchErrorsDecorator\/<\/descriptor.value@.*\d$/:new RegExp("".concat(n,"\\.descriptor.value\\s*\\[as\\s").concat(r,"\\]\\s*\\(.*\\)$")),l=a?/^catchErrorsDecorator\/<\/descriptor.value/:new RegExp("".concat(n,"\\.descriptor.value\\s*\\[as\\s").concat(r,"\\]")),d=s.findIndex(function(e){return c.test(e)});if(-1!==d){var h=s.filter(function(e,t){return t>d});h.unshift(s[d].replace(l,"".concat(n,".").concat(r)).replace(u,o)),(i=new Error).stack="".concat(a?"@debugger":"Error","\n").concat(h.join("\n"))}return i}t.catchErrorsDecorator=function(e){var t=e.mode,n=void 0===t?"async":t,a=e.customInfo,d=void 0===a?{}:a,h=e.title,p=e.messages,f=void 0===p?[]:p;return function(e,t,a){if(s.IS_DEBUG_MODE){var p=d.className||e.constructor.name,m=d.methodName||t,g=a.value,v=function(){var e="",t=(new Error).stack.split("\n"),n=t.findIndex(function(e){return c.test(e)});if(-1!==n){var r=u.exec(t[n+1]||"");e=r?r[0]:""}return e}();a.value="sync"===n?function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=l({err:new Error,className:p,methodName:m,sourceLink:v});try{return g.apply(this,e)}catch(e){var r=e,o=e.message,s=e.error,a=e.error_description,c={title:h||"".concat(p,".").concat(m," failed"),content:[{type:"error",body:e}]};if(o&&/^\{.*\}$/.test(o)){var u=JSON.parse(o);c.subtitle=o,u.code&&(n?(n.code=u.code,n.msg=u.msg):(e.code=u.code,e.message=u.msg),r=n||e,c.content=f.map(function(e){return{type:"info",body:e}}))}throw s&&a&&(c.subtitle=a,n?(n.code=s,n.msg=a):(e.code=s,e.message=a),r=n||e,c.content=f.map(function(e){return{type:"info",body:e}})),(0,i.printGroupLog)(c),r}}:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return r(this,void 0,void 0,function(){var t,n,r,s,a,c,u,d;return o(this,function(o){switch(o.label){case 0:t=l({err:new Error,className:p,methodName:m,sourceLink:v}),o.label=1;case 1:return o.trys.push([1,3,,4]),[4,g.apply(this,e)];case 2:return[2,o.sent()];case 3:throw n=o.sent(),r=n,s=n.message,a=n.error,c=n.error_description,u={title:h||"".concat(p,".").concat(m," failed"),content:[{type:"error",body:n}]},s&&/^\{.*\}$/.test(s)&&(d=JSON.parse(s),u.subtitle=d,d.code&&(t?(t.code=d.code,t.message=d.msg):(n.code=d.code,n.message=d.msg),r=t||n,u.content=f.map(function(e){return{type:"info",body:e}}))),a&&c&&(u.subtitle=c,t?(t.code=a,t.msg=c):(n.code=a,n.message=c),r=t||n,u.content=f.map(function(e){return{type:"info",body:e}})),(0,i.printGroupLog)(u),r;case 4:return[2]}})})}}}}},260:function(e,t,n){var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(517),t)},877:function(e,t,n){var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return o(t,e),t},s=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.langEvent=t.AbortController=t.jwt=t.helpers=t.utils=t.events=t.cache=t.adapters=t.constants=void 0;var a=i(n(778));t.constants=a;var c=i(n(563));t.adapters=c;var u=i(n(865));t.cache=u;var l=i(n(940));t.events=l;var d=i(n(991));t.langEvent=d;var h=i(n(962));t.utils=h;var p=i(n(260));t.helpers=p;var f=s(n(829));t.AbortController=f.default;var m={decode:s(n(107)).default};t.jwt=m},829:function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(){var e=this;this.listeners=[],this.signal={aborted:!1,addEventListener:function(t,n){"abort"===t&&e.listeners.push(n)}}}return e.prototype.abort=function(){this.signal.aborted||(this.signal.aborted=!0,this.listeners.forEach(function(e){return e()}))},e}();t.default=n},865:function(e,t,n){var r,o=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))(function(o,i){function s(e){try{c(r.next(e))}catch(e){i(e)}}function a(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(s,a)}c((r=r.apply(e,t||[])).next())})},s=this&&this.__generator||function(e,t){var n,r,o,i,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function a(a){return function(c){return function(a){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,a[0]&&(s=0)),s;)try{if(n=1,r&&(o=2&a[0]?r.return:a[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,a[1])).done)return o;switch(r=0,o&&(a=[2&a[0],o.value]),a[0]){case 0:case 1:o=a;break;case 4:return s.label++,{value:a[1],done:!1};case 5:s.label++,r=a[1],a=[0];continue;case 7:a=s.ops.pop(),s.trys.pop();continue;default:if(!((o=(o=s.trys).length>0&&o[o.length-1])||6!==a[0]&&2!==a[0])){s=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]<o[3])){s.label=a[1];break}if(6===a[0]&&s.label<o[1]){s.label=o[1],o=a;break}if(o&&s.label<o[2]){s.label=o[2],s.ops.push(a);break}o[2]&&s.ops.pop(),s.trys.pop();continue}a=t.call(e,s)}catch(e){a=[6,e],r=0}finally{n=o=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,c])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.CloudbaseCache=void 0;var a=n(764),c=n(962),u=n(778),l=function(e){function t(t){var n=e.call(this)||this;return n.root=t,t.tcbCacheObject||(t.tcbCacheObject={}),n}return o(t,e),t.prototype.setItem=function(e,t){this.root.tcbCacheObject[e]=t},t.prototype.getItem=function(e){return this.root.tcbCacheObject[e]},t.prototype.removeItem=function(e){delete this.root.tcbCacheObject[e]},t.prototype.clear=function(){delete this.root.tcbCacheObject},t}(a.AbstractStorage),d=function(){function e(e){this.keys={};var t=e.persistence,n=e.platformInfo,r=void 0===n?{}:n,o=e.keys,i=void 0===o?{}:o;this.platformInfo=r,this.storage||(this.persistenceTag=this.platformInfo.adapter.primaryStorage||t,this.storage=function(e,t){switch(e){case"local":default:return t.localStorage?t.localStorage:((0,c.printWarn)(u.ERRORS.INVALID_PARAMS,"localStorage is not supported on current platform"),new l(t.root));case"none":return new l(t.root)}}(this.persistenceTag,this.platformInfo.adapter),this.keys=i)}return Object.defineProperty(e.prototype,"mode",{get:function(){return this.storage.mode||"sync"},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"persistence",{get:function(){return this.persistenceTag},enumerable:!1,configurable:!0}),e.prototype.setStore=function(e,t,n){if("async"!==this.mode){if(this.storage)try{var r={version:n||"localCachev1",content:t};this.storage.setItem(e,JSON.stringify(r))}catch(e){throw new Error(JSON.stringify({code:u.ERRORS.OPERATION_FAIL,msg:"[".concat((0,u.getSdkName)(),"][").concat(u.ERRORS.OPERATION_FAIL,"]setStore failed"),info:e}))}}else(0,c.printWarn)(u.ERRORS.INVALID_OPERATION,"current platform's storage is asynchronous, please use setStoreAsync insteed")},e.prototype.setStoreAsync=function(e,t,n){return i(this,void 0,void 0,function(){var r;return s(this,function(o){switch(o.label){case 0:if(!this.storage)return[2];o.label=1;case 1:return o.trys.push([1,3,,4]),r={version:n||"localCachev1",content:t},[4,this.storage.setItem(e,JSON.stringify(r))];case 2:return o.sent(),[3,4];case 3:return o.sent(),[2];case 4:return[2]}})})},e.prototype.getStore=function(e,t){var n;if("async"!==this.mode){try{if("undefined"!=typeof process&&(null===(n={IS_MP_BUILD:!1,IS_BROWSER_BUILD:!0})||void 0===n?void 0:n.tcb_token))return{IS_MP_BUILD:!1,IS_BROWSER_BUILD:!0}.tcb_token;if(!this.storage)return""}catch(e){return""}t=t||"localCachev1";var r=this.storage.getItem(e);return r&&r.indexOf(t)>=0?JSON.parse(r).content:""}(0,c.printWarn)(u.ERRORS.INVALID_OPERATION,"current platform's storage is asynchronous, please use getStoreAsync insteed")},e.prototype.getStoreAsync=function(e,t){var n;return i(this,void 0,void 0,function(){var r;return s(this,function(o){switch(o.label){case 0:try{if("undefined"!=typeof process&&(null===(n={IS_MP_BUILD:!1,IS_BROWSER_BUILD:!0})||void 0===n?void 0:n.tcb_token))return[2,{IS_MP_BUILD:!1,IS_BROWSER_BUILD:!0}.tcb_token];if(!this.storage)return[2,""]}catch(e){return[2,""]}return t=t||"localCachev1",[4,this.storage.getItem(e)];case 1:return(r=o.sent())&&r.indexOf(t)>=0?[2,JSON.parse(r).content]:[2,""]}})})},e.prototype.removeStore=function(e){"async"!==this.mode?this.storage.removeItem(e):(0,c.printWarn)(u.ERRORS.INVALID_OPERATION,"current platform's storage is asynchronous, please use removeStoreAsync insteed")},e.prototype.removeStoreAsync=function(e){return i(this,void 0,void 0,function(){return s(this,function(t){switch(t.label){case 0:return[4,this.storage.removeItem(e)];case 1:return t.sent(),[2]}})})},e}();t.CloudbaseCache=d},940:function(e,t,n){var r,o=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__spreadArray||function(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))};Object.defineProperty(t,"__esModule",{value:!0}),t.removeEventListener=t.activateEvent=t.addEventListener=t.CloudbaseEventEmitter=t.IErrorEvent=t.CloudbaseEvent=void 0;var s=n(962),a=function(e,t){this.data=t||null,this.name=e};t.CloudbaseEvent=a;var c=function(e){function t(t,n){var r=e.call(this,"error",{error:t,data:n})||this;return r.error=t,r}return o(t,e),t}(a);t.IErrorEvent=c;var u=function(){function e(){this.listeners={}}return e.prototype.on=function(e,t){return function(e,t,n){n[e]=n[e]||[],n[e].push(t)}(e,t,this.listeners),this},e.prototype.off=function(e,t){return function(e,t,n){if(null==n?void 0:n[e]){var r=n[e].indexOf(t);-1!==r&&n[e].splice(r,1)}}(e,t,this.listeners),this},e.prototype.fire=function(e,t){if((0,s.isInstanceOf)(e,c))return console.error(e.error),this;var n=(0,s.isString)(e)?new a(e,t||{}):e,r=n.name;if(this.listens(r)){n.target=this;for(var o=0,u=this.listeners[r]?i([],this.listeners[r],!0):[];o<u.length;o++)u[o].call(this,n)}return this},e.prototype.listens=function(e){return this.listeners[e]&&this.listeners[e].length>0},e}();t.CloudbaseEventEmitter=u;var l=new u;t.addEventListener=function(e,t){l.on(e,t)},t.activateEvent=function(e,t){void 0===t&&(t={}),l.fire(e,t)},t.removeEventListener=function(e,t){l.off(e,t)}},991:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.LANG_CHANGE_EVENT=t.bus=void 0;var r=n(940);t.bus=new r.CloudbaseEventEmitter,t.LANG_CHANGE_EVENT="lang_change"},962:function(e,t,n){var r,o=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__assign||function(){return i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},i.apply(this,arguments)},s=this&&this.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};Object.defineProperty(t,"__esModule",{value:!0}),t.parseCaptcha=t.parseQueryString=t.transformPhone=t.sleep=t.printGroupLog=t.errorToResult=t.promoteGatewayError=t.maybeThrow=t.resolveThrow=t.createCloudbaseError=t.CloudbaseError=t.throwError=t.printInfo=t.printError=t.printWarn=t.execCallback=t.createPromiseCallback=t.removeParam=t.getHash=t.getQuery=t.toQueryString=t.formatUrl=t.generateRequestId=t.genSeqId=t.isFormData=t.isInstanceOf=t.isNull=t.isPalinObject=t.isUndefined=t.isString=t.isArray=void 0;var a=n(778);t.isArray=function(e){return"[object Array]"===Object.prototype.toString.call(e)},t.isString=function(e){return"string"==typeof e},t.isUndefined=function(e){return void 0===e},t.isPalinObject=function(e){return"[object Object]"===Object.prototype.toString.call(e)},t.isNull=function(e){return"[object Null]"===Object.prototype.toString.call(e)},t.isInstanceOf=function(e,t){return e instanceof t},t.isFormData=function(e){return"[object FormData]"===Object.prototype.toString.call(e)},t.genSeqId=function(){return Math.random().toString(16).slice(2)},t.generateRequestId=function(){var e=(new Date).getTime(),t=(null===Date||void 0===Date?void 0:Date.now)&&1e3*Date.now()||0;return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(n){var r=16*Math.random();return e>0?(r=(e+r)%16|0,e=Math.floor(e/16)):(r=(t+r)%16|0,t=Math.floor(t/16)),("x"===n?r:7&r|8).toString(16)})},t.formatUrl=function(e,t,n){void 0===n&&(n={});var r=/\?/.test(t),o="";return Object.keys(n).forEach(function(e){""===o?!r&&(t+="?"):o+="&",o+="".concat(e,"=").concat(encodeURIComponent(n[e]))}),/^http(s)?:\/\//.test(t+=o)?t:"".concat(e).concat(t)},t.toQueryString=function(e){void 0===e&&(e={});var t=[];return Object.keys(e).forEach(function(n){t.push("".concat(n,"=").concat(encodeURIComponent(e[n])))}),t.join("&")},t.getQuery=function(e,t){if("undefined"==typeof window)return!1;var n=t||decodeURIComponent(window.location.search),r=new RegExp("(^|&)".concat(e,"=([^&]*)(&|$)")),o=n.substr(n.indexOf("?")+1).match(r);return null!=o?o[2]:""},t.getHash=function(e){if("undefined"==typeof window)return"";var t=window.location.hash.match(new RegExp("[#?&/]".concat(e,"=([^&#]*)")));return t?t[1]:""},t.removeParam=function(e,t){var n=t.split("?")[0],r=[],o=-1!==t.indexOf("?")?t.split("?")[1]:"";if(""!==o){for(var i=(r=o.split("&")).length-1;i>=0;i-=1)r[i].split("=")[0]===e&&r.splice(i,1);n="".concat(n,"?").concat(r.join("&"))}return n},t.createPromiseCallback=function(){var e={};if(!Promise){(e=function(){}).promise={};var t=function(){throw new Error('Your Node runtime does support ES6 Promises. Set "global.Promise" to your preferred implementation of promises.')};return Object.defineProperty(e.promise,"then",{get:t}),Object.defineProperty(e.promise,"catch",{get:t}),e}var n=new Promise(function(t,n){e=function(e,r){return e?n(e):t(r)}});return e.promise=n,e},t.execCallback=function(e,t,n){if(void 0===n&&(n=null),e&&"function"==typeof e)return e(t,n);if(t)throw t;return n},t.printWarn=function(e,t){console.warn("[".concat((0,a.getSdkName)(),"][").concat(e,"]:").concat(t))},t.printError=function(e,t){console.error({code:e,msg:"[".concat((0,a.getSdkName)(),"][").concat(e,"]:").concat(t)})},t.printInfo=function(e,t){console.log("[".concat((0,a.getSdkName)(),"][").concat(e,"]:").concat(t))},t.throwError=function(e,t){var n=new Error(JSON.stringify({code:e,msg:"[".concat((0,a.getSdkName)(),"][").concat(e,"]:").concat(t)}));throw n.code=e,n};var c=function(e){function t(t){var n=e.call(this,t.msg||t.message||"")||this;return n.code=t.code||"",n.requestId=t.requestId||"",Object.defineProperty(n,"message",{value:t.msg||t.message||"",enumerable:!0,writable:!0,configurable:!0}),n}return o(t,e),t}(Error);t.CloudbaseError=c;var u=function(e){return new c(e)};function l(e,t){return(t||u)(e)}function d(e){return!e||"boolean"!=typeof e.throw||e.throw}t.createCloudbaseError=l,t.resolveThrow=d,t.maybeThrow=function(e,t){if(d(e))throw l(t,null==e?void 0:e.errorFactory);return i({code:t.code,message:t.msg},t.requestId?{requestId:t.requestId}:{})},t.promoteGatewayError=function(e){if(e&&"object"==typeof e&&e.data&&"object"==typeof e.data){var t=e.data,n=t.code,r=t.message;if(!e.code&&n||!e.message&&r)return i(i(i({},e),!e.code&&n?{code:n}:{}),!e.message&&r?{message:r}:{})}return e},t.errorToResult=function(e){if(e instanceof Error&&"string"==typeof e.message)try{var t=JSON.parse(e.message);if(t&&"string"==typeof t.code)return{code:t.code,message:t.msg||t.message||"",requestId:t.requestId}}catch(e){}return e&&"string"==typeof e.code?{code:e.code,message:e.message||"",requestId:e.requestId}:{code:"UNKNOWN_ERROR",message:String((null==e?void 0:e.message)||e||"")}},t.printGroupLog=function(e){var t,n=e.title,r=e.subtitle,o=void 0===r?"":r,i=e.content,s=void 0===i?[]:i,a=e.printTrace,c=void 0!==a&&a,u=e.collapsed;void 0!==u&&u?(console.groupCollapsed||console.error)(n,o):(console.group||console.error)(n,o);for(var l=0,d=s;l<d.length;l++){var h=d[l],p=h.type,f=h.body;switch(p){case"info":console.log(f);break;case"warn":console.warn(f);break;case"error":console.error(f)}}c&&(console.trace||console.log)("stack trace:"),null===(t=console.groupEnd)||void 0===t||t.call(console)},t.sleep=function(e){return void 0===e&&(e=0),new Promise(function(t){return setTimeout(t,e)})},t.transformPhone=function(e){return"+86".concat(e)},t.parseQueryString=function(e){e=e.replace(/^\?/,"");var t={};return e.split("&").forEach(function(e){var n=e.split("="),r=n[0],o=n[1];r=decodeURIComponent(r),o=decodeURIComponent(o),r&&(t[r]?Array.isArray(t[r])?t[r].push(o):t[r]=[t[r],o]:t[r]=o)}),t},t.parseCaptcha=function(e){var n={},r=e.match(/^(data:.*?)(\?[^#\s]*)?$/);if(r){e=r[1];var o=r[2];o&&(n=(0,t.parseQueryString)(o))}var i=n.token,a=s(n,["token"]);return/^data:/.test(e)&&!i?{error:"invalid_argument",error_description:"invalid captcha data: ".concat(e)}:i?{state:a.state,token:i,captchaData:e}:{error:"unimplemented",error_description:"need to impl captcha data"}}},764:function(e){e.exports=n(1553)},917:function(e){e.exports=n(7355)},107:function(e){e.exports=n(560)},30:function(e){e.exports=JSON.parse('{"name":"@cloudbase/app","version":"3.9.0","description":"cloudbase javascript sdk core","main":"dist/cjs/index.js","module":"dist/esm/index.js","exports":{".":{"node":{"import":"./dist/esm/index.node.js","require":"./dist/cjs/index.node.js"},"import":"./dist/esm/index.js","require":"./dist/cjs/index.js","default":"./dist/cjs/index.js"},"./package.json":"./package.json"},"scripts":{"tsc":"rm -rf dist/ && tsc -p tsconfig.esm.json && tsc -p tsconfig.json","lint":"eslint --fix \\"./src/**/*.ts\\"","build":"npm run lint && npm run tsc && npm run build:mp","build:mp":"webpack --config ./webpack/webpack.miniprogram.js","precommit":"npm run lint"},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"https://github.com/TencentCloudBase/cloudbase-js-sdk"},"keywords":["cloudbase","tcb","javascript","web","sdk","serverless"],"author":"","license":"Apache-2.0","dependencies":{"@cloudbase/adapter-interface":"^0.7.1","@cloudbase/adapter-wx_mp":"^1.3.1","@cloudbase/types":"workspace:*","@cloudbase/utilities":"workspace:*"},"peerDependencies":{"@cloudbase/signature-nodejs":">=1.0.0","jsonwebtoken":">=8.0.0","node-fetch":">=2.6.0","ws":"^8.18.0"},"peerDependenciesMeta":{"@cloudbase/signature-nodejs":{"optional":true},"jsonwebtoken":{"optional":true},"node-fetch":{"optional":true},"ws":{"optional":true}},"gitHead":"859557576897d4778857c12fb8d7fe8ca1f3a052"}')}},o={},i=function e(t){var n=o[t];if(void 0!==n)return n.exports;var i=o[t]={exports:{}};return r[t].call(i.exports,i,i.exports,e),i.exports}(130),e.exports=i},5973:function(e,t,n){"use strict";!function(){var t,r,o={548:function(e,t,n){var r=this&&this.__assign||function(){return r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},r.apply(this,arguments)},o=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))(function(o,i){function s(e){try{c(r.next(e))}catch(e){i(e)}}function a(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(s,a)}c((r=r.apply(e,t||[])).next())})},i=this&&this.__generator||function(e,t){var n,r,o,i,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function a(a){return function(c){return function(a){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,a[0]&&(s=0)),s;)try{if(n=1,r&&(o=2&a[0]?r.return:a[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,a[1])).done)return o;switch(r=0,o&&(a=[2&a[0],o.value]),a[0]){case 0:case 1:o=a;break;case 4:return s.label++,{value:a[1],done:!1};case 5:s.label++,r=a[1],a=[0];continue;case 7:a=s.ops.pop(),s.trys.pop();continue;default:if(!((o=(o=s.trys).length>0&&o[o.length-1])||6!==a[0]&&2!==a[0])){s=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]<o[3])){s.label=a[1];break}if(6===a[0]&&s.label<o[1]){s.label=o[1],o=a;break}if(o&&s.label<o[2]){s.label=o[2],s.ops.push(a);break}o[2]&&s.ops.pop(),s.trys.pop();continue}a=t.call(e,s)}catch(e){a=[6,e],r=0}finally{n=o=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,c])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.useAuthAdapter=void 0;var s=n(19),a=function(){function e(e){var t,n;try{this.localStorage=(null==e?void 0:e.localStorage)||((null===(n=null===(t=null==e?void 0:e.adapter)||void 0===t?void 0:t.root)||void 0===n?void 0:n.globalThis)||globalThis).localStorage}catch(t){this.localStorage=(null==e?void 0:e.localStorage)||{}}}return e.prototype.getItem=function(e){return o(this,void 0,Promise,function(){return i(this,function(t){return[2,this.localStorage.getItem(e)]})})},e.prototype.removeItem=function(e){return o(this,void 0,void 0,function(){return i(this,function(t){return this.localStorage.removeItem(e),[2]})})},e.prototype.setItem=function(e,t){return o(this,void 0,Promise,function(){return i(this,function(n){return this.localStorage.setItem(e,t),[2]})})},e.prototype.getItemSync=function(e){return this.localStorage.getItem(e)},e.prototype.setItemSync=function(e,t){this.localStorage.setItem(e,t)},e.prototype.removeItemSync=function(e){this.localStorage.removeItem(e)},e}(),c=/^[^:]+:\/\/[^/]+(\/[^?#]+)/,u=function(e,t){var n,r,o,i,s=null===(n=null==t?void 0:t.headers)||void 0===n?void 0:n["x-request-id"];return e||(e={}),((null==e?void 0:e.code)||(null===(r=null==e?void 0:e.data)||void 0===r?void 0:r.error_code))&&(e={error:e.code||e.data.error,error_description:e.data.error_description||e.message||e.code||e.data.error_code,request_id:e.requestId,error_code:null===(o=e.data)||void 0===o?void 0:o.error_code}),(null==e?void 0:e.request_id)||(e.request_id=e.request_id||s),(null==e?void 0:e.error)?(e.error_uri=(i=null==t?void 0:t.url,c.test(i)?RegExp.$1:i),e):(null==e?void 0:e.data)||{}};t.useAuthAdapter=function(e){return e.adapter&&"default"!==e.adapter.type?function(e,t){var n=r({},e);try{if(!(null==e?void 0:e.storage)&&(null==t?void 0:t.localStorage)&&(n.storage=new a({localStorage:t.localStorage,adapter:t})),!e.captchaOptions&&(null==t?void 0:t.captchaOptions)&&(n.captchaOptions=t.captchaOptions),!e.baseRequest&&!e.request&&(null==t?void 0:t.reqClass)){var s={timeout:1e4,restrictedMethods:["get","post","upload","download","request"],auth:e.auth},c=new t.reqClass(s);n.baseRequest=function(e,t){var n,s,a,l,d;return o(this,void 0,void 0,function(){var o,h,p,f;return i(this,function(i){switch(i.label){case 0:if(o={},h=(null===(n=t.method)||void 0===n?void 0:n.toLocaleLowerCase())||"post","function"!=typeof(p=null===(a=null===(s=null==c?void 0:c[h])||void 0===s?void 0:s.bind)||void 0===a?void 0:a.call(s,c)))throw new Error("invalid 【".concat(h,"】 request method"));i.label=1;case 1:return i.trys.push([1,3,,4]),(null===(l=t.headers)||void 0===l?void 0:l["content-type"])&&!(null===(d=t.headers)||void 0===d?void 0:d["content-type"].includes("application/json"))||["string","undefined"].includes(typeof t.body)||(t.data=t.data||t.body,t.body=JSON.stringify(t.body)),[4,p(r({url:e},t))];case 2:return o=i.sent(),o=u(o,r(r({},t),{url:e})),[3,4];case 3:throw f=i.sent(),o=r(r({},null==f?void 0:f.data),f);case 4:if(null==o?void 0:o.error)throw o;return[2,o]}})})}}}catch(e){console.error("user adapter generate fail:",e)}return n}(e,e.adapter):function(e,t){var n=r({},e),c={};if((null==t?void 0:t.captchaOptions)&&(n.captchaOptions=t.captchaOptions),!s.adapterForWxMp.isMatch()||e.storage&&e.baseRequest)return n;try{var l=s.adapterForWxMp.genAdapter({}),d=l.localStorage,h=l.reqClass;if(d&&(c.storage=new a({localStorage:d,adapter:t})),h){var p=new h({timeout:1e4,restrictedMethods:["get","post","upload","download","request"]});c.request=function(e){return function(t,n){return o(this,void 0,void 0,function(){return i(this,function(o){return[2,new Promise(function(o,i){var s=Object.assign({},n);s.body&&"string"!=typeof s.body&&(s.body=JSON.stringify(s.body));var a=wx.request({url:t,data:s.body,timeout:e._timeout,method:s.method||"GET",header:s.headers,success:function(e){(e=u(e,r(r({},n),{url:t}))).error&&i(e),o(e)},fail:function(e){i({error:"unreachable",error_description:e.message})},complete:function(t){if(t&&t.errMsg&&e._timeout&&-1!==e._restrictedMethods.indexOf("request")&&"request:fail timeout"===t.errMsg){console.warn(e._timeoutMsg);try{a.abort()}catch(e){}}}})})]})})}}(p)}return n.captchaOptions&&(c.baseRequest=c.request,c.request=void 0),r(r({},n),c)}catch(e){console.error("adapter generate fail:",e)}return n}(e,e.adapter)}},895:function(e,t,n){var r,o=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__assign||function(){return i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},i.apply(this,arguments)},s=this&&this.__decorate||function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},a=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},c=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))(function(o,i){function s(e){try{c(r.next(e))}catch(e){i(e)}}function a(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(s,a)}c((r=r.apply(e,t||[])).next())})},u=this&&this.__generator||function(e,t){var n,r,o,i,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function a(a){return function(c){return function(a){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,a[0]&&(s=0)),s;)try{if(n=1,r&&(o=2&a[0]?r.return:a[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,a[1])).done)return o;switch(r=0,o&&(a=[2&a[0],o.value]),a[0]){case 0:case 1:o=a;break;case 4:return s.label++,{value:a[1],done:!1};case 5:s.label++,r=a[1],a=[0];continue;case 7:a=s.ops.pop(),s.trys.pop();continue;default:if(!((o=(o=s.trys).length>0&&o[o.length-1])||6!==a[0]&&2!==a[0])){s=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]<o[3])){s.label=a[1];break}if(6===a[0]&&s.label<o[1]){s.label=o[1],o=a;break}if(o&&s.label<o[2]){s.label=o[2],s.ops.push(a);break}o[2]&&s.ops.pop(),s.trys.pop();continue}a=t.call(e,s)}catch(e){a=[6,e],r=0}finally{n=o=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,c])}}},l=this&&this.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};Object.defineProperty(t,"__esModule",{value:!0}),t.registerAuth=t.AuthError=t.AuthErrorCode=t.AuthErrorCategory=t.AnonymousAuthProvider=t.CustomAuthProvider=t.WeixinAuthProvider=t.Auth=t.generateAuthInstance=t.LoginState=t.User=void 0;var d=n(722),h=n(548),p=n(19),f=n(266),m=n(916);Object.defineProperty(t,"WeixinAuthProvider",{enumerable:!0,get:function(){return m.WeixinAuthProvider}}),Object.defineProperty(t,"CustomAuthProvider",{enumerable:!0,get:function(){return m.CustomAuthProvider}}),Object.defineProperty(t,"AnonymousAuthProvider",{enumerable:!0,get:function(){return m.AnonymousAuthProvider}});var g=n(683),v=function(){return"undefined"!=typeof window&&"undefined"!=typeof document},_=t.User=function(){function e(e){var t=e.cache,n=e.oauthInstance;this.cache=t,this.oauthInstance=n,this.setUserInfo()}var t,n,r;return e.prototype.checkLocalInfo=function(){return c(this,void 0,void 0,function(){return u(this,function(e){return this.uid=this.getLocalUserInfo("uid"),this.gender=this.getLocalUserInfo("gender"),this.picture=this.getLocalUserInfo("picture"),this.email=this.getLocalUserInfo("email"),this.emailVerified=this.getLocalUserInfo("email_verified"),this.phoneNumber=this.getLocalUserInfo("phone_number"),this.username=this.getLocalUserInfo("username"),this.name=this.getLocalUserInfo("name"),this.birthdate=this.getLocalUserInfo("birthdate"),this.zoneinfo=this.getLocalUserInfo("zoneinfo"),this.locale=this.getLocalUserInfo("locale"),this.sub=this.getLocalUserInfo("sub"),this.createdFrom=this.getLocalUserInfo("created_from"),this.providers=this.getLocalUserInfo("providers"),[2]})})},e.prototype.checkLocalInfoAsync=function(){return c(this,void 0,void 0,function(){var e,t,n,r;return u(this,function(o){switch(o.label){case 0:return e=this,[4,this.getLocalUserInfoAsync("uid")];case 1:return e.uid=o.sent(),t=this,[4,this.getLocalUserInfoAsync("gender")];case 2:return t.gender=o.sent(),this.picture=this.getLocalUserInfo("picture"),n=this,[4,this.getLocalUserInfoAsync("email")];case 3:return n.email=o.sent(),this.emailVerified=this.getLocalUserInfo("email_verified"),this.phoneNumber=this.getLocalUserInfo("phone_number"),r=this,[4,this.getLocalUserInfoAsync("username")];case 4:return r.username=o.sent(),this.name=this.getLocalUserInfo("name"),this.birthdate=this.getLocalUserInfo("birthdate"),this.zoneinfo=this.getLocalUserInfo("zoneinfo"),this.locale=this.getLocalUserInfo("locale"),this.sub=this.getLocalUserInfo("sub"),this.createdFrom=this.getLocalUserInfo("created_from"),this.providers=this.getLocalUserInfo("providers"),[2]}})})},e.prototype.update=function(e){return c(this,void 0,Promise,function(){var t;return u(this,function(n){switch(n.label){case 0:return[4,this.oauthInstance.authApi.setUserProfile(i({},e))];case 1:return t=n.sent(),this.setLocalUserInfo(t),[2]}})})},e.prototype.updateUserBasicInfo=function(e){return c(this,void 0,Promise,function(){return u(this,function(t){switch(t.label){case 0:return[4,this.oauthInstance.authApi.updateUserBasicInfo(i({},e))];case 1:return t.sent(),[4,this.refresh()];case 2:return t.sent(),[2]}})})},e.prototype.updatePassword=function(e,t){return this.oauthInstance.authApi.updatePasswordByOld({old_password:t,new_password:e})},e.prototype.updateUsername=function(e){return"string"!=typeof e&&(0,p.throwError)(p.ERRORS.INVALID_PARAMS,"username must be a string"),this.update({username:e})},e.prototype.refresh=function(e){return c(this,void 0,Promise,function(){var t;return u(this,function(n){switch(n.label){case 0:return[4,this.oauthInstance.authApi.getUserInfo(e)];case 1:if("INVALID_ACCESS_TOKEN"===(t=n.sent()).code)throw this.setLocalUserInfo({}),t;return this.setLocalUserInfo(t),[2,t]}})})},e.prototype.getLocalUserInfo=function(e){var t=this.cache.keys.userInfoKey,n=this.cache.getStore(t);return e?n[e]:n||{}},e.prototype.setLocalUserInfo=function(e){var t=this.cache.keys.userInfoKey;this.cache.setStore(t,e),this.setUserInfo()},e.prototype.getLocalUserInfoAsync=function(e){return c(this,void 0,Promise,function(){var t;return u(this,function(n){switch(n.label){case 0:return t=this.cache.keys.userInfoKey,[4,this.cache.getStoreAsync(t)];case 1:return[2,n.sent()[e]]}})})},e.prototype.setUserInfo=function(){var e=this,t=this.cache.keys.userInfoKey,n=this.cache.getStore(t);["uid","email","name","gender","picture","email_verified","phone_number","birthdate","zoneinfo","locale","sub","created_from","providers","username","created_at","open_id"].forEach(function(t){e[t]=n[t]})},s([(0,p.catchErrorsDecorator)({title:"更新用户信息失败",messages:["请确认以下各项:"," 1 - 调用 User.update() 的语法或参数是否正确"," 2 - 用户信息中是否包含非法值","如果问题依然存在,建议到官方问答社区提问或寻找帮助:".concat(p.COMMUNITY_SITE_URL)]}),a("design:type",Function),a("design:paramtypes",["function"==typeof(t=void 0!==d.authModels&&d.authModels.UserProfile)?t:Object]),a("design:returntype","function"==typeof(n="undefined"!=typeof Promise&&Promise)?n:Object)],e.prototype,"update",null),s([(0,p.catchErrorsDecorator)({title:"更新密码失败",messages:["请确认以下各项:"," 1 - 调用 User.updatePassword() 的语法或参数是否正确"," 3 - 新密码中是否包含非法字符","如果问题依然存在,建议到官方问答社区提问或寻找帮助:".concat(p.COMMUNITY_SITE_URL)]}),a("design:type",Function),a("design:paramtypes",[String,String]),a("design:returntype",void 0)],e.prototype,"updatePassword",null),s([(0,p.catchErrorsDecorator)({title:"更新用户名失败",messages:["请确认以下各项:"," 1 - 调用 User.updateUsername() 的语法或参数是否正确"," 2 - 当前环境是否开通了用户名密码登录","如果问题依然存在,建议到官方问答社区提问或寻找帮助:".concat(p.COMMUNITY_SITE_URL)]}),a("design:type",Function),a("design:paramtypes",[String]),a("design:returntype",void 0)],e.prototype,"updateUsername",null),s([(0,p.catchErrorsDecorator)({title:"刷新本地用户信息失败",messages:["请确认以下各项:"," 1 - 调用 User.refresh() 的语法或参数是否正确","如果问题依然存在,建议到官方问答社区提问或寻找帮助:".concat(p.COMMUNITY_SITE_URL)]}),a("design:type",Function),a("design:paramtypes",[Object]),a("design:returntype","function"==typeof(r="undefined"!=typeof Promise&&Promise)?r:Object)],e.prototype,"refresh",null),e}();(0,m.applyUserV1Compat)(_);var y=function(){function e(e){var t=e.envId,n=e.cache,r=e.oauthInstance;t||(0,p.throwError)(p.ERRORS.INVALID_PARAMS,"envId is not defined"),this.cache=n,this.oauthInstance=r,this.user=new _({cache:this.cache,oauthInstance:r})}return e.prototype.checkLocalState=function(){var e;this.oauthLoginState=null===(e=this.oauthInstance)||void 0===e?void 0:e.authApi.hasLoginStateSync(),this.user.checkLocalInfo()},e.prototype.checkLocalStateAsync=function(){var e;return c(this,void 0,void 0,function(){return u(this,function(t){switch(t.label){case 0:return[4,null===(e=this.oauthInstance)||void 0===e?void 0:e.authApi.getLoginState()];case 1:return t.sent(),[4,this.user.checkLocalInfoAsync()];case 2:return t.sent(),[2]}})})},e}();t.LoginState=y;var b=function(e){function t(t){var n=e.call(this)||this;return n.listeners=new Map,n.hasListenerSetUp=!1,n.config=t,n.oauthInstance=t.oauthInstance,n.cache=t.cache,n.init(),n.setAccessKey(),n}var n,r,h,m,_,b,w,E,I,S,A,O,T,C,k,P,N,R,M,x,L;return o(t,e),t.prototype.signInAnonymously=function(e){return c(this,void 0,Promise,function(){var t,n,r,o,s;return u(this,function(a){switch(a.label){case 0:return a.trys.push([0,4,,5]),[4,this.oauthInstance.authApi.signInAnonymously(e)];case 1:return a.sent(),[4,this.createLoginState()];case 2:return t=a.sent(),[4,this.getSession()];case 3:return n=a.sent().data,r=(void 0===n?{}:n).session,[2,i(i({},t),{data:{user:r.user,session:r},error:null})];case 4:return o=a.sent(),(s=new d.AuthError(o,{method:"signInAnonymously"})).category===d.AuthErrorCategory.PROVIDER_NOT_ENABLED?(console.error(s.helpMessage),console.error("[CloudBase Auth] 提示:匿名登录需要在控制台开启「匿名登录」。\n 如果您需要使用用户名密码登录,请改用 auth.signInWithPassword({ username, password })。\n 不要在匿名登录失败后自动回退到密码登录,这两种方式的使用场景不同。")):(console.warn("[CloudBase Auth] signInAnonymously 失败 [".concat(s.category,"]: ").concat(s.message)),s.loginMethodHint&&console.warn(s.loginMethodHint)),[2,{data:{user:null,session:null},error:s}];case 5:return[2]}})})},t.prototype.signUp=function(e){return c(this,void 0,Promise,function(){var t,n,r=this;return u(this,function(o){switch(o.label){case 0:return e.phone_number||e.verification_code||e.verification_token||e.provider_token?(e.phone_number&&(e.phone_number=this.formatPhone(e.phone_number)),[4,this.oauthInstance.authApi.signUp(e)]):[3,2];case 1:return o.sent(),[2,this.createLoginState()];case 2:return o.trys.push([2,4,,5]),this.validateAtLeastOne(e,[["email"],["phone"]],"signUp"),[4,this.getVerification(e.email?{email:e.email,usage:d.VerificationUsage.EMAIL}:{phone_number:this.formatPhone(e.phone)})];case 3:return t=o.sent(),[2,{data:{verifyOtp:function(n){var o=n.token,s=n.messageId,a=void 0===s?t.verification_id:s;return c(r,void 0,Promise,function(){var n,r,s,c,l;return u(this,function(u){switch(u.label){case 0:return u.trys.push([0,8,,9]),[4,this.verify({verification_id:a||t.verification_id,verification_code:String(o)})];case 1:return n=u.sent(),t.is_user?[4,this.signIn({username:e.email||this.formatPhone(e.phone),verification_token:n.verification_token})]:[3,3];case 2:return u.sent(),[3,6];case 3:return delete(r=JSON.parse(JSON.stringify(e))).email,delete r.phone,[4,this.oauthInstance.authApi.signUp(i(i(i({},r),e.email?{email:e.email}:{phone_number:this.formatPhone(e.phone)}),{verification_token:n.verification_token,verification_code:o}))];case 4:return u.sent(),[4,this.createLoginState()];case 5:u.sent(),u.label=6;case 6:return[4,this.getSession()];case 7:return s=u.sent().data,[2,{data:{user:(c=(void 0===s?{}:s).session).user,session:c},error:null}];case 8:return l=u.sent(),[2,{data:{user:null,session:null},error:new d.AuthError(l,{method:"signUp"})}];case 9:return[2]}})})}},error:null}];case 4:return n=o.sent(),[2,{data:{user:null,session:null},error:new d.AuthError(n,{method:"signUp"})}];case 5:return[2]}})})},t.prototype.signOut=function(e){return c(this,void 0,Promise,function(){var t,n,r;return u(this,function(o){switch(o.label){case 0:return o.trys.push([0,3,,4]),t=this.cache.keys.userInfoKey,[4,this.oauthInstance.authApi.signOut(e)];case 1:return n=o.sent(),[4,this.cache.removeStoreAsync(t)];case 2:return o.sent(),this.setAccessKey(),[2,i(i({},n),{data:{},error:null})];case 3:return r=o.sent(),[2,{data:{},error:new d.AuthError(r,{method:"signOut"})}];case 4:return[2]}})})},t.prototype.onAuthStateChange=function(e){var t=this;this.hasListenerSetUp||(this.setupListeners(),this.hasListenerSetUp=!0);var n=Math.random().toString(36);return this.listeners.has(n)||this.listeners.set(n,new Set),this.listeners.get(n).add(e),{data:{subscription:{id:n,callback:e,unsubscribe:function(){var r=t.listeners.get(n);r&&(r.delete(e),0===r.size&&t.listeners.delete(n))}}}}},t.prototype.signInWithPassword=function(e){var t,n;return c(this,void 0,Promise,function(){var r,o,s,a,c,l,h,p;return u(this,function(u){switch(u.label){case 0:return u.trys.push([0,3,,4]),this.validateAtLeastOne(e,[["username"],["email"],["phone"]],"signInWithPassword"),this.validateParams(e,{password:{required:!0,message:"Password is required"}},"signInWithPassword"),r="username"in e?e.username:void 0,o="email"in e?e.email:void 0,s="phone"in e?e.phone:void 0,a=null!==(n=null===(t=e.options)||void 0===t?void 0:t.is_encrypt)&&void 0!==n?n:e.is_encrypt,[4,this.signIn(i({username:r||o||this.formatPhone(s),password:e.password},a?{isEncrypt:!0,version:"v2"}:{}))];case 1:return u.sent(),[4,this.getSession()];case 2:return c=u.sent().data,[2,{data:{user:(l=(void 0===c?{}:c).session).user,session:l},error:null}];case 3:return h=u.sent(),(p=new d.AuthError(h,{method:"signInWithPassword"})).category===d.AuthErrorCategory.PROVIDER_NOT_ENABLED?console.error(p.helpMessage):p.category===d.AuthErrorCategory.INVALID_CREDENTIALS||p.category===d.AuthErrorCategory.USER_NOT_FOUND?console.warn(p.helpMessage):console.warn("[CloudBase Auth] signInWithPassword 失败 [".concat(p.category,"]: ").concat(p.message)),p.loginMethodHint&&console.info(p.loginMethodHint),[2,{data:{user:null,session:null},error:p}];case 4:return[2]}})})},t.prototype.signInWithIdToken=function(e){return c(this,void 0,Promise,function(){var t,n,r;return u(this,function(o){switch(o.label){case 0:return o.trys.push([0,3,,4]),this.validateParams(e,{token:{required:!0,message:"Token is required"}},"signInWithIdToken"),[4,this.signInWithProvider({provider_id:e.provider,provider_id_token:e.token})];case 1:return o.sent(),[4,this.getSession()];case 2:return t=o.sent().data,[2,{data:{user:(n=(void 0===t?{}:t).session).user,session:n},error:null}];case 3:return r=o.sent(),[2,{data:{user:null,session:null},error:new d.AuthError(r,{method:"signInWithIdToken"})}];case 4:return[2]}})})},t.prototype.signInWithOtp=function(e){return c(this,void 0,Promise,function(){var t,n,r,o,s,a=this;return u(this,function(l){switch(l.label){case 0:if(t=e.options,n="email"in e?e.email:void 0,r="phone"in e?e.phone:void 0,!(null==t?void 0:t.emailRedirectTo)&&(void 0===(null==t?void 0:t.shouldCreateUser)||(null==t?void 0:t.shouldCreateUser)))return[2,this.signUp(n?{email:n}:{phone:r})];l.label=1;case 1:return l.trys.push([1,3,,4]),this.validateAtLeastOne(e,[["email"],["phone"]],"signInWithOtp"),[4,this.getVerification(i(i({email_redirect_to:null==t?void 0:t.emailRedirectTo},n?{email:n,usage:d.VerificationUsage.EMAIL}:{phone_number:this.formatPhone(r)}),{target:(null==t?void 0:t.emailRedirectTo)&&(null==t?void 0:t.shouldCreateUser)?"ANY":"USER"}))];case 2:return o=l.sent(),[2,{data:{user:null,session:null,verifyOtp:function(e){var t=e.token,i=e.messageId,s=void 0===i?o.verification_id:i;return c(a,void 0,Promise,function(){return u(this,function(e){return[2,this.verifyOtp(n?{email:n,token:String(t),messageId:s||""}:{phone:r,token:String(t),messageId:s||""})]})})}},error:null}];case 3:return s=l.sent(),[2,{data:{user:null,session:null},error:new d.AuthError(s,{method:"signInWithOtp"})}];case 4:return[2]}})})},t.prototype.verifyOAuth=function(e){return c(this,void 0,Promise,function(){var t,n,r,o,s,a,c,l,h;return u(this,function(u){switch(u.label){case 0:t={},u.label=1;case 1:return u.trys.push([1,7,,8]),n=(null==e?void 0:e.code)||g.utils.getQuery("code"),r=(null==e?void 0:e.state)||g.utils.getQuery("state"),n?r?(o=(0,f.getBrowserSession)(r),t.type=null==o?void 0:o.type,(s=(null==e?void 0:e.provider)||(null==o?void 0:o.provider)||g.utils.getQuery("provider"))?[4,this.grantProviderToken({provider_id:s,provider_redirect_uri:location.origin+location.pathname,provider_code:n})]:[2,{data:i(i({},t),{user:null,session:null,redirectUrl:null}),error:this.missingRequiredParam("verifyOAuth","provider")}]):[2,{data:{user:null,session:null,redirectUrl:null},error:this.missingRequiredParam("verifyOAuth","state")}]:[2,{data:{user:null,session:null,redirectUrl:null},error:this.missingRequiredParam("verifyOAuth","code")}];case 2:return a=u.sent().provider_token,c=void 0,o.type!==d.OAUTH_TYPE.BIND_IDENTITY?[3,4]:[4,this.oauthInstance.authApi.toBindIdentity({provider_token:a,provider:s,fireEvent:!0})];case 3:return c=u.sent(),[3,6];case 4:return[4,this.signInWithIdToken({token:a})];case 5:(c=u.sent()).data=i(i({},t),c.data),u.label=6;case 6:return(l=new URLSearchParams(null===location||void 0===location?void 0:location.search)).delete("code"),l.delete("state"),c.data.redirectUrl=(0,f.addUrlSearch)(void 0===(null==o?void 0:o.search)?"?".concat(l.toString()):null==o?void 0:o.search,(null==o?void 0:o.hash)||location.hash),(0,f.removeBrowserSession)(r),[2,c];case 7:return h=u.sent(),[2,{data:i(i({},t),{user:null,session:null,redirectUrl:null}),error:new d.AuthError(h,{method:"verifyOAuth"})}];case 8:return[2]}})})},t.prototype.signInWithOAuth=function(e){var t,n,r,o,i;return c(this,void 0,Promise,function(){var s,a,c,l,h,p,m,g,_;return u(this,function(u){switch(u.label){case 0:return u.trys.push([0,2,,3]),this.validateParams(e,{provider:{required:!0,message:"Provider is required"}},"signInWithOAuth"),s=(null===(t=e.options)||void 0===t?void 0:t.redirectTo)||location.href,a=new URL(s),c=a.origin+a.pathname,l=(null===(n=e.options)||void 0===n?void 0:n.state)||"prd-".concat(e.provider,"-").concat(Math.random().toString(36).slice(2)),[4,this.genProviderRedirectUri({provider_id:e.provider,provider_redirect_uri:c,state:l})];case 1:return h=u.sent().uri,p=decodeURIComponent(h),m=p,(null===(r=e.options)||void 0===r?void 0:r.queryParams)&&(g=new URL(p),Object.entries(e.options.queryParams).forEach(function(e){var t=e[0],n=e[1];g.searchParams.set(t,n)}),m=g.toString()),(0,f.saveToBrowserSession)(l,{provider:e.provider,search:a.search,hash:a.hash,type:(null===(o=e.options)||void 0===o?void 0:o.type)||d.OAUTH_TYPE.SIGN_IN}),v()&&!(null===(i=e.options)||void 0===i?void 0:i.skipBrowserRedirect)&&window.location.assign(m),[2,{data:{url:m,provider:e.provider},error:null}];case 2:return _=u.sent(),[2,{data:{url:null,provider:null},error:new d.AuthError(_,{method:"signInWithOAuth"})}];case 3:return[2]}})})},t.prototype.getClaims=function(){return c(this,void 0,Promise,function(){var e,t;return u(this,function(n){switch(n.label){case 0:return n.trys.push([0,2,,3]),[4,this.getAccessToken()];case 1:return e=n.sent().accessToken,[2,{data:(0,d.weAppJwtDecodeAll)(e),error:null}];case 2:return t=n.sent(),[2,{data:{claims:null,header:null,signature:null},error:new d.AuthError(t,{method:"getClaims"})}];case 3:return[2]}})})},t.prototype.resetPasswordForEmail=function(e,t){return c(this,void 0,Promise,function(){var n,r,o,s,a,l,h=this;return u(this,function(p){switch(p.label){case 0:return p.trys.push([0,2,,3]),this.validateParams({emailOrPhone:e},{emailOrPhone:{required:!0,message:"Email or phone is required"}},"resetPasswordForEmail"),n=(t||{}).redirectTo,r=e.includes("@"),o=void 0,r?o={email:e,usage:d.VerificationUsage.RECOVERY}:(s=this.formatPhone(e),o={phone_number:s}),[4,this.getVerification(i(i({},o),{target:"USER"}))];case 1:return a=p.sent(),[2,{data:{updateUser:function(t){return c(h,void 0,Promise,function(){var o,i,s,c;return u(this,function(u){switch(u.label){case 0:this.validateParams(t,{nonce:{required:!0,message:"Nonce is required"},password:{required:!0,message:"Password is required"}},"resetPasswordForEmail"),u.label=1;case 1:return u.trys.push([1,5,,6]),[4,this.verify({verification_id:a.verification_id,verification_code:t.nonce})];case 2:return o=u.sent(),[4,this.oauthInstance.authApi.resetPassword({email:r?e:void 0,phone_number:r?void 0:e,new_password:t.password,verification_token:o.verification_token})];case 3:return u.sent(),null===(c=this.config.eventBus)||void 0===c||c.fire(d.EVENTS.AUTH_STATE_CHANGED,{event:d.AUTH_STATE_CHANGED_TYPE.PASSWORD_RECOVERY}),[4,this.signInWithPassword({email:r?e:void 0,phone:r?void 0:e,password:t.password})];case 4:return i=u.sent(),n&&v()&&window.location.assign(n),[2,i];case 5:return s=u.sent(),[2,{data:{user:null,session:null},error:new d.AuthError(s,{method:"resetPasswordForEmail"})}];case 6:return[2]}})})}},error:null}];case 2:return l=p.sent(),[2,{data:{updateUser:null},error:new d.AuthError(l,{method:"resetPasswordForEmail"})}];case 3:return[2]}})})},t.prototype.resetPasswordForOld=function(e){return c(this,void 0,Promise,function(){var t,n,r;return u(this,function(o){switch(o.label){case 0:return o.trys.push([0,3,,4]),[4,this.oauthInstance.authApi.updatePasswordByOld({old_password:e.old_password,new_password:e.new_password})];case 1:return o.sent(),[4,this.getSession()];case 2:return t=o.sent().data,[2,{data:{user:(n=(void 0===t?{}:t).session).user,session:n},error:null}];case 3:return r=o.sent(),[2,{data:{user:null,session:null},error:new d.AuthError(r,{method:"resetPasswordForOld"})}];case 4:return[2]}})})},t.prototype.verifyOtp=function(e){return c(this,void 0,Promise,function(){var t,n,r,o,i,s,a;return u(this,function(c){switch(c.label){case 0:return c.trys.push([0,6,,7]),t=e.type,n=String(e.token),r="email"in e?e.email:void 0,o="phone"in e?e.phone:void 0,this.validateParams(e,{token:{required:!0,message:"Token is required"},messageId:{required:!0,message:"messageId is required"}},"verifyOtp"),["phone_change","email_change"].includes(t)?[4,this.verify({verification_id:e.messageId,verification_code:n})]:[3,2];case 1:return c.sent(),[3,4];case 2:return[4,this.signInWithUsername({verificationInfo:{verification_id:e.messageId,is_user:!0},verificationCode:n,username:r||this.formatPhone(o)||"",loginType:r?"email":"phone"})];case 3:c.sent(),c.label=4;case 4:return[4,this.getSession()];case 5:return i=c.sent().data,[2,{data:{user:(s=(void 0===i?{}:i).session).user,session:s},error:null}];case 6:return a=c.sent(),[2,{data:{user:null,session:null},error:new d.AuthError(a,{method:"verifyOtp"})}];case 7:return[2]}})})},t.prototype.getSession=function(){return c(this,void 0,Promise,function(){var e,t,n,r;return u(this,function(o){switch(o.label){case 0:return o.trys.push([0,3,,4]),[4,this.oauthInstance.oauth2client.getCredentials()];case 1:return(e=o.sent())&&"accessKey"!==e.scope?[4,this.getUser(!1)]:[2,{data:{session:null,user:null},error:null}];case 2:return t=o.sent().data,n=(void 0===t?{}:t).user,[2,{data:{session:i(i({},e),{user:n}),user:n},error:null}];case 3:return r=o.sent(),[2,{data:{session:null,user:null},error:new d.AuthError(r,{method:"getSession"})}];case 4:return[2]}})})},t.prototype.refreshSession=function(e){return c(this,void 0,Promise,function(){var t,n,r,o,s;return u(this,function(a){switch(a.label){case 0:return a.trys.push([0,4,,5]),[4,this.oauthInstance.oauth2client.localCredentials.getCredentials()];case 1:return(t=a.sent()).refresh_token=e||t.refresh_token,[4,this.oauthInstance.oauth2client.refreshToken(t)];case 2:return n=a.sent(),[4,this.getUser(!1)];case 3:return r=a.sent().data,[2,{data:{user:o=(void 0===r?{}:r).user,session:i(i({},n),{user:o})},error:null}];case 4:return s=a.sent(),[2,{data:{user:null,session:null},error:new d.AuthError(s,{method:"refreshSession"})}];case 5:return[2]}})})},t.prototype.getUser=function(e){return void 0===e&&(e=!0),c(this,void 0,Promise,function(){var t,n,r;return u(this,function(o){switch(o.label){case 0:return o.trys.push([0,3,,4]),[4,this.oauthInstance.oauth2client.getCredentials()];case 1:return(t=o.sent())&&"accessKey"!==t.scope?(n=this.convertToUser,[4,this.getCurrentUser(e)]):[2,{data:{user:null},error:null}];case 2:return[2,{data:{user:n.apply(this,[o.sent()])},error:null}];case 3:return r=o.sent(),[2,{data:{user:null},error:new d.AuthError(r,{method:"getUser"})}];case 4:return[2]}})})},t.prototype.refreshUser=function(){return c(this,void 0,Promise,function(){var e,t,n;return u(this,function(r){switch(r.label){case 0:return r.trys.push([0,3,,4]),[4,this.currentUser.refresh()];case 1:return r.sent(),[4,this.getSession()];case 2:return e=r.sent().data,[2,{data:{user:(t=(void 0===e?{}:e).session).user,session:t},error:null}];case 3:return n=r.sent(),[2,{data:{user:null,session:null},error:new d.AuthError(n,{method:"refreshUser"})}];case 4:return[2]}})})},t.prototype.updateUser=function(e){var t;return c(this,void 0,Promise,function(){var n,r,o,s,a,h,p,f,m,g,v,_,y,b=this;return u(this,function(w){switch(w.label){case 0:if(w.trys.push([0,8,,9]),n=["password","new_password"].find(function(t){var n=e[t];return null!=n&&""!==n}))throw new d.AuthError({message:'updateUser 不支持更新密码,检测到传入了 "'.concat(n,'" 参数。如需修改密码请使用 resetPasswordForOld(旧密码修改)、resetPasswordForEmail(验证码重置)或 reauthenticate(重新认证后改密)')});if(!Object.keys(e).some(function(t){return void 0!==e[t]&&null!==e[t]&&""!==e[t]}))throw this.missingRequiredParam("updateUser","(at least one field)");return r=e.email,o=e.phone,s=l(e,["email","phone"]),h=void 0!==o,p={},(a=void 0!==r)||h?(f=void 0,a?(f={email:e.email,usage:d.VerificationUsage.REAUTHENTICATION},m="email_change"):(g=this.formatPhone(e.phone),f={phone_number:g},m="phone_change"),[4,this.getVerification(i({},f))]):[3,4];case 1:return v=w.sent(),Object.keys(s).length>0?[4,this.updateUserBasicInfo(s)]:[3,3];case 2:w.sent(),w.label=3;case 3:return p={messageId:v.verification_id,verifyOtp:function(t){return c(b,void 0,Promise,function(){var n,r,o,i;return u(this,function(s){switch(s.label){case 0:return s.trys.push([0,11,,12]),t.email&&e.email===t.email?[4,this.verifyOtp({type:"email_change",email:e.email,token:t.token,messageId:v.verification_id||""})]:[3,3];case 1:return(n=s.sent()).error?[2,n]:[4,this.updateUserBasicInfo({email:e.email})];case 2:return s.sent(),[3,9];case 3:return t.phone&&e.phone===t.phone?[4,this.verifyOtp({type:"phone_change",phone:e.phone,token:t.token,messageId:v.verification_id||""})]:[3,6];case 4:return(n=s.sent()).error?[2,n]:[4,this.updateUserBasicInfo({phone:this.formatPhone(e.phone)})];case 5:return s.sent(),[3,9];case 6:return[4,this.verifyOtp(a?{type:m,email:e.email,token:t.token,messageId:v.verification_id||""}:{type:m,phone:e.phone,token:t.token,messageId:v.verification_id||""})];case 7:return(n=s.sent()).error?[2,n]:[4,this.updateUserBasicInfo(e)];case 8:s.sent(),s.label=9;case 9:return[4,this.getUser(!1)];case 10:return r=s.sent().data.user,null===(i=this.config.eventBus)||void 0===i||i.fire(d.EVENTS.AUTH_STATE_CHANGED,{event:d.AUTH_STATE_CHANGED_TYPE.USER_UPDATED}),[2,{data:{user:r},error:null}];case 11:return o=s.sent(),[2,{data:{user:null},error:new d.AuthError(o,{method:"updateUser"})}];case 12:return[2]}})})}},[3,6];case 4:return[4,this.updateUserBasicInfo(e)];case 5:w.sent(),w.label=6;case 6:return[4,this.getUser(!1)];case 7:return _=w.sent().data.user,Object.keys(s).length>0&&(null===(t=this.config.eventBus)||void 0===t||t.fire(d.EVENTS.AUTH_STATE_CHANGED,{event:d.AUTH_STATE_CHANGED_TYPE.USER_UPDATED})),[2,{data:i({user:_},p),error:null}];case 8:return y=w.sent(),[2,{data:{user:null},error:new d.AuthError(y,{method:"updateUser"})}];case 9:return[2]}})})},t.prototype.getUserIdentities=function(){var e;return c(this,void 0,Promise,function(){var t,n;return u(this,function(r){switch(r.label){case 0:return r.trys.push([0,2,,3]),[4,this.oauthInstance.authApi.getProviders()];case 1:return t=r.sent(),[2,{data:{identities:null===(e=null==t?void 0:t.data)||void 0===e?void 0:e.filter(function(e){return!!e.bind})},error:null}];case 2:return n=r.sent(),[2,{data:{identities:null},error:new d.AuthError(n,{method:"getUserIdentities"})}];case 3:return[2]}})})},t.prototype.linkIdentity=function(e){return c(this,void 0,Promise,function(){var t;return u(this,function(n){switch(n.label){case 0:return n.trys.push([0,2,,3]),this.validateParams(e,{provider:{required:!0,message:"Provider is required"}},"linkIdentity"),[4,this.signInWithOAuth({provider:e.provider,options:{type:d.OAUTH_TYPE.BIND_IDENTITY}})];case 1:return n.sent(),[2,{data:{provider:e.provider},error:null}];case 2:return t=n.sent(),[2,{data:{provider:null},error:new d.AuthError(t,{method:"linkIdentity"})}];case 3:return[2]}})})},t.prototype.unlinkIdentity=function(e){return c(this,void 0,Promise,function(){var t;return u(this,function(n){switch(n.label){case 0:return n.trys.push([0,2,,3]),this.validateParams(e,{provider:{required:!0,message:"Provider is required"}},"unlinkIdentity"),[4,this.oauthInstance.authApi.unbindProvider({provider_id:e.provider})];case 1:return n.sent(),[2,{data:{},error:null}];case 2:return t=n.sent(),[2,{data:{},error:new d.AuthError(t,{method:"unlinkIdentity"})}];case 3:return[2]}})})},t.prototype.reauthenticate=function(){return c(this,void 0,Promise,function(){var e,t,n,r,o=this;return u(this,function(s){switch(s.label){case 0:return s.trys.push([0,3,,4]),[4,this.getUser(!1)];case 1:return e=s.sent().data.user,this.validateAtLeastOne(e,[["email","phone"]],"reauthenticate"),t=e.email?{email:e.email,usage:d.VerificationUsage.REAUTHENTICATION}:{phone_number:this.formatPhone(e.phone)},[4,this.getVerification(t)];case 2:return n=s.sent(),[2,{data:{updateUser:function(e){return c(o,void 0,Promise,function(){var r,o,s,a,c;return u(this,function(u){switch(u.label){case 0:this.validateParams(e,{nonce:{required:!0,message:"Nonce is required"}},"reauthenticate"),u.label=1;case 1:return u.trys.push([1,9,,10]),e.password?[4,this.verify({verification_id:n.verification_id,verification_code:e.nonce})]:[3,5];case 2:return r=u.sent(),[4,this.oauthInstance.authApi.sudo({verification_token:r.verification_token})];case 3:return o=u.sent(),[4,this.oauthInstance.authApi.setPassword({new_password:e.password,sudo_token:o.sudo_token})];case 4:return u.sent(),[3,7];case 5:return[4,this.signInWithUsername(i(i({verificationInfo:n,verificationCode:e.nonce},t),{loginType:t.email?"email":"phone"}))];case 6:u.sent(),u.label=7;case 7:return[4,this.getSession()];case 8:return s=u.sent().data,[2,{data:{user:(a=(void 0===s?{}:s).session).user,session:a},error:null}];case 9:return c=u.sent(),[2,{data:{user:null,session:null},error:new d.AuthError(c,{method:"reauthenticate"})}];case 10:return[2]}})})}},error:null}];case 3:return r=s.sent(),[2,{data:{updateUser:null},error:new d.AuthError(r,{method:"reauthenticate"})}];case 4:return[2]}})})},t.prototype.resend=function(e){return c(this,void 0,Promise,function(){var t,n,r;return u(this,function(o){switch(o.label){case 0:return o.trys.push([0,2,,3]),this.validateAtLeastOne(e,[["email"],["phone"]],"resend"),t="signup"===e.type?"ANY":"USER",n={target:t},"email"in e&&(n.email=e.email,n.usage=d.VerificationUsage.EMAIL),"phone"in e&&(n.phone_number=this.formatPhone(e.phone)),[4,this.oauthInstance.authApi.getVerification(n)];case 1:return[2,{data:{messageId:o.sent().verification_id},error:null}];case 2:return r=o.sent(),[2,{data:{messageId:null},error:new d.AuthError(r,{method:"resend"})}];case 3:return[2]}})})},t.prototype.setSession=function(e){return c(this,void 0,Promise,function(){var t,n,r;return u(this,function(o){switch(o.label){case 0:return o.trys.push([0,3,,4]),this.validateParams(e,{access_token:{required:!0,message:"Access token is required"},refresh_token:{required:!0,message:"Refresh token is required"}},"setSession"),[4,this.oauthInstance.oauth2client.refreshToken(e,{throwError:!0})];case 1:return o.sent(),[4,this.getSession()];case 2:return t=o.sent().data,[2,{data:{user:(n=(void 0===t?{}:t).session).user,session:n},error:null}];case 3:return r=o.sent(),[2,{data:{user:null,session:null},error:new d.AuthError(r,{method:"setSession"})}];case 4:return[2]}})})},t.prototype.exchangeCodeForSession=function(){return c(this,void 0,void 0,function(){return u(this,function(e){return[2]})})},t.prototype.deleteUser=function(e){return c(this,void 0,Promise,function(){var t,n;return u(this,function(r){switch(r.label){case 0:return r.trys.push([0,3,,4]),this.validateParams(e,{password:{required:!0,message:"Password is required"}},"deleteUser"),[4,this.oauthInstance.authApi.sudo(e)];case 1:return t=r.sent().sudo_token,[4,this.oauthInstance.authApi.deleteMe({sudo_token:t})];case 2:return r.sent(),[2,{data:{},error:null}];case 3:return n=r.sent(),[2,{data:{},error:new d.AuthError(n,{method:"deleteUser"})}];case 4:return[2]}})})},t.prototype.toDefaultLoginPage=function(e){return void 0===e&&(e={}),c(this,void 0,Promise,function(){var t,n,r,o,i;return u(this,function(s){try{return t=e.config_version||"env",n=Object.keys(e.query||{}).map(function(t){return"".concat(t,"=").concat(e.query[t])}).join("&"),p.adapterForWxMp.isMatch()?wx.navigateTo({url:"/packages/$wd_system/pages/login/index".concat(n?"?".concat(n):"")}):(r=e.redirect_uri||window.location.href,o=new URL(r),i="".concat(o.origin,"/__auth/?app_id=").concat(e.app_id||"","&env_id=").concat(this.config.env,"&client_id=").concat(this.config.clientId||this.config.env,"&config_version=").concat(t,"&redirect_uri=").concat(encodeURIComponent(r)).concat(n?"&".concat(n):""),window.location.href=i),[2,{data:{},error:null}]}catch(e){return[2,{data:{},error:new d.AuthError(e,{method:"toDefaultLoginPage"})}]}})})},t.prototype.signInWithCustomTicket=function(e){return c(this,void 0,Promise,function(){var t,n,r,o;return u(this,function(s){switch(s.label){case 0:e&&this.setCustomSignFunc(e),s.label=1;case 1:return s.trys.push([1,5,,6]),[4,this.oauthInstance.authApi.signInWithCustomTicket()];case 2:return s.sent(),[4,this.createLoginState()];case 3:return t=s.sent(),[4,this.getSession()];case 4:return n=s.sent().data,r=(void 0===n?{}:n).session,[2,i(i({},t),{data:{user:r.user,session:r},error:null})];case 5:return o=s.sent(),[2,{data:{user:null,session:null},error:new d.AuthError(o,{method:"signInWithCustomTicket"})}];case 6:return[2]}})})},t.prototype.signInWithOpenId=function(e){var t=(void 0===e?{}:e).useWxCloud,n=void 0===t||t;return c(this,void 0,Promise,function(){var e,t,r,o,s,a,l=this;return u(this,function(h){switch(h.label){case 0:if(!p.adapterForWxMp.isMatch())throw Error("wx api undefined");e=wx.getAccountInfoSync().miniProgram,t=function(t){return c(l,void 0,void 0,function(){var r,o;return u(this,function(i){switch(i.label){case 0:r=void 0,o=void 0,i.label=1;case 1:return i.trys.push([1,4,,5]),[4,this.oauthInstance.authApi.grantProviderToken({provider_id:null==e?void 0:e.appId,provider_code:t,provider_params:{provider_code_type:"open_id",appid:null==e?void 0:e.appId}},n)];case 2:if((null==(r=i.sent())?void 0:r.error_code)||!r.provider_token)throw r;return[4,this.oauthInstance.authApi.signInWithProvider({provider_token:r.provider_token},n)];case 3:if(null==(o=i.sent())?void 0:o.error_code)throw o;return[3,5];case 4:throw i.sent();case 5:return[4,this.oauthInstance.oauth2client.setCredentials(o)];case 6:return i.sent(),[2]}})})},h.label=1;case 1:return h.trys.push([1,5,,6]),[4,new Promise(function(e,n){wx.login({success:function(r){return c(l,void 0,void 0,function(){var o;return u(this,function(i){switch(i.label){case 0:return i.trys.push([0,2,,3]),[4,t(r.code)];case 1:return i.sent(),e(!0),[3,3];case 2:return o=i.sent(),n(o),[3,3];case 3:return[2]}})})},fail:function(e){var t=new Error(null==e?void 0:e.errMsg);t.code=null==e?void 0:e.errno,n(t)}})})];case 2:return h.sent(),[4,this.createLoginState()];case 3:return r=h.sent(),[4,this.getSession()];case 4:return o=h.sent().data,s=(void 0===o?{}:o).session,[2,i(i({},r),{data:{user:s.user,session:s},error:null})];case 5:return a=h.sent(),[2,{data:{user:null,session:null},error:new d.AuthError(a,{method:"signInWithOpenId"})}];case 6:return[2]}})})},t.prototype.signInWithPhoneAuth=function(e){var t=e.phoneCode,n=void 0===t?"":t,r=e.useWxCloud,o=void 0!==r&&r;return c(this,void 0,Promise,function(){var e,t,r,s,a,c,l,h,f;return u(this,function(u){switch(u.label){case 0:return p.adapterForWxMp.isMatch()?(e=wx.getAccountInfoSync().miniProgram,t={provider_params:{provider_code_type:"phone",code:n,appid:e.appId},provider_id:e.appId},[4,wx.login()]):[2,{data:{user:null,session:null},error:new d.AuthError({message:"wx api undefined"})}];case 1:r=u.sent().code,t.provider_code=r,u.label=2;case 2:return u.trys.push([2,5,,6]),[4,this.oauthInstance.authApi.grantProviderToken(t,o)];case 3:if((s=u.sent()).error_code)throw s;return[4,this.oauthInstance.authApi.signInWithProvider({provider_token:s.provider_token},o)];case 4:if(null==(a=u.sent())?void 0:a.error_code)throw a;return[3,6];case 5:return c=u.sent(),[2,{data:{user:null,session:null},error:new d.AuthError(c,{method:"signInWithPhoneAuth"})}];case 6:return[4,this.createLoginState()];case 7:return l=u.sent(),[4,this.getSession()];case 8:return h=u.sent().data,f=(void 0===h?{}:h).session,[2,i(i({},l),{data:{user:f.user,session:f},error:null})]}})})},t.prototype.bindPhoneNumber=function(e){return c(this,void 0,void 0,function(){return u(this,function(t){return[2,this.oauthInstance.authApi.editContact(e)]})})},t.prototype.unbindProvider=function(e){return c(this,void 0,Promise,function(){return u(this,function(t){return[2,this.oauthInstance.authApi.unbindProvider(e)]})})},t.prototype.bindEmail=function(e){return this.oauthInstance.authApi.editContact(e)},t.prototype.verify=function(e){return c(this,void 0,Promise,function(){return u(this,function(t){return[2,this.oauthInstance.authApi.verify(e)]})})},t.prototype.getVerification=function(e,t){return c(this,void 0,Promise,function(){return u(this,function(n){return e.phone_number&&(e.phone_number=this.formatPhone(e.phone_number)),[2,this.oauthInstance.authApi.getVerification(e,t)]})})},Object.defineProperty(t.prototype,"currentUser",{get:function(){if("async"!==this.cache.mode){var e=this.hasLoginState();return e&&e.user||null}(0,p.printWarn)(p.ERRORS.INVALID_OPERATION,"current platform's storage is asynchronous, please use getCurrentUser instead")},enumerable:!1,configurable:!0}),t.prototype.getCurrentUser=function(e){return void 0===e&&(e=!0),c(this,void 0,Promise,function(){var t,n,r;return u(this,function(o){switch(o.label){case 0:return o.trys.push([0,4,,5]),e?[4,this.getLoginState()]:[3,3];case 1:return(t=o.sent())?[4,t.user.refresh()]:[3,3];case 2:o.sent(),o.label=3;case 3:return[3,5];case 4:return o.sent(),[3,5];case 5:return[4,this.getLoginState()];case 6:return(n=o.sent())?(r=n.user.getLocalUserInfo(),[4,n.user.checkLocalInfoAsync()]):[3,8];case 7:return o.sent(),[2,i(i({},n.user),r)];case 8:return[2,null]}})})},t.prototype.signInAnonymouslyInWx=function(e){var t=(void 0===e?{}:e).useWxCloud;return c(this,void 0,Promise,function(){var e,n,r=this;return u(this,function(o){switch(o.label){case 0:if(!p.adapterForWxMp.isMatch())throw Error("wx api undefined");return e=wx.getAccountInfoSync().miniProgram,n=function(n){return c(r,void 0,void 0,function(){var r,o;return u(this,function(i){switch(i.label){case 0:r=void 0,o=void 0,i.label=1;case 1:return i.trys.push([1,4,,5]),[4,this.oauthInstance.authApi.grantProviderToken({provider_id:null==e?void 0:e.appId,provider_code:n,provider_params:{provider_code_type:"open_id",appid:null==e?void 0:e.appId}},t)];case 2:if((null==(r=i.sent())?void 0:r.error_code)||!r.provider_token)throw r;return[4,this.oauthInstance.authApi.signInAnonymously({provider_token:r.provider_token},t)];case 3:if(null==(o=i.sent())?void 0:o.error_code)throw o;return[3,5];case 4:throw i.sent();case 5:return[2]}})})},[4,new Promise(function(e,t){wx.login({success:function(o){return c(r,void 0,void 0,function(){var r;return u(this,function(i){switch(i.label){case 0:return i.trys.push([0,2,,3]),[4,n(o.code)];case 1:return i.sent(),e(!0),[3,3];case 2:return r=i.sent(),t(r),[3,3];case 3:return[2]}})})},fail:function(e){var n=new Error(null==e?void 0:e.errMsg);n.code=null==e?void 0:e.errno,t(n)}})})];case 1:return o.sent(),[2,this.createLoginState(void 0,{asyncRefreshUser:!0})]}})})},t.prototype.bindOpenId=function(){return c(this,void 0,Promise,function(){var e,t,n=this;return u(this,function(r){switch(r.label){case 0:if(!p.adapterForWxMp.isMatch())throw Error("wx api undefined");return e=wx.getAccountInfoSync().miniProgram,t=function(t){return c(n,void 0,void 0,function(){var n;return u(this,function(r){switch(r.label){case 0:n=void 0,r.label=1;case 1:return r.trys.push([1,4,,5]),[4,this.oauthInstance.authApi.grantProviderToken({provider_id:null==e?void 0:e.appId,provider_code:t,provider_params:{provider_code_type:"open_id",appid:null==e?void 0:e.appId}})];case 2:if((null==(n=r.sent())?void 0:n.error_code)||!n.provider_token)throw n;return[4,this.oauthInstance.authApi.bindWithProvider({provider_token:n.provider_token})];case 3:return r.sent(),[3,5];case 4:throw r.sent();case 5:return[2]}})})},[4,new Promise(function(e,r){wx.login({success:function(o){return c(n,void 0,void 0,function(){var n;return u(this,function(i){switch(i.label){case 0:return i.trys.push([0,2,,3]),[4,t(o.code)];case 1:return i.sent(),e(!0),[3,3];case 2:return n=i.sent(),r(n),[3,3];case 3:return[2]}})})},fail:function(e){var t=new Error(null==e?void 0:e.errMsg);t.code=null==e?void 0:e.errno,r(t)}})})];case 1:return r.sent(),[2]}})})},t.prototype.signInWithUnionId=function(){return c(this,void 0,Promise,function(){var e=this;return u(this,function(t){switch(t.label){case 0:if(!p.adapterForWxMp.isMatch())throw Error("wx api undefined");t.label=1;case 1:return t.trys.push([1,3,,4]),[4,new Promise(function(t,n){var r=wx.getAccountInfoSync().miniProgram;wx.login({success:function(o){return c(e,void 0,void 0,function(){var e,i,s,a,c;return u(this,function(u){switch(u.label){case 0:e=null==r?void 0:r.appId,u.label=1;case 1:return u.trys.push([1,4,,5]),[4,this.oauthInstance.authApi.grantProviderToken({provider_code:o.code,provider_id:e,provider_params:{provider_code_type:"union_id",appid:null==r?void 0:r.appId}})];case 2:return i=u.sent(),(s=i.provider_token)?[4,this.oauthInstance.authApi.signInWithProvider({provider_id:e,provider_token:s})]:(n(i),[2]);case 3:return(null==(a=u.sent())?void 0:a.error_code)?(n(a),[2]):(t(!0),[3,5]);case 4:return c=u.sent(),n(c),[3,5];case 5:return[2]}})})},fail:function(e){var t=new Error(null==e?void 0:e.errMsg);t.code=null==e?void 0:e.errno,n(t)}})})];case 2:return t.sent(),[3,4];case 3:throw t.sent();case 4:return[2,this.createLoginState()]}})})},t.prototype.signInWithSms=function(e){var t=e.verificationInfo,n=void 0===t?{verification_id:"",is_user:!1}:t,r=e.verificationCode,o=void 0===r?"":r,i=e.phoneNum,s=void 0===i?"":i,a=e.bindInfo,l=void 0===a?void 0:a;return c(this,void 0,Promise,function(){return u(this,function(e){try{return[2,this.signInWithUsername({verificationInfo:n,verificationCode:o,bindInfo:l,username:s,loginType:"sms"})]}catch(e){throw e}})})},t.prototype.signInWithEmail=function(e){var t=e.verificationInfo,n=void 0===t?{verification_id:"",is_user:!1}:t,r=e.verificationCode,o=void 0===r?"":r,i=e.bindInfo,s=void 0===i?void 0:i,a=e.email,l=void 0===a?"":a;return c(this,void 0,Promise,function(){return u(this,function(e){try{return[2,this.signInWithUsername({verificationInfo:n,verificationCode:o,bindInfo:s,username:l,loginType:"email"})]}catch(e){throw e}})})},t.prototype.setCustomSignFunc=function(e){this.oauthInstance.authApi.setCustomSignFunc(e)},t.prototype.signIn=function(e){return c(this,void 0,Promise,function(){return u(this,function(t){switch(t.label){case 0:return[4,this.oauthInstance.authApi.signIn(e)];case 1:return t.sent(),[2,this.createLoginState(e)]}})})},t.prototype.setPassword=function(e){return c(this,void 0,Promise,function(){return u(this,function(t){return[2,this.oauthInstance.authApi.setPassword(e)]})})},t.prototype.isUsernameRegistered=function(e){return c(this,void 0,Promise,function(){return u(this,function(t){switch(t.label){case 0:return"string"!=typeof e&&(0,p.throwError)(p.ERRORS.INVALID_PARAMS,"username must be a string"),[4,this.oauthInstance.authApi.checkIfUserExist({username:e})];case 1:return[2,t.sent().exist]}})})},t.prototype.hasLoginState=function(){var e;if("async"!==this.cache.mode)return(null===(e=this.oauthInstance)||void 0===e?void 0:e.authApi.hasLoginStateSync())?new y({envId:this.config.env,cache:this.cache,oauthInstance:this.oauthInstance}):null;(0,p.printWarn)(p.ERRORS.INVALID_OPERATION,"current platform's storage is asynchronous, please use getLoginState instead")},t.prototype.getLoginState=function(){return c(this,void 0,Promise,function(){var e;return u(this,function(t){switch(t.label){case 0:e=null,t.label=1;case 1:return t.trys.push([1,3,,4]),[4,this.oauthInstance.authApi.getLoginState()];case 2:return e=t.sent(),[3,4];case 3:return t.sent(),[2,null];case 4:return e?[2,new y({envId:this.config.env,cache:this.cache,oauthInstance:this.oauthInstance})]:[2,null]}})})},t.prototype.getUserInfo=function(){return c(this,void 0,Promise,function(){return u(this,function(e){return[2,this.getCurrentUser()]})})},t.prototype.getWedaUserInfo=function(){return c(this,void 0,Promise,function(){return u(this,function(e){return[2,this.oauthInstance.authApi.getWedaUserInfo()]})})},t.prototype.updateUserBasicInfo=function(e){return c(this,void 0,void 0,function(){var t;return u(this,function(n){switch(n.label){case 0:return[4,this.getLoginState()];case 1:return(t=n.sent())?[4,t.user.updateUserBasicInfo(e)]:[3,3];case 2:n.sent(),n.label=3;case 3:return[2]}})})},t.prototype.getAuthHeader=function(){return console.error("Auth.getAuthHeader API 已废弃"),{}},t.prototype.bindWithProvider=function(e){return c(this,void 0,Promise,function(){return u(this,function(t){return[2,this.oauthInstance.authApi.bindWithProvider(e)]})})},t.prototype.queryUser=function(e){return c(this,void 0,Promise,function(){return u(this,function(t){return[2,this.oauthInstance.authApi.queryUserProfile(e)]})})},t.prototype.getAccessToken=function(){return c(this,void 0,Promise,function(){return u(this,function(e){switch(e.label){case 0:return[4,this.oauthInstance.oauth2client.getAccessToken()];case 1:return[2,{accessToken:e.sent(),env:this.config.env}]}})})},t.prototype.grantProviderToken=function(e){return c(this,void 0,Promise,function(){return u(this,function(t){return[2,this.oauthInstance.authApi.grantProviderToken(e)]})})},t.prototype.patchProviderToken=function(e){return c(this,void 0,Promise,function(){return u(this,function(t){return[2,this.oauthInstance.authApi.patchProviderToken(e)]})})},t.prototype.signInWithProvider=function(e){return c(this,void 0,Promise,function(){return u(this,function(t){switch(t.label){case 0:return[4,this.oauthInstance.authApi.signInWithProvider(e)];case 1:return t.sent(),[2,this.createLoginState(e)]}})})},t.prototype.signInWithWechat=function(e){return void 0===e&&(e={}),c(this,void 0,void 0,function(){return u(this,function(t){switch(t.label){case 0:return[4,this.oauthInstance.authApi.signInWithWechat(e)];case 1:return t.sent(),[2,this.createLoginState(e)]}})})},t.prototype.grantToken=function(e){return c(this,void 0,Promise,function(){return u(this,function(t){switch(t.label){case 0:return[4,this.oauthInstance.authApi.grantToken(e)];case 1:return t.sent(),[2,this.createLoginState()]}})})},t.prototype.genProviderRedirectUri=function(e){return c(this,void 0,Promise,function(){return u(this,function(t){return[2,this.oauthInstance.authApi.genProviderRedirectUri(e)]})})},t.prototype.resetPassword=function(e){return c(this,void 0,Promise,function(){return u(this,function(t){return[2,this.oauthInstance.authApi.resetPassword(e)]})})},t.prototype.deviceAuthorize=function(e){return c(this,void 0,Promise,function(){return u(this,function(t){return[2,this.oauthInstance.authApi.deviceAuthorize(e)]})})},t.prototype.sudo=function(e){return c(this,void 0,Promise,function(){return u(this,function(t){return[2,this.oauthInstance.authApi.sudo(e)]})})},t.prototype.deleteMe=function(e){return c(this,void 0,Promise,function(){return u(this,function(t){return[2,this.oauthInstance.authApi.deleteMe(e)]})})},t.prototype.getProviders=function(){return c(this,void 0,Promise,function(){return u(this,function(e){return[2,this.oauthInstance.authApi.getProviders()]})})},t.prototype.loginScope=function(){return c(this,void 0,Promise,function(){return u(this,function(e){return[2,this.oauthInstance.authApi.loginScope()]})})},t.prototype.loginGroups=function(){return c(this,void 0,Promise,function(){return u(this,function(e){return[2,this.oauthInstance.authApi.loginGroups()]})})},t.prototype.onLoginStateChanged=function(e){var t;return c(this,void 0,void 0,function(){var n,r=this;return u(this,function(o){switch(o.label){case 0:return null===(t=this.config.eventBus)||void 0===t||t.on(d.EVENTS.LOGIN_STATE_CHANGED,function(t){return c(r,void 0,void 0,function(){var n,r,o;return u(this,function(s){switch(s.label){case 0:return(null===(o=null==t?void 0:t.data)||void 0===o?void 0:o.eventType)===d.LOGIN_STATE_CHANGED_TYPE.CREDENTIALS_ERROR?[3,2]:[4,this.getLoginState()];case 1:return r=s.sent(),[3,3];case 2:r={},s.label=3;case 3:return n=r,e.call(this,i(i({},t),n)),[2]}})})}),[4,this.getLoginState()];case 1:return n=o.sent(),e.call(this,n),[2]}})})},t.prototype.refreshTokenForce=function(e){return c(this,void 0,Promise,function(){return u(this,function(t){return[2,this.oauthInstance.authApi.refreshTokenForce(e)]})})},t.prototype.getCredentials=function(){return c(this,void 0,Promise,function(){return u(this,function(e){return[2,this.oauthInstance.authApi.getCredentials()]})})},t.prototype.setCredentials=function(e){return c(this,void 0,void 0,function(){return u(this,function(t){switch(t.label){case 0:return[4,this.oauthInstance.oauth2client.setCredentials(e)];case 1:return t.sent(),[2]}})})},t.prototype.getProviderSubType=function(){return c(this,void 0,Promise,function(){return u(this,function(e){return[2,this.oauthInstance.authApi.getProviderSubType()]})})},t.prototype.createCaptchaData=function(e){return c(this,void 0,void 0,function(){return u(this,function(t){return[2,this.oauthInstance.authApi.createCaptchaData(e)]})})},t.prototype.verifyCaptchaData=function(e){return c(this,void 0,void 0,function(){return u(this,function(t){return[2,this.oauthInstance.authApi.verifyCaptchaData(e)]})})},t.prototype.getMiniProgramQrCode=function(e){return c(this,void 0,Promise,function(){return u(this,function(t){return[2,this.oauthInstance.authApi.getMiniProgramCode(e)]})})},t.prototype.getMiniProgramQrCodeStatus=function(e){return c(this,void 0,Promise,function(){return u(this,function(t){return[2,this.oauthInstance.authApi.getMiniProgramQrCodeStatus(e)]})})},t.prototype.modifyPassword=function(e){return c(this,void 0,Promise,function(){return u(this,function(t){return[2,this.oauthInstance.authApi.modifyPassword(e)]})})},t.prototype.modifyPasswordWithoutLogin=function(e){return c(this,void 0,Promise,function(){return u(this,function(t){return[2,this.oauthInstance.authApi.modifyPasswordWithoutLogin(e)]})})},t.prototype.getUserBehaviorLog=function(e){return c(this,void 0,Promise,function(){return u(this,function(t){return[2,this.oauthInstance.authApi.getUserBehaviorLog(e)]})})},t.prototype.signInWithUsername=function(e){var t=e.verificationInfo,n=void 0===t?{verification_id:"",is_user:!1}:t,r=e.verificationCode,o=void 0===r?"":r,s=e.username,a=void 0===s?"":s,l=e.bindInfo,d=void 0===l?void 0:l,h=e.loginType,p=void 0===h?"":h;return c(this,void 0,Promise,function(){var e,t,r,s,c,l,h;return u(this,function(u){switch(u.label){case 0:return u.trys.push([0,8,,9]),[4,this.oauthInstance.authApi.verify({verification_id:n.verification_id,verification_code:o})];case 1:if(null==(e=u.sent())?void 0:e.error_code)throw e;return t=e.verification_token,r=this.formatPhone(a),s={phone_number:r},"email"===p&&(s={email:r=a}),n.is_user?[4,this.oauthInstance.authApi.signIn({username:r,verification_token:t})]:[3,5];case 2:if(null==(c=u.sent())?void 0:c.error_code)throw c;return d?[4,this.oauthInstance.authApi.bindWithProvider({provider_token:null==d?void 0:d.providerToken})]:[3,4];case 3:if(null==(l=u.sent())?void 0:l.error_code)throw l;u.label=4;case 4:return[3,7];case 5:return[4,this.oauthInstance.authApi.signUp(i(i({},s),{verification_token:t,provider_token:null==d?void 0:d.providerId}))];case 6:if(null==(h=u.sent())?void 0:h.error_code)throw h;u.label=7;case 7:return[2,this.createLoginState()];case 8:throw u.sent();case 9:return[2]}})})},t.prototype.createLoginState=function(e,t){return c(this,void 0,Promise,function(){var n;return u(this,function(r){switch(r.label){case 0:return[4,(n=new y({envId:this.config.env,cache:this.cache,oauthInstance:this.oauthInstance})).checkLocalStateAsync()];case 1:return r.sent(),(null==t?void 0:t.userInfo)?(n.user.setLocalUserInfo(t.userInfo),[3,5]):[3,2];case 2:return(null==t?void 0:t.asyncRefreshUser)?(n.user.refresh(e),[3,5]):[3,3];case 3:return[4,n.user.refresh(e)];case 4:r.sent(),r.label=5;case 5:return[2,n]}})})},t.prototype.setAccessKey=function(){var e,t;return c(this,void 0,void 0,function(){var n,r;return u(this,function(o){if(n="",r="",this.config.accessKey?(n=this.config.accessKey,r="accessKey"):(null===(e=this.config.auth)||void 0===e?void 0:e.secretId)&&(null===(t=this.config.auth)||void 0===t?void 0:t.secretKey)&&(n="",r=d.DEFAULT_NODE_ACCESS_SCOPE),!r)return[2];try{this.oauthInstance.oauth2client.setAccessKeyCredentials({access_token:n,token_type:"Bearer",scope:r,expires_at:new Date(+new Date+ +new Date),expires_in:+new Date+ +new Date})}catch(e){console.warn("accessKey error: ",e)}return[2]})})},t.prototype.formatPhone=function(e){return!/\s+/.test(e)&&/^\+\d{1,3}\d+/.test(e)?e.replace(/^(\+\d{1,2})(\d+)$/,"$1 $2"):/^\+\d{1,3}\s+/.test(e)?e:"+86 ".concat(e)},t.prototype.notifyListeners=function(e,t,n){this.listeners.forEach(function(r){r.forEach(function(r){try{r(e,t,n)}catch(e){console.error("Error in auth state change callback:",e)}})})},t.prototype.setupListeners=function(){var e,t=this;null===(e=this.config.eventBus)||void 0===e||e.on(d.EVENTS.AUTH_STATE_CHANGED,function(e){return c(t,void 0,void 0,function(){var t,n,r,o,i,s,a;return u(this,function(c){switch(c.label){case 0:return t=null===(s=null==e?void 0:e.data)||void 0===s?void 0:s.event,n=null===(a=null==e?void 0:e.data)||void 0===a?void 0:a.info,t!==d.AUTH_STATE_CHANGED_TYPE.SIGNED_IN||n?[3,2]:[4,this.getUser(!0)];case 1:r=c.sent().data,(o=(void 0===r?{}:r).user)&&(n={user:o}),c.label=2;case 2:return[4,this.getSession()];case 3:return i=c.sent().data.session,this.notifyListeners(t,i,n),[2]}})})})},t.prototype.convertToUser=function(e){var t,n,r,o,i,s;if(!e)return null;var a=(null==e?void 0:e.email)||"",c=(null==e?void 0:e.phone_number)||"",u=(null==e?void 0:e.sub)||(null==e?void 0:e.uid)||"";return{id:u,aud:"authenticated",role:null===(n=null===(t=e.groups)||void 0===t?void 0:t.map)||void 0===n?void 0:n.call(t,function(e){return"string"==typeof e?e:e.id}),email:a||"",email_confirmed_at:(null==e||e.email_verified,e.created_at),phone:c,phone_confirmed_at:c?e.created_at:void 0,confirmed_at:e.created_at,last_sign_in_at:e.last_sign_in_at,app_metadata:{provider:(null===(r=e.loginType)||void 0===r?void 0:r.toLowerCase())||"cloudbase",providers:[(null===(o=e.loginType)||void 0===o?void 0:o.toLowerCase())||"cloudbase"]},user_metadata:{name:null==e?void 0:e.name,picture:null==e?void 0:e.picture,username:null==e?void 0:e.username,gender:null==e?void 0:e.gender,locale:null==e?void 0:e.locale,uid:e.uid,nickName:e.nickName||(null==e?void 0:e.name),avatarUrl:e.avatarUrl||e.picture,location:e.location,hasPassword:null!==(i=e.hasPassword)&&void 0!==i?i:"SET"===e.password,open_id:null==e?void 0:e.open_id},identities:(null===(s=null==e?void 0:e.providers)||void 0===s?void 0:s.map(function(t){return{id:t.id||"",identity_id:t.id||"",user_id:u,identity_data:{provider_id:t.id,provider_user_id:t.provider_user_id,name:t.name},provider:t.id||"cloudbase",created_at:e.created_at,updated_at:e.updated_at,last_sign_in_at:e.last_sign_in_at}}))||[],created_at:e.created_at,updated_at:e.updated_at,is_anonymous:"anonymous"===e.name}},t.prototype.missingRequiredParam=function(e,t){return new d.AuthError({error:"missing_required_param",error_code:4e3,error_description:"auth.".concat(e,"(params): missing required param '").concat(t,"'")},{method:e})},t.prototype.validateParams=function(e,t,n){for(var r=0,o=Object.entries(t);r<o.length;r++){var i=o[r],s=i[0];if(i[1].required&&(void 0===(null==e?void 0:e[s])||null===(null==e?void 0:e[s])||""===(null==e?void 0:e[s])))throw this.missingRequiredParam(n,s)}},t.prototype.validateAtLeastOne=function(e,t,n){if(!t.some(function(t){return t.some(function(t){return void 0!==(null==e?void 0:e[t])&&null!==(null==e?void 0:e[t])&&""!==(null==e?void 0:e[t])})}))throw this.missingRequiredParam(n,t.map(function(e){return e.join("|")}).join("|"))},t.prototype.init=function(){var e;return c(this,void 0,Promise,function(){return u(this,function(t){switch(t.label){case 0:return t.trys.push([0,2,,3]),[4,this.oauthInstance.oauth2client.localCredentials.getCredentials()];case 1:return t.sent()&&!this.oauthInstance.oauth2client.initSessionEmitted&&(null===(e=this.config.eventBus)||void 0===e||e.fire(d.EVENTS.AUTH_STATE_CHANGED,{event:d.AUTH_STATE_CHANGED_TYPE.INITIAL_SESSION})),[3,3];case 2:return t.sent(),[3,3];case 3:return[2,{error:null}]}})})},s([(0,p.catchErrorsDecorator)({title:"绑定手机号失败",messages:["请确认以下各项:"," 1 - 调用 auth().bindPhoneNumber() 的语法或参数是否正确"," 2 - 当前环境是否开通了短信验证码登录","如果问题依然存在,建议到官方问答社区提问或寻找帮助:".concat(p.COMMUNITY_SITE_URL)]}),a("design:type",Function),a("design:paramtypes",["function"==typeof(n=void 0!==d.authModels&&d.authModels.BindPhoneRequest)?n:Object]),a("design:returntype",Promise)],t.prototype,"bindPhoneNumber",null),s([(0,p.catchErrorsDecorator)({title:"解除三方绑定失败",messages:["请确认以下各项:"," 1 - 调用 auth().unbindProvider() 的语法或参数是否正确"," 2 - 当前账户是否已经与此登录方式解绑","如果问题依然存在,建议到官方问答社区提问或寻找帮助:".concat(p.COMMUNITY_SITE_URL)]}),a("design:type",Function),a("design:paramtypes",["function"==typeof(r=void 0!==d.authModels&&d.authModels.UnbindProviderRequest)?r:Object]),a("design:returntype","function"==typeof(h="undefined"!=typeof Promise&&Promise)?h:Object)],t.prototype,"unbindProvider",null),s([(0,p.catchErrorsDecorator)({title:"绑定邮箱地址失败",messages:["请确认以下各项:"," 1 - 调用 auth().bindEmail() 的语法或参数是否正确"," 2 - 当前环境是否开通了邮箱密码登录","如果问题依然存在,建议到官方问答社区提问或寻找帮助:".concat(p.COMMUNITY_SITE_URL)]}),a("design:type",Function),a("design:paramtypes",["function"==typeof(m=void 0!==d.authModels&&d.authModels.BindEmailRequest)?m:Object]),a("design:returntype",void 0)],t.prototype,"bindEmail",null),s([(0,p.catchErrorsDecorator)({title:"验证码验证失败",messages:["请确认以下各项:"," 1 - 调用 auth().verify() 的语法或参数是否正确"," 2 - 当前环境是否开通了手机验证码/邮箱登录","如果问题依然存在,建议到官方问答社区提问或寻找帮助:".concat(p.COMMUNITY_SITE_URL)]}),a("design:type",Function),a("design:paramtypes",["function"==typeof(_=void 0!==d.authModels&&d.authModels.VerifyRequest)?_:Object]),a("design:returntype","function"==typeof(b="undefined"!=typeof Promise&&Promise)?b:Object)],t.prototype,"verify",null),s([(0,p.catchErrorsDecorator)({title:"获取验证码失败",messages:["请确认以下各项:"," 1 - 调用 auth().getVerification() 的语法或参数是否正确"," 2 - 当前环境是否开通了手机验证码/邮箱登录","如果问题依然存在,建议到官方问答社区提问或寻找帮助:".concat(p.COMMUNITY_SITE_URL)]}),a("design:type",Function),a("design:paramtypes",["function"==typeof(w=void 0!==d.authModels&&d.authModels.GetVerificationRequest)?w:Object,Object]),a("design:returntype","function"==typeof(E="undefined"!=typeof Promise&&Promise)?E:Object)],t.prototype,"getVerification",null),s([(0,p.catchErrorsDecorator)({title:"获取用户信息失败",messages:["请确认以下各项:"," 1 - 调用 auth().getCurrentUser() 的语法或参数是否正确","如果问题依然存在,建议到官方问答社区提问或寻找帮助:".concat(p.COMMUNITY_SITE_URL)]}),a("design:type",Function),a("design:paramtypes",[Object]),a("design:returntype","function"==typeof(I="undefined"!=typeof Promise&&Promise)?I:Object)],t.prototype,"getCurrentUser",null),s([(0,p.catchErrorsDecorator)({title:"小程序匿名登录失败",messages:["请确认以下各项:"," 1 - 当前环境是否开启了匿名登录"," 2 - 调用 auth().signInAnonymouslyInWx() 的语法或参数是否正确","如果问题依然存在,建议到官方问答社区提问或寻找帮助:".concat(p.COMMUNITY_SITE_URL)]}),a("design:type",Function),a("design:paramtypes",[Object]),a("design:returntype","function"==typeof(S="undefined"!=typeof Promise&&Promise)?S:Object)],t.prototype,"signInAnonymouslyInWx",null),s([(0,p.catchErrorsDecorator)({title:"小程序绑定OpenID失败",messages:["请确认以下各项:"," 1 - 当前环境是否开启了小程序openId静默登录"," 2 - 调用 auth().bindOpenId() 的语法或参数是否正确","如果问题依然存在,建议到官方问答社区提问或寻找帮助:".concat(p.COMMUNITY_SITE_URL)]}),a("design:type",Function),a("design:paramtypes",[]),a("design:returntype","function"==typeof(A="undefined"!=typeof Promise&&Promise)?A:Object)],t.prototype,"bindOpenId",null),s([(0,p.catchErrorsDecorator)({title:"小程序unionId静默登录失败",messages:["请确认以下各项:"," 1 - 当前环境是否开启了小程序unionId静默登录"," 2 - 调用 auth().signInWithUnionId() 的语法或参数是否正确","如果问题依然存在,建议到官方问答社区提问或寻找帮助:".concat(p.COMMUNITY_SITE_URL)]}),a("design:type",Function),a("design:paramtypes",[]),a("design:returntype","function"==typeof(O="undefined"!=typeof Promise&&Promise)?O:Object)],t.prototype,"signInWithUnionId",null),s([(0,p.catchErrorsDecorator)({title:"短信验证码登陆",messages:["请确认以下各项:"," 1 - 当前环境是否开启了小程序短信验证码登陆"," 2 - 调用 auth().signInWithSms() 的语法或参数是否正确","如果问题依然存在,建议到官方问答社区提问或寻找帮助:".concat(p.COMMUNITY_SITE_URL)]}),a("design:type",Function),a("design:paramtypes",[Object]),a("design:returntype","function"==typeof(T="undefined"!=typeof Promise&&Promise)?T:Object)],t.prototype,"signInWithSms",null),s([(0,p.catchErrorsDecorator)({title:"邮箱验证码登陆",messages:["请确认以下各项:"," 1 - 当前环境是否开启了邮箱登陆"," 2 - 调用 auth().signInWithEmail() 的语法或参数是否正确","如果问题依然存在,建议到官方问答社区提问或寻找帮助:".concat(p.COMMUNITY_SITE_URL)]}),a("design:type",Function),a("design:paramtypes",[Object]),a("design:returntype","function"==typeof(C="undefined"!=typeof Promise&&Promise)?C:Object)],t.prototype,"signInWithEmail",null),s([(0,p.catchErrorsDecorator)({title:"获取用户是否被占用失败",messages:["请确认以下各项:"," 1 - 调用 auth().isUsernameRegistered() 的语法或参数是否正确","如果问题依然存在,建议到官方问答社区提问或寻找帮助:".concat(p.COMMUNITY_SITE_URL)]}),a("design:type",Function),a("design:paramtypes",[String]),a("design:returntype","function"==typeof(k="undefined"!=typeof Promise&&Promise)?k:Object)],t.prototype,"isUsernameRegistered",null),s([(0,p.catchErrorsDecorator)({title:"获取本地登录态失败",messages:["请确认以下各项:"," 1 - 调用 auth().getLoginState() 的语法或参数是否正确","如果问题依然存在,建议到官方问答社区提问或寻找帮助:".concat(p.COMMUNITY_SITE_URL)]}),a("design:type",Function),a("design:paramtypes",[]),a("design:returntype","function"==typeof(P="undefined"!=typeof Promise&&Promise)?P:Object)],t.prototype,"getLoginState",null),s([(0,p.catchErrorsDecorator)({title:"获取用户信息失败",messages:["请确认以下各项:"," 1 - 是否已登录"," 2 - 调用 auth().getUserInfo() 的语法或参数是否正确","如果问题依然存在,建议到官方问答社区提问或寻找帮助:".concat(p.COMMUNITY_SITE_URL)]}),a("design:type",Function),a("design:paramtypes",[]),a("design:returntype","function"==typeof(N="undefined"!=typeof Promise&&Promise)?N:Object)],t.prototype,"getUserInfo",null),s([(0,p.catchErrorsDecorator)({title:"获取微搭插件用户信息失败",messages:["请确认以下各项:"," 1 - 是否已登录"," 2 - 调用 auth().getWedaUserInfo() 的语法或参数是否正确","如果问题依然存在,建议到官方问答社区提问或寻找帮助:".concat(p.COMMUNITY_SITE_URL)]}),a("design:type",Function),a("design:paramtypes",[]),a("design:returntype","function"==typeof(R="undefined"!=typeof Promise&&Promise)?R:Object)],t.prototype,"getWedaUserInfo",null),s([(0,p.catchErrorsDecorator)({title:"绑定第三方登录方式失败",messages:["请确认以下各项:"," 1 - 调用 auth().bindWithProvider() 的语法或参数是否正确"," 2 - 此账户是否已经绑定此第三方","如果问题依然存在,建议到官方问答社区提问或寻找帮助:".concat(p.COMMUNITY_SITE_URL)]}),a("design:type",Function),a("design:paramtypes",["function"==typeof(M=void 0!==d.authModels&&d.authModels.BindWithProviderRequest)?M:Object]),a("design:returntype","function"==typeof(x="undefined"!=typeof Promise&&Promise)?x:Object)],t.prototype,"bindWithProvider",null),s([(0,p.catchErrorsDecorator)({title:"获取身份源类型",messages:["请确认以下各项:"," 1 - 调用 auth().getProviderSubType() 的语法或参数是否正确","如果问题依然存在,建议到官方问答社区提问或寻找帮助:".concat(p.COMMUNITY_SITE_URL)]}),a("design:type",Function),a("design:paramtypes",[]),a("design:returntype","function"==typeof(L="undefined"!=typeof Promise&&Promise)?L:Object)],t.prototype,"getProviderSubType",null),t}(m.AuthV1Compat);function w(e,t){var n,r,o,s,a=this,l=e.region,f=void 0===l?"ap-shanghai":l,m=e.i18n,g=e.accessKey,v=e.useWxCloud,_=(null==t?void 0:t.platform)||p.useDefaultAdapter.bind(t)(),y=_.runtime,w=_.adapter,E=t||{},I=E.env,S=E.clientId,A=E.debug,O=E.cache,T=E.app,C=E.getApiOrigin,k=(t||{}).apiOrigin;k||(k="https://".concat(I,".").concat(f,".tcb-api.tencentcloudapi.com"));var P,N={env:I,clientId:S,i18n:m,accessKey:g,useWxCloud:v,eventBus:new p.CloudbaseEventEmitter},R=new d.CloudbaseOAuth((0,h.useAuthAdapter)(i(i({},N),{apiOrigin:k,getApiOrigin:C,apiPath:(null==e?void 0:e.apiPath)||d.AUTH_API_PREFIX,storage:null==e?void 0:e.storage,baseRequest:null==e?void 0:e.baseRequest,request:null==e?void 0:e.request,anonymousSignInFunc:null==e?void 0:e.anonymousSignInFunc,captchaOptions:null==e?void 0:e.captchaOptions,wxCloud:null==e?void 0:e.wxCloud,adapter:w,onCredentialsError:(P=N.eventBus,function(e){P.fire(d.EVENTS.LOGIN_STATE_CHANGED,i(i({},e),{eventType:d.LOGIN_STATE_CHANGED_TYPE.CREDENTIALS_ERROR}))}),headers:i({"X-SDK-Version":"@cloudbase/js-sdk/".concat(e.sdkVersion)},e.headers||{}),detectSessionInUrl:e.detectSessionInUrl,debug:A,auth:null===(r=null===(n=t.app)||void 0===n?void 0:n.config)||void 0===r?void 0:r.auth}))),M=new b(i(i({},N),{region:f,persistence:e.persistence,debug:A,cache:O||new p.CloudbaseCache({persistence:e.persistence,keys:{userInfoKey:"user_info_".concat(I)},platformInfo:_}),runtime:y||"web",_fromApp:T,oauthInstance:R,auth:null===(s=null===(o=t.app)||void 0===o?void 0:o.config)||void 0===s?void 0:s.auth}));return R.initializeSession(function(e,t){return c(a,void 0,void 0,function(){return u(this,function(n){return e?(e.type===d.OAUTH_TYPE.SIGN_IN?t?N.eventBus.fire(d.EVENTS.AUTH_STATE_CHANGED,{event:d.AUTH_STATE_CHANGED_TYPE.SIGNED_IN,info:i(i({},e),{error:t})}):e.user&&M.createLoginState({},{userInfo:e.user}):e.type===d.OAUTH_TYPE.BIND_IDENTITY&&N.eventBus.fire(d.EVENTS.AUTH_STATE_CHANGED,{event:d.AUTH_STATE_CHANGED_TYPE.BIND_IDENTITY,info:i(i({},e),{error:t})}),[2]):[2]})})}),{authInstance:M,oauthInstance:R}}t.Auth=b,t.generateAuthInstance=w;var E="auth";function I(e,t){for(var n=[],r=0;r<=e.length;r++)n[r]=[r];for(var o=0;o<=t.length;o++)n[0][o]=o;for(r=1;r<=e.length;r++)for(o=1;o<=t.length;o++){var i=e[r-1].toLowerCase()===t[o-1].toLowerCase()?0:1;n[r][o]=Math.min(n[r-1][o]+1,n[r][o-1]+1,n[r-1][o-1]+i)}return n[e.length][t.length]}var S={name:"auth",namespace:E,entity:function(e){var t=function(e){var t,n=this;if(this.authInstance&&!e)return this.authInstance;e=e||{region:"",persistence:"local",apiPath:d.AUTH_API_PREFIX};var r=this.platform.adapter,o=e.persistence||r.primaryStorage;o&&o!==this.config.persistence&&this.updateConfig({persistence:o});var s=w(i(i({wxCloud:this.config.wxCloud,storage:this.config.storage},e),{persistence:this.config.persistence,i18n:this.config.i18n,accessKey:this.config.accessKey,useWxCloud:this.config.useWxCloud,sdkVersion:this.version,detectSessionInUrl:null===(t=this.config.auth)||void 0===t?void 0:t.detectSessionInUrl}),{env:this.config.env,clientId:this.config.clientId,getApiOrigin:function(){return n.request.getBaseEndPoint(n.config.endPointMode||"CLOUD_API")},platform:this.platform,cache:this.cache,app:this,debug:this.config.debug}),a=s.authInstance,c=s.oauthInstance;return this.oauthInstance=c,this.authInstance=a,this.authInstance},n=t.call(this,e);Object.assign(t,n),Object.setPrototypeOf(t,Object.getPrototypeOf(n));var r="undefined"!=typeof Proxy?new Proxy(t,{get:function(e,t,n){var r=Reflect.get(e,t,n);if(void 0!==r||"string"!=typeof t)return r;var o=function(e,t){for(var n=null,r=1/0,o=0,i=t;o<i.length;o++){var s=i[o];if(!s.startsWith("_")&&"constructor"!==s){var a=I(e,s);a<r&&(r=a,n=s)}}return n}(t,Object.getOwnPropertyNames(Object.getPrototypeOf(e)).concat(Object.keys(e)).filter(function(t){return"function"==typeof e[t]}));return o&&console.warn("[CloudBase Auth] auth.".concat(t," is not a function. Did you mean: auth.").concat(o,"() ?")),r}}):t;return this[E]=r,r}};try{cloudbase.registerComponent(S)}catch(e){}var A=n(722);Object.defineProperty(t,"AuthErrorCategory",{enumerable:!0,get:function(){return A.AuthErrorCategory}}),Object.defineProperty(t,"AuthErrorCode",{enumerable:!0,get:function(){return A.AuthErrorCode}}),Object.defineProperty(t,"AuthError",{enumerable:!0,get:function(){return A.AuthError}}),t.registerAuth=function(e){try{e.registerComponent(S)}catch(e){console.warn(e)}}},19:function(e,t,n){var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.useDefaultAdapter=t.adapterForWxMp=t.CloudbaseCache=t.CloudbaseEventEmitter=t.catchErrorsDecorator=t.COMMUNITY_SITE_URL=t.ERRORS=t.throwError=t.printWarn=void 0;var o=n(616);Object.defineProperty(t,"printWarn",{enumerable:!0,get:function(){return o.printWarn}}),Object.defineProperty(t,"throwError",{enumerable:!0,get:function(){return o.throwError}});var i=n(794);Object.defineProperty(t,"ERRORS",{enumerable:!0,get:function(){return i.ERRORS}}),Object.defineProperty(t,"COMMUNITY_SITE_URL",{enumerable:!0,get:function(){return i.COMMUNITY_SITE_URL}});var s=n(141);Object.defineProperty(t,"catchErrorsDecorator",{enumerable:!0,get:function(){return s.catchErrorsDecorator}});var a=n(689);Object.defineProperty(t,"CloudbaseEventEmitter",{enumerable:!0,get:function(){return a.CloudbaseEventEmitter}});var c=n(197);Object.defineProperty(t,"CloudbaseCache",{enumerable:!0,get:function(){return c.CloudbaseCache}});var u=n(917);Object.defineProperty(t,"adapterForWxMp",{enumerable:!0,get:function(){return r(u).default}});var l=n(182);Object.defineProperty(t,"useDefaultAdapter",{enumerable:!0,get:function(){return l.useDefaultAdapter}})},266:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.removeUrlParams=t.addUrlSearch=t.removeBrowserSession=t.getBrowserSession=t.saveToBrowserSession=void 0,t.saveToBrowserSession=function(e,t){try{sessionStorage.setItem(e,JSON.stringify(t))}catch(e){console.error("Failed to save to browser session:",e)}},t.getBrowserSession=function(e){try{return JSON.parse(sessionStorage.getItem(e))}catch(e){return console.error("Failed to get browser session:",e),null}},t.removeBrowserSession=function(e){try{return sessionStorage.removeItem(e),!0}catch(e){return console.error("Failed to remove browser session:",e),null}},t.addUrlSearch=function(e,t){if(void 0!==e){var n=new URL(window.location.href);return n.search=e,n.hash=t||n.hash,window.history.replaceState({},"",n.href),n.href}},t.removeUrlParams=function(e){if("undefined"!=typeof window)try{var t=new URL(window.location.href);e.forEach(function(e){t.searchParams.delete(e)}),window.history.replaceState({},"",t.href)}catch(e){console.error("Failed to remove URL params:",e)}}},916:function(e,t,n){var r=this&&this.__assign||function(){return r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},r.apply(this,arguments)},o=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))(function(o,i){function s(e){try{c(r.next(e))}catch(e){i(e)}}function a(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(s,a)}c((r=r.apply(e,t||[])).next())})},i=this&&this.__generator||function(e,t){var n,r,o,i,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function a(a){return function(c){return function(a){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,a[0]&&(s=0)),s;)try{if(n=1,r&&(o=2&a[0]?r.return:a[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,a[1])).done)return o;switch(r=0,o&&(a=[2&a[0],o.value]),a[0]){case 0:case 1:o=a;break;case 4:return s.label++,{value:a[1],done:!1};case 5:s.label++,r=a[1],a=[0];continue;case 7:a=s.ops.pop(),s.trys.pop();continue;default:if(!((o=(o=s.trys).length>0&&o[o.length-1])||6!==a[0]&&2!==a[0])){s=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]<o[3])){s.label=a[1];break}if(6===a[0]&&s.label<o[1]){s.label=o[1],o=a;break}if(o&&s.label<o[2]){s.label=o[2],s.ops.push(a);break}o[2]&&s.ops.pop(),s.trys.pop();continue}a=t.call(e,s)}catch(e){a=[6,e],r=0}finally{n=o=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,c])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.applyUserV1Compat=t.AuthV1Compat=t.AnonymousAuthProvider=t.CustomAuthProvider=t.WeixinAuthProvider=void 0;var s=n(722),a=n(19),c=function(){function e(e){}return e.prototype.signInWithRedirect=function(){throw new Error("[v1 兼容] WeixinAuthProvider.signInWithRedirect() 在当前版本中无法实现。 建议使用 auth.signInWithOAuth({ provider: 'providerId' }) 替代。")},e.prototype.getRedirectResult=function(e){return o(this,void 0,Promise,function(){return i(this,function(e){throw new Error("[v1 兼容] WeixinAuthProvider.getRedirectResult() 在当前版本中无法实现。 建议使用 auth.verifyOAuth({ code, state, provider }) 替代。")})})},e.prototype.getLinkRedirectResult=function(e){return o(this,void 0,Promise,function(){return i(this,function(e){throw new Error("[v1 兼容] WeixinAuthProvider.getLinkRedirectResult() 在当前版本中无法实现。 建议使用 auth.linkIdentity({ provider: 'providerId' }) 替代。")})})},e}();t.WeixinAuthProvider=c;var u=function(){function e(e){this.authInstance=e.authInstance}return e.prototype.signIn=function(e){return o(this,void 0,Promise,function(){return i(this,function(t){switch(t.label){case 0:return[4,this.authInstance.signInWithCustomTicket(function(){return Promise.resolve(e)})];case 1:return t.sent(),[2]}})})},e}();t.CustomAuthProvider=u;var l=function(){function e(e){this.authInstance=e.authInstance}return e.prototype.signIn=function(){return o(this,void 0,Promise,function(){return i(this,function(e){switch(e.label){case 0:return[4,this.authInstance.signInAnonymously({})];case 1:return e.sent(),[2]}})})},e}();t.AnonymousAuthProvider=l;var d=function(){function e(){}return e.prototype.weixinAuthProvider=function(e){return new c({authInstance:this,appid:e.appid,scope:e.scope})},e.prototype.customAuthProvider=function(){return new u({authInstance:this})},e.prototype.anonymousAuthProvider=function(){return new l({authInstance:this})},e.prototype.signUpWithEmailAndPassword=function(e,t){return o(this,void 0,Promise,function(){return i(this,function(n){switch(n.label){case 0:return"string"!=typeof e&&(0,a.throwError)(a.ERRORS.INVALID_PARAMS,"email must be a string"),"string"!=typeof t&&(0,a.throwError)(a.ERRORS.INVALID_PARAMS,"password must be a string"),[4,this.signUp({email:e,password:t})];case 1:return[2,n.sent()]}})})},e.prototype.signInWithEmailAndPassword=function(e,t){return o(this,void 0,Promise,function(){return i(this,function(n){switch(n.label){case 0:return"string"!=typeof e&&(0,a.throwError)(a.ERRORS.INVALID_PARAMS,"email must be a string"),"string"!=typeof t&&(0,a.throwError)(a.ERRORS.INVALID_PARAMS,"password must be a string"),[4,this.signIn({username:e,password:t})];case 1:return n.sent(),[2,this.createLoginState()]}})})},e.prototype.sendPasswordResetEmail=function(e){return o(this,void 0,Promise,function(){return i(this,function(t){switch(t.label){case 0:return"string"!=typeof e&&(0,a.throwError)(a.ERRORS.INVALID_PARAMS,"email must be a string"),[4,this.getVerification({email:e})];case 1:return t.sent(),[2]}})})},e.prototype.signInWithUsernameAndPassword=function(e,t){return o(this,void 0,Promise,function(){return i(this,function(n){switch(n.label){case 0:return"string"!=typeof e&&(0,a.throwError)(a.ERRORS.INVALID_PARAMS,"username must be a string"),"string"!=typeof t&&(0,a.throwError)(a.ERRORS.INVALID_PARAMS,"password must be a string"),[4,this.signIn({username:e,password:t})];case 1:return n.sent(),[2,this.createLoginState()]}})})},e.prototype.sendPhoneCode=function(e){return o(this,void 0,Promise,function(){var t;return i(this,function(n){switch(n.label){case 0:return"string"!=typeof e&&(0,a.throwError)(a.ERRORS.INVALID_PARAMS,"phoneNumber must be a string"),t=this.formatPhone(e),[4,this.getVerification({phone_number:t})];case 1:return n.sent(),[2,!0]}})})},e.prototype.signUpWithPhoneCode=function(e,t,n){return o(this,void 0,Promise,function(){var o;return i(this,function(i){switch(i.label){case 0:return"string"!=typeof e&&(0,a.throwError)(a.ERRORS.INVALID_PARAMS,"phoneNumber must be a string"),"string"!=typeof t&&(0,a.throwError)(a.ERRORS.INVALID_PARAMS,"phoneCode must be a string"),o=this.formatPhone(e),[4,this.signUp(r({phone_number:o,verification_code:t},n?{password:n}:{}))];case 1:return i.sent(),[2,this.createLoginState()]}})})},e.prototype.signInWithPhoneCodeOrPassword=function(e){return o(this,void 0,Promise,function(){var t,n,r,o;return i(this,function(i){switch(i.label){case 0:return t=e.phoneNumber,n=e.phoneCode,r=e.password,"string"!=typeof t&&(0,a.throwError)(a.ERRORS.INVALID_PARAMS,"phoneNumber must be a string"),o=this.formatPhone(t),r?[4,this.signIn({username:o,password:r})]:[3,2];case 1:return i.sent(),[3,5];case 2:return n?[4,this.signIn({username:o,verification_token:n})]:[3,4];case 3:return i.sent(),[3,5];case 4:(0,a.throwError)(a.ERRORS.INVALID_PARAMS,"phoneCode or password must be provided"),i.label=5;case 5:return[2,this.createLoginState()]}})})},e.prototype.forceResetPwdByPhoneCode=function(e){return o(this,void 0,Promise,function(){var t,n,r,o;return i(this,function(i){switch(i.label){case 0:return t=e.phoneNumber,n=e.phoneCode,r=e.password,"string"!=typeof t&&(0,a.throwError)(a.ERRORS.INVALID_PARAMS,"phoneNumber must be a string"),"string"!=typeof n&&(0,a.throwError)(a.ERRORS.INVALID_PARAMS,"phoneCode must be a string"),"string"!=typeof r&&(0,a.throwError)(a.ERRORS.INVALID_PARAMS,"password must be a string"),o=this.formatPhone(t),[4,this.resetPassword({phone_number:o,new_password:r,verification_token:n})];case 1:return i.sent(),[4,this.signIn({username:o,password:r})];case 2:return i.sent(),[2,this.createLoginState()]}})})},e.prototype.shouldRefreshAccessToken=function(e){throw new Error("[v1 兼容] shouldRefreshAccessToken() 在当前版本中无法实现。 建议使用 auth.onAuthStateChange(callback) 来监听 TOKEN_REFRESHED 事件替代。")},e.prototype.onLoginStateExpired=function(e){var t=this;this.onLoginStateChanged(function(n){(null==n?void 0:n.eventType)===s.LOGIN_STATE_CHANGED_TYPE.CREDENTIALS_ERROR&&e.call(t)})},e.prototype.onAccessTokenRefreshed=function(e){var t=this;this.onAuthStateChange(function(n){n===s.AUTH_STATE_CHANGED_TYPE.TOKEN_REFRESHED&&e.call(t)})},e.prototype.onAnonymousConverted=function(e){var t=this;this.onAuthStateChange(function(n){n===s.AUTH_STATE_CHANGED_TYPE.SIGNED_IN&&e.call(t)})},e.prototype.onLoginTypeChanged=function(e){var t=this;this.onAuthStateChange(function(n){n!==s.AUTH_STATE_CHANGED_TYPE.SIGNED_IN&&n!==s.AUTH_STATE_CHANGED_TYPE.SIGNED_OUT||e.call(t)})},e}();t.AuthV1Compat=d,t.applyUserV1Compat=function(e){e.prototype.linkWithTicket=function(e){return o(this,void 0,Promise,function(){return i(this,function(e){throw new Error("[v1 兼容] User.linkWithTicket() 在当前版本中无法实现。 建议使用 auth.signInWithCustomTicket(() => Promise.resolve(ticket)) 替代。")})})},e.prototype.linkWithRedirect=function(e){throw new Error("[v1 兼容] User.linkWithRedirect() 在当前版本中无法实现。 建议使用 auth.linkIdentity({ provider: 'providerId' }) 替代。")},e.prototype.updateEmail=function(e,t){return o(this,void 0,Promise,function(){return i(this,function(t){switch(t.label){case 0:return"string"!=typeof e&&(0,a.throwError)(a.ERRORS.INVALID_PARAMS,"newEmail must be a string"),[4,this.updateUserBasicInfo({email:e})];case 1:return t.sent(),[2]}})})},e.prototype.linkWithPhoneNumber=function(e,t){return o(this,void 0,Promise,function(){return i(this,function(e){throw new Error("[v1 兼容] User.linkWithPhoneNumber() 在当前版本中无法实现。 建议使用 auth.bindPhoneNumber({ phone_number, verification_token, sudo_token }) 替代。")})})},e.prototype.updatePhoneNumber=function(e,t){return o(this,void 0,Promise,function(){return i(this,function(e){throw new Error("[v1 兼容] User.updatePhoneNumber() 在当前版本中无法实现。 建议使用 auth.updateUser({ phone: newPhoneNumber }) 替代。")})})},e.prototype.unlink=function(e){return o(this,void 0,Promise,function(){return i(this,function(e){throw new Error("[v1 兼容] User.unlink() 在当前版本中无法实现。 建议使用 auth.unlinkIdentity({ provider: loginType }) 替代。")})})}}},304:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.registerAuth=void 0;var r=n(895);t.registerAuth=r.registerAuth;try{window.registerAuth=t.registerAuth}catch(e){}},413:function(e,t,n){var r=this&&this.__assign||function(){return r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},r.apply(this,arguments)},o=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))(function(o,i){function s(e){try{c(r.next(e))}catch(e){i(e)}}function a(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(s,a)}c((r=r.apply(e,t||[])).next())})},i=this&&this.__generator||function(e,t){var n,r,o,i,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function a(a){return function(c){return function(a){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,a[0]&&(s=0)),s;)try{if(n=1,r&&(o=2&a[0]?r.return:a[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,a[1])).done)return o;switch(r=0,o&&(a=[2&a[0],o.value]),a[0]){case 0:case 1:o=a;break;case 4:return s.label++,{value:a[1],done:!1};case 5:s.label++,r=a[1],a=[0];continue;case 7:a=s.ops.pop(),s.trys.pop();continue;default:if(!((o=(o=s.trys).length>0&&o[o.length-1])||6!==a[0]&&2!==a[0])){s=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]<o[3])){s.label=a[1];break}if(6===a[0]&&s.label<o[1]){s.label=o[1],o=a;break}if(o&&s.label<o[2]){s.label=o[2],s.ops.push(a);break}o[2]&&s.ops.pop(),s.trys.pop();continue}a=t.call(e,s)}catch(e){a=[6,e],r=0}finally{n=o=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,c])}}},s=this&&this.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Auth=void 0;var c=n(949),u=n(257),l=n(462),d=n(631),h=a(n(639)),p=n(308);function f(e,t){var r;return o(this,void 0,void 0,function(){var s,a=this;return i(this,function(c){s=function(){return o(a,void 0,void 0,function(){return i(this,function(e){switch(e.label){case 0:return e.trys.push([0,1,,6]),[2,n(814)];case 1:e.sent(),e.label=2;case 2:return e.trys.push([2,4,,5]),[4,Promise.resolve().then(n.t.bind(n,814,23))];case 3:return[2,e.sent()];case 4:return e.sent(),[2];case 5:return[3,6];case 6:return[2]}})})};try{if(((null===(r=null==t?void 0:t.root)||void 0===r?void 0:r.globalThis)||globalThis).IS_MP_BUILD)return[2];if(e)return[2,s()]}catch(t){if(e)return[2,s()]}return[2]})})}var m=function(){function e(e){var t=e.request,n=e.credentialsClient;if(!n){var o={apiOrigin:e.apiOrigin,apiPath:e.apiPath,clientId:e.clientId,storage:e.storage,env:e.env,baseRequest:e.baseRequest,anonymousSignInFunc:e.anonymousSignInFunc,wxCloud:e.wxCloud,onCredentialsError:e.onCredentialsError,headers:e.headers||{},i18n:e.i18n,debug:e.debug};n=new u.OAuth2Client(o)}if(!t){var i=n.request.bind(n),s=new l.Captcha(r({env:e.env,clientId:e.clientId,request:i,storage:e.storage,adapter:e.adapter,oauthInstance:this},e.captchaOptions));t=s.request.bind(s)}this.config={env:e.env,apiOrigin:e.apiOrigin,apiPath:e.apiPath,clientId:e.clientId,request:t,credentialsClient:n,storage:e.storage||u.defaultStorage,adapter:e.adapter}}return e.parseParamsToSearch=function(e){return Object.keys(e).forEach(function(t){e[t]||delete e[t]}),new h.default(e).toString()},e.prototype.getParamsByVersion=function(e,t){var n,r=(0,d.deepClone)(e),o=(null===(n={v2:c.ApiUrlsV2}[null==r?void 0:r.version])||void 0===n?void 0:n[t])||c.ApiUrls[t];return r&&delete r.version,{params:r,url:o}},e.prototype.signIn=function(e){return o(this,void 0,Promise,function(){var t,n,o,s;return i(this,function(i){switch(i.label){case 0:return t=e.version||"v1",(n=this.getParamsByVersion(e,"AUTH_SIGN_IN_URL")).params.query&&delete n.params.query,[4,this.getEncryptParams(n.params)];case 1:return o=i.sent(),[4,this.config.request(n.url,{method:"POST",body:o})];case 2:return s=i.sent(),[4,this.config.credentialsClient.setCredentials(r(r({},s),{version:t}))];case 3:return i.sent(),[2,Promise.resolve(s)]}})})},e.prototype.signInAnonymously=function(e,t){return void 0===e&&(e={}),void 0===t&&(t=!1),o(this,void 0,Promise,function(){var n;return i(this,function(r){switch(r.label){case 0:return[4,this.config.request(c.ApiUrls.AUTH_SIGN_IN_ANONYMOUSLY_URL,{method:"POST",body:e,useWxCloud:t})];case 1:return n=r.sent(),[4,this.config.credentialsClient.setCredentials(n)];case 2:return r.sent(),[2,Promise.resolve(n)]}})})},e.prototype.signUp=function(e){return o(this,void 0,Promise,function(){var t;return i(this,function(n){switch(n.label){case 0:return[4,this.config.request(c.ApiUrls.AUTH_SIGN_UP_URL,{method:"POST",body:e})];case 1:return t=n.sent(),[4,this.config.credentialsClient.setCredentials(t)];case 2:return n.sent(),[2,Promise.resolve(t)]}})})},e.prototype.signOut=function(e){return o(this,void 0,Promise,function(){var t,n,r,o;return i(this,function(i){switch(i.label){case 0:if(t={},!e)return[3,6];i.label=1;case 1:return i.trys.push([1,3,,4]),[4,this.config.request(c.ApiUrls.AUTH_SIGNOUT_URL,{method:"POST",withCredentials:!0,body:e})];case 2:return t=i.sent(),[3,4];case 3:return(n=i.sent()).error!==c.ErrorType.UNAUTHENTICATED&&console.log("sign_out_error",n),[3,4];case 4:return[4,this.config.credentialsClient.setCredentials()];case 5:return i.sent(),[2,t];case 6:return[4,this.config.credentialsClient.getAccessToken()];case 7:return r=i.sent(),[4,this.config.request(c.ApiUrls.AUTH_REVOKE_URL,{method:"POST",body:{token:r}})];case 8:return o=i.sent(),[4,this.config.credentialsClient.setCredentials()];case 9:return i.sent(),[2,Promise.resolve(o)]}})})},e.prototype.revokeAllDevices=function(){return o(this,void 0,Promise,function(){return i(this,function(e){switch(e.label){case 0:return[4,this.config.request(c.ApiUrls.AUTH_REVOKE_ALL_URL,{method:"DELETE",withCredentials:!0})];case 1:return e.sent(),[2]}})})},e.prototype.revokeDevice=function(e){return o(this,void 0,Promise,function(){return i(this,function(t){switch(t.label){case 0:return[4,this.config.request(c.ApiUrls.AUTHORIZED_DEVICES_DELETE_URL+e.device_id,{method:"DELETE",withCredentials:!0})];case 1:return t.sent(),[2]}})})},e.prototype.getVerification=function(e,t){return o(this,void 0,Promise,function(){var n,r;return i(this,function(o){switch(o.label){case 0:return n=!1,"CUR_USER"!==e.target?[3,1]:(n=!0,[3,3]);case 1:return[4,this.hasLoginState()];case 2:o.sent()&&(n=!0),o.label=3;case 3:return(r=(0,d.deepClone)(e)).phone_number&&!/^\+\d{1,3}\s+\d+/.test(r.phone_number)&&(r.phone_number="+86 ".concat(r.phone_number)),[2,this.config.request(c.ApiUrls.VERIFICATION_URL,{method:"POST",body:r,withCaptcha:(null==t?void 0:t.withCaptcha)||!1,withCredentials:n})]}})})},e.prototype.verify=function(e){return o(this,void 0,Promise,function(){var t,n;return i(this,function(o){switch(o.label){case 0:return t=this.getParamsByVersion(e,"VERIFY_URL"),[4,this.config.request(t.url,{method:"POST",body:t.params})];case 1:return n=o.sent(),"v2"!==(null==e?void 0:e.version)?[3,3]:[4,this.config.credentialsClient.setCredentials(r(r({},n),{version:"v2"}))];case 2:o.sent(),o.label=3;case 3:return[2,n]}})})},e.prototype.genProviderRedirectUri=function(t){return o(this,void 0,Promise,function(){var n,r,o,a,u;return i(this,function(i){return n=t.provider_redirect_uri,r=t.other_params,o=void 0===r?{}:r,a=s(t,["provider_redirect_uri","other_params"]),n&&!a.redirect_uri&&(a.redirect_uri=n),u="".concat(c.ApiUrls.PROVIDER_URI_URL,"?").concat(e.parseParamsToSearch(a)),Object.keys(o).forEach(function(e){var t=o[e];("sign_out_uri"!==e||(null==t?void 0:t.length)>0)&&(u+="&other_params[".concat(e,"]=").concat(encodeURIComponent(t)))}),[2,this.config.request(u,{method:"GET"})]})})},e.prototype.grantProviderToken=function(e,t){return void 0===t&&(t=!1),o(this,void 0,Promise,function(){return i(this,function(n){return[2,this.config.request(c.ApiUrls.PROVIDER_TOKEN_URL,{method:"POST",body:e,useWxCloud:t})]})})},e.prototype.patchProviderToken=function(e){return o(this,void 0,Promise,function(){return i(this,function(t){return[2,this.config.request(c.ApiUrls.PROVIDER_TOKEN_URL,{method:"PATCH",body:e})]})})},e.prototype.signInWithProvider=function(e,t){return void 0===t&&(t=!1),o(this,void 0,Promise,function(){var n,o;return i(this,function(i){switch(i.label){case 0:return n=this.getParamsByVersion(e,"AUTH_SIGN_IN_WITH_PROVIDER_URL"),[4,this.config.request(n.url,{method:"POST",body:n.params,useWxCloud:t})];case 1:return o=i.sent(),[4,this.config.credentialsClient.setCredentials(r(r({},o),{version:(null==e?void 0:e.version)||"v1"}))];case 2:return i.sent(),[2,Promise.resolve(o)]}})})},e.prototype.toBindIdentity=function(e){var t,n;return o(this,void 0,void 0,function(){var r,o,s,a;return i(this,function(i){switch(i.label){case 0:return(o=e.credentials)?[3,2]:[4,this.config.credentialsClient.localCredentials.getCredentials()];case 1:o=i.sent(),i.label=2;case 2:r=o,i.label=3;case 3:return i.trys.push([3,5,,6]),[4,this.bindWithProvider({provider_token:e.provider_token},r)];case 4:return i.sent(),s={data:{type:c.OAUTH_TYPE.BIND_IDENTITY,provider:e.provider},error:null},[3,6];case 5:return a=i.sent(),s={data:{type:c.OAUTH_TYPE.BIND_IDENTITY},error:new p.AuthError(a)},[3,6];case 6:return e.fireEvent&&(null===(n=null===(t=this.config.eventBus)||void 0===t?void 0:t.fire)||void 0===n||n.call(t,c.EVENTS.AUTH_STATE_CHANGED,{event:c.AUTH_STATE_CHANGED_TYPE.BIND_IDENTITY,info:s})),[2,s]}})})},e.prototype.getInitialSession=function(){return o(this,void 0,Promise,function(){var e,t,n,o,s,a,u,l,d,h,f,m,g,v,_;return i(this,function(i){switch(i.label){case 0:e={},i.label=1;case 1:if(i.trys.push([1,12,,13]),"undefined"==typeof window||"undefined"==typeof document)return[2,{data:null,error:null}];if(t=new URLSearchParams(null===location||void 0===location?void 0:location.search),n=t.get("code"),o=t.get("state"),!n||!o)return[2,{data:null,error:null}];s=null;try{s=JSON.parse(sessionStorage.getItem(o)||"null")}catch(e){}return e={type:null==s?void 0:s.type},a=t.get("error"),u=t.get("error_description"),a||u?[2,{data:e,error:new p.AuthError({message:u||a||"Unknown error from OAuth provider"})}]:(l=(null==s?void 0:s.provider)||t.get("provider"))?(d=location.origin+location.pathname,[4,this.grantProviderToken({provider_id:l,provider_redirect_uri:d,provider_code:n})]):[2,{data:e,error:new p.AuthError({message:"Provider is required for OAuth verification"})}];case 2:return h=i.sent().provider_token,f=void 0,m=null,g=void 0,s.type!==c.OAUTH_TYPE.BIND_IDENTITY?[3,5]:[4,this.config.credentialsClient.localCredentials.getCredentials()];case 3:return f=i.sent(),[4,this.toBindIdentity({provider:l,provider_token:h,credentials:f})];case 4:return g=i.sent(),[3,11];case 5:return s.type!==c.OAUTH_TYPE.SIGN_IN?[3,11]:(g=this.getParamsByVersion({provider:l},"AUTH_SIGN_IN_WITH_PROVIDER_URL"),[4,this.config.request(g.url,{method:"POST",body:{provider_token:h}})]);case 6:f=i.sent(),i.label=7;case 7:return i.trys.push([7,9,,10]),[4,this.getUserInfo({credentials:f})];case 8:return m=i.sent(),[3,10];case 9:return v=i.sent(),console.error("get user info error",v),[3,10];case 10:g={data:r(r({},e),{session:f,user:m}),error:null},i.label=11;case 11:t.delete("code"),t.delete("state"),t.delete("provider"),this.restoreUrlState(void 0===(null==s?void 0:s.search)?"?".concat(t.toString()):s.search,(null==s?void 0:s.hash)||location.hash);try{sessionStorage.removeItem(o)}catch(e){}return[2,g];case 12:return _=i.sent(),[2,{data:e,error:new p.AuthError(_)}];case 13:return[2]}})})},e.prototype.signInCustom=function(e){return o(this,void 0,Promise,function(){var t;return i(this,function(n){switch(n.label){case 0:return[4,this.config.request(c.ApiUrls.AUTH_SIGN_IN_CUSTOM,{method:"POST",body:e})];case 1:return t=n.sent(),[4,this.config.credentialsClient.setCredentials(t)];case 2:return n.sent(),[2,Promise.resolve(t)]}})})},e.prototype.signInWithWechat=function(e){return void 0===e&&(e={}),o(this,void 0,Promise,function(){var t;return i(this,function(n){switch(n.label){case 0:return[4,this.config.request(c.ApiUrls.AUTH_SIGN_IN_WITH_WECHAT_URL,{method:"POST",body:e})];case 1:return t=n.sent(),[4,this.config.credentialsClient.setCredentials(t)];case 2:return n.sent(),[2,Promise.resolve(t)]}})})},e.prototype.bindWithProvider=function(e,t){return o(this,void 0,Promise,function(){return i(this,function(n){return[2,this.config.request(c.ApiUrls.PROVIDER_BIND_URL,{method:"POST",body:e,withCredentials:!0,getCredentials:t?function(){return t}:void 0})]})})},e.prototype.getUserProfile=function(e){return o(this,void 0,Promise,function(){return i(this,function(t){return[2,this.getUserInfo(e)]})})},e.prototype.getUserInfo=function(e){var t,n,r;return void 0===e&&(e={}),o(this,void 0,Promise,function(){var o,s,a,c,u;return i(this,function(i){switch(i.label){case 0:return o=this.getParamsByVersion(e,"USER_ME_URL"),(null===(t=o.params)||void 0===t?void 0:t.query)&&(s=new h.default(o.params.query),o.url+="?".concat(s.toString())),[4,this.config.request(o.url,{method:"GET",withCredentials:!0,getCredentials:e.credentials?function(){return e.credentials}:void 0})];case 1:if((a=i.sent()).sub&&(a.uid=a.sub),null===(n=a.providers)||void 0===n?void 0:n.length)try{"undefined"!=typeof wx&&wx.getAccountInfoSync&&(c=null===(r=wx.getAccountInfoSync().miniProgram)||void 0===r?void 0:r.appId,(null==(u=a.providers.find(function(e){return e.id===c}))?void 0:u.provider_user_id)&&(a.open_id=u.provider_user_id))}catch(e){}return[2,a]}})})},e.prototype.getWedaUserInfo=function(){return o(this,void 0,Promise,function(){return i(this,function(e){switch(e.label){case 0:return[4,this.config.request(c.ApiUrls.WEDA_USER_URL,{method:"GET",withCredentials:!0})];case 1:return[2,e.sent()]}})})},e.prototype.deleteMe=function(t){return o(this,void 0,Promise,function(){var n,r;return i(this,function(o){return n=this.getParamsByVersion(t,"USER_ME_URL"),r="".concat(n.url,"?").concat(e.parseParamsToSearch(n.params)),[2,this.config.request(r,{method:"DELETE",withCredentials:!0})]})})},e.prototype.hasLoginState=function(){return o(this,void 0,Promise,function(){return i(this,function(e){switch(e.label){case 0:return e.trys.push([0,2,,3]),[4,this.config.credentialsClient.getAccessToken()];case 1:return e.sent(),[2,!0];case 2:return e.sent(),[2,!1];case 3:return[2]}})})},e.prototype.hasLoginStateSync=function(){return this.config.credentialsClient.getCredentialsSync()},e.prototype.getLoginState=function(){return o(this,void 0,Promise,function(){return i(this,function(e){return[2,this.config.credentialsClient.getCredentialsAsync()]})})},e.prototype.transByProvider=function(e){return o(this,void 0,Promise,function(){return i(this,function(t){return[2,this.config.request(c.ApiUrls.USER_TRANS_BY_PROVIDER_URL,{method:"PATCH",body:e,withCredentials:!0})]})})},e.prototype.grantToken=function(e){return o(this,void 0,Promise,function(){var t;return i(this,function(n){return t=this.getParamsByVersion(e,"AUTH_TOKEN_URL"),[2,this.config.request(t.url,{method:"POST",body:t.params})]})})},e.prototype.getProviders=function(){return o(this,void 0,Promise,function(){return i(this,function(e){return[2,this.config.request(c.ApiUrls.PROVIDER_LIST,{method:"GET",withCredentials:!0})]})})},e.prototype.unbindProvider=function(e){return o(this,void 0,Promise,function(){return i(this,function(t){return[2,this.config.request("".concat(c.ApiUrls.PROVIDER_UNBIND_URL,"/").concat(e.provider_id),{method:"DELETE",withCredentials:!0})]})})},e.prototype.checkPassword=function(e){return o(this,void 0,Promise,function(){return i(this,function(t){return[2,this.config.request("".concat(c.ApiUrls.CHECK_PWD_URL),{method:"POST",withCredentials:!0,body:e})]})})},e.prototype.editContact=function(e){return o(this,void 0,Promise,function(){return i(this,function(t){return[2,this.config.request("".concat(c.ApiUrls.BIND_CONTACT_URL),{method:"PATCH",withCredentials:!0,body:e})]})})},e.prototype.setPassword=function(e){return o(this,void 0,Promise,function(){return i(this,function(t){return[2,this.config.request("".concat(c.ApiUrls.AUTH_SET_PASSWORD),{method:"PATCH",withCredentials:!0,body:e})]})})},e.prototype.updatePasswordByOld=function(e){return o(this,void 0,Promise,function(){var t;return i(this,function(n){switch(n.label){case 0:return[4,this.sudo({password:e.old_password})];case 1:return t=n.sent(),[2,this.setPassword({sudo_token:t.sudo_token,new_password:e.new_password})]}})})},e.prototype.sudo=function(e){return o(this,void 0,Promise,function(){return i(this,function(t){return[2,this.config.request("".concat(c.ApiUrls.SUDO_URL),{method:"POST",withCredentials:!0,body:e})]})})},e.prototype.sendVerificationCodeToCurrentUser=function(e){return o(this,void 0,Promise,function(){return i(this,function(t){return e.target="CUR_USER",[2,this.config.request(c.ApiUrls.VERIFICATION_URL,{method:"POST",body:e,withCredentials:!0,withCaptcha:!0})]})})},e.prototype.changeBoundProvider=function(e){return o(this,void 0,Promise,function(){return i(this,function(t){return[2,this.config.request("".concat(c.ApiUrls.PROVIDER_LIST,"/").concat(e.provider_id,"/trans"),{method:"POST",body:{provider_trans_token:e.trans_token},withCredentials:!0})]})})},e.prototype.setUserProfile=function(e){return o(this,void 0,Promise,function(){return i(this,function(t){return[2,this.config.request(c.ApiUrls.USER_PRIFILE_URL,{method:"PATCH",body:e,withCredentials:!0})]})})},e.prototype.updateUserBasicInfo=function(e){return o(this,void 0,Promise,function(){return i(this,function(t){return[2,this.config.request(c.ApiUrls.USER_BASIC_EDIT_URL,{method:"POST",withCredentials:!0,body:e})]})})},e.prototype.queryUserProfile=function(e){return o(this,void 0,Promise,function(){var t;return i(this,function(n){return t=new h.default(e),[2,this.config.request("".concat(c.ApiUrls.USER_QUERY_URL,"?").concat(t.toString()),{method:"GET",withCredentials:!0})]})})},e.prototype.setCustomSignFunc=function(e){this.getCustomSignTicketFn=e},e.prototype.signInWithCustomTicket=function(){return o(this,void 0,Promise,function(){var e,t;return i(this,function(n){switch(n.label){case 0:return(e=this.getCustomSignTicketFn)?[4,e()]:[2,Promise.reject({error:"failed_precondition",error_description:"please use setCustomSignFunc to set custom sign function"})];case 1:return t=n.sent(),[2,this.signInCustom({provider_id:"custom",ticket:t})]}})})},e.prototype.resetPassword=function(e){return o(this,void 0,Promise,function(){return i(this,function(t){return[2,this.config.request(c.ApiUrls.AUTH_RESET_PASSWORD,{method:"POST",body:e})]})})},e.prototype.authorize=function(e){return o(this,void 0,Promise,function(){return i(this,function(t){return[2,this.config.request(c.ApiUrls.AUTHORIZE_URL,{method:"POST",withCredentials:!0,body:e})]})})},e.prototype.authorizeDevice=function(e){return o(this,void 0,Promise,function(){return i(this,function(t){return[2,this.config.request(c.ApiUrls.AUTHORIZE_DEVICE_URL,{method:"POST",withCredentials:!0,body:e})]})})},e.prototype.deviceAuthorize=function(e){return o(this,void 0,Promise,function(){return i(this,function(t){return[2,this.config.request(c.ApiUrls.AUTH_GET_DEVICE_CODE,{method:"POST",body:e})]})})},e.prototype.authorizeInfo=function(t){return o(this,void 0,Promise,function(){var n,r,o;return i(this,function(i){switch(i.label){case 0:return n="".concat(c.ApiUrls.AUTHORIZE_INFO_URL,"?").concat(e.parseParamsToSearch(t)),r=!0,o=!1,[4,this.hasLoginState()];case 1:return i.sent()&&(o=!0,r=!1),[2,this.config.request(n,{method:"GET",withBasicAuth:r,withCredentials:o})]}})})},e.prototype.checkUsername=function(e){return o(this,void 0,Promise,function(){return i(this,function(t){return[2,this.config.request(c.ApiUrls.CHECK_USERNAME,{method:"GET",body:e,withCredentials:!0})]})})},e.prototype.checkIfUserExist=function(e){return o(this,void 0,Promise,function(){var t;return i(this,function(n){return t=new h.default(e),[2,this.config.request("".concat(c.ApiUrls.CHECK_IF_USER_EXIST,"?").concat(t.toString()),{method:"GET"})]})})},e.prototype.loginScope=function(){return o(this,void 0,Promise,function(){return i(this,function(e){return[2,this.config.credentialsClient.getScope()]})})},e.prototype.loginGroups=function(){return o(this,void 0,Promise,function(){return i(this,function(e){return[2,this.config.credentialsClient.getGroups()]})})},e.prototype.refreshTokenForce=function(e){return o(this,void 0,void 0,function(){var t;return i(this,function(n){switch(n.label){case 0:return[4,this.config.credentialsClient.getCredentials()];case 1:return t=n.sent(),[4,this.config.credentialsClient.refreshToken(r(r({},t),{version:(null==e?void 0:e.version)||"v1"}))];case 2:return[2,n.sent()]}})})},e.prototype.getCredentials=function(){return o(this,void 0,void 0,function(){return i(this,function(e){return[2,this.config.credentialsClient.getCredentials()]})})},e.prototype.getPublicKey=function(){return o(this,void 0,Promise,function(){return i(this,function(e){return[2,this.config.request(c.ApiUrlsV2.AUTH_PUBLIC_KEY,{method:"POST",body:{}})]})})},e.prototype.getEncryptParams=function(e){return o(this,void 0,Promise,function(){var t,n,r,o,s,a;return i(this,function(i){switch(i.label){case 0:return t=e.isEncrypt,delete e.isEncrypt,n=(0,d.deepClone)(e),[4,f(t,this.config.adapter)];case 1:if(!(r=i.sent()))return[2,e];o="",s="",i.label=2;case 2:return i.trys.push([2,4,,5]),[4,this.getPublicKey()];case 3:if(a=i.sent(),o=a.public_key,s=a.public_key_thumbprint,!o||!s)throw a;return[3,5];case 4:throw i.sent();case 5:return[2,{params:r.getEncryptInfo({publicKey:o,payload:n}),public_key_thumbprint:s}]}})})},e.prototype.getProviderSubType=function(){return o(this,void 0,Promise,function(){return i(this,function(e){return[2,this.config.request(c.ApiUrls.GET_PROVIDER_TYPE,{method:"POST",body:{provider_id:"weda"}})]})})},e.prototype.verifyCaptchaData=function(e){var t=e.token,n=e.key;return o(this,void 0,void 0,function(){return i(this,function(e){return[2,this.config.request(c.ApiUrls.VERIFY_CAPTCHA_DATA_URL,{method:"POST",body:{token:t,key:n},withCredentials:!1})]})})},e.prototype.createCaptchaData=function(e){var t=e.state,n=e.redirect_uri,r=void 0===n?void 0:n;return o(this,void 0,void 0,function(){return i(this,function(e){return[2,this.config.request(c.ApiUrls.CAPTCHA_DATA_URL,{method:"POST",body:{state:t,redirect_uri:r},withCredentials:!1})]})})},e.prototype.getMiniProgramCode=function(e){return o(this,void 0,Promise,function(){return i(this,function(t){return[2,this.config.request(c.ApiUrls.GET_MINIPROGRAM_QRCODE,{method:"POST",body:e})]})})},e.prototype.getMiniProgramQrCodeStatus=function(e){return o(this,void 0,Promise,function(){return i(this,function(t){return[2,this.config.request(c.ApiUrls.GET_MINIPROGRAM_QRCODE_STATUS,{method:"POST",body:e})]})})},e.prototype.getUserBehaviorLog=function(e){return o(this,void 0,Promise,function(){var t,n;return i(this,function(r){return t={LOGIN:"query[action]=USER_LOGIN",MODIFY:"ne_query[action]=USER_LOGIN"},n="".concat(c.ApiUrls.GET_USER_BEHAVIOR_LOG,"?").concat(t[e.type],"&limit=").concat(e.limit).concat(e.page_token?"&page_token=".concat(e.page_token):""),[2,this.config.request(n,{method:"GET",withCredentials:!0})]})})},e.prototype.modifyPassword=function(e){return o(this,void 0,Promise,function(){var t,n,r,o,s,a;return i(this,function(i){switch(i.label){case 0:return t="",n="",[4,f(!0,this.config.adapter)];case 1:if(!(r=i.sent()))throw new Error("do not support encrypt, a encrypt util required.");i.label=2;case 2:return i.trys.push([2,4,,5]),[4,this.getPublicKey()];case 3:if(o=i.sent(),t=o.public_key,n=o.public_key_thumbprint,!t||!n)throw o;return[3,5];case 4:throw i.sent();case 5:return s=e.password?r.getEncryptInfo({publicKey:t,payload:e.password}):"",a=r.getEncryptInfo({publicKey:t,payload:e.new_password}),[2,this.config.request(c.ApiUrls.USER_BASIC_EDIT_URL,{method:"POST",withCredentials:!0,body:{user_id:e.user_id,encrypt_password:s,encrypt_new_password:a,public_key_thumbprint:n}})]}})})},e.prototype.modifyPasswordWithoutLogin=function(e){return o(this,void 0,Promise,function(){var t,n,r,o,s,a;return i(this,function(i){switch(i.label){case 0:return t="",n="",[4,f(!0,this.config.adapter)];case 1:if(!(r=i.sent()))throw new Error("do not support encrypt, a encrypt util required.");i.label=2;case 2:return i.trys.push([2,4,,5]),[4,this.getPublicKey()];case 3:if(o=i.sent(),t=o.public_key,n=o.public_key_thumbprint,!t||!n)throw o;return[3,5];case 4:throw i.sent();case 5:return s=e.password?r.getEncryptInfo({publicKey:t,payload:e.password}):"",a=r.getEncryptInfo({publicKey:t,payload:e.new_password}),[2,this.config.request(c.ApiUrlsV2.AUTH_RESET_PASSWORD,{method:"POST",body:{username:e.username,password:s,new_password:a,public_key_thumbprint:n}})]}})})},e.prototype.restoreUrlState=function(e,t){if(void 0!==e)try{var n=new URL(window.location.href);n.search=e,n.hash=t||"",window.history.replaceState(null,"",n.toString()),window.location.replace(n.toString())}catch(e){}},e}();t.Auth=m},308:function(e,t,n){var r,o=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.isAuthError=t.AuthError=t.AuthErrorCategory=void 0;var i,s=n(949);!function(e){e.PROVIDER_NOT_ENABLED="PROVIDER_NOT_ENABLED",e.INVALID_CREDENTIALS="INVALID_CREDENTIALS",e.USER_NOT_FOUND="USER_NOT_FOUND",e.USER_STATUS_ABNORMAL="USER_STATUS_ABNORMAL",e.SERVICE_ERROR="SERVICE_ERROR",e.INVALID_PARAMS="INVALID_PARAMS",e.AUTH_METHOD_MISMATCH="AUTH_METHOD_MISMATCH",e.RATE_LIMITED="RATE_LIMITED",e.CAPTCHA_REQUIRED="CAPTCHA_REQUIRED",e.CAPTCHA_INVALID="CAPTCHA_INVALID",e.MFA_REQUIRED="MFA_REQUIRED",e.PRECONDITION_FAILED="PRECONDITION_FAILED",e.VERIFICATION_FAILED="VERIFICATION_FAILED",e.UNKNOWN="UNKNOWN"}(i=t.AuthErrorCategory||(t.AuthErrorCategory={}));var a="https://tcb.cloud.tencent.com/dev?envId=#/identity/login-manage",c="https://docs.cloudbase.net/api-reference/webv3/initialization";function u(e,t){var n=(null==t?void 0:t.method)||"signIn",r={signInWithPassword:"「用户名密码登录」",signInAnonymously:"「匿名登录」",signInWithOtp:"「短信验证码登录」或「邮箱验证码登录」",signUp:"「短信验证码登录」或「邮箱验证码登录」",signInWithOAuth:"对应的第三方身份源",signInWithIdToken:"对应的第三方身份源",signInWithOpenId:"「微信小程序 OpenID 登录」",signInWithPhoneAuth:"「微信小程序手机号授权登录」",signInWithCustomTicket:"「自定义登录」",getVerification:"「短信验证码登录」或「邮箱验证码登录」",verify:"「短信验证码登录」或「邮箱验证码登录」",verifyOtp:"「短信验证码登录」或「邮箱验证码登录」",resetPasswordForEmail:"「邮箱验证码登录」",reauthenticate:"「短信验证码登录」或「邮箱验证码登录」"}[n]||"对应的登录方式";switch(e){case i.PROVIDER_NOT_ENABLED:return"[CloudBase Auth] 登录方式未开启\n\n"+" 当前调用的 ".concat(n,"() 所需的登录方式尚未在云开发控制台启用。\n")+" 需要开启的登录方式:".concat(r,"\n")+"\n 请按以下步骤开启:\n"+" 1. 打开云开发控制台:".concat(a,"\n")+" 2. 选择对应的云开发环境\n 3. 进入「登录授权」页面,在「登录方式」或「身份源列表」中开启所需的登录方式\n\n 各登录方法与所需登录方式的对应关系:\n - signInWithPassword → 「用户名密码登录」\n - signInAnonymously → 「匿名登录」\n - signInWithOtp/signUp → 「短信验证码登录」或「邮箱验证码登录」\n - signInWithOAuth/signInWithIdToken → 对应的第三方身份源\n\n 如使用 CLI/MCP 工具,可通过 auth 工具查询和配置身份源状态。\n"+" 更多帮助请参考文档:".concat(c);case i.INVALID_CREDENTIALS:return"[CloudBase Auth] 凭据验证失败\n\n"+" 调用 ".concat(n,"() 时凭据校验未通过。\n")+"\n 请按优先级逐项排查:\n 1. 确认用户名/邮箱/手机号是否拼写正确、格式完整\n 2. 确认密码是否正确(注意大小写、特殊字符、前后空格)\n 3. 确认用户账号确实存在(可通过 auth.isUsernameRegistered() 检查)\n 4. 确认凭据参数来源可靠(环境变量、配置文件中的值是否已正确设置)\n 5. 如使用加密登录(is_encrypt: true),请确认公钥版本正确\n\n 如忘记密码,可通过 auth.resetPasswordForEmail() 重置密码。\n\n 提示:如果是 AI agent / 自动化测试场景,请确认 ENV_ID、USERNAME、PASSWORD\n 等环境变量已正确传入,且对应用户已在目标环境中注册。";case i.USER_NOT_FOUND:return"[CloudBase Auth] 用户不存在\n\n 请检查以下项目:\n 1. 确认用户名/邮箱/手机号是否正确\n 2. 确认是在正确的云开发环境(envId)下操作\n 3. 如果是新用户,请先通过 auth.signUp() 注册\n"+" 4. 也可在云开发控制台手动创建用户:".concat(a,"\n")+"\n 提示:不同环境(开发/测试/生产)的用户库是隔离的,请确认 envId 正确。";case i.USER_STATUS_ABNORMAL:return"[CloudBase Auth] 用户状态异常\n\n 当前用户账号可能处于以下状态之一:\n - 账号已被封禁\n - 账号正在审核中\n - 账号已被锁定(多次密码错误)\n\n"+" 请联系管理员在云开发控制台检查用户状态:".concat(a);case i.SERVICE_ERROR:return"[CloudBase Auth] 服务异常\n\n 请检查以下项目:\n 1. 网络连接是否正常\n 2. 云开发环境是否正常运行\n 3. 稍后重试,如持续失败请联系技术支持\n\n 提示:如果是超时错误,请检查网络环境和请求频率。\n 常见服务端错误:smtp 未配置、短信服务未配置、wedaapis 未设置等。";case i.INVALID_PARAMS:if((null==t?void 0:t.errorCode)===s.AuthErrorCode.MISSING_REQUIRED_PARAM||(null==t?void 0:t.code)===s.ErrorType.MISSING_REQUIRED_PARAM){var o=["verifyOtp","signInWithOtp","signUp"].includes(n)?"\n 若在校验验证码阶段缺参:\n - 独立调用 auth.verifyOtp() 时 messageId 为必填,请补上 params.messageId。\n - 推荐改用发码接口返回的回调(SDK 会自动携带 messageId):\n const { data } = await auth.signInWithOtp({ phone })\n await data.verifyOtp({ token })\n // 或 auth.signUp({ phone }) 返回的 data.verifyOtp\n":"";return"[CloudBase Auth] 缺少必填参数\n\n"+" 调用 auth.".concat(n,"() 时缺少必填参数。\n")+" 这是客户端入参问题,不是控制台通道配置问题。\n\n 修复方式:\n"+" 1. 查看 error.message 中的参数路径,补上缺失字段。\n".concat(o,"\n 参考 API 文档确认各参数的格式和约束:").concat(c)}return"[CloudBase Auth] 参数错误\n\n 请检查传入的参数是否符合要求:\n - 不能同时输入手机号和邮箱\n - 手机号格式需正确(如 +86 开头)\n - 必须提供手机号或邮箱\n\n"+" 参考 API 文档确认各参数的格式和约束:".concat(c);case i.AUTH_METHOD_MISMATCH:return"[CloudBase Auth] 登录方式不匹配\n\n"+" 调用 ".concat(n,"() 时遇到错误,可能原因:\n")+" - 匿名登录失败后尝试了用户名密码登录,但凭据不正确或用户不存在\n - 应使用匿名登录但传入了密码参数\n - 应使用密码登录但未传入正确的凭据\n\n 建议:\n 1. 明确当前场景需要的登录方式:\n - 无需用户注册 → auth.signInAnonymously()\n - 有用户名和密码 → auth.signInWithPassword({ username, password })\n - 第三方平台 → auth.signInWithOAuth({ provider })\n 2. 不要在同一流程中混合使用不同的登录方式\n 3. 每种登录方式需要在控制台开启对应的身份源\n"+" 4. 控制台地址:".concat(a);case i.RATE_LIMITED:return"[CloudBase Auth] 发送频率受限\n\n 验证码发送过于频繁,已触发频率限制。\n\n 限制规则:\n - 手机号:每分钟最多 1 条,每天有上限\n - 邮箱:每分钟有上限,每天有上限(默认 50 条)\n\n 建议:\n 1. 检查 error.retryAfter 获取建议等待时间\n 2. 在 UI 中显示倒计时,防止用户重复点击\n 3. 如业务需要更高频率,请联系技术支持调整限额";case i.CAPTCHA_REQUIRED:return"[CloudBase Auth] 需要滑块验证码\n\n 当前操作触发了风控策略,需要完成滑块验证。\n\n 处理方式:\n 1. 调用滑块验证码 SDK 展示验证组件\n 2. 用户完成验证后,将 captcha_token 附带到请求中重新发送\n 3. 可通过 getVerification 的 options.withCaptcha 参数自动携带验证码";case i.CAPTCHA_INVALID:return"[CloudBase Auth] 滑块验证码校验失败\n\n 提交的验证码 token 校验未通过(可能已过期或 client_id 不匹配)。\n\n 处理方式:\n 1. 刷新滑块验证码,让用户重新验证\n 2. 确认 captcha 组件初始化的 client_id 与认证配置一致";case i.MFA_REQUIRED:return"[CloudBase Auth] 需要 MFA 验证\n\n 当前操作要求用户绑定手机号进行多因素认证 (MFA)。\n\n 处理方式:\n 1. 引导用户进入手机号绑定流程\n 2. 绑定完成后重新执行原操作\n 3. error 中可能包含 MFA 详情信息";case i.PRECONDITION_FAILED:return"[CloudBase Auth] 前置条件不满足\n\n 当前操作的前置条件不满足,常见原因:\n - 该手机号/邮箱已被其他账号绑定\n - 目标用户不存在或已存在(与 target 参数冲突)\n - 当前邮箱/手机号未注册用户\n\n 请根据 error.message 中的具体描述处理。";case i.VERIFICATION_FAILED:return'[CloudBase Auth] 验证码校验失败\n\n 验证码验证未通过,常见原因:\n - 验证码已过期(通常有效期为几分钟)\n - 验证码输入不正确\n - verification_id 无效或已被使用\n - 验证码不属于当前项目(project id does not match)\n\n 处理方式:\n 1. 提示用户"验证码已过期或不正确,请重新获取"\n 2. 调用 getVerification() 重新发送验证码\n 3. 确保 verification_id 与最新发送的验证码对应\n\n 注意:每次重新发送验证码后,之前的 verification_id 即失效。';default:return"[CloudBase Auth] 操作失败\n\n 如果问题持续存在,建议:\n"+" 1. 检查云开发控制台的认证配置:".concat(a,"\n")+" 2. 到官方问答社区提问:https://cnb.cool/tencent/cloud/cloudbase/community/-/issues\n"+" 3. 查阅文档:".concat(c)}}function l(e){return e&&{signInWithPassword:"当前使用「用户名密码登录」,需确保:\n ✓ 控制台已开启「用户名密码登录」\n ✓ 用户已注册且凭据正确\n 如果不需要用户系统,建议改用 auth.signInAnonymously()",signInAnonymously:"当前使用「匿名登录」,需确保:\n ✓ 控制台已开启「匿名登录」\n 注意:匿名用户无需用户名密码,适用于快速体验或临时访问场景",signInWithOtp:"当前使用「OTP 验证码登录」,需确保:\n ✓ 控制台已开启「短信验证码登录」或「邮箱验证码登录」",signInWithOAuth:"当前使用「第三方 OAuth 登录」,需确保:\n ✓ 控制台已配置并开启对应的第三方身份源"}[e]||""}var d=function(e){function t(t,n){var r=this,o=h(t);return(r=e.call(this,o?t.message:t.error_description||t.message)||this).__isAuthError=!0,r.name="AuthError",o?(r.status=t.status,r.code=t.code,r.errorCode=t.errorCode,r.requestId=t.requestId,r.category=t.category,r.retryAfter=t.retryAfter,r.helpMessage=u(r.category,{method:null==n?void 0:n.method,errorCode:r.errorCode,code:r.code}),r.loginMethodHint=l(null==n?void 0:n.method),r):(r.status=t.error,r.code=String(t.error||t.error_code||"unknown").toLowerCase(),r.errorCode="number"==typeof t.error_code?t.error_code:"string"==typeof t.error_code&&parseInt(t.error_code,10)||void 0,r.requestId=t.requestId,r.category=function(e,t,n){if(!e&&!t&&!n)return i.UNKNOWN;try{var r=(e||"").toLowerCase(),o="string"==typeof n?parseInt(n,10):n;return o===s.AuthErrorCode.MISSING_REQUIRED_PARAM||t===s.ErrorType.MISSING_REQUIRED_PARAM?i.INVALID_PARAMS:o===s.AuthErrorCode.CAPTCHA_REQUIRED||t===s.ErrorType.CAPTCHA_REQUIRED?i.CAPTCHA_REQUIRED:o===s.AuthErrorCode.CAPTCHA_INVALID||t===s.ErrorType.CAPTCHA_INVALID?i.CAPTCHA_INVALID:o===s.AuthErrorCode.MFA_PHONE_REQUIRED||t===s.ErrorType.MFA_PHONE_REQUIRED?i.MFA_REQUIRED:o===s.AuthErrorCode.LOGIN_TYPE_DISABLED||t===s.ErrorType.LOGIN_TYPE_DISABLED?i.PROVIDER_NOT_ENABLED:o===s.AuthErrorCode.RESOURCE_EXHAUSTED||t===s.ErrorType.RESOURCE_EXHAUSTED?i.RATE_LIMITED:o===s.AuthErrorCode.INTERNAL||o===s.AuthErrorCode.UNAVAILABLE||o===s.AuthErrorCode.UNIMPLEMENTED||o===s.AuthErrorCode.ABORTED?i.SERVICE_ERROR:o===s.AuthErrorCode.NOT_FOUND?i.USER_NOT_FOUND:o===s.AuthErrorCode.UNAUTHENTICATED?i.INVALID_CREDENTIALS:o===s.AuthErrorCode.INVALID_ARGUMENT&&(r.includes("验证码")||r.includes("verification")||r.includes("verification_code")||r.includes("verification_id")||r.includes("does not match")||r.includes("token expired")||r.includes("token error")||r.includes("过期"))?i.VERIFICATION_FAILED:t===s.ErrorType.PROVIDER_NOT_ENABLED||t===s.ErrorType.LOGIN_METHOD_DISABLED||r.includes("身份源")||r.includes("开启")||r.includes("identity provider")||r.includes("provider not enabled")||r.includes("login method")||r.includes("登录方式")||r.includes("not enabled")||r.includes("未开启")||r.includes("未启用")||r.includes("请联系开发者")||r.includes("anonymous login is not enabled")||r.includes("匿名登录未开启")?i.PROVIDER_NOT_ENABLED:t===s.ErrorType.FAILED_PRECONDITION||o===s.AuthErrorCode.FAILED_PRECONDITION&&!r.includes("请联系开发者")?r.includes("不存在")||r.includes("not found")||r.includes("未注册")?i.USER_NOT_FOUND:i.PRECONDITION_FAILED:t===s.ErrorType.INVALID_PASSWORD||t===s.ErrorType.INVALID_GRANT||t===s.ErrorType.INVALID_VERIFICATION_CODE||t===s.ErrorType.INVALID_USERNAME_OR_PASSWORD||t===s.ErrorType.INVALID_CREDENTIALS||t===s.ErrorType.WRONG_PASSWORD||t===s.ErrorType.UNAUTHENTICATED||t===s.ErrorType.INVALID_TWO_FACTOR||t===s.ErrorType.INVALID_TWO_FACTOR_RECOVERY||t===s.ErrorType.PASSWORD_NOT_SET||r.includes("密码不正确")||r.includes("password")||r.includes("invalid_password")||r.includes("凭据")||r.includes("credentials")||r.includes("验证码")||r.includes("verification")||r.includes("invalid_verification_code")||r.includes("invalid_username_or_password")||r.includes("username or password")||r.includes("用户名或密码")||r.includes("wrong password")||r.includes("incorrect password")?i.INVALID_CREDENTIALS:t===s.ErrorType.NOT_FOUND||t===s.ErrorType.USER_NOT_FOUND||r.includes("用户不存在")||r.includes("not found")||r.includes("user not found")||r.includes("no such user")||r.includes("user does not exist")?i.USER_NOT_FOUND:t===s.ErrorType.USER_BLOCKED||t===s.ErrorType.USER_PENDING||t===s.ErrorType.UNDER_REVIEW||t===s.ErrorType.INVALID_STATUS||r.includes("被封禁")||r.includes("blocked")||r.includes("pending")||r.includes("审核")||r.includes("review")||r.includes("locked")||r.includes("已锁定")?i.USER_STATUS_ABNORMAL:t===s.ErrorType.SERVER_ERROR||t===s.ErrorType.UNAVAILABLE||t===s.ErrorType.TEMPORARILY_UNAVAILABLE||t===s.ErrorType.INTERNAL||t===s.ErrorType.UNREACHABLE||t===s.ErrorType.DEADLINE_EXCEEDED||t===s.ErrorType.DATA_LOSS||t===s.ErrorType.ABORTED||r.includes("network")||r.includes("timeout")||r.includes("timed out")||r.includes("超时")||r.includes("smtp is not set")||r.includes("sms sender does not config")?i.SERVICE_ERROR:t===s.ErrorType.INVALID_ARGUMENT||t===s.ErrorType.INVALID_REQUEST||t===s.ErrorType.INVALID_SCOPE||t===s.ErrorType.INVALID_REQUEST_URI||t===s.ErrorType.INVALID_REQUEST_OBJECT||o===s.AuthErrorCode.INVALID_ARGUMENT?i.INVALID_PARAMS:t===s.ErrorType.PERMISSION_DENIED||t===s.ErrorType.ACCESS_DENIED||t===s.ErrorType.UNAUTHORIZED_CLIENT?i.PROVIDER_NOT_ENABLED:i.UNKNOWN}catch(e){return t}}(r.message,r.status,r.errorCode),r.helpMessage=u(r.category,{method:null==n?void 0:n.method,errorCode:r.errorCode,code:r.code}),r.loginMethodHint=l(null==n?void 0:n.method),r.category===i.RATE_LIMITED&&(r.retryAfter=t.retry_after||t.retryAfter||void 0),r)}return o(t,e),t.prototype.toJSON=function(){return{name:this.name,message:this.message,code:this.code,errorCode:this.errorCode,status:this.status,requestId:this.requestId,category:this.category,retryAfter:this.retryAfter}},t}(Error);function h(e){return"object"==typeof e&&null!==e&&"__isAuthError"in e}t.AuthError=d,t.isAuthError=h},949:function(e,t){var n,r,o,i,s,a;Object.defineProperty(t,"__esModule",{value:!0}),t.VerificationUsage=t.DEFAULT_NODE_ACCESS_SCOPE=t.OAUTH_TYPE=t.EVENTS=t.AUTH_STATE_CHANGED_TYPE=t.LOGIN_STATE_CHANGED_TYPE=t.AuthErrorCode=t.ErrorType=t.VerificationUsages=t.ApiUrlsV2=t.ApiUrls=t.AUTH_API_PREFIX=void 0,t.AUTH_API_PREFIX="/auth",(a=t.ApiUrls||(t.ApiUrls={})).AUTH_SIGN_UP_URL="/v1/signup",a.AUTH_TOKEN_URL="/v1/token",a.AUTH_REVOKE_URL="/v1/revoke",a.WEDA_USER_URL="/v1/plugin/weda/userinfo",a.AUTH_RESET_PASSWORD="/v1/reset",a.AUTH_GET_DEVICE_CODE="/v1/device/code",a.CHECK_USERNAME="/v1/checkUsername",a.CHECK_IF_USER_EXIST="/v1/checkIfUserExist",a.GET_PROVIDER_TYPE="/v1/mgr/provider/providerSubType",a.AUTH_SIGN_IN_URL="/v1/signin",a.AUTH_SIGN_IN_ANONYMOUSLY_URL="/v1/signin/anonymously",a.AUTH_SIGN_IN_WITH_PROVIDER_URL="/v1/signin/with/provider",a.AUTH_SIGN_IN_WITH_WECHAT_URL="/v1/signin/wechat/noauth",a.AUTH_SIGN_IN_CUSTOM="/v1/signin/custom",a.PROVIDER_TOKEN_URL="/v1/provider/token",a.PROVIDER_URI_URL="/v1/provider/uri",a.USER_ME_URL="/v1/user/me",a.AUTH_SIGNOUT_URL="/v1/user/signout",a.USER_QUERY_URL="/v1/user/query",a.USER_PRIFILE_URL="/v1/user/profile",a.USER_BASIC_EDIT_URL="/v1/user/basic/edit",a.USER_TRANS_BY_PROVIDER_URL="/v1/user/trans/by/provider",a.PROVIDER_LIST="/v1/user/provider",a.PROVIDER_BIND_URL="/v1/user/provider/bind",a.PROVIDER_UNBIND_URL="/v1/user/provider",a.CHECK_PWD_URL="/v1/user/sudo",a.SUDO_URL="/v1/user/sudo",a.BIND_CONTACT_URL="/v1/user/contact",a.AUTH_SET_PASSWORD="/v1/user/password",a.AUTHORIZE_DEVICE_URL="/v1/user/device/authorize",a.AUTHORIZE_URL="/v1/user/authorize",a.AUTHORIZE_INFO_URL="/v1/user/authorize/info",a.AUTHORIZED_DEVICES_DELETE_URL="/v1/user/authorized/devices/",a.AUTH_REVOKE_ALL_URL="/v1/user/revoke/all",a.GET_USER_BEHAVIOR_LOG="/v1/user/security/history",a.VERIFICATION_URL="/v1/verification",a.VERIFY_URL="/v1/verification/verify",a.CAPTCHA_DATA_URL="/v1/captcha/data",a.VERIFY_CAPTCHA_DATA_URL="/v1/captcha/data/verify",a.GET_CAPTCHA_URL="/v1/captcha/init",a.GET_MINIPROGRAM_QRCODE="/v1/qrcode/generate",a.GET_MINIPROGRAM_QRCODE_STATUS="/v1/qrcode/get/status",(s=t.ApiUrlsV2||(t.ApiUrlsV2={})).AUTH_SIGN_IN_URL="/v2/signin/username",s.AUTH_TOKEN_URL="/v2/token",s.USER_ME_URL="/v2/user/me",s.VERIFY_URL="/v2/signin/verificationcode",s.AUTH_SIGN_IN_WITH_PROVIDER_URL="/v2/signin/with/provider",s.AUTH_PUBLIC_KEY="/v2/signin/publichkey",s.AUTH_RESET_PASSWORD="/v2/signin/password/update",(i=t.VerificationUsages||(t.VerificationUsages={})).REGISTER="REGISTER",i.SIGN_IN="SIGN_IN",i.PASSWORD_RESET="PASSWORD_RESET",i.EMAIL_ADDRESS_CHANGE="EMAIL_ADDRESS_CHANGE",i.PHONE_NUMBER_CHANGE="PHONE_NUMBER_CHANGE",(o=t.ErrorType||(t.ErrorType={})).UNREACHABLE="unreachable",o.LOCAL="local",o.CANCELLED="cancelled",o.UNKNOWN="unknown",o.UNAUTHENTICATED="unauthenticated",o.RESOURCE_EXHAUSTED="resource_exhausted",o.FAILED_PRECONDITION="failed_precondition",o.INVALID_ARGUMENT="invalid_argument",o.DEADLINE_EXCEEDED="deadline_exceeded",o.NOT_FOUND="not_found",o.ALREADY_EXISTS="already_exists",o.PERMISSION_DENIED="permission_denied",o.ABORTED="aborted",o.OUT_OF_RANGE="out_of_range",o.UNIMPLEMENTED="unimplemented",o.INTERNAL="internal",o.UNAVAILABLE="unavailable",o.DATA_LOSS="data_loss",o.INVALID_PASSWORD="invalid_password",o.PASSWORD_NOT_SET="password_not_set",o.INVALID_STATUS="invalid_status",o.USER_PENDING="user_pending",o.USER_BLOCKED="user_blocked",o.INVALID_VERIFICATION_CODE="invalid_verification_code",o.TWO_FACTOR_REQUIRED="two_factor_required",o.INVALID_TWO_FACTOR="invalid_two_factor",o.INVALID_TWO_FACTOR_RECOVERY="invalid_two_factor_recovery",o.UNDER_REVIEW="under_review",o.INVALID_REQUEST="invalid_request",o.UNAUTHORIZED_CLIENT="unauthorized_client",o.ACCESS_DENIED="access_denied",o.UNSUPPORTED_RESPONSE_TYPE="unsupported_response_type",o.INVALID_SCOPE="invalid_scope",o.INVALID_GRANT="invalid_grant",o.SERVER_ERROR="server_error",o.TEMPORARILY_UNAVAILABLE="temporarily_unavailable",o.INTERACTION_REQUIRED="interaction_required",o.LOGIN_REQUIRED="login_required",o.ACCOUNT_SELECTION_REQUIRED="account_selection_required",o.CONSENT_REQUIRED="consent_required",o.INVALID_REQUEST_URI="invalid_request_uri",o.INVALID_REQUEST_OBJECT="invalid_request_object",o.REQUEST_NOT_SUPPORTED="request_not_supported",o.REQUEST_URI_NOT_SUPPORTED="request_uri_not_supported",o.REGISTRATION_NOT_SUPPORTED="registration_not_supported",o.CAPTCHA_REQUIRED="captcha_required",o.CAPTCHA_INVALID="captcha_invalid",o.PROVIDER_NOT_ENABLED="provider_not_enabled",o.LOGIN_METHOD_DISABLED="login_method_disabled",o.INVALID_USERNAME_OR_PASSWORD="invalid_username_or_password",o.INVALID_CREDENTIALS="invalid_credentials",o.WRONG_PASSWORD="wrong_password",o.USER_NOT_FOUND="user_not_found",o.MFA_PHONE_REQUIRED="mfa_phone_required",o.LOGIN_TYPE_DISABLED="login_type_disabled",o.PROVIDER_ERROR="provider_error",o.MISSING_REQUIRED_PARAM="missing_required_param",(r=t.AuthErrorCode||(t.AuthErrorCode={}))[r.INVALID_ARGUMENT=3]="INVALID_ARGUMENT",r[r.NOT_FOUND=5]="NOT_FOUND",r[r.PERMISSION_DENIED=7]="PERMISSION_DENIED",r[r.RESOURCE_EXHAUSTED=8]="RESOURCE_EXHAUSTED",r[r.FAILED_PRECONDITION=9]="FAILED_PRECONDITION",r[r.ABORTED=10]="ABORTED",r[r.UNIMPLEMENTED=12]="UNIMPLEMENTED",r[r.INTERNAL=13]="INTERNAL",r[r.UNAVAILABLE=14]="UNAVAILABLE",r[r.UNAUTHENTICATED=16]="UNAUTHENTICATED",r[r.MISSING_REQUIRED_PARAM=4e3]="MISSING_REQUIRED_PARAM",r[r.CAPTCHA_REQUIRED=4001]="CAPTCHA_REQUIRED",r[r.CAPTCHA_INVALID=4002]="CAPTCHA_INVALID",r[r.PROVIDER_ERROR=4019]="PROVIDER_ERROR",r[r.UNAUTHORIZED_CLIENT=4022]="UNAUTHORIZED_CLIENT",r[r.MFA_PHONE_REQUIRED=4042]="MFA_PHONE_REQUIRED",r[r.LOGIN_TYPE_DISABLED=4045]="LOGIN_TYPE_DISABLED",t.LOGIN_STATE_CHANGED_TYPE={SIGN_OUT:"sign_out",SIGN_IN:"sign_in",CREDENTIALS_ERROR:"credentials_error"},t.AUTH_STATE_CHANGED_TYPE={SIGNED_OUT:"SIGNED_OUT",SIGNED_IN:"SIGNED_IN",INITIAL_SESSION:"INITIAL_SESSION",PASSWORD_RECOVERY:"PASSWORD_RECOVERY",TOKEN_REFRESHED:"TOKEN_REFRESHED",USER_UPDATED:"USER_UPDATED",BIND_IDENTITY:"BIND_IDENTITY"},t.EVENTS={LOGIN_STATE_CHANGED:"loginStateChanged",AUTH_STATE_CHANGED:"authStateChanged"},t.OAUTH_TYPE={SIGN_IN:"sign_in",BIND_IDENTITY:"bind_identity"},t.DEFAULT_NODE_ACCESS_SCOPE="node-sdk-scope",(n=t.VerificationUsage||(t.VerificationUsage={})).EMAIL="email",n.RECOVERY="recovery",n.REAUTHENTICATION="reauthentication"},538:function(e,t){Object.defineProperty(t,"__esModule",{value:!0})},84:function(e,t,n){var r=this&&this.__assign||function(){return r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},r.apply(this,arguments)},o=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))(function(o,i){function s(e){try{c(r.next(e))}catch(e){i(e)}}function a(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(s,a)}c((r=r.apply(e,t||[])).next())})},i=this&&this.__generator||function(e,t){var n,r,o,i,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function a(a){return function(c){return function(a){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,a[0]&&(s=0)),s;)try{if(n=1,r&&(o=2&a[0]?r.return:a[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,a[1])).done)return o;switch(r=0,o&&(a=[2&a[0],o.value]),a[0]){case 0:case 1:o=a;break;case 4:return s.label++,{value:a[1],done:!1};case 5:s.label++,r=a[1],a=[0];continue;case 7:a=s.ops.pop(),s.trys.pop();continue;default:if(!((o=(o=s.trys).length>0&&o[o.length-1])||6!==a[0]&&2!==a[0])){s=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]<o[3])){s.label=a[1];break}if(6===a[0]&&s.label<o[1]){s.label=o[1],o=a;break}if(o&&s.label<o[2]){s.label=o[2],s.ops.push(a);break}o[2]&&s.ops.pop(),s.trys.pop();continue}a=t.call(e,s)}catch(e){a=[6,e],r=0}finally{n=o=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,c])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.openURIWithCallback=void 0;var s=n(689),a=n(616),c=function(e,t){var n;return function(){for(var r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];clearTimeout(n),n=setTimeout(function(){return e.apply(null,r)},t)}},u=new s.CloudbaseEventEmitter,l="resolveCaptchaData",d="padding:10px 8px;background:#007bff;color:#fff;border:none;border-radius:4px;cursor:pointer;flex:1;white-space:nowrap;margin-left:10px",h="width:100%;padding:10px;background:#007bff;color:#fff;border:none;border-radius:4px;cursor:pointer",p="background:#6c757d;cursor:not-allowed";t.openURIWithCallback=function(e,t){return o(void 0,void 0,Promise,function(){var n,s,f,m;return i(this,function(g){return n=(0,a.parseCaptcha)(e),s=n.captchaData,f=n.state,m=n.token,function(e){var t=e.oauthInstance,n=e.captchaState,s="captcha-image",a=function(){return o(void 0,void 0,void 0,function(){var e,o;return i(this,function(i){switch(i.label){case 0:return i.trys.push([0,2,,3]),[4,t.createCaptchaData({state:n.state})];case 1:return e=i.sent(),n=r(r({},n),{captchaData:e.data,token:e.token}),document.getElementById(s).src=e.data,[3,3];case 2:return o=i.sent(),console.error("刷新图形验证码失败",o),[3,3];case 3:return[2]}})})},f=function(e,t,n){var r=document.createElement(e);return t&&(r.style.cssText=t),n&&(r.textContent=n),r},m=f("div","position:fixed;top:0;left:0;width:100%;height:100%;background:rgba(0,0,0,0.5);z-index:999"),g=f("div","position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);width:320px;padding:20px;background:#fff;border-radius:8px;box-shadow:0 0 10px rgba(0,0,0,0.2);z-index:1000");g.appendChild(f("p","margin-bottom:15px","请输入你看到的字符:"));var v=f("div","display:flex;align-items:center;justify-content:space-between;margin-bottom:15px"),_=f("img","width:100%;height:auto;border:1px solid #eee");_.id=s,_.src=n.captchaData,v.appendChild(_);var y=f("button",d,"刷新");y.onclick=c(function(){return o(void 0,void 0,void 0,function(){return i(this,function(e){switch(e.label){case 0:y.textContent="加载中...",y.disabled=!0,y.style.cssText="".concat(d,";").concat(p),e.label=1;case 1:return e.trys.push([1,,3,4]),[4,a()];case 2:return e.sent(),[3,4];case 3:return y.textContent="刷新",y.disabled=!1,y.style.cssText=d,[7];case 4:return[2]}})})},500),v.appendChild(y),g.appendChild(v);var b=f("input","width:100%;padding:14px 16px;margin-bottom:15px;box-sizing:border-box;border:2px solid #e8ecf4;border-radius:10px;font-size:15px");b.type="text",b.placeholder="输入字符",b.maxLength=4,g.appendChild(b);var w=f("div","color:#dc3545;font-size:12px;margin-bottom:10px;display:none;padding:8px;background:#f8d7da;border:1px solid #f5c6cb;border-radius:4px");g.appendChild(w);var E=function(e){w.textContent=e,w.style.display="block"},I=f("button",h,"确定");I.onclick=c(function(){return o(void 0,void 0,void 0,function(){var e,r,o,s;return i(this,function(i){switch(i.label){case 0:if(!(e=b.value.trim()))return E("请输入字符"),[2];w.style.display="none",I.textContent="验证中...",I.disabled=!0,I.style.cssText="".concat(h,";").concat(p),i.label=1;case 1:return i.trys.push([1,3,5,6]),[4,t.verifyCaptchaData({token:n.token,key:e})];case 2:return r=i.sent(),u.fire(l,r),console.log("图形验证码校验成功"),document.body.removeChild(m),document.body.removeChild(g),[3,6];case 3:return o=i.sent(),console.error("图形验证码校验失败",o),s=o.error_description||"图形验证码校验失败",E(s),b.value="",b.focus(),[4,a()];case 4:return i.sent(),[3,6];case 5:return I.textContent="确定",I.disabled=!1,I.style.cssText=h,[7];case 6:return[2]}})})},500),g.appendChild(I),document.body.appendChild(m),document.body.appendChild(g)}({oauthInstance:t,captchaState:{captchaData:s,state:f,token:m}}),[2,new Promise(function(e){console.log("等待图形验证码校验结果..."),u.on(l,function(t){e(null==t?void 0:t.data)})})]})})}},462:function(e,t,n){var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))(function(o,i){function s(e){try{c(r.next(e))}catch(e){i(e)}}function a(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(s,a)}c((r=r.apply(e,t||[])).next())})},o=this&&this.__generator||function(e,t){var n,r,o,i,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function a(a){return function(c){return function(a){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,a[0]&&(s=0)),s;)try{if(n=1,r&&(o=2&a[0]?r.return:a[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,a[1])).done)return o;switch(r=0,o&&(a=[2&a[0],o.value]),a[0]){case 0:case 1:o=a;break;case 4:return s.label++,{value:a[1],done:!1};case 5:s.label++,r=a[1],a=[0];continue;case 7:a=s.ops.pop(),s.trys.pop();continue;default:if(!((o=(o=s.trys).length>0&&o[o.length-1])||6!==a[0]&&2!==a[0])){s=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]<o[3])){s.label=a[1];break}if(6===a[0]&&s.label<o[1]){s.label=o[1],o=a;break}if(o&&s.label<o[2]){s.label=o[2],s.ops.push(a);break}o[2]&&s.ops.pop(),s.trys.pop();continue}a=t.call(e,s)}catch(e){a=[6,e],r=0}finally{n=o=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,c])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.Captcha=void 0;var i=n(949),s=n(257),a=n(425),c=n(84),u=function(){function e(e){e.openURIWithCallback||(e.openURIWithCallback=this.getDefaultOpenURIWithCallback()),e.storage||(e.storage=s.defaultStorage),this.config=e,this.tokenSectionName="captcha_".concat(e.clientId||e.env)}return e.prototype.isMatch=function(){var e,t,n;return(null===(n=null===(t=null===(e=this.config)||void 0===e?void 0:e.adapter)||void 0===t?void 0:t.isMatch)||void 0===n?void 0:n.call(t))||(0,a.isMp)()},e.prototype.request=function(e,t){return r(this,void 0,Promise,function(){var n,r,s,a;return o(this,function(o){switch(o.label){case 0:return t||(t={}),t.method||(t.method="GET"),n="".concat(t.method,":").concat(e),r=e,t.withCaptcha?[4,this.appendCaptchaTokenToURL(e,n,!1)]:[3,2];case 1:r=o.sent(),o.label=2;case 2:return o.trys.push([2,4,,7]),[4,this.config.request(r,t)];case 3:return s=o.sent(),[3,7];case 4:return(a=o.sent()).error!==i.ErrorType.CAPTCHA_REQUIRED&&a.error!==i.ErrorType.CAPTCHA_INVALID?[3,6]:[4,this.appendCaptchaTokenToURL(e,n,a.error===i.ErrorType.CAPTCHA_INVALID)];case 5:return e=o.sent(),[2,this.config.request(e,t)];case 6:return[2,Promise.reject(a)];case 7:return[2,s]}})})},e.prototype.getDefaultOpenURIWithCallback=function(){var e=this;return function(t){return(0,c.openURIWithCallback)(t,e.config.oauthInstance)}},e.prototype.getCaptchaToken=function(e,t){return r(this,void 0,Promise,function(){var n,r,s,a;return o(this,function(o){switch(o.label){case 0:return e?[3,2]:[4,this.findCaptchaToken()];case 1:if(n=o.sent())return[2,n];o.label=2;case 2:return[4,this.config.request(i.ApiUrls.CAPTCHA_DATA_URL,{method:"POST",body:{state:t,redirect_uri:""},withCredentials:!1})];case 3:return r=o.sent(),s="".concat(r.data,"?state=").concat(encodeURIComponent(t),"&token=").concat(encodeURIComponent(r.token)),[4,this.config.openURIWithCallback(s)];case 4:return a=o.sent(),this.saveCaptchaToken(a),[2,a.captcha_token]}})})},e.prototype.appendCaptchaTokenToURL=function(e,t,n){return r(this,void 0,Promise,function(){var r;return o(this,function(o){switch(o.label){case 0:return[4,this.getCaptchaToken(n,t)];case 1:return r=o.sent(),e.indexOf("?")>0?e+="&captcha_token=".concat(r):e+="?captcha_token=".concat(r),[2,e]}})})},e.prototype.saveCaptchaToken=function(e){return r(this,void 0,void 0,function(){var t;return o(this,function(n){switch(n.label){case 0:return e.expires_at=new Date(Date.now()+1e3*(e.expires_in-10)),t=JSON.stringify(e),[4,this.config.storage.setItem(this.tokenSectionName,t)];case 1:return n.sent(),[2]}})})},e.prototype.findCaptchaToken=function(){return r(this,void 0,Promise,function(){var e,t;return o(this,function(n){switch(n.label){case 0:return[4,this.config.storage.getItem(this.tokenSectionName)];case 1:if(null==(e=n.sent()))return[3,5];n.label=2;case 2:return n.trys.push([2,3,,5]),(null==(t=JSON.parse(e))?void 0:t.expires_at)&&(t.expires_at=new Date(t.expires_at)),t.expires_at<new Date?[2,null]:[2,t.captcha_token];case 3:return n.sent(),[4,this.config.storage.removeItem(this.tokenSectionName)];case 4:return n.sent(),[2,null];case 5:return[2,null]}})})},e}();t.Captcha=u},722:function(e,t,n){var r=this&&this.__assign||function(){return r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},r.apply(this,arguments)},o=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),s=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&o(t,e,n);return i(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.CloudbaseOAuth=t.VerificationUsage=t.ErrorType=t.AuthErrorCode=t.AUTH_STATE_CHANGED_TYPE=t.EVENTS=t.LOGIN_STATE_CHANGED_TYPE=t.DEFAULT_NODE_ACCESS_SCOPE=t.OAUTH_TYPE=t.AUTH_API_PREFIX=t.weAppJwtDecodeAll=t.authModels=t.isAuthError=t.AuthErrorCategory=t.AuthError=t.Auth=void 0;var a=n(257),c=n(413),u=n(949),l=n(413);Object.defineProperty(t,"Auth",{enumerable:!0,get:function(){return l.Auth}});var d=n(308);Object.defineProperty(t,"AuthError",{enumerable:!0,get:function(){return d.AuthError}}),Object.defineProperty(t,"AuthErrorCategory",{enumerable:!0,get:function(){return d.AuthErrorCategory}}),Object.defineProperty(t,"isAuthError",{enumerable:!0,get:function(){return d.isAuthError}}),t.authModels=s(n(538));var h=n(344);Object.defineProperty(t,"weAppJwtDecodeAll",{enumerable:!0,get:function(){return h.weAppJwtDecodeAll}});var p=n(949);Object.defineProperty(t,"AUTH_API_PREFIX",{enumerable:!0,get:function(){return p.AUTH_API_PREFIX}}),Object.defineProperty(t,"OAUTH_TYPE",{enumerable:!0,get:function(){return p.OAUTH_TYPE}}),Object.defineProperty(t,"DEFAULT_NODE_ACCESS_SCOPE",{enumerable:!0,get:function(){return p.DEFAULT_NODE_ACCESS_SCOPE}}),Object.defineProperty(t,"LOGIN_STATE_CHANGED_TYPE",{enumerable:!0,get:function(){return p.LOGIN_STATE_CHANGED_TYPE}}),Object.defineProperty(t,"EVENTS",{enumerable:!0,get:function(){return p.EVENTS}}),Object.defineProperty(t,"AUTH_STATE_CHANGED_TYPE",{enumerable:!0,get:function(){return p.AUTH_STATE_CHANGED_TYPE}}),Object.defineProperty(t,"AuthErrorCode",{enumerable:!0,get:function(){return p.AuthErrorCode}}),Object.defineProperty(t,"ErrorType",{enumerable:!0,get:function(){return p.ErrorType}}),Object.defineProperty(t,"VerificationUsage",{enumerable:!0,get:function(){return p.VerificationUsage}});var f=function(){function e(e){var t=e.apiOrigin,n=e.getApiOrigin,o=e.apiPath,i=void 0===o?u.AUTH_API_PREFIX:o,s=e.clientId,l=e.env,d=e.storage,h=e.request,p=e.baseRequest,f=e.anonymousSignInFunc,m=e.wxCloud,g=e.adapter,v=e.onCredentialsError,_=e.headers,y=e.i18n,b=e.useWxCloud,w=e.eventBus,E=e.detectSessionInUrl,I=e.debug;if(this.detectSessionInUrl=null!=E&&E,this.oauth2client=new a.OAuth2Client({apiOrigin:t,getApiOrigin:n,apiPath:i,clientId:s,env:l,storage:d,baseRequest:p||h,anonymousSignInFunc:f,wxCloud:m,onCredentialsError:v,headers:_||{},i18n:y,useWxCloud:b,eventBus:w,debug:I}),this.authApi=new c.Auth(r(r({credentialsClient:this.oauth2client},e),{request:h?this.oauth2client.request.bind(this.oauth2client):void 0,adapter:g})),E)this.oauth2client.setGetInitialSession(this.authApi.getInitialSession.bind(this.authApi));else try{var S=new URL(window.location.href),A=S.searchParams.get("code"),O=S.searchParams.get("state"),T=JSON.parse(sessionStorage.getItem(O)||"null");A&&O&&(null==T?void 0:T.hash)&&(S.hash=T.hash,window.history.replaceState(null,"",S.toString()),window.location.replace(S.toString()))}catch(e){}}return e.prototype.initializeSession=function(e){this.detectSessionInUrl?(this.oauth2client.setOnInitialSessionObtained(e),this.oauth2client.initialize()):this.oauth2client.initialize(Promise.resolve({error:null}))},e}();t.CloudbaseOAuth=f},877:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.Syntax=t.ErrorType=void 0;var r,o=n(949);Object.defineProperty(t,"ErrorType",{enumerable:!0,get:function(){return o.ErrorType}}),(r=t.Syntax||(t.Syntax={})).CLIENT_ID="client_id",r.CLIENT_SECRET="client_secret",r.RESPONSE_TYPE="response_type",r.SCOPE="scope",r.STATE="state",r.REDIRECT_URI="redirect_uri",r.ERROR="error",r.ERROR_DESCRIPTION="error_description",r.ERROR_URI="error_uri",r.GRANT_TYPE="grant_type",r.CODE="code",r.ACCESS_TOKEN="access_token",r.TOKEN_TYPE="token_type",r.EXPIRES_IN="expires_in",r.USERNAME="username",r.PASSWORD="password",r.REFRESH_TOKEN="refresh_token"},257:function(e,t,n){var r=this&&this.__assign||function(){return r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},r.apply(this,arguments)},o=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))(function(o,i){function s(e){try{c(r.next(e))}catch(e){i(e)}}function a(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(s,a)}c((r=r.apply(e,t||[])).next())})},i=this&&this.__generator||function(e,t){var n,r,o,i,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function a(a){return function(c){return function(a){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,a[0]&&(s=0)),s;)try{if(n=1,r&&(o=2&a[0]?r.return:a[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,a[1])).done)return o;switch(r=0,o&&(a=[2&a[0],o.value]),a[0]){case 0:case 1:o=a;break;case 4:return s.label++,{value:a[1],done:!1};case 5:s.label++,r=a[1],a=[0];continue;case 7:a=s.ops.pop(),s.trys.pop();continue;default:if(!((o=(o=s.trys).length>0&&o[o.length-1])||6!==a[0]&&2!==a[0])){s=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]<o[3])){s.label=a[1];break}if(6===a[0]&&s.label<o[1]){s.label=o[1],o=a;break}if(o&&s.label<o[2]){s.label=o[2],s.ops.push(a);break}o[2]&&s.ops.pop(),s.trys.pop();continue}a=t.call(e,s)}catch(e){a=[6,e],r=0}finally{n=o=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,c])}}},s=this&&this.__spreadArray||function(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))};Object.defineProperty(t,"__esModule",{value:!0}),t.OAuth2Client=t.defaultStorage=t.generateRequestId=t.toResponseError=t.defaultRequest=void 0;var a=n(877),c=n(949),u=n(873),l=n(631),d=n(547),h=n(344),p=n(425),f=n(683),m="x-request-id",g="x-device-id",v="device_id";function _(){return(0,u.uuidv4)()}t.defaultRequest=function(e,t){return o(this,void 0,Promise,function(){var n,r,o,s,c;return i(this,function(i){switch(i.label){case 0:n=null,r=null,i.label=1;case 1:return i.trys.push([1,4,,5]),(o=Object.assign({},t)).method||(o.method="GET"),o.body&&"string"!=typeof o.body&&(o.body=JSON.stringify(o.body)),[4,fetch(e,o)];case 2:return[4,i.sent().json()];case 3:return(null==(s=i.sent())?void 0:s.error)?(r=s).error_uri=new URL(e).pathname:n=s,[3,5];case 4:return c=i.sent(),r={error:a.ErrorType.UNREACHABLE,error_description:c.message,error_uri:new URL(e).pathname},[3,5];case 5:if(r)throw r;return[2,n]}})})},t.toResponseError=function(e,t){var n,r=t||{};if(e instanceof Error)n={error:r.error||a.ErrorType.LOCAL,error_description:r.error_description||e.message,error_uri:r.error_uri,details:r.details||e.stack};else{var o=e||{};n={error:r.error||o.error||a.ErrorType.LOCAL,error_description:r.error_description||o.error_description,error_uri:r.error_uri||o.error_uri,details:r.details||o.details}}return n},t.generateRequestId=_;var y=function(){function e(e){this._env=(null==e?void 0:e.env)||""}return e.prototype.getItem=function(e){return o(this,void 0,Promise,function(){return i(this,function(t){return[2,window.localStorage.getItem("".concat(e).concat(this._env))]})})},e.prototype.removeItem=function(e){return o(this,void 0,Promise,function(){return i(this,function(t){return window.localStorage.removeItem("".concat(e).concat(this._env)),[2]})})},e.prototype.setItem=function(e,t){return o(this,void 0,Promise,function(){return i(this,function(n){return window.localStorage.setItem("".concat(e).concat(this._env),t),[2]})})},e.prototype.getItemSync=function(e){return window.localStorage.getItem("".concat(e).concat(this._env))},e.prototype.removeItemSync=function(e){window.localStorage.removeItem("".concat(e).concat(this._env))},e.prototype.setItemSync=function(e,t){window.localStorage.setItem("".concat(e).concat(this._env),t)},e}();t.defaultStorage=new y;var b=function(){function e(e){var t=this;this.credentials=null,this.accessKeyCredentials=null,this.singlePromise=null,this.tokenSectionName=e.tokenSectionName,this.storage=e.storage,this.clientId=e.clientId,this.singlePromise=new d.SinglePromise({clientId:this.clientId,getScope:function(){var e;return(null===(e=t.accessKeyCredentials)||void 0===e?void 0:e.access_token)?"".concat(t.clientId,"_").concat(t.accessKeyCredentials.access_token):t.clientId}}),this.credentials=e.credentials||null,this.onCredentialsChange=e.onCredentialsChange}return e.prototype.syncMemoryCredentials=function(e){this.credentials=e},e.prototype.getMemoryCredentials=function(){return this.credentials},e.prototype.getStorageCredentialsSync=function(){var e=null,t=this.storage.getItemSync(this.tokenSectionName);if(null!=t)try{(null==(e=JSON.parse(t))?void 0:e.expires_at)&&(e.expires_at=new Date(e.expires_at))}catch(t){this.storage.removeItem(this.tokenSectionName),e=null}return e},e.prototype.setCredentials=function(e,t){var n;return o(this,void 0,Promise,function(){var r,o;return i(this,function(i){switch(i.label){case 0:return r=!(!this.credentials||!this.credentials.access_token),(null==e?void 0:e.expires_in)?((null==e?void 0:e.expires_at)||(e.expires_at=new Date(Date.now()+1e3*(e.expires_in-30))),this.storage?(o=JSON.stringify(e),[4,this.storage.setItem(this.tokenSectionName,o)]):[3,2]):[3,3];case 1:i.sent(),i.label=2;case 2:return this.credentials=e,[3,6];case 3:return this.storage?[4,this.storage.removeItem(this.tokenSectionName)]:[3,5];case 4:i.sent(),i.label=5;case 5:this.credentials=null,i.label=6;case 6:return this.onCredentialsChange&&this.onCredentialsChange(e||null,{isInit:null!==(n=null==t?void 0:t.isInit)&&void 0!==n&&n,hadCredentials:r}),[2]}})})},e.prototype.setAccessKeyCredentials=function(e){this.accessKeyCredentials=e,e.scope===c.DEFAULT_NODE_ACCESS_SCOPE&&(this.credentials=e)},e.prototype.getCredentials=function(){return o(this,void 0,Promise,function(){var e=this;return i(this,function(t){return[2,this.singlePromise.run("getCredentials",function(){return o(e,void 0,void 0,function(){var e,t;return i(this,function(n){switch(n.label){case 0:return[4,this.getStorageCredentials()];case 1:return e=n.sent(),t=e.credentials,e.isAccessKeyCredentials?[2,t]:(this.credentials=t,[2,this.credentials])}})})})]})})},e.prototype.getStorageCredentials=function(){return o(this,void 0,Promise,function(){var e=this;return i(this,function(t){return[2,this.singlePromise.run("_getStorageCredentials",function(){return o(e,void 0,void 0,function(){var e,t,n;return i(this,function(r){switch(r.label){case 0:return e=null,t=!1,[4,this.storage.getItem(this.tokenSectionName)];case 1:if(!(n=r.sent()))return[3,6];r.label=2;case 2:return r.trys.push([2,3,,5]),(null==(e=JSON.parse(n))?void 0:e.expires_at)&&(e.expires_at=new Date(e.expires_at)),[3,5];case 3:return r.sent(),[4,this.storage.removeItem(this.tokenSectionName)];case 4:return r.sent(),e=null,[3,5];case 5:return[3,7];case 6:e=this.accessKeyCredentials||null,t=!0,r.label=7;case 7:return[2,{credentials:e,isAccessKeyCredentials:t}]}})})})]})})},e}();t.OAuth2Client=function(){function e(n){var r,o=this;this.initializePromise=null,this.lockAcquired=!1,this.pendingInLock=[],this.singlePromise=null,this._initSessionEmitted=!1,n.clientSecret||(n.clientSecret=""),!n.clientId&&n.env&&(n.clientId=n.env),this.apiOrigin=n.apiOrigin,this.getApiOriginFunc=n.getApiOrigin,this.apiPath=n.apiPath||c.AUTH_API_PREFIX,this.clientId=n.clientId,this.i18n=n.i18n,this.eventBus=n.eventBus,this.singlePromise=new d.SinglePromise({clientId:this.clientId}),this.retry=this.formatRetry(n.retry,e.defaultRetry),n.baseRequest?this.baseRequest=n.baseRequest:this.baseRequest=t.defaultRequest,this.tokenInURL=n.tokenInURL,this.headers=n.headers,this.storage=n.storage||t.defaultStorage,this.localCredentials=new b({tokenSectionName:"credentials_".concat(n.clientId),storage:this.storage,clientId:n.clientId,onCredentialsChange:this._handleCredentialsChange.bind(this)}),this.clientSecret=n.clientSecret,n.clientId&&(this.basicAuth="Basic ".concat((0,h.weBtoa)("".concat(n.clientId,":").concat(this.clientSecret)))),this.wxCloud=n.wxCloud;try{(0,p.isMp)()&&(this.useWxCloud=n.useWxCloud,void 0===this.wxCloud&&n.env&&(wx.cloud.init({env:n.env}),this.wxCloud=wx.cloud))}catch(e){}this.refreshTokenFunc=n.refreshTokenFunc||this.defaultRefreshTokenFunc,this.anonymousSignInFunc=n.anonymousSignInFunc,this.onCredentialsError=n.onCredentialsError,this.getInitialSession=n.getInitialSession,this.onInitialSessionObtained=n.onInitialSessionObtained,this.logDebugMessages=null!==(r=n.debug)&&void 0!==r&&r,f.langEvent.bus.on(f.langEvent.LANG_CHANGE_EVENT,function(e){var t;o.i18n=(null===(t=e.data)||void 0===t?void 0:t.i18n)||o.i18n}),this._initBroadcastChannel(),this._initVisibilityListener()}return e.prototype.setGetInitialSession=function(e){this.getInitialSession=e},e.prototype.setOnInitialSessionObtained=function(e){this.onInitialSessionObtained=e},e.prototype.initialize=function(e){return o(this,void 0,Promise,function(){var t=this;return i(this,function(n){switch(n.label){case 0:return this.initializePromise?[4,this.initializePromise]:[3,2];case 1:case 3:case 5:return[2,n.sent()];case 2:return void 0===e?[3,4]:(this.initializePromise=e,[4,this.initializePromise]);case 4:return this.initializePromise=o(t,void 0,void 0,function(){var e=this;return i(this,function(t){switch(t.label){case 0:return[4,this._acquireLock(-1,function(){return o(e,void 0,void 0,function(){return i(this,function(e){switch(e.label){case 0:return[4,this._initialize()];case 1:return[2,e.sent()]}})})})];case 1:return[2,t.sent()]}})}),[4,this.initializePromise]}})})},e.prototype.setCredentials=function(e){return o(this,void 0,Promise,function(){var t=this;return i(this,function(n){switch(n.label){case 0:return[4,this.initializePromise];case 1:return n.sent(),[2,this._acquireLock(-1,function(){return o(t,void 0,void 0,function(){return i(this,function(t){return[2,this.localCredentials.setCredentials(e)]})})})]}})})},Object.defineProperty(e.prototype,"initSessionEmitted",{get:function(){return this._initSessionEmitted},enumerable:!1,configurable:!0}),e.prototype.destroy=function(){try{this.broadcastChannel&&"function"==typeof this.broadcastChannel.close&&this.broadcastChannel.close()}catch(e){this._debug("#destroy","close BroadcastChannel error",e)}finally{this.broadcastChannel=null}try{var e=this.visibilityEventHandler;this.visibilityEventHandler=void 0,e&&"undefined"!=typeof window&&"undefined"!=typeof document&&"function"==typeof window.removeEventListener&&window.removeEventListener("visibilitychange",e)}catch(e){this._debug("#destroy","remove visibility listener error",e)}},e.prototype.setAccessKeyCredentials=function(e){return this.localCredentials.setAccessKeyCredentials(e)},e.prototype.getAccessToken=function(){return o(this,void 0,Promise,function(){var e,t;return i(this,function(n){switch(n.label){case 0:return[4,this.initializePromise];case 1:return n.sent(),[4,this.getCredentials()];case 2:return(null==(e=n.sent())?void 0:e.scope)===c.DEFAULT_NODE_ACCESS_SCOPE||(null==e?void 0:e.access_token)?[2,Promise.resolve(e.access_token)]:(t={error:a.ErrorType.UNAUTHENTICATED},[2,Promise.reject(t)])}})})},e.prototype.request=function(t,n){var s,c;return o(this,void 0,Promise,function(){var o,u,l,d,h,p,f,v,y,b;return i(this,function(i){switch(i.label){case 0:return n||(n={}),o=this.formatRetry(n.retry,this.retry),n.headers=r(r({},n.headers),((b={})[null===(s=this.i18n)||void 0===s?void 0:s.LANG_HEADER_KEY]=null===(c=this.i18n)||void 0===c?void 0:c.lang,b)),this.headers&&(n.headers=r(r({},this.headers),n.headers)),n.headers[m]||(n.headers[m]=_()),n.headers[g]?[3,2]:[4,this.getDeviceId()];case 1:u=i.sent(),n.headers[g]=u,i.label=2;case 2:return(null==n?void 0:n.withBasicAuth)&&this.basicAuth&&(n.headers.Authorization=this.basicAuth),(null==n?void 0:n.withCredentials)?n.getCredentials?[4,n.getCredentials()]:[3,4]:[3,7];case 3:return d=i.sent(),[3,6];case 4:return[4,this.getCredentials()];case 5:d=i.sent(),i.label=6;case 6:return(l=d)&&(this.tokenInURL?(t.indexOf("?")<0&&(t+="?"),t+="access_token=".concat(l.access_token)):n.headers.Authorization="".concat(l.token_type," ").concat(l.access_token)),[3,8];case 7:this.clientId&&t.indexOf("client_id")<0&&(t+=t.indexOf("?")<0?"?":"&",t+="client_id=".concat(this.clientId)),i.label=8;case 8:t.startsWith("/")&&(h=this.getApiOriginFunc?this.getApiOriginFunc():this.apiOrigin,t="".concat(h).concat(this.apiPath).concat(t)),p=null,f=o+1,v=0,i.label=9;case 9:if(!(v<f))return[3,21];i.label=10;case 10:return i.trys.push([10,15,,18]),n.useWxCloud||this.useWxCloud?[4,this.wxCloudCallFunction(t,n)]:[3,12];case 11:return p=i.sent(),[3,14];case 12:return[4,this.baseRequest(t,n)];case 13:p=i.sent(),i.label=14;case 14:if(null==p?void 0:p.code)throw{error:p.code,error_description:p.message,error_uri:new URL(t).pathname};return[3,21];case 15:y=i.sent();try{y.requestId=y.requestId||n.headers[m]||""}catch(e){}return n.withCredentials&&y&&y.error===a.ErrorType.UNAUTHENTICATED?[4,this.setCredentials(null)]:[3,17];case 16:return i.sent(),[2,Promise.reject(y)];case 17:return v!==o&&y&&"unreachable"===y.error?[3,18]:[2,Promise.reject(y)];case 18:return[4,this.sleep(e.retryInterval)];case 19:i.sent(),i.label=20;case 20:return v++,[3,9];case 21:return[2,p]}})})},e.prototype.wxCloudCallFunction=function(e,t){var n;return o(this,void 0,Promise,function(){var o,s,c,u,d;return i(this,function(i){switch(i.label){case 0:o=null,s=null,i.label=1;case 1:i.trys.push([1,7,,8]),c="",i.label=2;case 2:return i.trys.push([2,4,,5]),[4,wx.getRendererUserAgent()];case 3:return c=i.sent(),[3,5];case 4:return i.sent(),[3,5];case 5:return[4,this.wxCloud.callFunction({name:"httpOverCallFunction",data:{url:e,method:t.method,headers:r({origin:"https://servicewechat.com","User-Agent":c},t.headers),body:t.body}})];case 6:return u=i.sent().result,(null===(n=null==u?void 0:u.body)||void 0===n?void 0:n.error_code)?(s=null==u?void 0:u.body).error_uri=(0,l.getPathName)(e):o=null==u?void 0:u.body,[3,8];case 7:return d=i.sent(),s={error:a.ErrorType.UNREACHABLE,error_description:d.message,error_uri:(0,l.getPathName)(e)},[3,8];case 8:if(s)throw s;return[2,o]}})})},e.prototype.getCredentials=function(){return o(this,void 0,Promise,function(){var e=this;return i(this,function(t){switch(t.label){case 0:return[4,this.initializePromise];case 1:return t.sent(),[2,this._acquireLock(-1,function(){return o(e,void 0,void 0,function(){return i(this,function(e){return[2,this._getCredentials()]})})})]}})})},e.prototype.getCredentialsSync=function(){return this.localCredentials.getStorageCredentialsSync()},e.prototype.getCredentialsAsync=function(){return this.getCredentials()},e.prototype.getScope=function(){var e;return o(this,void 0,Promise,function(){var t,n;return i(this,function(r){switch(r.label){case 0:return[4,this.localCredentials.getCredentials()];case 1:return(t=r.sent())?[2,t.scope]:(n="credentials not found",null===(e=this.onCredentialsError)||void 0===e||e.call(this,{msg:n}),[2,this.unAuthenticatedError(n)])}})})},e.prototype.getGroups=function(){var e;return o(this,void 0,Promise,function(){var t,n;return i(this,function(r){switch(r.label){case 0:return[4,this.localCredentials.getCredentials()];case 1:return(t=r.sent())?[2,t.groups]:(n="credentials not found",null===(e=this.onCredentialsError)||void 0===e||e.call(this,{msg:n}),[2,this.unAuthenticatedError(n)])}})})},e.prototype.refreshToken=function(e,t){return o(this,void 0,Promise,function(){var n=this;return i(this,function(r){switch(r.label){case 0:return[4,this.initializePromise];case 1:return r.sent(),[2,this._acquireLock(-1,function(){return o(n,void 0,void 0,function(){return i(this,function(n){return[2,this._refreshToken(e,t)]})})})]}})})},e.prototype._refreshToken=function(e,t){return o(this,void 0,Promise,function(){var n=this;return i(this,function(r){return[2,this.singlePromise.run("_refreshToken",function(){return o(n,void 0,void 0,function(){var n,r,o,s,u,l;return i(this,function(i){switch(i.label){case 0:if((null==e?void 0:e.scope)===c.DEFAULT_NODE_ACCESS_SCOPE)return[2,e];if(!e||!e.refresh_token)return o="no refresh token found in credentials",null===(s=this.onCredentialsError)||void 0===s||s.call(this,{msg:o}),[2,this.unAuthenticatedError(o)];i.label=1;case 1:return i.trys.push([1,4,,7]),[4,this.refreshTokenFunc(e.refresh_token,e)];case 2:return n=i.sent(),[4,this.localCredentials.setCredentials(n)];case 3:return i.sent(),[2,n];case 4:if(r=i.sent(),null==t?void 0:t.throwError)throw r;return r.error!==a.ErrorType.INVALID_GRANT?[3,6]:[4,this.localCredentials.setCredentials(null)];case 5:return i.sent(),o=r.error_description,null===(u=this.onCredentialsError)||void 0===u||u.call(this,{msg:o}),[2,this.unAuthenticatedError(o)];case 6:return null===(l=this.onCredentialsError)||void 0===l||l.call(this,{msg:r.error_description}),[2,Promise.reject(r)];case 7:return[2]}})})})]})})},e.prototype.anonymousLogin=function(e){return o(this,void 0,void 0,function(){var t=this;return i(this,function(n){return[2,this.singlePromise.run("_anonymousLogin",function(){return o(t,void 0,void 0,function(){var t,n;return i(this,function(r){switch(r.label){case 0:return this.anonymousSignInFunc?[4,this.anonymousSignInFunc(e)]:[3,4];case 1:return t=r.sent(),(n=t)?[3,3]:[4,this.localCredentials.getCredentials()];case 2:n=r.sent(),r.label=3;case 3:return e=n,[3,6];case 4:return[4,this.anonymousSignIn(e)];case 5:e=r.sent(),r.label=6;case 6:return[2,e]}})})})]})})},e.prototype.checkRetry=function(t){var n=null;if(("number"!=typeof t||t<e.minRetry||t>e.maxRetry)&&(n={error:a.ErrorType.UNREACHABLE,error_description:"wrong options param: retry"}),n)throw n;return t},e.prototype.formatRetry=function(e,t){return void 0===e?t:this.checkRetry(e)},e.prototype.sleep=function(e){return o(this,void 0,Promise,function(){return i(this,function(t){return[2,new Promise(function(t){setTimeout(function(){t()},e)})]})})},e.prototype.anonymousSignIn=function(e){return o(this,void 0,Promise,function(){var t=this;return i(this,function(n){return[2,this.singlePromise.run("_anonymous",function(){return o(t,void 0,void 0,function(){var t,n;return i(this,function(r){switch(r.label){case 0:if(!e||"anonymous"!==e.scope)return[2,this.unAuthenticatedError("no anonymous in credentials")];r.label=1;case 1:return r.trys.push([1,4,,7]),[4,this.request(c.ApiUrls.AUTH_SIGN_IN_ANONYMOUSLY_URL,{method:"POST",withBasicAuth:!0,body:{}})];case 2:return t=r.sent(),[4,this.localCredentials.setCredentials(t)];case 3:return r.sent(),[2,t];case 4:return(n=r.sent()).error!==a.ErrorType.INVALID_GRANT?[3,6]:[4,this.localCredentials.setCredentials(null)];case 5:return r.sent(),[2,this.unAuthenticatedError(n.error_description)];case 6:return[2,Promise.reject(n)];case 7:return[2]}})})})]})})},e.prototype.defaultRefreshTokenFunc=function(e,t){var n;return o(this,void 0,Promise,function(){var o,s,a;return i(this,function(i){switch(i.label){case 0:return void 0===e||""===e?(o="refresh token not found",null===(n=this.onCredentialsError)||void 0===n||n.call(this,{msg:o}),[2,this.unAuthenticatedError(o)]):(s=c.ApiUrls.AUTH_TOKEN_URL,"v2"===(null==t?void 0:t.version)&&(s=c.ApiUrlsV2.AUTH_TOKEN_URL),[4,this.request(s,{method:"POST",body:{client_id:this.clientId,client_secret:this.clientSecret,grant_type:"refresh_token",refresh_token:e}})]);case 1:return a=i.sent(),[2,r(r({},a),{version:(null==t?void 0:t.version)||"v1"})]}})})},e.prototype.getDeviceId=function(){return o(this,void 0,Promise,function(){var e;return i(this,function(t){switch(t.label){case 0:return this.deviceID?[2,this.deviceID]:[4,this.storage.getItem(v)];case 1:return"string"==typeof(e=t.sent())&&e.length>=16&&e.length<=48?[3,3]:(e=(0,u.uuidv4)(),[4,this.storage.setItem(v,e)]);case 2:t.sent(),t.label=3;case 3:return this.deviceID=e,[2,e]}})})},e.prototype.unAuthenticatedError=function(e){var t={error:a.ErrorType.UNAUTHENTICATED,error_description:e};return Promise.reject(t)},e.prototype._debug=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.logDebugMessages&&console.log.apply(console,s(["[OAuth2Client]"],e,!1))},e.prototype._initialize=function(){return o(this,void 0,Promise,function(){var e,t,n,r,o,s;return i(this,function(i){switch(i.label){case 0:if(i.trys.push([0,11,12,13]),!this.getInitialSession)return this._debug("#_initialize()","no getInitialSession callback set, skipping"),[2,{error:null}];this._debug("#_initialize()","calling getInitialSession callback"),i.label=1;case 1:return i.trys.push([1,9,,10]),[4,this.getInitialSession()];case 2:return s=i.sent(),e=s.data,t=s.error,(null==e?void 0:e.session)?(this._debug("#_initialize()","session obtained from getInitialSession",e.session),this._initSessionEmitted=!0,[4,this.localCredentials.setCredentials(null==e?void 0:e.session,{isInit:!0})]):[3,4];case 3:i.sent(),i.label=4;case 4:if(!this.onInitialSessionObtained)return[3,8];this._debug("#_initialize()","calling onInitialSessionObtained callback"),i.label=5;case 5:return i.trys.push([5,7,,8]),[4,this.onInitialSessionObtained(e,t)];case 6:return i.sent(),[3,8];case 7:return n=i.sent(),this._debug("#_initialize()","error in onInitialSessionObtained",n),[3,8];case 8:return t?(this._debug("#_initialize()","error from getInitialSession",t),[2,{error:t}]):[2,{error:null}];case 9:return r=i.sent(),this._debug("#_initialize()","exception during getInitialSession",r),[2,{error:r instanceof Error?r:new Error(String(r))}];case 10:return[3,13];case 11:return o=i.sent(),this._debug("#_initialize()","unexpected error",o),[2,{error:o instanceof Error?o:new Error(String(o))}];case 12:return this._debug("#_initialize()","end"),[7];case 13:return[2]}})})},e.prototype._acquireLock=function(e,t){return o(this,void 0,Promise,function(){var n,r,a,c,u=this;return i(this,function(l){switch(l.label){case 0:this._debug("#_acquireLock","begin",e),l.label=1;case 1:if(l.trys.push([1,,10,11]),this.lockAcquired)return n=this.pendingInLock.length?this.pendingInLock[this.pendingInLock.length-1]:Promise.resolve(),r=o(u,void 0,void 0,function(){return i(this,function(e){switch(e.label){case 0:return[4,n];case 1:return e.sent(),[4,t()];case 2:return[2,e.sent()]}})}),this.pendingInLock.push(o(u,void 0,void 0,function(){return i(this,function(e){switch(e.label){case 0:return e.trys.push([0,2,,3]),[4,r];case 1:case 2:return e.sent(),[3,3];case 3:return[2]}})})),[2,r];this._debug("#_acquireLock","acquiring lock for client",this.clientId),l.label=2;case 2:return l.trys.push([2,,8,9]),this.lockAcquired=!0,a=t(),this.pendingInLock.push(o(u,void 0,void 0,function(){return i(this,function(e){switch(e.label){case 0:return e.trys.push([0,2,,3]),[4,a];case 1:case 2:return e.sent(),[3,3];case 3:return[2]}})})),[4,a];case 3:l.sent(),l.label=4;case 4:return this.pendingInLock.length?(c=s([],this.pendingInLock,!0),[4,Promise.all(c)]):[3,6];case 5:return l.sent(),this.pendingInLock.splice(0,c.length),[3,4];case 6:return[4,a];case 7:return[2,l.sent()];case 8:return this._debug("#_acquireLock","releasing lock for client",this.clientId),this.lockAcquired=!1,[7];case 9:return[3,11];case 10:return this._debug("#_acquireLock","end"),[7];case 11:return[2]}})})},e.prototype._getCredentials=function(){var e,t,n;return o(this,void 0,Promise,function(){var r,o,s;return i(this,function(i){switch(i.label){case 0:return[4,this.localCredentials.getCredentials()];case 1:if((null==(r=i.sent())?void 0:r.scope)===c.DEFAULT_NODE_ACCESS_SCOPE)return[2,r];if(!r)return s="credentials not found",null===(e=this.onCredentialsError)||void 0===e||e.call(this,{msg:s}),[2,this.unAuthenticatedError(s)];if(!function(e){var t=!0;return(null==e?void 0:e.expires_at)&&(null==e?void 0:e.access_token)&&(t=e.expires_at<new Date),t}(r))return[3,12];if(!r.refresh_token)return[3,9];i.label=2;case 2:return i.trys.push([2,4,,8]),[4,this._refreshToken(r)];case 3:return r=i.sent(),[3,8];case 4:return o=i.sent(),"anonymous"!==r.scope?[3,6]:[4,this.anonymousLogin(r)];case 5:return r=i.sent(),[3,7];case 6:return null===(t=this.onCredentialsError)||void 0===t||t.call(this,{msg:o.error_description}),[2,Promise.reject(o)];case 7:return[3,8];case 8:return[3,12];case 9:return"anonymous"!==r.scope?[3,11]:[4,this.anonymousLogin(r)];case 10:return r=i.sent(),[3,12];case 11:return s="no refresh token found in credentials",null===(n=this.onCredentialsError)||void 0===n||n.call(this,{msg:s}),[2,this.unAuthenticatedError(s)];case 12:return[2,r]}})})},e.prototype._isUserCredentials=function(e){return!!(null==e?void 0:e.access_token)&&"accessKey"!==e.scope&&e.scope!==c.DEFAULT_NODE_ACCESS_SCOPE},e.prototype._fireCredentialsEvents=function(e,t,n){var r,o,i,s,a,u;this._isUserCredentials(e)?t?null===(i=this.eventBus)||void 0===i||i.fire(c.EVENTS.AUTH_STATE_CHANGED,{event:c.AUTH_STATE_CHANGED_TYPE.INITIAL_SESSION}):n?null===(s=this.eventBus)||void 0===s||s.fire(c.EVENTS.AUTH_STATE_CHANGED,{event:c.AUTH_STATE_CHANGED_TYPE.TOKEN_REFRESHED}):(null===(a=this.eventBus)||void 0===a||a.fire(c.EVENTS.AUTH_STATE_CHANGED,{event:c.AUTH_STATE_CHANGED_TYPE.SIGNED_IN}),null===(u=this.eventBus)||void 0===u||u.fire(c.EVENTS.LOGIN_STATE_CHANGED,{eventType:c.LOGIN_STATE_CHANGED_TYPE.SIGN_IN})):n&&(null===(r=this.eventBus)||void 0===r||r.fire(c.EVENTS.AUTH_STATE_CHANGED,{event:c.AUTH_STATE_CHANGED_TYPE.SIGNED_OUT}),null===(o=this.eventBus)||void 0===o||o.fire(c.EVENTS.LOGIN_STATE_CHANGED,{eventType:c.LOGIN_STATE_CHANGED_TYPE.SIGN_OUT}))},e.prototype._handleCredentialsChange=function(e,t){this._fireCredentialsEvents(e,t.isInit,t.hadCredentials),this._broadcastCredentials(e,t)},e.prototype._initBroadcastChannel=function(){var e=this;if(void 0===this.broadcastChannel)try{"undefined"!=typeof BroadcastChannel&&(this.broadcastChannelName="credentials_".concat(this.clientId),this.broadcastChannel=new BroadcastChannel(this.broadcastChannelName),this.broadcastChannel.addEventListener("message",function(t){e._handleBroadcastMessage(t.data)}),this._debug("#_initBroadcastChannel","channel created: ".concat(this.broadcastChannelName)))}catch(e){this.broadcastChannel=null,this._debug("#_initBroadcastChannel","BroadcastChannel not available, skip",e)}},e.prototype._broadcastCredentials=function(e,t){if(this.broadcastChannel)try{this.broadcastChannel.postMessage({type:"credentials_changed",credentials:e,context:t})}catch(e){this._debug("#_broadcastCredentials","postMessage error",e)}},e.prototype._handleBroadcastMessage=function(e){var t,n;try{if(!e||"credentials_changed"!==e.type)return;var o=e.context,i=e.credentials;if((null==i?void 0:i.expires_at)&&"string"==typeof i.expires_at&&(i=r(r({},i),{expires_at:new Date(i.expires_at)})),(null==i?void 0:i.access_token)===(null===(t=this.localCredentials.getMemoryCredentials())||void 0===t?void 0:t.access_token))return;var s=!!(null===(n=this.localCredentials.getMemoryCredentials())||void 0===n?void 0:n.access_token);this.localCredentials.syncMemoryCredentials(i),this._fireCredentialsEvents(i,o.isInit,s)}catch(e){this._debug("#_handleBroadcastMessage","error",e)}},e.prototype._initVisibilityListener=function(){var e=this;try{if("undefined"==typeof window||"undefined"==typeof document||"function"!=typeof window.addEventListener)return;this.visibilityEventHandler=function(){return o(e,void 0,void 0,function(){var e;return i(this,function(t){switch(t.label){case 0:return t.trys.push([0,2,,3]),[4,this._onVisibilityChanged()];case 1:return t.sent(),[3,3];case 2:return e=t.sent(),this._debug("#visibilityChangedCallback","error",e),[3,3];case 3:return[2]}})})},window.addEventListener("visibilitychange",this.visibilityEventHandler)}catch(e){this._debug("#_initVisibilityListener",e)}},e.prototype._onVisibilityChanged=function(){return o(this,void 0,Promise,function(){var e=this;return i(this,function(t){return"visible"!==document.visibilityState||this._acquireLock(-1,function(){return o(e,void 0,void 0,function(){var e,t,n,r,o,s;return i(this,function(i){switch(i.label){case 0:if("visible"!==document.visibilityState)return[2];i.label=1;case 1:return i.trys.push([1,3,,4]),e=this.localCredentials.getMemoryCredentials(),[4,this.localCredentials.getCredentials()];case 2:return t=i.sent(),n=null==e?void 0:e.access_token,r=null==t?void 0:t.access_token,n===r?[2]:(o=!!n,this._fireCredentialsEvents(t,!1,o),[3,4]);case 3:return s=i.sent(),this._debug("#_onVisibilityChanged","reload credentials error",s),[3,4];case 4:return[2]}})})}),[2]})})},e.defaultRetry=2,e.minRetry=0,e.maxRetry=5,e.retryInterval=1e3,e}()},344:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.weAppJwtDecodeAll=t.weappJwtDecode=t.base64_url_decode=t.weAtob=t.weBtoa=void 0;var n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",r=/^(?:[A-Za-z\d+/]{4})*?(?:[A-Za-z\d+/]{2}(?:==)?|[A-Za-z\d+/]{3}=?)?$/;function o(e){var n=e.replace(/-/g,"+").replace(/_/g,"/");switch(n.length%4){case 0:break;case 2:n+="==";break;case 3:n+="=";break;default:throw new Error("Illegal base64url string!")}try{return function(e){return decodeURIComponent((0,t.weAtob)(e).replace(/(.)/g,function(e){var t=e.charCodeAt(0).toString(16).toUpperCase();return t.length<2&&(t="0".concat(t)),"%".concat(t)}))}(n)}catch(e){return(0,t.weAtob)(n)}}t.weBtoa=function(e){for(var t,r,o,i,s="",a=0,c=(e=String(e)).length%3;a<e.length;){if((r=e.charCodeAt(a++))>255||(o=e.charCodeAt(a++))>255||(i=e.charCodeAt(a++))>255)throw new TypeError("Failed to execute 'btoa' on 'Window': The string to be encoded contains characters outside of the Latin1 range.");s+=n.charAt((t=r<<16|o<<8|i)>>18&63)+n.charAt(t>>12&63)+n.charAt(t>>6&63)+n.charAt(63&t)}return c?s.slice(0,c-3)+"===".substring(c):s},t.weAtob=function(e){if(e=String(e).replace(/[\t\n\f\r ]+/g,""),!r.test(e))throw new TypeError("Failed to execute 'atob' on 'Window': The string to be decoded is not correctly encoded.");var t;e+="==".slice(2-(3&e.length));for(var o,i,s="",a=0;a<e.length;)t=n.indexOf(e.charAt(a++))<<18|n.indexOf(e.charAt(a++))<<12|(o=n.indexOf(e.charAt(a++)))<<6|(i=n.indexOf(e.charAt(a++))),s+=64===o?String.fromCharCode(t>>16&255):64===i?String.fromCharCode(t>>16&255,t>>8&255):String.fromCharCode(t>>16&255,t>>8&255,255&t);return s},t.base64_url_decode=o,t.weappJwtDecode=function(e,t){if("string"!=typeof e)throw new Error("Invalid token specified");var n=!0===(t=t||{}).header?0:1;try{return JSON.parse(o(e.split(".")[n]))}catch(e){throw new Error("Invalid token specified: ".concat(e)?e.message:0)}},t.weAppJwtDecodeAll=function(e){if("string"!=typeof e)throw new Error("Invalid token specified");try{var t=e.split(".").map(function(e,t){return 2===t?e:JSON.parse(o(e))});return{claims:t[1],header:t[0],signature:t[2]}}catch(e){throw new Error("Invalid token specified: ".concat(e)?e.message:0)}}},814:function(e,t,n){var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.getEncryptInfo=void 0;var o=r(n(12)),i=n(631);t.getEncryptInfo=function(e){var t=void 0===e?{}:e,n=t.publicKey,r=void 0===n?"":n,s=t.payload,a=void 0===s?{}:s;if(!r)return"";try{var c=(0,i.deepClone)(a),u=new o.default;return u.setPublicKey(r),u.encryptLong("object"==typeof c?JSON.stringify(c):c)}catch(e){console.error("encrypt error:",e)}return""}},547:function(e,t){var n=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))(function(o,i){function s(e){try{c(r.next(e))}catch(e){i(e)}}function a(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(s,a)}c((r=r.apply(e,t||[])).next())})},r=this&&this.__generator||function(e,t){var n,r,o,i,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function a(a){return function(c){return function(a){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,a[0]&&(s=0)),s;)try{if(n=1,r&&(o=2&a[0]?r.return:a[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,a[1])).done)return o;switch(r=0,o&&(a=[2&a[0],o.value]),a[0]){case 0:case 1:o=a;break;case 4:return s.label++,{value:a[1],done:!1};case 5:s.label++,r=a[1],a=[0];continue;case 7:a=s.ops.pop(),s.trys.pop();continue;default:if(!((o=(o=s.trys).length>0&&o[o.length-1])||6!==a[0]&&2!==a[0])){s=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]<o[3])){s.label=a[1];break}if(6===a[0]&&s.label<o[1]){s.label=o[1],o=a;break}if(o&&s.label<o[2]){s.label=o[2],s.ops.push(a);break}o[2]&&s.ops.pop(),s.trys.pop();continue}a=t.call(e,s)}catch(e){a=[6,e],r=0}finally{n=o=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,c])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.SinglePromise=void 0;var o=new Map,i=function(){function e(e){this.clientId=(null==e?void 0:e.clientId)||"",this.getScope=null==e?void 0:e.getScope,o=o||new Map}return e.prototype.run=function(e,t){return n(this,void 0,Promise,function(){var i,s,a=this;return r(this,function(c){return i=this.getScope?this.getScope():this.clientId,e="".concat(i,"_").concat(e),(s=o.get(e))||(s=new Promise(function(i,s){n(a,void 0,void 0,function(){var n,a,c;return r(this,function(r){switch(r.label){case 0:return r.trys.push([0,3,4,5]),[4,this.runIdlePromise()];case 1:return r.sent(),n=t(),a=i,[4,n];case 2:return a.apply(void 0,[r.sent()]),[3,5];case 3:return c=r.sent(),s(c),[3,5];case 4:return o.delete(e),[7];case 5:return[2]}})})}),o.set(e,s)),[2,s]})})},e.prototype.runIdlePromise=function(){return Promise.resolve()},e}();t.SinglePromise=i},631:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.getPathName=t.deepClone=void 0,t.deepClone=function(e){var n=function(n){for(var r in e)e.hasOwnProperty(r)&&(n[r]=(0,t.deepClone)(e[r]));return n},r=null==e?"NullOrUndefined":Object.prototype.toString.call(e).slice(8,-1);if(["Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Uint16Array","Int32Array","Uint32Array","Float32Array","Float64Array","BigInt64Array","BigUint64Array"].includes(r))return e.slice();switch(r){case"Object":return n(Object.create(Object.getPrototypeOf(e)));case"Array":return n([]);case"Date":return new Date(e.valueOf());case"RegExp":return new RegExp(e.source,(e.global?"g":"")+(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.sticky?"y":"")+(e.unicode?"u":""));default:return e}},t.getPathName=function(e){var t=e.match(/^(?:http(s)?:\/\/[^\/]+)?(\/[^\?#]*)/);return t&&t[2]||""}},425:function(e,t){function n(){if("undefined"==typeof globalThis)return!1;var e=globalThis.wx;if(void 0===e)return!1;if(void 0===globalThis.Page)return!1;if(!e.getDeviceInfo)return!1;if(!e.getStorageSync)return!1;if(!e.setStorageSync)return!1;if(!e.connectSocket)return!1;if(!e.request)return!1;try{if(!e.getDeviceInfo())return!1;if("qq"===e.getDeviceInfo().platform)return!1}catch(e){return!1}return!0}Object.defineProperty(t,"__esModule",{value:!0}),t.isInMpWebView=t.isMp=void 0,t.isMp=n;var r=!1;function o(){r=r||void 0!==typeof window&&"miniprogram"===window.__wxjs_environment}try{n()||(r=r||!!navigator.userAgent.match(/miniprogram/i)||"miniprogram"===window.__wxjs_environment,window&&window.WeixinJSBridge&&window.WeixinJSBridge.invoke?o():"undefined"!=typeof document&&document.addEventListener("WeixinJSBridgeReady",o,!1))}catch(e){}t.isInMpWebView=function(){return r}},639:function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(e){if(this.params={},"string"==typeof e)this.parse(e);else if(e&&"object"==typeof e)for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&this.append(t,e[t])}return e.prototype.parse=function(e){var t=this;e.split("&").forEach(function(e){var n=e.split("=").map(decodeURIComponent),r=n[0],o=n[1];t.append(r,o)})},e.prototype.append=function(e,t){this.params[e]?this.params[e]=this.params[e].concat([t]):this.params[e]=[t]},e.prototype.get=function(e){return this.params[e]?this.params[e][0]:null},e.prototype.getAll=function(e){return this.params[e]||[]},e.prototype.delete=function(e){delete this.params[e]},e.prototype.has=function(e){return Object.prototype.hasOwnProperty.call(this.params,e)},e.prototype.set=function(e,t){this.params[e]=[t]},e.prototype.toString=function(){var e=[],t=function(t){Object.prototype.hasOwnProperty.call(n.params,t)&&n.params[t].forEach(function(n){e.push("".concat(encodeURIComponent(t),"=").concat(encodeURIComponent(n)))})},n=this;for(var r in this.params)t(r);return e.join("&")},e}();t.default=n},873:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.uuidv4=void 0,t.uuidv4=function(){return"xxxxxxxxxxxx4xxxyxxxxxxxxxxxxxxx".replace(/[xy]/g,function(e){var t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)})}},563:function(e,t,n){var r=this&&this.__assign||function(){return r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},r.apply(this,arguments)},o=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),s=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&o(t,e,n);return i(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.useDefaultAdapter=t.useAdapters=t.RUNTIME=void 0;var a,c=s(n(92)),u=n(962);!function(e){e.WEB="web",e.WX_MP="wx_mp"}(a=t.RUNTIME||(t.RUNTIME={})),t.useAdapters=function(e,t){for(var n=0,o=(0,u.isArray)(e)?e:[e];n<o.length;n++){var i=o[n],s=i.isMatch,a=i.genAdapter,c=i.runtime;if(s())return{adapter:r({isMatch:s},a(t)),runtime:c}}},t.useDefaultAdapter=function(){return{adapter:r({},c.genAdapter()),runtime:a.WEB}}},92:function(e,t,n){var r,o=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__assign||function(){return i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},i.apply(this,arguments)},s=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))(function(o,i){function s(e){try{c(r.next(e))}catch(e){i(e)}}function a(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(s,a)}c((r=r.apply(e,t||[])).next())})},a=this&&this.__generator||function(e,t){var n,r,o,i,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function a(a){return function(c){return function(a){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,a[0]&&(s=0)),s;)try{if(n=1,r&&(o=2&a[0]?r.return:a[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,a[1])).done)return o;switch(r=0,o&&(a=[2&a[0],o.value]),a[0]){case 0:case 1:o=a;break;case 4:return s.label++,{value:a[1],done:!1};case 5:s.label++,r=a[1],a=[0];continue;case 7:a=s.ops.pop(),s.trys.pop();continue;default:if(!((o=(o=s.trys).length>0&&o[o.length-1])||6!==a[0]&&2!==a[0])){s=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]<o[3])){s.label=a[1];break}if(6===a[0]&&s.label<o[1]){s.label=o[1],o=a;break}if(o&&s.label<o[2]){s.label=o[2],s.ops.push(a);break}o[2]&&s.ops.pop(),s.trys.pop();continue}a=t.call(e,s)}catch(e){a=[6,e],r=0}finally{n=o=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,c])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.WebRequest=t.genAdapter=void 0;var c=n(764),u=n(962),l=n(464),d=function(e){function t(t){var n=e.call(this)||this,r=t.timeout,o=t.timeoutMsg,i=t.restrictedMethods;return n.timeout=r||0,n.timeoutMsg=o||"请求超时",n.restrictedMethods=i||["get","post","upload","download"],n}return o(t,e),t.prototype.get=function(e){return this.request(i(i({},e),{method:"get"}),this.restrictedMethods.includes("get"))},t.prototype.post=function(e){return this.request(i(i({},e),{method:"post"}),this.restrictedMethods.includes("post"))},t.prototype.put=function(e){return this.request(i(i({},e),{method:"put"}))},t.prototype.upload=function(e){var t=e.data,n=e.file,r=e.name,o=e.method,s=e.headers,a=void 0===s?{}:s,c={post:"post",put:"put"}[null==o?void 0:o.toLowerCase()]||"put",u=new FormData;return"post"===c?(Object.keys(t).forEach(function(e){u.append(e,t[e])}),u.append("key",r),u.append("file",n),this.request(i(i({},e),{data:u,method:c}),this.restrictedMethods.includes("upload"))):this.request(i(i({},e),{method:"put",headers:a,body:n}),this.restrictedMethods.includes("upload"))},t.prototype.download=function(e){return s(this,void 0,Promise,function(){var t,n,r,o;return a(this,function(s){switch(s.label){case 0:return s.trys.push([0,2,,3]),[4,this.get(i(i({},e),{headers:{},responseType:"blob"}))];case 1:return t=s.sent().data,n=window.URL.createObjectURL(new Blob([t])),r=decodeURIComponent(new URL(e.url).pathname.split("/").pop()||""),(o=document.createElement("a")).href=n,o.setAttribute("download",r),o.style.display="none",document.body.appendChild(o),o.click(),window.URL.revokeObjectURL(n),document.body.removeChild(o),[3,3];case 2:return s.sent(),[3,3];case 3:return[2,new Promise(function(t){t({statusCode:200,tempFilePath:e.url})})]}})})},t.prototype.fetch=function(e){var t;return s(this,void 0,Promise,function(){var n,r,o,c,u,l,d,h,p,f,m,g,v,_=this;return a(this,function(y){switch(y.label){case 0:return n=new AbortController,r=e.url,o=e.enableAbort,c=void 0!==o&&o,u=e.stream,l=void 0!==u&&u,d=e.signal,h=e.timeout,p=e.shouldThrowOnError,f=void 0===p||p,m=null!=h?h:this.timeout,d&&(d.aborted&&n.abort(),d.addEventListener("abort",function(){return n.abort()})),g=null,c&&m&&(g=setTimeout(function(){console.warn(_.timeoutMsg),n.abort(new Error(_.timeoutMsg))},m)),[4,fetch(r,i(i({},e),{signal:n.signal})).then(function(e){return s(_,void 0,void 0,function(){var t,n,r;return a(this,function(o){switch(o.label){case 0:return clearTimeout(g),f?e.ok?(t=e,[3,3]):[3,1]:[3,4];case 1:return r=(n=Promise).reject,[4,e.json()];case 2:t=r.apply(n,[o.sent()]),o.label=3;case 3:return[2,t];case 4:return[2,e]}})})}).catch(function(e){return clearTimeout(g),Promise.reject(e)})];case 1:return v=y.sent(),[2,{data:l?v.body:(null===(t=v.headers.get("content-type"))||void 0===t?void 0:t.includes("application/json"))?v.json():v.text(),statusCode:v.status,header:v.headers,response:v}]}})})},t.prototype.request=function(e,t){var n=this;void 0===t&&(t=!1);var r=String(e.method).toLowerCase()||"get";return new Promise(function(o){var i=e.url,s=e.headers,a=void 0===s?{}:s,c=e.data,d=e.responseType,h=e.withCredentials,p=e.body,f=e.onUploadProgress,m=(0,u.formatUrl)((0,l.getProtocol)(),i,"get"===r?c:{}),g=new XMLHttpRequest;g.open(r,m),d&&(g.responseType=d);var v,_,y=e.signal;y&&(y.aborted?g.abort():y.addEventListener("abort",function(){return g.abort()},{once:!0})),Object.keys(a).forEach(function(e){g.setRequestHeader(e,a[e])}),f&&g.upload.addEventListener("progress",f),g.onreadystatechange=function(){var e={};if(4===g.readyState){var t=g.getAllResponseHeaders().trim().split(/[\r\n]+/),n={};t.forEach(function(e){var t=e.split(": "),r=t.shift().toLowerCase(),o=t.join(": ");n[r]=o}),e.header=n,e.statusCode=g.status;try{e.data="blob"===d?g.response:JSON.parse(g.responseText)}catch(t){e.data="blob"===d?g.response:g.responseText}clearTimeout(v),o(e)}},t&&n.timeout&&(v=setTimeout(function(){console.warn(n.timeoutMsg),g.abort()},n.timeout)),_=(0,u.isFormData)(c)?c:"application/x-www-form-urlencoded"===a["content-type"]?(0,u.toQueryString)(c):p||(c?JSON.stringify(c):void 0),h&&(g.withCredentials=!0),g.send(_)})},t}(c.AbstractSDKRequest);t.WebRequest=d,t.genAdapter=function(){return{type:"default",root:window,reqClass:d,wsClass:WebSocket,localStorage:localStorage}}},464:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.COMMUNITY_SITE_URL=t.IS_DEBUG_MODE=t.getProtocol=t.setProtocol=t.getSdkName=t.setSdkName=void 0;var n="@cloudbase/js-sdk";t.setSdkName=function(e){n=e},t.getSdkName=function(){return n};var r="https:";t.setProtocol=function(e){r=e},t.getProtocol=function(){return r},t.IS_DEBUG_MODE=!1,t.COMMUNITY_SITE_URL="https://support.qq.com/products/148793"},519:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.ERRORS=void 0,t.ERRORS={INVALID_PARAMS:"INVALID_PARAMS",INVALID_SYNTAX:"INVALID_SYNTAX",INVALID_OPERATION:"INVALID_OPERATION",OPERATION_FAIL:"OPERATION_FAIL",NETWORK_ERROR:"NETWORK_ERROR",UNKOWN_ERROR:"UNKOWN_ERROR"}},778:function(e,t,n){var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),t.OATUH_LOGINTYPE=void 0,o(n(464),t),o(n(519),t),t.OATUH_LOGINTYPE="constants"},517:function(e,t,n){var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))(function(o,i){function s(e){try{c(r.next(e))}catch(e){i(e)}}function a(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(s,a)}c((r=r.apply(e,t||[])).next())})},o=this&&this.__generator||function(e,t){var n,r,o,i,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function a(a){return function(c){return function(a){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,a[0]&&(s=0)),s;)try{if(n=1,r&&(o=2&a[0]?r.return:a[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,a[1])).done)return o;switch(r=0,o&&(a=[2&a[0],o.value]),a[0]){case 0:case 1:o=a;break;case 4:return s.label++,{value:a[1],done:!1};case 5:s.label++,r=a[1],a=[0];continue;case 7:a=s.ops.pop(),s.trys.pop();continue;default:if(!((o=(o=s.trys).length>0&&o[o.length-1])||6!==a[0]&&2!==a[0])){s=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]<o[3])){s.label=a[1];break}if(6===a[0]&&s.label<o[1]){s.label=o[1],o=a;break}if(o&&s.label<o[2]){s.label=o[2],s.ops.push(a);break}o[2]&&s.ops.pop(),s.trys.pop();continue}a=t.call(e,s)}catch(e){a=[6,e],r=0}finally{n=o=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,c])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.catchErrorsDecorator=void 0;var i=n(962),s=n(778),a=!1;"undefined"!=typeof navigator&&navigator.userAgent&&(a=-1!==navigator.userAgent.indexOf("Firefox"));var c=a?/(\.js\/)?__decorate(\$\d+)?<@.*\d$/:/(\/\w+\.js\.)?__decorate(\$\d+)?\s*\(.*\)$/,u=/https?:\/\/.+:\d*\/.*\.js:\d+:\d+/;function l(e){var t=e.err,n=e.className,r=e.methodName,o=e.sourceLink;if(!o)return null;var i,s=t.stack.split("\n"),c=a?/^catchErrorsDecorator\/<\/descriptor.value@.*\d$/:new RegExp("".concat(n,"\\.descriptor.value\\s*\\[as\\s").concat(r,"\\]\\s*\\(.*\\)$")),l=a?/^catchErrorsDecorator\/<\/descriptor.value/:new RegExp("".concat(n,"\\.descriptor.value\\s*\\[as\\s").concat(r,"\\]")),d=s.findIndex(function(e){return c.test(e)});if(-1!==d){var h=s.filter(function(e,t){return t>d});h.unshift(s[d].replace(l,"".concat(n,".").concat(r)).replace(u,o)),(i=new Error).stack="".concat(a?"@debugger":"Error","\n").concat(h.join("\n"))}return i}t.catchErrorsDecorator=function(e){var t=e.mode,n=void 0===t?"async":t,a=e.customInfo,d=void 0===a?{}:a,h=e.title,p=e.messages,f=void 0===p?[]:p;return function(e,t,a){if(s.IS_DEBUG_MODE){var p=d.className||e.constructor.name,m=d.methodName||t,g=a.value,v=function(){var e="",t=(new Error).stack.split("\n"),n=t.findIndex(function(e){return c.test(e)});if(-1!==n){var r=u.exec(t[n+1]||"");e=r?r[0]:""}return e}();a.value="sync"===n?function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=l({err:new Error,className:p,methodName:m,sourceLink:v});try{return g.apply(this,e)}catch(e){var r=e,o=e.message,s=e.error,a=e.error_description,c={title:h||"".concat(p,".").concat(m," failed"),content:[{type:"error",body:e}]};if(o&&/^\{.*\}$/.test(o)){var u=JSON.parse(o);c.subtitle=o,u.code&&(n?(n.code=u.code,n.msg=u.msg):(e.code=u.code,e.message=u.msg),r=n||e,c.content=f.map(function(e){return{type:"info",body:e}}))}throw s&&a&&(c.subtitle=a,n?(n.code=s,n.msg=a):(e.code=s,e.message=a),r=n||e,c.content=f.map(function(e){return{type:"info",body:e}})),(0,i.printGroupLog)(c),r}}:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return r(this,void 0,void 0,function(){var t,n,r,s,a,c,u,d;return o(this,function(o){switch(o.label){case 0:t=l({err:new Error,className:p,methodName:m,sourceLink:v}),o.label=1;case 1:return o.trys.push([1,3,,4]),[4,g.apply(this,e)];case 2:return[2,o.sent()];case 3:throw n=o.sent(),r=n,s=n.message,a=n.error,c=n.error_description,u={title:h||"".concat(p,".").concat(m," failed"),content:[{type:"error",body:n}]},s&&/^\{.*\}$/.test(s)&&(d=JSON.parse(s),u.subtitle=d,d.code&&(t?(t.code=d.code,t.message=d.msg):(n.code=d.code,n.message=d.msg),r=t||n,u.content=f.map(function(e){return{type:"info",body:e}}))),a&&c&&(u.subtitle=c,t?(t.code=a,t.msg=c):(n.code=a,n.message=c),r=t||n,u.content=f.map(function(e){return{type:"info",body:e}})),(0,i.printGroupLog)(u),r;case 4:return[2]}})})}}}}},260:function(e,t,n){var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(517),t)},683:function(e,t,n){var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return o(t,e),t},s=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.langEvent=t.AbortController=t.jwt=t.helpers=t.utils=t.events=t.cache=t.adapters=t.constants=void 0;var a=i(n(778));t.constants=a;var c=i(n(563));t.adapters=c;var u=i(n(865));t.cache=u;var l=i(n(940));t.events=l;var d=i(n(991));t.langEvent=d;var h=i(n(962));t.utils=h;var p=i(n(260));t.helpers=p;var f=s(n(829));t.AbortController=f.default;var m={decode:s(n(107)).default};t.jwt=m},829:function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(){var e=this;this.listeners=[],this.signal={aborted:!1,addEventListener:function(t,n){"abort"===t&&e.listeners.push(n)}}}return e.prototype.abort=function(){this.signal.aborted||(this.signal.aborted=!0,this.listeners.forEach(function(e){return e()}))},e}();t.default=n},865:function(e,t,n){var r,o=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))(function(o,i){function s(e){try{c(r.next(e))}catch(e){i(e)}}function a(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(s,a)}c((r=r.apply(e,t||[])).next())})},s=this&&this.__generator||function(e,t){var n,r,o,i,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function a(a){return function(c){return function(a){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,a[0]&&(s=0)),s;)try{if(n=1,r&&(o=2&a[0]?r.return:a[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,a[1])).done)return o;switch(r=0,o&&(a=[2&a[0],o.value]),a[0]){case 0:case 1:o=a;break;case 4:return s.label++,{value:a[1],done:!1};case 5:s.label++,r=a[1],a=[0];continue;case 7:a=s.ops.pop(),s.trys.pop();continue;default:if(!((o=(o=s.trys).length>0&&o[o.length-1])||6!==a[0]&&2!==a[0])){s=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]<o[3])){s.label=a[1];break}if(6===a[0]&&s.label<o[1]){s.label=o[1],o=a;break}if(o&&s.label<o[2]){s.label=o[2],s.ops.push(a);break}o[2]&&s.ops.pop(),s.trys.pop();continue}a=t.call(e,s)}catch(e){a=[6,e],r=0}finally{n=o=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,c])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.CloudbaseCache=void 0;var a=n(764),c=n(962),u=n(778),l=function(e){function t(t){var n=e.call(this)||this;return n.root=t,t.tcbCacheObject||(t.tcbCacheObject={}),n}return o(t,e),t.prototype.setItem=function(e,t){this.root.tcbCacheObject[e]=t},t.prototype.getItem=function(e){return this.root.tcbCacheObject[e]},t.prototype.removeItem=function(e){delete this.root.tcbCacheObject[e]},t.prototype.clear=function(){delete this.root.tcbCacheObject},t}(a.AbstractStorage),d=function(){function e(e){this.keys={};var t=e.persistence,n=e.platformInfo,r=void 0===n?{}:n,o=e.keys,i=void 0===o?{}:o;this.platformInfo=r,this.storage||(this.persistenceTag=this.platformInfo.adapter.primaryStorage||t,this.storage=function(e,t){switch(e){case"local":default:return t.localStorage?t.localStorage:((0,c.printWarn)(u.ERRORS.INVALID_PARAMS,"localStorage is not supported on current platform"),new l(t.root));case"none":return new l(t.root)}}(this.persistenceTag,this.platformInfo.adapter),this.keys=i)}return Object.defineProperty(e.prototype,"mode",{get:function(){return this.storage.mode||"sync"},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"persistence",{get:function(){return this.persistenceTag},enumerable:!1,configurable:!0}),e.prototype.setStore=function(e,t,n){if("async"!==this.mode){if(this.storage)try{var r={version:n||"localCachev1",content:t};this.storage.setItem(e,JSON.stringify(r))}catch(e){throw new Error(JSON.stringify({code:u.ERRORS.OPERATION_FAIL,msg:"[".concat((0,u.getSdkName)(),"][").concat(u.ERRORS.OPERATION_FAIL,"]setStore failed"),info:e}))}}else(0,c.printWarn)(u.ERRORS.INVALID_OPERATION,"current platform's storage is asynchronous, please use setStoreAsync insteed")},e.prototype.setStoreAsync=function(e,t,n){return i(this,void 0,void 0,function(){var r;return s(this,function(o){switch(o.label){case 0:if(!this.storage)return[2];o.label=1;case 1:return o.trys.push([1,3,,4]),r={version:n||"localCachev1",content:t},[4,this.storage.setItem(e,JSON.stringify(r))];case 2:return o.sent(),[3,4];case 3:return o.sent(),[2];case 4:return[2]}})})},e.prototype.getStore=function(e,t){var n;if("async"!==this.mode){try{if("undefined"!=typeof process&&(null===(n={IS_MP_BUILD:!1,IS_BROWSER_BUILD:!0})||void 0===n?void 0:n.tcb_token))return{IS_MP_BUILD:!1,IS_BROWSER_BUILD:!0}.tcb_token;if(!this.storage)return""}catch(e){return""}t=t||"localCachev1";var r=this.storage.getItem(e);return r&&r.indexOf(t)>=0?JSON.parse(r).content:""}(0,c.printWarn)(u.ERRORS.INVALID_OPERATION,"current platform's storage is asynchronous, please use getStoreAsync insteed")},e.prototype.getStoreAsync=function(e,t){var n;return i(this,void 0,void 0,function(){var r;return s(this,function(o){switch(o.label){case 0:try{if("undefined"!=typeof process&&(null===(n={IS_MP_BUILD:!1,IS_BROWSER_BUILD:!0})||void 0===n?void 0:n.tcb_token))return[2,{IS_MP_BUILD:!1,IS_BROWSER_BUILD:!0}.tcb_token];if(!this.storage)return[2,""]}catch(e){return[2,""]}return t=t||"localCachev1",[4,this.storage.getItem(e)];case 1:return(r=o.sent())&&r.indexOf(t)>=0?[2,JSON.parse(r).content]:[2,""]}})})},e.prototype.removeStore=function(e){"async"!==this.mode?this.storage.removeItem(e):(0,c.printWarn)(u.ERRORS.INVALID_OPERATION,"current platform's storage is asynchronous, please use removeStoreAsync insteed")},e.prototype.removeStoreAsync=function(e){return i(this,void 0,void 0,function(){return s(this,function(t){switch(t.label){case 0:return[4,this.storage.removeItem(e)];case 1:return t.sent(),[2]}})})},e}();t.CloudbaseCache=d},940:function(e,t,n){var r,o=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__spreadArray||function(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))};Object.defineProperty(t,"__esModule",{value:!0}),t.removeEventListener=t.activateEvent=t.addEventListener=t.CloudbaseEventEmitter=t.IErrorEvent=t.CloudbaseEvent=void 0;var s=n(962),a=function(e,t){this.data=t||null,this.name=e};t.CloudbaseEvent=a;var c=function(e){function t(t,n){var r=e.call(this,"error",{error:t,data:n})||this;return r.error=t,r}return o(t,e),t}(a);t.IErrorEvent=c;var u=function(){function e(){this.listeners={}}return e.prototype.on=function(e,t){return function(e,t,n){n[e]=n[e]||[],n[e].push(t)}(e,t,this.listeners),this},e.prototype.off=function(e,t){return function(e,t,n){if(null==n?void 0:n[e]){var r=n[e].indexOf(t);-1!==r&&n[e].splice(r,1)}}(e,t,this.listeners),this},e.prototype.fire=function(e,t){if((0,s.isInstanceOf)(e,c))return console.error(e.error),this;var n=(0,s.isString)(e)?new a(e,t||{}):e,r=n.name;if(this.listens(r)){n.target=this;for(var o=0,u=this.listeners[r]?i([],this.listeners[r],!0):[];o<u.length;o++)u[o].call(this,n)}return this},e.prototype.listens=function(e){return this.listeners[e]&&this.listeners[e].length>0},e}();t.CloudbaseEventEmitter=u;var l=new u;t.addEventListener=function(e,t){l.on(e,t)},t.activateEvent=function(e,t){void 0===t&&(t={}),l.fire(e,t)},t.removeEventListener=function(e,t){l.off(e,t)}},991:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.LANG_CHANGE_EVENT=t.bus=void 0;var r=n(940);t.bus=new r.CloudbaseEventEmitter,t.LANG_CHANGE_EVENT="lang_change"},962:function(e,t,n){var r,o=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__assign||function(){return i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},i.apply(this,arguments)},s=this&&this.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};Object.defineProperty(t,"__esModule",{value:!0}),t.parseCaptcha=t.parseQueryString=t.transformPhone=t.sleep=t.printGroupLog=t.errorToResult=t.promoteGatewayError=t.maybeThrow=t.resolveThrow=t.createCloudbaseError=t.CloudbaseError=t.throwError=t.printInfo=t.printError=t.printWarn=t.execCallback=t.createPromiseCallback=t.removeParam=t.getHash=t.getQuery=t.toQueryString=t.formatUrl=t.generateRequestId=t.genSeqId=t.isFormData=t.isInstanceOf=t.isNull=t.isPalinObject=t.isUndefined=t.isString=t.isArray=void 0;var a=n(778);t.isArray=function(e){return"[object Array]"===Object.prototype.toString.call(e)},t.isString=function(e){return"string"==typeof e},t.isUndefined=function(e){return void 0===e},t.isPalinObject=function(e){return"[object Object]"===Object.prototype.toString.call(e)},t.isNull=function(e){return"[object Null]"===Object.prototype.toString.call(e)},t.isInstanceOf=function(e,t){return e instanceof t},t.isFormData=function(e){return"[object FormData]"===Object.prototype.toString.call(e)},t.genSeqId=function(){return Math.random().toString(16).slice(2)},t.generateRequestId=function(){var e=(new Date).getTime(),t=(null===Date||void 0===Date?void 0:Date.now)&&1e3*Date.now()||0;return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(n){var r=16*Math.random();return e>0?(r=(e+r)%16|0,e=Math.floor(e/16)):(r=(t+r)%16|0,t=Math.floor(t/16)),("x"===n?r:7&r|8).toString(16)})},t.formatUrl=function(e,t,n){void 0===n&&(n={});var r=/\?/.test(t),o="";return Object.keys(n).forEach(function(e){""===o?!r&&(t+="?"):o+="&",o+="".concat(e,"=").concat(encodeURIComponent(n[e]))}),/^http(s)?:\/\//.test(t+=o)?t:"".concat(e).concat(t)},t.toQueryString=function(e){void 0===e&&(e={});var t=[];return Object.keys(e).forEach(function(n){t.push("".concat(n,"=").concat(encodeURIComponent(e[n])))}),t.join("&")},t.getQuery=function(e,t){if("undefined"==typeof window)return!1;var n=t||decodeURIComponent(window.location.search),r=new RegExp("(^|&)".concat(e,"=([^&]*)(&|$)")),o=n.substr(n.indexOf("?")+1).match(r);return null!=o?o[2]:""},t.getHash=function(e){if("undefined"==typeof window)return"";var t=window.location.hash.match(new RegExp("[#?&/]".concat(e,"=([^&#]*)")));return t?t[1]:""},t.removeParam=function(e,t){var n=t.split("?")[0],r=[],o=-1!==t.indexOf("?")?t.split("?")[1]:"";if(""!==o){for(var i=(r=o.split("&")).length-1;i>=0;i-=1)r[i].split("=")[0]===e&&r.splice(i,1);n="".concat(n,"?").concat(r.join("&"))}return n},t.createPromiseCallback=function(){var e={};if(!Promise){(e=function(){}).promise={};var t=function(){throw new Error('Your Node runtime does support ES6 Promises. Set "global.Promise" to your preferred implementation of promises.')};return Object.defineProperty(e.promise,"then",{get:t}),Object.defineProperty(e.promise,"catch",{get:t}),e}var n=new Promise(function(t,n){e=function(e,r){return e?n(e):t(r)}});return e.promise=n,e},t.execCallback=function(e,t,n){if(void 0===n&&(n=null),e&&"function"==typeof e)return e(t,n);if(t)throw t;return n},t.printWarn=function(e,t){console.warn("[".concat((0,a.getSdkName)(),"][").concat(e,"]:").concat(t))},t.printError=function(e,t){console.error({code:e,msg:"[".concat((0,a.getSdkName)(),"][").concat(e,"]:").concat(t)})},t.printInfo=function(e,t){console.log("[".concat((0,a.getSdkName)(),"][").concat(e,"]:").concat(t))},t.throwError=function(e,t){var n=new Error(JSON.stringify({code:e,msg:"[".concat((0,a.getSdkName)(),"][").concat(e,"]:").concat(t)}));throw n.code=e,n};var c=function(e){function t(t){var n=e.call(this,t.msg||t.message||"")||this;return n.code=t.code||"",n.requestId=t.requestId||"",Object.defineProperty(n,"message",{value:t.msg||t.message||"",enumerable:!0,writable:!0,configurable:!0}),n}return o(t,e),t}(Error);t.CloudbaseError=c;var u=function(e){return new c(e)};function l(e,t){return(t||u)(e)}function d(e){return!e||"boolean"!=typeof e.throw||e.throw}t.createCloudbaseError=l,t.resolveThrow=d,t.maybeThrow=function(e,t){if(d(e))throw l(t,null==e?void 0:e.errorFactory);return i({code:t.code,message:t.msg},t.requestId?{requestId:t.requestId}:{})},t.promoteGatewayError=function(e){if(e&&"object"==typeof e&&e.data&&"object"==typeof e.data){var t=e.data,n=t.code,r=t.message;if(!e.code&&n||!e.message&&r)return i(i(i({},e),!e.code&&n?{code:n}:{}),!e.message&&r?{message:r}:{})}return e},t.errorToResult=function(e){if(e instanceof Error&&"string"==typeof e.message)try{var t=JSON.parse(e.message);if(t&&"string"==typeof t.code)return{code:t.code,message:t.msg||t.message||"",requestId:t.requestId}}catch(e){}return e&&"string"==typeof e.code?{code:e.code,message:e.message||"",requestId:e.requestId}:{code:"UNKNOWN_ERROR",message:String((null==e?void 0:e.message)||e||"")}},t.printGroupLog=function(e){var t,n=e.title,r=e.subtitle,o=void 0===r?"":r,i=e.content,s=void 0===i?[]:i,a=e.printTrace,c=void 0!==a&&a,u=e.collapsed;void 0!==u&&u?(console.groupCollapsed||console.error)(n,o):(console.group||console.error)(n,o);for(var l=0,d=s;l<d.length;l++){var h=d[l],p=h.type,f=h.body;switch(p){case"info":console.log(f);break;case"warn":console.warn(f);break;case"error":console.error(f)}}c&&(console.trace||console.log)("stack trace:"),null===(t=console.groupEnd)||void 0===t||t.call(console)},t.sleep=function(e){return void 0===e&&(e=0),new Promise(function(t){return setTimeout(t,e)})},t.transformPhone=function(e){return"+86".concat(e)},t.parseQueryString=function(e){e=e.replace(/^\?/,"");var t={};return e.split("&").forEach(function(e){var n=e.split("="),r=n[0],o=n[1];r=decodeURIComponent(r),o=decodeURIComponent(o),r&&(t[r]?Array.isArray(t[r])?t[r].push(o):t[r]=[t[r],o]:t[r]=o)}),t},t.parseCaptcha=function(e){var n={},r=e.match(/^(data:.*?)(\?[^#\s]*)?$/);if(r){e=r[1];var o=r[2];o&&(n=(0,t.parseQueryString)(o))}var i=n.token,a=s(n,["token"]);return/^data:/.test(e)&&!i?{error:"invalid_argument",error_description:"invalid captcha data: ".concat(e)}:i?{state:a.state,token:i,captchaData:e}:{error:"unimplemented",error_description:"need to impl captcha data"}}},12:function(e,t,n){var r;if(n.r(t),!globalThis.IS_MP_BUILD){var o="undefined"!=typeof globalThis?globalThis.navigator:window.globalThis;function D(e){return"0123456789abcdefghijklmnopqrstuvwxyz".charAt(e)}function U(e,t){return e&t}function j(e,t){return e|t}function F(e,t){return e^t}function $(e,t){return e&~t}function G(e){if(0==e)return-1;var t=0;return 65535&e||(e>>=16,t+=16),255&e||(e>>=8,t+=8),15&e||(e>>=4,t+=4),3&e||(e>>=2,t+=2),1&e||++t,t}function B(e){for(var t=0;0!=e;)e&=e-1,++t;return t}var i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";function q(e){var t,n,r="";for(t=0;t+3<=e.length;t+=3)n=parseInt(e.substring(t,t+3),16),r+=i.charAt(n>>6)+i.charAt(63&n);for(t+1==e.length?(n=parseInt(e.substring(t,t+1),16),r+=i.charAt(n<<2)):t+2==e.length&&(n=parseInt(e.substring(t,t+2),16),r+=i.charAt(n>>2)+i.charAt((3&n)<<4));(3&r.length)>0;)r+="=";return r}function H(e){var t,n="",r=0,o=0;for(t=0;t<e.length&&"="!=e.charAt(t);++t){var s=i.indexOf(e.charAt(t));s<0||(0==r?(n+=D(s>>2),o=3&s,r=1):1==r?(n+=D(o<<2|s>>4),o=15&s,r=2):2==r?(n+=D(o),n+=D(s>>2),o=3&s,r=3):(n+=D(o<<2|s>>4),n+=D(15&s),r=0))}return 1==r&&(n+=D(o<<2)),n}var s,a,c={decode:function(e){var t;if(void 0===s){var n="0123456789ABCDEF";for(s={},t=0;t<16;++t)s[n.charAt(t)]=t;for(n=n.toLowerCase(),t=10;t<16;++t)s[n.charAt(t)]=t;for(t=0;t<8;++t)s[" \f\n\r\t \u2028\u2029".charAt(t)]=-1}var r=[],o=0,i=0;for(t=0;t<e.length;++t){var a=e.charAt(t);if("="==a)break;if(-1!=(a=s[a])){if(void 0===a)throw new Error("Illegal character at offset "+t);o|=a,++i>=2?(r[r.length]=o,o=0,i=0):o<<=4}}if(i)throw new Error("Hex encoding incomplete: 4 bits missing");return r}},u={decode:function(e){var t;if(void 0===a){for(a=Object.create(null),t=0;t<64;++t)a["ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(t)]=t;for(t=0;t<9;++t)a["= \f\n\r\t \u2028\u2029".charAt(t)]=-1}var n=[],r=0,o=0;for(t=0;t<e.length;++t){var i=e.charAt(t);if("="==i)break;if(-1!=(i=a[i])){if(void 0===i)throw new Error("Illegal character at offset "+t);r|=i,++o>=4?(n[n.length]=r>>16,n[n.length]=r>>8&255,n[n.length]=255&r,r=0,o=0):r<<=6}}switch(o){case 1:throw new Error("Base64 encoding incomplete: at least 2 bits missing");case 2:n[n.length]=r>>10;break;case 3:n[n.length]=r>>16,n[n.length]=r>>8&255}return n},re:/-----BEGIN [^-]+-----([A-Za-z0-9+\/=\s]+)-----END [^-]+-----|begin-base64[^\n]+\n([A-Za-z0-9+\/=\s]+)====/,unarmor:function(e){var t=u.re.exec(e);if(t)if(t[1])e=t[1];else{if(!t[2])throw new Error("RegExp out of sync");e=t[2]}return u.decode(e)}},l=1e13;class z{constructor(e){this.buf=[+e||0]}mulAdd(e,t){var n,r,o=this.buf,i=o.length;for(n=0;n<i;++n)(r=o[n]*e+t)<l?t=0:r-=(t=0|r/l)*l,o[n]=r;t>0&&(o[n]=t)}sub(e){var t,n,r=this.buf,o=r.length;for(t=0;t<o;++t)(n=r[t]-e)<0?(n+=l,e=1):e=0,r[t]=n;for(;0===r[r.length-1];)r.pop()}toString(e){if(10!=(e||10))throw new Error("only base 10 is supported");for(var t=this.buf,n=t[t.length-1].toString(),r=t.length-2;r>=0;--r)n+=(l+t[r]).toString().substring(1);return n}valueOf(){for(var e=this.buf,t=0,n=e.length-1;n>=0;--n)t=t*l+e[n];return t}simplify(){var e=this.buf;return 1==e.length?e[0]:this}}var d,h=/^(\d\d)(0[1-9]|1[0-2])(0[1-9]|[12]\d|3[01])([01]\d|2[0-3])(?:([0-5]\d)(?:([0-5]\d)(?:[.,](\d{1,3}))?)?)?(Z|[-+](?:[0]\d|1[0-2])([0-5]\d)?)?$/,p=/^(\d\d\d\d)(0[1-9]|1[0-2])(0[1-9]|[12]\d|3[01])([01]\d|2[0-3])(?:([0-5]\d)(?:([0-5]\d)(?:[.,](\d{1,3}))?)?)?(Z|[-+](?:[0]\d|1[0-2])([0-5]\d)?)?$/;function W(e,t){return e.length>t&&(e=e.substring(0,t)+"…"),e}class V{constructor(e,t){this.hexDigits="0123456789ABCDEF",e instanceof V?(this.enc=e.enc,this.pos=e.pos):(this.enc=e,this.pos=t)}get(e){if(void 0===e&&(e=this.pos++),e>=this.enc.length)throw new Error("Requesting byte offset "+e+" on a stream of length "+this.enc.length);return"string"==typeof this.enc?this.enc.charCodeAt(e):this.enc[e]}hexByte(e){return this.hexDigits.charAt(e>>4&15)+this.hexDigits.charAt(15&e)}hexDump(e,t,n){for(var r="",o=e;o<t;++o)if(r+=this.hexByte(this.get(o)),!0!==n)switch(15&o){case 7:r+=" ";break;case 15:r+="\n";break;default:r+=" "}return r}isASCII(e,t){for(var n=e;n<t;++n){var r=this.get(n);if(r<32||r>176)return!1}return!0}parseStringISO(e,t){for(var n="",r=e;r<t;++r)n+=String.fromCharCode(this.get(r));return n}parseStringUTF(e,t){for(var n="",r=e;r<t;){var o=this.get(r++);n+=o<128?String.fromCharCode(o):o>191&&o<224?String.fromCharCode((31&o)<<6|63&this.get(r++)):String.fromCharCode((15&o)<<12|(63&this.get(r++))<<6|63&this.get(r++))}return n}parseStringBMP(e,t){for(var n,r,o="",i=e;i<t;)n=this.get(i++),r=this.get(i++),o+=String.fromCharCode(n<<8|r);return o}parseTime(e,t,n){var r=this.parseStringISO(e,t),o=(n?h:p).exec(r);return o?(n&&(o[1]=+o[1],o[1]+=+o[1]<70?2e3:1900),r=o[1]+"-"+o[2]+"-"+o[3]+" "+o[4],o[5]&&(r+=":"+o[5],o[6]&&(r+=":"+o[6],o[7]&&(r+="."+o[7]))),o[8]&&(r+=" UTC","Z"!=o[8]&&(r+=o[8],o[9]&&(r+=":"+o[9]))),r):"Unrecognized time: "+r}parseInteger(e,t){for(var n,r=this.get(e),o=r>127,i=o?255:0,s="";r==i&&++e<t;)r=this.get(e);if(0===(n=t-e))return o?-1:0;if(n>4){for(s=r,n<<=3;!(128&(+s^i));)s=+s<<1,--n;s="("+n+" bit)\n"}o&&(r-=256);for(var a=new z(r),c=e+1;c<t;++c)a.mulAdd(256,this.get(c));return s+a.toString()}parseBitString(e,t,n){for(var r=this.get(e),o="("+((t-e-1<<3)-r)+" bit)\n",i="",s=e+1;s<t;++s){for(var a=this.get(s),c=s==t-1?r:0,u=7;u>=c;--u)i+=a>>u&1?"1":"0";if(i.length>n)return o+W(i,n)}return o+i}parseOctetString(e,t,n){if(this.isASCII(e,t))return W(this.parseStringISO(e,t),n);var r=t-e,o="("+r+" byte)\n";r>(n/=2)&&(t=e+n);for(var i=e;i<t;++i)o+=this.hexByte(this.get(i));return r>n&&(o+="…"),o}parseOID(e,t,n){for(var r="",o=new z,i=0,s=e;s<t;++s){var a=this.get(s);if(o.mulAdd(128,127&a),i+=7,!(128&a)){if(""===r)if((o=o.simplify())instanceof z)o.sub(80),r="2."+o.toString();else{var c=o<80?o<40?0:1:2;r=c+"."+(o-40*c)}else r+="."+o.toString();if(r.length>n)return W(r,n);o=new z,i=0}}return i>0&&(r+=".incomplete"),r}}class K{constructor(e,t,n,r,o){if(!(r instanceof Y))throw new Error("Invalid tag value.");this.stream=e,this.header=t,this.length=n,this.tag=r,this.sub=o}typeName(){switch(this.tag.tagClass){case 0:switch(this.tag.tagNumber){case 0:return"EOC";case 1:return"BOOLEAN";case 2:return"INTEGER";case 3:return"BIT_STRING";case 4:return"OCTET_STRING";case 5:return"NULL";case 6:return"OBJECT_IDENTIFIER";case 7:return"ObjectDescriptor";case 8:return"EXTERNAL";case 9:return"REAL";case 10:return"ENUMERATED";case 11:return"EMBEDDED_PDV";case 12:return"UTF8String";case 16:return"SEQUENCE";case 17:return"SET";case 18:return"NumericString";case 19:return"PrintableString";case 20:return"TeletexString";case 21:return"VideotexString";case 22:return"IA5String";case 23:return"UTCTime";case 24:return"GeneralizedTime";case 25:return"GraphicString";case 26:return"VisibleString";case 27:return"GeneralString";case 28:return"UniversalString";case 30:return"BMPString"}return"Universal_"+this.tag.tagNumber.toString();case 1:return"Application_"+this.tag.tagNumber.toString();case 2:return"["+this.tag.tagNumber.toString()+"]";case 3:return"Private_"+this.tag.tagNumber.toString()}}content(e){if(void 0===this.tag)return null;void 0===e&&(e=1/0);var t=this.posContent(),n=Math.abs(this.length);if(!this.tag.isUniversal())return null!==this.sub?"("+this.sub.length+" elem)":this.stream.parseOctetString(t,t+n,e);switch(this.tag.tagNumber){case 1:return 0===this.stream.get(t)?"false":"true";case 2:return this.stream.parseInteger(t,t+n);case 3:return this.sub?"("+this.sub.length+" elem)":this.stream.parseBitString(t,t+n,e);case 4:return this.sub?"("+this.sub.length+" elem)":this.stream.parseOctetString(t,t+n,e);case 6:return this.stream.parseOID(t,t+n,e);case 16:case 17:return null!==this.sub?"("+this.sub.length+" elem)":"(no elem)";case 12:return W(this.stream.parseStringUTF(t,t+n),e);case 18:case 19:case 20:case 21:case 22:case 26:return W(this.stream.parseStringISO(t,t+n),e);case 30:return W(this.stream.parseStringBMP(t,t+n),e);case 23:case 24:return this.stream.parseTime(t,t+n,23==this.tag.tagNumber)}return null}toString(){return this.typeName()+"@"+this.stream.pos+"[header:"+this.header+",length:"+this.length+",sub:"+(null===this.sub?"null":this.sub.length)+"]"}toPrettyString(e){void 0===e&&(e="");var t=e+this.typeName()+" @"+this.stream.pos;if(this.length>=0&&(t+="+"),t+=this.length,this.tag.tagConstructed?t+=" (constructed)":!this.tag.isUniversal()||3!=this.tag.tagNumber&&4!=this.tag.tagNumber||null===this.sub||(t+=" (encapsulates)"),t+="\n",null!==this.sub){e+=" ";for(var n=0,r=this.sub.length;n<r;++n)t+=this.sub[n].toPrettyString(e)}return t}posStart(){return this.stream.pos}posContent(){return this.stream.pos+this.header}posEnd(){return this.stream.pos+this.header+Math.abs(this.length)}toHexString(){return this.stream.hexDump(this.posStart(),this.posEnd(),!0)}static decodeLength(e){var t=e.get(),n=127&t;if(n==t)return n;if(n>6)throw new Error("Length over 48 bits not supported at position "+(e.pos-1));if(0===n)return null;t=0;for(var r=0;r<n;++r)t=256*t+e.get();return t}getHexStringValue(){var e=this.toHexString(),t=2*this.header,n=2*this.length;return e.substr(t,n)}static decode(e){var t;t=e instanceof V?e:new V(e,0);var n=new V(t),r=new Y(t),o=K.decodeLength(t),i=t.pos,s=i-n.pos,a=null,c=function(){var e=[];if(null!==o){for(var n=i+o;t.pos<n;)e[e.length]=K.decode(t);if(t.pos!=n)throw new Error("Content size is not correct for container starting at offset "+i)}else try{for(;;){var r=K.decode(t);if(r.tag.isEOC())break;e[e.length]=r}o=i-t.pos}catch(e){throw new Error("Exception while decoding undefined length content: "+e)}return e};if(r.tagConstructed)a=c();else if(r.isUniversal()&&(3==r.tagNumber||4==r.tagNumber))try{if(3==r.tagNumber&&0!=t.get())throw new Error("BIT STRINGs with unused bits cannot encapsulate.");a=c();for(var u=0;u<a.length;++u)if(a[u].tag.isEOC())throw new Error("EOC is not supposed to be actual content.")}catch(e){a=null}if(null===a){if(null===o)throw new Error("We can't skip over an invalid tag with undefined length at offset "+i);t.pos=i+Math.abs(o)}return new K(n,s,o,r,a)}}class Y{constructor(e){var t=e.get();if(this.tagClass=t>>6,this.tagConstructed=!!(32&t),this.tagNumber=31&t,31==this.tagNumber){var n=new z;do{t=e.get(),n.mulAdd(128,127&t)}while(128&t);this.tagNumber=n.simplify()}}isUniversal(){return 0===this.tagClass}isEOC(){return 0===this.tagClass&&0===this.tagNumber}}var f=[2,3,5,7,11,13,17,19,23,29,31,37,41,43,47,53,59,61,67,71,73,79,83,89,97,101,103,107,109,113,127,131,137,139,149,151,157,163,167,173,179,181,191,193,197,199,211,223,227,229,233,239,241,251,257,263,269,271,277,281,283,293,307,311,313,317,331,337,347,349,353,359,367,373,379,383,389,397,401,409,419,421,431,433,439,443,449,457,461,463,467,479,487,491,499,503,509,521,523,541,547,557,563,569,571,577,587,593,599,601,607,613,617,619,631,641,643,647,653,659,661,673,677,683,691,701,709,719,727,733,739,743,751,757,761,769,773,787,797,809,811,821,823,827,829,839,853,857,859,863,877,881,883,887,907,911,919,929,937,941,947,953,967,971,977,983,991,997],m=(1<<26)/f[f.length-1];class Q{constructor(e,t,n){null!=e&&("number"==typeof e?this.fromNumber(e,t,n):null==t&&"string"!=typeof e?this.fromString(e,256):this.fromString(e,t))}toString(e){if(this.s<0)return"-"+this.negate().toString(e);var t;if(16==e)t=4;else if(8==e)t=3;else if(2==e)t=1;else if(32==e)t=5;else{if(4!=e)return this.toRadix(e);t=2}var n,r=(1<<t)-1,o=!1,i="",s=this.t,a=this.DB-s*this.DB%t;if(s-- >0)for(a<this.DB&&(n=this[s]>>a)>0&&(o=!0,i=D(n));s>=0;)a<t?(n=(this[s]&(1<<a)-1)<<t-a,n|=this[--s]>>(a+=this.DB-t)):(n=this[s]>>(a-=t)&r,a<=0&&(a+=this.DB,--s)),n>0&&(o=!0),o&&(i+=D(n));return o?i:"0"}negate(){var e=X();return Q.ZERO.subTo(this,e),e}abs(){return this.s<0?this.negate():this}compareTo(e){var t=this.s-e.s;if(0!=t)return t;var n=this.t;if(0!=(t=n-e.t))return this.s<0?-t:t;for(;--n>=0;)if(0!=(t=this[n]-e[n]))return t;return 0}bitLength(){return this.t<=0?0:this.DB*(this.t-1)+oe(this[this.t-1]^this.s&this.DM)}mod(e){var t=X();return this.abs().divRemTo(e,null,t),this.s<0&&t.compareTo(Q.ZERO)>0&&e.subTo(t,t),t}modPowInt(e,t){var n;return n=e<256||t.isEven()?new v(t):new _(t),this.exp(e,n)}clone(){var e=X();return this.copyTo(e),e}intValue(){if(this.s<0){if(1==this.t)return this[0]-this.DV;if(0==this.t)return-1}else{if(1==this.t)return this[0];if(0==this.t)return 0}return(this[1]&(1<<32-this.DB)-1)<<this.DB|this[0]}byteValue(){return 0==this.t?this.s:this[0]<<24>>24}shortValue(){return 0==this.t?this.s:this[0]<<16>>16}signum(){return this.s<0?-1:this.t<=0||1==this.t&&this[0]<=0?0:1}toByteArray(){var e=this.t,t=[];t[0]=this.s;var n,r=this.DB-e*this.DB%8,o=0;if(e-- >0)for(r<this.DB&&(n=this[e]>>r)!=(this.s&this.DM)>>r&&(t[o++]=n|this.s<<this.DB-r);e>=0;)r<8?(n=(this[e]&(1<<r)-1)<<8-r,n|=this[--e]>>(r+=this.DB-8)):(n=this[e]>>(r-=8)&255,r<=0&&(r+=this.DB,--e)),128&n&&(n|=-256),0==o&&(128&this.s)!=(128&n)&&++o,(o>0||n!=this.s)&&(t[o++]=n);return t}equals(e){return 0==this.compareTo(e)}min(e){return this.compareTo(e)<0?this:e}max(e){return this.compareTo(e)>0?this:e}and(e){var t=X();return this.bitwiseTo(e,U,t),t}or(e){var t=X();return this.bitwiseTo(e,j,t),t}xor(e){var t=X();return this.bitwiseTo(e,F,t),t}andNot(e){var t=X();return this.bitwiseTo(e,$,t),t}not(){for(var e=X(),t=0;t<this.t;++t)e[t]=this.DM&~this[t];return e.t=this.t,e.s=~this.s,e}shiftLeft(e){var t=X();return e<0?this.rShiftTo(-e,t):this.lShiftTo(e,t),t}shiftRight(e){var t=X();return e<0?this.lShiftTo(-e,t):this.rShiftTo(e,t),t}getLowestSetBit(){for(var e=0;e<this.t;++e)if(0!=this[e])return e*this.DB+G(this[e]);return this.s<0?this.t*this.DB:-1}bitCount(){for(var e=0,t=this.s&this.DM,n=0;n<this.t;++n)e+=B(this[n]^t);return e}testBit(e){var t=Math.floor(e/this.DB);return t>=this.t?0!=this.s:!!(this[t]&1<<e%this.DB)}setBit(e){return this.changeBit(e,j)}clearBit(e){return this.changeBit(e,$)}flipBit(e){return this.changeBit(e,F)}add(e){var t=X();return this.addTo(e,t),t}subtract(e){var t=X();return this.subTo(e,t),t}multiply(e){var t=X();return this.multiplyTo(e,t),t}divide(e){var t=X();return this.divRemTo(e,t,null),t}remainder(e){var t=X();return this.divRemTo(e,null,t),t}divideAndRemainder(e){var t=X(),n=X();return this.divRemTo(e,t,n),[t,n]}modPow(e,t){var n,r,o=e.bitLength(),i=re(1);if(o<=0)return i;n=o<18?1:o<48?3:o<144?4:o<768?5:6,r=o<8?new v(t):t.isEven()?new y(t):new _(t);var s=[],a=3,c=n-1,u=(1<<n)-1;if(s[1]=r.convert(this),n>1){var l=X();for(r.sqrTo(s[1],l);a<=u;)s[a]=X(),r.mulTo(l,s[a-2],s[a]),a+=2}var d,h,p=e.t-1,f=!0,m=X();for(o=oe(e[p])-1;p>=0;){for(o>=c?d=e[p]>>o-c&u:(d=(e[p]&(1<<o+1)-1)<<c-o,p>0&&(d|=e[p-1]>>this.DB+o-c)),a=n;!(1&d);)d>>=1,--a;if((o-=a)<0&&(o+=this.DB,--p),f)s[d].copyTo(i),f=!1;else{for(;a>1;)r.sqrTo(i,m),r.sqrTo(m,i),a-=2;a>0?r.sqrTo(i,m):(h=i,i=m,m=h),r.mulTo(m,s[d],i)}for(;p>=0&&!(e[p]&1<<o);)r.sqrTo(i,m),h=i,i=m,m=h,--o<0&&(o=this.DB-1,--p)}return r.revert(i)}modInverse(e){var t=e.isEven();if(this.isEven()&&t||0==e.signum())return Q.ZERO;for(var n=e.clone(),r=this.clone(),o=re(1),i=re(0),s=re(0),a=re(1);0!=n.signum();){for(;n.isEven();)n.rShiftTo(1,n),t?(o.isEven()&&i.isEven()||(o.addTo(this,o),i.subTo(e,i)),o.rShiftTo(1,o)):i.isEven()||i.subTo(e,i),i.rShiftTo(1,i);for(;r.isEven();)r.rShiftTo(1,r),t?(s.isEven()&&a.isEven()||(s.addTo(this,s),a.subTo(e,a)),s.rShiftTo(1,s)):a.isEven()||a.subTo(e,a),a.rShiftTo(1,a);n.compareTo(r)>=0?(n.subTo(r,n),t&&o.subTo(s,o),i.subTo(a,i)):(r.subTo(n,r),t&&s.subTo(o,s),a.subTo(i,a))}return 0!=r.compareTo(Q.ONE)?Q.ZERO:a.compareTo(e)>=0?a.subtract(e):a.signum()<0?(a.addTo(e,a),a.signum()<0?a.add(e):a):a}pow(e){return this.exp(e,new g)}gcd(e){var t=this.s<0?this.negate():this.clone(),n=e.s<0?e.negate():e.clone();if(t.compareTo(n)<0){var r=t;t=n,n=r}var o=t.getLowestSetBit(),i=n.getLowestSetBit();if(i<0)return t;for(o<i&&(i=o),i>0&&(t.rShiftTo(i,t),n.rShiftTo(i,n));t.signum()>0;)(o=t.getLowestSetBit())>0&&t.rShiftTo(o,t),(o=n.getLowestSetBit())>0&&n.rShiftTo(o,n),t.compareTo(n)>=0?(t.subTo(n,t),t.rShiftTo(1,t)):(n.subTo(t,n),n.rShiftTo(1,n));return i>0&&n.lShiftTo(i,n),n}isProbablePrime(e){var t,n=this.abs();if(1==n.t&&n[0]<=f[f.length-1]){for(t=0;t<f.length;++t)if(n[0]==f[t])return!0;return!1}if(n.isEven())return!1;for(t=1;t<f.length;){for(var r=f[t],o=t+1;o<f.length&&r<m;)r*=f[o++];for(r=n.modInt(r);t<o;)if(r%f[t++]==0)return!1}return n.millerRabin(e)}copyTo(e){for(var t=this.t-1;t>=0;--t)e[t]=this[t];e.t=this.t,e.s=this.s}fromInt(e){this.t=1,this.s=e<0?-1:0,e>0?this[0]=e:e<-1?this[0]=e+this.DV:this.t=0}fromString(e,t){var n;if(16==t)n=4;else if(8==t)n=3;else if(256==t)n=8;else if(2==t)n=1;else if(32==t)n=5;else{if(4!=t)return void this.fromRadix(e,t);n=2}this.t=0,this.s=0;for(var r=e.length,o=!1,i=0;--r>=0;){var s=8==n?255&+e[r]:ne(e,r);s<0?"-"==e.charAt(r)&&(o=!0):(o=!1,0==i?this[this.t++]=s:i+n>this.DB?(this[this.t-1]|=(s&(1<<this.DB-i)-1)<<i,this[this.t++]=s>>this.DB-i):this[this.t-1]|=s<<i,(i+=n)>=this.DB&&(i-=this.DB))}8==n&&128&+e[0]&&(this.s=-1,i>0&&(this[this.t-1]|=(1<<this.DB-i)-1<<i)),this.clamp(),o&&Q.ZERO.subTo(this,this)}clamp(){for(var e=this.s&this.DM;this.t>0&&this[this.t-1]==e;)--this.t}dlShiftTo(e,t){var n;for(n=this.t-1;n>=0;--n)t[n+e]=this[n];for(n=e-1;n>=0;--n)t[n]=0;t.t=this.t+e,t.s=this.s}drShiftTo(e,t){for(var n=e;n<this.t;++n)t[n-e]=this[n];t.t=Math.max(this.t-e,0),t.s=this.s}lShiftTo(e,t){for(var n=e%this.DB,r=this.DB-n,o=(1<<r)-1,i=Math.floor(e/this.DB),s=this.s<<n&this.DM,a=this.t-1;a>=0;--a)t[a+i+1]=this[a]>>r|s,s=(this[a]&o)<<n;for(a=i-1;a>=0;--a)t[a]=0;t[i]=s,t.t=this.t+i+1,t.s=this.s,t.clamp()}rShiftTo(e,t){t.s=this.s;var n=Math.floor(e/this.DB);if(n>=this.t)t.t=0;else{var r=e%this.DB,o=this.DB-r,i=(1<<r)-1;t[0]=this[n]>>r;for(var s=n+1;s<this.t;++s)t[s-n-1]|=(this[s]&i)<<o,t[s-n]=this[s]>>r;r>0&&(t[this.t-n-1]|=(this.s&i)<<o),t.t=this.t-n,t.clamp()}}subTo(e,t){for(var n=0,r=0,o=Math.min(e.t,this.t);n<o;)r+=this[n]-e[n],t[n++]=r&this.DM,r>>=this.DB;if(e.t<this.t){for(r-=e.s;n<this.t;)r+=this[n],t[n++]=r&this.DM,r>>=this.DB;r+=this.s}else{for(r+=this.s;n<e.t;)r-=e[n],t[n++]=r&this.DM,r>>=this.DB;r-=e.s}t.s=r<0?-1:0,r<-1?t[n++]=this.DV+r:r>0&&(t[n++]=r),t.t=n,t.clamp()}multiplyTo(e,t){var n=this.abs(),r=e.abs(),o=n.t;for(t.t=o+r.t;--o>=0;)t[o]=0;for(o=0;o<r.t;++o)t[o+n.t]=n.am(0,r[o],t,o,0,n.t);t.s=0,t.clamp(),this.s!=e.s&&Q.ZERO.subTo(t,t)}squareTo(e){for(var t=this.abs(),n=e.t=2*t.t;--n>=0;)e[n]=0;for(n=0;n<t.t-1;++n){var r=t.am(n,t[n],e,2*n,0,1);(e[n+t.t]+=t.am(n+1,2*t[n],e,2*n+1,r,t.t-n-1))>=t.DV&&(e[n+t.t]-=t.DV,e[n+t.t+1]=1)}e.t>0&&(e[e.t-1]+=t.am(n,t[n],e,2*n,0,1)),e.s=0,e.clamp()}divRemTo(e,t,n){var r=e.abs();if(!(r.t<=0)){var o=this.abs();if(o.t<r.t)return null!=t&&t.fromInt(0),void(null!=n&&this.copyTo(n));null==n&&(n=X());var i=X(),s=this.s,a=e.s,c=this.DB-oe(r[r.t-1]);c>0?(r.lShiftTo(c,i),o.lShiftTo(c,n)):(r.copyTo(i),o.copyTo(n));var u=i.t,l=i[u-1];if(0!=l){var d=l*(1<<this.F1)+(u>1?i[u-2]>>this.F2:0),h=this.FV/d,p=(1<<this.F1)/d,f=1<<this.F2,m=n.t,g=m-u,v=null==t?X():t;for(i.dlShiftTo(g,v),n.compareTo(v)>=0&&(n[n.t++]=1,n.subTo(v,n)),Q.ONE.dlShiftTo(u,v),v.subTo(i,i);i.t<u;)i[i.t++]=0;for(;--g>=0;){var _=n[--m]==l?this.DM:Math.floor(n[m]*h+(n[m-1]+f)*p);if((n[m]+=i.am(0,_,n,g,0,u))<_)for(i.dlShiftTo(g,v),n.subTo(v,n);n[m]<--_;)n.subTo(v,n)}null!=t&&(n.drShiftTo(u,t),s!=a&&Q.ZERO.subTo(t,t)),n.t=u,n.clamp(),c>0&&n.rShiftTo(c,n),s<0&&Q.ZERO.subTo(n,n)}}}invDigit(){if(this.t<1)return 0;var e=this[0];if(!(1&e))return 0;var t=3&e;return(t=(t=(t=(t=t*(2-(15&e)*t)&15)*(2-(255&e)*t)&255)*(2-((65535&e)*t&65535))&65535)*(2-e*t%this.DV)%this.DV)>0?this.DV-t:-t}isEven(){return 0==(this.t>0?1&this[0]:this.s)}exp(e,t){if(e>4294967295||e<1)return Q.ONE;var n=X(),r=X(),o=t.convert(this),i=oe(e)-1;for(o.copyTo(n);--i>=0;)if(t.sqrTo(n,r),(e&1<<i)>0)t.mulTo(r,o,n);else{var s=n;n=r,r=s}return t.revert(n)}chunkSize(e){return Math.floor(Math.LN2*this.DB/Math.log(e))}toRadix(e){if(null==e&&(e=10),0==this.signum()||e<2||e>36)return"0";var t=this.chunkSize(e),n=Math.pow(e,t),r=re(n),o=X(),i=X(),s="";for(this.divRemTo(r,o,i);o.signum()>0;)s=(n+i.intValue()).toString(e).substr(1)+s,o.divRemTo(r,o,i);return i.intValue().toString(e)+s}fromRadix(e,t){this.fromInt(0),null==t&&(t=10);for(var n=this.chunkSize(t),r=Math.pow(t,n),o=!1,i=0,s=0,a=0;a<e.length;++a){var c=ne(e,a);c<0?"-"==e.charAt(a)&&0==this.signum()&&(o=!0):(s=t*s+c,++i>=n&&(this.dMultiply(r),this.dAddOffset(s,0),i=0,s=0))}i>0&&(this.dMultiply(Math.pow(t,i)),this.dAddOffset(s,0)),o&&Q.ZERO.subTo(this,this)}fromNumber(e,t,n){if("number"==typeof t)if(e<2)this.fromInt(1);else for(this.fromNumber(e,n),this.testBit(e-1)||this.bitwiseTo(Q.ONE.shiftLeft(e-1),j,this),this.isEven()&&this.dAddOffset(1,0);!this.isProbablePrime(t);)this.dAddOffset(2,0),this.bitLength()>e&&this.subTo(Q.ONE.shiftLeft(e-1),this);else{var r=[],o=7&e;r.length=1+(e>>3),t.nextBytes(r),o>0?r[0]&=(1<<o)-1:r[0]=0,this.fromString(r,256)}}bitwiseTo(e,t,n){var r,o,i=Math.min(e.t,this.t);for(r=0;r<i;++r)n[r]=t(this[r],e[r]);if(e.t<this.t){for(o=e.s&this.DM,r=i;r<this.t;++r)n[r]=t(this[r],o);n.t=this.t}else{for(o=this.s&this.DM,r=i;r<e.t;++r)n[r]=t(o,e[r]);n.t=e.t}n.s=t(this.s,e.s),n.clamp()}changeBit(e,t){var n=Q.ONE.shiftLeft(e);return this.bitwiseTo(n,t,n),n}addTo(e,t){for(var n=0,r=0,o=Math.min(e.t,this.t);n<o;)r+=this[n]+e[n],t[n++]=r&this.DM,r>>=this.DB;if(e.t<this.t){for(r+=e.s;n<this.t;)r+=this[n],t[n++]=r&this.DM,r>>=this.DB;r+=this.s}else{for(r+=this.s;n<e.t;)r+=e[n],t[n++]=r&this.DM,r>>=this.DB;r+=e.s}t.s=r<0?-1:0,r>0?t[n++]=r:r<-1&&(t[n++]=this.DV+r),t.t=n,t.clamp()}dMultiply(e){this[this.t]=this.am(0,e-1,this,0,0,this.t),++this.t,this.clamp()}dAddOffset(e,t){if(0!=e){for(;this.t<=t;)this[this.t++]=0;for(this[t]+=e;this[t]>=this.DV;)this[t]-=this.DV,++t>=this.t&&(this[this.t++]=0),++this[t]}}multiplyLowerTo(e,t,n){var r=Math.min(this.t+e.t,t);for(n.s=0,n.t=r;r>0;)n[--r]=0;for(var o=n.t-this.t;r<o;++r)n[r+this.t]=this.am(0,e[r],n,r,0,this.t);for(o=Math.min(e.t,t);r<o;++r)this.am(0,e[r],n,r,0,t-r);n.clamp()}multiplyUpperTo(e,t,n){--t;var r=n.t=this.t+e.t-t;for(n.s=0;--r>=0;)n[r]=0;for(r=Math.max(t-this.t,0);r<e.t;++r)n[this.t+r-t]=this.am(t-r,e[r],n,0,0,this.t+r-t);n.clamp(),n.drShiftTo(1,n)}modInt(e){if(e<=0)return 0;var t=this.DV%e,n=this.s<0?e-1:0;if(this.t>0)if(0==t)n=this[0]%e;else for(var r=this.t-1;r>=0;--r)n=(t*n+this[r])%e;return n}millerRabin(e){var t=this.subtract(Q.ONE),n=t.getLowestSetBit();if(n<=0)return!1;var r=t.shiftRight(n);(e=e+1>>1)>f.length&&(e=f.length);for(var o=X(),i=0;i<e;++i){o.fromInt(f[Math.floor(Math.random()*f.length)]);var s=o.modPow(r,this);if(0!=s.compareTo(Q.ONE)&&0!=s.compareTo(t)){for(var a=1;a++<n&&0!=s.compareTo(t);)if(0==(s=s.modPowInt(2,this)).compareTo(Q.ONE))return!1;if(0!=s.compareTo(t))return!1}}return!0}square(){var e=X();return this.squareTo(e),e}gcda(e,t){var n=this.s<0?this.negate():this.clone(),r=e.s<0?e.negate():e.clone();if(n.compareTo(r)<0){var o=n;n=r,r=o}var i=n.getLowestSetBit(),s=r.getLowestSetBit();if(s<0)t(n);else{i<s&&(s=i),s>0&&(n.rShiftTo(s,n),r.rShiftTo(s,r));var a=()=>{(i=n.getLowestSetBit())>0&&n.rShiftTo(i,n),(i=r.getLowestSetBit())>0&&r.rShiftTo(i,r),n.compareTo(r)>=0?(n.subTo(r,n),n.rShiftTo(1,n)):(r.subTo(n,r),r.rShiftTo(1,r)),n.signum()>0?setTimeout(a,0):(s>0&&r.lShiftTo(s,r),setTimeout(function(){t(r)},0))};setTimeout(a,10)}}fromNumberAsync(e,t,n,r){if("number"==typeof t)if(e<2)this.fromInt(1);else{this.fromNumber(e,n),this.testBit(e-1)||this.bitwiseTo(Q.ONE.shiftLeft(e-1),j,this),this.isEven()&&this.dAddOffset(1,0);var o=this,i=function(){o.dAddOffset(2,0),o.bitLength()>e&&o.subTo(Q.ONE.shiftLeft(e-1),o),o.isProbablePrime(t)?setTimeout(function(){r()},0):setTimeout(i,0)};setTimeout(i,0)}else{var s=[],a=7&e;s.length=1+(e>>3),t.nextBytes(s),a>0?s[0]&=(1<<a)-1:s[0]=0,this.fromString(s,256)}}}var g=function(){function e(){}return e.prototype.convert=function(e){return e},e.prototype.revert=function(e){return e},e.prototype.mulTo=function(e,t,n){e.multiplyTo(t,n)},e.prototype.sqrTo=function(e,t){e.squareTo(t)},e}(),v=function(){function e(e){this.m=e}return e.prototype.convert=function(e){return e.s<0||e.compareTo(this.m)>=0?e.mod(this.m):e},e.prototype.revert=function(e){return e},e.prototype.reduce=function(e){e.divRemTo(this.m,null,e)},e.prototype.mulTo=function(e,t,n){e.multiplyTo(t,n),this.reduce(n)},e.prototype.sqrTo=function(e,t){e.squareTo(t),this.reduce(t)},e}(),_=function(){function e(e){this.m=e,this.mp=e.invDigit(),this.mpl=32767&this.mp,this.mph=this.mp>>15,this.um=(1<<e.DB-15)-1,this.mt2=2*e.t}return e.prototype.convert=function(e){var t=X();return e.abs().dlShiftTo(this.m.t,t),t.divRemTo(this.m,null,t),e.s<0&&t.compareTo(Q.ZERO)>0&&this.m.subTo(t,t),t},e.prototype.revert=function(e){var t=X();return e.copyTo(t),this.reduce(t),t},e.prototype.reduce=function(e){for(;e.t<=this.mt2;)e[e.t++]=0;for(var t=0;t<this.m.t;++t){var n=32767&e[t],r=n*this.mpl+((n*this.mph+(e[t]>>15)*this.mpl&this.um)<<15)&e.DM;for(e[n=t+this.m.t]+=this.m.am(0,r,e,t,0,this.m.t);e[n]>=e.DV;)e[n]-=e.DV,e[++n]++}e.clamp(),e.drShiftTo(this.m.t,e),e.compareTo(this.m)>=0&&e.subTo(this.m,e)},e.prototype.mulTo=function(e,t,n){e.multiplyTo(t,n),this.reduce(n)},e.prototype.sqrTo=function(e,t){e.squareTo(t),this.reduce(t)},e}(),y=function(){function e(e){this.m=e,this.r2=X(),this.q3=X(),Q.ONE.dlShiftTo(2*e.t,this.r2),this.mu=this.r2.divide(e)}return e.prototype.convert=function(e){if(e.s<0||e.t>2*this.m.t)return e.mod(this.m);if(e.compareTo(this.m)<0)return e;var t=X();return e.copyTo(t),this.reduce(t),t},e.prototype.revert=function(e){return e},e.prototype.reduce=function(e){for(e.drShiftTo(this.m.t-1,this.r2),e.t>this.m.t+1&&(e.t=this.m.t+1,e.clamp()),this.mu.multiplyUpperTo(this.r2,this.m.t+1,this.q3),this.m.multiplyLowerTo(this.q3,this.m.t+1,this.r2);e.compareTo(this.r2)<0;)e.dAddOffset(1,this.m.t+1);for(e.subTo(this.r2,e);e.compareTo(this.m)>=0;)e.subTo(this.m,e)},e.prototype.mulTo=function(e,t,n){e.multiplyTo(t,n),this.reduce(n)},e.prototype.sqrTo=function(e,t){e.squareTo(t),this.reduce(t)},e}();function X(){return new Q(null)}function J(e,t){return new Q(e,t)}function Z(e,t,n,r,o,i){for(;--i>=0;){var s=t*this[e++]+n[r]+o;o=Math.floor(s/67108864),n[r++]=67108863&s}return o}function ee(e,t,n,r,o,i){for(var s=32767&t,a=t>>15;--i>=0;){var c=32767&this[e],u=this[e++]>>15,l=a*c+u*s;o=((c=s*c+((32767&l)<<15)+n[r]+(1073741823&o))>>>30)+(l>>>15)+a*u+(o>>>30),n[r++]=1073741823&c}return o}function te(e,t,n,r,o,i){for(var s=16383&t,a=t>>14;--i>=0;){var c=16383&this[e],u=this[e++]>>14,l=a*c+u*s;o=((c=s*c+((16383&l)<<14)+n[r]+o)>>28)+(l>>14)+a*u,n[r++]=268435455&c}return o}void 0!==o&&"Microsoft Internet Explorer"==(null==o?void 0:o.appName)?(Q.prototype.am=ee,d=30):"Netscape"!=(null==o?void 0:o.appName)?(Q.prototype.am=Z,d=26):(Q.prototype.am=te,d=28),Q.prototype.DB=d,Q.prototype.DM=(1<<d)-1,Q.prototype.DV=1<<d,Q.prototype.FV=Math.pow(2,52),Q.prototype.F1=52-d,Q.prototype.F2=2*d-52;var b,w,E=[];for(b="0".charCodeAt(0),w=0;w<=9;++w)E[b++]=w;for(b="a".charCodeAt(0),w=10;w<36;++w)E[b++]=w;for(b="A".charCodeAt(0),w=10;w<36;++w)E[b++]=w;function ne(e,t){var n=E[e.charCodeAt(t)];return null==n?-1:n}function re(e){var t=X();return t.fromInt(e),t}function oe(e){var t,n=1;return 0!=(t=e>>>16)&&(e=t,n+=16),0!=(t=e>>8)&&(e=t,n+=8),0!=(t=e>>4)&&(e=t,n+=4),0!=(t=e>>2)&&(e=t,n+=2),0!=(t=e>>1)&&(e=t,n+=1),n}Q.ZERO=re(0),Q.ONE=re(1);class ie{constructor(){this.i=0,this.j=0,this.S=[]}init(e){var t,n,r;for(t=0;t<256;++t)this.S[t]=t;for(n=0,t=0;t<256;++t)n=n+this.S[t]+e[t%e.length]&255,r=this.S[t],this.S[t]=this.S[n],this.S[n]=r;this.i=0,this.j=0}next(){var e;return this.i=this.i+1&255,this.j=this.j+this.S[this.i]&255,e=this.S[this.i],this.S[this.i]=this.S[this.j],this.S[this.j]=e,this.S[e+this.S[this.i]&255]}}var I,S,A=null;if(null==A){A=[],S=0;var O,T,C=void 0;if("undefined"!=typeof window&&null!==(O=window)&&void 0!==O&&O.crypto&&null!==(T=window)&&void 0!==T&&T.crypto.getRandomValues){var k,P=new Uint32Array(256);for(null===(k=window)||void 0===k||k.crypto.getRandomValues(P),C=0;C<P.length;++C)A[S++]=255&P[C]}var N,R,M,x=function(e){var t,n,r;if(this.count=this.count||0,this.count>=256||S>=256){if("undefined"!=typeof window)if(null!==(t=window)&&void 0!==t&&t.removeEventListener)null===(r=window)||void 0===r||r.removeEventListener("mousemove",x,!1);else if(null!==(n=window)&&void 0!==n&&n.detachEvent){var o;null===(o=window)||void 0===o||o.detachEvent("onmousemove",x)}}else try{var i=e.x+e.y;A[S++]=255&i,this.count+=1}catch(e){}};if("undefined"!=typeof window)if(null!==(N=window)&&void 0!==N&&N.addEventListener)null===(M=window)||void 0===M||M.addEventListener("mousemove",x,!1);else if(null!==(R=window)&&void 0!==R&&R.attachEvent){var L;null===(L=window)||void 0===L||L.attachEvent("onmousemove",x)}}function se(){if(null==I){for(I=new ie;S<256;){var e=Math.floor(65536*Math.random());A[S++]=255&e}for(I.init(A),S=0;S<A.length;++S)A[S]=0;S=0}return I.next()}class ae{constructor(){}nextBytes(e){for(var t=0;t<e.length;++t)e[t]=se()}}function ce(e,t){if(t<e.length+11)return console.error("Message too long for RSA"),null;for(var n=[],r=e.length-1;r>=0&&t>0;){var o=e.charCodeAt(r--);o<128?n[--t]=o:o>127&&o<2048?(n[--t]=63&o|128,n[--t]=o>>6|192):(n[--t]=63&o|128,n[--t]=o>>6&63|128,n[--t]=o>>12|224)}n[--t]=0;for(var i=new ae,s=[];t>2;){for(s[0]=0;0==s[0];)i.nextBytes(s);n[--t]=s[0]}return n[--t]=2,n[--t]=0,new Q(n)}class ue{constructor(){this.n=null,this.e=0,this.d=null,this.p=null,this.q=null,this.dmp1=null,this.dmq1=null,this.coeff=null}doPublic(e){return e.modPowInt(this.e,this.n)}doPrivate(e){if(null==this.p||null==this.q)return e.modPow(this.d,this.n);for(var t=e.mod(this.p).modPow(this.dmp1,this.p),n=e.mod(this.q).modPow(this.dmq1,this.q);t.compareTo(n)<0;)t=t.add(this.p);return t.subtract(n).multiply(this.coeff).mod(this.p).multiply(this.q).add(n)}setPublic(e,t){null!=e&&null!=t&&e.length>0&&t.length>0?(this.n=J(e,16),this.e=parseInt(t,16)):console.error("Invalid RSA public key")}encrypt(e){var t=ce(e,this.n.bitLength()+7>>3);if(null==t)return null;var n=this.doPublic(t);if(null==n)return null;var r=n.toString(16);return 1&r.length?"0"+r:r}encryptLong(e){var t=this,n=(this.n.bitLength()+7>>3)-11;try{var r="";return e.length>n?(e.match(/.{1,117}/g).forEach(function(e){var n=t.encrypt(e);r+=n}),q(r)):q(this.encrypt(e))}catch(e){return!1}}decryptLong(e){var t=this,n=this.n.bitLength()+7>>3;e=H(e);try{if(e.length>n){var r="";return e.match(/.{1,256}/g).forEach(function(e){var n=t.decrypt(e);r+=n}),r}return this.decrypt(e)}catch(e){return!1}}setPrivate(e,t,n){null!=e&&null!=t&&e.length>0&&t.length>0?(this.n=J(e,16),this.e=parseInt(t,16),this.d=J(n,16)):console.error("Invalid RSA private key")}setPrivateEx(e,t,n,r,o,i,s,a){null!=e&&null!=t&&e.length>0&&t.length>0?(this.n=J(e,16),this.e=parseInt(t,16),this.d=J(n,16),this.p=J(r,16),this.q=J(o,16),this.dmp1=J(i,16),this.dmq1=J(s,16),this.coeff=J(a,16)):console.error("Invalid RSA private key")}generate(e,t){var n=new ae,r=e>>1;this.e=parseInt(t,16);for(var o=new Q(t,16);;){for(;this.p=new Q(e-r,1,n),0!=this.p.subtract(Q.ONE).gcd(o).compareTo(Q.ONE)||!this.p.isProbablePrime(10););for(;this.q=new Q(r,1,n),0!=this.q.subtract(Q.ONE).gcd(o).compareTo(Q.ONE)||!this.q.isProbablePrime(10););if(this.p.compareTo(this.q)<=0){var i=this.p;this.p=this.q,this.q=i}var s=this.p.subtract(Q.ONE),a=this.q.subtract(Q.ONE),c=s.multiply(a);if(0==c.gcd(o).compareTo(Q.ONE)){this.n=this.p.multiply(this.q),this.d=o.modInverse(c),this.dmp1=this.d.mod(s),this.dmq1=this.d.mod(a),this.coeff=this.q.modInverse(this.p);break}}}decrypt(e){var t=J(e,16),n=this.doPrivate(t);return null==n?null:le(n,this.n.bitLength()+7>>3)}generateAsync(e,t,n){var r=new ae,o=e>>1;this.e=parseInt(t,16);var i=new Q(t,16),s=this,a=()=>{var t=()=>{if(s.p.compareTo(s.q)<=0){var e=s.p;s.p=s.q,s.q=e}var t=s.p.subtract(Q.ONE),r=s.q.subtract(Q.ONE),o=t.multiply(r);0==o.gcd(i).compareTo(Q.ONE)?(s.n=s.p.multiply(s.q),s.d=i.modInverse(o),s.dmp1=s.d.mod(t),s.dmq1=s.d.mod(r),s.coeff=s.q.modInverse(s.p),setTimeout(function(){n()},0)):setTimeout(a,0)},c=()=>{s.q=X(),s.q.fromNumberAsync(o,1,r,function(){s.q.subtract(Q.ONE).gcda(i,function(e){0==e.compareTo(Q.ONE)&&s.q.isProbablePrime(10)?setTimeout(t,0):setTimeout(c,0)})})},u=()=>{s.p=X(),s.p.fromNumberAsync(e-o,1,r,function(){s.p.subtract(Q.ONE).gcda(i,function(e){0==e.compareTo(Q.ONE)&&s.p.isProbablePrime(10)?setTimeout(c,0):setTimeout(u,0)})})};setTimeout(u,0)};setTimeout(a,0)}}function le(e,t){for(var n=e.toByteArray(),r=0;r<n.length&&0==n[r];)++r;if(n.length-r!=t-1||2!=n[r])return null;for(++r;0!=n[r];)if(++r>=n.length)return null;for(var o="";++r<n.length;){var i=255&n[r];i<128?o+=String.fromCharCode(i):i>191&&i<224?(o+=String.fromCharCode((31&i)<<6|63&n[r+1]),++r):(o+=String.fromCharCode((15&i)<<12|(63&n[r+1])<<6|63&n[r+2]),r+=2)}return o}class de extends ue{constructor(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";super(),e&&("string"==typeof e?this.parseKey(e):(this.hasPrivateKeyProperty(e)||this.hasPublicKeyProperty(e))&&this.parsePropertiesFrom(e))}parseKey(e){try{var t=0,n=0,r=/^\s*(?:[0-9A-Fa-f][0-9A-Fa-f]\s*)+$/.test(e)?c.decode(e):u.unarmor(e),o=K.decode(r);if(3===o.sub.length&&(o=o.sub[2].sub[0]),9===o.sub.length){t=o.sub[1].getHexStringValue(),this.n=J(t,16),n=o.sub[2].getHexStringValue(),this.e=parseInt(n,16);var i=o.sub[3].getHexStringValue();this.d=J(i,16);var s=o.sub[4].getHexStringValue();this.p=J(s,16);var a=o.sub[5].getHexStringValue();this.q=J(a,16);var l=o.sub[6].getHexStringValue();this.dmp1=J(l,16);var d=o.sub[7].getHexStringValue();this.dmq1=J(d,16);var h=o.sub[8].getHexStringValue();this.coeff=J(h,16)}else{if(2!==o.sub.length)return!1;var p=o.sub[1].sub[0];t=p.sub[0].getHexStringValue(),this.n=J(t,16),n=p.sub[1].getHexStringValue(),this.e=parseInt(n,16)}return!0}catch(e){return!1}}hasPublicKeyProperty(e){return(e=e||{}).hasOwnProperty("n")&&e.hasOwnProperty("e")}hasPrivateKeyProperty(e){return(e=e||{}).hasOwnProperty("n")&&e.hasOwnProperty("e")&&e.hasOwnProperty("d")&&e.hasOwnProperty("p")&&e.hasOwnProperty("q")&&e.hasOwnProperty("dmp1")&&e.hasOwnProperty("dmq1")&&e.hasOwnProperty("coeff")}parsePropertiesFrom(e){this.n=e.n,this.e=e.e,e.hasOwnProperty("d")&&(this.d=e.d,this.p=e.p,this.q=e.q,this.dmp1=e.dmp1,this.dmq1=e.dmq1,this.coeff=e.coeff)}}(r=function(e){e=e||{},this.default_key_size=parseInt(e.default_key_size,10)||1024,this.default_public_exponent=e.default_public_exponent||"010001",this.log=e.log||!1,this.key=null}).prototype.setKey=function(e){this.log&&this.key&&console.warn("A key was already set, overriding existing."),this.key=new de(e)},r.prototype.setPrivateKey=function(e){this.setKey(e)},r.prototype.setPublicKey=function(e){this.setKey(e)},r.prototype.decrypt=function(e){try{return this.getKey().decrypt(H(e))}catch(e){return!1}},r.prototype.encrypt=function(e){try{return q(this.getKey().encrypt(e))}catch(e){return!1}},r.prototype.encryptLong=function(e){try{for(var t=this.getKey().encryptLong(e)||"",n=this.getKey().decryptLong(t)||"",r=0,o=/null$/g;o.test(n)&&(r++,t=this.getKey().encryptLong(e)||"",n=this.getKey().decryptLong(t)||"",!(r>10)););return t}catch(e){return!1}},r.prototype.getKey=function(e){if(!this.key){if(this.key=new de,e&&"[object Function]"==={}.toString.call(e))return void this.key.generateAsync(this.default_key_size,this.default_public_exponent,e);this.key.generate(this.default_key_size,this.default_public_exponent)}return this.key},r.version="3.1.4"}t.default=r},182:function(e,t,n){var r=this&&this.__assign||function(){return r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},r.apply(this,arguments)},o=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),s=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&o(t,e,n);return i(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.useDefaultAdapter=t.useAdapters=t.RUNTIME=void 0;var a,c=s(n(274)),u=n(616);!function(e){e.WEB="web",e.WX_MP="wx_mp"}(a=t.RUNTIME||(t.RUNTIME={})),t.useAdapters=function(e,t){for(var n=0,o=(0,u.isArray)(e)?e:[e];n<o.length;n++){var i=o[n],s=i.isMatch,a=i.genAdapter,c=i.runtime;if(s())return{adapter:r({isMatch:s},a(t)),runtime:c}}},t.useDefaultAdapter=function(){return{adapter:r({},c.genAdapter()),runtime:a.WEB}}},274:function(e,t,n){var r,o=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__assign||function(){return i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},i.apply(this,arguments)},s=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))(function(o,i){function s(e){try{c(r.next(e))}catch(e){i(e)}}function a(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(s,a)}c((r=r.apply(e,t||[])).next())})},a=this&&this.__generator||function(e,t){var n,r,o,i,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function a(a){return function(c){return function(a){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,a[0]&&(s=0)),s;)try{if(n=1,r&&(o=2&a[0]?r.return:a[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,a[1])).done)return o;switch(r=0,o&&(a=[2&a[0],o.value]),a[0]){case 0:case 1:o=a;break;case 4:return s.label++,{value:a[1],done:!1};case 5:s.label++,r=a[1],a=[0];continue;case 7:a=s.ops.pop(),s.trys.pop();continue;default:if(!((o=(o=s.trys).length>0&&o[o.length-1])||6!==a[0]&&2!==a[0])){s=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]<o[3])){s.label=a[1];break}if(6===a[0]&&s.label<o[1]){s.label=o[1],o=a;break}if(o&&s.label<o[2]){s.label=o[2],s.ops.push(a);break}o[2]&&s.ops.pop(),s.trys.pop();continue}a=t.call(e,s)}catch(e){a=[6,e],r=0}finally{n=o=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,c])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.WebRequest=t.genAdapter=void 0;var c=n(764),u=n(616),l=n(946),d=function(e){function t(t){var n=e.call(this)||this,r=t.timeout,o=t.timeoutMsg,i=t.restrictedMethods;return n.timeout=r||0,n.timeoutMsg=o||"请求超时",n.restrictedMethods=i||["get","post","upload","download"],n}return o(t,e),t.prototype.get=function(e){return this.request(i(i({},e),{method:"get"}),this.restrictedMethods.includes("get"))},t.prototype.post=function(e){return this.request(i(i({},e),{method:"post"}),this.restrictedMethods.includes("post"))},t.prototype.put=function(e){return this.request(i(i({},e),{method:"put"}))},t.prototype.upload=function(e){var t=e.data,n=e.file,r=e.name,o=e.method,s=e.headers,a=void 0===s?{}:s,c={post:"post",put:"put"}[null==o?void 0:o.toLowerCase()]||"put",u=new FormData;return"post"===c?(Object.keys(t).forEach(function(e){u.append(e,t[e])}),u.append("key",r),u.append("file",n),this.request(i(i({},e),{data:u,method:c}),this.restrictedMethods.includes("upload"))):this.request(i(i({},e),{method:"put",headers:a,body:n}),this.restrictedMethods.includes("upload"))},t.prototype.download=function(e){return s(this,void 0,void 0,function(){var t,n,r,o;return a(this,function(s){switch(s.label){case 0:return s.trys.push([0,2,,3]),[4,this.get(i(i({},e),{headers:{},responseType:"blob"}))];case 1:return t=s.sent().data,n=window.URL.createObjectURL(new Blob([t])),r=decodeURIComponent(new URL(e.url).pathname.split("/").pop()||""),(o=document.createElement("a")).href=n,o.setAttribute("download",r),o.style.display="none",document.body.appendChild(o),o.click(),window.URL.revokeObjectURL(n),document.body.removeChild(o),[3,3];case 2:return s.sent(),[3,3];case 3:return[2,new Promise(function(t){t({statusCode:200,tempFilePath:e.url})})]}})})},t.prototype.fetch=function(e){var t;return s(this,void 0,void 0,function(){var n,r,o,c,u,l,d,h,p,f,m,g,v,_=this;return a(this,function(y){switch(y.label){case 0:return n=new AbortController,r=e.url,o=e.enableAbort,c=void 0!==o&&o,u=e.stream,l=void 0!==u&&u,d=e.signal,h=e.timeout,p=e.shouldThrowOnError,f=void 0===p||p,m=null!=h?h:this.timeout,d&&(d.aborted&&n.abort(),d.addEventListener("abort",function(){return n.abort()})),g=null,c&&m&&(g=setTimeout(function(){console.warn(_.timeoutMsg),n.abort(new Error(_.timeoutMsg))},m)),[4,fetch(r,i(i({},e),{signal:n.signal})).then(function(e){return s(_,void 0,void 0,function(){var t,n,r;return a(this,function(o){switch(o.label){case 0:return clearTimeout(g),f?e.ok?(t=e,[3,3]):[3,1]:[3,4];case 1:return r=(n=Promise).reject,[4,e.json()];case 2:t=r.apply(n,[o.sent()]),o.label=3;case 3:return[2,t];case 4:return[2,e]}})})}).catch(function(e){return clearTimeout(g),Promise.reject(e)})];case 1:return v=y.sent(),[2,{data:l?v.body:(null===(t=v.headers.get("content-type"))||void 0===t?void 0:t.includes("application/json"))?v.json():v.text(),statusCode:v.status,header:v.headers,response:v}]}})})},t.prototype.request=function(e,t){var n=this;void 0===t&&(t=!1);var r=String(e.method).toLowerCase()||"get";return new Promise(function(o){var i=e.url,s=e.headers,a=void 0===s?{}:s,c=e.data,d=e.responseType,h=e.withCredentials,p=e.body,f=e.onUploadProgress,m=(0,u.formatUrl)((0,l.getProtocol)(),i,"get"===r?c:{}),g=new XMLHttpRequest;g.open(r,m),d&&(g.responseType=d);var v,_,y=e.signal;y&&(y.aborted?g.abort():y.addEventListener("abort",function(){return g.abort()},{once:!0})),Object.keys(a).forEach(function(e){g.setRequestHeader(e,a[e])}),f&&g.upload.addEventListener("progress",f),g.onreadystatechange=function(){var e={};if(4===g.readyState){var t=g.getAllResponseHeaders().trim().split(/[\r\n]+/),n={};t.forEach(function(e){var t=e.split(": "),r=t.shift().toLowerCase(),o=t.join(": ");n[r]=o}),e.header=n,e.statusCode=g.status;try{e.data="blob"===d?g.response:JSON.parse(g.responseText)}catch(t){e.data="blob"===d?g.response:g.responseText}clearTimeout(v),o(e)}},t&&n.timeout&&(v=setTimeout(function(){console.warn(n.timeoutMsg),g.abort()},n.timeout)),_=(0,u.isFormData)(c)?c:"application/x-www-form-urlencoded"===a["content-type"]?(0,u.toQueryString)(c):p||(c?JSON.stringify(c):void 0),h&&(g.withCredentials=!0),g.send(_)})},t}(c.AbstractSDKRequest);t.WebRequest=d,t.genAdapter=function(){return{type:"default",root:window,reqClass:d,wsClass:WebSocket,localStorage:localStorage}}},946:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.COMMUNITY_SITE_URL=t.IS_DEBUG_MODE=t.getProtocol=t.setProtocol=t.getSdkName=t.setSdkName=void 0;var n="@cloudbase/js-sdk";t.setSdkName=function(e){n=e},t.getSdkName=function(){return n};var r="https:";t.setProtocol=function(e){r=e},t.getProtocol=function(){return r},t.IS_DEBUG_MODE=!1,t.COMMUNITY_SITE_URL="https://support.qq.com/products/148793"},205:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.ERRORS=void 0,t.ERRORS={INVALID_PARAMS:"INVALID_PARAMS",INVALID_SYNTAX:"INVALID_SYNTAX",INVALID_OPERATION:"INVALID_OPERATION",OPERATION_FAIL:"OPERATION_FAIL",NETWORK_ERROR:"NETWORK_ERROR",UNKOWN_ERROR:"UNKOWN_ERROR"}},794:function(e,t,n){var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),t.OATUH_LOGINTYPE=void 0,o(n(946),t),o(n(205),t),t.OATUH_LOGINTYPE="constants"},718:function(e,t,n){var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))(function(o,i){function s(e){try{c(r.next(e))}catch(e){i(e)}}function a(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(s,a)}c((r=r.apply(e,t||[])).next())})},o=this&&this.__generator||function(e,t){var n,r,o,i,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function a(a){return function(c){return function(a){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,a[0]&&(s=0)),s;)try{if(n=1,r&&(o=2&a[0]?r.return:a[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,a[1])).done)return o;switch(r=0,o&&(a=[2&a[0],o.value]),a[0]){case 0:case 1:o=a;break;case 4:return s.label++,{value:a[1],done:!1};case 5:s.label++,r=a[1],a=[0];continue;case 7:a=s.ops.pop(),s.trys.pop();continue;default:if(!((o=(o=s.trys).length>0&&o[o.length-1])||6!==a[0]&&2!==a[0])){s=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]<o[3])){s.label=a[1];break}if(6===a[0]&&s.label<o[1]){s.label=o[1],o=a;break}if(o&&s.label<o[2]){s.label=o[2],s.ops.push(a);break}o[2]&&s.ops.pop(),s.trys.pop();continue}a=t.call(e,s)}catch(e){a=[6,e],r=0}finally{n=o=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,c])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.catchErrorsDecorator=void 0;var i=n(616),s=n(794),a=!1;"undefined"!=typeof navigator&&navigator.userAgent&&(a=-1!==navigator.userAgent.indexOf("Firefox"));var c=a?/(\.js\/)?__decorate(\$\d+)?<@.*\d$/:/(\/\w+\.js\.)?__decorate(\$\d+)?\s*\(.*\)$/,u=/https?:\/\/.+:\d*\/.*\.js:\d+:\d+/;function l(e){var t=e.err,n=e.className,r=e.methodName,o=e.sourceLink;if(!o)return null;var i,s=t.stack.split("\n"),c=a?/^catchErrorsDecorator\/<\/descriptor.value@.*\d$/:new RegExp("".concat(n,"\\.descriptor.value\\s*\\[as\\s").concat(r,"\\]\\s*\\(.*\\)$")),l=a?/^catchErrorsDecorator\/<\/descriptor.value/:new RegExp("".concat(n,"\\.descriptor.value\\s*\\[as\\s").concat(r,"\\]")),d=s.findIndex(function(e){return c.test(e)});if(-1!==d){var h=s.filter(function(e,t){return t>d});h.unshift(s[d].replace(l,"".concat(n,".").concat(r)).replace(u,o)),(i=new Error).stack="".concat(a?"@debugger":"Error","\n").concat(h.join("\n"))}return i}t.catchErrorsDecorator=function(e){var t=e.mode,n=void 0===t?"async":t,a=e.customInfo,d=void 0===a?{}:a,h=e.title,p=e.messages,f=void 0===p?[]:p;return function(e,t,a){if(s.IS_DEBUG_MODE){var p=d.className||e.constructor.name,m=d.methodName||t,g=a.value,v=function(){var e="",t=(new Error).stack.split("\n"),n=t.findIndex(function(e){return c.test(e)});if(-1!==n){var r=u.exec(t[n+1]||"");e=r?r[0]:""}return e}();a.value="sync"===n?function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=l({err:new Error,className:p,methodName:m,sourceLink:v});try{return g.apply(this,e)}catch(e){var r=e,o=e.message,s=e.error,a=e.error_description,c={title:h||"".concat(p,".").concat(m," failed"),content:[{type:"error",body:e}]};if(o&&/^\{.*\}$/.test(o)){var u=JSON.parse(o);c.subtitle=o,u.code&&(n?(n.code=u.code,n.msg=u.msg):(e.code=u.code,e.message=u.msg),r=n||e,c.content=f.map(function(e){return{type:"info",body:e}}))}throw s&&a&&(c.subtitle=a,n?(n.code=s,n.msg=a):(e.code=s,e.message=a),r=n||e,c.content=f.map(function(e){return{type:"info",body:e}})),(0,i.printGroupLog)(c),r}}:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return r(this,void 0,void 0,function(){var t,n,r,s,a,c,u,d;return o(this,function(o){switch(o.label){case 0:t=l({err:new Error,className:p,methodName:m,sourceLink:v}),o.label=1;case 1:return o.trys.push([1,3,,4]),[4,g.apply(this,e)];case 2:return[2,o.sent()];case 3:throw n=o.sent(),r=n,s=n.message,a=n.error,c=n.error_description,u={title:h||"".concat(p,".").concat(m," failed"),content:[{type:"error",body:n}]},s&&/^\{.*\}$/.test(s)&&(d=JSON.parse(s),u.subtitle=d,d.code&&(t?(t.code=d.code,t.message=d.msg):(n.code=d.code,n.message=d.msg),r=t||n,u.content=f.map(function(e){return{type:"info",body:e}}))),a&&c&&(u.subtitle=c,t?(t.code=a,t.msg=c):(n.code=a,n.message=c),r=t||n,u.content=f.map(function(e){return{type:"info",body:e}})),(0,i.printGroupLog)(u),r;case 4:return[2]}})})}}}}},141:function(e,t,n){var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(718),t)},197:function(e,t,n){var r,o=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))(function(o,i){function s(e){try{c(r.next(e))}catch(e){i(e)}}function a(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(s,a)}c((r=r.apply(e,t||[])).next())})},s=this&&this.__generator||function(e,t){var n,r,o,i,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function a(a){return function(c){return function(a){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,a[0]&&(s=0)),s;)try{if(n=1,r&&(o=2&a[0]?r.return:a[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,a[1])).done)return o;switch(r=0,o&&(a=[2&a[0],o.value]),a[0]){case 0:case 1:o=a;break;case 4:return s.label++,{value:a[1],done:!1};case 5:s.label++,r=a[1],a=[0];continue;case 7:a=s.ops.pop(),s.trys.pop();continue;default:if(!((o=(o=s.trys).length>0&&o[o.length-1])||6!==a[0]&&2!==a[0])){s=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]<o[3])){s.label=a[1];break}if(6===a[0]&&s.label<o[1]){s.label=o[1],o=a;break}if(o&&s.label<o[2]){s.label=o[2],s.ops.push(a);break}o[2]&&s.ops.pop(),s.trys.pop();continue}a=t.call(e,s)}catch(e){a=[6,e],r=0}finally{n=o=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,c])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.CloudbaseCache=void 0;var a=n(764),c=n(616),u=n(794),l=function(e){function t(t){var n=e.call(this)||this;return n.root=t,t.tcbCacheObject||(t.tcbCacheObject={}),n}return o(t,e),t.prototype.setItem=function(e,t){this.root.tcbCacheObject[e]=t},t.prototype.getItem=function(e){return this.root.tcbCacheObject[e]},t.prototype.removeItem=function(e){delete this.root.tcbCacheObject[e]},t.prototype.clear=function(){delete this.root.tcbCacheObject},t}(a.AbstractStorage),d=function(){function e(e){this.keys={};var t=e.persistence,n=e.platformInfo,r=void 0===n?{}:n,o=e.keys,i=void 0===o?{}:o;this.platformInfo=r,this.storage||(this.persistenceTag=this.platformInfo.adapter.primaryStorage||t,this.storage=function(e,t){switch(e){case"local":default:return t.localStorage?t.localStorage:((0,c.printWarn)(u.ERRORS.INVALID_PARAMS,"localStorage is not supported on current platform"),new l(t.root));case"none":return new l(t.root)}}(this.persistenceTag,this.platformInfo.adapter),this.keys=i)}return Object.defineProperty(e.prototype,"mode",{get:function(){return this.storage.mode||"sync"},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"persistence",{get:function(){return this.persistenceTag},enumerable:!1,configurable:!0}),e.prototype.setStore=function(e,t,n){if("async"!==this.mode){if(this.storage)try{var r={version:n||"localCachev1",content:t};this.storage.setItem(e,JSON.stringify(r))}catch(e){throw new Error(JSON.stringify({code:u.ERRORS.OPERATION_FAIL,msg:"[".concat((0,u.getSdkName)(),"][").concat(u.ERRORS.OPERATION_FAIL,"]setStore failed"),info:e}))}}else(0,c.printWarn)(u.ERRORS.INVALID_OPERATION,"current platform's storage is asynchronous, please use setStoreAsync insteed")},e.prototype.setStoreAsync=function(e,t,n){return i(this,void 0,void 0,function(){var r;return s(this,function(o){switch(o.label){case 0:if(!this.storage)return[2];o.label=1;case 1:return o.trys.push([1,3,,4]),r={version:n||"localCachev1",content:t},[4,this.storage.setItem(e,JSON.stringify(r))];case 2:return o.sent(),[3,4];case 3:return o.sent(),[2];case 4:return[2]}})})},e.prototype.getStore=function(e,t){var n;if("async"!==this.mode){try{if("undefined"!=typeof process&&(null===(n={IS_MP_BUILD:!1,IS_BROWSER_BUILD:!0})||void 0===n?void 0:n.tcb_token))return{IS_MP_BUILD:!1,IS_BROWSER_BUILD:!0}.tcb_token;if(!this.storage)return""}catch(e){return""}t=t||"localCachev1";var r=this.storage.getItem(e);return r&&r.indexOf(t)>=0?JSON.parse(r).content:""}(0,c.printWarn)(u.ERRORS.INVALID_OPERATION,"current platform's storage is asynchronous, please use getStoreAsync insteed")},e.prototype.getStoreAsync=function(e,t){var n;return i(this,void 0,void 0,function(){var r;return s(this,function(o){switch(o.label){case 0:try{if("undefined"!=typeof process&&(null===(n={IS_MP_BUILD:!1,IS_BROWSER_BUILD:!0})||void 0===n?void 0:n.tcb_token))return[2,{IS_MP_BUILD:!1,IS_BROWSER_BUILD:!0}.tcb_token];if(!this.storage)return[2,""]}catch(e){return[2,""]}return t=t||"localCachev1",[4,this.storage.getItem(e)];case 1:return(r=o.sent())&&r.indexOf(t)>=0?[2,JSON.parse(r).content]:[2,""]}})})},e.prototype.removeStore=function(e){"async"!==this.mode?this.storage.removeItem(e):(0,c.printWarn)(u.ERRORS.INVALID_OPERATION,"current platform's storage is asynchronous, please use removeStoreAsync insteed")},e.prototype.removeStoreAsync=function(e){return i(this,void 0,void 0,function(){return s(this,function(t){switch(t.label){case 0:return[4,this.storage.removeItem(e)];case 1:return t.sent(),[2]}})})},e}();t.CloudbaseCache=d},689:function(e,t,n){var r,o=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__spreadArray||function(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))};Object.defineProperty(t,"__esModule",{value:!0}),t.removeEventListener=t.activateEvent=t.addEventListener=t.CloudbaseEventEmitter=t.IErrorEvent=t.CloudbaseEvent=void 0;var s=n(616),a=function(e,t){this.data=t||null,this.name=e};t.CloudbaseEvent=a;var c=function(e){function t(t,n){var r=e.call(this,"error",{error:t,data:n})||this;return r.error=t,r}return o(t,e),t}(a);t.IErrorEvent=c;var u=function(){function e(){this.listeners={}}return e.prototype.on=function(e,t){return function(e,t,n){n[e]=n[e]||[],n[e].push(t)}(e,t,this.listeners),this},e.prototype.off=function(e,t){return function(e,t,n){if(null==n?void 0:n[e]){var r=n[e].indexOf(t);-1!==r&&n[e].splice(r,1)}}(e,t,this.listeners),this},e.prototype.fire=function(e,t){if((0,s.isInstanceOf)(e,c))return console.error(e.error),this;var n=(0,s.isString)(e)?new a(e,t||{}):e,r=n.name;if(this.listens(r)){n.target=this;for(var o=0,u=this.listeners[r]?i([],this.listeners[r],!0):[];o<u.length;o++)u[o].call(this,n)}return this},e.prototype.listens=function(e){return this.listeners[e]&&this.listeners[e].length>0},e}();t.CloudbaseEventEmitter=u;var l=new u;t.addEventListener=function(e,t){l.on(e,t)},t.activateEvent=function(e,t){void 0===t&&(t={}),l.fire(e,t)},t.removeEventListener=function(e,t){l.off(e,t)}},616:function(e,t,n){var r,o=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__assign||function(){return i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},i.apply(this,arguments)},s=this&&this.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};Object.defineProperty(t,"__esModule",{value:!0}),t.parseCaptcha=t.parseQueryString=t.transformPhone=t.sleep=t.printGroupLog=t.errorToResult=t.promoteGatewayError=t.maybeThrow=t.resolveThrow=t.createCloudbaseError=t.CloudbaseError=t.throwError=t.printInfo=t.printError=t.printWarn=t.execCallback=t.createPromiseCallback=t.removeParam=t.getHash=t.getQuery=t.toQueryString=t.formatUrl=t.generateRequestId=t.genSeqId=t.isFormData=t.isInstanceOf=t.isNull=t.isPalinObject=t.isUndefined=t.isString=t.isArray=void 0;var a=n(794);t.isArray=function(e){return"[object Array]"===Object.prototype.toString.call(e)},t.isString=function(e){return"string"==typeof e},t.isUndefined=function(e){return void 0===e},t.isPalinObject=function(e){return"[object Object]"===Object.prototype.toString.call(e)},t.isNull=function(e){return"[object Null]"===Object.prototype.toString.call(e)},t.isInstanceOf=function(e,t){return e instanceof t},t.isFormData=function(e){return"[object FormData]"===Object.prototype.toString.call(e)},t.genSeqId=function(){return Math.random().toString(16).slice(2)},t.generateRequestId=function(){var e=(new Date).getTime(),t=(null===Date||void 0===Date?void 0:Date.now)&&1e3*Date.now()||0;return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(n){var r=16*Math.random();return e>0?(r=(e+r)%16|0,e=Math.floor(e/16)):(r=(t+r)%16|0,t=Math.floor(t/16)),("x"===n?r:7&r|8).toString(16)})},t.formatUrl=function(e,t,n){void 0===n&&(n={});var r=/\?/.test(t),o="";return Object.keys(n).forEach(function(e){""===o?!r&&(t+="?"):o+="&",o+="".concat(e,"=").concat(encodeURIComponent(n[e]))}),/^http(s)?:\/\//.test(t+=o)?t:"".concat(e).concat(t)},t.toQueryString=function(e){void 0===e&&(e={});var t=[];return Object.keys(e).forEach(function(n){t.push("".concat(n,"=").concat(encodeURIComponent(e[n])))}),t.join("&")},t.getQuery=function(e,t){if("undefined"==typeof window)return!1;var n=t||decodeURIComponent(window.location.search),r=new RegExp("(^|&)".concat(e,"=([^&]*)(&|$)")),o=n.substr(n.indexOf("?")+1).match(r);return null!=o?o[2]:""},t.getHash=function(e){if("undefined"==typeof window)return"";var t=window.location.hash.match(new RegExp("[#?&/]".concat(e,"=([^&#]*)")));return t?t[1]:""},t.removeParam=function(e,t){var n=t.split("?")[0],r=[],o=-1!==t.indexOf("?")?t.split("?")[1]:"";if(""!==o){for(var i=(r=o.split("&")).length-1;i>=0;i-=1)r[i].split("=")[0]===e&&r.splice(i,1);n="".concat(n,"?").concat(r.join("&"))}return n},t.createPromiseCallback=function(){var e={};if(!Promise){(e=function(){}).promise={};var t=function(){throw new Error('Your Node runtime does support ES6 Promises. Set "global.Promise" to your preferred implementation of promises.')};return Object.defineProperty(e.promise,"then",{get:t}),Object.defineProperty(e.promise,"catch",{get:t}),e}var n=new Promise(function(t,n){e=function(e,r){return e?n(e):t(r)}});return e.promise=n,e},t.execCallback=function(e,t,n){if(void 0===n&&(n=null),e&&"function"==typeof e)return e(t,n);if(t)throw t;return n},t.printWarn=function(e,t){console.warn("[".concat((0,a.getSdkName)(),"][").concat(e,"]:").concat(t))},t.printError=function(e,t){console.error({code:e,msg:"[".concat((0,a.getSdkName)(),"][").concat(e,"]:").concat(t)})},t.printInfo=function(e,t){console.log("[".concat((0,a.getSdkName)(),"][").concat(e,"]:").concat(t))},t.throwError=function(e,t){var n=new Error(JSON.stringify({code:e,msg:"[".concat((0,a.getSdkName)(),"][").concat(e,"]:").concat(t)}));throw n.code=e,n};var c=function(e){function t(t){var n=e.call(this,t.msg||t.message||"")||this;return n.code=t.code||"",n.requestId=t.requestId||"",Object.defineProperty(n,"message",{value:t.msg||t.message||"",enumerable:!0,writable:!0,configurable:!0}),n}return o(t,e),t}(Error);t.CloudbaseError=c;var u=function(e){return new c(e)};function l(e,t){return(t||u)(e)}function d(e){return!e||"boolean"!=typeof e.throw||e.throw}t.createCloudbaseError=l,t.resolveThrow=d,t.maybeThrow=function(e,t){if(d(e))throw l(t,null==e?void 0:e.errorFactory);return i({code:t.code,message:t.msg},t.requestId?{requestId:t.requestId}:{})},t.promoteGatewayError=function(e){if(e&&"object"==typeof e&&e.data&&"object"==typeof e.data){var t=e.data,n=t.code,r=t.message;if(!e.code&&n||!e.message&&r)return i(i(i({},e),!e.code&&n?{code:n}:{}),!e.message&&r?{message:r}:{})}return e},t.errorToResult=function(e){if(e instanceof Error&&"string"==typeof e.message)try{var t=JSON.parse(e.message);if(t&&"string"==typeof t.code)return{code:t.code,message:t.msg||t.message||"",requestId:t.requestId}}catch(e){}return e&&"string"==typeof e.code?{code:e.code,message:e.message||"",requestId:e.requestId}:{code:"UNKNOWN_ERROR",message:String((null==e?void 0:e.message)||e||"")}},t.printGroupLog=function(e){var t,n=e.title,r=e.subtitle,o=void 0===r?"":r,i=e.content,s=void 0===i?[]:i,a=e.printTrace,c=void 0!==a&&a,u=e.collapsed;void 0!==u&&u?(console.groupCollapsed||console.error)(n,o):(console.group||console.error)(n,o);for(var l=0,d=s;l<d.length;l++){var h=d[l],p=h.type,f=h.body;switch(p){case"info":console.log(f);break;case"warn":console.warn(f);break;case"error":console.error(f)}}c&&(console.trace||console.log)("stack trace:"),null===(t=console.groupEnd)||void 0===t||t.call(console)},t.sleep=function(e){return void 0===e&&(e=0),new Promise(function(t){return setTimeout(t,e)})},t.transformPhone=function(e){return"+86".concat(e)},t.parseQueryString=function(e){e=e.replace(/^\?/,"");var t={};return e.split("&").forEach(function(e){var n=e.split("="),r=n[0],o=n[1];r=decodeURIComponent(r),o=decodeURIComponent(o),r&&(t[r]?Array.isArray(t[r])?t[r].push(o):t[r]=[t[r],o]:t[r]=o)}),t},t.parseCaptcha=function(e){var n={},r=e.match(/^(data:.*?)(\?[^#\s]*)?$/);if(r){e=r[1];var o=r[2];o&&(n=(0,t.parseQueryString)(o))}var i=n.token,a=s(n,["token"]);return/^data:/.test(e)&&!i?{error:"invalid_argument",error_description:"invalid captcha data: ".concat(e)}:i?{state:a.state,token:i,captchaData:e}:{error:"unimplemented",error_description:"need to impl captcha data"}}},764:function(e){e.exports=n(1553)},917:function(e){e.exports=n(7355)},107:function(e){e.exports=n(560)}},i={};function s(e){var t=i[e];if(void 0!==t)return t.exports;var n=i[e]={exports:{}};return o[e].call(n.exports,n,n.exports,s),n.exports}r=Object.getPrototypeOf?function(e){return Object.getPrototypeOf(e)}:function(e){return e.__proto__},s.t=function(e,n){if(1&n&&(e=this(e)),8&n)return e;if("object"==typeof e&&e){if(4&n&&e.__esModule)return e;if(16&n&&"function"==typeof e.then)return e}var o=Object.create(null);s.r(o);var i={};t=t||[null,r({}),r([]),r(r)];for(var a=2&n&&e;"object"==typeof a&&!~t.indexOf(a);a=r(a))Object.getOwnPropertyNames(a).forEach(function(t){i[t]=function(){return e[t]}});return i.default=function(){return e},s.d(o,i),o},s.d=function(e,t){for(var n in t)s.o(t,n)&&!s.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},s.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},s.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var a=s(304);e.exports=a}()},1676:function(e,t,n){"use strict";var r,o,i;r={474:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.registerFunctions=void 0;var r=n(60);t.registerFunctions=r.registerFunctions;try{window.registerFunctions=t.registerFunctions}catch(e){}},253:function(e,t,n){var r=this&&this.__assign||function(){return r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},r.apply(this,arguments)},o=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))(function(o,i){function s(e){try{c(r.next(e))}catch(e){i(e)}}function a(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(s,a)}c((r=r.apply(e,t||[])).next())})},i=this&&this.__generator||function(e,t){var n,r,o,i,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function a(a){return function(c){return function(a){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,a[0]&&(s=0)),s;)try{if(n=1,r&&(o=2&a[0]?r.return:a[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,a[1])).done)return o;switch(r=0,o&&(a=[2&a[0],o.value]),a[0]){case 0:case 1:o=a;break;case 4:return s.label++,{value:a[1],done:!1};case 5:s.label++,r=a[1],a=[0];continue;case 7:a=s.ops.pop(),s.trys.pop();continue;default:if(!((o=(o=s.trys).length>0&&o[o.length-1])||6!==a[0]&&2!==a[0])){s=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]<o[3])){s.label=a[1];break}if(6===a[0]&&s.label<o[1]){s.label=o[1],o=a;break}if(o&&s.label<o[2]){s.label=o[2],s.ops.push(a);break}o[2]&&s.ops.pop(),s.trys.pop();continue}a=t.call(e,s)}catch(e){a=[6,e],r=0}finally{n=o=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,c])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.registerCloudrun=t.requestContainer=void 0;var s=n(877).constants.ERRORS,a="cloudrun",c=function(){function e(){}return e.prototype.callContainer=function(e,t){return o(this,void 0,void 0,function(){var n,o,c;return i(this,function(i){switch(i.label){case 0:if(n=e.name,o=e.data,!n)throw new Error(JSON.stringify({code:s.INVALID_PARAMS,msg:"[".concat(a,".callContainer] invalid name")}));try{c=o?JSON.stringify(o):""}catch(e){throw new Error(JSON.stringify({code:s.INVALID_PARAMS,msg:"[".concat(a,".callContainer] invalid data")}))}return[4,u.call(this,r(r({},e),{data:c}),t)];case 1:return[2,i.sent()]}})})},e}();function u(e,t){var n;return o(this,void 0,void 0,function(){var o,s,a,c,u,l,d,h,p,f,m,g,v,_,y;return i(this,function(i){switch(i.label){case 0:if(o=e.name,s=e.data,a=e.path,c=void 0===a?"":a,u=e.method,l=e.header,d=void 0===l?{}:l,h=this.getEndPointWithKey("GATEWAY"),p=h.BASE_URL,f=h.PROTOCOL,m="".concat(f).concat(p,"/cloudrun/").concat(o),g=c.startsWith("/")?c:"/".concat(c),v=["GET","HEAD"].includes(null===(n=null==u?void 0:u.toUpperCase)||void 0===n?void 0:n.call(u)))try{_={};try{_=JSON.parse(s)}catch(e){_=s||{}}g="".concat(g).concat(g.includes("?")?"&":"?").concat(Object.keys(_).map(function(e){return"".concat(e,"=").concat(_[e])}).join("&"))}catch(e){}return[4,this.request.fetch(r(r({method:u||"POST",headers:Object.assign({},{"Content-Type":"application/json; charset=utf-8"},d)},v?{}:{body:s}),{url:"".concat(m).concat(g),customReqOpts:t}))];case 1:return y=i.sent(),"node-sdk"===(null==t?void 0:t.from)?[2,y]:[4,y.data];case 2:return[2,i.sent()]}})})}t.requestContainer=u;var l=new c,d={name:a,entity:{callContainer:l.callContainer}};try{cloudbase.registerComponent(d)}catch(e){}function h(e){try{e.registerComponent(d)}catch(e){console.warn(e)}}t.registerCloudrun=h;try{window.registerCloudrun=h}catch(e){}},60:function(e,t,n){var r=this&&this.__assign||function(){return r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},r.apply(this,arguments)},o=this&&this.__decorate||function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},i=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},s=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))(function(o,i){function s(e){try{c(r.next(e))}catch(e){i(e)}}function a(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(s,a)}c((r=r.apply(e,t||[])).next())})},a=this&&this.__generator||function(e,t){var n,r,o,i,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function a(a){return function(c){return function(a){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,a[0]&&(s=0)),s;)try{if(n=1,r&&(o=2&a[0]?r.return:a[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,a[1])).done)return o;switch(r=0,o&&(a=[2&a[0],o.value]),a[0]){case 0:case 1:o=a;break;case 4:return s.label++,{value:a[1],done:!1};case 5:s.label++,r=a[1],a=[0];continue;case 7:a=s.ops.pop(),s.trys.pop();continue;default:if(!((o=(o=s.trys).length>0&&o[o.length-1])||6!==a[0]&&2!==a[0])){s=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]<o[3])){s.label=a[1];break}if(6===a[0]&&s.label<o[1]){s.label=o[1],o=a;break}if(o&&s.label<o[2]){s.label=o[2],s.ops.push(a);break}o[2]&&s.ops.pop(),s.trys.pop();continue}a=t.call(e,s)}catch(e){a=[6,e],r=0}finally{n=o=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,c])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.registerFunctions=void 0;var c=n(388),u=n(877),l=n(253),d=u.constants.getSdkName,h=u.constants.ERRORS,p=u.constants.COMMUNITY_SITE_URL,f=u.utils.execCallback,m=u.utils.createCloudbaseError,g=u.utils.resolveThrow,v=u.utils.maybeThrow,_=u.helpers.catchErrorsDecorator,y="functions",b=new(function(){function e(){}var t,n,b;return e.prototype.callFunction=function(e,t,n){var o,i,c;return s(this,void 0,void 0,function(){var s,p,_,b,w,E,I,S,A,O,T,C,k,P,N,R,M,x,L,D,U,j,F,$;return a(this,function(a){switch(a.label){case 0:if(s=e.name,p=e.data,_=e.query,b=e.parse,w=e.search,E=e.type,I=e.path,S=void 0===I?"":I,A=e.method,O=e.header,T=void 0===O?{}:O,k=(C=this).request,P=C.config,!s)return[2,v(P,{code:h.INVALID_PARAMS,msg:"[".concat(y,".callFunction] invalid function name")})];try{N=p?JSON.stringify(p):""}catch(e){return[2,v(P,{code:h.INVALID_PARAMS,msg:"[".concat(y,".callFunction] invalid data")})]}return"cloudrun"!==E?[3,2]:(R=u.utils.generateRequestId(),[4,l.requestContainer.call(this,{name:s,data:N,path:S,method:A,header:r(r({},T),{"X-Request-Id":R})})]);case 1:return[2,{result:F=a.sent(),requestId:R}];case 2:M="functions.invokeFunction",x={inQuery:_,parse:b,search:w,function_name:s,request_data:N},L={},D=!("GATEWAY"!==P.endPointMode||(G=s,"lcap-common-service"===G||"lcap-datasource-test"===G||G.startsWith("lcap-data")||G.startsWith("lowcode-datasource")||"cloudbase_module"===G)||function(e){return"lowcode-wx-datasource"===e}(s)),a.label=3;case 3:return a.trys.push([3,8,,9]),D?[4,k.gateWay(r(r({},e),{path:"functions"}),n)]:[3,5];case 4:return U=a.sent(),L=r({requestId:U.requestId},(null===(o=U.data)||void 0===o?void 0:o.code)?U.data:{data:{response_data:U.data}}),[3,7];case 5:return[4,k.send(M,x,{endPointMode:"CLOUD_API",defaultQuery:(null===(i=null==p?void 0:p.params)||void 0===i?void 0:i.action)?{action:null===(c=null==p?void 0:p.params)||void 0===c?void 0:c.action}:{}},n)];case 6:L=a.sent(),a.label=7;case 7:if(L.code){if(j=L.message||L.msg||"",function(e){return g(e)}(P))throw m({code:L.code,msg:j,requestId:L.requestId},null==P?void 0:P.errorFactory);return[2,f(t,null,{code:L.code,message:j,requestId:L.requestId})]}if(F=L.data.response_data,b||D)return[2,f(t,null,{result:F,requestId:L.requestId})];try{return F=JSON.parse(L.data.response_data),[2,f(t,null,{result:F,requestId:L.requestId})]}catch(e){f(t,new Error("[".concat(d(),"][").concat(h.INVALID_PARAMS,"][").concat(y,".callFunction] response data must be json")))}return[3,9];case 8:return $=a.sent(),f(t,$),[3,9];case 9:return[2]}var G})})},o([_({customInfo:{className:"Cloudbase",methodName:"callFunction"},title:"函数调用失败",messages:["请确认以下各项:"," 1 - 调用 callFunction() 的语法或参数是否正确"," 2 - 当前环境下是否存在此函数"," 3 - 函数安全规则是否限制了当前登录状态访问","如果问题依然存在,建议到官方问答社区提问或寻找帮助:".concat(p)]}),i("design:type",Function),i("design:paramtypes",["function"==typeof(t=void 0!==c.ICallFunctionOptions&&c.ICallFunctionOptions)?t:Object,"function"==typeof(n="undefined"!=typeof Function&&Function)?n:Object,"function"==typeof(b=void 0!==c.ICustomReqOpts&&c.ICustomReqOpts)?b:Object]),i("design:returntype",Promise)],e.prototype,"callFunction",null),e}()),w={name:y,entity:{callFunction:b.callFunction}};try{cloudbase.registerComponent(w)}catch(e){}t.registerFunctions=function(e){try{e.registerComponent(w)}catch(e){console.warn(e)}}},563:function(e,t,n){var r=this&&this.__assign||function(){return r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},r.apply(this,arguments)},o=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),s=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&o(t,e,n);return i(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.useDefaultAdapter=t.useAdapters=t.RUNTIME=void 0;var a,c=s(n(92)),u=n(962);!function(e){e.WEB="web",e.WX_MP="wx_mp"}(a=t.RUNTIME||(t.RUNTIME={})),t.useAdapters=function(e,t){for(var n=0,o=(0,u.isArray)(e)?e:[e];n<o.length;n++){var i=o[n],s=i.isMatch,a=i.genAdapter,c=i.runtime;if(s())return{adapter:r({isMatch:s},a(t)),runtime:c}}},t.useDefaultAdapter=function(){return{adapter:r({},c.genAdapter()),runtime:a.WEB}}},92:function(e,t,n){var r,o=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__assign||function(){return i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},i.apply(this,arguments)},s=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))(function(o,i){function s(e){try{c(r.next(e))}catch(e){i(e)}}function a(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(s,a)}c((r=r.apply(e,t||[])).next())})},a=this&&this.__generator||function(e,t){var n,r,o,i,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function a(a){return function(c){return function(a){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,a[0]&&(s=0)),s;)try{if(n=1,r&&(o=2&a[0]?r.return:a[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,a[1])).done)return o;switch(r=0,o&&(a=[2&a[0],o.value]),a[0]){case 0:case 1:o=a;break;case 4:return s.label++,{value:a[1],done:!1};case 5:s.label++,r=a[1],a=[0];continue;case 7:a=s.ops.pop(),s.trys.pop();continue;default:if(!((o=(o=s.trys).length>0&&o[o.length-1])||6!==a[0]&&2!==a[0])){s=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]<o[3])){s.label=a[1];break}if(6===a[0]&&s.label<o[1]){s.label=o[1],o=a;break}if(o&&s.label<o[2]){s.label=o[2],s.ops.push(a);break}o[2]&&s.ops.pop(),s.trys.pop();continue}a=t.call(e,s)}catch(e){a=[6,e],r=0}finally{n=o=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,c])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.WebRequest=t.genAdapter=void 0;var c=n(764),u=n(962),l=n(464),d=function(e){function t(t){var n=e.call(this)||this,r=t.timeout,o=t.timeoutMsg,i=t.restrictedMethods;return n.timeout=r||0,n.timeoutMsg=o||"请求超时",n.restrictedMethods=i||["get","post","upload","download"],n}return o(t,e),t.prototype.get=function(e){return this.request(i(i({},e),{method:"get"}),this.restrictedMethods.includes("get"))},t.prototype.post=function(e){return this.request(i(i({},e),{method:"post"}),this.restrictedMethods.includes("post"))},t.prototype.put=function(e){return this.request(i(i({},e),{method:"put"}))},t.prototype.upload=function(e){var t=e.data,n=e.file,r=e.name,o=e.method,s=e.headers,a=void 0===s?{}:s,c={post:"post",put:"put"}[null==o?void 0:o.toLowerCase()]||"put",u=new FormData;return"post"===c?(Object.keys(t).forEach(function(e){u.append(e,t[e])}),u.append("key",r),u.append("file",n),this.request(i(i({},e),{data:u,method:c}),this.restrictedMethods.includes("upload"))):this.request(i(i({},e),{method:"put",headers:a,body:n}),this.restrictedMethods.includes("upload"))},t.prototype.download=function(e){return s(this,void 0,Promise,function(){var t,n,r,o;return a(this,function(s){switch(s.label){case 0:return s.trys.push([0,2,,3]),[4,this.get(i(i({},e),{headers:{},responseType:"blob"}))];case 1:return t=s.sent().data,n=window.URL.createObjectURL(new Blob([t])),r=decodeURIComponent(new URL(e.url).pathname.split("/").pop()||""),(o=document.createElement("a")).href=n,o.setAttribute("download",r),o.style.display="none",document.body.appendChild(o),o.click(),window.URL.revokeObjectURL(n),document.body.removeChild(o),[3,3];case 2:return s.sent(),[3,3];case 3:return[2,new Promise(function(t){t({statusCode:200,tempFilePath:e.url})})]}})})},t.prototype.fetch=function(e){var t;return s(this,void 0,Promise,function(){var n,r,o,c,u,l,d,h,p,f,m,g,v,_=this;return a(this,function(y){switch(y.label){case 0:return n=new AbortController,r=e.url,o=e.enableAbort,c=void 0!==o&&o,u=e.stream,l=void 0!==u&&u,d=e.signal,h=e.timeout,p=e.shouldThrowOnError,f=void 0===p||p,m=null!=h?h:this.timeout,d&&(d.aborted&&n.abort(),d.addEventListener("abort",function(){return n.abort()})),g=null,c&&m&&(g=setTimeout(function(){console.warn(_.timeoutMsg),n.abort(new Error(_.timeoutMsg))},m)),[4,fetch(r,i(i({},e),{signal:n.signal})).then(function(e){return s(_,void 0,void 0,function(){var t,n,r;return a(this,function(o){switch(o.label){case 0:return clearTimeout(g),f?e.ok?(t=e,[3,3]):[3,1]:[3,4];case 1:return r=(n=Promise).reject,[4,e.json()];case 2:t=r.apply(n,[o.sent()]),o.label=3;case 3:return[2,t];case 4:return[2,e]}})})}).catch(function(e){return clearTimeout(g),Promise.reject(e)})];case 1:return v=y.sent(),[2,{data:l?v.body:(null===(t=v.headers.get("content-type"))||void 0===t?void 0:t.includes("application/json"))?v.json():v.text(),statusCode:v.status,header:v.headers,response:v}]}})})},t.prototype.request=function(e,t){var n=this;void 0===t&&(t=!1);var r=String(e.method).toLowerCase()||"get";return new Promise(function(o){var i=e.url,s=e.headers,a=void 0===s?{}:s,c=e.data,d=e.responseType,h=e.withCredentials,p=e.body,f=e.onUploadProgress,m=(0,u.formatUrl)((0,l.getProtocol)(),i,"get"===r?c:{}),g=new XMLHttpRequest;g.open(r,m),d&&(g.responseType=d);var v,_,y=e.signal;y&&(y.aborted?g.abort():y.addEventListener("abort",function(){return g.abort()},{once:!0})),Object.keys(a).forEach(function(e){g.setRequestHeader(e,a[e])}),f&&g.upload.addEventListener("progress",f),g.onreadystatechange=function(){var e={};if(4===g.readyState){var t=g.getAllResponseHeaders().trim().split(/[\r\n]+/),n={};t.forEach(function(e){var t=e.split(": "),r=t.shift().toLowerCase(),o=t.join(": ");n[r]=o}),e.header=n,e.statusCode=g.status;try{e.data="blob"===d?g.response:JSON.parse(g.responseText)}catch(t){e.data="blob"===d?g.response:g.responseText}clearTimeout(v),o(e)}},t&&n.timeout&&(v=setTimeout(function(){console.warn(n.timeoutMsg),g.abort()},n.timeout)),_=(0,u.isFormData)(c)?c:"application/x-www-form-urlencoded"===a["content-type"]?(0,u.toQueryString)(c):p||(c?JSON.stringify(c):void 0),h&&(g.withCredentials=!0),g.send(_)})},t}(c.AbstractSDKRequest);t.WebRequest=d,t.genAdapter=function(){return{type:"default",root:window,reqClass:d,wsClass:WebSocket,localStorage:localStorage}}},464:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.COMMUNITY_SITE_URL=t.IS_DEBUG_MODE=t.getProtocol=t.setProtocol=t.getSdkName=t.setSdkName=void 0;var n="@cloudbase/js-sdk";t.setSdkName=function(e){n=e},t.getSdkName=function(){return n};var r="https:";t.setProtocol=function(e){r=e},t.getProtocol=function(){return r},t.IS_DEBUG_MODE=!1,t.COMMUNITY_SITE_URL="https://support.qq.com/products/148793"},519:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.ERRORS=void 0,t.ERRORS={INVALID_PARAMS:"INVALID_PARAMS",INVALID_SYNTAX:"INVALID_SYNTAX",INVALID_OPERATION:"INVALID_OPERATION",OPERATION_FAIL:"OPERATION_FAIL",NETWORK_ERROR:"NETWORK_ERROR",UNKOWN_ERROR:"UNKOWN_ERROR"}},778:function(e,t,n){var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),t.OATUH_LOGINTYPE=void 0,o(n(464),t),o(n(519),t),t.OATUH_LOGINTYPE="constants"},517:function(e,t,n){var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))(function(o,i){function s(e){try{c(r.next(e))}catch(e){i(e)}}function a(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(s,a)}c((r=r.apply(e,t||[])).next())})},o=this&&this.__generator||function(e,t){var n,r,o,i,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function a(a){return function(c){return function(a){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,a[0]&&(s=0)),s;)try{if(n=1,r&&(o=2&a[0]?r.return:a[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,a[1])).done)return o;switch(r=0,o&&(a=[2&a[0],o.value]),a[0]){case 0:case 1:o=a;break;case 4:return s.label++,{value:a[1],done:!1};case 5:s.label++,r=a[1],a=[0];continue;case 7:a=s.ops.pop(),s.trys.pop();continue;default:if(!((o=(o=s.trys).length>0&&o[o.length-1])||6!==a[0]&&2!==a[0])){s=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]<o[3])){s.label=a[1];break}if(6===a[0]&&s.label<o[1]){s.label=o[1],o=a;break}if(o&&s.label<o[2]){s.label=o[2],s.ops.push(a);break}o[2]&&s.ops.pop(),s.trys.pop();continue}a=t.call(e,s)}catch(e){a=[6,e],r=0}finally{n=o=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,c])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.catchErrorsDecorator=void 0;var i=n(962),s=n(778),a=!1;"undefined"!=typeof navigator&&navigator.userAgent&&(a=-1!==navigator.userAgent.indexOf("Firefox"));var c=a?/(\.js\/)?__decorate(\$\d+)?<@.*\d$/:/(\/\w+\.js\.)?__decorate(\$\d+)?\s*\(.*\)$/,u=/https?:\/\/.+:\d*\/.*\.js:\d+:\d+/;function l(e){var t=e.err,n=e.className,r=e.methodName,o=e.sourceLink;if(!o)return null;var i,s=t.stack.split("\n"),c=a?/^catchErrorsDecorator\/<\/descriptor.value@.*\d$/:new RegExp("".concat(n,"\\.descriptor.value\\s*\\[as\\s").concat(r,"\\]\\s*\\(.*\\)$")),l=a?/^catchErrorsDecorator\/<\/descriptor.value/:new RegExp("".concat(n,"\\.descriptor.value\\s*\\[as\\s").concat(r,"\\]")),d=s.findIndex(function(e){return c.test(e)});if(-1!==d){var h=s.filter(function(e,t){return t>d});h.unshift(s[d].replace(l,"".concat(n,".").concat(r)).replace(u,o)),(i=new Error).stack="".concat(a?"@debugger":"Error","\n").concat(h.join("\n"))}return i}t.catchErrorsDecorator=function(e){var t=e.mode,n=void 0===t?"async":t,a=e.customInfo,d=void 0===a?{}:a,h=e.title,p=e.messages,f=void 0===p?[]:p;return function(e,t,a){if(s.IS_DEBUG_MODE){var p=d.className||e.constructor.name,m=d.methodName||t,g=a.value,v=function(){var e="",t=(new Error).stack.split("\n"),n=t.findIndex(function(e){return c.test(e)});if(-1!==n){var r=u.exec(t[n+1]||"");e=r?r[0]:""}return e}();a.value="sync"===n?function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=l({err:new Error,className:p,methodName:m,sourceLink:v});try{return g.apply(this,e)}catch(e){var r=e,o=e.message,s=e.error,a=e.error_description,c={title:h||"".concat(p,".").concat(m," failed"),content:[{type:"error",body:e}]};if(o&&/^\{.*\}$/.test(o)){var u=JSON.parse(o);c.subtitle=o,u.code&&(n?(n.code=u.code,n.msg=u.msg):(e.code=u.code,e.message=u.msg),r=n||e,c.content=f.map(function(e){return{type:"info",body:e}}))}throw s&&a&&(c.subtitle=a,n?(n.code=s,n.msg=a):(e.code=s,e.message=a),r=n||e,c.content=f.map(function(e){return{type:"info",body:e}})),(0,i.printGroupLog)(c),r}}:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return r(this,void 0,void 0,function(){var t,n,r,s,a,c,u,d;return o(this,function(o){switch(o.label){case 0:t=l({err:new Error,className:p,methodName:m,sourceLink:v}),o.label=1;case 1:return o.trys.push([1,3,,4]),[4,g.apply(this,e)];case 2:return[2,o.sent()];case 3:throw n=o.sent(),r=n,s=n.message,a=n.error,c=n.error_description,u={title:h||"".concat(p,".").concat(m," failed"),content:[{type:"error",body:n}]},s&&/^\{.*\}$/.test(s)&&(d=JSON.parse(s),u.subtitle=d,d.code&&(t?(t.code=d.code,t.message=d.msg):(n.code=d.code,n.message=d.msg),r=t||n,u.content=f.map(function(e){return{type:"info",body:e}}))),a&&c&&(u.subtitle=c,t?(t.code=a,t.msg=c):(n.code=a,n.message=c),r=t||n,u.content=f.map(function(e){return{type:"info",body:e}})),(0,i.printGroupLog)(u),r;case 4:return[2]}})})}}}}},260:function(e,t,n){var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(517),t)},877:function(e,t,n){var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return o(t,e),t},s=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.langEvent=t.AbortController=t.jwt=t.helpers=t.utils=t.events=t.cache=t.adapters=t.constants=void 0;var a=i(n(778));t.constants=a;var c=i(n(563));t.adapters=c;var u=i(n(865));t.cache=u;var l=i(n(940));t.events=l;var d=i(n(991));t.langEvent=d;var h=i(n(962));t.utils=h;var p=i(n(260));t.helpers=p;var f=s(n(829));t.AbortController=f.default;var m={decode:s(n(107)).default};t.jwt=m},829:function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(){var e=this;this.listeners=[],this.signal={aborted:!1,addEventListener:function(t,n){"abort"===t&&e.listeners.push(n)}}}return e.prototype.abort=function(){this.signal.aborted||(this.signal.aborted=!0,this.listeners.forEach(function(e){return e()}))},e}();t.default=n},865:function(e,t,n){var r,o=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))(function(o,i){function s(e){try{c(r.next(e))}catch(e){i(e)}}function a(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(s,a)}c((r=r.apply(e,t||[])).next())})},s=this&&this.__generator||function(e,t){var n,r,o,i,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function a(a){return function(c){return function(a){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,a[0]&&(s=0)),s;)try{if(n=1,r&&(o=2&a[0]?r.return:a[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,a[1])).done)return o;switch(r=0,o&&(a=[2&a[0],o.value]),a[0]){case 0:case 1:o=a;break;case 4:return s.label++,{value:a[1],done:!1};case 5:s.label++,r=a[1],a=[0];continue;case 7:a=s.ops.pop(),s.trys.pop();continue;default:if(!((o=(o=s.trys).length>0&&o[o.length-1])||6!==a[0]&&2!==a[0])){s=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]<o[3])){s.label=a[1];break}if(6===a[0]&&s.label<o[1]){s.label=o[1],o=a;break}if(o&&s.label<o[2]){s.label=o[2],s.ops.push(a);break}o[2]&&s.ops.pop(),s.trys.pop();continue}a=t.call(e,s)}catch(e){a=[6,e],r=0}finally{n=o=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,c])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.CloudbaseCache=void 0;var a=n(764),c=n(962),u=n(778),l=function(e){function t(t){var n=e.call(this)||this;return n.root=t,t.tcbCacheObject||(t.tcbCacheObject={}),n}return o(t,e),t.prototype.setItem=function(e,t){this.root.tcbCacheObject[e]=t},t.prototype.getItem=function(e){return this.root.tcbCacheObject[e]},t.prototype.removeItem=function(e){delete this.root.tcbCacheObject[e]},t.prototype.clear=function(){delete this.root.tcbCacheObject},t}(a.AbstractStorage),d=function(){function e(e){this.keys={};var t=e.persistence,n=e.platformInfo,r=void 0===n?{}:n,o=e.keys,i=void 0===o?{}:o;this.platformInfo=r,this.storage||(this.persistenceTag=this.platformInfo.adapter.primaryStorage||t,this.storage=function(e,t){switch(e){case"local":default:return t.localStorage?t.localStorage:((0,c.printWarn)(u.ERRORS.INVALID_PARAMS,"localStorage is not supported on current platform"),new l(t.root));case"none":return new l(t.root)}}(this.persistenceTag,this.platformInfo.adapter),this.keys=i)}return Object.defineProperty(e.prototype,"mode",{get:function(){return this.storage.mode||"sync"},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"persistence",{get:function(){return this.persistenceTag},enumerable:!1,configurable:!0}),e.prototype.setStore=function(e,t,n){if("async"!==this.mode){if(this.storage)try{var r={version:n||"localCachev1",content:t};this.storage.setItem(e,JSON.stringify(r))}catch(e){throw new Error(JSON.stringify({code:u.ERRORS.OPERATION_FAIL,msg:"[".concat((0,u.getSdkName)(),"][").concat(u.ERRORS.OPERATION_FAIL,"]setStore failed"),info:e}))}}else(0,c.printWarn)(u.ERRORS.INVALID_OPERATION,"current platform's storage is asynchronous, please use setStoreAsync insteed")},e.prototype.setStoreAsync=function(e,t,n){return i(this,void 0,void 0,function(){var r;return s(this,function(o){switch(o.label){case 0:if(!this.storage)return[2];o.label=1;case 1:return o.trys.push([1,3,,4]),r={version:n||"localCachev1",content:t},[4,this.storage.setItem(e,JSON.stringify(r))];case 2:return o.sent(),[3,4];case 3:return o.sent(),[2];case 4:return[2]}})})},e.prototype.getStore=function(e,t){var n;if("async"!==this.mode){try{if("undefined"!=typeof process&&(null===(n={IS_MP_BUILD:!1,IS_BROWSER_BUILD:!0})||void 0===n?void 0:n.tcb_token))return{IS_MP_BUILD:!1,IS_BROWSER_BUILD:!0}.tcb_token;if(!this.storage)return""}catch(e){return""}t=t||"localCachev1";var r=this.storage.getItem(e);return r&&r.indexOf(t)>=0?JSON.parse(r).content:""}(0,c.printWarn)(u.ERRORS.INVALID_OPERATION,"current platform's storage is asynchronous, please use getStoreAsync insteed")},e.prototype.getStoreAsync=function(e,t){var n;return i(this,void 0,void 0,function(){var r;return s(this,function(o){switch(o.label){case 0:try{if("undefined"!=typeof process&&(null===(n={IS_MP_BUILD:!1,IS_BROWSER_BUILD:!0})||void 0===n?void 0:n.tcb_token))return[2,{IS_MP_BUILD:!1,IS_BROWSER_BUILD:!0}.tcb_token];if(!this.storage)return[2,""]}catch(e){return[2,""]}return t=t||"localCachev1",[4,this.storage.getItem(e)];case 1:return(r=o.sent())&&r.indexOf(t)>=0?[2,JSON.parse(r).content]:[2,""]}})})},e.prototype.removeStore=function(e){"async"!==this.mode?this.storage.removeItem(e):(0,c.printWarn)(u.ERRORS.INVALID_OPERATION,"current platform's storage is asynchronous, please use removeStoreAsync insteed")},e.prototype.removeStoreAsync=function(e){return i(this,void 0,void 0,function(){return s(this,function(t){switch(t.label){case 0:return[4,this.storage.removeItem(e)];case 1:return t.sent(),[2]}})})},e}();t.CloudbaseCache=d},940:function(e,t,n){var r,o=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__spreadArray||function(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))};Object.defineProperty(t,"__esModule",{value:!0}),t.removeEventListener=t.activateEvent=t.addEventListener=t.CloudbaseEventEmitter=t.IErrorEvent=t.CloudbaseEvent=void 0;var s=n(962),a=function(e,t){this.data=t||null,this.name=e};t.CloudbaseEvent=a;var c=function(e){function t(t,n){var r=e.call(this,"error",{error:t,data:n})||this;return r.error=t,r}return o(t,e),t}(a);t.IErrorEvent=c;var u=function(){function e(){this.listeners={}}return e.prototype.on=function(e,t){return function(e,t,n){n[e]=n[e]||[],n[e].push(t)}(e,t,this.listeners),this},e.prototype.off=function(e,t){return function(e,t,n){if(null==n?void 0:n[e]){var r=n[e].indexOf(t);-1!==r&&n[e].splice(r,1)}}(e,t,this.listeners),this},e.prototype.fire=function(e,t){if((0,s.isInstanceOf)(e,c))return console.error(e.error),this;var n=(0,s.isString)(e)?new a(e,t||{}):e,r=n.name;if(this.listens(r)){n.target=this;for(var o=0,u=this.listeners[r]?i([],this.listeners[r],!0):[];o<u.length;o++)u[o].call(this,n)}return this},e.prototype.listens=function(e){return this.listeners[e]&&this.listeners[e].length>0},e}();t.CloudbaseEventEmitter=u;var l=new u;t.addEventListener=function(e,t){l.on(e,t)},t.activateEvent=function(e,t){void 0===t&&(t={}),l.fire(e,t)},t.removeEventListener=function(e,t){l.off(e,t)}},991:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.LANG_CHANGE_EVENT=t.bus=void 0;var r=n(940);t.bus=new r.CloudbaseEventEmitter,t.LANG_CHANGE_EVENT="lang_change"},962:function(e,t,n){var r,o=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__assign||function(){return i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},i.apply(this,arguments)},s=this&&this.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};Object.defineProperty(t,"__esModule",{value:!0}),t.parseCaptcha=t.parseQueryString=t.transformPhone=t.sleep=t.printGroupLog=t.errorToResult=t.promoteGatewayError=t.maybeThrow=t.resolveThrow=t.createCloudbaseError=t.CloudbaseError=t.throwError=t.printInfo=t.printError=t.printWarn=t.execCallback=t.createPromiseCallback=t.removeParam=t.getHash=t.getQuery=t.toQueryString=t.formatUrl=t.generateRequestId=t.genSeqId=t.isFormData=t.isInstanceOf=t.isNull=t.isPalinObject=t.isUndefined=t.isString=t.isArray=void 0;var a=n(778);t.isArray=function(e){return"[object Array]"===Object.prototype.toString.call(e)},t.isString=function(e){return"string"==typeof e},t.isUndefined=function(e){return void 0===e},t.isPalinObject=function(e){return"[object Object]"===Object.prototype.toString.call(e)},t.isNull=function(e){return"[object Null]"===Object.prototype.toString.call(e)},t.isInstanceOf=function(e,t){return e instanceof t},t.isFormData=function(e){return"[object FormData]"===Object.prototype.toString.call(e)},t.genSeqId=function(){return Math.random().toString(16).slice(2)},t.generateRequestId=function(){var e=(new Date).getTime(),t=(null===Date||void 0===Date?void 0:Date.now)&&1e3*Date.now()||0;return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(n){var r=16*Math.random();return e>0?(r=(e+r)%16|0,e=Math.floor(e/16)):(r=(t+r)%16|0,t=Math.floor(t/16)),("x"===n?r:7&r|8).toString(16)})},t.formatUrl=function(e,t,n){void 0===n&&(n={});var r=/\?/.test(t),o="";return Object.keys(n).forEach(function(e){""===o?!r&&(t+="?"):o+="&",o+="".concat(e,"=").concat(encodeURIComponent(n[e]))}),/^http(s)?:\/\//.test(t+=o)?t:"".concat(e).concat(t)},t.toQueryString=function(e){void 0===e&&(e={});var t=[];return Object.keys(e).forEach(function(n){t.push("".concat(n,"=").concat(encodeURIComponent(e[n])))}),t.join("&")},t.getQuery=function(e,t){if("undefined"==typeof window)return!1;var n=t||decodeURIComponent(window.location.search),r=new RegExp("(^|&)".concat(e,"=([^&]*)(&|$)")),o=n.substr(n.indexOf("?")+1).match(r);return null!=o?o[2]:""},t.getHash=function(e){if("undefined"==typeof window)return"";var t=window.location.hash.match(new RegExp("[#?&/]".concat(e,"=([^&#]*)")));return t?t[1]:""},t.removeParam=function(e,t){var n=t.split("?")[0],r=[],o=-1!==t.indexOf("?")?t.split("?")[1]:"";if(""!==o){for(var i=(r=o.split("&")).length-1;i>=0;i-=1)r[i].split("=")[0]===e&&r.splice(i,1);n="".concat(n,"?").concat(r.join("&"))}return n},t.createPromiseCallback=function(){var e={};if(!Promise){(e=function(){}).promise={};var t=function(){throw new Error('Your Node runtime does support ES6 Promises. Set "global.Promise" to your preferred implementation of promises.')};return Object.defineProperty(e.promise,"then",{get:t}),Object.defineProperty(e.promise,"catch",{get:t}),e}var n=new Promise(function(t,n){e=function(e,r){return e?n(e):t(r)}});return e.promise=n,e},t.execCallback=function(e,t,n){if(void 0===n&&(n=null),e&&"function"==typeof e)return e(t,n);if(t)throw t;return n},t.printWarn=function(e,t){console.warn("[".concat((0,a.getSdkName)(),"][").concat(e,"]:").concat(t))},t.printError=function(e,t){console.error({code:e,msg:"[".concat((0,a.getSdkName)(),"][").concat(e,"]:").concat(t)})},t.printInfo=function(e,t){console.log("[".concat((0,a.getSdkName)(),"][").concat(e,"]:").concat(t))},t.throwError=function(e,t){var n=new Error(JSON.stringify({code:e,msg:"[".concat((0,a.getSdkName)(),"][").concat(e,"]:").concat(t)}));throw n.code=e,n};var c=function(e){function t(t){var n=e.call(this,t.msg||t.message||"")||this;return n.code=t.code||"",n.requestId=t.requestId||"",Object.defineProperty(n,"message",{value:t.msg||t.message||"",enumerable:!0,writable:!0,configurable:!0}),n}return o(t,e),t}(Error);t.CloudbaseError=c;var u=function(e){return new c(e)};function l(e,t){return(t||u)(e)}function d(e){return!e||"boolean"!=typeof e.throw||e.throw}t.createCloudbaseError=l,t.resolveThrow=d,t.maybeThrow=function(e,t){if(d(e))throw l(t,null==e?void 0:e.errorFactory);return i({code:t.code,message:t.msg},t.requestId?{requestId:t.requestId}:{})},t.promoteGatewayError=function(e){if(e&&"object"==typeof e&&e.data&&"object"==typeof e.data){var t=e.data,n=t.code,r=t.message;if(!e.code&&n||!e.message&&r)return i(i(i({},e),!e.code&&n?{code:n}:{}),!e.message&&r?{message:r}:{})}return e},t.errorToResult=function(e){if(e instanceof Error&&"string"==typeof e.message)try{var t=JSON.parse(e.message);if(t&&"string"==typeof t.code)return{code:t.code,message:t.msg||t.message||"",requestId:t.requestId}}catch(e){}return e&&"string"==typeof e.code?{code:e.code,message:e.message||"",requestId:e.requestId}:{code:"UNKNOWN_ERROR",message:String((null==e?void 0:e.message)||e||"")}},t.printGroupLog=function(e){var t,n=e.title,r=e.subtitle,o=void 0===r?"":r,i=e.content,s=void 0===i?[]:i,a=e.printTrace,c=void 0!==a&&a,u=e.collapsed;void 0!==u&&u?(console.groupCollapsed||console.error)(n,o):(console.group||console.error)(n,o);for(var l=0,d=s;l<d.length;l++){var h=d[l],p=h.type,f=h.body;switch(p){case"info":console.log(f);break;case"warn":console.warn(f);break;case"error":console.error(f)}}c&&(console.trace||console.log)("stack trace:"),null===(t=console.groupEnd)||void 0===t||t.call(console)},t.sleep=function(e){return void 0===e&&(e=0),new Promise(function(t){return setTimeout(t,e)})},t.transformPhone=function(e){return"+86".concat(e)},t.parseQueryString=function(e){e=e.replace(/^\?/,"");var t={};return e.split("&").forEach(function(e){var n=e.split("="),r=n[0],o=n[1];r=decodeURIComponent(r),o=decodeURIComponent(o),r&&(t[r]?Array.isArray(t[r])?t[r].push(o):t[r]=[t[r],o]:t[r]=o)}),t},t.parseCaptcha=function(e){var n={},r=e.match(/^(data:.*?)(\?[^#\s]*)?$/);if(r){e=r[1];var o=r[2];o&&(n=(0,t.parseQueryString)(o))}var i=n.token,a=s(n,["token"]);return/^data:/.test(e)&&!i?{error:"invalid_argument",error_description:"invalid captcha data: ".concat(e)}:i?{state:a.state,token:i,captchaData:e}:{error:"unimplemented",error_description:"need to impl captcha data"}}},388:function(e){e.exports={}},764:function(e){e.exports=n(1553)},107:function(e){e.exports=n(560)}},o={},i=function e(t){var n=o[t];if(void 0!==n)return n.exports;var i=o[t]={exports:{}};return r[t].call(i.exports,i,i.exports,e),i.exports}(474),e.exports=i},244:function(e,t,n){"use strict";!function(){var t={891:function(e,t,n){var r=this&&this.__assign||function(){return r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},r.apply(this,arguments)},o=this&&this.__decorate||function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},i=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},s=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))(function(o,i){function s(e){try{c(r.next(e))}catch(e){i(e)}}function a(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(s,a)}c((r=r.apply(e,t||[])).next())})},a=this&&this.__generator||function(e,t){var n,r,o,i,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function a(a){return function(c){return function(a){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,a[0]&&(s=0)),s;)try{if(n=1,r&&(o=2&a[0]?r.return:a[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,a[1])).done)return o;switch(r=0,o&&(a=[2&a[0],o.value]),a[0]){case 0:case 1:o=a;break;case 4:return s.label++,{value:a[1],done:!1};case 5:s.label++,r=a[1],a=[0];continue;case 7:a=s.ops.pop(),s.trys.pop();continue;default:if(!((o=(o=s.trys).length>0&&o[o.length-1])||6!==a[0]&&2!==a[0])){s=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]<o[3])){s.label=a[1];break}if(6===a[0]&&s.label<o[1]){s.label=o[1],o=a;break}if(o&&s.label<o[2]){s.label=o[2],s.ops.push(a);break}o[2]&&s.ops.pop(),s.trys.pop();continue}a=t.call(e,s)}catch(e){a=[6,e],r=0}finally{n=o=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,c])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.CloudbaseStorage=t.COMPONENT_NAME=t.EUploadMethod=void 0;var c,u=n(877),l=n(90),d=n(388);!function(e){e.put="put",e.post="post"}(c=t.EUploadMethod||(t.EUploadMethod={}));var h=u.constants.getSdkName,p=u.constants.ERRORS,f=u.constants.COMMUNITY_SITE_URL,m=u.utils.isArray,g=u.utils.isString,v=u.utils.isPalinObject,_=u.utils.execCallback,y=u.utils.maybeThrow,b=u.helpers.catchErrorsDecorator;function w(e,t){return t&&"function"!=typeof t?[r(r({},e),{customReqOpts:t}),void 0]:[e,t]}t.COMPONENT_NAME="storage";var E=function(e,t,n){return s(void 0,void 0,void 0,function(){var o,i,s;return a(this,function(a){switch(a.label){case 0:return[4,e.gateWay({path:"storages",name:"get-objects-upload-info",data:[r({objectId:t.path},t.signedHeader?{signedHeader:t.signedHeader}:{})]},n)];case 1:return o=a.sent(),o=u.utils.promoteGatewayError(o),i=(null===(s=o.data)||void 0===s?void 0:s[0])||{},[2,r(r({},o),{data:r(r({},i.code?r({},i):{}),{authorization:i.authorization,token:i.token,url:i.uploadUrl,fileId:i.cloudObjectId,cosFileId:i.cloudObjectMeta,download_url:i.downloadUrl})})]}})})},I=function(e,t,n){return s(void 0,void 0,void 0,function(){var o;return a(this,function(i){switch(i.label){case 0:return[4,e.gateWay({path:"storages",name:"get-objects-download-info",data:t.convertedFileList.map(function(e){return{cloudObjectId:e.fileid}})},n)];case 1:return o=i.sent(),o=u.utils.promoteGatewayError(o),[2,r(r({},o),{data:{download_list:Array.isArray(o.data)?o.data.map(function(e){return{code:e.code||"SUCCESS",message:e.message,fileid:e.cloudObjectId,download_url:e.downloadUrl,fileID:e.cloudObjectId,tempFileURL:e.downloadUrl,mime_type:e.contentType||T(null,e.cloudObjectId||"")}}):[]}})]}})})},S=function(e,t,n){return s(void 0,void 0,void 0,function(){var o;return a(this,function(i){switch(i.label){case 0:return[4,e.gateWay({path:"storages",name:"delete-objects",data:t.fileList.map(function(e){return{cloudObjectId:e}})},n)];case 1:return o=i.sent(),o=u.utils.promoteGatewayError(o),[2,r(r({},o),{data:{delete_list:Array.isArray(o.data)?o.data.map(function(e){return{code:e.code||"SUCCESS",fileID:e.cloudObjectId,message:e.message}}):[]}})]}})})},A=function(e,t,n){return s(void 0,void 0,void 0,function(){var o;return a(this,function(i){switch(i.label){case 0:return[4,e.gateWay({path:"storages",name:"copy-objects",data:t.convertedFileList.map(function(e){return{srcPath:e.src_path,dstPath:e.dst_path,overwrite:e.overwrite,removeOriginal:e.remove_original}})},n)];case 1:return o=i.sent(),o=u.utils.promoteGatewayError(o),[2,r(r({},o),{data:{copy_list:Array.isArray(o.data)?o.data.map(function(e){return{code:e.code||"SUCCESS",fileID:e.cloudObjectId,fileId:e.cloudObjectId,message:e.message}}):[]}})]}})})},O={txt:"text/plain",json:"application/json",html:"text/html",htm:"text/html",css:"text/css",js:"application/javascript",csv:"text/csv",xml:"application/xml",png:"image/png",jpg:"image/jpeg",jpeg:"image/jpeg",gif:"image/gif",webp:"image/webp",svg:"image/svg+xml",ico:"image/x-icon",pdf:"application/pdf",zip:"application/zip",gz:"application/gzip",mp4:"video/mp4",webm:"video/webm",mp3:"audio/mpeg",wav:"audio/wav"};function T(e,t){if("undefined"!=typeof Blob&&e instanceof Blob&&e.type)return e.type;var n=/\.([a-zA-Z0-9]+)$/.exec(t||""),r=n?n[1].toLowerCase():"";return O[r]||"application/octet-stream"}function C(e,t){var n=t.toLowerCase();return Object.keys(e).some(function(e){return e.toLowerCase()===n})}function k(e){return Object.keys(e).reduce(function(t,n){var o;return r(r({},t),((o={})[n]=[e[n]],o))},{})}t.CloudbaseStorage=function(){function e(e){this.context=e}var n,u,O,P,N,R,M,x,L,D,U,j,F,$,G,B;return Object.defineProperty(e.prototype,"config",{get:function(){var e;return null===(e=this.context)||void 0===e?void 0:e.config},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"request",{get:function(){var e;return null===(e=this.context)||void 0===e?void 0:e.request},enumerable:!1,configurable:!0}),e.prototype.isGateWay=function(){return"GATEWAY"===(this.config.endPointMode||"CLOUD_API")},e.prototype.uploadFile=function(e,n){return s(this,void 0,Promise,function(){var o,i,s,u,d,f,m,v,b,E,I,S,A,O,P,N,R,M,x,L,D,U,j,F,$,G,B,q,H,z,W,V;return a(this,function(a){switch(a.label){case 0:return H=w(e,n),e=H[0],n=H[1],o=e.cloudPath,i=e.filePath,s=e.onUploadProgress,z=e.method,u=void 0===z?"put":z,W=e.headers,d=void 0===W?{}:W,f=e.fileContent,g(o)&&(i||f)?(m={put:c.put,post:c.post}[u.toLocaleLowerCase()]||c.put,v=this.isGateWay(),b=r({},d),E=Object.keys(d).reduce(function(e,t){return"content-length"!==t.toLowerCase()&&(e[t]=d[t]),e},{}),m===c.put&&v&&(C(b,"content-length")||(I=function(e,t){var n=null!=e?e:t;if(null!==n){if("undefined"!=typeof Blob&&n instanceof Blob)return n.size;if("undefined"!=typeof ArrayBuffer){if(n instanceof ArrayBuffer)return n.byteLength;if("function"==typeof ArrayBuffer.isView&&ArrayBuffer.isView(n))return n.byteLength}if("string"==typeof n){if("undefined"!=typeof Blob)return new Blob([n]).size;var r=(0,l.getStringByteLength)(n);return"number"==typeof r?r:n.length}return"object"==typeof n&&"number"==typeof n.size?n.size:void 0}}(i,f),"number"==typeof I&&(b["content-length"]=String(I))),C(b,"content-type")||(b["content-type"]=T(i,o)),C(E,"content-type")||(E["content-type"]=T(i,o))),[4,this.getUploadMetadata({cloudPath:o,method:m,headers:m!==c.put||v?void 0:E,signedHeader:m===c.put&&v?k(b):void 0,customReqOpts:e.customReqOpts})]):[2,y(this.config,{code:p.INVALID_PARAMS,msg:"[".concat(t.COMPONENT_NAME,".uploadFile] invalid params")})];case 1:return S=a.sent(),A=S.data,O=S.requestId,(null==(P=A)?void 0:P.code)||!(null==P?void 0:P.url)?(N=(null==P?void 0:P.code)||p.OPERATION_FAIL,R=(null==P?void 0:P.message)||"get upload info failed",[2,_(n,new Error("[".concat(h(),"][").concat(N,"][").concat(t.COMPONENT_NAME,"]:").concat(R)))]):(M=A.url,x=A.authorization,L=A.token,D=A.fileId,U=A.cosFileId,j=A.download_url,$=r(r({},F={url:M,file:i,name:o,onUploadProgress:s,fileContent:f,fileId:D,requestId:O}),{method:c.put,headers:r(r({},E),{authorization:x,"x-cos-meta-fileid":U,"x-cos-security-token":L})}),G=r(r({},F),{method:c.post,data:{key:o,signature:x,"x-cos-meta-fileid":U,success_action_status:"201","x-cos-security-token":L}}),(V={})[c.put]={params:$,isSuccess:function(e){return e>=200&&e<300}},V[c.post]={params:G,isSuccess:function(e){return 201===e}},B=V,[4,this.request.upload(B[m].params)]);case 2:return q=a.sent(),B[m].isSuccess(q.statusCode)?[2,_(n,null,{fileID:D,download_url:j,requestId:O})]:[2,_(n,new Error("[".concat(h(),"][").concat(p.OPERATION_FAIL,"][").concat(t.COMPONENT_NAME,"]:").concat(q.data)))]}})})},e.prototype.getUploadMetadata=function(e,n){return s(this,void 0,Promise,function(){var r,o,i,s,u,l,d,h,f,m;return a(this,function(a){switch(a.label){case 0:if(r=e.cloudPath,o=e.method,i=e.headers,s=e.signedHeader,!g(r))return[2,y(this.config,{code:p.INVALID_PARAMS,msg:"[".concat(t.COMPONENT_NAME,".getUploadMetadata] invalid cloudPath")})];u=this.request,l="storage.getUploadMetadata",a.label=1;case 1:return a.trys.push([1,6,,7]),d=void 0,h={path:r},f=this.isGateWay(),o&&(h.method=o),o===c.put&&(f&&s?h.signedHeader=s:!f&&i&&(h.headers=i)),f?[4,E(u,h,e.customReqOpts)]:[3,3];case 2:return d=a.sent(),[3,5];case 3:return[4,u.send(l,h,e.customReqOpts)];case 4:d=a.sent(),a.label=5;case 5:return[2,_(n,null,d)];case 6:return m=a.sent(),[2,_(n,m)];case 7:return[2]}})})},e.prototype.deleteFile=function(e,n){return s(this,void 0,Promise,function(){var r,o,i,s,c,u,l,d,h;return a(this,function(a){switch(a.label){case 0:if(h=w(e,n),e=h[0],n=h[1],!(r=e.fileList)||!m(r)||0===r.length)return[2,y(this.config,{code:p.INVALID_PARAMS,msg:"[".concat(t.COMPONENT_NAME,".deleteFile] fileList must not be empty")})];for(o=0,i=r;o<i.length;o++)if(!(s=i[o])||!g(s))return[2,y(this.config,{code:p.INVALID_PARAMS,msg:"[".concat(t.COMPONENT_NAME,".deleteFile] fileID must be string")})];return c="storage.batchDeleteFile",u=this.request,l={},this.isGateWay()?[4,S(u,{fileList:r},e.customReqOpts)]:[3,2];case 1:return l=a.sent(),[3,4];case 2:return[4,u.send(c,{fileid_list:r},e.customReqOpts)];case 3:l=a.sent(),a.label=4;case 4:return l.code?[2,_(n,null,l)]:(d={fileList:l.data.delete_list,requestId:l.requestId},[2,_(n,null,d)])}})})},e.prototype.getTempFileURL=function(e,n){var r;return s(this,void 0,Promise,function(){var o,i,s,c,u,l,d,h,f;return a(this,function(a){switch(a.label){case 0:if(f=w(e,n),e=f[0],n=f[1],!(o=e.fileList)||!m(o)||0===o.length)return[2,y(this.config,{code:p.INVALID_PARAMS,msg:"[".concat(t.COMPONENT_NAME,".getTempFileURL] fileList must not be empty")})];for(i=[],s=0,c=o;s<c.length;s++)if(u=c[s],v(u)){if(!Object.prototype.hasOwnProperty.call(u,"fileID"))return[2,y(this.config,{code:p.INVALID_PARAMS,msg:"[".concat(t.COMPONENT_NAME,".getTempFileURL] file info must include fileID")})];i.push({fileid:u.fileID,max_age:u.maxAge||7200})}else{if(!g(u))return[2,y(this.config,{code:p.INVALID_PARAMS,msg:"[".concat(t.COMPONENT_NAME,".getTempFileURL] invalid fileList")})];i.push({fileid:u})}return l="storage.batchGetDownloadUrl",d=this.request,h={},this.isGateWay()?[4,I(d,{convertedFileList:i},e.customReqOpts)]:[3,2];case 1:return h=a.sent(),[3,4];case 2:return[4,d.send(l,{file_list:i},e.customReqOpts)];case 3:h=a.sent(),a.label=4;case 4:return h.code?[2,_(n,null,h)]:[2,_(n,null,{fileList:Array.isArray(null===(r=h.data)||void 0===r?void 0:r.download_list)?h.data.download_list:[],requestId:h.requestId})]}})})},e.prototype.downloadFile=function(e,n){return s(this,void 0,Promise,function(){var r,o,i,s,c,u,l;return a(this,function(a){switch(a.label){case 0:return l=w(e,n),e=l[0],n=l[1],r=e.fileID,g(r)?[4,this.getTempFileURL.call(this,{fileList:[{fileID:r,maxAge:600}],customReqOpts:e.customReqOpts})]:[2,y(this.config,{code:p.INVALID_PARAMS,msg:"[".concat(t.COMPONENT_NAME,".getTempFileURL] fileID must be string")})];case 1:return o=a.sent(),"SUCCESS"!==(i=o.fileList[0]).code?[2,_(n,i)]:(s=this.request,c=encodeURI(i.download_url),[4,s.download({url:c,tempFilePath:e.tempFilePath})]);case 2:return u=a.sent(),[2,_(n,null,u)]}})})},e.prototype.copyFile=function(e,n){return s(this,void 0,Promise,function(){var r,o,i,s,c,u,l,d,h,f;return a(this,function(a){switch(a.label){case 0:if(f=w(e,n),e=f[0],n=f[1],!(r=e.fileList)||!m(r)||0===r.length)return[2,y(this.config,{code:p.INVALID_PARAMS,msg:"[".concat(t.COMPONENT_NAME,".copyFile] fileList must not be empty")})];for(o=[],i=0,s=r;i<s.length;i++){if(c=s[i],u=c.srcPath,l=c.dstPath,!u||!l||"string"!=typeof u||"string"!=typeof l)return[2,y(this.config,{code:p.INVALID_PARAMS,msg:"[".concat(t.COMPONENT_NAME,".copyFile] srcPath and dstPath may not be empty")})];if(u===l)return[2,y(this.config,{code:p.INVALID_PARAMS,msg:"[".concat(t.COMPONENT_NAME,".copyFile] srcPath and dstPath can not be the same")})];o.push({src_path:u,dst_path:l,overwrite:c.overwrite,remove_original:c.removeOriginal})}return d=this.request,h={},this.isGateWay()?[4,A(d,{convertedFileList:o},e.customReqOpts)]:[3,2];case 1:return h=a.sent(),[3,4];case 2:return[4,d.send("storage.batchCopyFile",{file_list:o},e.customReqOpts)];case 3:h=a.sent(),a.label=4;case 4:return h.code?[2,_(n,null,h)]:[2,_(n,null,{fileList:h.data.copy_list,requestId:h.requestId})]}})})},e.prototype.getFileInfo=function(e){var t;return s(this,void 0,Promise,function(){var n,r=this;return a(this,function(o){switch(o.label){case 0:return[4,this.getTempFileURL(e)];case 1:return(null==(n=o.sent())?void 0:n.fileList)&&(null===(t=null==n?void 0:n.fileList)||void 0===t?void 0:t.length)>0?[4,Promise.all(n.fileList.map(function(e){return s(r,void 0,void 0,function(){var t,n,r,o,i,s,c;return a(this,function(a){switch(a.label){case 0:if("SUCCESS"!==e.code)return[2,{code:e.code,fileID:e.fileID,tempFileURL:e.tempFileURL,message:e.message}];a.label=1;case 1:return a.trys.push([1,3,,4]),[4,this.request.fetch({url:e.tempFileURL,method:"HEAD"})];case 2:return t=a.sent(),n=t.header,"undefined"!=typeof Headers&&n instanceof Headers&&(r={},n.forEach(function(e,t){r[t]=e}),n=r),o=parseInt(n["content-length"])||0,i=n["content-type"]||"",[400,404].includes(Number(t.statusCode))?[2,{code:"FILE_NOT_FOUND",fileID:e.fileID,tempFileURL:e.tempFileURL,message:"file not found"}]:[2,{code:e.code,fileID:e.fileID,tempFileURL:e.tempFileURL,cloudId:e.fileID,fileName:e.fileID.split("/").pop(),contentType:i,mime:i.split(";")[0].trim(),size:o,etag:n.etag||"",lastModified:n["last-modified"]||"",cacheControl:n["cache-control"]||""}];case 3:return s=a.sent(),c="object"==typeof s&&null!==s&&"message"in s?String(s.message):void 0,[2,{code:"FETCH_FILE_INFO_ERROR",fileID:e.fileID,tempFileURL:e.tempFileURL,message:c}];case 4:return[2]}})})}))]:[3,3];case 2:return[2,{fileList:o.sent(),requestId:n.requestId}];case 3:return[2,{fileList:[],requestId:n.requestId}]}})})},o([b({customInfo:{className:"Cloudbase",methodName:"uploadFile"},title:"上传文件失败",messages:["请确认以下各项:"," 1 - 调用 uploadFile() 的语法或参数是否正确"," 2 - 当前域名是否在安全域名列表中:https://console.cloud.tencent.com/tcb/env/safety"," 3 - 云存储安全规则是否限制了当前登录状态访问","如果问题依然存在,建议到官方问答社区提问或寻找帮助:".concat(f)]}),i("design:type",Function),i("design:paramtypes",[Object,"function"==typeof(n="undefined"!=typeof Function&&Function)?n:Object]),i("design:returntype","function"==typeof(u="undefined"!=typeof Promise&&Promise)?u:Object)],e.prototype,"uploadFile",null),o([b({customInfo:{className:"Cloudbase",methodName:"getUploadMetadata"},title:"获取上传元信息失败",messages:["请确认以下各项:"," 1 - 调用 getUploadMetadata() 的语法或参数是否正确"," 2 - 当前域名是否在安全域名列表中:https://console.cloud.tencent.com/tcb/env/safety"," 3 - 云存储安全规则是否限制了当前登录状态访问","如果问题依然存在,建议到官方问答社区提问或寻找帮助:".concat(f)]}),i("design:type",Function),i("design:paramtypes",[Object,"function"==typeof(O="undefined"!=typeof Function&&Function)?O:Object]),i("design:returntype","function"==typeof(P="undefined"!=typeof Promise&&Promise)?P:Object)],e.prototype,"getUploadMetadata",null),o([b({customInfo:{className:"Cloudbase",methodName:"deleteFile"},title:"删除文件失败",messages:["请确认以下各项:"," 1 - 调用 deleteFile() 的语法或参数是否正确"," 2 - 当前域名是否在安全域名列表中:https://console.cloud.tencent.com/tcb/env/safety"," 3 - 云存储安全规则是否限制了当前登录状态访问","如果问题依然存在,建议到官方问答社区提问或寻找帮助:".concat(f)]}),i("design:type",Function),i("design:paramtypes",["function"==typeof(N=void 0!==d.ICloudbaseDeleteFileParams&&d.ICloudbaseDeleteFileParams)?N:Object,"function"==typeof(R="undefined"!=typeof Function&&Function)?R:Object]),i("design:returntype","function"==typeof(M="undefined"!=typeof Promise&&Promise)?M:Object)],e.prototype,"deleteFile",null),o([b({customInfo:{className:"Cloudbase",methodName:"getTempFileURL"},title:"获取文件下载链接",messages:["请确认以下各项:"," 1 - 调用 getTempFileURL() 的语法或参数是否正确"," 2 - 当前域名是否在安全域名列表中:https://console.cloud.tencent.com/tcb/env/safety"," 3 - 云存储安全规则是否限制了当前登录状态访问","如果问题依然存在,建议到官方问答社区提问或寻找帮助:".concat(f)]}),i("design:type",Function),i("design:paramtypes",["function"==typeof(x=void 0!==d.ICloudbaseGetTempFileURLParams&&d.ICloudbaseGetTempFileURLParams)?x:Object,"function"==typeof(L="undefined"!=typeof Function&&Function)?L:Object]),i("design:returntype","function"==typeof(D="undefined"!=typeof Promise&&Promise)?D:Object)],e.prototype,"getTempFileURL",null),o([b({customInfo:{className:"Cloudbase",methodName:"downloadFile"},title:"下载文件失败",messages:["请确认以下各项:"," 1 - 调用 downloadFile() 的语法或参数是否正确"," 2 - 当前域名是否在安全域名列表中:https://console.cloud.tencent.com/tcb/env/safety"," 3 - 云存储安全规则是否限制了当前登录状态访问","如果问题依然存在,建议到官方问答社区提问或寻找帮助:".concat(f)]}),i("design:type",Function),i("design:paramtypes",["function"==typeof(U=void 0!==d.ICloudbaseDownloadFileParams&&d.ICloudbaseDownloadFileParams)?U:Object,"function"==typeof(j="undefined"!=typeof Function&&Function)?j:Object]),i("design:returntype","function"==typeof(F="undefined"!=typeof Promise&&Promise)?F:Object)],e.prototype,"downloadFile",null),o([b({customInfo:{className:"Cloudbase",methodName:"copyFile"},title:"批量复制文件",messages:["请确认以下各项:"," 1 - 调用 copyFile() 的语法或参数是否正确"," 2 - 当前域名是否在安全域名列表中:https://console.cloud.tencent.com/tcb/env/safety"," 3 - 云存储安全规则是否限制了当前登录状态访问","如果问题依然存在,建议到官方问答社区提问或寻找帮助:".concat(f)]}),i("design:type",Function),i("design:paramtypes",["function"==typeof($=void 0!==d.ICloudbaseCopyFileParams&&d.ICloudbaseCopyFileParams)?$:Object,"function"==typeof(G="undefined"!=typeof Function&&Function)?G:Object]),i("design:returntype","function"==typeof(B="undefined"!=typeof Promise&&Promise)?B:Object)],e.prototype,"copyFile",null),e}()},656:function(e,t,n){var r=this&&this.__assign||function(){return r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},r.apply(this,arguments)},o=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))(function(o,i){function s(e){try{c(r.next(e))}catch(e){i(e)}}function a(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(s,a)}c((r=r.apply(e,t||[])).next())})},i=this&&this.__generator||function(e,t){var n,r,o,i,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function a(a){return function(c){return function(a){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,a[0]&&(s=0)),s;)try{if(n=1,r&&(o=2&a[0]?r.return:a[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,a[1])).done)return o;switch(r=0,o&&(a=[2&a[0],o.value]),a[0]){case 0:case 1:o=a;break;case 4:return s.label++,{value:a[1],done:!1};case 5:s.label++,r=a[1],a=[0];continue;case 7:a=s.ops.pop(),s.trys.pop();continue;default:if(!((o=(o=s.trys).length>0&&o[o.length-1])||6!==a[0]&&2!==a[0])){s=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]<o[3])){s.label=a[1];break}if(6===a[0]&&s.label<o[1]){s.label=o[1],o=a;break}if(o&&s.label<o[2]){s.label=o[2],s.ops.push(a);break}o[2]&&s.ops.pop(),s.trys.pop();continue}a=t.call(e,s)}catch(e){a=[6,e],r=0}finally{n=o=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,c])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.DownloadBuilder=t.StreamDownloadBuilder=void 0;var s=n(957),a=n(90);function c(e){return(0,s.isStorageError)(e)?e:new s.StorageError((null==e?void 0:e.message)||String(e))}function u(e){var t={};return void 0!==(null==e?void 0:e.download)&&(t.download=!0===e.download?"":e.download),void 0!==(null==e?void 0:e.cacheNonce)&&(t.cacheNonce=String(e.cacheNonce)),{headers:{},query:t}}var l=function(){function e(e){this.ctx=e}return e.prototype.then=function(e,t){return this.execute().then(e,t)},e.prototype.execute=function(){var e,t;return o(this,void 0,Promise,function(){var n,o,l,d,h;return i(this,function(i){switch(i.label){case 0:return i.trys.push([0,2,,3]),n=u(this.ctx.options),o=n.headers,l=n.query,[4,this.ctx.http.download({path:"/object/".concat(this.ctx.bucketId,"/").concat((0,a.encodeObjectName)(this.ctx.cleanName)),headers:r(r({},this.ctx.headers),o),query:l,signal:null===(e=this.ctx.parameters)||void 0===e?void 0:e.signal,cache:null===(t=this.ctx.parameters)||void 0===t?void 0:t.cache})];case 1:if(!(d=i.sent().response).body)throw new s.StorageApiError("Response body is empty",d.status,"STORAGE_PG_EMPTY_BODY");return[2,{data:d.body,error:null}];case 2:if(h=i.sent(),this.ctx.shouldThrowOnError)throw h;return[2,{data:null,error:c(h)}];case 3:return[2]}})})},e}();t.StreamDownloadBuilder=l;var d=function(){function e(e){this.ctx=e}return e.prototype.asStream=function(){return new l(this.ctx)},e.prototype.then=function(e,t){return this.execute().then(e,t)},e.prototype.execute=function(){var e,t;return o(this,void 0,Promise,function(){var n,o,s,l,d,h;return i(this,function(i){switch(i.label){case 0:return i.trys.push([0,3,,4]),n=u(this.ctx.options),o=n.headers,s=n.query,[4,this.ctx.http.download({path:"/object/".concat(this.ctx.bucketId,"/").concat((0,a.encodeObjectName)(this.ctx.cleanName)),headers:r(r({},this.ctx.headers),o),query:s,signal:null===(e=this.ctx.parameters)||void 0===e?void 0:e.signal,cache:null===(t=this.ctx.parameters)||void 0===t?void 0:t.cache})];case 1:return l=i.sent().response,h={},[4,l.blob()];case 2:return[2,(h.data=i.sent(),h.error=null,h)];case 3:if(d=i.sent(),this.ctx.shouldThrowOnError)throw d;return[2,{data:null,error:c(d)}];case 4:return[2]}})})},e}();t.DownloadBuilder=d},90:function(e,t){function n(){return globalThis.Buffer}Object.defineProperty(t,"__esModule",{value:!0}),t.encodeObjectName=t.toBase64=t.getStringByteLength=void 0,t.getStringByteLength=function(e){var t;return null===(t=n())||void 0===t?void 0:t.byteLength(e)},t.toBase64=function(e){var t=n();return t?t.from(e).toString("base64"):btoa(e)},t.encodeObjectName=function(e){return e.split("/").map(function(e){return encodeURIComponent(e)}).join("/")}},98:function(e,t,n){var r=this&&this.__assign||function(){return r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},r.apply(this,arguments)},o=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))(function(o,i){function s(e){try{c(r.next(e))}catch(e){i(e)}}function a(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(s,a)}c((r=r.apply(e,t||[])).next())})},i=this&&this.__generator||function(e,t){var n,r,o,i,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function a(a){return function(c){return function(a){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,a[0]&&(s=0)),s;)try{if(n=1,r&&(o=2&a[0]?r.return:a[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,a[1])).done)return o;switch(r=0,o&&(a=[2&a[0],o.value]),a[0]){case 0:case 1:o=a;break;case 4:return s.label++,{value:a[1],done:!1};case 5:s.label++,r=a[1],a=[0];continue;case 7:a=s.ops.pop(),s.trys.pop();continue;default:if(!((o=(o=s.trys).length>0&&o[o.length-1])||6!==a[0]&&2!==a[0])){s=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]<o[3])){s.label=a[1];break}if(6===a[0]&&s.label<o[1]){s.label=o[1],o=a;break}if(o&&s.label<o[2]){s.label=o[2],s.ops.push(a);break}o[2]&&s.ops.pop(),s.trys.pop();continue}a=t.call(e,s)}catch(e){a=[6,e],r=0}finally{n=o=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,c])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.Http=t.handleOperation=void 0;var s=n(957),a="/v1/storages";t.handleOperation=function(e,t){return o(this,void 0,Promise,function(){var n;return i(this,function(r){switch(r.label){case 0:return r.trys.push([0,2,,3]),[4,e()];case 1:return[2,{data:r.sent(),error:null}];case 2:if(n=r.sent(),t)throw n;return(0,s.isStorageError)(n)?[2,{data:null,error:n}]:[2,{data:null,error:new s.StorageError((null==n?void 0:n.message)||String(n))}];case 3:return[2]}})})};var c=function(){function e(e){this.ctx=e}return Object.defineProperty(e.prototype,"request",{get:function(){return this.ctx.request},enumerable:!1,configurable:!0}),e.prototype.gatewayOrigin=function(){return this.request.getBaseEndPoint("GATEWAY")},e.prototype.buildUrl=function(e,t){var n="".concat(this.gatewayOrigin()).concat(a).concat(e),r=function(e){if(!e)return"";var t=[];return Object.keys(e).forEach(function(n){var r=e[n];null!=r&&t.push("".concat(encodeURIComponent(n),"=").concat(encodeURIComponent(String(r))))}),t.join("&")}(t);return r&&(n+=(n.includes("?")?"&":"?")+r),n},e.prototype.toFullUrl=function(e){return e?/^https?:\/\//.test(e)||e.startsWith("//")?e:"".concat(this.gatewayOrigin()).concat(a).concat(e.startsWith("/")?"":"/").concat(e):e},e.prototype.send=function(e){return o(this,void 0,Promise,function(){var t,n,o,s,a,c;return i(this,function(i){switch(i.label){case 0:return t=this.buildUrl(e.path,e.query),n=e.method.toUpperCase(),o=["GET","HEAD"].includes(n),s=r({},e.headers||{}),o||(void 0!==e.rawBody?a=e.rawBody:void 0!==e.json&&(s["Content-Type"]=s["Content-Type"]||"application/json",a=JSON.stringify(e.json))),[4,this.request.fetch(r(r(r(r({url:t,method:n,headers:s},void 0!==a?{body:a}:{}),{withCredentials:!1!==e.withCredentials,shouldThrowOnError:!1}),e.signal?{signal:e.signal}:{}),e.cache?{cache:e.cache}:{}))];case 1:return c=i.sent(),[2,this.unwrap(c,t)]}})})},e.prototype.download=function(e){var t,n;return o(this,void 0,Promise,function(){var o,a,c,u;return i(this,function(i){switch(i.label){case 0:return o=this.buildUrl(e.path,e.query),[4,this.request.fetch(r(r({url:o,method:"GET",headers:r({},e.headers||{}),stream:!0,withCredentials:!1!==e.withCredentials,shouldThrowOnError:!1},e.signal?{signal:e.signal}:{}),e.cache?{cache:e.cache}:{}))];case 1:if(a=i.sent(),null===(t=e.signal)||void 0===t?void 0:t.aborted)throw new s.StorageApiError("The download was aborted",0,"STORAGE_PG_ABORTED");if(304===(c=Number(null!==(n=null==a?void 0:a.statusCode)&&void 0!==n?n:200)))throw new s.StorageApiError("Not Modified",c,"STORAGE_PG_NOT_MODIFIED");if(c>=400)throw new s.StorageApiError("Download failed with status ".concat(c),c,"STORAGE_PG_REQUEST_FAIL");if(!(u=null==a?void 0:a.response))throw new s.StorageApiError("Underlying adapter did not expose the raw Response",c,"STORAGE_PG_NO_RESPONSE");return[2,{response:u,status:c,header:null==a?void 0:a.header}]}})})},e.prototype.unwrap=function(e,t){var n,r;return o(this,void 0,Promise,function(){var o,a,c,u;return i(this,function(i){switch(i.label){case 0:o=Number(null!==(r=null!==(n=null==e?void 0:e.statusCode)&&void 0!==n?n:null==e?void 0:e.status)&&void 0!==r?r:200),a=null==e?void 0:e.data,i.label=1;case 1:return i.trys.push([1,3,,4]),[4,a];case 2:return a=i.sent(),[3,4];case 3:return i.sent(),a=void 0,[3,4];case 4:if(o>=200&&o<300)return[2,a];throw c=(null==a?void 0:a.code)||(null==a?void 0:a.error)||"STORAGE_PG_REQUEST_FAIL",u=(null==a?void 0:a.message)||"Storage request failed with status ".concat(o,": ").concat(t),new s.StorageApiError(u,o,c)}})})},e}();t.Http=c},456:function(e,t,n){var r,o=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.registerStorage=t.StorageClient=t.StorageFileApi=t.ClassicStorageFileApi=t.CloudbaseStorage=t.COMPONENT_NAME=void 0;var i=n(502),s=n(14),a=n(504),c=n(891),u=n(77),l=n(891);Object.defineProperty(t,"COMPONENT_NAME",{enumerable:!0,get:function(){return l.COMPONENT_NAME}}),Object.defineProperty(t,"CloudbaseStorage",{enumerable:!0,get:function(){return l.CloudbaseStorage}});var d=n(77);Object.defineProperty(t,"ClassicStorageFileApi",{enumerable:!0,get:function(){return d.ClassicStorageFileApi}});var h=n(502);Object.defineProperty(t,"StorageFileApi",{enumerable:!0,get:function(){return h.StorageFileApi}});var p=new c.CloudbaseStorage,f={name:c.COMPONENT_NAME,entity:{uploadFile:p.uploadFile,deleteFile:p.deleteFile,getTempFileURL:p.getTempFileURL,downloadFile:p.downloadFile,getUploadMetadata:p.getUploadMetadata,copyFile:p.copyFile,getFileInfo:p.getFileInfo,isGateWay:p.isGateWay}},m=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.prototype.from=function(e){return e?((0,a.assertValidBucketId)(e,"from"),new i.StorageFileApi(this.http,e,this.shouldThrowOnError)):new u.ClassicStorageFileApi(this.http.ctx,this.shouldThrowOnError)},t}(s.StorageBucketApi);t.StorageClient=m;var g={name:"".concat(c.COMPONENT_NAME,"/supabase"),IIFE:!0,entity:function(){var e=new WeakMap;Object.defineProperty(this.prototype,"storage",{get:function(){if(e.has(this))return e.get(this);var t=this,n=new Proxy({},{get:function(e,n){return"config"===n?t.config:"request"===n?t.request:void 0}}),r=new m(n);return e.set(this,r),r},configurable:!0,enumerable:!0})}};try{cloudbase.registerComponent(f),cloudbase.registerComponent(g)}catch(e){}function v(e){try{e.registerComponent(f),e.registerComponent(g)}catch(e){console.warn(e)}}t.registerStorage=v;try{window.registerStorage=v}catch(e){}},14:function(e,t,n){var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))(function(o,i){function s(e){try{c(r.next(e))}catch(e){i(e)}}function a(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(s,a)}c((r=r.apply(e,t||[])).next())})},o=this&&this.__generator||function(e,t){var n,r,o,i,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function a(a){return function(c){return function(a){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,a[0]&&(s=0)),s;)try{if(n=1,r&&(o=2&a[0]?r.return:a[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,a[1])).done)return o;switch(r=0,o&&(a=[2&a[0],o.value]),a[0]){case 0:case 1:o=a;break;case 4:return s.label++,{value:a[1],done:!1};case 5:s.label++,r=a[1],a=[0];continue;case 7:a=s.ops.pop(),s.trys.pop();continue;default:if(!((o=(o=s.trys).length>0&&o[o.length-1])||6!==a[0]&&2!==a[0])){s=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]<o[3])){s.label=a[1];break}if(6===a[0]&&s.label<o[1]){s.label=o[1],o=a;break}if(o&&s.label<o[2]){s.label=o[2],s.ops.push(a);break}o[2]&&s.ops.pop(),s.trys.pop();continue}a=t.call(e,s)}catch(e){a=[6,e],r=0}finally{n=o=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,c])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.StorageBucketApi=void 0;var i=n(98),s=n(504),a=function(){function e(e,t){void 0===t&&(t=!1),this.http=new i.Http(e),this.shouldThrowOnError=t}return e.prototype.throwOnError=function(){return this.shouldThrowOnError=!0,this},e.prototype.listBuckets=function(e){return r(this,void 0,Promise,function(){var t=this;return o(this,function(n){return[2,(0,i.handleOperation)(function(){var n={};return void 0!==(null==e?void 0:e.limit)&&(n.limit=e.limit),void 0!==(null==e?void 0:e.offset)&&(n.offset=e.offset),(null==e?void 0:e.sortColumn)&&(n.sortColumn=e.sortColumn),(null==e?void 0:e.sortOrder)&&(n.sortOrder=e.sortOrder),(null==e?void 0:e.search)&&(n.search=e.search),t.http.send({method:"GET",path:"/bucket/",query:n})},this.shouldThrowOnError)]})})},e.prototype.getBucket=function(e){return r(this,void 0,Promise,function(){var t=this;return o(this,function(n){return[2,(0,i.handleOperation)(function(){return(0,s.assertValidBucketId)(e,"getBucket"),t.http.send({method:"GET",path:"/bucket/".concat(e)})},this.shouldThrowOnError)]})})},e.prototype.createBucket=function(e,t){return r(this,void 0,Promise,function(){var n=this;return o(this,function(r){return[2,(0,i.handleOperation)(function(){var r;return(0,s.assertValidBucketId)(e,"createBucket"),n.http.send({method:"POST",path:"/bucket/",json:{id:e,name:e,public:null!==(r=null==t?void 0:t.public)&&void 0!==r&&r,type:null==t?void 0:t.type,file_size_limit:null==t?void 0:t.fileSizeLimit,allowed_mime_types:null==t?void 0:t.allowedMimeTypes}})},this.shouldThrowOnError)]})})},e.prototype.updateBucket=function(e,t){return r(this,void 0,Promise,function(){var n=this;return o(this,function(r){return[2,(0,i.handleOperation)(function(){return(0,s.assertValidBucketId)(e,"updateBucket"),n.http.send({method:"PUT",path:"/bucket/".concat(e),json:{public:t.public,file_size_limit:t.fileSizeLimit,allowed_mime_types:t.allowedMimeTypes}})},this.shouldThrowOnError)]})})},e.prototype.deleteBucket=function(e){return r(this,void 0,Promise,function(){var t=this;return o(this,function(n){return[2,(0,i.handleOperation)(function(){return(0,s.assertValidBucketId)(e,"deleteBucket"),t.http.send({method:"DELETE",path:"/bucket/".concat(e)})},this.shouldThrowOnError)]})})},e}();t.StorageBucketApi=a},77:function(e,t,n){var r=this&&this.__assign||function(){return r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},r.apply(this,arguments)},o=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))(function(o,i){function s(e){try{c(r.next(e))}catch(e){i(e)}}function a(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(s,a)}c((r=r.apply(e,t||[])).next())})},i=this&&this.__generator||function(e,t){var n,r,o,i,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function a(a){return function(c){return function(a){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,a[0]&&(s=0)),s;)try{if(n=1,r&&(o=2&a[0]?r.return:a[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,a[1])).done)return o;switch(r=0,o&&(a=[2&a[0],o.value]),a[0]){case 0:case 1:o=a;break;case 4:return s.label++,{value:a[1],done:!1};case 5:s.label++,r=a[1],a=[0];continue;case 7:a=s.ops.pop(),s.trys.pop();continue;default:if(!((o=(o=s.trys).length>0&&o[o.length-1])||6!==a[0]&&2!==a[0])){s=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]<o[3])){s.label=a[1];break}if(6===a[0]&&s.label<o[1]){s.label=o[1],o=a;break}if(o&&s.label<o[2]){s.label=o[2],s.ops.push(a);break}o[2]&&s.ops.pop(),s.trys.pop();continue}a=t.call(e,s)}catch(e){a=[6,e],r=0}finally{n=o=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,c])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.ClassicStorageFileApi=void 0;var s=n(877),a=n(957),c=n(891),u=n(90),l=s.constants.ERRORS,d=function(){function e(e,t){void 0===t&&(t=!1),this.shouldThrowOnError=!1,this.bucketId="",this.context=e,this.shouldThrowOnError=t,this.storage=new c.CloudbaseStorage(e)}return Object.defineProperty(e.prototype,"config",{get:function(){var e;return null===(e=this.context)||void 0===e?void 0:e.config},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"request",{get:function(){var e;return null===(e=this.context)||void 0===e?void 0:e.request},enumerable:!1,configurable:!0}),e.prototype.throwOnError=function(){return this.shouldThrowOnError=!0,this},e.prototype.upload=function(e,t,n){return o(this,void 0,Promise,function(){var o,s,u,d,h,p,f,m,g;return i(this,function(i){switch(i.label){case 0:o=r({upsert:!0},n),s=o.cacheControl,u=o.contentType,d=o.metadata,i.label=1;case 1:return i.trys.push([1,3,,4]),h=this.getCloudPath(e),p={cloudPath:h,filePath:t},(s||u||d)&&(f={},s&&(f["cache-control"]=s),u&&(f["content-type"]=u),d&&(f["x-cos-metadata-metadata"]=this.toBase64(JSON.stringify(d))),p.headers=f),[4,this.storage.uploadFile(p)];case 2:if(!(m=i.sent()).fileID)throw new Error(JSON.stringify({code:l.OPERATION_FAIL,msg:"[".concat(c.COMPONENT_NAME,".update] no fileID returned")}));return[2,{data:{id:m.fileID,path:e,fullPath:e},error:null}];case 3:if(g=i.sent(),this.shouldThrowOnError)throw g;if((0,a.isStorageError)(g))return[2,{data:null,error:g}];throw g;case 4:return[2]}})})},e.prototype.uploadToSignedUrl=function(e,t,n,r){return o(this,void 0,Promise,function(){return i(this,function(t){return[2,this.upload(e,n,r)]})})},e.prototype.createSignedUploadUrl=function(e){return o(this,void 0,Promise,function(){var t,n,r;return i(this,function(o){switch(o.label){case 0:return o.trys.push([0,2,,3]),t=this.getCloudPath(e),[4,this.storage.getUploadMetadata({cloudPath:t})];case 1:return[2,{data:{signedUrl:(n=o.sent().data).url,token:n.token,path:e,authorization:n.authorization,id:n.fileId,cosFileId:n.cosFileId,downloadUrl:n.download_url},error:null}];case 2:if(r=o.sent(),this.shouldThrowOnError)throw r;return[2,{data:null,error:r instanceof a.StorageError?r:new a.StorageError(r.message)}];case 3:return[2]}})})},e.prototype.update=function(e,t,n){return o(this,void 0,Promise,function(){return i(this,function(o){return[2,this.upload(e,t,r(r({},n),{upsert:!0}))]})})},e.prototype.move=function(e,t){return o(this,void 0,Promise,function(){var n,r;return i(this,function(o){switch(o.label){case 0:return o.trys.push([0,2,,3]),[4,this.storage.copyFile({fileList:[{srcPath:this.getCloudPath(e),dstPath:this.getCloudPath(t),overwrite:!0,removeOriginal:!0}]})];case 1:if((n=o.sent()).fileList[0].code&&"SUCCESS"!==n.fileList[0].code)throw new a.StorageError(n.fileList[0].message||"Move failed");return[2,{data:{message:"File moved from ".concat(e," to ").concat(t)},error:null}];case 2:if(r=o.sent(),this.shouldThrowOnError)throw r;if((0,a.isStorageError)(r))return[2,{data:null,error:r}];throw r;case 3:return[2]}})})},e.prototype.copy=function(e,t){return o(this,void 0,Promise,function(){var n,r;return i(this,function(o){switch(o.label){case 0:return o.trys.push([0,2,,3]),[4,this.storage.copyFile({fileList:[{srcPath:this.getCloudPath(e),dstPath:this.getCloudPath(t),overwrite:!0,removeOriginal:!1}]})];case 1:if((n=o.sent()).fileList[0].code&&"SUCCESS"!==n.fileList[0].code)throw new a.StorageError(n.fileList[0].message||"Copy failed");return[2,{data:{path:this.getCloudPath(t)},error:null}];case 2:if(r=o.sent(),this.shouldThrowOnError)throw r;if((0,a.isStorageError)(r))return[2,{data:null,error:r}];throw r;case 3:return[2]}})})},e.prototype.createSignedUrl=function(e,t,n){return o(this,void 0,Promise,function(){var r,o,s,c,u,l,d;return i(this,function(i){switch(i.label){case 0:return i.trys.push([0,2,,3]),r=this.normalizeCloudId(e),[4,this.storage.getTempFileURL({fileList:[{fileID:r,maxAge:t}]})];case 1:if("SUCCESS"!==(o=i.sent()).fileList[0].code)throw new a.StorageError("Failed to create signed URL: [".concat(o.fileList[0].code,"] ").concat(o.fileList[0].fileID));return s=o.fileList[0].download_url,c=[],void 0!==(null==n?void 0:n.download)&&("string"==typeof n.download?c.push("download=".concat(encodeURIComponent(n.download))):!0===n.download&&c.push("download=true")),(null==n?void 0:n.transform)&&(u=this.transformOptsToQueryString(n.transform))&&c.push(u),c.length>0&&(l=s.includes("?")?"&":"?",s="".concat(s).concat(l).concat(c.join("&"))),[2,{data:{signedUrl:s},error:null}];case 2:if(d=i.sent(),this.shouldThrowOnError)throw d;if((0,a.isStorageError)(d))return[2,{data:null,error:d}];throw d;case 3:return[2]}})})},e.prototype.createSignedUrls=function(e,t){return o(this,void 0,Promise,function(){var n,r,o=this;return i(this,function(i){switch(i.label){case 0:return i.trys.push([0,2,,3]),n=e.map(function(e){return{fileID:o.normalizeCloudId(e),maxAge:t}}),[4,this.storage.getTempFileURL({fileList:n})];case 1:return[2,{data:i.sent().fileList.map(function(t,n){return{path:e[n],signedUrl:t.tempFileURL||"",error:"SUCCESS"===t.code?null:t.message}}),error:null}];case 2:if(r=i.sent(),this.shouldThrowOnError)throw r;if((0,a.isStorageError)(r))return[2,{data:null,error:r}];throw r;case 3:return[2]}})})},e.prototype.download=function(e,t){return o(this,void 0,Promise,function(){var n,r,s=this;return i(this,function(c){switch(c.label){case 0:return c.trys.push([0,2,,3]),r={},[4,o(s,void 0,void 0,function(){var n,r,o,s;return i(this,function(i){switch(i.label){case 0:return[4,this.createSignedUrl(e,600,{transform:t})];case 1:if((n=i.sent()).error)throw n.error;return r=encodeURI(null===(s=n.data)||void 0===s?void 0:s.signedUrl),[4,this.request.reqClass.get({url:r,headers:{},responseType:"blob"})];case 2:if(!(o=i.sent().data))throw new a.StorageError("Download failed: no file content");return[2,new Blob([o])]}})})];case 1:return[2,(r.data=c.sent(),r.error=null,r)];case 2:if(n=c.sent(),this.shouldThrowOnError)throw n;if((0,a.isStorageError)(n))return[2,{data:null,error:n}];throw n;case 3:return[2]}})})},e.prototype.info=function(e){return o(this,void 0,Promise,function(){var t,n,r,o,s,c,u,l;return i(this,function(i){switch(i.label){case 0:return i.trys.push([0,2,,3]),t=e.startsWith("cloud://"),n=t?this.extractPathFromFileId(e):e,r=t?this.extractBucketFromFileId(e):this.bucketId,[4,this.storage.getFileInfo({fileList:[this.normalizeCloudId(e)]})];case 1:if(o=i.sent(),"SUCCESS"!==(s=o.fileList[0]).code)throw new a.StorageError(s.message);return c=(new Date).toISOString(),u=(s.lastModified?new Date(s.lastModified):new Date).toISOString(),[2,{data:{id:s.fileID,version:"1",name:n,bucketId:r,updatedAt:u,createdAt:u,lastAccessedAt:c,size:s.size,cacheControl:s.cacheControl,contentType:s.contentType,etag:s.etag,lastModified:u,metadata:{}},error:null}];case 2:if(l=i.sent(),this.shouldThrowOnError)throw l;return[2,{data:null,error:l instanceof a.StorageError?l:new a.StorageError(l.message)}];case 3:return[2]}})})},e.prototype.exists=function(e){return o(this,void 0,Promise,function(){var t,n,r;return i(this,function(o){switch(o.label){case 0:return o.trys.push([0,2,,3]),[4,this.storage.getFileInfo({fileList:[this.normalizeCloudId(e)]})];case 1:if(t=o.sent(),"FILE_NOT_FOUND"===(n=t.fileList[0]).code)return[2,{data:!1,error:null}];if("SUCCESS"!==n.code)throw new a.StorageError(n.message);return[2,{data:!0,error:null}];case 2:if(r=o.sent(),this.shouldThrowOnError)throw r;if((0,a.isStorageError)(r))return[2,{data:null,error:r}];throw r;case 3:return[2]}})})},e.prototype.getPublicUrl=function(e,t){return o(this,void 0,Promise,function(){var n;return i(this,function(r){switch(r.label){case 0:return[4,this.createSignedUrl(e,600,t)];case 1:return(n=r.sent()).data?[2,{data:{publicUrl:n.data.signedUrl}}]:[2,{data:null,error:n.error}]}})})},e.prototype.remove=function(e){return o(this,void 0,Promise,function(){var t,n,r,o,s,c,u,l,d,h,p=this;return i(this,function(i){switch(i.label){case 0:for(i.trys.push([0,3,,4]),t=10,n=[],r=0;r<e.length;r+=t)n.push(e.slice(r,r+t));return[4,Promise.all(n.map(function(e){return Promise.all(e.map(function(e){return p.info(e)}))}))];case 1:return o=i.sent(),s=new Map,o.forEach(function(n,r){n.forEach(function(n,o){n.data&&s.set(e[r*t+o],n.data)})}),c=e.map(function(e){return p.normalizeCloudId(e)}),[4,this.storage.deleteFile({fileList:c})];case 2:if(u=i.sent(),(l=u.fileList.filter(function(e){return"SUCCESS"!==e.code})).length>0)throw new a.StorageError("Delete failed for ".concat(l.length," file(s)"));return d=(new Date).toISOString(),[2,{data:e.map(function(e){var t=s.get(e);return{name:null==t?void 0:t.name,id:null==t?void 0:t.id,bucket_id:null==t?void 0:t.bucketId,owner:void 0,updated_at:(null==t?void 0:t.updatedAt)||d,created_at:null==t?void 0:t.createdAt,last_accessed_at:(null==t?void 0:t.lastAccessedAt)||d,metadata:(null==t?void 0:t.metadata)||{},buckets:{id:null==t?void 0:t.bucketId,name:null==t?void 0:t.bucketId,owner:void 0,public:!1,created_at:"",updated_at:d}}}),error:null}];case 3:if(h=i.sent(),this.shouldThrowOnError)throw h;if((0,a.isStorageError)(h))return[2,{data:null,error:h}];throw h;case 4:return[2]}})})},e.prototype.list=function(){return o(this,void 0,void 0,function(){return i(this,function(e){throw new a.StorageError("Not implemented")})})},e.prototype.getCloudPath=function(e){return e.replace(/^\/|\/$/g,"").replace(/\/+/g,"/")},e.prototype.normalizeCloudId=function(e){var t;if(/^cloud:\/\//.test(e))return e;var n=this.getCloudPath(e);if(!this.bucketId)throw new a.StorageError("bucketId is not set");var r=(null===(t=this.config)||void 0===t?void 0:t.env)||"";return r?"cloud://".concat(r,".").concat(this.bucketId,"/").concat(n):void 0},e.prototype.toBase64=function(e){return(0,u.toBase64)(e)},e.prototype.transformOptsToQueryString=function(e){var t=["imageMogr2"];if(e.width||e.height){var n=e.width||"",r=e.height||"";"fill"===e.resize?t.push("thumbnail/".concat(n,"x").concat(r,"!")):"contain"===e.resize?t.push("thumbnail/".concat(n,"x").concat(r)):t.push("thumbnail/".concat(n,"x").concat(r,"^"))}if(e.format&&"origin"!==e.format&&t.push("format/".concat(e.format)),void 0!==e.quality){var o=Math.max(1,Math.min(100,e.quality));t.push("quality/".concat(o))}return t.join("/")},e.prototype.extractPathFromFileId=function(e){var t=e.replace(/^cloud:\/\//,"").split("/");return t.length<2?e:t.slice(1).join("/")},e.prototype.extractBucketFromFileId=function(e){var t=e.replace(/^cloud:\/\//,"").split("/");if(t.length<1)return"";var n=t[0],r=n.indexOf(".");return-1===r?n:n.substring(r+1)},e}();t.ClassicStorageFileApi=d},502:function(e,t,n){var r=this&&this.__assign||function(){return r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},r.apply(this,arguments)},o=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))(function(o,i){function s(e){try{c(r.next(e))}catch(e){i(e)}}function a(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(s,a)}c((r=r.apply(e,t||[])).next())})},i=this&&this.__generator||function(e,t){var n,r,o,i,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function a(a){return function(c){return function(a){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,a[0]&&(s=0)),s;)try{if(n=1,r&&(o=2&a[0]?r.return:a[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,a[1])).done)return o;switch(r=0,o&&(a=[2&a[0],o.value]),a[0]){case 0:case 1:o=a;break;case 4:return s.label++,{value:a[1],done:!1};case 5:s.label++,r=a[1],a=[0];continue;case 7:a=s.ops.pop(),s.trys.pop();continue;default:if(!((o=(o=s.trys).length>0&&o[o.length-1])||6!==a[0]&&2!==a[0])){s=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]<o[3])){s.label=a[1];break}if(6===a[0]&&s.label<o[1]){s.label=o[1],o=a;break}if(o&&s.label<o[2]){s.label=o[2],s.ops.push(a);break}o[2]&&s.ops.pop(),s.trys.pop();continue}a=t.call(e,s)}catch(e){a=[6,e],r=0}finally{n=o=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,c])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.StorageFileApi=void 0;var s=n(957),a=n(90),c=n(98),u=n(656),l="3600",d=function(){function e(e,t,n){void 0===n&&(n=!1),this.headers={},this.http=e,this.bucketId=t,this.shouldThrowOnError=n}return e.prototype.throwOnError=function(){return this.shouldThrowOnError=!0,this},e.prototype.setHeader=function(e,t){var n;if("string"!=typeof e||""===e.trim())throw new s.StorageError("setHeader requires a non-empty header name");if(/[\r\n]/.test(e)||"string"==typeof t&&/[\r\n]/.test(t))throw new s.StorageError("setHeader does not allow CR/LF characters in header name or value");return this.headers=r(r({},this.headers),((n={})[e]=String(t),n)),this},e.prototype.upload=function(e,t,n){return o(this,void 0,Promise,function(){return i(this,function(r){return[2,this.uploadOrUpdate("POST",e,t,n)]})})},e.prototype.update=function(e,t,n){return o(this,void 0,Promise,function(){return i(this,function(r){return[2,this.uploadOrUpdate("PUT",e,t,n)]})})},e.prototype.download=function(e,t,n){return new u.DownloadBuilder({http:this.http,bucketId:this.bucketId,cleanName:this.cleanPath(e),options:t,parameters:n,headers:this.headers,shouldThrowOnError:this.shouldThrowOnError})},e.prototype.list=function(e,t,n){return o(this,void 0,Promise,function(){var r=this;return i(this,function(s){return[2,(0,c.handleOperation)(function(){return o(r,void 0,void 0,function(){var r;return i(this,function(o){return r={prefix:e||""},void 0!==(null==t?void 0:t.limit)&&(r.limit=t.limit),void 0!==(null==t?void 0:t.cursor)&&(r.cursor=t.cursor),void 0!==(null==t?void 0:t.withDelimiter)&&(r.with_delimiter=t.withDelimiter),void 0!==(null==t?void 0:t.sortBy)&&(r.sortBy=t.sortBy),[2,this.send({method:"POST",path:"/object/list/".concat(this.bucketId),json:r,signal:null==n?void 0:n.signal,cache:null==n?void 0:n.cache})]})})},this.shouldThrowOnError)]})})},e.prototype.remove=function(e){return o(this,void 0,Promise,function(){var t=this;return i(this,function(n){return[2,(0,c.handleOperation)(function(){return o(t,void 0,void 0,function(){var t,n,r,o,s,a=this;return i(this,function(i){switch(i.label){case 0:t=e.map(function(e){return a.cleanPath(e)}),n=[],r=0,i.label=1;case 1:return r<t.length?(o=t.slice(r,r+100),[4,this.send({method:"DELETE",path:"/object/".concat(this.bucketId),json:{prefixes:o}})]):[3,4];case 2:s=i.sent(),Array.isArray(s)&&n.push.apply(n,s),i.label=3;case 3:return r+=100,[3,1];case 4:return[2,n]}})})},this.shouldThrowOnError)]})})},e.prototype.copy=function(e,t,n){return o(this,void 0,Promise,function(){var r=this;return i(this,function(s){return[2,(0,c.handleOperation)(function(){return o(r,void 0,void 0,function(){var r;return i(this,function(o){switch(o.label){case 0:return r=this.buildCopyMoveHeaders(n),[4,this.send({method:"POST",path:"/object/copy",json:{bucketId:this.bucketId,sourceKey:this.cleanPath(e),destinationKey:this.cleanPath(t),destinationBucket:null==n?void 0:n.destinationBucket,copyMetadata:null==n?void 0:n.copyMetadata,metadata:null==n?void 0:n.metadata},headers:r})];case 1:return[2,{path:o.sent().Key}]}})})},this.shouldThrowOnError)]})})},e.prototype.move=function(e,t,n){return o(this,void 0,Promise,function(){var r=this;return i(this,function(s){return[2,(0,c.handleOperation)(function(){return o(r,void 0,void 0,function(){return i(this,function(r){switch(r.label){case 0:return[4,this.send({method:"POST",path:"/object/move",json:{bucketId:this.bucketId,sourceKey:this.cleanPath(e),destinationKey:this.cleanPath(t),destinationBucket:null==n?void 0:n.destinationBucket}})];case 1:return[2,{message:r.sent().message||"Successfully moved"}]}})})},this.shouldThrowOnError)]})})},e.prototype.info=function(e){return o(this,void 0,Promise,function(){var t=this;return i(this,function(n){return[2,(0,c.handleOperation)(function(){return o(t,void 0,void 0,function(){var t,n;return i(this,function(r){switch(r.label){case 0:return t=this.cleanPath(e),[4,this.send({method:"GET",path:"/object/info/".concat(this.bucketId,"/").concat(this.encodePath(t))})];case 1:return[2,{id:(n=r.sent()).id,name:n.name,version:n.version,bucketId:n.bucket_id,size:n.size,contentType:n.content_type,cacheControl:n.cache_control,etag:n.etag,metadata:n.metadata,lastModified:n.last_modified,createdAt:n.created_at}]}})})},this.shouldThrowOnError)]})})},e.prototype.exists=function(e){return o(this,void 0,Promise,function(){var t,n,r;return i(this,function(o){switch(o.label){case 0:return o.trys.push([0,2,,3]),t=this.cleanPath(e),[4,this.send({method:"GET",path:"/object/info/".concat(this.bucketId,"/").concat(this.encodePath(t))})];case 1:return o.sent(),[2,{data:!0,error:null}];case 2:if(n=o.sent(),void 0!==(r=null==n?void 0:n.status)&&[400,404].includes(Number(r)))return[2,{data:!1,error:null}];if(this.shouldThrowOnError)throw n;return[2,{data:null,error:n instanceof s.StorageError?n:new s.StorageError((null==n?void 0:n.message)||String(n))}];case 3:return[2]}})})},e.prototype.createSignedUrl=function(e,t,n){return o(this,void 0,Promise,function(){var r=this;return i(this,function(s){return[2,(0,c.handleOperation)(function(){return o(r,void 0,void 0,function(){var r,o,s;return i(this,function(i){switch(i.label){case 0:return r=this.cleanPath(e),[4,this.send({method:"POST",path:"/object/sign/".concat(this.bucketId,"/").concat(this.encodePath(r)),json:{expiresIn:t}})];case 1:return o=i.sent(),s=o.fullSignedURL||this.http.toFullUrl(o.signedURL||""),[2,{fullSignedURL:this.appendUrlOptions(s,n)}]}})})},this.shouldThrowOnError)]})})},e.prototype.createSignedUrls=function(e,t,n){return o(this,void 0,Promise,function(){var r=this;return i(this,function(s){return[2,(0,c.handleOperation)(function(){return o(r,void 0,void 0,function(){var r,o,s,a,c=this;return i(this,function(i){switch(i.label){case 0:r=e.map(function(e){return c.cleanPath(e)}),o=[],s=0,i.label=1;case 1:return s<r.length?(a=r.slice(s,s+500),[4,this.send({method:"POST",path:"/object/sign/".concat(this.bucketId),json:{expiresIn:t,paths:a}})]):[3,4];case 2:i.sent().forEach(function(e){var t,r=e.fullSignedURL||(e.signedURL?c.http.toFullUrl(e.signedURL):null);o.push({path:e.path,fullSignedURL:r?c.appendUrlOptions(r,n):null,error:null!==(t=e.error)&&void 0!==t?t:null})}),i.label=3;case 3:return s+=500,[3,1];case 4:return[2,o]}})})},this.shouldThrowOnError)]})})},e.prototype.createSignedUploadUrl=function(e,t){return o(this,void 0,Promise,function(){var n=this;return i(this,function(r){return[2,(0,c.handleOperation)(function(){return o(n,void 0,void 0,function(){var n,r,o;return i(this,function(i){switch(i.label){case 0:return n=this.cleanPath(e),r={},(null==t?void 0:t.upsert)&&(r["x-upsert"]="true"),[4,this.send({method:"POST",path:"/object/upload/sign/".concat(this.bucketId,"/").concat(this.encodePath(n)),headers:r})];case 1:return[2,{fullSignedURL:(o=i.sent()).fullURL||this.http.toFullUrl(o.url||""),path:n,token:o.token}]}})})},this.shouldThrowOnError)]})})},e.prototype.uploadToSignedUrl=function(e,t,n,r){return o(this,void 0,Promise,function(){var s=this;return i(this,function(a){return[2,(0,c.handleOperation)(function(){return o(s,void 0,void 0,function(){var o,s,a,c,u;return i(this,function(i){switch(i.label){case 0:return o=this.cleanPath(e),s=this.buildUploadBody(n,r),a=s.body,c=s.headers,[4,this.send({method:"PUT",path:"/object/upload/sign/".concat(this.bucketId,"/").concat(this.encodePath(o)),query:{token:t},rawBody:a,headers:c,withCredentials:!1})];case 1:return u=i.sent(),[2,{path:o,fullPath:u.Key}]}})})},this.shouldThrowOnError)]})})},e.prototype.getPublicUrl=function(e,t){var n=this.cleanPath(e),r=this.http.buildUrl("/object/public/".concat(this.bucketId,"/").concat(this.encodePath(n)));return{data:{publicUrl:this.appendUrlOptions(r,t)}}},e.prototype.send=function(e){return this.http.send(r(r({},e),{headers:r(r({},this.headers),e.headers||{})}))},e.prototype.uploadOrUpdate=function(e,t,n,r){return o(this,void 0,Promise,function(){var s=this;return i(this,function(a){return[2,(0,c.handleOperation)(function(){return o(s,void 0,void 0,function(){var o,s,a,c,u;return i(this,function(i){switch(i.label){case 0:return o=this.cleanPath(t),s=this.buildUploadBody(n,r),a=s.body,c=s.headers,"POST"===e&&(c["x-upsert"]=String(Boolean(null==r?void 0:r.upsert))),[4,this.send({method:e,path:"/object/".concat(this.bucketId,"/").concat(this.encodePath(o)),rawBody:a,headers:c})];case 1:return[2,{id:(u=i.sent()).Id,path:o,fullPath:u.Key}]}})})},this.shouldThrowOnError)]})})},e.prototype.cleanPath=function(e){var t=e.replace(/^\/+|\/+$/g,"").replace(/\/+/g,"/");if(t.split("/").some(function(e){return".."===e}))throw new s.StorageError('invalid path: ".." segment is not allowed');return t},e.prototype.encodePath=function(e){return(0,a.encodeObjectName)(e)},e.prototype.buildUploadBody=function(e,t){var n,o,i,s,a,c=r({},(null==t?void 0:t.headers)||{}),u=e,d="undefined"!=typeof FormData&&e instanceof FormData;if("undefined"!=typeof Blob&&e instanceof Blob||d){var h=void 0,p={};if(d){var f=this.extractFromFormData(e);h=f.file,p=f.fields}else h=e;var m=null!==(o=null!==(n=null==t?void 0:t.cacheControl)&&void 0!==n?n:p.cacheControl)&&void 0!==o?o:l,g=null!==(i=null==t?void 0:t.contentType)&&void 0!==i?i:p.contentType,v=void 0!==(null==t?void 0:t.metadata)?JSON.stringify(t.metadata):p.metadata,_=new FormData;void 0!==m&&_.append("cacheControl",String(m)),void 0!==g&&_.append("contentType",g),void 0!==v&&_.append("metadata",v),_.append("",h),u=_}else u=e,m=null!==(s=null==t?void 0:t.cacheControl)&&void 0!==s?s:l,g=null!==(a=null==t?void 0:t.contentType)&&void 0!==a?a:"text/plain;charset=UTF-8",c["cache-control"]="max-age=".concat(m),g&&(c["content-type"]=g),(null==t?void 0:t.metadata)&&(c["x-metadata"]=this.toBase64(JSON.stringify(t.metadata)));return{body:u,headers:c}},e.prototype.extractFromFormData=function(e){var t,n={},r=0,o=[];if(e.forEach(function(e,i){if("undefined"!=typeof Blob&&e instanceof Blob)return t=e,void(r+=1);"cacheControl"!==i&&"contentType"!==i&&"metadata"!==i?o.push(i):n[i]=String(e)}),o.length>0&&console.warn("Ignored unsupported FormData field(s): [".concat(o.join(", "),"]. Only file, cacheControl, contentType and metadata are supported")),0===r||!t)throw new s.StorageError("FormData must contain a file");if(r>1)throw new s.StorageError("FormData must contain exactly one file");return{file:t,fields:n}},e.prototype.buildCopyMoveHeaders=function(e){var t={};return(null==e?void 0:e.upsert)&&(t["x-upsert"]="true"),!1===(null==e?void 0:e.copyMetadata)&&(null==e?void 0:e.metadata)&&(t["x-metadata"]=this.toBase64(JSON.stringify(e.metadata))),t},e.prototype.appendUrlOptions=function(e,t){var n=[];if(void 0!==(null==t?void 0:t.download)){var r=!0===t.download?"":String(t.download);n.push("download=".concat(encodeURIComponent(r)))}if(void 0!==(null==t?void 0:t.cacheNonce)&&n.push("cacheNonce=".concat(encodeURIComponent(String(t.cacheNonce)))),0===n.length)return e;var o=e.includes("?")?"&":"?";return"".concat(e).concat(o).concat(n.join("&"))},e.prototype.toBase64=function(e){return(0,a.toBase64)(e)},e}();t.StorageFileApi=d},957:function(e,t){var n,r=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0}),t.StorageUnknownError=t.StorageApiError=t.isStorageError=t.StorageError=void 0;var o=function(e){function t(t){var n=e.call(this,t)||this;return n.__isStorageError=!0,n.name="StorageError",n}return r(t,e),t}(Error);t.StorageError=o,t.isStorageError=function(e){return"object"==typeof e&&null!==e&&"__isStorageError"in e};var i=function(e){function t(t,n,r){var o=e.call(this,t)||this;return o.name="StorageApiError",o.status=n,o.statusCode=r,o}return r(t,e),t.prototype.toJSON=function(){return{name:this.name,message:this.message,status:this.status,statusCode:this.statusCode}},t}(o);t.StorageApiError=i;var s=function(e){function t(t,n){var r=e.call(this,t)||this;return r.name="StorageUnknownError",r.originalError=n,r}return r(t,e),t}(o);t.StorageUnknownError=s},504:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.assertValidBucketId=t.isValidBucketId=void 0;var r=n(957),o=/[\x00-\x20\x7f/\\?#%]/;t.isValidBucketId=function(e){return"string"==typeof e&&e.length>0&&e.length<=256&&!o.test(e)},t.assertValidBucketId=function(e,t){if("string"!=typeof e||0===e.length)throw new r.StorageError("[storage.".concat(t,"] bucketId is required"));if(e.length>256)throw new r.StorageError("[storage.".concat(t,"] invalid bucketId: length must be 1-").concat(256));var n=o.exec(e);if(n){var i="[storage.".concat(t,'] invalid bucketId "').concat(e,'": ')+"contains forbidden character ".concat(JSON.stringify(n[0]),"; ")+'must not contain whitespace, control chars, "/", "\\", "?", "#" or "%"';throw new r.StorageError(i)}}},563:function(e,t,n){var r=this&&this.__assign||function(){return r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},r.apply(this,arguments)},o=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),s=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&o(t,e,n);return i(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.useDefaultAdapter=t.useAdapters=t.RUNTIME=void 0;var a,c=s(n(92)),u=n(962);!function(e){e.WEB="web",e.WX_MP="wx_mp"}(a=t.RUNTIME||(t.RUNTIME={})),t.useAdapters=function(e,t){for(var n=0,o=(0,u.isArray)(e)?e:[e];n<o.length;n++){var i=o[n],s=i.isMatch,a=i.genAdapter,c=i.runtime;if(s())return{adapter:r({isMatch:s},a(t)),runtime:c}}},t.useDefaultAdapter=function(){return{adapter:r({},c.genAdapter()),runtime:a.WEB}}},92:function(e,t,n){var r,o=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__assign||function(){return i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},i.apply(this,arguments)},s=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))(function(o,i){function s(e){try{c(r.next(e))}catch(e){i(e)}}function a(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(s,a)}c((r=r.apply(e,t||[])).next())})},a=this&&this.__generator||function(e,t){var n,r,o,i,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function a(a){return function(c){return function(a){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,a[0]&&(s=0)),s;)try{if(n=1,r&&(o=2&a[0]?r.return:a[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,a[1])).done)return o;switch(r=0,o&&(a=[2&a[0],o.value]),a[0]){case 0:case 1:o=a;break;case 4:return s.label++,{value:a[1],done:!1};case 5:s.label++,r=a[1],a=[0];continue;case 7:a=s.ops.pop(),s.trys.pop();continue;default:if(!((o=(o=s.trys).length>0&&o[o.length-1])||6!==a[0]&&2!==a[0])){s=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]<o[3])){s.label=a[1];break}if(6===a[0]&&s.label<o[1]){s.label=o[1],o=a;break}if(o&&s.label<o[2]){s.label=o[2],s.ops.push(a);break}o[2]&&s.ops.pop(),s.trys.pop();continue}a=t.call(e,s)}catch(e){a=[6,e],r=0}finally{n=o=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,c])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.WebRequest=t.genAdapter=void 0;var c=n(764),u=n(962),l=n(464),d=function(e){function t(t){var n=e.call(this)||this,r=t.timeout,o=t.timeoutMsg,i=t.restrictedMethods;return n.timeout=r||0,n.timeoutMsg=o||"请求超时",n.restrictedMethods=i||["get","post","upload","download"],n}return o(t,e),t.prototype.get=function(e){return this.request(i(i({},e),{method:"get"}),this.restrictedMethods.includes("get"))},t.prototype.post=function(e){return this.request(i(i({},e),{method:"post"}),this.restrictedMethods.includes("post"))},t.prototype.put=function(e){return this.request(i(i({},e),{method:"put"}))},t.prototype.upload=function(e){var t=e.data,n=e.file,r=e.name,o=e.method,s=e.headers,a=void 0===s?{}:s,c={post:"post",put:"put"}[null==o?void 0:o.toLowerCase()]||"put",u=new FormData;return"post"===c?(Object.keys(t).forEach(function(e){u.append(e,t[e])}),u.append("key",r),u.append("file",n),this.request(i(i({},e),{data:u,method:c}),this.restrictedMethods.includes("upload"))):this.request(i(i({},e),{method:"put",headers:a,body:n}),this.restrictedMethods.includes("upload"))},t.prototype.download=function(e){return s(this,void 0,Promise,function(){var t,n,r,o;return a(this,function(s){switch(s.label){case 0:return s.trys.push([0,2,,3]),[4,this.get(i(i({},e),{headers:{},responseType:"blob"}))];case 1:return t=s.sent().data,n=window.URL.createObjectURL(new Blob([t])),r=decodeURIComponent(new URL(e.url).pathname.split("/").pop()||""),(o=document.createElement("a")).href=n,o.setAttribute("download",r),o.style.display="none",document.body.appendChild(o),o.click(),window.URL.revokeObjectURL(n),document.body.removeChild(o),[3,3];case 2:return s.sent(),[3,3];case 3:return[2,new Promise(function(t){t({statusCode:200,tempFilePath:e.url})})]}})})},t.prototype.fetch=function(e){var t;return s(this,void 0,Promise,function(){var n,r,o,c,u,l,d,h,p,f,m,g,v,_=this;return a(this,function(y){switch(y.label){case 0:return n=new AbortController,r=e.url,o=e.enableAbort,c=void 0!==o&&o,u=e.stream,l=void 0!==u&&u,d=e.signal,h=e.timeout,p=e.shouldThrowOnError,f=void 0===p||p,m=null!=h?h:this.timeout,d&&(d.aborted&&n.abort(),d.addEventListener("abort",function(){return n.abort()})),g=null,c&&m&&(g=setTimeout(function(){console.warn(_.timeoutMsg),n.abort(new Error(_.timeoutMsg))},m)),[4,fetch(r,i(i({},e),{signal:n.signal})).then(function(e){return s(_,void 0,void 0,function(){var t,n,r;return a(this,function(o){switch(o.label){case 0:return clearTimeout(g),f?e.ok?(t=e,[3,3]):[3,1]:[3,4];case 1:return r=(n=Promise).reject,[4,e.json()];case 2:t=r.apply(n,[o.sent()]),o.label=3;case 3:return[2,t];case 4:return[2,e]}})})}).catch(function(e){return clearTimeout(g),Promise.reject(e)})];case 1:return v=y.sent(),[2,{data:l?v.body:(null===(t=v.headers.get("content-type"))||void 0===t?void 0:t.includes("application/json"))?v.json():v.text(),statusCode:v.status,header:v.headers,response:v}]}})})},t.prototype.request=function(e,t){var n=this;void 0===t&&(t=!1);var r=String(e.method).toLowerCase()||"get";return new Promise(function(o){var i=e.url,s=e.headers,a=void 0===s?{}:s,c=e.data,d=e.responseType,h=e.withCredentials,p=e.body,f=e.onUploadProgress,m=(0,u.formatUrl)((0,l.getProtocol)(),i,"get"===r?c:{}),g=new XMLHttpRequest;g.open(r,m),d&&(g.responseType=d);var v,_,y=e.signal;y&&(y.aborted?g.abort():y.addEventListener("abort",function(){return g.abort()},{once:!0})),Object.keys(a).forEach(function(e){g.setRequestHeader(e,a[e])}),f&&g.upload.addEventListener("progress",f),g.onreadystatechange=function(){var e={};if(4===g.readyState){var t=g.getAllResponseHeaders().trim().split(/[\r\n]+/),n={};t.forEach(function(e){var t=e.split(": "),r=t.shift().toLowerCase(),o=t.join(": ");n[r]=o}),e.header=n,e.statusCode=g.status;try{e.data="blob"===d?g.response:JSON.parse(g.responseText)}catch(t){e.data="blob"===d?g.response:g.responseText}clearTimeout(v),o(e)}},t&&n.timeout&&(v=setTimeout(function(){console.warn(n.timeoutMsg),g.abort()},n.timeout)),_=(0,u.isFormData)(c)?c:"application/x-www-form-urlencoded"===a["content-type"]?(0,u.toQueryString)(c):p||(c?JSON.stringify(c):void 0),h&&(g.withCredentials=!0),g.send(_)})},t}(c.AbstractSDKRequest);t.WebRequest=d,t.genAdapter=function(){return{type:"default",root:window,reqClass:d,wsClass:WebSocket,localStorage:localStorage}}},464:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.COMMUNITY_SITE_URL=t.IS_DEBUG_MODE=t.getProtocol=t.setProtocol=t.getSdkName=t.setSdkName=void 0;var n="@cloudbase/js-sdk";t.setSdkName=function(e){n=e},t.getSdkName=function(){return n};var r="https:";t.setProtocol=function(e){r=e},t.getProtocol=function(){return r},t.IS_DEBUG_MODE=!1,t.COMMUNITY_SITE_URL="https://support.qq.com/products/148793"},519:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.ERRORS=void 0,t.ERRORS={INVALID_PARAMS:"INVALID_PARAMS",INVALID_SYNTAX:"INVALID_SYNTAX",INVALID_OPERATION:"INVALID_OPERATION",OPERATION_FAIL:"OPERATION_FAIL",NETWORK_ERROR:"NETWORK_ERROR",UNKOWN_ERROR:"UNKOWN_ERROR"}},778:function(e,t,n){var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),t.OATUH_LOGINTYPE=void 0,o(n(464),t),o(n(519),t),t.OATUH_LOGINTYPE="constants"},517:function(e,t,n){var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))(function(o,i){function s(e){try{c(r.next(e))}catch(e){i(e)}}function a(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(s,a)}c((r=r.apply(e,t||[])).next())})},o=this&&this.__generator||function(e,t){var n,r,o,i,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function a(a){return function(c){return function(a){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,a[0]&&(s=0)),s;)try{if(n=1,r&&(o=2&a[0]?r.return:a[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,a[1])).done)return o;switch(r=0,o&&(a=[2&a[0],o.value]),a[0]){case 0:case 1:o=a;break;case 4:return s.label++,{value:a[1],done:!1};case 5:s.label++,r=a[1],a=[0];continue;case 7:a=s.ops.pop(),s.trys.pop();continue;default:if(!((o=(o=s.trys).length>0&&o[o.length-1])||6!==a[0]&&2!==a[0])){s=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]<o[3])){s.label=a[1];break}if(6===a[0]&&s.label<o[1]){s.label=o[1],o=a;break}if(o&&s.label<o[2]){s.label=o[2],s.ops.push(a);break}o[2]&&s.ops.pop(),s.trys.pop();continue}a=t.call(e,s)}catch(e){a=[6,e],r=0}finally{n=o=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,c])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.catchErrorsDecorator=void 0;var i=n(962),s=n(778),a=!1;"undefined"!=typeof navigator&&navigator.userAgent&&(a=-1!==navigator.userAgent.indexOf("Firefox"));var c=a?/(\.js\/)?__decorate(\$\d+)?<@.*\d$/:/(\/\w+\.js\.)?__decorate(\$\d+)?\s*\(.*\)$/,u=/https?:\/\/.+:\d*\/.*\.js:\d+:\d+/;function l(e){var t=e.err,n=e.className,r=e.methodName,o=e.sourceLink;if(!o)return null;var i,s=t.stack.split("\n"),c=a?/^catchErrorsDecorator\/<\/descriptor.value@.*\d$/:new RegExp("".concat(n,"\\.descriptor.value\\s*\\[as\\s").concat(r,"\\]\\s*\\(.*\\)$")),l=a?/^catchErrorsDecorator\/<\/descriptor.value/:new RegExp("".concat(n,"\\.descriptor.value\\s*\\[as\\s").concat(r,"\\]")),d=s.findIndex(function(e){return c.test(e)});if(-1!==d){var h=s.filter(function(e,t){return t>d});h.unshift(s[d].replace(l,"".concat(n,".").concat(r)).replace(u,o)),(i=new Error).stack="".concat(a?"@debugger":"Error","\n").concat(h.join("\n"))}return i}t.catchErrorsDecorator=function(e){var t=e.mode,n=void 0===t?"async":t,a=e.customInfo,d=void 0===a?{}:a,h=e.title,p=e.messages,f=void 0===p?[]:p;return function(e,t,a){if(s.IS_DEBUG_MODE){var p=d.className||e.constructor.name,m=d.methodName||t,g=a.value,v=function(){var e="",t=(new Error).stack.split("\n"),n=t.findIndex(function(e){return c.test(e)});if(-1!==n){var r=u.exec(t[n+1]||"");e=r?r[0]:""}return e}();a.value="sync"===n?function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=l({err:new Error,className:p,methodName:m,sourceLink:v});try{return g.apply(this,e)}catch(e){var r=e,o=e.message,s=e.error,a=e.error_description,c={title:h||"".concat(p,".").concat(m," failed"),content:[{type:"error",body:e}]};if(o&&/^\{.*\}$/.test(o)){var u=JSON.parse(o);c.subtitle=o,u.code&&(n?(n.code=u.code,n.msg=u.msg):(e.code=u.code,e.message=u.msg),r=n||e,c.content=f.map(function(e){return{type:"info",body:e}}))}throw s&&a&&(c.subtitle=a,n?(n.code=s,n.msg=a):(e.code=s,e.message=a),r=n||e,c.content=f.map(function(e){return{type:"info",body:e}})),(0,i.printGroupLog)(c),r}}:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return r(this,void 0,void 0,function(){var t,n,r,s,a,c,u,d;return o(this,function(o){switch(o.label){case 0:t=l({err:new Error,className:p,methodName:m,sourceLink:v}),o.label=1;case 1:return o.trys.push([1,3,,4]),[4,g.apply(this,e)];case 2:return[2,o.sent()];case 3:throw n=o.sent(),r=n,s=n.message,a=n.error,c=n.error_description,u={title:h||"".concat(p,".").concat(m," failed"),content:[{type:"error",body:n}]},s&&/^\{.*\}$/.test(s)&&(d=JSON.parse(s),u.subtitle=d,d.code&&(t?(t.code=d.code,t.message=d.msg):(n.code=d.code,n.message=d.msg),r=t||n,u.content=f.map(function(e){return{type:"info",body:e}}))),a&&c&&(u.subtitle=c,t?(t.code=a,t.msg=c):(n.code=a,n.message=c),r=t||n,u.content=f.map(function(e){return{type:"info",body:e}})),(0,i.printGroupLog)(u),r;case 4:return[2]}})})}}}}},260:function(e,t,n){var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(517),t)},877:function(e,t,n){var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return o(t,e),t},s=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.langEvent=t.AbortController=t.jwt=t.helpers=t.utils=t.events=t.cache=t.adapters=t.constants=void 0;var a=i(n(778));t.constants=a;var c=i(n(563));t.adapters=c;var u=i(n(865));t.cache=u;var l=i(n(940));t.events=l;var d=i(n(991));t.langEvent=d;var h=i(n(962));t.utils=h;var p=i(n(260));t.helpers=p;var f=s(n(829));t.AbortController=f.default;var m={decode:s(n(107)).default};t.jwt=m},829:function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(){var e=this;this.listeners=[],this.signal={aborted:!1,addEventListener:function(t,n){"abort"===t&&e.listeners.push(n)}}}return e.prototype.abort=function(){this.signal.aborted||(this.signal.aborted=!0,this.listeners.forEach(function(e){return e()}))},e}();t.default=n},865:function(e,t,n){var r,o=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))(function(o,i){function s(e){try{c(r.next(e))}catch(e){i(e)}}function a(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(s,a)}c((r=r.apply(e,t||[])).next())})},s=this&&this.__generator||function(e,t){var n,r,o,i,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function a(a){return function(c){return function(a){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,a[0]&&(s=0)),s;)try{if(n=1,r&&(o=2&a[0]?r.return:a[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,a[1])).done)return o;switch(r=0,o&&(a=[2&a[0],o.value]),a[0]){case 0:case 1:o=a;break;case 4:return s.label++,{value:a[1],done:!1};case 5:s.label++,r=a[1],a=[0];continue;case 7:a=s.ops.pop(),s.trys.pop();continue;default:if(!((o=(o=s.trys).length>0&&o[o.length-1])||6!==a[0]&&2!==a[0])){s=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]<o[3])){s.label=a[1];break}if(6===a[0]&&s.label<o[1]){s.label=o[1],o=a;break}if(o&&s.label<o[2]){s.label=o[2],s.ops.push(a);break}o[2]&&s.ops.pop(),s.trys.pop();continue}a=t.call(e,s)}catch(e){a=[6,e],r=0}finally{n=o=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,c])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.CloudbaseCache=void 0;var a=n(764),c=n(962),u=n(778),l=function(e){function t(t){var n=e.call(this)||this;return n.root=t,t.tcbCacheObject||(t.tcbCacheObject={}),n}return o(t,e),t.prototype.setItem=function(e,t){this.root.tcbCacheObject[e]=t},t.prototype.getItem=function(e){return this.root.tcbCacheObject[e]},t.prototype.removeItem=function(e){delete this.root.tcbCacheObject[e]},t.prototype.clear=function(){delete this.root.tcbCacheObject},t}(a.AbstractStorage),d=function(){function e(e){this.keys={};var t=e.persistence,n=e.platformInfo,r=void 0===n?{}:n,o=e.keys,i=void 0===o?{}:o;this.platformInfo=r,this.storage||(this.persistenceTag=this.platformInfo.adapter.primaryStorage||t,this.storage=function(e,t){switch(e){case"local":default:return t.localStorage?t.localStorage:((0,c.printWarn)(u.ERRORS.INVALID_PARAMS,"localStorage is not supported on current platform"),new l(t.root));case"none":return new l(t.root)}}(this.persistenceTag,this.platformInfo.adapter),this.keys=i)}return Object.defineProperty(e.prototype,"mode",{get:function(){return this.storage.mode||"sync"},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"persistence",{get:function(){return this.persistenceTag},enumerable:!1,configurable:!0}),e.prototype.setStore=function(e,t,n){if("async"!==this.mode){if(this.storage)try{var r={version:n||"localCachev1",content:t};this.storage.setItem(e,JSON.stringify(r))}catch(e){throw new Error(JSON.stringify({code:u.ERRORS.OPERATION_FAIL,msg:"[".concat((0,u.getSdkName)(),"][").concat(u.ERRORS.OPERATION_FAIL,"]setStore failed"),info:e}))}}else(0,c.printWarn)(u.ERRORS.INVALID_OPERATION,"current platform's storage is asynchronous, please use setStoreAsync insteed")},e.prototype.setStoreAsync=function(e,t,n){return i(this,void 0,void 0,function(){var r;return s(this,function(o){switch(o.label){case 0:if(!this.storage)return[2];o.label=1;case 1:return o.trys.push([1,3,,4]),r={version:n||"localCachev1",content:t},[4,this.storage.setItem(e,JSON.stringify(r))];case 2:return o.sent(),[3,4];case 3:return o.sent(),[2];case 4:return[2]}})})},e.prototype.getStore=function(e,t){var n;if("async"!==this.mode){try{if("undefined"!=typeof process&&(null===(n={IS_MP_BUILD:!1,IS_BROWSER_BUILD:!0})||void 0===n?void 0:n.tcb_token))return{IS_MP_BUILD:!1,IS_BROWSER_BUILD:!0}.tcb_token;if(!this.storage)return""}catch(e){return""}t=t||"localCachev1";var r=this.storage.getItem(e);return r&&r.indexOf(t)>=0?JSON.parse(r).content:""}(0,c.printWarn)(u.ERRORS.INVALID_OPERATION,"current platform's storage is asynchronous, please use getStoreAsync insteed")},e.prototype.getStoreAsync=function(e,t){var n;return i(this,void 0,void 0,function(){var r;return s(this,function(o){switch(o.label){case 0:try{if("undefined"!=typeof process&&(null===(n={IS_MP_BUILD:!1,IS_BROWSER_BUILD:!0})||void 0===n?void 0:n.tcb_token))return[2,{IS_MP_BUILD:!1,IS_BROWSER_BUILD:!0}.tcb_token];if(!this.storage)return[2,""]}catch(e){return[2,""]}return t=t||"localCachev1",[4,this.storage.getItem(e)];case 1:return(r=o.sent())&&r.indexOf(t)>=0?[2,JSON.parse(r).content]:[2,""]}})})},e.prototype.removeStore=function(e){"async"!==this.mode?this.storage.removeItem(e):(0,c.printWarn)(u.ERRORS.INVALID_OPERATION,"current platform's storage is asynchronous, please use removeStoreAsync insteed")},e.prototype.removeStoreAsync=function(e){return i(this,void 0,void 0,function(){return s(this,function(t){switch(t.label){case 0:return[4,this.storage.removeItem(e)];case 1:return t.sent(),[2]}})})},e}();t.CloudbaseCache=d},940:function(e,t,n){var r,o=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__spreadArray||function(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))};Object.defineProperty(t,"__esModule",{value:!0}),t.removeEventListener=t.activateEvent=t.addEventListener=t.CloudbaseEventEmitter=t.IErrorEvent=t.CloudbaseEvent=void 0;var s=n(962),a=function(e,t){this.data=t||null,this.name=e};t.CloudbaseEvent=a;var c=function(e){function t(t,n){var r=e.call(this,"error",{error:t,data:n})||this;return r.error=t,r}return o(t,e),t}(a);t.IErrorEvent=c;var u=function(){function e(){this.listeners={}}return e.prototype.on=function(e,t){return function(e,t,n){n[e]=n[e]||[],n[e].push(t)}(e,t,this.listeners),this},e.prototype.off=function(e,t){return function(e,t,n){if(null==n?void 0:n[e]){var r=n[e].indexOf(t);-1!==r&&n[e].splice(r,1)}}(e,t,this.listeners),this},e.prototype.fire=function(e,t){if((0,s.isInstanceOf)(e,c))return console.error(e.error),this;var n=(0,s.isString)(e)?new a(e,t||{}):e,r=n.name;if(this.listens(r)){n.target=this;for(var o=0,u=this.listeners[r]?i([],this.listeners[r],!0):[];o<u.length;o++)u[o].call(this,n)}return this},e.prototype.listens=function(e){return this.listeners[e]&&this.listeners[e].length>0},e}();t.CloudbaseEventEmitter=u;var l=new u;t.addEventListener=function(e,t){l.on(e,t)},t.activateEvent=function(e,t){void 0===t&&(t={}),l.fire(e,t)},t.removeEventListener=function(e,t){l.off(e,t)}},991:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.LANG_CHANGE_EVENT=t.bus=void 0;var r=n(940);t.bus=new r.CloudbaseEventEmitter,t.LANG_CHANGE_EVENT="lang_change"},962:function(e,t,n){var r,o=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__assign||function(){return i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},i.apply(this,arguments)},s=this&&this.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};Object.defineProperty(t,"__esModule",{value:!0}),t.parseCaptcha=t.parseQueryString=t.transformPhone=t.sleep=t.printGroupLog=t.errorToResult=t.promoteGatewayError=t.maybeThrow=t.resolveThrow=t.createCloudbaseError=t.CloudbaseError=t.throwError=t.printInfo=t.printError=t.printWarn=t.execCallback=t.createPromiseCallback=t.removeParam=t.getHash=t.getQuery=t.toQueryString=t.formatUrl=t.generateRequestId=t.genSeqId=t.isFormData=t.isInstanceOf=t.isNull=t.isPalinObject=t.isUndefined=t.isString=t.isArray=void 0;var a=n(778);t.isArray=function(e){return"[object Array]"===Object.prototype.toString.call(e)},t.isString=function(e){return"string"==typeof e},t.isUndefined=function(e){return void 0===e},t.isPalinObject=function(e){return"[object Object]"===Object.prototype.toString.call(e)},t.isNull=function(e){return"[object Null]"===Object.prototype.toString.call(e)},t.isInstanceOf=function(e,t){return e instanceof t},t.isFormData=function(e){return"[object FormData]"===Object.prototype.toString.call(e)},t.genSeqId=function(){return Math.random().toString(16).slice(2)},t.generateRequestId=function(){var e=(new Date).getTime(),t=(null===Date||void 0===Date?void 0:Date.now)&&1e3*Date.now()||0;return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(n){var r=16*Math.random();return e>0?(r=(e+r)%16|0,e=Math.floor(e/16)):(r=(t+r)%16|0,t=Math.floor(t/16)),("x"===n?r:7&r|8).toString(16)})},t.formatUrl=function(e,t,n){void 0===n&&(n={});var r=/\?/.test(t),o="";return Object.keys(n).forEach(function(e){""===o?!r&&(t+="?"):o+="&",o+="".concat(e,"=").concat(encodeURIComponent(n[e]))}),/^http(s)?:\/\//.test(t+=o)?t:"".concat(e).concat(t)},t.toQueryString=function(e){void 0===e&&(e={});var t=[];return Object.keys(e).forEach(function(n){t.push("".concat(n,"=").concat(encodeURIComponent(e[n])))}),t.join("&")},t.getQuery=function(e,t){if("undefined"==typeof window)return!1;var n=t||decodeURIComponent(window.location.search),r=new RegExp("(^|&)".concat(e,"=([^&]*)(&|$)")),o=n.substr(n.indexOf("?")+1).match(r);return null!=o?o[2]:""},t.getHash=function(e){if("undefined"==typeof window)return"";var t=window.location.hash.match(new RegExp("[#?&/]".concat(e,"=([^&#]*)")));return t?t[1]:""},t.removeParam=function(e,t){var n=t.split("?")[0],r=[],o=-1!==t.indexOf("?")?t.split("?")[1]:"";if(""!==o){for(var i=(r=o.split("&")).length-1;i>=0;i-=1)r[i].split("=")[0]===e&&r.splice(i,1);n="".concat(n,"?").concat(r.join("&"))}return n},t.createPromiseCallback=function(){var e={};if(!Promise){(e=function(){}).promise={};var t=function(){throw new Error('Your Node runtime does support ES6 Promises. Set "global.Promise" to your preferred implementation of promises.')};return Object.defineProperty(e.promise,"then",{get:t}),Object.defineProperty(e.promise,"catch",{get:t}),e}var n=new Promise(function(t,n){e=function(e,r){return e?n(e):t(r)}});return e.promise=n,e},t.execCallback=function(e,t,n){if(void 0===n&&(n=null),e&&"function"==typeof e)return e(t,n);if(t)throw t;return n},t.printWarn=function(e,t){console.warn("[".concat((0,a.getSdkName)(),"][").concat(e,"]:").concat(t))},t.printError=function(e,t){console.error({code:e,msg:"[".concat((0,a.getSdkName)(),"][").concat(e,"]:").concat(t)})},t.printInfo=function(e,t){console.log("[".concat((0,a.getSdkName)(),"][").concat(e,"]:").concat(t))},t.throwError=function(e,t){var n=new Error(JSON.stringify({code:e,msg:"[".concat((0,a.getSdkName)(),"][").concat(e,"]:").concat(t)}));throw n.code=e,n};var c=function(e){function t(t){var n=e.call(this,t.msg||t.message||"")||this;return n.code=t.code||"",n.requestId=t.requestId||"",Object.defineProperty(n,"message",{value:t.msg||t.message||"",enumerable:!0,writable:!0,configurable:!0}),n}return o(t,e),t}(Error);t.CloudbaseError=c;var u=function(e){return new c(e)};function l(e,t){return(t||u)(e)}function d(e){return!e||"boolean"!=typeof e.throw||e.throw}t.createCloudbaseError=l,t.resolveThrow=d,t.maybeThrow=function(e,t){if(d(e))throw l(t,null==e?void 0:e.errorFactory);return i({code:t.code,message:t.msg},t.requestId?{requestId:t.requestId}:{})},t.promoteGatewayError=function(e){if(e&&"object"==typeof e&&e.data&&"object"==typeof e.data){var t=e.data,n=t.code,r=t.message;if(!e.code&&n||!e.message&&r)return i(i(i({},e),!e.code&&n?{code:n}:{}),!e.message&&r?{message:r}:{})}return e},t.errorToResult=function(e){if(e instanceof Error&&"string"==typeof e.message)try{var t=JSON.parse(e.message);if(t&&"string"==typeof t.code)return{code:t.code,message:t.msg||t.message||"",requestId:t.requestId}}catch(e){}return e&&"string"==typeof e.code?{code:e.code,message:e.message||"",requestId:e.requestId}:{code:"UNKNOWN_ERROR",message:String((null==e?void 0:e.message)||e||"")}},t.printGroupLog=function(e){var t,n=e.title,r=e.subtitle,o=void 0===r?"":r,i=e.content,s=void 0===i?[]:i,a=e.printTrace,c=void 0!==a&&a,u=e.collapsed;void 0!==u&&u?(console.groupCollapsed||console.error)(n,o):(console.group||console.error)(n,o);for(var l=0,d=s;l<d.length;l++){var h=d[l],p=h.type,f=h.body;switch(p){case"info":console.log(f);break;case"warn":console.warn(f);break;case"error":console.error(f)}}c&&(console.trace||console.log)("stack trace:"),null===(t=console.groupEnd)||void 0===t||t.call(console)},t.sleep=function(e){return void 0===e&&(e=0),new Promise(function(t){return setTimeout(t,e)})},t.transformPhone=function(e){return"+86".concat(e)},t.parseQueryString=function(e){e=e.replace(/^\?/,"");var t={};return e.split("&").forEach(function(e){var n=e.split("="),r=n[0],o=n[1];r=decodeURIComponent(r),o=decodeURIComponent(o),r&&(t[r]?Array.isArray(t[r])?t[r].push(o):t[r]=[t[r],o]:t[r]=o)}),t},t.parseCaptcha=function(e){var n={},r=e.match(/^(data:.*?)(\?[^#\s]*)?$/);if(r){e=r[1];var o=r[2];o&&(n=(0,t.parseQueryString)(o))}var i=n.token,a=s(n,["token"]);return/^data:/.test(e)&&!i?{error:"invalid_argument",error_description:"invalid captcha data: ".concat(e)}:i?{state:a.state,token:i,captchaData:e}:{error:"unimplemented",error_description:"need to impl captcha data"}}},388:function(e){e.exports={}},764:function(e){e.exports=n(1553)},107:function(e){e.exports=n(560)}},r={};function o(e){var n=r[e];if(void 0!==n)return n.exports;var i=r[e]={exports:{}};return t[e].call(i.exports,i,i.exports,o),i.exports}var i={};!function(){var e=i;Object.defineProperty(e,"__esModule",{value:!0}),e.registerStorage=void 0;var t=o(456);e.registerStorage=t.registerStorage}(),e.exports=i}()},3027:function(e){"use strict";function t(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function n(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,s,a=[],c=!0,u=!1;try{if(i=(n=n.call(e)).next,0===t);else for(;!(c=(r=i.call(n)).done)&&(a.push(r.value),a.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=n.return&&(s=n.return(),Object(s)!==s))return}finally{if(u)throw o}}return a}}(e,n)||function(e,n){if(e){if("string"==typeof e)return t(e,n);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?t(e,n):void 0}}(e,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}const r=Object.entries,o=Object.setPrototypeOf,i=Object.isFrozen,s=Object.getPrototypeOf,a=Object.getOwnPropertyDescriptor;let c=Object.freeze,u=Object.seal,l=Object.create,d="undefined"!=typeof Reflect&&Reflect,h=d.apply,p=d.construct;c||(c=function(e){return e}),u||(u=function(e){return e}),h||(h=function(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];return e.apply(t,r)}),p||(p=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return new e(...n)});const f=L(Array.prototype.forEach),m=L(Array.prototype.lastIndexOf),g=L(Array.prototype.pop),v=L(Array.prototype.push),_=L(Array.prototype.splice),y=Array.isArray,b=L(String.prototype.toLowerCase),w=L(String.prototype.toString),E=L(String.prototype.match),I=L(String.prototype.replace),S=L(String.prototype.indexOf),A=L(String.prototype.trim),O=L(Number.prototype.toString),T=L(Boolean.prototype.toString),C="undefined"==typeof BigInt?null:L(BigInt.prototype.toString),k="undefined"==typeof Symbol?null:L(Symbol.prototype.toString),P=L(Object.prototype.hasOwnProperty),N=L(Object.prototype.toString),R=L(RegExp.prototype.test),M=(x=TypeError,function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return p(x,t)});var x;function L(e){return function(t){t instanceof RegExp&&(t.lastIndex=0);for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return h(e,t,r)}}function D(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:b;if(o&&o(e,null),!y(t))return e;let r=t.length;for(;r--;){let o=t[r];if("string"==typeof o){const e=n(o);e!==o&&(i(t)||(t[r]=e),o=e)}e[o]=!0}return e}function U(e){for(let t=0;t<e.length;t++)P(e,t)||(e[t]=null);return e}function j(e){const t=l(null);for(const i of r(e)){var o=n(i,2);const r=o[0],s=o[1];P(e,r)&&(y(s)?t[r]=U(s):s&&"object"==typeof s&&s.constructor===Object?t[r]=j(s):t[r]=s)}return t}function F(e,t){for(;null!==e;){const n=a(e,t);if(n){if(n.get)return L(n.get);if("function"==typeof n.value)return L(n.value)}e=s(e)}return function(){return null}}const $=c(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),G=c(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","enterkeyhint","exportparts","filter","font","g","glyph","glyphref","hkern","image","inputmode","line","lineargradient","marker","mask","metadata","mpath","part","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),B=c(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),q=c(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),H=c(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),z=c(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),W=c(["#text"]),V=c(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","command","commandfor","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns"]),K=c(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dominant-baseline","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","mask-type","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","pointer-events","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-orientation","text-rendering","textlength","type","u1","u2","unicode","values","vector-effect","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),Y=c(["accent","accentunder","align","bevelled","close","columnalign","columnlines","columnspacing","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lquote","lspace","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),Q=c(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),X=u(/{{[\w\W]*|^[\w\W]*}}/g),J=u(/<%[\w\W]*|^[\w\W]*%>/g),Z=u(/\${[\w\W]*/g),ee=u(/^data-[\-\w.\u00B7-\uFFFF]+$/),te=u(/^aria-[\-\w]+$/),ne=u(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),re=u(/^(?:\w+script|data):/i),oe=u(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),ie=u(/^html$/i),se=u(/^[a-z][.\w]*(-[.\w]+)+$/i),ae=u(/<[/\w!]/g),ce=u(/<[/\w]/g),ue=u(/<\/no(script|embed|frames)/i),le=u(/\/>/i),de=1,he=3,pe=7,fe=8,me=9,ge=11,ve=["style","script","xmp","iframe","noembed","noframes","plaintext","noscript"],_e=c(D({},ve)),ye=function(){const e={};return f(ve,t=>{e[t]=u(new RegExp("</"+t+"(?=[\\t\\n\\f\\r />])","i"))}),c(e)}(),be=function(){return"undefined"==typeof window?null:window},we=function(e,t,n,r){return P(e,t)&&y(e[t])?D(r.base?j(r.base):{},e[t],r.transform):n},Ee=function(e,t,n){const r=P(e,t)?e[t]:void 0;return r&&"object"==typeof r?j(r):n()};var Ie=function e(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:be();const n=t=>e(t);if(n.version="3.4.14",n.removed=[],!t||!t.document||t.document.nodeType!==me||!t.Element)return n.isSupported=!1,n;let o=t.document;const i=o,s=i.currentScript;t.DocumentFragment;const a=t.HTMLTemplateElement,d=t.Node,h=t.Element,p=t.NodeFilter,x=t.NamedNodeMap;void 0===x&&(t.NamedNodeMap||t.MozNamedAttrMap),t.HTMLFormElement;const L=t.DOMParser,U=t.trustedTypes,ve=h.prototype,Ie=F(ve,"cloneNode"),Se=F(ve,"remove"),Ae=F(ve,"nextSibling"),Oe=F(ve,"childNodes"),Te=F(ve,"parentNode"),Ce=F(ve,"shadowRoot"),ke=F(ve,"attributes"),Pe=d&&d.prototype?F(d.prototype,"nodeType"):null,Ne=d&&d.prototype?F(d.prototype,"nodeName"):null,Re=d&&d.prototype?F(d.prototype,"ownerDocument"):null,Me=function(e){return Pe?Pe(e):e.nodeType},xe=function(e){return Ne?Ne(e):e.nodeName};if("function"==typeof a){const e=o.createElement("template");e.content&&e.content.ownerDocument&&(o=e.content.ownerDocument)}let Le,De,Ue="",je=!1,Fe=0;const $e=function(){if(Fe>0)throw M('A configured TRUSTED_TYPES_POLICY callback (createHTML or createScriptURL) must not call DOMPurify.sanitize, as that causes infinite recursion. Do not pass a policy whose callbacks wrap DOMPurify as TRUSTED_TYPES_POLICY; see the "DOMPurify and Trusted Types" section of the README.')},Ge=function(e){$e(),Fe++;try{return Le.createHTML(e)}finally{Fe--}},Be=function(){return je||(De=function(e,t){if("object"!=typeof e||"function"!=typeof e.createPolicy)return null;let n=null;const r="data-tt-policy-suffix";t&&t.hasAttribute(r)&&(n=t.getAttribute(r));const o="dompurify"+(n?"#"+n:"");try{return e.createPolicy(o,{createHTML(e){return e},createScriptURL(e){return e}})}catch(e){return console.warn("TrustedTypes policy "+o+" could not be created."),null}}(U,s),je=!0),De},qe=o,He=qe.implementation,ze=qe.createNodeIterator,We=qe.createDocumentFragment,Ve=qe.getElementsByTagName,Ke=i.importNode;let Ye={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]};n.isSupported="function"==typeof r&&"function"==typeof Te&&He&&void 0!==He.createHTMLDocument;const Qe=X,Xe=J,Je=Z,Ze=ee,et=te,tt=re,nt=oe,rt=se;let ot=ne,it=null;const st=D({},[...$,...G,...B,...H,...W]);let at=null;const ct=D({},[...V,...K,...Y,...Q]);let ut=Object.seal(l(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),lt=null,dt=null;const ht=Object.seal(l(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let pt=!0,ft=!0,mt=!1,gt=!0,vt=!1,_t=!0,yt=!1,bt=!1,wt=null,Et=null,It=!1,St=!1,At=!1,Ot=!1,Tt=!0,Ct=!1;const kt="user-content-";let Pt=!0,Nt=!1,Rt={},Mt=null;const xt=D({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","selectedcontent","style","svg","template","thead","title","video","xmp"]);let Lt=null;const Dt=D({},["audio","video","img","source","image","track"]);let Ut=null;const jt=D({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Ft="http://www.w3.org/1998/Math/MathML",$t="http://www.w3.org/2000/svg",Gt="http://www.w3.org/1999/xhtml";let Bt=Gt,qt=!1,Ht=null;const zt=D({},[Ft,$t,Gt],w),Wt=c(["mi","mo","mn","ms","mtext"]);let Vt=D({},Wt);const Kt=c(["annotation-xml"]);let Yt=D({},Kt);const Qt=D({},["title","style","font","a","script"]);let Xt=null;const Jt=["application/xhtml+xml","text/html"];let Zt=null,en=null;const tn=o.createElement("form"),nn=function(e){return e instanceof RegExp||e instanceof Function},rn=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(en&&en===e)return;e&&"object"==typeof e||(e={}),e=j(e),Xt=-1===Jt.indexOf(e.PARSER_MEDIA_TYPE)?"text/html":e.PARSER_MEDIA_TYPE,Zt="application/xhtml+xml"===Xt?w:b,it=we(e,"ALLOWED_TAGS",st,{transform:Zt}),at=we(e,"ALLOWED_ATTR",ct,{transform:Zt}),Ht=we(e,"ALLOWED_NAMESPACES",zt,{transform:w}),Ut=we(e,"ADD_URI_SAFE_ATTR",jt,{transform:Zt,base:jt}),Lt=we(e,"ADD_DATA_URI_TAGS",Dt,{transform:Zt,base:Dt}),Mt=we(e,"FORBID_CONTENTS",xt,{transform:Zt}),lt=we(e,"FORBID_TAGS",j({}),{transform:Zt}),dt=we(e,"FORBID_ATTR",j({}),{transform:Zt}),Rt=!!P(e,"USE_PROFILES")&&(e.USE_PROFILES&&"object"==typeof e.USE_PROFILES?j(e.USE_PROFILES):e.USE_PROFILES),pt=!1!==e.ALLOW_ARIA_ATTR,ft=!1!==e.ALLOW_DATA_ATTR,mt=e.ALLOW_UNKNOWN_PROTOCOLS||!1,gt=!1!==e.ALLOW_SELF_CLOSE_IN_ATTR,vt=e.SAFE_FOR_TEMPLATES||!1,_t=!1!==e.SAFE_FOR_XML,yt=e.WHOLE_DOCUMENT||!1,St=e.RETURN_DOM||!1,At=e.RETURN_DOM_FRAGMENT||!1,Ot=e.RETURN_TRUSTED_TYPE||!1,It=e.FORCE_BODY||!1,Tt=!1!==e.SANITIZE_DOM,Ct=e.SANITIZE_NAMED_PROPS||!1,Pt=!1!==e.KEEP_CONTENT,Nt=e.IN_PLACE||!1,ot=function(e){try{return R(e,""),!0}catch(e){return!1}}(e.ALLOWED_URI_REGEXP)?e.ALLOWED_URI_REGEXP:ne,Bt="string"==typeof e.NAMESPACE?e.NAMESPACE:Gt,Vt=Ee(e,"MATHML_TEXT_INTEGRATION_POINTS",()=>D({},Wt)),Yt=Ee(e,"HTML_INTEGRATION_POINTS",()=>D({},Kt));const t=Ee(e,"CUSTOM_ELEMENT_HANDLING",()=>l(null));if(ut=l(null),P(t,"tagNameCheck")&&nn(t.tagNameCheck)&&(ut.tagNameCheck=t.tagNameCheck),P(t,"attributeNameCheck")&&nn(t.attributeNameCheck)&&(ut.attributeNameCheck=t.attributeNameCheck),P(t,"allowCustomizedBuiltInElements")&&"boolean"==typeof t.allowCustomizedBuiltInElements&&(ut.allowCustomizedBuiltInElements=t.allowCustomizedBuiltInElements),u(ut),vt&&(ft=!1),At&&(St=!0),Rt&&(it=D({},W),at=l(null),!0===Rt.html&&(D(it,$),D(at,V)),!0===Rt.svg&&(D(it,G),D(at,K),D(at,Q)),!0===Rt.svgFilters&&(D(it,B),D(at,K),D(at,Q)),!0===Rt.mathMl&&(D(it,H),D(at,Y),D(at,Q))),ht.tagCheck=null,ht.attributeCheck=null,P(e,"ADD_TAGS")&&("function"==typeof e.ADD_TAGS?ht.tagCheck=e.ADD_TAGS:y(e.ADD_TAGS)&&(it===st&&(it=j(it)),D(it,e.ADD_TAGS,Zt))),P(e,"ADD_ATTR")&&("function"==typeof e.ADD_ATTR?ht.attributeCheck=e.ADD_ATTR:y(e.ADD_ATTR)&&(at===ct&&(at=j(at)),D(at,e.ADD_ATTR,Zt))),P(e,"ADD_FORBID_CONTENTS")&&y(e.ADD_FORBID_CONTENTS)&&(Mt===xt&&(Mt=j(Mt)),D(Mt,e.ADD_FORBID_CONTENTS,Zt)),Pt&&(it["#text"]=!0),yt&&D(it,["html","head","body"]),it.table&&(D(it,["tbody"]),delete lt.tbody),e.TRUSTED_TYPES_POLICY){if("function"!=typeof e.TRUSTED_TYPES_POLICY.createHTML)throw M('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if("function"!=typeof e.TRUSTED_TYPES_POLICY.createScriptURL)throw M('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');const t=Le;Le=e.TRUSTED_TYPES_POLICY;try{Ue=Ge("")}catch(e){throw Le=t,e}}else null===e.TRUSTED_TYPES_POLICY?(Le=void 0,Ue=""):(void 0===Le&&(Le=Be()),Le&&"string"==typeof Ue&&(Ue=Ge("")));c&&c(e),en=e},on=D({},[...G,...B,...q]),sn=D({},[...H,...z]),an=function(e){let t=Te(e);t&&t.tagName||(t={namespaceURI:Bt,tagName:"template"});const n=b(e.tagName),r=b(t.tagName);return!!Ht[e.namespaceURI]&&(e.namespaceURI===$t?function(e,t,n){return t.namespaceURI===Gt?"svg"===e:t.namespaceURI===Ft?"svg"===e&&("annotation-xml"===n||Vt[n]):Boolean(on[e])}(n,t,r):e.namespaceURI===Ft?function(e,t,n){return t.namespaceURI===Gt?"math"===e:t.namespaceURI===$t?"math"===e&&Yt[n]:Boolean(sn[e])}(n,t,r):e.namespaceURI===Gt?function(e,t,n){return!(t.namespaceURI===$t&&!Yt[n])&&!(t.namespaceURI===Ft&&!Vt[n])&&!sn[e]&&(Qt[e]||!on[e])}(n,t,r):!("application/xhtml+xml"!==Xt||!Ht[e.namespaceURI]))},cn=function(e){v(n.removed,{element:e});try{Te(e).removeChild(e)}catch(t){if(Se(e),!Te(e))throw M("a node selected for removal could not be detached from its tree and cannot be safely returned; refusing to sanitize in place")}},un=function(e,t,n){try{e.removeAttributeNode(t)}catch(t){try{e.removeAttribute(n)}catch(e){}}},ln=function(e){pn(e);const t=Oe(e);if(t){const e=[];f(t,t=>{v(e,t)}),f(e,e=>{try{Se(e)}catch(e){}})}const n=ke(e);if(n)for(let t=n.length-1;t>=0;--t){const r=n[t],o=r&&r.name;"string"==typeof o&&un(e,r,o)}},dn=function(e,t,r){if(!r)try{r=t.getAttributeNode(e)}catch(e){r=null}v(n.removed,{attribute:r||null,from:t});try{r?t.removeAttributeNode(r):t.removeAttribute(e)}catch(n){try{t.removeAttribute(e)}catch(e){}}if("is"===e)if(St||At)try{cn(t)}catch(e){}else try{t.setAttribute(e,"")}catch(e){}},hn=function(e){const t=ke(e);if(t)for(let n=t.length-1;n>=0;--n){const r=t[n],o=r&&r.name;"string"!=typeof o||at[Zt(o)]||un(e,r,o)}},pn=function(e){const t=[e];for(;t.length>0;){const e=t.pop();Me(e)===de&&hn(e);const n=Oe(e);if(n)for(let e=n.length-1;e>=0;--e)t.push(n[e])}},fn=function(e,t){return!!_t&&("patchsrc"===e||"for"===e&&"label"!==t&&"output"!==t)},mn=function(e){let t=null,n=null;if(It)e="<remove></remove>"+e;else{const t=E(e,/^[\r\n\t ]+/);n=t&&t[0]}"application/xhtml+xml"===Xt&&Bt===Gt&&(e='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+e+"</body></html>");const r=Le?Ge(e):e;if(Bt===Gt)try{t=(new L).parseFromString(r,Xt)}catch(e){}if(!t||!t.documentElement){t=He.createDocument(Bt,"template",null);try{t.documentElement.innerHTML=qt?Ue:r}catch(e){}}const i=t.body||t.documentElement;return e&&n&&i.insertBefore(o.createTextNode(n),i.childNodes[0]||null),Bt===Gt?Ve.call(t,yt?"html":"body")[0]:yt?t.documentElement:i},gn=function(e){const t=Re?Re(e):e.ownerDocument;return ze.call(t||e,e,p.SHOW_ELEMENT|p.SHOW_COMMENT|p.SHOW_TEXT|p.SHOW_PROCESSING_INSTRUCTION|p.SHOW_CDATA_SECTION,null)},vn=function(e){return e=I(e,Qe," "),e=I(e,Xe," "),e=I(e,Je," ")},_n=function(e){var t;e.normalize();const n=Re?Re(e):e.ownerDocument,r=ze.call(n||e,e,p.SHOW_TEXT|p.SHOW_COMMENT|p.SHOW_CDATA_SECTION|p.SHOW_PROCESSING_INSTRUCTION,null);let o=r.nextNode();for(;o;)o.data=vn(o.data),o=r.nextNode();const i=null===(t=e.querySelectorAll)||void 0===t?void 0:t.call(e,"template");i&&f(i,e=>{bn(e.content)&&_n(e.content)})},yn=function(e){const t=Ne?Ne(e):null;return"string"==typeof t&&"form"===Zt(t)&&("string"!=typeof e.nodeName||"string"!=typeof e.textContent||"function"!=typeof e.removeChild||e.attributes!==ke(e)||"function"!=typeof e.removeAttribute||"function"!=typeof e.setAttribute||"string"!=typeof e.namespaceURI||"function"!=typeof e.insertBefore||"function"!=typeof e.hasChildNodes||e.nodeType!==Pe(e)||e.childNodes!==Oe(e))},bn=function(e){if(!Pe||"object"!=typeof e||null===e)return!1;try{return Pe(e)===ge}catch(e){return!1}},wn=function(e){if(!Pe||"object"!=typeof e||null===e)return!1;try{return"number"==typeof Pe(e)}catch(e){return!1}};function En(e,t,r){0!==e.length&&f(e,e=>{e.call(n,t,r,en)})}const In=function(e,t){if(e instanceof RegExp)return R(e,t);if(e instanceof Function){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];return Boolean(e(t,...r))}return!1},Sn=function(e,t,n,r){return 0===e.length?t:t===n||t===r?j(t):t},An=function(e,t){return e!==t&&null===Te(e)&&(Nt&&pn(e),!0)},On=function(e,t){if(En(Ye.beforeSanitizeElements,e,null),An(e,t))return!0;if(yn(e))return cn(e),!0;const r=Zt(xe(e));if(it=Sn(Ye.uponSanitizeElement,it,st,wt),En(Ye.uponSanitizeElement,e,{tagName:r,allowedTags:it}),An(e,t))return!0;if(function(e,t){return!!(_t&&e.hasChildNodes()&&!wn(e.firstElementChild)&&R(ae,e.textContent)&&R(ae,e.innerHTML))||!!(_t&&e.namespaceURI===Gt&&_e[t]&&(wn(e.firstElementChild)||"string"==typeof e.textContent&&R(ye[t],e.textContent)))||e.nodeType===pe||!(!_t||e.nodeType!==fe||!R(ce,e.data))}(e,r))return cn(e),!0;if(lt[r]||!(ht.tagCheck instanceof Function&&ht.tagCheck(r))&&!it[r]){const n=function(e,t,n){if(!lt[t]&&kn(t)&&In(ut.tagNameCheck,t))return!1;if(Pt&&!Mt[t]){const t=Te(e),r=Oe(e);if(r&&t)for(let o=r.length-1;o>=0;--o){const i=e===n?Ie(r[o],!0):r[o];t.insertBefore(i,Ae(e))}}return cn(e),!0}(e,r,t);return!1===n&&En(Ye.afterSanitizeElements,e,null),n}if(Me(e)===de&&!an(e))return cn(e),!0;if(("noscript"===r||"noembed"===r||"noframes"===r)&&R(ue,e.innerHTML))return cn(e),!0;if(vt&&e.nodeType===he){const t=vn(e.textContent);e.textContent!==t&&(v(n.removed,{element:e.cloneNode()}),e.textContent=t)}return En(Ye.afterSanitizeElements,e,null),!1},Tn=function(e,t,n){if(dt[t])return!1;if(fn(t,e))return!1;if(Tt&&("id"===t||"name"===t)&&(n in o||n in tn))return!1;const r=at[t]||ht.attributeCheck instanceof Function&&ht.attributeCheck(t,e);return!(!ft||!R(Ze,t))||!(!pt||!R(et,t))||(r?!(!Ut[t]&&!R(ot,I(n,nt,""))&&("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==S(n,"data:")||!Lt[e])&&(!mt||R(tt,I(n,nt,"")))&&n):kn(e)&&In(ut.tagNameCheck,e)&&In(ut.attributeNameCheck,t,e)||"is"===t&&ut.allowCustomizedBuiltInElements&&In(ut.tagNameCheck,n))},Cn=D({},["annotation-xml","color-profile","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","missing-glyph"]),kn=function(e){return!Cn[b(e)]&&R(rt,e)},Pn=function(e,t,n,r){if(Le&&"object"==typeof U&&"function"==typeof U.getAttributeType&&!n)switch(U.getAttributeType(e,t)){case"TrustedHTML":return Ge(r);case"TrustedScriptURL":return function(e){$e(),Fe++;try{return Le.createScriptURL(e)}finally{Fe--}}(r)}return r},Nn=function(e,t,r,o){try{r?e.setAttributeNS(r,t,o):e.setAttribute(t,o),yn(e)?cn(e):g(n.removed)}catch(n){dn(t,e)}},Rn=function(e){En(Ye.beforeSanitizeAttributes,e,null);const t=e.attributes;if(!t||yn(e))return;at=Sn(Ye.uponSanitizeAttribute,at,ct,Et);const n={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:at,forceKeepAttr:void 0};let r=t.length;const o=Zt(e.nodeName);for(;r--;){const i=t[r],s=i.name,a=i.namespaceURI,c=i.value,u=Zt(s),l=c;let d="value"===s?l:A(l);n.attrName=u,n.attrValue=d,n.keepAttr=!0,n.forceKeepAttr=void 0,En(Ye.uponSanitizeAttribute,e,n),d=n.attrValue,!Ct||"id"!==u&&"name"!==u||0===S(d,kt)||(dn(s,e,i),d=kt+d),_t&&R(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,d)||"attributename"===u&&E(d,"href")?dn(s,e,i):n.forceKeepAttr||(!n.keepAttr||!gt&&R(le,d)?dn(s,e,i):(vt&&(d=vn(d)),Tn(o,u,d)?(d=Pn(o,u,a,d),d!==l&&Nn(e,s,a,d)):dn(s,e,i)))}En(Ye.afterSanitizeAttributes,e,null)},Mn=function(e){let t=null;const n=gn(e);for(En(Ye.beforeSanitizeShadowDOM,e,null);t=n.nextNode();)if(En(Ye.uponSanitizeShadowNode,t,null),On(t,e),Rn(t),bn(t.content)&&Mn(t.content),Me(t)===de){const e=Ce(t);bn(e)&&(xn(e),Mn(e))}En(Ye.afterSanitizeShadowDOM,e,null)},xn=function(e){const t=[{node:e,shadow:null}];for(;t.length>0;){const e=t.pop();if(e.shadow){Mn(e.shadow);continue}const n=e.node,r=Me(n)===de,o=Oe(n);if(o)for(let e=o.length-1;e>=0;--e)t.push({node:o[e],shadow:null});if(r){const e=Ne?Ne(n):null;if("string"==typeof e&&"template"===Zt(e)){const e=n.content;bn(e)&&t.push({node:e,shadow:null})}}if(r){const e=Ce(n);bn(e)&&t.push({node:null,shadow:e},{node:e,shadow:null})}}};return n.sanitize=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=null,o=null,s=null,a=null;if(qt=!e,qt&&(e="\x3c!--\x3e"),"string"!=typeof e&&!wn(e)&&"string"!=typeof(e=function(e){switch(typeof e){case"string":return e;case"number":return O(e);case"boolean":return T(e);case"bigint":return C?C(e):"0";case"symbol":return k?k(e):"Symbol()";case"undefined":default:return N(e);case"function":case"object":{if(null===e)return N(e);const t=e,n=F(t,"toString");if("function"==typeof n){const e=n(t);return"string"==typeof e?e:N(e)}return N(e)}}}(e)))throw M("dirty is not a string, aborting");if(!n.isSupported)return e;bt?(it=wt,at=Et):rn(t),(Ye.uponSanitizeElement.length>0||Ye.uponSanitizeAttribute.length>0)&&(it=j(it)),Ye.uponSanitizeAttribute.length>0&&(at=j(at)),n.removed=[];const c=Nt&&"string"!=typeof e&&wn(e);if(c){!function(e){if(!_t)return;const t=[e];for(;t.length>0;){const e=t.pop(),n=Me(e);if(n===pe||n===fe&&R(ce,e.data)){try{Se(e)}catch(e){}continue}if(n===de){const t=e,n=Zt(xe(e));try{t.hasAttribute&&t.hasAttribute("patchsrc")&&t.removeAttribute("patchsrc"),t.hasAttribute&&t.hasAttribute("for")&&fn("for",n)&&t.removeAttribute("for")}catch(e){}}const r=Oe(e);if(r)for(let e=r.length-1;e>=0;--e)t.push(r[e])}}(e);const t=xe(e);if("string"==typeof t){const n=Zt(t);if(!it[n]||lt[n])throw ln(e),M("root node is forbidden and cannot be sanitized in-place")}if(yn(e))throw ln(e),M("root node is clobbered and cannot be sanitized in-place");try{xn(e)}catch(t){throw ln(e),t}}else if(wn(e))r=mn("\x3c!----\x3e"),o=r.ownerDocument.importNode(e,!0),o.nodeType===de&&"BODY"===o.nodeName||"HTML"===o.nodeName?r=o:r.appendChild(o),xn(o);else{if(!St&&!vt&&!yt&&-1===e.indexOf("<"))return Le&&Ot?Ge(e):e;if(r=mn(e),!r)return St?null:Ot?Ue:""}r&&It&&cn(r.firstChild);const u=c?e:r;try{const e=gn(u);for(;s=e.nextNode();)On(s,u),Rn(s),bn(s.content)&&Mn(s.content)}catch(t){throw c&&(ln(e),f(n.removed,e=>{e.element&&pn(e.element)})),t}if(c)return f(n.removed,e=>{e.element&&pn(e.element)}),vt&&_n(e),e;if(St){if(vt&&_n(r),At)for(a=We.call(r.ownerDocument);r.firstChild;)a.appendChild(r.firstChild);else a=r;return(at.shadowroot||at.shadowrootmode)&&(a=Ke.call(i,a,!0)),a}let l=yt?r.outerHTML:r.innerHTML;return yt&&it["!doctype"]&&r.ownerDocument&&r.ownerDocument.doctype&&r.ownerDocument.doctype.name&&R(ie,r.ownerDocument.doctype.name)&&(l="<!DOCTYPE "+r.ownerDocument.doctype.name+">\n"+l),vt&&(l=vn(l)),Le&&Ot?Ge(l):l},n.setConfig=function(){rn(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),bt=!0,wt=it,Et=at},n.clearConfig=function(){en=null,bt=!1,wt=null,Et=null,Le=De,Ue=""},n.isValidAttribute=function(e,t,n){en||rn({});const r=Zt(e),o=Zt(t);return Tn(r,o,n)},n.addHook=function(e,t){"function"==typeof t&&P(Ye,e)&&v(Ye[e],t)},n.removeHook=function(e,t){if(P(Ye,e)){if(void 0!==t){const n=m(Ye[e],t);return-1===n?void 0:_(Ye[e],n,1)[0]}return g(Ye[e])}},n.removeHooks=function(e){P(Ye,e)&&(Ye[e]=[])},n.removeAllHooks=function(){Ye={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},n}();e.exports=Ie},9379:function(e){"use strict";e.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="/dist/",n(n.s=96)}({0:function(e,t,n){function r(e,t,n,r,o,i,s,a){var c,u="function"==typeof e?e.options:e;if(t&&(u.render=t,u.staticRenderFns=n,u._compiled=!0),r&&(u.functional=!0),i&&(u._scopeId="data-v-"+i),s?(c=function(e){(e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),o&&o.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(s)},u._ssrRegister=c):o&&(c=a?function(){o.call(this,this.$root.$options.shadowRoot)}:o),c)if(u.functional){u._injectStyles=c;var l=u.render;u.render=function(e,t){return c.call(t),l(e,t)}}else{var d=u.beforeCreate;u.beforeCreate=d?[].concat(d,c):[c]}return{exports:e,options:u}}n.d(t,"a",function(){return r})},96:function(e,t,n){n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("button",{staticClass:"el-button",class:[e.type?"el-button--"+e.type:"",e.buttonSize?"el-button--"+e.buttonSize:"",{"is-disabled":e.buttonDisabled,"is-loading":e.loading,"is-plain":e.plain,"is-round":e.round,"is-circle":e.circle}],attrs:{disabled:e.buttonDisabled||e.loading,autofocus:e.autofocus,type:e.nativeType},on:{click:e.handleClick}},[e.loading?n("i",{staticClass:"el-icon-loading"}):e._e(),e.icon&&!e.loading?n("i",{class:e.icon}):e._e(),e.$slots.default?n("span",[e._t("default")],2):e._e()])};r._withStripped=!0;var o={name:"ElButton",inject:{elForm:{default:""},elFormItem:{default:""}},props:{type:{type:String,default:"default"},size:String,icon:{type:String,default:""},nativeType:{type:String,default:"button"},loading:Boolean,disabled:Boolean,plain:Boolean,autofocus:Boolean,round:Boolean,circle:Boolean},computed:{_elFormItemSize:function(){return(this.elFormItem||{}).elFormItemSize},buttonSize:function(){return this.size||this._elFormItemSize||(this.$ELEMENT||{}).size},buttonDisabled:function(){return this.$options.propsData.hasOwnProperty("disabled")?this.disabled:(this.elForm||{}).disabled}},methods:{handleClick:function(e){this.$emit("click",e)}}},i=n(0),s=Object(i.a)(o,r,[],!1,null,null,null);s.options.__file="packages/button/src/button.vue";var a=s.exports;a.install=function(e){e.component(a.name,a)},t.default=a}})},9675:function(e,t,n){"use strict";e.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="/dist/",n(n.s=75)}({0:function(e,t,n){function r(e,t,n,r,o,i,s,a){var c,u="function"==typeof e?e.options:e;if(t&&(u.render=t,u.staticRenderFns=n,u._compiled=!0),r&&(u.functional=!0),i&&(u._scopeId="data-v-"+i),s?(c=function(e){(e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),o&&o.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(s)},u._ssrRegister=c):o&&(c=a?function(){o.call(this,this.$root.$options.shadowRoot)}:o),c)if(u.functional){u._injectStyles=c;var l=u.render;u.render=function(e,t){return c.call(t),l(e,t)}}else{var d=u.beforeCreate;u.beforeCreate=d?[].concat(d,c):[c]}return{exports:e,options:u}}n.d(t,"a",function(){return r})},11:function(e,t){e.exports=n(4840)},21:function(e,t){e.exports=n(5088)},4:function(e,t){e.exports=n(2952)},75:function(e,t,n){n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{class:["textarea"===e.type?"el-textarea":"el-input",e.inputSize?"el-input--"+e.inputSize:"",{"is-disabled":e.inputDisabled,"is-exceed":e.inputExceed,"el-input-group":e.$slots.prepend||e.$slots.append,"el-input-group--append":e.$slots.append,"el-input-group--prepend":e.$slots.prepend,"el-input--prefix":e.$slots.prefix||e.prefixIcon,"el-input--suffix":e.$slots.suffix||e.suffixIcon||e.clearable||e.showPassword}],on:{mouseenter:function(t){e.hovering=!0},mouseleave:function(t){e.hovering=!1}}},["textarea"!==e.type?[e.$slots.prepend?n("div",{staticClass:"el-input-group__prepend"},[e._t("prepend")],2):e._e(),"textarea"!==e.type?n("input",e._b({ref:"input",staticClass:"el-input__inner",attrs:{tabindex:e.tabindex,type:e.showPassword?e.passwordVisible?"text":"password":e.type,disabled:e.inputDisabled,readonly:e.readonly,autocomplete:e.autoComplete||e.autocomplete,"aria-label":e.label},on:{compositionstart:e.handleCompositionStart,compositionupdate:e.handleCompositionUpdate,compositionend:e.handleCompositionEnd,input:e.handleInput,focus:e.handleFocus,blur:e.handleBlur,change:e.handleChange}},"input",e.$attrs,!1)):e._e(),e.$slots.prefix||e.prefixIcon?n("span",{staticClass:"el-input__prefix"},[e._t("prefix"),e.prefixIcon?n("i",{staticClass:"el-input__icon",class:e.prefixIcon}):e._e()],2):e._e(),e.getSuffixVisible()?n("span",{staticClass:"el-input__suffix"},[n("span",{staticClass:"el-input__suffix-inner"},[e.showClear&&e.showPwdVisible&&e.isWordLimitVisible?e._e():[e._t("suffix"),e.suffixIcon?n("i",{staticClass:"el-input__icon",class:e.suffixIcon}):e._e()],e.showClear?n("i",{staticClass:"el-input__icon el-icon-circle-close el-input__clear",on:{mousedown:function(e){e.preventDefault()},click:e.clear}}):e._e(),e.showPwdVisible?n("i",{staticClass:"el-input__icon el-icon-view el-input__clear",on:{click:e.handlePasswordVisible}}):e._e(),e.isWordLimitVisible?n("span",{staticClass:"el-input__count"},[n("span",{staticClass:"el-input__count-inner"},[e._v("\n "+e._s(e.textLength)+"/"+e._s(e.upperLimit)+"\n ")])]):e._e()],2),e.validateState?n("i",{staticClass:"el-input__icon",class:["el-input__validateIcon",e.validateIcon]}):e._e()]):e._e(),e.$slots.append?n("div",{staticClass:"el-input-group__append"},[e._t("append")],2):e._e()]:n("textarea",e._b({ref:"textarea",staticClass:"el-textarea__inner",style:e.textareaStyle,attrs:{tabindex:e.tabindex,disabled:e.inputDisabled,readonly:e.readonly,autocomplete:e.autoComplete||e.autocomplete,"aria-label":e.label},on:{compositionstart:e.handleCompositionStart,compositionupdate:e.handleCompositionUpdate,compositionend:e.handleCompositionEnd,input:e.handleInput,focus:e.handleFocus,blur:e.handleBlur,change:e.handleChange}},"textarea",e.$attrs,!1)),e.isWordLimitVisible&&"textarea"===e.type?n("span",{staticClass:"el-input__count"},[e._v(e._s(e.textLength)+"/"+e._s(e.upperLimit))]):e._e()],2)};r._withStripped=!0;var o=n(4),i=n.n(o),s=n(11),a=n.n(s),c=void 0,u=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing"];function l(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;c||(c=document.createElement("textarea"),document.body.appendChild(c));var r=function(e){var t=window.getComputedStyle(e),n=t.getPropertyValue("box-sizing"),r=parseFloat(t.getPropertyValue("padding-bottom"))+parseFloat(t.getPropertyValue("padding-top")),o=parseFloat(t.getPropertyValue("border-bottom-width"))+parseFloat(t.getPropertyValue("border-top-width"));return{contextStyle:u.map(function(e){return e+":"+t.getPropertyValue(e)}).join(";"),paddingSize:r,borderSize:o,boxSizing:n}}(e),o=r.paddingSize,i=r.borderSize,s=r.boxSizing,a=r.contextStyle;c.setAttribute("style",a+";\n height:0 !important;\n visibility:hidden !important;\n overflow:hidden !important;\n position:absolute !important;\n z-index:-1000 !important;\n top:0 !important;\n right:0 !important\n"),c.value=e.value||e.placeholder||"";var l=c.scrollHeight,d={};"border-box"===s?l+=i:"content-box"===s&&(l-=o),c.value="";var h=c.scrollHeight-o;if(null!==t){var p=h*t;"border-box"===s&&(p=p+o+i),l=Math.max(p,l),d.minHeight=p+"px"}if(null!==n){var f=h*n;"border-box"===s&&(f=f+o+i),l=Math.min(f,l)}return d.height=l+"px",c.parentNode&&c.parentNode.removeChild(c),c=null,d}var d=n(9),h=n.n(d),p=n(21),f={name:"ElInput",componentName:"ElInput",mixins:[i.a,a.a],inheritAttrs:!1,inject:{elForm:{default:""},elFormItem:{default:""}},data:function(){return{textareaCalcStyle:{},hovering:!1,focused:!1,isComposing:!1,passwordVisible:!1}},props:{value:[String,Number],size:String,resize:String,form:String,disabled:Boolean,readonly:Boolean,type:{type:String,default:"text"},autosize:{type:[Boolean,Object],default:!1},autocomplete:{type:String,default:"off"},autoComplete:{type:String,validator:function(e){return!0}},validateEvent:{type:Boolean,default:!0},suffixIcon:String,prefixIcon:String,label:String,clearable:{type:Boolean,default:!1},showPassword:{type:Boolean,default:!1},showWordLimit:{type:Boolean,default:!1},tabindex:String},computed:{_elFormItemSize:function(){return(this.elFormItem||{}).elFormItemSize},validateState:function(){return this.elFormItem?this.elFormItem.validateState:""},needStatusIcon:function(){return!!this.elForm&&this.elForm.statusIcon},validateIcon:function(){return{validating:"el-icon-loading",success:"el-icon-circle-check",error:"el-icon-circle-close"}[this.validateState]},textareaStyle:function(){return h()({},this.textareaCalcStyle,{resize:this.resize})},inputSize:function(){return this.size||this._elFormItemSize||(this.$ELEMENT||{}).size},inputDisabled:function(){return this.disabled||(this.elForm||{}).disabled},nativeInputValue:function(){return null===this.value||void 0===this.value?"":String(this.value)},showClear:function(){return this.clearable&&!this.inputDisabled&&!this.readonly&&this.nativeInputValue&&(this.focused||this.hovering)},showPwdVisible:function(){return this.showPassword&&!this.inputDisabled&&!this.readonly&&(!!this.nativeInputValue||this.focused)},isWordLimitVisible:function(){return this.showWordLimit&&this.$attrs.maxlength&&("text"===this.type||"textarea"===this.type)&&!this.inputDisabled&&!this.readonly&&!this.showPassword},upperLimit:function(){return this.$attrs.maxlength},textLength:function(){return"number"==typeof this.value?String(this.value).length:(this.value||"").length},inputExceed:function(){return this.isWordLimitVisible&&this.textLength>this.upperLimit}},watch:{value:function(e){this.$nextTick(this.resizeTextarea),this.validateEvent&&this.dispatch("ElFormItem","el.form.change",[e])},nativeInputValue:function(){this.setNativeInputValue()},type:function(){var e=this;this.$nextTick(function(){e.setNativeInputValue(),e.resizeTextarea(),e.updateIconOffset()})}},methods:{focus:function(){this.getInput().focus()},blur:function(){this.getInput().blur()},getMigratingConfig:function(){return{props:{icon:"icon is removed, use suffix-icon / prefix-icon instead.","on-icon-click":"on-icon-click is removed."},events:{click:"click is removed."}}},handleBlur:function(e){this.focused=!1,this.$emit("blur",e),this.validateEvent&&this.dispatch("ElFormItem","el.form.blur",[this.value])},select:function(){this.getInput().select()},resizeTextarea:function(){if(!this.$isServer){var e=this.autosize;if("textarea"===this.type)if(e){var t=e.minRows,n=e.maxRows;this.textareaCalcStyle=l(this.$refs.textarea,t,n)}else this.textareaCalcStyle={minHeight:l(this.$refs.textarea).minHeight}}},setNativeInputValue:function(){var e=this.getInput();e&&e.value!==this.nativeInputValue&&(e.value=this.nativeInputValue)},handleFocus:function(e){this.focused=!0,this.$emit("focus",e)},handleCompositionStart:function(e){this.$emit("compositionstart",e),this.isComposing=!0},handleCompositionUpdate:function(e){this.$emit("compositionupdate",e);var t=e.target.value,n=t[t.length-1]||"";this.isComposing=!Object(p.isKorean)(n)},handleCompositionEnd:function(e){this.$emit("compositionend",e),this.isComposing&&(this.isComposing=!1,this.handleInput(e))},handleInput:function(e){this.isComposing||e.target.value!==this.nativeInputValue&&(this.$emit("input",e.target.value),this.$nextTick(this.setNativeInputValue))},handleChange:function(e){this.$emit("change",e.target.value)},calcIconOffset:function(e){var t=[].slice.call(this.$el.querySelectorAll(".el-input__"+e)||[]);if(t.length){for(var n=null,r=0;r<t.length;r++)if(t[r].parentNode===this.$el){n=t[r];break}if(n){var o={suffix:"append",prefix:"prepend"}[e];this.$slots[o]?n.style.transform="translateX("+("suffix"===e?"-":"")+this.$el.querySelector(".el-input-group__"+o).offsetWidth+"px)":n.removeAttribute("style")}}},updateIconOffset:function(){this.calcIconOffset("prefix"),this.calcIconOffset("suffix")},clear:function(){this.$emit("input",""),this.$emit("change",""),this.$emit("clear")},handlePasswordVisible:function(){var e=this;this.passwordVisible=!this.passwordVisible,this.$nextTick(function(){e.focus()})},getInput:function(){return this.$refs.input||this.$refs.textarea},getSuffixVisible:function(){return this.$slots.suffix||this.suffixIcon||this.showClear||this.showPassword||this.isWordLimitVisible||this.validateState&&this.needStatusIcon}},created:function(){this.$on("inputSelect",this.select)},mounted:function(){this.setNativeInputValue(),this.resizeTextarea(),this.updateIconOffset()},updated:function(){this.$nextTick(this.updateIconOffset)}},m=f,g=n(0),v=Object(g.a)(m,r,[],!1,null,null,null);v.options.__file="packages/input/src/input.vue";var _=v.exports;_.install=function(e){e.component(_.name,_)},t.default=_},9:function(e,t){e.exports=n(9)}})},2499:function(e,t,n){"use strict";e.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="/dist/",n(n.s=73)}({0:function(e,t,n){function r(e,t,n,r,o,i,s,a){var c,u="function"==typeof e?e.options:e;if(t&&(u.render=t,u.staticRenderFns=n,u._compiled=!0),r&&(u.functional=!0),i&&(u._scopeId="data-v-"+i),s?(c=function(e){(e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),o&&o.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(s)},u._ssrRegister=c):o&&(c=a?function(){o.call(this,this.$root.$options.shadowRoot)}:o),c)if(u.functional){u._injectStyles=c;var l=u.render;u.render=function(e,t){return c.call(t),l(e,t)}}else{var d=u.beforeCreate;u.beforeCreate=d?[].concat(d,c):[c]}return{exports:e,options:u}}n.d(t,"a",function(){return r})},13:function(e,t){e.exports=n(2336)},2:function(e,t){e.exports=n(1861)},42:function(e,t){e.exports=n(4185)},7:function(e,t){e.exports=n(1058)},73:function(e,t,n){n.r(t);var r=n(7),o=n.n(r),i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("transition",{attrs:{name:"el-loading-fade"},on:{"after-leave":e.handleAfterLeave}},[n("div",{directives:[{name:"show",rawName:"v-show",value:e.visible,expression:"visible"}],staticClass:"el-loading-mask",class:[e.customClass,{"is-fullscreen":e.fullscreen}],style:{backgroundColor:e.background||""}},[n("div",{staticClass:"el-loading-spinner"},[e.spinner?n("i",{class:e.spinner}):n("svg",{staticClass:"circular",attrs:{viewBox:"25 25 50 50"}},[n("circle",{staticClass:"path",attrs:{cx:"50",cy:"50",r:"20",fill:"none"}})]),e.text?n("p",{staticClass:"el-loading-text"},[e._v(e._s(e.text))]):e._e()])])])};i._withStripped=!0;var s={data:function(){return{text:null,spinner:null,background:null,fullscreen:!0,visible:!1,customClass:""}},methods:{handleAfterLeave:function(){this.$emit("after-leave")},setText:function(e){this.text=e}}},a=n(0),c=Object(a.a)(s,i,[],!1,null,null,null);c.options.__file="packages/loading/src/loading.vue";var u=c.exports,l=n(2),d=n(13),h=n(42),p=n.n(h),f=o.a.extend(u),m={install:function(e){if(!e.prototype.$isServer){var t=function(t,r){r.value?e.nextTick(function(){r.modifiers.fullscreen?(t.originalPosition=Object(l.getStyle)(document.body,"position"),t.originalOverflow=Object(l.getStyle)(document.body,"overflow"),t.maskStyle.zIndex=d.PopupManager.nextZIndex(),Object(l.addClass)(t.mask,"is-fullscreen"),n(document.body,t,r)):(Object(l.removeClass)(t.mask,"is-fullscreen"),r.modifiers.body?(t.originalPosition=Object(l.getStyle)(document.body,"position"),["top","left"].forEach(function(e){var n="top"===e?"scrollTop":"scrollLeft";t.maskStyle[e]=t.getBoundingClientRect()[e]+document.body[n]+document.documentElement[n]-parseInt(Object(l.getStyle)(document.body,"margin-"+e),10)+"px"}),["height","width"].forEach(function(e){t.maskStyle[e]=t.getBoundingClientRect()[e]+"px"}),n(document.body,t,r)):(t.originalPosition=Object(l.getStyle)(t,"position"),n(t,t,r)))}):(p()(t.instance,function(e){if(t.instance.hiding){t.domVisible=!1;var n=r.modifiers.fullscreen||r.modifiers.body?document.body:t;Object(l.removeClass)(n,"el-loading-parent--relative"),Object(l.removeClass)(n,"el-loading-parent--hidden"),t.instance.hiding=!1}},300,!0),t.instance.visible=!1,t.instance.hiding=!0)},n=function(t,n,r){n.domVisible||"none"===Object(l.getStyle)(n,"display")||"hidden"===Object(l.getStyle)(n,"visibility")?n.domVisible&&!0===n.instance.hiding&&(n.instance.visible=!0,n.instance.hiding=!1):(Object.keys(n.maskStyle).forEach(function(e){n.mask.style[e]=n.maskStyle[e]}),"absolute"!==n.originalPosition&&"fixed"!==n.originalPosition&&"sticky"!==n.originalPosition&&Object(l.addClass)(t,"el-loading-parent--relative"),r.modifiers.fullscreen&&r.modifiers.lock&&Object(l.addClass)(t,"el-loading-parent--hidden"),n.domVisible=!0,t.appendChild(n.mask),e.nextTick(function(){n.instance.hiding?n.instance.$emit("after-leave"):n.instance.visible=!0}),n.domInserted=!0)};e.directive("loading",{bind:function(e,n,r){var o=e.getAttribute("element-loading-text"),i=e.getAttribute("element-loading-spinner"),s=e.getAttribute("element-loading-background"),a=e.getAttribute("element-loading-custom-class"),c=r.context,u=new f({el:document.createElement("div"),data:{text:c&&c[o]||o,spinner:c&&c[i]||i,background:c&&c[s]||s,customClass:c&&c[a]||a,fullscreen:!!n.modifiers.fullscreen}});e.instance=u,e.mask=u.$el,e.maskStyle={},n.value&&t(e,n)},update:function(e,n){e.instance.setText(e.getAttribute("element-loading-text")),n.oldValue!==n.value&&t(e,n)},unbind:function(e,n){e.domInserted&&(e.mask&&e.mask.parentNode&&e.mask.parentNode.removeChild(e.mask),t(e,{value:!1,modifiers:n.modifiers})),e.instance&&e.instance.$destroy()}})}}},g=m,v=n(9),_=n.n(v),y=o.a.extend(u),b={text:null,fullscreen:!0,body:!1,lock:!1,customClass:""},w=void 0;y.prototype.originalPosition="",y.prototype.originalOverflow="",y.prototype.close=function(){var e=this;this.fullscreen&&(w=void 0),p()(this,function(t){var n=e.fullscreen||e.body?document.body:e.target;Object(l.removeClass)(n,"el-loading-parent--relative"),Object(l.removeClass)(n,"el-loading-parent--hidden"),e.$el&&e.$el.parentNode&&e.$el.parentNode.removeChild(e.$el),e.$destroy()},300),this.visible=!1};var E=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!o.a.prototype.$isServer){if("string"==typeof(e=_()({},b,e)).target&&(e.target=document.querySelector(e.target)),e.target=e.target||document.body,e.target!==document.body?e.fullscreen=!1:e.body=!0,e.fullscreen&&w)return w;var t=e.body?document.body:e.target,n=new y({el:document.createElement("div"),data:e});return function(e,t,n){var r={};e.fullscreen?(n.originalPosition=Object(l.getStyle)(document.body,"position"),n.originalOverflow=Object(l.getStyle)(document.body,"overflow"),r.zIndex=d.PopupManager.nextZIndex()):e.body?(n.originalPosition=Object(l.getStyle)(document.body,"position"),["top","left"].forEach(function(t){var n="top"===t?"scrollTop":"scrollLeft";r[t]=e.target.getBoundingClientRect()[t]+document.body[n]+document.documentElement[n]+"px"}),["height","width"].forEach(function(t){r[t]=e.target.getBoundingClientRect()[t]+"px"})):n.originalPosition=Object(l.getStyle)(t,"position"),Object.keys(r).forEach(function(e){n.$el.style[e]=r[e]})}(e,t,n),"absolute"!==n.originalPosition&&"fixed"!==n.originalPosition&&"sticky"!==n.originalPosition&&Object(l.addClass)(t,"el-loading-parent--relative"),e.fullscreen&&e.lock&&Object(l.addClass)(t,"el-loading-parent--hidden"),t.appendChild(n.$el),o.a.nextTick(function(){n.visible=!0}),e.fullscreen&&(w=n),n}};t.default={install:function(e){e.use(g),e.prototype.$loading=E},directive:g,service:E}},9:function(e,t){e.exports=n(9)}})},2952:function(e,t){"use strict";function n(e,t,r){this.$children.forEach(function(o){o.$options.componentName===e?o.$emit.apply(o,[t].concat(r)):n.apply(o,[e,t].concat([r]))})}t.__esModule=!0,t.default={methods:{dispatch:function(e,t,n){for(var r=this.$parent||this.$root,o=r.$options.componentName;r&&(!o||o!==e);)(r=r.$parent)&&(o=r.$options.componentName);r&&r.$emit.apply(r,[t].concat(n))},broadcast:function(e,t,r){n.call(this,e,t,r)}}}},4840:function(e,t,n){"use strict";t.__esModule=!0,n(4669),t.default={mounted:function(){},methods:{getMigratingConfig:function(){return{props:{},events:{}}}}}},4185:function(e,t){"use strict";t.__esModule=!0,t.default=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:300,r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(!e||!t)throw new Error("instance & callback is required");var o=!1,i=function(){o||(o=!0,t&&t.apply(null,arguments))};r?e.$once("after-leave",i):e.$on("after-leave",i),setTimeout(function(){i()},n+100)}},1861:function(e,t,n){"use strict";t.__esModule=!0,t.isInContainer=t.getScrollContainer=t.isScroll=t.getStyle=t.once=t.off=t.on=void 0;var r="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};t.hasClass=f,t.addClass=function(e,t){if(e){for(var n=e.className,r=(t||"").split(" "),o=0,i=r.length;o<i;o++){var s=r[o];s&&(e.classList?e.classList.add(s):f(e,s)||(n+=" "+s))}e.classList||e.setAttribute("class",n)}},t.removeClass=function(e,t){if(e&&t){for(var n=t.split(" "),r=" "+e.className+" ",o=0,i=n.length;o<i;o++){var s=n[o];s&&(e.classList?e.classList.remove(s):f(e,s)&&(r=r.replace(" "+s+" "," ")))}e.classList||e.setAttribute("class",l(r))}},t.setStyle=function e(t,n,o){if(t&&n)if("object"===(void 0===n?"undefined":r(n)))for(var i in n)n.hasOwnProperty(i)&&e(t,i,n[i]);else"opacity"===(n=d(n))&&u<9?t.style.filter=isNaN(o)?"":"alpha(opacity="+100*o+")":t.style[n]=o};var o,i=n(1058),s=((o=i)&&o.__esModule?o:{default:o}).default.prototype.$isServer,a=/([\:\-\_]+(.))/g,c=/^moz([A-Z])/,u=s?0:Number(document.documentMode),l=function(e){return(e||"").replace(/^[\s\uFEFF]+|[\s\uFEFF]+$/g,"")},d=function(e){return e.replace(a,function(e,t,n,r){return r?n.toUpperCase():n}).replace(c,"Moz$1")},h=t.on=!s&&document.addEventListener?function(e,t,n){e&&t&&n&&e.addEventListener(t,n,!1)}:function(e,t,n){e&&t&&n&&e.attachEvent("on"+t,n)},p=t.off=!s&&document.removeEventListener?function(e,t,n){e&&t&&e.removeEventListener(t,n,!1)}:function(e,t,n){e&&t&&e.detachEvent("on"+t,n)};function f(e,t){if(!e||!t)return!1;if(-1!==t.indexOf(" "))throw new Error("className should not contain space.");return e.classList?e.classList.contains(t):(" "+e.className+" ").indexOf(" "+t+" ")>-1}t.once=function(e,t,n){h(e,t,function r(){n&&n.apply(this,arguments),p(e,t,r)})};var m=t.getStyle=u<9?function(e,t){if(!s){if(!e||!t)return null;"float"===(t=d(t))&&(t="styleFloat");try{if("opacity"===t)try{return e.filters.item("alpha").opacity/100}catch(e){return 1}return e.style[t]||e.currentStyle?e.currentStyle[t]:null}catch(n){return e.style[t]}}}:function(e,t){if(!s){if(!e||!t)return null;"float"===(t=d(t))&&(t="cssFloat");try{var n=document.defaultView.getComputedStyle(e,"");return e.style[t]||n?n[t]:null}catch(n){return e.style[t]}}},g=t.isScroll=function(e,t){if(!s)return m(e,null!=t?t?"overflow-y":"overflow-x":"overflow").match(/(scroll|auto|overlay)/)};t.getScrollContainer=function(e,t){if(!s){for(var n=e;n;){if([window,document,document.documentElement].includes(n))return window;if(g(n,t))return n;n=n.parentNode}return n}},t.isInContainer=function(e,t){if(s||!e||!t)return!1;var n=e.getBoundingClientRect(),r=void 0;return r=[window,document,document.documentElement,null,void 0].includes(t)?{top:0,right:window.innerWidth,bottom:window.innerHeight,left:0}:t.getBoundingClientRect(),n.top<r.bottom&&n.bottom>r.top&&n.right>r.left&&n.left<r.right}},9:function(e,t){"use strict";t.__esModule=!0,t.default=function(e){for(var t=1,n=arguments.length;t<n;t++){var r=arguments[t]||{};for(var o in r)if(r.hasOwnProperty(o)){var i=r[o];void 0!==i&&(e[o]=i)}}return e}},2336:function(e,t,n){"use strict";t.__esModule=!0,t.PopupManager=void 0;var r=c(n(1058)),o=c(n(9)),i=c(n(1820)),s=c(n(4698)),a=n(1861);function c(e){return e&&e.__esModule?e:{default:e}}var u=1,l=void 0;t.default={props:{visible:{type:Boolean,default:!1},openDelay:{},closeDelay:{},zIndex:{},modal:{type:Boolean,default:!1},modalFade:{type:Boolean,default:!0},modalClass:{},modalAppendToBody:{type:Boolean,default:!1},lockScroll:{type:Boolean,default:!0},closeOnPressEscape:{type:Boolean,default:!1},closeOnClickModal:{type:Boolean,default:!1}},beforeMount:function(){this._popupId="popup-"+u++,i.default.register(this._popupId,this)},beforeDestroy:function(){i.default.deregister(this._popupId),i.default.closeModal(this._popupId),this.restoreBodyStyle()},data:function(){return{opened:!1,bodyPaddingRight:null,computedBodyPaddingRight:0,withoutHiddenClass:!0,rendered:!1}},watch:{visible:function(e){var t=this;if(e){if(this._opening)return;this.rendered?this.open():(this.rendered=!0,r.default.nextTick(function(){t.open()}))}else this.close()}},methods:{open:function(e){var t=this;this.rendered||(this.rendered=!0);var n=(0,o.default)({},this.$props||this,e);this._closeTimer&&(clearTimeout(this._closeTimer),this._closeTimer=null),clearTimeout(this._openTimer);var r=Number(n.openDelay);r>0?this._openTimer=setTimeout(function(){t._openTimer=null,t.doOpen(n)},r):this.doOpen(n)},doOpen:function(e){if(!this.$isServer&&(!this.willOpen||this.willOpen())&&!this.opened){this._opening=!0;var t=this.$el,n=e.modal,r=e.zIndex;if(r&&(i.default.zIndex=r),n&&(this._closing&&(i.default.closeModal(this._popupId),this._closing=!1),i.default.openModal(this._popupId,i.default.nextZIndex(),this.modalAppendToBody?void 0:t,e.modalClass,e.modalFade),e.lockScroll)){this.withoutHiddenClass=!(0,a.hasClass)(document.body,"el-popup-parent--hidden"),this.withoutHiddenClass&&(this.bodyPaddingRight=document.body.style.paddingRight,this.computedBodyPaddingRight=parseInt((0,a.getStyle)(document.body,"paddingRight"),10)),l=(0,s.default)();var o=document.documentElement.clientHeight<document.body.scrollHeight,c=(0,a.getStyle)(document.body,"overflowY");l>0&&(o||"scroll"===c)&&this.withoutHiddenClass&&(document.body.style.paddingRight=this.computedBodyPaddingRight+l+"px"),(0,a.addClass)(document.body,"el-popup-parent--hidden")}"static"===getComputedStyle(t).position&&(t.style.position="absolute"),t.style.zIndex=i.default.nextZIndex(),this.opened=!0,this.onOpen&&this.onOpen(),this.doAfterOpen()}},doAfterOpen:function(){this._opening=!1},close:function(){var e=this;if(!this.willClose||this.willClose()){null!==this._openTimer&&(clearTimeout(this._openTimer),this._openTimer=null),clearTimeout(this._closeTimer);var t=Number(this.closeDelay);t>0?this._closeTimer=setTimeout(function(){e._closeTimer=null,e.doClose()},t):this.doClose()}},doClose:function(){this._closing=!0,this.onClose&&this.onClose(),this.lockScroll&&setTimeout(this.restoreBodyStyle,200),this.opened=!1,this.doAfterClose()},doAfterClose:function(){i.default.closeModal(this._popupId),this._closing=!1},restoreBodyStyle:function(){this.modal&&this.withoutHiddenClass&&(document.body.style.paddingRight=this.bodyPaddingRight,(0,a.removeClass)(document.body,"el-popup-parent--hidden")),this.withoutHiddenClass=!0}}},t.PopupManager=i.default},1820:function(e,t,n){"use strict";t.__esModule=!0;var r,o=n(1058),i=(r=o)&&r.__esModule?r:{default:r},s=n(1861),a=!1,c=!1,u=void 0,l=function(){if(!i.default.prototype.$isServer){var e=h.modalDom;return e?a=!0:(a=!1,e=document.createElement("div"),h.modalDom=e,e.addEventListener("touchmove",function(e){e.preventDefault(),e.stopPropagation()}),e.addEventListener("click",function(){h.doOnModalClick&&h.doOnModalClick()})),e}},d={},h={modalFade:!0,getInstance:function(e){return d[e]},register:function(e,t){e&&t&&(d[e]=t)},deregister:function(e){e&&(d[e]=null,delete d[e])},nextZIndex:function(){return h.zIndex++},modalStack:[],doOnModalClick:function(){var e=h.modalStack[h.modalStack.length-1];if(e){var t=h.getInstance(e.id);t&&t.closeOnClickModal&&t.close()}},openModal:function(e,t,n,r,o){if(!i.default.prototype.$isServer&&e&&void 0!==t){this.modalFade=o;for(var c=this.modalStack,u=0,d=c.length;u<d;u++)if(c[u].id===e)return;var h=l();(0,s.addClass)(h,"v-modal"),this.modalFade&&!a&&(0,s.addClass)(h,"v-modal-enter"),r&&r.trim().split(/\s+/).forEach(function(e){return(0,s.addClass)(h,e)}),setTimeout(function(){(0,s.removeClass)(h,"v-modal-enter")},200),n&&n.parentNode&&11!==n.parentNode.nodeType?n.parentNode.appendChild(h):document.body.appendChild(h),t&&(h.style.zIndex=t),h.tabIndex=0,h.style.display="",this.modalStack.push({id:e,zIndex:t,modalClass:r})}},closeModal:function(e){var t=this.modalStack,n=l();if(t.length>0){var r=t[t.length-1];if(r.id===e)r.modalClass&&r.modalClass.trim().split(/\s+/).forEach(function(e){return(0,s.removeClass)(n,e)}),t.pop(),t.length>0&&(n.style.zIndex=t[t.length-1].zIndex);else for(var o=t.length-1;o>=0;o--)if(t[o].id===e){t.splice(o,1);break}}0===t.length&&(this.modalFade&&(0,s.addClass)(n,"v-modal-leave"),setTimeout(function(){0===t.length&&(n.parentNode&&n.parentNode.removeChild(n),n.style.display="none",h.modalDom=void 0),(0,s.removeClass)(n,"v-modal-leave")},200))}};Object.defineProperty(h,"zIndex",{configurable:!0,get:function(){return c||(u=u||(i.default.prototype.$ELEMENT||{}).zIndex||2e3,c=!0),u},set:function(e){u=e}}),i.default.prototype.$isServer||window.addEventListener("keydown",function(e){if(27===e.keyCode){var t=function(){if(!i.default.prototype.$isServer&&h.modalStack.length>0){var e=h.modalStack[h.modalStack.length-1];if(!e)return;return h.getInstance(e.id)}}();t&&t.closeOnPressEscape&&(t.handleClose?t.handleClose():t.handleAction?t.handleAction("cancel"):t.close())}}),t.default=h},4698:function(e,t,n){"use strict";t.__esModule=!0,t.default=function(){if(i.default.prototype.$isServer)return 0;if(void 0!==s)return s;var e=document.createElement("div");e.className="el-scrollbar__wrap",e.style.visibility="hidden",e.style.width="100px",e.style.position="absolute",e.style.top="-9999px",document.body.appendChild(e);var t=e.offsetWidth;e.style.overflow="scroll";var n=document.createElement("div");n.style.width="100%",e.appendChild(n);var r=n.offsetWidth;return e.parentNode.removeChild(e),s=t-r};var r,o=n(1058),i=(r=o)&&r.__esModule?r:{default:r},s=void 0},5088:function(e,t){"use strict";t.__esModule=!0,t.isDef=function(e){return null!=e},t.isKorean=function(e){return/([(\uAC00-\uD7AF)|(\u3130-\u318F)])+/gi.test(e)}},5892:function(e,t,n){"use strict";t.__esModule=!0,t.isDefined=t.isUndefined=t.isFunction=void 0;var r="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};t.isString=function(e){return"[object String]"===Object.prototype.toString.call(e)},t.isObject=function(e){return"[object Object]"===Object.prototype.toString.call(e)},t.isHtmlElement=function(e){return e&&e.nodeType===Node.ELEMENT_NODE};var o,i=n(1058),s=(o=i)&&o.__esModule?o:{default:o},a=function(e){return e&&"[object Function]"==={}.toString.call(e)};"object"===("undefined"==typeof Int8Array?"undefined":r(Int8Array))||!s.default.prototype.$isServer&&"function"==typeof document.childNodes||(t.isFunction=a=function(e){return"function"==typeof e||!1}),t.isFunction=a,t.isUndefined=function(e){return void 0===e},t.isDefined=function(e){return null!=e}},4669:function(e,t,n){"use strict";t.__esModule=!0,t.isMac=t.isEmpty=t.isEqual=t.arrayEquals=t.looseEqual=t.capitalize=t.kebabCase=t.autoprefixer=t.isFirefox=t.isEdge=t.isIE=t.coerceTruthyValueToArray=t.arrayFind=t.arrayFindIndex=t.escapeRegexpString=t.valueEquals=t.generateId=t.getValueByPath=void 0;var r="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};t.noop=function(){},t.hasOwn=function(e,t){return c.call(e,t)},t.toObject=function(e){for(var t={},n=0;n<e.length;n++)e[n]&&u(t,e[n]);return t},t.getPropByPath=function(e,t,n){for(var r=e,o=(t=(t=t.replace(/\[(\w+)\]/g,".$1")).replace(/^\./,"")).split("."),i=0,s=o.length;i<s-1&&(r||n);++i){var a=o[i];if(!(a in r)){if(n)throw new Error("please transfer a valid prop path to form item!");break}r=r[a]}return{o:r,k:o[i],v:r?r[o[i]]:null}},t.rafThrottle=function(e){var t=!1;return function(){for(var n=this,r=arguments.length,o=Array(r),i=0;i<r;i++)o[i]=arguments[i];t||(t=!0,window.requestAnimationFrame(function(r){e.apply(n,o),t=!1}))}},t.objToArray=function(e){return Array.isArray(e)?e:p(e)?[]:[e]};var o,i=n(1058),s=(o=i)&&o.__esModule?o:{default:o},a=n(5892),c=Object.prototype.hasOwnProperty;function u(e,t){for(var n in t)e[n]=t[n];return e}t.getValueByPath=function(e,t){for(var n=(t=t||"").split("."),r=e,o=null,i=0,s=n.length;i<s;i++){var a=n[i];if(!r)break;if(i===s-1){o=r[a];break}r=r[a]}return o},t.generateId=function(){return Math.floor(1e4*Math.random())},t.valueEquals=function(e,t){if(e===t)return!0;if(!(e instanceof Array))return!1;if(!(t instanceof Array))return!1;if(e.length!==t.length)return!1;for(var n=0;n!==e.length;++n)if(e[n]!==t[n])return!1;return!0},t.escapeRegexpString=function(){return String(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"").replace(/[|\\{}()[\]^$+*?.]/g,"\\$&")};var l=t.arrayFindIndex=function(e,t){for(var n=0;n!==e.length;++n)if(t(e[n]))return n;return-1},d=(t.arrayFind=function(e,t){var n=l(e,t);return-1!==n?e[n]:void 0},t.coerceTruthyValueToArray=function(e){return Array.isArray(e)?e:e?[e]:[]},t.isIE=function(){return!s.default.prototype.$isServer&&!isNaN(Number(document.documentMode))},t.isEdge=function(){return!s.default.prototype.$isServer&&navigator.userAgent.indexOf("Edge")>-1},t.isFirefox=function(){return!s.default.prototype.$isServer&&!!window.navigator.userAgent.match(/firefox/i)},t.autoprefixer=function(e){if("object"!==(void 0===e?"undefined":r(e)))return e;var t=["ms-","webkit-"];return["transform","transition","animation"].forEach(function(n){var r=e[n];n&&r&&t.forEach(function(t){e[t+n]=r})}),e},t.kebabCase=function(e){var t=/([^-])([A-Z])/g;return e.replace(t,"$1-$2").replace(t,"$1-$2").toLowerCase()},t.capitalize=function(e){return(0,a.isString)(e)?e.charAt(0).toUpperCase()+e.slice(1):e},t.looseEqual=function(e,t){var n=(0,a.isObject)(e),r=(0,a.isObject)(t);return n&&r?JSON.stringify(e)===JSON.stringify(t):!n&&!r&&String(e)===String(t)}),h=t.arrayEquals=function(e,t){if(t=t||[],(e=e||[]).length!==t.length)return!1;for(var n=0;n<e.length;n++)if(!d(e[n],t[n]))return!1;return!0},p=(t.isEqual=function(e,t){return Array.isArray(e)&&Array.isArray(t)?h(e,t):d(e,t)},t.isEmpty=function(e){if(null==e)return!0;if("boolean"==typeof e)return!1;if("number"==typeof e)return!e;if(e instanceof Error)return""===e.message;switch(Object.prototype.toString.call(e)){case"[object String]":case"[object Array]":return!e.length;case"[object File]":case"[object Map]":case"[object Set]":return!e.size;case"[object Object]":return!Object.keys(e).length}return!1});t.isMac=function(){return!s.default.prototype.$isServer&&/macintosh|mac os x/i.test(navigator.userAgent)}},560:function(e,t){"use strict";function n(e){this.message=e}Object.defineProperty(t,"__esModule",{value:!0}),t.InvalidTokenError=i,t.default=void 0,n.prototype=new Error,n.prototype.name="InvalidCharacterError";var r="undefined"!=typeof window&&window.atob&&window.atob.bind(window)||function(e){var t=String(e).replace(/=+$/,"");if(t.length%4==1)throw new n("'atob' failed: The string to be decoded is not correctly encoded.");for(var r,o,i=0,s=0,a="";o=t.charAt(s++);~o&&(r=i%4?64*r+o:o,i++%4)?a+=String.fromCharCode(255&r>>(-2*i&6)):0)o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(o);return a};function o(e){var t=e.replace(/-/g,"+").replace(/_/g,"/");switch(t.length%4){case 0:break;case 2:t+="==";break;case 3:t+="=";break;default:throw"Illegal base64url string!"}try{return function(e){return decodeURIComponent(r(e).replace(/(.)/g,function(e,t){var n=t.charCodeAt(0).toString(16).toUpperCase();return n.length<2&&(n="0"+n),"%"+n}))}(t)}catch(e){return r(t)}}function i(e){this.message=e}i.prototype=new Error,i.prototype.name="InvalidTokenError",t.default=function(e,t){if("string"!=typeof e)throw new i("Invalid token specified");var n=!0===(t=t||{}).header?0:1;try{return JSON.parse(o(e.split(".")[n]))}catch(e){throw new i("Invalid token specified: "+e.message)}}},9670:function(){"use strict";!function(){if("undefined"!=typeof Prism&&"undefined"!=typeof document){var e={javascript:"clike",actionscript:"javascript",apex:["clike","sql"],arduino:"cpp",aspnet:["markup","csharp"],birb:"clike",bison:"c",c:"clike",csharp:"clike",cpp:"c",cfscript:"clike",chaiscript:["clike","cpp"],cilkc:"c",cilkcpp:"cpp",coffeescript:"javascript",crystal:"ruby","css-extras":"css",d:"clike",dart:"clike",django:"markup-templating",ejs:["javascript","markup-templating"],etlua:["lua","markup-templating"],erb:["ruby","markup-templating"],fsharp:"clike","firestore-security-rules":"clike",flow:"javascript",ftl:"markup-templating",gml:"clike",glsl:"c",go:"clike",gradle:"clike",groovy:"clike",haml:"ruby",handlebars:"markup-templating",haxe:"clike",hlsl:"c",idris:"haskell",java:"clike",javadoc:["markup","java","javadoclike"],jolie:"clike",jsdoc:["javascript","javadoclike","typescript"],"js-extras":"javascript",json5:"json",jsonp:"json","js-templates":"javascript",kotlin:"clike",latte:["clike","markup-templating","php"],less:"css",lilypond:"scheme",liquid:"markup-templating",markdown:"markup","markup-templating":"markup",mongodb:"javascript",n4js:"javascript",objectivec:"c",opencl:"c",parser:"markup",php:"markup-templating",phpdoc:["php","javadoclike"],"php-extras":"php",plsql:"sql",processing:"clike",protobuf:"clike",pug:["markup","javascript"],purebasic:"clike",purescript:"haskell",qsharp:"clike",qml:"javascript",qore:"clike",racket:"scheme",cshtml:["markup","csharp"],jsx:["markup","javascript"],tsx:["jsx","typescript"],reason:"clike",ruby:"clike",sass:"css",scss:"css",scala:"java","shell-session":"bash",smarty:"markup-templating",solidity:"clike",soy:"markup-templating",sparql:"turtle",sqf:"clike",squirrel:"clike",stata:["mata","java","python"],"t4-cs":["t4-templating","csharp"],"t4-vb":["t4-templating","vbnet"],tap:"yaml",tt2:["clike","markup-templating"],textile:"markup",twig:"markup-templating",typescript:"javascript",v:"clike",vala:"clike",vbnet:"basic",velocity:"markup",wiki:"markup",xeora:"markup","xml-doc":"markup",xquery:"markup"},t={html:"markup",xml:"markup",svg:"markup",mathml:"markup",ssml:"markup",atom:"markup",rss:"markup",js:"javascript",g4:"antlr4",ino:"arduino","arm-asm":"armasm",art:"arturo",adoc:"asciidoc",avs:"avisynth",avdl:"avro-idl",gawk:"awk",sh:"bash",shell:"bash",shortcode:"bbcode",rbnf:"bnf",oscript:"bsl",cs:"csharp",dotnet:"csharp",cfc:"cfscript","cilk-c":"cilkc","cilk-cpp":"cilkcpp",cilk:"cilkcpp",coffee:"coffeescript",conc:"concurnas",jinja2:"django","dns-zone":"dns-zone-file",dockerfile:"docker",gv:"dot",eta:"ejs",xlsx:"excel-formula",xls:"excel-formula",gamemakerlanguage:"gml",po:"gettext",gni:"gn",ld:"linker-script","go-mod":"go-module",hbs:"handlebars",mustache:"handlebars",hs:"haskell",idr:"idris",gitignore:"ignore",hgignore:"ignore",npmignore:"ignore",webmanifest:"json",kt:"kotlin",kts:"kotlin",kum:"kumir",tex:"latex",context:"latex",ly:"lilypond",emacs:"lisp",elisp:"lisp","emacs-lisp":"lisp",md:"markdown",moon:"moonscript",n4jsd:"n4js",nani:"naniscript",objc:"objectivec",qasm:"openqasm",objectpascal:"pascal",px:"pcaxis",pcode:"peoplecode",plantuml:"plant-uml",pq:"powerquery",mscript:"powerquery",pbfasm:"purebasic",purs:"purescript",py:"python",qs:"qsharp",rkt:"racket",razor:"cshtml",rpy:"renpy",res:"rescript",robot:"robotframework",rb:"ruby","sh-session":"shell-session",shellsession:"shell-session",smlnj:"sml",sol:"solidity",sln:"solution-file",rq:"sparql",sclang:"supercollider",t4:"t4-cs",trickle:"tremor",troy:"tremor",trig:"turtle",ts:"typescript",tsconfig:"typoscript",uscript:"unrealscript",uc:"unrealscript",url:"uri",vb:"visual-basic",vba:"visual-basic",webidl:"web-idl",mathematica:"wolfram",nb:"wolfram",wl:"wolfram",xeoracube:"xeora",yml:"yaml"},n={},r="components/",o=Prism.util.currentScript();if(o){var i=/\bplugins\/autoloader\/prism-autoloader\.(?:min\.)?js(?:\?[^\r\n/]*)?$/i,s=/(^|\/)[\w-]+\.(?:min\.)?js(?:\?[^\r\n/]*)?$/i,a=o.getAttribute("data-autoloader-path");if(null!=a)r=a.trim().replace(/\/?$/,"/");else{var c=o.src;i.test(c)?r=c.replace(i,"components/"):s.test(c)&&(r=c.replace(s,"$1components/"))}}var u=Prism.plugins.autoloader={languages_path:r,use_minified:!0,loadLanguages:d};Prism.hooks.add("complete",function(e){var t=e.element,n=e.language;if(t&&n&&"none"!==n){var r=function(e){var t=(e.getAttribute("data-dependencies")||"").trim();if(!t){var n=e.parentElement;n&&"pre"===n.tagName.toLowerCase()&&(t=(n.getAttribute("data-dependencies")||"").trim())}return t?t.split(/\s*,\s*/g):[]}(t);/^diff-./i.test(n)?(r.push("diff"),r.push(n.substr(5))):r.push(n),r.every(l)||d(r,function(){Prism.highlightElement(t)})}})}function l(e){if(e.indexOf("!")>=0)return!1;if((e=t[e]||e)in Prism.languages)return!0;var r=n[e];return r&&!r.error&&!1===r.loading}function d(r,o,i){"string"==typeof r&&(r=[r]);var s=r.length,a=0,c=!1;function p(){c||++a===s&&o&&o(r)}0!==s?r.forEach(function(r){!function(r,o,i){var s=r.indexOf("!")>=0;function a(){var e=n[r];e||(e=n[r]={callbacks:[]}),e.callbacks.push({success:o,error:i}),!s&&l(r)?h(r,"success"):!s&&e.error?h(r,"error"):!s&&e.loading||(e.loading=!0,e.error=!1,function(e,t,n){var r=document.createElement("script");r.src=e,r.async=!0,r.onload=function(){document.body.removeChild(r),t&&t()},r.onerror=function(){document.body.removeChild(r),n&&n()},document.body.appendChild(r)}(function(e){return u.languages_path+"prism-"+e+(u.use_minified?".min":"")+".js"}(r),function(){e.loading=!1,h(r,"success")},function(){e.loading=!1,e.error=!0,h(r,"error")}))}r=r.replace("!","");var c=e[r=t[r]||r];c&&c.length?d(c,a,i):a()}(r,p,function(){c||(c=!0,i&&i(r))})}):o&&setTimeout(o,0)}function h(e,t){if(n[e]){for(var r=n[e].callbacks,o=0,i=r.length;o<i;o++){var s=r[o][t];s&&setTimeout(s,0)}r.length=0}}}()},9092:function(){"use strict";!function(){function e(e,n){e.addEventListener("click",function(){!function(e){navigator.clipboard?navigator.clipboard.writeText(e.getText()).then(e.success,function(){t(e)}):t(e)}(n)})}function t(e){var t=document.createElement("textarea");t.value=e.getText(),t.style.top="0",t.style.left="0",t.style.position="fixed",document.body.appendChild(t),t.focus(),t.select();try{var n=document.execCommand("copy");setTimeout(function(){n?e.success():e.error()},1)}catch(t){setTimeout(function(){e.error(t)},1)}document.body.removeChild(t)}"undefined"!=typeof Prism&&"undefined"!=typeof document&&(Prism.plugins.toolbar?Prism.plugins.toolbar.registerButton("copy-to-clipboard",function(t){var n=t.element,r=function(e){var t={copy:"Copy","copy-error":"Press Ctrl+C to copy","copy-success":"Copied!","copy-timeout":5e3};for(var n in t){for(var r="data-prismjs-"+n,o=e;o&&!o.hasAttribute(r);)o=o.parentElement;o&&(t[n]=o.getAttribute(r))}return t}(n),o=document.createElement("button");o.className="copy-to-clipboard-button",o.setAttribute("type","button");var i=document.createElement("span");return o.appendChild(i),a("copy"),e(o,{getText:function(){return n.textContent},success:function(){a("copy-success"),s()},error:function(){a("copy-error"),setTimeout(function(){!function(e){window.getSelection().selectAllChildren(e)}(n)},1),s()}}),o;function s(){setTimeout(function(){a("copy")},r["copy-timeout"])}function a(e){i.textContent=r[e],o.setAttribute("data-copy-state",e)}}):console.warn("Copy to Clipboard plugin loaded before Toolbar plugin."))}()},3020:function(){"use strict";!function(){if("undefined"!=typeof Prism&&"undefined"!=typeof document)if(Prism.plugins.toolbar){var e={none:"Plain text",plain:"Plain text",plaintext:"Plain text",text:"Plain text",txt:"Plain text",html:"HTML",xml:"XML",svg:"SVG",mathml:"MathML",ssml:"SSML",rss:"RSS",css:"CSS",clike:"C-like",js:"JavaScript",abap:"ABAP",abnf:"ABNF",al:"AL",antlr4:"ANTLR4",g4:"ANTLR4",apacheconf:"Apache Configuration",apl:"APL",aql:"AQL",ino:"Arduino",arff:"ARFF",armasm:"ARM Assembly","arm-asm":"ARM Assembly",art:"Arturo",asciidoc:"AsciiDoc",adoc:"AsciiDoc",aspnet:"ASP.NET (C#)",asm6502:"6502 Assembly",asmatmel:"Atmel AVR Assembly",autohotkey:"AutoHotkey",autoit:"AutoIt",avisynth:"AviSynth",avs:"AviSynth","avro-idl":"Avro IDL",avdl:"Avro IDL",awk:"AWK",gawk:"GAWK",sh:"Shell",basic:"BASIC",bbcode:"BBcode",bbj:"BBj",bnf:"BNF",rbnf:"RBNF",bqn:"BQN",bsl:"BSL (1C:Enterprise)",oscript:"OneScript",csharp:"C#",cs:"C#",dotnet:"C#",cpp:"C++",cfscript:"CFScript",cfc:"CFScript",cil:"CIL",cilkc:"Cilk/C","cilk-c":"Cilk/C",cilkcpp:"Cilk/C++","cilk-cpp":"Cilk/C++",cilk:"Cilk/C++",cmake:"CMake",cobol:"COBOL",coffee:"CoffeeScript",conc:"Concurnas",csp:"Content-Security-Policy","css-extras":"CSS Extras",csv:"CSV",cue:"CUE",dataweave:"DataWeave",dax:"DAX",django:"Django/Jinja2",jinja2:"Django/Jinja2","dns-zone-file":"DNS zone file","dns-zone":"DNS zone file",dockerfile:"Docker",dot:"DOT (Graphviz)",gv:"DOT (Graphviz)",ebnf:"EBNF",editorconfig:"EditorConfig",ejs:"EJS",etlua:"Embedded Lua templating",erb:"ERB","excel-formula":"Excel Formula",xlsx:"Excel Formula",xls:"Excel Formula",fsharp:"F#","firestore-security-rules":"Firestore security rules",ftl:"FreeMarker Template Language",gml:"GameMaker Language",gamemakerlanguage:"GameMaker Language",gap:"GAP (CAS)",gcode:"G-code",gdscript:"GDScript",gedcom:"GEDCOM",gettext:"gettext",po:"gettext",glsl:"GLSL",gn:"GN",gni:"GN","linker-script":"GNU Linker Script",ld:"GNU Linker Script","go-module":"Go module","go-mod":"Go module",graphql:"GraphQL",hbs:"Handlebars",hs:"Haskell",hcl:"HCL",hlsl:"HLSL",http:"HTTP",hpkp:"HTTP Public-Key-Pins",hsts:"HTTP Strict-Transport-Security",ichigojam:"IchigoJam","icu-message-format":"ICU Message Format",idr:"Idris",ignore:".ignore",gitignore:".gitignore",hgignore:".hgignore",npmignore:".npmignore",inform7:"Inform 7",javadoc:"JavaDoc",javadoclike:"JavaDoc-like",javastacktrace:"Java stack trace",jq:"JQ",jsdoc:"JSDoc","js-extras":"JS Extras",json:"JSON",webmanifest:"Web App Manifest",json5:"JSON5",jsonp:"JSONP",jsstacktrace:"JS stack trace","js-templates":"JS Templates",keepalived:"Keepalived Configure",kts:"Kotlin Script",kt:"Kotlin",kumir:"KuMir (КуМир)",kum:"KuMir (КуМир)",latex:"LaTeX",tex:"TeX",context:"ConTeXt",lilypond:"LilyPond",ly:"LilyPond",emacs:"Lisp",elisp:"Lisp","emacs-lisp":"Lisp",llvm:"LLVM IR",log:"Log file",lolcode:"LOLCODE",magma:"Magma (CAS)",md:"Markdown","markup-templating":"Markup templating",matlab:"MATLAB",maxscript:"MAXScript",mel:"MEL",metafont:"METAFONT",mongodb:"MongoDB",moon:"MoonScript",n1ql:"N1QL",n4js:"N4JS",n4jsd:"N4JS","nand2tetris-hdl":"Nand To Tetris HDL",naniscript:"Naninovel Script",nani:"Naninovel Script",nasm:"NASM",neon:"NEON",nginx:"nginx",nsis:"NSIS",objectivec:"Objective-C",objc:"Objective-C",ocaml:"OCaml",opencl:"OpenCL",openqasm:"OpenQasm",qasm:"OpenQasm",parigp:"PARI/GP",objectpascal:"Object Pascal",psl:"PATROL Scripting Language",pcaxis:"PC-Axis",px:"PC-Axis",peoplecode:"PeopleCode",pcode:"PeopleCode",php:"PHP",phpdoc:"PHPDoc","php-extras":"PHP Extras","plant-uml":"PlantUML",plantuml:"PlantUML",plsql:"PL/SQL",powerquery:"PowerQuery",pq:"PowerQuery",mscript:"PowerQuery",powershell:"PowerShell",promql:"PromQL",properties:".properties",protobuf:"Protocol Buffers",purebasic:"PureBasic",pbfasm:"PureBasic",purs:"PureScript",py:"Python",qsharp:"Q#",qs:"Q#",q:"Q (kdb+ database)",qml:"QML",rkt:"Racket",cshtml:"Razor C#",razor:"Razor C#",jsx:"React JSX",tsx:"React TSX",renpy:"Ren'py",rpy:"Ren'py",res:"ReScript",rest:"reST (reStructuredText)",robotframework:"Robot Framework",robot:"Robot Framework",rb:"Ruby",sas:"SAS",sass:"Sass (Sass)",scss:"Sass (SCSS)","shell-session":"Shell session","sh-session":"Shell session",shellsession:"Shell session",sml:"SML",smlnj:"SML/NJ",solidity:"Solidity (Ethereum)",sol:"Solidity (Ethereum)","solution-file":"Solution file",sln:"Solution file",soy:"Soy (Closure Template)",sparql:"SPARQL",rq:"SPARQL","splunk-spl":"Splunk SPL",sqf:"SQF: Status Quo Function (Arma 3)",sql:"SQL",stata:"Stata Ado",iecst:"Structured Text (IEC 61131-3)",supercollider:"SuperCollider",sclang:"SuperCollider",systemd:"Systemd configuration file","t4-templating":"T4 templating","t4-cs":"T4 Text Templates (C#)",t4:"T4 Text Templates (C#)","t4-vb":"T4 Text Templates (VB)",tap:"TAP",tt2:"Template Toolkit 2",toml:"TOML",trickle:"trickle",troy:"troy",trig:"TriG",ts:"TypeScript",tsconfig:"TSConfig",uscript:"UnrealScript",uc:"UnrealScript",uorazor:"UO Razor Script",uri:"URI",url:"URL",vbnet:"VB.Net",vhdl:"VHDL",vim:"vim","visual-basic":"Visual Basic",vba:"VBA",vb:"Visual Basic",wasm:"WebAssembly","web-idl":"Web IDL",webidl:"Web IDL",wgsl:"WGSL",wiki:"Wiki markup",wolfram:"Wolfram language",nb:"Mathematica Notebook",wl:"Wolfram language",xeoracube:"XeoraCube","xml-doc":"XML doc (.net)",xojo:"Xojo (REALbasic)",xquery:"XQuery",yaml:"YAML",yml:"YAML",yang:"YANG"};Prism.plugins.toolbar.registerButton("show-language",function(t){var n=t.element.parentNode;if(n&&/pre/i.test(n.nodeName)){var r,o=n.getAttribute("data-language")||e[t.language]||((r=t.language)?(r.substring(0,1).toUpperCase()+r.substring(1)).replace(/s(?=cript)/,"S"):r);if(o){var i=document.createElement("span");return i.textContent=o,i}}})}else console.warn("Show Languages plugin loaded before Toolbar plugin.")}()},5900:function(){"use strict";!function(){if("undefined"!=typeof Prism&&"undefined"!=typeof document){var e=[],t={},n=function(){};Prism.plugins.toolbar={};var r=Prism.plugins.toolbar.registerButton=function(n,r){var o;o="function"==typeof r?r:function(e){var t;return"function"==typeof r.onClick?((t=document.createElement("button")).type="button",t.addEventListener("click",function(){r.onClick.call(this,e)})):"string"==typeof r.url?(t=document.createElement("a")).href=r.url:t=document.createElement("span"),r.className&&t.classList.add(r.className),t.textContent=r.text,t},n in t?console.warn('There is a button with the key "'+n+'" registered already.'):e.push(t[n]=o)},o=Prism.plugins.toolbar.hook=function(r){var o=r.element.parentNode;if(o&&/pre/i.test(o.nodeName)&&!o.parentNode.classList.contains("code-toolbar")){var i=document.createElement("div");i.classList.add("code-toolbar"),o.parentNode.insertBefore(i,o),i.appendChild(o);var s=document.createElement("div");s.classList.add("toolbar");var a=e,c=function(e){for(;e;){var t=e.getAttribute("data-toolbar-order");if(null!=t)return(t=t.trim()).length?t.split(/\s*,\s*/g):[];e=e.parentElement}}(r.element);c&&(a=c.map(function(e){return t[e]||n})),a.forEach(function(e){var t=e(r);if(t){var n=document.createElement("div");n.classList.add("toolbar-item"),n.appendChild(t),s.appendChild(n)}}),i.appendChild(s)}};r("label",function(e){var t=e.element.parentNode;if(t&&/pre/i.test(t.nodeName)&&t.hasAttribute("data-label")){var n,r,o=t.getAttribute("data-label");try{r=document.querySelector("template#"+o)}catch(e){}return r?n=r.content:(t.hasAttribute("data-url")?(n=document.createElement("a")).href=t.getAttribute("data-url"):n=document.createElement("span"),n.textContent=o),n}}),Prism.hooks.add("complete",o)}}()},6665:function(e,t,n){"use strict";var r=function(e){var t=/(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i,n=0,r={},o={manual:e.Prism&&e.Prism.manual,disableWorkerMessageHandler:e.Prism&&e.Prism.disableWorkerMessageHandler,util:{encode:function e(t){return t instanceof i?new i(t.type,e(t.content),t.alias):Array.isArray(t)?t.map(e):t.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/\u00a0/g," ")},type:function(e){return Object.prototype.toString.call(e).slice(8,-1)},objId:function(e){return e.__id||Object.defineProperty(e,"__id",{value:++n}),e.__id},clone:function e(t,n){var r,i;switch(n=n||{},o.util.type(t)){case"Object":if(i=o.util.objId(t),n[i])return n[i];for(var s in r={},n[i]=r,t)t.hasOwnProperty(s)&&(r[s]=e(t[s],n));return r;case"Array":return i=o.util.objId(t),n[i]?n[i]:(r=[],n[i]=r,t.forEach(function(t,o){r[o]=e(t,n)}),r);default:return t}},getLanguage:function(e){for(;e;){var n=t.exec(e.className);if(n)return n[1].toLowerCase();e=e.parentElement}return"none"},setLanguage:function(e,n){e.className=e.className.replace(RegExp(t,"gi"),""),e.classList.add("language-"+n)},currentScript:function(){if("undefined"==typeof document)return null;if(document.currentScript&&"SCRIPT"===document.currentScript.tagName)return document.currentScript;try{throw new Error}catch(r){var e=(/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec(r.stack)||[])[1];if(e){var t=document.getElementsByTagName("script");for(var n in t)if(t[n].src==e)return t[n]}return null}},isActive:function(e,t,n){for(var r="no-"+t;e;){var o=e.classList;if(o.contains(t))return!0;if(o.contains(r))return!1;e=e.parentElement}return!!n}},languages:{plain:r,plaintext:r,text:r,txt:r,extend:function(e,t){var n=o.util.clone(o.languages[e]);for(var r in t)n[r]=t[r];return n},insertBefore:function(e,t,n,r){var i=(r=r||o.languages)[e],s={};for(var a in i)if(i.hasOwnProperty(a)){if(a==t)for(var c in n)n.hasOwnProperty(c)&&(s[c]=n[c]);n.hasOwnProperty(a)||(s[a]=i[a])}var u=r[e];return r[e]=s,o.languages.DFS(o.languages,function(t,n){n===u&&t!=e&&(this[t]=s)}),s},DFS:function e(t,n,r,i){i=i||{};var s=o.util.objId;for(var a in t)if(t.hasOwnProperty(a)){n.call(t,a,t[a],r||a);var c=t[a],u=o.util.type(c);"Object"!==u||i[s(c)]?"Array"!==u||i[s(c)]||(i[s(c)]=!0,e(c,n,a,i)):(i[s(c)]=!0,e(c,n,null,i))}}},plugins:{},highlightAll:function(e,t){o.highlightAllUnder(document,e,t)},highlightAllUnder:function(e,t,n){var r={callback:n,container:e,selector:'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'};o.hooks.run("before-highlightall",r),r.elements=Array.prototype.slice.apply(r.container.querySelectorAll(r.selector)),o.hooks.run("before-all-elements-highlight",r);for(var i,s=0;i=r.elements[s++];)o.highlightElement(i,!0===t,r.callback)},highlightElement:function(t,n,r){var i=o.util.getLanguage(t),s=o.languages[i];o.util.setLanguage(t,i);var a=t.parentElement;a&&"pre"===a.nodeName.toLowerCase()&&o.util.setLanguage(a,i);var c={element:t,language:i,grammar:s,code:t.textContent};function u(e){c.highlightedCode=e,o.hooks.run("before-insert",c),c.element.innerHTML=c.highlightedCode,o.hooks.run("after-highlight",c),o.hooks.run("complete",c),r&&r.call(c.element)}if(o.hooks.run("before-sanity-check",c),(a=c.element.parentElement)&&"pre"===a.nodeName.toLowerCase()&&!a.hasAttribute("tabindex")&&a.setAttribute("tabindex","0"),!c.code)return o.hooks.run("complete",c),void(r&&r.call(c.element));if(o.hooks.run("before-highlight",c),c.grammar)if(n&&e.Worker){var l=new Worker(o.filename);l.onmessage=function(e){u(e.data)},l.postMessage(JSON.stringify({language:c.language,code:c.code,immediateClose:!0}))}else u(o.highlight(c.code,c.grammar,c.language));else u(o.util.encode(c.code))},highlight:function(e,t,n){var r={code:e,grammar:t,language:n};if(o.hooks.run("before-tokenize",r),!r.grammar)throw new Error('The language "'+r.language+'" has no grammar.');return r.tokens=o.tokenize(r.code,r.grammar),o.hooks.run("after-tokenize",r),i.stringify(o.util.encode(r.tokens),r.language)},tokenize:function(e,t){var n=t.rest;if(n){for(var r in n)t[r]=n[r];delete t.rest}var o=new c;return u(o,o.head,e),a(e,o,t,o.head,0),function(e){for(var t=[],n=e.head.next;n!==e.tail;)t.push(n.value),n=n.next;return t}(o)},hooks:{all:{},add:function(e,t){var n=o.hooks.all;n[e]=n[e]||[],n[e].push(t)},run:function(e,t){var n=o.hooks.all[e];if(n&&n.length)for(var r,i=0;r=n[i++];)r(t)}},Token:i};function i(e,t,n,r){this.type=e,this.content=t,this.alias=n,this.length=0|(r||"").length}function s(e,t,n,r){e.lastIndex=t;var o=e.exec(n);if(o&&r&&o[1]){var i=o[1].length;o.index+=i,o[0]=o[0].slice(i)}return o}function a(e,t,n,r,c,d){for(var h in n)if(n.hasOwnProperty(h)&&n[h]){var p=n[h];p=Array.isArray(p)?p:[p];for(var f=0;f<p.length;++f){if(d&&d.cause==h+","+f)return;var m=p[f],g=m.inside,v=!!m.lookbehind,_=!!m.greedy,y=m.alias;if(_&&!m.pattern.global){var b=m.pattern.toString().match(/[imsuy]*$/)[0];m.pattern=RegExp(m.pattern.source,b+"g")}for(var w=m.pattern||m,E=r.next,I=c;E!==t.tail&&!(d&&I>=d.reach);I+=E.value.length,E=E.next){var S=E.value;if(t.length>e.length)return;if(!(S instanceof i)){var A,O=1;if(_){if(!(A=s(w,I,e,v))||A.index>=e.length)break;var T=A.index,C=A.index+A[0].length,k=I;for(k+=E.value.length;T>=k;)k+=(E=E.next).value.length;if(I=k-=E.value.length,E.value instanceof i)continue;for(var P=E;P!==t.tail&&(k<C||"string"==typeof P.value);P=P.next)O++,k+=P.value.length;O--,S=e.slice(I,k),A.index-=I}else if(!(A=s(w,0,S,v)))continue;T=A.index;var N=A[0],R=S.slice(0,T),M=S.slice(T+N.length),x=I+S.length;d&&x>d.reach&&(d.reach=x);var L=E.prev;if(R&&(L=u(t,L,R),I+=R.length),l(t,L,O),E=u(t,L,new i(h,g?o.tokenize(N,g):N,y,N)),M&&u(t,E,M),O>1){var D={cause:h+","+f,reach:x};a(e,t,n,E.prev,I,D),d&&D.reach>d.reach&&(d.reach=D.reach)}}}}}}function c(){var e={value:null,prev:null,next:null},t={value:null,prev:e,next:null};e.next=t,this.head=e,this.tail=t,this.length=0}function u(e,t,n){var r=t.next,o={value:n,prev:t,next:r};return t.next=o,r.prev=o,e.length++,o}function l(e,t,n){for(var r=t.next,o=0;o<n&&r!==e.tail;o++)r=r.next;t.next=r,r.prev=t,e.length-=o}if(e.Prism=o,i.stringify=function e(t,n){if("string"==typeof t)return t;if(Array.isArray(t)){var r="";return t.forEach(function(t){r+=e(t,n)}),r}var i={type:t.type,content:e(t.content,n),tag:"span",classes:["token",t.type],attributes:{},language:n},s=t.alias;s&&(Array.isArray(s)?Array.prototype.push.apply(i.classes,s):i.classes.push(s)),o.hooks.run("wrap",i);var a="";for(var c in i.attributes)a+=" "+c+'="'+(i.attributes[c]||"").replace(/"/g,"&quot;")+'"';return"<"+i.tag+' class="'+i.classes.join(" ")+'"'+a+">"+i.content+"</"+i.tag+">"},!e.document)return e.addEventListener?(o.disableWorkerMessageHandler||e.addEventListener("message",function(t){var n=JSON.parse(t.data),r=n.language,i=n.code,s=n.immediateClose;e.postMessage(o.highlight(i,o.languages[r],r)),s&&e.close()},!1),o):o;var d=o.util.currentScript();function h(){o.manual||o.highlightAll()}if(d&&(o.filename=d.src,d.hasAttribute("data-manual")&&(o.manual=!0)),!o.manual){var p=document.readyState;"loading"===p||"interactive"===p&&d&&d.defer?document.addEventListener("DOMContentLoaded",h):window.requestAnimationFrame?window.requestAnimationFrame(h):window.setTimeout(h,16)}return o}("undefined"!=typeof window?window:"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope?self:{});e.exports&&(e.exports=r),void 0!==n.g&&(n.g.Prism=r),r.languages.markup={comment:{pattern:/<!--(?:(?!<!--)[\s\S])*?-->/,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^<!|>$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},{pattern:/^(\s*)["']|["']$/,lookbehind:!0}]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},r.languages.markup.tag.inside["attr-value"].inside.entity=r.languages.markup.entity,r.languages.markup.doctype.inside["internal-subset"].inside=r.languages.markup,r.hooks.add("wrap",function(e){"entity"===e.type&&(e.attributes.title=e.content.replace(/&amp;/,"&"))}),Object.defineProperty(r.languages.markup.tag,"addInlined",{value:function(e,t){var n={};n["language-"+t]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:r.languages[t]},n.cdata=/^<!\[CDATA\[|\]\]>$/i;var o={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:n}};o["language-"+t]={pattern:/[\s\S]+/,inside:r.languages[t]};var i={};i[e]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,function(){return e}),"i"),lookbehind:!0,greedy:!0,inside:o},r.languages.insertBefore("markup","cdata",i)}}),Object.defineProperty(r.languages.markup.tag,"addAttribute",{value:function(e,t){r.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+e+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[t,"language-"+t],inside:r.languages[t]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),r.languages.html=r.languages.markup,r.languages.mathml=r.languages.markup,r.languages.svg=r.languages.markup,r.languages.xml=r.languages.extend("markup",{}),r.languages.ssml=r.languages.xml,r.languages.atom=r.languages.xml,r.languages.rss=r.languages.xml,function(e){var t=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;e.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:RegExp("@[\\w-](?:"+/[^;{\s"']|\s+(?!\s)/.source+"|"+t.source+")*?"+/(?:;|(?=\s*\{))/.source),inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+t.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+t.source+"$"),alias:"url"}}},selector:{pattern:RegExp("(^|[{}\\s])[^{}\\s](?:[^{};\"'\\s]|\\s+(?![\\s{])|"+t.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:t,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},e.languages.css.atrule.inside.rest=e.languages.css;var n=e.languages.markup;n&&(n.tag.addInlined("style","css"),n.tag.addAttribute("style","css"))}(r),r.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|trait)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:break|catch|continue|do|else|finally|for|function|if|in|instanceof|new|null|return|throw|try|while)\b/,boolean:/\b(?:false|true)\b/,function:/\b\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/},r.languages.javascript=r.languages.extend("clike",{"class-name":[r.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:{pattern:RegExp(/(^|[^\w$])/.source+"(?:"+/NaN|Infinity/.source+"|"+/0[bB][01]+(?:_[01]+)*n?/.source+"|"+/0[oO][0-7]+(?:_[0-7]+)*n?/.source+"|"+/0[xX][\dA-Fa-f]+(?:_[\dA-Fa-f]+)*n?/.source+"|"+/\d+(?:_\d+)*n/.source+"|"+/(?:\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[Ee][+-]?\d+(?:_\d+)*)?/.source+")"+/(?![\w$])/.source),lookbehind:!0},operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),r.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/,r.languages.insertBefore("javascript","keyword",{regex:{pattern:RegExp(/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)/.source+/\//.source+"(?:"+/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}/.source+"|"+/(?:\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.)*\])*\])*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}v[dgimyus]{0,7}/.source+")"+/(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/.source),lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:r.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:r.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:r.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:r.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:r.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),r.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:r.languages.javascript}},string:/[\s\S]+/}},"string-property":{pattern:/((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,lookbehind:!0,greedy:!0,alias:"property"}}),r.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}}),r.languages.markup&&(r.languages.markup.tag.addInlined("script","javascript"),r.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript")),r.languages.js=r.languages.javascript,function(){if(void 0!==r&&"undefined"!=typeof document){Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector);var e={js:"javascript",py:"python",rb:"ruby",ps1:"powershell",psm1:"powershell",sh:"bash",bat:"batch",h:"c",tex:"latex"},t="data-src-status",n="loading",o="loaded",i="pre[data-src]:not(["+t+'="'+o+'"]):not(['+t+'="'+n+'"])';r.hooks.add("before-highlightall",function(e){e.selector+=", "+i}),r.hooks.add("before-sanity-check",function(s){var a=s.element;if(a.matches(i)){s.code="",a.setAttribute(t,n);var c=a.appendChild(document.createElement("CODE"));c.textContent="Loading…";var u=a.getAttribute("data-src"),l=s.language;if("none"===l){var d=(/\.(\w+)$/.exec(u)||[,"none"])[1];l=e[d]||d}r.util.setLanguage(c,l),r.util.setLanguage(a,l);var h=r.plugins.autoloader;h&&h.loadLanguages(l),function(e,t,n){var r=new XMLHttpRequest;r.open("GET",e,!0),r.onreadystatechange=function(){4==r.readyState&&(r.status<400&&r.responseText?t(r.responseText):r.status>=400?n("✖ Error "+r.status+" while fetching file: "+r.statusText):n("✖ Error: File does not exist or is empty"))},r.send(null)}(u,function(e){a.setAttribute(t,o);var n=function(e){var t=/^\s*(\d+)\s*(?:(,)\s*(?:(\d+)\s*)?)?$/.exec(e||"");if(t){var n=Number(t[1]),r=t[2],o=t[3];return r?o?[n,Number(o)]:[n,void 0]:[n,n]}}(a.getAttribute("data-range"));if(n){var i=e.split(/\r\n?|\n/g),s=n[0],u=null==n[1]?i.length:n[1];s<0&&(s+=i.length),s=Math.max(0,Math.min(s-1,i.length)),u<0&&(u+=i.length),u=Math.max(0,Math.min(u,i.length)),e=i.slice(s,u).join("\n"),a.hasAttribute("data-start")||a.setAttribute("data-start",String(s+1))}c.textContent=e,r.highlightElement(c)},function(e){a.setAttribute(t,"failed"),c.textContent=e})}}),r.plugins.fileHighlight={highlight:function(e){for(var t,n=(e||document).querySelectorAll(i),o=0;t=n[o++];)r.highlightElement(t)}};var s=!1;r.fileHighlight=function(){s||(console.warn("Prism.fileHighlight is deprecated. Use `Prism.plugins.fileHighlight.highlight` instead."),s=!0),r.plugins.fileHighlight.highlight.apply(this,arguments)}}}()},1058:function(e,t,n){"use strict";e.exports=n(9003)},9003:function(e,t,n){"use strict";const r=Object.freeze({}),o=Array.isArray;function i(e){return null==e}function s(e){return null!=e}function a(e){return!0===e}function c(e){return"string"==typeof e||"number"==typeof e||"symbol"==typeof e||"boolean"==typeof e}function u(e){return"function"==typeof e}function l(e){return null!==e&&"object"==typeof e}const d=Object.prototype.toString;function h(e){return"[object Object]"===d.call(e)}function p(e){const t=parseFloat(String(e));return t>=0&&Math.floor(t)===t&&isFinite(e)}function f(e){return s(e)&&"function"==typeof e.then&&"function"==typeof e.catch}function m(e){return null==e?"":Array.isArray(e)||h(e)&&e.toString===d?JSON.stringify(e,g,2):String(e)}function g(e,t){return t&&t.__v_isRef?t.value:t}function v(e){const t=parseFloat(e);return isNaN(t)?e:t}function _(e,t){const n=Object.create(null),r=e.split(",");for(let e=0;e<r.length;e++)n[r[e]]=!0;return t?e=>n[e.toLowerCase()]:e=>n[e]}const y=_("key,ref,slot,slot-scope,is");function b(e,t){const n=e.length;if(n){if(t===e[n-1])return void(e.length=n-1);const r=e.indexOf(t);if(r>-1)return e.splice(r,1)}}const w=Object.prototype.hasOwnProperty;function E(e,t){return w.call(e,t)}function I(e){const t=Object.create(null);return function(n){return t[n]||(t[n]=e(n))}}const S=/-(\w)/g,A=I(e=>e.replace(S,(e,t)=>t?t.toUpperCase():"")),O=I(e=>e.charAt(0).toUpperCase()+e.slice(1)),T=/\B([A-Z])/g,C=I(e=>e.replace(T,"-$1").toLowerCase()),k=Function.prototype.bind?function(e,t){return e.bind(t)}:function(e,t){function n(n){const r=arguments.length;return r?r>1?e.apply(t,arguments):e.call(t,n):e.call(t)}return n._length=e.length,n};function P(e,t){t=t||0;let n=e.length-t;const r=new Array(n);for(;n--;)r[n]=e[n+t];return r}function N(e,t){for(const n in t)e[n]=t[n];return e}function R(e){const t={};for(let n=0;n<e.length;n++)e[n]&&N(t,e[n]);return t}function M(e,t,n){}const x=(e,t,n)=>!1,L=e=>e;function D(e,t){if(e===t)return!0;const n=l(e),r=l(t);if(!n||!r)return!n&&!r&&String(e)===String(t);try{const n=Array.isArray(e),r=Array.isArray(t);if(n&&r)return e.length===t.length&&e.every((e,n)=>D(e,t[n]));if(e instanceof Date&&t instanceof Date)return e.getTime()===t.getTime();if(n||r)return!1;{const n=Object.keys(e),r=Object.keys(t);return n.length===r.length&&n.every(n=>D(e[n],t[n]))}}catch(e){return!1}}function U(e,t){for(let n=0;n<e.length;n++)if(D(e[n],t))return n;return-1}function j(e){let t=!1;return function(){t||(t=!0,e.apply(this,arguments))}}function F(e,t){return e===t?0===e&&1/e!=1/t:e==e||t==t}const $="data-server-rendered",G=["component","directive","filter"],B=["beforeCreate","created","beforeMount","mounted","beforeUpdate","updated","beforeDestroy","destroyed","activated","deactivated","errorCaptured","serverPrefetch","renderTracked","renderTriggered"];var q={optionMergeStrategies:Object.create(null),silent:!1,productionTip:!1,devtools:!1,performance:!1,errorHandler:null,warnHandler:null,ignoredElements:[],keyCodes:Object.create(null),isReservedTag:x,isReservedAttr:x,isUnknownElement:x,getTagNamespace:M,parsePlatformTagName:L,mustUseProp:x,async:!0,_lifecycleHooks:B};function H(e){const t=(e+"").charCodeAt(0);return 36===t||95===t}function z(e,t,n,r){Object.defineProperty(e,t,{value:n,enumerable:!!r,writable:!0,configurable:!0})}const W=new RegExp(`[^${/a-zA-Z\u00B7\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u037D\u037F-\u1FFF\u200C-\u200D\u203F-\u2040\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD/.source}.$_\\d]`),V="__proto__"in{},K="undefined"!=typeof window,Y=K&&window.navigator.userAgent.toLowerCase(),Q=Y&&/msie|trident/.test(Y),X=Y&&Y.indexOf("msie 9.0")>0,J=Y&&Y.indexOf("edge/")>0;Y&&Y.indexOf("android");const Z=Y&&/iphone|ipad|ipod|ios/.test(Y);Y&&/chrome\/\d+/.test(Y),Y&&/phantomjs/.test(Y);const ee=Y&&Y.match(/firefox\/(\d+)/),te={}.watch;let ne,re=!1;if(K)try{const e={};Object.defineProperty(e,"passive",{get(){re=!0}}),window.addEventListener("test-passive",null,e)}catch(r){}const oe=()=>(void 0===ne&&(ne=!K&&void 0!==n.g&&n.g.process&&"server"===n.g.process.env.VUE_ENV),ne),ie=K&&window.__VUE_DEVTOOLS_GLOBAL_HOOK__;function se(e){return"function"==typeof e&&/native code/.test(e.toString())}const ae="undefined"!=typeof Symbol&&se(Symbol)&&"undefined"!=typeof Reflect&&se(Reflect.ownKeys);let ce;ce="undefined"!=typeof Set&&se(Set)?Set:class{constructor(){this.set=Object.create(null)}has(e){return!0===this.set[e]}add(e){this.set[e]=!0}clear(){this.set=Object.create(null)}};let ue=null;function le(e=null){e||ue&&ue._scope.off(),ue=e,e&&e._scope.on()}class de{constructor(e,t,n,r,o,i,s,a){this.tag=e,this.data=t,this.children=n,this.text=r,this.elm=o,this.ns=void 0,this.context=i,this.fnContext=void 0,this.fnOptions=void 0,this.fnScopeId=void 0,this.key=t&&t.key,this.componentOptions=s,this.componentInstance=void 0,this.parent=void 0,this.raw=!1,this.isStatic=!1,this.isRootInsert=!0,this.isComment=!1,this.isCloned=!1,this.isOnce=!1,this.asyncFactory=a,this.asyncMeta=void 0,this.isAsyncPlaceholder=!1}get child(){return this.componentInstance}}const he=(e="")=>{const t=new de;return t.text=e,t.isComment=!0,t};function pe(e){return new de(void 0,void 0,void 0,String(e))}function fe(e){const t=new de(e.tag,e.data,e.children&&e.children.slice(),e.text,e.elm,e.context,e.componentOptions,e.asyncFactory);return t.ns=e.ns,t.isStatic=e.isStatic,t.key=e.key,t.isComment=e.isComment,t.fnContext=e.fnContext,t.fnOptions=e.fnOptions,t.fnScopeId=e.fnScopeId,t.asyncMeta=e.asyncMeta,t.isCloned=!0,t}let me=0;const ge=[];class ve{constructor(){this._pending=!1,this.id=me++,this.subs=[]}addSub(e){this.subs.push(e)}removeSub(e){this.subs[this.subs.indexOf(e)]=null,this._pending||(this._pending=!0,ge.push(this))}depend(e){ve.target&&ve.target.addDep(this)}notify(e){const t=this.subs.filter(e=>e);for(let e=0,n=t.length;e<n;e++)t[e].update()}}ve.target=null;const _e=[];function ye(e){_e.push(e),ve.target=e}function be(){_e.pop(),ve.target=_e[_e.length-1]}const we=Array.prototype,Ee=Object.create(we);["push","pop","shift","unshift","splice","sort","reverse"].forEach(function(e){const t=we[e];z(Ee,e,function(...n){const r=t.apply(this,n),o=this.__ob__;let i;switch(e){case"push":case"unshift":i=n;break;case"splice":i=n.slice(2)}return i&&o.observeArray(i),o.dep.notify(),r})});const Ie=Object.getOwnPropertyNames(Ee),Se={};let Ae=!0;function Oe(e){Ae=e}const Te={notify:M,depend:M,addSub:M,removeSub:M};class Ce{constructor(e,t=!1,n=!1){if(this.value=e,this.shallow=t,this.mock=n,this.dep=n?Te:new ve,this.vmCount=0,z(e,"__ob__",this),o(e)){if(!n)if(V)e.__proto__=Ee;else for(let t=0,n=Ie.length;t<n;t++){const n=Ie[t];z(e,n,Ee[n])}t||this.observeArray(e)}else{const r=Object.keys(e);for(let o=0;o<r.length;o++)Pe(e,r[o],Se,void 0,t,n)}}observeArray(e){for(let t=0,n=e.length;t<n;t++)ke(e[t],!1,this.mock)}}function ke(e,t,n){return e&&E(e,"__ob__")&&e.__ob__ instanceof Ce?e.__ob__:!Ae||!n&&oe()||!o(e)&&!h(e)||!Object.isExtensible(e)||e.__v_skip||$e(e)||e instanceof de?void 0:new Ce(e,t,n)}function Pe(e,t,n,r,i,s,a=!1){const c=new ve,u=Object.getOwnPropertyDescriptor(e,t);if(u&&!1===u.configurable)return;const l=u&&u.get,d=u&&u.set;l&&!d||n!==Se&&2!==arguments.length||(n=e[t]);let h=i?n&&n.__ob__:ke(n,!1,s);return Object.defineProperty(e,t,{enumerable:!0,configurable:!0,get:function(){const t=l?l.call(e):n;return ve.target&&(c.depend(),h&&(h.dep.depend(),o(t)&&Me(t))),$e(t)&&!i?t.value:t},set:function(t){const r=l?l.call(e):n;if(F(r,t)){if(d)d.call(e,t);else{if(l)return;if(!i&&$e(r)&&!$e(t))return void(r.value=t);n=t}h=i?t&&t.__ob__:ke(t,!1,s),c.notify()}}}),c}function Ne(e,t,n){if(je(e))return;const r=e.__ob__;return o(e)&&p(t)?(e.length=Math.max(e.length,t),e.splice(t,1,n),r&&!r.shallow&&r.mock&&ke(n,!1,!0),n):t in e&&!(t in Object.prototype)?(e[t]=n,n):e._isVue||r&&r.vmCount?n:r?(Pe(r.value,t,n,void 0,r.shallow,r.mock),r.dep.notify(),n):(e[t]=n,n)}function Re(e,t){if(o(e)&&p(t))return void e.splice(t,1);const n=e.__ob__;e._isVue||n&&n.vmCount||je(e)||E(e,t)&&(delete e[t],n&&n.dep.notify())}function Me(e){for(let t,n=0,r=e.length;n<r;n++)t=e[n],t&&t.__ob__&&t.__ob__.dep.depend(),o(t)&&Me(t)}function xe(e){return Le(e,!0),z(e,"__v_isShallow",!0),e}function Le(e,t){je(e)||ke(e,t,oe())}function De(e){return je(e)?De(e.__v_raw):!(!e||!e.__ob__)}function Ue(e){return!(!e||!e.__v_isShallow)}function je(e){return!(!e||!e.__v_isReadonly)}const Fe="__v_isRef";function $e(e){return!(!e||!0!==e.__v_isRef)}function Ge(e,t){if($e(e))return e;const n={};return z(n,Fe,!0),z(n,"__v_isShallow",t),z(n,"dep",Pe(n,"value",e,null,t,oe())),n}function Be(e,t,n){Object.defineProperty(e,n,{enumerable:!0,configurable:!0,get:()=>{const e=t[n];if($e(e))return e.value;{const t=e&&e.__ob__;return t&&t.dep.depend(),e}},set:e=>{const r=t[n];$e(r)&&!$e(e)?r.value=e:t[n]=e}})}function qe(e,t,n){const r=e[t];if($e(r))return r;const o={get value(){const r=e[t];return void 0===r?n:r},set value(n){e[t]=n}};return z(o,Fe,!0),o}function He(e){return ze(e,!1)}function ze(e,t){if(!h(e))return e;if(je(e))return e;const n=t?"__v_rawToShallowReadonly":"__v_rawToReadonly",r=e[n];if(r)return r;const o=Object.create(Object.getPrototypeOf(e));z(e,n,o),z(o,"__v_isReadonly",!0),z(o,"__v_raw",e),$e(e)&&z(o,Fe,!0),(t||Ue(e))&&z(o,"__v_isShallow",!0);const i=Object.keys(e);for(let n=0;n<i.length;n++)We(o,e,i[n],t);return o}function We(e,t,n,r){Object.defineProperty(e,n,{enumerable:!0,configurable:!0,get(){const e=t[n];return r||!h(e)?e:He(e)},set(){}})}const Ve="watcher",Ke=`${Ve} callback`,Ye=`${Ve} getter`,Qe=`${Ve} cleanup`;function Xe(e,t){return Ze(e,null,{flush:"post"})}const Je={};function Ze(e,t,{immediate:n,deep:i,flush:s="pre",onTrack:a,onTrigger:c}=r){const l=ue,d=(e,t,n=null)=>{const r=Ht(e,null,n,l,t);return i&&r&&r.__ob__&&r.__ob__.dep.depend(),r};let h,p,f=!1,m=!1;if($e(e)?(h=()=>e.value,f=Ue(e)):De(e)?(h=()=>(e.__ob__.dep.depend(),e),i=!0):o(e)?(m=!0,f=e.some(e=>De(e)||Ue(e)),h=()=>e.map(e=>$e(e)?e.value:De(e)?(e.__ob__.dep.depend(),gn(e)):u(e)?d(e,Ye):void 0)):h=u(e)?t?()=>d(e,Ye):()=>{if(!l||!l._isDestroyed)return p&&p(),d(e,Ve,[g])}:M,t&&i){const e=h;h=()=>gn(e())}let g=e=>{p=v.onStop=()=>{d(e,Qe)}};if(oe())return g=M,t?n&&d(t,Ke,[h(),m?[]:void 0,g]):h(),M;const v=new bn(ue,h,M,{lazy:!0});v.noRecurse=!t;let _=m?[]:Je;return v.run=()=>{if(v.active)if(t){const e=v.get();(i||f||(m?e.some((e,t)=>F(e,_[t])):F(e,_)))&&(p&&p(),d(t,Ke,[e,_===Je?void 0:_,g]),_=e)}else v.get()},"sync"===s?v.update=v.run:"post"===s?(v.post=!0,v.update=()=>Gn(v)):v.update=()=>{if(l&&l===ue&&!l._isMounted){const e=l._preWatchers||(l._preWatchers=[]);e.indexOf(v)<0&&e.push(v)}else Gn(v)},t?n?v.run():_=v.get():"post"===s&&l?l.$once("hook:mounted",()=>v.get()):v.get(),()=>{v.teardown()}}let et;class tt{constructor(e=!1){this.detached=e,this.active=!0,this.effects=[],this.cleanups=[],this.parent=et,!e&&et&&(this.index=(et.scopes||(et.scopes=[])).push(this)-1)}run(e){if(this.active){const t=et;try{return et=this,e()}finally{et=t}}}on(){et=this}off(){et=this.parent}stop(e){if(this.active){let t,n;for(t=0,n=this.effects.length;t<n;t++)this.effects[t].teardown();for(t=0,n=this.cleanups.length;t<n;t++)this.cleanups[t]();if(this.scopes)for(t=0,n=this.scopes.length;t<n;t++)this.scopes[t].stop(!0);if(!this.detached&&this.parent&&!e){const e=this.parent.scopes.pop();e&&e!==this&&(this.parent.scopes[this.index]=e,e.index=this.index)}this.parent=void 0,this.active=!1}}}function nt(){return et}function rt(e){const t=e._provided,n=e.$parent&&e.$parent._provided;return n===t?e._provided=Object.create(n):t}const ot=I(e=>{const t="&"===e.charAt(0),n="~"===(e=t?e.slice(1):e).charAt(0),r="!"===(e=n?e.slice(1):e).charAt(0);return{name:e=r?e.slice(1):e,once:n,capture:r,passive:t}});function it(e,t){function n(){const e=n.fns;if(!o(e))return Ht(e,null,arguments,t,"v-on handler");{const n=e.slice();for(let e=0;e<n.length;e++)Ht(n[e],null,arguments,t,"v-on handler")}}return n.fns=e,n}function st(e,t,n,r,o,s){let c,u,l,d;for(c in e)u=e[c],l=t[c],d=ot(c),i(u)||(i(l)?(i(u.fns)&&(u=e[c]=it(u,s)),a(d.once)&&(u=e[c]=o(d.name,u,d.capture)),n(d.name,u,d.capture,d.passive,d.params)):u!==l&&(l.fns=u,e[c]=l));for(c in t)i(e[c])&&(d=ot(c),r(d.name,t[c],d.capture))}function at(e,t,n){let r;e instanceof de&&(e=e.data.hook||(e.data.hook={}));const o=e[t];function c(){n.apply(this,arguments),b(r.fns,c)}i(o)?r=it([c]):s(o.fns)&&a(o.merged)?(r=o,r.fns.push(c)):r=it([o,c]),r.merged=!0,e[t]=r}function ct(e,t,n,r,o){if(s(t)){if(E(t,n))return e[n]=t[n],o||delete t[n],!0;if(E(t,r))return e[n]=t[r],o||delete t[r],!0}return!1}function ut(e){return c(e)?[pe(e)]:o(e)?dt(e):void 0}function lt(e){return s(e)&&s(e.text)&&!1===e.isComment}function dt(e,t){const n=[];let r,u,l,d;for(r=0;r<e.length;r++)u=e[r],i(u)||"boolean"==typeof u||(l=n.length-1,d=n[l],o(u)?u.length>0&&(u=dt(u,`${t||""}_${r}`),lt(u[0])&&lt(d)&&(n[l]=pe(d.text+u[0].text),u.shift()),n.push.apply(n,u)):c(u)?lt(d)?n[l]=pe(d.text+u):""!==u&&n.push(pe(u)):lt(u)&&lt(d)?n[l]=pe(d.text+u.text):(a(e._isVList)&&s(u.tag)&&i(u.key)&&s(t)&&(u.key=`__vlist${t}_${r}__`),n.push(u)));return n}function ht(e,t){let n,r,i,a,c=null;if(o(e)||"string"==typeof e)for(c=new Array(e.length),n=0,r=e.length;n<r;n++)c[n]=t(e[n],n);else if("number"==typeof e)for(c=new Array(e),n=0;n<e;n++)c[n]=t(n+1,n);else if(l(e))if(ae&&e[Symbol.iterator]){c=[];const n=e[Symbol.iterator]();let r=n.next();for(;!r.done;)c.push(t(r.value,c.length)),r=n.next()}else for(i=Object.keys(e),c=new Array(i.length),n=0,r=i.length;n<r;n++)a=i[n],c[n]=t(e[a],a,n);return s(c)||(c=[]),c._isVList=!0,c}function pt(e,t,n,r){const o=this.$scopedSlots[e];let i;o?(n=n||{},r&&(n=N(N({},r),n)),i=o(n)||(u(t)?t():t)):i=this.$slots[e]||(u(t)?t():t);const s=n&&n.slot;return s?this.$createElement("template",{slot:s},i):i}function ft(e){return ir(this.$options,"filters",e)||L}function mt(e,t){return o(e)?-1===e.indexOf(t):e!==t}function gt(e,t,n,r,o){const i=q.keyCodes[t]||n;return o&&r&&!q.keyCodes[t]?mt(o,r):i?mt(i,e):r?C(r)!==t:void 0===e}function vt(e,t,n,r,i){if(n&&l(n)){let s;o(n)&&(n=R(n));for(const o in n){if("class"===o||"style"===o||y(o))s=e;else{const n=e.attrs&&e.attrs.type;s=r||q.mustUseProp(t,n,o)?e.domProps||(e.domProps={}):e.attrs||(e.attrs={})}const a=A(o),c=C(o);a in s||c in s||(s[o]=n[o],!i)||((e.on||(e.on={}))[`update:${o}`]=function(e){n[o]=e})}}return e}function _t(e,t){const n=this._staticTrees||(this._staticTrees=[]);let r=n[e];return r&&!t||(r=n[e]=this.$options.staticRenderFns[e].call(this._renderProxy,this._c,this),bt(r,`__static__${e}`,!1)),r}function yt(e,t,n){return bt(e,`__once__${t}${n?`_${n}`:""}`,!0),e}function bt(e,t,n){if(o(e))for(let r=0;r<e.length;r++)e[r]&&"string"!=typeof e[r]&&wt(e[r],`${t}_${r}`,n);else wt(e,t,n)}function wt(e,t,n){e.isStatic=!0,e.key=t,e.isOnce=n}function Et(e,t){if(t&&h(t)){const n=e.on=e.on?N({},e.on):{};for(const e in t){const r=n[e],o=t[e];n[e]=r?[].concat(r,o):o}}return e}function It(e,t,n,r){t=t||{$stable:!n};for(let r=0;r<e.length;r++){const i=e[r];o(i)?It(i,t,n):i&&(i.proxy&&(i.fn.proxy=!0),t[i.key]=i.fn)}return r&&(t.$key=r),t}function St(e,t){for(let n=0;n<t.length;n+=2){const r=t[n];"string"==typeof r&&r&&(e[t[n]]=t[n+1])}return e}function At(e,t){return"string"==typeof e?t+e:e}function Ot(e){e._o=yt,e._n=v,e._s=m,e._l=ht,e._t=pt,e._q=D,e._i=U,e._m=_t,e._f=ft,e._k=gt,e._b=vt,e._v=pe,e._e=he,e._u=It,e._g=Et,e._d=St,e._p=At}function Tt(e,t){if(!e||!e.length)return{};const n={};for(let r=0,o=e.length;r<o;r++){const o=e[r],i=o.data;if(i&&i.attrs&&i.attrs.slot&&delete i.attrs.slot,o.context!==t&&o.fnContext!==t||!i||null==i.slot)(n.default||(n.default=[])).push(o);else{const e=i.slot,t=n[e]||(n[e]=[]);"template"===o.tag?t.push.apply(t,o.children||[]):t.push(o)}}for(const e in n)n[e].every(Ct)&&delete n[e];return n}function Ct(e){return e.isComment&&!e.asyncFactory||" "===e.text}function kt(e){return e.isComment&&e.asyncFactory}function Pt(e,t,n,o){let i;const s=Object.keys(n).length>0,a=t?!!t.$stable:!s,c=t&&t.$key;if(t){if(t._normalized)return t._normalized;if(a&&o&&o!==r&&c===o.$key&&!s&&!o.$hasNormal)return o;i={};for(const r in t)t[r]&&"$"!==r[0]&&(i[r]=Nt(e,n,r,t[r]))}else i={};for(const e in n)e in i||(i[e]=Rt(n,e));return t&&Object.isExtensible(t)&&(t._normalized=i),z(i,"$stable",a),z(i,"$key",c),z(i,"$hasNormal",s),i}function Nt(e,t,n,r){const i=function(){const t=ue;le(e);let n=arguments.length?r.apply(null,arguments):r({});n=n&&"object"==typeof n&&!o(n)?[n]:ut(n);const i=n&&n[0];return le(t),n&&(!i||1===n.length&&i.isComment&&!kt(i))?void 0:n};return r.proxy&&Object.defineProperty(t,n,{get:i,enumerable:!0,configurable:!0}),i}function Rt(e,t){return()=>e[t]}function Mt(e){return{get attrs(){if(!e._attrsProxy){const t=e._attrsProxy={};z(t,"_v_attr_proxy",!0),xt(t,e.$attrs,r,e,"$attrs")}return e._attrsProxy},get listeners(){return e._listenersProxy||xt(e._listenersProxy={},e.$listeners,r,e,"$listeners"),e._listenersProxy},get slots(){return function(e){return e._slotsProxy||Dt(e._slotsProxy={},e.$scopedSlots),e._slotsProxy}(e)},emit:k(e.$emit,e),expose(t){t&&Object.keys(t).forEach(n=>Be(e,t,n))}}}function xt(e,t,n,r,o){let i=!1;for(const s in t)s in e?t[s]!==n[s]&&(i=!0):(i=!0,Lt(e,s,r,o));for(const n in e)n in t||(i=!0,delete e[n]);return i}function Lt(e,t,n,r){Object.defineProperty(e,t,{enumerable:!0,configurable:!0,get:()=>n[r][t]})}function Dt(e,t){for(const n in t)e[n]=t[n];for(const n in e)n in t||delete e[n]}function Ut(){const e=ue;return e._setupContext||(e._setupContext=Mt(e))}let jt=null;function Ft(e,t){return(e.__esModule||ae&&"Module"===e[Symbol.toStringTag])&&(e=e.default),l(e)?t.extend(e):e}function $t(e){if(o(e))for(let t=0;t<e.length;t++){const n=e[t];if(s(n)&&(s(n.componentOptions)||kt(n)))return n}}function Gt(e,t,n,r,i,d){return(o(n)||c(n))&&(i=r,r=n,n=void 0),a(d)&&(i=2),function(e,t,n,r,i){if(s(n)&&s(n.__ob__))return he();if(s(n)&&s(n.is)&&(t=n.is),!t)return he();let a,c;if(o(r)&&u(r[0])&&((n=n||{}).scopedSlots={default:r[0]},r.length=0),2===i?r=ut(r):1===i&&(r=function(e){for(let t=0;t<e.length;t++)if(o(e[t]))return Array.prototype.concat.apply([],e);return e}(r)),"string"==typeof t){let o;c=e.$vnode&&e.$vnode.ns||q.getTagNamespace(t),a=q.isReservedTag(t)?new de(q.parsePlatformTagName(t),n,r,void 0,void 0,e):n&&n.pre||!s(o=ir(e.$options,"components",t))?new de(t,n,r,void 0,void 0,e):Yn(o,n,e,r,t)}else a=Yn(t,n,e,r);return o(a)?a:s(a)?(s(c)&&Bt(a,c),s(n)&&function(e){l(e.style)&&gn(e.style),l(e.class)&&gn(e.class)}(n),a):he()}(e,t,n,r,i)}function Bt(e,t,n){if(e.ns=t,"foreignObject"===e.tag&&(t=void 0,n=!0),s(e.children))for(let r=0,o=e.children.length;r<o;r++){const o=e.children[r];s(o.tag)&&(i(o.ns)||a(n)&&"svg"!==o.tag)&&Bt(o,t,n)}}function qt(e,t,n){ye();try{if(t){let r=t;for(;r=r.$parent;){const o=r.$options.errorCaptured;if(o)for(let i=0;i<o.length;i++)try{if(!1===o[i].call(r,e,t,n))return}catch(e){zt(e,r,"errorCaptured hook")}}}zt(e,t,n)}finally{be()}}function Ht(e,t,n,r,o){let i;try{i=n?e.apply(t,n):e.call(t),i&&!i._isVue&&f(i)&&!i._handled&&(i.catch(e=>qt(e,r,o+" (Promise/async)")),i._handled=!0)}catch(e){qt(e,r,o)}return i}function zt(e,t,n){if(q.errorHandler)try{return q.errorHandler.call(null,e,t,n)}catch(t){t!==e&&Wt(t)}Wt(e)}function Wt(e,t,n){if(!K||"undefined"==typeof console)throw e;console.error(e)}let Vt=!1;const Kt=[];let Yt,Qt=!1;function Xt(){Qt=!1;const e=Kt.slice(0);Kt.length=0;for(let t=0;t<e.length;t++)e[t]()}if("undefined"!=typeof Promise&&se(Promise)){const e=Promise.resolve();Yt=()=>{e.then(Xt),Z&&setTimeout(M)},Vt=!0}else if(Q||"undefined"==typeof MutationObserver||!se(MutationObserver)&&"[object MutationObserverConstructor]"!==MutationObserver.toString())Yt="undefined"!=typeof setImmediate&&se(setImmediate)?()=>{setImmediate(Xt)}:()=>{setTimeout(Xt,0)};else{let e=1;const t=new MutationObserver(Xt),n=document.createTextNode(String(e));t.observe(n,{characterData:!0}),Yt=()=>{e=(e+1)%2,n.data=String(e)},Vt=!0}function Jt(e,t){let n;if(Kt.push(()=>{if(e)try{e.call(t)}catch(e){qt(e,t,"nextTick")}else n&&n(t)}),Qt||(Qt=!0,Yt()),!e&&"undefined"!=typeof Promise)return new Promise(e=>{n=e})}function Zt(e){return(t,n=ue)=>{if(n)return function(e,t,n){const r=e.$options;r[t]=tr(r[t],n)}(n,e,t)}}const en=Zt("beforeMount"),tn=Zt("mounted"),nn=Zt("beforeUpdate"),rn=Zt("updated"),on=Zt("beforeDestroy"),sn=Zt("destroyed"),an=Zt("activated"),cn=Zt("deactivated"),un=Zt("serverPrefetch"),ln=Zt("renderTracked"),dn=Zt("renderTriggered"),hn=Zt("errorCaptured"),pn="2.7.16";var fn=Object.freeze({__proto__:null,version:pn,defineComponent:function(e){return e},ref:function(e){return Ge(e,!1)},shallowRef:function(e){return Ge(e,!0)},isRef:$e,toRef:qe,toRefs:function(e){const t=o(e)?new Array(e.length):{};for(const n in e)t[n]=qe(e,n);return t},unref:function(e){return $e(e)?e.value:e},proxyRefs:function(e){if(De(e))return e;const t={},n=Object.keys(e);for(let r=0;r<n.length;r++)Be(t,e,n[r]);return t},customRef:function(e){const t=new ve,{get:n,set:r}=e(()=>{t.depend()},()=>{t.notify()}),o={get value(){return n()},set value(e){r(e)}};return z(o,Fe,!0),o},triggerRef:function(e){e.dep&&e.dep.notify()},reactive:function(e){return Le(e,!1),e},isReactive:De,isReadonly:je,isShallow:Ue,isProxy:function(e){return De(e)||je(e)},shallowReactive:xe,markRaw:function(e){return Object.isExtensible(e)&&z(e,"__v_skip",!0),e},toRaw:function e(t){const n=t&&t.__v_raw;return n?e(n):t},readonly:He,shallowReadonly:function(e){return ze(e,!0)},computed:function(e,t){let n,r;const o=u(e);o?(n=e,r=M):(n=e.get,r=e.set);const i=oe()?null:new bn(ue,n,M,{lazy:!0}),s={effect:i,get value(){return i?(i.dirty&&i.evaluate(),ve.target&&i.depend(),i.value):n()},set value(e){r(e)}};return z(s,Fe,!0),z(s,"__v_isReadonly",o),s},watch:function(e,t,n){return Ze(e,t,n)},watchEffect:function(e,t){return Ze(e,null,t)},watchPostEffect:Xe,watchSyncEffect:function(e,t){return Ze(e,null,{flush:"sync"})},EffectScope:tt,effectScope:function(e){return new tt(e)},onScopeDispose:function(e){et&&et.cleanups.push(e)},getCurrentScope:nt,provide:function(e,t){ue&&(rt(ue)[e]=t)},inject:function(e,t,n=!1){const r=ue;if(r){const o=r.$parent&&r.$parent._provided;if(o&&e in o)return o[e];if(arguments.length>1)return n&&u(t)?t.call(r):t}},h:function(e,t,n){return Gt(ue,e,t,n,2,!0)},getCurrentInstance:function(){return ue&&{proxy:ue}},useSlots:function(){return Ut().slots},useAttrs:function(){return Ut().attrs},useListeners:function(){return Ut().listeners},mergeDefaults:function(e,t){const n=o(e)?e.reduce((e,t)=>(e[t]={},e),{}):e;for(const e in t){const r=n[e];r?o(r)||u(r)?n[e]={type:r,default:t[e]}:r.default=t[e]:null===r&&(n[e]={default:t[e]})}return n},nextTick:Jt,set:Ne,del:Re,useCssModule:function(e="$style"){return ue&&ue[e]||r},useCssVars:function(e){if(!K)return;const t=ue;t&&Xe(()=>{const n=t.$el,r=e(t,t._setupProxy);if(n&&1===n.nodeType){const e=n.style;for(const t in r)e.setProperty(`--${t}`,r[t])}})},defineAsyncComponent:function(e){u(e)&&(e={loader:e});const{loader:t,loadingComponent:n,errorComponent:r,delay:o=200,timeout:i,suspensible:s=!1,onError:a}=e;let c=null,l=0;const d=()=>{let e;return c||(e=c=t().catch(e=>{if(e=e instanceof Error?e:new Error(String(e)),a)return new Promise((t,n)=>{a(e,()=>t((l++,c=null,d())),()=>n(e),l+1)});throw e}).then(t=>e!==c&&c?c:(t&&(t.__esModule||"Module"===t[Symbol.toStringTag])&&(t=t.default),t)))};return()=>({component:d(),delay:o,timeout:i,error:r,loading:n})},onBeforeMount:en,onMounted:tn,onBeforeUpdate:nn,onUpdated:rn,onBeforeUnmount:on,onUnmounted:sn,onActivated:an,onDeactivated:cn,onServerPrefetch:un,onRenderTracked:ln,onRenderTriggered:dn,onErrorCaptured:function(e,t=ue){hn(e,t)}});const mn=new ce;function gn(e){return vn(e,mn),mn.clear(),e}function vn(e,t){let n,r;const i=o(e);if(!(!i&&!l(e)||e.__v_skip||Object.isFrozen(e)||e instanceof de)){if(e.__ob__){const n=e.__ob__.dep.id;if(t.has(n))return;t.add(n)}if(i)for(n=e.length;n--;)vn(e[n],t);else if($e(e))vn(e.value,t);else for(r=Object.keys(e),n=r.length;n--;)vn(e[r[n]],t)}}let _n,yn=0;class bn{constructor(e,t,n,r,o){!function(e,t=et){t&&t.active&&t.effects.push(e)}(this,et&&!et._vm?et:e?e._scope:void 0),(this.vm=e)&&o&&(e._watcher=this),r?(this.deep=!!r.deep,this.user=!!r.user,this.lazy=!!r.lazy,this.sync=!!r.sync,this.before=r.before):this.deep=this.user=this.lazy=this.sync=!1,this.cb=n,this.id=++yn,this.active=!0,this.post=!1,this.dirty=this.lazy,this.deps=[],this.newDeps=[],this.depIds=new ce,this.newDepIds=new ce,this.expression="",u(t)?this.getter=t:(this.getter=function(e){if(W.test(e))return;const t=e.split(".");return function(e){for(let n=0;n<t.length;n++){if(!e)return;e=e[t[n]]}return e}}(t),this.getter||(this.getter=M)),this.value=this.lazy?void 0:this.get()}get(){let e;ye(this);const t=this.vm;try{e=this.getter.call(t,t)}catch(e){if(!this.user)throw e;qt(e,t,`getter for watcher "${this.expression}"`)}finally{this.deep&&gn(e),be(),this.cleanupDeps()}return e}addDep(e){const t=e.id;this.newDepIds.has(t)||(this.newDepIds.add(t),this.newDeps.push(e),this.depIds.has(t)||e.addSub(this))}cleanupDeps(){let e=this.deps.length;for(;e--;){const t=this.deps[e];this.newDepIds.has(t.id)||t.removeSub(this)}let t=this.depIds;this.depIds=this.newDepIds,this.newDepIds=t,this.newDepIds.clear(),t=this.deps,this.deps=this.newDeps,this.newDeps=t,this.newDeps.length=0}update(){this.lazy?this.dirty=!0:this.sync?this.run():Gn(this)}run(){if(this.active){const e=this.get();if(e!==this.value||l(e)||this.deep){const t=this.value;if(this.value=e,this.user){const n=`callback for watcher "${this.expression}"`;Ht(this.cb,this.vm,[e,t],this.vm,n)}else this.cb.call(this.vm,e,t)}}}evaluate(){this.value=this.get(),this.dirty=!1}depend(){let e=this.deps.length;for(;e--;)this.deps[e].depend()}teardown(){if(this.vm&&!this.vm._isBeingDestroyed&&b(this.vm._scope.effects,this),this.active){let e=this.deps.length;for(;e--;)this.deps[e].removeSub(this);this.active=!1,this.onStop&&this.onStop()}}}function wn(e,t){_n.$on(e,t)}function En(e,t){_n.$off(e,t)}function In(e,t){const n=_n;return function r(){null!==t.apply(null,arguments)&&n.$off(e,r)}}function Sn(e,t,n){_n=e,st(t,n||{},wn,En,In,e),_n=void 0}let An=null;function On(e){const t=An;return An=e,()=>{An=t}}function Tn(e){for(;e&&(e=e.$parent);)if(e._inactive)return!0;return!1}function Cn(e,t){if(t){if(e._directInactive=!1,Tn(e))return}else if(e._directInactive)return;if(e._inactive||null===e._inactive){e._inactive=!1;for(let t=0;t<e.$children.length;t++)Cn(e.$children[t]);Pn(e,"activated")}}function kn(e,t){if(!(t&&(e._directInactive=!0,Tn(e))||e._inactive)){e._inactive=!0;for(let t=0;t<e.$children.length;t++)kn(e.$children[t]);Pn(e,"deactivated")}}function Pn(e,t,n,r=!0){ye();const o=ue,i=nt();r&&le(e);const s=e.$options[t],a=`${t} hook`;if(s)for(let t=0,r=s.length;t<r;t++)Ht(s[t],e,n||null,e,a);e._hasHookEvent&&e.$emit("hook:"+t),r&&(le(o),i&&i.on()),be()}const Nn=[],Rn=[];let Mn={},xn=!1,Ln=!1,Dn=0,Un=0,jn=Date.now;if(K&&!Q){const e=window.performance;e&&"function"==typeof e.now&&jn()>document.createEvent("Event").timeStamp&&(jn=()=>e.now())}const Fn=(e,t)=>{if(e.post){if(!t.post)return 1}else if(t.post)return-1;return e.id-t.id};function $n(){let e,t;for(Un=jn(),Ln=!0,Nn.sort(Fn),Dn=0;Dn<Nn.length;Dn++)e=Nn[Dn],e.before&&e.before(),t=e.id,Mn[t]=null,e.run();const n=Rn.slice(),r=Nn.slice();Dn=Nn.length=Rn.length=0,Mn={},xn=Ln=!1,function(e){for(let t=0;t<e.length;t++)e[t]._inactive=!0,Cn(e[t],!0)}(n),function(e){let t=e.length;for(;t--;){const n=e[t],r=n.vm;r&&r._watcher===n&&r._isMounted&&!r._isDestroyed&&Pn(r,"updated")}}(r),(()=>{for(let e=0;e<ge.length;e++){const t=ge[e];t.subs=t.subs.filter(e=>e),t._pending=!1}ge.length=0})(),ie&&q.devtools&&ie.emit("flush")}function Gn(e){const t=e.id;if(null==Mn[t]&&(e!==ve.target||!e.noRecurse)){if(Mn[t]=!0,Ln){let t=Nn.length-1;for(;t>Dn&&Nn[t].id>e.id;)t--;Nn.splice(t+1,0,e)}else Nn.push(e);xn||(xn=!0,Jt($n))}}function Bn(e,t){if(e){const n=Object.create(null),r=ae?Reflect.ownKeys(e):Object.keys(e);for(let o=0;o<r.length;o++){const i=r[o];if("__ob__"===i)continue;const s=e[i].from;if(s in t._provided)n[i]=t._provided[s];else if("default"in e[i]){const r=e[i].default;n[i]=u(r)?r.call(t):r}}return n}}function qn(e,t,n,i,s){const c=s.options;let u;E(i,"_uid")?(u=Object.create(i),u._original=i):(u=i,i=i._original);const l=a(c._compiled),d=!l;this.data=e,this.props=t,this.children=n,this.parent=i,this.listeners=e.on||r,this.injections=Bn(c.inject,i),this.slots=()=>(this.$slots||Pt(i,e.scopedSlots,this.$slots=Tt(n,i)),this.$slots),Object.defineProperty(this,"scopedSlots",{enumerable:!0,get(){return Pt(i,e.scopedSlots,this.slots())}}),l&&(this.$options=c,this.$slots=this.slots(),this.$scopedSlots=Pt(i,e.scopedSlots,this.$slots)),c._scopeId?this._c=(e,t,n,r)=>{const s=Gt(u,e,t,n,r,d);return s&&!o(s)&&(s.fnScopeId=c._scopeId,s.fnContext=i),s}:this._c=(e,t,n,r)=>Gt(u,e,t,n,r,d)}function Hn(e,t,n,r,o){const i=fe(e);return i.fnContext=n,i.fnOptions=r,t.slot&&((i.data||(i.data={})).slot=t.slot),i}function zn(e,t){for(const n in t)e[A(n)]=t[n]}function Wn(e){return e.name||e.__name||e._componentTag}Ot(qn.prototype);const Vn={init(e,t){if(e.componentInstance&&!e.componentInstance._isDestroyed&&e.data.keepAlive){const t=e;Vn.prepatch(t,t)}else(e.componentInstance=function(e,t){const n={_isComponent:!0,_parentVnode:e,parent:t},r=e.data.inlineTemplate;return s(r)&&(n.render=r.render,n.staticRenderFns=r.staticRenderFns),new e.componentOptions.Ctor(n)}(e,An)).$mount(t?e.elm:void 0,t)},prepatch(e,t){const n=t.componentOptions;!function(e,t,n,o,i){const s=o.data.scopedSlots,a=e.$scopedSlots,c=!!(s&&!s.$stable||a!==r&&!a.$stable||s&&e.$scopedSlots.$key!==s.$key||!s&&e.$scopedSlots.$key);let u=!!(i||e.$options._renderChildren||c);const l=e.$vnode;e.$options._parentVnode=o,e.$vnode=o,e._vnode&&(e._vnode.parent=o),e.$options._renderChildren=i;const d=o.data.attrs||r;e._attrsProxy&&xt(e._attrsProxy,d,l.data&&l.data.attrs||r,e,"$attrs")&&(u=!0),e.$attrs=d,n=n||r;const h=e.$options._parentListeners;if(e._listenersProxy&&xt(e._listenersProxy,n,h||r,e,"$listeners"),e.$listeners=e.$options._parentListeners=n,Sn(e,n,h),t&&e.$options.props){Oe(!1);const n=e._props,r=e.$options._propKeys||[];for(let o=0;o<r.length;o++){const i=r[o],s=e.$options.props;n[i]=sr(i,s,t,e)}Oe(!0),e.$options.propsData=t}u&&(e.$slots=Tt(i,o.context),e.$forceUpdate())}(t.componentInstance=e.componentInstance,n.propsData,n.listeners,t,n.children)},insert(e){const{context:t,componentInstance:n}=e;var r;n._isMounted||(n._isMounted=!0,Pn(n,"mounted")),e.data.keepAlive&&(t._isMounted?((r=n)._inactive=!1,Rn.push(r)):Cn(n,!0))},destroy(e){const{componentInstance:t}=e;t._isDestroyed||(e.data.keepAlive?kn(t,!0):t.$destroy())}},Kn=Object.keys(Vn);function Yn(e,t,n,c,u){if(i(e))return;const d=n.$options._base;if(l(e)&&(e=d.extend(e)),"function"!=typeof e)return;let h;if(i(e.cid)&&(h=e,e=function(e,t){if(a(e.error)&&s(e.errorComp))return e.errorComp;if(s(e.resolved))return e.resolved;const n=jt;if(n&&s(e.owners)&&-1===e.owners.indexOf(n)&&e.owners.push(n),a(e.loading)&&s(e.loadingComp))return e.loadingComp;if(n&&!s(e.owners)){const r=e.owners=[n];let o=!0,a=null,c=null;n.$on("hook:destroyed",()=>b(r,n));const u=e=>{for(let e=0,t=r.length;e<t;e++)r[e].$forceUpdate();e&&(r.length=0,null!==a&&(clearTimeout(a),a=null),null!==c&&(clearTimeout(c),c=null))},d=j(n=>{e.resolved=Ft(n,t),o?r.length=0:u(!0)}),h=j(t=>{s(e.errorComp)&&(e.error=!0,u(!0))}),p=e(d,h);return l(p)&&(f(p)?i(e.resolved)&&p.then(d,h):f(p.component)&&(p.component.then(d,h),s(p.error)&&(e.errorComp=Ft(p.error,t)),s(p.loading)&&(e.loadingComp=Ft(p.loading,t),0===p.delay?e.loading=!0:a=setTimeout(()=>{a=null,i(e.resolved)&&i(e.error)&&(e.loading=!0,u(!1))},p.delay||200)),s(p.timeout)&&(c=setTimeout(()=>{c=null,i(e.resolved)&&h(null)},p.timeout)))),o=!1,e.loading?e.loadingComp:e.resolved}}(h,d),void 0===e))return function(e,t,n,r,o){const i=he();return i.asyncFactory=e,i.asyncMeta={data:t,context:n,children:r,tag:o},i}(h,t,n,c,u);t=t||{},br(e),s(t.model)&&function(e,t){const n=e.model&&e.model.prop||"value",r=e.model&&e.model.event||"input";(t.attrs||(t.attrs={}))[n]=t.model.value;const i=t.on||(t.on={}),a=i[r],c=t.model.callback;s(a)?(o(a)?-1===a.indexOf(c):a!==c)&&(i[r]=[c].concat(a)):i[r]=c}(e.options,t);const p=function(e,t){const n=t.options.props;if(i(n))return;const r={},{attrs:o,props:a}=e;if(s(o)||s(a))for(const e in n){const t=C(e);ct(r,a,e,t,!0)||ct(r,o,e,t,!1)}return r}(t,e);if(a(e.options.functional))return function(e,t,n,i,a){const c=e.options,u={},l=c.props;if(s(l))for(const e in l)u[e]=sr(e,l,t||r);else s(n.attrs)&&zn(u,n.attrs),s(n.props)&&zn(u,n.props);const d=new qn(n,u,a,i,e),h=c.render.call(null,d._c,d);if(h instanceof de)return Hn(h,n,d.parent,c);if(o(h)){const e=ut(h)||[],t=new Array(e.length);for(let r=0;r<e.length;r++)t[r]=Hn(e[r],n,d.parent,c);return t}}(e,p,t,n,c);const m=t.on;if(t.on=t.nativeOn,a(e.options.abstract)){const e=t.slot;t={},e&&(t.slot=e)}!function(e){const t=e.hook||(e.hook={});for(let e=0;e<Kn.length;e++){const n=Kn[e],r=t[n],o=Vn[n];r===o||r&&r._merged||(t[n]=r?Qn(o,r):o)}}(t);const g=Wn(e.options)||u;return new de(`vue-component-${e.cid}${g?`-${g}`:""}`,t,void 0,void 0,void 0,n,{Ctor:e,propsData:p,listeners:m,tag:u,children:c},h)}function Qn(e,t){const n=(n,r)=>{e(n,r),t(n,r)};return n._merged=!0,n}let Xn=M;const Jn=q.optionMergeStrategies;function Zn(e,t,n=!0){if(!t)return e;let r,o,i;const s=ae?Reflect.ownKeys(t):Object.keys(t);for(let a=0;a<s.length;a++)r=s[a],"__ob__"!==r&&(o=e[r],i=t[r],n&&E(e,r)?o!==i&&h(o)&&h(i)&&Zn(o,i):Ne(e,r,i));return e}function er(e,t,n){return n?function(){const r=u(t)?t.call(n,n):t,o=u(e)?e.call(n,n):e;return r?Zn(r,o):o}:t?e?function(){return Zn(u(t)?t.call(this,this):t,u(e)?e.call(this,this):e)}:t:e}function tr(e,t){const n=t?e?e.concat(t):o(t)?t:[t]:e;return n?function(e){const t=[];for(let n=0;n<e.length;n++)-1===t.indexOf(e[n])&&t.push(e[n]);return t}(n):n}function nr(e,t,n,r){const o=Object.create(e||null);return t?N(o,t):o}Jn.data=function(e,t,n){return n?er(e,t,n):t&&"function"!=typeof t?e:er(e,t)},B.forEach(e=>{Jn[e]=tr}),G.forEach(function(e){Jn[e+"s"]=nr}),Jn.watch=function(e,t,n,r){if(e===te&&(e=void 0),t===te&&(t=void 0),!t)return Object.create(e||null);if(!e)return t;const i={};N(i,e);for(const e in t){let n=i[e];const r=t[e];n&&!o(n)&&(n=[n]),i[e]=n?n.concat(r):o(r)?r:[r]}return i},Jn.props=Jn.methods=Jn.inject=Jn.computed=function(e,t,n,r){if(!e)return t;const o=Object.create(null);return N(o,e),t&&N(o,t),o},Jn.provide=function(e,t){return e?function(){const n=Object.create(null);return Zn(n,u(e)?e.call(this):e),t&&Zn(n,u(t)?t.call(this):t,!1),n}:t};const rr=function(e,t){return void 0===t?e:t};function or(e,t,n){if(u(t)&&(t=t.options),function(e){const t=e.props;if(!t)return;const n={};let r,i,s;if(o(t))for(r=t.length;r--;)i=t[r],"string"==typeof i&&(s=A(i),n[s]={type:null});else if(h(t))for(const e in t)i=t[e],s=A(e),n[s]=h(i)?i:{type:i};e.props=n}(t),function(e){const t=e.inject;if(!t)return;const n=e.inject={};if(o(t))for(let e=0;e<t.length;e++)n[t[e]]={from:t[e]};else if(h(t))for(const e in t){const r=t[e];n[e]=h(r)?N({from:e},r):{from:r}}}(t),function(e){const t=e.directives;if(t)for(const e in t){const n=t[e];u(n)&&(t[e]={bind:n,update:n})}}(t),!t._base&&(t.extends&&(e=or(e,t.extends,n)),t.mixins))for(let r=0,o=t.mixins.length;r<o;r++)e=or(e,t.mixins[r],n);const r={};let i;for(i in e)s(i);for(i in t)E(e,i)||s(i);function s(o){const i=Jn[o]||rr;r[o]=i(e[o],t[o],n,o)}return r}function ir(e,t,n,r){if("string"!=typeof n)return;const o=e[t];if(E(o,n))return o[n];const i=A(n);if(E(o,i))return o[i];const s=O(i);return E(o,s)?o[s]:o[n]||o[i]||o[s]}function sr(e,t,n,r){const o=t[e],i=!E(n,e);let s=n[e];const a=lr(Boolean,o.type);if(a>-1)if(i&&!E(o,"default"))s=!1;else if(""===s||s===C(e)){const e=lr(String,o.type);(e<0||a<e)&&(s=!0)}if(void 0===s){s=function(e,t,n){if(!E(t,"default"))return;const r=t.default;return e&&e.$options.propsData&&void 0===e.$options.propsData[n]&&void 0!==e._props[n]?e._props[n]:u(r)&&"Function"!==cr(t.type)?r.call(e):r}(r,o,e);const t=Ae;Oe(!0),ke(s),Oe(t)}return s}const ar=/^\s*function (\w+)/;function cr(e){const t=e&&e.toString().match(ar);return t?t[1]:""}function ur(e,t){return cr(e)===cr(t)}function lr(e,t){if(!o(t))return ur(t,e)?0:-1;for(let n=0,r=t.length;n<r;n++)if(ur(t[n],e))return n;return-1}const dr={enumerable:!0,configurable:!0,get:M,set:M};function hr(e,t,n){dr.get=function(){return this[t][n]},dr.set=function(e){this[t][n]=e},Object.defineProperty(e,n,dr)}function pr(e){const t=e.$options;if(t.props&&function(e,t){const n=e.$options.propsData||{},r=e._props=xe({}),o=e.$options._propKeys=[];!e.$parent||Oe(!1);for(const i in t)o.push(i),Pe(r,i,sr(i,t,n,e),void 0,!0),i in e||hr(e,"_props",i);Oe(!0)}(e,t.props),function(e){const t=e.$options,n=t.setup;if(n){const r=e._setupContext=Mt(e);le(e),ye();const o=Ht(n,null,[e._props||xe({}),r],e,"setup");if(be(),le(),u(o))t.render=o;else if(l(o))if(e._setupState=o,o.__sfc){const t=e._setupProxy={};for(const e in o)"__sfc"!==e&&Be(t,o,e)}else for(const t in o)H(t)||Be(e,o,t)}}(e),t.methods&&function(e,t){e.$options.props;for(const n in t)e[n]="function"!=typeof t[n]?M:k(t[n],e)}(e,t.methods),t.data)!function(e){let t=e.$options.data;t=e._data=u(t)?function(e,t){ye();try{return e.call(t,t)}catch(e){return qt(e,t,"data()"),{}}finally{be()}}(t,e):t||{},h(t)||(t={});const n=Object.keys(t),r=e.$options.props;e.$options.methods;let o=n.length;for(;o--;){const t=n[o];r&&E(r,t)||H(t)||hr(e,"_data",t)}const i=ke(t);i&&i.vmCount++}(e);else{const t=ke(e._data={});t&&t.vmCount++}t.computed&&function(e,t){const n=e._computedWatchers=Object.create(null),r=oe();for(const o in t){const i=t[o],s=u(i)?i:i.get;r||(n[o]=new bn(e,s||M,M,fr)),o in e||mr(e,o,i)}}(e,t.computed),t.watch&&t.watch!==te&&function(e,t){for(const n in t){const r=t[n];if(o(r))for(let t=0;t<r.length;t++)_r(e,n,r[t]);else _r(e,n,r)}}(e,t.watch)}const fr={lazy:!0};function mr(e,t,n){const r=!oe();u(n)?(dr.get=r?gr(t):vr(n),dr.set=M):(dr.get=n.get?r&&!1!==n.cache?gr(t):vr(n.get):M,dr.set=n.set||M),Object.defineProperty(e,t,dr)}function gr(e){return function(){const t=this._computedWatchers&&this._computedWatchers[e];if(t)return t.dirty&&t.evaluate(),ve.target&&t.depend(),t.value}}function vr(e){return function(){return e.call(this,this)}}function _r(e,t,n,r){return h(n)&&(r=n,n=n.handler),"string"==typeof n&&(n=e[n]),e.$watch(t,n,r)}let yr=0;function br(e){let t=e.options;if(e.super){const n=br(e.super);if(n!==e.superOptions){e.superOptions=n;const r=function(e){let t;const n=e.options,r=e.sealedOptions;for(const e in n)n[e]!==r[e]&&(t||(t={}),t[e]=n[e]);return t}(e);r&&N(e.extendOptions,r),t=e.options=or(n,e.extendOptions),t.name&&(t.components[t.name]=e)}}return t}function wr(e){this._init(e)}function Er(e){return e&&(Wn(e.Ctor.options)||e.tag)}function Ir(e,t){return o(e)?e.indexOf(t)>-1:"string"==typeof e?e.split(",").indexOf(t)>-1:(n=e,"[object RegExp]"===d.call(n)&&e.test(t));var n}function Sr(e,t){const{cache:n,keys:r,_vnode:o,$vnode:i}=e;for(const e in n){const i=n[e];if(i){const s=i.name;s&&!t(s)&&Ar(n,e,r,o)}}i.componentOptions.children=void 0}function Ar(e,t,n,r){const o=e[t];!o||r&&o.tag===r.tag||o.componentInstance.$destroy(),e[t]=null,b(n,t)}!function(e){e.prototype._init=function(e){const t=this;t._uid=yr++,t._isVue=!0,t.__v_skip=!0,t._scope=new tt(!0),t._scope.parent=void 0,t._scope._vm=!0,e&&e._isComponent?function(e,t){const n=e.$options=Object.create(e.constructor.options),r=t._parentVnode;n.parent=t.parent,n._parentVnode=r;const o=r.componentOptions;n.propsData=o.propsData,n._parentListeners=o.listeners,n._renderChildren=o.children,n._componentTag=o.tag,t.render&&(n.render=t.render,n.staticRenderFns=t.staticRenderFns)}(t,e):t.$options=or(br(t.constructor),e||{},t),t._renderProxy=t,t._self=t,function(e){const t=e.$options;let n=t.parent;if(n&&!t.abstract){for(;n.$options.abstract&&n.$parent;)n=n.$parent;n.$children.push(e)}e.$parent=n,e.$root=n?n.$root:e,e.$children=[],e.$refs={},e._provided=n?n._provided:Object.create(null),e._watcher=null,e._inactive=null,e._directInactive=!1,e._isMounted=!1,e._isDestroyed=!1,e._isBeingDestroyed=!1}(t),function(e){e._events=Object.create(null),e._hasHookEvent=!1;const t=e.$options._parentListeners;t&&Sn(e,t)}(t),function(e){e._vnode=null,e._staticTrees=null;const t=e.$options,n=e.$vnode=t._parentVnode,o=n&&n.context;e.$slots=Tt(t._renderChildren,o),e.$scopedSlots=n?Pt(e.$parent,n.data.scopedSlots,e.$slots):r,e._c=(t,n,r,o)=>Gt(e,t,n,r,o,!1),e.$createElement=(t,n,r,o)=>Gt(e,t,n,r,o,!0);const i=n&&n.data;Pe(e,"$attrs",i&&i.attrs||r,null,!0),Pe(e,"$listeners",t._parentListeners||r,null,!0)}(t),Pn(t,"beforeCreate",void 0,!1),function(e){const t=Bn(e.$options.inject,e);t&&(Oe(!1),Object.keys(t).forEach(n=>{Pe(e,n,t[n])}),Oe(!0))}(t),pr(t),function(e){const t=e.$options.provide;if(t){const n=u(t)?t.call(e):t;if(!l(n))return;const r=rt(e),o=ae?Reflect.ownKeys(n):Object.keys(n);for(let e=0;e<o.length;e++){const t=o[e];Object.defineProperty(r,t,Object.getOwnPropertyDescriptor(n,t))}}}(t),Pn(t,"created"),t.$options.el&&t.$mount(t.$options.el)}}(wr),function(e){Object.defineProperty(e.prototype,"$data",{get:function(){return this._data}}),Object.defineProperty(e.prototype,"$props",{get:function(){return this._props}}),e.prototype.$set=Ne,e.prototype.$delete=Re,e.prototype.$watch=function(e,t,n){const r=this;if(h(t))return _r(r,e,t,n);(n=n||{}).user=!0;const o=new bn(r,e,t,n);if(n.immediate){const e=`callback for immediate watcher "${o.expression}"`;ye(),Ht(t,r,[o.value],r,e),be()}return function(){o.teardown()}}}(wr),function(e){const t=/^hook:/;e.prototype.$on=function(e,n){const r=this;if(o(e))for(let t=0,o=e.length;t<o;t++)r.$on(e[t],n);else(r._events[e]||(r._events[e]=[])).push(n),t.test(e)&&(r._hasHookEvent=!0);return r},e.prototype.$once=function(e,t){const n=this;function r(){n.$off(e,r),t.apply(n,arguments)}return r.fn=t,n.$on(e,r),n},e.prototype.$off=function(e,t){const n=this;if(!arguments.length)return n._events=Object.create(null),n;if(o(e)){for(let r=0,o=e.length;r<o;r++)n.$off(e[r],t);return n}const r=n._events[e];if(!r)return n;if(!t)return n._events[e]=null,n;let i,s=r.length;for(;s--;)if(i=r[s],i===t||i.fn===t){r.splice(s,1);break}return n},e.prototype.$emit=function(e){const t=this;let n=t._events[e];if(n){n=n.length>1?P(n):n;const r=P(arguments,1),o=`event handler for "${e}"`;for(let e=0,i=n.length;e<i;e++)Ht(n[e],t,r,t,o)}return t}}(wr),function(e){e.prototype._update=function(e,t){const n=this,r=n.$el,o=n._vnode,i=On(n);n._vnode=e,n.$el=o?n.__patch__(o,e):n.__patch__(n.$el,e,t,!1),i(),r&&(r.__vue__=null),n.$el&&(n.$el.__vue__=n);let s=n;for(;s&&s.$vnode&&s.$parent&&s.$vnode===s.$parent._vnode;)s.$parent.$el=s.$el,s=s.$parent},e.prototype.$forceUpdate=function(){this._watcher&&this._watcher.update()},e.prototype.$destroy=function(){const e=this;if(e._isBeingDestroyed)return;Pn(e,"beforeDestroy"),e._isBeingDestroyed=!0;const t=e.$parent;!t||t._isBeingDestroyed||e.$options.abstract||b(t.$children,e),e._scope.stop(),e._data.__ob__&&e._data.__ob__.vmCount--,e._isDestroyed=!0,e.__patch__(e._vnode,null),Pn(e,"destroyed"),e.$off(),e.$el&&(e.$el.__vue__=null),e.$vnode&&(e.$vnode.parent=null)}}(wr),function(e){Ot(e.prototype),e.prototype.$nextTick=function(e){return Jt(e,this)},e.prototype._render=function(){const e=this,{render:t,_parentVnode:n}=e.$options;n&&e._isMounted&&(e.$scopedSlots=Pt(e.$parent,n.data.scopedSlots,e.$slots,e.$scopedSlots),e._slotsProxy&&Dt(e._slotsProxy,e.$scopedSlots)),e.$vnode=n;const r=ue,i=jt;let s;try{le(e),jt=e,s=t.call(e._renderProxy,e.$createElement)}catch(t){qt(t,e,"render"),s=e._vnode}finally{jt=i,le(r)}return o(s)&&1===s.length&&(s=s[0]),s instanceof de||(s=he()),s.parent=n,s}}(wr);const Or=[String,RegExp,Array];var Tr={KeepAlive:{name:"keep-alive",abstract:!0,props:{include:Or,exclude:Or,max:[String,Number]},methods:{cacheVNode(){const{cache:e,keys:t,vnodeToCache:n,keyToCache:r}=this;if(n){const{tag:o,componentInstance:i,componentOptions:s}=n;e[r]={name:Er(s),tag:o,componentInstance:i},t.push(r),this.max&&t.length>parseInt(this.max)&&Ar(e,t[0],t,this._vnode),this.vnodeToCache=null}}},created(){this.cache=Object.create(null),this.keys=[]},destroyed(){for(const e in this.cache)Ar(this.cache,e,this.keys)},mounted(){this.cacheVNode(),this.$watch("include",e=>{Sr(this,t=>Ir(e,t))}),this.$watch("exclude",e=>{Sr(this,t=>!Ir(e,t))})},updated(){this.cacheVNode()},render(){const e=this.$slots.default,t=$t(e),n=t&&t.componentOptions;if(n){const e=Er(n),{include:r,exclude:o}=this;if(r&&(!e||!Ir(r,e))||o&&e&&Ir(o,e))return t;const{cache:i,keys:s}=this,a=null==t.key?n.Ctor.cid+(n.tag?`::${n.tag}`:""):t.key;i[a]?(t.componentInstance=i[a].componentInstance,b(s,a),s.push(a)):(this.vnodeToCache=t,this.keyToCache=a),t.data.keepAlive=!0}return t||e&&e[0]}}};!function(e){const t={get:()=>q};Object.defineProperty(e,"config",t),e.util={warn:Xn,extend:N,mergeOptions:or,defineReactive:Pe},e.set=Ne,e.delete=Re,e.nextTick=Jt,e.observable=e=>(ke(e),e),e.options=Object.create(null),G.forEach(t=>{e.options[t+"s"]=Object.create(null)}),e.options._base=e,N(e.options.components,Tr),function(e){e.use=function(e){const t=this._installedPlugins||(this._installedPlugins=[]);if(t.indexOf(e)>-1)return this;const n=P(arguments,1);return n.unshift(this),u(e.install)?e.install.apply(e,n):u(e)&&e.apply(null,n),t.push(e),this}}(e),function(e){e.mixin=function(e){return this.options=or(this.options,e),this}}(e),function(e){e.cid=0;let t=1;e.extend=function(e){e=e||{};const n=this,r=n.cid,o=e._Ctor||(e._Ctor={});if(o[r])return o[r];const i=Wn(e)||Wn(n.options),s=function(e){this._init(e)};return(s.prototype=Object.create(n.prototype)).constructor=s,s.cid=t++,s.options=or(n.options,e),s.super=n,s.options.props&&function(e){const t=e.options.props;for(const n in t)hr(e.prototype,"_props",n)}(s),s.options.computed&&function(e){const t=e.options.computed;for(const n in t)mr(e.prototype,n,t[n])}(s),s.extend=n.extend,s.mixin=n.mixin,s.use=n.use,G.forEach(function(e){s[e]=n[e]}),i&&(s.options.components[i]=s),s.superOptions=n.options,s.extendOptions=e,s.sealedOptions=N({},s.options),o[r]=s,s}}(e),function(e){G.forEach(t=>{e[t]=function(e,n){return n?("component"===t&&h(n)&&(n.name=n.name||e,n=this.options._base.extend(n)),"directive"===t&&u(n)&&(n={bind:n,update:n}),this.options[t+"s"][e]=n,n):this.options[t+"s"][e]}})}(e)}(wr),Object.defineProperty(wr.prototype,"$isServer",{get:oe}),Object.defineProperty(wr.prototype,"$ssrContext",{get(){return this.$vnode&&this.$vnode.ssrContext}}),Object.defineProperty(wr,"FunctionalRenderContext",{value:qn}),wr.version=pn;const Cr=_("style,class"),kr=_("input,textarea,option,select,progress"),Pr=_("contenteditable,draggable,spellcheck"),Nr=_("events,caret,typing,plaintext-only"),Rr=_("allowfullscreen,async,autofocus,autoplay,checked,compact,controls,declare,default,defaultchecked,defaultmuted,defaultselected,defer,disabled,enabled,formnovalidate,hidden,indeterminate,inert,ismap,itemscope,loop,multiple,muted,nohref,noresize,noshade,novalidate,nowrap,open,pauseonexit,readonly,required,reversed,scoped,seamless,selected,sortable,truespeed,typemustmatch,visible"),Mr="http://www.w3.org/1999/xlink",xr=e=>":"===e.charAt(5)&&"xlink"===e.slice(0,5),Lr=e=>xr(e)?e.slice(6,e.length):"",Dr=e=>null==e||!1===e;function Ur(e,t){return{staticClass:jr(e.staticClass,t.staticClass),class:s(e.class)?[e.class,t.class]:t.class}}function jr(e,t){return e?t?e+" "+t:e:t||""}function Fr(e){return Array.isArray(e)?function(e){let t,n="";for(let r=0,o=e.length;r<o;r++)s(t=Fr(e[r]))&&""!==t&&(n&&(n+=" "),n+=t);return n}(e):l(e)?function(e){let t="";for(const n in e)e[n]&&(t&&(t+=" "),t+=n);return t}(e):"string"==typeof e?e:""}const $r={svg:"http://www.w3.org/2000/svg",math:"http://www.w3.org/1998/Math/MathML"},Gr=_("html,body,base,head,link,meta,style,title,address,article,aside,footer,header,h1,h2,h3,h4,h5,h6,hgroup,nav,section,div,dd,dl,dt,figcaption,figure,picture,hr,img,li,main,ol,p,pre,ul,a,b,abbr,bdi,bdo,br,cite,code,data,dfn,em,i,kbd,mark,q,rp,rt,rtc,ruby,s,samp,small,span,strong,sub,sup,time,u,var,wbr,area,audio,map,track,video,embed,object,param,source,canvas,script,noscript,del,ins,caption,col,colgroup,table,thead,tbody,td,th,tr,button,datalist,fieldset,form,input,label,legend,meter,optgroup,option,output,progress,select,textarea,details,dialog,menu,menuitem,summary,content,element,shadow,template,blockquote,iframe,tfoot"),Br=_("svg,animate,circle,clippath,cursor,defs,desc,ellipse,filter,font-face,foreignobject,g,glyph,image,line,marker,mask,missing-glyph,path,pattern,polygon,polyline,rect,switch,symbol,text,textpath,tspan,use,view",!0),qr=e=>Gr(e)||Br(e),Hr=Object.create(null),zr=_("text,number,password,search,email,tel,url");var Wr=Object.freeze({__proto__:null,createElement:function(e,t){const n=document.createElement(e);return"select"!==e||t.data&&t.data.attrs&&void 0!==t.data.attrs.multiple&&n.setAttribute("multiple","multiple"),n},createElementNS:function(e,t){return document.createElementNS($r[e],t)},createTextNode:function(e){return document.createTextNode(e)},createComment:function(e){return document.createComment(e)},insertBefore:function(e,t,n){e.insertBefore(t,n)},removeChild:function(e,t){e.removeChild(t)},appendChild:function(e,t){e.appendChild(t)},parentNode:function(e){return e.parentNode},nextSibling:function(e){return e.nextSibling},tagName:function(e){return e.tagName},setTextContent:function(e,t){e.textContent=t},setStyleScope:function(e,t){e.setAttribute(t,"")}}),Vr={create(e,t){Kr(t)},update(e,t){e.data.ref!==t.data.ref&&(Kr(e,!0),Kr(t))},destroy(e){Kr(e,!0)}};function Kr(e,t){const n=e.data.ref;if(!s(n))return;const r=e.context,i=e.componentInstance||e.elm,a=t?null:i,c=t?void 0:i;if(u(n))return void Ht(n,r,[a],r,"template ref function");const l=e.data.refInFor,d="string"==typeof n||"number"==typeof n,h=$e(n),p=r.$refs;if(d||h)if(l){const e=d?p[n]:n.value;t?o(e)&&b(e,i):o(e)?e.includes(i)||e.push(i):d?(p[n]=[i],Yr(r,n,p[n])):n.value=[i]}else if(d){if(t&&p[n]!==i)return;p[n]=c,Yr(r,n,a)}else if(h){if(t&&n.value!==i)return;n.value=a}}function Yr({_setupState:e},t,n){e&&E(e,t)&&($e(e[t])?e[t].value=n:e[t]=n)}const Qr=new de("",{},[]),Xr=["create","activate","update","remove","destroy"];function Jr(e,t){return e.key===t.key&&e.asyncFactory===t.asyncFactory&&(e.tag===t.tag&&e.isComment===t.isComment&&s(e.data)===s(t.data)&&function(e,t){if("input"!==e.tag)return!0;let n;const r=s(n=e.data)&&s(n=n.attrs)&&n.type,o=s(n=t.data)&&s(n=n.attrs)&&n.type;return r===o||zr(r)&&zr(o)}(e,t)||a(e.isAsyncPlaceholder)&&i(t.asyncFactory.error))}function Zr(e,t,n){let r,o;const i={};for(r=t;r<=n;++r)o=e[r].key,s(o)&&(i[o]=r);return i}var eo={create:to,update:to,destroy:function(e){to(e,Qr)}};function to(e,t){(e.data.directives||t.data.directives)&&function(e,t){const n=e===Qr,r=t===Qr,o=ro(e.data.directives,e.context),i=ro(t.data.directives,t.context),s=[],a=[];let c,u,l;for(c in i)u=o[c],l=i[c],u?(l.oldValue=u.value,l.oldArg=u.arg,io(l,"update",t,e),l.def&&l.def.componentUpdated&&a.push(l)):(io(l,"bind",t,e),l.def&&l.def.inserted&&s.push(l));if(s.length){const r=()=>{for(let n=0;n<s.length;n++)io(s[n],"inserted",t,e)};n?at(t,"insert",r):r()}if(a.length&&at(t,"postpatch",()=>{for(let n=0;n<a.length;n++)io(a[n],"componentUpdated",t,e)}),!n)for(c in o)i[c]||io(o[c],"unbind",e,e,r)}(e,t)}const no=Object.create(null);function ro(e,t){const n=Object.create(null);if(!e)return n;let r,o;for(r=0;r<e.length;r++){if(o=e[r],o.modifiers||(o.modifiers=no),n[oo(o)]=o,t._setupState&&t._setupState.__sfc){const e=o.def||ir(t,"_setupState","v-"+o.name);o.def="function"==typeof e?{bind:e,update:e}:e}o.def=o.def||ir(t.$options,"directives",o.name)}return n}function oo(e){return e.rawName||`${e.name}.${Object.keys(e.modifiers||{}).join(".")}`}function io(e,t,n,r,o){const i=e.def&&e.def[t];if(i)try{i(n.elm,e,n,r,o)}catch(r){qt(r,n.context,`directive ${e.name} ${t} hook`)}}var so=[Vr,eo];function ao(e,t){const n=t.componentOptions;if(s(n)&&!1===n.Ctor.options.inheritAttrs)return;if(i(e.data.attrs)&&i(t.data.attrs))return;let r,o,c;const u=t.elm,l=e.data.attrs||{};let d=t.data.attrs||{};for(r in(s(d.__ob__)||a(d._v_attr_proxy))&&(d=t.data.attrs=N({},d)),d)o=d[r],c=l[r],c!==o&&co(u,r,o,t.data.pre);for(r in(Q||J)&&d.value!==l.value&&co(u,"value",d.value),l)i(d[r])&&(xr(r)?u.removeAttributeNS(Mr,Lr(r)):Pr(r)||u.removeAttribute(r))}function co(e,t,n,r){r||e.tagName.indexOf("-")>-1?uo(e,t,n):Rr(t)?Dr(n)?e.removeAttribute(t):(n="allowfullscreen"===t&&"EMBED"===e.tagName?"true":t,e.setAttribute(t,n)):Pr(t)?e.setAttribute(t,((e,t)=>Dr(t)||"false"===t?"false":"contenteditable"===e&&Nr(t)?t:"true")(t,n)):xr(t)?Dr(n)?e.removeAttributeNS(Mr,Lr(t)):e.setAttributeNS(Mr,t,n):uo(e,t,n)}function uo(e,t,n){if(Dr(n))e.removeAttribute(t);else{if(Q&&!X&&"TEXTAREA"===e.tagName&&"placeholder"===t&&""!==n&&!e.__ieph){const t=n=>{n.stopImmediatePropagation(),e.removeEventListener("input",t)};e.addEventListener("input",t),e.__ieph=!0}e.setAttribute(t,n)}}var lo={create:ao,update:ao};function ho(e,t){const n=t.elm,r=t.data,o=e.data;if(i(r.staticClass)&&i(r.class)&&(i(o)||i(o.staticClass)&&i(o.class)))return;let a=function(e){let t=e.data,n=e,r=e;for(;s(r.componentInstance);)r=r.componentInstance._vnode,r&&r.data&&(t=Ur(r.data,t));for(;s(n=n.parent);)n&&n.data&&(t=Ur(t,n.data));return function(e,t){return s(e)||s(t)?jr(e,Fr(t)):""}(t.staticClass,t.class)}(t);const c=n._transitionClasses;s(c)&&(a=jr(a,Fr(c))),a!==n._prevClass&&(n.setAttribute("class",a),n._prevClass=a)}var po={create:ho,update:ho};const fo="__r",mo="__c";let go;function vo(e,t,n){const r=go;return function o(){null!==t.apply(null,arguments)&&bo(e,o,n,r)}}const _o=Vt&&!(ee&&Number(ee[1])<=53);function yo(e,t,n,r){if(_o){const e=Un,n=t;t=n._wrapper=function(t){if(t.target===t.currentTarget||t.timeStamp>=e||t.timeStamp<=0||t.target.ownerDocument!==document)return n.apply(this,arguments)}}go.addEventListener(e,t,re?{capture:n,passive:r}:n)}function bo(e,t,n,r){(r||go).removeEventListener(e,t._wrapper||t,n)}function wo(e,t){if(i(e.data.on)&&i(t.data.on))return;const n=t.data.on||{},r=e.data.on||{};go=t.elm||e.elm,function(e){if(s(e[fo])){const t=Q?"change":"input";e[t]=[].concat(e[fo],e[t]||[]),delete e[fo]}s(e[mo])&&(e.change=[].concat(e[mo],e.change||[]),delete e[mo])}(n),st(n,r,yo,bo,vo,t.context),go=void 0}var Eo={create:wo,update:wo,destroy:e=>wo(e,Qr)};let Io;function So(e,t){if(i(e.data.domProps)&&i(t.data.domProps))return;let n,r;const o=t.elm,c=e.data.domProps||{};let u=t.data.domProps||{};for(n in(s(u.__ob__)||a(u._v_attr_proxy))&&(u=t.data.domProps=N({},u)),c)n in u||(o[n]="");for(n in u){if(r=u[n],"textContent"===n||"innerHTML"===n){if(t.children&&(t.children.length=0),r===c[n])continue;1===o.childNodes.length&&o.removeChild(o.childNodes[0])}if("value"===n&&"PROGRESS"!==o.tagName){o._value=r;const e=i(r)?"":String(r);Ao(o,e)&&(o.value=e)}else if("innerHTML"===n&&Br(o.tagName)&&i(o.innerHTML)){Io=Io||document.createElement("div"),Io.innerHTML=`<svg>${r}</svg>`;const e=Io.firstChild;for(;o.firstChild;)o.removeChild(o.firstChild);for(;e.firstChild;)o.appendChild(e.firstChild)}else if(r!==c[n])try{o[n]=r}catch(e){}}}function Ao(e,t){return!e.composing&&("OPTION"===e.tagName||function(e,t){let n=!0;try{n=document.activeElement!==e}catch(e){}return n&&e.value!==t}(e,t)||function(e,t){const n=e.value,r=e._vModifiers;if(s(r)){if(r.number)return v(n)!==v(t);if(r.trim)return n.trim()!==t.trim()}return n!==t}(e,t))}var Oo={create:So,update:So};const To=I(function(e){const t={},n=/:(.+)/;return e.split(/;(?![^(]*\))/g).forEach(function(e){if(e){const r=e.split(n);r.length>1&&(t[r[0].trim()]=r[1].trim())}}),t});function Co(e){const t=ko(e.style);return e.staticStyle?N(e.staticStyle,t):t}function ko(e){return Array.isArray(e)?R(e):"string"==typeof e?To(e):e}const Po=/^--/,No=/\s*!important$/,Ro=(e,t,n)=>{if(Po.test(t))e.style.setProperty(t,n);else if(No.test(n))e.style.setProperty(C(t),n.replace(No,""),"important");else{const r=Lo(t);if(Array.isArray(n))for(let t=0,o=n.length;t<o;t++)e.style[r]=n[t];else e.style[r]=n}},Mo=["Webkit","Moz","ms"];let xo;const Lo=I(function(e){if(xo=xo||document.createElement("div").style,"filter"!==(e=A(e))&&e in xo)return e;const t=e.charAt(0).toUpperCase()+e.slice(1);for(let e=0;e<Mo.length;e++){const n=Mo[e]+t;if(n in xo)return n}});function Do(e,t){const n=t.data,r=e.data;if(i(n.staticStyle)&&i(n.style)&&i(r.staticStyle)&&i(r.style))return;let o,a;const c=t.elm,u=r.staticStyle,l=r.normalizedStyle||r.style||{},d=u||l,h=ko(t.data.style)||{};t.data.normalizedStyle=s(h.__ob__)?N({},h):h;const p=function(e){const t={};let n;{let r=e;for(;r.componentInstance;)r=r.componentInstance._vnode,r&&r.data&&(n=Co(r.data))&&N(t,n)}(n=Co(e.data))&&N(t,n);let r=e;for(;r=r.parent;)r.data&&(n=Co(r.data))&&N(t,n);return t}(t);for(a in d)i(p[a])&&Ro(c,a,"");for(a in p)o=p[a],Ro(c,a,null==o?"":o)}var Uo={create:Do,update:Do};const jo=/\s+/;function Fo(e,t){if(t&&(t=t.trim()))if(e.classList)t.indexOf(" ")>-1?t.split(jo).forEach(t=>e.classList.add(t)):e.classList.add(t);else{const n=` ${e.getAttribute("class")||""} `;n.indexOf(" "+t+" ")<0&&e.setAttribute("class",(n+t).trim())}}function $o(e,t){if(t&&(t=t.trim()))if(e.classList)t.indexOf(" ")>-1?t.split(jo).forEach(t=>e.classList.remove(t)):e.classList.remove(t),e.classList.length||e.removeAttribute("class");else{let n=` ${e.getAttribute("class")||""} `;const r=" "+t+" ";for(;n.indexOf(r)>=0;)n=n.replace(r," ");n=n.trim(),n?e.setAttribute("class",n):e.removeAttribute("class")}}function Go(e){if(e){if("object"==typeof e){const t={};return!1!==e.css&&N(t,Bo(e.name||"v")),N(t,e),t}return"string"==typeof e?Bo(e):void 0}}const Bo=I(e=>({enterClass:`${e}-enter`,enterToClass:`${e}-enter-to`,enterActiveClass:`${e}-enter-active`,leaveClass:`${e}-leave`,leaveToClass:`${e}-leave-to`,leaveActiveClass:`${e}-leave-active`})),qo=K&&!X,Ho="transition",zo="animation";let Wo="transition",Vo="transitionend",Ko="animation",Yo="animationend";qo&&(void 0===window.ontransitionend&&void 0!==window.onwebkittransitionend&&(Wo="WebkitTransition",Vo="webkitTransitionEnd"),void 0===window.onanimationend&&void 0!==window.onwebkitanimationend&&(Ko="WebkitAnimation",Yo="webkitAnimationEnd"));const Qo=K?window.requestAnimationFrame?window.requestAnimationFrame.bind(window):setTimeout:e=>e();function Xo(e){Qo(()=>{Qo(e)})}function Jo(e,t){const n=e._transitionClasses||(e._transitionClasses=[]);n.indexOf(t)<0&&(n.push(t),Fo(e,t))}function Zo(e,t){e._transitionClasses&&b(e._transitionClasses,t),$o(e,t)}function ei(e,t,n){const{type:r,timeout:o,propCount:i}=ni(e,t);if(!r)return n();const s=r===Ho?Vo:Yo;let a=0;const c=()=>{e.removeEventListener(s,u),n()},u=t=>{t.target===e&&++a>=i&&c()};setTimeout(()=>{a<i&&c()},o+1),e.addEventListener(s,u)}const ti=/\b(transform|all)(,|$)/;function ni(e,t){const n=window.getComputedStyle(e),r=(n[Wo+"Delay"]||"").split(", "),o=(n[Wo+"Duration"]||"").split(", "),i=ri(r,o),s=(n[Ko+"Delay"]||"").split(", "),a=(n[Ko+"Duration"]||"").split(", "),c=ri(s,a);let u,l=0,d=0;return t===Ho?i>0&&(u=Ho,l=i,d=o.length):t===zo?c>0&&(u=zo,l=c,d=a.length):(l=Math.max(i,c),u=l>0?i>c?Ho:zo:null,d=u?u===Ho?o.length:a.length:0),{type:u,timeout:l,propCount:d,hasTransform:u===Ho&&ti.test(n[Wo+"Property"])}}function ri(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max.apply(null,t.map((t,n)=>oi(t)+oi(e[n])))}function oi(e){return 1e3*Number(e.slice(0,-1).replace(",","."))}function ii(e,t){const n=e.elm;s(n._leaveCb)&&(n._leaveCb.cancelled=!0,n._leaveCb());const r=Go(e.data.transition);if(i(r))return;if(s(n._enterCb)||1!==n.nodeType)return;const{css:o,type:a,enterClass:c,enterToClass:d,enterActiveClass:h,appearClass:p,appearToClass:f,appearActiveClass:m,beforeEnter:g,enter:_,afterEnter:y,enterCancelled:b,beforeAppear:w,appear:E,afterAppear:I,appearCancelled:S,duration:A}=r;let O=An,T=An.$vnode;for(;T&&T.parent;)O=T.context,T=T.parent;const C=!O._isMounted||!e.isRootInsert;if(C&&!E&&""!==E)return;const k=C&&p?p:c,P=C&&m?m:h,N=C&&f?f:d,R=C&&w||g,M=C&&u(E)?E:_,x=C&&I||y,L=C&&S||b,D=v(l(A)?A.enter:A),U=!1!==o&&!X,F=ci(M),$=n._enterCb=j(()=>{U&&(Zo(n,N),Zo(n,P)),$.cancelled?(U&&Zo(n,k),L&&L(n)):x&&x(n),n._enterCb=null});e.data.show||at(e,"insert",()=>{const t=n.parentNode,r=t&&t._pending&&t._pending[e.key];r&&r.tag===e.tag&&r.elm._leaveCb&&r.elm._leaveCb(),M&&M(n,$)}),R&&R(n),U&&(Jo(n,k),Jo(n,P),Xo(()=>{Zo(n,k),$.cancelled||(Jo(n,N),F||(ai(D)?setTimeout($,D):ei(n,a,$)))})),e.data.show&&(t&&t(),M&&M(n,$)),U||F||$()}function si(e,t){const n=e.elm;s(n._enterCb)&&(n._enterCb.cancelled=!0,n._enterCb());const r=Go(e.data.transition);if(i(r)||1!==n.nodeType)return t();if(s(n._leaveCb))return;const{css:o,type:a,leaveClass:c,leaveToClass:u,leaveActiveClass:d,beforeLeave:h,leave:p,afterLeave:f,leaveCancelled:m,delayLeave:g,duration:_}=r,y=!1!==o&&!X,b=ci(p),w=v(l(_)?_.leave:_),E=n._leaveCb=j(()=>{n.parentNode&&n.parentNode._pending&&(n.parentNode._pending[e.key]=null),y&&(Zo(n,u),Zo(n,d)),E.cancelled?(y&&Zo(n,c),m&&m(n)):(t(),f&&f(n)),n._leaveCb=null});function I(){E.cancelled||(!e.data.show&&n.parentNode&&((n.parentNode._pending||(n.parentNode._pending={}))[e.key]=e),h&&h(n),y&&(Jo(n,c),Jo(n,d),Xo(()=>{Zo(n,c),E.cancelled||(Jo(n,u),b||(ai(w)?setTimeout(E,w):ei(n,a,E)))})),p&&p(n,E),y||b||E())}g?g(I):I()}function ai(e){return"number"==typeof e&&!isNaN(e)}function ci(e){if(i(e))return!1;const t=e.fns;return s(t)?ci(Array.isArray(t)?t[0]:t):(e._length||e.length)>1}function ui(e,t){!0!==t.data.show&&ii(t)}const li=function(e){let t,n;const r={},{modules:u,nodeOps:l}=e;for(t=0;t<Xr.length;++t)for(r[Xr[t]]=[],n=0;n<u.length;++n)s(u[n][Xr[t]])&&r[Xr[t]].push(u[n][Xr[t]]);function d(e){const t=l.parentNode(e);s(t)&&l.removeChild(t,e)}function h(e,t,n,o,i,c,u){if(s(e.elm)&&s(c)&&(e=c[u]=fe(e)),e.isRootInsert=!i,function(e,t,n,o){let i=e.data;if(s(i)){const c=s(e.componentInstance)&&i.keepAlive;if(s(i=i.hook)&&s(i=i.init)&&i(e,!1),s(e.componentInstance))return p(e,t),f(n,e.elm,o),a(c)&&function(e,t,n,o){let i,a=e;for(;a.componentInstance;)if(a=a.componentInstance._vnode,s(i=a.data)&&s(i=i.transition)){for(i=0;i<r.activate.length;++i)r.activate[i](Qr,a);t.push(a);break}f(n,e.elm,o)}(e,t,n,o),!0}}(e,t,n,o))return;const d=e.data,h=e.children,g=e.tag;s(g)?(e.elm=e.ns?l.createElementNS(e.ns,g):l.createElement(g,e),y(e),m(e,h,t),s(d)&&v(e,t),f(n,e.elm,o)):a(e.isComment)?(e.elm=l.createComment(e.text),f(n,e.elm,o)):(e.elm=l.createTextNode(e.text),f(n,e.elm,o))}function p(e,t){s(e.data.pendingInsert)&&(t.push.apply(t,e.data.pendingInsert),e.data.pendingInsert=null),e.elm=e.componentInstance.$el,g(e)?(v(e,t),y(e)):(Kr(e),t.push(e))}function f(e,t,n){s(e)&&(s(n)?l.parentNode(n)===e&&l.insertBefore(e,t,n):l.appendChild(e,t))}function m(e,t,n){if(o(t))for(let r=0;r<t.length;++r)h(t[r],n,e.elm,null,!0,t,r);else c(e.text)&&l.appendChild(e.elm,l.createTextNode(String(e.text)))}function g(e){for(;e.componentInstance;)e=e.componentInstance._vnode;return s(e.tag)}function v(e,n){for(let t=0;t<r.create.length;++t)r.create[t](Qr,e);t=e.data.hook,s(t)&&(s(t.create)&&t.create(Qr,e),s(t.insert)&&n.push(e))}function y(e){let t;if(s(t=e.fnScopeId))l.setStyleScope(e.elm,t);else{let n=e;for(;n;)s(t=n.context)&&s(t=t.$options._scopeId)&&l.setStyleScope(e.elm,t),n=n.parent}s(t=An)&&t!==e.context&&t!==e.fnContext&&s(t=t.$options._scopeId)&&l.setStyleScope(e.elm,t)}function b(e,t,n,r,o,i){for(;r<=o;++r)h(n[r],i,e,t,!1,n,r)}function w(e){let t,n;const o=e.data;if(s(o))for(s(t=o.hook)&&s(t=t.destroy)&&t(e),t=0;t<r.destroy.length;++t)r.destroy[t](e);if(s(t=e.children))for(n=0;n<e.children.length;++n)w(e.children[n])}function E(e,t,n){for(;t<=n;++t){const n=e[t];s(n)&&(s(n.tag)?(I(n),w(n)):d(n.elm))}}function I(e,t){if(s(t)||s(e.data)){let n;const o=r.remove.length+1;for(s(t)?t.listeners+=o:t=function(e,t){function n(){0==--n.listeners&&d(e)}return n.listeners=t,n}(e.elm,o),s(n=e.componentInstance)&&s(n=n._vnode)&&s(n.data)&&I(n,t),n=0;n<r.remove.length;++n)r.remove[n](e,t);s(n=e.data.hook)&&s(n=n.remove)?n(e,t):t()}else d(e.elm)}function S(e,t,n,r){for(let o=n;o<r;o++){const n=t[o];if(s(n)&&Jr(e,n))return o}}function A(e,t,n,o,c,u){if(e===t)return;s(t.elm)&&s(o)&&(t=o[c]=fe(t));const d=t.elm=e.elm;if(a(e.isAsyncPlaceholder))return void(s(t.asyncFactory.resolved)?C(e.elm,t,n):t.isAsyncPlaceholder=!0);if(a(t.isStatic)&&a(e.isStatic)&&t.key===e.key&&(a(t.isCloned)||a(t.isOnce)))return void(t.componentInstance=e.componentInstance);let p;const f=t.data;s(f)&&s(p=f.hook)&&s(p=p.prepatch)&&p(e,t);const m=e.children,v=t.children;if(s(f)&&g(t)){for(p=0;p<r.update.length;++p)r.update[p](e,t);s(p=f.hook)&&s(p=p.update)&&p(e,t)}i(t.text)?s(m)&&s(v)?m!==v&&function(e,t,n,r,o){let a,c,u,d,p=0,f=0,m=t.length-1,g=t[0],v=t[m],_=n.length-1,y=n[0],w=n[_];const I=!o;for(;p<=m&&f<=_;)i(g)?g=t[++p]:i(v)?v=t[--m]:Jr(g,y)?(A(g,y,r,n,f),g=t[++p],y=n[++f]):Jr(v,w)?(A(v,w,r,n,_),v=t[--m],w=n[--_]):Jr(g,w)?(A(g,w,r,n,_),I&&l.insertBefore(e,g.elm,l.nextSibling(v.elm)),g=t[++p],w=n[--_]):Jr(v,y)?(A(v,y,r,n,f),I&&l.insertBefore(e,v.elm,g.elm),v=t[--m],y=n[++f]):(i(a)&&(a=Zr(t,p,m)),c=s(y.key)?a[y.key]:S(y,t,p,m),i(c)?h(y,r,e,g.elm,!1,n,f):(u=t[c],Jr(u,y)?(A(u,y,r,n,f),t[c]=void 0,I&&l.insertBefore(e,u.elm,g.elm)):h(y,r,e,g.elm,!1,n,f)),y=n[++f]);p>m?(d=i(n[_+1])?null:n[_+1].elm,b(e,d,n,f,_,r)):f>_&&E(t,p,m)}(d,m,v,n,u):s(v)?(s(e.text)&&l.setTextContent(d,""),b(d,null,v,0,v.length-1,n)):s(m)?E(m,0,m.length-1):s(e.text)&&l.setTextContent(d,""):e.text!==t.text&&l.setTextContent(d,t.text),s(f)&&s(p=f.hook)&&s(p=p.postpatch)&&p(e,t)}function O(e,t,n){if(a(n)&&s(e.parent))e.parent.data.pendingInsert=t;else for(let e=0;e<t.length;++e)t[e].data.hook.insert(t[e])}const T=_("attrs,class,staticClass,staticStyle,key");function C(e,t,n,r){let o;const{tag:i,data:c,children:u}=t;if(r=r||c&&c.pre,t.elm=e,a(t.isComment)&&s(t.asyncFactory))return t.isAsyncPlaceholder=!0,!0;if(s(c)&&(s(o=c.hook)&&s(o=o.init)&&o(t,!0),s(o=t.componentInstance)))return p(t,n),!0;if(s(i)){if(s(u))if(e.hasChildNodes())if(s(o=c)&&s(o=o.domProps)&&s(o=o.innerHTML)){if(o!==e.innerHTML)return!1}else{let t=!0,o=e.firstChild;for(let e=0;e<u.length;e++){if(!o||!C(o,u[e],n,r)){t=!1;break}o=o.nextSibling}if(!t||o)return!1}else m(t,u,n);if(s(c)){let e=!1;for(const r in c)if(!T(r)){e=!0,v(t,n);break}!e&&c.class&&gn(c.class)}}else e.data!==t.text&&(e.data=t.text);return!0}return function(e,t,n,o){if(i(t))return void(s(e)&&w(e));let c=!1;const u=[];if(i(e))c=!0,h(t,u);else{const i=s(e.nodeType);if(!i&&Jr(e,t))A(e,t,u,null,null,o);else{if(i){if(1===e.nodeType&&e.hasAttribute($)&&(e.removeAttribute($),n=!0),a(n)&&C(e,t,u))return O(t,u,!0),e;d=e,e=new de(l.tagName(d).toLowerCase(),{},[],void 0,d)}const o=e.elm,c=l.parentNode(o);if(h(t,u,o._leaveCb?null:c,l.nextSibling(o)),s(t.parent)){let e=t.parent;const n=g(t);for(;e;){for(let t=0;t<r.destroy.length;++t)r.destroy[t](e);if(e.elm=t.elm,n){for(let t=0;t<r.create.length;++t)r.create[t](Qr,e);const t=e.data.hook.insert;if(t.merged){const e=t.fns.slice(1);for(let t=0;t<e.length;t++)e[t]()}}else Kr(e);e=e.parent}}s(c)?E([e],0,0):s(e.tag)&&w(e)}}var d;return O(t,u,c),t.elm}}({nodeOps:Wr,modules:[lo,po,Eo,Oo,Uo,K?{create:ui,activate:ui,remove(e,t){!0!==e.data.show?si(e,t):t()}}:{}].concat(so)});X&&document.addEventListener("selectionchange",()=>{const e=document.activeElement;e&&e.vmodel&&_i(e,"input")});const di={inserted(e,t,n,r){"select"===n.tag?(r.elm&&!r.elm._vOptions?at(n,"postpatch",()=>{di.componentUpdated(e,t,n)}):hi(e,t,n.context),e._vOptions=[].map.call(e.options,mi)):("textarea"===n.tag||zr(e.type))&&(e._vModifiers=t.modifiers,t.modifiers.lazy||(e.addEventListener("compositionstart",gi),e.addEventListener("compositionend",vi),e.addEventListener("change",vi),X&&(e.vmodel=!0)))},componentUpdated(e,t,n){if("select"===n.tag){hi(e,t,n.context);const r=e._vOptions,o=e._vOptions=[].map.call(e.options,mi);o.some((e,t)=>!D(e,r[t]))&&(e.multiple?t.value.some(e=>fi(e,o)):t.value!==t.oldValue&&fi(t.value,o))&&_i(e,"change")}}};function hi(e,t,n){pi(e,t),(Q||J)&&setTimeout(()=>{pi(e,t)},0)}function pi(e,t,n){const r=t.value,o=e.multiple;if(o&&!Array.isArray(r))return;let i,s;for(let t=0,n=e.options.length;t<n;t++)if(s=e.options[t],o)i=U(r,mi(s))>-1,s.selected!==i&&(s.selected=i);else if(D(mi(s),r))return void(e.selectedIndex!==t&&(e.selectedIndex=t));o||(e.selectedIndex=-1)}function fi(e,t){return t.every(t=>!D(t,e))}function mi(e){return"_value"in e?e._value:e.value}function gi(e){e.target.composing=!0}function vi(e){e.target.composing&&(e.target.composing=!1,_i(e.target,"input"))}function _i(e,t){const n=document.createEvent("HTMLEvents");n.initEvent(t,!0,!0),e.dispatchEvent(n)}function yi(e){return!e.componentInstance||e.data&&e.data.transition?e:yi(e.componentInstance._vnode)}var bi={bind(e,{value:t},n){const r=(n=yi(n)).data&&n.data.transition,o=e.__vOriginalDisplay="none"===e.style.display?"":e.style.display;t&&r?(n.data.show=!0,ii(n,()=>{e.style.display=o})):e.style.display=t?o:"none"},update(e,{value:t,oldValue:n},r){!t!=!n&&((r=yi(r)).data&&r.data.transition?(r.data.show=!0,t?ii(r,()=>{e.style.display=e.__vOriginalDisplay}):si(r,()=>{e.style.display="none"})):e.style.display=t?e.__vOriginalDisplay:"none")},unbind(e,t,n,r,o){o||(e.style.display=e.__vOriginalDisplay)}},wi={model:di,show:bi};const Ei={name:String,appear:Boolean,css:Boolean,mode:String,type:String,enterClass:String,leaveClass:String,enterToClass:String,leaveToClass:String,enterActiveClass:String,leaveActiveClass:String,appearClass:String,appearActiveClass:String,appearToClass:String,duration:[Number,String,Object]};function Ii(e){const t=e&&e.componentOptions;return t&&t.Ctor.options.abstract?Ii($t(t.children)):e}function Si(e){const t={},n=e.$options;for(const r in n.propsData)t[r]=e[r];const r=n._parentListeners;for(const e in r)t[A(e)]=r[e];return t}function Ai(e,t){if(/\d-keep-alive$/.test(t.tag))return e("keep-alive",{props:t.componentOptions.propsData})}const Oi=e=>e.tag||kt(e),Ti=e=>"show"===e.name;var Ci={name:"transition",props:Ei,abstract:!0,render(e){let t=this.$slots.default;if(!t)return;if(t=t.filter(Oi),!t.length)return;const n=this.mode,r=t[0];if(function(e){for(;e=e.parent;)if(e.data.transition)return!0}(this.$vnode))return r;const o=Ii(r);if(!o)return r;if(this._leaving)return Ai(e,r);const i=`__transition-${this._uid}-`;o.key=null==o.key?o.isComment?i+"comment":i+o.tag:c(o.key)?0===String(o.key).indexOf(i)?o.key:i+o.key:o.key;const s=(o.data||(o.data={})).transition=Si(this),a=this._vnode,u=Ii(a);if(o.data.directives&&o.data.directives.some(Ti)&&(o.data.show=!0),u&&u.data&&!function(e,t){return t.key===e.key&&t.tag===e.tag}(o,u)&&!kt(u)&&(!u.componentInstance||!u.componentInstance._vnode.isComment)){const t=u.data.transition=N({},s);if("out-in"===n)return this._leaving=!0,at(t,"afterLeave",()=>{this._leaving=!1,this.$forceUpdate()}),Ai(e,r);if("in-out"===n){if(kt(o))return a;let e;const n=()=>{e()};at(s,"afterEnter",n),at(s,"enterCancelled",n),at(t,"delayLeave",t=>{e=t})}}return r}};const ki=N({tag:String,moveClass:String},Ei);delete ki.mode;var Pi={props:ki,beforeMount(){const e=this._update;this._update=(t,n)=>{const r=On(this);this.__patch__(this._vnode,this.kept,!1,!0),this._vnode=this.kept,r(),e.call(this,t,n)}},render(e){const t=this.tag||this.$vnode.data.tag||"span",n=Object.create(null),r=this.prevChildren=this.children,o=this.$slots.default||[],i=this.children=[],s=Si(this);for(let e=0;e<o.length;e++){const t=o[e];t.tag&&null!=t.key&&0!==String(t.key).indexOf("__vlist")&&(i.push(t),n[t.key]=t,(t.data||(t.data={})).transition=s)}if(r){const o=[],i=[];for(let e=0;e<r.length;e++){const t=r[e];t.data.transition=s,t.data.pos=t.elm.getBoundingClientRect(),n[t.key]?o.push(t):i.push(t)}this.kept=e(t,null,o),this.removed=i}return e(t,null,i)},updated(){const e=this.prevChildren,t=this.moveClass||(this.name||"v")+"-move";e.length&&this.hasMove(e[0].elm,t)&&(e.forEach(Ni),e.forEach(Ri),e.forEach(Mi),this._reflow=document.body.offsetHeight,e.forEach(e=>{if(e.data.moved){const n=e.elm,r=n.style;Jo(n,t),r.transform=r.WebkitTransform=r.transitionDuration="",n.addEventListener(Vo,n._moveCb=function e(r){r&&r.target!==n||r&&!/transform$/.test(r.propertyName)||(n.removeEventListener(Vo,e),n._moveCb=null,Zo(n,t))})}}))},methods:{hasMove(e,t){if(!qo)return!1;if(this._hasMove)return this._hasMove;const n=e.cloneNode();e._transitionClasses&&e._transitionClasses.forEach(e=>{$o(n,e)}),Fo(n,t),n.style.display="none",this.$el.appendChild(n);const r=ni(n);return this.$el.removeChild(n),this._hasMove=r.hasTransform}}};function Ni(e){e.elm._moveCb&&e.elm._moveCb(),e.elm._enterCb&&e.elm._enterCb()}function Ri(e){e.data.newPos=e.elm.getBoundingClientRect()}function Mi(e){const t=e.data.pos,n=e.data.newPos,r=t.left-n.left,o=t.top-n.top;if(r||o){e.data.moved=!0;const t=e.elm.style;t.transform=t.WebkitTransform=`translate(${r}px,${o}px)`,t.transitionDuration="0s"}}var xi={Transition:Ci,TransitionGroup:Pi};wr.config.mustUseProp=(e,t,n)=>"value"===n&&kr(e)&&"button"!==t||"selected"===n&&"option"===e||"checked"===n&&"input"===e||"muted"===n&&"video"===e,wr.config.isReservedTag=qr,wr.config.isReservedAttr=Cr,wr.config.getTagNamespace=function(e){return Br(e)?"svg":"math"===e?"math":void 0},wr.config.isUnknownElement=function(e){if(!K)return!0;if(qr(e))return!1;if(e=e.toLowerCase(),null!=Hr[e])return Hr[e];const t=document.createElement(e);return e.indexOf("-")>-1?Hr[e]=t.constructor===window.HTMLUnknownElement||t.constructor===window.HTMLElement:Hr[e]=/HTMLUnknownElement/.test(t.toString())},N(wr.options.directives,wi),N(wr.options.components,xi),wr.prototype.__patch__=K?li:M,wr.prototype.$mount=function(e,t){return function(e,t,n){let r;e.$el=t,e.$options.render||(e.$options.render=he),Pn(e,"beforeMount"),r=()=>{e._update(e._render(),n)},new bn(e,r,M,{before(){e._isMounted&&!e._isDestroyed&&Pn(e,"beforeUpdate")}},!0),n=!1;const o=e._preWatchers;if(o)for(let e=0;e<o.length;e++)o[e].run();return null==e.$vnode&&(e._isMounted=!0,Pn(e,"mounted")),e}(this,e=e&&K?function(e){return"string"==typeof e?document.querySelector(e)||document.createElement("div"):e}(e):void 0,t)},K&&setTimeout(()=>{q.devtools&&ie&&ie.emit("init",wr)},0),N(wr,fn),e.exports=wr},5232:function(e,t,n){"use strict";!function(e){function t(){}function r(e){return"object"==typeof e&&null!==e||"function"==typeof e}const o=t;function i(e,t){try{Object.defineProperty(e,"name",{value:t,configurable:!0})}catch(e){}}const s=Promise,a=Promise.resolve.bind(s),c=Promise.prototype.then,u=Promise.reject.bind(s),l=a;function d(e){return new s(e)}function h(e){return d(t=>t(e))}function p(e){return u(e)}function f(e,t,n){return c.call(e,t,n)}function m(e,t,n){f(f(e,t,n),void 0,o)}function g(e,t){m(e,t)}function v(e,t){m(e,void 0,t)}function _(e,t,n){return f(e,t,n)}function y(e){f(e,void 0,o)}let b=e=>{if("function"==typeof queueMicrotask)b=queueMicrotask;else{const e=h(void 0);b=t=>f(e,t)}return b(e)};function w(e,t,n){if("function"!=typeof e)throw new TypeError("Argument is not a function");return Function.prototype.apply.call(e,t,n)}function E(e,t,n){try{return h(w(e,t,n))}catch(e){return p(e)}}class I{constructor(){this._cursor=0,this._size=0,this._front={_elements:[],_next:void 0},this._back=this._front,this._cursor=0,this._size=0}get length(){return this._size}push(e){const t=this._back;let n=t;16383===t._elements.length&&(n={_elements:[],_next:void 0}),t._elements.push(e),n!==t&&(this._back=n,t._next=n),++this._size}shift(){const e=this._front;let t=e;const n=this._cursor;let r=n+1;const o=e._elements,i=o[n];return 16384===r&&(t=e._next,r=0),--this._size,this._cursor=r,e!==t&&(this._front=t),o[n]=void 0,i}forEach(e){let t=this._cursor,n=this._front,r=n._elements;for(;!(t===r.length&&void 0===n._next||t===r.length&&(n=n._next,r=n._elements,t=0,0===r.length));)e(r[t]),++t}peek(){const e=this._front,t=this._cursor;return e._elements[t]}}const S=Symbol("[[AbortSteps]]"),A=Symbol("[[ErrorSteps]]"),O=Symbol("[[CancelSteps]]"),T=Symbol("[[PullSteps]]"),C=Symbol("[[ReleaseSteps]]");function k(e,t){e._ownerReadableStream=t,t._reader=e,"readable"===t._state?M(e):"closed"===t._state?function(e){M(e),D(e)}(e):x(e,t._storedError)}function P(e,t){return Bn(e._ownerReadableStream,t)}function N(e){const t=e._ownerReadableStream;"readable"===t._state?L(e,new TypeError("Reader was released and can no longer be used to monitor the stream's closedness")):function(e){x(e,new TypeError("Reader was released and can no longer be used to monitor the stream's closedness"))}(e),t._readableStreamController[C](),t._reader=void 0,e._ownerReadableStream=void 0}function R(e){return new TypeError("Cannot "+e+" a stream using a released reader")}function M(e){e._closedPromise=d((t,n)=>{e._closedPromise_resolve=t,e._closedPromise_reject=n})}function x(e,t){M(e),L(e,t)}function L(e,t){void 0!==e._closedPromise_reject&&(y(e._closedPromise),e._closedPromise_reject(t),e._closedPromise_resolve=void 0,e._closedPromise_reject=void 0)}function D(e){void 0!==e._closedPromise_resolve&&(e._closedPromise_resolve(void 0),e._closedPromise_resolve=void 0,e._closedPromise_reject=void 0)}const U=Number.isFinite||function(e){return"number"==typeof e&&isFinite(e)},j=Math.trunc||function(e){return e<0?Math.ceil(e):Math.floor(e)};function F(e,t){if(void 0!==e&&"object"!=typeof(n=e)&&"function"!=typeof n)throw new TypeError(`${t} is not an object.`);var n}function $(e,t){if("function"!=typeof e)throw new TypeError(`${t} is not a function.`)}function G(e,t){if(!function(e){return"object"==typeof e&&null!==e||"function"==typeof e}(e))throw new TypeError(`${t} is not an object.`)}function B(e,t,n){if(void 0===e)throw new TypeError(`Parameter ${t} is required in '${n}'.`)}function q(e,t,n){if(void 0===e)throw new TypeError(`${t} is required in '${n}'.`)}function H(e){return Number(e)}function z(e){return 0===e?0:e}function W(e,t){const n=Number.MAX_SAFE_INTEGER;let r=Number(e);if(r=z(r),!U(r))throw new TypeError(`${t} is not a finite number`);if(r=function(e){return z(j(e))}(r),r<0||r>n)throw new TypeError(`${t} is outside the accepted range of 0 to ${n}, inclusive`);return U(r)&&0!==r?r:0}function V(e,t){if(!$n(e))throw new TypeError(`${t} is not a ReadableStream.`)}function K(e){return new Z(e)}function Y(e,t){e._reader._readRequests.push(t)}function Q(e,t,n){const r=e._reader._readRequests.shift();n?r._closeSteps():r._chunkSteps(t)}function X(e){return e._reader._readRequests.length}function J(e){const t=e._reader;return void 0!==t&&!!ee(t)}class Z{constructor(e){if(B(e,1,"ReadableStreamDefaultReader"),V(e,"First parameter"),Gn(e))throw new TypeError("This stream has already been locked for exclusive reading by another reader");k(this,e),this._readRequests=new I}get closed(){return ee(this)?this._closedPromise:p(re("closed"))}cancel(e=void 0){return ee(this)?void 0===this._ownerReadableStream?p(R("cancel")):P(this,e):p(re("cancel"))}read(){if(!ee(this))return p(re("read"));if(void 0===this._ownerReadableStream)return p(R("read from"));let e,t;const n=d((n,r)=>{e=n,t=r});return te(this,{_chunkSteps:t=>e({value:t,done:!1}),_closeSteps:()=>e({value:void 0,done:!0}),_errorSteps:e=>t(e)}),n}releaseLock(){if(!ee(this))throw re("releaseLock");void 0!==this._ownerReadableStream&&function(e){N(e),ne(e,new TypeError("Reader was released"))}(this)}}function ee(e){return!!r(e)&&!!Object.prototype.hasOwnProperty.call(e,"_readRequests")&&e instanceof Z}function te(e,t){const n=e._ownerReadableStream;n._disturbed=!0,"closed"===n._state?t._closeSteps():"errored"===n._state?t._errorSteps(n._storedError):n._readableStreamController[T](t)}function ne(e,t){const n=e._readRequests;e._readRequests=new I,n.forEach(e=>{e._errorSteps(t)})}function re(e){return new TypeError(`ReadableStreamDefaultReader.prototype.${e} can only be used on a ReadableStreamDefaultReader`)}var oe,ie,se;function ae(e){return e.slice()}function ce(e,t,n,r,o){new Uint8Array(e).set(new Uint8Array(n,r,o),t)}Object.defineProperties(Z.prototype,{cancel:{enumerable:!0},read:{enumerable:!0},releaseLock:{enumerable:!0},closed:{enumerable:!0}}),i(Z.prototype.cancel,"cancel"),i(Z.prototype.read,"read"),i(Z.prototype.releaseLock,"releaseLock"),"symbol"==typeof Symbol.toStringTag&&Object.defineProperty(Z.prototype,Symbol.toStringTag,{value:"ReadableStreamDefaultReader",configurable:!0});let ue=e=>(ue="function"==typeof e.transfer?e=>e.transfer():"function"==typeof structuredClone?e=>structuredClone(e,{transfer:[e]}):e=>e,ue(e)),le=e=>(le="boolean"==typeof e.detached?e=>e.detached:e=>0===e.byteLength,le(e));function de(e,t,n){if(e.slice)return e.slice(t,n);const r=n-t,o=new ArrayBuffer(r);return ce(o,0,e,t,r),o}function he(e,t){const n=e[t];if(null!=n){if("function"!=typeof n)throw new TypeError(`${String(t)} is not a function`);return n}}function pe(e){try{const t=e.done,n=e.value;return f(l(n),e=>({done:t,value:e}))}catch(e){return p(e)}}const fe=null!==(se=null!==(oe=Symbol.asyncIterator)&&void 0!==oe?oe:null===(ie=Symbol.for)||void 0===ie?void 0:ie.call(Symbol,"Symbol.asyncIterator"))&&void 0!==se?se:"@@asyncIterator";function me(e,t="sync",n){if(void 0===n)if("async"===t){if(void 0===(n=he(e,fe)))return function(e){const t={next(){let t;try{t=ge(e)}catch(e){return p(e)}return pe(t)},return(t){let n;try{const r=he(e.iterator,"return");if(void 0===r)return h({done:!0,value:t});n=w(r,e.iterator,[t])}catch(e){return p(e)}return r(n)?pe(n):p(new TypeError("The iterator.return() method must return an object"))}};return{iterator:t,nextMethod:t.next,done:!1}}(me(e,"sync",he(e,Symbol.iterator)))}else n=he(e,Symbol.iterator);if(void 0===n)throw new TypeError("The object is not iterable");const o=w(n,e,[]);if(!r(o))throw new TypeError("The iterator method must return an object");return{iterator:o,nextMethod:o.next,done:!1}}function ge(e){const t=w(e.nextMethod,e.iterator,[]);if(!r(t))throw new TypeError("The iterator.next() method must return an object");return t}class ve{constructor(e,t){this._ongoingPromise=void 0,this._isFinished=!1,this._reader=e,this._preventCancel=t}next(){const e=()=>this._nextSteps();return this._ongoingPromise=this._ongoingPromise?_(this._ongoingPromise,e,e):e(),this._ongoingPromise}return(e){const t=()=>this._returnSteps(e);return this._ongoingPromise=this._ongoingPromise?_(this._ongoingPromise,t,t):t(),this._ongoingPromise}_nextSteps(){if(this._isFinished)return Promise.resolve({value:void 0,done:!0});const e=this._reader;let t,n;const r=d((e,r)=>{t=e,n=r});return te(e,{_chunkSteps:e=>{this._ongoingPromise=void 0,b(()=>t({value:e,done:!1}))},_closeSteps:()=>{this._ongoingPromise=void 0,this._isFinished=!0,N(e),t({value:void 0,done:!0})},_errorSteps:t=>{this._ongoingPromise=void 0,this._isFinished=!0,N(e),n(t)}}),r}_returnSteps(e){if(this._isFinished)return Promise.resolve({value:e,done:!0});this._isFinished=!0;const t=this._reader;if(!this._preventCancel){const n=P(t,e);return N(t),_(n,()=>({value:e,done:!0}))}return N(t),h({value:e,done:!0})}}const _e={next(){return ye(this)?this._asyncIteratorImpl.next():p(be("next"))},return(e){return ye(this)?this._asyncIteratorImpl.return(e):p(be("return"))},[fe](){return this}};function ye(e){if(!r(e))return!1;if(!Object.prototype.hasOwnProperty.call(e,"_asyncIteratorImpl"))return!1;try{return e._asyncIteratorImpl instanceof ve}catch(e){return!1}}function be(e){return new TypeError(`ReadableStreamAsyncIterator.${e} can only be used on a ReadableSteamAsyncIterator`)}Object.defineProperty(_e,fe,{enumerable:!1});const we=Number.isNaN||function(e){return e!=e};function Ee(e){const t=de(e.buffer,e.byteOffset,e.byteOffset+e.byteLength);return new Uint8Array(t)}function Ie(e){const t=e._queue.shift();return e._queueTotalSize-=t.size,e._queueTotalSize<0&&(e._queueTotalSize=0),t.value}function Se(e,t,n){if("number"!=typeof(r=n)||we(r)||r<0||n===1/0)throw new RangeError("Size must be a finite, non-NaN, non-negative number.");var r;e._queue.push({value:t,size:n}),e._queueTotalSize+=n}function Ae(e){e._queue=new I,e._queueTotalSize=0}function Oe(e){return e===DataView}class Te{constructor(){throw new TypeError("Illegal constructor")}get view(){if(!Pe(this))throw rt("view");return this._view}respond(e){if(!Pe(this))throw rt("respond");if(B(e,1,"respond"),e=W(e,"First parameter"),void 0===this._associatedReadableByteStreamController)throw new TypeError("This BYOB request has been invalidated");if(le(this._view.buffer))throw new TypeError("The BYOB request's buffer has been detached and so cannot be used as a response");et(this._associatedReadableByteStreamController,e)}respondWithNewView(e){if(!Pe(this))throw rt("respondWithNewView");if(B(e,1,"respondWithNewView"),!ArrayBuffer.isView(e))throw new TypeError("You can only respond with array buffer views");if(void 0===this._associatedReadableByteStreamController)throw new TypeError("This BYOB request has been invalidated");if(le(e.buffer))throw new TypeError("The given view's buffer has been detached and so cannot be used as a response");tt(this._associatedReadableByteStreamController,e)}}Object.defineProperties(Te.prototype,{respond:{enumerable:!0},respondWithNewView:{enumerable:!0},view:{enumerable:!0}}),i(Te.prototype.respond,"respond"),i(Te.prototype.respondWithNewView,"respondWithNewView"),"symbol"==typeof Symbol.toStringTag&&Object.defineProperty(Te.prototype,Symbol.toStringTag,{value:"ReadableStreamBYOBRequest",configurable:!0});class Ce{constructor(){throw new TypeError("Illegal constructor")}get byobRequest(){if(!ke(this))throw ot("byobRequest");return Je(this)}get desiredSize(){if(!ke(this))throw ot("desiredSize");return Ze(this)}close(){if(!ke(this))throw ot("close");if(this._closeRequested)throw new TypeError("The stream has already been closed; do not close it again!");const e=this._controlledReadableByteStream._state;if("readable"!==e)throw new TypeError(`The stream (in ${e} state) is not in the readable state and cannot be closed`);Ke(this)}enqueue(e){if(!ke(this))throw ot("enqueue");if(B(e,1,"enqueue"),!ArrayBuffer.isView(e))throw new TypeError("chunk must be an array buffer view");if(0===e.byteLength)throw new TypeError("chunk must have non-zero byteLength");if(0===e.buffer.byteLength)throw new TypeError("chunk's buffer must have non-zero byteLength");if(this._closeRequested)throw new TypeError("stream is closed or draining");const t=this._controlledReadableByteStream._state;if("readable"!==t)throw new TypeError(`The stream (in ${t} state) is not in the readable state and cannot be enqueued to`);Ye(this,e)}error(e=void 0){if(!ke(this))throw ot("error");Qe(this,e)}[O](e){Re(this),Ae(this);const t=this._cancelAlgorithm(e);return Ve(this),t}[T](e){const t=this._controlledReadableByteStream;if(this._queueTotalSize>0)return void Xe(this,e);const n=this._autoAllocateChunkSize;if(void 0!==n){let r;try{r=new ArrayBuffer(n)}catch(t){return void e._errorSteps(t)}const o={buffer:r,bufferByteLength:n,byteOffset:0,byteLength:n,bytesFilled:0,minimumFill:1,elementSize:1,viewConstructor:Uint8Array,readerType:"default"};this._pendingPullIntos.push(o)}Y(t,e),Ne(this)}[C](){if(this._pendingPullIntos.length>0){const e=this._pendingPullIntos.peek();e.readerType="none",this._pendingPullIntos=new I,this._pendingPullIntos.push(e)}}}function ke(e){return!!r(e)&&!!Object.prototype.hasOwnProperty.call(e,"_controlledReadableByteStream")&&e instanceof Ce}function Pe(e){return!!r(e)&&!!Object.prototype.hasOwnProperty.call(e,"_associatedReadableByteStreamController")&&e instanceof Te}function Ne(e){const t=function(e){const t=e._controlledReadableByteStream;return"readable"===t._state&&!e._closeRequested&&!!e._started&&(!!(J(t)&&X(t)>0)||!!(ut(t)&&ct(t)>0)||Ze(e)>0)}(e);t&&(e._pulling?e._pullAgain=!0:(e._pulling=!0,m(e._pullAlgorithm(),()=>(e._pulling=!1,e._pullAgain&&(e._pullAgain=!1,Ne(e)),null),t=>(Qe(e,t),null))))}function Re(e){Be(e),e._pendingPullIntos=new I}function Me(e,t){let n=!1;"closed"===e._state&&(n=!0);const r=Le(t);"default"===t.readerType?Q(e,r,n):function(e,t,n){const r=e._reader._readIntoRequests.shift();n?r._closeSteps(t):r._chunkSteps(t)}(e,r,n)}function xe(e,t){for(let n=0;n<t.length;++n)Me(e,t[n])}function Le(e){const t=e.bytesFilled,n=e.elementSize;return new e.viewConstructor(e.buffer,e.byteOffset,t/n)}function De(e,t,n,r){e._queue.push({buffer:t,byteOffset:n,byteLength:r}),e._queueTotalSize+=r}function Ue(e,t,n,r){let o;try{o=de(t,n,n+r)}catch(t){throw Qe(e,t),t}De(e,o,0,r)}function je(e,t){t.bytesFilled>0&&Ue(e,t.buffer,t.byteOffset,t.bytesFilled),We(e)}function Fe(e,t){const n=Math.min(e._queueTotalSize,t.byteLength-t.bytesFilled),r=t.bytesFilled+n;let o=n,i=!1;const s=r-r%t.elementSize;s>=t.minimumFill&&(o=s-t.bytesFilled,i=!0);const a=e._queue;for(;o>0;){const n=a.peek(),r=Math.min(o,n.byteLength),i=t.byteOffset+t.bytesFilled;ce(t.buffer,i,n.buffer,n.byteOffset,r),n.byteLength===r?a.shift():(n.byteOffset+=r,n.byteLength-=r),e._queueTotalSize-=r,$e(e,r,t),o-=r}return i}function $e(e,t,n){n.bytesFilled+=t}function Ge(e){0===e._queueTotalSize&&e._closeRequested?(Ve(e),qn(e._controlledReadableByteStream)):Ne(e)}function Be(e){null!==e._byobRequest&&(e._byobRequest._associatedReadableByteStreamController=void 0,e._byobRequest._view=null,e._byobRequest=null)}function qe(e){const t=[];for(;e._pendingPullIntos.length>0&&0!==e._queueTotalSize;){const n=e._pendingPullIntos.peek();Fe(e,n)&&(We(e),t.push(n))}return t}function He(e,t,n,r){const o=e._controlledReadableByteStream,i=t.constructor,s=function(e){return Oe(e)?1:e.BYTES_PER_ELEMENT}(i),{byteOffset:a,byteLength:c}=t,u=n*s;let l;try{l=ue(t.buffer)}catch(e){return void r._errorSteps(e)}const d={buffer:l,bufferByteLength:l.byteLength,byteOffset:a,byteLength:c,bytesFilled:0,minimumFill:u,elementSize:s,viewConstructor:i,readerType:"byob"};if(e._pendingPullIntos.length>0)return e._pendingPullIntos.push(d),void at(o,r);if("closed"===o._state){const e=new i(d.buffer,d.byteOffset,0);return void r._closeSteps(e)}if(e._queueTotalSize>0){if(Fe(e,d)){const t=Le(d);return Ge(e),void r._chunkSteps(t)}if(e._closeRequested){const t=new TypeError("Insufficient bytes to fill elements in the given buffer");return Qe(e,t),void r._errorSteps(t)}}e._pendingPullIntos.push(d),at(o,r),Ne(e)}function ze(e,t){const n=e._pendingPullIntos.peek();Be(e),"closed"===e._controlledReadableByteStream._state?function(e,t){"none"===t.readerType&&We(e);const n=e._controlledReadableByteStream;if(ut(n)){const t=[];for(;t.length<ct(n);)t.push(We(e));xe(n,t)}}(e,n):function(e,t,n){if($e(0,t,n),"none"===n.readerType){je(e,n);const t=qe(e);return void xe(e._controlledReadableByteStream,t)}if(n.bytesFilled<n.minimumFill)return;We(e);const r=n.bytesFilled%n.elementSize;if(r>0){const t=n.byteOffset+n.bytesFilled;Ue(e,n.buffer,t-r,r)}n.bytesFilled-=r;const o=qe(e);Me(e._controlledReadableByteStream,n),xe(e._controlledReadableByteStream,o)}(e,t,n),Ne(e)}function We(e){return e._pendingPullIntos.shift()}function Ve(e){e._pullAlgorithm=void 0,e._cancelAlgorithm=void 0}function Ke(e){const t=e._controlledReadableByteStream;if(!e._closeRequested&&"readable"===t._state)if(e._queueTotalSize>0)e._closeRequested=!0;else{if(e._pendingPullIntos.length>0){const t=e._pendingPullIntos.peek();if(t.bytesFilled%t.elementSize!==0){const t=new TypeError("Insufficient bytes to fill elements in the given buffer");throw Qe(e,t),t}}Ve(e),qn(t)}}function Ye(e,t){const n=e._controlledReadableByteStream;if(e._closeRequested||"readable"!==n._state)return;const{buffer:r,byteOffset:o,byteLength:i}=t;if(le(r))throw new TypeError("chunk's buffer is detached and so cannot be enqueued");const s=ue(r);if(e._pendingPullIntos.length>0){const t=e._pendingPullIntos.peek();if(le(t.buffer))throw new TypeError("The BYOB request's buffer has been detached and so cannot be filled with an enqueued chunk");Be(e),t.buffer=ue(t.buffer),"none"===t.readerType&&je(e,t)}J(n)?(function(e){const t=e._controlledReadableByteStream._reader;for(;t._readRequests.length>0;){if(0===e._queueTotalSize)return;Xe(e,t._readRequests.shift())}}(e),0===X(n)?De(e,s,o,i):(e._pendingPullIntos.length>0&&We(e),Q(n,new Uint8Array(s,o,i),!1))):ut(n)?(De(e,s,o,i),xe(n,qe(e))):De(e,s,o,i),Ne(e)}function Qe(e,t){const n=e._controlledReadableByteStream;"readable"===n._state&&(Re(e),Ae(e),Ve(e),Hn(n,t))}function Xe(e,t){const n=e._queue.shift();e._queueTotalSize-=n.byteLength,Ge(e);const r=new Uint8Array(n.buffer,n.byteOffset,n.byteLength);t._chunkSteps(r)}function Je(e){if(null===e._byobRequest&&e._pendingPullIntos.length>0){const t=e._pendingPullIntos.peek(),n=new Uint8Array(t.buffer,t.byteOffset+t.bytesFilled,t.byteLength-t.bytesFilled),r=Object.create(Te.prototype);!function(e,t,n){e._associatedReadableByteStreamController=t,e._view=n}(r,e,n),e._byobRequest=r}return e._byobRequest}function Ze(e){const t=e._controlledReadableByteStream._state;return"errored"===t?null:"closed"===t?0:e._strategyHWM-e._queueTotalSize}function et(e,t){const n=e._pendingPullIntos.peek();if("closed"===e._controlledReadableByteStream._state){if(0!==t)throw new TypeError("bytesWritten must be 0 when calling respond() on a closed stream")}else{if(0===t)throw new TypeError("bytesWritten must be greater than 0 when calling respond() on a readable stream");if(n.bytesFilled+t>n.byteLength)throw new RangeError("bytesWritten out of range")}n.buffer=ue(n.buffer),ze(e,t)}function tt(e,t){const n=e._pendingPullIntos.peek();if("closed"===e._controlledReadableByteStream._state){if(0!==t.byteLength)throw new TypeError("The view's length must be 0 when calling respondWithNewView() on a closed stream")}else if(0===t.byteLength)throw new TypeError("The view's length must be greater than 0 when calling respondWithNewView() on a readable stream");if(n.byteOffset+n.bytesFilled!==t.byteOffset)throw new RangeError("The region specified by view does not match byobRequest");if(n.bufferByteLength!==t.buffer.byteLength)throw new RangeError("The buffer of view has different capacity than byobRequest");if(n.bytesFilled+t.byteLength>n.byteLength)throw new RangeError("The region specified by view is larger than byobRequest");const r=t.byteLength;n.buffer=ue(t.buffer),ze(e,r)}function nt(e,t,n,r,o,i,s){t._controlledReadableByteStream=e,t._pullAgain=!1,t._pulling=!1,t._byobRequest=null,t._queue=t._queueTotalSize=void 0,Ae(t),t._closeRequested=!1,t._started=!1,t._strategyHWM=i,t._pullAlgorithm=r,t._cancelAlgorithm=o,t._autoAllocateChunkSize=s,t._pendingPullIntos=new I,e._readableStreamController=t,m(h(n()),()=>(t._started=!0,Ne(t),null),e=>(Qe(t,e),null))}function rt(e){return new TypeError(`ReadableStreamBYOBRequest.prototype.${e} can only be used on a ReadableStreamBYOBRequest`)}function ot(e){return new TypeError(`ReadableByteStreamController.prototype.${e} can only be used on a ReadableByteStreamController`)}function it(e,t){if("byob"!=(e=`${e}`))throw new TypeError(`${t} '${e}' is not a valid enumeration value for ReadableStreamReaderMode`);return e}function st(e){return new lt(e)}function at(e,t){e._reader._readIntoRequests.push(t)}function ct(e){return e._reader._readIntoRequests.length}function ut(e){const t=e._reader;return void 0!==t&&!!dt(t)}Object.defineProperties(Ce.prototype,{close:{enumerable:!0},enqueue:{enumerable:!0},error:{enumerable:!0},byobRequest:{enumerable:!0},desiredSize:{enumerable:!0}}),i(Ce.prototype.close,"close"),i(Ce.prototype.enqueue,"enqueue"),i(Ce.prototype.error,"error"),"symbol"==typeof Symbol.toStringTag&&Object.defineProperty(Ce.prototype,Symbol.toStringTag,{value:"ReadableByteStreamController",configurable:!0});class lt{constructor(e){if(B(e,1,"ReadableStreamBYOBReader"),V(e,"First parameter"),Gn(e))throw new TypeError("This stream has already been locked for exclusive reading by another reader");if(!ke(e._readableStreamController))throw new TypeError("Cannot construct a ReadableStreamBYOBReader for a stream not constructed with a byte source");k(this,e),this._readIntoRequests=new I}get closed(){return dt(this)?this._closedPromise:p(ft("closed"))}cancel(e=void 0){return dt(this)?void 0===this._ownerReadableStream?p(R("cancel")):P(this,e):p(ft("cancel"))}read(e,t={}){if(!dt(this))return p(ft("read"));if(!ArrayBuffer.isView(e))return p(new TypeError("view must be an array buffer view"));if(0===e.byteLength)return p(new TypeError("view must have non-zero byteLength"));if(0===e.buffer.byteLength)return p(new TypeError("view's buffer must have non-zero byteLength"));if(le(e.buffer))return p(new TypeError("view's buffer has been detached"));let n;try{n=function(e,t){var n;return F(e,t),{min:W(null!==(n=null==e?void 0:e.min)&&void 0!==n?n:1,`${t} has member 'min' that`)}}(t,"options")}catch(e){return p(e)}const r=n.min;if(0===r)return p(new TypeError("options.min must be greater than 0"));if(function(e){return Oe(e.constructor)}(e)){if(r>e.byteLength)return p(new RangeError("options.min must be less than or equal to view's byteLength"))}else if(r>e.length)return p(new RangeError("options.min must be less than or equal to view's length"));if(void 0===this._ownerReadableStream)return p(R("read from"));let o,i;const s=d((e,t)=>{o=e,i=t});return ht(this,e,r,{_chunkSteps:e=>o({value:e,done:!1}),_closeSteps:e=>o({value:e,done:!0}),_errorSteps:e=>i(e)}),s}releaseLock(){if(!dt(this))throw ft("releaseLock");void 0!==this._ownerReadableStream&&function(e){N(e),pt(e,new TypeError("Reader was released"))}(this)}}function dt(e){return!!r(e)&&!!Object.prototype.hasOwnProperty.call(e,"_readIntoRequests")&&e instanceof lt}function ht(e,t,n,r){const o=e._ownerReadableStream;o._disturbed=!0,"errored"===o._state?r._errorSteps(o._storedError):He(o._readableStreamController,t,n,r)}function pt(e,t){const n=e._readIntoRequests;e._readIntoRequests=new I,n.forEach(e=>{e._errorSteps(t)})}function ft(e){return new TypeError(`ReadableStreamBYOBReader.prototype.${e} can only be used on a ReadableStreamBYOBReader`)}function mt(e,t){const{highWaterMark:n}=e;if(void 0===n)return t;if(we(n)||n<0)throw new RangeError("Invalid highWaterMark");return n}function gt(e){const{size:t}=e;return t||(()=>1)}function vt(e,t){F(e,t);const n=null==e?void 0:e.highWaterMark,r=null==e?void 0:e.size;return{highWaterMark:void 0===n?void 0:H(n),size:void 0===r?void 0:_t(r,`${t} has member 'size' that`)}}function _t(e,t){return $(e,t),t=>H(e(t))}function yt(e,t,n){return $(e,n),n=>E(e,t,[n])}function bt(e,t,n){return $(e,n),()=>E(e,t,[])}function wt(e,t,n){return $(e,n),n=>w(e,t,[n])}function Et(e,t,n){return $(e,n),(n,r)=>E(e,t,[n,r])}function It(e,t){if(!Tt(e))throw new TypeError(`${t} is not a WritableStream.`)}Object.defineProperties(lt.prototype,{cancel:{enumerable:!0},read:{enumerable:!0},releaseLock:{enumerable:!0},closed:{enumerable:!0}}),i(lt.prototype.cancel,"cancel"),i(lt.prototype.read,"read"),i(lt.prototype.releaseLock,"releaseLock"),"symbol"==typeof Symbol.toStringTag&&Object.defineProperty(lt.prototype,Symbol.toStringTag,{value:"ReadableStreamBYOBReader",configurable:!0});class St{constructor(e={},t={}){void 0===e?e=null:G(e,"First parameter");const n=vt(t,"Second parameter"),r=function(e,t){F(e,t);const n=null==e?void 0:e.abort,r=null==e?void 0:e.close,o=null==e?void 0:e.start,i=null==e?void 0:e.type,s=null==e?void 0:e.write;return{abort:void 0===n?void 0:yt(n,e,`${t} has member 'abort' that`),close:void 0===r?void 0:bt(r,e,`${t} has member 'close' that`),start:void 0===o?void 0:wt(o,e,`${t} has member 'start' that`),write:void 0===s?void 0:Et(s,e,`${t} has member 'write' that`),type:i}}(e,"First parameter");if(Ot(this),void 0!==r.type)throw new RangeError("Invalid type is specified");const o=gt(n);!function(e,t,n,r){const o=Object.create(zt.prototype);let i,s,a,c;i=void 0!==t.start?()=>t.start(o):()=>{},s=void 0!==t.write?e=>t.write(e,o):()=>h(void 0),a=void 0!==t.close?()=>t.close():()=>h(void 0),c=void 0!==t.abort?e=>t.abort(e):()=>h(void 0),Vt(e,o,i,s,a,c,n,r)}(this,r,mt(n,1),o)}get locked(){if(!Tt(this))throw en("locked");return Ct(this)}abort(e=void 0){return Tt(this)?Ct(this)?p(new TypeError("Cannot abort a stream that already has a writer")):kt(this,e):p(en("abort"))}close(){return Tt(this)?Ct(this)?p(new TypeError("Cannot close a stream that already has a writer")):xt(this)?p(new TypeError("Cannot close an already-closing stream")):Pt(this):p(en("close"))}getWriter(){if(!Tt(this))throw en("getWriter");return At(this)}}function At(e){return new Ut(e)}function Ot(e){e._state="writable",e._storedError=void 0,e._writer=void 0,e._writableStreamController=void 0,e._writeRequests=new I,e._inFlightWriteRequest=void 0,e._closeRequest=void 0,e._inFlightCloseRequest=void 0,e._pendingAbortRequest=void 0,e._backpressure=!1}function Tt(e){return!!r(e)&&!!Object.prototype.hasOwnProperty.call(e,"_writableStreamController")&&e instanceof St}function Ct(e){return void 0!==e._writer}function kt(e,t){var n;if("closed"===e._state||"errored"===e._state)return h(void 0);e._writableStreamController._abortReason=t,null===(n=e._writableStreamController._abortController)||void 0===n||n.abort(t);const r=e._state;if("closed"===r||"errored"===r)return h(void 0);if(void 0!==e._pendingAbortRequest)return e._pendingAbortRequest._promise;let o=!1;"erroring"===r&&(o=!0,t=void 0);const i=d((n,r)=>{e._pendingAbortRequest={_promise:void 0,_resolve:n,_reject:r,_reason:t,_wasAlreadyErroring:o}});return e._pendingAbortRequest._promise=i,o||Rt(e,t),i}function Pt(e){const t=e._state;if("closed"===t||"errored"===t)return p(new TypeError(`The stream (in ${t} state) is not in the writable state and cannot be closed`));const n=d((t,n)=>{const r={_resolve:t,_reject:n};e._closeRequest=r}),r=e._writer;var o;return void 0!==r&&e._backpressure&&"writable"===t&&pn(r),Se(o=e._writableStreamController,Ht,0),Qt(o),n}function Nt(e,t){"writable"!==e._state?Mt(e):Rt(e,t)}function Rt(e,t){const n=e._writableStreamController;e._state="erroring",e._storedError=t;const r=e._writer;void 0!==r&&Gt(r,t),!function(e){return void 0!==e._inFlightWriteRequest||void 0!==e._inFlightCloseRequest}(e)&&n._started&&Mt(e)}function Mt(e){e._state="errored",e._writableStreamController[A]();const t=e._storedError;if(e._writeRequests.forEach(e=>{e._reject(t)}),e._writeRequests=new I,void 0===e._pendingAbortRequest)return void Lt(e);const n=e._pendingAbortRequest;if(e._pendingAbortRequest=void 0,n._wasAlreadyErroring)return n._reject(t),void Lt(e);m(e._writableStreamController[S](n._reason),()=>(n._resolve(),Lt(e),null),t=>(n._reject(t),Lt(e),null))}function xt(e){return void 0!==e._closeRequest||void 0!==e._inFlightCloseRequest}function Lt(e){void 0!==e._closeRequest&&(e._closeRequest._reject(e._storedError),e._closeRequest=void 0);const t=e._writer;void 0!==t&&an(t,e._storedError)}function Dt(e,t){const n=e._writer;void 0!==n&&t!==e._backpressure&&(t?function(e){un(e)}(n):pn(n)),e._backpressure=t}Object.defineProperties(St.prototype,{abort:{enumerable:!0},close:{enumerable:!0},getWriter:{enumerable:!0},locked:{enumerable:!0}}),i(St.prototype.abort,"abort"),i(St.prototype.close,"close"),i(St.prototype.getWriter,"getWriter"),"symbol"==typeof Symbol.toStringTag&&Object.defineProperty(St.prototype,Symbol.toStringTag,{value:"WritableStream",configurable:!0});class Ut{constructor(e){if(B(e,1,"WritableStreamDefaultWriter"),It(e,"First parameter"),Ct(e))throw new TypeError("This stream has already been locked for exclusive writing by another writer");this._ownerWritableStream=e,e._writer=this;const t=e._state;if("writable"===t)!xt(e)&&e._backpressure?un(this):dn(this),on(this);else if("erroring"===t)ln(this,e._storedError),on(this);else if("closed"===t)dn(this),on(n=this),cn(n);else{const t=e._storedError;ln(this,t),sn(this,t)}var n}get closed(){return jt(this)?this._closedPromise:p(nn("closed"))}get desiredSize(){if(!jt(this))throw nn("desiredSize");if(void 0===this._ownerWritableStream)throw rn("desiredSize");return function(e){const t=e._ownerWritableStream,n=t._state;return"errored"===n||"erroring"===n?null:"closed"===n?0:Yt(t._writableStreamController)}(this)}get ready(){return jt(this)?this._readyPromise:p(nn("ready"))}abort(e=void 0){return jt(this)?void 0===this._ownerWritableStream?p(rn("abort")):function(e,t){return kt(e._ownerWritableStream,t)}(this,e):p(nn("abort"))}close(){if(!jt(this))return p(nn("close"));const e=this._ownerWritableStream;return void 0===e?p(rn("close")):xt(e)?p(new TypeError("Cannot close an already-closing stream")):Ft(this)}releaseLock(){if(!jt(this))throw nn("releaseLock");void 0!==this._ownerWritableStream&&Bt(this)}write(e=void 0){return jt(this)?void 0===this._ownerWritableStream?p(rn("write to")):qt(this,e):p(nn("write"))}}function jt(e){return!!r(e)&&!!Object.prototype.hasOwnProperty.call(e,"_ownerWritableStream")&&e instanceof Ut}function Ft(e){return Pt(e._ownerWritableStream)}function $t(e,t){"pending"===e._closedPromiseState?an(e,t):function(e,t){sn(e,t)}(e,t)}function Gt(e,t){"pending"===e._readyPromiseState?hn(e,t):function(e,t){ln(e,t)}(e,t)}function Bt(e){const t=e._ownerWritableStream,n=new TypeError("Writer was released and can no longer be used to monitor the stream's closedness");Gt(e,n),$t(e,n),t._writer=void 0,e._ownerWritableStream=void 0}function qt(e,t){const n=e._ownerWritableStream,r=n._writableStreamController,o=function(e,t){if(void 0===e._strategySizeAlgorithm)return 1;try{return e._strategySizeAlgorithm(t)}catch(t){return Xt(e,t),1}}(r,t);if(n!==e._ownerWritableStream)return p(rn("write to"));const i=n._state;if("errored"===i)return p(n._storedError);if(xt(n)||"closed"===i)return p(new TypeError("The stream is closing or closed and cannot be written to"));if("erroring"===i)return p(n._storedError);const s=function(e){return d((t,n)=>{const r={_resolve:t,_reject:n};e._writeRequests.push(r)})}(n);return function(e,t,n){try{Se(e,t,n)}catch(t){return void Xt(e,t)}const r=e._controlledWritableStream;xt(r)||"writable"!==r._state||Dt(r,Jt(e)),Qt(e)}(r,t,o),s}Object.defineProperties(Ut.prototype,{abort:{enumerable:!0},close:{enumerable:!0},releaseLock:{enumerable:!0},write:{enumerable:!0},closed:{enumerable:!0},desiredSize:{enumerable:!0},ready:{enumerable:!0}}),i(Ut.prototype.abort,"abort"),i(Ut.prototype.close,"close"),i(Ut.prototype.releaseLock,"releaseLock"),i(Ut.prototype.write,"write"),"symbol"==typeof Symbol.toStringTag&&Object.defineProperty(Ut.prototype,Symbol.toStringTag,{value:"WritableStreamDefaultWriter",configurable:!0});const Ht={};class zt{constructor(){throw new TypeError("Illegal constructor")}get abortReason(){if(!Wt(this))throw tn("abortReason");return this._abortReason}get signal(){if(!Wt(this))throw tn("signal");if(void 0===this._abortController)throw new TypeError("WritableStreamDefaultController.prototype.signal is not supported");return this._abortController.signal}error(e=void 0){if(!Wt(this))throw tn("error");"writable"===this._controlledWritableStream._state&&Zt(this,e)}[S](e){const t=this._abortAlgorithm(e);return Kt(this),t}[A](){Ae(this)}}function Wt(e){return!!r(e)&&!!Object.prototype.hasOwnProperty.call(e,"_controlledWritableStream")&&e instanceof zt}function Vt(e,t,n,r,o,i,s,a){t._controlledWritableStream=e,e._writableStreamController=t,t._queue=void 0,t._queueTotalSize=void 0,Ae(t),t._abortReason=void 0,t._abortController=function(){if("function"==typeof AbortController)return new AbortController}(),t._started=!1,t._strategySizeAlgorithm=a,t._strategyHWM=s,t._writeAlgorithm=r,t._closeAlgorithm=o,t._abortAlgorithm=i;const c=Jt(t);Dt(e,c),m(h(n()),()=>(t._started=!0,Qt(t),null),n=>(t._started=!0,Nt(e,n),null))}function Kt(e){e._writeAlgorithm=void 0,e._closeAlgorithm=void 0,e._abortAlgorithm=void 0,e._strategySizeAlgorithm=void 0}function Yt(e){return e._strategyHWM-e._queueTotalSize}function Qt(e){const t=e._controlledWritableStream;if(!e._started)return;if(void 0!==t._inFlightWriteRequest)return;if("erroring"===t._state)return void Mt(t);if(0===e._queue.length)return;const n=e._queue.peek().value;n===Ht?function(e){const t=e._controlledWritableStream;(function(e){e._inFlightCloseRequest=e._closeRequest,e._closeRequest=void 0})(t),Ie(e);const n=e._closeAlgorithm();Kt(e),m(n,()=>(function(e){e._inFlightCloseRequest._resolve(void 0),e._inFlightCloseRequest=void 0,"erroring"===e._state&&(e._storedError=void 0,void 0!==e._pendingAbortRequest&&(e._pendingAbortRequest._resolve(),e._pendingAbortRequest=void 0)),e._state="closed";const t=e._writer;void 0!==t&&cn(t)}(t),null),e=>(function(e,t){e._inFlightCloseRequest._reject(t),e._inFlightCloseRequest=void 0,void 0!==e._pendingAbortRequest&&(e._pendingAbortRequest._reject(t),e._pendingAbortRequest=void 0),Nt(e,t)}(t,e),null))}(e):function(e,t){const n=e._controlledWritableStream;!function(e){e._inFlightWriteRequest=e._writeRequests.shift()}(n),m(e._writeAlgorithm(t),()=>{!function(e){e._inFlightWriteRequest._resolve(void 0),e._inFlightWriteRequest=void 0}(n);const t=n._state;if(Ie(e),!xt(n)&&"writable"===t){const t=Jt(e);Dt(n,t)}return Qt(e),null},t=>("writable"===n._state&&Kt(e),function(e,t){e._inFlightWriteRequest._reject(t),e._inFlightWriteRequest=void 0,Nt(e,t)}(n,t),null))}(e,n)}function Xt(e,t){"writable"===e._controlledWritableStream._state&&Zt(e,t)}function Jt(e){return Yt(e)<=0}function Zt(e,t){const n=e._controlledWritableStream;Kt(e),Rt(n,t)}function en(e){return new TypeError(`WritableStream.prototype.${e} can only be used on a WritableStream`)}function tn(e){return new TypeError(`WritableStreamDefaultController.prototype.${e} can only be used on a WritableStreamDefaultController`)}function nn(e){return new TypeError(`WritableStreamDefaultWriter.prototype.${e} can only be used on a WritableStreamDefaultWriter`)}function rn(e){return new TypeError("Cannot "+e+" a stream using a released writer")}function on(e){e._closedPromise=d((t,n)=>{e._closedPromise_resolve=t,e._closedPromise_reject=n,e._closedPromiseState="pending"})}function sn(e,t){on(e),an(e,t)}function an(e,t){void 0!==e._closedPromise_reject&&(y(e._closedPromise),e._closedPromise_reject(t),e._closedPromise_resolve=void 0,e._closedPromise_reject=void 0,e._closedPromiseState="rejected")}function cn(e){void 0!==e._closedPromise_resolve&&(e._closedPromise_resolve(void 0),e._closedPromise_resolve=void 0,e._closedPromise_reject=void 0,e._closedPromiseState="resolved")}function un(e){e._readyPromise=d((t,n)=>{e._readyPromise_resolve=t,e._readyPromise_reject=n}),e._readyPromiseState="pending"}function ln(e,t){un(e),hn(e,t)}function dn(e){un(e),pn(e)}function hn(e,t){void 0!==e._readyPromise_reject&&(y(e._readyPromise),e._readyPromise_reject(t),e._readyPromise_resolve=void 0,e._readyPromise_reject=void 0,e._readyPromiseState="rejected")}function pn(e){void 0!==e._readyPromise_resolve&&(e._readyPromise_resolve(void 0),e._readyPromise_resolve=void 0,e._readyPromise_reject=void 0,e._readyPromiseState="fulfilled")}Object.defineProperties(zt.prototype,{abortReason:{enumerable:!0},signal:{enumerable:!0},error:{enumerable:!0}}),"symbol"==typeof Symbol.toStringTag&&Object.defineProperty(zt.prototype,Symbol.toStringTag,{value:"WritableStreamDefaultController",configurable:!0});const fn="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:void 0!==n.g?n.g:void 0,mn=function(){const e=null==fn?void 0:fn.DOMException;return function(e){if("function"!=typeof e&&"object"!=typeof e)return!1;if("DOMException"!==e.name)return!1;try{return new e,!0}catch(e){return!1}}(e)?e:void 0}()||function(){const e=function(e,t){this.message=e||"",this.name=t||"Error",Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor)};return i(e,"DOMException"),e.prototype=Object.create(Error.prototype),Object.defineProperty(e.prototype,"constructor",{value:e,writable:!0,configurable:!0}),e}();function gn(e,n,r,o,i,s){const a=K(e),c=At(n);e._disturbed=!0;let u=!1,l=h(void 0);return d((_,b)=>{let w;if(void 0!==s){if(w=()=>{const t=void 0!==s.reason?s.reason:new mn("Aborted","AbortError"),r=[];o||r.push(()=>"writable"===n._state?kt(n,t):h(void 0)),i||r.push(()=>"readable"===e._state?Bn(e,t):h(void 0)),T(()=>Promise.all(r.map(e=>e())),!0,t)},s.aborted)return void w();s.addEventListener("abort",w)}var E,I,S;if(O(e,a._closedPromise,e=>(o?C(!0,e):T(()=>kt(n,e),!0,e),null)),O(n,c._closedPromise,t=>(i?C(!0,t):T(()=>Bn(e,t),!0,t),null)),E=e,I=a._closedPromise,S=()=>(r?C():T(()=>function(e){const t=e._ownerWritableStream,n=t._state;return xt(t)||"closed"===n?h(void 0):"errored"===n?p(t._storedError):Ft(e)}(c)),null),"closed"===E._state?S():g(I,S),xt(n)||"closed"===n._state){const t=new TypeError("the destination writable stream closed before all data could be piped to it");i?C(!0,t):T(()=>Bn(e,t),!0,t)}function A(){const e=l;return f(l,()=>e!==l?A():void 0)}function O(e,t,n){"errored"===e._state?n(e._storedError):v(t,n)}function T(e,t,r){function o(){return m(e(),()=>k(t,r),e=>k(!0,e)),null}u||(u=!0,"writable"!==n._state||xt(n)?o():g(A(),o))}function C(e,t){u||(u=!0,"writable"!==n._state||xt(n)?k(e,t):g(A(),()=>k(e,t)))}function k(e,t){return Bt(c),N(a),void 0!==s&&s.removeEventListener("abort",w),e?b(t):_(void 0),null}y(d((e,n)=>{!function r(o){o?e():f(u?h(!0):f(c._readyPromise,()=>d((e,n)=>{te(a,{_chunkSteps:n=>{l=f(qt(c,n),void 0,t),e(!1)},_closeSteps:()=>e(!0),_errorSteps:n})})),r,n)}(!1)}))})}class vn{constructor(){throw new TypeError("Illegal constructor")}get desiredSize(){if(!_n(this))throw Cn("desiredSize");return An(this)}close(){if(!_n(this))throw Cn("close");if(!On(this))throw new TypeError("The stream is not in a state that permits close");En(this)}enqueue(e=void 0){if(!_n(this))throw Cn("enqueue");if(!On(this))throw new TypeError("The stream is not in a state that permits enqueue");return In(this,e)}error(e=void 0){if(!_n(this))throw Cn("error");Sn(this,e)}[O](e){Ae(this);const t=this._cancelAlgorithm(e);return wn(this),t}[T](e){const t=this._controlledReadableStream;if(this._queue.length>0){const n=Ie(this);this._closeRequested&&0===this._queue.length?(wn(this),qn(t)):yn(this),e._chunkSteps(n)}else Y(t,e),yn(this)}[C](){}}function _n(e){return!!r(e)&&!!Object.prototype.hasOwnProperty.call(e,"_controlledReadableStream")&&e instanceof vn}function yn(e){bn(e)&&(e._pulling?e._pullAgain=!0:(e._pulling=!0,m(e._pullAlgorithm(),()=>(e._pulling=!1,e._pullAgain&&(e._pullAgain=!1,yn(e)),null),t=>(Sn(e,t),null))))}function bn(e){const t=e._controlledReadableStream;return!!On(e)&&!!e._started&&(!!(Gn(t)&&X(t)>0)||An(e)>0)}function wn(e){e._pullAlgorithm=void 0,e._cancelAlgorithm=void 0,e._strategySizeAlgorithm=void 0}function En(e){if(!On(e))return;const t=e._controlledReadableStream;e._closeRequested=!0,0===e._queue.length&&(wn(e),qn(t))}function In(e,t){if(!On(e))return;const n=e._controlledReadableStream;if(Gn(n)&&X(n)>0)Q(n,t,!1);else{let n;try{n=e._strategySizeAlgorithm(t)}catch(t){throw Sn(e,t),t}try{Se(e,t,n)}catch(t){throw Sn(e,t),t}}yn(e)}function Sn(e,t){const n=e._controlledReadableStream;"readable"===n._state&&(Ae(e),wn(e),Hn(n,t))}function An(e){const t=e._controlledReadableStream._state;return"errored"===t?null:"closed"===t?0:e._strategyHWM-e._queueTotalSize}function On(e){const t=e._controlledReadableStream._state;return!e._closeRequested&&"readable"===t}function Tn(e,t,n,r,o,i,s){t._controlledReadableStream=e,t._queue=void 0,t._queueTotalSize=void 0,Ae(t),t._started=!1,t._closeRequested=!1,t._pullAgain=!1,t._pulling=!1,t._strategySizeAlgorithm=s,t._strategyHWM=i,t._pullAlgorithm=r,t._cancelAlgorithm=o,e._readableStreamController=t,m(h(n()),()=>(t._started=!0,yn(t),null),e=>(Sn(t,e),null))}function Cn(e){return new TypeError(`ReadableStreamDefaultController.prototype.${e} can only be used on a ReadableStreamDefaultController`)}function kn(e,t){return ke(e._readableStreamController)?function(e){let t,n,r,o,i,s=K(e),a=!1,c=!1,u=!1,l=!1,p=!1;const f=d(e=>{i=e});function m(e){v(e._closedPromise,t=>(e!==s||(Qe(r._readableStreamController,t),Qe(o._readableStreamController,t),l&&p||i(void 0)),null))}function g(){dt(s)&&(N(s),s=K(e),m(s)),te(s,{_chunkSteps:t=>{b(()=>{c=!1,u=!1;const n=t;let s=t;if(!l&&!p)try{s=Ee(t)}catch(t){return Qe(r._readableStreamController,t),Qe(o._readableStreamController,t),void i(Bn(e,t))}l||Ye(r._readableStreamController,n),p||Ye(o._readableStreamController,s),a=!1,c?y():u&&w()})},_closeSteps:()=>{a=!1,l||Ke(r._readableStreamController),p||Ke(o._readableStreamController),r._readableStreamController._pendingPullIntos.length>0&&et(r._readableStreamController,0),o._readableStreamController._pendingPullIntos.length>0&&et(o._readableStreamController,0),l&&p||i(void 0)},_errorSteps:()=>{a=!1}})}function _(t,n){ee(s)&&(N(s),s=st(e),m(s));const d=n?o:r,h=n?r:o;ht(s,t,1,{_chunkSteps:t=>{b(()=>{c=!1,u=!1;const r=n?p:l;if(n?l:p)r||tt(d._readableStreamController,t);else{let n;try{n=Ee(t)}catch(t){return Qe(d._readableStreamController,t),Qe(h._readableStreamController,t),void i(Bn(e,t))}r||tt(d._readableStreamController,t),Ye(h._readableStreamController,n)}a=!1,c?y():u&&w()})},_closeSteps:e=>{a=!1;const t=n?p:l,r=n?l:p;t||Ke(d._readableStreamController),r||Ke(h._readableStreamController),void 0!==e&&(t||tt(d._readableStreamController,e),!r&&h._readableStreamController._pendingPullIntos.length>0&&et(h._readableStreamController,0)),t&&r||i(void 0)},_errorSteps:()=>{a=!1}})}function y(){if(a)return c=!0,h(void 0);a=!0;const e=Je(r._readableStreamController);return null===e?g():_(e._view,!1),h(void 0)}function w(){if(a)return u=!0,h(void 0);a=!0;const e=Je(o._readableStreamController);return null===e?g():_(e._view,!0),h(void 0)}function E(r){if(l=!0,t=r,p){const r=ae([t,n]),o=Bn(e,r);i(o)}return f}function I(r){if(p=!0,n=r,l){const r=ae([t,n]),o=Bn(e,r);i(o)}return f}function S(){}return r=jn(S,y,E),o=jn(S,w,I),m(s),[r,o]}(e):function(e){const t=K(e);let n,r,o,i,s,a=!1,c=!1,u=!1,l=!1;const p=d(e=>{s=e});function f(){return a?(c=!0,h(void 0)):(a=!0,te(t,{_chunkSteps:e=>{b(()=>{c=!1;const t=e,n=e;u||In(o._readableStreamController,t),l||In(i._readableStreamController,n),a=!1,c&&f()})},_closeSteps:()=>{a=!1,u||En(o._readableStreamController),l||En(i._readableStreamController),u&&l||s(void 0)},_errorSteps:()=>{a=!1}}),h(void 0))}function m(t){if(u=!0,n=t,l){const t=ae([n,r]),o=Bn(e,t);s(o)}return p}function g(t){if(l=!0,r=t,u){const t=ae([n,r]),o=Bn(e,t);s(o)}return p}function _(){}return o=Un(_,f,m),i=Un(_,f,g),v(t._closedPromise,e=>(Sn(o._readableStreamController,e),Sn(i._readableStreamController,e),u&&l||s(void 0),null)),[o,i]}(e)}function Pn(e){return r(n=e)&&void 0!==n.getReader?function(e){let n;function o(){let t;try{t=e.read()}catch(e){return p(e)}return _(t,e=>{if(!r(e))throw new TypeError("The promise returned by the reader.read() method must fulfill with an object");if(e.done)En(n._readableStreamController);else{const t=e.value;In(n._readableStreamController,t)}})}function i(t){try{return h(e.cancel(t))}catch(e){return p(e)}}return n=Un(t,o,i,0),n}(e.getReader()):function(e){let n;const o=me(e,"async");function i(){let e;try{e=ge(o)}catch(e){return p(e)}return _(h(e),e=>{if(!r(e))throw new TypeError("The promise returned by the iterator.next() method must fulfill with an object");if(e.done)En(n._readableStreamController);else{const t=e.value;In(n._readableStreamController,t)}})}function s(e){const t=o.iterator;let n;try{n=he(t,"return")}catch(e){return p(e)}return void 0===n?h(void 0):_(E(n,t,[e]),e=>{if(!r(e))throw new TypeError("The promise returned by the iterator.return() method must fulfill with an object")})}return n=Un(t,i,s,0),n}(e);var n}function Nn(e,t,n){return $(e,n),n=>E(e,t,[n])}function Rn(e,t,n){return $(e,n),n=>E(e,t,[n])}function Mn(e,t,n){return $(e,n),n=>w(e,t,[n])}function xn(e,t){if("bytes"!=(e=`${e}`))throw new TypeError(`${t} '${e}' is not a valid enumeration value for ReadableStreamType`);return e}function Ln(e,t){F(e,t);const n=null==e?void 0:e.preventAbort,r=null==e?void 0:e.preventCancel,o=null==e?void 0:e.preventClose,i=null==e?void 0:e.signal;return void 0!==i&&function(e,t){if(!function(e){if("object"!=typeof e||null===e)return!1;try{return"boolean"==typeof e.aborted}catch(e){return!1}}(e))throw new TypeError(`${t} is not an AbortSignal.`)}(i,`${t} has member 'signal' that`),{preventAbort:Boolean(n),preventCancel:Boolean(r),preventClose:Boolean(o),signal:i}}Object.defineProperties(vn.prototype,{close:{enumerable:!0},enqueue:{enumerable:!0},error:{enumerable:!0},desiredSize:{enumerable:!0}}),i(vn.prototype.close,"close"),i(vn.prototype.enqueue,"enqueue"),i(vn.prototype.error,"error"),"symbol"==typeof Symbol.toStringTag&&Object.defineProperty(vn.prototype,Symbol.toStringTag,{value:"ReadableStreamDefaultController",configurable:!0});class Dn{constructor(e={},t={}){void 0===e?e=null:G(e,"First parameter");const n=vt(t,"Second parameter"),r=function(e,t){F(e,t);const n=e,r=null==n?void 0:n.autoAllocateChunkSize,o=null==n?void 0:n.cancel,i=null==n?void 0:n.pull,s=null==n?void 0:n.start,a=null==n?void 0:n.type;return{autoAllocateChunkSize:void 0===r?void 0:W(r,`${t} has member 'autoAllocateChunkSize' that`),cancel:void 0===o?void 0:Nn(o,n,`${t} has member 'cancel' that`),pull:void 0===i?void 0:Rn(i,n,`${t} has member 'pull' that`),start:void 0===s?void 0:Mn(s,n,`${t} has member 'start' that`),type:void 0===a?void 0:xn(a,`${t} has member 'type' that`)}}(e,"First parameter");if(Fn(this),"bytes"===r.type){if(void 0!==n.size)throw new RangeError("The strategy for a byte stream cannot have a size function");!function(e,t,n){const r=Object.create(Ce.prototype);let o,i,s;o=void 0!==t.start?()=>t.start(r):()=>{},i=void 0!==t.pull?()=>t.pull(r):()=>h(void 0),s=void 0!==t.cancel?e=>t.cancel(e):()=>h(void 0);const a=t.autoAllocateChunkSize;if(0===a)throw new TypeError("autoAllocateChunkSize must be greater than 0");nt(e,r,o,i,s,n,a)}(this,r,mt(n,0))}else{const e=gt(n);!function(e,t,n,r){const o=Object.create(vn.prototype);let i,s,a;i=void 0!==t.start?()=>t.start(o):()=>{},s=void 0!==t.pull?()=>t.pull(o):()=>h(void 0),a=void 0!==t.cancel?e=>t.cancel(e):()=>h(void 0),Tn(e,o,i,s,a,n,r)}(this,r,mt(n,1),e)}}get locked(){if(!$n(this))throw zn("locked");return Gn(this)}cancel(e=void 0){return $n(this)?Gn(this)?p(new TypeError("Cannot cancel a stream that already has a reader")):Bn(this,e):p(zn("cancel"))}getReader(e=void 0){if(!$n(this))throw zn("getReader");return void 0===function(e,t){F(e,t);const n=null==e?void 0:e.mode;return{mode:void 0===n?void 0:it(n,`${t} has member 'mode' that`)}}(e,"First parameter").mode?K(this):st(this)}pipeThrough(e,t={}){if(!$n(this))throw zn("pipeThrough");B(e,1,"pipeThrough");const n=function(e,t){F(e,t);const n=null==e?void 0:e.readable;q(n,"readable","ReadableWritablePair"),V(n,`${t} has member 'readable' that`);const r=null==e?void 0:e.writable;return q(r,"writable","ReadableWritablePair"),It(r,`${t} has member 'writable' that`),{readable:n,writable:r}}(e,"First parameter"),r=Ln(t,"Second parameter");if(Gn(this))throw new TypeError("ReadableStream.prototype.pipeThrough cannot be used on a locked ReadableStream");if(Ct(n.writable))throw new TypeError("ReadableStream.prototype.pipeThrough cannot be used on a locked WritableStream");return y(gn(this,n.writable,r.preventClose,r.preventAbort,r.preventCancel,r.signal)),n.readable}pipeTo(e,t={}){if(!$n(this))return p(zn("pipeTo"));if(void 0===e)return p("Parameter 1 is required in 'pipeTo'.");if(!Tt(e))return p(new TypeError("ReadableStream.prototype.pipeTo's first argument must be a WritableStream"));let n;try{n=Ln(t,"Second parameter")}catch(e){return p(e)}return Gn(this)?p(new TypeError("ReadableStream.prototype.pipeTo cannot be used on a locked ReadableStream")):Ct(e)?p(new TypeError("ReadableStream.prototype.pipeTo cannot be used on a locked WritableStream")):gn(this,e,n.preventClose,n.preventAbort,n.preventCancel,n.signal)}tee(){if(!$n(this))throw zn("tee");return ae(kn(this))}values(e=void 0){if(!$n(this))throw zn("values");return function(e,t){const n=K(e),r=new ve(n,t),o=Object.create(_e);return o._asyncIteratorImpl=r,o}(this,function(e){F(e,"First parameter");const t=null==e?void 0:e.preventCancel;return{preventCancel:Boolean(t)}}(e).preventCancel)}[fe](e){return this.values(e)}static from(e){return Pn(e)}}function Un(e,t,n,r=1,o=()=>1){const i=Object.create(Dn.prototype);return Fn(i),Tn(i,Object.create(vn.prototype),e,t,n,r,o),i}function jn(e,t,n){const r=Object.create(Dn.prototype);return Fn(r),nt(r,Object.create(Ce.prototype),e,t,n,0,void 0),r}function Fn(e){e._state="readable",e._reader=void 0,e._storedError=void 0,e._disturbed=!1}function $n(e){return!!r(e)&&!!Object.prototype.hasOwnProperty.call(e,"_readableStreamController")&&e instanceof Dn}function Gn(e){return void 0!==e._reader}function Bn(e,n){if(e._disturbed=!0,"closed"===e._state)return h(void 0);if("errored"===e._state)return p(e._storedError);qn(e);const r=e._reader;if(void 0!==r&&dt(r)){const e=r._readIntoRequests;r._readIntoRequests=new I,e.forEach(e=>{e._closeSteps(void 0)})}return _(e._readableStreamController[O](n),t)}function qn(e){e._state="closed";const t=e._reader;if(void 0!==t&&(D(t),ee(t))){const e=t._readRequests;t._readRequests=new I,e.forEach(e=>{e._closeSteps()})}}function Hn(e,t){e._state="errored",e._storedError=t;const n=e._reader;void 0!==n&&(L(n,t),ee(n)?ne(n,t):pt(n,t))}function zn(e){return new TypeError(`ReadableStream.prototype.${e} can only be used on a ReadableStream`)}function Wn(e,t){F(e,t);const n=null==e?void 0:e.highWaterMark;return q(n,"highWaterMark","QueuingStrategyInit"),{highWaterMark:H(n)}}Object.defineProperties(Dn,{from:{enumerable:!0}}),Object.defineProperties(Dn.prototype,{cancel:{enumerable:!0},getReader:{enumerable:!0},pipeThrough:{enumerable:!0},pipeTo:{enumerable:!0},tee:{enumerable:!0},values:{enumerable:!0},locked:{enumerable:!0}}),i(Dn.from,"from"),i(Dn.prototype.cancel,"cancel"),i(Dn.prototype.getReader,"getReader"),i(Dn.prototype.pipeThrough,"pipeThrough"),i(Dn.prototype.pipeTo,"pipeTo"),i(Dn.prototype.tee,"tee"),i(Dn.prototype.values,"values"),"symbol"==typeof Symbol.toStringTag&&Object.defineProperty(Dn.prototype,Symbol.toStringTag,{value:"ReadableStream",configurable:!0}),Object.defineProperty(Dn.prototype,fe,{value:Dn.prototype.values,writable:!0,configurable:!0});const Vn=e=>e.byteLength;i(Vn,"size");class Kn{constructor(e){B(e,1,"ByteLengthQueuingStrategy"),e=Wn(e,"First parameter"),this._byteLengthQueuingStrategyHighWaterMark=e.highWaterMark}get highWaterMark(){if(!Qn(this))throw Yn("highWaterMark");return this._byteLengthQueuingStrategyHighWaterMark}get size(){if(!Qn(this))throw Yn("size");return Vn}}function Yn(e){return new TypeError(`ByteLengthQueuingStrategy.prototype.${e} can only be used on a ByteLengthQueuingStrategy`)}function Qn(e){return!!r(e)&&!!Object.prototype.hasOwnProperty.call(e,"_byteLengthQueuingStrategyHighWaterMark")&&e instanceof Kn}Object.defineProperties(Kn.prototype,{highWaterMark:{enumerable:!0},size:{enumerable:!0}}),"symbol"==typeof Symbol.toStringTag&&Object.defineProperty(Kn.prototype,Symbol.toStringTag,{value:"ByteLengthQueuingStrategy",configurable:!0});const Xn=()=>1;i(Xn,"size");class Jn{constructor(e){B(e,1,"CountQueuingStrategy"),e=Wn(e,"First parameter"),this._countQueuingStrategyHighWaterMark=e.highWaterMark}get highWaterMark(){if(!er(this))throw Zn("highWaterMark");return this._countQueuingStrategyHighWaterMark}get size(){if(!er(this))throw Zn("size");return Xn}}function Zn(e){return new TypeError(`CountQueuingStrategy.prototype.${e} can only be used on a CountQueuingStrategy`)}function er(e){return!!r(e)&&!!Object.prototype.hasOwnProperty.call(e,"_countQueuingStrategyHighWaterMark")&&e instanceof Jn}function tr(e,t,n){return $(e,n),n=>E(e,t,[n])}function nr(e,t,n){return $(e,n),n=>w(e,t,[n])}function rr(e,t,n){return $(e,n),(n,r)=>E(e,t,[n,r])}function or(e,t,n){return $(e,n),n=>E(e,t,[n])}Object.defineProperties(Jn.prototype,{highWaterMark:{enumerable:!0},size:{enumerable:!0}}),"symbol"==typeof Symbol.toStringTag&&Object.defineProperty(Jn.prototype,Symbol.toStringTag,{value:"CountQueuingStrategy",configurable:!0});class ir{constructor(e={},t={},n={}){void 0===e&&(e=null);const r=vt(t,"Second parameter"),o=vt(n,"Third parameter"),i=function(e,t){F(e,t);const n=null==e?void 0:e.cancel,r=null==e?void 0:e.flush,o=null==e?void 0:e.readableType,i=null==e?void 0:e.start,s=null==e?void 0:e.transform,a=null==e?void 0:e.writableType;return{cancel:void 0===n?void 0:or(n,e,`${t} has member 'cancel' that`),flush:void 0===r?void 0:tr(r,e,`${t} has member 'flush' that`),readableType:o,start:void 0===i?void 0:nr(i,e,`${t} has member 'start' that`),transform:void 0===s?void 0:rr(s,e,`${t} has member 'transform' that`),writableType:a}}(e,"First parameter");if(void 0!==i.readableType)throw new RangeError("Invalid readableType specified");if(void 0!==i.writableType)throw new RangeError("Invalid writableType specified");const s=mt(o,0),a=gt(o),c=mt(r,1),u=gt(r);let l;!function(e,t,n,r,o,i){function s(){return t}function a(t){return function(e,t){const n=e._transformStreamController;return e._backpressure?_(e._backpressureChangePromise,()=>{const r=e._writable;if("erroring"===r._state)throw r._storedError;return mr(n,t)}):mr(n,t)}(e,t)}function c(t){return function(e,t){const n=e._transformStreamController;if(void 0!==n._finishPromise)return n._finishPromise;const r=e._readable;n._finishPromise=d((e,t)=>{n._finishPromise_resolve=e,n._finishPromise_reject=t});const o=n._cancelAlgorithm(t);return pr(n),m(o,()=>("errored"===r._state?_r(n,r._storedError):(Sn(r._readableStreamController,t),vr(n)),null),e=>(Sn(r._readableStreamController,e),_r(n,e),null)),n._finishPromise}(e,t)}function u(){return function(e){const t=e._transformStreamController;if(void 0!==t._finishPromise)return t._finishPromise;const n=e._readable;t._finishPromise=d((e,n)=>{t._finishPromise_resolve=e,t._finishPromise_reject=n});const r=t._flushAlgorithm();return pr(t),m(r,()=>("errored"===n._state?_r(t,n._storedError):(En(n._readableStreamController),vr(t)),null),e=>(Sn(n._readableStreamController,e),_r(t,e),null)),t._finishPromise}(e)}function l(){return function(e){return lr(e,!1),e._backpressureChangePromise}(e)}function h(t){return function(e,t){const n=e._transformStreamController;if(void 0!==n._finishPromise)return n._finishPromise;const r=e._writable;n._finishPromise=d((e,t)=>{n._finishPromise_resolve=e,n._finishPromise_reject=t});const o=n._cancelAlgorithm(t);return pr(n),m(o,()=>("errored"===r._state?_r(n,r._storedError):(Xt(r._writableStreamController,t),ur(e),vr(n)),null),t=>(Xt(r._writableStreamController,t),ur(e),_r(n,t),null)),n._finishPromise}(e,t)}e._writable=function(e,t,n,r,o=1,i=()=>1){const s=Object.create(St.prototype);return Ot(s),Vt(s,Object.create(zt.prototype),e,t,n,r,o,i),s}(s,a,u,c,n,r),e._readable=Un(s,l,h,o,i),e._backpressure=void 0,e._backpressureChangePromise=void 0,e._backpressureChangePromise_resolve=void 0,lr(e,!0),e._transformStreamController=void 0}(this,d(e=>{l=e}),c,u,s,a),function(e,t){const n=Object.create(dr.prototype);let r,o,i;r=void 0!==t.transform?e=>t.transform(e,n):e=>{try{return fr(n,e),h(void 0)}catch(e){return p(e)}},o=void 0!==t.flush?()=>t.flush(n):()=>h(void 0),i=void 0!==t.cancel?e=>t.cancel(e):()=>h(void 0),function(e,t,n,r,o){t._controlledTransformStream=e,e._transformStreamController=t,t._transformAlgorithm=n,t._flushAlgorithm=r,t._cancelAlgorithm=o,t._finishPromise=void 0,t._finishPromise_resolve=void 0,t._finishPromise_reject=void 0}(e,n,r,o,i)}(this,i),void 0!==i.start?l(i.start(this._transformStreamController)):l(void 0)}get readable(){if(!sr(this))throw yr("readable");return this._readable}get writable(){if(!sr(this))throw yr("writable");return this._writable}}function sr(e){return!!r(e)&&!!Object.prototype.hasOwnProperty.call(e,"_transformStreamController")&&e instanceof ir}function ar(e,t){Sn(e._readable._readableStreamController,t),cr(e,t)}function cr(e,t){pr(e._transformStreamController),Xt(e._writable._writableStreamController,t),ur(e)}function ur(e){e._backpressure&&lr(e,!1)}function lr(e,t){void 0!==e._backpressureChangePromise&&e._backpressureChangePromise_resolve(),e._backpressureChangePromise=d(t=>{e._backpressureChangePromise_resolve=t}),e._backpressure=t}Object.defineProperties(ir.prototype,{readable:{enumerable:!0},writable:{enumerable:!0}}),"symbol"==typeof Symbol.toStringTag&&Object.defineProperty(ir.prototype,Symbol.toStringTag,{value:"TransformStream",configurable:!0});class dr{constructor(){throw new TypeError("Illegal constructor")}get desiredSize(){if(!hr(this))throw gr("desiredSize");return An(this._controlledTransformStream._readable._readableStreamController)}enqueue(e=void 0){if(!hr(this))throw gr("enqueue");fr(this,e)}error(e=void 0){if(!hr(this))throw gr("error");var t;t=e,ar(this._controlledTransformStream,t)}terminate(){if(!hr(this))throw gr("terminate");!function(e){const t=e._controlledTransformStream;En(t._readable._readableStreamController),cr(t,new TypeError("TransformStream terminated"))}(this)}}function hr(e){return!!r(e)&&!!Object.prototype.hasOwnProperty.call(e,"_controlledTransformStream")&&e instanceof dr}function pr(e){e._transformAlgorithm=void 0,e._flushAlgorithm=void 0,e._cancelAlgorithm=void 0}function fr(e,t){const n=e._controlledTransformStream,r=n._readable._readableStreamController;if(!On(r))throw new TypeError("Readable side is not in a state that permits enqueue");try{In(r,t)}catch(e){throw cr(n,e),n._readable._storedError}const o=function(e){return!bn(e)}(r);o!==n._backpressure&&lr(n,!0)}function mr(e,t){return _(e._transformAlgorithm(t),void 0,t=>{throw ar(e._controlledTransformStream,t),t})}function gr(e){return new TypeError(`TransformStreamDefaultController.prototype.${e} can only be used on a TransformStreamDefaultController`)}function vr(e){void 0!==e._finishPromise_resolve&&(e._finishPromise_resolve(),e._finishPromise_resolve=void 0,e._finishPromise_reject=void 0)}function _r(e,t){void 0!==e._finishPromise_reject&&(y(e._finishPromise),e._finishPromise_reject(t),e._finishPromise_resolve=void 0,e._finishPromise_reject=void 0)}function yr(e){return new TypeError(`TransformStream.prototype.${e} can only be used on a TransformStream`)}Object.defineProperties(dr.prototype,{enqueue:{enumerable:!0},error:{enumerable:!0},terminate:{enumerable:!0},desiredSize:{enumerable:!0}}),i(dr.prototype.enqueue,"enqueue"),i(dr.prototype.error,"error"),i(dr.prototype.terminate,"terminate"),"symbol"==typeof Symbol.toStringTag&&Object.defineProperty(dr.prototype,Symbol.toStringTag,{value:"TransformStreamDefaultController",configurable:!0}),e.ByteLengthQueuingStrategy=Kn,e.CountQueuingStrategy=Jn,e.ReadableByteStreamController=Ce,e.ReadableStream=Dn,e.ReadableStreamBYOBReader=lt,e.ReadableStreamBYOBRequest=Te,e.ReadableStreamDefaultController=vn,e.ReadableStreamDefaultReader=Z,e.TransformStream=ir,e.TransformStreamDefaultController=dr,e.WritableStream=St,e.WritableStreamDefaultController=zt,e.WritableStreamDefaultWriter=Ut}(t)},9506:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Lexer=void 0;var r=n(5685),o=n(3596),i=n(1319),s=n(5141);function a(e){return e.replace(/---/g,"—").replace(/--/g,"–").replace(/(^|[-\u2014/(\[{"\s])'/g,"$1‘").replace(/'/g,"’").replace(/(^|[-\u2014/(\[{\u2018\s])"/g,"$1“").replace(/"/g,"”").replace(/\.{3}/g,"…")}function c(e){let t,n,r="";const o=e.length;for(t=0;t<o;t++)n=e.charCodeAt(t),Math.random()>.5&&(n="x"+n.toString(16)),r+="&#"+n+";";return r}class u{constructor(e){this.tokens=[],this.tokens.links=Object.create(null),this.options=e||o.defaults,this.options.tokenizer=this.options.tokenizer||new r.Tokenizer,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};const t={block:i.block.normal,inline:i.inline.normal};this.options.pedantic?(t.block=i.block.pedantic,t.inline=i.inline.pedantic):this.options.gfm&&(t.block=i.block.gfm,this.options.breaks?t.inline=i.inline.breaks:t.inline=i.inline.gfm),this.tokenizer.rules=t}static get rules(){return{block:i.block,inline:i.inline}}static lex(e,t){return new u(t).lex(e)}static lexInline(e,t){return new u(t).inlineTokens(e)}lex(e){let t;for(e=e.replace(/\r\n|\r/g,"\n").replace(/\t/g," "),this.blockTokens(e,this.tokens);t=this.inlineQueue.shift();)this.inlineTokens(t.src,t.tokens);return this.tokens}blockTokens(e,t=[]){let n,r,o,i;for(this.options.pedantic&&(e=e.replace(/^ +$/gm,""));e;)if(!(this.options.extensions&&this.options.extensions.block&&this.options.extensions.block.some(r=>!!(n=r.call({lexer:this},e,t))&&(e=e.substring(n.raw.length),t.push(n),!0))))if(n=this.tokenizer.space(e))e=e.substring(n.raw.length),1===n.raw.length&&t.length>0?t[t.length-1].raw+="\n":t.push(n);else if(n=this.tokenizer.code(e))e=e.substring(n.raw.length),r=t[t.length-1],!r||"paragraph"!==r.type&&"text"!==r.type?t.push(n):(r.raw+="\n"+n.raw,r.text+="\n"+n.text,this.inlineQueue[this.inlineQueue.length-1].src=r.text);else if(n=this.tokenizer.fences(e))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.heading(e))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.hr(e))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.blockquote(e))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.list(e))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.html(e))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.def(e))e=e.substring(n.raw.length),r=t[t.length-1],!r||"paragraph"!==r.type&&"text"!==r.type?this.tokens.links[n.tag]||(this.tokens.links[n.tag]={href:n.href,title:n.title}):(r.raw+="\n"+n.raw,r.text+="\n"+n.raw,this.inlineQueue[this.inlineQueue.length-1].src=r.text);else if(n=this.tokenizer.table(e))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.lheading(e))e=e.substring(n.raw.length),t.push(n);else{if(o=e,this.options.extensions&&this.options.extensions.startBlock){let t=1/0;const n=e.slice(1);let r;this.options.extensions.startBlock.forEach(function(e){r=e.call({lexer:this},n),"number"==typeof r&&r>=0&&(t=Math.min(t,r))}),t<1/0&&t>=0&&(o=e.substring(0,t+1))}if(this.state.top&&(n=this.tokenizer.paragraph(o)))r=t[t.length-1],i&&"paragraph"===r.type?(r.raw+="\n"+n.raw,r.text+="\n"+n.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=r.text):t.push(n),i=o.length!==e.length,e=e.substring(n.raw.length);else if(n=this.tokenizer.text(e))e=e.substring(n.raw.length),r=t[t.length-1],r&&"text"===r.type?(r.raw+="\n"+n.raw,r.text+="\n"+n.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=r.text):t.push(n);else if(e){const t="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(t);break}throw new Error(t)}}return this.state.top=!0,t}inline(e,t){this.inlineQueue.push({src:e,tokens:t})}inlineTokens(e,t=[]){let n,r,o,i,u,l,d=e;if(this.tokens.links){const e=Object.keys(this.tokens.links);if(e.length>0)for(;null!=(i=this.tokenizer.rules.inline.reflinkSearch.exec(d));)e.includes(i[0].slice(i[0].lastIndexOf("[")+1,-1))&&(d=d.slice(0,i.index)+"["+(0,s.repeatString)("a",i[0].length-2)+"]"+d.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;null!=(i=this.tokenizer.rules.inline.blockSkip.exec(d));)d=d.slice(0,i.index)+"["+(0,s.repeatString)("a",i[0].length-2)+"]"+d.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;null!=(i=this.tokenizer.rules.inline.escapedEmSt.exec(d));)d=d.slice(0,i.index)+"++"+d.slice(this.tokenizer.rules.inline.escapedEmSt.lastIndex);for(;e;)if(u||(l=""),u=!1,n=this.tokenizer.owo(e))e=e.substring(n.raw.length),n.type&&t.push(n);else if(!(this.options.extensions&&this.options.extensions.inline&&this.options.extensions.inline.some(r=>!!(n=r.call({lexer:this},e,t))&&(e=e.substring(n.raw.length),t.push(n),!0))))if(n=this.tokenizer.escape(e))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.tag(e))e=e.substring(n.raw.length),r=t[t.length-1],r&&"text"===n.type&&"text"===r.type?(r.raw+=n.raw,r.text+=n.text):t.push(n);else if(n=this.tokenizer.link(e))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.reflink(e,this.tokens.links))e=e.substring(n.raw.length),r=t[t.length-1],r&&"text"===n.type&&"text"===r.type?(r.raw+=n.raw,r.text+=n.text):t.push(n);else if(n=this.tokenizer.emStrong(e,d,l))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.codespan(e))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.br(e))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.del(e))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.autolink(e,c))e=e.substring(n.raw.length),t.push(n);else if(this.state.inLink||!(n=this.tokenizer.url(e,c))){if(o=e,this.options.extensions&&this.options.extensions.startInline){let t=1/0;const n=e.slice(1);let r;this.options.extensions.startInline.forEach(function(e){r=e.call({lexer:this},n),"number"==typeof r&&r>=0&&(t=Math.min(t,r))}),t<1/0&&t>=0&&(o=e.substring(0,t+1))}if(n=this.tokenizer.inlineText(o,a))e=e.substring(n.raw.length),"_"!==n.raw.slice(-1)&&(l=n.raw.slice(-1)),u=!0,r=t[t.length-1],r&&"text"===r.type?(r.raw+=n.raw,r.text+=n.text):t.push(n);else if(e){const t="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(t);break}throw new Error(t)}}else e=e.substring(n.raw.length),t.push(n);return t}}t.Lexer=u},2605:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Parser=void 0;var r=n(5049),o=n(7662),i=n(9839),s=n(3596),a=n(5141);class c{constructor(e){this.options=e||s.defaults,this.options.renderer=this.options.renderer||new r.Renderer,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new o.TextRenderer,this.slugger=new i.Slugger}static parse(e,t){return new c(t).parse(e)}static parseInline(e,t){return new c(t).parseInline(e)}parse(e,t=!0){let n,r,o,i,s,c,u,l,d,h,p,f,m,g,v,_,y,b,w,E="";const I=e.length;for(n=0;n<I;n++)if(h=e[n],this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[h.type]&&(w=this.options.extensions.renderers[h.type].call({parser:this},h),!1!==w||!["space","hr","heading","code","table","blockquote","list","html","paragraph","text"].includes(h.type)))E+=w||"";else switch(h.type){case"space":continue;case"hr":E+=this.renderer.hr();continue;case"heading":E+=this.renderer.heading(this.parseInline(h.tokens),h.depth,(0,a.unescape)(this.parseInline(h.tokens,this.textRenderer)),this.slugger);continue;case"code":E+=this.renderer.code(h.text,h.lang,h.escaped);continue;case"table":for(l="",u="",i=h.header.length,r=0;r<i;r++)u+=this.renderer.tablecell(this.parseInline(h.header[r].tokens),{header:!0,align:h.align[r]});for(l+=this.renderer.tablerow(u),d="",i=h.rows.length,r=0;r<i;r++){for(c=h.rows[r],u="",s=c.length,o=0;o<s;o++)u+=this.renderer.tablecell(this.parseInline(c[o].tokens),{header:!1,align:h.align[o]});d+=this.renderer.tablerow(u)}E+=this.renderer.table(l,d);continue;case"blockquote":d=this.parse(h.tokens),E+=this.renderer.blockquote(d);continue;case"list":for(p=h.ordered,f=h.start,m=h.loose,i=h.items.length,d="",r=0;r<i;r++)v=h.items[r],_=v.checked,y=v.task,g="",v.task&&(b=this.renderer.checkbox(_),m?v.tokens.length>0&&"paragraph"===v.tokens[0].type?(v.tokens[0].text=b+" "+v.tokens[0].text,v.tokens[0].tokens&&v.tokens[0].tokens.length>0&&"text"===v.tokens[0].tokens[0].type&&(v.tokens[0].tokens[0].text=b+" "+v.tokens[0].tokens[0].text)):v.tokens.unshift({type:"text",text:b}):g+=b),g+=this.parse(v.tokens,m),d+=this.renderer.listitem(g,y,_);E+=this.renderer.list(d,p,f);continue;case"html":E+=this.renderer.html(h.text);continue;case"paragraph":E+=this.renderer.paragraph(this.parseInline(h.tokens));continue;case"text":for(d=h.tokens?this.parseInline(h.tokens):h.text;n+1<I&&"text"===e[n+1].type;)h=e[++n],d+="\n"+(h.tokens?this.parseInline(h.tokens):h.text);E+=t?this.renderer.paragraph(d):d;continue;default:{const e='Token with "'+h.type+'" type was not found.';if(this.options.silent)return void console.error(e);throw new Error(e)}}return E}parseInline(e,t){t=t||this.renderer;let n,r,o,i="";const s=e.length;for(n=0;n<s;n++)if(r=e[n],this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[r.type]&&(o=this.options.extensions.renderers[r.type].call({parser:this},r),!1!==o||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(r.type)))i+=o||"";else switch(r.type){case"owo":i+=t.owo(r.text);break;case"escape":case"text":i+=t.text(r.text);break;case"html":i+=t.html(r.text);break;case"link":i+=t.link(r.href,r.title,this.parseInline(r.tokens,t));break;case"image":i+=t.image(r.href,r.title,r.text);break;case"strong":i+=t.strong(this.parseInline(r.tokens,t));break;case"em":i+=t.em(this.parseInline(r.tokens,t));break;case"codespan":i+=t.codespan(r.text);break;case"br":i+=t.br();break;case"del":i+=t.del(this.parseInline(r.tokens,t));break;default:{const e='Token with "'+r.type+'" type was not found.';if(this.options.silent)return void console.error(e);throw new Error(e)}}return i}}t.Parser=c},5049:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Renderer=void 0;var r=n(3596),o=n(5141);t.Renderer=class{constructor(e){this.options=e||r.defaults}owo(e){const t=this.options.odata;return t&&t[e]?'<img class="tk-owo-emotion" src="'+t[e]+'" alt=":'+e+':">':":"+e+":"}code(e,t,n){const r=(t||"").match(/\S*/)[0];if(this.options.highlight){const t=this.options.highlight(e,r);null!=t&&t!==e&&(n=!0,e=t)}return e=e.replace(/\n$/,"")+"\n",r?'<pre><code class="'+this.options.langPrefix+(0,o.escape)(r,!0)+'">'+(n?e:(0,o.escape)(e,!0))+"</code></pre>\n":"<pre><code>"+(n?e:(0,o.escape)(e,!0))+"</code></pre>\n"}blockquote(e){return"<blockquote>\n"+e+"</blockquote>\n"}html(e){return e}heading(e,t,n,r){return this.options.headerIds?"<h"+t+' id="'+this.options.headerPrefix+r.slug(n)+'">'+e+"</h"+t+">\n":"<h"+t+">"+e+"</h"+t+">\n"}hr(){return this.options.xhtml?"<hr/>\n":"<hr>\n"}list(e,t,n){const r=t?"ol":"ul";return"<"+r+(t&&1!==n?' start="'+n+'"':"")+">\n"+e+"</"+r+">\n"}listitem(e){return"<li>"+e+"</li>\n"}checkbox(e){return"<input "+(e?'checked="" ':"")+'disabled="" type="checkbox"'+(this.options.xhtml?" /":"")+"> "}paragraph(e){return"<p>"+e+"</p>\n"}table(e,t){return t&&(t="<tbody>"+t+"</tbody>"),"<table>\n<thead>\n"+e+"</thead>\n"+t+"</table>\n"}tablerow(e){return"<tr>\n"+e+"</tr>\n"}tablecell(e,t){const n=t.header?"th":"td";return(t.align?"<"+n+' align="'+t.align+'">':"<"+n+">")+e+"</"+n+">\n"}strong(e){return"<strong>"+e+"</strong>"}em(e){return"<em>"+e+"</em>"}codespan(e){return"<code>"+e+"</code>"}br(){return this.options.xhtml?"<br/>":"<br>"}del(e){return"<del>"+e+"</del>"}link(e,t,n){if(null===(e=(0,o.cleanUrl)(this.options.sanitize,this.options.baseUrl,e)))return n;let r='<a href="'+(0,o.escape)(e)+'"';return t&&(r+=' title="'+t+'"'),r+=">"+n+"</a>",r}image(e,t,n){if(null===(e=(0,o.cleanUrl)(this.options.sanitize,this.options.baseUrl,e)))return n;let r='<img src="'+e+'" alt="'+n+'"';return t&&(r+=' title="'+t+'"'),r+=this.options.xhtml?"/>":">",r}text(e){return e}}},9839:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Slugger=void 0,t.Slugger=class{constructor(){this.seen={}}serialize(e){return e.toLowerCase().trim().replace(/<[!\/a-z].*?>/gi,"").replace(/[\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&()*+,./:;<=>?@[\]^`{|}~]/g,"").replace(/\s/g,"-")}getNextSafeSlug(e,t){let n=e,r=0;if(this.seen.hasOwnProperty(n)){r=this.seen[e];do{r++,n=e+"-"+r}while(this.seen.hasOwnProperty(n))}return t||(this.seen[e]=r,this.seen[n]=0),n}slug(e,t={}){const n=this.serialize(e);return this.getNextSafeSlug(n,t.dryrun)}}},7662:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TextRenderer=void 0,t.TextRenderer=class{strong(e){return e}em(e){return e}codespan(e){return e}del(e){return e}html(e){return e}text(e){return e}link(e,t,n){return""+n}image(e,t,n){return""+n}br(){return""}}},5685:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Tokenizer=void 0;var r=n(3596),o=n(5141);function i(e,t,n,r){const i=t.href,s=t.title?(0,o.escape)(t.title):null,a=e[1].replace(/\\([\[\]])/g,"$1");if("!"!==e[0].charAt(0)){r.state.inLink=!0;const e={type:"link",raw:n,href:i,title:s,text:a,tokens:r.inlineTokens(a,[])};return r.state.inLink=!1,e}return{type:"image",raw:n,href:i,title:s,text:(0,o.escape)(a)}}t.Tokenizer=class{constructor(e){this.options=e||r.defaults}space(e){const t=this.rules.block.newline.exec(e);if(t&&t[0].length>0)return{type:"space",raw:t[0]}}code(e){const t=this.rules.block.code.exec(e);if(t){const e=t[0].replace(/^ {1,4}/gm,"");return{type:"code",raw:t[0],codeBlockStyle:"indented",text:this.options.pedantic?e:(0,o.rtrim)(e,"\n")}}}fences(e){const t=this.rules.block.fences.exec(e);if(t){const e=t[0],n=function(e,t){const n=e.match(/^(\s+)(?:```)/);if(null===n)return t;const r=n[1];return t.split("\n").map(e=>{const t=e.match(/^\s+/);if(null===t)return e;const[n]=t;return n.length>=r.length?e.slice(r.length):e}).join("\n")}(e,t[3]||"");return{type:"code",raw:e,lang:t[2]?t[2].trim():t[2],text:n}}}heading(e){const t=this.rules.block.heading.exec(e);if(t){let e=t[2].trim();if(/#$/.test(e)){const t=(0,o.rtrim)(e,"#");this.options.pedantic?e=t.trim():t&&!/ $/.test(t)||(e=t.trim())}const n={type:"heading",raw:t[0],depth:t[1].length,text:e,tokens:[]};return this.lexer.inline(n.text,n.tokens),n}}hr(e){const t=this.rules.block.hr.exec(e);if(t)return{type:"hr",raw:t[0]}}blockquote(e){const t=this.rules.block.blockquote.exec(e);if(t){const e=t[0].replace(/^ *> ?/gm,"");return{type:"blockquote",raw:t[0],tokens:this.lexer.blockTokens(e,[]),text:e}}}list(e){let t=this.rules.block.list.exec(e);if(t){let n,r,o,i,s,a,c,u,l,d,h,p,f=t[1].trim();const m=f.length>1,g={type:"list",raw:"",ordered:m,start:m?+f.slice(0,-1):"",loose:!1,items:[]};f=m?`\\d{1,9}\\${f.slice(-1)}`:`\\${f}`,this.options.pedantic&&(f=m?f:"[*+-]");const v=new RegExp(`^( {0,3}${f})((?: [^\\n]*)?(?:\\n|$))`);for(;e&&(p=!1,t=v.exec(e))&&!this.rules.block.hr.test(e);){if(n=t[0],e=e.substring(n.length),u=t[2].split("\n",1)[0],l=e.split("\n",1)[0],this.options.pedantic?(i=2,h=u.trimLeft()):(i=t[2].search(/[^ ]/),i=i>4?1:i,h=u.slice(i),i+=t[1].length),a=!1,!u&&/^ *$/.test(l)&&(n+=l+"\n",e=e.substring(l.length+1),p=!0),!p){const t=new RegExp(`^ {0,${Math.min(3,i-1)}}(?:[*+-]|\\d{1,9}[.)])`);for(;e&&(d=e.split("\n",1)[0],u=d,this.options.pedantic&&(u=u.replace(/^ {1,4}(?=( {4})*[^ ])/g," ")),!t.test(u));){if(u.search(/[^ ]/)>=i||!u.trim())h+="\n"+u.slice(i);else{if(a)break;h+="\n"+u}a||u.trim()||(a=!0),n+=d+"\n",e=e.substring(d.length+1)}}g.loose||(c?g.loose=!0:/\n *\n *$/.test(n)&&(c=!0)),this.options.gfm&&(r=/^\[[ xX]\] /.exec(h),r&&(o="[ ] "!==r[0],h=h.replace(/^\[[ xX]\] +/,""))),g.items.push({type:"list_item",raw:n,task:!!r,checked:o,loose:!1,text:h}),g.raw+=n}g.items[g.items.length-1].raw=n.trimRight(),g.items[g.items.length-1].text=h.trimRight(),g.raw=g.raw.trimRight();const _=g.items.length;for(s=0;s<_;s++){this.lexer.state.top=!1,g.items[s].tokens=this.lexer.blockTokens(g.items[s].text,[]);const e=g.items[s].tokens.filter(e=>"space"===e.type),t=e.every(e=>{const t=e.raw.split("");let n=0;for(const e of t)if("\n"===e&&(n+=1),n>1)return!0;return!1});!g.loose&&e.length&&t&&(g.loose=!0,g.items[s].loose=!0)}return g}}html(e){const t=this.rules.block.html.exec(e);if(t){const e={type:"html",raw:t[0],pre:!this.options.sanitizer&&("pre"===t[1]||"script"===t[1]||"style"===t[1]),text:t[0]};return this.options.sanitize&&(e.type="paragraph",e.text=this.options.sanitizer?this.options.sanitizer(t[0]):(0,o.escape)(t[0]),e.tokens=[],this.lexer.inline(e.text,e.tokens)),e}}def(e){const t=this.rules.block.def.exec(e);if(t)return t[3]&&(t[3]=t[3].substring(1,t[3].length-1)),{type:"def",tag:t[1].toLowerCase().replace(/\s+/g," "),raw:t[0],href:t[2],title:t[3]}}table(e){const t=this.rules.block.table.exec(e);if(t){const e={type:"table",header:(0,o.splitCells)(t[1]).map(e=>({text:e})),align:t[2].replace(/^ *|\| *$/g,"").split(/ *\| */),rows:t[3]&&t[3].trim()?t[3].replace(/\n[ \t]*$/,"").split("\n"):[]};if(e.header.length===e.align.length){e.raw=t[0];let n,r,i,s,a=e.align.length;for(n=0;n<a;n++)/^ *-+: *$/.test(e.align[n])?e.align[n]="right":/^ *:-+: *$/.test(e.align[n])?e.align[n]="center":/^ *:-+ *$/.test(e.align[n])?e.align[n]="left":e.align[n]=null;for(a=e.rows.length,n=0;n<a;n++)e.rows[n]=(0,o.splitCells)(e.rows[n],e.header.length).map(e=>({text:e}));for(a=e.header.length,r=0;r<a;r++)e.header[r].tokens=[],this.lexer.inlineTokens(e.header[r].text,e.header[r].tokens);for(a=e.rows.length,r=0;r<a;r++)for(s=e.rows[r],i=0;i<s.length;i++)s[i].tokens=[],this.lexer.inlineTokens(s[i].text,s[i].tokens);return e}}}lheading(e){const t=this.rules.block.lheading.exec(e);if(t){const e={type:"heading",raw:t[0],depth:"="===t[2].charAt(0)?1:2,text:t[1],tokens:[]};return this.lexer.inline(e.text,e.tokens),e}}paragraph(e){const t=this.rules.block.paragraph.exec(e);if(t){const e={type:"paragraph",raw:t[0],text:"\n"===t[1].charAt(t[1].length-1)?t[1].slice(0,-1):t[1],tokens:[]};return this.lexer.inline(e.text,e.tokens),e}}text(e){const t=this.rules.block.text.exec(e);if(t){const e={type:"text",raw:t[0],text:t[0],tokens:[]};return this.lexer.inline(e.text,e.tokens),e}}escape(e){const t=this.rules.inline.escape.exec(e);if(t)return{type:"escape",raw:t[0],text:(0,o.escape)(t[1])}}tag(e){const t=this.rules.inline.tag.exec(e);if(t)return!this.lexer.state.inLink&&/^<a /i.test(t[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&/^<\/a>/i.test(t[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&/^<(pre|code|kbd|script)(\s|>)/i.test(t[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(t[0])&&(this.lexer.state.inRawBlock=!1),{type:this.options.sanitize?"text":"html",raw:t[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(t[0]):(0,o.escape)(t[0]):t[0]}}link(e){const t=this.rules.inline.link.exec(e);if(t){const e=t[2].trim();if(!this.options.pedantic&&/^</.test(e)){if(!/>$/.test(e))return;const t=(0,o.rtrim)(e.slice(0,-1),"\\");if((e.length-t.length)%2==0)return}else{const e=(0,o.findClosingBracket)(t[2],"()");if(e>-1){const n=(0===t[0].indexOf("!")?5:4)+t[1].length+e;t[2]=t[2].substring(0,e),t[0]=t[0].substring(0,n).trim(),t[3]=""}}let n=t[2],r="";if(this.options.pedantic){const e=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(n);e&&(n=e[1],r=e[3])}else r=t[3]?t[3].slice(1,-1):"";return n=n.trim(),/^</.test(n)&&(n=this.options.pedantic&&!/>$/.test(e)?n.slice(1):n.slice(1,-1)),i(t,{href:n?n.replace(this.rules.inline._escapes,"$1"):n,title:r?r.replace(this.rules.inline._escapes,"$1"):r},t[0],this.lexer)}}reflink(e,t){let n;if((n=this.rules.inline.reflink.exec(e))||(n=this.rules.inline.nolink.exec(e))){let e=(n[2]||n[1]).replace(/\s+/g," ");if(e=t[e.toLowerCase()],!e||!e.href){const e=n[0].charAt(0);return{type:"text",raw:e,text:e}}return i(n,e,n[0],this.lexer)}}emStrong(e,t,n=""){let r=this.rules.inline.emStrong.lDelim.exec(e);if(!r)return;if(r[3]&&n.match(/[\p{L}\p{N}]/u))return;const o=r[1]||r[2]||"";if(!o||o&&(""===n||this.rules.inline.punctuation.exec(n))){const n=r[0].length-1;let o,i,s=n,a=0;const c="*"===r[0][0]?this.rules.inline.emStrong.rDelimAst:this.rules.inline.emStrong.rDelimUnd;for(c.lastIndex=0,t=t.slice(-1*e.length+n);null!=(r=c.exec(t));){if(o=r[1]||r[2]||r[3]||r[4]||r[5]||r[6],!o)continue;if(i=o.length,r[3]||r[4]){s+=i;continue}if((r[5]||r[6])&&n%3&&!((n+i)%3)){a+=i;continue}if(s-=i,s>0)continue;if(i=Math.min(i,i+s+a),Math.min(n,i)%2){const t=e.slice(1,n+r.index+i);return{type:"em",raw:e.slice(0,n+r.index+i+1),text:t,tokens:this.lexer.inlineTokens(t,[])}}const t=e.slice(2,n+r.index+i-1);return{type:"strong",raw:e.slice(0,n+r.index+i+1),text:t,tokens:this.lexer.inlineTokens(t,[])}}}}codespan(e){const t=this.rules.inline.code.exec(e);if(t){let e=t[2].replace(/\n/g," ");const n=/[^ ]/.test(e),r=/^ /.test(e)&&/ $/.test(e);return n&&r&&(e=e.substring(1,e.length-1)),e=(0,o.escape)(e,!0),{type:"codespan",raw:t[0],text:e}}}br(e){const t=this.rules.inline.br.exec(e);if(t)return{type:"br",raw:t[0]}}del(e){const t=this.rules.inline.del.exec(e);if(t)return{type:"del",raw:t[0],text:t[2],tokens:this.lexer.inlineTokens(t[2],[])}}owo(e){const t=this.rules.inline.owo.exec(e);if(t&&t[0].length>1)return{type:"owo",raw:t[0],text:t[1]}}autolink(e,t){const n=this.rules.inline.autolink.exec(e);if(n){let e,r;return"@"===n[2]?(e=(0,o.escape)(this.options.mangle?t(n[1]):n[1]),r="mailto:"+e):(e=(0,o.escape)(n[1]),r=e),{type:"link",raw:n[0],text:e,href:r,tokens:[{type:"text",raw:e,text:e}]}}}url(e,t){let n;if(n=this.rules.inline.url.exec(e)){let e,r;if("@"===n[2])e=(0,o.escape)(this.options.mangle?t(n[0]):n[0]),r="mailto:"+e;else{let t;do{t=n[0],n[0]=this.rules.inline._backpedal.exec(n[0])[0]}while(t!==n[0]);e=(0,o.escape)(n[0]),r="www."===n[1]?"http://"+e:e}return{type:"link",raw:n[0],text:e,href:r,tokens:[{type:"text",raw:e,text:e}]}}}inlineText(e,t){const n=this.rules.inline.text.exec(e);if(n){let e;return e=this.lexer.state.inRawBlock?this.options.sanitize?this.options.sanitizer?this.options.sanitizer(n[0]):(0,o.escape)(n[0]):n[0]:(0,o.escape)(this.options.smartypants?t(n[0]):n[0]),{type:"text",raw:n[0],text:e}}}}},3596:function(e,t){"use strict";function n(){return{baseUrl:null,breaks:!1,extensions:null,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:null,sanitize:!1,sanitizer:null,silent:!1,smartLists:!1,smartypants:!1,tokenizer:null,walkTokens:null,xhtml:!1}}Object.defineProperty(t,"__esModule",{value:!0}),t.changeDefaults=function(e){t.defaults=r=e},t.defaults=void 0,t.getDefaults=n;let r=t.defaults={baseUrl:null,breaks:!1,extensions:null,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:null,sanitize:!1,sanitizer:null,silent:!1,smartLists:!1,smartypants:!1,tokenizer:null,walkTokens:null,xhtml:!1}},5141:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.checkSanitizeDeprecation=function(e){e&&e.sanitize&&!e.silent&&console.warn("marked(): sanitize and sanitizer parameters are deprecated since version 0.7.0, should not be used and will be removed in the future. Read more here: https://marked.js.org/#/USING_ADVANCED.md#options")},t.cleanUrl=function(e,t,n){if(e){let e;try{e=decodeURIComponent(u(n)).replace(d,"").toLowerCase()}catch(e){return null}if(0===e.indexOf("javascript:")||0===e.indexOf("vbscript:")||0===e.indexOf("data:"))return null}t&&!h.test(n)&&(n=v(t,n));try{n=encodeURI(n).replace(/%25/g,"%")}catch(e){return null}return n},t.edit=function(e,t){e=e.source||e,t=t||"";const n={replace:(t,r)=>(r=(r=r.source||r).replace(l,"$1"),e=e.replace(t,r),n),getRegex:()=>new RegExp(e,t)};return n},t.escape=function(e,t){if(t){if(n.test(e))return e.replace(r,a)}else if(o.test(e))return e.replace(i,a);return e},t.findClosingBracket=function(e,t){if(-1===e.indexOf(t[1]))return-1;const n=e.length;let r=0,o=0;for(;o<n;o++)if("\\"===e[o])o++;else if(e[o]===t[0])r++;else if(e[o]===t[1]&&(r--,r<0))return o;return-1},t.merge=function(e){let t,n,r=1;for(;r<arguments.length;r++)for(n in t=arguments[r],t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e},t.noopTest=void 0,t.repeatString=function(e,t){if(t<1)return"";let n="";for(;t>1;)1&t&&(n+=e),t>>=1,e+=e;return n+e},t.resolveUrl=v,t.rtrim=_,t.splitCells=function(e,t){const n=e.replace(/\|/g,(e,t,n)=>{let r=!1,o=t;for(;--o>=0&&"\\"===n[o];)r=!r;return r?"|":" |"}).split(/ \|/);let r=0;if(n[0].trim()||n.shift(),n.length>0&&!n[n.length-1].trim()&&n.pop(),n.length>t)n.splice(t);else for(;n.length<t;)n.push("");for(;r<n.length;r++)n[r]=n[r].trim().replace(/\\\|/g,"|");return n},t.unescape=u;const n=/[&<>"']/,r=/[&<>"']/g,o=/[<>"']|&(?!#?\w+;)/,i=/[<>"']|&(?!#?\w+;)/g,s={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},a=e=>s[e],c=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/gi;function u(e){return e.replace(c,(e,t)=>"colon"===(t=t.toLowerCase())?":":"#"===t.charAt(0)?"x"===t.charAt(1)?String.fromCharCode(parseInt(t.substring(2),16)):String.fromCharCode(+t.substring(1)):"")}const l=/(^|[^\[])\^/g,d=/[^\w:]/g,h=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i,p={},f=/^[^:]+:\/*[^/]*$/,m=/^([^:]+:)[\s\S]*$/,g=/^([^:]+:\/*[^/]*)[\s\S]*$/;function v(e,t){p[" "+e]||(f.test(e)?p[" "+e]=e+"/":p[" "+e]=_(e,"/",!0));const n=-1===(e=p[" "+e]).indexOf(":");return"//"===t.substring(0,2)?n?t:e.replace(m,"$1")+t:"/"===t.charAt(0)?n?t:e.replace(g,"$1")+t:e+t}function _(e,t,n){const r=e.length;if(0===r)return"";let o=0;for(;o<r;){const i=e.charAt(r-o-1);if(i!==t||n){if(i===t||!n)break;o++}else o++}return e.substr(0,r-o)}t.noopTest={exec:function(){}}},5658:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"Lexer",{enumerable:!0,get:function(){return r.Lexer}}),Object.defineProperty(t,"Parser",{enumerable:!0,get:function(){return o.Parser}}),Object.defineProperty(t,"Renderer",{enumerable:!0,get:function(){return s.Renderer}}),Object.defineProperty(t,"Slugger",{enumerable:!0,get:function(){return c.Slugger}}),Object.defineProperty(t,"TextRenderer",{enumerable:!0,get:function(){return a.TextRenderer}}),Object.defineProperty(t,"Tokenizer",{enumerable:!0,get:function(){return i.Tokenizer}}),Object.defineProperty(t,"defaults",{enumerable:!0,get:function(){return l.defaults}}),Object.defineProperty(t,"getDefaults",{enumerable:!0,get:function(){return l.getDefaults}}),t.lexer=void 0,t.marked=d,t.walkTokens=t.use=t.setOptions=t.parser=t.parseInline=t.parse=t.options=void 0;var r=n(9506),o=n(2605),i=n(5685),s=n(5049),a=n(7662),c=n(9839),u=n(5141),l=n(3596);function d(e,t,n){if(null==e)throw new Error("marked(): input parameter is undefined or null");if("string"!=typeof e)throw new Error("marked(): input parameter is of type "+Object.prototype.toString.call(e)+", string expected");if("function"==typeof t&&(n=t,t=null),t=(0,u.merge)({},d.defaults,t||{}),(0,u.checkSanitizeDeprecation)(t),n){const i=t.highlight;let s;try{s=r.Lexer.lex(e,t)}catch(e){return n(e)}const a=function(e){let r;if(!e)try{t.walkTokens&&d.walkTokens(s,t.walkTokens),r=o.Parser.parse(s,t)}catch(t){e=t}return t.highlight=i,e?n(e):n(null,r)};if(!i||i.length<3)return a();if(delete t.highlight,!s.length)return a();let c=0;return d.walkTokens(s,function(e){"code"===e.type&&(c++,setTimeout(()=>{i(e.text,e.lang,function(t,n){if(t)return a(t);null!=n&&n!==e.text&&(e.text=n,e.escaped=!0),c--,0===c&&a()})},0))}),void(0===c&&a())}try{const n=r.Lexer.lex(e,t);return t.walkTokens&&d.walkTokens(n,t.walkTokens),o.Parser.parse(n,t)}catch(e){if(e.message+="\nPlease report this to https://github.com/markedjs/marked.",t.silent)return"<p>An error occurred:</p><pre>"+(0,u.escape)(e.message+"",!0)+"</pre>";throw e}}d.options=d.setOptions=function(e){return(0,u.merge)(d.defaults,e),(0,l.changeDefaults)(d.defaults),d},d.getDefaults=l.getDefaults,d.defaults=l.defaults,d.use=function(...e){const t=(0,u.merge)({},...e),n=d.defaults.extensions||{renderers:{},childTokens:{}};let r;e.forEach(e=>{if(e.extensions&&(r=!0,e.extensions.forEach(e=>{if(!e.name)throw new Error("extension name required");if(e.renderer){const t=n.renderers?n.renderers[e.name]:null;n.renderers[e.name]=t?function(...n){let r=e.renderer.apply(this,n);return!1===r&&(r=t.apply(this,n)),r}:e.renderer}if(e.tokenizer){if(!e.level||"block"!==e.level&&"inline"!==e.level)throw new Error("extension level must be 'block' or 'inline'");n[e.level]?n[e.level].unshift(e.tokenizer):n[e.level]=[e.tokenizer],e.start&&("block"===e.level?n.startBlock?n.startBlock.push(e.start):n.startBlock=[e.start]:"inline"===e.level&&(n.startInline?n.startInline.push(e.start):n.startInline=[e.start]))}e.childTokens&&(n.childTokens[e.name]=e.childTokens)})),e.renderer){const n=d.defaults.renderer||new s.Renderer;for(const t in e.renderer){const r=n[t];n[t]=(...o)=>{let i=e.renderer[t].apply(n,o);return!1===i&&(i=r.apply(n,o)),i}}t.renderer=n}if(e.tokenizer){const n=d.defaults.tokenizer||new i.Tokenizer;for(const t in e.tokenizer){const r=n[t];n[t]=(...o)=>{let i=e.tokenizer[t].apply(n,o);return!1===i&&(i=r.apply(n,o)),i}}t.tokenizer=n}if(e.walkTokens){const n=d.defaults.walkTokens;t.walkTokens=function(t){e.walkTokens.call(this,t),n&&n.call(this,t)}}r&&(t.extensions=n),d.setOptions(t)})},d.walkTokens=function(e,t){for(const n of e)switch(t.call(d,n),n.type){case"table":for(const e of n.header)d.walkTokens(e.tokens,t);for(const e of n.rows)for(const n of e)d.walkTokens(n.tokens,t);break;case"list":d.walkTokens(n.items,t);break;default:d.defaults.extensions&&d.defaults.extensions.childTokens&&d.defaults.extensions.childTokens[n.type]?d.defaults.extensions.childTokens[n.type].forEach(function(e){d.walkTokens(n[e],t)}):n.tokens&&d.walkTokens(n.tokens,t)}},d.parseInline=function(e,t){if(null==e)throw new Error("marked.parseInline(): input parameter is undefined or null");if("string"!=typeof e)throw new Error("marked.parseInline(): input parameter is of type "+Object.prototype.toString.call(e)+", string expected");t=(0,u.merge)({},d.defaults,t||{}),(0,u.checkSanitizeDeprecation)(t);try{const n=r.Lexer.lexInline(e,t);return t.walkTokens&&d.walkTokens(n,t.walkTokens),o.Parser.parseInline(n,t)}catch(e){if(e.message+="\nPlease report this to https://github.com/markedjs/marked.",t.silent)return"<p>An error occurred:</p><pre>"+(0,u.escape)(e.message+"",!0)+"</pre>";throw e}},d.Parser=o.Parser,d.parser=o.Parser.parse,d.Renderer=s.Renderer,d.TextRenderer=a.TextRenderer,d.Lexer=r.Lexer,d.lexer=r.Lexer.lex,d.Tokenizer=i.Tokenizer,d.Slugger=c.Slugger,d.parse=d,t.options=d.options,t.setOptions=d.setOptions,t.use=d.use,t.walkTokens=d.walkTokens,t.parseInline=d.parseInline,t.parse=d,t.parser=o.Parser.parse,t.lexer=r.Lexer.lex},1319:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.inline=t.block=void 0;var r=n(5141);const o=t.block={newline:/^(?: *(?:\n|$))+/,code:/^( {4}[^\n]+(?:\n(?: *(?:\n|$))*)?)+/,fences:/^ {0,3}(`{3,}(?=[^`\n]*\n)|~{3,})([^\n]*)\n(?:|([\s\S]*?)\n)(?: {0,3}\1[~`]* *(?=\n|$)|$)/,hr:/^ {0,3}((?:- *){3,}|(?:_ *){3,}|(?:\* *){3,})(?:\n+|$)/,heading:/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,blockquote:/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/,list:/^( {0,3}bull)( [^\n]+?)?(?:\n|$)/,html:"^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n *)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$))",def:/^ {0,3}\[(label)\]: *(?:\n *)?<?([^\s>]+)>?(?:(?: +(?:\n *)?| *\n *)(title))? *(?:\n+|$)/,table:r.noopTest,lheading:/^([^\n]+)\n {0,3}(=+|-+) *(?:\n+|$)/,_paragraph:/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,text:/^[^\n]+/};o._label=/(?!\s*\])(?:\\.|[^\[\]\\])+/,o._title=/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/,o.def=(0,r.edit)(o.def).replace("label",o._label).replace("title",o._title).getRegex(),o.bullet=/(?:[*+-]|\d{1,9}[.)])/,o.listItemStart=(0,r.edit)(/^( *)(bull) */).replace("bull",o.bullet).getRegex(),o.list=(0,r.edit)(o.list).replace(/bull/g,o.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+o.def.source+")").getRegex(),o._tag="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|section|source|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",o._comment=/<!--(?!-?>)[\s\S]*?(?:-->|$)/,o.html=(0,r.edit)(o.html,"i").replace("comment",o._comment).replace("tag",o._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),o.paragraph=(0,r.edit)(o._paragraph).replace("hr",o.hr).replace("heading"," {0,3}#{1,6} ").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",o._tag).getRegex(),o.blockquote=(0,r.edit)(o.blockquote).replace("paragraph",o.paragraph).getRegex(),o.normal=(0,r.merge)({},o),o.gfm=(0,r.merge)({},o.normal,{table:"^ *([^\\n ].*\\|.*)\\n {0,3}(?:\\| *)?(:?-+:? *(?:\\| *:?-+:? *)*)(?:\\| *)?(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)"}),o.gfm.table=(0,r.edit)(o.gfm.table).replace("hr",o.hr).replace("heading"," {0,3}#{1,6} ").replace("blockquote"," {0,3}>").replace("code"," {4}[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",o._tag).getRegex(),o.gfm.paragraph=(0,r.edit)(o._paragraph).replace("hr",o.hr).replace("heading"," {0,3}#{1,6} ").replace("|lheading","").replace("table",o.gfm.table).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",o._tag).getRegex(),o.pedantic=(0,r.merge)({},o.normal,{html:(0,r.edit)("^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:\"[^\"]*\"|'[^']*'|\\s[^'\"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))").replace("comment",o._comment).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:r.noopTest,paragraph:(0,r.edit)(o.normal._paragraph).replace("hr",o.hr).replace("heading"," *#{1,6} *[^\n]").replace("lheading",o.lheading).replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").getRegex()});const i=t.inline={owo:/^:(\S*):/,escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:r.noopTest,tag:"^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>",link:/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/,reflink:/^!?\[(label)\]\[(ref)\]/,nolink:/^!?\[(ref)\](?:\[\])?/,reflinkSearch:"reflink|nolink(?!\\()",emStrong:{lDelim:/^(?:\*+(?:([punct_])|[^\s*]))|^_+(?:([punct*])|([^\s_]))/,rDelimAst:/^[^_*]*?\_\_[^_*]*?\*[^_*]*?(?=\_\_)|[punct_](\*+)(?=[\s]|$)|[^punct*_\s](\*+)(?=[punct_\s]|$)|[punct_\s](\*+)(?=[^punct*_\s])|[\s](\*+)(?=[punct_])|[punct_](\*+)(?=[punct_])|[^punct*_\s](\*+)(?=[^punct*_\s])/,rDelimUnd:/^[^_*]*?\*\*[^_*]*?\_[^_*]*?(?=\*\*)|[punct*](\_+)(?=[\s]|$)|[^punct*_\s](\_+)(?=[punct*\s]|$)|[punct*\s](\_+)(?=[^punct*_\s])|[\s](\_+)(?=[punct*])|[punct*](\_+)(?=[punct*])/},code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,br:/^( {2,}|\\)\n(?!\s*$)/,del:r.noopTest,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`:*_]|\b_|$)|[^ ](?= {2,}\n)))/,punctuation:/^([\spunctuation])/};i._punctuation="!\"#$%&'()+\\-.,/:;<=>?@\\[\\]`^{|}~",i.punctuation=(0,r.edit)(i.punctuation).replace(/punctuation/g,i._punctuation).getRegex(),i.blockSkip=/\[[^\]]*?\]\([^\)]*?\)|`[^`]*?`|<[^>]*?>/g,i.escapedEmSt=/\\\*|\\_/g,i._comment=(0,r.edit)(o._comment).replace("(?:--\x3e|$)","--\x3e").getRegex(),i.emStrong.lDelim=(0,r.edit)(i.emStrong.lDelim).replace(/punct/g,i._punctuation).getRegex(),i.emStrong.rDelimAst=(0,r.edit)(i.emStrong.rDelimAst,"g").replace(/punct/g,i._punctuation).getRegex(),i.emStrong.rDelimUnd=(0,r.edit)(i.emStrong.rDelimUnd,"g").replace(/punct/g,i._punctuation).getRegex(),i._escapes=/\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/g,i._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/,i._email=/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/,i.autolink=(0,r.edit)(i.autolink).replace("scheme",i._scheme).replace("email",i._email).getRegex(),i._attribute=/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/,i.tag=(0,r.edit)(i.tag).replace("comment",i._comment).replace("attribute",i._attribute).getRegex(),i._label=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,i._href=/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/,i._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/,i.link=(0,r.edit)(i.link).replace("label",i._label).replace("href",i._href).replace("title",i._title).getRegex(),i.reflink=(0,r.edit)(i.reflink).replace("label",i._label).replace("ref",o._label).getRegex(),i.nolink=(0,r.edit)(i.nolink).replace("ref",o._label).getRegex(),i.reflinkSearch=(0,r.edit)(i.reflinkSearch,"g").replace("reflink",i.reflink).replace("nolink",i.nolink).getRegex(),i.normal=(0,r.merge)({},i),i.pedantic=(0,r.merge)({},i.normal,{strong:{start:/^__|\*\*/,middle:/^__(?=\S)([\s\S]*?\S)__(?!_)|^\*\*(?=\S)([\s\S]*?\S)\*\*(?!\*)/,endAst:/\*\*(?!\*)/g,endUnd:/__(?!_)/g},em:{start:/^_|\*/,middle:/^()\*(?=\S)([\s\S]*?\S)\*(?!\*)|^_(?=\S)([\s\S]*?\S)_(?!_)/,endAst:/\*(?!\*)/g,endUnd:/_(?!_)/g},link:(0,r.edit)(/^!?\[(label)\]\((.*?)\)/).replace("label",i._label).getRegex(),reflink:(0,r.edit)(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",i._label).getRegex()}),i.gfm=(0,r.merge)({},i.normal,{escape:(0,r.edit)(i.escape).replace("])","~|])").getRegex(),_extended_email:/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/,url:/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,_backpedal:/(?:[^?!.,:;*_~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])([\s\S]*?[^\s~])\1(?=[^~]|$)/,text:/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`:*~_]|\b_|https?:\/\/|ftp:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/}),i.gfm.url=(0,r.edit)(i.gfm.url,"i").replace("email",i.gfm._extended_email).getRegex(),i.breaks=(0,r.merge)({},i.gfm,{br:(0,r.edit)(i.br).replace("{2,}","*").getRegex(),text:(0,r.edit)(i.gfm.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()})},9533:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isUrl=t.call=void 0;var r=n(8897);const o=e=>/^http(s)?:\/\//.test(e);t.isUrl=o,t.call=async(e,t,n={})=>{const i=e||(r.app?r.app.$tcb:null),s=n.envId||r.app.$twikoo.envId,a=n.funcName||r.app?.$twikoo.funcName||"twikoo";if(!i){if(o(s))return await new Promise((e,r)=>{try{const o=localStorage.getItem("twikoo-access-token"),i=new XMLHttpRequest;i.onreadystatechange=()=>{if(4===i.readyState)if(200===i.status){const t=JSON.parse(i.responseText);t.accessToken&&localStorage.setItem("twikoo-access-token",t.accessToken),e({result:t})}else r(i.status)},i.open("POST",s),i.setRequestHeader("Content-Type","application/json"),i.send(JSON.stringify({event:t,accessToken:o,...n,envId:s}))}catch(e){r(e)}});throw new Error("缺少 envId 配置 - https://twikoo.js.org")}try{return await i.app.callFunction({name:a,data:{event:t,...n}})}catch(e){let r;switch(t){case"COMMENT_LIKE":r="comment-like";break;case"COMMENT_GET":r="comment-get";break;case"COMMENT_SUBMIT":r="comment-submit";break;case"COUNTER_GET":r="counter-get"}if(r)return await i.app.callFunction({name:r,data:n});throw new Error("请升级 Twikoo 云函数版本再试,如果仍无法解决,请删除并重新创建 Twikoo 云函数 - https://twikoo.js.org")}}},5940:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getQQAvatar=function(e){return`https://thirdqq.qlogo.cn/g?b=sdk&nk=${e.replace(/@qq.com/gi,"")}&s=140`},t.isQQ=function(e){return/^[1-9][0-9]{4,10}$/.test(e)||/^[1-9][0-9]{4,10}@qq.com$/i.test(e)},t.normalizeMail=function(e){return String(e).trim().toLowerCase()}},7760:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.initMarkedOwo=function(e){if(e&&Object.values(e)){const t={};return Object.values(e).forEach(e=>{e.container.forEach(e=>{const n=i(e.icon);n&&(t[e.text]=n)})}),t}},t.initOwoEmotions=async function(e){const t={},n=await Promise.all(e.split(",").map(e=>function(e){return new Promise(t=>{const n=new XMLHttpRequest;n.onreadystatechange=()=>{if(4===n.readyState)if(n.status>=200&&n.status<300||304===n.status){const e=function(e){try{return Object.values(e).forEach(e=>{if("image"===e.type)for(const t of e.container)t.text||(t.text=s(i(t.icon)))}),e}catch(e){r.logger.warn("OwO data is bad: ",e)}}(JSON.parse(n.responseText));t(e)}else r.logger.warn("OwO data request was unsuccessful: "+n.status)},n.open("get",e,!0),n.send(null)})}(e.trim())));return Object.assign(t,...n),t};var r=n(2509);const o=document.createElement("template");function i(e){try{return o.innerHTML=e,o.content.childNodes[0].src}catch(e){return""}}function s(e){return e.split("#").shift().split("?").shift().split("/").pop()}},9957:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(8897);let o,i;const s=(e,t)=>{const n=document.getElementById("twikoo");i&&n.contains(i)||!e||"none"===e||(i=document.createElement("link"),i.href="default"===e?`${t}/themes/prism.min.css`:`${t}/themes/prism-${e}.min.css`,i.rel="stylesheet",i.type="text/css",n.appendChild(i))};t.default=(e,t,i)=>{const a=r.app&&r.app.$twikoo.prismCdn?r.app.$twikoo.prismCdn:"https://cdn.jsdelivr.net/npm/prismjs@1.28.0";window.Prism=window.Prism||{},window.Prism.manual=!0,o||(o=n(6665),n(9670),o.plugins.autoloader.languages_path=`${a}/components/`,i&&(n(5900),i.split(",").map(e=>e.trim()).forEach(e=>{"showLanguage"===e?n(3020):"copyButton"===e&&n(9092)}))),s(t,a),o.highlightAllUnder(e)}},4168:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;const n="ADMIN_COMMENT",r="ADMIN_CONFIG_CATEGORY",o="ADMIN_CONFIG_ITEM",i="ADMIN_IMPORT",s=["qmsg","serverchan","pushplus","pushplushxtrip","dingtalk","wecom","bark","gocqhttp","atri","pushdeer","igot","telegram","feishu"].map(e=>`"${e}"`),a=["126","163","1und1","AOL","DebugMail","DynectEmail","FastMail","GandiMail","Gmail","Godaddy","GodaddyAsia","GodaddyEurope","Hotmail","Mail.ru","Maildev","Mailgun","Mailjet","Mailosaur","Mandrill","Naver","OpenMailBox","Outlook365","Postmark","QQ","QQex","SES","SES-EU-WEST-1","SES-US-EAST-1","SES-US-WEST-2","SendCloud","SendGrid","SendPulse","SendinBlue","Sparkpost","Yahoo","Yandex","Zoho","hot.ee","iCloud","mail.ee","qiye.aliyun"].map(e=>`"${e}"`),c=["default","coy","dark","funky","okaidia","solarizedlight","tomorrow","twilight"].map(e=>`"${e}"`),u=["showLanguage","copyButton"].map(e=>`"${e}"`),l=["qcloud","7bu (https://7bu.top)","see (https://s.ee)","lskypro","piclist","easyimage","chevereto","S3 / R2 / MinIO"].map(e=>`"${e}"`),d=["lskypro","piclist","easyimage","s3"].map(e=>`"${e}"`),h=["404","mp","identicon","monsterid","wavatar","retro","robohash","blank"].map(e=>`"${e}"`);t.default={ADMIN_CLIENT_VERSION:["前端版本:","前端版本:","前端版本:","Client version: ","Клиент версияси: ","クライアントバージョン:","클라이언트 버전: ","Phiên bản client: ","Versi klien: "],ADMIN_SERVER_VERSION:["云函数版本:","云函數版本:","雲端函式版本:","Server version: ","Сервернинг версияси: ","サーバーサイドバージョン: ","서버 버전: ","Phiên bản cloud function: ","Versi server: "],[n]:["评论管理","評論管理","留言管理","Comment","Изоҳ","コメント管理","댓글 관리","Quản lý bình luận","Manajemen Komentar"],[n+"_DELETE"]:["删除","刪除","移除","Delete","Ўчирмоқ","削除","삭제","Xóa","Hapus"],[n+"_DELETE_CONFIRM"]:["确认删除?","確認刪除?","確認移除?","Confirm deletion?","Ўчириш тасдиқлансинми?","本当に削除しますか?","정말 삭제하시겠습니까?","Xác nhận xóa?","Konfirmasi hapus?"],[n+"_FILTER_ALL"]:["全部","全部","全部","All","Ҳаммаси","全部","전체","Tất cả","Semua"],[n+"_FILTER_VISIBLE"]:["只看可见","只看可見","只看可見","Visible","Кўринадиган","表示中のみ","표시 댓글","Chỉ hiển thị","Hanya Terlihat"],[n+"_FILTER_HIDDEN"]:["只看隐藏","只看隱藏","只看隱藏","Hidden","Яширилган","非表示中のみ","숨김 댓글","Chỉ ẩn","Hanya Tersembunyi"],[n+"_HIDE"]:["隐藏","隱藏","隱藏","Hide","Яширмоқ","非表示","숨기기","Ẩn","Sembunyikan"],[n+"_IS_SPAM_SUFFIX"]:[" (已隐藏)"," (已隱藏)"," (已隱藏)"," (Hidden)"," (Яширилган)"," (非表示)"," (숨김 처리됨)"," (Đã ẩn)"," (Tersembunyi)"],[n+"_SEARCH"]:["搜索","搜索","搜尋","Search","Излаш","検索","검색","Tìm kiếm","Cari"],[n+"_SEARCH_PLACEHOLDER"]:["搜索昵称、邮箱、网址、IP、评论正文、文章地址","搜索暱稱、郵箱、網址、IP、評論正文、文章地址","搜索暱稱、郵件、網址、IP、留言正文、文章路徑","Search by nick, mail, website, IP, comment, or article path","Тахаллус, почта, веб-сайт, ИП, шарҳ ёки мақола йўли бўйича излаш","名前、メールアドレス、ウェブサイトURL、IPアドレス、コメント内容、記事のURLを検索","닉네임, 이메일, 웹사이트, IP, 댓글 내용, 게시글 주소로 검색","Tìm theo tên, email, website, IP, nội dung bình luận hoặc đường dẫn bài viết","Cari berdasarkan nama, email, situs web, IP, isi komentar, atau alamat artikel"],[n+"_SHOW"]:["显示","顯示","顯示","Show","Кўрсатиш","表示","표시","Hiển thị","Tampilkan"],[n+"_TOP"]:["置顶","置頂","置頂","Pin","Қадамоқ","固定する","고정","Ghim lên đầu","Sematkan"],[n+"_UNTOP"]:["取消置顶","取消置頂","取消置頂","Unpin","Қадоқни ечмоқ","固定を解除","고정 해제","Bỏ ghim","Lepas Sematan"],[n+"_VIEW"]:["查看","查看","檢視","View","Кўриниш","閲覧","보기","Xem","Lihat"],[n+"_SECURITY_ALERT"]:["评论链接与本站不同!出于安全考虑,请手动复制以下网址访问:","評論連結與本站不同!出於安全考慮,請手動複製以下網址訪問:","留言連結與本站不同!出於安全考慮,請手動複製以下網址訪問:","The comment link is different from this site! For security reasons, please manually copy the following URL to visit:","Шарҳ ҳаволаси бу сайтдан фарқ қилади! Хавфсизлик сабабларига кўра, илтимос, қуйидаги URL манзилни қўлда нусха олинг:","コメントリンクがこのサイトと異なります!セキュリティ上の理由から、以下のURLを手動でコピーしてアクセスしてください:","댓글 링크가 이 사이트와 다릅니다! 보안상의 이유로, 다음 URL을 수동으로 복사하여 방문하세요:","Liên kết bình luận khác với trang này! Vì lý do bảo mật, hãy sao chép thủ công URL sau để truy cập:","Tautan komentar berbeda dengan situs ini! Demi keamanan, silakan salin manual URL berikut untuk mengunjunginya:"],[n+"_PARSE_ERROR"]:["无法解析评论链接,请仔细检查链接后手动复制以下网址访问:","無法解析評論連結,請仔細檢查連結後手動複製以下網址訪問:","無法解析留言連結,請仔細檢查連結後手動複製以下網址訪問:","Unable to parse comment link. Please check and manually copy the following URL:","Шарҳ ҳаволасини таҳлил қилиб бўлмади. Илтимос, қуйидаги манзилни текширинг ва қўлда нусха олинг:","コメントリンクを解析できません。以下のURLを確認して手動でコピーしてください:","댓글 링크를 파싱할 수 없습니다. 다음 주소를 확인하고 수동으로 복사하세요:","Không thể phân tích liên kết bình luận. Hãy kiểm tra và sao chép thủ công URL sau:","Tidak dapat mengurai tautan komentar. Silakan periksa dan salin manual URL berikut:"],ADMIN_CONFIG:["配置管理","配置管理","設定值管理","Configuration","Конфигурация","設定管理","환경설정","Quản lý cấu hình","Manajemen Konfigurasi"],[r+"_COMMON"]:["通用","通用","一般","General","Умумий","一般","일반","Chung","Umum"],[r+"_IM"]:["即时通知","即時通知","即時通知","Instant notification","Тезкор хабарнома","即時通知","실시간 알림","Thông báo tức thì","Notifikasi Instan"],[r+"_MAIL"]:["邮件通知","郵件通知","郵件通知","Email notification","Электрон почта хабарномаси","メール通知","이메일 알림","Thông báo email","Notifikasi Email"],[r+"_PLUGIN"]:["插件","插件","擴充功能","Plugin","Плагин","プラグイン","플러그인","Plugin","Plugin"],[r+"_PRIVACY"]:["隐私","隱私","隱私權","Privacy","Шахсий қоидалар","プライバシー","개인정보","Quyền riêng tư","Privasi"],[r+"_SPAM"]:["反垃圾","反垃圾","防垃圾","Spam","Спам","スパム対策","스팸 관리","Chống spam","Anti-spam"],[r+"_CAPTCHA"]:["人机验证","人機驗證","人機驗證","CAPTCHA","CAPTCHA","CAPTCHA","CAPTCHA","CAPTCHA","CAPTCHA"],ADMIN_CONFIG_IMAGE_CDN_NONE:["无(不启用图片上传)","無(不啟用圖片上傳)","無(不啟用圖片上傳)","None (disable image upload)","Йўқ (расм юклашни ўчириш)","なし(画像アップロードを無効にする)","없음 (이미지 업로드 비활성화)","Không (tắt tải ảnh)","Tidak Ada (nonaktifkan unggahan gambar)"],ADMIN_CONFIG_CAPTCHA_NONE:["无","無","無","None","Йўқ","なし","없음","Không","Tidak Ada"],ADMIN_CONFIG_CAPTCHA_TURNSTILE:["Cloudflare Turnstile","Cloudflare Turnstile","Cloudflare Turnstile","Cloudflare Turnstile","Cloudflare Turnstile","Cloudflare Turnstile","Cloudflare Turnstile","Cloudflare Turnstile"],ADMIN_CONFIG_CAPTCHA_GEETEST:["极验 Geetest","極驗 Geetest","極驗 Geetest","GeeTest","GeeTest","GeeTest","GeeTest","GeeTest"],ADMIN_CONFIG_CAPTCHA_CAP:["Cap","Cap","Cap","Cap","Cap","Cap","Cap","Cap"],ADMIN_CONFIG_EMAIL_TEST:["邮件通知测试","郵件通知測試","郵件通知測試","Email notification test","Электрон почта хабарномаси тести","メール通知テスト","이메일 알림 테스트","Kiểm tra thông báo email","Tes notifikasi email"],ADMIN_CONFIG_EMAIL_TEST_BTN:["发送测试邮件","發送測試郵件","發送測試郵件","Send test mail","Синов хатини юбориш","テストメールを送信","테스트 메일 발송","Gửi email thử","Kirim email tes"],ADMIN_CONFIG_EMAIL_TEST_HELP:["输入一个邮箱地址,发送测试邮件","輸入一個郵箱位址,發送測試郵件","輸入一個郵箱帳號,發送測試郵件","Input an email address & send test mail","Э-почта манзилини киритинг ва синов хатини юборинг","メールアドレスを入力してテストメールを送信","이메일 주소를 입력하고 테스트 메일을 발송하세요","Nhập địa chỉ email và gửi email thử","Masukkan alamat email dan kirim email tes"],ADMIN_CONFIG_EMAIL_TEST_RESULT:["测试结果:","測試結果:","測試結果:","Test result: ","Тест натижаси: ","テスト結果:","테스트 결과: ","Kết quả kiểm tra: ","Hasil tes: "],ADMIN_CONFIG_EXAMPLE:["示例:","示例:","範例:","Example: ","Намуна: ","例:","예시: ","Ví dụ: ","Contoh: "],[o+"_AKISMET_KEY"]:['Akismet 反垃圾评论,用于垃圾评论检测,设为 "MANUAL_REVIEW" 开启人工审核,留空不使用反垃圾。注册:https://akismet.com','Akismet 反垃圾評論,用於垃圾評論檢測,設為 "MANUAL_REVIEW" 開啟人工審核,留空不使用反垃圾。註冊:https://akismet.com','Akismet 防垃圾留言,用於垃圾留言檢測,設為 "MANUAL_REVIEW" 以開啟人工審核,留空則不使用防垃圾。註冊:https://akismet.com','Akismet spam protection. Set to "MANUAL_REVIEW" to enable manual review. Leave it blank to not use anti-spam. Register Akismet: https://akismet.com','Акисмет спам ҳимояси. Қўлда кўриб чиқишни ёқиш учун "MANUAL_REVIEW" га созланг. Анти-спамдан фойдаланмаслик учун уни бўш қолдиринг. Акисметни рўйхатдан ўтказиш: https://akismet.com','Akismetは、スパムコメントの検出に使用されるアンチスパムサービスです。"MANUAL_REVIEW"に設定することで、手動レビューを有効化します。コメントのスパム対策にAkismetを使用することで、不要なコメントをブロックし、サイトのセキュリティを向上させることができます。 Akismetの詳細情報と登録は、https://akismet.com で提供されています。','Akismet 스팸 방지. 스팸 댓글 감지에 사용합니다. "MANUAL_REVIEW"를 설정하면 수동 검토를 활성화합니다. 비워두면 스팸 수동 검토를 사용하지 않습니다. Akismet 등록: https://akismet.com','Bảo vệ spam Akismet. Đặt thành "MANUAL_REVIEW" để bật kiểm duyệt thủ công. Để trống nếu không dùng chống spam. Đăng ký: https://akismet.com','Perlindungan spam Akismet. Atur ke "MANUAL_REVIEW" untuk mengaktifkan peninjauan manual. Biarkan kosong jika tidak menggunakan anti-spam. Daftar Akismet: https://akismet.com'],[o+"_BLOGGER_NICK"]:["博主的昵称。","博主的昵稱。","站長的暱稱。","Admin nick name.","Админ исми.","管理者の名前。","관리자 닉네임.","Tên hiển thị của quản trị viên.","Nama panggilan admin."],[o+"_BLOGGER_EMAIL"]:["博主的邮箱地址,用于邮件通知、博主标识。","博主的郵箱地址,用於郵件通知、博主標識。","站長的郵箱帳號,用於郵件通知、站長認證。","Admin Email address. Used for Email notification and admin identification.","Админ электрон почта манзили. Электрон почта хабарномаси ва администратор идентификацияси учун фойдаланилади.","管理者のメールアドレス。メール通知と管理者の識別に使用されます。","관리자 이메일 주소. 이메일 알림 및 관리자 식별에 사용됩니다.","Địa chỉ email quản trị viên. Dùng cho thông báo email và nhận diện admin.","Alamat email admin. Digunakan untuk notifikasi email dan identifikasi admin."],[o+"_COMMENT_BG_IMG"]:["评论框自定义背景图片 URL 地址。","評論框自定義背景圖片 URL 地址。","留言區塊自訂背景圖片 URL 網址。","URL for custom background image.","Махсус фон расми учун УРЛ.","コメントボックスのカスタム背景画像のURL。","댓글창 배경 이미지 URL 주소.","URL ảnh nền tùy chỉnh cho khung bình luận.","URL untuk gambar latar belakang kustom."],[o+"_COMMENT_PAGE_SIZE"]:["评论列表分页大小,默认为 8。","評論列表分頁大小,預設為 8。","留言列表分頁大小,預設為 8。","Comment page size. Default: 8.","Изоҳ саҳифаси ўлчами. Стандарт: 8.","コメントリストのページサイズ。デフォルトは8。","한 페이지당 표시 댓글 수. 기본값: 8.","Số bình luận mỗi trang. Mặc định: 8.","Jumlah komentar per halaman. Bawaan: 8."],[o+"_COMMENT_PLACEHOLDER"]:["评论框提示信息,可用<br>换行,默认为空","評論框提示信息,可用<br>換行,預設為空","留言區塊提示資訊,可用<br>換行,預設空白","Comment placeholder. Use <br> to start a newline. Default: empty.","Изоҳ тўлдирувчиси. Янги қаторни бошлаш учун <бр> дан фойдаланинг. Стандарт: бўш.","コメントボックスのヒントメッセージ。<br>で改行。デフォルトは空。","댓글 입력창에 표시될 기본 문구. <br> 태그로 줄바꿈 가능. 기본값: 비어 있음.","Văn bản gợi ý trong khung bình luận. Dùng <br> để xuống dòng. Mặc định: trống.","Placeholder komentar. Gunakan <br> untuk baris baru. Bawaan: kosong."],[o+"_CORS_ALLOW_ORIGIN"]:["CORS 安全域名,注意:如果您不了解什么是 CORS,此项请留空,错误设置会导致无法加载,默认为空,格式为 https://blog.example.com;如需添加多域名请使用,分隔","CORS 安全域名,注意:错误设置会导致无法加載,默認為空,格式为 https://blog.example.com;如需添加多域名請使用,分隔","CORS 安全網域,注意:設定錯誤將會導致載入失敗,預設空白,格式應為 https://blog.example.com;如需添加多域名請使用,分隔","CORS allow origin, note: incorrect settings can cause loading failure. Default: blank, format: https://blog.example.com; If you need to add multiple domain names, please use, separate","Версел СОРС келиб чиқишига рухсат беради, эътибор беринг: нотўғри созламалар юклашда хатоликка олиб келиши мумкин. Стандарт: бўш, формат: https://blog.example.com; Агар сиз бир нечта домен номларини қўшмоқчи бўлсангиз, илтимос, ажратишдан фойдаланинг.","CORS セキュアドメイン。注意:誤った設定は読み込みエラーを引き起こす可能性があります。デフォルトは空、形式は https://blog.example.com です。複数のドメインを追加する場合は、コンマで区切ってください。","댓글 서버 접근 허용 웹사이트 주소. 참고: 등록된 웹사이트만 댓글 시스템과 안전하게 통신합니다. 주소 오류 시 댓글창이 사라질 수 있습니다. 기본값: 비어 있음(보안 취약), 형식: https://blog.example.com; 여러 주소는 쉼표(,)로 구분.","Tên miền cho phép CORS. Lưu ý: cấu hình sai có thể gây lỗi tải. Mặc định: trống. Định dạng: https://blog.example.com; Nhiều tên miền dùng dấu phẩy.","Asal izin CORS, catatan: pengaturan yang salah dapat menyebabkan kegagalan memuat. Bawaan: kosong, format: https://blog.example.com; Jika perlu menambahkan beberapa nama domain, pisahkan dengan koma."],[o+"_DEFAULT_GRAVATAR"]:[`默认的头像显示。默认值(留空)为 "initials",可选:${h.join("、")}`,`預設的頭像顯示。預設值(留空)為 "initials",可選:${h.join("、")}`,`預設的大頭貼照圖示。預設值(留空)為 "initials",選項:${h.join("、")}`,`Avatar placeholder. Default (when empty): "initials". Choose from: ${h.join(", ")}`,`Аватар тўлдирувчиси. Стандарт (агар бўш қолдирилса): «идентификатор». Қуйидагилардан танланг: ${h.join(", ")}`,`デフォルトのプロフィール画像表示。デフォルト(空欄時)は "initials" で、選択肢は:${h.join("、")} です`,`프로필 기본 이미지. 기본값(비워둘 경우): "initials". 사용 가능 스타일: ${h.join(", ")}`,`Ảnh đại diện mặc định. Mặc định (để trống): "initials". : ${h.join(", ")}`,`Tampilan avatar default. Bawaan (bila kosong): "initials". Pilih dari: ${h.join(", ")}`],[o+"_EMOTION_CDN"]:["表情 CDN,英文逗号分隔。默认为:https://owo.imaegoo.com/owo.json","表情 CDN,英文逗號分隔。預設為:https://owo.imaegoo.com/owo.json","表情 CDN 來源,使用英文逗號分隔。預設為:https://owo.imaegoo.com/owo.json","Emoji CDN. Separate by comma. Default: https://owo.imaegoo.com/owo.json","Emoji CDN. Вергул билан ажратинг. Default: https://owo.imaegoo.com/owo.json","顔文字CDN。コンマで区切ってください。デフォルト:https://owo.imaegoo.com/owo.json","이모티콘 데이터 웹 주소. 쉼표(,)로 구분. 기본값: https://owo.imaegoo.com/owo.json","CDN emoji, cách nhau bởi dấu phẩy. Mặc định: https://owo.imaegoo.com/owo.json","CDN Emoji, pisahkan dengan koma. Bawaan: https://owo.imaegoo.com/owo.json"],[o+"_FORBIDDEN_WORDS"]:["违禁词配置,包含违禁词的内容会直接标记为垃圾评论。英文逗号分隔。","違禁詞配置,包含違禁詞的內容會直接標記為垃圾評論。英文逗號分隔。","禁用詞語設定,包含禁用詞語的內容會直接標記為垃圾留言。使用英文逗號分隔。","Configure prohibited words. Comments containing prohibited words will be auto spammed. Separate by comma.","Тақиқланган сўзларни созланг. Тақиқланган сўзларни ўз ичига олган шарҳлар автоматик равишда спамга юборилади. Вергул билан ажратинг.","禁止ワード設定。禁止ワードを含むコンテンツは直ちにスパムコメントとしてマークされます。コンマで区切ってください。","금지어 설정. 금지어 포함 댓글은 스팸으로 숨김 처리 됩니다. 쉼표로 구분.","Cấu hình từ bị cấm. Bình luận chứa từ bị cấm sẽ bị đánh dấu spam. Cách nhau bởi dấu phẩy.","Konfigurasi kata terlarang. Komentar yang mengandung kata terlarang akan otomatis ditandai spam. Pisahkan dengan koma."],[o+"_BLOCKED_WORDS"]:["屏蔽词配置,包含屏蔽词的内容会直接评论失败。英文逗号分隔。","屏蔽词配置,包含屏蔽词的内容会直接评论失败。英文逗号分隔。","屏蔽词配置,包含屏蔽词的内容会直接评论失败。英文逗号分隔。","Configure blocked words. Comments containing blocked words will fail to send. Separate by comma.","Configure blocked words. Comments containing blocked words will fail to send. Separate by comma.","ブロックワード設定。ブロックワードを含むコンテンツは送信に失敗します。コンマで区切ってください。","차단어 설정. 차단어 포함 댓글은 등록에 실패합니다. 쉼표로 구분.","Cấu hình từ bị chặn. Bình luận chứa từ bị chặn sẽ không được gửi. Cách nhau bởi dấu phẩy.","Konfigurasi kata diblokir. Komentar yang mengandung kata diblokir akan gagal dikirim. Pisahkan dengan koma."],[o+"_GRAVATAR_CDN"]:["自定义头像 CDN 地址。如:cn.gravatar.com, weavatar.com, cravatar.cn, sdn.geekzu.org, gravatar.loli.net,默认:weavatar.com","自定義頭像 CDN 地址。如:cn.gravatar.com, weavatar.com, cravatar.cn, sdn.geekzu.org, gravatar.loli.net,預設:weavatar.com","自訂大頭貼照 CDN 來源。如:cn.gravatar.com, weavatar.com, cravatar.cn, sdn.geekzu.org, gravatar.loli.net,預設:weavatar.com","Custom avator CDN. (Examples: gravatar.com) Default: weavatar.com.","Custom avator CDN. (Мисоллар: gravatar.com) Default: weavatar.com.","カスタムプロフィール画像CDNアドレス。例:cn.gravatar.com、weavatar.com、cravatar.cn、sdn.geekzu.org、gravatar.loli.net、デフォルト:weavatar.com","프로필 이미지(아바타) Gravatar 서버 주소. 더 빠르거나 안정적인 서버를 선택할 수 있습니다. (예: gravatar.com) 기본값: weavatar.com.","CDN ảnh đại diện tùy chỉnh. (Ví dụ: gravatar.com) Mặc định: weavatar.com.","Alamat CDN avatar kustom. Contoh: cn.gravatar.com, weavatar.com, cravatar.cn, sdn.geekzu.org, gravatar.loli.net, bawaan: weavatar.com."],[o+"_HIDE_ADMIN_CRYPT"]:["隐藏管理面板入口。可设置一个“暗号”,只有在“昵称”一栏输入相同的“暗号”时,管理面板入口才会显示,留空则不隐藏管理入口","隱藏管理面板入口。可設定一個“暗號”,只有在“暱稱”一欄輸入相同的“暗號”時,管理面板入口才會顯示,留空則不隱藏管理入口","隱藏管理控制台入口。可設定一個“暗號”,只有在「暱稱」一欄輸入相同的「暗號」時,管理控制台入口才會顯示,留白則不隱藏管理入口","Set a cipher to hide the management panel entrance, only when the same cipher is entered in the nickname field the management panel entry will be displayed. Leave it blank to not hide the management entrance.","Бошқарув панелига киришни яшириш учун шифрни ўрнатинг, фақат тахаллус майдонига худди шу шифр киритилганда бошқарув панелидаги ёзув кўрсатилади. Бошқарув киришини яширмаслик учун уни бўш қолдиринг.",'管理パネルのログイン画面を非表示にする。 "パスワード" を設定でき、 "名前" フィールドに同じ "パスワード" を入力した場合のみ、管理パネルのログイン画面が表示されます。空白の場合、管理パネルのログイン画面は非表示にされません。',"환경설정 버튼을 숨깁니다. 암호를 설정하여, 닉네임 입력란에 동일한 암호를 입력해야만 환경설정 버튼이 표시됩니다. 비워두면 버튼을 숨기지 않습니다.",'Đặt mật khẩu bí mật để ẩn nút vào trang quản trị. Chỉ khi nhập đúng mật khẩu vào ô "Tên" mới hiện nút. Để trống để không ẩn.',"Sembunyikan tombol panel manajemen. Atur kata sandi, hanya ketika kata sandi yang sama dimasukkan di kolom nama, tombol akan muncul. Kosongkan untuk tidak menyembunyikan."],[o+"_QQ_API_KEY"]:["QQ昵称API密钥,用于获取QQ昵称。前往 https://api.tqq.me/dashboard/api-keys 获取","QQ暱稱API密鑰,用於獲取QQ暱稱。前往 https://api.tqq.me/dashboard/api-keys 獲取","QQ暱稱API密鑰,用於獲取QQ暱稱。前往 https://api.tqq.me/dashboard/api-keys 獲取","QQ nickname API key for fetching QQ nickname. Get it from https://api.nsuuu.com/admin/key","QQ laqab API kaliti, QQ laqabni olish uchun. https://api.tqq.me/dashboard/api-keys dan oling","QQニックネームAPIキー。QQニックネームの取得に使用します。https://api.tqq.me/dashboard/api-keys で取得","QQ 닉네임 API 키. https://api.tqq.me/dashboard/api-keys 에서 발급","API key lấy biệt danh QQ. Lấy tại https://api.tqq.me/dashboard/api-keys","Kunci API nama panggilan QQ. Dapatkan dari https://api.tqq.me/dashboard/api-keys"],[o+"_HIGHLIGHT"]:["启用代码高亮功能。如果您的主题和代码高亮有冲突,请设为 false。默认:true","啟用代碼高亮功能。如果您的主題和代碼高亮有衝突,請設為 false。預設:true","啟用程式碼醒目顯示功能。如果您的主題和此功能發生衝突,請設定為 false。預設:true","Enable code highlighting. If your theme conflicts with code highlighting, please set it to false. Default: true.","Кодни ажратиб кўрсатишни ёқинг. Агар мавзуингиз кодни ажратиб кўрсатишга зид бўлса, уни «фалсе» га ўрнатинг. Стандарт: рост.","コードハイライト機能を有効にします。テーマとコードハイライトに競合がある場合、falseに設定してください。デフォルト:true","코드 하이라이팅 기능을 활성화합니다. 테마와 코드 하이라이팅이 충돌하면 false로 설정하세요. 기본값: true.","Bật tô sáng code. Nếu theme xung đột, đặt thành false. Mặc định: true.","Aktifkan penyorotan kode. Jika tema Anda bertentangan dengan penyorotan kode, atur ke false. Bawaan: true."],[o+"_HIGHLIGHT_THEME"]:[`代码高亮主题,可选:${c.join("、")},访问 https://prismjs.com 可预览主题效果。如果您的主题和代码高亮有冲突,请设为 none。默认:none`,`代碼高亮主題,可選:${c.join("、")},訪問 https://prismjs.com 可預覽主題效果。如果您的主題和代碼高亮有衝突,請設為 none。預設:none`,`程式碼醒目顯示主題,選項:${c.join("、")},瀏覽 https://prismjs.com 可預覽主題效果。如果您的主題和此功能發生衝突,請設定為 none。預設:none`,`Code highlighting theme. Select from: ${c.join(", ")}. Visit https://prismjs.com for preview. If your theme conflicts with code highlighting, please set it to none. Default: none.`,`Кодни таъкидлаш мавзуси. Қуйидагилардан танланг: ${c.join(", ")}. Олдиндан кўриш учун https://prismjs.com сайтига ташриф буюринг. Агар мавзуингиз кодни ажратиб кўрсатишга зид бўлса, уни «Ҳеч» га ўрнатинг. Стандарт: йўқ.`,`コードハイライトのテーマ。選択肢:${c.join("、")}、テーマの効果をプレビューするには https://prismjs.com を訪問してください。テーマとコードハイライトに競合がある場合、noneに設定してください。デフォルト:none`,`코드 하이라이팅 테마. 사용 가능 테마: ${c.join(", ")}. https://prismjs.com 에서 미리보기를 확인하세요. 테마와 코드 하이라이팅이 충돌하면 none으로 설정하세요. 기본값: none.`,`Theme tô sáng code. Truy cập ${c.join(", ")}. https://prismjs.com để xem trước. Mặc định: none.`,`Tema penyorotan kode. Pilih dari: ${c.join(", ")}. Kunjungi https://prismjs.com untuk pratinjau. Jika tema Anda bertentangan dengan penyorotan kode, atur ke none. Bawaan: none.`],[o+"_HIGHLIGHT_PLUGIN"]:[`代码高亮插件,可选:${u.join("、")},分别表示:展示代码语言、展示代码拷贝按钮。可以同时设置多个选项,如果想要不添加任何代码高亮插件,请设为 none。默认:none。`,`代碼高亮插件,可選:${u.join("、")},分別表示:展示代碼語言、展示代碼拷貝按鈕。可以同時設置多個選項,如果想要不添加任何代碼高亮插件,請設為 none。預設:none。`,`代碼高亮外掛程式,可選:${u.join("、")},分別表示:展示代碼語言、展示代碼拷貝按鈕。 可以同時設置多個選項,如果想要不添加任何代碼高亮外掛程式,請設定為 none。預設:none。`,`Code highlight plug-in, optional: ${u.join(", ")}, respectively: show code language, show code copy button. Multiple options can be set at the same time, if you want to add no code highlighting plug-ins, please set it to none. Default: none. `,`Плагин подсветки кода, опционально: ${u.join(",")}, соответственно: показывать язык кода, показывать кнопку копирования кода. Вы можете установить несколько опций одновременно, если вы хотите не добавлять плагин подсветки кода, установите значение none. по умолчанию: none.`,`コード・ハイライト・プラグイン。オプション: ${u.join(",")}, それぞれ: コード言語の表示、コード・コピー・ボタンの表示。複数のオプションを同時に設定できますが、コード・ハイライト・プラグインを追加したくない場合は、noneに設定してください。`,`코드 하이라이트 추가 기능. 선택 가능: ${u.join(", ")}. (코드 언어 표시, 복사 버튼) 여러 기능을 동시에 설정할 수 있으며, 추가하지 않으려면 none으로 설정하세요. 기본값: none.`,`Plugin tô sáng code. Để không dùng plugin ${u.join(", ")}, đặt thành none. Mặc định: none.`,`Plugin penyorotan kode. Pilihan: ${u.join(", ")}, masing-masing: tampilkan bahasa kode, tampilkan tombol salin kode. Dapat mengatur beberapa opsi sekaligus. Jika tidak ingin plugin penyorotan kode, atur ke none. Bawaan: none.`],[o+"_IMAGE_CDN"]:[`插入图片所使用的图床,目前支持:${l.join("、")}`,`插入圖片所使用的圖床,目前支持:${l.join("、")}`,`插入圖片所使用的圖床,目前支援:${l.join("、")}`,`The image bed for image uploading. Select from: ${l.join(", ")}`,`Расм юклаш учун расм тўшаги. Қуйидагилардан танланг: ${l.join(", ")}`,`画像のアップロードに使用する画像ホスティングサービス。次のうちから選択してください:${l.join("、")}`,`댓글 이미지 업로드 기능에 사용될 호스팅 서비스. 사용 가능 목록: ${l.join(", ")}`,`Dịch vụ lưu trữ ảnh khi tải lên bình luận. ${l.join(", ")}`,`Penyedia hosting gambar untuk unggahan gambar. Pilih dari: ${l.join(", ")}`],[o+"_IMAGE_CDN_URL"]:[`图床的 URL,仅当 IMAGE_CDN 为 ${d.join(" / ")} 时需要填写`,`圖床的 URL,僅當 IMAGE_CDN 為 ${d.join(" / ")} 時需要填寫`,`圖床的 URL,僅當 IMAGE_CDN 為 ${d.join(" / ")} 時需要填寫`,`The URL for the image bed. Required if your IMAGE_CDN is one of these: ${d.join(", ")}`,`IMAGE_CDN томонидан белгиланган расм тўшаги URL. Агар сизнинг IMAGE_CDN шулардан бири бўлса: ${d.join(", ")}`,`IMAGE_CDNで設定した画像ホスティングサービスのURL。IMAGE_CDNが以下のいずれかの場合は入力が必要です:${d.join("、")}`,`이미지 저장소 URL. IMAGE_CDN 설정이 다음 중 하나인 경우 필요합니다: ${d.join(", ")}`,`URL của dịch vụ lưu trữ ảnh. Bắt buộc nếu IMAGE_CDN là một trong các giá trị tùy chỉnh. ${d.join(", ")}`,`URL hosting gambar. Wajib diisi jika IMAGE_CDN Anda adalah salah satu dari: ${d.join(", ")}`],[o+"_IMAGE_CDN_TOKEN"]:["图床 token。qcloud 图床无需设置","图床 token。qcloud 图床无需设置","圖床 token。qcloud 圖床不需設定","The image bed token. Unnessessary for qcloud","Тасвир токен белгиси. Қслоуд учун кераксиз","画像ホスティングトークン。qcloud画像ホスティングを利用する場合は設定の必要はありません","이미지 호스팅 토큰. qcloud은 설정 불필요.","Token dịch vụ lưu trữ ảnh. Không cần thiết cho qcloud.","Token hosting gambar. Tidak diperlukan untuk qcloud."],[o+"_NSFW_API_URL"]:["NSFW 图片检测 API 地址。免费服务:nsfw.qixz.cn,项目:github.com/HG-ha/nsfwpy","NSFW 圖片檢測 API 地址。免費服務:nsfw.qixz.cn,項目:github.com/HG-ha/nsfwpy","NSFW 圖片檢測 API 地址。免費服務:nsfw.qixz.cn,項目:github.com/HG-ha/nsfwpy","NSFW image detection API URL. Free services: nsfw.qixz.cn, project: github.com/HG-ha/nsfwpy","NSFW расмни аниқлаш API URL. Бепул хизматлар: nsfw.qixz.cn, лойиҳа: github.com/HG-ha/nsfwpy","NSFW画像検出API URL。無料サービス:nsfw.qixz.cn、プロジェクト:github.com/HG-ha/nsfwpy","NSFW 이미지 감지 API URL. 무료 서비스: nsfw.qixz.cn, 프로젝트: github.com/HG-ha/nsfwpy","URL API phát hiện ảnh NSFW. Dịch vụ miễn phí: nsfw.qixz.cn, dự án: github.com/HG-ha/nsfwpy","URL API deteksi gambar NSFW. Layanan gratis: nsfw.qixz.cn, proyek: github.com/HG-ha/nsfwpy"],[o+"_NSFW_THRESHOLD"]:["NSFW 检测阈值(0-1),当检测分数高于此值时拒绝上传。默认:0.5","NSFW 檢測閾值(0-1),當檢測分數高於此值時拒絕上傳。預設:0.5","NSFW 檢測閾值(0-1),當檢測分數高於此值時拒絕上傳。預設:0.5","NSFW detection threshold (0-1). Upload will be rejected if score exceeds this value. Default: 0.5","NSFW аниқлаш чегараси (0-1). Баҳо бу қийматдан ошса юклаш рад қилинади. Стандарт: 0.5","NSFW検出しきい値(0-1)。スコアがこの値を超えるとアップロードが拒否されます。デフォルト:0.5","NSFW 감지 임계값 (0-1). 점수가 이 값을 초과하면 업로드가 거부됩니다. 기본값: 0.5","Ngưỡng phát hiện NSFW (0-1). Tải lên bị từ chối nếu điểm vượt ngưỡng. Mặc định: 0.5","Ambang deteksi NSFW (0-1). Unggahan akan ditolak jika skor melebihi nilai ini. Bawaan: 0.5"],[o+"_S3_REGION"]:["S3 存储区域,例如 us-east-1。使用兼容 S3 的服务(如 Cloudflare R2、MinIO)时可填任意值","S3 儲存區域,例如 us-east-1。使用相容 S3 的服務(如 Cloudflare R2、MinIO)時可填任意值","S3 儲存區域,例如 us-east-1。使用相容 S3 的服務(如 Cloudflare R2、MinIO)時可填任意值","S3 region, e.g. us-east-1. Can be any value when using S3-compatible services (e.g. Cloudflare R2, MinIO)","S3 минтақаси, масалан us-east-1. S3 мос хизматлар учун (Cloudflare R2, MinIO) ихтиёрий қийматни киритиш мумкин","S3リージョン(例:us-east-1)。Cloudflare R2やMinIOなどのS3互換サービスを使用する場合は任意の値を入力できます","S3 리전 (예: us-east-1). Cloudflare R2, MinIO 등 S3 호환 서비스 사용 시 임의 값 입력 가능","Vùng S3, ví dụ us-east-1. Có thể nhập giá trị bất kỳ khi dùng dịch vụ tương thích S3 (Cloudflare R2, MinIO)","Region S3, misal us-east-1. Bisa diisi nilai apa saja saat menggunakan layanan yang kompatibel dengan S3 (misal Cloudflare R2, MinIO)"],[o+"_S3_BUCKET"]:["S3 存储桶名称","S3 儲存桶名稱","S3 儲存桶名稱","S3 bucket name","S3 bucket nomi","S3バケット名","S3 버킷 이름","Tên S3 bucket","Nama S3 bucket"],[o+"_S3_ACCESS_KEY_ID"]:["S3 Access Key ID","S3 Access Key ID","S3 Access Key ID","S3 Access Key ID","S3 Access Key ID","S3 Access Key ID","S3 Access Key ID","S3 Access Key ID"],[o+"_S3_SECRET_ACCESS_KEY"]:["S3 Secret Access Key","S3 Secret Access Key","S3 Secret Access Key","S3 Secret Access Key","S3 Secret Access Key","S3 Secret Access Key","S3 Secret Access Key","S3 Secret Access Key"],[o+"_S3_ENDPOINT"]:["S3 自定义 Endpoint,使用 Cloudflare R2、MinIO 等兼容 S3 的服务时填写","S3 自訂 Endpoint,使用 Cloudflare R2、MinIO 等相容 S3 的服務時填寫","S3 自訂 Endpoint,使用 Cloudflare R2、MinIO 等相容 S3 的服務時填寫","S3 custom endpoint. Required when using S3-compatible services like Cloudflare R2 or MinIO","S3 maxsus endpoint. Cloudflare R2 yoki MinIO kabi S3 mos xizmatlardan foydalanishda talab qilinadi","S3カスタムエンドポイント。Cloudflare R2やMinIOなどのS3互換サービスを使用する場合に必要です","S3 커스텀 엔드포인트. Cloudflare R2, MinIO 등 S3 호환 서비스 사용 시 필요","Endpoint S3 tùy chỉnh. Bắt buộc khi dùng Cloudflare R2 hoặc MinIO","Endpoint S3 kustom. Wajib diisi jika menggunakan layanan yang kompatibel dengan S3 seperti Cloudflare R2 atau MinIO"],[o+"_S3_FORCE_PATH_STYLE"]:["设置 S3_ENDPOINT 时,是否将 S3_BUCKET 拼入上传地址路径。默认为 true,适用于 Cloudflare R2、MinIO 等 path-style S3 兼容端点;使用已绑定存储桶的自定义域名时设为 false,例如腾讯云 COS 自定义域名","設定 S3_ENDPOINT 時,是否將 S3_BUCKET 拼入上傳位址路徑。預設為 true,適用於 Cloudflare R2、MinIO 等 path-style S3 相容端點;使用已綁定儲存桶的自訂網域時設為 false,例如騰訊雲 COS 自訂網域","設定 S3_ENDPOINT 時,是否將 S3_BUCKET 加入上傳位址路徑。預設為 true,適用於 Cloudflare R2、MinIO 等 path-style S3 相容端點;使用已綁定儲存桶的自訂網域時設為 false,例如騰訊雲 COS 自訂網域","When S3_ENDPOINT is set, whether to append S3_BUCKET to the upload URL path. Default: true. Use true for Cloudflare R2, MinIO, and other path-style S3-compatible endpoints; set false for bucket-bound custom domains, such as Tencent Cloud COS custom domains.","S3_ENDPOINT sozlanganda S3_BUCKET ni yuklash URL yo'liga qo'shish-qo'shmaslik. Standart: true. Cloudflare R2, MinIO va boshqa path-style S3 mos endpointlar uchun true ishlating; bucketga bog'langan maxsus domenlar, masalan Tencent Cloud COS maxsus domenlari uchun false qiling.","S3_ENDPOINT 設定時、アップロード URL のパスに S3_BUCKET を追加するかどうか。デフォルト: true。Cloudflare R2、MinIO などの path-style S3 互換エンドポイントでは true を使用し、Tencent Cloud COS カスタムドメインなど、バケットに紐づくカスタムドメインでは false に設定します。","S3_ENDPOINT 설정 시 업로드 URL 경로에 S3_BUCKET을 추가할지 여부입니다. 기본값: true. Cloudflare R2, MinIO 등 path-style S3 호환 엔드포인트는 true를 사용하고, Tencent Cloud COS 커스텀 도메인처럼 버킷에 연결된 커스텀 도메인은 false로 설정하세요.","Khi đặt S3_ENDPOINT, xác định có thêm S3_BUCKET vào đường dẫn URL tải lên hay không. Mặc định: true. Dùng true cho Cloudflare R2, MinIO và endpoint tương thích S3 dạng path-style; đặt false cho tên miền tùy chỉnh đã gắn với bucket, ví dụ tên miền tùy chỉnh Tencent Cloud COS.","Saat S3_ENDPOINT diatur, apakah S3_BUCKET akan ditambahkan ke path URL unggahan. Bawaan: true. Gunakan true untuk Cloudflare R2, MinIO, dan endpoint kompatibel S3 path-style; atur false untuk domain kustom yang terikat bucket, misalnya domain kustom Tencent Cloud COS."],[o+"_S3_CDN_URL"]:["S3 图片访问域名(CDN 域名),留空则使用默认 S3/Endpoint URL","S3 圖片存取網域(CDN 網域),留空則使用預設 S3/Endpoint URL","S3 圖片存取網域(CDN 網域),留空則使用預設 S3/Endpoint URL","S3 image access domain (CDN domain). Leave empty to use default S3/Endpoint URL","S3 rasm kirish domeni (CDN domeni). Standart S3/Endpoint URL dan foydalanish uchun bo'sh qoldiring","S3画像アクセスドメイン(CDNドメイン)。空白の場合はデフォルトのS3/Endpoint URLを使用します","S3 이미지 접근 도메인 (CDN 도메인). 비워두면 기본 S3/Endpoint URL 사용","Tên miền CDN cho ảnh S3. Để trống để dùng URL S3/Endpoint mặc định","Domain akses gambar S3 (domain CDN). Kosongkan untuk menggunakan URL S3/Endpoint bawaan"],[o+"_S3_PATH_PREFIX"]:["S3 图片存储路径前缀,例如 images/twikoo,留空则存储在根目录","S3 圖片儲存路徑前綴,例如 images/twikoo,留空則儲存在根目錄","S3 圖片儲存路徑前綴,例如 images/twikoo,留空則儲存在根目錄","S3 image storage path prefix, e.g. images/twikoo. Leave empty to store in root","S3 rasm saqlash yo'l prefiksi, masalan images/twikoo. Ildizda saqlash uchun bo'sh qoldiring","S3画像保存パスプレフィックス(例:images/twikoo)。空白の場合はルートに保存されます","S3 이미지 저장 경로 접두사 (예: images/twikoo). 비워두면 루트에 저장","Tiền tố đường dẫn lưu trữ ảnh S3, ví dụ images/twikoo. Để trống để lưu ở thư mục gốc","Awalan path penyimpanan gambar S3, misal images/twikoo. Kosongkan untuk menyimpan di root"],[o+"_LIGHTBOX"]:["使用简易图片点击放大效果。默认:false","使用簡易圖片點擊放大效果。預設:false","使用簡易圖片點擊放大效果。預設:false","Use simple Lightbox effect. Default: false","Используйте простые эффекты лайтбокса. По умолчанию: false","シンプルな画像拡大機能を使用します。デフォルト:false","라이트박스 효과, 댓글 이미지 클릭 시 확대 효과 사용. 기본값: false","Bật hiệu ứng phóng to ảnh khi click. Mặc định: false","Gunakan efek Lightbox sederhana. Bawaan: false"],[o+"_LIMIT_PER_MINUTE"]:["单个 IP 发言频率限制(条/10分钟),0 为无限制,默认:10","單個 IP 發言頻率限制(條/10分鐘),0 為無限制,預設:10","單個 IP 留言頻率限制(則/10分鐘),0 為無限,預設:10","How many comments can be posted by each IP every 10 minutes, 0 is unlimited, default: 10.","Ҳар бир ИП ҳар 10 дақиқада қанча шарҳ қолдириши мумкин, 0 чексиз, стандарт: 10.","同一IPにおける10分ごとの投稿回数制限。0は無制限、デフォルト:10","IP별 댓글 작성 빈도 제한 (10분당 건수), 0은 무제한. 기본값: 10.","Giới hạn số bình luận mỗi IP trong 10 phút, 0 là không giới hạn. Mặc định: 10.","Batas komentar per IP setiap 10 menit, 0 tidak terbatas, bawaan: 10."],[o+"_LIMIT_PER_MINUTE_ALL"]:["全站发言频率限制(条/10分钟),0 为无限制,默认:10","全站發言頻率限制(條/10分鐘),0 為無限制,預設:10","全站留言頻率限制(則/10分鐘),0 為無限,預設:10","How many comments can be posted by all IPs every 10 minutes, 0 is unlimited, default: 10.","Барча ИП-лар ҳар 10 дақиқада қанча шарҳ қўйиши мумкин, 0 чексиз, стандарт: 10.","全IPにおける10分ごとの投稿回数制限。0は無制限、デフォルト:10","10분당 사이트 전체에 작성 가능한 총 댓글 수 제한. 0은 무제한. 기본값: 10.","Giới hạn tổng số bình luận toàn site trong 10 phút, 0 là không giới hạn. Mặc định: 10.","Batas komentar seluruh situs setiap 10 menit, 0 tidak terbatas, bawaan: 10."],[o+"_LIMIT_LENGTH"]:["评论长度限制,0 为无限制,默认:500","評論長度限制,0 為無限制,預設:500","留言長度限制,0 為無限,預設:500","Comment length limitation, 0 is unlimited, default: 500.","Шарҳ узунлиги чеклови, 0 чексиз, стандарт: 500.","コメント長さの制限。0は無制限、デフォルト:500","댓글 길이 제한. 0은 무제한. 기본값: 500.","Giới hạn độ dài bình luận, 0 là không giới hạn. Mặc định: 500.","Batas panjang komentar, 0 tidak terbatas, bawaan: 500."],[o+"_MAIL_SUBJECT"]:["自定义通知邮件主题,留空则使用默认主题。","自定義通知郵件主題,留空則使用預設主題。","自訂通知郵件主題,留白則使用預設主題。","Custom Email notification subject. Leave it blank to use the default subject.","Махсус электрон почта хабарномаси мавзуси. Стандарт мавзуни ишлатиш учун уни бўш қолдиринг.","カスタム通知メールの件名。空白の場合はデフォルトの件名を使用します。","댓글 알림 이메일 제목 설정. 비워두면 기본 제목을 사용합니다.","Tiêu đề email thông báo tùy chỉnh. Để trống để dùng tiêu đề mặc định.","Subjek notifikasi email kustom. Kosongkan untuk menggunakan subjek bawaan."],[o+"_MAIL_SUBJECT_ADMIN"]:["自定义博主通知邮件主题,留空则使用默认主题。","自定義博主通知郵件主題,留空則使用預設主題。","自訂站長通知郵件主題,留白則使用預設主題。","Custom admin Email notification subject. Leave it blank to use the default subject.","Махсус администратор электрон почта хабарномаси мавзуси. Стандарт мавзуни ишлатиш учун уни бўш қолдиринг.","管理者へのカスタム通知メールの件名。空白の場合はデフォルトの件名を使用します。","관리자에게 발송되는 댓글 알림 이메일 제목 설정. 비워두면 기본 제목을 사용합니다.","Tiêu đề email thông báo cho quản trị viên tùy chỉnh. Để trống để dùng tiêu đề mặc định.","Subjek notifikasi email admin kustom. Kosongkan untuk menggunakan subjek bawaan."],[o+"_MAIL_TEMPLATE"]:["自定义通知邮件模板,留空则使用默认模板。可包含的字段:${SITE_URL}, ${SITE_NAME}, ${PARENT_NICK}, ${PARENT_COMMENT}, ${NICK}, ${COMMENT}, ${POST_URL}, ${IMG}, ${PARENT_IMG}","自定義通知郵件模板,留空則使用預設模板。可包含的字段:${SITE_URL}, ${SITE_NAME}, ${PARENT_NICK}, ${PARENT_COMMENT}, ${NICK}, ${COMMENT}, ${POST_URL}, ${IMG}, ${PARENT_IMG}","自訂通知郵件模板,留白則使用預設模板。可包含的欄位:${SITE_URL}, ${SITE_NAME}, ${PARENT_NICK}, ${PARENT_COMMENT}, ${NICK}, ${COMMENT}, ${POST_URL}, ${IMG}, ${PARENT_IMG}","Custom Email notification template. Leave it blank to use the default template. Fields that can be included: ${SITE_URL}, ${SITE_NAME}, ${NICK}, ${COMMENT}, ${POST_URL}, ${IMG}, ${PARENT_IMG}","Махсус электрон почта хабарномаси шаблони. Стандарт шаблонни ишлатиш учун уни бўш қолдиринг. Қўшилиши мумкин бўлган майдонлар: ${SITE_URL}, ${SITE_NAME}, ${NICK}, ${COMMENT}, ${POST_URL}, ${IMG}, ${PARENT_IMG}","カスタム通知メールテンプレート。空白の場合はデフォルトテンプレートを使用します。使用可能なフィールド:${SITE_URL}、${SITE_NAME}、${PARENT_NICK}、${PARENT_COMMENT}、${NICK}、${COMMENT}、${POST_URL}、${IMG}、${PARENT_IMG}","댓글 알림 이메일 템플릿 설정. 비워두면 기본 템플릿 사용. 다음 변수를 사용하면 해당 값으로 자동 치환됩니다: ${SITE_URL}, ${SITE_NAME}, ${PARENT_NICK}, ${PARENT_COMMENT}, ${NICK}, ${COMMENT}, ${POST_URL}, ${IMG}, ${PARENT_IMG}","Mẫu email thông báo tùy chỉnh. Để trống để dùng mẫu mặc định. : ${SITE_URL}, ${SITE_NAME}, ${PARENT_NICK}, ${PARENT_COMMENT}, ${NICK}, ${COMMENT}, ${POST_URL}, ${IMG}, ${PARENT_IMG}","Template notifikasi email kustom. Kosongkan untuk menggunakan template bawaan. Kolom yang dapat disertakan: ${SITE_URL}, ${SITE_NAME}, ${PARENT_NICK}, ${PARENT_COMMENT}, ${NICK}, ${COMMENT}, ${POST_URL}, ${IMG}, ${PARENT_IMG}"],[o+"_MAIL_TEMPLATE_ADMIN"]:["自定义博主通知邮件模板,留空则使用默认模板。可包含的字段:${SITE_URL}, ${SITE_NAME}, ${NICK}, ${COMMENT}, ${POST_URL}, ${IP}, ${MAIL}, ${IMG}","自定義博主通知郵件模板,留空則使用預設模板。可包含的字段:${SITE_URL}, ${SITE_NAME}, ${NICK}, ${COMMENT}, ${POST_URL}, ${IP}, ${MAIL}, ${IMG}","自訂站長通知郵件模板,留白則使用預設模板。可包含的欄位:${SITE_URL}, ${SITE_NAME}, ${NICK}, ${COMMENT}, ${POST_URL}, ${IP}, ${MAIL}, ${IMG}","Custom admin Email notification template. Leave it blank to use the default template. Fields that can be included: ${SITE_URL}, ${SITE_NAME}, ${NICK}, ${COMMENT}, ${POST_URL}, ${IP}, ${MAIL}, ${IMG}","Махсус администратор электрон почта хабарномаси шаблони. Стандарт шаблонни ишлатиш учун уни бўш қолдиринг. Қўшилиши мумкин бўлган майдонлар: ${SITE_URL}, ${SITE_NAME}, ${NICK}, ${COMMENT}, ${POST_URL}, ${IMG}, ${PARENT_IMG}","管理者へのカスタム通知メールテンプレート。空白の場合はデフォルトテンプレートを使用します。使用可能なフィールド:${SITE_URL}、${SITE_NAME}、${NICK}、${COMMENT}、${POST_URL}、${IP}、${MAIL}、${IMG}","관리자 알림 이메일 템플릿 설정. 비워두면 기본 템플릿 사용. 다음 변수를 사용하면 해당 값으로 자동 치환됩니다: ${SITE_URL}, ${SITE_NAME}, ${NICK}, ${COMMENT}, ${POST_URL}, ${IP}, ${MAIL}, ${IMG}","Mẫu email thông báo cho quản trị viên tùy chỉnh. Để trống để dùng mẫu mặc định. : ${SITE_URL}, ${SITE_NAME}, ${NICK}, ${COMMENT}, ${POST_URL}, ${IP}, ${MAIL}, ${IMG}","Template notifikasi email admin kustom. Kosongkan untuk menggunakan template bawaan. Kolom yang dapat disertakan: ${SITE_URL}, ${SITE_NAME}, ${NICK}, ${COMMENT}, ${POST_URL}, ${IP}, ${MAIL}, ${IMG}"],[o+"_MASTER_TAG"]:["博主标识自定义文字,默认为 “博主”。","博主標識自定義文字,預設為 “博主”。","站長認證自訂文字,預設為「博主」。","Custom admin identifier.","Махсус администратор идентификатори.",'管理者を表すカスタムテキスト。デフォルト:"ブロガー"',"관리자 태그 설정. (닉네임 옆에 표시됨. 예: 관리자)","Văn bản nhãn admin tùy chỉnh.",'Teks kustom identitas admin. Bawaan: "博主".'],[o+"_NOTIFY_SPAM"]:["垃圾评论是否发送通知,默认:true","垃圾評論是否發送通知,默認:true","垃圾留言是否發送通知,預設:true","Notifications for spam comments. Default: true.","Спам шарҳлар учун билдиришномалар. Стандарт: рост.","スパムコメントの通知を送信するかどうか。デフォルト:true","스팸 댓글 알림 발송 여부. 기본값: true.","Có gửi thông báo cho bình luận spam không. Mặc định: true.","Apakah mengirim notifikasi untuk komentar spam. Bawaan: true."],[o+"_CAPTCHA_PROVIDER"]:["人机验证码提供商","人機驗證碼提供商","人機驗證碼提供商","CAPTCHA Provider","CAPTCHA Provider","CAPTCHAプロバイダー","캡차 제공자","Nhà cung cấp CAPTCHA","Penyedia CAPTCHA"],[o+"_TURNSTILE_SITE_KEY"]:["Turnstile 验证码的站点密钥。申请地址: https://dash.cloudflare.com/?to=/:account/turnstile","Turnstile 验证码的站点密钥。申请地址: https://dash.cloudflare.com/?to=/:account/turnstile","Turnstile 验证码的站点密钥。申请地址: https://dash.cloudflare.com/?to=/:account/turnstile","Turnstile CAPTCHA Site Key. Get from: https://dash.cloudflare.com/?to=/:account/turnstile","Turnstile CAPTCHA Site Key. Get from: https://dash.cloudflare.com/?to=/:account/turnstile","Turnstile CAPTCHAのサイトキー。参照: https://dash.cloudflare.com/?to=/:account/turnstile","Turnstile CAPTCHA(스팸봇 방지) 사이트 키. 발급처: https://dash.cloudflare.com/?to=/:account/turnstile","Site Key của Turnstile CAPTCHA. Lấy tại: https://dash.cloudflare.com/?to=/:account/turnstile","Kunci Situs Turnstile CAPTCHA. Dapatkan dari: https://dash.cloudflare.com/?to=/:account/turnstile"],[o+"_TURNSTILE_SECRET_KEY"]:["Turnstile 验证码的密钥","Turnstile 验证码的密钥","Turnstile 验证码的密钥","Turnstile CAPTCHA Secret Key","Turnstile CAPTCHA Secret Key","Turnstile CAPTCHAのシークレットキー","Turnstile CAPTCHA Secret Key","Turnstile CAPTCHA Secret Key","Kunci Rahasia Turnstile CAPTCHA"],[o+"_GEETEST_CAPTCHA_ID"]:["极验验证码的 Captcha ID。申请地址: https://console.geetest.com/sensbot/management","极验验证码的 Captcha ID。申请地址: https://console.geetest.com/sensbot/management","极验验证码的 Captcha ID。申请地址: https://console.geetest.com/sensbot/management","GeeTest CAPTCHA ID. Get from: https://console.geetest.com/sensbot/management","GeeTest CAPTCHA ID. Get from: https://console.geetest.com/sensbot/management","GeeTest CAPTCHA ID. 参照: https://console.geetest.com/sensbot/management","GeeTest CAPTCHA ID. 발급처: https://console.geetest.com/sensbot/management","GeeTest CAPTCHA ID. Lấy tại: https://console.geetest.com/sensbot/management","GeeTest CAPTCHA ID. Dapatkan dari: https://console.geetest.com/sensbot/management"],[o+"_GEETEST_CAPTCHA_KEY"]:["极验验证码的 Captcha Key","极验验证码的 Captcha Key","极验验证码的 Captcha Key","GeeTest CAPTCHA Key","GeeTest CAPTCHA Key","GeeTest CAPTCHA Key","GeeTest CAPTCHA Key","GeeTest CAPTCHA Key","Kunci GeeTest CAPTCHA"],[o+"_CAP_API_ENDPOINT"]:["Cap 验证码 API 端点。留空则使用内嵌 Cap(无需额外部署);外部 Standalone 格式:https://<实例地址>/<site_key>/","Cap 验证码 API 端点。留空则使用内嵌 Cap(无需额外部署);外部 Standalone 格式:https://<实例地址>/<site_key>/","Cap 验证码 API 端点。留空则使用内嵌 Cap(无需额外部署);外部 Standalone 格式:https://<实例地址>/<site_key>/","Cap CAPTCHA API endpoint. Leave empty for built-in Cap (no extra server). External Standalone format: https://<instance_url>/<site_key>/","Cap CAPTCHA API endpoint. Leave empty for built-in Cap (no extra server). External Standalone format: https://<instance_url>/<site_key>/","Cap CAPTCHA API Endpoint。空欄で内蔵 Cap を使用(追加サーバー不要)。外部 Standalone 形式: https://<instance_url>/<site_key>/","Cap CAPTCHA API Endpoint. 비우면 내장 Cap 사용(추가 서버 불필요). 외부 Standalone 형식: https://<instance_url>/<site_key>/","Endpoint API Cap CAPTCHA. Để trống = Cap tích hợp (không cần server ngoài). Standalone ngoài: https://<instance_url>/<site_key>/","Endpoint API Cap CAPTCHA. Kosongkan = Cap bawaan (tanpa server ekstra). Standalone eksternal: https://<instance_url>/<site_key>/"],[o+"_CAP_SECRET_KEY"]:["Cap Secret Key(仅外部 Standalone 需要;内嵌模式可留空)","Cap Secret Key(僅外部 Standalone 需要;內嵌模式可留空)","Cap Secret Key(僅外部 Standalone 需要;內嵌模式可留空)","Cap Secret Key (external Standalone only; leave empty for built-in)","Cap Secret Key (external Standalone only; leave empty for built-in)","Cap Secret Key(外部 Standalone のみ。内蔵時は空欄可)","Cap Secret Key (외부 Standalone 전용; 내장 모드는 비워둠)","Cap Secret Key (chỉ Standalone ngoài; để trống nếu dùng tích hợp)","Cap Secret Key (hanya Standalone eksternal; kosongkan untuk bawaan)"],[o+"_QCLOUD_SECRET_ID"]:["腾讯云 secret id,用于垃圾评论检测。同时设置腾讯云和 Akismet 时,只有腾讯云会生效。注册:https://twikoo.js.org/cms.html","騰訊雲 secret id,用於垃圾評論檢測。同時設定騰訊雲和 Akismet 時,只有騰訊雲會生效。註冊:https://twikoo.js.org/cms.html","騰訊雲 Secret ID,用於垃圾留言檢測。同時設定騰訊雲和 Akismet 時,只有騰訊雲會被啟用。註冊:https://twikoo.js.org/cms.html","Tencent Cloud secret id for spam detection. When Tencent Cloud and Akismet are set at the same time, only Tencent Cloud will take effect. Register: https://twikoo.js.org/cms.html","Спамни аниқлаш учун Тенсент Слоуд махфий идентификатори. Тенсент Слоуд ва Акисмет бир вақтнинг ўзида ўрнатилганда, фақат Тенсент Слоуд кучга киради. Рўйхатдан ўтиш: https://twikoo.js.org/cms.html","Tencent CloudのシークレットID。スパムコメントの検出に使用されます。同時にTencent CloudとAkismetを設定した場合、Tencent Cloudのみが有効になります。登録:https://twikoo.js.org/cms.html","Tencent Cloud secret id (스팸 감지용). Tencent Cloud와 Akismet 동시 설정 시 Tencent Cloud만 적용. 등록: https://twikoo.js.org/cms.html","Tencent Cloud secret id để phát hiện spam. Khi cài cả Tencent Cloud và Akismet, chỉ Tencent Cloud có hiệu lực. Đăng ký: https://twikoo.js.org/cms.html","ID rahasia Tencent Cloud untuk deteksi spam komentar. Jika Tencent Cloud dan Akismet diatur bersamaan, hanya Tencent Cloud yang berlaku. Daftar: https://twikoo.js.org/cms.html"],[o+"_QCLOUD_CMS_BIZTYPE"]:["腾讯云内容安全 Biztype 名称,用于垃圾评论策略。可以自定义垃圾拦截规则","騰訊雲內容安全 Biztype 名稱,用於垃圾評論策略。可以自定義垃圾攔截規則","騰訊雲內容安全 Biztype 名稱,用於垃圾評論策略。可以自定義垃圾攔截規則","Tencent Cloud Content Security Biztype name for spam comment policy. Spam blocking rules can be customized","Tencent Cloud Content Security Biztype име, използвано за спам политика. Може да персонализира правилата за блокиране на спам","Tencent Cloud Content Security Biztype name スパムコメントポリシー。スパムブロックルールはカスタマイズ可能","Tencent Cloud Content Security Biztype 이름 (스팸 댓글 정책용). 스팸 차단 규칙 설정 가능.","Tên Biztype bảo mật nội dung Tencent Cloud dùng cho chính sách spam.","Nama Biztype Keamanan Konten Tencent Cloud untuk kebijakan komentar spam. Aturan pemblokiran spam dapat disesuaikan"],[o+"_QCLOUD_SECRET_KEY"]:["腾讯云 secret key","騰訊雲 secret key","騰訊雲 Secret Key","Tencent Cloud secret key.","Тенсент Клауд махфий калити.","Tencent Cloudのシークレットキー","Tencent Cloud Secret Key.","Tencent Cloud Secret Key.","Kunci rahasia Tencent Cloud."],[o+"_LLM_API_KEY"]:["LLM API Key,用于 AI 垃圾评论检测。仅在未配置腾讯云和 Akismet 时生效。","LLM API Key,用於 AI 垃圾評論檢測。僅在未配置騰訊雲和 Akismet 時生效。","LLM API Key,用於 AI 垃圾留言檢測。僅在未配置騰訊雲和 Akismet 時生效。","LLM API Key, used for AI spam comment detection. Only takes effect when Tencent Cloud and Akismet are not configured.","LLM API kaliti, spamni aniqlash uchun. Faqat Tencent Cloud va Akismet sozlangan bo'lmasa ishlaydi.","LLM APIキー。AIスパムコメント検出に使用されます。Tencent CloudとAkismetが設定されていない場合のみ有効になります。","LLM API 키. AI 스팸 댓글 감지에 사용됩니다. Tencent Cloud 및 Akismet이 설정되지 않은 경우에만 작동합니다.","LLM API Key, dùng để phát hiện spam bằng AI. Chỉ có hiệu lực khi Tencent Cloud và Akismet không được cấu hình.","LLM API Key, digunakan untuk deteksi komentar spam dengan AI. Hanya berlaku jika Tencent Cloud dan Akismet tidak dikonfigurasi."],[o+"_LLM_API_ENDPOINT"]:["LLM API 接口地址,默认:https://api.deepseek.com","LLM API 接口地址,預設:https://api.deepseek.com","LLM API 接口地址,預設:https://api.deepseek.com","LLM API endpoint URL, defaults to https://api.deepseek.com","LLM API endpoint manzili, standart: https://api.deepseek.com","LLM APIエンドポイントURL。デフォルト:https://api.deepseek.com","LLM API 엔드포인트 URL. 기본값: https://api.deepseek.com","Địa chỉ LLM API endpoint, mặc định: https://api.deepseek.com","URL endpoint LLM API, bawaan: https://api.deepseek.com"],[o+"_LLM_MODEL"]:["LLM 模型名称,默认:deepseek-v4-pro","LLM 模型名稱,預設:deepseek-v4-pro","LLM 模型名稱,預設:deepseek-v4-pro","LLM model name, default: deepseek-v4-pro","LLM model nomi, standart: deepseek-v4-pro","LLMモデル名。デフォルト:deepseek-v4-pro","LLM 모델 이름. 기본값: deepseek-v4-pro","Tên mô hình LLM, mặc định: deepseek-v4-pro","Nama model LLM, bawaan: deepseek-v4-pro"],[o+"_LLM_SPAM_PROMPT"]:["LLM 垃圾检测提示词(可选,留空则使用默认提示词)","LLM 垃圾檢測提示詞(可選,留空則使用預設提示詞)","LLM 垃圾檢測提示詞(可選,留白則使用預設提示詞)","LLM spam detection prompt (optional, uses default if left empty)","LLM spam prompt (ixtiyoriy, bo'sh qolsa standart ishlatiladi)","LLMスパム検出プロンプト(オプション。空の場合はデフォルトが使用されます)","LLM 스팸 감지 프롬프트 (옵션, 비워두면 기본값 사용)","Prompt phát hiện spam LLM (tùy chọn, để trống dùng mặc định)","Prompt deteksi spam LLM (opsional, kosongkan untuk menggunakan default)"],[o+"_LLM_MAX_RETRIES"]:["LLM 检测最大重试次数(默认 3 次)","LLM 檢測最大重試次數(預設 3 次)","LLM 檢測最大重試次數(預設 3 次)","LLM detection maximum retries (default 3)","LLM aniqlash uchun maksimal qayta urinishlar soni (standart 3)","LLM検出最大リトライ回数(デフォルト3回)","LLM 감지 최대 재시도 횟수 (기본 3회)","Số lần thử lại tối đa của LLM (mặc định 3)","Maksimal percobaan ulang deteksi LLM (bawaan 3)"],[o+"_PUSHOO_CHANNEL"]:[`即时消息推送平台名称,支持:${s.join("、")} 等`,`即時消息推送平台名称,支持:${s.join("、")} 等`,`即時訊息推送平台名稱,支援:${s.join("、")} 等`,`IM notification push channel. Support: ${s.join(", ")}`,`ИМ билдиришномаси суриш канали. Қўллаб-қувватлаш: ${s.join(", ")}`,`即時メッセージプッシュプラットフォームの名前。${s.join("、")} などに対応しています。`,`실시간 알림을 받을 서비스 설정. 지원: ${s.join(", ")}`,`Kênh gửi thông báo IM tức thì. ${s.join(", ")}`,`Saluran push notifikasi IM. Mendukung: ${s.join(", ")}`],[o+"_PUSHOO_TOKEN"]:["即时消息推送 token。请参考 https://pushoo.js.org 里的详细说明配置","即時消息推送 token。请参考 https://pushoo.js.org 里的详细说明配置","即時訊息推送 Token。請参考 https://pushoo.js.org 裡的詳細說明進行設定","IM notification push token. See https://pushoo.js.org for details","ИМ билдиришномаси пуш токени. Тафсилотлар учун https://pushoo.js.org га қаранг","即時メッセージプッシュトークン。詳細な設定については、https://pushoo.js.org の説明をご覧ください","선택한 실시간 알림 서비스 인증 토큰. 설정 방법은 https://pushoo.js.org 를 참조.","Token gửi thông báo IM. Xem https://pushoo.js.org để biết chi tiết","Token push notifikasi IM. Lihat https://pushoo.js.org untuk detailnya"],[o+"_DISPLAYED_FIELDS"]:["界面上展示的输入框,默认:nick,mail,link","界面上顯示的輸入框,預設:nick,mail,link","界面上顯示的輸入框,預設:nick,mail,link","Input boxes displayed on the interface. Default: nick,mail,link","Поля ввода, отображаемые на интерфейсе, Стандарт: nick,mail,link","画面に表示される入力欄。デフォルト:nick,mail,link","화면에 표시할 정보 입력란. 기본값: nick,mail,link","Các ô nhập liệu hiển thị trên giao diện. Mặc định: nick,mail,link","Kotak input yang ditampilkan di antarmuka. Bawaan: nick,mail,link"],[o+"_REQUIRED_FIELDS"]:["评论必填信息,设为 nick,mail,link 代表全必填,设为 none 代表全选填,默认:nick,mail","評論必填信息,設為 nick,mail,link 代表全必填,設為 none 代表全選填,預設:nick,mail","留言必填資訊,設為 nick,mail,link 代表全必填,設為 none 代表全選填,預設:nick,mail",'Required fields for comments. Set to "nick,mail,link" means all fields are required. Set to "none" means all fields are optional. Default: nick,mail.',"Шарҳлар учун зарур майдонлар. «Ниск,маил,линк» га ўрнатилган бўлса, барча майдонлар талаб қилинади. «Йўқ» га ўрнатилиши барча майдонлар ихтиёрий эканлигини англатади. Стандарт: ник, почта.","コメント必須項目。すべてを必須にする場合は nick,mail,link に設定、すべてを任意にする場合はnoneに設定してください。デフォルト:nick,mail",'댓글 작성 시 필수 입력 정보. "nick,mail,link"는 모두 필수, "none"은 모두 선택 압력. 기본값: nick,mail.','Trường bắt buộc khi bình luận. "nick,mail,link" là tất cả bắt buộc, "none" là tất cả tùy chọn. Mặc định: nick,mail.','Kolom wajib untuk komentar. Atur ke "nick,mail,link" berarti semua wajib, "none" berarti semua opsional. Bawaan: nick,mail.'],[o+"_SC_MAIL_NOTIFY"]:["是否同时通过 IM 和邮件 2 种方式通知博主,默认只通过 IM 通知博主,默认:false","是否同時通過 IM 和郵件 2 種方式通知博主,預設只通過 IM 通知博主,預設:false","是否同時透過 IM 和郵件 2 種方式通知博主,預設只透過 IM 通知博主,預設:false","Whether to notify admin via IM and email at the same time, the default is to notify admin only via IM. Default: false.","Администраторни бир вақтнинг ўзида ИМ ва электрон почта орқали хабардор қилиш керакми, сукут бўйича администраторни фақат ИМ орқали хабардор қилиш керак. Стандарт: нотўғри.","管理者にIMとメールで同時に通知するかどうか。デフォルトはIMのみで通知、デフォルト:false","실시간 알림과 이메일로 동시에 관리자에게 알릴지 여부. 기본값은 실시간 알림만 사용. 기본값: false.","Có thông báo admin qua cả IM lẫn email không. Mặc định chỉ dùng IM. Mặc định: false.","Apakah akan memberitahu admin melalui IM dan email secara bersamaan, bawaan hanya melalui IM. Bawaan: false."],[o+"_SENDER_EMAIL"]:["邮件通知邮箱地址。对于大多数邮箱服务商,SENDER_EMAIL 必须和 SMTP_USER 保持一致,否则无法发送邮件。","郵件通知郵箱地址。對於大多數郵箱服務商,SENDER_EMAIL 必須和 SMTP_USER 保持一致,否則無法發送郵件。","郵件通知郵箱帳號。對於大多數電郵服務提供商,SENDER_EMAIL 必須和 SMTP_USER 保持一致,否則無法傳送郵件。","Email address for Email notification. For most email service providers, SENDER_EMAIL must be consistent with SMTP_USER, otherwise emails cannot be sent.","Электрон почта хабарномаси учун электрон почта манзили. Аксарият электрон почта хизмати провайдерлари учун SENDER_EMAIL билан мос келиши керак, акс ҳолда электрон почта хабарларини юбориб бўлмайди.","メール通知のメールアドレス。 ほとんどのメールボックス・プロバイダでは、SENDER_EMAILはSMTP_USERと同じでなければなりません。","알림 이메일 발신 주소. 대부분의 이메일 서비스 제공자의 경우 SENDER_EMAIL과 SMTP_USER가 일치해야 메일 발송이 가능합니다.","Địa chỉ email gửi thông báo. Với hầu hết nhà cung cấp, SENDER_EMAIL phải giống SMTP_USER.","Alamat email untuk notifikasi email. Untuk sebagian besar penyedia layanan email, SENDER_EMAIL harus sama dengan SMTP_USER, jika tidak email tidak dapat dikirim."],[o+"_SENDER_NAME"]:["邮件通知标题。","郵件通知標題。","郵件通知標題。","The title for Email notification.","Электрон почта хабарномаси сарлавҳаси.","メール通知のタイトル","알림 이메일 발신자 이름.","Tiêu đề thông báo email.","Judul notifikasi email."],[o+"_SHOW_EMOTION"]:["启用插入表情功能,默认为:true","啟用插入表情功能,預設為:true","啟用插入表情功能,預設為:true","Enable emojis. Default: true.","Кулгичларни ёқинг. Стандарт: рост.","顔文字の挿入を有効にするかどうか。デフォルト:true","이모티콘 삽입 기능 활성화. 기본값: true.","Bật chức năng chèn emoji. Mặc định: true.","Aktifkan penyisipan emoji. Bawaan: true"],[o+"_SHOW_IMAGE"]:["启用插入图片功能,默认为:true","啟用插入圖片功能,預設為:true","啟用插入圖片功能,預設為:true","Enable picture uploading. Default: true.","Расм юклашни ёқинг. Стандарт: рост.","画像のアップロードを有効にするかどうか。デフォルト:true","이미지 업로드 기능 활성화. 기본값: true.","Bật chức năng tải ảnh lên. Mặc định: true.","Aktifkan pengunggahan gambar. Bawaan: true"],[o+"_SHOW_ORDER"]:["评论排序下拉框,默认为:true","評論排序下拉框,預設為:true","評論排序下拉框,預設為:true","Show sort dropdown. Default: true.","Изоҳларни тартиблаш очиладиган менюси. Стандарт: рост.","コメントの並べ替えドロップダウンを表示するかどうか。デフォルト:true","댓글 정렬 드롭다운 메뉴 표시 여부. 기본값: true.","Hiển thị dropdown sắp xếp bình luận. Mặc định: true.","Tampilkan dropdown urutan komentar. Bawaan: true"],[o+"_SHOW_DISLIKE"]:["评论点踩按钮,默认为:true","評論點踩按鈕,預設為:true","評論點踩按鈕,預設為:true","Show dislike button. Default: true.","Изоҳларни ёқтирмаслик тугмаси. Стандарт: рост.","「よくないね」ボタンを表示するかどうか。デフォルト:true","댓글 싫어요 버튼 표시 여부. 기본값: true.","Hiển thị nút không thích. Mặc định: true.","Tampilkan tombol tidak suka. Bawaan: true"],[o+"_SHOW_UA"]:["是否显示用户系统和浏览器,默认为:true","是否顯示使用者系統和瀏覽器,預設為:true","是否顯示使用者作業系統和瀏覽器,預設為:true","Show users' OS and browser. Default: true.","Фойдаланувчиларнинг ОС ва браузерини кўрсатиш. Стандарт: рост.","ユーザーのOSとブラウザーの情報を表示するかどうか。デフォルト:true","댓글 작성자의 운영체제 및 브라우저 표시 여부. 기본값: true.","Hiển thị hệ điều hành và trình duyệt người dùng. Mặc định: true.","Tampilkan OS dan peramban pengguna. Bawaan: true"],[o+"_SHOW_REGION"]:["是否显示用户 IP 属地到省,可能不准确,不支持 IPv6,默认为:false","是否顯示使用者 IP 屬地到省,預設為:false","是否顯示使用者 IP 所屬地(精確到省),預設為:false","Show users' IP region (province). Default: false.","Фойдаланувчиларнинг ИП ҳудудини (вилоят) кўрсатиш. Стандарт: нотўғри.","ユーザーIPの所在地(省)を表示するかどうか。正確でない場合があります。IPv6はサポートされていません。デフォルト:false","사용자 IP 지역(도/시 단위) 표시 여부 (부정확할 수 있음, IPv6 미지원). 기본값: false.","Hiển thị vùng IP người dùng (cấp tỉnh). Có thể không chính xác, không hỗ trợ IPv6. Mặc định: false.","Tampilkan wilayah IP pengguna (provinsi). Mungkin tidak akurat, tidak mendukung IPv6. Bawaan: false"],[o+"_SITE_NAME"]:["网站名称","網站名稱","網站名稱","Website name.","Вебсайт номи.","ウェブサイト名","웹사이트 이름.","Tên website.","Nama situs web"],[o+"_SITE_URL"]:["网站地址","網站地址","網站網址","Website URL.","Вебсайт URL.","ウェブサイトのアドレス","웹사이트 주소.","Địa chỉ website.","Alamat situs web"],[o+"_SMTP_HOST"]:["自定义 SMTP 服务器地址。如您已配置 SMTP_SERVICE,此项请留空。","自定義 SMTP 伺服器地址。如您已配置 SMTP_SERVICE,此項請留空。","自訂 SMTP 伺服器位址。如您已設定 SMTP_SERVICE,此項請留白。","Custom SMTP server address. If you have configured SMTP_SERVICE, please leave it empty.","Махсус СМТП сервер манзили. Агар сиз СМТП_СEРВИСE созлаган бўлсангиз, уни бўш қолдиринг.","カスタムSMTPサーバのアドレス。SMTP_SERVICEを設定している場合は空白のままにします。","SMTP 서버 주소. SMTP_SERVICE를 설정한 경우 비워두세요.","Địa chỉ máy chủ SMTP tùy chỉnh. Để trống nếu đã cấu hình SMTP_SERVICE.","Alamat server SMTP kustom. Jika Anda telah mengonfigurasi SMTP_SERVICE, biarkan kosong."],[o+"_SMTP_PASS"]:["邮件通知邮箱密码,QQ、163邮箱请填写授权码。","郵件通知郵箱密碼,QQ、163郵箱請填寫授權碼。","郵件通知郵箱密碼,QQ、163 郵箱請填寫授權碼。","Email notification mailbox password. Enter authorization code for QQ/163 mail.","Электрон почта хабарномаси почта қутиси пароли. ҚҚ/163 почтаси учун авторизация кодини киритинг.","メール通知のメールボックスパスワード。QQ、163メールは認証コードを入力してください","메일 알림 계정 비밀번호. QQ/163 메일은 인증 코드를 입력하세요.","Mật khẩu hòm thư gửi thông báo. Với QQ/163 hãy nhập mã ủy quyền.","Kata sandi kotak email notifikasi. Untuk email QQ/163, masukkan kode otorisasi."],[o+"_SMTP_PORT"]:["自定义 SMTP 端口。如您已配置 SMTP_SERVICE,此项请留空。","自定義 SMTP 端口。如您已配置 SMTP_SERVICE,此項請留空。","自訂 SMTP 連接埠。如您已設定 SMTP_SERVICE,此項請留白。","Custom SMTP port. If you have configured SMTP_SERVICE, please leave it empty.","Махсус СМТП порти. Агар сиз СМТП_СEРВИС созлаган бўлсангиз, уни бўш қолдиринг.","カスタムSMTPポート。SMTP_SERVICEを設定している場合は、空白のままにします。","SMTP 포트. SMTP_SERVICE를 설정한 경우 비워두세요.","Cổng SMTP tùy chỉnh. Để trống nếu đã cấu hình SMTP_SERVICE.","Port SMTP kustom. Jika Anda telah mengonfigurasi SMTP_SERVICE, biarkan kosong."],[o+"_SMTP_SECURE"]:["自定义 SMTP 是否使用TLS,请填写 true 或 false。如您已配置 SMTP_SERVICE,此项请留空。","自定義 SMTP 是否使用TLS,請填寫 true 或 false。如您已配置 SMTP_SERVICE,此項請留空。","自訂 SMTP 是否使用 TLS,請填寫 true 或 false。如您已設定 SMTP_SERVICE,此項請留白。",'Custom TLS for SMTP. Enter "true" or "false". If you have configured SMTP_SERVICE, please leave it empty.',"СМТП учун махсус ТЛС. «Тўғри» ёки «нотўғри» ни киритинг. Агар сиз СМТП_СEРВИС созлаган бўлсангиз, уни бўш қолдиринг.","SMTPがTLSを使用するかどうかをカスタマイズします。trueまたはfalseを記入してください。SMTP_SERVICEを設定している場合は、この項目を空白にしてください。","SMTP TLS 사용 여부 (true 또는 false 입력). SMTP_SERVICE를 설정한 경우 비워두세요.",'Sử dụng TLS cho SMTP. Nhập "true" hoặc "false". Để trống nếu đã cấu hình SMTP_SERVICE.','Gunakan TLS untuk SMTP kustom. Masukkan "true" atau "false". Jika Anda telah mengonfigurasi SMTP_SERVICE, biarkan kosong.'],[o+"_SMTP_SERVICE"]:[`邮件通知邮箱服务商。支持:${a.join("、")}`,`郵件通知郵箱服務商。支持:${a.join("、")}`,`郵件通知郵箱服務提供商。支援:${a.join("、")}`,`Email service provider for Email notification. Support: ${a.join(", ")}`,`Электрон почта хабарномаси учун электрон почта хизмати провайдери. Қўллаб-қувватлаш: ${a.join(", ")}`,`メール通知メールボックスサービスプロバイダ。サポート: ${a.join(",")}.`,`알림 발송 이메일 서비스 선택. 지원 목록: ${a.join(", ")}`,`Nhà cung cấp dịch vụ email gửi thông báo. : ${a.join(", ")}`,`Penyedia layanan email untuk notifikasi. Mendukung: ${a.join(", ")}`],[o+"_SMTP_USER"]:["邮件通知邮箱用户名。","郵件通知郵箱用户名。","郵件通知郵箱使用者名稱。","Email notification mailbox username.","Электрон почта хабарномаси почта қутиси фойдаланувчи номи.","メール通知のメールボックスユーザー名。","선택한 이메일 알림 서비스 아이디","Tên đăng nhập hòm thư gửi thông báo.","Nama pengguna kotak email notifikasi."],ADMIN_CONFIG_RESET:["重置","重置","還原","Reset","Ресет","リセット","초기화","Đặt lại","Reset"],ADMIN_CONFIG_SAVE:["保存","保存","儲存","Save","Сақлаш","保存","저장","Lưu","Simpan"],ADMIN_CREDENTIALS:["私钥文件","私鑰文件","私鑰檔案","Private key file","Shaxsiy kalit fayli","秘密鍵ファイル","개인 키 파일","File khóa riêng tư","File kunci pribadi"],ADMIN_CREDENTIALS_FAQ:["如何获得私钥","如何獲得私鑰","如何獲取私鑰","How to get the private key","Shaxsiy kalitni qanday olish mumkin","秘密鍵を取得する方法","개인 키 발급 방법","Cách lấy khóa riêng tư","Cara mendapatkan kunci pribadi"],ADMIN_CREDENTIALS_PLACEHOLDER:["请粘贴私钥文件内容","請貼上私鑰文件內容","請貼上私鑰檔案內容","Please paste the contents of the private key file","Iltimos, shaxsiy kalit faylining mazmunini joylashtiring","秘密鍵ファイルの内容を貼り付けてください","개인 키 파일 내용을 붙여넣으세요","Hãy dán nội dung file khóa riêng tư vào đây","Silakan tempel isi file kunci pribadi"],ADMIN_FORGOT:["忘记密码","忘記密碼","忘記密碼","Forget your password","Парол унутилган","パスワードを忘れた","비밀번호 찾기","Quên mật khẩu","Lupa kata sandi"],ADMIN_EXPORT:["导出","匯出","匯出","Export","Экспорт","エクスポート","내보내기","Xuất dữ liệu","Ekspor"],ADMIN_EXPORT_WARN:["将全部数据导出为 JSON 文件。如果遇到评论较多、导出失败或缺失数据,请连接数据库手动导出","將全部數據匯出為 JSON 檔。如果遇到評論較多、匯出失敗或缺失數據,請連接資料庫手動匯出","將全部數據匯出為 JSON 檔。如果遇到評論較多、匯出失敗或缺失數據,請連接資料庫手動匯出","Export all data as a JSON file. If you encounter export failures or missing data, connect to the database to export manually","Барча маълумотларни ЖСОН файли сифатида экспорт қилинг. Экспорт хатоси ёки этишмаётган маълумотларга дуч келсангиз, қўлда экспорт қилиш учун маълумотлар базасига уланинг","すべてのデータをJSONファイルとしてエクスポートします。コメントが多く、エクスポートに失敗したりデータが欠落している場合は、データベースに手動で接続してエクスポートしてください","모든 데이터를 JSON 파일로 내보냅니다. 댓글이 많아 내보내기 실패 또는 데이터 누락 발생 시, 데이터베이스에 직접 연결하여 수동으로 내보내세요.","Xuất toàn bộ dữ liệu thành file JSON. Nếu gặp lỗi hoặc thiếu dữ liệu, hãy kết nối cơ sở dữ liệu để xuất thủ công","Ekspor semua data sebagai file JSON. Jika ekspor gagal atau data hilang, sambungkan ke basis data untuk ekspor manual"],ADMIN_EXPORT_COMMENT:["导出评论","匯出評論","匯出評論","Export comment","Изохни экспорт килиш","コメントをエクスポート","댓글 내보내기","Xuất bình luận","Ekspor komentar"],ADMIN_EXPORT_COUNTER:["导出访问量","匯出訪問量","匯出訪問量","Export counter","Экспорт сони","ページビューをエクスポート","통계 내보내기","Xuất lượt truy cập","Ekspor penghitung"],[i]:["导入","匯入","匯入","Import","Импорт","インポート","가져오기","Nhập dữ liệu","Impor"],[i+"_FILE_REQUIRED"]:["未选择文件","未選擇文件","未選擇檔案","No file selected","Файлни танланмади","ファイルが選択されていません","파일이 선택되지 않았습니다","Chưa chọn file","Tidak ada file yang dipilih"],[i+"_IMPORTED"]:["完成导入 ","完成匯入 ","完成匯入 ","Imported ","Импорт қилинди ","インポート完了 ","가져오기 완료 ","Đã nhập ","Diimpor "],[i+"_IMPORTING"]:["开始导入 ","開始匯入 ","開始匯入 ","Importing ","Импорт қилинмоқда ","インポートを開始 ","가져오는 중 ","Đang nhập ","Mengimpor "],[i+"_LOG"]:["日志","日誌","日誌","Log","Лог","システムログ","로그","Nhật ký","Log"],[i+"_SELECT"]:["请选择","請選擇","請選擇","Select","Танланг","選択してください","선택하세요","Chọn","Pilih"],[i+"_SELECT_FILE"]:["选择文件","選擇文件","選擇檔案","Select file","Файлни танланг","ファイルを選択","파일 선택","Chọn file","Pilih file"],[i+"_SELECT_SOURCE"]:["选择源系统","選擇源系統","選擇來源系統","Select source","Манба танланг","ソースを選択","가져올 댓글 데이터 선택","Chọn nguồn dữ liệu","Pilih sumber"],[i+"_SOURCE_REQUIRED"]:["未选择源系统","未選擇源系統","未選擇來源系統","No source selected.","Ҳеч қандай манба танланмаган.","ソースが選択されていません","가져올 댓글 데이터가 선택되지 않았습니다.","Chưa chọn nguồn dữ liệu.","Sumber belum dipilih"],[i+"_START"]:["开始导入","開始匯入","開始匯入","Start import","Импортни бошлаш","インポートを開始","가져오기 시작","Bắt đầu nhập","Mulai impor"],[i+"_STARTING"]:["开始导入","開始匯入","開始匯入","Importing","Импорт қилинмоқда","インポート中です","가져오는 중","Đang nhập","Mengimpor"],[i+"_TIP_ARTALK"]:["请上传 JSON 格式的 Artalk 导出文件,文件名通常为 comments.data.json","請上傳 JSON 格式的 Artalk 導出文件,文件名通常為 comments.data.json","請上傳 JSON 格式的 Artalk 匯出檔案,檔名通常為 comments.data.json","Please upload the Artalk export file in JSON format.The file name is usually comments.data.json","Арталк экспорт файлини ЖСОН форматида юкланг. Файл номи одатда comments.data.json бўлади.","JSON形式のArtalkエクスポートファイルをアップロードしてください。ファイル名は通常、comments.data.jsonです。","JSON 형식의 Artalk 내보내기 파일을 업로드하세요. 파일 이름은 보통 comments.data.json 입니다.","Hãy tải lên file xuất Artalk định dạng JSON. Tên file thường là comments.data.json","Silakan unggah file ekspor Artalk dalam format JSON, nama file biasanya comments.data.json"],[i+"_TIP_DISQUS"]:["请上传 XML 格式的 Disqus 导出文件,文件名通常为 [网站名称]-[导出时间]-all.xml","請上傳 XML 格式的 Disqus 導出文件,文件名通常為 [網站名稱]-[導出時間]-all.xml","請上傳 XML 格式的 Disqus 匯出檔案,檔名通常為 [網站名稱]-[匯出時間]-all.xml","Please upload the Disqus export file in XML format. The file name is usually [website name]-[export time]-all.xml","Disqus экспорт файлини ХМЛ форматида юкланг. Файл номи одатда [веб-сайт номи]-[экспорт vaqti]-all.xml","DisqusエクスポートファイルをXML形式でアップロードしてください。ファイル名は通常、[サイト名]-[エクスポート時間]-all.xmlです。","XML 형식의 Disqus 내보내기 파일을 업로드하세요. 파일 이름은 보통 [웹사이트이름]-[내보내기시간]-all.xml 입니다.","Hãy tải lên file xuất Disqus định dạng XML. Tên file thường là [tên-website]-[thời-gian]-all.xml","Silakan unggah file ekspor Disqus dalam format XML, nama file biasanya [nama situs]-[waktu ekspor]-all.xml"],[i+"_TIP_VALINE"]:["请上传 JSON 格式的 Valine 导出文件,文件名通常为 Comment.json","請上傳 JSON 格式的 Valine 導出文件,文件名通常為 Comment.json","請上傳 JSON 格式的 Valine 匯出檔案,檔名通常為 Comment.json","Please upload the Valine export file in JSON format. The file name is usually Comment.json","Илтимос, Валине экспорт файлини ЖСОН форматида юкланг. Файл номи одатда Comment.json","JSON形式のValineエクスポートファイルをアップロードしてください。ファイル名は通常、Comment.jsonです。","JSON 형식의 Valine 내보내기 파일을 업로드하세요. 파일 이름은 보통 Comment.json 입니다.","Hãy tải lên file xuất Valine định dạng JSON. Tên file thường là Comment.json","Silakan unggah file ekspor Valine dalam format JSON, nama file biasanya Comment.json"],[i+"_UPLOADED"]:["上传完成 ","上傳完成 ","上傳完成 ","Uploaded ","Юкланди ","アップロード完了","업로드 완료 ","Đã tải lên ","Diunggah "],[i+"_UPLOADING"]:["已上传 ","已上傳 ","已上傳 ","Uploading ","Юкланмоқда ","アップロード中です","업로드 중 ","Đang tải lên ","Mengunggah "],[i+"_WARN"]:["支持从其他评论系统的备份文件导入评论。\n数据是安全的,导入功能完全在您的云环境进行。\n建议在导入前备份 comment 数据库。","支持從其他評論系統的備份文件匯入評論。\n數據是安全的,匯入功能完全在您的雲環境進行。\n建議在匯入前備份 comment 數據庫。","支援從其他留言系統的備份檔案匯入留言。\n資料是安全的,匯入功能完全在您的雲端環境進行。\n建議在匯入前備份 comment 資料庫。","Import comments from other comment systems.\nThe data is safe, and the import function is performed entirely in your cloud environment.\nPlease backup your comment database before importing.","Бошқа шарҳ тизимларидан шарҳларни импорт қилинг.\nМаълумотлар хавфсиз ва импорт функцияси тўлиқ булутли муҳитда амалга оширилади.\nИмпорт қилишдан олдин шарҳлар маълумотлар базасини захираланг.","他のコメントシステムのバックアップファイルからのインポートに対応。\nデータは安全で、インポート機能はすべてクラウド環境で実行されます。\nインポート前にコメントデータベースをバックアップすることを推奨します。","다른 댓글 시스템의 백업 파일에서 댓글을 가져올 수 있습니다.\n데이터 가져오기는 설정하신 클라우드에서만 안전하게 진행됩니다.\n가져오기 전에 댓글 데이터베이스를 백업하는 것이 좋습니다.","Hỗ trợ nhập bình luận từ file sao lưu hệ thống khác.\nDữ liệu an toàn, chức năng nhập thực hiện hoàn toàn trên môi trường cloud của bạn.\nNên sao lưu cơ sở dữ liệu bình luận trước khi nhập.","Mendukung impor komentar dari file cadangan sistem komentar lain.\nData aman, fungsi impor sepenuhnya dilakukan di lingkungan cloud Anda.\nDisarankan untuk mencadangkan basis data komentar sebelum mengimpor."],ADMIN_LOGIN:["登录","登入","登入","Sign in","Тизимга кириш","ログイン","로그인","Đăng nhập","Masuk"],ADMIN_LOGIN_TITLE:["Twikoo 评论管理","Twikoo 評論管理","Twikoo 留言管理","Twikoo Management Panel","Twikoo Бошқарув Панели","Twikoo コメント管理","Twikoo 관리자 패널","Twikoo Quản lý bình luận","Manajemen Komentar Twikoo"],ADMIN_LOGOUT:["退出登录","退出登入","登出","Sign out","Тизимдан чиқиш","ログアウト","로그아웃","Đăng xuất","Keluar"],ADMIN_NEED_UPDATE:["若要使用评论管理,请更新 Twikoo 云函数","若要使用評論管理,請更新 Twikoo 雲函數","若要使用留言管理功能,請更新 Twikoo 雲端函數","A new version of Twikoo is required for comment management.","Фикрларни бошқариш учун Твикоо нинг янги версияси талаб қилинади.","コメント管理を使用するには、Twikoo クラウド関数を更新してください","새 버전의 댓글 관리를 사용하려면 Twikoo Cloud Function을 업데이트하세요.","Cần cập nhật Twikoo Cloud Function để dùng quản lý bình luận.","Versi baru Twikoo diperlukan untuk manajemen komentar."],ADMIN_PASSWORD:["密码","密碼","密碼","Password","Пароль","パスワード","비밀번호","Mật khẩu","Kata Sandi"],ADMIN_PASSWORD_PLACEHOLDER:["请输入","請輸入","請輸入","Enter your password...","Паролингизни киритинг...","入力してください","비밀번호를 입력하세요...","Nhập mật khẩu...","Masukkan kata sandi..."],ADMIN_PASSWORD_REQUIRED:["请输入密码","請輸入密碼","請輸入密碼","Please enter your password","Илтимос, паролингизни киритинг","パスワードを入力してください","비밀번호를 입력하세요","Vui lòng nhập mật khẩu","Silakan masukkan kata sandi Anda"],ADMIN_REGIST:["注册","註冊","註冊","Register","Рўйхатдан ўтиш","登録","관리자 등록","Đăng ký","Daftar"],ADMIN_REGIST_FAILED:["注册失败","註冊失敗","註冊失敗","Register failed","Рўйхатдан ўтиш амалга ошмади","登録に失敗しました","관리자 등록 실패","Đăng ký thất bại","Pendaftaran gagal"],ADMIN_SET_PASSWORD:["设置密码","設置密碼","設定密碼","Set password","Пароль қўйиш","パスワードの設定","비밀번호 설정","Đặt mật khẩu","Atur kata sandi"],ADMIN_SET_PASSWORD_CONFIRM:["确认密码","確認密碼","確認密碼","Confirm password","Паролни тасдиқланг","パスワードの確認","비밀번호 확인","Xác nhận mật khẩu","Konfirmasi kata sandi"],ADMIN_SET_PASSWORD_CONFIRM_PLACEHOLDER:["确认密码","確認密碼","確認密碼","Confirm password...","Паролни тасдиқлаш...","パスワードの確認","비밀번호 확인...","Xác nhận mật khẩu...","Konfirmasi kata sandi..."],ADMIN_SET_PASSWORD_PLACEHOLDER:["密码","密碼","密碼","Password","Пароль","パスワード","비밀번호","Mật khẩu","Kata sandi"],ADMIN_TITLE:["Twikoo 管理面板","Twikoo 管理面板","Twikoo 管理控制台","Twikoo Management Panel","Twikoo Бошқарув Панели","Twikoo管理パネル","Twikoo 관리 패널","Twikoo Bảng quản trị","Panel Manajemen Twikoo"],COMMENTS_SEARCH:["搜索","搜索","搜尋","Search","Излаш","検索","검색","Tìm kiếm","Cari"],COMMENTS_SEARCH_PLACEHOLDER:["搜索评论","搜索評論","搜尋留言","Search comments","Изоҳларни қидириш","コメントを検索","댓글 검색","Tìm kiếm bình luận","Cari komentar"],COMMENTS_SEARCH_NO_RESULT:["没有找到评论","沒有找到評論","沒有找到留言","No comments found","Изоҳлар топилмади","コメントが見つかりません","댓글을 찾을 수 없습니다","Không tìm thấy bình luận","Tidak ada komentar ditemukan"],COMMENTS_SEARCH_COUNT_PREFIX:["找到 ","找到 ","找到 ","Found ","Топилди: ","見つかった ","찾은 ","Tìm thấy ","Ditemukan "],COMMENTS_COUNT_SUFFIX:[" 条评论"," 條評論"," 則留言"," comments"," изоҳлар"," 件のコメント","개의 댓글"," bình luận"," komentar"],COMMENTS_SORT_NEWEST:["最新","最新","最新","Newest","Энг янги","最新","최신","Mới nhất","Terbaru"],COMMENTS_SORT_OLDEST:["最早","最早","最早","Oldest","Энг эски","最古","오래됨","Cũ nhất","Terlama"],COMMENTS_SORT_POPULAR:["热门","熱門","熱門","Popular","Машҳур","人気","인기","Phổ biến","Populer"],COMMENTS_EXPAND:["查看更多","查看更多","檢視更多","Load more","Давомини юклаш","もっと見る","더 보기","Xem thêm","Muat lebih banyak"],COMMENTS_NO_COMMENTS:["没有评论","沒有評論","沒有留言","No comment","Изоҳларсиз","コメントはありません","아직 댓글이 없습니다.","Chưa có bình luận","Berikan pendapatmu"],COMMENT_EXPAND:["展开","展開","展開","Read more","Давомини ўқиш","全文を表示","더 보기","Xem thêm","Baca selengkapnya"],COMMENT_COLLAPSE:["收起","收起","閉合","Collapse","Очиш","折りたたむ","접기","Thu gọn","Ciutkan"],COMMENT_MASTER_TAG:["博主","博主","站長","Admin","Модератор","管理者","관리자","Admin","Admin"],COMMENT_REPLIED:["回复","回覆","回覆","Reply","Жавоб бериш","返信","답글","Trả lời","Balas"],COMMENT_DELETE_CONFIRM:["确认删除你的评论?","確認刪除你的評論?","確認刪除你的評論?","Delete your comment?","Izohingizni o'chirasizmi?","あなたのコメントを削除しますか?","댓글을 삭제하시겠습니까?","Xóa bình luận của bạn?","Hapus pendapat Anda?"],COMMENT_REVIEWING_TAG:["审核中","審核中","審核中","Pending","Кутилмоқда","検討中","검토 중","Đang duyệt","Tertunda"],COMMENT_TOP_TAG:["置顶","置頂","置頂","Pinned","Қадоқланган","固定","고정됨","Đã ghim","Disematkan"],COMMENT_FAILED:["评论失败","評論失敗","評論失敗","Comment failed","Фикр билдирилмади","コメント失敗","댓글 등록 실패","Gửi bình luận thất bại","Komentar gagal"],META_INPUT_LINK:["网址","網址","網址","Website","Веб-сайт","ウェブサイト","웹사이트","Website","Situs Web"],META_INPUT_MAIL:["邮箱","郵箱","郵箱","Email","Email","メールアドレス","이메일","Email","Email"],META_INPUT_NICK:["昵称","暱稱","暱稱","Nickname","Исм","名前","닉네임","Tên","Nama Panggilan"],META_INPUT_NOT_REQUIRED:["选填","選填","選填","Optional","Ихтиёрий","任意","선택","Tùy chọn","Opsional"],META_INPUT_REQUIRED:["必填","必填","必填","Required","Мажбурий","必須","필수","Bắt buộc","Wajib"],PAGINATION_COUNT_PREFIX:["共 ","共 ","共 ","","","合計 ","총 ","Tổng ","Total "],PAGINATION_COUNT_SUFFIX:[" 条"," 條"," 條"," entries"," ёзувлар"," 件","개"," mục"," entri"],PAGINATION_GOTO_PREFIX:["前往","前往","前往","Goto page","Саҳифага ўтиш","ページに移動","이동할 페이지: ","Đến trang","Ke halaman"],PAGINATION_GOTO_SUFFIX:["页","頁","頁","","ページ","","","","Halaman"],PAGINATION_PAGESIZE:["条/页","條/頁","則/頁","entries/page","ёзувлар/саҳифа","件/ページ","개/페이지","mục/trang","entri/halaman"],SUBMIT_CANCEL:["取消","取消","取消","Cancel","Бекор қилиш","キャンセル","취소","Hủy","Batal"],SUBMIT_PREVIEW:["预览","預覽","預覽","Preview","Кўриб чиқиш","プレビュー","미리보기","Xem trước","Pratinjau"],SUBMIT_SEND:["发送","發送","傳送","Send","Юбормоқ","送信","등록","Gửi","Kirim"],IMAGE_UPLOAD_PLACEHOLDER:["图片上传中","圖片上傳中","圖片上傳中","Uploading image","Расм юклаш","画像のアップロード中","이미지 업로드 중","Đang tải ảnh lên","Mengunggah gambar"],IMAGE_UPLOAD_FAILED:["图片上传失败","圖片上傳失敗","圖片上傳失敗","IMAGE UPLOAD FAILED","РАСМ ЮКЛАНМАДИ","画像のアップロード失敗","이미지 업로드 실패","TẢI ẢNH THẤT BẠI","UNGGAH GAMBAR GAGAL"],IMAGE_UPLOAD_NSFW:["图片包含不当内容,禁止上传","圖片包含不當內容,禁止上傳","圖片包含不當內容,禁止上傳","Image contains inappropriate content, upload rejected","Расм ноқулай мазмунни ўз ичига олади, юклаш рад қилинди","画像に不適切なコンテンツが含まれているため、アップロードが拒否されました","이미지에 부적절한 콘텐츠가 포함되어 있어 업로드가 거부되었습니다","Ảnh chứa nội dung không phù hợp, tải lên bị từ chối","Gambar mengandung konten tidak pantas, unggahan ditolak"],IMAGE_UPLOAD_FAILED_NO_CONF:["博主未配置图床服务","博主未配置圖床服務","博主未配置圖床服務","The blogger didn't configured any image bed service","Муаллиф ҳеч қандай тасвир хизматини созламаган","管理者が画像配信サービスを設定していません","블로거가 이미지 호스팅 서비스를 설정하지 않았습니다.","Quản trị viên chưa cấu hình dịch vụ lưu trữ ảnh","Admin belum mengatur layanan penyimpanan gambar"],IMAGE_UPLOAD_PLEASE_WAIT:["图片上传中,请稍候再发送","圖片上傳中,請稍候再發送","圖片上傳中,請稍候再傳送","Uploading image, please try again later","Расм юкланмоқда, кейинроқ қайта уриниб кўринг","画像のアップロードが完了するまでお待ちください","이미지 업로드 중입니다. 잠시 후 다시 시도해주세요.","Đang tải ảnh lên, vui lòng chờ rồi thử lại","Gambar sedang diunggah, tunggu sebentar"],SUBMIT_SENDING:["发送中","發送中","正在傳送","Sending","Юбориш","送信中","등록 중","Đang gửi","Mengirim"],TIMEAGO_DAYS:["天前","天前","天前","days ago","кунлар олдин","日前","일 전","ngày trước","hari lalu"],TIMEAGO_HOURS:["小时前","小時前","小時前","hours ago","соатлар олдин","時間前","시간 전","giờ trước","jam lalu"],TIMEAGO_MINUTES:["分钟前","分鐘前","分鐘前","minutes ago","дақиқалар олдин","分前","분 전","phút trước","menit lalu"],TIMEAGO_NOW:["刚刚","剛剛","剛剛","Just now","Ҳозиргина","たった今","방금 전","Vừa xong","Baru saja"],TIMEAGO_SECONDS:["秒前","秒前","秒前","seconds ago","сониялар олдин","秒前","초 전","giây trước","detik lalu"]}},3850:function(e,t,n){"use strict";var r=n(6553).default;Object.defineProperty(t,"__esModule",{value:!0}),t.setLanguage=t.default=void 0;var o=r(n(4168));const i={zh:0,"zh-cn":0,"zh-hk":1,"zh-tw":2,"en-us":3,"en-gb":3,en:3,uz:4,"uz-uz":4,ja:5,"ja-jp":5,ko:6,"ko-kr":6,vi:7,"vi-VN":7,id:8,"id-id":8};let s="";t.setLanguage=(e={})=>{e.lang&&e.lang.toLowerCase()in i&&(s=e.lang)},t.default=(e,t)=>{const n=(t||s||navigator.language).toLowerCase();let r;return r=n&&i[n]?o.default[e][i[n]]:o.default[e][i["zh-cn"]],r||""}},2509:function(e,t,n){"use strict";var r=n(6553).default,o=n(580).default;Object.defineProperty(t,"__esModule",{value:!0}),t.blobToDataURL=void 0,Object.defineProperty(t,"call",{enumerable:!0,get:function(){return l.call}}),t.getHref=t.getFuncVer=t.getCommentsCountApi=t.convertLink=void 0,Object.defineProperty(t,"getQQAvatar",{enumerable:!0,get:function(){return d.getQQAvatar}}),t.getVisitorsCountApi=t.getUserAgent=t.getUrl=t.getRecentCommentsApi=void 0,Object.defineProperty(t,"initMarkedOwo",{enumerable:!0,get:function(){return h.initMarkedOwo}}),Object.defineProperty(t,"initOwoEmotions",{enumerable:!0,get:function(){return h.initOwoEmotions}}),t.isNotSet=void 0,Object.defineProperty(t,"isQQ",{enumerable:!0,get:function(){return d.isQQ}}),Object.defineProperty(t,"isUrl",{enumerable:!0,get:function(){return l.isUrl}}),t.logger=void 0,Object.defineProperty(t,"marked",{enumerable:!0,get:function(){return c.default}}),Object.defineProperty(t,"normalizeMail",{enumerable:!0,get:function(){return d.normalizeMail}}),t.readAsText=void 0,Object.defineProperty(t,"renderCode",{enumerable:!0,get:function(){return u.default}}),t.sanitizeHtml=t.renderMath=t.renderLinks=void 0,Object.defineProperty(t,"setLanguage",{enumerable:!0,get:function(){return i.setLanguage}}),Object.defineProperty(t,"t",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(t,"timeago",{enumerable:!0,get:function(){return a.default}}),t.updateVisitorsCount=t.timestamp=void 0;var i=o(n(3850)),s=r(n(3027)),a=r(n(7831)),c=r(n(7401)),u=r(n(9957)),l=n(9533),d=n(5940),h=n(7760);t.isNotSet=e=>null==e||""===e;const p=t.logger={log:(e,t)=>{console.log(`Twikoo: ${e}`,t)},info:(e,t)=>{console.info(`Twikoo: ${e}`,t)},warn:(e,t)=>{console.warn(`Twikoo: ${e}`,t)},error:(e,t)=>{console.error(`Twikoo: ${e}`,t)}};let f;t.sanitizeHtml=e=>s.default.sanitize("string"==typeof e?e:"",{FORBID_TAGS:["style"],FORBID_ATTR:["style"]}),t.timestamp=(e=new Date)=>e.getTime(),t.convertLink=e=>e?"http"!==e.substring(0,4)?`http://${e}`:e:"",t.getFuncVer=async e=>(f||(f=await(0,l.call)(e,"GET_FUNC_VERSION")),f),t.getCommentsCountApi=async(e,t)=>{if(!(t.urls instanceof Array))throw new Error("urls 参数有误");return 0===t.urls.length?[]:(await(0,l.call)(e,"GET_COMMENTS_COUNT",t)).result.data},t.getRecentCommentsApi=async(e,t)=>{const n=await(0,l.call)(e,"GET_RECENT_COMMENTS",t);for(const e of n.result.data)e.relativeTime=(0,a.default)(e.created);return n.result.data},t.getUserAgent=async()=>{let e=window.navigator.userAgent;try{const{platform:t}=navigator.userAgentData;if("Windows"===t||"macOS"===t){const{platformVersion:n}=await navigator.userAgentData.getHighEntropyValues(["platformVersion"]),r=parseInt(n.split(".")[0]);if("Windows"===t&&r>=13){const t="11.0";e=e.replace(/Windows NT 10\.0/i,`Windows NT ${t}`)}else if("macOS"===t&&r>=11){const t=n.replace(/\./g,"_");e=e.replace(/Mac OS X 10_[0-9]+_[0-9]+/i,`Mac OS X ${t}`)}}}catch(e){}return e};const m=e=>{let t;if(window.TWIKOO_MAGIC_PATH)t=window.TWIKOO_MAGIC_PATH;else if(e&&"string"==typeof e)switch(e){case"location.pathname":case"window.location.pathname":t=window.location.pathname;break;case"location.href":case"window.location.href":t=window.location.href;break;default:t=e}else t=window.location.pathname;return t};t.getUrl=m;const g=e=>window.TWIKOO_MAGIC_HREF??e??window.location.href;t.getHref=g;const v=new Set(["localhost","127.0.0.1","0.0.0.0","::1"]),_=async(e,t={})=>(await(0,l.call)(e,"COUNTER_GET",{envId:t.envId,funcName:t.funcName,url:m(t.path),href:g(t.href),title:t.title??document.title})).result;t.getVisitorsCountApi=_,t.updateVisitorsCount=async(e,t={})=>{const n=document.getElementById("twikoo_visitors");if(!n||v.has(window.location.hostname))return null;try{const r=await _(e,t);return(r.time||0===r.time)&&(n.innerHTML=r.time),r}catch(e){return p.warn("Failed to update visitors count",e),null}},t.readAsText=e=>new Promise((t,n)=>{const r=new FileReader;r.readAsText(e),r.onloadend=()=>{r.error?n(r.error):t(r.result)}}),t.renderLinks=e=>{let t=[];e instanceof Array?e.forEach(e=>{t.push(...e.getElementsByTagName("a"))}):e instanceof Element&&(t=e.getElementsByTagName("a"));for(const e of t)e.setAttribute("target","_blank"),e.setAttribute("rel","noopener noreferrer nofollow ugc")},t.renderMath=(e,t)=>{"function"==typeof renderMathInElement&&renderMathInElement(e,t||{delimiters:[{left:"$$",right:"$$",display:!0},{left:"$",right:"$",display:!1},{left:"\\(",right:"\\)",display:!1},{left:"\\[",right:"\\]",display:!0}],throwOnError:!1})},t.blobToDataURL=e=>new Promise(t=>{const n=new FileReader;n.onload=e=>{const n=e.target.result;t(n)},n.readAsDataURL(e)})},7401:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(5658);r.marked.setOptions({renderer:new r.marked.Renderer,gfm:!0,tables:!0,breaks:!0,pedantic:!1,smartLists:!0,smartypants:!0}),r.marked.use({tokenizer:{code(){}}}),t.default=r.marked},388:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.install=async function(e,t={}){return i.sdk=e,function(e){const t=[];for(const n of o)n.default&&(0,r.isNotSet)(e[n.key])?e[n.key]=n.default:n.required&&(0,r.isNotSet)(e[n.key])&&t.push(n.key);if(t.length>0){for(const e of t)r.logger.warn(`${e} is required`);throw new Error("Twikoo: failed to init")}}(t),await async function(e){(function(e){i.app=i.sdk.init({env:e.envId,region:e.region})})(e),await async function(){return new Promise((e,t)=>{i.auth=i.app.auth({persistence:"local"}),i.auth.hasLoginState()?e():i.auth.anonymousAuthProvider().signIn().then(e).catch(t)})}()}(t),i},t.tcb=void 0;var r=n(2509);const o=[{key:"envId",required:!0}],i=t.tcb={sdk:null,app:null,auth:null}},7831:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(2509);const o=e=>{const t=i(e.getDate(),2),n=i(e.getMonth()+1,2);return`${i(e.getFullYear(),2)}-${n}-${t}`},i=(e,t)=>{let n=e.toString();for(;n.length<t;)n="0"+n;return n};t.default=e=>{if("number"==typeof e&&(e=new Date(e)),e)try{const t=e.getTime(),n=Date.now()-t,i=Math.floor(n/864e5);if(0===i){const e=n%864e5,t=Math.floor(e/36e5);if(0===t){const t=e%36e5,n=Math.floor(t/6e4);if(0===n){const e=t%6e4;return Math.round(e/1e3)+` ${(0,r.t)("TIMEAGO_SECONDS")}`}return n+` ${(0,r.t)("TIMEAGO_MINUTES")}`}return t+` ${(0,r.t)("TIMEAGO_HOURS")}`}return i<0?(0,r.t)("TIMEAGO_NOW"):i<8?i+` ${(0,r.t)("TIMEAGO_DAYS")}`:o(e)}catch(e){r.logger.log("timeAgo 错误",e)}}},3115:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.version=void 0,t.version="1.7.21"},8897:function(e,t,n){"use strict";var r=n(6553).default;Object.defineProperty(t,"__esModule",{value:!0}),t.render=t.app=void 0;var o=r(n(1058)),i=r(n(9379)),s=r(n(9675)),a=r(n(2499)),c=r(n(6503));o.default.use(i.default),o.default.use(s.default),o.default.use(a.default);let u=t.app=null;t.render=(e,n={})=>(o.default.prototype.$tcb=e,o.default.prototype.$twikoo=n,t.app=u=new o.default({render:e=>e(c.default)}),u.$mount(n.el||"#twikoo"),u)},6937:function(e){e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 640 512"><path fill="currentColor" d="M131.2 61.9c5.3-.5 10.6 .6 15.3 3s8.6 6.2 11.3 10.8c17 29.5 34.2 58.9 51.2 88.4 3.5-1.4 7-2.7 10.5-3.9 31.3-10.9 64.2-16.6 97.4-16.9 1 0 2.1 0 3.2 0 38.1 0 76.2 7 111.6 21.1L483 75.7c1.8-3.2 4.3-6 7.2-8.2s6.2-3.9 9.8-4.8c3.1-.8 6.4-1.1 9.6-.8 4.2 .4 8.3 1.7 11.9 3.8 4 2.4 7.3 5.7 9.7 9.7 2 3.4 3.3 7.2 3.8 11.2s.1 8-1.2 11.7c-.6 1.9-1.4 3.7-2.4 5.5l-49.7 85.8c19.5 12.2 37.6 26.5 53.9 42.8 12.3 12.2 23.5 25.4 33.5 39.5 8.2 11.5 15.6 23.6 22.2 36.2 17.5 33.6 28.6 70.5 32.7 108.1l-608 0c4.1-37.7 15.2-74.5 32.7-108.1 14.5-27.9 33.4-53.5 55.7-75.7 16.5-16.4 34.7-30.9 54.5-43.1l-49.5-85.4c-3.7-6.4-4.7-14.1-2.8-21.2 1.9-7.1 6.4-13.1 12.7-16.8 3.6-2.2 7.7-3.5 11.9-3.8zm67.3 215.8c-12.2-8.1-30.1-2.5-40.1 12.5s-8.2 33.8 3.9 41.9 30.1 2.5 40.1-12.5 8.2-33.8-3.9-41.9zm283.6 12.5c-10-15-27.9-20.6-40.1-12.5s-13.9 26.9-3.9 41.9c10 15 27.9 20.6 40.1 12.5s13.9-26.9 3.9-41.9z"></path></svg>'},9396:function(e){e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 384 512"><path fill="currentColor" d="M319.1 268.7c-.2-36.7 16.4-64.4 50-84.8-18.8-26.9-47.2-41.7-84.7-44.6-35.5-2.8-74.3 20.7-88.5 20.7-15 0-49.4-19.7-76.4-19.7-55.8 .9-115.1 44.5-115.1 133.2 0 26.2 4.8 53.3 14.4 81.2 12.8 36.7 59 126.7 107.2 125.2 25.2-.6 43-17.9 75.8-17.9 31.8 0 48.3 17.9 76.4 17.9 48.6-.7 90.4-82.5 102.6-119.3-65.2-30.7-61.7-90-61.7-91.9zM262.5 104.5c27.3-32.4 24.8-61.9 24-72.5-24.1 1.4-52 16.4-67.9 34.9-17.5 19.8-27.8 44.3-25.6 71.9 26.1 2 49.9-11.4 69.5-34.3z"></path></svg>'},58:function(e){e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path fill="currentColor" d="M0 256c0-46.6 12.5-90.4 34.3-128.9L144.1 318.3c21.9 39.2 63.8 65.7 111.9 65.7 14.3 0 27.1-2.3 40.8-6.6L220.5 509.6C95.9 492.3 0 385.3 0 256zm365.1 65.6c12.3-19.2 18.9-42.5 18.9-65.6 0-38.2-16.8-72.5-43.3-96l152.7 0c12 29.6 18.6 62.1 18.6 96 0 141.4-114.6 255.1-256 256L365.1 321.6zM477.8 128L256 128c-62.9 0-113.7 44.1-125.5 102.7L54.2 98.5C101 38.5 174 0 256 0 350.8 0 433.5 51.5 477.8 128zM344 256a88 88 0 1 1 -176 0 88 88 0 1 1 176 0z"></path></svg>'},7051:function(e){e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path fill="currentColor" d="M120.1 37.4c41-25.2 87.6-38.2 134.9-37.4 168 0 257 123.8 257 219.5-.1 32.7-13 63.9-35.9 87.2-22.9 23.2-54 36.5-86.7 37-75.2 0-91.5-23.1-91.5-32 0-3.8 1.2-6.2 4.8-9.4l1-1.2 .4-1.6c10.5-11.5 15.9-26.2 15.9-41.6 0-78.7-82.2-142.7-184-142.7-37.5-.3-74.5 8.9-107.5 26.9 27-57.5 82.7-97.6 91.3-103.8 .8-.6 .3-.8 .3-.8zm15.6 318.1c-1.4 30 4.6 60 16.4 87.2 13.6 26.4 32.7 51 56.5 69.3-59.5-11.5-111.5-43.9-149.4-89.3-38.1-46.4-59.2-104.3-59.2-164.8 0-51.2 62.4-94.4 136-94.4 36.6-.6 72.4 10.9 101.8 32.7l-3.6 1.2c-51.5 17.6-98.5 90.7-98.5 158.1zM469.8 400l-.7 .1c-11.8 18.8-25.9 35.1-42.2 49.5-30.8 28-68.1 45.5-108.8 49.9-18.6 .3-36.8-3.2-53.8-11.4-25.6-10.3-47.1-30-61.6-53-14.4-23.9-21.1-51.7-19-79.6-.6-20.1 5.4-40.3 15-58.2 13.9 33.1 37.5 61.3 67.6 80.8s65.5 29.5 101.4 28.6c31 .3 62.1-6.7 90.2-20.5l1.9-.9c3.9-2.3 7.7-3.9 11.6 0 4.5 4.9 1.8 9.2-1.2 14-.2 .2-.3 .5-.4 .7z"></path></svg>'},824:function(e){e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path fill="currentColor" d="M130.2 127.5l0 0zm351.4 45.4c-10.6-25.5-32.1-53-48.9-61.7 13.7 26.9 21.7 53.9 24.7 74 0 .1 0 .3 .1 .4-27.6-68.8-74.4-96.5-112.6-156.8-15-23.7-10.9-25.2-13.1-24.7l-.1 .1c-46.7 26-75.3 78.4-82.6 122.7-16.6 .9-32.9 5-47.9 12.1-1.4 .6-2.5 1.7-3.1 3s-.9 2.8-.6 4.3c.2 .8 .6 1.6 1.1 2.3s1.2 1.3 1.9 1.7 1.6 .7 2.4 .8 1.7 0 2.5-.3l.5-.2c15.5-7.3 32.4-11.2 49.5-11.3 62.8-.6 97.2 44 107.6 62.3-13-9.2-36.4-18.2-58.8-14.3 87.7 43.9 64.2 194.5-57.4 189.2-59.5-2.6-97.1-51-100.5-90.8 0 0 11.2-41.9 80.6-41.9 7.5 0 28.9-20.9 29.3-27-.1-2-42.5-18.9-59.1-35.2-8.8-8.7-13.1-12.9-16.8-16.1-2-1.7-4.1-3.3-6.3-4.8-5.6-19.5-5.8-40-.7-59.6-25.1 11.4-44.6 29.4-58.7 45.4l-.1 0c-9.7-12.2-9-52.6-8.4-61.1-.1-.5-7.2 3.7-8.2 4.3-8.6 6.1-16.5 12.9-23.8 20.4-16.3 16.6-44.1 50.2-55.5 101.2-4.5 20.4-6.8 44.4-6.8 52.3 0 134.7 109.2 243.9 243.9 243.9 120.6 0 223-87.2 240.4-202.6 11.6-76.7-14.7-131.1-14.7-132z"></path></svg>'},3793:function(e){e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path fill="currentColor" d="M483.1 159.7c10.9-24.6 21.4-60.4 21.4-87.9 0-72.7-79.6-98.4-209.7-38.6-107.6-7.2-211.2 73.7-237.1 186.5 30.9-34.9 78.3-82.3 122-101.2-54.3 48.3-100.6 109.4-135.7 173.2-20.7 37.9-44 99.2-44 145 0 98.6 92.9 86.5 180.3 42 31.4 15.4 66.6 15.6 101.7 15.6 97.1 0 184.2-54.3 216.8-146l-120.8 0c-52.5 88.6-196.8 53-196.8-47.4l328.8 0c6.4-43.6-1.7-95.7-26.9-141.2zM64.6 346.9C82.3 398 118.3 442.7 164.8 470.2 76.1 519.1-8.4 499.3 64.6 346.9zM180.5 238c2-55.2 50.3-94.9 104-94.9 53.4 0 102 39.7 104 94.9l-208 0zM365.1 50.4c21.4-10.3 48.6-22 72.6-22 31.4 0 54.3 21.7 54.3 53.7 0 20-7.4 49-14.6 67.9-26.3-42.3-66-81.6-112.3-99.6z"></path></svg>'},8974:function(e){e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512"><path fill="currentColor" d="M220.9 123.3c1 .5 1.8 1.7 3 1.7 1.1 0 2.8-.4 2.9-1.5 .2-1.4-1.9-2.3-3.2-2.9-1.7-.7-3.9-1-5.5-.1-.4 .2-.8 .7-.6 1.1 .3 1.3 2.3 1.1 3.4 1.7zM199 125c1.2 0 2-1.2 3-1.7 1.1-.6 3.1-.4 3.5-1.6 .2-.4-.2-.9-.6-1.1-1.6-.9-3.8-.6-5.5 .1-1.3 .6-3.4 1.5-3.2 2.9 .1 1 1.8 1.5 2.8 1.4zM420 403.8c-3.6-4-5.3-11.6-7.2-19.7-1.8-8.1-3.9-16.8-10.5-22.4-1.3-1.1-2.6-2.1-4-2.9-1.3-.8-2.7-1.5-4.1-2 9.2-27.3 5.6-54.5-3.7-79.1-11.4-30.1-31.3-56.4-46.5-74.4-17.1-21.5-33.7-41.9-33.4-72 .5-45.9 5.1-131.2-75.8-131.3-102.4-.2-76.8 103.4-77.9 135.2-1.7 23.4-6.4 41.8-22.5 64.7-18.9 22.5-45.5 58.8-58.1 96.7-6 17.9-8.8 36.1-6.2 53.3-6.5 5.8-11.4 14.7-16.6 20.2-4.2 4.3-10.3 5.9-17 8.3s-14 6-18.5 14.5c-2.1 3.9-2.8 8.1-2.8 12.4 0 3.9 .6 7.9 1.2 11.8 1.2 8.1 2.5 15.7 .8 20.8-5.2 14.4-5.9 24.4-2.2 31.7 3.8 7.3 11.4 10.5 20.1 12.3 17.3 3.6 40.8 2.7 59.3 12.5 19.8 10.4 39.9 14.1 55.9 10.4 11.6-2.6 21.1-9.6 25.9-20.2 12.5-.1 26.3-5.4 48.3-6.6 14.9-1.2 33.6 5.3 55.1 4.1 .6 2.3 1.4 4.6 2.5 6.7l0 .1c8.3 16.7 23.8 24.3 40.3 23 16.6-1.3 34.1-11 48.3-27.9 13.6-16.4 36-23.2 50.9-32.2 7.4-4.5 13.4-10.1 13.9-18.3 .4-8.2-4.4-17.3-15.5-29.7zM223.8 87.3c9.8-22.2 34.2-21.8 44-.4 6.5 14.2 3.6 30.9-4.3 40.4-1.6-.8-5.9-2.6-12.6-4.9 1.1-1.2 3.1-2.7 3.9-4.6 4.8-11.8-.2-27-9.1-27.3-7.3-.5-13.9 10.8-11.8 23-4.1-2-9.4-3.5-13-4.4-1-6.9-.3-14.6 2.9-21.8zM183.1 75.8c10.1 0 20.8 14.2 19.1 33.5-3.5 1-7.1 2.5-10.2 4.6 1.2-8.9-3.3-20.1-9.6-19.6-8.4 .7-9.8 21.2-1.8 28.1 1 .8 1.9-.2-5.9 5.5-15.6-14.6-10.5-52.1 8.4-52.1zm-13.6 60.7c6.2-4.6 13.6-10 14.1-10.5 4.7-4.4 13.5-14.2 27.9-14.2 7.1 0 15.6 2.3 25.9 8.9 6.3 4.1 11.3 4.4 22.6 9.3 8.4 3.5 13.7 9.7 10.5 18.2-2.6 7.1-11 14.4-22.7 18.1-11.1 3.6-19.8 16-38.2 14.9-3.9-.2-7-1-9.6-2.1-8-3.5-12.2-10.4-20-15-8.6-4.8-13.2-10.4-14.7-15.3-1.4-4.9 0-9 4.2-12.3zm3.3 334c-2.7 35.1-43.9 34.4-75.3 18-29.9-15.8-68.6-6.5-76.5-21.9-2.4-4.7-2.4-12.7 2.6-26.4l0-.2c2.4-7.6 .6-16-.6-23.9-1.2-7.8-1.8-15 .9-20 3.5-6.7 8.5-9.1 14.8-11.3 10.3-3.7 11.8-3.4 19.6-9.9 5.5-5.7 9.5-12.9 14.3-18 5.1-5.5 10-8.1 17.7-6.9 8.1 1.2 15.1 6.8 21.9 16l19.6 35.6c9.5 19.9 43.1 48.4 41 68.9zm-1.4-25.9c-4.1-6.6-9.6-13.6-14.4-19.6 7.1 0 14.2-2.2 16.7-8.9 2.3-6.2 0-14.9-7.4-24.9-13.5-18.2-38.3-32.5-38.3-32.5-13.5-8.4-21.1-18.7-24.6-29.9s-3-23.3-.3-35.2c5.2-22.9 18.6-45.2 27.2-59.2 2.3-1.7 .8 3.2-8.7 20.8-8.5 16.1-24.4 53.3-2.6 82.4 .6-20.7 5.5-41.8 13.8-61.5 12-27.4 37.3-74.9 39.3-112.7 1.1 .8 4.6 3.2 6.2 4.1 4.6 2.7 8.1 6.7 12.6 10.3 12.4 10 28.5 9.2 42.4 1.2 6.2-3.5 11.2-7.5 15.9-9 9.9-3.1 17.8-8.6 22.3-15 7.7 30.4 25.7 74.3 37.2 95.7 6.1 11.4 18.3 35.5 23.6 64.6 3.3-.1 7 .4 10.9 1.4 13.8-35.7-11.7-74.2-23.3-84.9-4.7-4.6-4.9-6.6-2.6-6.5 12.6 11.2 29.2 33.7 35.2 59 2.8 11.6 3.3 23.7 .4 35.7 16.4 6.8 35.9 17.9 30.7 34.8-2.2-.1-3.2 0-4.2 0 3.2-10.1-3.9-17.6-22.8-26.1-19.6-8.6-36-8.6-38.3 12.5-12.1 4.2-18.3 14.7-21.4 27.3-2.8 11.2-3.6 24.7-4.4 39.9-.5 7.7-3.6 18-6.8 29-32.1 22.9-76.7 32.9-114.3 7.2zm257.4-11.5c-.9 16.8-41.2 19.9-63.2 46.5-13.2 15.7-29.4 24.4-43.6 25.5s-26.5-4.8-33.7-19.3c-4.7-11.1-2.4-23.1 1.1-36.3 3.7-14.2 9.2-28.8 9.9-40.6 .8-15.2 1.7-28.5 4.2-38.7 2.6-10.3 6.6-17.2 13.7-21.1 .3-.2 .7-.3 1-.5 .8 13.2 7.3 26.6 18.8 29.5 12.6 3.3 30.7-7.5 38.4-16.3 9-.3 15.7-.9 22.6 5.1 9.9 8.5 7.1 30.3 17.1 41.6 10.6 11.6 14 19.5 13.7 24.6zM173.4 148.7c2 1.9 4.7 4.5 8 7.1 6.6 5.2 15.8 10.6 27.3 10.6 11.6 0 22.5-5.9 31.8-10.8 4.9-2.6 10.9-7 14.8-10.4s5.9-6.3 3.1-6.6-2.6 2.6-6 5.1c-4.4 3.2-9.7 7.4-13.9 9.8-7.4 4.2-19.5 10.2-29.9 10.2s-18.7-4.8-24.9-9.7c-3.1-2.5-5.7-5-7.7-6.9-1.5-1.4-1.9-4.6-4.3-4.9-1.4-.1-1.8 3.7 1.7 6.5z"></path></svg>'},1423:function(e){e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 640 512"><path fill="currentColor" d="M593.8 59.1l-547.6 0C20.7 59.1 0 79.8 0 105.2L0 406.7c0 25.5 20.7 46.2 46.2 46.2l547.7 0c25.5 0 46.2-20.7 46.1-46.1l0-301.6c0-25.4-20.7-46.1-46.2-46.1zM338.5 360.6l-61.5 0 0-120-61.5 76.9-61.5-76.9 0 120-61.7 0 0-209.2 61.5 0 61.5 76.9 61.5-76.9 61.5 0 0 209.2 .2 0zm135.3 3.1l-92.3-107.7 61.5 0 0-104.6 61.5 0 0 104.6 61.5 0-92.2 107.7z"></path></svg>'},740:function(e){e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path fill="currentColor" d="M274.7 274.7L237.3 237.3 166 346 274.7 274.7zM256 8a248 248 0 1 0 0 496 248 248 0 1 0 0-496zM411.8 182.8l14.8-6.1c1-.4 2-.6 3.1-.6s2.1 .2 3.1 .6 1.8 1 2.6 1.7 1.3 1.6 1.7 2.6 .6 2 .6 3.1-.2 2.1-.6 3.1-1 1.9-1.7 2.6-1.6 1.3-2.6 1.7L418 197.6c-2 .8-4.2 .8-6.1 0s-3.5-2.4-4.3-4.3-.8-4.2 0-6.1 2.4-3.5 4.3-4.3zM314.4 94l6.1-14.8c.8-2 2.4-3.5 4.3-4.3s4.2-.8 6.1 0 3.5 2.4 4.3 4.3 .8 4.2 0 6.1l-6.1 14.8c-.8 2-2.4 3.5-4.3 4.3s-4.2 .8-6.1 0c-1-.4-1.9-1-2.6-1.7s-1.3-1.6-1.7-2.6-.6-2-.6-3.1 .2-2.1 .6-3.1zM256 60c2.1 0 4.2 .8 5.7 2.3S264 65.9 264 68l0 16c0 2.1-.8 4.2-2.3 5.7s-3.5 2.3-5.7 2.3-4.2-.8-5.7-2.3-2.3-3.5-2.3-5.7l0-16c0-2.1 .8-4.2 2.3-5.7S253.9 60 256 60zM181 74.9c1-.4 2-.6 3.1-.6s2.1 .2 3.1 .6 1.9 1 2.6 1.7 1.3 1.6 1.7 2.6L197.6 94c.4 1 .7 2 .7 3.1s-.2 2.1-.6 3.1-1 1.9-1.7 2.6-1.6 1.4-2.6 1.8-2 .6-3.1 .6-2.1-.2-3.1-.6-1.9-1-2.6-1.8-1.3-1.7-1.7-2.7l-6.1-14.8c-.8-2-.8-4.2 0-6.1s2.4-3.5 4.3-4.3zm-63.6 42.5c1.5-1.5 3.5-2.3 5.7-2.3s4.2 .8 5.7 2.3L140 128.7c1.5 1.5 2.3 3.5 2.3 5.6s-.8 4.1-2.3 5.6c-1.5 1.5-3.5 2.3-5.7 2.3s-4.2-.8-5.7-2.3l-11.3-11.3c-1.5-1.5-2.3-3.5-2.3-5.6s.8-4.1 2.3-5.6l0 0zM60 256c0-2.1 .8-4.2 2.3-5.7S65.9 248 68 248l16 0c2.1 0 4.2 .8 5.7 2.3s2.3 3.5 2.3 5.7-.8 4.2-2.3 5.7-3.5 2.3-5.7 2.3l-16 0c-2.1 0-4.2-.8-5.7-2.3S60 258.1 60 256zm40.2 73.2l-14.8 6.1c-1 .4-2 .6-3.1 .6s-2.1-.2-3.1-.6-1.9-1-2.6-1.7-1.3-1.6-1.7-2.6-.6-2-.6-3.1 .2-2.1 .6-3.1 1-1.9 1.7-2.6 1.6-1.3 2.6-1.7L94 314.4c2-.8 4.2-.8 6.1 0s3.5 2.4 4.3 4.3 .8 4.2 0 6.1-2.4 3.5-4.3 4.3zm4.3-136c-.4 1-1 1.9-1.7 2.6s-1.6 1.3-2.6 1.7-2 .6-3.1 .6-2.1-.2-3.1-.6l-14.8-6.1c-2-.8-3.5-2.4-4.3-4.3s-.8-4.2 0-6.1 2.4-3.5 4.3-4.3 4.2-.8 6.1 0l14.8 6.1c2 .8 3.5 2.4 4.3 4.3s.8 4.2 0 6.1l0 0zM197.6 418l-6.1 14.8c-.4 1-1 1.9-1.7 2.6s-1.6 1.3-2.6 1.7-2 .6-3.1 .6-2.1-.2-3.1-.6-1.9-1-2.6-1.7-1.3-1.6-1.7-2.6-.6-2-.6-3.1 .2-2.1 .6-3.1l6.1-14.8c.4-1 1-1.9 1.7-2.7s1.6-1.4 2.6-1.8 2-.6 3.1-.6 2.1 .2 3.1 .6 1.9 1 2.6 1.8 1.3 1.7 1.7 2.6 .6 2 .6 3.1-.2 2.1-.7 3.1zM264 444c0 2.1-.8 4.2-2.3 5.7s-3.5 2.3-5.7 2.3-4.2-.8-5.7-2.3-2.3-3.5-2.3-5.7l0-16c0-2.1 .8-4.2 2.3-5.7s3.5-2.3 5.7-2.3 4.2 .8 5.7 2.3 2.3 3.5 2.3 5.7l0 16zm67-6.9c-1 .4-2 .6-3.1 .6s-2.1-.2-3.1-.6-1.9-1-2.6-1.7-1.3-1.6-1.7-2.6L314.4 418c-.8-2-.8-4.2 0-6.1s2.4-3.5 4.3-4.3 4.2-.8 6.1 0 3.5 2.4 4.3 4.3l6.1 14.8c.8 2 .8 4.2 0 6.1s-2.4 3.5-4.3 4.3zm63.6-42.5c-1.5 1.5-3.5 2.3-5.7 2.3s-4.2-.8-5.7-2.3L372 383.3c-1.5-1.5-2.3-3.5-2.3-5.6s.8-4.1 2.3-5.6 3.5-2.3 5.7-2.3 4.2 .8 5.7 2.3l11.3 11.3c1.5 1.5 2.3 3.5 2.3 5.6s-.8 4.1-2.3 5.6l0 0zM286.2 286.2L110.3 401.7 225.8 225.8 401.7 110.3 286.2 286.2zM437.1 331c-.8 2-2.4 3.5-4.3 4.3s-4.2 .8-6.1 0l-14.8-6.1c-2-.8-3.5-2.4-4.3-4.3s-.8-4.2 0-6.1c.4-1 1-1.9 1.7-2.6s1.6-1.3 2.6-1.7 2-.6 3.1-.6 2.1 .2 3.1 .6l14.8 6.1c2 .8 3.5 2.4 4.3 4.3s.8 4.2 0 6.1zm6.9-67l-16 0c-2.1 0-4.2-.8-5.7-2.3s-2.3-3.5-2.3-5.7 .8-4.2 2.3-5.7 3.5-2.3 5.7-2.3l16 0c2.1 0 4.2 .8 5.7 2.3s2.3 3.5 2.3 5.7-.8 4.2-2.3 5.7-3.5 2.3-5.7 2.3z"></path></svg>'},7397:function(e){e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 576 512"><path fill="currentColor" d="M469.2 75c0-20.1-8-39.3-22.2-53.5s-33.4-22.2-53.5-22.2-39.3 8-53.5 22.2-22.2 33.4-22.2 53.5c0 20.1 8 39.3 22.1 53.5s33.4 22.1 53.5 22.1 39.3-8 53.5-22.1 22.1-33.4 22.1-53.5l.1 0zm-315 165.7a75.6 75.6 0 1 0 -151.2 0 75.6 75.6 0 1 0 151.2 0zM57 346c18.6 46.9 51 87 93 115.1s91.5 42.6 142 41.7c-14.7-18.6-22.9-41.5-23.2-65.2-6.8-.9-13.3-2.1-19.5-3.4-26.8-5.7-51.9-17.3-73.6-34s-39.3-38.1-51.7-62.5c-20.9 9.9-44.5 12.8-67.1 8.2l.1 .1zm395.1 89.8a75.6 75.6 0 1 0 -151.2 0 75.6 75.6 0 1 0 151.2 0zM444 351.6c18.5 14.8 31.6 35.2 37.2 58.2 33.3-41.3 52.6-92.2 54.8-145.2s-12.5-105.4-42.2-149.4c-8.6 21.5-24 39.6-43.8 51.6 15.4 28.6 22.9 60.8 21.9 93.2s-10.7 64-28 91.6l.1 0zM101.1 135.4c12.4 2.7 24.3 7.5 35.1 14.3 16.6-24.2 38.9-44.1 64.8-58S255.8 70.4 285.2 70c.2-5.9 .9-11.9 2-17.7 3.6-16.7 11.1-32.3 21.8-45.5-47.7-3.8-95.4 6-137.6 28.5S94.3 91.7 70.8 133.4c2.7-.2 5.3-.3 8-.3 7.5 0 15 .8 22.4 2.3l-.1 0z"></path></svg>'},2531:function(e){e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512"><path fill="currentColor" d="M0 93.7l183.6-25.3 0 177.4-183.6 0 0-152.1zM0 418.3l183.6 25.3 0-175.2-183.6 0 0 149.9zm203.8 28l244.2 33.7 0-211.6-244.2 0 0 177.9zm0-380.6l0 180.1 244.2 0 0-213.8-244.2 33.7z"></path></svg>'},3491:function(e){e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path fill="currentColor" d="M51.9 384.9C19.3 344.6 0 294.4 0 240 0 107.5 114.6 0 256 0S512 107.5 512 240 397.4 480 256 480c-36.5 0-71.2-7.2-102.6-20L37 509.9c-3.7 1.6-7.5 2.1-11.5 2.1-14.1 0-25.5-11.4-25.5-25.5 0-4.3 1.1-8.5 3.1-12.2l48.8-89.4zm37.3-30.2c12.2 15.1 14.1 36.1 4.8 53.2l-18 33.1 58.5-25.1c11.8-5.1 25.2-5.2 37.1-.3 25.7 10.5 54.2 16.4 84.3 16.4 117.8 0 208-88.8 208-192S373.8 48 256 48 48 136.8 48 240c0 42.8 15.1 82.4 41.2 114.7z"></path></svg>'},5171:function(e){e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512"><path fill="currentColor" d="M64 80c-8.8 0-16 7.2-16 16l0 320c0 8.8 7.2 16 16 16l320 0c8.8 0 16-7.2 16-16l0-320c0-8.8-7.2-16-16-16L64 80zM0 96C0 60.7 28.7 32 64 32l320 0c35.3 0 64 28.7 64 64l0 320c0 35.3-28.7 64-64 64L64 480c-35.3 0-64-28.7-64-64L0 96zm128 32a32 32 0 1 1 0 64 32 32 0 1 1 0-64zm136 72c8.5 0 16.4 4.5 20.7 11.8l80 136c4.4 7.4 4.4 16.6 .1 24.1S352.6 384 344 384l-240 0c-8.9 0-17.2-5-21.3-12.9s-3.5-17.5 1.6-24.8l56-80c4.5-6.4 11.8-10.2 19.7-10.2s15.2 3.8 19.7 10.2l17.2 24.6 46.5-79c4.3-7.3 12.2-11.8 20.7-11.8z"></path></svg>'},6639:function(e){e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path fill="currentColor" d="M464 256a208 208 0 1 0 -416 0 208 208 0 1 0 416 0zM0 256a256 256 0 1 1 512 0 256 256 0 1 1 -512 0zm118.3 58.2c-4.2-13.7 7.1-26.2 21.4-26.2l232.6 0c14.3 0 25.6 12.5 21.4 26.2-18 58.9-72.9 101.8-137.7 101.8S136.3 373.1 118.3 314.2zM144 192a32 32 0 1 1 64 0 32 32 0 1 1 -64 0zm192-32a32 32 0 1 1 0 64 32 32 0 1 1 0-64z"></path></svg>'},6412:function(e){e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path fill="currentColor" d="M360 32l7.4 .4c35 3.6 62.5 32.2 64.4 67.7 17.8 11.8 30.1 31.4 32 53.9l.2 6c0 5.7-.7 11.2-2 16.5 10.2 11.5 16.8 26.3 17.8 42.7l.2 4.8c0 13.2-3.6 25.4-9.8 36 4.9 8.4 8.2 17.9 9.3 28l.4 8c0 37.3-28.3 67.9-64.6 71.6l-7.4 .4-109.7 0 14.1 30 3.1 7.6c12.5 35.7-1.8 75.5-34.2 95l-7.2 3.9c-37.5 17.6-81.7 3.6-102.6-31.2l-.6-.9-2.7-5-.6-1.2-30.1-64c-9.4 17.8-28 29.9-49.5 29.9l-32 0c-30.9 0-56-25.1-56-56L0 152c0-30.9 25.1-56 56-56l32 0c12.4 0 23.9 4.1 33.2 11 13.2-21.4 32-39.4 55-51.6l12.2-6.5 .7-.3 6.6-3.2 .7-.3 7.1-3c16.7-6.6 34.5-9.9 52.6-9.9L360 32zM255.9 80c-12 0-23.9 2.3-35.1 6.6l-4.7 2-5.3 2.6 0 0-12.2 6.5c-29.2 15.5-48.3 44.9-50.7 77.6l-.2 8 0 112.9 .1 4.1c.5 8.2 2.5 16.2 6 23.7l56.8 120.9 2.1 3.8c8.4 13.7 26 19.1 40.8 12.2l2.9-1.6c13-7.8 18.7-23.7 13.7-38l-1.2-3-30.2-64.2c-3.5-7.4-2.9-16.1 1.5-23.1s12-11.1 20.2-11.1l147.5 0 2.4-.1c11.3-1.1 20.3-10.1 21.4-21.4l.1-2.5c0-7.1-3.1-13.5-8.2-18-5.2-4.6-8.2-11.1-8.2-18s3-13.4 8.2-18c4.4-3.9 7.4-9.3 8-15.3l.2-2.7c0-8.4-4.4-15.9-11.2-20.2-10.7-6.9-14.2-20.9-8-32 1.5-2.6 2.5-5.6 2.9-8.6l.2-3.2c0-10.6-6.9-19.6-16.6-22.8-11.7-3.8-18.7-15.9-16-28 .2-.9 .3-1.8 .4-2.6l.2-2.6c0-12.4-9.5-22.6-21.6-23.8L360 80 255.9 80zM56 144c-4.4 0-8 3.6-8 8l0 224c0 4.4 3.6 8 8 8l32 0c4.4 0 8-3.6 8-8l0-224c0-4.4-3.6-8-8-8l-32 0z"></path></svg>'},6359:function(e){e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path fill="currentColor" d="M171.5 38.8C192.3 4 236.5-10 274 7.6l7.2 3.8C316 32.3 330 76.5 312.4 114l0 0-14.1 30 109.7 0 7.4 .4c36.3 3.7 64.6 34.4 64.6 71.6 0 13.2-3.6 25.4-9.8 36 6.1 10.6 9.7 22.8 9.8 36 0 18.3-6.9 34.8-18 47.5 1.3 5.3 2 10.8 2 16.5 0 25.1-12.9 47-32.2 59.9-1.9 35.5-29.4 64.2-64.4 67.7l-7.4 .4-104.1 0c-18 0-35.9-3.4-52.6-9.9l-7.1-3-.7-.3-6.6-3.2-.7-.3-12.2-6.5c-12.3-6.5-23.3-14.7-32.9-24.1-4.1 26.9-27.3 47.4-55.3 47.4l-32 0c-30.9 0-56-25.1-56-56L0 200c0-30.9 25.1-56 56-56l32 0c10.8 0 20.9 3.1 29.5 8.5l50.1-106.5 .6-1.2 2.7-5 .6-.9zM56 192c-4.4 0-8 3.6-8 8l0 224c0 4.4 3.6 8 8 8l32 0c4.4 0 8-3.6 8-8l0-224c0-4.4-3.6-8-8-8l-32 0zM253.6 51c-14.8-6.9-32.3-1.6-40.7 12l-2.2 4-56.8 120.9c-3.5 7.5-5.5 15.5-6 23.7l-.1 4.2 0 112.9 .2 7.9c2.4 32.7 21.4 62.1 50.7 77.7l11.5 6.1 6.3 3.1c12.4 5.6 25.8 8.5 39.4 8.5l104.1 0 2.4-.1c12.1-1.2 21.6-11.5 21.6-23.9l-.2-2.6c-.1-.9-.2-1.7-.4-2.6-2.7-12.1 4.3-24.2 16-28 9.7-3.1 16.6-12.2 16.6-22.8 0-4.3-1.1-8.2-3.1-11.8-6.3-11.1-2.8-25.2 8-32 6.8-4.3 11.2-11.8 11.2-20.2 0-7.1-3.1-13.5-8.2-18-5.2-4.6-8.2-11.1-8.2-18s3-13.4 8.2-18c5.1-4.5 8.2-10.9 8.2-18l-.1-2.4c-1.1-11.3-10.1-20.3-21.4-21.4l-2.4-.1-147.5 0c-8.2 0-15.8-4.2-20.2-11.1-4.4-6.9-5-15.7-1.5-23.1L269 93.6c7-15 1.4-32.7-12.5-41L253.6 51z"></path></svg>'},7136:function(e){e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512"><path fill="currentColor" d="M166.2-16c-13.3 0-25.3 8.3-30 20.8L120 48 24 48C10.7 48 0 58.7 0 72S10.7 96 24 96l400 0c13.3 0 24-10.7 24-24s-10.7-24-24-24l-96 0-16.2-43.2C307.1-7.7 295.2-16 281.8-16L166.2-16zM32 144l0 304c0 35.3 28.7 64 64 64l256 0c35.3 0 64-28.7 64-64l0-304-48 0 0 304c0 8.8-7.2 16-16 16L96 464c-8.8 0-16-7.2-16-16l0-304-48 0zm160 72c0-13.3-10.7-24-24-24s-24 10.7-24 24l0 176c0 13.3 10.7 24 24 24s24-10.7 24-24l0-176zm112 0c0-13.3-10.7-24-24-24s-24 10.7-24 24l0 176c0 13.3 10.7 24 24 24s24-10.7 24-24l0-176z"></path></svg>'},9039:function(e){e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path fill="currentColor" d="M48 224l0 160c0 8.8 7.2 16 16 16l384 0c8.8 0 16-7.2 16-16l0-160-416 0zM0 128C0 92.7 28.7 64 64 64l384 0c35.3 0 64 28.7 64 64l0 256c0 35.3-28.7 64-64 64L64 448c-35.3 0-64-28.7-64-64L0 128z"></path></svg>'},504:function(e){e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path fill="currentColor" d="M195.1 9.5C198.1-5.3 211.2-16 226.4-16l59.8 0c15.2 0 28.3 10.7 31.3 25.5L332 79.5c14.1 6 27.3 13.7 39.3 22.8l67.8-22.5c14.4-4.8 30.2 1.2 37.8 14.4l29.9 51.8c7.6 13.2 4.9 29.8-6.5 39.9L447 233.3c.9 7.4 1.3 15 1.3 22.7s-.5 15.3-1.3 22.7l53.4 47.5c11.4 10.1 14 26.8 6.5 39.9l-29.9 51.8c-7.6 13.1-23.4 19.2-37.8 14.4l-67.8-22.5c-12.1 9.1-25.3 16.7-39.3 22.8l-14.4 69.9c-3.1 14.9-16.2 25.5-31.3 25.5l-59.8 0c-15.2 0-28.3-10.7-31.3-25.5l-14.4-69.9c-14.1-6-27.2-13.7-39.3-22.8L73.5 432.3c-14.4 4.8-30.2-1.2-37.8-14.4L5.8 366.1c-7.6-13.2-4.9-29.8 6.5-39.9l53.4-47.5c-.9-7.4-1.3-15-1.3-22.7s.5-15.3 1.3-22.7L12.3 185.8c-11.4-10.1-14-26.8-6.5-39.9L35.7 94.1c7.6-13.2 23.4-19.2 37.8-14.4l67.8 22.5c12.1-9.1 25.3-16.7 39.3-22.8L195.1 9.5zM256.3 336a80 80 0 1 0 -.6-160 80 80 0 1 0 .6 160z"></path></svg>'},6370:function(e){e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path fill="currentColor" d="M512 240c0 132.5-114.6 240-256 240-37.1 0-72.3-7.4-104.1-20.7L33.5 510.1c-9.4 4-20.2 1.7-27.1-5.8S-2 485.8 2.8 476.8l48.8-92.2C19.2 344.3 0 294.3 0 240 0 107.5 114.6 0 256 0S512 107.5 512 240z"></path></svg>'},3982:function(e){e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path fill="currentColor" d="M477.9 75.5c4.5-11.8 1.7-25.2-7.2-34.1s-22.3-11.8-34.1-7.2l-416 160C7.9 199-.3 211.2 0 224.7s9.1 25.4 21.9 29.6l176.8 58.9 58.9 176.8c4.3 12.8 16.1 21.6 29.6 21.9s25.7-7.9 30.6-20.5l160-416z"></path></svg>'},495:function(e){e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path fill="currentColor" d="M416 208c0 45.9-14.9 88.3-40 122.7L502.6 457.4c12.5 12.5 12.5 32.8 0 45.3s-32.8 12.5-45.3 0L330.7 376C296.3 401.1 253.9 416 208 416 93.1 416 0 322.9 0 208S93.1 0 208 0 416 93.1 416 208zM208 352a144 144 0 1 0 0-288 144 144 0 1 0 0 288z"></path></svg>'},9966:function(e){e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path fill="currentColor" d="M65.9 228.5c13.3-93 93.4-164.5 190.1-164.5 53 0 101 21.5 135.8 56.2 .2 .2 .4 .4 .6 .6l7.6 7.2-47.9 0c-17.7 0-32 14.3-32 32s14.3 32 32 32l128 0c17.7 0 32-14.3 32-32l0-128c0-17.7-14.3-32-32-32s-32 14.3-32 32l0 53.4-11.3-10.7C390.5 28.6 326.5 0 256 0 127 0 20.3 95.4 2.6 219.5 .1 237 12.2 253.2 29.7 255.7s33.7-9.7 36.2-27.1zm443.5 64c2.5-17.5-9.7-33.7-27.1-36.2s-33.7 9.7-36.2 27.1c-13.3 93-93.4 164.5-190.1 164.5-53 0-101-21.5-135.8-56.2-.2-.2-.4-.4-.6-.6l-7.6-7.2 47.9 0c17.7 0 32-14.3 32-32s-14.3-32-32-32L32 320c-8.5 0-16.7 3.4-22.7 9.5S-.1 343.7 0 352.3l1 127c.1 17.7 14.6 31.9 32.3 31.7S65.2 496.4 65 478.7l-.4-51.5 10.7 10.1c46.3 46.1 110.2 74.7 180.7 74.7 129 0 235.7-95.4 253.4-219.5z"></path></svg>'},9801:function(e){e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path fill="currentColor" d="M384 32c26.5 0 48 21.5 48 48 0 6.3-1.3 12.2-3.4 17.7 20.4 5.5 35.4 24.1 35.4 46.3 0 9.1-2.6 17.6-7 24.9 22.2 4.2 39 23.7 39 47.1 0 19.7-11.9 36.6-28.9 44 17 7.4 28.9 24.3 28.9 44 0 26.5-21.5 48-48 48l-160 0 28.2 70.4c2.5 6.3 3.8 13.1 3.8 19.9l0 4.2c0 27.3-22.1 49.4-49.4 49.4-18.7 0-35.8-10.6-44.2-27.3L170.1 356.3c-6.7-13.3-10.1-28-10.1-42.9l0-186.6c0-19.4 8.9-37.8 24-50l12.2-9.7C224.6 44.4 259.8 32 296.1 32L384 32zM80 96c17.7 0 32 14.3 32 32l0 256c0 17.7-14.3 32-32 32l-48 0c-17.7 0-32-14.3-32-32L0 128c0-17.7 14.3-32 32-32l48 0z"></path></svg>'},5910:function(e){e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path fill="currentColor" d="M80 160c17.7 0 32 14.3 32 32l0 256c0 17.7-14.3 32-32 32l-48 0c-17.7 0-32-14.3-32-32L0 192c0-17.7 14.3-32 32-32l48 0zM270.6 16C297.9 16 320 38.1 320 65.4l0 4.2c0 6.8-1.3 13.6-3.8 19.9L288 160 448 160c26.5 0 48 21.5 48 48 0 19.7-11.9 36.6-28.9 44 17 7.4 28.9 24.3 28.9 44 0 23.4-16.8 42.9-39 47.1 4.4 7.3 7 15.8 7 24.9 0 22.2-15 40.8-35.4 46.3 2.2 5.5 3.4 11.5 3.4 17.7 0 26.5-21.5 48-48 48l-87.9 0c-36.3 0-71.6-12.4-99.9-35.1L184 435.2c-15.2-12.1-24-30.5-24-50l0-186.6c0-14.9 3.5-29.6 10.1-42.9L226.3 43.3C234.7 26.6 251.8 16 270.6 16z"></path></svg>'},9671:function(e){e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 384 512"><path fill="currentColor" d="M55.1 73.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L147.2 256 9.9 393.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L192.5 301.3 329.9 438.6c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L237.8 256 375.1 118.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L192.5 210.7 55.1 73.4z"></path></svg>'},5545:function(e){e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512"><path fill="currentColor" d="M136.7 5.9C141.1-7.2 153.3-16 167.1-16l113.9 0c13.8 0 26 8.8 30.4 21.9L320 32 416 32c17.7 0 32 14.3 32 32s-14.3 32-32 32L32 96C14.3 96 0 81.7 0 64S14.3 32 32 32l96 0 8.7-26.1zM32 144l384 0 0 304c0 35.3-28.7 64-64 64L96 512c-35.3 0-64-28.7-64-64l0-304zm88 64c-13.3 0-24 10.7-24 24l0 192c0 13.3 10.7 24 24 24s24-10.7 24-24l0-192c0-13.3-10.7-24-24-24zm104 0c-13.3 0-24 10.7-24 24l0 192c0 13.3 10.7 24 24 24s24-10.7 24-24l0-192c0-13.3-10.7-24-24-24zm104 0c-13.3 0-24 10.7-24 24l0 192c0 13.3 10.7 24 24 24s24-10.7 24-24l0-192c0-13.3-10.7-24-24-24z"></path></svg>'},9587:function(e){e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path fill="currentColor" d="M399 384.2C376.9 345.8 335.4 320 288 320l-64 0c-47.4 0-88.9 25.8-111 64.2 35.2 39.2 86.2 63.8 143 63.8s107.8-24.7 143-63.8zM0 256a256 256 0 1 1 512 0 256 256 0 1 1 -512 0zm256 16a72 72 0 1 0 0-144 72 72 0 1 0 0 144z"></path></svg>'},6503:function(e,t,n){"use strict";n.r(t),n.d(t,{__esModule:function(){return s().B},default:function(){return rt}});var r=n.cw(function(e,t){var r;!function(){function o(e,t){var n=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(n>>16)<<16|65535&n}function i(e,t,n,r,i,s){return o((a=o(o(t,e),o(r,s)))<<(c=i)|a>>>32-c,n);var a,c}function s(e,t,n,r,o,s,a){return i(t&n|~t&r,e,t,o,s,a)}function a(e,t,n,r,o,s,a){return i(t&r|n&~r,e,t,o,s,a)}function c(e,t,n,r,o,s,a){return i(t^n^r,e,t,o,s,a)}function u(e,t,n,r,o,s,a){return i(n^(t|~r),e,t,o,s,a)}function l(e,t){var n,r,i,l,d;e[t>>5]|=128<<t%32,e[14+(t+64>>>9<<4)]=t;var h=1732584193,p=-271733879,f=-1732584194,m=271733878;for(n=0;n<e.length;n+=16)r=h,i=p,l=f,d=m,h=s(h,p,f,m,e[n],7,-680876936),m=s(m,h,p,f,e[n+1],12,-389564586),f=s(f,m,h,p,e[n+2],17,606105819),p=s(p,f,m,h,e[n+3],22,-1044525330),h=s(h,p,f,m,e[n+4],7,-176418897),m=s(m,h,p,f,e[n+5],12,1200080426),f=s(f,m,h,p,e[n+6],17,-1473231341),p=s(p,f,m,h,e[n+7],22,-45705983),h=s(h,p,f,m,e[n+8],7,1770035416),m=s(m,h,p,f,e[n+9],12,-1958414417),f=s(f,m,h,p,e[n+10],17,-42063),p=s(p,f,m,h,e[n+11],22,-1990404162),h=s(h,p,f,m,e[n+12],7,1804603682),m=s(m,h,p,f,e[n+13],12,-40341101),f=s(f,m,h,p,e[n+14],17,-1502002290),h=a(h,p=s(p,f,m,h,e[n+15],22,1236535329),f,m,e[n+1],5,-165796510),m=a(m,h,p,f,e[n+6],9,-1069501632),f=a(f,m,h,p,e[n+11],14,643717713),p=a(p,f,m,h,e[n],20,-373897302),h=a(h,p,f,m,e[n+5],5,-701558691),m=a(m,h,p,f,e[n+10],9,38016083),f=a(f,m,h,p,e[n+15],14,-660478335),p=a(p,f,m,h,e[n+4],20,-405537848),h=a(h,p,f,m,e[n+9],5,568446438),m=a(m,h,p,f,e[n+14],9,-1019803690),f=a(f,m,h,p,e[n+3],14,-187363961),p=a(p,f,m,h,e[n+8],20,1163531501),h=a(h,p,f,m,e[n+13],5,-1444681467),m=a(m,h,p,f,e[n+2],9,-51403784),f=a(f,m,h,p,e[n+7],14,1735328473),h=c(h,p=a(p,f,m,h,e[n+12],20,-1926607734),f,m,e[n+5],4,-378558),m=c(m,h,p,f,e[n+8],11,-2022574463),f=c(f,m,h,p,e[n+11],16,1839030562),p=c(p,f,m,h,e[n+14],23,-35309556),h=c(h,p,f,m,e[n+1],4,-1530992060),m=c(m,h,p,f,e[n+4],11,1272893353),f=c(f,m,h,p,e[n+7],16,-155497632),p=c(p,f,m,h,e[n+10],23,-1094730640),h=c(h,p,f,m,e[n+13],4,681279174),m=c(m,h,p,f,e[n],11,-358537222),f=c(f,m,h,p,e[n+3],16,-722521979),p=c(p,f,m,h,e[n+6],23,76029189),h=c(h,p,f,m,e[n+9],4,-640364487),m=c(m,h,p,f,e[n+12],11,-421815835),f=c(f,m,h,p,e[n+15],16,530742520),h=u(h,p=c(p,f,m,h,e[n+2],23,-995338651),f,m,e[n],6,-198630844),m=u(m,h,p,f,e[n+7],10,1126891415),f=u(f,m,h,p,e[n+14],15,-1416354905),p=u(p,f,m,h,e[n+5],21,-57434055),h=u(h,p,f,m,e[n+12],6,1700485571),m=u(m,h,p,f,e[n+3],10,-1894986606),f=u(f,m,h,p,e[n+10],15,-1051523),p=u(p,f,m,h,e[n+1],21,-2054922799),h=u(h,p,f,m,e[n+8],6,1873313359),m=u(m,h,p,f,e[n+15],10,-30611744),f=u(f,m,h,p,e[n+6],15,-1560198380),p=u(p,f,m,h,e[n+13],21,1309151649),h=u(h,p,f,m,e[n+4],6,-145523070),m=u(m,h,p,f,e[n+11],10,-1120210379),f=u(f,m,h,p,e[n+2],15,718787259),p=u(p,f,m,h,e[n+9],21,-343485551),h=o(h,r),p=o(p,i),f=o(f,l),m=o(m,d);return[h,p,f,m]}function d(e){var t,n="",r=32*e.length;for(t=0;t<r;t+=8)n+=String.fromCharCode(e[t>>5]>>>t%32&255);return n}function h(e){var t,n=[];for(n[(e.length>>2)-1]=void 0,t=0;t<n.length;t+=1)n[t]=0;var r=8*e.length;for(t=0;t<r;t+=8)n[t>>5]|=(255&e.charCodeAt(t/8))<<t%32;return n}function p(e){var t,n,r="0123456789abcdef",o="";for(n=0;n<e.length;n+=1)t=e.charCodeAt(n),o+=r.charAt(t>>>4&15)+r.charAt(15&t);return o}function f(e){return unescape(encodeURIComponent(e))}function m(e){return function(e){return d(l(h(e),8*e.length))}(f(e))}function g(e,t){return function(e,t){var n,r,o=h(e),i=[],s=[];for(i[15]=s[15]=void 0,o.length>16&&(o=l(o,8*e.length)),n=0;n<16;n+=1)i[n]=909522486^o[n],s[n]=1549556828^o[n];return r=l(i.concat(h(t)),512+8*t.length),d(l(s.concat(r),640))}(f(e),f(t))}function v(e,t,n){return t?n?g(t,e):p(g(t,e)):n?m(e):p(m(e))}void 0===(r=function(){return v}.call(t,n,t,e))||(e.exports=r)}()}),o=n.cw(function(e,t){var n=et().default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(x()),o=i();const s=[],a="@@clickoutsideContext";let c,u=0;function l(e,t,n){return function(r={},o={}){!(n&&n.context&&r.target&&o.target)||e.contains(r.target)||e.contains(o.target)||e===r.target||n.context.popperElm&&(n.context.popperElm.contains(r.target)||n.context.popperElm.contains(o.target))||(t.expression&&e[a].methodName&&n.context[e[a].methodName]?n.context[e[a].methodName]():e[a].bindingFn&&e[a].bindingFn())}}!r.default.prototype.$isServer&&(0,o.on)(document,"mousedown",e=>c=e),!r.default.prototype.$isServer&&(0,o.on)(document,"mouseup",e=>{s.forEach(t=>t[a].documentHandler(e,c))}),t.default={bind(e,t,n){s.push(e);const r=u++;e[a]={id:r,documentHandler:l(e,t,n),methodName:t.expression,bindingFn:t.value}},update(e,t,n){e[a].documentHandler=l(e,t,n),e[a].methodName=t.expression,e[a].bindingFn=t.value},unbind(e){let t=s.length;for(let n=0;n<t;n++)if(s[n][a].id===e[a].id){s.splice(n,1);break}delete e[a]}}}),i=n.cw(function(e,t){var n=et().default;Object.defineProperty(t,"__esModule",{value:!0}),t.addClass=function(e,t){if(e){for(var n=e.className,r=(t||"").split(" "),o=0,i=r.length;o<i;o++){var s=r[o];s&&(e.classList?e.classList.add(s):d(e,s)||(n+=" "+s))}e.classList||e.setAttribute("class",n)}},t.getStyle=t.getScrollContainer=void 0,t.hasClass=d,t.once=t.on=t.off=t.isScroll=t.isInContainer=void 0,t.removeClass=function(e,t){if(e&&t){for(var n=t.split(" "),r=" "+e.className+" ",o=0,i=n.length;o<i;o++){var s=n[o];s&&(e.classList?e.classList.remove(s):d(e,s)&&(r=r.replace(" "+s+" "," ")))}e.classList||e.setAttribute("class",a(r))}},t.setStyle=function e(t,n,r){if(t&&n)if("object"==typeof n)for(var o in n)n.hasOwnProperty(o)&&e(t,o,n[o]);else"opacity"===(n=c(n))&&s<9?t.style.filter=isNaN(r)?"":"alpha(opacity="+100*r+")":t.style[n]=r};const r=n(x()).default.prototype.$isServer,o=/([\:\-\_]+(.))/g,i=/^moz([A-Z])/,s=r?0:Number(document.documentMode),a=function(e){return(e||"").replace(/^[\s\uFEFF]+|[\s\uFEFF]+$/g,"")},c=function(e){return e.replace(o,function(e,t,n,r){return r?n.toUpperCase():n}).replace(i,"Moz$1")},u=t.on=!r&&document.addEventListener?function(e,t,n){e&&t&&n&&e.addEventListener(t,n,!1)}:function(e,t,n){e&&t&&n&&e.attachEvent("on"+t,n)},l=t.off=!r&&document.removeEventListener?function(e,t,n){e&&t&&e.removeEventListener(t,n,!1)}:function(e,t,n){e&&t&&e.detachEvent("on"+t,n)};function d(e,t){if(!e||!t)return!1;if(-1!==t.indexOf(" "))throw new Error("className should not contain space.");return e.classList?e.classList.contains(t):(" "+e.className+" ").indexOf(" "+t+" ")>-1}t.once=function(e,t,n){var r=function(){n&&n.apply(this,arguments),l(e,t,r)};u(e,t,r)};const h=t.getStyle=s<9?function(e,t){if(!r){if(!e||!t)return null;"float"===(t=c(t))&&(t="styleFloat");try{if("opacity"===t)try{return e.filters.item("alpha").opacity/100}catch(e){return 1}return e.style[t]||e.currentStyle?e.currentStyle[t]:null}catch(n){return e.style[t]}}}:function(e,t){if(!r){if(!e||!t)return null;"float"===(t=c(t))&&(t="cssFloat");try{var n=document.defaultView.getComputedStyle(e,"");return e.style[t]||n?n[t]:null}catch(n){return e.style[t]}}},p=(e,t)=>{if(!r)return h(e,null!=t?t?"overflow-y":"overflow-x":"overflow").match(/(scroll|auto|overlay)/)};t.isScroll=p,t.getScrollContainer=(e,t)=>{if(r)return;let n=e;for(;n;){if([window,document,document.documentElement].includes(n))return window;if(p(n,t))return n;n=n.parentNode}return n},t.isInContainer=(e,t)=>{if(r||!e||!t)return!1;const n=e.getBoundingClientRect();let o;return o=[window,document,document.documentElement,null,void 0].includes(t)?{top:0,right:window.innerWidth,bottom:window.innerHeight,left:0}:t.getBoundingClientRect(),n.top<o.bottom&&n.bottom>o.top&&n.right>o.left&&n.left<o.right}}),s=n.cw(function(e,t){var n=et().default;Object.defineProperty(t,"B",{value:!0}),t.A=void 0;var r=n(Ee()),o=n(Ie()),i=n(me());t.A={components:{TkComments:r.default,TkFooter:o.default,TkAdmin:i.default},data(){return{showAdmin:!1,showAdminEntry:!1}},methods:{onShowAdminEntry(e){this.showAdminEntry=e}}}}),a=n.cw(function(e,t){var n=et().default;Object.defineProperty(t,"B",{value:!0}),t.A=void 0;var r=n(X()),o=n(ie()),i=n(te()),s=n(le()),a=n(ee()),c=n(ue()),u=n(ne()),l=n(he());t.A={data(){return{iconComment:r.default,iconCommentSolid:o.default,iconLike:i.default,iconLikeSolid:s.default,iconDislike:a.default,iconDislikeSolid:c.default,iconDelete:u.default,iconDeleteSolid:l.default}},props:{liked:Boolean,disliked:Boolean,likeCount:Number,dislikeCount:Number,repliesCount:Number,showDislike:Boolean,showDelete:Boolean},computed:{likeCountStr(){return this.likeCount>0?`${this.likeCount}`:""},dislikeCountStr(){return this.dislikeCount>0?`${this.dislikeCount}`:""},repliesCountStr(){return this.repliesCount>0?`${this.repliesCount}`:""}},methods:{onLike(){this.$emit("like")},onDislike(){this.$emit("dislike")},onReply(){this.$emit("reply")},onDelete(){this.$emit("delete")}}}}),c=n.cw(function(e,t){var n=et().default;Object.defineProperty(t,"B",{value:!0}),t.A=void 0;var o=n(r()),i=n(ge()),s=n(ve()),a=n(ye()),c=n(_e()),u=U(),l=n(de());t.A={components:{TkAdminComment:i.default,TkAdminConfig:s.default,TkAdminImport:a.default,TkAdminExport:c.default},props:{show:Boolean},data(){return{iconClose:l.default,loading:!0,version:"",needUpdate:!1,isLogin:!1,isSetPassword:!0,isSetCredentials:!1,credentials:"",password:"",passwordConfirm:"",loginErrorMessage:"",activeTabName:"comment"}},computed:{canRegist(){return!this.isSetPassword&&!!this.password&&this.password===this.passwordConfirm&&(this.isSetCredentials||this.credentials)}},methods:{t:u.t,async onLogin(){if(!this.password)return void(this.loginErrorMessage=(0,u.t)("ADMIN_PASSWORD_REQUIRED"));this.loading=!0,this.loginErrorMessage="";const e=(0,o.default)(this.password),t=await(0,u.call)(this.$tcb,"LOGIN",{password:e});if(t.result.message)this.loginErrorMessage=t.result.message;else if(t.result.ticket)try{await this.$tcb.auth.customAuthProvider().signIn(t.result.ticket),u.logger.log("登录成功"),this.password="",this.checkAuth()}catch(e){u.logger.error("登录失败",e)}else 0===t.result.code&&(u.logger.log("登录成功"),localStorage.setItem("twikoo-access-token",e),this.password="",this.checkAuth());this.loading=!1},async onLogout(e){e.preventDefault(),this.loading=!0,this.$tcb?(await this.$tcb.auth.signOut(),await this.$tcb.auth.anonymousAuthProvider().signIn()):localStorage.removeItem("twikoo-access-token"),this.isLogin=!1,this.loading=!1},async onRegist(){this.loading=!0;const e=(0,o.default)(this.password),t=await(0,u.call)(this.$tcb,"SET_PASSWORD",{password:e,credentials:this.credentials});t.result.code?(this.loginErrorMessage=(0,u.t)("ADMIN_REGIST_FAILED"),t.result.message&&(this.loginErrorMessage+=","+t.result.message),u.logger.warn("Twikoo 注册失败",t)):(this.passwordMd5="",this.isSetPassword=!0,this.onLogin()),this.loading=!1},async onShow(){this.loading=!0,await this.checkAuth(),this.isLogin||(await this.checkIfPasswordSet(),this.focusPassword()),this.loading=!1},focusPassword(){setTimeout(()=>{this.$refs.focusme&&this.$refs.focusme.focus()},500)},async checkAuth(){if(this.$tcb){const e=await this.$tcb.auth.getCurrentUser();this.isLogin="CUSTOM"===e.loginType}else{const e=await(0,u.call)(this.$tcb,"GET_CONFIG");e&&e.result&&e.result.config&&(this.isLogin=e.result.config.IS_ADMIN)}},async checkIfPasswordSet(){try{const e=await(0,u.call)(this.$tcb,"GET_PASSWORD_STATUS");this.version=e.result.version,this.isSetPassword=e.result.status,this.isSetCredentials=!this.$tcb}catch(e){throw this.needUpdate=!0,this.loading=!1,e}},onClose(){this.$emit("close")}},watch:{show(e){e&&this.onShow()}}}}),u=n.cw(function(e,t){var n=et().default;Object.defineProperty(t,"B",{value:!0}),t.A=void 0;var r=F(),o=U(),i=j(),s=n(be()),a=n(Ae()),c=n(de());t.A={components:{TkAvatar:s.default,TkPagination:a.default},data(){return{loading:!0,comments:[],serverConfig:{},serverVersion:this.$twikoo.serverConfig.VERSION,clientVersion:i.version,count:0,pageSize:5,currentPage:1,filter:{keyword:"",type:""},securityAlert:null,iconClose:c.default}},methods:{t:o.t,displayCreated(e){return(0,o.timeago)(e.created)},convertLink(e){return(0,o.convertLink)(e)},async getComments(){this.loading=!0;const e=await(0,o.call)(this.$tcb,"COMMENT_GET_FOR_ADMIN",{per:this.pageSize,page:this.currentPage,keyword:this.filter.keyword,type:this.filter.type});e.result&&!e.result.code&&(this.count=e.result.count,this.comments=e.result.data.map(e=>({...e,comment:(0,o.sanitizeHtml)(e.comment)}))),this.$nextTick(()=>{(0,o.renderLinks)(this.$refs.comments),(0,o.renderMath)(this.$refs["comment-list"],this.$twikoo.katex),this.highlightCode()}),this.loading=!1},async getConfig(){const e=await(0,o.call)(this.$tcb,"GET_CONFIG_FOR_ADMIN");e.result&&!e.result.code&&(this.serverConfig=e.result.config,this.checkConfig())},checkConfig(){this.serverConfig.HIGHLIGHT||(this.serverConfig.HIGHLIGHT="true");let e={};const t=localStorage.getItem("twikoo");t&&(e=JSON.parse(t)),["nick","mail","avatar"].forEach(t=>{e[t]?this.serverConfig[t]=e[t]:this.serverConfig[t]=""}),!e.nick&&this.serverConfig.BLOGGER_NICK&&(e.nick=this.serverConfig.BLOGGER_NICK),!e.mail&&this.serverConfig.BLOGGER_EMAIL&&(e.mail=this.serverConfig.BLOGGER_EMAIL),!e.link&&this.serverConfig.SITE_URL&&(e.link=this.serverConfig.SITE_URL),localStorage.setItem("twikoo",JSON.stringify(e)),r.app.$emit("initMeta")},onPageSizeChange(e){this.pageSize=e,this.getComments()},switchPage(e){this.currentPage=e,this.getComments()},handleView(e){const t=`${e.url}#${e._id}`;try{if(new URL(t).hostname!==window.location.hostname)return void(this.securityAlert={commentId:e._id,message:(0,o.t)("ADMIN_COMMENT_SECURITY_ALERT"),url:t});window.open(t)}catch(n){try{new URL(t,window.location.origin),window.open(t)}catch(t){this.securityAlert={commentId:e._id,message:(0,o.t)("ADMIN_COMMENT_PARSE_ERROR"),url:e.url}}}},async handleDelete(e){confirm((0,o.t)("ADMIN_COMMENT_DELETE_CONFIRM"))&&(this.loading=!0,await(0,o.call)(this.$tcb,"COMMENT_DELETE_FOR_ADMIN",{id:e._id}),await this.getComments(),this.loading=!1)},handleSpam(e,t){this.setComment(e,{isSpam:t})},handleTop(e,t){this.setComment(e,{top:t})},async setComment(e,t){this.loading=!0,await(0,o.call)(this.$tcb,"COMMENT_SET_FOR_ADMIN",{id:e._id,set:t}),await this.getComments(),this.loading=!1},highlightCode(){"true"===this.serverConfig.HIGHLIGHT&&(0,o.renderCode)(this.$refs["comment-list"],this.serverConfig.HIGHLIGHT_THEME,this.serverConfig.HIGHLIGHT_PLUGIN)}},async mounted(){await Promise.all([this.getConfig(),this.getComments()]),this.highlightCode()}}}),l=n.cw(function(e,t){Object.defineProperty(t,"B",{value:!0}),t.A=void 0;var n=U(),r=j(),o=F();t.A={data(){return{loading:!0,settings:[{name:(0,n.t)("ADMIN_CONFIG_CATEGORY_COMMON"),items:[{key:"SITE_NAME",desc:(0,n.t)("ADMIN_CONFIG_ITEM_SITE_NAME"),ph:`${(0,n.t)("ADMIN_CONFIG_EXAMPLE")}虹墨空间站`,value:""},{key:"SITE_URL",desc:(0,n.t)("ADMIN_CONFIG_ITEM_SITE_URL"),ph:`${(0,n.t)("ADMIN_CONFIG_EXAMPLE")}https://www.imaegoo.com`,value:""},{key:"CORS_ALLOW_ORIGIN",desc:(0,n.t)("ADMIN_CONFIG_ITEM_CORS_ALLOW_ORIGIN"),ph:`${(0,n.t)("ADMIN_CONFIG_EXAMPLE")}https://www.imaegoo.com`,value:""},{key:"BLOGGER_NICK",desc:(0,n.t)("ADMIN_CONFIG_ITEM_BLOGGER_NICK"),ph:`${(0,n.t)("ADMIN_CONFIG_EXAMPLE")}iMaeGoo`,value:""},{key:"BLOGGER_EMAIL",desc:(0,n.t)("ADMIN_CONFIG_ITEM_BLOGGER_EMAIL"),ph:`${(0,n.t)("ADMIN_CONFIG_EXAMPLE")}12345@qq.com`,value:""},{key:"COMMENT_PAGE_SIZE",desc:(0,n.t)("ADMIN_CONFIG_ITEM_COMMENT_PAGE_SIZE"),ph:`${(0,n.t)("ADMIN_CONFIG_EXAMPLE")}8`,value:""},{key:"MASTER_TAG",desc:(0,n.t)("ADMIN_CONFIG_ITEM_MASTER_TAG"),ph:`${(0,n.t)("ADMIN_CONFIG_EXAMPLE")}站长`,value:""},{key:"COMMENT_BG_IMG",desc:(0,n.t)("ADMIN_CONFIG_ITEM_COMMENT_BG_IMG"),ph:"",value:""},{key:"GRAVATAR_CDN",desc:(0,n.t)("ADMIN_CONFIG_ITEM_GRAVATAR_CDN"),ph:`${(0,n.t)("ADMIN_CONFIG_EXAMPLE")}sdn.geekzu.org`,value:""},{key:"DEFAULT_GRAVATAR",desc:(0,n.t)("ADMIN_CONFIG_ITEM_DEFAULT_GRAVATAR"),ph:`${(0,n.t)("ADMIN_CONFIG_EXAMPLE")}mp`,value:""},{key:"COMMENT_PLACEHOLDER",desc:(0,n.t)("ADMIN_CONFIG_ITEM_COMMENT_PLACEHOLDER"),ph:`${(0,n.t)("ADMIN_CONFIG_EXAMPLE")}`,value:""},{key:"SHOW_ORDER",desc:(0,n.t)("ADMIN_CONFIG_ITEM_SHOW_ORDER"),ph:`${(0,n.t)("ADMIN_CONFIG_EXAMPLE")}true`,value:""},{key:"SHOW_DISLIKE",desc:(0,n.t)("ADMIN_CONFIG_ITEM_SHOW_DISLIKE"),ph:`${(0,n.t)("ADMIN_CONFIG_EXAMPLE")}true`,value:""},{key:"DISPLAYED_FIELDS",desc:(0,n.t)("ADMIN_CONFIG_ITEM_DISPLAYED_FIELDS"),ph:`${(0,n.t)("ADMIN_CONFIG_EXAMPLE")}nick,mail,link`,value:""},{key:"REQUIRED_FIELDS",desc:(0,n.t)("ADMIN_CONFIG_ITEM_REQUIRED_FIELDS"),ph:`${(0,n.t)("ADMIN_CONFIG_EXAMPLE")}nick,mail,link`,value:""},{key:"HIDE_ADMIN_CRYPT",desc:(0,n.t)("ADMIN_CONFIG_ITEM_HIDE_ADMIN_CRYPT"),ph:`${(0,n.t)("ADMIN_CONFIG_EXAMPLE")}admin`,value:""},{key:"QQ_API_KEY",desc:(0,n.t)("ADMIN_CONFIG_ITEM_QQ_API_KEY"),ph:`${(0,n.t)("ADMIN_CONFIG_EXAMPLE")}your_api_key`,value:""}]},{name:(0,n.t)("ADMIN_CONFIG_CATEGORY_PLUGIN"),items:[{key:"IMAGE_CDN",desc:(0,n.t)("ADMIN_CONFIG_ITEM_IMAGE_CDN"),options:[{value:"",label:(0,n.t)("ADMIN_CONFIG_IMAGE_CDN_NONE")},{value:"qcloud",label:"qcloud"},{value:"7bu",label:"7bu (https://7bu.top)"},{value:"see",label:"see (https://s.ee)"},{value:"lskypro",label:"lskypro"},{value:"piclist",label:"piclist"},{value:"easyimage",label:"easyimage"},{value:"chevereto",label:"chevereto"},{value:"s3",label:"S3 / R2 / MinIO"}],value:""},{key:"IMAGE_CDN_URL",desc:(0,n.t)("ADMIN_CONFIG_ITEM_IMAGE_CDN_URL"),ph:`${(0,n.t)("ADMIN_CONFIG_EXAMPLE")}https://piclist.example.com`,value:"",showIf:e=>["lskypro","piclist","easyimage"].includes(e("IMAGE_CDN"))},{key:"IMAGE_CDN_TOKEN",desc:(0,n.t)("ADMIN_CONFIG_ITEM_IMAGE_CDN_TOKEN"),ph:`${(0,n.t)("ADMIN_CONFIG_EXAMPLE")}example`,value:"",showIf:e=>e("IMAGE_CDN")&&"s3"!==e("IMAGE_CDN")},{key:"S3_REGION",desc:(0,n.t)("ADMIN_CONFIG_ITEM_S3_REGION"),ph:`${(0,n.t)("ADMIN_CONFIG_EXAMPLE")}us-east-1`,value:"",showIf:e=>"s3"===e("IMAGE_CDN")},{key:"S3_BUCKET",desc:(0,n.t)("ADMIN_CONFIG_ITEM_S3_BUCKET"),ph:`${(0,n.t)("ADMIN_CONFIG_EXAMPLE")}my-bucket`,value:"",showIf:e=>"s3"===e("IMAGE_CDN")},{key:"S3_ACCESS_KEY_ID",desc:(0,n.t)("ADMIN_CONFIG_ITEM_S3_ACCESS_KEY_ID"),ph:`${(0,n.t)("ADMIN_CONFIG_EXAMPLE")}AKIAIOSFODNN7EXAMPLE`,value:"",showIf:e=>"s3"===e("IMAGE_CDN")},{key:"S3_SECRET_ACCESS_KEY",desc:(0,n.t)("ADMIN_CONFIG_ITEM_S3_SECRET_ACCESS_KEY"),ph:`${(0,n.t)("ADMIN_CONFIG_EXAMPLE")}wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY`,value:"",secret:!0,showIf:e=>"s3"===e("IMAGE_CDN")},{key:"S3_ENDPOINT",desc:(0,n.t)("ADMIN_CONFIG_ITEM_S3_ENDPOINT"),ph:`${(0,n.t)("ADMIN_CONFIG_EXAMPLE")}https://xxx.r2.cloudflarestorage.com`,value:"",showIf:e=>"s3"===e("IMAGE_CDN")},{key:"S3_FORCE_PATH_STYLE",desc:(0,n.t)("ADMIN_CONFIG_ITEM_S3_FORCE_PATH_STYLE"),ph:`${(0,n.t)("ADMIN_CONFIG_EXAMPLE")}true`,value:"",showIf:e=>"s3"===e("IMAGE_CDN")},{key:"S3_CDN_URL",desc:(0,n.t)("ADMIN_CONFIG_ITEM_S3_CDN_URL"),ph:`${(0,n.t)("ADMIN_CONFIG_EXAMPLE")}https://cdn.example.com`,value:"",showIf:e=>"s3"===e("IMAGE_CDN")},{key:"S3_PATH_PREFIX",desc:(0,n.t)("ADMIN_CONFIG_ITEM_S3_PATH_PREFIX"),ph:`${(0,n.t)("ADMIN_CONFIG_EXAMPLE")}images/twikoo`,value:"",showIf:e=>"s3"===e("IMAGE_CDN")},{key:"NSFW_API_URL",desc:(0,n.t)("ADMIN_CONFIG_ITEM_NSFW_API_URL"),ph:`${(0,n.t)("ADMIN_CONFIG_EXAMPLE")}https://nsfw.example.com`,value:""},{key:"NSFW_THRESHOLD",desc:(0,n.t)("ADMIN_CONFIG_ITEM_NSFW_THRESHOLD"),ph:`${(0,n.t)("ADMIN_CONFIG_EXAMPLE")}0.5`,value:""},{key:"SHOW_EMOTION",desc:(0,n.t)("ADMIN_CONFIG_ITEM_SHOW_EMOTION"),ph:`${(0,n.t)("ADMIN_CONFIG_EXAMPLE")}false`,value:""},{key:"EMOTION_CDN",desc:(0,n.t)("ADMIN_CONFIG_ITEM_EMOTION_CDN"),ph:"",value:""},{key:"HIGHLIGHT",desc:(0,n.t)("ADMIN_CONFIG_ITEM_HIGHLIGHT"),ph:`${(0,n.t)("ADMIN_CONFIG_EXAMPLE")}false`,value:""},{key:"HIGHLIGHT_THEME",desc:(0,n.t)("ADMIN_CONFIG_ITEM_HIGHLIGHT_THEME"),ph:`${(0,n.t)("ADMIN_CONFIG_EXAMPLE")}tomorrow`,value:""},{key:"HIGHLIGHT_PLUGIN",desc:(0,n.t)("ADMIN_CONFIG_ITEM_HIGHLIGHT_PLUGIN"),ph:`${(0,n.t)("ADMIN_CONFIG_EXAMPLE")}showLanguage`,value:""},{key:"LIGHTBOX",desc:(0,n.t)("ADMIN_CONFIG_ITEM_LIGHTBOX"),ph:`${(0,n.t)("ADMIN_CONFIG_EXAMPLE")}true`,value:""}]},{name:(0,n.t)("ADMIN_CONFIG_CATEGORY_PRIVACY"),items:[{key:"SHOW_UA",desc:(0,n.t)("ADMIN_CONFIG_ITEM_SHOW_UA"),ph:`${(0,n.t)("ADMIN_CONFIG_EXAMPLE")}false`,value:""},{key:"SHOW_REGION",desc:(0,n.t)("ADMIN_CONFIG_ITEM_SHOW_REGION"),ph:`${(0,n.t)("ADMIN_CONFIG_EXAMPLE")}true`,value:""}]},{name:(0,n.t)("ADMIN_CONFIG_CATEGORY_SPAM"),items:[{key:"AKISMET_KEY",desc:(0,n.t)("ADMIN_CONFIG_ITEM_AKISMET_KEY"),ph:`${(0,n.t)("ADMIN_CONFIG_EXAMPLE")}8651783edxxx`,value:""},{key:"QCLOUD_SECRET_ID",desc:(0,n.t)("ADMIN_CONFIG_ITEM_QCLOUD_SECRET_ID"),ph:`${(0,n.t)("ADMIN_CONFIG_EXAMPLE")}AKI******************************IHw`,value:""},{key:"QCLOUD_SECRET_KEY",desc:(0,n.t)("ADMIN_CONFIG_ITEM_QCLOUD_SECRET_KEY"),ph:`${(0,n.t)("ADMIN_CONFIG_EXAMPLE")}Xrk**************************3D7`,value:"",secret:!0},{key:"QCLOUD_CMS_BIZTYPE",desc:(0,n.t)("ADMIN_CONFIG_ITEM_QCLOUD_CMS_BIZTYPE"),ph:`${(0,n.t)("ADMIN_CONFIG_EXAMPLE")}1787728329856520192`,value:""},{key:"LIMIT_PER_MINUTE",desc:(0,n.t)("ADMIN_CONFIG_ITEM_LIMIT_PER_MINUTE"),ph:`${(0,n.t)("ADMIN_CONFIG_EXAMPLE")}5`,value:""},{key:"LIMIT_PER_MINUTE_ALL",desc:(0,n.t)("ADMIN_CONFIG_ITEM_LIMIT_PER_MINUTE_ALL"),ph:`${(0,n.t)("ADMIN_CONFIG_EXAMPLE")}5`,value:""},{key:"LIMIT_LENGTH",desc:(0,n.t)("ADMIN_CONFIG_ITEM_LIMIT_LENGTH"),ph:`${(0,n.t)("ADMIN_CONFIG_EXAMPLE")}100`,value:""},{key:"FORBIDDEN_WORDS",desc:(0,n.t)("ADMIN_CONFIG_ITEM_FORBIDDEN_WORDS"),ph:`${(0,n.t)("ADMIN_CONFIG_EXAMPLE")}快递,空包`,value:""},{key:"BLOCKED_WORDS",desc:(0,n.t)("ADMIN_CONFIG_ITEM_BLOCKED_WORDS"),ph:`${(0,n.t)("ADMIN_CONFIG_EXAMPLE")}快递,空包`,value:""},{key:"NOTIFY_SPAM",desc:(0,n.t)("ADMIN_CONFIG_ITEM_NOTIFY_SPAM"),ph:`${(0,n.t)("ADMIN_CONFIG_EXAMPLE")}false`,value:""},{key:"LLM_API_KEY",desc:(0,n.t)("ADMIN_CONFIG_ITEM_LLM_API_KEY"),ph:"sk-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",value:"",secret:!0},{key:"LLM_API_ENDPOINT",desc:(0,n.t)("ADMIN_CONFIG_ITEM_LLM_API_ENDPOINT"),ph:"https://api.deepseek.com",value:""},{key:"LLM_MODEL",desc:(0,n.t)("ADMIN_CONFIG_ITEM_LLM_MODEL"),ph:"deepseek-v4-pro",value:""},{key:"LLM_SPAM_PROMPT",desc:(0,n.t)("ADMIN_CONFIG_ITEM_LLM_SPAM_PROMPT"),ph:"",value:"",type:"textarea"},{key:"LLM_MAX_RETRIES",desc:(0,n.t)("ADMIN_CONFIG_ITEM_LLM_MAX_RETRIES"),ph:"3",value:""}]},{name:(0,n.t)("ADMIN_CONFIG_CATEGORY_CAPTCHA"),items:[{key:"CAPTCHA_PROVIDER",desc:(0,n.t)("ADMIN_CONFIG_ITEM_CAPTCHA_PROVIDER"),options:[{value:"",label:(0,n.t)("ADMIN_CONFIG_CAPTCHA_NONE")},{value:"Turnstile",label:(0,n.t)("ADMIN_CONFIG_CAPTCHA_TURNSTILE")},{value:"Geetest",label:(0,n.t)("ADMIN_CONFIG_CAPTCHA_GEETEST")},{value:"Cap",label:(0,n.t)("ADMIN_CONFIG_CAPTCHA_CAP")}],value:""},{key:"TURNSTILE_SITE_KEY",desc:(0,n.t)("ADMIN_CONFIG_ITEM_TURNSTILE_SITE_KEY"),ph:`${(0,n.t)("ADMIN_CONFIG_EXAMPLE")}0x4AAAAAAAPLTtpBr_T12345`,value:"",showIf:e=>"Turnstile"===e("CAPTCHA_PROVIDER")},{key:"TURNSTILE_SECRET_KEY",desc:(0,n.t)("ADMIN_CONFIG_ITEM_TURNSTILE_SECRET_KEY"),ph:`${(0,n.t)("ADMIN_CONFIG_EXAMPLE")}0x4AAAAAAAPLTmBm6gHmOnOqC1iwmU12345`,value:"",secret:!0,showIf:e=>"Turnstile"===e("CAPTCHA_PROVIDER")},{key:"GEETEST_CAPTCHA_ID",desc:(0,n.t)("ADMIN_CONFIG_ITEM_GEETEST_CAPTCHA_ID"),ph:`${(0,n.t)("ADMIN_CONFIG_EXAMPLE")}your_captcha_id`,value:"",showIf:e=>"Geetest"===e("CAPTCHA_PROVIDER")},{key:"GEETEST_CAPTCHA_KEY",desc:(0,n.t)("ADMIN_CONFIG_ITEM_GEETEST_CAPTCHA_KEY"),ph:`${(0,n.t)("ADMIN_CONFIG_EXAMPLE")}your_captcha_key`,value:"",secret:!0,showIf:e=>"Geetest"===e("CAPTCHA_PROVIDER")},{key:"CAP_API_ENDPOINT",desc:(0,n.t)("ADMIN_CONFIG_ITEM_CAP_API_ENDPOINT"),ph:`${(0,n.t)("ADMIN_CONFIG_EXAMPLE")}https://cap.example.com/d9256640cb53/(留空=内嵌,无需外部服务)`,value:"",showIf:e=>"Cap"===e("CAPTCHA_PROVIDER")},{key:"CAP_SECRET_KEY",desc:(0,n.t)("ADMIN_CONFIG_ITEM_CAP_SECRET_KEY"),ph:`${(0,n.t)("ADMIN_CONFIG_EXAMPLE")}仅外部 Cap 需要;内嵌模式可留空`,value:"",secret:!0,showIf:e=>"Cap"===e("CAPTCHA_PROVIDER")}]},{name:(0,n.t)("ADMIN_CONFIG_CATEGORY_IM"),items:[{key:"PUSHOO_CHANNEL",desc:(0,n.t)("ADMIN_CONFIG_ITEM_PUSHOO_CHANNEL"),ph:`${(0,n.t)("ADMIN_CONFIG_EXAMPLE")}pushdeer`,value:""},{key:"PUSHOO_TOKEN",desc:(0,n.t)("ADMIN_CONFIG_ITEM_PUSHOO_TOKEN"),ph:`${(0,n.t)("ADMIN_CONFIG_EXAMPLE")}PDU431TfFHZICvR6lJrFBswSRN1cJ*****zzFvR`,value:""},{key:"SC_MAIL_NOTIFY",desc:(0,n.t)("ADMIN_CONFIG_ITEM_SC_MAIL_NOTIFY"),ph:`${(0,n.t)("ADMIN_CONFIG_EXAMPLE")}true`,value:""}]},{name:(0,n.t)("ADMIN_CONFIG_CATEGORY_MAIL"),items:[{key:"SENDER_EMAIL",desc:(0,n.t)("ADMIN_CONFIG_ITEM_SENDER_EMAIL"),ph:`${(0,n.t)("ADMIN_CONFIG_EXAMPLE")}blog@imaegoo.com`,value:""},{key:"SENDER_NAME",desc:(0,n.t)("ADMIN_CONFIG_ITEM_SENDER_NAME"),ph:`${(0,n.t)("ADMIN_CONFIG_EXAMPLE")}虹墨空间站评论提醒`,value:""},{key:"SMTP_SERVICE",desc:(0,n.t)("ADMIN_CONFIG_ITEM_SMTP_SERVICE"),ph:`${(0,n.t)("ADMIN_CONFIG_EXAMPLE")}QQ`,value:""},{key:"SMTP_HOST",desc:(0,n.t)("ADMIN_CONFIG_ITEM_SMTP_HOST"),ph:`${(0,n.t)("ADMIN_CONFIG_EXAMPLE")}smtp.qq.com`,value:""},{key:"SMTP_PORT",desc:(0,n.t)("ADMIN_CONFIG_ITEM_SMTP_PORT"),ph:`${(0,n.t)("ADMIN_CONFIG_EXAMPLE")}465`,value:""},{key:"SMTP_SECURE",desc:(0,n.t)("ADMIN_CONFIG_ITEM_SMTP_SECURE"),ph:`${(0,n.t)("ADMIN_CONFIG_EXAMPLE")}true`,value:""},{key:"SMTP_USER",desc:(0,n.t)("ADMIN_CONFIG_ITEM_SMTP_USER"),ph:`${(0,n.t)("ADMIN_CONFIG_EXAMPLE")}blog@imaegoo.com`,value:""},{key:"SMTP_PASS",desc:(0,n.t)("ADMIN_CONFIG_ITEM_SMTP_PASS"),ph:`${(0,n.t)("ADMIN_CONFIG_EXAMPLE")}password`,value:"",secret:!0},{key:"MAIL_SUBJECT",desc:(0,n.t)("ADMIN_CONFIG_ITEM_MAIL_SUBJECT"),ph:`${(0,n.t)("ADMIN_CONFIG_EXAMPLE")}您在虹墨空间站上的评论收到了回复`,value:""},{key:"MAIL_TEMPLATE",desc:(0,n.t)("ADMIN_CONFIG_ITEM_MAIL_TEMPLATE"),ph:"",value:"",type:"textarea"},{key:"MAIL_SUBJECT_ADMIN",desc:(0,n.t)("ADMIN_CONFIG_ITEM_MAIL_SUBJECT_ADMIN"),ph:`${(0,n.t)("ADMIN_CONFIG_EXAMPLE")}虹墨空间站上有新评论了`,value:""},{key:"MAIL_TEMPLATE_ADMIN",desc:(0,n.t)("ADMIN_CONFIG_ITEM_MAIL_TEMPLATE_ADMIN"),ph:"",value:"",type:"textarea"}]}],serverConfig:{},serverVersion:this.$twikoo.serverConfig.VERSION,clientVersion:r.version,message:"",emailTestAddress:"",emailTestResult:""}},methods:{t:n.t,async readConfig(){this.loading=!0;const e=await(0,n.call)(this.$tcb,"GET_CONFIG_FOR_ADMIN");e.result&&!e.result.code&&(this.serverConfig=e.result.config,void 0===this.serverConfig.CAPTCHA_PROVIDER&&(this.serverConfig.TURNSTILE_SITE_KEY?this.serverConfig.CAPTCHA_PROVIDER="Turnstile":this.serverConfig.GEETEST_CAPTCHA_ID&&(this.serverConfig.CAPTCHA_PROVIDER="Geetest")),void 0===this.serverConfig.IMAGE_CDN&&(this.serverConfig.SHOW_IMAGE,this.serverConfig.IMAGE_CDN=""),this.resetConfig()),this.loading=!1},resetConfig(){for(const e of this.settings)for(const t of e.items)void 0!==this.serverConfig[t.key]?t.value=this.serverConfig[t.key]:t.value=""},showSetting(e){return"function"!=typeof e.showIf||e.showIf(e=>{for(const t of this.settings){const n=t.items.find(t=>t.key===e);if(n)return n.value}return null})},async saveConfig(){this.loading=!0,this.message="正在保存";const e={};for(const t of this.settings)for(const n of t.items)this.serverConfig[n.key]!==n.value&&(e[n.key]=n.value);void 0!==e.IMAGE_CDN&&(e.SHOW_IMAGE=e.IMAGE_CDN?"true":"false"),n.logger.log("保存配置",e),await(0,n.call)(this.$tcb,"SET_CONFIG",{config:e}),await this.readConfig(),o.app.$emit("configUpdated"),this.message="保存成功",this.loading=!1},async testEmail(){this.loading=!0;const e=await(0,n.call)(this.$tcb,"EMAIL_TEST",{mail:this.emailTestAddress});n.logger.log("邮件测试",e),this.emailTestResult=JSON.stringify(e),this.loading=!1}},mounted(){this.readConfig()}}}),d=n.cw(function(e,t){Object.defineProperty(t,"B",{value:!0}),t.A=void 0;var n=U();t.A={data(){return{loading:!1}},methods:{t:n.t,async doExport(e){this.loading=!0;try{const t=await(0,n.call)(this.$tcb,"COMMENT_EXPORT_FOR_ADMIN",{collection:e});t.result.data&&this.downloadJson(`twikoo-${e}.json`,t.result.data)}finally{this.loading=!1}},downloadJson(e,t){const n=t instanceof Object?JSON.stringify(t,null,2):t,r=window.URL||window.webkitURL||window,o=new Blob([n]),i=document.createElementNS("http://www.w3.org/1999/xhtml","a");i.href=r.createObjectURL(o),i.download=e,i.click()}}}}),h=n.cw(function(e,t){Object.defineProperty(t,"B",{value:!0}),t.A=void 0;var n=U();t.A={data(){return{loading:!1,source:"",logText:"",warnText:{valine:(0,n.t)("ADMIN_IMPORT_TIP_VALINE"),disqus:(0,n.t)("ADMIN_IMPORT_TIP_DISQUS"),artalk:(0,n.t)("ADMIN_IMPORT_TIP_ARTALK"),artalk2:"",twikoo:""}}},methods:{t:n.t,async uploadFile(){if(!this.source)return void this.log((0,n.t)("ADMIN_IMPORT_SOURCE_REQUIRED"));const e=this.$refs.inputFile.files[0];if(e){this.log((0,n.t)("ADMIN_IMPORT_START")),this.loading=!0;try{if(this.$tcb){const t=await this.$tcb.app.uploadFile({cloudPath:`import/${Date.now()}`,filePath:e,onUploadProgress:e=>{const t=Math.round(100*e.loaded/e.total);this.log(`${(0,n.t)("ADMIN_IMPORT_UPLOADING")}${t}%`)}});this.log(`${(0,n.t)("ADMIN_IMPORT_UPLOADED")}${t.fileID}`),await this.importFile(t.fileID)}else await this.importFileToVercel(e)}catch(e){console.error(e),this.log(e.message)}this.loading=!1}else this.log((0,n.t)("ADMIN_IMPORT_FILE_REQUIRED"))},async importFile(e){this.log(`${(0,n.t)("ADMIN_IMPORT_IMPORTING")}${this.source}`);const t=await(0,n.call)(this.$tcb,"COMMENT_IMPORT_FOR_ADMIN",{fileId:e,source:this.source});this.logText+=t.result.log,this.log(`${(0,n.t)("ADMIN_IMPORT_IMPORTED")}${this.source}`)},async importFileToVercel(e){this.log(`${(0,n.t)("ADMIN_IMPORT_IMPORTING")}${this.source}`);const t=await(0,n.call)(this.$tcb,"COMMENT_IMPORT_FOR_ADMIN",{file:await(0,n.readAsText)(e),source:this.source});this.logText+=t.result.log,this.log(`${(0,n.t)("ADMIN_IMPORT_IMPORTED")}${this.source}`)},log(e){this.logText+=`${(new Date).toLocaleString()} ${e}\n`,this.$nextTick(this.scrollLogToBottom)},scrollLogToBottom(){if(this.$refs.logTextArea){const e=this.$refs.logTextArea.$refs.textarea;e.scrollTop=e.scrollHeight}}}}}),p=n.cw(function(e,t){var n=et().default;Object.defineProperty(t,"B",{value:!0}),t.A=void 0;var o=n(r()),i=tt(),s=U(),a=n(pe());t.A={props:{config:Object,avatar:String,nick:String,mail:String,mailMd5:String,link:String},data(){return{iconUser:a.default}},computed:{gravatarCdn(){return this.config&&this.config.GRAVATAR_CDN?this.config.GRAVATAR_CDN:"weavatar.com"},defaultGravatar(){return this.config&&this.config.DEFAULT_GRAVATAR?this.config.DEFAULT_GRAVATAR:`initials&name=${this.nick}`},avatarInner(){if(this.avatar)return this.avatar;if(this.mailMd5)return`https://${this.gravatarCdn}/avatar/${this.mailMd5}?d=${this.defaultGravatar}`;if(this.mail&&(0,s.isQQ)(this.mail))return(0,s.getQQAvatar)(this.mail);if(this.mail){const e="cravatar.cn"===this.gravatarCdn?o.default:i.sha256;return`https://${this.gravatarCdn}/avatar/${e((0,s.normalizeMail)(this.mail))}?d=${this.defaultGravatar}`}return""}},methods:{onClick(){this.$emit("click"),this.link&&(window.open((0,s.convertLink)(this.link),"_blank").opener=null)}}}}),f=n.cw(function(e,t){var n=et().default;Object.defineProperty(t,"B",{value:!0}),t.A=void 0;var r=U(),o=n(fe()),i=n(be()),s=n(Oe()),a=n(Q()),c=n(G()),u=n($()),l=n(W()),d=n(Y()),h=n(B()),p=n(H()),f=n(K()),m=n(z()),g=n(q()),v=n(re()),_=n(se());const y={win:a.default,mac:c.default,ipad:c.default,iphone:c.default,ios:c.default,android:u.default,ubuntu:d.default,linux:l.default},b={edge:g.default,chrome:h.default,firefox:p.default,safari:f.default,explorer:m.default,ie:m.default};t.A={name:"tk-comment",components:{TkAction:o.default,TkAvatar:i.default,TkSubmit:s.default},data(){return{pid:"",like:0,liked:!1,disliked:!1,ups:0,downs:0,likeLoading:!1,isExpanded:!1,hasExpand:!1,isContentExpanded:!1,hasContentExpand:!1,isLogin:!1}},props:{comment:Object,replyId:String,replying:Boolean,config:Object},computed:{sanitizedComment(){return(0,r.sanitizeHtml)(this.comment.comment)},displayCreated(){return(0,r.timeago)(this.comment.created)},jsonTimestamp(){return new Date(this.comment.created).toJSON()},localeTime(){return new Date(this.comment.created).toLocaleString()},iconOs(){return this.getIconBy(this.comment.os,y)},iconBrowser(){return this.getIconBy(this.comment.browser,b)},iconLocation:()=>_.default,showExpand(){return this.hasExpand&&!this.isExpanded},showCollapse(){return this.hasExpand&&this.isExpanded},showContentExpand(){return this.hasContentExpand&&!this.isContentExpanded},showContentCollapse(){return this.hasContentExpand&&this.isContentExpanded},convertedLink(){return(0,r.convertLink)(this.comment.link)}},methods:{t:r.t,getIconBy(e,t){const n=e.toLowerCase();for(const e in t)if(-1!==n.indexOf(e))return t[e];return v.default},showExpandIfNeed(){this.comment.replies&&this.comment.replies.length>0&&this.$refs["tk-replies"]&&(this.hasExpand=this.$refs["tk-replies"].scrollHeight>236)},showContentExpandIfNeed(){this.hasContentExpand=this.hasContentExpand||this.$refs["tk-content"].scrollHeight>500},showContentExpandIfNeedAfterImagesLoaded(){this.$refs["tk-content"].querySelectorAll("img").forEach(e=>{e.onload=this.showContentExpandIfNeed})},scrollToComment(){-1!==window.location.hash.indexOf(this.comment.id)&&(this.$refs["tk-comment"].scrollIntoView({behavior:"smooth"}),this.$emit("expand"))},scrollToPid(e){const t=document.getElementById(e);t&&t.scrollIntoView({behavior:"smooth",block:"center"})},async onLike(){this.likeLoading||(this.likeLoading=!0,await(0,r.call)(this.$tcb,"COMMENT_LIKE",{id:this.comment.id,type:"up"}),this.liked?this.ups--:(this.ups++,this.disliked&&this.downs--),this.liked=!this.liked,this.disliked=!1,this.likeLoading=!1)},async onDislike(){this.likeLoading||(this.likeLoading=!0,await(0,r.call)(this.$tcb,"COMMENT_LIKE",{id:this.comment.id,type:"down"}),this.disliked?this.downs--:(this.downs++,this.liked&&this.ups--),this.disliked=!this.disliked,this.liked=!1,this.likeLoading=!1)},onReply(e){this.pid=e,this.$emit("reply",this.comment.id)},async onDelete(){if(!confirm((0,r.t)("COMMENT_DELETE_CONFIRM")))return;const{result:e}=await(0,r.call)(this.$tcb,"COMMENT_DELETE_FOR_USER",{id:this.comment.id});e.code?alert(e.message):this.$emit("load")},onReplyReply(e){this.pid=e,e?this.$emit("reply",this.comment.id):this.$emit("reply","")},onCancel(){this.pid="",this.$emit("reply","")},onLoad(){this.pid="",this.$emit("reply",""),this.$emit("load"),this.onExpand()},onRefreshed(){this.$emit("refreshed"),this.$nextTick(()=>{this.comment.replies&&this.comment.replies.length>0&&this.$refs["tk-replies"]&&this.$refs["tk-replies"].lastElementChild.scrollIntoView({behavior:"smooth",block:"center"})})},onExpand(){this.isExpanded=!0},onCollapse(){this.isExpanded=!1},onContentExpand(){this.isContentExpanded=!0},onContentCollapse(){this.isContentExpanded=!1},async checkAuth(){if(this.$tcb){const e=await this.$tcb.auth.getCurrentUser();this.isLogin="CUSTOM"===e.loginType}else this.isLogin=this.$twikoo.serverConfig&&this.$twikoo.serverConfig.IS_ADMIN},handleSpam(e){this.setComment({isSpam:e})},handleTop(e){this.setComment({top:e})},popupLightbox(e){if("true"!==this.$twikoo.serverConfig.LIGHTBOX)return;const{target:t}=e;if("IMG"===t.tagName&&!t.classList.contains("tk-owo-emotion")){const e=document.createElement("div");e.className="tk-lightbox";const n=document.createElement("img");n.className="tk-lightbox-image",n.src=t.src,e.appendChild(n),e.addEventListener("click",()=>{document.body.removeChild(e)}),document.body.appendChild(e)}},async setComment(e){this.loading=!0,await(0,r.call)(this.$tcb,"COMMENT_SET_FOR_ADMIN",{id:this.comment.id,set:e}),this.loading=!1,Object.assign(this.comment,e)}},mounted(){this.$nextTick(this.showContentExpandIfNeed),this.$nextTick(this.showContentExpandIfNeedAfterImagesLoaded),this.$nextTick(this.showExpandIfNeed),this.$nextTick(this.scrollToComment),this.$nextTick(()=>{(0,r.renderLinks)(this.$refs.comment),(0,r.renderMath)(this.$refs.comment,this.$twikoo.katex)}),this.checkAuth()},watch:{"comment.like":{handler:function(e){this.like=this.comment.like},immediate:!0},"comment.ups":{handler:function(e){this.ups=this.comment.ups,this.liked=this.comment.liked},immediate:!0},"comment.downs":{handler:function(e){this.downs=this.comment.downs,this.disliked=this.comment.disliked},immediate:!0},"config.HIGHLIGHT":{handler:function(e){"true"===e&&this.$nextTick(()=>{(0,r.renderCode)(this.$refs.comment,this.config.HIGHLIGHT_THEME,this.config.HIGHLIGHT_PLUGIN)})},immediate:!0}}}}),m=n.cw(function(e,t){var n=et().default;Object.defineProperty(t,"B",{value:!0}),t.A=void 0;var r=n(oe()),o=n(ce()),i=n(ae()),s=n(x()),a=U(),c=F(),u=n(we()),l=n(Oe());t.A={components:{TkSubmit:l.default,TkComment:u.default},props:{showAdminEntry:Boolean},data(){return{loading:!0,loadingMore:!1,errorMessage:"",config:{},comments:[],showExpand:!0,count:0,replyId:"",loadedPages:1,currentSort:"newest",searchInput:"",searchKeyword:"",showSearch:!1,requestVersion:0,iconSetting:r.default,iconRefresh:o.default,iconSearch:i.default}},methods:{t:a.t,async initConfig(){const e=await(0,a.call)(this.$tcb,"GET_CONFIG");e&&e.result&&e.result.config&&(this.config=e.result.config,s.default.prototype.$twikoo.serverConfig=e.result.config)},async initComments(){const e=++this.requestVersion;this.loading=!0,this.errorMessage="";const t={url:(0,a.getUrl)(this.$twikoo.path),sort:this.currentSort,keyword:this.searchKeyword};this.searchKeyword&&(t.page=1),await this.getComments(t),e===this.requestVersion&&(this.loading=!1)},resetComments(){this.comments=[],this.loadedPages=1},search(){const e=this.searchInput.trim();this.searchInput=e,this.searchKeyword!==e&&(this.searchKeyword=e,this.resetComments(),this.initComments())},clearSearch(){this.searchKeyword&&(this.searchKeyword="",this.resetComments(),this.initComments())},toggleSearch(){this.showSearch=!this.showSearch,this.showSearch?this.$nextTick(()=>this.$refs.searchInputRef&&this.$refs.searchInputRef.focus()):(this.searchInput="",this.clearSearch())},refresh(){this.resetComments(),this.initComments()},async refreshPreservingState(){const e=++this.requestVersion;this.loading=!0,this.errorMessage="";try{const e=(0,a.getUrl)(this.$twikoo.path),t=this.loadedPages,n={url:e,sort:this.currentSort,keyword:this.searchKeyword};if(this.searchKeyword&&(n.page=1),!await this.getComments(n))return;for(let n=2;n<=t&&await this.loadNextPage(e,n);n++);}finally{e===this.requestVersion&&(this.loading=!1)}e===this.requestVersion&&this.$emit("refreshed")},setSort(e){this.currentSort!==e&&(this.currentSort=e,this.resetComments(),this.initComments())},async onExpand(){if(!this.loadingMore){this.loadingMore=!0,this.loadedPages++;try{const e=(0,a.getUrl)(this.$twikoo.path);await this.loadNextPage(e,this.loadedPages)}finally{this.loadingMore=!1}}},getOldestCreated(){let e=1/0;for(const t of this.comments)!t.top&&t.created<e&&(e=t.created);return e===1/0?void 0:e},async loadNextPage(e,t=this.loadedPages){if(this.searchKeyword)return this.getComments({url:e,page:t,sort:this.currentSort,keyword:this.searchKeyword});const n=this.getOldestCreated();return void 0!==n&&this.getComments({url:e,before:n,sort:this.currentSort,keyword:this.searchKeyword})},onCommentLoaded(){"function"==typeof this.$twikoo.onCommentLoaded&&this.$twikoo.onCommentLoaded()},async getComments(e){const t=this.requestVersion;try{const n=await(0,a.call)(this.$tcb,"COMMENT_GET",e);if(t!==this.requestVersion)return!1;if(n&&n.result&&n.result.message)return this.errorMessage=n.result.message,!1;if(n&&n.result&&n.result.data)return this.comments=e.before||e.page>1?this.comments.concat(n.result.data):n.result.data,this.showExpand=n.result.more,this.count=n.result.count||this.comments.length||0,this.$nextTick(this.onCommentLoaded),!0}catch(e){t===this.requestVersion&&(this.errorMessage=e.message)}return!1},onReply(e){this.replyId=e},openAdmin(){this.$emit("admin")}},mounted(){this.initConfig(),this.initComments(),c.app.$on("configUpdated",this.initConfig)}}}),g=n.cw(function(e,t){Object.defineProperty(t,"B",{value:!0}),t.A=void 0;var n=j();t.A={data(){return{version:n.version}}}}),v=n.cw(function(e,t){Object.defineProperty(t,"B",{value:!0}),t.A=void 0;var n=F(),r=U(),o=D();const i=/^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/;t.A={props:{nick:String,mail:String,link:String,config:Object},data(){return{metaInputs:[{key:"nick",locale:(0,r.t)("META_INPUT_NICK"),name:"nick",type:"text"},{key:"mail",locale:(0,r.t)("META_INPUT_MAIL"),name:"mail",type:"email"},{key:"link",locale:(0,r.t)("META_INPUT_LINK"),name:"link",type:"text"}],metaData:{nick:"",mail:"",link:""}}},computed:{displayedFields(){const e=this.config.DISPLAYED_FIELDS;return{nick:!e||-1!==e.indexOf("nick"),mail:!e||-1!==e.indexOf("mail"),link:!e||-1!==e.indexOf("link")}},displayedInputs(){return this.metaInputs.filter(e=>!!this.displayedFields[e.key])},requiredFields(){const e=this.config.REQUIRED_FIELDS;return{nick:!e||-1!==e.indexOf("nick"),mail:!e||-1!==e.indexOf("mail"),link:!!e&&-1!==e.indexOf("link")}}},methods:{t:r.t,initMeta(){const e=localStorage.getItem("twikoo");if(e){const t=JSON.parse(e);this.metaData.nick=t.nick,this.metaData.mail=t.mail,this.metaData.link=t.link}this.updateMeta()},updateMeta(){localStorage.setItem("twikoo",JSON.stringify(this.metaData)),this.$emit("update",{meta:this.metaData,valid:this.checkValid()})},checkValid(){const e=i.test(this.metaData.mail);return(this.metaData.nick||!this.requiredFields.nick)&&(e||!this.requiredFields.mail)&&(this.metaData.link||!this.requiredFields.link)},checkQQ(){if((0,r.isQQ)(this.metaData.nick)){const e=this.metaData.nick.replace(/@qq.com/gi,""),t=`${e}@qq.com`;this.metaData.mail=t,this.getQQNick(e)}},clearNickIfFromQQInput(){(0,r.isQQ)(this.metaData.nick)&&(this.metaData.nick="",this.updateMeta())},async getQQNick(e){try{const{result:t}=await(0,o.call)(null,"GET_QQ_NICK",{qq:e});t&&t.nick?(this.metaData.nick=t.nick,this.updateMeta()):this.clearNickIfFromQQInput()}catch(e){console.warn("获取 QQ 昵称失败:",e),this.clearNickIfFromQQInput()}},checkAdminCrypt(){const e=this.$root.$children[0],t=!this.config.HIDE_ADMIN_CRYPT||this.config.HIDE_ADMIN_CRYPT===this.metaData.nick;e.onShowAdminEntry(t)},onMetaChange(){this.checkQQ(),this.updateMeta(),this.checkAdminCrypt()}},watch:{nick(e){this.metaData.nick=e},mail(e){this.metaData.mail=e},link(e){this.metaData.link=e},requiredFields:{handler(e,t){this.$emit("update",{meta:this.metaData,valid:this.checkValid()})},deep:!0},"config.VERSION"(){this.checkAdminCrypt()}},mounted(){n.app.$on("initMeta",this.initMeta),this.initMeta()}}}),_=n.cw(function(e,t){Object.defineProperty(t,"B",{value:!0}),t.A=void 0;var n=U();t.A={props:{pageSize:{type:Number,default:10},total:{type:Number,default:0}},data(){return{currentPage:1,userInput:0,userPageSize:0,pagers:[]}},computed:{pageCount(){return Math.ceil(this.total/this.pageSize)}},methods:{t:n.t,generatePager(){const e=[];for(let t=1;t<=this.pageCount;t++)Math.abs(this.currentPage-t)<3||1===t||t===this.pageCount?e.push({title:`${t}`,page:t}):Math.abs(this.currentPage-t)<4&&e.push({title:"...",page:t});this.pagers=e},currentChange(e){this.currentPage=parseInt(e),this.currentPage>this.pageCount&&(this.currentPage=this.pageCount),this.userInput=0,this.$emit("current-change",this.currentPage),this.generatePager()},pageSizeChamge(e){this.userPageSize=0,this.$emit("page-size-change",parseInt(e))},handleInput(e){this.userInput=parseInt(e)},handleInputPageSize(e){this.userPageSize=parseInt(e)}},watch:{total:{handler(){this.generatePager()},immediate:!0},pageSize:{handler(){this.generatePager()}}}}}),y=n.cw(function(e,t){var n=et().default;Object.defineProperty(t,"B",{value:!0}),t.A=void 0;var r=n(V()),i=n(J()),s=n(Z()),a=n(o()),c=n(L()),u=U(),l=n(be()),d=n(Se());const h=["apng","bmp","gif","jpeg","jpg","png","svg","tif","tiff","webp"];t.A={components:{TkAvatar:l.default,TkMetaInput:d.default},directives:{Clickoutside:a.default},props:{replyId:String,pid:String,config:Object},data(){return{isSending:!1,isPreviewing:!1,isMetaValid:!1,errorMessage:"",owo:null,comment:"",commentHtml:"",nick:"",mail:"",link:"",turnstileLoad:null,geeTestLoad:null,geeTestCaptchaObj:null,capLoad:null,iconMarkdown:r.default,iconEmotion:s.default,iconImage:i.default}},computed:{captchaProvider(){return void 0!==this.config.CAPTCHA_PROVIDER?this.config.CAPTCHA_PROVIDER:this.config.TURNSTILE_SITE_KEY?"Turnstile":this.config.GEETEST_CAPTCHA_ID?"Geetest":this.config.CAP_API_ENDPOINT||this.config.CAP_BUILTIN?"Cap":""},showImage(){return!!this.config.IMAGE_CDN},canSend(){return!this.isSending&&!!this.isMetaValid&&!!this.comment.trim()},textarea(){return this.$refs.textarea?this.$refs.textarea.$refs.textarea:null},commentPlaceholder(){let e=this.$twikoo.placeholder||this.config.COMMENT_PLACEHOLDER||"";return e=e.replace(/<br>/g,"\n"),e},maxLength(){let e=parseInt(this.config.LIMIT_LENGTH);return Number.isNaN(e)&&(e=500),e>0?e:null}},methods:{t:u.t,initDraft(){const e=localStorage.getItem("twikoo-draft");!this.comment&&e&&(this.comment=e)},saveDraft(){localStorage.setItem("twikoo-draft",this.comment)},async initOwo(){if("true"===this.config.SHOW_EMOTION){const e=await(0,u.initOwoEmotions)(this.config.EMOTION_CDN||"https://owo.imaegoo.com/owo.json");this.owo=new c.default({logo:s.default,container:this.$refs.owo,target:this.textarea,odata:e,position:"down",maxHeight:"250px"}),u.marked.setOptions({odata:(0,u.initMarkedOwo)(e)})}},initTurnstile(){"Turnstile"===this.captchaProvider&&this.config.TURNSTILE_SITE_KEY&&(window.turnstile?this.turnstileLoad=Promise.resolve():this.turnstileLoad=new Promise((e,t)=>{const n=document.createElement("script");n.src="https://challenges.cloudflare.com/turnstile/v0/api.js?render=explicit",n.onload=e,n.onerror=t,this.$refs["turnstile-container"].appendChild(n)}))},getTurnstileToken(){return new Promise((e,t)=>{this.turnstileLoad.then(()=>{const n=window.turnstile.render(this.$refs.turnstile,{sitekey:this.config.TURNSTILE_SITE_KEY,callback:t=>{e(t),setTimeout(()=>{window.turnstile.remove(n)},1e3)},"error-callback":t,"expired-callback":()=>{t(new Error("验证码已过期,请重试"))},"timeout-callback":()=>{t(new Error("验证码超时,请重试"))}})})})},initGeeTest(){"Geetest"===this.captchaProvider&&this.config.GEETEST_CAPTCHA_ID&&(window.initGeetest4?this.geeTestLoad=Promise.resolve():this.geeTestLoad=new Promise((e,t)=>{const n=document.createElement("script");n.src="https://static.geetest.com/v4/gt4.js",n.onload=e,n.onerror=t,this.$refs["geetest-container"].appendChild(n)}))},getGeeTestToken(){return new Promise((e,t)=>{this.geeTestLoad.then(()=>{window.initGeetest4({captchaId:this.config.GEETEST_CAPTCHA_ID,product:"bind",language:"zho"},n=>{this.geeTestCaptchaObj=n,n.onReady(()=>{n.showCaptcha()}).onSuccess(()=>{const t=n.getValidate();e({geeTestLotNumber:t.lot_number,geeTestCaptchaOutput:t.captcha_output,geeTestPassToken:t.pass_token,geeTestGenTime:t.gen_time})}).onError(e=>{t(e)}).onClose(()=>{t(new Error("验证已取消"))})})})})},initCap(){"Cap"===this.captchaProvider&&(this.config.CAP_API_ENDPOINT||this.config.CAP_BUILTIN)&&(this.config.CAP_BUILTIN&&(window.CAP_CUSTOM_FETCH=async(e,t={})=>{const n=String(e),r=t.body?JSON.parse(t.body):{};try{if(n.includes("challenge")){const e=await(0,u.call)(this.$tcb,"CAP_CHALLENGE"),t=e.result||e;return t.code&&0!==t.code?{ok:!1,json:async()=>({error:t.message||"challenge_failed"})}:{ok:!0,json:async()=>({challenge:t.challenge,token:t.token,expires:t.expires})}}if(n.includes("redeem")){const e=await(0,u.call)(this.$tcb,"CAP_REDEEM",r),t=e.result||e;return t.code&&0!==t.code&&!0!==t.success?{ok:!0,json:async()=>({success:!1,error:t.message||t.error||"redeem_failed"})}:{ok:!0,json:async()=>({success:t.success,token:t.token,expires:t.expires,message:t.message,error:t.error||t.message})}}return{ok:!1,json:async()=>({error:"unknown_cap_path"})}}catch(e){return{ok:!1,json:async()=>({error:e.message||"cap_fetch_failed"})}}}),window.Cap||customElements.get("cap-widget")?this.capLoad=Promise.resolve():this.capLoad=new Promise((e,t)=>{const n=document.createElement("script");n.src="https://cdn.jsdmirror.com/npm/@cap.js/widget",n.onload=e,n.onerror=t,this.$refs["cap-container"].appendChild(n)}))},getCapToken(){return new Promise((e,t)=>{this.capLoad.then(()=>{const n=document.createElement("cap-widget");n.setAttribute("id","cap-widget");const r=this.config.CAP_BUILTIN?"/":this.config.CAP_API_ENDPOINT;n.setAttribute("data-cap-api-endpoint",r),this.$refs["cap-container"].appendChild(n);const o=()=>{n&&n.parentNode&&n.parentNode.removeChild(n)};n.solve().then(n=>{o(),n.success?e(n.token):t(new Error("Cap验证失败"))}).catch(e=>{o(),t(e)})}).catch(t)})},onMetaUpdate(e){this.nick=e.meta.nick,this.mail=e.meta.mail,this.link=e.meta.link,this.isMetaValid=e.valid},cancel(){this.$emit("cancel")},onCommentInput(){this.saveDraft(),this.updatePreview()},preview(){this.isPreviewing=!this.isPreviewing,this.updatePreview()},updatePreview(){this.isPreviewing&&(this.commentHtml=(0,u.sanitizeHtml)((0,u.marked)(this.comment)),this.$nextTick(()=>{(0,u.renderLinks)(this.$refs["comment-preview"]),(0,u.renderMath)(this.$refs["comment-preview"],this.$twikoo.katex),"true"===this.config.HIGHLIGHT&&(0,u.renderCode)(this.$refs["comment-preview"],this.config.HIGHLIGHT_THEME,this.config.HIGHLIGHT_PLUGIN)}))},async send(){this.isSending=!0;try{if(this.comment.match(new RegExp(`!\\[${(0,u.t)("IMAGE_UPLOAD_PLACEHOLDER")}.+\\]\\(\\)`)))throw new Error((0,u.t)("IMAGE_UPLOAD_PLEASE_WAIT"));const e={nick:this.nick,mail:this.mail,link:this.link,ua:await(0,u.getUserAgent)(),url:(0,u.getUrl)(this.$twikoo.path),href:(0,u.getHref)(this.$twikoo.href),comment:(0,u.marked)(this.comment),pid:this.pid?this.pid:this.replyId,rid:this.replyId};if("Turnstile"===this.captchaProvider&&this.config.TURNSTILE_SITE_KEY&&(e.turnstileToken=await this.getTurnstileToken()),"Geetest"===this.captchaProvider&&this.config.GEETEST_CAPTCHA_ID){const t=await this.getGeeTestToken();e.geeTestLotNumber=t.geeTestLotNumber,e.geeTestCaptchaOutput=t.geeTestCaptchaOutput,e.geeTestPassToken=t.geeTestPassToken,e.geeTestGenTime=t.geeTestGenTime}"Cap"===this.captchaProvider&&(this.config.CAP_API_ENDPOINT||this.config.CAP_BUILTIN)&&(e.capToken=await this.getCapToken());const t=await(0,u.call)(this.$tcb,"COMMENT_SUBMIT",e);if(!(t&&t.result&&t.result.id))throw new Error(t.result.message);this.comment="",this.errorMessage="",this.$emit("load"),this.saveDraft()}catch(e){u.logger.error("评论失败",e),this.errorMessage=`${(0,u.t)("COMMENT_FAILED")}: ${e&&e.message}`}finally{this.isSending=!1}},addEventListener(){this.textarea&&this.textarea.addEventListener("paste",this.onPaste)},onBgImgChange(){this.config.COMMENT_BG_IMG&&this.textarea&&(this.textarea.style["background-image"]=`url("${this.config.COMMENT_BG_IMG}")`)},onEnterKeyUp(e){(e.ctrlKey||e.metaKey)&&this.canSend&&(this.send(),e.preventDefault())},closeOwo(){this.owo&&this.owo.container.classList.contains("OwO-open")&&this.owo.toggle()},openSelectImage(){this.$refs.inputFile.click()},onSelectImage(){const e=this.$refs.inputFile.files[0];this.parseAndUploadPhoto(e)},onPaste(e){if(!e.clipboardData)return;let t;e.clipboardData.files[0]?t=e.clipboardData.files[0]:e.clipboardData.items[0]&&e.clipboardData.items[0].getAsFile()&&(t=e.clipboardData.items[0].getAsFile()),this.parseAndUploadPhoto(t)},async parseAndUploadPhoto(e){if(!e||!this.showImage)return;const t=e.name.split("."),n=t.length>1?t.pop():"";if(-1===h.indexOf(n.toLowerCase()))return;const r=this.getUserId(),o=`${Date.now()}-${r}`,i=t.join("."),s="image/gif"===e.type,a=s?i:i+".webp",c=s?n:"webp";this.paste(this.getImagePlaceholder(o,c));const l=this.config.IMAGE_CDN,d=await this.compressImage(e);!this.$tcb||l&&"qcloud"!==l?l?this.uploadPhotoToThirdParty(o,a,c,d):this.uploadFailed(o,c,(0,u.t)("IMAGE_UPLOAD_FAILED_NO_CONF")):this.uploadPhotoToQcloud(o,a,c,d)},getUserId(){return this.$tcb?this.$tcb.auth.currentUser.uid:localStorage.getItem("twikoo-access-token")},async compressImage(e){return"image/gif"===e.type?e:new Promise(t=>{const n=new FileReader;n.onload=n=>{const r=new Image;r.onload=()=>{const n=document.createElement("canvas");let o=r.width,i=r.height;const s=1920;(o>s||i>s)&&(o>i?(i=i*s/o,o=s):(o=o*s/i,i=s)),n.width=o,n.height=i,n.getContext("2d").drawImage(r,0,0,o,i);const a="image/webp",c=e.name.replace(/\.[^.]+$/,".webp");n.toBlob(e=>{t(new File([e],c,{type:a}))},a,.85)},r.src=n.target.result},n.readAsDataURL(e)})},async uploadPhotoToQcloud(e,t,n,r){try{const o=await this.$tcb.app.uploadFile({cloudPath:`tk-img/${e}.${n}`,filePath:r});if(o.fileID){const r=(await this.$tcb.app.getTempFileURL({fileList:[o.fileID]})).fileList[0].tempFileURL;this.uploadCompleted(e,t,n,r)}}catch(t){console.error(t),this.uploadFailed(e,n,t.message)}},async uploadPhotoToThirdParty(e,t,n,r){try{const{result:o}=await(0,u.call)(this.$tcb,"UPLOAD_IMAGE",{fileName:t,photo:await(0,u.blobToDataURL)(r)});o.data?this.uploadCompleted(e,t,n,o.data.url):1041===o.code?this.uploadFailed(e,n,(0,u.t)("IMAGE_UPLOAD_NSFW")):(console.error(o),this.uploadFailed(e,n,o.err))}catch(t){console.error(t),this.uploadFailed(e,n,t.message)}},uploadCompleted(e,t,n,r){t=t.replace(/[[\]]/g,"_"),this.comment=this.comment.replace(this.getImagePlaceholder(e,n),`![${t}](${r})`),this.$refs.inputFile.value=""},uploadFailed(e,t,n){this.comment=this.comment.replace(this.getImagePlaceholder(e,t),`_${(0,u.t)("IMAGE_UPLOAD_FAILED")}: ${n}_`),this.$refs.inputFile.value=""},paste(e){if(document.selection)document.selection.createRange().text=e;else if(this.textarea.selectionStart||0===this.textarea.selectionStart){const t=this.textarea.selectionStart,n=this.textarea.selectionEnd;this.comment=this.comment.substring(0,t)+e+this.comment.substring(n,this.comment.length),this.textarea.selectionStart=t+e.length,this.textarea.selectionEnd=t+e.length}else this.comment+=e},getImagePlaceholder(e,t){return`![${(0,u.t)("IMAGE_UPLOAD_PLACEHOLDER")} ${e}.${t}]()`}},mounted(){this.pid&&this.$refs["tk-submit"].scrollIntoView({behavior:"instant",block:"center"}),this.initDraft(),this.initOwo(),this.addEventListener(),this.onBgImgChange(),this.initTurnstile(),this.initGeeTest(),this.initCap()},watch:{"config.SHOW_EMOTION":function(){this.initOwo()},"config.COMMENT_BG_IMG":function(){this.onBgImgChange()},"config.TURNSTILE_SITE_KEY":function(){this.initTurnstile()},"config.GEETEST_CAPTCHA_ID":function(){this.initGeeTest()},"config.CAP_API_ENDPOINT":function(){this.initCap()},captchaProvider:function(){this.initTurnstile(),this.initGeeTest(),this.initCap()}}}}),b=n.cw(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.staticRenderFns=t.render=void 0,t.render=function(){var e=this,t=e._self._c;return t("div",{staticClass:"twikoo",attrs:{id:"twikoo"}},[t("tk-comments",{attrs:{"show-admin-entry":e.showAdminEntry},on:{admin:function(t){e.showAdmin=!0}}}),e._v(" "),t("tk-footer"),e._v(" "),t("tk-admin",{attrs:{show:e.showAdmin},on:{close:function(t){e.showAdmin=!1}}})],1)},t.staticRenderFns=[]}),w=n.cw(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.staticRenderFns=t.render=void 0,t.render=function(){var e=this,t=e._self._c;return t("div",{staticClass:"tk-action"},[e.showDelete?t("button",{staticClass:"tk-action-link",on:{click:e.onDelete}},[t("span",{staticClass:"tk-action-icon",domProps:{innerHTML:e._s(e.iconDelete)}}),e._v(" "),t("span",{staticClass:"tk-action-icon tk-action-icon-solid",domProps:{innerHTML:e._s(e.iconDeleteSolid)}}),e._v(" "),t("span",{staticClass:"tk-action-count"})]):e._e(),e._v(" "),t("button",{staticClass:"tk-action-link",class:{"tk-liked":e.liked},on:{click:e.onLike}},[t("span",{staticClass:"tk-action-icon",domProps:{innerHTML:e._s(e.iconLike)}}),e._v(" "),t("span",{staticClass:"tk-action-icon tk-action-icon-solid",domProps:{innerHTML:e._s(e.iconLikeSolid)}}),e._v(" "),t("span",{staticClass:"tk-action-count"},[e._v(e._s(e.likeCountStr))])]),e._v(" "),e.showDislike?t("button",{staticClass:"tk-action-link",class:{"tk-disliked":e.disliked},on:{click:e.onDislike}},[t("span",{staticClass:"tk-action-icon",domProps:{innerHTML:e._s(e.iconDislike)}}),e._v(" "),t("span",{staticClass:"tk-action-icon tk-action-icon-solid",domProps:{innerHTML:e._s(e.iconDislikeSolid)}}),e._v(" "),t("span",{staticClass:"tk-action-count"},[e._v(e._s(e.dislikeCountStr))])]):e._e(),e._v(" "),t("button",{staticClass:"tk-action-link",on:{click:e.onReply}},[t("span",{staticClass:"tk-action-icon",domProps:{innerHTML:e._s(e.iconComment)}}),e._v(" "),t("span",{staticClass:"tk-action-icon tk-action-icon-solid",domProps:{innerHTML:e._s(e.iconCommentSolid)}}),e._v(" "),t("span",{staticClass:"tk-action-count"},[e._v(e._s(e.repliesCountStr))])])])},t.staticRenderFns=[]}),E=n.cw(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.staticRenderFns=t.render=void 0,t.render=function(){var e=this,t=e._self._c;return t("div",{staticClass:"tk-admin-container"},[t("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticClass:"tk-admin",class:{__show:e.show}},[t("button",{staticClass:"tk-admin-close",domProps:{innerHTML:e._s(e.iconClose)},on:{click:e.onClose}}),e._v(" "),e.needUpdate?t("div",{staticClass:"tk-login-title"},[t("div",[e._v(e._s(e.t("ADMIN_NEED_UPDATE")))]),e._v(" "),t("a",{attrs:{href:"https://twikoo.js.org/update.html",target:"_blank"}},[e._v("https://twikoo.js.org/update.html")])]):e._e(),e._v(" "),e.needUpdate?e._e():t("div",[!e.isLogin&&e.isSetPassword?t("div",{staticClass:"tk-login"},[t("div",{staticClass:"tk-login-title"},[e._v(e._s(e.t("ADMIN_LOGIN_TITLE")))]),e._v(" "),t("form",[t("input",{attrs:{type:"hidden"}}),e._v(" "),t("el-input",{ref:"focusme",staticClass:"tk-password",attrs:{placeholder:e.t("ADMIN_PASSWORD_PLACEHOLDER"),"show-password":""},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.onLogin.apply(null,arguments)}},model:{value:e.password,callback:function(t){e.password=t},expression:"password"}},[t("template",{slot:"prepend"},[e._v(e._s(e.t("ADMIN_PASSWORD")))]),e._v(" "),t("el-button",{attrs:{slot:"append"},on:{click:e.onLogin},slot:"append"},[e._v(e._s(e.t("ADMIN_LOGIN")))])],2)],1),e._v(" "),e.loginErrorMessage?t("div",{staticClass:"tk-login-msg"},[e._v("\n "+e._s(e.loginErrorMessage)+"\n "),t("a",{attrs:{href:"https://twikoo.js.org/faq.html",rel:"noopener noreferrer",target:"_blank"}},[e._v(e._s(e.t("ADMIN_FORGOT")))])]):e._e()]):e._e(),e._v(" "),e.isLogin||e.isSetPassword?e._e():t("div",{staticClass:"tk-regist"},[t("div",{staticClass:"tk-login-title"},[e._v(e._s(e.t("ADMIN_LOGIN_TITLE")))]),e._v(" "),t("form",[e.isSetCredentials?e._e():t("el-input",{ref:"focusme",staticClass:"tk-password",attrs:{placeholder:e.t("ADMIN_CREDENTIALS_PLACEHOLDER")},model:{value:e.credentials,callback:function(t){e.credentials=t},expression:"credentials"}},[t("template",{slot:"prepend"},[e._v(e._s(e.t("ADMIN_CREDENTIALS")))])],2),e._v(" "),t("el-input",{staticClass:"tk-password",attrs:{placeholder:e.t("ADMIN_SET_PASSWORD_PLACEHOLDER"),"show-password":""},model:{value:e.password,callback:function(t){e.password=t},expression:"password"}},[t("template",{slot:"prepend"},[e._v(e._s(e.t("ADMIN_SET_PASSWORD")))])],2),e._v(" "),t("el-input",{staticClass:"tk-password",attrs:{placeholder:e.t("ADMIN_SET_PASSWORD_CONFIRM_PLACEHOLDER"),"show-password":""},model:{value:e.passwordConfirm,callback:function(t){e.passwordConfirm=t},expression:"passwordConfirm"}},[t("template",{slot:"prepend"},[e._v(e._s(e.t("ADMIN_SET_PASSWORD_CONFIRM")))])],2)],1),e._v(" "),t("el-button",{staticClass:"tk-regist-button",attrs:{disabled:!e.canRegist},on:{click:e.onRegist}},[e._v(e._s(e.t("ADMIN_REGIST")))]),e._v(" "),e.loginErrorMessage?t("div",{staticClass:"tk-login-msg"},[e._v(e._s(e.loginErrorMessage))]):e._e(),e._v(" "),e.isSetCredentials?e._e():t("div",{staticClass:"tk-login-msg"},[t("a",{attrs:{href:"https://twikoo.js.org/faq.html",rel:"noopener noreferrer",target:"_blank"}},[e._v(e._s(e.t("ADMIN_CREDENTIALS_FAQ")))])])],1),e._v(" "),e.isLogin?t("div",{staticClass:"tk-panel"},[t("div",{staticClass:"tk-panel-title"},[t("div",[e._v(e._s(e.t("ADMIN_TITLE")))]),e._v(" "),t("a",{staticClass:"tk-panel-logout",attrs:{href:"#"},on:{click:function(t){return t.preventDefault(),e.onLogout.apply(null,arguments)}}},[e._v(e._s(e.t("ADMIN_LOGOUT")))])]),e._v(" "),t("div",{staticClass:"tk-tabs"},[t("div",{staticClass:"tk-tab",class:{__active:"comment"===e.activeTabName},on:{click:function(t){e.activeTabName="comment"}}},[e._v(e._s(e.t("ADMIN_COMMENT")))]),e._v(" "),t("div",{staticClass:"tk-tab",class:{__active:"config"===e.activeTabName},on:{click:function(t){e.activeTabName="config"}}},[e._v(e._s(e.t("ADMIN_CONFIG")))]),e._v(" "),t("div",{staticClass:"tk-tab",class:{__active:"import"===e.activeTabName},on:{click:function(t){e.activeTabName="import"}}},[e._v(e._s(e.t("ADMIN_IMPORT")))]),e._v(" "),t("div",{staticClass:"tk-tab",class:{__active:"export"===e.activeTabName},on:{click:function(t){e.activeTabName="export"}}},[e._v(e._s(e.t("ADMIN_EXPORT")))])]),e._v(" "),t("tk-admin-comment",{directives:[{name:"show",rawName:"v-show",value:"comment"===e.activeTabName,expression:"activeTabName === 'comment'"}]}),e._v(" "),t("tk-admin-config",{directives:[{name:"show",rawName:"v-show",value:"config"===e.activeTabName,expression:"activeTabName === 'config'"}]}),e._v(" "),t("tk-admin-import",{directives:[{name:"show",rawName:"v-show",value:"import"===e.activeTabName,expression:"activeTabName === 'import'"}]}),e._v(" "),t("tk-admin-export",{directives:[{name:"show",rawName:"v-show",value:"export"===e.activeTabName,expression:"activeTabName === 'export'"}]})],1):e._e()])])])},t.staticRenderFns=[]}),I=n.cw(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.staticRenderFns=t.render=void 0,t.render=function(){var e=this,t=e._self._c;return t("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticClass:"tk-admin-comment"},[e.clientVersion!==e.serverVersion?t("div",{staticClass:"tk-admin-warn"},[t("span",[e._v(e._s(e.t("ADMIN_CLIENT_VERSION"))+e._s(e.clientVersion)+",")]),e._v(" "),t("span",[e._v(e._s(e.t("ADMIN_SERVER_VERSION"))+e._s(e.serverVersion)+",")]),e._v(" "),e._m(0)]):e._e(),e._v(" "),t("div",{staticClass:"tk-admin-comment-filter"},[t("el-input",{staticClass:"tk-admin-comment-filter-keyword",attrs:{size:"small",placeholder:e.t("ADMIN_COMMENT_SEARCH_PLACEHOLDER")},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.getComments.apply(null,arguments)}},model:{value:e.filter.keyword,callback:function(t){e.$set(e.filter,"keyword",t)},expression:"filter.keyword"}}),e._v(" "),t("select",{directives:[{name:"model",rawName:"v-model",value:e.filter.type,expression:"filter.type"}],staticClass:"tk-admin-comment-filter-type",on:{change:function(t){var n=Array.prototype.filter.call(t.target.options,function(e){return e.selected}).map(function(e){return"_value"in e?e._value:e.value});e.$set(e.filter,"type",t.target.multiple?n:n[0])}}},[t("option",{attrs:{value:""}},[e._v(e._s(e.t("ADMIN_COMMENT_FILTER_ALL")))]),e._v(" "),t("option",{attrs:{value:"VISIBLE"}},[e._v(e._s(e.t("ADMIN_COMMENT_FILTER_VISIBLE")))]),e._v(" "),t("option",{attrs:{value:"HIDDEN"}},[e._v(e._s(e.t("ADMIN_COMMENT_FILTER_HIDDEN")))])]),e._v(" "),t("el-button",{attrs:{size:"small",type:"primary"},on:{click:e.getComments}},[e._v(e._s(e.t("ADMIN_COMMENT_SEARCH")))])],1),e._v(" "),t("div",{ref:"comment-list",staticClass:"tk-admin-comment-list"},e._l(e.comments,function(n){return t("div",{key:n._id,staticClass:"tk-admin-comment-item"},[t("div",{staticClass:"tk-admin-comment-meta"},[t("tk-avatar",{attrs:{config:e.serverConfig,avatar:n.avatar,nick:n.nick,mail:n.mail,link:n.link}}),e._v(" "),n.link?e._e():t("span",[e._v(e._s(n.nick)+" ")]),e._v(" "),n.link?t("a",{attrs:{href:e.convertLink(n.link),target:"_blank"}},[e._v(e._s(n.nick)+" ")]):e._e(),e._v(" "),n.mail?t("span",[e._v("("),t("a",{attrs:{href:`mailto:${n.mail}`}},[e._v(e._s(n.mail))]),e._v(") ")]):e._e(),e._v(" "),n.isSpam?t("span",[e._v(e._s(e.t("ADMIN_COMMENT_IS_SPAM_SUFFIX"))+" ")]):e._e(),e._v(" "),t("span",{staticClass:"tk-time"},[e._v(e._s(e.displayCreated(n))+" ")]),e._v(" "),t("span",{attrs:{title:n.ua}},[e._v(e._s(n.ipRegion))])],1),e._v(" "),t("div",{ref:"comments",refInFor:!0,staticClass:"tk-content",domProps:{innerHTML:e._s(n.comment)}}),e._v(" "),e.securityAlert&&e.securityAlert.commentId===n._id?t("div",{staticClass:"tk-admin-warn tk-admin-security-alert"},[t("a",{staticClass:"tk-admin-close",attrs:{href:"#"},domProps:{innerHTML:e._s(e.iconClose)},on:{click:function(t){t.preventDefault(),e.securityAlert=null}}}),e._v(" "),t("div",{staticClass:"tk-admin-security-alert-message"},[e._v(e._s(e.securityAlert.message))]),e._v(" "),e.securityAlert.url?t("div",{staticClass:"tk-admin-security-alert-url"},[t("code",[e._v(e._s(e.securityAlert.url))])]):e._e()]):e._e(),e._v(" "),t("div",{staticClass:"tk-admin-actions"},[t("el-button",{attrs:{size:"mini",type:"text"},on:{click:function(t){return e.handleView(n)}}},[e._v(e._s(e.t("ADMIN_COMMENT_VIEW")))]),e._v(" "),n.isSpam?t("el-button",{attrs:{size:"mini",type:"text"},on:{click:function(t){return e.handleSpam(n,!1)}}},[e._v(e._s(e.t("ADMIN_COMMENT_SHOW")))]):e._e(),e._v(" "),n.isSpam?e._e():t("el-button",{attrs:{size:"mini",type:"text"},on:{click:function(t){return e.handleSpam(n,!0)}}},[e._v(e._s(e.t("ADMIN_COMMENT_HIDE")))]),e._v(" "),!n.rid&&n.top?t("el-button",{attrs:{size:"mini",type:"text"},on:{click:function(t){return e.handleTop(n,!1)}}},[e._v(e._s(e.t("ADMIN_COMMENT_UNTOP")))]):e._e(),e._v(" "),n.rid||n.top?e._e():t("el-button",{attrs:{size:"mini",type:"text"},on:{click:function(t){return e.handleTop(n,!0)}}},[e._v(e._s(e.t("ADMIN_COMMENT_TOP")))]),e._v(" "),t("el-button",{attrs:{size:"mini",type:"text"},on:{click:function(t){return e.handleDelete(n)}}},[e._v(e._s(e.t("ADMIN_COMMENT_DELETE")))])],1)])}),0),e._v(" "),t("tk-pagination",{attrs:{"page-size":e.pageSize,total:e.count},on:{"page-size-change":e.onPageSizeChange,"current-change":e.switchPage}})],1)},t.staticRenderFns=[function(){var e=this,t=e._self._c;return t("span",[e._v("请参考 "),t("a",{attrs:{href:"https://twikoo.js.org/update.html",target:"_blank"}},[e._v("版本更新")]),e._v(" 进行升级")])}]}),S=n.cw(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.staticRenderFns=t.render=void 0,t.render=function(){var e=this,t=e._self._c;return t("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticClass:"tk-admin-config"},[e.clientVersion!==e.serverVersion?t("div",{staticClass:"tk-admin-warn"},[t("span",[e._v(e._s(e.t("ADMIN_CLIENT_VERSION"))+e._s(e.clientVersion)+",")]),e._v(" "),t("span",[e._v(e._s(e.t("ADMIN_SERVER_VERSION"))+e._s(e.serverVersion)+",")]),e._v(" "),e._m(0)]):e._e(),e._v(" "),t("form",{on:{submit:function(t){return t.preventDefault(),e.saveConfig.apply(null,arguments)}}},[t("div",{staticClass:"tk-admin-config-groups"},[e._l(e.settings,function(n){return t("details",{key:n.name,staticClass:"tk-admin-config-group"},[t("summary",{staticClass:"tk-admin-config-group-title"},[e._v(e._s(n.name))]),e._v(" "),e._l(n.items,function(n){return t("div",{directives:[{name:"show",rawName:"v-show",value:e.showSetting(n),expression:"showSetting(setting)"}],key:n.key,staticClass:"tk-admin-config-item"},[t("div",{staticClass:"tk-admin-config-title",attrs:{title:n.key}},[e._v(e._s(n.key))]),e._v(" "),t("div",{staticClass:"tk-admin-config-input"},[n.options?t("select",{directives:[{name:"model",rawName:"v-model",value:n.value,expression:"setting.value"}],staticClass:"tk-admin-config-select",on:{change:function(t){var r=Array.prototype.filter.call(t.target.options,function(e){return e.selected}).map(function(e){return"_value"in e?e._value:e.value});e.$set(n,"value",t.target.multiple?r:r[0])}}},e._l(n.options,function(n){return t("option",{key:n.value,domProps:{value:n.value}},[e._v(e._s(n.label))])}),0):"textarea"===n.type?t("el-input",{attrs:{type:"textarea",rows:5,placeholder:n.ph,size:"small"},model:{value:n.value,callback:function(t){e.$set(n,"value",t)},expression:"setting.value"}}):t("el-input",{attrs:{placeholder:n.ph,size:"small","show-password":n.secret},model:{value:n.value,callback:function(t){e.$set(n,"value",t)},expression:"setting.value"}})],1),e._v(" "),t("div"),e._v(" "),t("div",{staticClass:"tk-admin-config-desc"},[e._v(e._s(n.desc))])])})],2)}),e._v(" "),t("details",{staticClass:"tk-admin-config-group"},[t("summary",{staticClass:"tk-admin-config-group-title"},[e._v(e._s(e.t("ADMIN_CONFIG_EMAIL_TEST")))]),e._v(" "),t("div",{staticClass:"tk-admin-config-email-test"},[t("div",{staticClass:"tk-admin-config-email-test-desc"},[e._v(e._s(e.t("ADMIN_CONFIG_EMAIL_TEST_HELP")))]),e._v(" "),t("div",{staticClass:"tk-admin-config-input"},[t("el-input",{attrs:{size:"small"},model:{value:e.emailTestAddress,callback:function(t){e.emailTestAddress=t},expression:"emailTestAddress"}},[t("el-button",{attrs:{slot:"append",type:"info"},on:{click:e.testEmail},slot:"append"},[e._v(e._s(e.t("ADMIN_CONFIG_EMAIL_TEST_BTN")))])],1)],1),e._v(" "),t("div",{staticClass:"tk-admin-config-email-test-desc"},[e._v(e._s(e.t("ADMIN_CONFIG_EMAIL_TEST_RESULT"))+e._s(e.emailTestResult))])])])],2),e._v(" "),t("div",{staticClass:"tk-admin-config-actions"},[t("el-button",{attrs:{size:"small",type:"primary","native-type":"submit"}},[e._v(e._s(e.t("ADMIN_CONFIG_SAVE")))]),e._v(" "),t("el-button",{attrs:{size:"small",type:"info"},on:{click:e.resetConfig}},[e._v(e._s(e.t("ADMIN_CONFIG_RESET")))])],1)]),e._v(" "),t("div",{staticClass:"tk-admin-config-message"},[e._v(e._s(e.message))])])},t.staticRenderFns=[function(){var e=this,t=e._self._c;return t("span",[e._v("请参考 "),t("a",{attrs:{href:"https://twikoo.js.org/update.html",target:"_blank"}},[e._v("版本更新")]),e._v(" 进行升级")])}]}),A=n.cw(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.staticRenderFns=t.render=void 0,t.render=function(){var e=this,t=e._self._c;return t("div",{staticClass:"tk-admin-export"},[t("div",{staticClass:"tk-admin-warn tk-admin-import-warn"},[t("p",[e._v(e._s(e.t("ADMIN_EXPORT_WARN")))])]),e._v(" "),t("el-button",{attrs:{size:"small",disabled:e.loading},on:{click:function(t){return e.doExport("comment")}}},[e._v(e._s(e.t("ADMIN_EXPORT_COMMENT")))]),e._v(" "),t("el-button",{attrs:{size:"small",disabled:e.loading},on:{click:function(t){return e.doExport("counter")}}},[e._v(e._s(e.t("ADMIN_EXPORT_COUNTER")))])],1)},t.staticRenderFns=[]}),O=n.cw(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.staticRenderFns=t.render=void 0,t.render=function(){var e=this,t=e._self._c;return t("div",{staticClass:"tk-admin-import"},[t("div",{staticClass:"tk-admin-warn tk-admin-import-warn"},[t("p",[e._v(e._s(e.t("ADMIN_IMPORT_WARN")))]),e._v(" "),t("p",[e._v(e._s(e.warnText[e.source]))])]),e._v(" "),t("div",{staticClass:"tk-admin-import-label"},[e._v(e._s(e.t("ADMIN_IMPORT_SELECT_SOURCE")))]),e._v(" "),t("select",{directives:[{name:"model",rawName:"v-model",value:e.source,expression:"source"}],on:{change:function(t){var n=Array.prototype.filter.call(t.target.options,function(e){return e.selected}).map(function(e){return"_value"in e?e._value:e.value});e.source=t.target.multiple?n:n[0]}}},[t("option",{attrs:{disabled:"",value:""}},[e._v(e._s(e.t("ADMIN_IMPORT_SELECT")))]),e._v(" "),t("option",{attrs:{value:"valine"}},[e._v("Valine (JSON)")]),e._v(" "),t("option",{attrs:{value:"disqus"}},[e._v("Disqus (XML)")]),e._v(" "),t("option",{attrs:{value:"artalk"}},[e._v("Artalk v1 (JSON)")]),e._v(" "),t("option",{attrs:{value:"artalk2"}},[e._v("Artalk v2 (Artrans)")]),e._v(" "),t("option",{attrs:{value:"twikoo"}},[e._v("Twikoo (JSON)")])]),e._v(" "),t("div",{staticClass:"tk-admin-import-label"},[e._v(e._s(e.t("ADMIN_IMPORT_SELECT_FILE")))]),e._v(" "),t("input",{ref:"inputFile",attrs:{type:"file",value:""}}),e._v(" "),t("el-button",{attrs:{size:"small",disabled:e.loading},on:{click:e.uploadFile}},[e._v(e._s(e.t("ADMIN_IMPORT_START")))]),e._v(" "),t("el-input",{ref:"logTextArea",attrs:{type:"textarea",rows:10,placeholder:e.t("ADMIN_IMPORT_LOG"),readonly:""},model:{value:e.logText,callback:function(t){e.logText=t},expression:"logText"}})],1)},t.staticRenderFns=[]}),T=n.cw(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.staticRenderFns=t.render=void 0,t.render=function(){var e=this,t=e._self._c;return t("div",{staticClass:"tk-avatar",class:{"tk-clickable":!!e.link,"tk-has-avatar":!!e.avatarInner},on:{click:e.onClick}},[e.avatarInner?e._e():t("div",{staticClass:"tk-avatar-img",domProps:{innerHTML:e._s(e.iconUser)}}),e._v(" "),e.avatarInner?t("img",{staticClass:"tk-avatar-img",attrs:{src:e.avatarInner,alt:""}}):e._e()])},t.staticRenderFns=[]}),C=n.cw(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.staticRenderFns=t.render=void 0,t.render=function(){var e=this,t=e._self._c;return t("div",{ref:"tk-comment",staticClass:"tk-comment",class:{"tk-master":e.comment.master},attrs:{id:e.comment.id}},[t("tk-avatar",{attrs:{config:e.config,nick:e.comment.nick,avatar:e.comment.avatar,"mail-md5":e.comment.mailMd5,link:e.convertedLink}}),e._v(" "),t("div",{staticClass:"tk-main"},[t("div",{staticClass:"tk-row"},[t("div",{staticClass:"tk-meta"},[e.convertedLink?e._e():t("strong",{staticClass:"tk-nick"},[e._v(e._s(e.comment.nick))]),e._v(" "),e.convertedLink?t("a",{staticClass:"tk-nick tk-nick-link",attrs:{href:e.convertedLink,target:"_blank",rel:"noopener noreferrer nofollow ugc"}},[t("strong",[e._v(e._s(e.comment.nick))])]):e._e(),e._v(" "),e.comment.master?t("span",{staticClass:"tk-tag tk-tag-green"},[e._v(e._s(e.config.MASTER_TAG||e.t("COMMENT_MASTER_TAG")))]):e._e(),e._v(" "),e.comment.top?t("span",{staticClass:"tk-tag tk-tag-red"},[e._v(e._s(e.t("COMMENT_TOP_TAG")))]):e._e(),e._v(" "),e.comment.isSpam?t("span",{staticClass:"tk-tag tk-tag-yellow"},[e._v(e._s(e.t("COMMENT_REVIEWING_TAG")))]):e._e(),e._v(" "),t("small",{staticClass:"tk-time"},[t("time",{attrs:{datetime:e.jsonTimestamp,title:e.localeTime}},[e._v(e._s(e.displayCreated))])]),e._v(" "),e.isLogin?t("small",{staticClass:"tk-actions"},[e.comment.isSpam?t("button",{on:{click:function(t){return e.handleSpam(!1)}}},[e._v(e._s(e.t("ADMIN_COMMENT_SHOW")))]):e._e(),e._v(" "),e.comment.isSpam?e._e():t("button",{on:{click:function(t){return e.handleSpam(!0)}}},[e._v(e._s(e.t("ADMIN_COMMENT_HIDE")))]),e._v(" "),!e.comment.rid&&e.comment.top?t("button",{on:{click:function(t){return e.handleTop(!1)}}},[e._v(e._s(e.t("ADMIN_COMMENT_UNTOP")))]):e._e(),e._v(" "),e.comment.rid||e.comment.top?e._e():t("button",{on:{click:function(t){return e.handleTop(!0)}}},[e._v(e._s(e.t("ADMIN_COMMENT_TOP")))])]):e._e()]),e._v(" "),t("tk-action",{attrs:{liked:e.liked,disliked:e.disliked,"like-count":e.ups,"dislike-count":e.downs,"replies-count":e.comment.replies.length,"show-dislike":"false"!==e.config.SHOW_DISLIKE,"show-delete":e.comment.isOwner},on:{like:e.onLike,dislike:e.onDislike,reply:e.onReply,delete:e.onDelete}})],1),e._v(" "),t("div",{ref:"tk-content",staticClass:"tk-content",class:{"tk-content-expand":e.isContentExpanded||!e.showContentExpand}},[e.comment.pid?t("span",[e._v(e._s(e.t("COMMENT_REPLIED"))+" "),t("a",{staticClass:"tk-ruser",attrs:{href:"#"},on:{click:function(t){return t.preventDefault(),e.scrollToPid(e.comment.pid)}}},[e._v("@"+e._s(e.comment.ruser))]),e._v(" :")]):e._e(),e._v(" "),t("span",{ref:"comment",domProps:{innerHTML:e._s(e.sanitizedComment)},on:{click:e.popupLightbox}})]),e._v(" "),e.showContentExpand?t("div",{staticClass:"tk-expand-wrap"},[t("div",{staticClass:"tk-expand",on:{click:e.onContentExpand}},[e._v(e._s(e.t("COMMENT_EXPAND")))])]):e._e(),e._v(" "),e.showContentCollapse?t("div",{staticClass:"tk-collapse-wrap"},[t("div",{staticClass:"tk-expand _collapse",on:{click:e.onContentCollapse}},[e._v(e._s(e.t("COMMENT_COLLAPSE")))])]):e._e(),e._v(" "),e.comment.ipRegion||e.comment.os||e.comment.browser?t("div",{staticClass:"tk-extras"},[e.comment.ipRegion?t("div",{staticClass:"tk-extra"},[t("span",{staticClass:"tk-icon __comment",domProps:{innerHTML:e._s(e.iconLocation)}}),e._v(" "),t("span",{staticClass:"tk-extra-text"},[e._v(" "+e._s(e.comment.ipRegion))])]):e._e(),e._v(" "),e.comment.os?t("div",{staticClass:"tk-extra"},[t("span",{staticClass:"tk-icon __comment",domProps:{innerHTML:e._s(e.iconOs)}}),e._v(" "),t("span",{staticClass:"tk-extra-text"},[e._v(" "+e._s(e.comment.os))])]):e._e(),e._v(" "),e.comment.browser?t("div",{staticClass:"tk-extra"},[t("span",{staticClass:"tk-icon __comment",domProps:{innerHTML:e._s(e.iconBrowser)}}),e._v(" "),t("span",{staticClass:"tk-extra-text"},[e._v(" "+e._s(e.comment.browser))])]):e._e()]):e._e(),e._v(" "),e.replying&&!e.pid?t("tk-submit",{attrs:{"reply-id":e.replyId?e.replyId:e.comment.id,pid:e.comment.id,config:e.config},on:{load:e.onLoad,cancel:e.onCancel}}):e._e(),e._v(" "),t("div",{ref:"tk-replies",staticClass:"tk-replies",class:{"tk-replies-expand":e.isExpanded||!e.showExpand||e.replying}},e._l(e.comment.replies,function(n){return t("tk-comment",{key:n.id,attrs:{comment:n,replyId:e.comment.id,replying:e.replying&&e.pid===n.id,config:e.config},on:{expand:e.onExpand,load:e.onLoad,reply:e.onReplyReply,refreshed:e.onRefreshed}})}),1),e._v(" "),e.showExpand&&!e.replying?t("div",{staticClass:"tk-expand-wrap"},[t("div",{staticClass:"tk-expand",on:{click:e.onExpand}},[e._v(e._s(e.t("COMMENT_EXPAND")))])]):e._e(),e._v(" "),e.showCollapse&&!e.replying?t("div",{staticClass:"tk-collapse-wrap"},[t("div",{staticClass:"tk-expand _collapse",on:{click:e.onCollapse}},[e._v(e._s(e.t("COMMENT_COLLAPSE")))])]):e._e()],1)],1)},t.staticRenderFns=[]}),k=n.cw(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.staticRenderFns=t.render=void 0,t.render=function(){var e=this,t=e._self._c;return t("div",{staticClass:"tk-comments"},[t("tk-submit",{attrs:{config:e.config},on:{load:e.initComments}}),e._v(" "),t("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticClass:"tk-comments-container"},[t("div",{staticClass:"tk-comments-title"},[t("span",{staticClass:"tk-comments-count",class:{__hidden:e.loading||!e.comments.length&&!e.searchKeyword}},[e.searchKeyword?t("span",[e._v(e._s(e.t("COMMENTS_SEARCH_COUNT_PREFIX")))]):e._e(),e._v(" "),t("span",[e._v(e._s(e.count))]),e._v(" "),t("span",[e._v(e._s(e.t("COMMENTS_COUNT_SUFFIX")))])]),e._v(" "),t("span",{staticClass:"tk-comments-actions"},[!e.loading&&e.comments.length&&"false"!==e.config.SHOW_ORDER?t("span",{staticClass:"tk-comments-sort"},[t("button",{staticClass:"tk-sort-item",class:{__active:"newest"===e.currentSort},attrs:{type:"button"},on:{click:function(t){return e.setSort("newest")}}},[e._v(e._s(e.t("COMMENTS_SORT_NEWEST")))]),e._v(" "),t("button",{staticClass:"tk-sort-item",class:{__active:"oldest"===e.currentSort},attrs:{type:"button"},on:{click:function(t){return e.setSort("oldest")}}},[e._v(e._s(e.t("COMMENTS_SORT_OLDEST")))]),e._v(" "),t("button",{staticClass:"tk-sort-item",class:{__active:"popular"===e.currentSort},attrs:{type:"button"},on:{click:function(t){return e.setSort("popular")}}},[e._v(e._s(e.t("COMMENTS_SORT_POPULAR")))])]):e._e(),e._v(" "),e.loading||e.loadingMore?e._e():t("span",{staticClass:"tk-icon __comments",class:{__active:e.showSearch},domProps:{innerHTML:e._s(e.iconSearch)},on:{click:e.toggleSearch}}),e.loading||e.loadingMore?e._e():t("span",{staticClass:"tk-icon __comments",domProps:{innerHTML:e._s(e.iconRefresh)},on:{click:e.refresh}}),e.showAdminEntry?t("span",{staticClass:"tk-icon __comments",domProps:{innerHTML:e._s(e.iconSetting)},on:{click:e.openAdmin}}):e._e()])]),e._v(" "),t("div",{directives:[{name:"show",rawName:"v-show",value:e.showSearch,expression:"showSearch"}],staticClass:"tk-comments-search"},[t("el-input",{ref:"searchInputRef",attrs:{size:"small",clearable:"",maxlength:"100",placeholder:e.t("COMMENTS_SEARCH_PLACEHOLDER")},on:{clear:e.clearSearch},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.search.apply(null,arguments)}},model:{value:e.searchInput,callback:function(t){e.searchInput=t},expression:"searchInput"}}),e._v(" "),t("el-button",{attrs:{size:"small",type:"primary"},on:{click:e.search}},[e._v(e._s(e.t("COMMENTS_SEARCH")))])],1),e._v(" "),e.loading||e.comments.length?e._e():t("div",{staticClass:"tk-comments-no"},[!e.errorMessage&&e.searchKeyword?t("span",[e._v(e._s(e.t("COMMENTS_SEARCH_NO_RESULT")))]):e._e(),e._v(" "),e.errorMessage||e.searchKeyword?e._e():t("span",[e._v(e._s(e.t("COMMENTS_NO_COMMENTS")))]),e._v(" "),e.errorMessage?t("span",{staticClass:"tk-comments-error"},[e._v(e._s(e.errorMessage))]):e._e()]),e._v(" "),e._l(e.comments,function(n){return t("tk-comment",{key:n.id,attrs:{comment:n,replying:e.replyId===n.id,config:e.config},on:{reply:e.onReply,load:e.refreshPreservingState}})}),e._v(" "),e.showExpand&&!e.loading?t("div",{staticClass:"tk-expand-wrap"},[t("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loadingMore,expression:"loadingMore"}],staticClass:"tk-expand",on:{click:e.onExpand}},[e._v(e._s(e.t("COMMENTS_EXPAND")))])]):e._e()],2)],1)},t.staticRenderFns=[]}),P=n.cw(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.staticRenderFns=t.render=void 0,t.render=function(){var e=this,t=e._self._c;return t("div",{staticClass:"tk-footer"},[e._v("\n Powered by "),t("a",{attrs:{href:"https://twikoo.js.org",target:"_blank"}},[e._v("Twikoo")]),e._v("\n v"+e._s(e.version)+"\n")])},t.staticRenderFns=[]}),N=n.cw(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.staticRenderFns=t.render=void 0,t.render=function(){var e=this,t=e._self._c;return t("div",{staticClass:"tk-meta-input"},e._l(e.displayedInputs,function(n){return t("el-input",{key:n.key,attrs:{name:n.name,type:n.type,placeholder:e.requiredFields[n.key]?e.t("META_INPUT_REQUIRED"):e.t("META_INPUT_NOT_REQUIRED"),size:"small"},on:{change:e.onMetaChange},model:{value:e.metaData[n.key],callback:function(t){e.$set(e.metaData,n.key,t)},expression:"metaData[metaInput.key]"}},[t("template",{slot:"prepend"},[e._v(e._s(n.locale))])],2)}),1)},t.staticRenderFns=[]}),R=n.cw(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.staticRenderFns=t.render=void 0,t.render=function(){var e=this,t=e._self._c;return t("div",{staticClass:"tk-pagination"},[e.pageCount?t("div",{staticClass:"tk-pagination-options"},[t("div",[t("span",[e._v(e._s(e.t("PAGINATION_COUNT_PREFIX")))]),e._v(" "),t("span",[e._v(e._s(e.total))]),e._v(" "),t("span",[e._v(e._s(e.t("PAGINATION_COUNT_SUFFIX")))])]),e._v(" "),t("el-input",{attrs:{type:"number",min:"1",max:"100",value:e.userPageSize?e.userPageSize:e.pageSize},on:{input:e.handleInputPageSize,change:e.pageSizeChamge}}),e._v(" "),t("span",[e._v(e._s(e.t("PAGINATION_PAGESIZE")))])],1):e._e(),e._v(" "),t("div",{staticClass:"tk-pagination-pagers"},e._l(e.pagers,function(n){return t("div",{key:n.page,staticClass:"tk-pagination-pager",class:{__current:n.page===e.currentPage},on:{click:function(t){return e.currentChange(n.page)}}},[e._v(e._s(n.title))])}),0),e._v(" "),e.pageCount?t("div",{staticClass:"tk-pagination-options"},[t("span",[e._v(e._s(e.t("PAGINATION_GOTO_PREFIX")))]),e._v(" "),t("el-input",{attrs:{type:"number",min:"1",max:e.pageCount,value:e.userInput?e.userInput:e.currentPage},on:{input:e.handleInput,change:e.currentChange}}),e._v(" "),t("span",[e._v(e._s(e.t("PAGINATION_GOTO_SUFFIX")))])],1):e._e()])},t.staticRenderFns=[]}),M=n.cw(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.staticRenderFns=t.render=void 0,t.render=function(){var e=this,t=e._self._c;return t("div",{ref:"tk-submit",staticClass:"tk-submit tk-fade-in"},[t("div",{staticClass:"tk-row"},[t("tk-avatar",{attrs:{config:e.config,mail:e.mail,nick:e.nick}}),e._v(" "),t("div",{staticClass:"tk-col"},[t("tk-meta-input",{attrs:{nick:e.nick,mail:e.mail,link:e.link,config:e.config},on:{update:e.onMetaUpdate}}),e._v(" "),t("el-input",{ref:"textarea",staticClass:"tk-input",attrs:{type:"textarea","show-word-limit":"",placeholder:e.commentPlaceholder,autosize:{minRows:3},maxlength:e.maxLength},on:{input:e.onCommentInput},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.onEnterKeyUp(t)}},model:{value:e.comment,callback:function(t){e.comment=t},expression:"comment"}})],1)],1),e._v(" "),t("div",{staticClass:"tk-row actions"},[t("div",{staticClass:"tk-row-actions-start"},[t("div",{directives:[{name:"show",rawName:"v-show",value:"true"===e.config.SHOW_EMOTION,expression:"config.SHOW_EMOTION === 'true'"},{name:"clickoutside",rawName:"v-clickoutside",value:e.closeOwo,expression:"closeOwo"}],ref:"owo",staticClass:"tk-submit-action-icon OwO",domProps:{innerHTML:e._s(e.iconEmotion)}}),e._v(" "),t("div",{directives:[{name:"show",rawName:"v-show",value:e.showImage,expression:"showImage"}],staticClass:"tk-submit-action-icon",domProps:{innerHTML:e._s(e.iconImage)},on:{click:e.openSelectImage}}),e._v(" "),t("input",{ref:"inputFile",staticClass:"tk-input-image",attrs:{type:"file",accept:"image/*",value:""},on:{change:e.onSelectImage}}),e._v(" "),t("div",{staticClass:"tk-error-message"},[e._v(e._s(e.errorMessage))])]),e._v(" "),t("a",{staticClass:"tk-submit-action-icon __markdown",attrs:{alt:"Markdown is supported",href:"https://guides.github.com/features/mastering-markdown/",target:"_blank",rel:"noopener noreferrer"},domProps:{innerHTML:e._s(e.iconMarkdown)}}),e._v(" "),e.replyId?t("el-button",{staticClass:"tk-cancel",attrs:{size:"small"},on:{click:e.cancel}},[e._v(e._s(e.t("SUBMIT_CANCEL")))]):e._e(),e._v(" "),t("el-button",{staticClass:"tk-preview",attrs:{size:"small"},on:{click:e.preview}},[e._v(e._s(e.t("SUBMIT_PREVIEW")))]),e._v(" "),t("el-button",{staticClass:"tk-send",attrs:{type:"primary",size:"small",disabled:!e.canSend},on:{click:e.send}},[e._v(e._s(e.isSending?e.t("SUBMIT_SENDING"):e.t("SUBMIT_SEND")))]),e._v(" "),t("div",{directives:[{name:"show",rawName:"v-show",value:"Turnstile"===e.captchaProvider,expression:"captchaProvider === 'Turnstile'"}],ref:"turnstile-container",staticClass:"tk-turnstile-container"},[t("div",{ref:"turnstile",staticClass:"tk-turnstile"})]),e._v(" "),t("div",{directives:[{name:"show",rawName:"v-show",value:"Geetest"===e.captchaProvider,expression:"captchaProvider === 'Geetest'"}],ref:"geetest-container",staticClass:"tk-geetest-container"}),e._v(" "),t("div",{directives:[{name:"show",rawName:"v-show",value:"Cap"===e.captchaProvider,expression:"captchaProvider === 'Cap'"}],ref:"cap-container",staticClass:"tk-cap-container"})],1),e._v(" "),e.isPreviewing?t("div",{ref:"comment-preview",staticClass:"tk-preview-container",domProps:{innerHTML:e._s(e.commentHtml)}}):e._e()])},t.staticRenderFns=[]}),x=function(){return n(1058)},L=n.cw(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default=class{constructor(e){const t={logo:"OwO表情",container:document.getElementsByClassName("OwO")[0],target:document.getElementsByTagName("textarea")[0],position:"down",maxHeight:"250px",odata:{}};for(const n in t)t[n]&&!e[n]&&(e[n]=t[n]);this.container=e.container,this.target=e.target,"up"===e.position&&this.container.classList.add("OwO-up"),this.odata=e.odata,setTimeout(()=>{this.init(e)})}init(e){this.area=e.target,this.packages=Object.keys(this.odata);let t=`<div class="OwO-logo">${e.logo}</div><div class="OwO-body">`;for(let n=0;n<this.packages.length;n++){t+=`<ul class="OwO-items OwO-items-${this.odata[this.packages[n]].type}" style="max-height: ${parseInt(e.maxHeight)-53+"px"};">`;const r=this.odata[this.packages[n]].container;for(let e=0;e<r.length;e++){const n=r[e].icon.replace("<img",'<img loading="lazy"');t+=`<li class="OwO-item" title="${r[e].text}">${n}</li>`}t+="</ul>"}t+='<div class="OwO-bar"><ul class="OwO-packages">';for(let e=0;e<this.packages.length;e++)t+=`<li><span>${this.packages[e]}</span></li>`;t+="</ul></div></div>",this.container.innerHTML=t,this.logo=this.container.getElementsByClassName("OwO-logo")[0],this.logo.addEventListener("click",()=>{this.toggle()}),this.container.getElementsByClassName("OwO-body")[0].addEventListener("click",e=>{let t=null;if(e.target.classList.contains("OwO-item")?t=e.target:e.target.parentNode.classList.contains("OwO-item")&&(t=e.target.parentNode),t){const e=this.area.selectionEnd,n=this.area.value;let r=t.innerHTML;if(-1!==r.indexOf("<img"))if(t.title)r=":"+t.title+": ";else{const e=r.indexOf('src="')+5,n=r.indexOf('"',e);-1!==e&&-1!==n&&(r=`![${t.title||""}](${r.substring(e,n)})`)}this.area.value=n.slice(0,e)+r+n.slice(e),this.area.dispatchEvent(new InputEvent("input")),this.area.focus(),this.toggle()}}),this.packagesEle=this.container.getElementsByClassName("OwO-packages")[0];for(let e=0;e<this.packagesEle.children.length;e++)(t=>{this.packagesEle.children[e].addEventListener("click",()=>{this.tab(t)})})(e);this.tab(0)}toggle(){this.container.classList.contains("OwO-open")?this.container.classList.remove("OwO-open"):this.container.classList.add("OwO-open")}tab(e){const t=this.container.getElementsByClassName("OwO-items-show")[0];t&&t.classList.remove("OwO-items-show"),this.container.getElementsByClassName("OwO-items")[e].classList.add("OwO-items-show");const n=this.container.getElementsByClassName("OwO-package-active")[0];n&&n.classList.remove("OwO-package-active"),this.packagesEle.getElementsByTagName("li")[e].classList.add("OwO-package-active")}}}),D=function(){return n(9533)},U=function(){return n(2509)},j=function(){return n(3115)},F=function(){return n(8897)},$=function(){return n(6937)},G=function(){return n(9396)},B=function(){return n(58)},q=function(){return n(7051)},H=function(){return n(824)},z=function(){return n(3793)},W=function(){return n(8974)},V=function(){return n(1423)},K=function(){return n(740)},Y=function(){return n(7397)},Q=function(){return n(2531)},X=function(){return n(3491)},J=function(){return n(5171)},Z=function(){return n(6639)},ee=function(){return n(6412)},te=function(){return n(6359)},ne=function(){return n(7136)},re=function(){return n(9039)},oe=function(){return n(504)},ie=function(){return n(6370)},se=function(){return n(3982)},ae=function(){return n(495)},ce=function(){return n(9966)},ue=function(){return n(9801)},le=function(){return n(5910)},de=function(){return n(9671)},he=function(){return n(5545)},pe=function(){return n(9587)},fe=n.cw(function(e,t){n.r(t),n.d(t,{__esModule:function(){return Te().B}}),$e(),Te();var r=(0,Ze().A)(Te().A,w().render,w().staticRenderFns,!1,null,null,null);t.default=r.exports}),me=n.cw(function(e,t){n.r(t),n.d(t,{__esModule:function(){return Ce().B}}),Ge(),Ce();var r=(0,Ze().A)(Ce().A,E().render,E().staticRenderFns,!1,null,null,null);t.default=r.exports}),ge=n.cw(function(e,t){n.r(t),n.d(t,{__esModule:function(){return ke().B}}),Be(),ke();var r=(0,Ze().A)(ke().A,I().render,I().staticRenderFns,!1,null,null,null);t.default=r.exports}),ve=n.cw(function(e,t){n.r(t),n.d(t,{__esModule:function(){return Pe().B}}),qe(),Pe();var r=(0,Ze().A)(Pe().A,S().render,S().staticRenderFns,!1,null,null,null);t.default=r.exports}),_e=n.cw(function(e,t){n.r(t),n.d(t,{__esModule:function(){return Ne().B}}),He(),Ne();var r=(0,Ze().A)(Ne().A,A().render,A().staticRenderFns,!1,null,null,null);t.default=r.exports}),ye=n.cw(function(e,t){n.r(t),n.d(t,{__esModule:function(){return Re().B}}),ze(),Re();var r=(0,Ze().A)(Re().A,O().render,O().staticRenderFns,!1,null,null,null);t.default=r.exports}),be=n.cw(function(e,t){n.r(t),n.d(t,{__esModule:function(){return Me().B}}),We(),Me();var r=(0,Ze().A)(Me().A,T().render,T().staticRenderFns,!1,null,null,null);t.default=r.exports}),we=n.cw(function(e,t){n.r(t),n.d(t,{__esModule:function(){return xe().B}}),Ve(),xe();var r=(0,Ze().A)(xe().A,C().render,C().staticRenderFns,!1,null,null,null);t.default=r.exports}),Ee=n.cw(function(e,t){n.r(t),n.d(t,{__esModule:function(){return Le().B}}),Ke(),Le();var r=(0,Ze().A)(Le().A,k().render,k().staticRenderFns,!1,null,null,null);t.default=r.exports}),Ie=n.cw(function(e,t){n.r(t),n.d(t,{__esModule:function(){return De().B}}),Ye(),De();var r=(0,Ze().A)(De().A,P().render,P().staticRenderFns,!1,null,null,null);t.default=r.exports}),Se=n.cw(function(e,t){n.r(t),n.d(t,{__esModule:function(){return Ue().B}}),Qe(),Ue();var r=(0,Ze().A)(Ue().A,N().render,N().staticRenderFns,!1,null,null,null);t.default=r.exports}),Ae=n.cw(function(e,t){n.r(t),n.d(t,{__esModule:function(){return je().B}}),Xe(),je();var r=(0,Ze().A)(je().A,R().render,R().staticRenderFns,!1,null,null,null);t.default=r.exports}),Oe=n.cw(function(e,t){n.r(t),n.d(t,{__esModule:function(){return Fe().B}}),Je(),Fe();var r=(0,Ze().A)(Fe().A,M().render,M().staticRenderFns,!1,null,null,null);t.default=r.exports}),Te=n.cw(function(e,t){n.r(t),n.d(t,{B:function(){return a().B}}),a(),t.A=a().A}),Ce=n.cw(function(e,t){n.r(t),n.d(t,{B:function(){return c().B}}),c(),t.A=c().A}),ke=n.cw(function(e,t){n.r(t),n.d(t,{B:function(){return u().B}}),u(),t.A=u().A}),Pe=n.cw(function(e,t){n.r(t),n.d(t,{B:function(){return l().B}}),l(),t.A=l().A}),Ne=n.cw(function(e,t){n.r(t),n.d(t,{B:function(){return d().B}}),d(),t.A=d().A}),Re=n.cw(function(e,t){n.r(t),n.d(t,{B:function(){return h().B}}),h(),t.A=h().A}),Me=n.cw(function(e,t){n.r(t),n.d(t,{B:function(){return p().B}}),p(),t.A=p().A}),xe=n.cw(function(e,t){n.r(t),n.d(t,{B:function(){return f().B}}),f(),t.A=f().A}),Le=n.cw(function(e,t){n.r(t),n.d(t,{B:function(){return m().B}}),m(),t.A=m().A}),De=n.cw(function(e,t){n.r(t),n.d(t,{B:function(){return g().B}}),g(),t.A=g().A}),Ue=n.cw(function(e,t){n.r(t),n.d(t,{B:function(){return v().B}}),v(),t.A=v().A}),je=n.cw(function(e,t){n.r(t),n.d(t,{B:function(){return _().B}}),_(),t.A=_().A}),Fe=n.cw(function(e,t){n.r(t),n.d(t,{B:function(){return y().B}}),y(),t.A=y().A}),$e=n.cw(function(e,t){n.d(t,{XX:function(){return w().render},Yp:function(){return w().staticRenderFns}}),w()}),Ge=n.cw(function(e,t){n.d(t,{XX:function(){return E().render},Yp:function(){return E().staticRenderFns}}),E()}),Be=n.cw(function(e,t){n.d(t,{XX:function(){return I().render},Yp:function(){return I().staticRenderFns}}),I()}),qe=n.cw(function(e,t){n.d(t,{XX:function(){return S().render},Yp:function(){return S().staticRenderFns}}),S()}),He=n.cw(function(e,t){n.d(t,{XX:function(){return A().render},Yp:function(){return A().staticRenderFns}}),A()}),ze=n.cw(function(e,t){n.d(t,{XX:function(){return O().render},Yp:function(){return O().staticRenderFns}}),O()}),We=n.cw(function(e,t){n.d(t,{XX:function(){return T().render},Yp:function(){return T().staticRenderFns}}),T()}),Ve=n.cw(function(e,t){n.d(t,{XX:function(){return C().render},Yp:function(){return C().staticRenderFns}}),C()}),Ke=n.cw(function(e,t){n.d(t,{XX:function(){return k().render},Yp:function(){return k().staticRenderFns}}),k()}),Ye=n.cw(function(e,t){n.d(t,{XX:function(){return P().render},Yp:function(){return P().staticRenderFns}}),P()}),Qe=n.cw(function(e,t){n.d(t,{XX:function(){return N().render},Yp:function(){return N().staticRenderFns}}),N()}),Xe=n.cw(function(e,t){n.d(t,{XX:function(){return R().render},Yp:function(){return R().staticRenderFns}}),R()}),Je=n.cw(function(e,t){n.d(t,{XX:function(){return M().render},Yp:function(){return M().staticRenderFns}}),M()}),Ze=n.cw(function(e,t){function r(e,t,n,r,o,i,s,a){var c,u="function"==typeof e?e.options:e;if(t&&(u.render=t,u.staticRenderFns=n,u._compiled=!0),r&&(u.functional=!0),i&&(u._scopeId="data-v-"+i),s?(c=function(e){(e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),o&&o.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(s)},u._ssrRegister=c):o&&(c=a?function(){o.call(this,(u.functional?this.parent:this).$root.$options.shadowRoot)}:o),c)if(u.functional){u._injectStyles=c;var l=u.render;u.render=function(e,t){return c.call(t),l(e,t)}}else{var d=u.beforeCreate;u.beforeCreate=d?[].concat(d,c):[c]}return{exports:e,options:u}}n.d(t,{A:function(){return r}})}),et=function(){return n(6553)},tt=n.cw(function(e,t){var n="undefined"!=typeof ArrayBuffer,r=function(e){if("string"==typeof e)return[e,!0];if(Array.isArray(e))return[e,!1];if(n&&e){if(e.constructor===ArrayBuffer)return[new Uint8Array(e),!1];if(ArrayBuffer.isView(e))return[e,!1]}throw new Error("input is invalid type")},o="0123456789abcdef".split(""),i=[-2147483648,8388608,32768,128],s=[24,16,8,0],a=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],c=["hex","array","digest","arrayBuffer"],u=[],l=function(e,t){return function(n){return new f(t,!0).update(n)[e]()}},d=function(e){var t=l("hex",e);t.create=function(){return new f(e)},t.update=function(e){return t.create().update(e)};for(var n=0;n<c.length;++n){var r=c[n];t[r]=l(r,e)}return t},h=function(e,t){return function(n,r){return new m(n,t,!0).update(r)[e]()}},p=function(e){var t=h("hex",e);t.create=function(t){return new m(t,e)},t.update=function(e,n){return t.create(e).update(n)};for(var n=0;n<c.length;++n){var r=c[n];t[r]=h(r,e)}return t};function f(e,t){t?(u[0]=u[16]=u[1]=u[2]=u[3]=u[4]=u[5]=u[6]=u[7]=u[8]=u[9]=u[10]=u[11]=u[12]=u[13]=u[14]=u[15]=0,this.blocks=u):this.blocks=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],e?(this.h0=3238371032,this.h1=914150663,this.h2=812702999,this.h3=4144912697,this.h4=4290775857,this.h5=1750603025,this.h6=1694076839,this.h7=3204075428):(this.h0=1779033703,this.h1=3144134277,this.h2=1013904242,this.h3=2773480762,this.h4=1359893119,this.h5=2600822924,this.h6=528734635,this.h7=1541459225),this.block=this.start=this.bytes=this.hBytes=0,this.finalized=this.hashed=!1,this.first=!0,this.is224=e}function m(e,t,n){var o,i=r(e);if(e=i[0],i[1]){var s,a=[],c=e.length,u=0;for(o=0;o<c;++o)(s=e.charCodeAt(o))<128?a[u++]=s:s<2048?(a[u++]=192|s>>>6,a[u++]=128|63&s):s<55296||s>=57344?(a[u++]=224|s>>>12,a[u++]=128|s>>>6&63,a[u++]=128|63&s):(s=65536+((1023&s)<<10|1023&e.charCodeAt(++o)),a[u++]=240|s>>>18,a[u++]=128|s>>>12&63,a[u++]=128|s>>>6&63,a[u++]=128|63&s);e=a}e.length>64&&(e=new f(t,!0).update(e).array());var l=[],d=[];for(o=0;o<64;++o){var h=e[o]||0;l[o]=92^h,d[o]=54^h}f.call(this,t,n),this.update(d),this.oKeyPad=l,this.inner=!0,this.sharedMemory=n}f.prototype.update=function(e){if(this.finalized)throw new Error("finalize already called");var t=r(e);e=t[0];for(var n,o,i=t[1],a=0,c=e.length,u=this.blocks;a<c;){if(this.hashed&&(this.hashed=!1,u[0]=this.block,this.block=u[16]=u[1]=u[2]=u[3]=u[4]=u[5]=u[6]=u[7]=u[8]=u[9]=u[10]=u[11]=u[12]=u[13]=u[14]=u[15]=0),i)for(o=this.start;a<c&&o<64;++a)(n=e.charCodeAt(a))<128?u[o>>>2]|=n<<s[3&o++]:n<2048?(u[o>>>2]|=(192|n>>>6)<<s[3&o++],u[o>>>2]|=(128|63&n)<<s[3&o++]):n<55296||n>=57344?(u[o>>>2]|=(224|n>>>12)<<s[3&o++],u[o>>>2]|=(128|n>>>6&63)<<s[3&o++],u[o>>>2]|=(128|63&n)<<s[3&o++]):(n=65536+((1023&n)<<10|1023&e.charCodeAt(++a)),u[o>>>2]|=(240|n>>>18)<<s[3&o++],u[o>>>2]|=(128|n>>>12&63)<<s[3&o++],u[o>>>2]|=(128|n>>>6&63)<<s[3&o++],u[o>>>2]|=(128|63&n)<<s[3&o++]);else for(o=this.start;a<c&&o<64;++a)u[o>>>2]|=e[a]<<s[3&o++];this.lastByteIndex=o,this.bytes+=o-this.start,o>=64?(this.block=u[16],this.start=o-64,this.hash(),this.hashed=!0):this.start=o}return this.bytes>4294967295&&(this.hBytes+=this.bytes/4294967296|0,this.bytes=this.bytes%4294967296),this},f.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var e=this.blocks,t=this.lastByteIndex;e[16]=this.block,e[t>>>2]|=i[3&t],this.block=e[16],t>=56&&(this.hashed||this.hash(),e[0]=this.block,e[16]=e[1]=e[2]=e[3]=e[4]=e[5]=e[6]=e[7]=e[8]=e[9]=e[10]=e[11]=e[12]=e[13]=e[14]=e[15]=0),e[14]=this.hBytes<<3|this.bytes>>>29,e[15]=this.bytes<<3,this.hash()}},f.prototype.hash=function(){var e,t,n,r,o,i,s,c,u,l=this.h0,d=this.h1,h=this.h2,p=this.h3,f=this.h4,m=this.h5,g=this.h6,v=this.h7,_=this.blocks;for(e=16;e<64;++e)t=((o=_[e-15])>>>7|o<<25)^(o>>>18|o<<14)^o>>>3,n=((o=_[e-2])>>>17|o<<15)^(o>>>19|o<<13)^o>>>10,_[e]=_[e-16]+t+_[e-7]+n|0;for(u=d&h,e=0;e<64;e+=4)this.first?(this.is224?(i=300032,v=(o=_[0]-1413257819)-150054599|0,p=o+24177077|0):(i=704751109,v=(o=_[0]-210244248)-1521486534|0,p=o+143694565|0),this.first=!1):(t=(l>>>2|l<<30)^(l>>>13|l<<19)^(l>>>22|l<<10),r=(i=l&d)^l&h^u,v=p+(o=v+(n=(f>>>6|f<<26)^(f>>>11|f<<21)^(f>>>25|f<<7))+(f&m^~f&g)+a[e]+_[e])|0,p=o+(t+r)|0),t=(p>>>2|p<<30)^(p>>>13|p<<19)^(p>>>22|p<<10),r=(s=p&l)^p&d^i,g=h+(o=g+(n=(v>>>6|v<<26)^(v>>>11|v<<21)^(v>>>25|v<<7))+(v&f^~v&m)+a[e+1]+_[e+1])|0,t=((h=o+(t+r)|0)>>>2|h<<30)^(h>>>13|h<<19)^(h>>>22|h<<10),r=(c=h&p)^h&l^s,m=d+(o=m+(n=(g>>>6|g<<26)^(g>>>11|g<<21)^(g>>>25|g<<7))+(g&v^~g&f)+a[e+2]+_[e+2])|0,t=((d=o+(t+r)|0)>>>2|d<<30)^(d>>>13|d<<19)^(d>>>22|d<<10),r=(u=d&h)^d&p^c,f=l+(o=f+(n=(m>>>6|m<<26)^(m>>>11|m<<21)^(m>>>25|m<<7))+(m&g^~m&v)+a[e+3]+_[e+3])|0,l=o+(t+r)|0,this.chromeBugWorkAround=!0;this.h0=this.h0+l|0,this.h1=this.h1+d|0,this.h2=this.h2+h|0,this.h3=this.h3+p|0,this.h4=this.h4+f|0,this.h5=this.h5+m|0,this.h6=this.h6+g|0,this.h7=this.h7+v|0},f.prototype.hex=function(){this.finalize();var e=this.h0,t=this.h1,n=this.h2,r=this.h3,i=this.h4,s=this.h5,a=this.h6,c=this.h7,u=o[e>>>28&15]+o[e>>>24&15]+o[e>>>20&15]+o[e>>>16&15]+o[e>>>12&15]+o[e>>>8&15]+o[e>>>4&15]+o[15&e]+o[t>>>28&15]+o[t>>>24&15]+o[t>>>20&15]+o[t>>>16&15]+o[t>>>12&15]+o[t>>>8&15]+o[t>>>4&15]+o[15&t]+o[n>>>28&15]+o[n>>>24&15]+o[n>>>20&15]+o[n>>>16&15]+o[n>>>12&15]+o[n>>>8&15]+o[n>>>4&15]+o[15&n]+o[r>>>28&15]+o[r>>>24&15]+o[r>>>20&15]+o[r>>>16&15]+o[r>>>12&15]+o[r>>>8&15]+o[r>>>4&15]+o[15&r]+o[i>>>28&15]+o[i>>>24&15]+o[i>>>20&15]+o[i>>>16&15]+o[i>>>12&15]+o[i>>>8&15]+o[i>>>4&15]+o[15&i]+o[s>>>28&15]+o[s>>>24&15]+o[s>>>20&15]+o[s>>>16&15]+o[s>>>12&15]+o[s>>>8&15]+o[s>>>4&15]+o[15&s]+o[a>>>28&15]+o[a>>>24&15]+o[a>>>20&15]+o[a>>>16&15]+o[a>>>12&15]+o[a>>>8&15]+o[a>>>4&15]+o[15&a];return this.is224||(u+=o[c>>>28&15]+o[c>>>24&15]+o[c>>>20&15]+o[c>>>16&15]+o[c>>>12&15]+o[c>>>8&15]+o[c>>>4&15]+o[15&c]),u},f.prototype.toString=f.prototype.hex,f.prototype.digest=function(){this.finalize();var e=this.h0,t=this.h1,n=this.h2,r=this.h3,o=this.h4,i=this.h5,s=this.h6,a=this.h7,c=[e>>>24&255,e>>>16&255,e>>>8&255,255&e,t>>>24&255,t>>>16&255,t>>>8&255,255&t,n>>>24&255,n>>>16&255,n>>>8&255,255&n,r>>>24&255,r>>>16&255,r>>>8&255,255&r,o>>>24&255,o>>>16&255,o>>>8&255,255&o,i>>>24&255,i>>>16&255,i>>>8&255,255&i,s>>>24&255,s>>>16&255,s>>>8&255,255&s];return this.is224||c.push(a>>>24&255,a>>>16&255,a>>>8&255,255&a),c},f.prototype.array=f.prototype.digest,f.prototype.arrayBuffer=function(){this.finalize();var e=new ArrayBuffer(this.is224?28:32),t=new DataView(e);return t.setUint32(0,this.h0),t.setUint32(4,this.h1),t.setUint32(8,this.h2),t.setUint32(12,this.h3),t.setUint32(16,this.h4),t.setUint32(20,this.h5),t.setUint32(24,this.h6),this.is224||t.setUint32(28,this.h7),e},m.prototype=new f,m.prototype.finalize=function(){if(f.prototype.finalize.call(this),this.inner){this.inner=!1;var e=this.array();f.call(this,this.is224,this.sharedMemory),this.update(this.oKeyPad),this.update(e),f.prototype.finalize.call(this)}};var g=d(),v=d(!0);g.sha256=g,g.sha224=v,g.hmac=p(),v.hmac=p(!0),e.exports=g});b(),s();var nt=s().A,rt=(0,Ze().A)(nt,b().render,b().staticRenderFns,!1,null,null,null).exports},6553:function(e){"use strict";e.exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.__esModule=!0,e.exports.default=e.exports},580:function(e,t,n){"use strict";var r=n(8483).default;function o(t,n){if("function"==typeof WeakMap)var i=new WeakMap,s=new WeakMap;return(e.exports=o=function(e,t){if(!t&&e&&e.__esModule)return e;var n,o,a={__proto__:null,default:e};if(null===e||"object"!=r(e)&&"function"!=typeof e)return a;if(n=t?s:i){if(n.has(e))return n.get(e);n.set(e,a)}for(var c in e)"default"!==c&&{}.hasOwnProperty.call(e,c)&&((o=(n=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,c))&&(o.get||o.set)?n(a,c,o):a[c]=e[c]);return a},e.exports.__esModule=!0,e.exports.default=e.exports)(t,n)}e.exports=o,e.exports.__esModule=!0,e.exports.default=e.exports},8483:function(e){"use strict";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}},t={};function n(r){var o=t[r];if(void 0!==o)return o.exports;var i=t[r]={exports:{}};return e[r](i,i.exports,n),i.exports}n.cw=function(e){var t;return function(){if(e){var n=e;e=0,t={exports:{}},n.call(t.exports,t,t.exports)}return t.exports}},n.d=function(e,t){for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var r={};return function(){"use strict";var e=r,t=n(6553).default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,e.getCommentsCount=async function(e={}){const t=(0,a.isUrl)(e.envId)?null:await u(e);return await(0,a.getCommentsCountApi)(t,e)},e.getRecentComments=async function(e={}){const t=(0,a.isUrl)(e.envId)?null:await u(e);return await(0,a.getRecentCommentsApi)(t,e)},e.getVisitorsCount=async function(e={}){const t=(0,a.isUrl)(e.envId)?null:await u(e);return await(0,a.getVisitorsCountApi)(t,e)},e.init=l,Object.defineProperty(e,"version",{enumerable:!0,get:function(){return o.version}});var o=n(3115),i=n(388),s=n(8897),a=n(2509),c=t(n(7814));async function u(e){return await(0,i.install)(c.default,e)}async function l(e={}){const t=(0,a.isUrl)(e.envId)?null:await u(e);(0,a.setLanguage)(e),(0,s.render)(t,e),await(0,a.updateVisitorsCount)(t,e)}n(5973),n(1676),n(244),e.default=l}(),r}()},"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.twikoo=t():e.twikoo=t();