hylid-bridge 4.0.1 → 4.0.3
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.
- package/lib/bridges.js +3 -2
- package/lib/clients/web/alipay/index.d.ts +4 -4
- package/lib/clients/web/alipay/index.js +4 -4
- package/lib/clients/web/alipay/saveImage.d.ts +1 -1
- package/lib/clients/web/alipay/saveImage.js +1 -1
- package/lib/umd/index.js +1 -1
- package/lib/umd/mp_web_alipayhk.js +1 -1
- package/lib/umd/mp_web_dana.js +1 -1
- package/lib/umd/mp_web_gcash.js +1 -1
- package/lib/umd/mp_web_tngd.js +1 -1
- package/lib/umd/mp_web_truemoney.js +1 -1
- package/lib/umd/web_alipay.js +1 -1
- package/lib/umd/web_h5.js +1 -1
- package/package.json +6 -6
package/lib/umd/web_h5.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/*! For license information please see web_h5.js.LICENSE.txt */
|
|
2
|
-
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.my=e():t.my=e()}(self,(()=>(()=>{var t={9644:(t,e,n)=>{t.exports=n(5644)},353:(t,e,n)=>{"use strict";var r=n(3044),o=n(6955),i=n(2233),a=n(8030),c=n(7948),u=n(1875),s=n(842),l=n(8560),f=n(1218),p=n(8047),d=n(738);t.exports=function(t){return new Promise((function(e,n){var h,v=t.data,m=t.headers,y=t.responseType;function g(){t.cancelToken&&t.cancelToken.unsubscribe(h),t.signal&&t.signal.removeEventListener("abort",h)}r.isFormData(v)&&r.isStandardBrowserEnv()&&delete m["Content-Type"];var b=new XMLHttpRequest;if(t.auth){var w=t.auth.username||"",O=t.auth.password?unescape(encodeURIComponent(t.auth.password)):"";m.Authorization="Basic "+btoa(w+":"+O)}var x=c(t.baseURL,t.url);function E(){if(b){var r="getAllResponseHeaders"in b?u(b.getAllResponseHeaders()):null,i={data:y&&"text"!==y&&"json"!==y?b.response:b.responseText,status:b.status,statusText:b.statusText,headers:r,config:t,request:b};o((function(t){e(t),g()}),(function(t){n(t),g()}),i),b=null}}if(b.open(t.method.toUpperCase(),a(x,t.params,t.paramsSerializer),!0),b.timeout=t.timeout,"onloadend"in b?b.onloadend=E:b.onreadystatechange=function(){b&&4===b.readyState&&(0!==b.status||b.responseURL&&0===b.responseURL.indexOf("file:"))&&setTimeout(E)},b.onabort=function(){b&&(n(new f("Request aborted",f.ECONNABORTED,t,b)),b=null)},b.onerror=function(){n(new f("Network Error",f.ERR_NETWORK,t,b,b)),b=null},b.ontimeout=function(){var e=t.timeout?"timeout of "+t.timeout+"ms exceeded":"timeout exceeded",r=t.transitional||l;t.timeoutErrorMessage&&(e=t.timeoutErrorMessage),n(new f(e,r.clarifyTimeoutError?f.ETIMEDOUT:f.ECONNABORTED,t,b)),b=null},r.isStandardBrowserEnv()){var A=(t.withCredentials||s(x))&&t.xsrfCookieName?i.read(t.xsrfCookieName):void 0;A&&(m[t.xsrfHeaderName]=A)}"setRequestHeader"in b&&r.forEach(m,(function(t,e){void 0===v&&"content-type"===e.toLowerCase()?delete m[e]:b.setRequestHeader(e,t)})),r.isUndefined(t.withCredentials)||(b.withCredentials=!!t.withCredentials),y&&"json"!==y&&(b.responseType=t.responseType),"function"==typeof t.onDownloadProgress&&b.addEventListener("progress",t.onDownloadProgress),"function"==typeof t.onUploadProgress&&b.upload&&b.upload.addEventListener("progress",t.onUploadProgress),(t.cancelToken||t.signal)&&(h=function(t){b&&(n(!t||t&&t.type?new p:t),b.abort(),b=null)},t.cancelToken&&t.cancelToken.subscribe(h),t.signal&&(t.signal.aborted?h():t.signal.addEventListener("abort",h))),v||(v=null);var j=d(x);j&&-1===["http","https","file"].indexOf(j)?n(new f("Unsupported protocol "+j+":",f.ERR_BAD_REQUEST,t)):b.send(v)}))}},5644:(t,e,n)=>{"use strict";var r=n(3044),o=n(3644),i=n(2215),a=n(2937),c=function t(e){var n=new i(e),c=o(i.prototype.request,n);return r.extend(c,i.prototype,n),r.extend(c,n),c.create=function(n){return t(a(e,n))},c}(n(663));c.Axios=i,c.CanceledError=n(8047),c.CancelToken=n(4089),c.isCancel=n(8041),c.VERSION=n(9241).version,c.toFormData=n(9027),c.AxiosError=n(1218),c.Cancel=c.CanceledError,c.all=function(t){return Promise.all(t)},c.spread=n(783),c.isAxiosError=n(5587),t.exports=c,t.exports.default=c},4089:(t,e,n)=>{"use strict";var r=n(8047);function o(t){if("function"!=typeof t)throw new TypeError("executor must be a function.");var e;this.promise=new Promise((function(t){e=t}));var n=this;this.promise.then((function(t){if(n._listeners){var e,r=n._listeners.length;for(e=0;e<r;e++)n._listeners[e](t);n._listeners=null}})),this.promise.then=function(t){var e,r=new Promise((function(t){n.subscribe(t),e=t})).then(t);return r.cancel=function(){n.unsubscribe(e)},r},t((function(t){n.reason||(n.reason=new r(t),e(n.reason))}))}o.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},o.prototype.subscribe=function(t){this.reason?t(this.reason):this._listeners?this._listeners.push(t):this._listeners=[t]},o.prototype.unsubscribe=function(t){if(this._listeners){var e=this._listeners.indexOf(t);-1!==e&&this._listeners.splice(e,1)}},o.source=function(){var t;return{token:new o((function(e){t=e})),cancel:t}},t.exports=o},8047:(t,e,n)=>{"use strict";var r=n(1218);function o(t){r.call(this,null==t?"canceled":t,r.ERR_CANCELED),this.name="CanceledError"}n(3044).inherits(o,r,{__CANCEL__:!0}),t.exports=o},8041:t=>{"use strict";t.exports=function(t){return!(!t||!t.__CANCEL__)}},2215:(t,e,n)=>{"use strict";var r=n(3044),o=n(8030),i=n(946),a=n(6895),c=n(2937),u=n(7948),s=n(7525),l=s.validators;function f(t){this.defaults=t,this.interceptors={request:new i,response:new i}}f.prototype.request=function(t,e){"string"==typeof t?(e=e||{}).url=t:e=t||{},(e=c(this.defaults,e)).method?e.method=e.method.toLowerCase():this.defaults.method?e.method=this.defaults.method.toLowerCase():e.method="get";var n=e.transitional;void 0!==n&&s.assertOptions(n,{silentJSONParsing:l.transitional(l.boolean),forcedJSONParsing:l.transitional(l.boolean),clarifyTimeoutError:l.transitional(l.boolean)},!1);var r=[],o=!0;this.interceptors.request.forEach((function(t){"function"==typeof t.runWhen&&!1===t.runWhen(e)||(o=o&&t.synchronous,r.unshift(t.fulfilled,t.rejected))}));var i,u=[];if(this.interceptors.response.forEach((function(t){u.push(t.fulfilled,t.rejected)})),!o){var f=[a,void 0];for(Array.prototype.unshift.apply(f,r),f=f.concat(u),i=Promise.resolve(e);f.length;)i=i.then(f.shift(),f.shift());return i}for(var p=e;r.length;){var d=r.shift(),h=r.shift();try{p=d(p)}catch(t){h(t);break}}try{i=a(p)}catch(t){return Promise.reject(t)}for(;u.length;)i=i.then(u.shift(),u.shift());return i},f.prototype.getUri=function(t){t=c(this.defaults,t);var e=u(t.baseURL,t.url);return o(e,t.params,t.paramsSerializer)},r.forEach(["delete","get","head","options"],(function(t){f.prototype[t]=function(e,n){return this.request(c(n||{},{method:t,url:e,data:(n||{}).data}))}})),r.forEach(["post","put","patch"],(function(t){function e(e){return function(n,r,o){return this.request(c(o||{},{method:t,headers:e?{"Content-Type":"multipart/form-data"}:{},url:n,data:r}))}}f.prototype[t]=e(),f.prototype[t+"Form"]=e(!0)})),t.exports=f},1218:(t,e,n)=>{"use strict";var r=n(3044);function o(t,e,n,r,o){Error.call(this),this.message=t,this.name="AxiosError",e&&(this.code=e),n&&(this.config=n),r&&(this.request=r),o&&(this.response=o)}r.inherits(o,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code,status:this.response&&this.response.status?this.response.status:null}}});var i=o.prototype,a={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED"].forEach((function(t){a[t]={value:t}})),Object.defineProperties(o,a),Object.defineProperty(i,"isAxiosError",{value:!0}),o.from=function(t,e,n,a,c,u){var s=Object.create(i);return r.toFlatObject(t,s,(function(t){return t!==Error.prototype})),o.call(s,t.message,e,n,a,c),s.name=t.name,u&&Object.assign(s,u),s},t.exports=o},946:(t,e,n)=>{"use strict";var r=n(3044);function o(){this.handlers=[]}o.prototype.use=function(t,e,n){return this.handlers.push({fulfilled:t,rejected:e,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1},o.prototype.eject=function(t){this.handlers[t]&&(this.handlers[t]=null)},o.prototype.forEach=function(t){r.forEach(this.handlers,(function(e){null!==e&&t(e)}))},t.exports=o},7948:(t,e,n)=>{"use strict";var r=n(9192),o=n(8762);t.exports=function(t,e){return t&&!r(e)?o(t,e):e}},6895:(t,e,n)=>{"use strict";var r=n(3044),o=n(8556),i=n(8041),a=n(663),c=n(8047);function u(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new c}t.exports=function(t){return u(t),t.headers=t.headers||{},t.data=o.call(t,t.data,t.headers,t.transformRequest),t.headers=r.merge(t.headers.common||{},t.headers[t.method]||{},t.headers),r.forEach(["delete","get","head","post","put","patch","common"],(function(e){delete t.headers[e]})),(t.adapter||a.adapter)(t).then((function(e){return u(t),e.data=o.call(t,e.data,e.headers,t.transformResponse),e}),(function(e){return i(e)||(u(t),e&&e.response&&(e.response.data=o.call(t,e.response.data,e.response.headers,t.transformResponse))),Promise.reject(e)}))}},2937:(t,e,n)=>{"use strict";var r=n(3044);t.exports=function(t,e){e=e||{};var n={};function o(t,e){return r.isPlainObject(t)&&r.isPlainObject(e)?r.merge(t,e):r.isPlainObject(e)?r.merge({},e):r.isArray(e)?e.slice():e}function i(n){return r.isUndefined(e[n])?r.isUndefined(t[n])?void 0:o(void 0,t[n]):o(t[n],e[n])}function a(t){if(!r.isUndefined(e[t]))return o(void 0,e[t])}function c(n){return r.isUndefined(e[n])?r.isUndefined(t[n])?void 0:o(void 0,t[n]):o(void 0,e[n])}function u(n){return n in e?o(t[n],e[n]):n in t?o(void 0,t[n]):void 0}var s={url:a,method:a,data:a,baseURL:c,transformRequest:c,transformResponse:c,paramsSerializer:c,timeout:c,timeoutMessage:c,withCredentials:c,adapter:c,responseType:c,xsrfCookieName:c,xsrfHeaderName:c,onUploadProgress:c,onDownloadProgress:c,decompress:c,maxContentLength:c,maxBodyLength:c,beforeRedirect:c,transport:c,httpAgent:c,httpsAgent:c,cancelToken:c,socketPath:c,responseEncoding:c,validateStatus:u};return r.forEach(Object.keys(t).concat(Object.keys(e)),(function(t){var e=s[t]||i,o=e(t);r.isUndefined(o)&&e!==u||(n[t]=o)})),n}},6955:(t,e,n)=>{"use strict";var r=n(1218);t.exports=function(t,e,n){var o=n.config.validateStatus;n.status&&o&&!o(n.status)?e(new r("Request failed with status code "+n.status,[r.ERR_BAD_REQUEST,r.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n)):t(n)}},8556:(t,e,n)=>{"use strict";var r=n(3044),o=n(663);t.exports=function(t,e,n){var i=this||o;return r.forEach(n,(function(n){t=n.call(i,t,e)})),t}},663:(t,e,n)=>{"use strict";var r=n(3044),o=n(8868),i=n(1218),a=n(8560),c=n(9027),u={"Content-Type":"application/x-www-form-urlencoded"};function s(t,e){!r.isUndefined(t)&&r.isUndefined(t["Content-Type"])&&(t["Content-Type"]=e)}var l,f={transitional:a,adapter:(("undefined"!=typeof XMLHttpRequest||"undefined"!=typeof process&&"[object process]"===Object.prototype.toString.call(process))&&(l=n(353)),l),transformRequest:[function(t,e){if(o(e,"Accept"),o(e,"Content-Type"),r.isFormData(t)||r.isArrayBuffer(t)||r.isBuffer(t)||r.isStream(t)||r.isFile(t)||r.isBlob(t))return t;if(r.isArrayBufferView(t))return t.buffer;if(r.isURLSearchParams(t))return s(e,"application/x-www-form-urlencoded;charset=utf-8"),t.toString();var n,i=r.isObject(t),a=e&&e["Content-Type"];if((n=r.isFileList(t))||i&&"multipart/form-data"===a){var u=this.env&&this.env.FormData;return c(n?{"files[]":t}:t,u&&new u)}return i||"application/json"===a?(s(e,"application/json"),function(t){if(r.isString(t))try{return(0,JSON.parse)(t),r.trim(t)}catch(t){if("SyntaxError"!==t.name)throw t}return(0,JSON.stringify)(t)}(t)):t}],transformResponse:[function(t){var e=this.transitional||f.transitional,n=e&&e.silentJSONParsing,o=e&&e.forcedJSONParsing,a=!n&&"json"===this.responseType;if(a||o&&r.isString(t)&&t.length)try{return JSON.parse(t)}catch(t){if(a){if("SyntaxError"===t.name)throw i.from(t,i.ERR_BAD_RESPONSE,this,null,this.response);throw t}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:n(4684)},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};r.forEach(["delete","get","head"],(function(t){f.headers[t]={}})),r.forEach(["post","put","patch"],(function(t){f.headers[t]=r.merge(u)})),t.exports=f},8560:t=>{"use strict";t.exports={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1}},9241:t=>{t.exports={version:"0.27.2"}},3644:t=>{"use strict";t.exports=function(t,e){return function(){for(var n=new Array(arguments.length),r=0;r<n.length;r++)n[r]=arguments[r];return t.apply(e,n)}}},8030:(t,e,n)=>{"use strict";var r=n(3044);function o(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}t.exports=function(t,e,n){if(!e)return t;var i;if(n)i=n(e);else if(r.isURLSearchParams(e))i=e.toString();else{var a=[];r.forEach(e,(function(t,e){null!=t&&(r.isArray(t)?e+="[]":t=[t],r.forEach(t,(function(t){r.isDate(t)?t=t.toISOString():r.isObject(t)&&(t=JSON.stringify(t)),a.push(o(e)+"="+o(t))})))})),i=a.join("&")}if(i){var c=t.indexOf("#");-1!==c&&(t=t.slice(0,c)),t+=(-1===t.indexOf("?")?"?":"&")+i}return t}},8762:t=>{"use strict";t.exports=function(t,e){return e?t.replace(/\/+$/,"")+"/"+e.replace(/^\/+/,""):t}},2233:(t,e,n)=>{"use strict";var r=n(3044);t.exports=r.isStandardBrowserEnv()?{write:function(t,e,n,o,i,a){var c=[];c.push(t+"="+encodeURIComponent(e)),r.isNumber(n)&&c.push("expires="+new Date(n).toGMTString()),r.isString(o)&&c.push("path="+o),r.isString(i)&&c.push("domain="+i),!0===a&&c.push("secure"),document.cookie=c.join("; ")},read:function(t){var e=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return e?decodeURIComponent(e[3]):null},remove:function(t){this.write(t,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}}},9192:t=>{"use strict";t.exports=function(t){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)}},5587:(t,e,n)=>{"use strict";var r=n(3044);t.exports=function(t){return r.isObject(t)&&!0===t.isAxiosError}},842:(t,e,n)=>{"use strict";var r=n(3044);t.exports=r.isStandardBrowserEnv()?function(){var t,e=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");function o(t){var r=t;return e&&(n.setAttribute("href",r),r=n.href),n.setAttribute("href",r),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:"/"===n.pathname.charAt(0)?n.pathname:"/"+n.pathname}}return t=o(window.location.href),function(e){var n=r.isString(e)?o(e):e;return n.protocol===t.protocol&&n.host===t.host}}():function(){return!0}},8868:(t,e,n)=>{"use strict";var r=n(3044);t.exports=function(t,e){r.forEach(t,(function(n,r){r!==e&&r.toUpperCase()===e.toUpperCase()&&(t[e]=n,delete t[r])}))}},4684:t=>{t.exports=null},1875:(t,e,n)=>{"use strict";var r=n(3044),o=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];t.exports=function(t){var e,n,i,a={};return t?(r.forEach(t.split("\n"),(function(t){if(i=t.indexOf(":"),e=r.trim(t.substr(0,i)).toLowerCase(),n=r.trim(t.substr(i+1)),e){if(a[e]&&o.indexOf(e)>=0)return;a[e]="set-cookie"===e?(a[e]?a[e]:[]).concat([n]):a[e]?a[e]+", "+n:n}})),a):a}},738:t=>{"use strict";t.exports=function(t){var e=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return e&&e[1]||""}},783:t=>{"use strict";t.exports=function(t){return function(e){return t.apply(null,e)}}},9027:(t,e,n)=>{"use strict";var r=n(3044);t.exports=function(t,e){e=e||new FormData;var n=[];function o(t){return null===t?"":r.isDate(t)?t.toISOString():r.isArrayBuffer(t)||r.isTypedArray(t)?"function"==typeof Blob?new Blob([t]):Buffer.from(t):t}return function t(i,a){if(r.isPlainObject(i)||r.isArray(i)){if(-1!==n.indexOf(i))throw Error("Circular reference detected in "+a);n.push(i),r.forEach(i,(function(n,i){if(!r.isUndefined(n)){var c,u=a?a+"."+i:i;if(n&&!a&&"object"==typeof n)if(r.endsWith(i,"{}"))n=JSON.stringify(n);else if(r.endsWith(i,"[]")&&(c=r.toArray(n)))return void c.forEach((function(t){!r.isUndefined(t)&&e.append(u,o(t))}));t(n,u)}})),n.pop()}else e.append(a,o(i))}(t),e}},7525:(t,e,n)=>{"use strict";var r=n(9241).version,o=n(1218),i={};["object","boolean","number","function","string","symbol"].forEach((function(t,e){i[t]=function(n){return typeof n===t||"a"+(e<1?"n ":" ")+t}}));var a={};i.transitional=function(t,e,n){function i(t,e){return"[Axios v"+r+"] Transitional option '"+t+"'"+e+(n?". "+n:"")}return function(n,r,c){if(!1===t)throw new o(i(r," has been removed"+(e?" in "+e:"")),o.ERR_DEPRECATED);return e&&!a[r]&&(a[r]=!0,console.warn(i(r," has been deprecated since v"+e+" and will be removed in the near future"))),!t||t(n,r,c)}},t.exports={assertOptions:function(t,e,n){if("object"!=typeof t)throw new o("options must be an object",o.ERR_BAD_OPTION_VALUE);for(var r=Object.keys(t),i=r.length;i-- >0;){var a=r[i],c=e[a];if(c){var u=t[a],s=void 0===u||c(u,a,t);if(!0!==s)throw new o("option "+a+" must be "+s,o.ERR_BAD_OPTION_VALUE)}else if(!0!==n)throw new o("Unknown option "+a,o.ERR_BAD_OPTION)}},validators:i}},3044:(t,e,n)=>{"use strict";var r,o=n(3644),i=Object.prototype.toString,a=(r=Object.create(null),function(t){var e=i.call(t);return r[e]||(r[e]=e.slice(8,-1).toLowerCase())});function c(t){return t=t.toLowerCase(),function(e){return a(e)===t}}function u(t){return Array.isArray(t)}function s(t){return void 0===t}var l=c("ArrayBuffer");function f(t){return null!==t&&"object"==typeof t}function p(t){if("object"!==a(t))return!1;var e=Object.getPrototypeOf(t);return null===e||e===Object.prototype}var d=c("Date"),h=c("File"),v=c("Blob"),m=c("FileList");function y(t){return"[object Function]"===i.call(t)}var g=c("URLSearchParams");function b(t,e){if(null!=t)if("object"!=typeof t&&(t=[t]),u(t))for(var n=0,r=t.length;n<r;n++)e.call(null,t[n],n,t);else for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&e.call(null,t[o],o,t)}var w,O=(w="undefined"!=typeof Uint8Array&&Object.getPrototypeOf(Uint8Array),function(t){return w&&t instanceof w});t.exports={isArray:u,isArrayBuffer:l,isBuffer:function(t){return null!==t&&!s(t)&&null!==t.constructor&&!s(t.constructor)&&"function"==typeof t.constructor.isBuffer&&t.constructor.isBuffer(t)},isFormData:function(t){var e="[object FormData]";return t&&("function"==typeof FormData&&t instanceof FormData||i.call(t)===e||y(t.toString)&&t.toString()===e)},isArrayBufferView:function(t){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(t):t&&t.buffer&&l(t.buffer)},isString:function(t){return"string"==typeof t},isNumber:function(t){return"number"==typeof t},isObject:f,isPlainObject:p,isUndefined:s,isDate:d,isFile:h,isBlob:v,isFunction:y,isStream:function(t){return f(t)&&y(t.pipe)},isURLSearchParams:g,isStandardBrowserEnv:function(){return("undefined"==typeof navigator||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&"undefined"!=typeof window&&"undefined"!=typeof document},forEach:b,merge:function t(){var e={};function n(n,r){p(e[r])&&p(n)?e[r]=t(e[r],n):p(n)?e[r]=t({},n):u(n)?e[r]=n.slice():e[r]=n}for(var r=0,o=arguments.length;r<o;r++)b(arguments[r],n);return e},extend:function(t,e,n){return b(e,(function(e,r){t[r]=n&&"function"==typeof e?o(e,n):e})),t},trim:function(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")},stripBOM:function(t){return 65279===t.charCodeAt(0)&&(t=t.slice(1)),t},inherits:function(t,e,n,r){t.prototype=Object.create(e.prototype,r),t.prototype.constructor=t,n&&Object.assign(t.prototype,n)},toFlatObject:function(t,e,n){var r,o,i,a={};e=e||{};do{for(o=(r=Object.getOwnPropertyNames(t)).length;o-- >0;)a[i=r[o]]||(e[i]=t[i],a[i]=!0);t=Object.getPrototypeOf(t)}while(t&&(!n||n(t,e))&&t!==Object.prototype);return e},kindOf:a,kindOfTest:c,endsWith:function(t,e,n){t=String(t),(void 0===n||n>t.length)&&(n=t.length),n-=e.length;var r=t.indexOf(e,n);return-1!==r&&r===n},toArray:function(t){if(!t)return null;var e=t.length;if(s(e))return null;for(var n=new Array(e);e-- >0;)n[e]=t[e];return n},isTypedArray:O,isFileList:m}},5554:t=>{"use strict";var e="%[a-f0-9]{2}",n=new RegExp("("+e+")|([^%]+?)","gi"),r=new RegExp("("+e+")+","gi");function o(t,e){try{return[decodeURIComponent(t.join(""))]}catch(t){}if(1===t.length)return t;e=e||1;var n=t.slice(0,e),r=t.slice(e);return Array.prototype.concat.call([],o(n),o(r))}function i(t){try{return decodeURIComponent(t)}catch(i){for(var e=t.match(n)||[],r=1;r<e.length;r++)e=(t=o(e,r).join("")).match(n)||[];return t}}t.exports=function(t){if("string"!=typeof t)throw new TypeError("Expected `encodedURI` to be of type `string`, got `"+typeof t+"`");try{return t=t.replace(/\+/g," "),decodeURIComponent(t)}catch(e){return function(t){for(var e={"%FE%FF":"��","%FF%FE":"��"},n=r.exec(t);n;){try{e[n[0]]=decodeURIComponent(n[0])}catch(t){var o=i(n[0]);o!==n[0]&&(e[n[0]]=o)}n=r.exec(t)}e["%C2"]="�";for(var a=Object.keys(e),c=0;c<a.length;c++){var u=a[c];t=t.replace(new RegExp(u,"g"),e[u])}return t}(t)}}},3563:(t,e,n)=>{"use strict";function r(t){return function(t){if(Array.isArray(t)){for(var e=0,n=new Array(t.length);e<t.length;e++)n[e]=t[e];return n}}(t)||function(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t))return Array.from(t)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}var o=n(6635);n(5554);function i(t,e){return e.encode?e.strict?o(t):encodeURIComponent(t):t}e.Pz=function(t,e){if(!t)return"";var n=function(t){switch(t.arrayFormat){case"index":return function(e){return function(n,o){var a=n.length;return void 0===o?n:[].concat(r(n),null===o?[[i(e,t),"[",a,"]"].join("")]:[[i(e,t),"[",i(a,t),"]=",i(o,t)].join("")])}};case"bracket":return function(e){return function(n,o){return void 0===o?n:[].concat(r(n),null===o?[[i(e,t),"[]"].join("")]:[[i(e,t),"[]=",i(o,t)].join("")])}};case"comma":return function(e){return function(n,r,o){return null==r||0===r.length?n:0===o?[[i(e,t),"=",i(r,t)].join("")]:[[n,i(r,t)].join(",")]}};default:return function(e){return function(n,o){return void 0===o?n:[].concat(r(n),null===o?[i(e,t)]:[[i(e,t),"=",i(o,t)].join("")])}}}}(e=Object.assign({encode:!0,strict:!0,arrayFormat:"none"},e)),o=Object.keys(t);return!1!==e.sort&&o.sort(e.sort),o.map((function(r){var o=t[r];return void 0===o?"":null===o?i(r,e):Array.isArray(o)?o.reduce(n(r),[]).join("&"):i(r,e)+"="+i(o,e)})).filter((function(t){return t.length>0})).join("&")}},6635:t=>{"use strict";t.exports=function(t){return encodeURIComponent(t).replace(/[!'()*]/g,(function(t){return"%"+t.charCodeAt(0).toString(16).toUpperCase()}))}},4904:(t,e,n)=>{"use strict";var r=n(1314).isUnitlessNumber,o=n(182),i=Array.isArray,a=Object.keys,c=/^(normal|none|(\b(url\([^)]*\)|chapter_counter|attr\([^)]*\)|(no-)?(open|close)-quote|inherit)((\b\s*)|$|\s+))+)$/;function u(t,e){return r[t]||"number"!=typeof e?"content"!==t||c.test(e)||(e="'"+e.replace(/'/g,"\\'")+"'"):e+="px",o(t)+": "+e+"; "}t.exports=function(t){var e="";if(!t||0===a(t).length)return e;for(var n=a(t),r=0,o=n.length;r<o;r++){var c=n[r],s=t[c];if(i(s))for(var l=0,f=s.length;l<f;l++)e+=u(c,s[l]);else e+=u(c,s)}return e}},1314:t=>{"use strict";var e={boxFlex:!0,boxFlexGroup:!0,columnCount:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,strokeDashoffset:!0,strokeOpacity:!0,strokeWidth:!0},n=["Webkit","ms","Moz","O"];Object.keys(e).forEach((function(t){n.forEach((function(n){e[function(t,e){return t+e.charAt(0).toUpperCase()+e.substring(1)}(n,t)]=e[t]}))}));var r={isUnitlessNumber:e,shorthandPropertyExpansions:{background:{backgroundImage:!0,backgroundPosition:!0,backgroundRepeat:!0,backgroundColor:!0},border:{borderWidth:!0,borderStyle:!0,borderColor:!0},borderBottom:{borderBottomWidth:!0,borderBottomStyle:!0,borderBottomColor:!0},borderLeft:{borderLeftWidth:!0,borderLeftStyle:!0,borderLeftColor:!0},borderRight:{borderRightWidth:!0,borderRightStyle:!0,borderRightColor:!0},borderTop:{borderTopWidth:!0,borderTopStyle:!0,borderTopColor:!0},font:{fontStyle:!0,fontVariant:!0,fontWeight:!0,fontSize:!0,lineHeight:!0,fontFamily:!0}}};t.exports=r},182:t=>{"use strict";var e=/^ms-/,n=/([A-Z])/g;t.exports=function(t){return function(t){return t.replace(n,"-$1").toLowerCase()}(t).replace(e,"-ms-")}},7609:(t,e,n)=>{var r=n(7425).default;function o(){"use strict";t.exports=o=function(){return e},t.exports.__esModule=!0,t.exports.default=t.exports;var e={},n=Object.prototype,i=n.hasOwnProperty,a="function"==typeof Symbol?Symbol:{},c=a.iterator||"@@iterator",u=a.asyncIterator||"@@asyncIterator",s=a.toStringTag||"@@toStringTag";function l(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,n){return t[e]=n}}function f(t,e,n,r){var o=e&&e.prototype instanceof h?e:h,i=Object.create(o.prototype),a=new S(r||[]);return i._invoke=function(t,e,n){var r="suspendedStart";return function(o,i){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw i;return{value:void 0,done:!0}}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var c=E(a,n);if(c){if(c===d)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var u=p(t,e,n);if("normal"===u.type){if(r=n.done?"completed":"suspendedYield",u.arg===d)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(r="completed",n.method="throw",n.arg=u.arg)}}}(t,n,a),i}function p(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}e.wrap=f;var d={};function h(){}function v(){}function m(){}var y={};l(y,c,(function(){return this}));var g=Object.getPrototypeOf,b=g&&g(g(k([])));b&&b!==n&&i.call(b,c)&&(y=b);var w=m.prototype=h.prototype=Object.create(y);function O(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function x(t,e){function n(o,a,c,u){var s=p(t[o],t,a);if("throw"!==s.type){var l=s.arg,f=l.value;return f&&"object"==r(f)&&i.call(f,"__await")?e.resolve(f.__await).then((function(t){n("next",t,c,u)}),(function(t){n("throw",t,c,u)})):e.resolve(f).then((function(t){l.value=t,c(l)}),(function(t){return n("throw",t,c,u)}))}u(s.arg)}var o;this._invoke=function(t,r){function i(){return new e((function(e,o){n(t,r,e,o)}))}return o=o?o.then(i,i):i()}}function E(t,e){var n=t.iterator[e.method];if(void 0===n){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=void 0,E(t,e),"throw"===e.method))return d;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return d}var r=p(n,t.iterator,e.arg);if("throw"===r.type)return e.method="throw",e.arg=r.arg,e.delegate=null,d;var o=r.arg;return o?o.done?(e[t.resultName]=o.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,d):o:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,d)}function A(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function j(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function S(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(A,this),this.reset(!0)}function k(t){if(t){var e=t[c];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,r=function e(){for(;++n<t.length;)if(i.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return r.next=r}}return{next:P}}function P(){return{value:void 0,done:!0}}return v.prototype=m,l(w,"constructor",m),l(m,"constructor",v),v.displayName=l(m,s,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===v||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,m):(t.__proto__=m,l(t,s,"GeneratorFunction")),t.prototype=Object.create(w),t},e.awrap=function(t){return{__await:t}},O(x.prototype),l(x.prototype,u,(function(){return this})),e.AsyncIterator=x,e.async=function(t,n,r,o,i){void 0===i&&(i=Promise);var a=new x(f(t,n,r,o),i);return e.isGeneratorFunction(n)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},O(w),l(w,s,"Generator"),l(w,c,(function(){return this})),l(w,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=[];for(var n in t)e.push(n);return e.reverse(),function n(){for(;e.length;){var r=e.pop();if(r in t)return n.value=r,n.done=!1,n}return n.done=!0,n}},e.values=k,S.prototype={constructor:S,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(j),!t)for(var e in this)"t"===e.charAt(0)&&i.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(n,r){return a.type="throw",a.arg=t,e.next=n,r&&(e.method="next",e.arg=void 0),!!r}for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var c=i.call(o,"catchLoc"),u=i.call(o,"finallyLoc");if(c&&u){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(c){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&i.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var o=r;break}}o&&("break"===t||"continue"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=t,a.arg=e,o?(this.method="next",this.next=o.finallyLoc,d):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),d},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),j(n),d}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var o=r.arg;j(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:k(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=void 0),d}},e}t.exports=o,t.exports.__esModule=!0,t.exports.default=t.exports},7425:t=>{function e(n){return t.exports=e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},t.exports.__esModule=!0,t.exports.default=t.exports,e(n)}t.exports=e,t.exports.__esModule=!0,t.exports.default=t.exports},2841:(t,e,n)=>{var r=n(7609)();t.exports=r;try{regeneratorRuntime=r}catch(t){"object"==typeof globalThis?globalThis.regeneratorRuntime=r:Function("r","regeneratorRuntime = r")(r)}}},e={};function n(r){var o=e[r];if(void 0!==o)return o.exports;var i=e[r]={exports:{}};return t[r](i,i.exports,n),i.exports}n.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return n.d(e,{a:e}),e},n.d=(t,e)=>{for(var r in e)n.o(e,r)&&!n.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},n.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e);var r={};return(()=>{"use strict";n.d(r,{default:()=>hr});var t=function(t){if(window.AlipayJSBridge)return t();document.addEventListener("AlipayJSBridgeReady",(function(){return t()}),!1)};function e(e,n,r){t((function(){var t=(r||{}).type,o=void 0===t?"async":t;"async"===o&&window.AlipayJSBridge.call(e,n,(function(t){var e=n||{},r=e.success,o=e.fail,i=e.complete;t.error?null==o||o(t):null==r||r(t),null==i||i(t)})),"callback"===o&&window.AlipayJSBridge.call(e,n)}))}function o(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function i(t,e,n){return e&&o(t.prototype,e),n&&o(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function a(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function c(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function u(t,e){return u=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},u(t,e)}function s(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&u(t,e)}function l(t){return l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},l(t)}function f(t,e){if(e&&("object"===l(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return c(t)}function p(t){return p=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},p(t)}function d(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function h(t,e){if(t){if("string"==typeof t)return d(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?d(t,e):void 0}}function v(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,o,i=[],a=!0,c=!1;try{for(n=n.call(t);!(a=(r=n.next()).done)&&(i.push(r.value),!e||i.length!==e);a=!0);}catch(t){c=!0,o=t}finally{try{a||null==n.return||n.return()}finally{if(c)throw o}}return i}}(t,e)||h(t,e)||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.")}()}function m(){}function y(t){return t()}function g(){return Object.create(null)}function b(t){t.forEach(y)}function w(t){return"function"==typeof t}function O(t,e){return t!=t?e==e:t!==e||t&&"object"==typeof t||"function"==typeof t}function x(t){return 0===Object.keys(t).length}function E(t,e,n,r){return t[1]&&r?function(t,e){for(const n in e)t[n]=e[n];return t}(n.ctx.slice(),t[1](r(e))):n.ctx}function A(t){return null==t?"":t}new Set;let j,S=!1;function k(t,e){t.appendChild(e)}function P(t,e,n){const r=function(t){if(!t)return document;const e=t.getRootNode?t.getRootNode():t.ownerDocument;return e&&e.host?e:t.ownerDocument}(t);if(!r.getElementById(e)){const t=$("style");t.id=e,t.textContent=n,function(t,e){k(t.head||t,e)}(r,t)}}function T(t,e,n){t.insertBefore(e,n||null)}function N(t){t.parentNode.removeChild(t)}function $(t){return document.createElement(t)}function C(t){return document.createElementNS("http://www.w3.org/2000/svg",t)}function _(t){return document.createTextNode(t)}function R(){return _(" ")}function L(t,e,n,r){return t.addEventListener(e,n,r),()=>t.removeEventListener(e,n,r)}function D(t,e,n){null==n?t.removeAttribute(e):t.getAttribute(e)!==n&&t.setAttribute(e,n)}function B(t,e){e=""+e,t.wholeText!==e&&(t.data=e)}function I(t){j=t}function M(){if(!j)throw new Error("Function called outside component initialization");return j}function U(t){M().$$.on_mount.push(t)}new Map;const F=[],H=[],K=[],W=[],Y=Promise.resolve();let z=!1;function G(t){K.push(t)}const q=new Set;let J=0;function V(){const t=j;do{for(;J<F.length;){const t=F[J];J++,I(t),X(t.$$)}for(I(null),F.length=0,J=0;H.length;)H.pop()();for(let t=0;t<K.length;t+=1){const e=K[t];q.has(e)||(q.add(e),e())}K.length=0}while(F.length);for(;W.length;)W.pop()();z=!1,q.clear(),I(t)}function X(t){if(null!==t.fragment){t.update(),b(t.before_update);const e=t.dirty;t.dirty=[-1],t.fragment&&t.fragment.p(t.ctx,e),t.after_update.forEach(G)}}const Q=new Set;let Z,tt;function et(t,e){t&&t.i&&(Q.delete(t),t.i(e))}function nt(t,e,n,r){if(t&&t.o){if(Q.has(t))return;Q.add(t),Z.c.push((()=>{Q.delete(t),r&&(n&&t.d(1),r())})),t.o(e)}else r&&r()}function rt(t){t&&t.c()}function ot(t,e,n,r){const{fragment:o,on_mount:i,on_destroy:a,after_update:c}=t.$$;o&&o.m(e,n),r||G((()=>{const e=i.map(y).filter(w);a?a.push(...e):b(e),t.$$.on_mount=[]})),c.forEach(G)}function it(t,e){const n=t.$$;null!==n.fragment&&(b(n.on_destroy),n.fragment&&n.fragment.d(e),n.on_destroy=n.fragment=null,n.ctx=[])}function at(t,e,n,r,o,i,a,c=[-1]){const u=j;I(t);const s=t.$$={fragment:null,ctx:null,props:i,update:m,not_equal:o,bound:g(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(e.context||(u?u.$$.context:[])),callbacks:g(),dirty:c,skip_bound:!1,root:e.target||u.$$.root};a&&a(s.root);let l=!1;if(s.ctx=n?n(t,e.props||{},((e,n,...r)=>{const i=r.length?r[0]:n;return s.ctx&&o(s.ctx[e],s.ctx[e]=i)&&(!s.skip_bound&&s.bound[e]&&s.bound[e](i),l&&function(t,e){-1===t.$$.dirty[0]&&(F.push(t),z||(z=!0,Y.then(V)),t.$$.dirty.fill(0)),t.$$.dirty[e/31|0]|=1<<e%31}(t,e)),n})):[],s.update(),l=!0,b(s.before_update),s.fragment=!!r&&r(s.ctx),e.target){if(e.hydrate){S=!0;const t=(f=e.target,Array.from(f.childNodes));s.fragment&&s.fragment.l(t),t.forEach(N)}else s.fragment&&s.fragment.c();e.intro&&et(t.$$.fragment),ot(t,e.target,e.anchor,e.customElement),S=!1,V()}var f;I(u)}"undefined"!=typeof window?window:"undefined"!=typeof globalThis?globalThis:global,new Set(["allowfullscreen","allowpaymentrequest","async","autofocus","autoplay","checked","controls","default","defer","disabled","formnovalidate","hidden","ismap","loop","multiple","muted","nomodule","novalidate","open","playsinline","readonly","required","reversed","selected"]),"function"==typeof HTMLElement&&(tt=class extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"})}connectedCallback(){const{on_mount:t}=this.$$;this.$$.on_disconnect=t.map(y).filter(w);for(const t in this.$$.slotted)this.appendChild(this.$$.slotted[t])}attributeChangedCallback(t,e,n){this[t]=n}disconnectedCallback(){b(this.$$.on_disconnect)}$destroy(){it(this,1),this.$destroy=m}$on(t,e){const n=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return n.push(e),()=>{const t=n.indexOf(e);-1!==t&&n.splice(t,1)}}$set(t){this.$$set&&!x(t)&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}});class ct{$destroy(){it(this,1),this.$destroy=m}$on(t,e){const n=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return n.push(e),()=>{const t=n.indexOf(e);-1!==t&&n.splice(t,1)}}$set(t){this.$$set&&!x(t)&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}}function ut(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function st(t){var e=[];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.push([n,t[n]]);return e}var lt,ft,pt=function(){function t(){a(this,t)}return i(t,null,[{key:"isString",value:function(t){return"string"==typeof t}},{key:"isFunction",value:function(t){return"function"==typeof t}},{key:"isNotEmpty",value:function(t){return t&&t.length>0}},{key:"isEmpty",value:function(e){return!t.isNotEmpty(e)}},{key:"parseObjectSafe",value:function(t,e){try{return JSON.parse(t)}catch(t){console.warn("parseObjectSafe error: ",t)}return e}},{key:"encodeMap",value:function(t){if(t){var e=[];return st(t).forEach((function(t){var n=t[0],r=t[1];null!=r&&e.push("".concat(encodeURIComponent(n),"=").concat(encodeURIComponent(r)))})),e.length>0?e.join("&"):void 0}}}]),t}();!function(t){t.EASYPAISA="EASYPAISA",t.TRUEMONEY="TRUEMONEY",t.KAKAOPAY="KAKAOPAY",t.BKASH="BKASH",t.ALIPAY_CN="ALIPAY_CN",t.ALIPAY_HK="ALIPAY_HK",t.ALIPAY_MO="ALIPAY_MO",t.GCASH="GCASH",t.TNG="TNG",t.DANA="DANA"}(lt||(lt={})),function(t){t.alipayhk="alipayhk",t.alipaymo="alipaymo",t.gcash="gcash",t.tngd="tngd",t.dana="dana",t.kakaopay="kakaopay"}(ft||(ft={}));var dt=ut(ut(ut(ut(ut(ut({},lt.ALIPAY_HK,ft.alipayhk),lt.ALIPAY_MO,ft.alipaymo),lt.GCASH,ft.gcash),lt.DANA,ft.dana),lt.TNG,ft.tngd),lt.KAKAOPAY,ft.kakaopay);function ht(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function vt(){var t,e,n,r=function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?ht(Object(n),!0).forEach((function(e){ut(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):ht(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}({},null===(t=xt())||void 0===t?void 0:t.rpcOptions);return r.gatewayUrl||(r.gatewayUrl=(wt||(wt=function(){var t=window.location.host;return function(t){return"localhost"===t||/^localhost:[0-9]+$/.test(t)||/^[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+:[0-9]+$/.test(t)}(t)?bt.STABLE:t.endsWith(".test.alipay.net")||"oss-local-test.marmot-cloud.com"===t?bt.TEST:t.endsWith(".alipay.net")||"oss-local-dev.marmot-cloud.com"===t?bt.STABLE:t.endsWith(".pre.ac.alipay.com")?bt.PRE:bt.PROD}()),(e=wt)===bt.STABLE?"http://imgs-2.sggz00b.stable.alipay.net/imgw.htm":e===bt.TEST?"http://imgs-ztt-0.sggz00a.test.alipay.net/mgw.htm":e===bt.PRE?"https://imgs-sea-pre.alipay.com/imgw.htm":"https://imgs-ac.alipay.com/imgw.htm")),r.workspaceId||(r.gatewayUrl.indexOf("pre")>0?r.workspaceId="pre":r.workspaceId="default"),r.appId||(r.appId=(n=function(){var t,e=null===(t=xt())||void 0===t?void 0:t.appName;if(pt.isNotEmpty(e))return e;if(e=Et().app,pt.isNotEmpty(e))return e;var n=function(){var t,e=null===(t=xt())||void 0===t?void 0:t.siteName;return pt.isNotEmpty(e)?e:(e=Et().site,pt.isNotEmpty(e)?e:void console.error("no siteName! please specify siteName in initWebPolyfill(...)"))}();if(e=dt[n||""],pt.isNotEmpty(e))return e;console.error("no appName! please specify appName in initWebPolyfill(...)")}())===ft.alipayhk?"BE9C457241710":n===ft.alipaymo?"ALIPAY_WALLET_MO":n===ft.gcash?"GCASH_WALLET_PH":n===ft.tngd?"TNGD_WALLET_MY":n===ft.dana?"DANA_WALLET_ID":n===ft.kakaopay?"KAKAOPAY_WALLET_KR":(console.error("Cannot find Rpc AppId for ".concat(n,"!")),"UNKNOWN_APP_ID")),r}function mt(t){var e,n={};if(pt.isEmpty(t))return n;var r=t.indexOf("?");return r>=0&&(t=t.substring(r+1)),null===(e=t.split("&"))||void 0===e||e.forEach((function(t){var e=t.split("=");if(!(e.length<2)){var r=decodeURIComponent(e[0]);n[r]=decodeURIComponent(e[1])}})),n}var yt,gt,bt,wt,Ot=function(t){return"".concat("alipay-mwj","-").concat(t)};function xt(){return yt}function Et(){return gt||(gt=function(){var t={};st(mt(window.location.search)).forEach((function(e){var n=e[0],r=e[1],o=n.toLowerCase();if("query"===o)try{t.query=mt(r)}catch(t){console.warn("parse query error: ",t)}else"referrerinfo"===o?t.referrerInfo=mt(r):t[n]=r}));var e=window.location.hash;if(e){var n=e.indexOf("?");t.hashPath=n>0?e.substring(1,n):e.substring(1),t.hashQuery=mt(e)}return t}()),gt}!function(t){t.STABLE="STABLE",t.TEST="TEST",t.PRE="PRE",t.PROD="PROD"}(bt||(bt={}));var At=n(4904),jt=n.n(At);function St(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(St=function(){return!!t})()}function kt(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Pt(t){P(t,"svelte-1l3ztq7",".alipay-mwj-modal.svelte-1l3ztq7{width:100vw;height:100vh;position:fixed;left:0;top:0;right:0;bottom:0;display:flex;flex-direction:column;align-items:center;justify-content:center}")}function Tt(t){var e,n,r,o=t[7].default,i=function(t,e,n){if(t){const r=E(t,e,n,null);return t[0](r)}}(o,t,t[6]);return{c:function(){e=$("div"),i&&i.c(),D(e,"class",n=A(t[0]?"".concat(t[2]," ").concat(t[0]):t[2])+" svelte-1l3ztq7"),D(e,"style",t[1])},m:function(t,n){T(t,e,n),i&&i.m(e,null),r=!0},p:function(t,a){var c=v(a,1)[0];i&&i.p&&(!r||64&c)&&function(t,e,n,r,o,i){if(o){const a=E(e,n,r,i);t.p(a,o)}}(i,o,t,t[6],r?function(t,e,n,r){if(t[2]&&r){const o=t[2](r(n));if(void 0===e.dirty)return o;if("object"==typeof o){const t=[],n=Math.max(e.dirty.length,o.length);for(let r=0;r<n;r+=1)t[r]=e.dirty[r]|o[r];return t}return e.dirty|o}return e.dirty}(o,t[6],c,null):function(t){if(t.ctx.length>32){const e=[],n=t.ctx.length/32;for(let t=0;t<n;t++)e[t]=-1;return e}return-1}(t[6]),null),(!r||1&c&&n!==(n=A(t[0]?"".concat(t[2]," ").concat(t[0]):t[2])+" svelte-1l3ztq7"))&&D(e,"class",n),(!r||2&c)&&D(e,"style",t[1])},i:function(t){r||(et(i,t),r=!0)},o:function(t){nt(i,t),r=!1},d:function(t){t&&N(e),i&&i.d(t)}}}function Nt(t,e,n){var r,o=e.$$slots,i=void 0===o?{}:o,a=e.$$scope,c=Ot("modal"),u=e.duration,s=void 0===u?void 0:u,l=e.afterClose,f=void 0===l?function(){}:l,p=e.className,d=void 0===p?"":p,h=e.style,v=void 0===h?{}:h;return setTimeout((function(){s&&s>0&&f()}),s&&s>0?s:0),t.$$set=function(t){"duration"in t&&n(3,s=t.duration),"afterClose"in t&&n(4,f=t.afterClose),"className"in t&&n(0,d=t.className),"style"in t&&n(5,v=t.style),"$$scope"in t&&n(6,a=t.$$scope)},t.$$.update=function(){32&t.$$.dirty&&n(1,r=jt()(function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?kt(Object(n),!0).forEach((function(e){ut(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):kt(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}({zIndex:999999},v)))},[d,r,c,s,f,v,a,i]}const $t=function(t){s(o,t);var e,n,r=(e=o,n=St(),function(){var t,r=p(e);if(n){var o=p(this).constructor;t=Reflect.construct(r,arguments,o)}else t=r.apply(this,arguments);return f(this,t)});function o(t){var e;return a(this,o),at(c(e=r.call(this)),t,Nt,Tt,O,{duration:3,afterClose:4,className:0,style:5},Pt),e}return i(o)}(ct);function Ct(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(Ct=function(){return!!t})()}function _t(t){P(t,"svelte-1pl0sex",".alipay-mwj-alert.svelte-1pl0sex{width:100vw;height:100vh;background-color:rgba(0, 0, 0, 0.4);display:flex;flex-direction:column;align-items:center;justify-content:center}.alipay-mwj-alert-content.svelte-1pl0sex{background-color:#fff;width:270px;border-radius:7px;padding-top:15px;text-align:center;position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center}.alipay-mwj-alert-title.svelte-1pl0sex{font-size:18px;color:#000;padding:6px 15px 15px;word-break:break-word}.alipay-mwj-alert-text.svelte-1pl0sex{color:#888;font-size:15px;padding:0 15px 15px;overflow:auto;word-break:break-word}.alipay-mwj-alert-line.svelte-1pl0sex{width:100%;height:1px;background-color:#eee}.alipay-mwj-alert-button.svelte-1pl0sex{color:#3F8DE2;font-size:18px;height:50px;line-height:50px}")}function Rt(t){var e,n;return{c:function(){e=$("span"),n=_(t[1]),D(e,"class",t[5]+"-text svelte-1pl0sex")},m:function(t,r){T(t,e,r),k(e,n)},p:function(t,e){2&e&&B(n,t[1])},d:function(t){t&&N(e)}}}function Lt(t){var e,n,r,o,i,a,c,u,s,l,f,p,d=(t[0]||"")+"",h=(t[2]||"OK")+"",v=t[4]&&Rt(t);return{c:function(){e=$("div"),n=$("div"),r=$("span"),o=_(d),i=R(),v&&v.c(),a=R(),c=$("div"),u=R(),s=$("span"),l=_(h),D(r,"class",t[5]+"-title svelte-1pl0sex"),D(c,"class",t[5]+"-line svelte-1pl0sex"),D(s,"class",t[5]+"-button svelte-1pl0sex"),D(n,"class",t[5]+"-content svelte-1pl0sex"),D(e,"class",A(t[5])+" svelte-1pl0sex")},m:function(d,h){T(d,e,h),k(e,n),k(n,r),k(r,o),k(n,i),v&&v.m(n,null),k(n,a),k(n,c),k(n,u),k(n,s),k(s,l),f||(p=L(s,"click",(function(){w(t[3])&&t[3].apply(this,arguments)})),f=!0)},p:function(e,r){t=e,1&r&&d!==(d=(t[0]||"")+"")&&B(o,d),t[4]?v?v.p(t,r):((v=Rt(t)).c(),v.m(n,a)):v&&(v.d(1),v=null),4&r&&h!==(h=(t[2]||"OK")+"")&&B(l,h)},d:function(t){t&&N(e),v&&v.d(),f=!1,p()}}}function Dt(t){var e,n;return e=new $t({props:{$$slots:{default:[Lt]},$$scope:{ctx:t}}}),{c:function(){rt(e.$$.fragment)},m:function(t,r){ot(e,t,r),n=!0},p:function(t,n){var r=v(n,1)[0],o={};95&r&&(o.$$scope={dirty:r,ctx:t}),e.$set(o)},i:function(t){n||(et(e.$$.fragment,t),n=!0)},o:function(t){nt(e.$$.fragment,t),n=!1},d:function(t){it(e,t)}}}function Bt(t,e,n){var r,o=e.title,i=e.content,a=e.buttonText,c=e.onClose,u=Ot("alert");return t.$$set=function(t){"title"in t&&n(0,o=t.title),"content"in t&&n(1,i=t.content),"buttonText"in t&&n(2,a=t.buttonText),"onClose"in t&&n(3,c=t.onClose)},t.$$.update=function(){2&t.$$.dirty&&n(4,r=pt.isNotEmpty(i))},[o,i,a,c,r,u]}const It=function(t){s(o,t);var e,n,r=(e=o,n=Ct(),function(){var t,r=p(e);if(n){var o=p(this).constructor;t=Reflect.construct(r,arguments,o)}else t=r.apply(this,arguments);return f(this,t)});function o(t){var e;return a(this,o),at(c(e=r.call(this)),t,Bt,Dt,O,{title:0,content:1,buttonText:2,onClose:3},_t),e}return i(o)}(ct);function Mt(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(Mt=function(){return!!t})()}function Ut(t){P(t,"svelte-1rtcbed",".alipay-mwj-confirm.svelte-1rtcbed{width:100vw;height:100vh;background-color:rgba(0, 0, 0, 0.4);display:flex;flex-direction:column;align-items:center;justify-content:center}.alipay-mwj-confirm-content.svelte-1rtcbed{background-color:#fff;width:270px;border-radius:7px;padding-top:15px;text-align:center;position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center}.alipay-mwj-confirm-title.svelte-1rtcbed{font-size:18px;color:#000;padding:6px 15px 15px}.alipay-mwj-confirm-text.svelte-1rtcbed{color:#888;font-size:15px;padding:0 15px 15px;overflow:auto;word-break:break-word}.alipay-mwj-confirm-line.svelte-1rtcbed{width:100%;height:1px;background-color:#eee}.alipay-mwj-confirm-buttonContent.svelte-1rtcbed{width:100%;display:flex;flex-direction:row;height:50px;line-height:50px;font-size:18px;align-items:center}.alipay-mwj-confirm-button.svelte-1rtcbed{flex:1;color:#3F8DE2;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.alipay-mwj-confirm-cancel.svelte-1rtcbed{flex:1;color:#000;border-right:solid 1px #eee;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}")}function Ft(t){var e,n;return{c:function(){e=$("span"),n=_(t[0]),D(e,"class",t[7]+"-title svelte-1rtcbed")},m:function(t,r){T(t,e,r),k(e,n)},p:function(t,e){1&e&&B(n,t[0])},d:function(t){t&&N(e)}}}function Ht(t){var e,n;return{c:function(){e=$("span"),n=_(t[1]),D(e,"class",t[7]+"-text svelte-1rtcbed")},m:function(t,r){T(t,e,r),k(e,n)},p:function(t,e){2&e&&B(n,t[1])},d:function(t){t&&N(e)}}}function Kt(t){var e,n,r,o,i,a,c,u,s,l,f,p,d,h,v=(t[3]||"Cancel")+"",m=(t[2]||"OK")+"",y=t[5]&&Ft(t),g=t[6]&&Ht(t);return{c:function(){e=$("div"),n=$("div"),y&&y.c(),r=R(),g&&g.c(),o=R(),i=$("div"),a=R(),c=$("div"),u=$("span"),s=_(v),l=R(),f=$("span"),p=_(m),D(i,"class",t[7]+"-line svelte-1rtcbed"),D(u,"class",t[7]+"-cancel svelte-1rtcbed"),D(f,"class",t[7]+"-button svelte-1rtcbed"),D(c,"class",t[7]+"-buttonContent svelte-1rtcbed"),D(n,"class",t[7]+"-content svelte-1rtcbed"),D(e,"class",A(t[7])+" svelte-1rtcbed")},m:function(v,m){T(v,e,m),k(e,n),y&&y.m(n,null),k(n,r),g&&g.m(n,null),k(n,o),k(n,i),k(n,a),k(n,c),k(c,u),k(u,s),k(c,l),k(c,f),k(f,p),d||(h=[L(u,"click",t[8]),L(f,"click",t[9])],d=!0)},p:function(t,e){t[5]?y?y.p(t,e):((y=Ft(t)).c(),y.m(n,r)):y&&(y.d(1),y=null),t[6]?g?g.p(t,e):((g=Ht(t)).c(),g.m(n,o)):g&&(g.d(1),g=null),8&e&&v!==(v=(t[3]||"Cancel")+"")&&B(s,v),4&e&&m!==(m=(t[2]||"OK")+"")&&B(p,m)},d:function(t){t&&N(e),y&&y.d(),g&&g.d(),d=!1,b(h)}}}function Wt(t){var e,n;return e=new $t({props:{$$slots:{default:[Kt]},$$scope:{ctx:t}}}),{c:function(){rt(e.$$.fragment)},m:function(t,r){ot(e,t,r),n=!0},p:function(t,n){var r=v(n,1)[0],o={};1151&r&&(o.$$scope={dirty:r,ctx:t}),e.$set(o)},i:function(t){n||(et(e.$$.fragment,t),n=!0)},o:function(t){nt(e.$$.fragment,t),n=!1},d:function(t){it(e,t)}}}function Yt(t,e,n){var r,o,i=e.title,a=e.content,c=e.confirmButtonText,u=e.cancelButtonText,s=e.onClose,l=Ot("confirm");return t.$$set=function(t){"title"in t&&n(0,i=t.title),"content"in t&&n(1,a=t.content),"confirmButtonText"in t&&n(2,c=t.confirmButtonText),"cancelButtonText"in t&&n(3,u=t.cancelButtonText),"onClose"in t&&n(4,s=t.onClose)},t.$$.update=function(){2&t.$$.dirty&&n(6,r=pt.isNotEmpty(a)),1&t.$$.dirty&&n(5,o=pt.isNotEmpty(i))},[i,a,c,u,s,o,r,l,function(){return s(!1)},function(){return s(!0)}]}const zt=function(t){s(o,t);var e,n,r=(e=o,n=Mt(),function(){var t,r=p(e);if(n){var o=p(this).constructor;t=Reflect.construct(r,arguments,o)}else t=r.apply(this,arguments);return f(this,t)});function o(t){var e;return a(this,o),at(c(e=r.call(this)),t,Yt,Wt,O,{title:0,content:1,confirmButtonText:2,cancelButtonText:3,onClose:4},Ut),e}return i(o)}(ct);function Gt(t){setTimeout(t,0)}var qt;function Jt(){var t;return qt||(t=Math.ceil(375/window.screen.width*window.screen.height),qt={platform:/(iPhone|iPad|iPod|iOS)/i.test(navigator.userAgent)?"iOS":/(Android)/i.test(navigator.userAgent)?"Android":"UNKNOWN",pixelRatio:window.devicePixelRatio,windowWidth:375,windowHeight:t-0-0,titleBarHeight:0,statusBarHeight:0,screenWidth:375,screenHeight:t,currentBattery:"100%",brand:"UNKNOWN",model:"UNKNOWN",system:"UNKNOWN",version:"UNKNOWN",storage:"",app:"h5",fontSizeSetting:16,language:navigator.language}),qt}var Vt;!function(t){t.ToastHide="ToastHide",t.LoadingHide="LoadingHide"}(Vt||(Vt={}));const Xt=Vt;var Qt=new(function(){function t(e){a(this,t),ut(this,"managerName",void 0),ut(this,"listenersMap",{}),this.managerName=e}return i(t,[{key:"addListener",value:function(t,e){var n=this;console.log("EventManager_".concat(this.managerName,"#addListener: ").concat(t));var r=this.listenersMap[t];return r||(r=[],this.listenersMap[t]=r),r.push(e),function(){n.removeListener(t,e)}}},{key:"removeListener",value:function(t,e){if(console.log("EventManager_".concat(this.managerName,"#removeListener: ").concat(t)),e){var n=this.listenersMap[t];n&&(this.listenersMap[t]=n.filter((function(t){return t!==e})))}else this.listenersMap[t]=[]}},{key:"notifyEvent",value:function(t,e){console.log("EventManager_".concat(this.managerName,"#notifyEvent: ").concat(t," -> "),e);var n,r=this.listenersMap[t];r&&(n=r,function(t){if(Array.isArray(t))return d(t)}(n)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(n)||h(n)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()).forEach((function(n){return n(e,t)}))}}]),t}())("default"),Zt=0;function te(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(te=function(){return!!t})()}function ee(t){P(t,"svelte-1r6kpb6",".alipay-mwj-loading.svelte-1r6kpb6{background-color:rgba(58, 58, 58, 0.9);min-width:72px;max-width:50vw;padding:15px;border-radius:5px;box-sizing:border-box;position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center}.alipay-mwj-loading-iconRoot.svelte-1r6kpb6{width:34px;height:34px;border:solid 4px #888;border-radius:50%;position:relative}.alipay-mwj-loading-icon.svelte-1r6kpb6{position:absolute;left:-4px;top:-4px;right:-4px;bottom:-4px;border:solid 4px #fff;border-radius:50%;clip-path:polygon(50% 0%, 100% 0%, 100% 3600%, 50% 50%);animation:svelte-1r6kpb6-alipay-mwj-loading-ring 1.5s cubic-bezier(0.5, 0, 0.5, 1) infinite}.alipay-mwj-loading-text.svelte-1r6kpb6{color:#fff;font-size:14px;text-align:center;margin-top:6px}@keyframes svelte-1r6kpb6-alipay-mwj-loading-ring{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}")}function ne(t){var e,n,r,o,i=t[2]&&re(t);return{c:function(){e=$("div"),n=$("div"),r=$("div"),o=R(),i&&i.c(),D(r,"class",t[3]+"-icon svelte-1r6kpb6"),D(n,"class",t[3]+"-iconRoot svelte-1r6kpb6"),D(e,"class",A(t[3])+" svelte-1r6kpb6")},m:function(t,a){T(t,e,a),k(e,n),k(n,r),k(e,o),i&&i.m(e,null)},p:function(t,n){t[2]?i?i.p(t,n):((i=re(t)).c(),i.m(e,null)):i&&(i.d(1),i=null)},d:function(t){t&&N(e),i&&i.d()}}}function re(t){var e,n;return{c:function(){e=$("span"),n=_(t[0]),D(e,"class",t[3]+"-text svelte-1r6kpb6")},m:function(t,r){T(t,e,r),k(e,n)},p:function(t,e){1&e&&B(n,t[0])},d:function(t){t&&N(e)}}}function oe(t){var e,n=t[1]&&ne(t);return{c:function(){n&&n.c(),e=_("")},m:function(t,r){n&&n.m(t,r),T(t,e,r)},p:function(t,r){t[1]?n?n.p(t,r):((n=ne(t)).c(),n.m(e.parentNode,e)):n&&(n.d(1),n=null)},d:function(t){n&&n.d(t),t&&N(e)}}}function ie(t){var e,n;return e=new $t({props:{$$slots:{default:[oe]},$$scope:{ctx:t}}}),{c:function(){rt(e.$$.fragment)},m:function(t,r){ot(e,t,r),n=!0},p:function(t,n){var r=v(n,1)[0],o={};71&r&&(o.$$scope={dirty:r,ctx:t}),e.$set(o)},i:function(t){n||(et(e.$$.fragment,t),n=!0)},o:function(t){nt(e.$$.fragment,t),n=!1},d:function(t){it(e,t)}}}function ae(t,e,n){var r,o=e.content,i=e.delay,a=e.onClose,c=!1,u=Ot("loading");return U((function(){var t=Qt.addListener(Xt.LoadingHide,(function(){a(),t()}))})),setTimeout((function(){n(1,c=++Zt>0),c||console.log("my.hideLoading called before show")}),i||0),t.$$set=function(t){"content"in t&&n(0,o=t.content),"delay"in t&&n(4,i=t.delay),"onClose"in t&&n(5,a=t.onClose)},t.$$.update=function(){1&t.$$.dirty&&n(2,r=pt.isNotEmpty(o))},[o,c,r,u,i,a]}const ce=function(t){s(o,t);var e,n,r=(e=o,n=te(),function(){var t,r=p(e);if(n){var o=p(this).constructor;t=Reflect.construct(r,arguments,o)}else t=r.apply(this,arguments);return f(this,t)});function o(t){var e;return a(this,o),at(c(e=r.call(this)),t,ae,ie,O,{content:0,delay:4,onClose:5},ee),e}return i(o)}(ct);function ue(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(ue=function(){return!!t})()}function se(t){var e,n,r,o;return{c:function(){e=C("svg"),n=C("g"),r=C("path"),o=C("path"),D(r,"d","M36 72c19.882 0 36-16.118 36-36S55.882 0 36 0 0 16.118 0 36s16.118 36 36 36zm0-2c18.778 0 34-15.222 34-34S54.778 2 36 2 2 17.222 2 36s15.222 34 34 34z"),D(r,"fill","#FFF"),D(o,"stroke","#FFF"),D(o,"stroke-width","2"),D(o,"d","M19 34.54l11.545 11.923L52.815 24"),D(n,"fill","none"),D(n,"fill-rule","evenodd"),D(e,"class",t[0]),D(e,"xmlns","http://www.w3.org/2000/svg"),D(e,"viewBox","0 0 72 72")},m:function(t,i){T(t,e,i),k(e,n),k(n,r),k(n,o)},p:function(t,n){1&v(n,1)[0]&&D(e,"class",t[0])},i:m,o:m,d:function(t){t&&N(e)}}}function le(t,e,n){var r=e.className;return t.$$set=function(t){"className"in t&&n(0,r=t.className)},[r]}const fe=function(t){s(o,t);var e,n,r=(e=o,n=ue(),function(){var t,r=p(e);if(n){var o=p(this).constructor;t=Reflect.construct(r,arguments,o)}else t=r.apply(this,arguments);return f(this,t)});function o(t){var e;return a(this,o),at(c(e=r.call(this)),t,le,se,O,{className:0}),e}return i(o)}(ct);function pe(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(pe=function(){return!!t})()}function de(t){var e,n,r,o;return{c:function(){e=C("svg"),n=C("g"),r=C("path"),o=C("path"),D(r,"d","M36 72c19.882 0 36-16.118 36-36S55.882 0 36 0 0 16.118 0 36s16.118 36 36 36zm0-2c18.778 0 34-15.222 34-34S54.778 2 36 2 2 17.222 2 36s15.222 34 34 34z"),D(r,"fill","#FFF"),D(o,"d","M22 22l28.304 28.304m-28.304 0L50.304 22"),D(o,"stroke","#FFF"),D(o,"stroke-width","2"),D(n,"fill","none"),D(n,"fill-rule","evenodd"),D(e,"class",t[0]),D(e,"xmlns","http://www.w3.org/2000/svg"),D(e,"viewBox","0 0 72 72")},m:function(t,i){T(t,e,i),k(e,n),k(n,r),k(n,o)},p:function(t,n){1&v(n,1)[0]&&D(e,"class",t[0])},i:m,o:m,d:function(t){t&&N(e)}}}function he(t,e,n){var r=e.className;return t.$$set=function(t){"className"in t&&n(0,r=t.className)},[r]}const ve=function(t){s(o,t);var e,n,r=(e=o,n=pe(),function(){var t,r=p(e);if(n){var o=p(this).constructor;t=Reflect.construct(r,arguments,o)}else t=r.apply(this,arguments);return f(this,t)});function o(t){var e;return a(this,o),at(c(e=r.call(this)),t,he,de,O,{className:0}),e}return i(o)}(ct);function me(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(me=function(){return!!t})()}function ye(t){var e,n,r,o,i;return{c:function(){e=C("svg"),n=C("g"),r=C("path"),o=C("path"),i=C("path"),D(r,"d","M36 72c19.882 0 36-16.118 36-36S55.882 0 36 0 0 16.118 0 36s16.118 36 36 36zm0-2c18.778 0 34-15.222 34-34S54.778 2 36 2 2 17.222 2 36s15.222 34 34 34z"),D(r,"fill","#FFF"),D(o,"fill","#FFF"),D(o,"d","M47 22h2v6h-2zm-24 0h2v6h-2z"),D(i,"d","M21 51s4.6-7 15-7 15 7 15 7"),D(i,"stroke","#FFF"),D(i,"stroke-width","2"),D(n,"fill","none"),D(n,"fill-rule","evenodd"),D(e,"class",t[0]),D(e,"xmlns","http://www.w3.org/2000/svg"),D(e,"viewBox","0 0 72 72")},m:function(t,a){T(t,e,a),k(e,n),k(n,r),k(n,o),k(n,i)},p:function(t,n){1&v(n,1)[0]&&D(e,"class",t[0])},i:m,o:m,d:function(t){t&&N(e)}}}function ge(t,e,n){var r=e.className;return t.$$set=function(t){"className"in t&&n(0,r=t.className)},[r]}const be=function(t){s(o,t);var e,n,r=(e=o,n=me(),function(){var t,r=p(e);if(n){var o=p(this).constructor;t=Reflect.construct(r,arguments,o)}else t=r.apply(this,arguments);return f(this,t)});function o(t){var e;return a(this,o),at(c(e=r.call(this)),t,ge,ye,O,{className:0}),e}return i(o)}(ct);function we(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(we=function(){return!!t})()}function Oe(t){P(t,"svelte-13dnj4p",".alipay-mwj-toast.svelte-13dnj4p{background-color:rgba(58, 58, 58, 0.9);max-width:50%;min-width:72px;padding:15px;border-radius:5px;position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center}.alipay-mwj-toast-icon{width:72px;height:72px;margin-bottom:12px}.alipay-mwj-toast-text{color:#fff;font-size:14px;text-align:center;width:100%;display:block;word-wrap:break-word}")}function xe(t){var e,n;return e=new be({props:{className:t[4]+"-icon"}}),{c:function(){rt(e.$$.fragment)},m:function(t,r){ot(e,t,r),n=!0},p:m,i:function(t){n||(et(e.$$.fragment,t),n=!0)},o:function(t){nt(e.$$.fragment,t),n=!1},d:function(t){it(e,t)}}}function Ee(t){var e,n;return e=new ve({props:{className:t[4]+"-icon"}}),{c:function(){rt(e.$$.fragment)},m:function(t,r){ot(e,t,r),n=!0},p:m,i:function(t){n||(et(e.$$.fragment,t),n=!0)},o:function(t){nt(e.$$.fragment,t),n=!1},d:function(t){it(e,t)}}}function Ae(t){var e,n;return e=new fe({props:{className:t[4]+"-icon"}}),{c:function(){rt(e.$$.fragment)},m:function(t,r){ot(e,t,r),n=!0},p:m,i:function(t){n||(et(e.$$.fragment,t),n=!0)},o:function(t){nt(e.$$.fragment,t),n=!1},d:function(t){it(e,t)}}}function je(t){var e,n,r,o,i,a,c,u=[Ae,Ee,xe],s=[];function l(t,e){return"success"===t[1]?0:"fail"===t[1]?1:"exception"===t[1]?2:-1}return~(n=l(t))&&(r=s[n]=u[n](t)),{c:function(){e=$("div"),r&&r.c(),o=R(),i=$("span"),a=_(t[0]),D(i,"class",t[4]+"-text svelte-13dnj4p"),D(e,"class",A(t[4])+" svelte-13dnj4p")},m:function(t,r){T(t,e,r),~n&&s[n].m(e,null),k(e,o),k(e,i),k(i,a),c=!0},p:function(t,i){var f=n;(n=l(t))===f?~n&&s[n].p(t,i):(r&&(Z={r:0,c:[],p:Z},nt(s[f],1,1,(function(){s[f]=null})),Z.r||b(Z.c),Z=Z.p),~n?((r=s[n])?r.p(t,i):(r=s[n]=u[n](t)).c(),et(r,1),r.m(e,o)):r=null),(!c||1&i)&&B(a,t[0])},i:function(t){c||(et(r),c=!0)},o:function(t){nt(r),c=!1},d:function(t){t&&N(e),~n&&s[n].d()}}}function Se(t){var e,n;return e=new $t({props:{duration:t[2],afterClose:t[3],$$slots:{default:[je]},$$scope:{ctx:t}}}),{c:function(){rt(e.$$.fragment)},m:function(t,r){ot(e,t,r),n=!0},p:function(t,n){var r=v(n,1)[0],o={};4&r&&(o.duration=t[2]),8&r&&(o.afterClose=t[3]),35&r&&(o.$$scope={dirty:r,ctx:t}),e.$set(o)},i:function(t){n||(et(e.$$.fragment,t),n=!0)},o:function(t){nt(e.$$.fragment,t),n=!1},d:function(t){it(e,t)}}}function ke(t,e,n){var r,o=e.content,i=e.type,a=e.duration,c=e.onClose,u=Ot("toast");return U((function(){Qt.addListener(Xt.ToastHide,c)})),r=function(){Qt.removeListener(Xt.ToastHide,c)},M().$$.on_destroy.push(r),t.$$set=function(t){"content"in t&&n(0,o=t.content),"type"in t&&n(1,i=t.type),"duration"in t&&n(2,a=t.duration),"onClose"in t&&n(3,c=t.onClose)},[o,i,a,c,u]}const Pe=function(t){s(o,t);var e,n,r=(e=o,n=we(),function(){var t,r=p(e);if(n){var o=p(this).constructor;t=Reflect.construct(r,arguments,o)}else t=r.apply(this,arguments);return f(this,t)});function o(t){var e;return a(this,o),at(c(e=r.call(this)),t,ke,Se,O,{content:0,type:1,duration:2,onClose:3},Oe),e}return i(o)}(ct);function Te(t,e,n,r,o,i,a){try{var c=t[i](a),u=c.value}catch(t){return void n(t)}c.done?e(u):Promise.resolve(u).then(r,o)}function Ne(t){return function(){var e=this,n=arguments;return new Promise((function(r,o){var i=t.apply(e,n);function a(t){Te(i,r,o,a,c,"next",t)}function c(t){Te(i,r,o,a,c,"throw",t)}a(void 0)}))}}function $e(t,e){if(null==t)return{};var n,r,o=function(t,e){if(null==t)return{};var n,r,o={},i=Object.keys(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)>=0||(o[n]=t[n]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(o[n]=t[n])}return o}var Ce=n(2841),_e=n.n(Ce),Re=n(3563),Le=["success","fail"];function De(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Be(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?De(Object(n),!0).forEach((function(e){ut(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):De(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var Ie=n(9644),Me=n.n(Ie);function Ue(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Fe(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Ue(Object(n),!0).forEach((function(e){ut(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Ue(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var He={success:!1,errorCode:"AE15015999000001",errorMessage:"System error, please try again later"};function Ke(t){return t?decodeURIComponent(t):t}function We(t,e,n){return We=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}()?Reflect.construct.bind():function(t,e,n){var r=[null];r.push.apply(r,e);var o=new(Function.bind.apply(t,r));return n&&u(o,n.prototype),o},We.apply(null,arguments)}function Ye(t){var e="function"==typeof Map?new Map:void 0;return Ye=function(t){if(null===t||(n=t,-1===Function.toString.call(n).indexOf("[native code]")))return t;var n;if("function"!=typeof t)throw new TypeError("Super expression must either be null or a function");if(void 0!==e){if(e.has(t))return e.get(t);e.set(t,r)}function r(){return We(t,arguments,p(this).constructor)}return r.prototype=Object.create(t.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),u(r,t)},Ye(t)}function ze(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(ze=function(){return!!t})()}var Ge=function(t){s(o,t);var e,n,r=(e=o,n=ze(),function(){var t,r=p(e);if(n){var o=p(this).constructor;t=Reflect.construct(r,arguments,o)}else t=r.apply(this,arguments);return f(this,t)});function o(t){var e;return a(this,o),ut(c(e=r.call(this,t)),"resultStatus",void 0),ut(c(e),"memo",void 0),ut(c(e),"tips",void 0),ut(c(e),"extraMessage",void 0),ut(c(e),"traceId",void 0),e}return i(o)}(Ye(Error));function qe(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Je(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?qe(Object(n),!0).forEach((function(e){ut(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):qe(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Ve(t){var e=t.success,n=t.fail,r=t.complete,o=t.operationType,i=t.requestData,a=t.gateway,c=t.headers,u=vt(),s=Je(Je(Je(Je(Je({},u.appId?{AppId:u.appId}:{}),u.workspaceId?{WorkspaceId:u.workspaceId}:{}),u.headers),c),{},ut({"Operation-Type":o,"Content-Type":"application/json"},"X-CORS-".concat(u.appId,"-").concat(u.workspaceId),"1")),l=a||u.gatewayUrl,f=function(t){null==n||n(t),null==r||r()},p={method:"post",url:l,timeout:3e4,headers:s,data:i,withCredentials:!0};Me()(p).then((function(t){var n=null;try{n=function(t){var e=t.headers["result-status"];if("1000"===e)return function(t){var e=t.data,n=t.headers["mgw-traceid"];if(null==e)return function(t,e,n){return Fe(Fe({},He),{},{errorMessage:pt.isNotEmpty(t)?t:He.errorMessage,memo:pt.isString(e)?e:"".concat(e),traceId:n})}(Ke(t.headers.tips),Ke(t.headers.memo),n);var r=null;if(pt.isString(e)){if(null==(r=pt.parseObjectSafe(e)))return e}else r=e;return pt.isEmpty(r.traceId)&&(r.traceId=n),r}(t);throw function(t,e){var n=Ke(t.headers.tips),r=Ke(t.headers.memo),o=new Ge("".concat(n," - ").concat(r));return o.resultStatus=e,o.traceId=t.headers["mgw-traceid"],o.tips=n,o.memo=r,o}(t,e)}(t)}catch(t){return void f(t)}null==e||e(n),null==r||r()})).catch((function(t){f(t)}))}function Xe(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Qe(t){var e=Ze();return function(){var n,r=p(t);if(e){var o=p(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return f(this,n)}}function Ze(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(Ze=function(){return!!t})()}var tn=function(){function t(e){a(this,t),ut(this,"elements",void 0),this.elements=e}return i(t,[{key:"map",value:function(t){return null==this.elements?null:Array.isArray(this.elements)?0===this.elements.length?null:this.elements.map(t):[this.elements].map(t)[0]}}]),t}(),en=function(t){s(n,t);var e=Qe(n);function n(){return a(this,n),e.apply(this,arguments)}return i(n,[{key:"execute",value:function(){return this.map((function(t){var e=t.getBoundingClientRect();return{width:e.width,height:e.height,top:e.top,bottom:e.bottom,left:e.left,right:e.right}}))}}]),n}(tn),nn=function(t){s(n,t);var e=Qe(n);function n(){return a(this,n),e.apply(this,arguments)}return i(n,[{key:"execute",value:function(){return this.map((function(t){return{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}}))}}]),n}(tn),rn=function(t){s(n,t);var e=Qe(n);function n(){return a(this,n),e.apply(this,arguments)}return i(n,[{key:"execute",value:function(){var t=document.documentElement;return{scrollLeft:(window.pageXOffset||t.scrollLeft)-(t.clientLeft||0),scrollTop:(window.pageYOffset||t.scrollTop)-(t.clientTop||0),width:Math.max(document.documentElement.clientWidth||0,window.innerWidth||0),height:Math.max(document.documentElement.clientHeight||0,window.innerHeight||0)}}}]),n}(tn);var on="";var an,cn,un,sn=window.navigator.userAgent||"",ln=function(){var t=sn.match(/OS (\d+)_(\d+)_?(\d+)?/);return Number.parseInt(t[1],10)},fn=/android/i.test(sn),pn=/iphone|ipad|ipod/i.test(sn),dn=/chrome\/[\d.]+ mobile safari\/[\d.]+/i.test(sn)&&fn&&sn.indexOf("Version")<0,hn=(/qqbrowser/i.test(sn),/firefox/i.test(sn));function vn(t,e){return function(t,e){var n=new URL(t);for(var r in e)r&&n.searchParams.set(r,e[r]);return n.toString()}(t,e)}function mn(t,e,n){var r="";n&&(r="S.browser_fallback_url=".concat(encodeURIComponent(n),";"));var o=t.substring(0,t.indexOf("://")),i=e?"#Intent;scheme=".concat(o,";package=").concat(e,";"):"#Intent;scheme=".concat(o,";"),a=t.replace(/.*?:\/\//,"intent://");return"".concat(a+i+r,"end")}/baidubrowser/i.test(sn);var yn,gn,bn;function wn(t){var e=t.evokeAppBy;(null==e?void 0:e.url)&&(function(t){var e=t.evokeAppBy,n=t.successCb,r=t.timeout;if(n){var o=r||5e3;+new Date-(yn||+new Date)<o&&n(e)}}(t),gn&&clearTimeout(gn))}function On(t){return/^(http|https|itms-apps|itms-appss|market):\/\//.test(t)}function xn(t){return xn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},xn(t)}function En(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function An(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?En(Object(n),!0).forEach((function(e){jn(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):En(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function jn(t,e,n){return(e=kn(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Sn(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,kn(r.key),r)}}function kn(t){var e=function(t){if("object"!==xn(t)||null===t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var n=e.call(t,"string");if("object"!==xn(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"===xn(e)?e:String(e)}!function(t){void 0!==t&&(void 0!==t.hidden?(cn="hidden",un="visibilitychange"):void 0!==t.mozHidden?(cn="mozHidden",un="mozvisibilitychange"):void 0!==t.msHidden?(cn="msHidden",un="msvisibilitychange"):void 0!==t.webkitHidden&&(cn="webkitHidden",un="webkitvisibilitychange"))}(document),function(t){t.SCHEME="Scheme",t.LINK="Link",t.INTENT="Intent"}(bn||(bn={}));var Pn=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.config=void 0,this.timer=void 0,this.options=void 0,this.evokeAppBy=void 0,this.config=An(An({},{delay:0}),e),this.options={},this.timer=null,this.evokeAppBy={url:"",type:bn.LINK},this.init()}var e,n;return e=t,(n=[{key:"init",value:function(){var t;an||((an=document.createElement("iframe")).id="callapp_iframe_".concat(Date.now()),an.style.cssText="display:none;border:0;width:0;height:0;",document.body.appendChild(an)),t={evokeAppBy:this.evokeAppBy,successCb:this.config.successCb,timeout:this.config.resultJudgmentTime},void 0!==un?document.addEventListener(un,(function(){return wn(t)})):window.addEventListener("pagehide",(function(){return wn(t)}))}},{key:"open",value:function(t){this.options=t;var e=this.options,n=e.scheme,r=e.intent,o=e.link,i=e.params,a=e.fallback;n||o||r?o&&On(o)?(this.options.link=vn(o,i),this.handleLink()):n&&!On(n)?(this.options.scheme=vn(n,i),this.handleScheme()):r&&r.scheme&&r.package?this.handleIntent():a?a():console.error("唤端失败"):console.error("请至少填一个链接")}},{key:"handleLink",value:function(){this.evokeAppBy.type=bn.LINK;var t=this.options,e=t.link,n=t.scheme,r=t.delay,o=t.fallback;pn?ln()>9?this.evokeByLocationDelay(e,r,o,this.handleScheme):n?this.handleScheme():o?o():console.error("唤端失败"):this.evokeByLocationDelay(e,r,o,this.handleScheme)}},{key:"handleIntent",value:function(){this.evokeAppBy.type=bn.INTENT;var t=this.options,e=t.intent,n=t.delay,r=t.fallback;e&&e.scheme&&e.package&&this.evokeByLocationDelay(mn(e.scheme,e.package,e.fallbackUrl),n,r)}},{key:"handleScheme",value:function(){this.evokeAppBy.type=bn.SCHEME;var t=this.options,e=t.scheme,n=t.delay,r=t.fallback;e&&(pn?this.handleIOSScheme():dn||hn?this.handleOriginalChrome():this.evokeByIFrameDelay(e,n,r))}},{key:"handleIOSScheme",value:function(){var t=this.options,e=t.scheme,n=t.delay,r=t.fallback;ln()<9?this.evokeByIFrameDelay(e,n,r):this.evokeByTagADelay(e,n,r)}},{key:"handleOriginalChrome",value:function(){var t=this,e=this.options,n=e.scheme,r=e.intent,o=e.delay,i=e.fallback;this.evokeByLocationDelay(n,o,i,(function(){r&&r.package&&t.evokeByLocationDelay(mn(n,r.package,r.fallbackUrl),o,i,t.handleIntent.bind(t))}))}},{key:"evokeAppDelay",value:function(t,e,n,r,o){var i=this,a=n||this.config.delay,c=r||this.config.fallback;this.timer=setTimeout((function(){i.clearTimer(),t(),i.checkIsOpen(e,c,o)}),a)}},{key:"evokeByLocationDelay",value:function(t,e,n,r){this.evokeAppDelay((function(){return function(t){window.location.href=t}(t)}),t,e,n,r)}},{key:"evokeByTagADelay",value:function(t,e,n,r){this.evokeAppDelay((function(){return function(t){var e=document.createElement("a");e.setAttribute("href",t),e.style.display="none",document.body.appendChild(e);var n=document.createEvent("HTMLEvents");n.initEvent("click",!1,!1),e.dispatchEvent(n)}(t)}),t,e,n,r)}},{key:"evokeByIFrameDelay",value:function(t,e,n,r){this.evokeAppDelay((function(){return function(t){an.src=t}(t)}),t,e,n,r)}},{key:"checkIsOpen",value:function(t,e,n){return this.evokeAppBy.url=t,function(t,e){yn=+new Date,gn=setTimeout((function(){(!cn||!document[cn])&&t&&t()}),e||5e3)}(n||e,this.config.resultJudgmentTime)}},{key:"clearTimer",value:function(){this.timer&&clearTimeout(this.timer)}}])&&Sn(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),t}();const Tn=Pn;var Nn=["success","fail","complete"],$n=function(t){return function(e){return new Promise((function(n,r){var o=e||{},i=o.success,a=o.fail,c=o.complete,u=$e(o,Nn);t(u,(function(t){n(t),null==i||i(t),null==c||c(t)}),(function(t){r(t),null==a||a(t),null==c||c(t)}))}))}},Cn=function(t){return function(e){return toString.call(e)==="[object ".concat(t,"]")}},_n=(Cn("RegExp"),Cn("String"),Cn("Function"),Cn("Object")),Rn=(Cn("Number"),Array.isArray,Cn("Boolean"),function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return e.reduce((function(t,e){if(!e)return t;for(var n=Object.entries(e),r=n.length,o=0;o<r;o++){var i=v(n[o],2),a=i[0],c=i[1];_n(c)?t[a]=Rn(t[a],c):Object.assign(t,ut({},a,c))}return t}),{})});const Ln=$n((function(t,e,n){var r=t.url;new Tn({fallback:n,successCb:e}).open({scheme:r,link:r})}));function Dn(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Bn(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Dn(Object(n),!0).forEach((function(e){ut(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Dn(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}const In=function(t){var e=t.appId,n=t.workspaceId,r=void 0===n?"default":n,o=t.defaultGateway,i=t.defaultHeaders,a=t.request,c=e&&r?ut({AppId:e,workspaceId:r},"X-CORS-".concat(e,"-").concat(r),"1"):{};return $n((function(t,e,n){var r=t.gateway,u=t.operationType,s=t.headers,l=t.requestData,f=t.timeout;a({url:r||o,method:"POST",timeout:f,headers:Bn(Bn(Bn({"Content-Type":"application/json"},i),{},{"Operation-Type":u},c),s),data:l,success:function(t){e({headers:(null==t?void 0:t.headers)||{},resData:(null==t?void 0:t.data)||{}})},fail:n})}))};function Mn(t,e){var n=t.filter((function(t){return t.match.every((function(t){return t.test(e)}))}));if(n.length){var r=n[0].name;if(n.length>1){var o=n.map((function(t){return t.name})).join(",");Fn("Multiple clients have been identified(".concat(o,"), and the first one(").concat(r,")is used by default."))}return r}}function Un(t,e){return Object.keys(t).reduce((function(n,r){return n["is".concat(r)]=e===t[r],n}),{})}function Fn(t){console.info("[hylid-env]: ".concat(t))}var Hn={WEB:"web",MPWEB:"mpweb",MP:"mp"},Kn={DEMO:"demo",ALIPAY:"alipay",ALIPAYHK:"alipayhk",TNGD:"tngd",GCASH:"gcash",TRUEMONEY:"truemoney",DANA:"dana",KAKAOPAY:"kakaopay",KAKAOTALK:"kakaotalk",NAVERPAY:"naverpay",MPAY:"mpay",TOSSPAY:"toss",HIPAY:"hipay",CHOPE:"chope",VODAPAY:"vodapay",CHANGIPAY:"changipay",OCBC:"ocbc",MANDIRI:"mandiri",NAYAPAY:"nayapay",TINABA:"tinaba",KASPI:"kaspi",H5:"h5",WECHAT:"wechat",TNGD_H5NG:"tngdh5ng"},Wn=/miniprogram/i,Yn=/^((?!miniprogram).)*$/i,zn=/griver/i,Gn=/^((?!griver).)*$/i,qn=[{name:Kn.DEMO,match:[/demo/]},{name:Kn.ALIPAY,match:[/alipay/]},{name:Kn.ALIPAYHK,match:[/hk/]},{name:Kn.TNGD,match:[/tngd/]},{name:Kn.GCASH,match:[/gcash/]},{name:Kn.TRUEMONEY,match:[/tmn/]},{name:Kn.DANA,match:[/dana/]},{name:Kn.TOSSPAY,match:[/toss/]}],Jn=[{name:Kn.DEMO,match:[/alipayIDE/i]},{name:Kn.ALIPAYHK,match:[Wn,Gn,/AlipayClientHK/]},{name:Kn.TNGD,match:[Wn,/TNGKit|Touch 'n Go/]},{name:Kn.GCASH,match:[Wn,zn,/GCash/]},{name:Kn.TRUEMONEY,match:[Wn,zn,/TrueMoney/]},{name:Kn.ALIPAY,match:[Wn,Gn,/alipay/i]},{name:Kn.DEMO,match:[Wn,zn]}];function Vn(){return Mn(Jn,window.navigator.userAgent)}var Xn=[{name:Kn.ALIPAYHK,match:[Yn,Gn,/AlipayClientHK/]},{name:Kn.TNGD,match:[Yn,zn,/TNGKit|Touch 'n Go/]},{name:Kn.TNGD_H5NG,match:[Yn,/TNGKit|Touch 'n Go/,/IAPWebH5NG/]},{name:Kn.GCASH,match:[Yn,zn,/GCash/]},{name:Kn.TRUEMONEY,match:[Yn,zn,/TrueMoney/i]},{name:Kn.KAKAOPAY,match:[Yn,/PAYCLIENT|KAKAOTALK|KAKAOPAY/]},{name:Kn.KAKAOTALK,match:[Yn,/ALIPAYCONNECT_KAKAO_TALK/]},{name:Kn.NAVERPAY,match:[Yn,/NAVER/]},{name:Kn.MPAY,match:[Yn,/mpay|macaupay/i]},{name:Kn.TOSSPAY,match:[Yn,/Toss/i]},{name:Kn.ALIPAY,match:[Yn,Gn,/AlipayClient/]},{name:Kn.DEMO,match:[Yn,zn,/GriverDemo/]}];function Qn(){return Mn(Xn,window.navigator.userAgent)||Kn.H5}var Zn=function(){var t,e;if("undefined"!=typeof wx||"undefined"!=typeof my&&"string"==typeof my.SDKVersion)t="undefined"!=typeof wx?Kn.WECHAT:Mn(qn,my.getSystemInfoSync().app),e=Hn.MP;else{var n=function(){var t,e=((null===(t=window.location.search)||void 0===t?void 0:t.match(/__app__=([^&]*)/))||[])[1],n=(window.location.search.match(/__platform__=([^&]*)/)||[])[1];(e||n)&&localStorage.setItem("__hy_env__",JSON.stringify({client:e,platform:n}));var r=localStorage.getItem("__hy_env__");return r?JSON.parse(r):{}}();n.platform?(e=n.platform,t=n.client||("mpweb"===e?Vn():Qn())):(t=n.client||Vn())?e=Hn.MPWEB:(t=Qn(),e=Hn.WEB)}return e&&t||Fn("Cannot identify your client."),{client:t,platform:e}}(),tr=Zn.client,er=Zn.platform;Un(Kn,tr),Un(Hn,er);var nr=!1,rr=[];function or(t){return rr.push(t),function(){rr=rr.filter((function(e){return e!==t}))}}function ir(e){return nr||(document.addEventListener("onToWebViewMessage",(function(t){var e=t.data.res;if(e&&"message"===e.type){var n=JSON.parse(e.data);rr.forEach((function(t){return t(n)}))}})),nr=!0),t((function(){window.AlipayJSBridge.call("postWebViewMessage",{type:"message",detail:e})}))}var ar={};function cr(t,e,n){var r=t+"_"+Math.floor(1e6*Math.random());e&&(ar[r]=e),ir({source:"hylid",type:"apiCall",api:t,serialId:r,options:e,config:n,isSync:null==n?void 0:n.isSync})}or((function(t){var e,n=t,r=n.serialId;if(r&&ar[r]){var o=ar[r],i=n.result;if("callback"===(null===(e=n.config)||void 0===e?void 0:e.type)){var a=i||{},c=a._data_;return"success"===a._type_?o(c):o(void 0,c)}var u=o||{},s=u.success,l=u.fail,f=u.complete,p=i||{},d=p._data_,h=p._type_;h?("success"===h&&(null==s||s(d)),"fail"===h&&(null==l||l(d)),null==f||f(d)):((null==i?void 0:i.error)?null==l||l(i):null==s||s(i),null==f||f(i)),delete ar[r]}})),cr.onMessage=or,cr.postMessage=ir,cr.broadcastGlobalData=function(t,e){ir({source:"hylid",type:"broadcast",from:window.location.href,key:t,result:e})},cr.onReceiveGlobalData=function(t,e){return or((function(n){var r=n;if("hylid"===r.source&&"broadcast"===r.type&&r.key===t){var o=r.result||{},i=o._data_;return"success"===o._type_?e(i,void 0,r.from):e(void 0,i,r.from)}}))},cr.onPageEvent=function(t,e){return ir({source:"hylid",type:"pageEvent",event:t}),or((function(n){var r=n;if("hylid"===r.source&&"pageEvent"===r.type&&r.event===t){var o=r.result||{},i=o._data_;return"success"===o._type_?e(i):e(void 0,i)}}))};var ur,sr={NOTFOUND:{code:-1,message:function(t){return"".concat(t," is not found")}},NOTALLOWED:{code:-2,message:function(t){return"".concat(t," is not allowed")}},INVALID:{code:-3,message:function(t){return"".concat(t," is invalid")}},NOTBIND:{code:-4,message:function(t){return"".concat(t," exec fail, webviewBridge not bind context")}},PARAMS_ERROR:{code:-5,message:function(t){return"".concat(t," exec fail, params error")}}},lr=((ur={})[Hn.MP]=function(t,e,n){var r=(n||{}).type,o=void 0===r?"async":r;return"sync"===o||(null==n?void 0:n.isSync)?my[t](e):("async"===o&&(my[t]?my[t](e):my.call(t,e)),"callback"===o&&my[t](e),"attribute"===o?my[t]:void 0)},ur[Hn.MPWEB]=cr,ur[Hn.WEB]=e,ur),fr=["success"];function pr(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}var dr={hylidVersion:"4.0.0"};const hr={getSiteInfo:function(t){return e("getSiteInfo",t,{type:"async"})},navigateToBizScene:function(t){return e("navigateToBizScene",t,{type:"async"})},navigateToMiniProgram:function(t){return e("navigateToMiniProgram",t,{type:"async"})},alert:function(t){return function(t){var e=t||{},n=e.title,r=e.content,o=e.buttonText,i=e.success,a=e.complete,c=document.createElement("div");document.body.appendChild(c);var u=new It({target:c,props:{title:n,content:r,buttonText:o,onClose:function(){var t;null==i||i(),null==a||a(),u.$destroy(),null===(t=c.parentNode)||void 0===t||t.removeChild(c)}}})}(t)},clearStorage:function(t){var e=t||{},n=e.success,r=e.fail,o=e.complete;try{localStorage.clear(),null==n||n(void 0)}catch(t){null==r||r(t)}null==o||o()},clearStorageSync:function(){localStorage.clear()},confirm:function(t){var e=t.title,n=t.content,r=t.confirmButtonText,o=t.cancelButtonText,i=t.success,a=t.complete,c=document.createElement("div");document.body.appendChild(c);var u=new zt({target:c,props:{title:e,content:n,confirmButtonText:r,cancelButtonText:o,onClose:function(t){var e,n={ok:t,confirm:t};null==i||i(n),null==a||a(n),u.$destroy(),null===(e=c.parentNode)||void 0===e||e.removeChild(c)}}})},exitApp:function(t){window.close()},getClipboard:function(t){return function(t){var e;null===(e=t.fail)||void 0===e||e.call(t)}(t)},getLocation:function(t){return function(t){var e=function(e){Gt((function(){var n,r,o={error:e};null===(n=t.fail)||void 0===n||n.call(t,o),null===(r=t.complete)||void 0===r||r.call(t,o)}))},n=navigator.geolocation;n?n.getCurrentPosition((function(e){var n,r,o,i,a,c,u={accuracy:"".concat(null===(n=e.coords)||void 0===n?void 0:n.accuracy),horizontalAccuracy:"".concat(null===(r=e.coords)||void 0===r?void 0:r.altitudeAccuracy),latitude:"".concat(null===(o=e.coords)||void 0===o?void 0:o.latitude),longitude:"".concat(null===(i=e.coords)||void 0===i?void 0:i.longitude)};null===(a=t.success)||void 0===a||a.call(t,u),null===(c=t.complete)||void 0===c||c.call(t,u)}),(function(t){var n=1===t.code?11:13;e(n)}),{timeout:1e4,maximumAge:t.cacheTimeout||3e4}):e(13)}(t)},getNetworkType:function(t){return function(t){var e,n,r=navigator.connection,o=null==r?void 0:r.effectiveType;o?"slow-2g"===o&&(o="2g"):(o=(null==r?void 0:r.type)||"none",-1===["wifi","none"].indexOf(o)&&(o="unknown")),o=o.toUpperCase(),null===(e=t.success)||void 0===e||e.call(t,{networkAvailable:navigator.onLine,networkType:o}),null===(n=t.fail)||void 0===n||n.call(t)}(t)},getStorage:function(t){var e=t.key,n=t.success,r=t.fail,o=t.complete;try{var i=localStorage.getItem(e);null==n||n(i?JSON.parse(i):i)}catch(t){null==r||r(t)}null==o||o()},getStorageSync:function(t){var e=t.key,n=localStorage.getItem(e);return n?JSON.parse(n):n},getSystemInfo:function(t){return function(t){Gt((function(){try{var e;null===(e=t.success)||void 0===e||e.call(t,Jt())}catch(e){var n;null===(n=t.fail)||void 0===n||n.call(t)}finally{var r;null===(r=t.complete)||void 0===r||r.call(t)}}))}(t)},getSystemInfoSync:function(){return Jt()},hideLoading:function(t){Zt=0,Qt.notifyEvent(Xt.LoadingHide)},hideToast:function(t){Qt.notifyEvent(Xt.ToastHide)},makePhoneCall:function(t){return function(t){t&&t.number&&function(t){try{var e=document.createElement("a");e.setAttribute("href",t),e.setAttribute("target","_blank");var n=document.createEvent("MouseEvents");n.initMouseEvent("click",!0,!0),e.dispatchEvent(n)}catch(e){window.open(t,"_blank")}}("tel://".concat(t.number))}(t)},navigateBack:function(t){return function(t){var e=(t||{}).delta,n=void 0===e?1:e;history.go(-n)}(t)},navigateTo:function(t){return function(t){var e=t.success,n=(t.fail,t.complete);window.location.href=t.url,null==e||e(),null==n||n()}(t)},pageScrollTo:function(t){return function(t){if(t.selector){var e,n,r,o=document.querySelector(t.selector);o?(o.scrollTo(),null===(n=t.success)||void 0===n||n.call(t)):null===(r=t.fail)||void 0===r||r.call(t),null===(e=t.complete)||void 0===e||e.call(t)}else if(null!=t.scrollTop)window.scrollTo({top:t.scrollTop,behavior:"smooth"});else{var i,a;null===(i=t.fail)||void 0===i||i.call(t),null===(a=t.complete)||void 0===a||a.call(t)}}(t)},redirectTo:function(t){return function(t){var e=t.success,n=(t.fail,t.complete);window.location.replace(t.url),null==e||e(),null==n||n()}(t)},removeStorage:function(t){var e=t||{},n=e.success,r=e.fail,o=e.complete;try{localStorage.removeItem(t.key||""),null==n||n()}catch(t){null==r||r(t)}null==o||o()},removeStorageSync:function(t){var e=t.key;localStorage.removeItem(e)},request:function(t){var e=t.success,n=t.fail;if($e(t,Le)){var r=function(){var e=Ne(_e().mark((function e(n){return _e().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("text"!==t.dataType){e.next=4;break}return e.next=3,n.text();case 3:case 6:return e.abrupt("return",e.sent);case 4:return e.next=6,n.json();case 7:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),o=t.method||"GET",i={method:o,mode:"cors",cache:"no-cache",credentials:"include",referrerPolicy:"no-referrer",headers:Be(Be({},t.headers),{},{Accept:"text"===t.dataType?"text/plain":"application/json"})},a=t.url;if("GET"===o){if(t.data){var c="string"==typeof t.data?t.data:(0,Re.Pz)(t.data);-1!==a.indexOf("?")?a+=c:a=a+"?"+c}}else i.body="string"==typeof t.data?t.data:JSON.stringify(t.data);fetch(a,i).then(function(){var t=Ne(_e().mark((function t(n){var o;return _e().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(o={},n.headers.forEach((function(t,e){o[e.toLocaleLowerCase()]=t})),null!=e){t.next=6;break}t.next=14;break;case 6:return t.t0=e,t.t1=n.status,t.next=10,r(n);case 10:t.t2=t.sent,t.t3=o,t.t4={status:t.t1,data:t.t2,headers:t.t3},(0,t.t0)(t.t4);case 14:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()).catch((function(t){null==n||n({error:19,errorMessage:"HTTP error."+(null==t?void 0:t.message)})}))}else null==n||n({error:-103,errorMessage:"[request]: Wrong Param"})},rpc:function(t){return function(t){var e,n,r=null===(e=xt())||void 0===e||null===(n=e.rpcOptions)||void 0===n?void 0:n.rpcInterceptor;if(r&&r.onRpcError){var o=t.fail,i=r.onRpcError;t.fail=function(e){i(e,{notifyFail:function(t){null==o||o(t)},resend:function(){t.fail=o,Ve(t)}})}}r&&r.onBeforeSendRpc&&r.onBeforeSendRpc(t)||Ve(t)}(function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Xe(Object(n),!0).forEach((function(e){ut(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Xe(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}({},t))},setClipboard:function(t){return function(t){var e,n;if(!t.text)return null===(e=t.fail)||void 0===e||e.call(t),void(null===(n=t.complete)||void 0===n||n.call(t,{success:!1}));var r,o,i,a,c=document.createElement("input");document.body.appendChild(c),c.setAttribute("readonly","readonly"),c.setAttribute("value",t.text),c.setSelectionRange(0,t.text.length),c.focus(),c.select(),document.execCommand("copy")?(null===(r=t.success)||void 0===r||r.call(t,{success:!0}),null===(o=t.complete)||void 0===o||o.call(t,{success:!0})):(null===(i=t.fail)||void 0===i||i.call(t),null===(a=t.complete)||void 0===a||a.call(t,{success:!1})),document.body.removeChild(c)}(t)},setNavigationBar:function(t){return function(t){var e,n;null!=t.title&&(document.title=t.title),null===(e=t.success)||void 0===e||e.call(t),null===(n=t.complete)||void 0===n||n.call(t)}(t)},setStorage:function(t){var e=t.key,n=t.data,r=t.success,o=t.fail,i=t.complete;try{localStorage.setItem(e,JSON.stringify({data:n})),null==r||r()}catch(t){null==o||o(t)}null==i||i()},setStorageSync:function(t){var e=t.key,n=t.data;localStorage.setItem(e,JSON.stringify({data:n}))},showLoading:function(t){return function(t){if(t){var e=pt.isString(t)?{content:t}:t,n=e.content,r=e.delay,o=e.success,i=e.complete,a=document.createElement("div");document.body.appendChild(a);var c=new ce({target:a,props:{content:n,delay:r,onClose:function(){null==o||o(),null==i||i(),c.$destroy(),document.body.removeChild(a)}}})}}(t)},showToast:function(t){return function(t){var e=t||{},n=e.content,r=e.type,o=e.duration,i=void 0===o?2e3:o,a=e.success,c=e.complete;if(n){var u=document.createElement("div");document.body.appendChild(u);var s=new Pe({target:u,props:{content:n,type:r,duration:i,onClose:function(){var t;null==a||a(),null==c||c(),s.$destroy(),null===(t=u.parentNode)||void 0===t||t.removeChild(u)}}})}}(t)},getLaunchOptionsSync:function(){return Et()},createSelectorQuery:function(){return e=[],n=!1,r=function(r){n?e.push(new rn):e.push(new r(t)),n=!1,t=null},o={boundingClientRect:function(){return r(en),i},scrollOffset:function(){return r(nn),i}},i={select:function(e){return t=document.querySelector(e),o},selectAll:function(e){var n=document.querySelectorAll(e);if(n){var r=[];null==n||n.forEach((function(t){return r.push(t)})),t=r}else t=null;return o},selectViewport:function(){return n=!0,o},exec:function(t){t(e.map((function(t){return t.execute()})))}};var t,e,n,r,o,i},getCurrentLanguage:function(){if(!on){var t=function(){if("object"===("undefined"==typeof window?"undefined":l(window))){var t,e=null===(t=window.location.search)||void 0===t?void 0:t.match(/__lang__=([^&]*)/);if(e)return e[1]}}()||function(){if("object"===("undefined"==typeof document?"undefined":l(document))){var t,e=null===(t=document.documentElement)||void 0===t?void 0:t.lang;if(e)return e}}()||function(){if("object"===("undefined"==typeof window?"undefined":l(window))){var t,e=(null===(t=window.navigator)||void 0===t?void 0:t.userAgent)||"",n=(/Language\/([^\s]*)/i.exec(e)||[]).pop();if(n)return n}}()||function(){if("object"===("undefined"==typeof window?"undefined":l(window))&&window.navigator){var t,e=window.navigator,n=(null===(t=e.languages)||void 0===t?void 0:t[0])||e.language||e.userLanguage||e.browserLanguage;if(n)return n}}()||"en-US";on=t.toLowerCase()}return on},openURL:Ln,createWithoutAuthRpc:In,rpcWithAuth:function(t){var e,n,r=t.success;e=function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?pr(Object(n),!0).forEach((function(e){ut(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):pr(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}({success:function(t){null==r||r({headers:{},resData:t})}},$e(t,fr)),er?lr[er]("rpc",e,n):function(t,e,n){var r;void 0===n&&(n={});var o=n.type,i=void 0===o?"async":o,a=function(t,e){void 0===e&&(e="");var n=sr.NOTFOUND;return{errorCode:n.code,errorMessage:(0,n.message)(e),errorSouce:"hylid"}}(0,t);if("sync"===i)return a;"callback"===i&&(null==e||e(a)),"async"===i&&(null===(r=null==e?void 0:e.fail)||void 0===r||r.call(e,a))}(e,n)},defineRuntimeConfig:function(t){return dr=Rn(dr,t)},popWindow:function(t){window.history.back()}}})(),r.default})()));
|
|
2
|
+
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.my=e():t.my=e()}(self,(()=>(()=>{var t={9644:(t,e,n)=>{t.exports=n(5644)},353:(t,e,n)=>{"use strict";var r=n(3044),o=n(6955),i=n(2233),a=n(8030),c=n(7948),u=n(1875),s=n(842),l=n(8560),f=n(1218),p=n(8047),d=n(738);t.exports=function(t){return new Promise((function(e,n){var h,v=t.data,m=t.headers,y=t.responseType;function g(){t.cancelToken&&t.cancelToken.unsubscribe(h),t.signal&&t.signal.removeEventListener("abort",h)}r.isFormData(v)&&r.isStandardBrowserEnv()&&delete m["Content-Type"];var b=new XMLHttpRequest;if(t.auth){var w=t.auth.username||"",O=t.auth.password?unescape(encodeURIComponent(t.auth.password)):"";m.Authorization="Basic "+btoa(w+":"+O)}var x=c(t.baseURL,t.url);function E(){if(b){var r="getAllResponseHeaders"in b?u(b.getAllResponseHeaders()):null,i={data:y&&"text"!==y&&"json"!==y?b.response:b.responseText,status:b.status,statusText:b.statusText,headers:r,config:t,request:b};o((function(t){e(t),g()}),(function(t){n(t),g()}),i),b=null}}if(b.open(t.method.toUpperCase(),a(x,t.params,t.paramsSerializer),!0),b.timeout=t.timeout,"onloadend"in b?b.onloadend=E:b.onreadystatechange=function(){b&&4===b.readyState&&(0!==b.status||b.responseURL&&0===b.responseURL.indexOf("file:"))&&setTimeout(E)},b.onabort=function(){b&&(n(new f("Request aborted",f.ECONNABORTED,t,b)),b=null)},b.onerror=function(){n(new f("Network Error",f.ERR_NETWORK,t,b,b)),b=null},b.ontimeout=function(){var e=t.timeout?"timeout of "+t.timeout+"ms exceeded":"timeout exceeded",r=t.transitional||l;t.timeoutErrorMessage&&(e=t.timeoutErrorMessage),n(new f(e,r.clarifyTimeoutError?f.ETIMEDOUT:f.ECONNABORTED,t,b)),b=null},r.isStandardBrowserEnv()){var A=(t.withCredentials||s(x))&&t.xsrfCookieName?i.read(t.xsrfCookieName):void 0;A&&(m[t.xsrfHeaderName]=A)}"setRequestHeader"in b&&r.forEach(m,(function(t,e){void 0===v&&"content-type"===e.toLowerCase()?delete m[e]:b.setRequestHeader(e,t)})),r.isUndefined(t.withCredentials)||(b.withCredentials=!!t.withCredentials),y&&"json"!==y&&(b.responseType=t.responseType),"function"==typeof t.onDownloadProgress&&b.addEventListener("progress",t.onDownloadProgress),"function"==typeof t.onUploadProgress&&b.upload&&b.upload.addEventListener("progress",t.onUploadProgress),(t.cancelToken||t.signal)&&(h=function(t){b&&(n(!t||t&&t.type?new p:t),b.abort(),b=null)},t.cancelToken&&t.cancelToken.subscribe(h),t.signal&&(t.signal.aborted?h():t.signal.addEventListener("abort",h))),v||(v=null);var j=d(x);j&&-1===["http","https","file"].indexOf(j)?n(new f("Unsupported protocol "+j+":",f.ERR_BAD_REQUEST,t)):b.send(v)}))}},5644:(t,e,n)=>{"use strict";var r=n(3044),o=n(3644),i=n(2215),a=n(2937),c=function t(e){var n=new i(e),c=o(i.prototype.request,n);return r.extend(c,i.prototype,n),r.extend(c,n),c.create=function(n){return t(a(e,n))},c}(n(663));c.Axios=i,c.CanceledError=n(8047),c.CancelToken=n(4089),c.isCancel=n(8041),c.VERSION=n(9241).version,c.toFormData=n(9027),c.AxiosError=n(1218),c.Cancel=c.CanceledError,c.all=function(t){return Promise.all(t)},c.spread=n(783),c.isAxiosError=n(5587),t.exports=c,t.exports.default=c},4089:(t,e,n)=>{"use strict";var r=n(8047);function o(t){if("function"!=typeof t)throw new TypeError("executor must be a function.");var e;this.promise=new Promise((function(t){e=t}));var n=this;this.promise.then((function(t){if(n._listeners){var e,r=n._listeners.length;for(e=0;e<r;e++)n._listeners[e](t);n._listeners=null}})),this.promise.then=function(t){var e,r=new Promise((function(t){n.subscribe(t),e=t})).then(t);return r.cancel=function(){n.unsubscribe(e)},r},t((function(t){n.reason||(n.reason=new r(t),e(n.reason))}))}o.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},o.prototype.subscribe=function(t){this.reason?t(this.reason):this._listeners?this._listeners.push(t):this._listeners=[t]},o.prototype.unsubscribe=function(t){if(this._listeners){var e=this._listeners.indexOf(t);-1!==e&&this._listeners.splice(e,1)}},o.source=function(){var t;return{token:new o((function(e){t=e})),cancel:t}},t.exports=o},8047:(t,e,n)=>{"use strict";var r=n(1218);function o(t){r.call(this,null==t?"canceled":t,r.ERR_CANCELED),this.name="CanceledError"}n(3044).inherits(o,r,{__CANCEL__:!0}),t.exports=o},8041:t=>{"use strict";t.exports=function(t){return!(!t||!t.__CANCEL__)}},2215:(t,e,n)=>{"use strict";var r=n(3044),o=n(8030),i=n(946),a=n(6895),c=n(2937),u=n(7948),s=n(7525),l=s.validators;function f(t){this.defaults=t,this.interceptors={request:new i,response:new i}}f.prototype.request=function(t,e){"string"==typeof t?(e=e||{}).url=t:e=t||{},(e=c(this.defaults,e)).method?e.method=e.method.toLowerCase():this.defaults.method?e.method=this.defaults.method.toLowerCase():e.method="get";var n=e.transitional;void 0!==n&&s.assertOptions(n,{silentJSONParsing:l.transitional(l.boolean),forcedJSONParsing:l.transitional(l.boolean),clarifyTimeoutError:l.transitional(l.boolean)},!1);var r=[],o=!0;this.interceptors.request.forEach((function(t){"function"==typeof t.runWhen&&!1===t.runWhen(e)||(o=o&&t.synchronous,r.unshift(t.fulfilled,t.rejected))}));var i,u=[];if(this.interceptors.response.forEach((function(t){u.push(t.fulfilled,t.rejected)})),!o){var f=[a,void 0];for(Array.prototype.unshift.apply(f,r),f=f.concat(u),i=Promise.resolve(e);f.length;)i=i.then(f.shift(),f.shift());return i}for(var p=e;r.length;){var d=r.shift(),h=r.shift();try{p=d(p)}catch(t){h(t);break}}try{i=a(p)}catch(t){return Promise.reject(t)}for(;u.length;)i=i.then(u.shift(),u.shift());return i},f.prototype.getUri=function(t){t=c(this.defaults,t);var e=u(t.baseURL,t.url);return o(e,t.params,t.paramsSerializer)},r.forEach(["delete","get","head","options"],(function(t){f.prototype[t]=function(e,n){return this.request(c(n||{},{method:t,url:e,data:(n||{}).data}))}})),r.forEach(["post","put","patch"],(function(t){function e(e){return function(n,r,o){return this.request(c(o||{},{method:t,headers:e?{"Content-Type":"multipart/form-data"}:{},url:n,data:r}))}}f.prototype[t]=e(),f.prototype[t+"Form"]=e(!0)})),t.exports=f},1218:(t,e,n)=>{"use strict";var r=n(3044);function o(t,e,n,r,o){Error.call(this),this.message=t,this.name="AxiosError",e&&(this.code=e),n&&(this.config=n),r&&(this.request=r),o&&(this.response=o)}r.inherits(o,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code,status:this.response&&this.response.status?this.response.status:null}}});var i=o.prototype,a={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED"].forEach((function(t){a[t]={value:t}})),Object.defineProperties(o,a),Object.defineProperty(i,"isAxiosError",{value:!0}),o.from=function(t,e,n,a,c,u){var s=Object.create(i);return r.toFlatObject(t,s,(function(t){return t!==Error.prototype})),o.call(s,t.message,e,n,a,c),s.name=t.name,u&&Object.assign(s,u),s},t.exports=o},946:(t,e,n)=>{"use strict";var r=n(3044);function o(){this.handlers=[]}o.prototype.use=function(t,e,n){return this.handlers.push({fulfilled:t,rejected:e,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1},o.prototype.eject=function(t){this.handlers[t]&&(this.handlers[t]=null)},o.prototype.forEach=function(t){r.forEach(this.handlers,(function(e){null!==e&&t(e)}))},t.exports=o},7948:(t,e,n)=>{"use strict";var r=n(9192),o=n(8762);t.exports=function(t,e){return t&&!r(e)?o(t,e):e}},6895:(t,e,n)=>{"use strict";var r=n(3044),o=n(8556),i=n(8041),a=n(663),c=n(8047);function u(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new c}t.exports=function(t){return u(t),t.headers=t.headers||{},t.data=o.call(t,t.data,t.headers,t.transformRequest),t.headers=r.merge(t.headers.common||{},t.headers[t.method]||{},t.headers),r.forEach(["delete","get","head","post","put","patch","common"],(function(e){delete t.headers[e]})),(t.adapter||a.adapter)(t).then((function(e){return u(t),e.data=o.call(t,e.data,e.headers,t.transformResponse),e}),(function(e){return i(e)||(u(t),e&&e.response&&(e.response.data=o.call(t,e.response.data,e.response.headers,t.transformResponse))),Promise.reject(e)}))}},2937:(t,e,n)=>{"use strict";var r=n(3044);t.exports=function(t,e){e=e||{};var n={};function o(t,e){return r.isPlainObject(t)&&r.isPlainObject(e)?r.merge(t,e):r.isPlainObject(e)?r.merge({},e):r.isArray(e)?e.slice():e}function i(n){return r.isUndefined(e[n])?r.isUndefined(t[n])?void 0:o(void 0,t[n]):o(t[n],e[n])}function a(t){if(!r.isUndefined(e[t]))return o(void 0,e[t])}function c(n){return r.isUndefined(e[n])?r.isUndefined(t[n])?void 0:o(void 0,t[n]):o(void 0,e[n])}function u(n){return n in e?o(t[n],e[n]):n in t?o(void 0,t[n]):void 0}var s={url:a,method:a,data:a,baseURL:c,transformRequest:c,transformResponse:c,paramsSerializer:c,timeout:c,timeoutMessage:c,withCredentials:c,adapter:c,responseType:c,xsrfCookieName:c,xsrfHeaderName:c,onUploadProgress:c,onDownloadProgress:c,decompress:c,maxContentLength:c,maxBodyLength:c,beforeRedirect:c,transport:c,httpAgent:c,httpsAgent:c,cancelToken:c,socketPath:c,responseEncoding:c,validateStatus:u};return r.forEach(Object.keys(t).concat(Object.keys(e)),(function(t){var e=s[t]||i,o=e(t);r.isUndefined(o)&&e!==u||(n[t]=o)})),n}},6955:(t,e,n)=>{"use strict";var r=n(1218);t.exports=function(t,e,n){var o=n.config.validateStatus;n.status&&o&&!o(n.status)?e(new r("Request failed with status code "+n.status,[r.ERR_BAD_REQUEST,r.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n)):t(n)}},8556:(t,e,n)=>{"use strict";var r=n(3044),o=n(663);t.exports=function(t,e,n){var i=this||o;return r.forEach(n,(function(n){t=n.call(i,t,e)})),t}},663:(t,e,n)=>{"use strict";var r=n(3044),o=n(8868),i=n(1218),a=n(8560),c=n(9027),u={"Content-Type":"application/x-www-form-urlencoded"};function s(t,e){!r.isUndefined(t)&&r.isUndefined(t["Content-Type"])&&(t["Content-Type"]=e)}var l,f={transitional:a,adapter:(("undefined"!=typeof XMLHttpRequest||"undefined"!=typeof process&&"[object process]"===Object.prototype.toString.call(process))&&(l=n(353)),l),transformRequest:[function(t,e){if(o(e,"Accept"),o(e,"Content-Type"),r.isFormData(t)||r.isArrayBuffer(t)||r.isBuffer(t)||r.isStream(t)||r.isFile(t)||r.isBlob(t))return t;if(r.isArrayBufferView(t))return t.buffer;if(r.isURLSearchParams(t))return s(e,"application/x-www-form-urlencoded;charset=utf-8"),t.toString();var n,i=r.isObject(t),a=e&&e["Content-Type"];if((n=r.isFileList(t))||i&&"multipart/form-data"===a){var u=this.env&&this.env.FormData;return c(n?{"files[]":t}:t,u&&new u)}return i||"application/json"===a?(s(e,"application/json"),function(t){if(r.isString(t))try{return(0,JSON.parse)(t),r.trim(t)}catch(t){if("SyntaxError"!==t.name)throw t}return(0,JSON.stringify)(t)}(t)):t}],transformResponse:[function(t){var e=this.transitional||f.transitional,n=e&&e.silentJSONParsing,o=e&&e.forcedJSONParsing,a=!n&&"json"===this.responseType;if(a||o&&r.isString(t)&&t.length)try{return JSON.parse(t)}catch(t){if(a){if("SyntaxError"===t.name)throw i.from(t,i.ERR_BAD_RESPONSE,this,null,this.response);throw t}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:n(4684)},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};r.forEach(["delete","get","head"],(function(t){f.headers[t]={}})),r.forEach(["post","put","patch"],(function(t){f.headers[t]=r.merge(u)})),t.exports=f},8560:t=>{"use strict";t.exports={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1}},9241:t=>{t.exports={version:"0.27.2"}},3644:t=>{"use strict";t.exports=function(t,e){return function(){for(var n=new Array(arguments.length),r=0;r<n.length;r++)n[r]=arguments[r];return t.apply(e,n)}}},8030:(t,e,n)=>{"use strict";var r=n(3044);function o(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}t.exports=function(t,e,n){if(!e)return t;var i;if(n)i=n(e);else if(r.isURLSearchParams(e))i=e.toString();else{var a=[];r.forEach(e,(function(t,e){null!=t&&(r.isArray(t)?e+="[]":t=[t],r.forEach(t,(function(t){r.isDate(t)?t=t.toISOString():r.isObject(t)&&(t=JSON.stringify(t)),a.push(o(e)+"="+o(t))})))})),i=a.join("&")}if(i){var c=t.indexOf("#");-1!==c&&(t=t.slice(0,c)),t+=(-1===t.indexOf("?")?"?":"&")+i}return t}},8762:t=>{"use strict";t.exports=function(t,e){return e?t.replace(/\/+$/,"")+"/"+e.replace(/^\/+/,""):t}},2233:(t,e,n)=>{"use strict";var r=n(3044);t.exports=r.isStandardBrowserEnv()?{write:function(t,e,n,o,i,a){var c=[];c.push(t+"="+encodeURIComponent(e)),r.isNumber(n)&&c.push("expires="+new Date(n).toGMTString()),r.isString(o)&&c.push("path="+o),r.isString(i)&&c.push("domain="+i),!0===a&&c.push("secure"),document.cookie=c.join("; ")},read:function(t){var e=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return e?decodeURIComponent(e[3]):null},remove:function(t){this.write(t,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}}},9192:t=>{"use strict";t.exports=function(t){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)}},5587:(t,e,n)=>{"use strict";var r=n(3044);t.exports=function(t){return r.isObject(t)&&!0===t.isAxiosError}},842:(t,e,n)=>{"use strict";var r=n(3044);t.exports=r.isStandardBrowserEnv()?function(){var t,e=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");function o(t){var r=t;return e&&(n.setAttribute("href",r),r=n.href),n.setAttribute("href",r),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:"/"===n.pathname.charAt(0)?n.pathname:"/"+n.pathname}}return t=o(window.location.href),function(e){var n=r.isString(e)?o(e):e;return n.protocol===t.protocol&&n.host===t.host}}():function(){return!0}},8868:(t,e,n)=>{"use strict";var r=n(3044);t.exports=function(t,e){r.forEach(t,(function(n,r){r!==e&&r.toUpperCase()===e.toUpperCase()&&(t[e]=n,delete t[r])}))}},4684:t=>{t.exports=null},1875:(t,e,n)=>{"use strict";var r=n(3044),o=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];t.exports=function(t){var e,n,i,a={};return t?(r.forEach(t.split("\n"),(function(t){if(i=t.indexOf(":"),e=r.trim(t.substr(0,i)).toLowerCase(),n=r.trim(t.substr(i+1)),e){if(a[e]&&o.indexOf(e)>=0)return;a[e]="set-cookie"===e?(a[e]?a[e]:[]).concat([n]):a[e]?a[e]+", "+n:n}})),a):a}},738:t=>{"use strict";t.exports=function(t){var e=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return e&&e[1]||""}},783:t=>{"use strict";t.exports=function(t){return function(e){return t.apply(null,e)}}},9027:(t,e,n)=>{"use strict";var r=n(3044);t.exports=function(t,e){e=e||new FormData;var n=[];function o(t){return null===t?"":r.isDate(t)?t.toISOString():r.isArrayBuffer(t)||r.isTypedArray(t)?"function"==typeof Blob?new Blob([t]):Buffer.from(t):t}return function t(i,a){if(r.isPlainObject(i)||r.isArray(i)){if(-1!==n.indexOf(i))throw Error("Circular reference detected in "+a);n.push(i),r.forEach(i,(function(n,i){if(!r.isUndefined(n)){var c,u=a?a+"."+i:i;if(n&&!a&&"object"==typeof n)if(r.endsWith(i,"{}"))n=JSON.stringify(n);else if(r.endsWith(i,"[]")&&(c=r.toArray(n)))return void c.forEach((function(t){!r.isUndefined(t)&&e.append(u,o(t))}));t(n,u)}})),n.pop()}else e.append(a,o(i))}(t),e}},7525:(t,e,n)=>{"use strict";var r=n(9241).version,o=n(1218),i={};["object","boolean","number","function","string","symbol"].forEach((function(t,e){i[t]=function(n){return typeof n===t||"a"+(e<1?"n ":" ")+t}}));var a={};i.transitional=function(t,e,n){function i(t,e){return"[Axios v"+r+"] Transitional option '"+t+"'"+e+(n?". "+n:"")}return function(n,r,c){if(!1===t)throw new o(i(r," has been removed"+(e?" in "+e:"")),o.ERR_DEPRECATED);return e&&!a[r]&&(a[r]=!0,console.warn(i(r," has been deprecated since v"+e+" and will be removed in the near future"))),!t||t(n,r,c)}},t.exports={assertOptions:function(t,e,n){if("object"!=typeof t)throw new o("options must be an object",o.ERR_BAD_OPTION_VALUE);for(var r=Object.keys(t),i=r.length;i-- >0;){var a=r[i],c=e[a];if(c){var u=t[a],s=void 0===u||c(u,a,t);if(!0!==s)throw new o("option "+a+" must be "+s,o.ERR_BAD_OPTION_VALUE)}else if(!0!==n)throw new o("Unknown option "+a,o.ERR_BAD_OPTION)}},validators:i}},3044:(t,e,n)=>{"use strict";var r,o=n(3644),i=Object.prototype.toString,a=(r=Object.create(null),function(t){var e=i.call(t);return r[e]||(r[e]=e.slice(8,-1).toLowerCase())});function c(t){return t=t.toLowerCase(),function(e){return a(e)===t}}function u(t){return Array.isArray(t)}function s(t){return void 0===t}var l=c("ArrayBuffer");function f(t){return null!==t&&"object"==typeof t}function p(t){if("object"!==a(t))return!1;var e=Object.getPrototypeOf(t);return null===e||e===Object.prototype}var d=c("Date"),h=c("File"),v=c("Blob"),m=c("FileList");function y(t){return"[object Function]"===i.call(t)}var g=c("URLSearchParams");function b(t,e){if(null!=t)if("object"!=typeof t&&(t=[t]),u(t))for(var n=0,r=t.length;n<r;n++)e.call(null,t[n],n,t);else for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&e.call(null,t[o],o,t)}var w,O=(w="undefined"!=typeof Uint8Array&&Object.getPrototypeOf(Uint8Array),function(t){return w&&t instanceof w});t.exports={isArray:u,isArrayBuffer:l,isBuffer:function(t){return null!==t&&!s(t)&&null!==t.constructor&&!s(t.constructor)&&"function"==typeof t.constructor.isBuffer&&t.constructor.isBuffer(t)},isFormData:function(t){var e="[object FormData]";return t&&("function"==typeof FormData&&t instanceof FormData||i.call(t)===e||y(t.toString)&&t.toString()===e)},isArrayBufferView:function(t){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(t):t&&t.buffer&&l(t.buffer)},isString:function(t){return"string"==typeof t},isNumber:function(t){return"number"==typeof t},isObject:f,isPlainObject:p,isUndefined:s,isDate:d,isFile:h,isBlob:v,isFunction:y,isStream:function(t){return f(t)&&y(t.pipe)},isURLSearchParams:g,isStandardBrowserEnv:function(){return("undefined"==typeof navigator||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&"undefined"!=typeof window&&"undefined"!=typeof document},forEach:b,merge:function t(){var e={};function n(n,r){p(e[r])&&p(n)?e[r]=t(e[r],n):p(n)?e[r]=t({},n):u(n)?e[r]=n.slice():e[r]=n}for(var r=0,o=arguments.length;r<o;r++)b(arguments[r],n);return e},extend:function(t,e,n){return b(e,(function(e,r){t[r]=n&&"function"==typeof e?o(e,n):e})),t},trim:function(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")},stripBOM:function(t){return 65279===t.charCodeAt(0)&&(t=t.slice(1)),t},inherits:function(t,e,n,r){t.prototype=Object.create(e.prototype,r),t.prototype.constructor=t,n&&Object.assign(t.prototype,n)},toFlatObject:function(t,e,n){var r,o,i,a={};e=e||{};do{for(o=(r=Object.getOwnPropertyNames(t)).length;o-- >0;)a[i=r[o]]||(e[i]=t[i],a[i]=!0);t=Object.getPrototypeOf(t)}while(t&&(!n||n(t,e))&&t!==Object.prototype);return e},kindOf:a,kindOfTest:c,endsWith:function(t,e,n){t=String(t),(void 0===n||n>t.length)&&(n=t.length),n-=e.length;var r=t.indexOf(e,n);return-1!==r&&r===n},toArray:function(t){if(!t)return null;var e=t.length;if(s(e))return null;for(var n=new Array(e);e-- >0;)n[e]=t[e];return n},isTypedArray:O,isFileList:m}},5554:t=>{"use strict";var e="%[a-f0-9]{2}",n=new RegExp("("+e+")|([^%]+?)","gi"),r=new RegExp("("+e+")+","gi");function o(t,e){try{return[decodeURIComponent(t.join(""))]}catch(t){}if(1===t.length)return t;e=e||1;var n=t.slice(0,e),r=t.slice(e);return Array.prototype.concat.call([],o(n),o(r))}function i(t){try{return decodeURIComponent(t)}catch(i){for(var e=t.match(n)||[],r=1;r<e.length;r++)e=(t=o(e,r).join("")).match(n)||[];return t}}t.exports=function(t){if("string"!=typeof t)throw new TypeError("Expected `encodedURI` to be of type `string`, got `"+typeof t+"`");try{return t=t.replace(/\+/g," "),decodeURIComponent(t)}catch(e){return function(t){for(var e={"%FE%FF":"��","%FF%FE":"��"},n=r.exec(t);n;){try{e[n[0]]=decodeURIComponent(n[0])}catch(t){var o=i(n[0]);o!==n[0]&&(e[n[0]]=o)}n=r.exec(t)}e["%C2"]="�";for(var a=Object.keys(e),c=0;c<a.length;c++){var u=a[c];t=t.replace(new RegExp(u,"g"),e[u])}return t}(t)}}},3563:(t,e,n)=>{"use strict";function r(t){return function(t){if(Array.isArray(t)){for(var e=0,n=new Array(t.length);e<t.length;e++)n[e]=t[e];return n}}(t)||function(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t))return Array.from(t)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}var o=n(6635);n(5554);function i(t,e){return e.encode?e.strict?o(t):encodeURIComponent(t):t}e.Pz=function(t,e){if(!t)return"";var n=function(t){switch(t.arrayFormat){case"index":return function(e){return function(n,o){var a=n.length;return void 0===o?n:[].concat(r(n),null===o?[[i(e,t),"[",a,"]"].join("")]:[[i(e,t),"[",i(a,t),"]=",i(o,t)].join("")])}};case"bracket":return function(e){return function(n,o){return void 0===o?n:[].concat(r(n),null===o?[[i(e,t),"[]"].join("")]:[[i(e,t),"[]=",i(o,t)].join("")])}};case"comma":return function(e){return function(n,r,o){return null==r||0===r.length?n:0===o?[[i(e,t),"=",i(r,t)].join("")]:[[n,i(r,t)].join(",")]}};default:return function(e){return function(n,o){return void 0===o?n:[].concat(r(n),null===o?[i(e,t)]:[[i(e,t),"=",i(o,t)].join("")])}}}}(e=Object.assign({encode:!0,strict:!0,arrayFormat:"none"},e)),o=Object.keys(t);return!1!==e.sort&&o.sort(e.sort),o.map((function(r){var o=t[r];return void 0===o?"":null===o?i(r,e):Array.isArray(o)?o.reduce(n(r),[]).join("&"):i(r,e)+"="+i(o,e)})).filter((function(t){return t.length>0})).join("&")}},6635:t=>{"use strict";t.exports=function(t){return encodeURIComponent(t).replace(/[!'()*]/g,(function(t){return"%"+t.charCodeAt(0).toString(16).toUpperCase()}))}},4904:(t,e,n)=>{"use strict";var r=n(1314).isUnitlessNumber,o=n(182),i=Array.isArray,a=Object.keys,c=/^(normal|none|(\b(url\([^)]*\)|chapter_counter|attr\([^)]*\)|(no-)?(open|close)-quote|inherit)((\b\s*)|$|\s+))+)$/;function u(t,e){return r[t]||"number"!=typeof e?"content"!==t||c.test(e)||(e="'"+e.replace(/'/g,"\\'")+"'"):e+="px",o(t)+": "+e+"; "}t.exports=function(t){var e="";if(!t||0===a(t).length)return e;for(var n=a(t),r=0,o=n.length;r<o;r++){var c=n[r],s=t[c];if(i(s))for(var l=0,f=s.length;l<f;l++)e+=u(c,s[l]);else e+=u(c,s)}return e}},1314:t=>{"use strict";var e={boxFlex:!0,boxFlexGroup:!0,columnCount:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,strokeDashoffset:!0,strokeOpacity:!0,strokeWidth:!0},n=["Webkit","ms","Moz","O"];Object.keys(e).forEach((function(t){n.forEach((function(n){e[function(t,e){return t+e.charAt(0).toUpperCase()+e.substring(1)}(n,t)]=e[t]}))}));var r={isUnitlessNumber:e,shorthandPropertyExpansions:{background:{backgroundImage:!0,backgroundPosition:!0,backgroundRepeat:!0,backgroundColor:!0},border:{borderWidth:!0,borderStyle:!0,borderColor:!0},borderBottom:{borderBottomWidth:!0,borderBottomStyle:!0,borderBottomColor:!0},borderLeft:{borderLeftWidth:!0,borderLeftStyle:!0,borderLeftColor:!0},borderRight:{borderRightWidth:!0,borderRightStyle:!0,borderRightColor:!0},borderTop:{borderTopWidth:!0,borderTopStyle:!0,borderTopColor:!0},font:{fontStyle:!0,fontVariant:!0,fontWeight:!0,fontSize:!0,lineHeight:!0,fontFamily:!0}}};t.exports=r},182:t=>{"use strict";var e=/^ms-/,n=/([A-Z])/g;t.exports=function(t){return function(t){return t.replace(n,"-$1").toLowerCase()}(t).replace(e,"-ms-")}},7609:(t,e,n)=>{var r=n(7425).default;function o(){"use strict";t.exports=o=function(){return e},t.exports.__esModule=!0,t.exports.default=t.exports;var e={},n=Object.prototype,i=n.hasOwnProperty,a="function"==typeof Symbol?Symbol:{},c=a.iterator||"@@iterator",u=a.asyncIterator||"@@asyncIterator",s=a.toStringTag||"@@toStringTag";function l(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,n){return t[e]=n}}function f(t,e,n,r){var o=e&&e.prototype instanceof h?e:h,i=Object.create(o.prototype),a=new S(r||[]);return i._invoke=function(t,e,n){var r="suspendedStart";return function(o,i){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw i;return{value:void 0,done:!0}}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var c=E(a,n);if(c){if(c===d)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var u=p(t,e,n);if("normal"===u.type){if(r=n.done?"completed":"suspendedYield",u.arg===d)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(r="completed",n.method="throw",n.arg=u.arg)}}}(t,n,a),i}function p(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}e.wrap=f;var d={};function h(){}function v(){}function m(){}var y={};l(y,c,(function(){return this}));var g=Object.getPrototypeOf,b=g&&g(g(k([])));b&&b!==n&&i.call(b,c)&&(y=b);var w=m.prototype=h.prototype=Object.create(y);function O(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function x(t,e){function n(o,a,c,u){var s=p(t[o],t,a);if("throw"!==s.type){var l=s.arg,f=l.value;return f&&"object"==r(f)&&i.call(f,"__await")?e.resolve(f.__await).then((function(t){n("next",t,c,u)}),(function(t){n("throw",t,c,u)})):e.resolve(f).then((function(t){l.value=t,c(l)}),(function(t){return n("throw",t,c,u)}))}u(s.arg)}var o;this._invoke=function(t,r){function i(){return new e((function(e,o){n(t,r,e,o)}))}return o=o?o.then(i,i):i()}}function E(t,e){var n=t.iterator[e.method];if(void 0===n){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=void 0,E(t,e),"throw"===e.method))return d;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return d}var r=p(n,t.iterator,e.arg);if("throw"===r.type)return e.method="throw",e.arg=r.arg,e.delegate=null,d;var o=r.arg;return o?o.done?(e[t.resultName]=o.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,d):o:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,d)}function A(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function j(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function S(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(A,this),this.reset(!0)}function k(t){if(t){var e=t[c];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,r=function e(){for(;++n<t.length;)if(i.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return r.next=r}}return{next:P}}function P(){return{value:void 0,done:!0}}return v.prototype=m,l(w,"constructor",m),l(m,"constructor",v),v.displayName=l(m,s,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===v||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,m):(t.__proto__=m,l(t,s,"GeneratorFunction")),t.prototype=Object.create(w),t},e.awrap=function(t){return{__await:t}},O(x.prototype),l(x.prototype,u,(function(){return this})),e.AsyncIterator=x,e.async=function(t,n,r,o,i){void 0===i&&(i=Promise);var a=new x(f(t,n,r,o),i);return e.isGeneratorFunction(n)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},O(w),l(w,s,"Generator"),l(w,c,(function(){return this})),l(w,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=[];for(var n in t)e.push(n);return e.reverse(),function n(){for(;e.length;){var r=e.pop();if(r in t)return n.value=r,n.done=!1,n}return n.done=!0,n}},e.values=k,S.prototype={constructor:S,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(j),!t)for(var e in this)"t"===e.charAt(0)&&i.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(n,r){return a.type="throw",a.arg=t,e.next=n,r&&(e.method="next",e.arg=void 0),!!r}for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var c=i.call(o,"catchLoc"),u=i.call(o,"finallyLoc");if(c&&u){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(c){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&i.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var o=r;break}}o&&("break"===t||"continue"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=t,a.arg=e,o?(this.method="next",this.next=o.finallyLoc,d):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),d},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),j(n),d}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var o=r.arg;j(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:k(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=void 0),d}},e}t.exports=o,t.exports.__esModule=!0,t.exports.default=t.exports},7425:t=>{function e(n){return t.exports=e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},t.exports.__esModule=!0,t.exports.default=t.exports,e(n)}t.exports=e,t.exports.__esModule=!0,t.exports.default=t.exports},2841:(t,e,n)=>{var r=n(7609)();t.exports=r;try{regeneratorRuntime=r}catch(t){"object"==typeof globalThis?globalThis.regeneratorRuntime=r:Function("r","regeneratorRuntime = r")(r)}}},e={};function n(r){var o=e[r];if(void 0!==o)return o.exports;var i=e[r]={exports:{}};return t[r](i,i.exports,n),i.exports}n.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return n.d(e,{a:e}),e},n.d=(t,e)=>{for(var r in e)n.o(e,r)&&!n.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},n.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e);var r={};return(()=>{"use strict";n.d(r,{default:()=>hr});var t=function(t){if(window.AlipayJSBridge)return t();document.addEventListener("AlipayJSBridgeReady",(function(){return t()}),!1)};function e(e,n,r){t((function(){var t=(r||{}).type,o=void 0===t?"async":t;"async"===o&&window.AlipayJSBridge.call(e,n,(function(t){var e=n||{},r=e.success,o=e.fail,i=e.complete;t.error?null==o||o(t):null==r||r(t),null==i||i(t)})),"callback"===o&&window.AlipayJSBridge.call(e,n)}))}function o(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function i(t,e,n){return e&&o(t.prototype,e),n&&o(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function a(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function c(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function u(t,e){return u=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},u(t,e)}function s(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&u(t,e)}function l(t){return l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},l(t)}function f(t,e){if(e&&("object"===l(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return c(t)}function p(t){return p=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},p(t)}function d(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function h(t,e){if(t){if("string"==typeof t)return d(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?d(t,e):void 0}}function v(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,o,i=[],a=!0,c=!1;try{for(n=n.call(t);!(a=(r=n.next()).done)&&(i.push(r.value),!e||i.length!==e);a=!0);}catch(t){c=!0,o=t}finally{try{a||null==n.return||n.return()}finally{if(c)throw o}}return i}}(t,e)||h(t,e)||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.")}()}function m(){}function y(t){return t()}function g(){return Object.create(null)}function b(t){t.forEach(y)}function w(t){return"function"==typeof t}function O(t,e){return t!=t?e==e:t!==e||t&&"object"==typeof t||"function"==typeof t}function x(t){return 0===Object.keys(t).length}function E(t,e,n,r){return t[1]&&r?function(t,e){for(const n in e)t[n]=e[n];return t}(n.ctx.slice(),t[1](r(e))):n.ctx}function A(t){return null==t?"":t}new Set;let j,S=!1;function k(t,e){t.appendChild(e)}function P(t,e,n){const r=function(t){if(!t)return document;const e=t.getRootNode?t.getRootNode():t.ownerDocument;return e&&e.host?e:t.ownerDocument}(t);if(!r.getElementById(e)){const t=$("style");t.id=e,t.textContent=n,function(t,e){k(t.head||t,e)}(r,t)}}function T(t,e,n){t.insertBefore(e,n||null)}function N(t){t.parentNode.removeChild(t)}function $(t){return document.createElement(t)}function C(t){return document.createElementNS("http://www.w3.org/2000/svg",t)}function _(t){return document.createTextNode(t)}function R(){return _(" ")}function L(t,e,n,r){return t.addEventListener(e,n,r),()=>t.removeEventListener(e,n,r)}function D(t,e,n){null==n?t.removeAttribute(e):t.getAttribute(e)!==n&&t.setAttribute(e,n)}function B(t,e){e=""+e,t.wholeText!==e&&(t.data=e)}function I(t){j=t}function M(){if(!j)throw new Error("Function called outside component initialization");return j}function U(t){M().$$.on_mount.push(t)}new Map;const F=[],H=[],K=[],W=[],Y=Promise.resolve();let z=!1;function G(t){K.push(t)}const q=new Set;let J=0;function V(){const t=j;do{for(;J<F.length;){const t=F[J];J++,I(t),X(t.$$)}for(I(null),F.length=0,J=0;H.length;)H.pop()();for(let t=0;t<K.length;t+=1){const e=K[t];q.has(e)||(q.add(e),e())}K.length=0}while(F.length);for(;W.length;)W.pop()();z=!1,q.clear(),I(t)}function X(t){if(null!==t.fragment){t.update(),b(t.before_update);const e=t.dirty;t.dirty=[-1],t.fragment&&t.fragment.p(t.ctx,e),t.after_update.forEach(G)}}const Q=new Set;let Z,tt;function et(t,e){t&&t.i&&(Q.delete(t),t.i(e))}function nt(t,e,n,r){if(t&&t.o){if(Q.has(t))return;Q.add(t),Z.c.push((()=>{Q.delete(t),r&&(n&&t.d(1),r())})),t.o(e)}else r&&r()}function rt(t){t&&t.c()}function ot(t,e,n,r){const{fragment:o,on_mount:i,on_destroy:a,after_update:c}=t.$$;o&&o.m(e,n),r||G((()=>{const e=i.map(y).filter(w);a?a.push(...e):b(e),t.$$.on_mount=[]})),c.forEach(G)}function it(t,e){const n=t.$$;null!==n.fragment&&(b(n.on_destroy),n.fragment&&n.fragment.d(e),n.on_destroy=n.fragment=null,n.ctx=[])}function at(t,e,n,r,o,i,a,c=[-1]){const u=j;I(t);const s=t.$$={fragment:null,ctx:null,props:i,update:m,not_equal:o,bound:g(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(e.context||(u?u.$$.context:[])),callbacks:g(),dirty:c,skip_bound:!1,root:e.target||u.$$.root};a&&a(s.root);let l=!1;if(s.ctx=n?n(t,e.props||{},((e,n,...r)=>{const i=r.length?r[0]:n;return s.ctx&&o(s.ctx[e],s.ctx[e]=i)&&(!s.skip_bound&&s.bound[e]&&s.bound[e](i),l&&function(t,e){-1===t.$$.dirty[0]&&(F.push(t),z||(z=!0,Y.then(V)),t.$$.dirty.fill(0)),t.$$.dirty[e/31|0]|=1<<e%31}(t,e)),n})):[],s.update(),l=!0,b(s.before_update),s.fragment=!!r&&r(s.ctx),e.target){if(e.hydrate){S=!0;const t=(f=e.target,Array.from(f.childNodes));s.fragment&&s.fragment.l(t),t.forEach(N)}else s.fragment&&s.fragment.c();e.intro&&et(t.$$.fragment),ot(t,e.target,e.anchor,e.customElement),S=!1,V()}var f;I(u)}"undefined"!=typeof window?window:"undefined"!=typeof globalThis?globalThis:global,new Set(["allowfullscreen","allowpaymentrequest","async","autofocus","autoplay","checked","controls","default","defer","disabled","formnovalidate","hidden","ismap","loop","multiple","muted","nomodule","novalidate","open","playsinline","readonly","required","reversed","selected"]),"function"==typeof HTMLElement&&(tt=class extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"})}connectedCallback(){const{on_mount:t}=this.$$;this.$$.on_disconnect=t.map(y).filter(w);for(const t in this.$$.slotted)this.appendChild(this.$$.slotted[t])}attributeChangedCallback(t,e,n){this[t]=n}disconnectedCallback(){b(this.$$.on_disconnect)}$destroy(){it(this,1),this.$destroy=m}$on(t,e){const n=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return n.push(e),()=>{const t=n.indexOf(e);-1!==t&&n.splice(t,1)}}$set(t){this.$$set&&!x(t)&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}});class ct{$destroy(){it(this,1),this.$destroy=m}$on(t,e){const n=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return n.push(e),()=>{const t=n.indexOf(e);-1!==t&&n.splice(t,1)}}$set(t){this.$$set&&!x(t)&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}}function ut(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function st(t){var e=[];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.push([n,t[n]]);return e}var lt,ft,pt=function(){function t(){a(this,t)}return i(t,null,[{key:"isString",value:function(t){return"string"==typeof t}},{key:"isFunction",value:function(t){return"function"==typeof t}},{key:"isNotEmpty",value:function(t){return t&&t.length>0}},{key:"isEmpty",value:function(e){return!t.isNotEmpty(e)}},{key:"parseObjectSafe",value:function(t,e){try{return JSON.parse(t)}catch(t){console.warn("parseObjectSafe error: ",t)}return e}},{key:"encodeMap",value:function(t){if(t){var e=[];return st(t).forEach((function(t){var n=t[0],r=t[1];null!=r&&e.push("".concat(encodeURIComponent(n),"=").concat(encodeURIComponent(r)))})),e.length>0?e.join("&"):void 0}}}]),t}();!function(t){t.EASYPAISA="EASYPAISA",t.TRUEMONEY="TRUEMONEY",t.KAKAOPAY="KAKAOPAY",t.BKASH="BKASH",t.ALIPAY_CN="ALIPAY_CN",t.ALIPAY_HK="ALIPAY_HK",t.ALIPAY_MO="ALIPAY_MO",t.GCASH="GCASH",t.TNG="TNG",t.DANA="DANA"}(lt||(lt={})),function(t){t.alipayhk="alipayhk",t.alipaymo="alipaymo",t.gcash="gcash",t.tngd="tngd",t.dana="dana",t.kakaopay="kakaopay"}(ft||(ft={}));var dt=ut(ut(ut(ut(ut(ut({},lt.ALIPAY_HK,ft.alipayhk),lt.ALIPAY_MO,ft.alipaymo),lt.GCASH,ft.gcash),lt.DANA,ft.dana),lt.TNG,ft.tngd),lt.KAKAOPAY,ft.kakaopay);function ht(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function vt(){var t,e,n,r=function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?ht(Object(n),!0).forEach((function(e){ut(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):ht(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}({},null===(t=xt())||void 0===t?void 0:t.rpcOptions);return r.gatewayUrl||(r.gatewayUrl=(wt||(wt=function(){var t=window.location.host;return function(t){return"localhost"===t||/^localhost:[0-9]+$/.test(t)||/^[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+:[0-9]+$/.test(t)}(t)?bt.STABLE:t.endsWith(".test.alipay.net")||"oss-local-test.marmot-cloud.com"===t?bt.TEST:t.endsWith(".alipay.net")||"oss-local-dev.marmot-cloud.com"===t?bt.STABLE:t.endsWith(".pre.ac.alipay.com")?bt.PRE:bt.PROD}()),(e=wt)===bt.STABLE?"http://imgs-2.sggz00b.stable.alipay.net/imgw.htm":e===bt.TEST?"http://imgs-ztt-0.sggz00a.test.alipay.net/mgw.htm":e===bt.PRE?"https://imgs-sea-pre.alipay.com/imgw.htm":"https://imgs-ac.alipay.com/imgw.htm")),r.workspaceId||(r.gatewayUrl.indexOf("pre")>0?r.workspaceId="pre":r.workspaceId="default"),r.appId||(r.appId=(n=function(){var t,e=null===(t=xt())||void 0===t?void 0:t.appName;if(pt.isNotEmpty(e))return e;if(e=Et().app,pt.isNotEmpty(e))return e;var n=function(){var t,e=null===(t=xt())||void 0===t?void 0:t.siteName;return pt.isNotEmpty(e)?e:(e=Et().site,pt.isNotEmpty(e)?e:void console.error("no siteName! please specify siteName in initWebPolyfill(...)"))}();if(e=dt[n||""],pt.isNotEmpty(e))return e;console.error("no appName! please specify appName in initWebPolyfill(...)")}())===ft.alipayhk?"BE9C457241710":n===ft.alipaymo?"ALIPAY_WALLET_MO":n===ft.gcash?"GCASH_WALLET_PH":n===ft.tngd?"TNGD_WALLET_MY":n===ft.dana?"DANA_WALLET_ID":n===ft.kakaopay?"KAKAOPAY_WALLET_KR":(console.error("Cannot find Rpc AppId for ".concat(n,"!")),"UNKNOWN_APP_ID")),r}function mt(t){var e,n={};if(pt.isEmpty(t))return n;var r=t.indexOf("?");return r>=0&&(t=t.substring(r+1)),null===(e=t.split("&"))||void 0===e||e.forEach((function(t){var e=t.split("=");if(!(e.length<2)){var r=decodeURIComponent(e[0]);n[r]=decodeURIComponent(e[1])}})),n}var yt,gt,bt,wt,Ot=function(t){return"".concat("alipay-mwj","-").concat(t)};function xt(){return yt}function Et(){return gt||(gt=function(){var t={};st(mt(window.location.search)).forEach((function(e){var n=e[0],r=e[1],o=n.toLowerCase();if("query"===o)try{t.query=mt(r)}catch(t){console.warn("parse query error: ",t)}else"referrerinfo"===o?t.referrerInfo=mt(r):t[n]=r}));var e=window.location.hash;if(e){var n=e.indexOf("?");t.hashPath=n>0?e.substring(1,n):e.substring(1),t.hashQuery=mt(e)}return t}()),gt}!function(t){t.STABLE="STABLE",t.TEST="TEST",t.PRE="PRE",t.PROD="PROD"}(bt||(bt={}));var At=n(4904),jt=n.n(At);function St(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(St=function(){return!!t})()}function kt(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Pt(t){P(t,"svelte-1l3ztq7",".alipay-mwj-modal.svelte-1l3ztq7{width:100vw;height:100vh;position:fixed;left:0;top:0;right:0;bottom:0;display:flex;flex-direction:column;align-items:center;justify-content:center}")}function Tt(t){var e,n,r,o=t[7].default,i=function(t,e,n){if(t){const r=E(t,e,n,null);return t[0](r)}}(o,t,t[6]);return{c:function(){e=$("div"),i&&i.c(),D(e,"class",n=A(t[0]?"".concat(t[2]," ").concat(t[0]):t[2])+" svelte-1l3ztq7"),D(e,"style",t[1])},m:function(t,n){T(t,e,n),i&&i.m(e,null),r=!0},p:function(t,a){var c=v(a,1)[0];i&&i.p&&(!r||64&c)&&function(t,e,n,r,o,i){if(o){const a=E(e,n,r,i);t.p(a,o)}}(i,o,t,t[6],r?function(t,e,n,r){if(t[2]&&r){const o=t[2](r(n));if(void 0===e.dirty)return o;if("object"==typeof o){const t=[],n=Math.max(e.dirty.length,o.length);for(let r=0;r<n;r+=1)t[r]=e.dirty[r]|o[r];return t}return e.dirty|o}return e.dirty}(o,t[6],c,null):function(t){if(t.ctx.length>32){const e=[],n=t.ctx.length/32;for(let t=0;t<n;t++)e[t]=-1;return e}return-1}(t[6]),null),(!r||1&c&&n!==(n=A(t[0]?"".concat(t[2]," ").concat(t[0]):t[2])+" svelte-1l3ztq7"))&&D(e,"class",n),(!r||2&c)&&D(e,"style",t[1])},i:function(t){r||(et(i,t),r=!0)},o:function(t){nt(i,t),r=!1},d:function(t){t&&N(e),i&&i.d(t)}}}function Nt(t,e,n){var r,o=e.$$slots,i=void 0===o?{}:o,a=e.$$scope,c=Ot("modal"),u=e.duration,s=void 0===u?void 0:u,l=e.afterClose,f=void 0===l?function(){}:l,p=e.className,d=void 0===p?"":p,h=e.style,v=void 0===h?{}:h;return setTimeout((function(){s&&s>0&&f()}),s&&s>0?s:0),t.$$set=function(t){"duration"in t&&n(3,s=t.duration),"afterClose"in t&&n(4,f=t.afterClose),"className"in t&&n(0,d=t.className),"style"in t&&n(5,v=t.style),"$$scope"in t&&n(6,a=t.$$scope)},t.$$.update=function(){32&t.$$.dirty&&n(1,r=jt()(function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?kt(Object(n),!0).forEach((function(e){ut(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):kt(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}({zIndex:999999},v)))},[d,r,c,s,f,v,a,i]}const $t=function(t){s(o,t);var e,n,r=(e=o,n=St(),function(){var t,r=p(e);if(n){var o=p(this).constructor;t=Reflect.construct(r,arguments,o)}else t=r.apply(this,arguments);return f(this,t)});function o(t){var e;return a(this,o),at(c(e=r.call(this)),t,Nt,Tt,O,{duration:3,afterClose:4,className:0,style:5},Pt),e}return i(o)}(ct);function Ct(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(Ct=function(){return!!t})()}function _t(t){P(t,"svelte-1pl0sex",".alipay-mwj-alert.svelte-1pl0sex{width:100vw;height:100vh;background-color:rgba(0, 0, 0, 0.4);display:flex;flex-direction:column;align-items:center;justify-content:center}.alipay-mwj-alert-content.svelte-1pl0sex{background-color:#fff;width:270px;border-radius:7px;padding-top:15px;text-align:center;position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center}.alipay-mwj-alert-title.svelte-1pl0sex{font-size:18px;color:#000;padding:6px 15px 15px;word-break:break-word}.alipay-mwj-alert-text.svelte-1pl0sex{color:#888;font-size:15px;padding:0 15px 15px;overflow:auto;word-break:break-word}.alipay-mwj-alert-line.svelte-1pl0sex{width:100%;height:1px;background-color:#eee}.alipay-mwj-alert-button.svelte-1pl0sex{color:#3F8DE2;font-size:18px;height:50px;line-height:50px}")}function Rt(t){var e,n;return{c:function(){e=$("span"),n=_(t[1]),D(e,"class",t[5]+"-text svelte-1pl0sex")},m:function(t,r){T(t,e,r),k(e,n)},p:function(t,e){2&e&&B(n,t[1])},d:function(t){t&&N(e)}}}function Lt(t){var e,n,r,o,i,a,c,u,s,l,f,p,d=(t[0]||"")+"",h=(t[2]||"OK")+"",v=t[4]&&Rt(t);return{c:function(){e=$("div"),n=$("div"),r=$("span"),o=_(d),i=R(),v&&v.c(),a=R(),c=$("div"),u=R(),s=$("span"),l=_(h),D(r,"class",t[5]+"-title svelte-1pl0sex"),D(c,"class",t[5]+"-line svelte-1pl0sex"),D(s,"class",t[5]+"-button svelte-1pl0sex"),D(n,"class",t[5]+"-content svelte-1pl0sex"),D(e,"class",A(t[5])+" svelte-1pl0sex")},m:function(d,h){T(d,e,h),k(e,n),k(n,r),k(r,o),k(n,i),v&&v.m(n,null),k(n,a),k(n,c),k(n,u),k(n,s),k(s,l),f||(p=L(s,"click",(function(){w(t[3])&&t[3].apply(this,arguments)})),f=!0)},p:function(e,r){t=e,1&r&&d!==(d=(t[0]||"")+"")&&B(o,d),t[4]?v?v.p(t,r):((v=Rt(t)).c(),v.m(n,a)):v&&(v.d(1),v=null),4&r&&h!==(h=(t[2]||"OK")+"")&&B(l,h)},d:function(t){t&&N(e),v&&v.d(),f=!1,p()}}}function Dt(t){var e,n;return e=new $t({props:{$$slots:{default:[Lt]},$$scope:{ctx:t}}}),{c:function(){rt(e.$$.fragment)},m:function(t,r){ot(e,t,r),n=!0},p:function(t,n){var r=v(n,1)[0],o={};95&r&&(o.$$scope={dirty:r,ctx:t}),e.$set(o)},i:function(t){n||(et(e.$$.fragment,t),n=!0)},o:function(t){nt(e.$$.fragment,t),n=!1},d:function(t){it(e,t)}}}function Bt(t,e,n){var r,o=e.title,i=e.content,a=e.buttonText,c=e.onClose,u=Ot("alert");return t.$$set=function(t){"title"in t&&n(0,o=t.title),"content"in t&&n(1,i=t.content),"buttonText"in t&&n(2,a=t.buttonText),"onClose"in t&&n(3,c=t.onClose)},t.$$.update=function(){2&t.$$.dirty&&n(4,r=pt.isNotEmpty(i))},[o,i,a,c,r,u]}const It=function(t){s(o,t);var e,n,r=(e=o,n=Ct(),function(){var t,r=p(e);if(n){var o=p(this).constructor;t=Reflect.construct(r,arguments,o)}else t=r.apply(this,arguments);return f(this,t)});function o(t){var e;return a(this,o),at(c(e=r.call(this)),t,Bt,Dt,O,{title:0,content:1,buttonText:2,onClose:3},_t),e}return i(o)}(ct);function Mt(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(Mt=function(){return!!t})()}function Ut(t){P(t,"svelte-1rtcbed",".alipay-mwj-confirm.svelte-1rtcbed{width:100vw;height:100vh;background-color:rgba(0, 0, 0, 0.4);display:flex;flex-direction:column;align-items:center;justify-content:center}.alipay-mwj-confirm-content.svelte-1rtcbed{background-color:#fff;width:270px;border-radius:7px;padding-top:15px;text-align:center;position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center}.alipay-mwj-confirm-title.svelte-1rtcbed{font-size:18px;color:#000;padding:6px 15px 15px}.alipay-mwj-confirm-text.svelte-1rtcbed{color:#888;font-size:15px;padding:0 15px 15px;overflow:auto;word-break:break-word}.alipay-mwj-confirm-line.svelte-1rtcbed{width:100%;height:1px;background-color:#eee}.alipay-mwj-confirm-buttonContent.svelte-1rtcbed{width:100%;display:flex;flex-direction:row;height:50px;line-height:50px;font-size:18px;align-items:center}.alipay-mwj-confirm-button.svelte-1rtcbed{flex:1;color:#3F8DE2;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.alipay-mwj-confirm-cancel.svelte-1rtcbed{flex:1;color:#000;border-right:solid 1px #eee;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}")}function Ft(t){var e,n;return{c:function(){e=$("span"),n=_(t[0]),D(e,"class",t[7]+"-title svelte-1rtcbed")},m:function(t,r){T(t,e,r),k(e,n)},p:function(t,e){1&e&&B(n,t[0])},d:function(t){t&&N(e)}}}function Ht(t){var e,n;return{c:function(){e=$("span"),n=_(t[1]),D(e,"class",t[7]+"-text svelte-1rtcbed")},m:function(t,r){T(t,e,r),k(e,n)},p:function(t,e){2&e&&B(n,t[1])},d:function(t){t&&N(e)}}}function Kt(t){var e,n,r,o,i,a,c,u,s,l,f,p,d,h,v=(t[3]||"Cancel")+"",m=(t[2]||"OK")+"",y=t[5]&&Ft(t),g=t[6]&&Ht(t);return{c:function(){e=$("div"),n=$("div"),y&&y.c(),r=R(),g&&g.c(),o=R(),i=$("div"),a=R(),c=$("div"),u=$("span"),s=_(v),l=R(),f=$("span"),p=_(m),D(i,"class",t[7]+"-line svelte-1rtcbed"),D(u,"class",t[7]+"-cancel svelte-1rtcbed"),D(f,"class",t[7]+"-button svelte-1rtcbed"),D(c,"class",t[7]+"-buttonContent svelte-1rtcbed"),D(n,"class",t[7]+"-content svelte-1rtcbed"),D(e,"class",A(t[7])+" svelte-1rtcbed")},m:function(v,m){T(v,e,m),k(e,n),y&&y.m(n,null),k(n,r),g&&g.m(n,null),k(n,o),k(n,i),k(n,a),k(n,c),k(c,u),k(u,s),k(c,l),k(c,f),k(f,p),d||(h=[L(u,"click",t[8]),L(f,"click",t[9])],d=!0)},p:function(t,e){t[5]?y?y.p(t,e):((y=Ft(t)).c(),y.m(n,r)):y&&(y.d(1),y=null),t[6]?g?g.p(t,e):((g=Ht(t)).c(),g.m(n,o)):g&&(g.d(1),g=null),8&e&&v!==(v=(t[3]||"Cancel")+"")&&B(s,v),4&e&&m!==(m=(t[2]||"OK")+"")&&B(p,m)},d:function(t){t&&N(e),y&&y.d(),g&&g.d(),d=!1,b(h)}}}function Wt(t){var e,n;return e=new $t({props:{$$slots:{default:[Kt]},$$scope:{ctx:t}}}),{c:function(){rt(e.$$.fragment)},m:function(t,r){ot(e,t,r),n=!0},p:function(t,n){var r=v(n,1)[0],o={};1151&r&&(o.$$scope={dirty:r,ctx:t}),e.$set(o)},i:function(t){n||(et(e.$$.fragment,t),n=!0)},o:function(t){nt(e.$$.fragment,t),n=!1},d:function(t){it(e,t)}}}function Yt(t,e,n){var r,o,i=e.title,a=e.content,c=e.confirmButtonText,u=e.cancelButtonText,s=e.onClose,l=Ot("confirm");return t.$$set=function(t){"title"in t&&n(0,i=t.title),"content"in t&&n(1,a=t.content),"confirmButtonText"in t&&n(2,c=t.confirmButtonText),"cancelButtonText"in t&&n(3,u=t.cancelButtonText),"onClose"in t&&n(4,s=t.onClose)},t.$$.update=function(){2&t.$$.dirty&&n(6,r=pt.isNotEmpty(a)),1&t.$$.dirty&&n(5,o=pt.isNotEmpty(i))},[i,a,c,u,s,o,r,l,function(){return s(!1)},function(){return s(!0)}]}const zt=function(t){s(o,t);var e,n,r=(e=o,n=Mt(),function(){var t,r=p(e);if(n){var o=p(this).constructor;t=Reflect.construct(r,arguments,o)}else t=r.apply(this,arguments);return f(this,t)});function o(t){var e;return a(this,o),at(c(e=r.call(this)),t,Yt,Wt,O,{title:0,content:1,confirmButtonText:2,cancelButtonText:3,onClose:4},Ut),e}return i(o)}(ct);function Gt(t){setTimeout(t,0)}var qt;function Jt(){var t;return qt||(t=Math.ceil(375/window.screen.width*window.screen.height),qt={platform:/(iPhone|iPad|iPod|iOS)/i.test(navigator.userAgent)?"iOS":/(Android)/i.test(navigator.userAgent)?"Android":"UNKNOWN",pixelRatio:window.devicePixelRatio,windowWidth:375,windowHeight:t-0-0,titleBarHeight:0,statusBarHeight:0,screenWidth:375,screenHeight:t,currentBattery:"100%",brand:"UNKNOWN",model:"UNKNOWN",system:"UNKNOWN",version:"UNKNOWN",storage:"",app:"h5",fontSizeSetting:16,language:navigator.language}),qt}var Vt;!function(t){t.ToastHide="ToastHide",t.LoadingHide="LoadingHide"}(Vt||(Vt={}));const Xt=Vt;var Qt=new(function(){function t(e){a(this,t),ut(this,"managerName",void 0),ut(this,"listenersMap",{}),this.managerName=e}return i(t,[{key:"addListener",value:function(t,e){var n=this;console.log("EventManager_".concat(this.managerName,"#addListener: ").concat(t));var r=this.listenersMap[t];return r||(r=[],this.listenersMap[t]=r),r.push(e),function(){n.removeListener(t,e)}}},{key:"removeListener",value:function(t,e){if(console.log("EventManager_".concat(this.managerName,"#removeListener: ").concat(t)),e){var n=this.listenersMap[t];n&&(this.listenersMap[t]=n.filter((function(t){return t!==e})))}else this.listenersMap[t]=[]}},{key:"notifyEvent",value:function(t,e){console.log("EventManager_".concat(this.managerName,"#notifyEvent: ").concat(t," -> "),e);var n,r=this.listenersMap[t];r&&(n=r,function(t){if(Array.isArray(t))return d(t)}(n)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(n)||h(n)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()).forEach((function(n){return n(e,t)}))}}]),t}())("default"),Zt=0;function te(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(te=function(){return!!t})()}function ee(t){P(t,"svelte-1r6kpb6",".alipay-mwj-loading.svelte-1r6kpb6{background-color:rgba(58, 58, 58, 0.9);min-width:72px;max-width:50vw;padding:15px;border-radius:5px;box-sizing:border-box;position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center}.alipay-mwj-loading-iconRoot.svelte-1r6kpb6{width:34px;height:34px;border:solid 4px #888;border-radius:50%;position:relative}.alipay-mwj-loading-icon.svelte-1r6kpb6{position:absolute;left:-4px;top:-4px;right:-4px;bottom:-4px;border:solid 4px #fff;border-radius:50%;clip-path:polygon(50% 0%, 100% 0%, 100% 3600%, 50% 50%);animation:svelte-1r6kpb6-alipay-mwj-loading-ring 1.5s cubic-bezier(0.5, 0, 0.5, 1) infinite}.alipay-mwj-loading-text.svelte-1r6kpb6{color:#fff;font-size:14px;text-align:center;margin-top:6px}@keyframes svelte-1r6kpb6-alipay-mwj-loading-ring{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}")}function ne(t){var e,n,r,o,i=t[2]&&re(t);return{c:function(){e=$("div"),n=$("div"),r=$("div"),o=R(),i&&i.c(),D(r,"class",t[3]+"-icon svelte-1r6kpb6"),D(n,"class",t[3]+"-iconRoot svelte-1r6kpb6"),D(e,"class",A(t[3])+" svelte-1r6kpb6")},m:function(t,a){T(t,e,a),k(e,n),k(n,r),k(e,o),i&&i.m(e,null)},p:function(t,n){t[2]?i?i.p(t,n):((i=re(t)).c(),i.m(e,null)):i&&(i.d(1),i=null)},d:function(t){t&&N(e),i&&i.d()}}}function re(t){var e,n;return{c:function(){e=$("span"),n=_(t[0]),D(e,"class",t[3]+"-text svelte-1r6kpb6")},m:function(t,r){T(t,e,r),k(e,n)},p:function(t,e){1&e&&B(n,t[0])},d:function(t){t&&N(e)}}}function oe(t){var e,n=t[1]&&ne(t);return{c:function(){n&&n.c(),e=_("")},m:function(t,r){n&&n.m(t,r),T(t,e,r)},p:function(t,r){t[1]?n?n.p(t,r):((n=ne(t)).c(),n.m(e.parentNode,e)):n&&(n.d(1),n=null)},d:function(t){n&&n.d(t),t&&N(e)}}}function ie(t){var e,n;return e=new $t({props:{$$slots:{default:[oe]},$$scope:{ctx:t}}}),{c:function(){rt(e.$$.fragment)},m:function(t,r){ot(e,t,r),n=!0},p:function(t,n){var r=v(n,1)[0],o={};71&r&&(o.$$scope={dirty:r,ctx:t}),e.$set(o)},i:function(t){n||(et(e.$$.fragment,t),n=!0)},o:function(t){nt(e.$$.fragment,t),n=!1},d:function(t){it(e,t)}}}function ae(t,e,n){var r,o=e.content,i=e.delay,a=e.onClose,c=!1,u=Ot("loading");return U((function(){var t=Qt.addListener(Xt.LoadingHide,(function(){a(),t()}))})),setTimeout((function(){n(1,c=++Zt>0),c||console.log("my.hideLoading called before show")}),i||0),t.$$set=function(t){"content"in t&&n(0,o=t.content),"delay"in t&&n(4,i=t.delay),"onClose"in t&&n(5,a=t.onClose)},t.$$.update=function(){1&t.$$.dirty&&n(2,r=pt.isNotEmpty(o))},[o,c,r,u,i,a]}const ce=function(t){s(o,t);var e,n,r=(e=o,n=te(),function(){var t,r=p(e);if(n){var o=p(this).constructor;t=Reflect.construct(r,arguments,o)}else t=r.apply(this,arguments);return f(this,t)});function o(t){var e;return a(this,o),at(c(e=r.call(this)),t,ae,ie,O,{content:0,delay:4,onClose:5},ee),e}return i(o)}(ct);function ue(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(ue=function(){return!!t})()}function se(t){var e,n,r,o;return{c:function(){e=C("svg"),n=C("g"),r=C("path"),o=C("path"),D(r,"d","M36 72c19.882 0 36-16.118 36-36S55.882 0 36 0 0 16.118 0 36s16.118 36 36 36zm0-2c18.778 0 34-15.222 34-34S54.778 2 36 2 2 17.222 2 36s15.222 34 34 34z"),D(r,"fill","#FFF"),D(o,"stroke","#FFF"),D(o,"stroke-width","2"),D(o,"d","M19 34.54l11.545 11.923L52.815 24"),D(n,"fill","none"),D(n,"fill-rule","evenodd"),D(e,"class",t[0]),D(e,"xmlns","http://www.w3.org/2000/svg"),D(e,"viewBox","0 0 72 72")},m:function(t,i){T(t,e,i),k(e,n),k(n,r),k(n,o)},p:function(t,n){1&v(n,1)[0]&&D(e,"class",t[0])},i:m,o:m,d:function(t){t&&N(e)}}}function le(t,e,n){var r=e.className;return t.$$set=function(t){"className"in t&&n(0,r=t.className)},[r]}const fe=function(t){s(o,t);var e,n,r=(e=o,n=ue(),function(){var t,r=p(e);if(n){var o=p(this).constructor;t=Reflect.construct(r,arguments,o)}else t=r.apply(this,arguments);return f(this,t)});function o(t){var e;return a(this,o),at(c(e=r.call(this)),t,le,se,O,{className:0}),e}return i(o)}(ct);function pe(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(pe=function(){return!!t})()}function de(t){var e,n,r,o;return{c:function(){e=C("svg"),n=C("g"),r=C("path"),o=C("path"),D(r,"d","M36 72c19.882 0 36-16.118 36-36S55.882 0 36 0 0 16.118 0 36s16.118 36 36 36zm0-2c18.778 0 34-15.222 34-34S54.778 2 36 2 2 17.222 2 36s15.222 34 34 34z"),D(r,"fill","#FFF"),D(o,"d","M22 22l28.304 28.304m-28.304 0L50.304 22"),D(o,"stroke","#FFF"),D(o,"stroke-width","2"),D(n,"fill","none"),D(n,"fill-rule","evenodd"),D(e,"class",t[0]),D(e,"xmlns","http://www.w3.org/2000/svg"),D(e,"viewBox","0 0 72 72")},m:function(t,i){T(t,e,i),k(e,n),k(n,r),k(n,o)},p:function(t,n){1&v(n,1)[0]&&D(e,"class",t[0])},i:m,o:m,d:function(t){t&&N(e)}}}function he(t,e,n){var r=e.className;return t.$$set=function(t){"className"in t&&n(0,r=t.className)},[r]}const ve=function(t){s(o,t);var e,n,r=(e=o,n=pe(),function(){var t,r=p(e);if(n){var o=p(this).constructor;t=Reflect.construct(r,arguments,o)}else t=r.apply(this,arguments);return f(this,t)});function o(t){var e;return a(this,o),at(c(e=r.call(this)),t,he,de,O,{className:0}),e}return i(o)}(ct);function me(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(me=function(){return!!t})()}function ye(t){var e,n,r,o,i;return{c:function(){e=C("svg"),n=C("g"),r=C("path"),o=C("path"),i=C("path"),D(r,"d","M36 72c19.882 0 36-16.118 36-36S55.882 0 36 0 0 16.118 0 36s16.118 36 36 36zm0-2c18.778 0 34-15.222 34-34S54.778 2 36 2 2 17.222 2 36s15.222 34 34 34z"),D(r,"fill","#FFF"),D(o,"fill","#FFF"),D(o,"d","M47 22h2v6h-2zm-24 0h2v6h-2z"),D(i,"d","M21 51s4.6-7 15-7 15 7 15 7"),D(i,"stroke","#FFF"),D(i,"stroke-width","2"),D(n,"fill","none"),D(n,"fill-rule","evenodd"),D(e,"class",t[0]),D(e,"xmlns","http://www.w3.org/2000/svg"),D(e,"viewBox","0 0 72 72")},m:function(t,a){T(t,e,a),k(e,n),k(n,r),k(n,o),k(n,i)},p:function(t,n){1&v(n,1)[0]&&D(e,"class",t[0])},i:m,o:m,d:function(t){t&&N(e)}}}function ge(t,e,n){var r=e.className;return t.$$set=function(t){"className"in t&&n(0,r=t.className)},[r]}const be=function(t){s(o,t);var e,n,r=(e=o,n=me(),function(){var t,r=p(e);if(n){var o=p(this).constructor;t=Reflect.construct(r,arguments,o)}else t=r.apply(this,arguments);return f(this,t)});function o(t){var e;return a(this,o),at(c(e=r.call(this)),t,ge,ye,O,{className:0}),e}return i(o)}(ct);function we(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(we=function(){return!!t})()}function Oe(t){P(t,"svelte-13dnj4p",".alipay-mwj-toast.svelte-13dnj4p{background-color:rgba(58, 58, 58, 0.9);max-width:50%;min-width:72px;padding:15px;border-radius:5px;position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center}.alipay-mwj-toast-icon{width:72px;height:72px;margin-bottom:12px}.alipay-mwj-toast-text{color:#fff;font-size:14px;text-align:center;width:100%;display:block;word-wrap:break-word}")}function xe(t){var e,n;return e=new be({props:{className:t[4]+"-icon"}}),{c:function(){rt(e.$$.fragment)},m:function(t,r){ot(e,t,r),n=!0},p:m,i:function(t){n||(et(e.$$.fragment,t),n=!0)},o:function(t){nt(e.$$.fragment,t),n=!1},d:function(t){it(e,t)}}}function Ee(t){var e,n;return e=new ve({props:{className:t[4]+"-icon"}}),{c:function(){rt(e.$$.fragment)},m:function(t,r){ot(e,t,r),n=!0},p:m,i:function(t){n||(et(e.$$.fragment,t),n=!0)},o:function(t){nt(e.$$.fragment,t),n=!1},d:function(t){it(e,t)}}}function Ae(t){var e,n;return e=new fe({props:{className:t[4]+"-icon"}}),{c:function(){rt(e.$$.fragment)},m:function(t,r){ot(e,t,r),n=!0},p:m,i:function(t){n||(et(e.$$.fragment,t),n=!0)},o:function(t){nt(e.$$.fragment,t),n=!1},d:function(t){it(e,t)}}}function je(t){var e,n,r,o,i,a,c,u=[Ae,Ee,xe],s=[];function l(t,e){return"success"===t[1]?0:"fail"===t[1]?1:"exception"===t[1]?2:-1}return~(n=l(t))&&(r=s[n]=u[n](t)),{c:function(){e=$("div"),r&&r.c(),o=R(),i=$("span"),a=_(t[0]),D(i,"class",t[4]+"-text svelte-13dnj4p"),D(e,"class",A(t[4])+" svelte-13dnj4p")},m:function(t,r){T(t,e,r),~n&&s[n].m(e,null),k(e,o),k(e,i),k(i,a),c=!0},p:function(t,i){var f=n;(n=l(t))===f?~n&&s[n].p(t,i):(r&&(Z={r:0,c:[],p:Z},nt(s[f],1,1,(function(){s[f]=null})),Z.r||b(Z.c),Z=Z.p),~n?((r=s[n])?r.p(t,i):(r=s[n]=u[n](t)).c(),et(r,1),r.m(e,o)):r=null),(!c||1&i)&&B(a,t[0])},i:function(t){c||(et(r),c=!0)},o:function(t){nt(r),c=!1},d:function(t){t&&N(e),~n&&s[n].d()}}}function Se(t){var e,n;return e=new $t({props:{duration:t[2],afterClose:t[3],$$slots:{default:[je]},$$scope:{ctx:t}}}),{c:function(){rt(e.$$.fragment)},m:function(t,r){ot(e,t,r),n=!0},p:function(t,n){var r=v(n,1)[0],o={};4&r&&(o.duration=t[2]),8&r&&(o.afterClose=t[3]),35&r&&(o.$$scope={dirty:r,ctx:t}),e.$set(o)},i:function(t){n||(et(e.$$.fragment,t),n=!0)},o:function(t){nt(e.$$.fragment,t),n=!1},d:function(t){it(e,t)}}}function ke(t,e,n){var r,o=e.content,i=e.type,a=e.duration,c=e.onClose,u=Ot("toast");return U((function(){Qt.addListener(Xt.ToastHide,c)})),r=function(){Qt.removeListener(Xt.ToastHide,c)},M().$$.on_destroy.push(r),t.$$set=function(t){"content"in t&&n(0,o=t.content),"type"in t&&n(1,i=t.type),"duration"in t&&n(2,a=t.duration),"onClose"in t&&n(3,c=t.onClose)},[o,i,a,c,u]}const Pe=function(t){s(o,t);var e,n,r=(e=o,n=we(),function(){var t,r=p(e);if(n){var o=p(this).constructor;t=Reflect.construct(r,arguments,o)}else t=r.apply(this,arguments);return f(this,t)});function o(t){var e;return a(this,o),at(c(e=r.call(this)),t,ke,Se,O,{content:0,type:1,duration:2,onClose:3},Oe),e}return i(o)}(ct);function Te(t,e,n,r,o,i,a){try{var c=t[i](a),u=c.value}catch(t){return void n(t)}c.done?e(u):Promise.resolve(u).then(r,o)}function Ne(t){return function(){var e=this,n=arguments;return new Promise((function(r,o){var i=t.apply(e,n);function a(t){Te(i,r,o,a,c,"next",t)}function c(t){Te(i,r,o,a,c,"throw",t)}a(void 0)}))}}function $e(t,e){if(null==t)return{};var n,r,o=function(t,e){if(null==t)return{};var n,r,o={},i=Object.keys(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)>=0||(o[n]=t[n]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(o[n]=t[n])}return o}var Ce=n(2841),_e=n.n(Ce),Re=n(3563),Le=["success","fail"];function De(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Be(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?De(Object(n),!0).forEach((function(e){ut(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):De(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var Ie=n(9644),Me=n.n(Ie);function Ue(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Fe(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Ue(Object(n),!0).forEach((function(e){ut(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Ue(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var He={success:!1,errorCode:"AE15015999000001",errorMessage:"System error, please try again later"};function Ke(t){return t?decodeURIComponent(t):t}function We(t,e,n){return We=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}()?Reflect.construct.bind():function(t,e,n){var r=[null];r.push.apply(r,e);var o=new(Function.bind.apply(t,r));return n&&u(o,n.prototype),o},We.apply(null,arguments)}function Ye(t){var e="function"==typeof Map?new Map:void 0;return Ye=function(t){if(null===t||(n=t,-1===Function.toString.call(n).indexOf("[native code]")))return t;var n;if("function"!=typeof t)throw new TypeError("Super expression must either be null or a function");if(void 0!==e){if(e.has(t))return e.get(t);e.set(t,r)}function r(){return We(t,arguments,p(this).constructor)}return r.prototype=Object.create(t.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),u(r,t)},Ye(t)}function ze(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(ze=function(){return!!t})()}var Ge=function(t){s(o,t);var e,n,r=(e=o,n=ze(),function(){var t,r=p(e);if(n){var o=p(this).constructor;t=Reflect.construct(r,arguments,o)}else t=r.apply(this,arguments);return f(this,t)});function o(t){var e;return a(this,o),ut(c(e=r.call(this,t)),"resultStatus",void 0),ut(c(e),"memo",void 0),ut(c(e),"tips",void 0),ut(c(e),"extraMessage",void 0),ut(c(e),"traceId",void 0),e}return i(o)}(Ye(Error));function qe(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Je(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?qe(Object(n),!0).forEach((function(e){ut(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):qe(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Ve(t){var e=t.success,n=t.fail,r=t.complete,o=t.operationType,i=t.requestData,a=t.gateway,c=t.headers,u=vt(),s=Je(Je(Je(Je(Je({},u.appId?{AppId:u.appId}:{}),u.workspaceId?{WorkspaceId:u.workspaceId}:{}),u.headers),c),{},ut({"Operation-Type":o,"Content-Type":"application/json"},"X-CORS-".concat(u.appId,"-").concat(u.workspaceId),"1")),l=a||u.gatewayUrl,f=function(t){null==n||n(t),null==r||r()},p={method:"post",url:l,timeout:3e4,headers:s,data:i,withCredentials:!0};Me()(p).then((function(t){var n=null;try{n=function(t){var e=t.headers["result-status"];if("1000"===e)return function(t){var e=t.data,n=t.headers["mgw-traceid"];if(null==e)return function(t,e,n){return Fe(Fe({},He),{},{errorMessage:pt.isNotEmpty(t)?t:He.errorMessage,memo:pt.isString(e)?e:"".concat(e),traceId:n})}(Ke(t.headers.tips),Ke(t.headers.memo),n);var r=null;if(pt.isString(e)){if(null==(r=pt.parseObjectSafe(e)))return e}else r=e;return pt.isEmpty(r.traceId)&&(r.traceId=n),r}(t);throw function(t,e){var n=Ke(t.headers.tips),r=Ke(t.headers.memo),o=new Ge("".concat(n," - ").concat(r));return o.resultStatus=e,o.traceId=t.headers["mgw-traceid"],o.tips=n,o.memo=r,o}(t,e)}(t)}catch(t){return void f(t)}null==e||e(n),null==r||r()})).catch((function(t){f(t)}))}function Xe(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Qe(t){var e=Ze();return function(){var n,r=p(t);if(e){var o=p(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return f(this,n)}}function Ze(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(Ze=function(){return!!t})()}var tn=function(){function t(e){a(this,t),ut(this,"elements",void 0),this.elements=e}return i(t,[{key:"map",value:function(t){return null==this.elements?null:Array.isArray(this.elements)?0===this.elements.length?null:this.elements.map(t):[this.elements].map(t)[0]}}]),t}(),en=function(t){s(n,t);var e=Qe(n);function n(){return a(this,n),e.apply(this,arguments)}return i(n,[{key:"execute",value:function(){return this.map((function(t){var e=t.getBoundingClientRect();return{width:e.width,height:e.height,top:e.top,bottom:e.bottom,left:e.left,right:e.right}}))}}]),n}(tn),nn=function(t){s(n,t);var e=Qe(n);function n(){return a(this,n),e.apply(this,arguments)}return i(n,[{key:"execute",value:function(){return this.map((function(t){return{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}}))}}]),n}(tn),rn=function(t){s(n,t);var e=Qe(n);function n(){return a(this,n),e.apply(this,arguments)}return i(n,[{key:"execute",value:function(){var t=document.documentElement;return{scrollLeft:(window.pageXOffset||t.scrollLeft)-(t.clientLeft||0),scrollTop:(window.pageYOffset||t.scrollTop)-(t.clientTop||0),width:Math.max(document.documentElement.clientWidth||0,window.innerWidth||0),height:Math.max(document.documentElement.clientHeight||0,window.innerHeight||0)}}}]),n}(tn);var on="";var an,cn,un,sn=window.navigator.userAgent||"",ln=function(){var t=sn.match(/OS (\d+)_(\d+)_?(\d+)?/);return Number.parseInt(t[1],10)},fn=/android/i.test(sn),pn=/iphone|ipad|ipod/i.test(sn),dn=/chrome\/[\d.]+ mobile safari\/[\d.]+/i.test(sn)&&fn&&sn.indexOf("Version")<0,hn=(/qqbrowser/i.test(sn),/firefox/i.test(sn));function vn(t,e){return function(t,e){var n=new URL(t);for(var r in e)r&&n.searchParams.set(r,e[r]);return n.toString()}(t,e)}function mn(t,e,n){var r="";n&&(r="S.browser_fallback_url=".concat(encodeURIComponent(n),";"));var o=t.substring(0,t.indexOf("://")),i=e?"#Intent;scheme=".concat(o,";package=").concat(e,";"):"#Intent;scheme=".concat(o,";"),a=t.replace(/.*?:\/\//,"intent://");return"".concat(a+i+r,"end")}/baidubrowser/i.test(sn);var yn,gn,bn;function wn(t){var e=t.evokeAppBy;(null==e?void 0:e.url)&&(function(t){var e=t.evokeAppBy,n=t.successCb,r=t.timeout;if(n){var o=r||5e3;+new Date-(yn||+new Date)<o&&n(e)}}(t),gn&&clearTimeout(gn))}function On(t){return/^(http|https|itms-apps|itms-appss|market):\/\//.test(t)}function xn(t){return xn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},xn(t)}function En(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function An(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?En(Object(n),!0).forEach((function(e){jn(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):En(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function jn(t,e,n){return(e=kn(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Sn(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,kn(r.key),r)}}function kn(t){var e=function(t){if("object"!==xn(t)||null===t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var n=e.call(t,"string");if("object"!==xn(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"===xn(e)?e:String(e)}!function(t){void 0!==t&&(void 0!==t.hidden?(cn="hidden",un="visibilitychange"):void 0!==t.mozHidden?(cn="mozHidden",un="mozvisibilitychange"):void 0!==t.msHidden?(cn="msHidden",un="msvisibilitychange"):void 0!==t.webkitHidden&&(cn="webkitHidden",un="webkitvisibilitychange"))}(document),function(t){t.SCHEME="Scheme",t.LINK="Link",t.INTENT="Intent"}(bn||(bn={}));var Pn=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.config=void 0,this.timer=void 0,this.options=void 0,this.evokeAppBy=void 0,this.config=An(An({},{delay:0}),e),this.options={},this.timer=null,this.evokeAppBy={url:"",type:bn.LINK},this.init()}var e,n;return e=t,(n=[{key:"init",value:function(){var t;an||((an=document.createElement("iframe")).id="callapp_iframe_".concat(Date.now()),an.style.cssText="display:none;border:0;width:0;height:0;",document.body.appendChild(an)),t={evokeAppBy:this.evokeAppBy,successCb:this.config.successCb,timeout:this.config.resultJudgmentTime},void 0!==un?document.addEventListener(un,(function(){return wn(t)})):window.addEventListener("pagehide",(function(){return wn(t)}))}},{key:"open",value:function(t){this.options=t;var e=this.options,n=e.scheme,r=e.intent,o=e.link,i=e.params,a=e.fallback;n||o||r?o&&On(o)?(this.options.link=vn(o,i),this.handleLink()):n&&!On(n)?(this.options.scheme=vn(n,i),this.handleScheme()):r&&r.scheme&&r.package?this.handleIntent():a?a():console.error("唤端失败"):console.error("请至少填一个链接")}},{key:"handleLink",value:function(){this.evokeAppBy.type=bn.LINK;var t=this.options,e=t.link,n=t.scheme,r=t.delay,o=t.fallback;pn?ln()>9?this.evokeByLocationDelay(e,r,o,this.handleScheme):n?this.handleScheme():o?o():console.error("唤端失败"):this.evokeByLocationDelay(e,r,o,this.handleScheme)}},{key:"handleIntent",value:function(){this.evokeAppBy.type=bn.INTENT;var t=this.options,e=t.intent,n=t.delay,r=t.fallback;e&&e.scheme&&e.package&&this.evokeByLocationDelay(mn(e.scheme,e.package,e.fallbackUrl),n,r)}},{key:"handleScheme",value:function(){this.evokeAppBy.type=bn.SCHEME;var t=this.options,e=t.scheme,n=t.delay,r=t.fallback;e&&(pn?this.handleIOSScheme():dn||hn?this.handleOriginalChrome():this.evokeByIFrameDelay(e,n,r))}},{key:"handleIOSScheme",value:function(){var t=this.options,e=t.scheme,n=t.delay,r=t.fallback;ln()<9?this.evokeByIFrameDelay(e,n,r):this.evokeByTagADelay(e,n,r)}},{key:"handleOriginalChrome",value:function(){var t=this,e=this.options,n=e.scheme,r=e.intent,o=e.delay,i=e.fallback;this.evokeByLocationDelay(n,o,i,(function(){r&&r.package&&t.evokeByLocationDelay(mn(n,r.package,r.fallbackUrl),o,i,t.handleIntent.bind(t))}))}},{key:"evokeAppDelay",value:function(t,e,n,r,o){var i=this,a=n||this.config.delay,c=r||this.config.fallback;this.timer=setTimeout((function(){i.clearTimer(),t(),i.checkIsOpen(e,c,o)}),a)}},{key:"evokeByLocationDelay",value:function(t,e,n,r){this.evokeAppDelay((function(){return function(t){window.location.href=t}(t)}),t,e,n,r)}},{key:"evokeByTagADelay",value:function(t,e,n,r){this.evokeAppDelay((function(){return function(t){var e=document.createElement("a");e.setAttribute("href",t),e.style.display="none",document.body.appendChild(e);var n=document.createEvent("HTMLEvents");n.initEvent("click",!1,!1),e.dispatchEvent(n)}(t)}),t,e,n,r)}},{key:"evokeByIFrameDelay",value:function(t,e,n,r){this.evokeAppDelay((function(){return function(t){an.src=t}(t)}),t,e,n,r)}},{key:"checkIsOpen",value:function(t,e,n){return this.evokeAppBy.url=t,function(t,e){yn=+new Date,gn=setTimeout((function(){(!cn||!document[cn])&&t&&t()}),e||5e3)}(n||e,this.config.resultJudgmentTime)}},{key:"clearTimer",value:function(){this.timer&&clearTimeout(this.timer)}}])&&Sn(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),t}();const Tn=Pn;var Nn=["success","fail","complete"],$n=function(t){return function(e){return new Promise((function(n,r){var o=e||{},i=o.success,a=o.fail,c=o.complete,u=$e(o,Nn);t(u,(function(t){n(t),null==i||i(t),null==c||c(t)}),(function(t){r(t),null==a||a(t),null==c||c(t)}))}))}},Cn=function(t){return function(e){return toString.call(e)==="[object ".concat(t,"]")}},_n=(Cn("RegExp"),Cn("String"),Cn("Function"),Cn("Object")),Rn=(Cn("Number"),Array.isArray,Cn("Boolean"),function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return e.reduce((function(t,e){if(!e)return t;for(var n=Object.entries(e),r=n.length,o=0;o<r;o++){var i=v(n[o],2),a=i[0],c=i[1];_n(c)?t[a]=Rn(t[a],c):Object.assign(t,ut({},a,c))}return t}),{})});const Ln=$n((function(t,e,n){var r=t.url;new Tn({fallback:n,successCb:e}).open({scheme:r,link:r})}));function Dn(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Bn(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Dn(Object(n),!0).forEach((function(e){ut(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Dn(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}const In=function(t){var e=t.appId,n=t.workspaceId,r=void 0===n?"default":n,o=t.defaultGateway,i=t.defaultHeaders,a=t.request,c=e&&r?ut({AppId:e,workspaceId:r},"X-CORS-".concat(e,"-").concat(r),"1"):{};return $n((function(t,e,n){var r=t.gateway,u=t.operationType,s=t.headers,l=t.requestData,f=t.timeout;a({url:r||o,method:"POST",timeout:f,headers:Bn(Bn(Bn({"Content-Type":"application/json"},i),{},{"Operation-Type":u},c),s),data:l,success:function(t){e({headers:(null==t?void 0:t.headers)||{},resData:(null==t?void 0:t.data)||{}})},fail:n})}))};function Mn(t,e){var n=t.filter((function(t){return t.match.every((function(t){return t.test(e)}))}));if(n.length){var r=n[0].name;if(n.length>1){var o=n.map((function(t){return t.name})).join(",");Fn("Multiple clients have been identified(".concat(o,"), and the first one(").concat(r,")is used by default."))}return r}}function Un(t,e){return Object.keys(t).reduce((function(n,r){return n["is".concat(r)]=e===t[r],n}),{})}function Fn(t){console.info("[hylid-env]: ".concat(t))}var Hn={WEB:"web",MPWEB:"mpweb",MP:"mp"},Kn={DEMO:"demo",ALIPAY:"alipay",ALIPAYHK:"alipayhk",TNGD:"tngd",GCASH:"gcash",TRUEMONEY:"truemoney",DANA:"dana",KAKAOPAY:"kakaopay",KAKAOTALK:"kakaotalk",NAVERPAY:"naverpay",MPAY:"mpay",TOSSPAY:"toss",HIPAY:"hipay",CHOPE:"chope",VODAPAY:"vodapay",CHANGIPAY:"changipay",OCBC:"ocbc",MANDIRI:"mandiri",NAYAPAY:"nayapay",TINABA:"tinaba",KASPI:"kaspi",H5:"h5",WECHAT:"wechat",TNGD_H5NG:"tngdh5ng"},Wn=/miniprogram/i,Yn=/^((?!miniprogram).)*$/i,zn=/griver/i,Gn=/^((?!griver).)*$/i,qn=[{name:Kn.DEMO,match:[/demo/]},{name:Kn.ALIPAY,match:[/alipay/]},{name:Kn.ALIPAYHK,match:[/hk/]},{name:Kn.TNGD,match:[/tngd/]},{name:Kn.GCASH,match:[/gcash/]},{name:Kn.TRUEMONEY,match:[/tmn/]},{name:Kn.DANA,match:[/dana/]},{name:Kn.TOSSPAY,match:[/toss/]}],Jn=[{name:Kn.DEMO,match:[/alipayIDE/i]},{name:Kn.ALIPAYHK,match:[Wn,Gn,/AlipayClientHK/]},{name:Kn.TNGD,match:[Wn,/TNGKit|Touch 'n Go/]},{name:Kn.GCASH,match:[Wn,zn,/GCash/]},{name:Kn.TRUEMONEY,match:[Wn,zn,/TrueMoney/]},{name:Kn.ALIPAY,match:[Wn,Gn,/alipay/i]},{name:Kn.DEMO,match:[Wn,zn]}];function Vn(){return Mn(Jn,window.navigator.userAgent)}var Xn=[{name:Kn.ALIPAYHK,match:[Yn,Gn,/AlipayClientHK/]},{name:Kn.TNGD,match:[Yn,zn,/TNGKit|Touch 'n Go/]},{name:Kn.TNGD_H5NG,match:[Yn,/TNGKit|Touch 'n Go/,/IAPWebH5NG/]},{name:Kn.GCASH,match:[Yn,zn,/GCash/]},{name:Kn.TRUEMONEY,match:[Yn,zn,/TrueMoney/i]},{name:Kn.KAKAOPAY,match:[Yn,/PAYCLIENT|KAKAOTALK|KAKAOPAY/]},{name:Kn.KAKAOTALK,match:[Yn,/ALIPAYCONNECT_KAKAO_TALK/]},{name:Kn.NAVERPAY,match:[Yn,/NAVER/]},{name:Kn.MPAY,match:[Yn,/mpay|macaupay/i]},{name:Kn.TOSSPAY,match:[Yn,/Toss/i]},{name:Kn.ALIPAY,match:[Yn,Gn,/AlipayClient/]},{name:Kn.DEMO,match:[Yn,zn,/GriverDemo/]}];function Qn(){return Mn(Xn,window.navigator.userAgent)||Kn.H5}var Zn=function(){var t,e;if("undefined"!=typeof wx||"undefined"!=typeof my&&"string"==typeof my.SDKVersion)t="undefined"!=typeof wx?Kn.WECHAT:Mn(qn,my.getSystemInfoSync().app),e=Hn.MP;else{var n=function(){var t,e=((null===(t=window.location.search)||void 0===t?void 0:t.match(/__app__=([^&]*)/))||[])[1],n=(window.location.search.match(/__platform__=([^&]*)/)||[])[1];(e||n)&&localStorage.setItem("__hy_env__",JSON.stringify({client:e,platform:n}));var r=localStorage.getItem("__hy_env__");return r?JSON.parse(r):{}}();n.platform?(e=n.platform,t=n.client||("mpweb"===e?Vn():Qn())):(t=n.client||Vn())?e=Hn.MPWEB:(t=Qn(),e=Hn.WEB)}return e&&t||Fn("Cannot identify your client."),{client:t,platform:e}}(),tr=Zn.client,er=Zn.platform;Un(Kn,tr),Un(Hn,er);var nr=!1,rr=[];function or(t){return rr.push(t),function(){rr=rr.filter((function(e){return e!==t}))}}function ir(e){return nr||(document.addEventListener("onToWebViewMessage",(function(t){var e=t.data.res;if(e&&"message"===e.type){var n=JSON.parse(e.data);rr.forEach((function(t){return t(n)}))}})),nr=!0),t((function(){window.AlipayJSBridge.call("postWebViewMessage",{type:"message",detail:e})}))}var ar={};function cr(t,e,n){var r=t+"_"+Math.floor(1e6*Math.random());e&&(ar[r]=e),ir({source:"hylid",type:"apiCall",api:t,serialId:r,options:e,config:n,isSync:null==n?void 0:n.isSync})}or((function(t){var e,n=t,r=n.serialId;if(r&&ar[r]){var o=ar[r],i=n.result;if("callback"===(null===(e=n.config)||void 0===e?void 0:e.type)){var a=i||{},c=a._data_;return"success"===a._type_?o(c):o(void 0,c)}var u=o||{},s=u.success,l=u.fail,f=u.complete,p=i||{},d=p._data_,h=p._type_;h?("success"===h&&(null==s||s(d)),"fail"===h&&(null==l||l(d)),null==f||f(d)):((null==i?void 0:i.error)?null==l||l(i):null==s||s(i),null==f||f(i)),delete ar[r]}})),cr.onMessage=or,cr.postMessage=ir,cr.broadcastGlobalData=function(t,e){ir({source:"hylid",type:"broadcast",from:window.location.href,key:t,result:e})},cr.onReceiveGlobalData=function(t,e){return or((function(n){var r=n;if("hylid"===r.source&&"broadcast"===r.type&&r.key===t){var o=r.result||{},i=o._data_;return"success"===o._type_?e(i,void 0,r.from):e(void 0,i,r.from)}}))},cr.onPageEvent=function(t,e){return ir({source:"hylid",type:"pageEvent",event:t}),or((function(n){var r=n;if("hylid"===r.source&&"pageEvent"===r.type&&r.event===t){var o=r.result||{},i=o._data_;return"success"===o._type_?e(i):e(void 0,i)}}))};var ur,sr={NOTFOUND:{code:-1,message:function(t){return"".concat(t," is not found")}},NOTALLOWED:{code:-2,message:function(t){return"".concat(t," is not allowed")}},INVALID:{code:-3,message:function(t){return"".concat(t," is invalid")}},NOTBIND:{code:-4,message:function(t){return"".concat(t," exec fail, webviewBridge not bind context")}},PARAMS_ERROR:{code:-5,message:function(t){return"".concat(t," exec fail, params error")}}},lr=((ur={})[Hn.MP]=function(t,e,n){var r=(n||{}).type,o=void 0===r?"async":r;return"sync"===o||(null==n?void 0:n.isSync)?my[t](e):("async"===o&&(my[t]?my[t](e):my.call(t,e)),"callback"===o&&my[t](e),"attribute"===o?my[t]:void 0)},ur[Hn.MPWEB]=cr,ur[Hn.WEB]=e,ur),fr=["success"];function pr(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}var dr={hylidVersion:"4.0.1"};const hr={getSiteInfo:function(t){return e("getSiteInfo",t,{type:"async"})},navigateToBizScene:function(t){return e("navigateToBizScene",t,{type:"async"})},navigateToMiniProgram:function(t){return e("navigateToMiniProgram",t,{type:"async"})},alert:function(t){return function(t){var e=t||{},n=e.title,r=e.content,o=e.buttonText,i=e.success,a=e.complete,c=document.createElement("div");document.body.appendChild(c);var u=new It({target:c,props:{title:n,content:r,buttonText:o,onClose:function(){var t;null==i||i(),null==a||a(),u.$destroy(),null===(t=c.parentNode)||void 0===t||t.removeChild(c)}}})}(t)},clearStorage:function(t){var e=t||{},n=e.success,r=e.fail,o=e.complete;try{localStorage.clear(),null==n||n(void 0)}catch(t){null==r||r(t)}null==o||o()},clearStorageSync:function(){localStorage.clear()},confirm:function(t){var e=t.title,n=t.content,r=t.confirmButtonText,o=t.cancelButtonText,i=t.success,a=t.complete,c=document.createElement("div");document.body.appendChild(c);var u=new zt({target:c,props:{title:e,content:n,confirmButtonText:r,cancelButtonText:o,onClose:function(t){var e,n={ok:t,confirm:t};null==i||i(n),null==a||a(n),u.$destroy(),null===(e=c.parentNode)||void 0===e||e.removeChild(c)}}})},exitApp:function(t){window.close()},getClipboard:function(t){return function(t){var e;null===(e=t.fail)||void 0===e||e.call(t)}(t)},getLocation:function(t){return function(t){var e=function(e){Gt((function(){var n,r,o={error:e};null===(n=t.fail)||void 0===n||n.call(t,o),null===(r=t.complete)||void 0===r||r.call(t,o)}))},n=navigator.geolocation;n?n.getCurrentPosition((function(e){var n,r,o,i,a,c,u={accuracy:"".concat(null===(n=e.coords)||void 0===n?void 0:n.accuracy),horizontalAccuracy:"".concat(null===(r=e.coords)||void 0===r?void 0:r.altitudeAccuracy),latitude:"".concat(null===(o=e.coords)||void 0===o?void 0:o.latitude),longitude:"".concat(null===(i=e.coords)||void 0===i?void 0:i.longitude)};null===(a=t.success)||void 0===a||a.call(t,u),null===(c=t.complete)||void 0===c||c.call(t,u)}),(function(t){var n=1===t.code?11:13;e(n)}),{timeout:1e4,maximumAge:t.cacheTimeout||3e4}):e(13)}(t)},getNetworkType:function(t){return function(t){var e,n,r=navigator.connection,o=null==r?void 0:r.effectiveType;o?"slow-2g"===o&&(o="2g"):(o=(null==r?void 0:r.type)||"none",-1===["wifi","none"].indexOf(o)&&(o="unknown")),o=o.toUpperCase(),null===(e=t.success)||void 0===e||e.call(t,{networkAvailable:navigator.onLine,networkType:o}),null===(n=t.fail)||void 0===n||n.call(t)}(t)},getStorage:function(t){var e=t.key,n=t.success,r=t.fail,o=t.complete;try{var i=localStorage.getItem(e);null==n||n(i?JSON.parse(i):i)}catch(t){null==r||r(t)}null==o||o()},getStorageSync:function(t){var e=t.key,n=localStorage.getItem(e);return n?JSON.parse(n):n},getSystemInfo:function(t){return function(t){Gt((function(){try{var e;null===(e=t.success)||void 0===e||e.call(t,Jt())}catch(e){var n;null===(n=t.fail)||void 0===n||n.call(t)}finally{var r;null===(r=t.complete)||void 0===r||r.call(t)}}))}(t)},getSystemInfoSync:function(){return Jt()},hideLoading:function(t){Zt=0,Qt.notifyEvent(Xt.LoadingHide)},hideToast:function(t){Qt.notifyEvent(Xt.ToastHide)},makePhoneCall:function(t){return function(t){t&&t.number&&function(t){try{var e=document.createElement("a");e.setAttribute("href",t),e.setAttribute("target","_blank");var n=document.createEvent("MouseEvents");n.initMouseEvent("click",!0,!0),e.dispatchEvent(n)}catch(e){window.open(t,"_blank")}}("tel://".concat(t.number))}(t)},navigateBack:function(t){return function(t){var e=(t||{}).delta,n=void 0===e?1:e;history.go(-n)}(t)},navigateTo:function(t){return function(t){var e=t.success,n=(t.fail,t.complete);window.location.href=t.url,null==e||e(),null==n||n()}(t)},pageScrollTo:function(t){return function(t){if(t.selector){var e,n,r,o=document.querySelector(t.selector);o?(o.scrollTo(),null===(n=t.success)||void 0===n||n.call(t)):null===(r=t.fail)||void 0===r||r.call(t),null===(e=t.complete)||void 0===e||e.call(t)}else if(null!=t.scrollTop)window.scrollTo({top:t.scrollTop,behavior:"smooth"});else{var i,a;null===(i=t.fail)||void 0===i||i.call(t),null===(a=t.complete)||void 0===a||a.call(t)}}(t)},redirectTo:function(t){return function(t){var e=t.success,n=(t.fail,t.complete);window.location.replace(t.url),null==e||e(),null==n||n()}(t)},removeStorage:function(t){var e=t||{},n=e.success,r=e.fail,o=e.complete;try{localStorage.removeItem(t.key||""),null==n||n()}catch(t){null==r||r(t)}null==o||o()},removeStorageSync:function(t){var e=t.key;localStorage.removeItem(e)},request:function(t){var e=t.success,n=t.fail;if($e(t,Le)){var r=function(){var e=Ne(_e().mark((function e(n){return _e().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("text"!==t.dataType){e.next=4;break}return e.next=3,n.text();case 3:case 6:return e.abrupt("return",e.sent);case 4:return e.next=6,n.json();case 7:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),o=t.method||"GET",i={method:o,mode:"cors",cache:"no-cache",credentials:"include",referrerPolicy:"no-referrer",headers:Be(Be({},t.headers),{},{Accept:"text"===t.dataType?"text/plain":"application/json"})},a=t.url;if("GET"===o){if(t.data){var c="string"==typeof t.data?t.data:(0,Re.Pz)(t.data);-1!==a.indexOf("?")?a+=c:a=a+"?"+c}}else i.body="string"==typeof t.data?t.data:JSON.stringify(t.data);fetch(a,i).then(function(){var t=Ne(_e().mark((function t(n){var o;return _e().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(o={},n.headers.forEach((function(t,e){o[e.toLocaleLowerCase()]=t})),null!=e){t.next=6;break}t.next=14;break;case 6:return t.t0=e,t.t1=n.status,t.next=10,r(n);case 10:t.t2=t.sent,t.t3=o,t.t4={status:t.t1,data:t.t2,headers:t.t3},(0,t.t0)(t.t4);case 14:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()).catch((function(t){null==n||n({error:19,errorMessage:"HTTP error."+(null==t?void 0:t.message)})}))}else null==n||n({error:-103,errorMessage:"[request]: Wrong Param"})},rpc:function(t){return function(t){var e,n,r=null===(e=xt())||void 0===e||null===(n=e.rpcOptions)||void 0===n?void 0:n.rpcInterceptor;if(r&&r.onRpcError){var o=t.fail,i=r.onRpcError;t.fail=function(e){i(e,{notifyFail:function(t){null==o||o(t)},resend:function(){t.fail=o,Ve(t)}})}}r&&r.onBeforeSendRpc&&r.onBeforeSendRpc(t)||Ve(t)}(function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Xe(Object(n),!0).forEach((function(e){ut(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Xe(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}({},t))},setClipboard:function(t){return function(t){var e,n;if(!t.text)return null===(e=t.fail)||void 0===e||e.call(t),void(null===(n=t.complete)||void 0===n||n.call(t,{success:!1}));var r,o,i,a,c=document.createElement("input");document.body.appendChild(c),c.setAttribute("readonly","readonly"),c.setAttribute("value",t.text),c.setSelectionRange(0,t.text.length),c.focus(),c.select(),document.execCommand("copy")?(null===(r=t.success)||void 0===r||r.call(t,{success:!0}),null===(o=t.complete)||void 0===o||o.call(t,{success:!0})):(null===(i=t.fail)||void 0===i||i.call(t),null===(a=t.complete)||void 0===a||a.call(t,{success:!1})),document.body.removeChild(c)}(t)},setNavigationBar:function(t){return function(t){var e,n;null!=t.title&&(document.title=t.title),null===(e=t.success)||void 0===e||e.call(t),null===(n=t.complete)||void 0===n||n.call(t)}(t)},setStorage:function(t){var e=t.key,n=t.data,r=t.success,o=t.fail,i=t.complete;try{localStorage.setItem(e,JSON.stringify({data:n})),null==r||r()}catch(t){null==o||o(t)}null==i||i()},setStorageSync:function(t){var e=t.key,n=t.data;localStorage.setItem(e,JSON.stringify({data:n}))},showLoading:function(t){return function(t){if(t){var e=pt.isString(t)?{content:t}:t,n=e.content,r=e.delay,o=e.success,i=e.complete,a=document.createElement("div");document.body.appendChild(a);var c=new ce({target:a,props:{content:n,delay:r,onClose:function(){null==o||o(),null==i||i(),c.$destroy(),document.body.removeChild(a)}}})}}(t)},showToast:function(t){return function(t){var e=t||{},n=e.content,r=e.type,o=e.duration,i=void 0===o?2e3:o,a=e.success,c=e.complete;if(n){var u=document.createElement("div");document.body.appendChild(u);var s=new Pe({target:u,props:{content:n,type:r,duration:i,onClose:function(){var t;null==a||a(),null==c||c(),s.$destroy(),null===(t=u.parentNode)||void 0===t||t.removeChild(u)}}})}}(t)},getLaunchOptionsSync:function(){return Et()},createSelectorQuery:function(){return e=[],n=!1,r=function(r){n?e.push(new rn):e.push(new r(t)),n=!1,t=null},o={boundingClientRect:function(){return r(en),i},scrollOffset:function(){return r(nn),i}},i={select:function(e){return t=document.querySelector(e),o},selectAll:function(e){var n=document.querySelectorAll(e);if(n){var r=[];null==n||n.forEach((function(t){return r.push(t)})),t=r}else t=null;return o},selectViewport:function(){return n=!0,o},exec:function(t){t(e.map((function(t){return t.execute()})))}};var t,e,n,r,o,i},getCurrentLanguage:function(){if(!on){var t=function(){if("object"===("undefined"==typeof window?"undefined":l(window))){var t,e=null===(t=window.location.search)||void 0===t?void 0:t.match(/__lang__=([^&]*)/);if(e)return e[1]}}()||function(){if("object"===("undefined"==typeof document?"undefined":l(document))){var t,e=null===(t=document.documentElement)||void 0===t?void 0:t.lang;if(e)return e}}()||function(){if("object"===("undefined"==typeof window?"undefined":l(window))){var t,e=(null===(t=window.navigator)||void 0===t?void 0:t.userAgent)||"",n=(/Language\/([^\s]*)/i.exec(e)||[]).pop();if(n)return n}}()||function(){if("object"===("undefined"==typeof window?"undefined":l(window))&&window.navigator){var t,e=window.navigator,n=(null===(t=e.languages)||void 0===t?void 0:t[0])||e.language||e.userLanguage||e.browserLanguage;if(n)return n}}()||"en-US";on=t.toLowerCase()}return on},openURL:Ln,createWithoutAuthRpc:In,rpcWithAuth:function(t){var e,n,r=t.success;e=function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?pr(Object(n),!0).forEach((function(e){ut(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):pr(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}({success:function(t){null==r||r({headers:{},resData:t})}},$e(t,fr)),er?lr[er]("rpc",e,n):function(t,e,n){var r;void 0===n&&(n={});var o=n.type,i=void 0===o?"async":o,a=function(t,e){void 0===e&&(e="");var n=sr.NOTFOUND;return{errorCode:n.code,errorMessage:(0,n.message)(e),errorSouce:"hylid"}}(0,t);if("sync"===i)return a;"callback"===i&&(null==e||e(a)),"async"===i&&(null===(r=null==e?void 0:e.fail)||void 0===r||r.call(e,a))}(e,n)},defineRuntimeConfig:function(t){return dr=Rn(dr,t)},popWindow:function(t){window.history.back()}}})(),r.default})()));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "hylid-bridge",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.3",
|
|
4
4
|
"main": "lib/index.js",
|
|
5
5
|
"description": "Unite Api For MiniProgram Project",
|
|
6
6
|
"files": [
|
|
@@ -55,12 +55,12 @@
|
|
|
55
55
|
"@alipay/stdlib": "^1.22.5",
|
|
56
56
|
"@babel/runtime": "7.18.9",
|
|
57
57
|
"@goldfishjs/utils": "^2.18.0",
|
|
58
|
-
"@hylid/call": "^4.0.
|
|
59
|
-
"@hylid/custom-jsapi": "^4.0.
|
|
60
|
-
"@hylid/env": "^4.0.
|
|
61
|
-
"@hylid/types": "^4.0.
|
|
58
|
+
"@hylid/call": "^4.0.3",
|
|
59
|
+
"@hylid/custom-jsapi": "^4.0.3",
|
|
60
|
+
"@hylid/env": "^4.0.3",
|
|
61
|
+
"@hylid/types": "^4.0.3",
|
|
62
62
|
"@types/miniprogram": "^1.0.3",
|
|
63
|
-
"miniapp-web-jsapi": "^4.0.
|
|
63
|
+
"miniapp-web-jsapi": "^4.0.3",
|
|
64
64
|
"qs-es5": "^6.8.4",
|
|
65
65
|
"url-parse": "^1.5.10"
|
|
66
66
|
},
|